There is not a single command to do it, but you could do something like
mri_binarize --i aparc+aseg.mgz --wm --o wmmask.mgz # mask of white matter mri_binarize --i seg.mgz --match 17 --o mask17.mgz # mask of seg 17 mri_binarize --i seg.mgz --match 17 --dilate 2 --o mask17.dil2.mgz # mask of seg 17 dilated by 2 voxels fscalc wmmask.mgz and mask17.dil2.mgz --o mask17.dil2.wm.mgz # seg 17 inside WM mri_concat mask17.mgz mask17.dil2.wm.mgz --sum --o mask17+wm.mgz # seg 17 plus dilation into WM
doug
On 11/04/2013 11:38 AM, Corinna Bauer wrote:
Hello all, Is there a way to expand a GM label into the white matter by n voxels?
Corinna
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer