Renesas / opencv-lib

Dependents:   RZ_A2M_Mbed_samples

Embed: (wiki syntax)

« Back to documentation index

Estimator Class Reference

Rotation estimator base class. More...

#include <motion_estimators.hpp>

Inherited by AffineBasedEstimator, BundleAdjusterBase, and HomographyBasedEstimator.

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)=0
 This method must implement camera parameters estimation logic in order to make the wrapper detail::Estimator::operator()_ work.

Detailed Description

Rotation estimator base class.

It takes features of all images, pairwise matches between all images and estimates rotations of all cameras.

Note:
The coordinate system origin is implementation-dependent, but you can always normalize the rotations in respect to the first camera, for instance. :

Definition at line 65 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, pure virtual]

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

Implemented in BundleAdjusterBase.

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

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.