CvCalibrateCamera2 Method (CvMat, CvMat, CvMat, CvSize, CvMat, CvMat, CvMat, CvMat, CalibrationFlag, Double) OpenCvSharp Class Library
Finds intrinsic and extrinsic camera parameters using calibration pattern

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

public static void CalibrateCamera2(
	CvMat objectPoints,
	CvMat imagePoints,
	CvMat pointCounts,
	CvSize imageSize,
	CvMat intrinsicMatrix,
	CvMat distortionCoeffs,
	CvMat rotationVectors,
	CvMat translationVectors,
	CalibrationFlag flags,
	out double reprojectionError
)

Parameters

objectPoints
Type: OpenCvSharpCvMat
The joint matrix of object points, 3xN or Nx3, where N is the total number of points in all views.
imagePoints
Type: OpenCvSharpCvMat
The joint matrix of corresponding image points, 2xN or Nx2, where N is the total number of points in all views.
pointCounts
Type: OpenCvSharpCvMat
Vector containing numbers of points in each particular view, 1xM or Mx1, where M is the number of a scene views.
imageSize
Type: OpenCvSharpCvSize
Size of the image, used only to initialize intrinsic camera matrix.
intrinsicMatrix
Type: OpenCvSharpCvMat
The output camera matrix (A) [fx 0 cx; 0 fy cy; 0 0 1]. If CV_CALIB_USE_INTRINSIC_GUESS and/or CV_CALIB_FIX_ASPECT_RATION are specified, some or all of fx, fy, cx, cy must be initialized.
distortionCoeffs
Type: OpenCvSharpCvMat
The output 4x1 or 1x4 vector of distortion coefficients [k1, k2, p1, p2].
rotationVectors
Type: OpenCvSharpCvMat
The output 3xM or Mx3 array of rotation vectors (compact representation of rotation matrices, see cvRodrigues2).
translationVectors
Type: OpenCvSharpCvMat
The output 3xM or Mx3 array of translation vectors.
flags
Type: OpenCvSharpCalibrationFlag
Different flags
reprojectionError
Type: SystemDouble
The function outputs the final re-projection error.
See Also

Reference