Function opencv::sfm::reconstruct_3

source ·
pub fn reconstruct_3(
    images: Vector<String>,
    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 images while performing autocalibration.

§Parameters

  • images: a vector of string with the images paths.
  • 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:

  • The images must be ordered as they were an image sequence. Additionally, each frame should be as close as posible to the previous and posterior.
  • For now DAISY features are used in order to compute the 2d points tracks and it only works for 3-4 images.
  • To see a working example for scene reconstruction, check the following tutorial: [tutorial_sfm_scene_reconstruction].

§C++ default parameters

  • is_projective: false