Hi, just a quick question, I am reading my annotation files into matlab following:
[v, L, ct] = read_annotation(annotation_filename);
Suppose N is the number of vertices. Then,
(1) v = N x 1 vector, v(i) = i-1 (you can usually ignore v)
(2) L = N x 1 vector, L(i) = label of ith vertex of mesh
(3) ct = colortable structure
But I cannot interpret the L vector. For example if the lable of a vertex is 126465, what's the label?
Going back to the color table, we have R G B , is there are relationship between these L's and the R G B's?
sorry I just had to continue reading:)
ct.table = ct.numEntries x 5 matrix. Row i describes the color and label of the ith structure. ct.table(1,j) specifies the red color value of structure j (0 to 255). ct.table(2,j) specifies the green color value of structure j (0 to 255). ct.table(3, j) specifies the blue color value of structure j (0 to 255). ct.table(4,j) is all zeros (and is currently not used for anything). Finally ct.table(5,j) = ct.table(1,j) + ct.table(2,j)*28 + ct.table(3,j)*216 + 0*224 = label given to structure j.
Therefore if vertex i is labeled structure j. Then L(i) = ct.table(5, j).
On 2/9/07, Nurunisa Neyzi nneyzi@gmail.com wrote:
Hi, just a quick question, I am reading my annotation files into matlab following:
[v, L, ct] = read_annotation(annotation_filename);
Suppose N is the number of vertices. Then,
(1) v = N x 1 vector, v(i) = i-1 (you can usually ignore v)
(2) L = N x 1 vector, L(i) = label of ith vertex of mesh
(3) ct = colortable structure
But I cannot interpret the L vector. For example if the lable of a vertex is 126465, what's the label?
Going back to the color table, we have R G B , is there are relationship between these L's and the R G B's?
freesurfer@nmr.mgh.harvard.edu