Estimates intrinsic camera parameters and extrinsic parameters for each of the views

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void cvCalibrateCamera2(
	IntPtr objectPoints,
	IntPtr imagePoints,
	IntPtr pointCounts,
	Size imageSize,
	IntPtr intrinsicMatrix,
	IntPtr distortionCoeffs,
	IntPtr rotationVectors,
	IntPtr translationVectors,
	CALIB_TYPE flags
)
Public Shared Sub 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 _
)
public:
static void cvCalibrateCamera2(
	IntPtr objectPoints, 
	IntPtr imagePoints, 
	IntPtr pointCounts, 
	Size imageSize, 
	IntPtr intrinsicMatrix, 
	IntPtr distortionCoeffs, 
	IntPtr rotationVectors, 
	IntPtr translationVectors, 
	CALIB_TYPE flags
)

Parameters

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

See Also