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

Fine tunes the threshold calculation in the automatic adaptive image conversion mode (i.e., when IG_REC_IMG_CONVERSION_AUTO has been specified).

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_reduction_brightness_set(
   AT_INT Brightness
);

Arguments:

Name Type Description
Brightness AT_INT Brightness control of the automatic image conversion algorithm. The value range is between zero (0) and 100. A value of 0 tunes the conversion to give a lighter image, while a value of 100 results in a darker image. The default value is 50.

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.

Example:

 
Copy Code
AT_ERRCOUNT ErrCount = 0;
AT_INT nBrightness = 75;
ErrCount = IG_REC_reduction_brightness_set(nBrightness);

Remarks:

This function influences both the primary and the secondary image conversions. It has an effect only when the IG_REC_IMG_CONVERSION_AUTO image conversion mode has been specified.