[][src]Function opencv::sfm::reconstruct

pub fn reconstruct(
    images: &VectorOfString,
    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 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: @ref tutorial_sfm_scene_reconstruction.

C++ default parameters

  • is_projective: false