Function opencv::sfm::reconstruct_2

source ·
pub fn reconstruct_2(
    images: Vector<String>,
    ps: &mut impl ToOutputArray,
    points3d: &mut impl ToOutputArray,
    k: &mut impl ToInputOutputArray,
    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.
  • 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