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

#include <ransac_estimators.h>

Collaboration diagram for tag::Homography:
Collaboration graph

Public Member Functions

 Homography ()
 
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< 3 > H
 homography More...
 

Static Public Attributes

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

Detailed Description

RANSAC estimator to compute an 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::Homography::Homography ( )
inline

References H.

Member Function Documentation

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

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

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

References tag::first_point(), H, and tag::second_point().

Referenced by isInlier().

Member Data Documentation

TooN::Matrix<3> tag::Homography::H

homography

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

const int tag::Homography::hypothesis_size = 4
static

minimal number of correspondences


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