Do you want everything in the white surface? That would include more than WM. If you want just WM, you can use the aseg.mgz, something like:

mri_binarize --i aseg.mgz --match 2 --match 41 --o wm.only.mgz

you may need a new copy of mri_binarize ...

Leila BH wrote:

Hello,

I need to convert the white matte surface to a volume :binary volume with 1 in white matter and 0 outside.  I am using the mri_surf2vol command (on both hemisphere), and fill it using matlab. Do you know if it is possible to obtain the volume from the surface already filled ?

Thanks a lot.

Here is the command I use :

Mri_surf2vol --mkmask --hemi lh --template /my_image.img --volregidentity mysubject --outvol outputvol_lh.img


_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
greve@nmr.mgh.harvard.edu
Phone Number: 617-724-2358 
Fax: 617-726-7422

In order to help us help you, please follow the steps in:
surfer.nmr.mgh.harvard.edu/fswiki/BugReporting