OpenCvSharp.Cv2.ComputeCorrespondEpilines C# (CSharp) Method

ComputeCorrespondEpilines() public static method

For points in an image of a stereo pair, computes the corresponding epilines in the other image.
public static ComputeCorrespondEpilines ( IEnumerable points, int whichImage, double F ) : Point3f[]
points IEnumerable Input points. N \times 1 or 1 x N matrix of type CV_32FC2 or CV_64FC2.
whichImage int Index of the image (1 or 2) that contains the points .
F double Fundamental matrix that can be estimated using findFundamentalMat() or stereoRectify() .
return Point3f[]
        public static Point3f[] ComputeCorrespondEpilines(IEnumerable<Point2d> points,
                                                     int whichImage, double[,] F)
        {
            if (points == null)
                throw new ArgumentNullException(nameof(points));
            if (F == null)
                throw new ArgumentNullException(nameof(F));
            if (F.GetLength(0) != 3 && F.GetLength(1) != 3)
                throw new ArgumentException("F != double[3,3]");

            Point2d[] pointsArray = EnumerableEx.ToArray(points);
            Point3f[] lines = new Point3f[pointsArray.Length];

            NativeMethods.calib3d_computeCorrespondEpilines_array2d(
                pointsArray, pointsArray.Length,
                whichImage, F, lines);

            return lines;
        }
        /// <summary>

Same methods

Cv2::ComputeCorrespondEpilines ( IEnumerable points, int whichImage, double F ) : Point3f[]
Cv2::ComputeCorrespondEpilines ( InputArray points, int whichImage, InputArray F, OutputArray lines ) : void
Cv2