Use the intensity values of the voxels in volume and lookup the respective colors in a colortable.
vol.overlay.colors.from.colortable(
volume,
colortable,
ignored_struct_indices = c(),
ignored_struct_names = c("unknown", "Unknown")
)
character string 3D array, the colors. Voxels in the volume which were not matched by the colortable are set to `NA` in it.
numeric 3D array, the values should be integers present in the `struct_index` column of the colortable. All other values will be assigned `NA` as a color.
a colortable, as returned by read.fs.colortable
, or a character string representing a path to a colortable file.
integer vector, `struct_index` entries in the colortable that should be ignored
vector of character strings, `struct_name` entries in the colortable that should be ignored. Can be combined with `ignored_struct_indices`.