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

Specifies the threshold parameter of an image conversion to a bi-tonal image.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_reduction_threshold_set(
   AT_INT Threshold
);

Arguments:

Name Type Description
Threshold AT_INT The image conversion threshold value to be set. Its range is between zero (0) and 255, default: 128.

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 nThreshold = 100; 
ErrCount = IG_REC_reduction_threshold_set(nThreshold);

Remarks:

This parameter has an effect only when the IG_REC_IMG_CONVERSION_SET image conversion mode has been set.