That's perfect, Doug. Thank you so much!
David
-----Original Message----- From: Douglas N Greve [mailto:greve@nmr.mgh.harvard.edu] Sent: Thursday, November 03, 2011 2:22 PM To: David Grayson Cc: 'freesurfer@nmr.mgh.harvard.edu' Subject: Re: [Freesurfer] converting "annotation values" to "label codes"
When you created your custom annotation, you passed mris_label2annot a color table. If you numbered the entries in the color table from 1 to N, then the output volume should have values 1000+N (left) and 2000+N (right). You can verify this by loading the seg as both a segmentation and an overlay as I have described before. doug
David Grayson wrote:
Hi,
I have converted a custom-made annotation file to a volume, and now I am trying to find a table with the labels and their corresponding label codes (index values which are created when the annotation file is converted to a volume). I only have the “annotation values” or color codes for each region, which I found with the read_annotation() function in matlab. The online wiki states that this color code then has to be used to look up the label code, but it’s unclear to me how to do this.
Is there be a table somewhere so that I can cross-reference the color codes to the label codes?
Thank you,
David
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer