TooN Algorithm Library - tag  0.2
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tag::AffineHomography Struct Reference

#include <ransac_estimators.h>

Collaboration diagram for tag::AffineHomography:
Collaboration graph

Public Member Functions

 AffineHomography ()
 
template<class It >
void estimate (It begin, It end)
 
template<class M >
double score (const M &m) const
 
template<class M >
bool isInlier (const M &m, double r) const
 

Public Attributes

TooN::Matrix< 2 > A
 the linear part of the affine transformation More...
 
TooN::Vector< 2 > t
 the translation part of the affine transformation More...
 

Static Public Attributes

static const int hypothesis_size = 3
 minimal number of correspondences More...
 

Detailed Description

RANSAC estimator to compute an affine homography from a set of 2D-2D correspondences The observations passed (via iterators) to the estimate method must allow:

TooN::Vector<2> a = first_point(*it); // default value is "(*it).first"
TooN::Vector<2> b = second_point(*it); // default value is "(*it).second"
double R = noise(*it); // default value is "1.0"

The resulting transformation will map from a -> b.

Constructor & Destructor Documentation

tag::AffineHomography::AffineHomography ( )
inline

Member Function Documentation

template<class It >
void tag::AffineHomography::estimate ( It  begin,
It  end 
)
inline
template<class M >
bool tag::AffineHomography::isInlier ( const M &  m,
double  r 
) const
inline

References tag::noise(), and score().

template<class M >
double tag::AffineHomography::score ( const M &  m) const
inline

References A, tag::first_point(), tag::second_point(), and t.

Referenced by isInlier().

Member Data Documentation

TooN::Matrix<2> tag::AffineHomography::A

the linear part of the affine transformation

Referenced by estimate(), and score().

const int tag::AffineHomography::hypothesis_size = 3
static

minimal number of correspondences

TooN::Vector<2> tag::AffineHomography::t

the translation part of the affine transformation

Referenced by estimate(), and score().


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