Dear Doug, I figured it out. I wanted to relate a set of points on the pial surface to their corresponding Desikan indices and label names. If
[vertices, label, colortable] = read_annotation([some-path '\rh.aparc.annot'], 0); x=unique(label); y=sort(colortable.table(:,5)); Points labeled with 0 in x would correspond to index 1639705 in y Label 3294840 in y does not correspond to any points on the surface, and sends to corpus callosum. Thank you, Octavian On Fri, Mar 6, 2015 at 10:18 AM, Douglas N Greve <gr...@nmr.mgh.harvard.edu> wrote: > > The 0 index is always "unknown". What problem does the other issue > cause? It may be that there are just some items in the color table that > are not represented in the annotation > doug > > On 03/05/2015 09:05 PM, Octavian Lie wrote: > > Dear Bruce, > > > > Reading the doc for read_annotation, it suggests that label entry > > values should correspond to the colortable.table(:,5) indices. I > > wanted to use it on Desikan annotation atlas and find annotation scout > > names for selected cortical points: > > > > > > > > [vertices, label, colortable] = read_annotation([some-path > > '\rh.aparc.annot'], 0); > > > > x=unique(label); > > y=sort(colortable.table(:,5)); > > > > it turns out that for any of several surfaces and their > > corresponding rh and lh aparc.annot I tried, x is not equal to y. > > Invariably, > > x contains a label index 0 not present in y, and y contains indices > > 1639705 and 3294840 not present in x. All the other label indices > > match. I do not believe destrieux annot atlas has the same problem, > > but I need to use desikan's. > > Please confirm this general behavior and advise. > > Thank you, as always, > > > > Octavian > > > > > > > > > > > > _______________________________________________ > > 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: 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. > >
_______________________________________________ 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.