Differences between revisions 2 and 3
 Deletions are marked like this. Additions are marked like this. Line 13: Line 13: The colortable matches the label with the structure name. It also gives color to each structure type. In matlab, the colortable structure can be dissected as follows. The colortable matches the label with the structure name. It also gives color to each structure type for visualization in tksurfer. In matlab, the colortable structure can be dissected as follows. Line 21: Line 21: ct.table = ct.numEntries x 5 matrix ct.table = ct.numEntries x 5 matrix. So row i describes the color and label of the ith structure. ct.table(1,j) specifies red color value of structure j (0 to 255). ct.table(2,j) specifies 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 basically all zeros. Finally ct.table(5,j) = ct.table(1,j) + ct.table(2,j)*2^8 + ct.table(3,j)*2^16 + 0*2^24 = label given to structure j. Therefore if vertex i is labeled structure j. Then label(i) = ct.table(5, j).

An annotation file contains labels of a surface, for example the sulci and gyri labels of a cortical surface.

Suppose N is the number of vertices. Then,

v = N x 1 vector, v(i) = i-1 (you can usually ignore v) L = N x 1 vector, L(i) = label of ith vertex of mesh ct = colortable structure

### What is a colortable?

The colortable matches the label with the structure name. It also gives color to each structure type for visualization in tksurfer. In matlab, the colortable structure can be dissected as follows.

ct.numEntries = # structures that are specified (scalar)

ct.orig_tab = where original colortable was found (string). It's mainly for book-keeping

ct.struct_names = list of structure names (cell). The number of strings should be equal to the number of entries. For example, ct.struct_names{1} could be 'central sulcus'

ct.table = ct.numEntries x 5 matrix. So row i describes the color and label of the ith structure. ct.table(1,j) specifies red color value of structure j (0 to 255). ct.table(2,j) specifies 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 basically all zeros. Finally ct.table(5,j) = ct.table(1,j) + ct.table(2,j)*28 + ct.table(3,j)*216 + 0*2^24 = label given to structure j.

Therefore if vertex i is labeled structure j. Then label(i) = ct.table(5, j).

AnnotFiles (last edited 2008-04-29 11:45:15 by localhost)
{"ft_lang_label":"__label__en","ft_lang_prob":0.6887314,"math_prob":0.9924898,"size":2486,"snap":"2021-43-2021-49","text_gpt3_token_len":673,"char_repetition_ratio":0.20507655,"word_repetition_ratio":0.563591,"special_character_ratio":0.28157684,"punctuation_ratio":0.17359856,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9942925,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-15T20:07:57Z\",\"WARC-Record-ID\":\"<urn:uuid:c6c3e2d7-e60b-4227-8599-cbfb95647877>\",\"Content-Length\":\"14217\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9c5ed2b3-86a6-49ce-98e9-f721fb05d21f>\",\"WARC-Concurrent-To\":\"<urn:uuid:d62509b2-9ab9-48e5-872c-7cb26d48f5f9>\",\"WARC-IP-Address\":\"132.183.240.105\",\"WARC-Target-URI\":\"https://surfer.nmr.mgh.harvard.edu/fswiki/AnnotFiles?action=diff&rev1=2&rev2=3\",\"WARC-Payload-Digest\":\"sha1:H5HH6EG6B3CWTWXVQCYSW7SDXXBRXOFC\",\"WARC-Block-Digest\":\"sha1:ZMTDPXH7V77KSG6S3CEKWI3HQJLU4IIJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323583083.92_warc_CC-MAIN-20211015192439-20211015222439-00331.warc.gz\"}"}