Set the bundle adjuster
obj.setBundleAdjuster(adjusterType)
obj.setBundleAdjuster(adjusterType, 'OptionName',optionValue, ...)
Input
- adjusterType camera parameters refinement method. One of:
- NoBundleAdjuster Stub bundle adjuster that does nothing.
- BundleAdjusterRay 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.
- BundleAdjusterReproj 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.
- BundleAdjusterAffine 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
cv.AffineBasedEstimator,
AffineBestOf2NearestMatcher
.
- BundleAdjusterAffinePartial Bundle adjuster that expects
affine transformation with 4 DOF 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.
Options
The following are options accepted by all adjusters:
- ConfThresh default 1
- RefinementMask default
eye(3)
- TermCriteria default
struct('type','Count+EPS', 'maxCount',1000, 'epsilon',eps)
The class uses BundleAdjusterRay
by default.