ImgAdvancedThresholdVariance |
Top Previous Next |
Prototype
ImgAdvancedThresholdVariance(intImageHandle,intLocalWidth,intLocalHeight, intLocalContrast, intBrightness)
Description
Applies advanced thresholding to the image using variance algo. For each pixel of the image its calculated its variance 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 variance,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); |