lfeat::Homography Class Reference

#include <Homography.h>

List of all members.

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
int _currentPair
double _v1x
double _v2x
double _v1y
double _v2y

Private Member Functions

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

Private Attributes

double ** AA
double * B
double * X
double * r
double ** _Amat
double * _Bvec
double * _Rvec
double * _Xvec

Static Private Attributes

static const int kNCols = 8

Friends

ostreamoperator<< (ostream &o, const Homography &H)


Detailed Description

Definition at line 33 of file Homography.h.


Constructor & Destructor Documentation

lfeat::Homography::Homography (  ) 

Definition at line 43 of file Homography.cpp.

lfeat::Homography::~Homography (  ) 

Definition at line 80 of file Homography.cpp.

References _nMatches, and freeMemory().


Member Function Documentation

void lfeat::Homography::addMatch ( int  iIndex,
PointMatch iMatch 
) [private]

Definition at line 126 of file Homography.cpp.

References _Amat, _Bvec, lfeat::PointMatch::_img1_x, lfeat::PointMatch::_img1_y, lfeat::PointMatch::_img2_x, lfeat::PointMatch::_img2_y, _v1x, _v1y, _v2x, and _v2y.

Referenced by estimate().

void lfeat::Homography::allocMemory ( int  iNPoints  )  [private]

Definition at line 47 of file Homography.cpp.

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

Referenced by estimate().

bool lfeat::Homography::estimate ( PointMatchVector_t iMatches  ) 

Definition at line 169 of file Homography.cpp.

References _Amat, _Bvec, _H, _nMatches, _Rvec, _Xvec, addMatch(), allocMemory(), freeMemory(), lfeat::Givens(), and kNCols.

void lfeat::Homography::freeMemory (  )  [private]

Definition at line 63 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 88 of file Homography.cpp.

References _v1x, _v1y, _v2x, and _v2y.

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

Definition at line 159 of file Homography.cpp.

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

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


Friends And Related Function Documentation

ostream& operator<< ( ostream o,
const Homography H 
) [friend]

Definition at line 117 of file Homography.cpp.


Member Data Documentation

double** lfeat::Homography::_Amat [private]

Definition at line 63 of file Homography.h.

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

double* lfeat::Homography::_Bvec [private]

Definition at line 64 of file Homography.h.

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

int lfeat::Homography::_currentPair

Definition at line 71 of file Homography.h.

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

Definition at line 69 of file Homography.h.

Referenced by estimate(), lfeat::operator<<(), and transformPoint().

int lfeat::Homography::_nMatches

Definition at line 70 of file Homography.h.

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

double* lfeat::Homography::_Rvec [private]

Definition at line 65 of file Homography.h.

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

double lfeat::Homography::_v1x

Definition at line 74 of file Homography.h.

Referenced by addMatch(), initMatchesNormalization(), and transformPoint().

double lfeat::Homography::_v1y

Definition at line 74 of file Homography.h.

Referenced by addMatch(), initMatchesNormalization(), and transformPoint().

double lfeat::Homography::_v2x

Definition at line 74 of file Homography.h.

Referenced by addMatch(), initMatchesNormalization(), and transformPoint().

double lfeat::Homography::_v2y

Definition at line 74 of file Homography.h.

Referenced by addMatch(), initMatchesNormalization(), and transformPoint().

double* lfeat::Homography::_Xvec [private]

Definition at line 66 of file Homography.h.

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

double** lfeat::Homography::AA [private]

Definition at line 53 of file Homography.h.

double* lfeat::Homography::B [private]

Definition at line 54 of file Homography.h.

const int lfeat::Homography::kNCols = 8 [static, private]

Definition at line 56 of file Homography.h.

Referenced by allocMemory(), and estimate().

double * lfeat::Homography::r [private]

Definition at line 54 of file Homography.h.

double * lfeat::Homography::X [private]

Definition at line 54 of file Homography.h.


The documentation for this class was generated from the following files:
Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7