Indeed, the teamplte that is used in the function is a brain mask, not a gm mask.
There are 2 possibilities:
- Either we consider that a brain mask is OK, and we view this as a documentationbug
- Or we consider that a gray matter mask is really important and we should add options.
I am leaning toward the first option, since you can alwaus come up with your preferred gm image and resample it to the target image, then threshold it.
WDYT ?