Hi Sergey,
here's read_annotation.m. It should also return the embedded colormap that's in the .annot file, including structure names. Not sure why it's not in your distribution.
cheers, Bruce
On Sat, 8 Dec 2007, Sergey Plis wrote:
Thank you! Although I did not find the exact function you're describing, there is a function with the same name that has the following help:
help read_annotation
[annots] = read_annotation(fname) reads a binary annotation file into a vector
or this one
help freesurfer_read_annotation
freesurfer_read_annotation - reads a binary annotation file into a vector
[annots] = freesurfer_read_annotation(fname)
See also freesurfer_read_surf, freesurfer_read_curv, freesurfer_read_wfile
The vector returned has 7-8 digit numbers in it, and they do look like if they can be ROI labels. e.g:
label(1:1000:10000)
ans =
9182740 9182740 9182740 9182740 6558940 9182740 9221140 9182740 395788014433500
Now how do I tell which ROI these indices correspond to?
Thank you!
-- Sergey
On Dec 7, 2007, at 8:43 PM, Bruce Fischl wrote:
Hi Sergey,
In matlab you you can use read_annotation.m: