estrelpose
Syntax
Description
returns the pose of a calibrated camera relative to its previous pose. The two poses are
related by the fundamental, essential, or homography matrix relativePose
= estrelpose(M
,intrinsics
,inlierPoints1
,inlierPoints2
)M
. The
function calculates the camera location up to scale.
returns the pose of the second camera relative to the first one.relativePose
= estrelpose(M
,intrinsics1
,intrinsics2
,inlierPoints1
,inlierPoints2
)
[
additionally returns the fraction of the inlier points that project in front of both
cameras.relativePose
,validPointsFraction
]
= estrelpose(___)
Examples
Input Arguments
Output Arguments
Tips
You can calculate the camera extrinsics according to:
relativeOrientation = relativePose.R; relativeLocation = relativePose.Translation; camPose = rigidtform3d(relativeOrientation,relativeLocation); extrinsics = pose2extr(camPose)
The
estrelpose
function uses theinlierPoints1
andinlierPoints2
arguments to determine which of the multiple possible solutions is physically realizable. If the inputM
is aprojtform2d
object, there could be up to two solutions that are equally realizable.
References
[1]
[2]
[3] Faugeras, O., & Lustman, F. (1988). Motion and structure from motion in a piecewise planar environment. International Journal of Pattern Recognition and Artificial Intelligence 2(3), 485–508.