Cv2StereoCalibrate Method (IEnumerableIEnumerablePoint3d, IEnumerableIEnumerablePoint2d, IEnumerableIEnumerablePoint2d, Double, Double, Double, Double, Size, OutputArray, OutputArray, OutputArray, OutputArray, NullableTermCriteria, CalibrationFlag) OpenCvSharp Class Library
finds intrinsic and extrinsic parameters of a stereo camera

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static double StereoCalibrate(
	IEnumerable<IEnumerable<Point3d>> objectPoints,
	IEnumerable<IEnumerable<Point2d>> imagePoints1,
	IEnumerable<IEnumerable<Point2d>> imagePoints2,
	double[,] cameraMatrix1,
	double[] distCoeffs1,
	double[,] cameraMatrix2,
	double[] distCoeffs2,
	Size imageSize,
	OutputArray R,
	OutputArray T,
	OutputArray E,
	OutputArray F,
	Nullable<TermCriteria> criteria = null,
	CalibrationFlag flags = CalibrationFlag.FixIntrinsic
)

Parameters

objectPoints
Type: System.Collections.GenericIEnumerableIEnumerablePoint3d
Vector of vectors of the calibration pattern points.
imagePoints1
Type: System.Collections.GenericIEnumerableIEnumerablePoint2d
Vector of vectors of the projections of the calibration pattern points, observed by the first camera.
imagePoints2
Type: System.Collections.GenericIEnumerableIEnumerablePoint2d
Vector of vectors of the projections of the calibration pattern points, observed by the second camera.
cameraMatrix1
Type: SystemDouble
Input/output first camera matrix
distCoeffs1
Type: SystemDouble
Input/output vector of distortion coefficients (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6]]) of 4, 5, or 8 elements. The output vector length depends on the flags.
cameraMatrix2
Type: SystemDouble
Input/output second camera matrix. The parameter is similar to cameraMatrix1 .
distCoeffs2
Type: SystemDouble
Input/output lens distortion coefficients for the second camera. The parameter is similar to distCoeffs1 .
imageSize
Type: OpenCvSharp.CPlusPlusSize
Size of the image used only to initialize intrinsic camera matrix.
R
Type: OpenCvSharp.CPlusPlusOutputArray
Output rotation matrix between the 1st and the 2nd camera coordinate systems.
T
Type: OpenCvSharp.CPlusPlusOutputArray
Output translation vector between the coordinate systems of the cameras.
E
Type: OpenCvSharp.CPlusPlusOutputArray
Output essential matrix.
F
Type: OpenCvSharp.CPlusPlusOutputArray
Output fundamental matrix.
criteria (Optional)
Type: SystemNullableTermCriteria
Termination criteria for the iterative optimization algorithm.
flags (Optional)
Type: OpenCvSharpCalibrationFlag
Different flags that may be zero or a combination of the CalibrationFlag values

Return Value

Type: Double

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.StereoCalibrate(System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point3d}},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point2d}},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point2d}},System.Double[0:,0:],System.Double[],System.Double[0:,0:],System.Double[],OpenCvSharp.CPlusPlus.Size,OpenCvSharp.CPlusPlus.OutputArray,OpenCvSharp.CPlusPlus.OutputArray,OpenCvSharp.CPlusPlus.OutputArray,OpenCvSharp.CPlusPlus.OutputArray,System.Nullable{OpenCvSharp.CPlusPlus.TermCriteria},OpenCvSharp.CalibrationFlag)"]

See Also

Reference