That's perfect, Doug. Thank you so much!

David

-----Original Message-----
From: Douglas N Greve [mailto:gr...@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

-- 
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: www.nmr.mgh.harvard.edu/facility/filedrop/index.html



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.

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

Reply via email to