ImgAdvancedThreshold
Previous  Top  Next

Prototype

ImgAdvancedThreshold (intImageHandle, intLocalSize, intLocalContrast)

Description

It applies advanced thresholding to image. Each pixel of image is binarized using a local threshold value computed automatically analizing surrounding pixels variance in the specified window size.

Parameters

intImageHandle: integer value corresponding to the image handle.
intLocalSize: local area width/height.
intLocalContrast: local area reference value.

Returned value

None.

Note

See ImgThreshold, ImgAutoThreshold, ImgDynamicThreshold, ImgEdgeThreshold for alternative threshold methods.



Example

//It applies autothresholding 
ImgAdvancedThreshold(_CurrentImage,9,20);

//It shows a message 
ApplicationLog(_CurrentAgent,'Advanced Thresholding');