gmlVisionProjector Class Reference

Detailed Description

Objects that manage projective transformations between two sets of coordinates.

Public Member Functions

constructor

No arguments.

destructor

reset

Forget all established point correspondences, and set the current matrices to the unit transformation.

add x0 y0 x1 y1

Add a correspondence between point x0, y0 in reference frame 0 and point x1, y1 in frame 1.

apply x0 y0 { reverse 0 }

Determine the point in reference frame 1 that corresponds to point (x,y) in reference frame 0. If reverse is true, do the oppostite conversion. Warning: compute should be called beforehand.

compute { limit 2.0 } { maxIter 10 }

Using the correspondences feeded using add, compute the forward and reverse transformation matrices.

limit
The maximum tolerated error.
maxIter
The maximum number of algorithm iterations.

compute_once points0 points1

Compute the forward and reverse transformation matrices, using the argument points0 to points1 correspondences.

merr

Return the mean error over the learning set.

load fileName

save fileName

getMatrix

setMatrix data