My apologies the error is in the pathway. I did not add /mri to /Applications/freesurfer/subjects/Control20
Regards,
Stefano
----Messaggio originale----
Da: greve@nmr.mgh.harvard.edu
Data: 3-ott-2014 22.03
A: <freesurfer@nmr.mgh.harvard.edu>
Ogg: Re: [Freesurfer] mri_binarize error
does that file exist and do you have read permissions?
On 10/03/2014 04:02 PM, stdp82@virgilio.it wrote:
> Hi list
>
> I'm running
>
> mri_binarize --i aparc+aseg.mgz --match 1005 1008 1010 1025 1029 1031
> --o lh.parietal.nii.gz
>
> and I get this error:
>
> $Id: mri_binarize.c,v 1.26.2.1 2011/04/08 15:40:50 greve Exp $
> cwd /Applications/freesurfer/subjects/Control20
> cmdline mri_binarize --i aparc+aseg.mgz --match 1005 1008 1010 1025
> 1029 1031 --o lh.parietal.nii.gz
> sysname Darwin
> hostname iMac-di-Stefano.local
> machine x86_64
> user Stefano
>
> input aparc+aseg.mgz
> frame 0
> nErode3d 0
> nErode2d 0
> output lh.parietal.nii.gz
> Binarizing based on matching values
> nMatch 6
> 0 1005
> 1 1008
> 2 1010
> 3 1025
> 4 1029
> 5 1031
> binval 1
> binvalnot 0
> mghRead(/Applications/freesurfer/subjects//Control20/aparc+aseg.mgz,
> -1): could not open file
>
> Thanks
>
> Regards,
>
> 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
greve@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.