Function opencv::sfm::reconstruct_1
source · pub fn reconstruct_1(
points2d: &impl ToInputArray,
rs: &mut impl ToOutputArray,
ts: &mut impl ToOutputArray,
k: &mut impl ToInputOutputArray,
points3d: &mut impl ToOutputArray,
is_projective: bool
) -> Result<()>
Expand description
Reconstruct 3d points from 2d correspondences while performing autocalibration.
§Parameters
- points2d: Input vector of vectors of 2d points (the inner vector is per image).
- Rs: Output vector of 3x3 rotations of the camera.
- Ts: Output vector of 3x1 translations of the camera.
- points3d: Output array with estimated 3d points.
- K: Input/Output camera matrix . Input parameters used as initial guess.
- is_projective: if true, the cameras are supposed to be projective.
Internally calls libmv simple pipeline routine with some default parameters by instatiating SFMLibmvEuclideanReconstruction class.
Note:
- Tracks must be as precise as possible. It does not handle outliers and is very sensible to them.
- To see a working example for camera motion reconstruction, check the following tutorial: [tutorial_sfm_trajectory_estimation].
§C++ default parameters
- is_projective: false