OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::detail::BundleAdjusterRay Class Reference

Implementation of the camera parameters refinement algorithm which minimizes sum of the distances between the rays passing through the camera center and a feature. More...

#include <opencv2/stitching/detail/motion_estimators.hpp>

Inheritance diagram for cv::detail::BundleAdjusterRay:
Collaboration diagram for cv::detail::BundleAdjusterRay:

Public Member Functions

 BundleAdjusterRay ()
 
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) CV_OVERRIDE
 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

Implementation of the camera parameters refinement algorithm which minimizes sum of the distances between the rays passing through the camera center and a feature.

:

It can estimate focal length. It ignores the refinement mask for now.

Constructor & Destructor Documentation

◆ BundleAdjusterRay()

cv::detail::BundleAdjusterRay::BundleAdjusterRay ( )
inline

References CV_OVERRIDE.

Member Function Documentation

◆ confThresh()

double cv::detail::BundleAdjusterBase::confThresh ( ) const
inlineinherited

◆ estimate()

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.

◆ operator()()

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

References CV_OUT.

◆ refinementMask()

const Mat cv::detail::BundleAdjusterBase::refinementMask ( ) const
inlineinherited

References cv::Mat::clone().

Here is the call graph for this function:

◆ setConfThresh()

void cv::detail::BundleAdjusterBase::setConfThresh ( double  conf_thresh)
inlineinherited

◆ setRefinementMask()

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:

◆ setTermCriteria()

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

◆ termCriteria()

TermCriteria cv::detail::BundleAdjusterBase::termCriteria ( )
inlineinherited

Member Data Documentation

◆ cam_params_

Mat cv::detail::BundleAdjusterBase::cam_params_
protectedinherited

◆ conf_thresh_

double cv::detail::BundleAdjusterBase::conf_thresh_
protectedinherited

◆ edges_

std::vector<std::pair<int,int> > cv::detail::BundleAdjusterBase::edges_
protectedinherited

◆ features_

const ImageFeatures* cv::detail::BundleAdjusterBase::features_
protectedinherited

◆ num_errs_per_measurement_

int cv::detail::BundleAdjusterBase::num_errs_per_measurement_
protectedinherited

◆ num_images_

int cv::detail::BundleAdjusterBase::num_images_
protectedinherited

◆ num_params_per_cam_

int cv::detail::BundleAdjusterBase::num_params_per_cam_
protectedinherited

◆ pairwise_matches_

const MatchesInfo* cv::detail::BundleAdjusterBase::pairwise_matches_
protectedinherited

◆ refinement_mask_

Mat cv::detail::BundleAdjusterBase::refinement_mask_
protectedinherited

◆ term_criteria_

TermCriteria cv::detail::BundleAdjusterBase::term_criteria_
protectedinherited

◆ total_num_matches_

int cv::detail::BundleAdjusterBase::total_num_matches_
protectedinherited

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