Hugin trunk 0.1
Loading...
Searching...
No Matches
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

◆ Homography()

lfeat::Homography::Homography ( void  )

Definition at line 40 of file Homography.cpp.

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

◆ ~Homography()

lfeat::Homography::~Homography ( )

Definition at line 92 of file Homography.cpp.

References _nMatches, and freeMemory().

Member Function Documentation

◆ addMatch()

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

Definition at line 139 of file Homography.cpp.

References _Amat, _Bvec, _v1x, _v1y, _v2x, _v2y, and threshold().

Referenced by estimate().

◆ allocMemory()

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

Definition at line 59 of file Homography.cpp.

References _Amat, _Bvec, _nMatches, _Rvec, _Xvec, kNCols, and threshold().

Referenced by estimate().

◆ estimate()

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

◆ freeMemory()

void lfeat::Homography::freeMemory ( )
private

Definition at line 75 of file Homography.cpp.

References _Amat, _Bvec, _nMatches, _Rvec, _Xvec, and threshold().

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

◆ initialize()

void lfeat::Homography::initialize ( void  )
private

◆ initMatchesNormalization()

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

Definition at line 100 of file Homography.cpp.

References _v1x, _v1y, _v2x, _v2y, and threshold().

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

◆ transformPoint()

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, _v2y, and threshold().

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

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 130 of file Homography.cpp.

Member Data Documentation

◆ _Amat

double** lfeat::Homography::_Amat
private

Definition at line 59 of file Homography.h.

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

◆ _Bvec

double* lfeat::Homography::_Bvec
private

Definition at line 60 of file Homography.h.

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

◆ _H

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

Definition at line 65 of file Homography.h.

Referenced by estimate(), lfeat::Ransac::filter(), Homography(), and transformPoint().

◆ _nMatches

int lfeat::Homography::_nMatches

Definition at line 66 of file Homography.h.

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

◆ _Rvec

double* lfeat::Homography::_Rvec
private

Definition at line 61 of file Homography.h.

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

◆ _v1x

double lfeat::Homography::_v1x

◆ _v1y

double lfeat::Homography::_v1y

◆ _v2x

double lfeat::Homography::_v2x

◆ _v2y

double lfeat::Homography::_v2y

◆ _Xvec

double* lfeat::Homography::_Xvec
private

Definition at line 62 of file Homography.h.

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

◆ kNCols

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: