![]() Home Page Toolkit Overview Using GML User Input Services Finger Tracker Calibrator Frame Grabber Service protocol Obtaining GML Installing GML Licence Developer Documentation Tcl/Tk API The GML Canvas Image processing Tcl Scripts Library List of Classes List of Files C/C++ API List of Classes List of Files |
gmlVisionProjector Class ReferenceDetailed DescriptionObjects that manage projective transformations between two sets of coordinates. Public Member Functionsconstructor 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 }
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 |
Contact: julien (dot) letessier (at) gmail (dot) com.
Copyright (c) 2000-2007 CLIPS-IMAG Laboratory, Grenoble, France. All rights reserved. W3CXHTML 1.0 W3CCSS 2.0 |