Base class for all camera parameters refinement methods. More...
#include "motion_estimators.hpp"
Public Member Functions | |
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 | |
BundleAdjusterBase (int num_params_per_cam, int num_errs_per_measurement) | |
Construct a bundle adjuster base instance. More... | |
virtual void | calcError (Mat &err)=0 |
Calculates error vector. More... | |
virtual void | calcJacobian (Mat &jac)=0 |
Calculates the cost function jacobian. More... | |
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... | |
virtual void | obtainRefinedCameraParams (std::vector< CameraParams > &cameras) const =0 |
Gets the refined camera parameters. More... | |
virtual void | setUpInitialCameraParams (const std::vector< CameraParams > &cameras)=0 |
Sets initial camera parameter to refine. More... | |
Protected Attributes | |
Mat | cam_params_ |
double | conf_thresh_ |
std::vector< std::pair< int, int > > | edges_ |
const ImageFeatures * | features_ |
int | num_errs_per_measurement_ |
int | num_images_ |
int | num_params_per_cam_ |
const MatchesInfo * | pairwise_matches_ |
Mat | refinement_mask_ |
TermCriteria | term_criteria_ |
int | total_num_matches_ |
Base class for all camera parameters refinement methods.
|
inlineprotected |
Construct a bundle adjuster base instance.
num_params_per_cam | Number of parameters per camera |
num_errs_per_measurement | Number of error terms (components) per match |
References cv::TermCriteria::COUNT, CV_8U, cv::TermCriteria::EPS, and cv::Mat::ones().
|
protectedpure virtual |
Calculates error vector.
err | Error column-vector of length total_num_matches * num_errs_per_measurement |
|
protectedpure virtual |
Calculates the cost function jacobian.
jac | Jacobian matrix of dimensions (total_num_matches * num_errs_per_measurement) x (num_images * num_params_per_cam) |
|
inline |
|
protectedvirtual |
This method must implement camera parameters estimation logic in order to make the wrapper detail::Estimator::operator()_ work.
features | Features of images |
pairwise_matches | Pairwise matches of images |
cameras | Estimated camera parameters |
Implements cv::detail::Estimator.
|
protectedpure virtual |
Gets the refined camera parameters.
cameras | Refined camera parameters |
|
inlineinherited |
Estimates camera parameters.
features | Features of images |
pairwise_matches | Pairwise matches of images |
cameras | Estimated camera parameters |
|
inline |
|
inline |
|
inline |
References cv::Mat::clone(), CV_8U, CV_Assert, cv::Mat::size, and cv::Mat::type().
|
inline |
|
protectedpure virtual |
Sets initial camera parameter to refine.
cameras | Camera parameters |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |