ImgAdaptiveThreshold
Previous  Top  Next

Prototype

ImgAdaptiveThreshold (intImageHandle, intContrast, intBrightness, intLocalWidth, intLocalHeight)

Description

It convert a grayscale image applying adaptive thresholding. Each pixel of image is binarized using a local threshold value computed automatically analizing surrounding pixels in the specified window size. The process can be customized selecting the values of contrast and brighness for the resulting image.

Parameters

intImageHandle: integer value corresponding to the image handle.
intContrast: value specifying desired contrast for resulting image. Use -1 to enable automatic setting.
intBrightness: value specifying desired contrast for resulting image. Use -1 to enable automatic setting.
intLocalWidth: value specifying window width.
intLocalHeight: value specifying window height.

Returned value

None.

Example

//It applies adaptive thresholding, setting automatic best contrast calculation
ImgAdaptiveThreshold(_CurrentImage,-1,160,7,7);