HuginBase::RANSACOptimizer Class Reference

Pairwise ransac optimisation. More...

#include <PTOptimizer.h>

Inheritance diagram for HuginBase::RANSACOptimizer:

Inheritance graph
[legend]
List of all members.

Public Types

 AUTO
 HOMOGRAPHY
 RPY
 RPYV
 RPYVB
enum  Mode {
  AUTO, HOMOGRAPHY, RPY, RPYV,
  RPYVB
}

Public Member Functions

 RANSACOptimizer (PanoramaData &panorama, int i1, int i2, double maxError, Mode mode=RPY)
virtual ~RANSACOptimizer ()
virtual bool modifiesPanoramaData () const
 returns true if the algorithm changes the PanoramaData.
virtual bool runAlgorithm ()
 calls PTools::optimize()

Static Public Member Functions

static std::vector< int > findInliers (PanoramaData &pano, int i1, int i2, double maxError, Mode mode=RPY)

Private Attributes

int o_i1
int o_i2
double o_maxError
std::vector< int > o_inliers
Mode o_mode

Detailed Description

Pairwise ransac optimisation.

Definition at line 66 of file PTOptimizer.h.


Member Enumeration Documentation

enum HuginBase::RANSACOptimizer::Mode

Enumerator:
AUTO 
HOMOGRAPHY 
RPY 
RPYV 
RPYVB 

Definition at line 69 of file PTOptimizer.h.


Constructor & Destructor Documentation

HuginBase::RANSACOptimizer::RANSACOptimizer ( PanoramaData panorama,
int  i1,
int  i2,
double  maxError,
Mode  mode = RPY 
) [inline]

Definition at line 72 of file PTOptimizer.h.

virtual HuginBase::RANSACOptimizer::~RANSACOptimizer (  )  [inline, virtual]

Definition at line 78 of file PTOptimizer.h.


Member Function Documentation

std::vector< int > HuginBase::RANSACOptimizer::findInliers ( PanoramaData pano,
int  i1,
int  i2,
double  maxError,
Mode  mode = RPY 
) [static]

Definition at line 275 of file PTOptimizer.cpp.

References AUTO, Ransac::compute(), DEBUG_DEBUG, HOMOGRAPHY, HuginBase::PTOptEstimator::m_initParams, HuginBase::OptVarSpec::m_name, HuginBase::PTOptEstimator::m_optvars, HuginBase::PTOptEstimator::m_xy_cps, RPY, RPYV, RPYVB, and HuginBase::PanoramaData::updateVariable().

Referenced by PanoDetector::RansacMatchesInPairCam(), and runAlgorithm().

virtual bool HuginBase::RANSACOptimizer::modifiesPanoramaData (  )  const [inline, virtual]

returns true if the algorithm changes the PanoramaData.

Implements HuginBase::PanoramaAlgorithm.

Definition at line 84 of file PTOptimizer.h.

bool HuginBase::RANSACOptimizer::runAlgorithm (  )  [virtual]

calls PTools::optimize()

Implements HuginBase::PanoramaAlgorithm.

Definition at line 316 of file PTOptimizer.cpp.

References findInliers(), o_i1, o_i2, o_inliers, o_maxError, o_mode, and HuginBase::PanoramaAlgorithm::o_panorama.


Member Data Documentation

int HuginBase::RANSACOptimizer::o_i1 [private]

Definition at line 94 of file PTOptimizer.h.

Referenced by runAlgorithm().

int HuginBase::RANSACOptimizer::o_i2 [private]

Definition at line 94 of file PTOptimizer.h.

Referenced by runAlgorithm().

std::vector<int> HuginBase::RANSACOptimizer::o_inliers [private]

Definition at line 96 of file PTOptimizer.h.

Referenced by runAlgorithm().

double HuginBase::RANSACOptimizer::o_maxError [private]

Definition at line 95 of file PTOptimizer.h.

Referenced by runAlgorithm().

Mode HuginBase::RANSACOptimizer::o_mode [private]

Definition at line 97 of file PTOptimizer.h.

Referenced by runAlgorithm().


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