[][src]Function opencv::sfm::reconstruct_1

pub fn reconstruct_1(
    points2d: &dyn ToInputArray,
    rs: &mut dyn ToOutputArray,
    ts: &mut dyn ToOutputArray,
    k: &mut dyn ToInputOutputArray,
    points3d: &mut dyn ToOutputArray,
    is_projective: bool
) -> Result<()>

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 inline formula. 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: @ref tutorial_sfm_trajectory_estimation.

C++ default parameters

  • is_projective: false