Download Sapera++ Programmer`s Manual

Transcript
SapLut::Gamma
virtual BOOL Gamma(float factor);
Parameters
factor
Gamma correction factor to apply
Return Value
Returns TRUE if successful, FALSE otherwise
Remarks
Modifies all LUT entries using inverse gamma correction with the specified factor. This is used to correct the
light response of the camera, which is often a power function (referred to as the gamma function). A factor of 1
means no correction is applied, and a normal LUT is computed instead.
SapLut | SapLut Class Members | Basic Class Hierarchy Chart
SapLut::Normal
virtual BOOL Normal();
Return Value
Returns TRUE if successful, FALSE otherwise
Remarks
Modifies all LUT entries using a linear mapping with a positive slope, as follows:
data[0] = minValue
(Linear mapping from data[0] to data[maxIndex])
data[maxIndex] = maxValue
SapLut | SapLut Class Members | Basic Class Hierarchy Chart
Sapera++ Programmer's Manual
Basic Class Reference • 233