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

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static double cvCalibrateCamera2(
	IntPtr objectPoints,
	IntPtr imagePoints,
	IntPtr pointCounts,
	Size imageSize,
	IntPtr intrinsicMatrix,
	IntPtr distortionCoeffs,
	IntPtr rotationVectors,
	IntPtr translationVectors,
	CALIB_TYPE flags,
	MCvTermCriteria termCriteria
)
Visual Basic
Public Shared Function cvCalibrateCamera2 ( 
	objectPoints As IntPtr,
	imagePoints As IntPtr,
	pointCounts As IntPtr,
	imageSize As Size,
	intrinsicMatrix As IntPtr,
	distortionCoeffs As IntPtr,
	rotationVectors As IntPtr,
	translationVectors As IntPtr,
	flags As CALIB_TYPE,
	termCriteria As MCvTermCriteria
) As Double
Visual C++
public:
static double cvCalibrateCamera2(
	IntPtr objectPoints, 
	IntPtr imagePoints, 
	IntPtr pointCounts, 
	Size imageSize, 
	IntPtr intrinsicMatrix, 
	IntPtr distortionCoeffs, 
	IntPtr rotationVectors, 
	IntPtr translationVectors, 
	CALIB_TYPE flags, 
	MCvTermCriteria termCriteria
)
F#
static member cvCalibrateCamera2 : 
        objectPoints : IntPtr * 
        imagePoints : IntPtr * 
        pointCounts : IntPtr * 
        imageSize : Size * 
        intrinsicMatrix : IntPtr * 
        distortionCoeffs : IntPtr * 
        rotationVectors : IntPtr * 
        translationVectors : IntPtr * 
        flags : CALIB_TYPE * 
        termCriteria : MCvTermCriteria -> float 

Parameters

objectPoints
Type: System..::..IntPtr
The joint matrix of object points, 3xN or Nx3, where N is the total number of points in all views
imagePoints
Type: System..::..IntPtr
The joint matrix of corresponding image points, 2xN or Nx2, where N is the total number of points in all views
pointCounts
Type: System..::..IntPtr
Vector containing numbers of points in each particular view, 1xM or Mx1, where M is the number of a scene views
imageSize
Type: System.Drawing..::..Size
Size of the image, used only to initialize intrinsic camera matrix
intrinsicMatrix
Type: System..::..IntPtr
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: System..::..IntPtr
The output 4x1 or 1x4 vector of distortion coefficients [k1, k2, p1, p2]
rotationVectors
Type: System..::..IntPtr
The output 3xM or Mx3 array of rotation vectors (compact representation of rotation matrices, see cvRodrigues2).
translationVectors
Type: System..::..IntPtr
The output 3xM or Mx3 array of translation vectors
flags
Type: Emgu.CV.CvEnum..::..CALIB_TYPE
Different flags
termCriteria
Type: Emgu.CV.Structure..::..MCvTermCriteria
The termination criteria

Return Value

Type: Double
The final reprojection error

See Also