Petr,

>From what directory is the command being run?  If the directory
'temp/label/' doesnt exist in that dir, it will fail.  You can also just
put the full pathname to the output file (arg of trglabel).

Nick



On Sat, 2009-08-15 at 01:07 +0200, p.s.bjer...@studmed.uio.no wrote:
> Hi,
> 
> Have a question regarding the mri_label2label function. Trying to test it
> for a subject (called "temp"). It seems to exit on writing the label file
> in the subject folder. There should not be any problems with the write
> permissions. Any idea? This is what I get (from command line):
> 
> ------------------------------------------------------------------
> 
> [ceci...@rossetti ~]$ mri_label2label --srclabel
> /home/Cecilie/cpi_cortex/old_study/Labels/wais_doss_vs_diff_lh_stg.label
> --srcsubject avg_hubin --trgsubject temp --trglabel
> temp/label/wais_doss_vs_diff_lh_stg.label --regmethod surface --srchemi lh
> --trghemi lh
> 
> srclabel =
> /home/Cecilie/cpi_cortex/old_study/Labels/wais_doss_vs_diff_lh_stg.label
> srcsubject = avg_hubin
> trgsubject = temp
> trglabel = temp/label/wais_doss_vs_diff_lh_stg.label
> regmethod = surface
> 
> srchemi = lh
> trghemi = lh
> trgsurface = white
> srcsurfreg = sphere.reg
> trgsurfreg = sphere.reg
> usehash = 1
> Use ProjAbs  = 0, 0
> Use ProjFrac = 0, 0
> 
> SUBJECTS_DIR    is /home/Cecilie/subjects
> FREESURFER_HOME is /usr/local/freesurfer_3.0.2
> Loading source label.
> Found 21245 points in source label.
> Starting surface-based mapping
> Reading source registration
>  /home/Cecilie/subjects/avg_hubin/surf/lh.sphere.reg
> Rescaling ...  original radius = 100
> Reading target surface
>  /home/Cecilie/subjects/temp/surf/lh.white
> Reading target registration
>  /home/Cecilie/subjects/temp/surf/lh.sphere.reg
> Rescaling ...  original radius = 100
> Building target registration hash (res=16).
> INFO: found  21245 nlabel points
> Performing mapping from target back to the source label
> Building source registration hash (res=16).
> Number of reverse mapping hits = 3907
> Checking for and removing duplicates
> Writing label file temp/label/wais_doss_vs_diff_lh_stg.label
> LabelWrite: saving to temp/label/wais_doss_vs_diff_lh_stg.label
> mri_label2label: could not open label file
> temp/label/wais_doss_vs_diff_lh_stg.label
> No such file or directory
> ERROR: writing label file
> mri_label2label: Done
> 
> -----------------------------------------------------------------
> 
> Petr
> 
> 
> _______________________________________________
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
> 
> 

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

Reply via email to