ImgDynamicThreshold
Previous  Top  Next

Prototype

ImgDynamicThreshold (intImageHandle, intMode, intLocalContrast, intLocalWidth,intLocalHeight)

Description

It convert a grayscale image applying dynamic 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 method to use and setting a local contrast parameter.

Parameters

intImageHandle: integer value corresponding to the image handle.
intMode: integer value that specifies the method used foe evaluating local contrast: ' 0 ' for MinMax; ' 1 ' for Average; '2' for Adaptive;
intLocalContrast: reference value for evaluating local contrast.
intLocalWidth: value specifying window width.
intLocalHeight: value specifying window height.

Returned value

None.

Example

//It applies dynamic thresholding 
ImgDynamicThreshold(_CurrentImage,1,16,7,7);