Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
HuginBase::PTOptEstimator Class Reference

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< 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 79 of file PTOptimizer.cpp.

Constructor & Destructor Documentation

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

Definition at line 248 of file PTOptimizer.cpp.

References m_localPano.

Member Function Documentation

bool HuginBase::PTOptEstimator::agree ( std::vector< double > &  p,
const ControlPoint cp 
) const
inline
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 151 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
int HuginBase::PTOptEstimator::numForEstimate ( ) const
inline

Definition at line 253 of file PTOptimizer.cpp.

References m_numForEstimate.

Member Data Documentation

CPVector HuginBase::PTOptEstimator::m_cps
private

Definition at line 267 of file PTOptimizer.cpp.

Referenced by PTOptEstimator().

std::vector<double> HuginBase::PTOptEstimator::m_initParams
int HuginBase::PTOptEstimator::m_li1
private

Definition at line 264 of file PTOptimizer.cpp.

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

int HuginBase::PTOptEstimator::m_li2
private

Definition at line 264 of file PTOptimizer.cpp.

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

PanoramaData* HuginBase::PTOptEstimator::m_localPano
private

Definition at line 266 of file PTOptimizer.cpp.

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

double HuginBase::PTOptEstimator::m_maxError
private

Definition at line 265 of file PTOptimizer.cpp.

Referenced by agree(), and PTOptEstimator().

int HuginBase::PTOptEstimator::m_numForEstimate
private

Definition at line 270 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 268 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 269 of file PTOptimizer.cpp.

Referenced by leastSquaresEstimate(), and PTOptEstimator().

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

Definition at line 259 of file PTOptimizer.cpp.

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


The documentation for this class was generated from the following file: