Function opencv::sfm::reconstruct_2_def

source ·
pub fn reconstruct_2_def(
    images: Vector<String>,
    ps: &mut impl ToOutputArray,
    points3d: &mut impl ToOutputArray,
    k: &mut impl ToInputOutputArray
) -> Result<()>
Expand description

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.

§Note

This alternative version of reconstruct_2 function uses the following default values for its arguments:

  • is_projective: false