CvInvokeCalibrateCamera Method (IInputArray, IInputArray, Size, IInputOutputArray, IInputOutputArray, IOutputArray, IOutputArray, CalibType, MCvTermCriteria) |
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)
Syntaxpublic static double CalibrateCamera(
IInputArray objectPoints,
IInputArray imagePoints,
Size imageSize,
IInputOutputArray cameraMatrix,
IInputOutputArray distortionCoeffs,
IOutputArray rotationVectors,
IOutputArray translationVectors,
CalibType flags,
MCvTermCriteria termCriteria
)
Public Shared Function CalibrateCamera (
objectPoints As IInputArray,
imagePoints As IInputArray,
imageSize As Size,
cameraMatrix As IInputOutputArray,
distortionCoeffs As IInputOutputArray,
rotationVectors As IOutputArray,
translationVectors As IOutputArray,
flags As CalibType,
termCriteria As MCvTermCriteria
) As Double
public:
static double CalibrateCamera(
IInputArray^ objectPoints,
IInputArray^ imagePoints,
Size imageSize,
IInputOutputArray^ cameraMatrix,
IInputOutputArray^ distortionCoeffs,
IOutputArray^ rotationVectors,
IOutputArray^ translationVectors,
CalibType flags,
MCvTermCriteria termCriteria
)
static member CalibrateCamera :
objectPoints : IInputArray *
imagePoints : IInputArray *
imageSize : Size *
cameraMatrix : IInputOutputArray *
distortionCoeffs : IInputOutputArray *
rotationVectors : IOutputArray *
translationVectors : IOutputArray *
flags : CalibType *
termCriteria : MCvTermCriteria -> float
Parameters
- objectPoints
- Type: Emgu.CVIInputArray
The joint matrix of object points, 3xN or Nx3, where N is the total number of points in all views - imagePoints
- Type: Emgu.CVIInputArray
The joint matrix of corresponding image points, 2xN or Nx2, where N is the total number of points in all views - imageSize
- Type: System.DrawingSize
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] - rotationVectors
- Type: Emgu.CVIOutputArray
The output 3xM or Mx3 array of rotation vectors (compact representation of rotation matrices, see cvRodrigues2). - translationVectors
- Type: Emgu.CVIOutputArray
The output 3xM or Mx3 array of translation vectors - flags
- Type: Emgu.CV.CvEnumCalibType
Different flags - termCriteria
- Type: Emgu.CV.StructureMCvTermCriteria
The termination criteria
Return Value
Type:
DoubleThe final reprojection error
See Also