readcolortable: Read binary colortable in v2 format.

readcolortableR Documentation

Read binary colortable in v2 format.

Description

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

Usage

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 May 29, 2024, 5:29 a.m.