Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Homography Class Reference

#include <Homography.h>


Detailed Description

Definition at line 8 of file Homography.h.

List of all members.

Public Member Functions

 Homography ()
void project (float x, float y, float &correctedX, float &correctedY)
 Projects (x,y) to the corrected values (correctedX, correctedY) based off the homography matrix.
void invertProjection (float correctedX, float correctedY, float &x, float &y)
 Inverts (correctedX, correctedY) to the original values (x,y) from the homography matrix inverse.
fmat::Matrix< 3, 3 > & getMatrix ()
 Returns the homography so far, recomputes H if out of date.
fmat::Matrix< 3, 3 > & getMatrixInverse ()
void addCorrespondence (double actualx, double actualy, double imagex, double imagey)
 Adds a correspondence to the list. actualx and actualy are the corrected values, imagex and imagey are the perceived values.

Private Attributes

fmat::Matrix< 9, 9 > A
 The matrix that holds the correspondences.
fmat::Matrix< 3, 3 > h
 The matrix that holds the computed homography.
fmat::Matrix< 3, 3 > hInv
 The matrix that holds the inverse of the computed homography.
bool isDirty
 Whether the homography is out of date with how many correspondences have been added.

Constructor & Destructor Documentation

Homography::Homography (  ) 

Definition at line 21 of file Homography.h.


Member Function Documentation

void Homography::addCorrespondence ( double  actualx,
double  actualy,
double  imagex,
double  imagey 
)

Adds a correspondence to the list. actualx and actualy are the corrected values, imagex and imagey are the perceived values.

Definition at line 99 of file Homography.h.

fmat::Matrix<3,3>& Homography::getMatrix (  ) 

Returns the homography so far, recomputes H if out of date.

Definition at line 61 of file Homography.h.

Referenced by getMatrixInverse(), and project().

fmat::Matrix<3,3>& Homography::getMatrixInverse (  ) 

Definition at line 92 of file Homography.h.

Referenced by invertProjection().

void Homography::invertProjection ( float  correctedX,
float  correctedY,
float x,
float y 
)

Inverts (correctedX, correctedY) to the original values (x,y) from the homography matrix inverse.

Definition at line 48 of file Homography.h.

void Homography::project ( float  x,
float  y,
float correctedX,
float correctedY 
)

Projects (x,y) to the corrected values (correctedX, correctedY) based off the homography matrix.

Definition at line 34 of file Homography.h.


Member Data Documentation

fmat::Matrix<9,9> Homography::A [private]

The matrix that holds the correspondences.

Definition at line 10 of file Homography.h.

Referenced by addCorrespondence(), getMatrix(), and Homography().

fmat::Matrix<3,3> Homography::h [private]

The matrix that holds the computed homography.

Definition at line 12 of file Homography.h.

Referenced by getMatrix(), and Homography().

The matrix that holds the inverse of the computed homography.

Definition at line 14 of file Homography.h.

Referenced by getMatrix(), getMatrixInverse(), and Homography().

bool Homography::isDirty [private]

Whether the homography is out of date with how many correspondences have been added.

Definition at line 17 of file Homography.h.

Referenced by addCorrespondence(), and getMatrix().


The documentation for this class was generated from the following file:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:09 2016 by Doxygen 1.6.3