Click or drag to resize

CvInvokeCalibrateCamera Method (MCvPoint3D32f, PointF, Size, IInputOutputArray, IInputOutputArray, CalibType, MCvTermCriteria, Mat, Mat)

http://www.emgu.com
Estimates intrinsic camera parameters and extrinsic parameters for each of the views

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static double CalibrateCamera(
	MCvPoint3D32f[][] objectPoints,
	PointF[][] imagePoints,
	Size imageSize,
	IInputOutputArray cameraMatrix,
	IInputOutputArray distortionCoeffs,
	CalibType calibrationType,
	MCvTermCriteria termCriteria,
	out Mat[] rotationVectors,
	out Mat[] translationVectors
)

Parameters

objectPoints
Type: Emgu.CV.StructureMCvPoint3D32f
The 3D location of the object points. The first index is the index of image, second index is the index of the point
imagePoints
Type: System.DrawingPointF
The 2D image location of the points. The first index is the index of the image, second index is the index of the point
imageSize
Type: System.DrawingSize
The size of the image, used only to initialize intrinsic camera matrix
cameraMatrix
Type: Emgu.CVIInputOutputArray
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: Emgu.CVIInputOutputArray
The output 4x1 or 1x4 vector of distortion coefficients [k1, k2, p1, p2]
calibrationType
Type: Emgu.CV.CvEnumCalibType
cCalibration type
termCriteria
Type: Emgu.CV.StructureMCvTermCriteria
The termination criteria
rotationVectors
Type: Emgu.CVMat
The output 3xM or Mx3 array of rotation vectors (compact representation of rotation matrices, see cvRodrigues2).
translationVectors
Type: Emgu.CVMat
The output 3xM or Mx3 array of translation vectors

Return Value

Type: Double
The final reprojection error
See Also