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

#include <ransac_estimators.h>

Collaboration diagram for tag::CameraRotation:
Collaboration graph

Public Member Functions

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::SO3 rotation
 homography More...
 

Static Public Attributes

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

Detailed Description

RANSAC estimator to compute a camera rotation between two sets of rays: The rays are specified as 2D vectors on the camera plane. The minimal set are two corresponding pairs of rays.

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.

Member Function Documentation

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

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

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

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

Referenced by isInlier().

Member Data Documentation

const int tag::CameraRotation::hypothesis_size = 2
static

minimal number of correspondences

Referenced by estimate().

TooN::SO3 tag::CameraRotation::rotation

homography

Referenced by estimate(), and score().


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