[][src]Function opencv::calib3d::triangulate_points

pub fn triangulate_points(
    proj_matr1: &dyn ToInputArray,
    proj_matr2: &dyn ToInputArray,
    proj_points1: &dyn ToInputArray,
    proj_points2: &dyn ToInputArray,
    points4_d: &mut dyn ToOutputArray
) -> Result<()>

Reconstructs points by triangulation.

Parameters

  • projMatr1: 3x4 projection matrix of the first camera.
  • projMatr2: 3x4 projection matrix of the second camera.
  • projPoints1: 2xN array of feature points in the first image. In case of c++ version it can be also a vector of feature points or two-channel matrix of size 1xN or Nx1.
  • projPoints2: 2xN array of corresponding points in the second image. In case of c++ version it can be also a vector of feature points or two-channel matrix of size 1xN or Nx1.
  • points4D: 4xN array of reconstructed points in homogeneous coordinates.

The function reconstructs 3-dimensional points (in homogeneous coordinates) by using their observations with a stereo camera. Projections matrices can be obtained from stereoRectify.

Note: Keep in mind that all input data should be of float type in order for this function to work.

See also

reprojectImageTo3D