PLLookup3DRGB
Compliance, colour management
Description
Interpolates a colour out of a three-dimensional RGB lookup table using trilinear interpolation. The table is indexed with red as the fastest axis and blue as the slowest, matching the layout produced by PLInitGroupColorLUT, and the input components are clamped to the 0 through 1 range before the surrounding grid cell is located.
When Grid is below 2 or the table holds fewer than Grid cubed entries, the result is black; this keeps a partially initialised LUT silent instead of raising an exception.
Syntax
Delphi
Procedure PLLookup3DRGB(Const Table: Array Of TPDFRGBColor; Grid: Integer;
R, G, B: Double; Out OutRGB: TPDFRGBColor);Parameters
| Table | The Grid by Grid by Grid array of RGB entries, laid out as ((B * Grid + G) * Grid + R) |
|---|---|
| Grid | Number of grid points per axis; 17 for the group colour LUTs |
| R, G, B | The source colour, each component clamped to 0 through 1 |
| OutRGB | Receives the weighted result of the eight surrounding cell corners |
See also
ICCComponentTransforms, ICCBasedRendering, ParseICCProfileHeader