gmlVisionCalibrator Class Reference

Detailed Description

Manages 2D-2D calibration between a fixed video camera and a display surface.

Public Member Functions

constructor {feedback 0}

destructor

createImage rect nbCells

Return the calibration image description. The image description is a list of graphical items. Each item consists in a list of parameters that can be passed directly to the create method of a canvas.

surfaceWidth : integer
width in display units of the calibrated surface
surfaceHeight : integer
height in display units of the calibrated surface
nbCells : integer
maximum number of cells to create along each axis.

detectBlobs bitmapName_t0 bitmapName_t1

Find the centers of the blobs, given image bitmapName_t0 captured before displaying the blobs, and bitmapName_t1 captured while the blobs are displayed.

Return the centers as a list of (x,y) couples.

TODO: use ImageDifferences here

compute

Run the calibration process.

If feedback is 1 or above, output textual feedback. If feedback is 2 or above, display graphical feedback in a window.