GammaRamp

Contains a gamma ramp. LUM_BASETYPE and PIX_BASETYPE should be numeric types indicating the channel type for the colors that will be converted.

Constructors

this
this(double gamma)

Create a GammaRamp with the given gamma value.

this
this(ColorSpace colorSpace)

Create a GammaRamp with the given colorspace.

Members

Functions

lum2pix
auto lum2pix(LUMCOLOR c)

Convert linear luminosity to pixel value.

pix2lum
auto pix2lum(PIXCOLOR c)

Convert pixel value to linear luminosity.

Variables

lum2pixValues
PIX_BASETYPE[LUM_BASETYPE.max + 1] lum2pixValues;

Calculated gamma ramp table.

pix2lumValues
LUM_BASETYPE[PIX_BASETYPE.max + 1] pix2lumValues;

Calculated gamma ramp table.

Meta