ImgAdaptiveThresholdAverage |
Top Previous Next |
Prototype
ImgAdaptiveThresholdAverage (intImageHandle, intLocalWidth,intLocalHeight, intLocalContrast, intBrightness)
Description
Converts a grayscale image applying adaptive thresholding based on average algo. Each pixel in not homogeneous areas its it's binarized using the local threshold computed automatically averaging the pixels in the local window. The process can be customized selecting local windows size, local contrast and global brightness.
Parameters
intImageHandle: integer value corresponding to the image handle.
intLocalWidth: value specifying window width.
intLocalHeight: value specifying window height.
intLocalContrast: reference value for evaluating homogeneous area, between 0 and 255. Use -1 to allow auto-calculation of the best value for the image.
intBrightness: global brightness of resulting image, between 0 and 255. Low values produces a darker images, high values produce a lighter image. Use -1 to allow auto-calculation of the best value for the image.
Returned value
None.
Example
// Applies adaptive thresholding average ImgAdaptiveThresholdAverage(_CurrentImage,7,7,20,128); |