Start » Filter Reference » OpenCV » Camera Calibration And 3D Reconstruction » cvInitCameraMatrix2D

cvInitCameraMatrix2D


Module: OpenCV

Finds the initial camera matrix from the 3D-2D point correspondences.

Name Type Range Description
Input value
inObjectPoints Point3DArrayArray
Input value
inImagePoints Point2DArrayArray
Input value
inImageWidth Integer 1 -
Input value
inImageHeight Integer 1 -
Input value
inAspectRatio Real
Output value
outCameraMatrix Matrix Intrinsic camera matrix (no distortions)

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError inImagePoints has different number of elements than inObjectPoints in cvInitCameraMatrix2D.
DomainError inImagePoints is empty in cvInitCameraMatrix2D.
DomainError inObjectPoints is empty in cvInitCameraMatrix2D.
DomainError One of arrays in inImagePoints or inObjectPoints has different number of values in a corresponding array in cvInitCameraMatrix2D.
DomainError One of arrays in inImagePoints or inObjectPoints is empty in cvInitCameraMatrix2D.

Complexity Level

This filter is available on Basic Complexity Level.