HuginBase::PTOptEstimator Class Reference

Estimator for RANSAC based adjustment of pairwise parameters. More...

List of all members.

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.
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< OptVarSpecm_optvars

Private Attributes

int m_li1
int m_li2
double m_maxError
PanoramaDatam_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


Detailed Description

Estimator for RANSAC based adjustment of pairwise parameters.

Definition at line 77 of file PTOptimizer.cpp.


Constructor & Destructor Documentation

HuginBase::PTOptEstimator::PTOptEstimator ( PanoramaData pano,
int  i1,
int  i2,
double  maxError,
bool  optHFOV,
bool  optB 
) [inline]

Definition at line 82 of file PTOptimizer.cpp.

References DEBUG_DEBUG, HuginBase::OptVarSpec::get(), HuginBase::PanoramaData::getCtrlPoints(), HuginBase::PanoramaData::getNewSubset(), m_cps, HuginBase::OptVarSpec::m_img, m_initParams, m_li1, m_li2, m_localPano, m_maxError, HuginBase::OptVarSpec::m_name, m_numForEstimate, m_opt_first_pass, m_opt_second_pass, m_optvars, m_xy_cps, HuginBase::ControlPoint::mode, and HuginBase::ControlPoint::X_Y.

HuginBase::PTOptEstimator::~PTOptEstimator (  )  [inline]

Definition at line 249 of file PTOptimizer.cpp.

References m_localPano.


Member Function Documentation

bool HuginBase::PTOptEstimator::agree ( std::vector< double > &  p,
const ControlPoint cp 
) const [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::OptVarSpec::set(), HuginBase::PTools::Transform::transformImgCoord(), HuginBase::ControlPoint::x1, HuginBase::ControlPoint::x2, HuginBase::ControlPoint::y1, and HuginBase::ControlPoint::y2.

bool HuginBase::PTOptEstimator::estimate ( const std::vector< const ControlPoint * > &  points,
std::vector< double > &  p 
) const [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 149 of file PTOptimizer.cpp.

References leastSquaresEstimate(), and m_initParams.

bool HuginBase::PTOptEstimator::leastSquaresEstimate ( const std::vector< const ControlPoint * > &  points,
std::vector< double > &  p 
) const [inline]

Definition at line 160 of file PTOptimizer.cpp.

References DEBUG_DEBUG, HuginBase::OptVarSpec::get(), HuginBase::PanoramaData::getImage(), HuginBase::SrcPanoImage::getVar(), m_li1, m_li2, m_localPano, HuginBase::OptVarSpec::m_name, m_opt_first_pass, m_opt_second_pass, m_optvars, HuginBase::PTools::optimize(), HuginBase::OptVarSpec::set(), HuginBase::PanoramaData::setCtrlPoints(), and HuginBase::PanoramaData::setOptimizeVector().

Referenced by estimate().

int HuginBase::PTOptEstimator::numForEstimate (  )  const [inline]

Definition at line 254 of file PTOptimizer.cpp.

References m_numForEstimate.


Member Data Documentation

CPVector HuginBase::PTOptEstimator::m_cps [private]

Definition at line 268 of file PTOptimizer.cpp.

Referenced by PTOptEstimator().

std::vector<double> HuginBase::PTOptEstimator::m_initParams

Definition at line 261 of file PTOptimizer.cpp.

Referenced by estimate(), HuginBase::RANSACOptimizer::findInliers(), and PTOptEstimator().

int HuginBase::PTOptEstimator::m_li1 [private]

Definition at line 265 of file PTOptimizer.cpp.

Referenced by agree(), leastSquaresEstimate(), and PTOptEstimator().

int HuginBase::PTOptEstimator::m_li2 [private]

Definition at line 265 of file PTOptimizer.cpp.

Referenced by agree(), leastSquaresEstimate(), and PTOptEstimator().

PanoramaData* HuginBase::PTOptEstimator::m_localPano [private]

Definition at line 267 of file PTOptimizer.cpp.

Referenced by agree(), leastSquaresEstimate(), PTOptEstimator(), and ~PTOptEstimator().

double HuginBase::PTOptEstimator::m_maxError [private]

Definition at line 266 of file PTOptimizer.cpp.

Referenced by agree(), and PTOptEstimator().

int HuginBase::PTOptEstimator::m_numForEstimate [private]

Definition at line 271 of file PTOptimizer.cpp.

Referenced by numForEstimate(), and PTOptEstimator().

std::vector<std::set<std::string> > HuginBase::PTOptEstimator::m_opt_first_pass [private]

Definition at line 269 of file PTOptimizer.cpp.

Referenced by leastSquaresEstimate(), and PTOptEstimator().

std::vector<std::set<std::string> > HuginBase::PTOptEstimator::m_opt_second_pass [private]

Definition at line 270 of file PTOptimizer.cpp.

Referenced by leastSquaresEstimate(), and PTOptEstimator().

std::vector<OptVarSpec> HuginBase::PTOptEstimator::m_optvars

Definition at line 262 of file PTOptimizer.cpp.

Referenced by agree(), HuginBase::RANSACOptimizer::findInliers(), leastSquaresEstimate(), and PTOptEstimator().

CPVector HuginBase::PTOptEstimator::m_xy_cps

Definition at line 260 of file PTOptimizer.cpp.

Referenced by HuginBase::RANSACOptimizer::findInliers(), and PTOptEstimator().


The documentation for this class was generated from the following file:
Generated on 24 Oct 2014 for Hugintrunk by  doxygen 1.4.7