Hugintrunk
0.1
|
Estimator for RANSAC based adjustment of pairwise parameters. More...
Public Member Functions | |
PTOptEstimator (PanoramaData &pano, int i1, int i2, double maxError, bool optHFOV, bool optB) | |
bool | estimate (const std::vector< const ControlPoint * > &points, std::vector< double > &p) const |
Perform exact estimate. More... | |
bool | leastSquaresEstimate (const std::vector< const ControlPoint * > &points, std::vector< double > &p) const |
bool | agree (std::vector< double > &p, const ControlPoint &cp) const |
~PTOptEstimator () | |
int | numForEstimate () const |
Public Attributes | |
CPVector | m_xy_cps |
std::vector< double > | m_initParams |
std::vector< OptVarSpec > | m_optvars |
Private Attributes | |
int | m_li1 |
int | m_li2 |
double | m_maxError |
PanoramaData * | m_localPano |
CPVector | m_cps |
std::vector< std::set < std::string > > | m_opt_first_pass |
std::vector< std::set < std::string > > | m_opt_second_pass |
int | m_numForEstimate |
Estimator for RANSAC based adjustment of pairwise parameters.
Definition at line 79 of file PTOptimizer.cpp.
|
inline |
optimisation for first pass
optimisation for second pass
Definition at line 84 of file PTOptimizer.cpp.
References DEBUG_DEBUG, HuginBase::PanoramaData::getCtrlPoints(), HuginBase::PanoramaData::getNewSubset(), m_cps, m_initParams, m_li1, m_li2, m_localPano, m_maxError, m_numForEstimate, m_opt_first_pass, m_opt_second_pass, m_optvars, m_xy_cps, HuginBase::ControlPoint::mode, and HuginBase::ControlPoint::X_Y.
|
inline |
Definition at line 248 of file PTOptimizer.cpp.
References m_localPano.
|
inline |
Definition at line 210 of file PTOptimizer.cpp.
References HuginBase::PTools::Transform::createInvTransform(), HuginBase::PTools::Transform::createTransform(), DEBUG_DEBUG, HuginBase::PanoramaData::getImage(), HuginBase::PanoramaData::getOptions(), HuginBase::ControlPoint::image1Nr, m_li1, m_li2, m_localPano, m_maxError, m_optvars, HuginBase::PTools::Transform::transformImgCoord(), HuginBase::ControlPoint::x1, HuginBase::ControlPoint::x2, HuginBase::ControlPoint::y1, and HuginBase::ControlPoint::y2.
|
inline |
Perform exact estimate.
This is actually a fake and just calles leastSquaresEstimate, as I don't know a closed form solution for fisheye images...
Definition at line 151 of file PTOptimizer.cpp.
References leastSquaresEstimate(), and m_initParams.
|
inline |
Definition at line 162 of file PTOptimizer.cpp.
References DEBUG_DEBUG, HuginBase::PanoramaData::getImage(), HuginBase::SrcPanoImage::getVar(), m_li1, m_li2, m_localPano, m_opt_first_pass, m_opt_second_pass, m_optvars, HuginBase::PTools::optimize(), HuginBase::PanoramaData::setCtrlPoints(), and HuginBase::PanoramaData::setOptimizeVector().
Referenced by estimate().
|
inline |
Definition at line 253 of file PTOptimizer.cpp.
References m_numForEstimate.
|
private |
Definition at line 267 of file PTOptimizer.cpp.
Referenced by PTOptEstimator().
std::vector<double> HuginBase::PTOptEstimator::m_initParams |
Definition at line 260 of file PTOptimizer.cpp.
Referenced by estimate(), HuginBase::RANSACOptimizer::findInliers(), and PTOptEstimator().
|
private |
Definition at line 264 of file PTOptimizer.cpp.
Referenced by agree(), leastSquaresEstimate(), and PTOptEstimator().
|
private |
Definition at line 264 of file PTOptimizer.cpp.
Referenced by agree(), leastSquaresEstimate(), and PTOptEstimator().
|
private |
Definition at line 266 of file PTOptimizer.cpp.
Referenced by agree(), leastSquaresEstimate(), PTOptEstimator(), and ~PTOptEstimator().
|
private |
Definition at line 265 of file PTOptimizer.cpp.
Referenced by agree(), and PTOptEstimator().
|
private |
Definition at line 270 of file PTOptimizer.cpp.
Referenced by numForEstimate(), and PTOptEstimator().
|
private |
Definition at line 268 of file PTOptimizer.cpp.
Referenced by leastSquaresEstimate(), and PTOptEstimator().
|
private |
Definition at line 269 of file PTOptimizer.cpp.
Referenced by leastSquaresEstimate(), and PTOptEstimator().
std::vector<OptVarSpec> HuginBase::PTOptEstimator::m_optvars |
Definition at line 261 of file PTOptimizer.cpp.
Referenced by agree(), HuginBase::RANSACOptimizer::findInliers(), leastSquaresEstimate(), and PTOptEstimator().
CPVector HuginBase::PTOptEstimator::m_xy_cps |
Definition at line 259 of file PTOptimizer.cpp.
Referenced by HuginBase::RANSACOptimizer::findInliers(), and PTOptEstimator().