Description Usage Arguments Value
View source: R/volume_regions.R
Given a brain volume with integer labels as voxel values and a suitable colorLUT, extract the region names as a named list.
1 2 3 4 5 6 | name_regions(
volatlas,
colorlut,
ignore_not_in_lut = FALSE,
warn_not_in_lut = FALSE
)
|
volatlas |
3d integer array, the brain volume segmentation. Can be an |
colorlut |
a color lookup table data.frame, as returned by |
ignore_not_in_lut |
logical, whether to ignore regions that are not found in the colorLUT. If TRUE, the regions will not appear in the named output list. If FALSE, they will appear as 'region_x', where 'x' is the integer region code in the volatlas. |
warn_not_in_lut |
logical, whether to print a warning if some regions of the volume do not occur in the colorLUT. |
named list, the keys are character strings: the region names from the colorLUT, and the values are integers: the region codes from the volume.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.