Table of Contents

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

projMatr1 InputArray

3x4 projection matrix of the first camera.

projMatr2 InputArray

3x4 projection matrix of the second camera.

projPoints1 InputArray

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 InputArray

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 OutputArray

4xN 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

projMatr1 double[,]

3x4 projection matrix of the first camera.

projMatr2 double[,]

3x4 projection matrix of the second camera.

projPoints1 IEnumerable<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.

projPoints2 IEnumerable<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.