Method TriangulatePoints
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
TriangulatePoints(InputArray, InputArray, InputArray, InputArray, OutputArray)
Reconstructs points by triangulation.
public static void TriangulatePoints(InputArray projMatr1, InputArray projMatr2, InputArray projPoints1, InputArray projPoints2, OutputArray points4D)
Parameters
projMatr1InputArray3x4 projection matrix of the first camera.
projMatr2InputArray3x4 projection matrix of the second camera.
projPoints1InputArray2xN 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.
projPoints2InputArray2xN 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.
points4DOutputArray4xN array of reconstructed points in homogeneous coordinates.
TriangulatePoints(double[,], double[,], IEnumerable<Point2d>, IEnumerable<Point2d>)
Reconstructs points by triangulation.
[SuppressMessage("Maintainability", "CA1508: Avoid dead conditional code")]
public static Vec4d[] TriangulatePoints(double[,] projMatr1, double[,] projMatr2, IEnumerable<Point2d> projPoints1, IEnumerable<Point2d> projPoints2)
Parameters
projMatr1double[,]3x4 projection matrix of the first camera.
projMatr2double[,]3x4 projection matrix of the second camera.
projPoints1IEnumerable<Point2d>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.
projPoints2IEnumerable<Point2d>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.
Returns
- Vec4d[]
4xN array of reconstructed points in homogeneous coordinates.