On 12/17/2012 05:56 PM, octavian lie wrote:
> Dear All,
>
> I have created a volume of interest in itksnap and imported it in FS
> as a .mgz volume filled binary mask. How can I:
> 1. export it from FS in matlab and generate a .mat array containing
> only the volume pixels within the volume (intensity 1) ?
You can use MRIread, like
a = MRIread('youfile.mgz');
ind = find(a.vol);
save('ind.mat','ind');

>
> 2. Is there a way to generate a 3D surface mesh of the boundary of the
> volume of interest, as, for example, with the brain pial surface? If
> not, is there a way to import into FS formats such as VTK, STL or BYU
> meshes?
Try
mri_tesselate yourfile.mgz 1 yoursurface
>
> Thank you,
>
> Octavian
> _______________________________________________
> 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
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Reply via email to