Class cv::detail::BundleAdjusterReproj#
Implementation of the camera parameters refinement algorithm which minimizes sum of the reprojection error squares. View details
Collaboration diagram for cv::detail::BundleAdjusterReproj:
Public Member Functions#
Public Member Functions inherited from cv::detail::BundleAdjusterBase
Return |
Name |
Description |
|---|---|---|
|
||
|
||
|
||
|
||
Public Member Functions inherited from cv::detail::Estimator
Return |
Name |
Description |
|---|---|---|
|
Estimates camera parameters. |
Additional Inherited Members#
Protected Member Functions inherited from cv::detail::BundleAdjusterBase
Return |
Name |
Description |
|---|---|---|
|
Construct a bundle adjuster base instance. |
|
|
Calculates error vector. |
|
|
Calculates the cost function jacobian. |
|
|
This method must implement camera parameters estimation logic in order to make the wrapper detail::Estimator::operator()_ work. |
|
|
|
Gets the refined camera parameters. |
|
|
Sets initial camera parameter to refine. |
Protected Member Functions inherited from cv::detail::Estimator
Return |
Name |
Description |
|---|---|---|
|
This method must implement camera parameters estimation logic in order to make the wrapper detail::Estimator::operator()_ work. |
Protected Attributes inherited from cv::detail::BundleAdjusterBase
Return |
Name |
Description |
|---|---|---|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Detailed Description#
Implementation of the camera parameters refinement algorithm which minimizes sum of the reprojection error squares.
It can estimate focal length, aspect ratio, principal point. You can affect only on them via the refinement mask.
- Examples
- samples/cpp/stitching_detailed.cpp.
Constructor & Destructor Documentation#
BundleAdjusterReproj()#
cv::detail::BundleAdjusterReproj::BundleAdjusterReproj()
Python:
cv.detail.BundleAdjusterReproj() -> <detail_BundleAdjusterReproj object>
Member Function Documentation#
calcError()#
void cv::detail::BundleAdjusterReproj::calcError(Mat & err)
Calculates error vector.
Parameters
err— Error column-vector of length total_num_matches * num_errs_per_measurement
calcJacobian()#
void cv::detail::BundleAdjusterReproj::calcJacobian(Mat & jac)
Calculates the cost function jacobian.
Parameters
jac— Jacobian matrix of dimensions (total_num_matches * num_errs_per_measurement) x (num_images * num_params_per_cam)
obtainRefinedCameraParams()#
void cv::detail::BundleAdjusterReproj::obtainRefinedCameraParams(std::vector< CameraParams > & cameras)
Gets the refined camera parameters.
Parameters
cameras— Refined camera parameters
setUpInitialCameraParams()#
void cv::detail::BundleAdjusterReproj::setUpInitialCameraParams(const std::vector< CameraParams > & cameras)
Sets initial camera parameter to refine.
Parameters
cameras— Camera parameters
Member Data Documentation#
err1_#
Mat cv::detail::BundleAdjusterReproj::err1_
err2_#
Mat cv::detail::BundleAdjusterReproj::err2_
Source file#
The documentation for this class was generated from the following file:
opencv2/stitching/detail/motion_estimators.hpp