Try using this instead:
mri_binarize --i file_created_by_vol_2_surf.mgz --min threshold --o 
bin.file_created_by_vol_2_surf.mgz
mri_cor2label --i bin.file_created_by_vol_2_surf.mgz --id 1 ---l 
yourlabel.label

On 02/27/2016 06:28 AM, std...@virgilio.it wrote:
> Hi list,
> I have read on your mail list that I could use the command line 
> reported below to covert vol to label.
> I'm confused on the matlab command line.
> Specifically, if I using an MRS voxel (in native space or MNI, as 
> preferred) located bilaterally of 3.0x3.0x3.0 mm, which are *lindex, 
> lxyz, ovals?*
>
> v = load_mgh('file_created_by_vol_2_surf.mgz');
> ind = find(v > threshold);
> write_label(ind-1, [], v(ind), 'label_file_want_to_create');
> Thanks,
> Stefano
>
>
> _______________________________________________
> 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: https://gate.nmr.mgh.harvard.edu/filedrop2
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