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)
Syntaxpublic static double CalibrateCamera(
MCvPoint3D32f[][] objectPoints,
PointF[][] imagePoints,
Size imageSize,
IInputOutputArray cameraMatrix,
IInputOutputArray distortionCoeffs,
CalibType calibrationType,
MCvTermCriteria termCriteria,
out Mat[] rotationVectors,
out Mat[] translationVectors
)
Public Shared Function CalibrateCamera (
objectPoints As MCvPoint3D32f()(),
imagePoints As PointF()(),
imageSize As Size,
cameraMatrix As IInputOutputArray,
distortionCoeffs As IInputOutputArray,
calibrationType As CalibType,
termCriteria As MCvTermCriteria,
<OutAttribute> ByRef rotationVectors As Mat(),
<OutAttribute> ByRef translationVectors As Mat()
) As Double
public:
static double CalibrateCamera(
array<array<MCvPoint3D32f>^>^ objectPoints,
array<array<PointF>^>^ imagePoints,
Size imageSize,
IInputOutputArray^ cameraMatrix,
IInputOutputArray^ distortionCoeffs,
CalibType calibrationType,
MCvTermCriteria termCriteria,
[OutAttribute] array<Mat^>^% rotationVectors,
[OutAttribute] array<Mat^>^% translationVectors
)
static member CalibrateCamera :
objectPoints : MCvPoint3D32f[][] *
imagePoints : PointF[][] *
imageSize : Size *
cameraMatrix : IInputOutputArray *
distortionCoeffs : IInputOutputArray *
calibrationType : CalibType *
termCriteria : MCvTermCriteria *
rotationVectors : Mat[] byref *
translationVectors : Mat[] byref -> float
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:
DoubleThe final reprojection error
See Also