Renesas / opencv-lib

Dependents:   RZ_A2M_Mbed_samples

Embed: (wiki syntax)

« Back to documentation index

BundleAdjusterAffine Class Reference

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

#include <motion_estimators.hpp>

Inherits cv::detail::BundleAdjusterBase.

Public Member Functions

bool operator() (const std::vector< ImageFeatures > &features, const std::vector< MatchesInfo > &pairwise_matches, std::vector< CameraParams > &cameras)
 Estimates camera parameters.

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.

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

Definition at line 283 of file motion_estimators.hpp.


Member Function Documentation

virtual bool estimate ( const std::vector< ImageFeatures > &  features,
const std::vector< MatchesInfo > &  pairwise_matches,
std::vector< CameraParams > &  cameras 
) [protected, virtual, inherited]

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

bool operator() ( const std::vector< ImageFeatures > &  features,
const std::vector< MatchesInfo > &  pairwise_matches,
std::vector< CameraParams > &  cameras 
) [inherited]

Estimates camera parameters.

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

Definition at line 77 of file motion_estimators.hpp.