vis.seg.legend: Plot legend for a brain volume segmentation based on...

vis.seg.legendR Documentation

Plot legend for a brain volume segmentation based on colorLUT.

Description

Plot legend for a brain volume segmentation based on colorLUT.

Usage

vis.seg.legend(colortable, segvol, ...)

Arguments

colortable

a colortable data.frame, or a character string, which will be treated as a filename and loaded with read.fs.colortable. Typically FS_HOME/FreeSurferColorLUT.txt.

segvol

optional 3D or 4D array of integer data, the brain segmentation. Or a character string, which will be treated as a filename and loaded with read.fs.volume. If given, only colortable entries which actually occur in the volume data are plotted. If NULL, all entries are plotted, which may be a lot.

...

passed on to vis.colortable.legend

Examples

## Not run: 
ct = file.path(fs.home(), "FreeSurferColorLUT.txt");
seg = file.path(fs.home(), "subjects", "fsaverage", "mri", "aseg.mgz");
vis.seg.legend(ct, seg);


## End(Not run)


dfsp-spirit/nitools documentation built on Jan. 26, 2024, 8:24 p.m.