gmlVisionThresholder Class Reference

Detailed Description

Threshold a grayscale image, either automatically or using a given threshold

Public Member Functions

constructor args

Configurable parameters:

-auto : boolean [1]
whether the threshold should be chosen automatically
-timeout : integer [0]
after this many frames, auto-learning will stop
-learnRate : float [0.25]
smoothing factor for new threshold values
-threshold : integer [-1]
the currently chosen threshold
-representHisto : bitmap [none]
if set, a bitmap where to represent the computed histogram

destructor

process sourceFrame destFrame

Process the sourceFrame and place the thresholded result in destFrame