pal.RVV: Conversion of Hounsfied Units to Realistic Volume...

pal.RVVR Documentation

Conversion of Hounsfied Units to Realistic Volume Vizualization colors

Description

The RVV.pal function produces a color palette where Hounsfield Units in the range -1000 HU to 1000 HU are converted into realistically colorized virtual anatomy (for use with CT), developped by J.C. Silverstein and al [1]

Usage

pal.RVV(n, alpha = NULL, min.col = "#000000", max.col = "#FFFFFF")

Arguments

n

Integer, number of colors to be in the palette

alpha

Vector representing the opacity, in the range of 0 (transparent) to 1 (opaque). If alpha = NULL (default), all colors are opaque, and no alpha channel is added to the colors.

min.col, max.col

respectively the color below -1000HU (by default, black, i.e. "#000000") and above +1000HU (by default, white, i.e. "#FFFFFF")

Value

Returns a color-labeled vector of size n.

References

[1] \insertRefSILVERSTEIN2008927espadon

Examples

pal <- pal.RVV (256)

image (x = seq (-1000, 1000, length.out = 1024), y = 1,
       z = matrix (seq (-1100, 1100, length.out = 1024), ncol = 1),
       col = pal,
       main = "Realistic Volume Vizualization colors")

espadon documentation built on April 11, 2025, 5:57 p.m.