ImgAdvancedThresholdDeviation |
Top Previous Next |
Prototype
ImgAdvancedThresholdDeviation(intImageHandle,intLocalWidth,intLocalHeight, intLocalContrast, intBrightness)
Description
Applies advanced thresholding to the image using standard deviation algo. For each pixel of the image its calculated its standard deviation analyzing surrounding pixels in the local window, and thresholded according.
Parameters
intImageHandle: integer value corresponding to the image handle.
intLocalWidth: value specifying window width.
intLocalHeight: value specifying window height.
intLocalContrast: reference value for evaluating standard deviation, 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. A low value produces a darker images, an high value produces a lighter image. Use -1 to allow auto-calculation of the best value for the image.
Returned value
None.
Example
// Applies advanced thresholding ImgAdvancedThresholdDeviation(_CurrentImage,7,7,128,128); |