readcolortable: Read binary colortable in v2 format.

Description Usage Arguments Value

Description

Read a v2 format colortable from a connection to a binary file.

Usage

1
readcolortable(fh, ctable_num_entries)

Arguments

fh

file handle

ctable_num_entries

number of entries to read

Value

named list, the color table. The named entries are: "num_entries": int, number of brain structures. "struct_names": vector of strings, the brain structure names. "table": numeric matrix with num_entries rows and 5 colums. The 5 columns are: 1 = color red channel, 2=color blue channel, 3=color green channel, 4=color alpha channel, 5=unique color code.


freesurferformats documentation built on Feb. 11, 2022, 5:06 p.m.