Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
lfeat::Homography Class Reference

#include <Homography.h>

Public Member Functions

 Homography ()
 
 ~Homography ()
 
void initMatchesNormalization (PointMatchVector_t &iMatches)
 
bool estimate (PointMatchVector_t &iMatches)
 
void transformPoint (double iX, double iY, double &oX, double &oY)
 

Public Attributes

double _H [3][3]
 
int _nMatches
 
double _v1x
 
double _v2x
 
double _v1y
 
double _v2y
 

Private Member Functions

void initialize (void)
 
void addMatch (size_t iIndex, PointMatch &iMatch)
 
void allocMemory (int iNPoints)
 
void freeMemory ()
 

Private Attributes

double ** _Amat
 
double * _Bvec
 
double * _Rvec
 
double * _Xvec
 

Static Private Attributes

static const int kNCols = 8
 

Friends

std::ostream & operator<< (std::ostream &o, const Homography &H)
 

Detailed Description

Definition at line 32 of file Homography.h.

Constructor & Destructor Documentation

lfeat::Homography::Homography ( void  )

Definition at line 40 of file Homography.cpp.

References _Amat, _Bvec, _H, _Rvec, _v1x, _v1y, _v2x, _v2y, and _Xvec.

lfeat::Homography::~Homography ( )

Definition at line 92 of file Homography.cpp.

References _nMatches, and freeMemory().

Member Function Documentation

void lfeat::Homography::addMatch ( size_t  iIndex,
PointMatch iMatch 
)
private
void lfeat::Homography::allocMemory ( int  iNPoints)
private

Definition at line 59 of file Homography.cpp.

References _Amat, _Bvec, _nMatches, _Rvec, _Xvec, and kNCols.

Referenced by estimate().

bool lfeat::Homography::estimate ( PointMatchVector_t iMatches)
void lfeat::Homography::freeMemory ( )
private

Definition at line 75 of file Homography.cpp.

References _Amat, _Bvec, _nMatches, _Rvec, and _Xvec.

Referenced by estimate(), and ~Homography().

void lfeat::Homography::initialize ( void  )
private
void lfeat::Homography::initMatchesNormalization ( PointMatchVector_t iMatches)

Definition at line 100 of file Homography.cpp.

References _v1x, _v1y, _v2x, and _v2y.

Referenced by lfeat::Ransac::filter().

void lfeat::Homography::transformPoint ( double  iX,
double  iY,
double &  oX,
double &  oY 
)

Definition at line 172 of file Homography.cpp.

References _H, _v1x, _v1y, _v2x, and _v2y.

Referenced by lfeat::Ransac::calcError(), and lfeat::Ransac::transform().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Homography H 
)
friend

Definition at line 130 of file Homography.cpp.

Member Data Documentation

double** lfeat::Homography::_Amat
private

Definition at line 59 of file Homography.h.

Referenced by addMatch(), allocMemory(), estimate(), freeMemory(), and Homography().

double* lfeat::Homography::_Bvec
private

Definition at line 60 of file Homography.h.

Referenced by addMatch(), allocMemory(), estimate(), freeMemory(), and Homography().

double lfeat::Homography::_H[3][3]
int lfeat::Homography::_nMatches

Definition at line 66 of file Homography.h.

Referenced by allocMemory(), estimate(), freeMemory(), and ~Homography().

double* lfeat::Homography::_Rvec
private

Definition at line 61 of file Homography.h.

Referenced by allocMemory(), estimate(), freeMemory(), and Homography().

double lfeat::Homography::_v1x
double lfeat::Homography::_v1y
double lfeat::Homography::_v2x
double lfeat::Homography::_v2y
double* lfeat::Homography::_Xvec
private

Definition at line 62 of file Homography.h.

Referenced by allocMemory(), estimate(), freeMemory(), and Homography().

const int lfeat::Homography::kNCols = 8
staticprivate

Definition at line 52 of file Homography.h.

Referenced by allocMemory(), and estimate().


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