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]
 

optimisation for first pass

optimisation for second pass

Definition at line 82 of file PTOptimizer.cpp.

References DEBUG_DEBUG, HuginBase::OptVarSpec::get(), HuginBase::PanoramaData::getCtrlPoints(), HuginBase::PanoramaData::getNewSubset(), HuginBase::OptVarSpec::m_img, HuginBase::OptVarSpec::m_name, HuginBase::ControlPoint::mode, and HuginBase::UIntSet.

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

Definition at line 249 of file PTOptimizer.cpp.


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::ControlPoint::image1Nr, 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.

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 HuginBase::CPVector, DEBUG_DEBUG, HuginBase::OptVarSpec::get(), HuginBase::PanoramaData::getImage(), HuginBase::SrcPanoImage::getVar(), HuginBase::OptVarSpec::m_name, HuginBase::PTools::optimize(), HuginBase::OptVarSpec::set(), and HuginBase::UIntSet.

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

Definition at line 254 of file PTOptimizer.cpp.


Member Data Documentation

CPVector HuginBase::PTOptEstimator::m_cps [private]
 

Definition at line 268 of file PTOptimizer.cpp.

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

Definition at line 261 of file PTOptimizer.cpp.

Referenced by HuginBase::RANSACOptimizer::findInliers().

int HuginBase::PTOptEstimator::m_li1 [private]
 

Definition at line 265 of file PTOptimizer.cpp.

int HuginBase::PTOptEstimator::m_li2 [private]
 

Definition at line 265 of file PTOptimizer.cpp.

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

Definition at line 267 of file PTOptimizer.cpp.

double HuginBase::PTOptEstimator::m_maxError [private]
 

Definition at line 266 of file PTOptimizer.cpp.

int HuginBase::PTOptEstimator::m_numForEstimate [private]
 

Definition at line 271 of file PTOptimizer.cpp.

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

Definition at line 269 of file PTOptimizer.cpp.

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

Definition at line 270 of file PTOptimizer.cpp.

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

Definition at line 262 of file PTOptimizer.cpp.

Referenced by HuginBase::RANSACOptimizer::findInliers().

CPVector HuginBase::PTOptEstimator::m_xy_cps
 

Definition at line 260 of file PTOptimizer.cpp.

Referenced by HuginBase::RANSACOptimizer::findInliers().


The documentation for this class was generated from the following file:
Generated on Thu Apr 24 01:25:49 2014 for Hugintrunk by  doxygen 1.3.9.1