Hugintrunk
0.1
|
Pairwise ransac optimisation. More...
#include <PTOptimizer.h>
Public Types | |
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. More... | |
virtual bool | runAlgorithm () |
calls PTools::optimize() More... | |
Public Member Functions inherited from HuginBase::PanoramaAlgorithm | |
virtual | ~PanoramaAlgorithm () |
virtual bool | hasRunSuccessfully () |
virtual void | run () |
runs the algorithm. More... | |
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 |
Additional Inherited Members | |
Protected Member Functions inherited from HuginBase::PanoramaAlgorithm | |
PanoramaAlgorithm (PanoramaData &panorama) | |
Protected Attributes inherited from HuginBase::PanoramaAlgorithm | |
PanoramaData & | o_panorama |
bool | o_successful |
Pairwise ransac optimisation.
Definition at line 66 of file PTOptimizer.h.
Enumerator | |
---|---|
AUTO | |
HOMOGRAPHY | |
RPY | |
RPYV | |
RPYVB |
Definition at line 69 of file PTOptimizer.h.
|
inline |
Definition at line 72 of file PTOptimizer.h.
|
inlinevirtual |
Definition at line 78 of file PTOptimizer.h.
|
static |
Definition at line 274 of file PTOptimizer.cpp.
References AUTO, Ransac::compute(), DEBUG_DEBUG, HOMOGRAPHY, HuginBase::PTOptEstimator::m_initParams, HuginBase::PTOptEstimator::m_optvars, HuginBase::PTOptEstimator::m_xy_cps, RPY, RPYV, RPYVB, and HuginBase::PanoramaData::updateVariable().
Referenced by PanoDetector::RansacMatchesInPairCam(), and runAlgorithm().
|
inlinevirtual |
returns true if the algorithm changes the PanoramaData.
Implements HuginBase::PanoramaAlgorithm.
Definition at line 84 of file PTOptimizer.h.
|
virtual |
calls PTools::optimize()
Implements HuginBase::PanoramaAlgorithm.
Definition at line 314 of file PTOptimizer.cpp.
References findInliers(), o_i1, o_i2, o_inliers, o_maxError, o_mode, and HuginBase::PanoramaAlgorithm::o_panorama.
|
private |
Definition at line 94 of file PTOptimizer.h.
Referenced by runAlgorithm().
|
private |
Definition at line 94 of file PTOptimizer.h.
Referenced by runAlgorithm().
|
private |
Definition at line 96 of file PTOptimizer.h.
Referenced by runAlgorithm().
|
private |
Definition at line 95 of file PTOptimizer.h.
Referenced by runAlgorithm().
|
private |
Definition at line 97 of file PTOptimizer.h.
Referenced by runAlgorithm().