computes the rectification transformation for an uncalibrated stereo camera (zero distortion is assumed)
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool StereoRectifyUncalibrated( IEnumerable<Point2d> points1, IEnumerable<Point2d> points2, double[,] F, Size imgSize, out double[,] H1, out double[,] H2, double threshold = 5 )
Parameters
- points1
- Type: System.Collections.GenericIEnumerablePoint2d
Array of feature points in the first image. - points2
- Type: System.Collections.GenericIEnumerablePoint2d
The corresponding points in the second image. The same formats as in findFundamentalMat() are supported. - F
- Type: SystemDouble
Input fundamental matrix. It can be computed from the same set of point pairs using findFundamentalMat() . - imgSize
- Type: OpenCvSharp.CPlusPlusSize
Size of the image. - H1
- Type: SystemDouble
Output rectification homography matrix for the first image. - H2
- Type: SystemDouble
Output rectification homography matrix for the second image. - threshold (Optional)
- Type: SystemDouble
Optional threshold used to filter out the outliers. If the parameter is greater than zero, all the point pairs that do not comply with the epipolar geometry (that is, the points for which |points2[i]^T * F * points1[i]| > threshold ) are rejected prior to computing the homographies. Otherwise, all the points are considered inliers.
Return Value
Type: Boolean[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.StereoRectifyUncalibrated(System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point2d},System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point2d},System.Double[0:,0:],OpenCvSharp.CPlusPlus.Size,System.Double[0:,0:]@,System.Double[0:,0:]@,System.Double)"]
See Also