Cv2StereoCalibrate Method (IEnumerableInputArray, IEnumerableInputArray, IEnumerableInputArray, InputOutputArray, InputOutputArray, InputOutputArray, InputOutputArray, 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<InputArray> objectPoints,
	IEnumerable<InputArray> imagePoints1,
	IEnumerable<InputArray> imagePoints2,
	InputOutputArray cameraMatrix1,
	InputOutputArray distCoeffs1,
	InputOutputArray cameraMatrix2,
	InputOutputArray distCoeffs2,
	Size imageSize,
	OutputArray R,
	OutputArray T,
	OutputArray E,
	OutputArray F,
	Nullable<TermCriteria> criteria = null,
	CalibrationFlag flags = CalibrationFlag.FixIntrinsic
)

Parameters

objectPoints
Type: System.Collections.GenericIEnumerableInputArray
Vector of vectors of the calibration pattern points.
imagePoints1
Type: System.Collections.GenericIEnumerableInputArray
Vector of vectors of the projections of the calibration pattern points, observed by the first camera.
imagePoints2
Type: System.Collections.GenericIEnumerableInputArray
Vector of vectors of the projections of the calibration pattern points, observed by the second camera.
cameraMatrix1
Type: OpenCvSharp.CPlusPlusInputOutputArray
Input/output first camera matrix
distCoeffs1
Type: OpenCvSharp.CPlusPlusInputOutputArray
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: OpenCvSharp.CPlusPlusInputOutputArray
Input/output second camera matrix. The parameter is similar to cameraMatrix1 .
distCoeffs2
Type: OpenCvSharp.CPlusPlusInputOutputArray
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{OpenCvSharp.CPlusPlus.InputArray},System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.InputArray},System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.InputArray},OpenCvSharp.CPlusPlus.InputOutputArray,OpenCvSharp.CPlusPlus.InputOutputArray,OpenCvSharp.CPlusPlus.InputOutputArray,OpenCvSharp.CPlusPlus.InputOutputArray,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