The reason this problem occurs is that there is no Unknown label in the colortable, which causes mris_divide_parcellation to segfault. After adding an Unknown label to the beginning of ColorTest.txt, these commands completed as expected.

On Wed, 18 Mar 2015, Victor Montal Blancafort wrote:

Thank you for your fast reply, Bruce.


(1)  *** mris_label2annot:

[ejones:test] (nmr-stable53-env) mris_label2annot --s fsaverage/ --h lh --ctab
ColorTest.txt --a test --l mask_region_ROIS.label
Reading ctab ColorTest.txt
Number of ctab entries 2

$Id: mris_label2annot.c,v 1.17 2011/03/02 00:04:32 nicks Exp $
cwd /autofs/cluster/animal/users/victor/test
cmdline mris_label2annot --s fsaverage/ --h lh --ctab ColorTest.txt --a test --l
mask_region_ROIS.label
sysname  Linux
hostname ejones
machine  x86_64
user     vmblanca

subject fsaverage/
hemi    lh
SUBJECTS_DIR /autofs/cluster/animal/users/victor/test
ColorTable ColorTest.txt
AnnotName  test
nlables 1
LabelThresh 0 0.000000
Loading /autofs/cluster/animal/users/victor/test/fsaverage//surf/lh.orig
 1 130 mask_atrophy
Mapping unhit to unknown
Found 163791 unhit vertices
Writing annot to
/autofs/cluster/animal/users/victor/test/fsaverage//label/lh.test.annot

(2) *** mris_divide_parcellation

mris_divide_parcellation fsaverage lh test.annot splittable.txt finalAnnot.split
reading colortable from annotation file...
colortable with 2 entries read (originally ColorTest.txt)
interpreting 4th command line arg as split file name
dividing mask_atrophy (1) into 2 parts
allocating new colortable with 2 additional units...
Segmentation fault (core dumped)

(3) Files values (splittable.txt && ColorTest.txt) in older mail.



Thank you in advance!
Victor Montal


_______________________________________________
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