ImageGear for C and C++ on Windows v19.1 - Updated
IG_IP_DCRaw_tone_LUT_build
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Image Processing Functions > IG_IP_DCRaw_tone_LUT_build

Builds tone correction LUT.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_IP_DCRaw_tone_LUT_build (
        AT_INT ChannelDepth,
        AT_DOUBLE Exposure,
        AT_DOUBLE Shadows,
        HIGLUT* ToneLUT
);

Arguments:

Name Type Description
ChannelDepth AT_INT Bit depth of the LUT.
Shadows AT_DOUBLE Amount by which to move the black point.
Exposure AT_DOUBLE Exposure compensation, in f/stops.
ToneLUT HIGLUT* Returns new LUT.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

The LUT moves image's black point by 2^16 / 1000 * Shadows, and adjusts white point according to Exposure parameter. Exposure parameter is measured in f/stops and works similar to modifying the camera exposure.