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

pub fn reconstruct_1(
    images: &VectorOfString,
    ps: &mut dyn ToOutputArray,
    points3d: &mut dyn ToOutputArray,
    k: &mut dyn ToInputOutputArray,
    is_projective: bool
) -> Result<()>

Reconstruct 3d points from 2d images while performing autocalibration.

Parameters

  • images: a vector of string with the images paths.
  • Ps: Output vector with the 3x4 projections matrices of each image.
  • 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.

This method calls below signature and extracts projection matrices from estimated K, R and t.

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.

C++ default parameters

  • is_projective: false