Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Camera Calibration And 3D Reconstruction » cvInitCameraMatrix2D

cvInitCameraMatrix2D


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

Name Type Range Description
inObjectPoints Point3DArrayArray
inImagePoints Point2DArrayArray
inImageWidth Integer 1 -
inImageHeight Integer 1 -
inAspectRatio Real
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.