OpenCV  3.2.0-dev
Open Source Computer Vision
cv::detail::BundleAdjusterAffine Class Reference

Bundle adjuster that expects affine transformation represented in homogeneous coordinates in R for each camera param. More...

#include "motion_estimators.hpp"

Inheritance diagram for cv::detail::BundleAdjusterAffine:
Collaboration diagram for cv::detail::BundleAdjusterAffine:

Public Member Functions

 BundleAdjusterAffine ()
 
double confThresh () const
 
bool operator() (const std::vector< ImageFeatures > &features, const std::vector< MatchesInfo > &pairwise_matches, std::vector< CameraParams > &cameras)
 Estimates camera parameters. More...
 
const Mat refinementMask () const
 
void setConfThresh (double conf_thresh)
 
void setRefinementMask (const Mat &mask)
 
void setTermCriteria (const TermCriteria &term_criteria)
 
TermCriteria termCriteria ()
 

Protected Member Functions

virtual bool estimate (const std::vector< ImageFeatures > &features, const std::vector< MatchesInfo > &pairwise_matches, std::vector< CameraParams > &cameras)
 This method must implement camera parameters estimation logic in order to make the wrapper detail::Estimator::operator()_ work. More...
 

Protected Attributes

Mat cam_params_
 
double conf_thresh_
 
std::vector< std::pair< int, int > > edges_
 
const ImageFeaturesfeatures_
 
int num_errs_per_measurement_
 
int num_images_
 
int num_params_per_cam_
 
const MatchesInfopairwise_matches_
 
Mat refinement_mask_
 
TermCriteria term_criteria_
 
int total_num_matches_
 

Detailed Description

Bundle adjuster that expects affine transformation represented in homogeneous coordinates in R for each camera param.

Implements camera parameters refinement algorithm which minimizes sum of the reprojection error squares

It estimates all transformation parameters. Refinement mask is ignored.

See also
AffineBasedEstimator AffineBestOf2NearestMatcher BundleAdjusterAffinePartial

Constructor & Destructor Documentation

cv::detail::BundleAdjusterAffine::BundleAdjusterAffine ( )
inline

Member Function Documentation

double cv::detail::BundleAdjusterBase::confThresh ( ) const
inlineinherited
virtual bool cv::detail::BundleAdjusterBase::estimate ( const std::vector< ImageFeatures > &  features,
const std::vector< MatchesInfo > &  pairwise_matches,
std::vector< CameraParams > &  cameras 
)
protectedvirtualinherited

This method must implement camera parameters estimation logic in order to make the wrapper detail::Estimator::operator()_ work.

Parameters
featuresFeatures of images
pairwise_matchesPairwise matches of images
camerasEstimated camera parameters
Returns
True in case of success, false otherwise

Implements cv::detail::Estimator.

bool cv::detail::Estimator::operator() ( const std::vector< ImageFeatures > &  features,
const std::vector< MatchesInfo > &  pairwise_matches,
std::vector< CameraParams > &  cameras 
)
inlineinherited

Estimates camera parameters.

Parameters
featuresFeatures of images
pairwise_matchesPairwise matches of images
camerasEstimated camera parameters
Returns
True in case of success, false otherwise
const Mat cv::detail::BundleAdjusterBase::refinementMask ( ) const
inlineinherited

References cv::Mat::clone().

Here is the call graph for this function:

void cv::detail::BundleAdjusterBase::setConfThresh ( double  conf_thresh)
inlineinherited
void cv::detail::BundleAdjusterBase::setRefinementMask ( const Mat mask)
inlineinherited

References cv::Mat::clone(), CV_8U, CV_Assert, cv::Mat::size, and cv::Mat::type().

Here is the call graph for this function:

void cv::detail::BundleAdjusterBase::setTermCriteria ( const TermCriteria term_criteria)
inlineinherited
TermCriteria cv::detail::BundleAdjusterBase::termCriteria ( )
inlineinherited

Member Data Documentation

Mat cv::detail::BundleAdjusterBase::cam_params_
protectedinherited
double cv::detail::BundleAdjusterBase::conf_thresh_
protectedinherited
std::vector<std::pair<int,int> > cv::detail::BundleAdjusterBase::edges_
protectedinherited
const ImageFeatures* cv::detail::BundleAdjusterBase::features_
protectedinherited
int cv::detail::BundleAdjusterBase::num_errs_per_measurement_
protectedinherited
int cv::detail::BundleAdjusterBase::num_images_
protectedinherited
int cv::detail::BundleAdjusterBase::num_params_per_cam_
protectedinherited
const MatchesInfo* cv::detail::BundleAdjusterBase::pairwise_matches_
protectedinherited
Mat cv::detail::BundleAdjusterBase::refinement_mask_
protectedinherited
TermCriteria cv::detail::BundleAdjusterBase::term_criteria_
protectedinherited
int cv::detail::BundleAdjusterBase::total_num_matches_
protectedinherited

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