Method ComputeCorrespondEpilines
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ComputeCorrespondEpilines(InputArray, int, InputArray, OutputArray)
For points in an image of a stereo pair, computes the corresponding epilines in the other image.
public static void ComputeCorrespondEpilines(InputArray points, int whichImage, InputArray F, OutputArray lines)
Parameters
pointsInputArrayInput points. N \times 1 or 1 x N matrix of type CV_32FC2 or CV_64FC2.
whichImageintIndex of the image (1 or 2) that contains the points .
FInputArrayFundamental matrix that can be estimated using findFundamentalMat() or stereoRectify() .
linesOutputArrayOutput vector of the epipolar lines corresponding to the points in the other image. Each line ax + by + c=0 is encoded by 3 numbers (a, b, c) .
ComputeCorrespondEpilines(IEnumerable<Point2d>, int, double[,])
For points in an image of a stereo pair, computes the corresponding epilines in the other image.
[SuppressMessage("Maintainability", "CA1508: Avoid dead conditional code")]
public static Point3f[] ComputeCorrespondEpilines(IEnumerable<Point2d> points, int whichImage, double[,] F)
Parameters
pointsIEnumerable<Point2d>Input points. N \times 1 or 1 x N matrix of type CV_32FC2 or CV_64FC2.
whichImageintIndex of the image (1 or 2) that contains the points .
Fdouble[,]Fundamental matrix that can be estimated using findFundamentalMat() or stereoRectify() .
Returns
- Point3f[]
Output vector of the epipolar lines corresponding to the points in the other image. Each line ax + by + c=0 is encoded by 3 numbers (a, b, c) .
ComputeCorrespondEpilines(IEnumerable<Point3d>, int, double[,])
For points in an image of a stereo pair, computes the corresponding epilines in the other image.
[SuppressMessage("Maintainability", "CA1508: Avoid dead conditional code")]
public static Point3f[] ComputeCorrespondEpilines(IEnumerable<Point3d> points, int whichImage, double[,] F)
Parameters
pointsIEnumerable<Point3d>Input points. N \times 1 or 1 x N matrix of type CV_32FC2 or CV_64FC2.
whichImageintIndex of the image (1 or 2) that contains the points .
Fdouble[,]Fundamental matrix that can be estimated using findFundamentalMat() or stereoRectify() .
Returns
- Point3f[]
Output vector of the epipolar lines corresponding to the points in the other image. Each line ax + by + c=0 is encoded by 3 numbers (a, b, c) .