PLApplyBlackPointCompensation
Compliance, colour management
Description
Applies per-channel black point compensation to a rendered colour lookup table in place. Every channel is re-scaled with (value - Black) / (1 - Black) so the uncompensated source black lands exactly on the destination black, which is (0, 0, 0) in the LUT's normalised output, while white stays pinned: a channel value of 1 maps back to 1.
Negative results of the re-scale are clamped to 0. The function returns false without touching the LUT when any channel of the measured black is below 0 or has reached 0.999 or more, because a fully crushed channel leaves no range to compensate into.
Syntax
Delphi
Function PLApplyBlackPointCompensation(Var LUT: Array Of TPDFRGBColor;
Const Black: TPDFRGBColor): Boolean;Parameters
| LUT | The rendered colour lookup table, modified in place on success |
|---|---|
| Black | The uncompensated source black as it currently comes out of the LUT, with components in the 0 through 1 range |
Return values
| True | Every entry was re-scaled so the source black lands on (0, 0, 0) |
|---|---|
| False | A channel of Black is below 0 or at 0.999 or above; the LUT is left unchanged |
See also
ICCComponentTransforms, SetBlackPointCompensation, ICCBasedRendering