gmlVisionBackgroundModel Class Reference

Detailed Description

Maintain a model of a static scene's background.

Public Member Functions

constructor args

-width : integer [320]
The width of the underlying image.
-height : integer [240]
The height of the underlying image.
-encoding : string [LRG_888]
The encoding of the underlying bitmap.
-map : bitmap instance [none]
If set, where to store the distance map.
-morph : list of strings [D D G]
What smoothing filters to apply.
-factor : float [0.5]
The learning rate for background (non-segmented) areas.

destructor

reset currentFrame

reset the model from the current frame

update currentFrame threshold { destMap {} }

update the model, given the currentFrame copy the update map to destMap if defined

distanceTo currentFrame destMap

compute in destMap the distance from the model to the currentFrame

copy args

map 'copy' to a call to 'gmlScan copy'

unknown args

map unknown methods to the model bitmap