Back to Aurora Vision Studio website

You are here: Start » Filter Reference » OpenCV » Geometric Image Transformations » cvInitUndistortRectifyMap

cvInitUndistortRectifyMap


Module: OpenCV

Computes the undistortion and rectification transformation map.

Name Type Range Description
Input value inCameraMatrix Matrix Matrix with part of intrinsics camera parameters.
Input value inDistCoeffs Matrix Coefficients of distortion.
Input value inR Matrix Optional rectification transformation in the object space, 3x3 matrix.
Input value inNewCameraMatrix Matrix
Input value inMapWidth Integer 1 - Width of output maps.
Input value inMapHeight Integer 1 - Height of output maps.
Output value outMap1 Matrix Output x coordinates map.
Output value outMap2 Matrix Output y coordinates map.

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 inCameraMatrix must not be empty in cvInitUndistortRectifyMap.
DomainError inNewCameraMatrix must be 4x3, 3x3, or empty matrix in cvInitUndistortRectifyMap.
DomainError inR must be 3x3 or empty matrix in cvInitUndistortRectifyMap.
DomainError Supported matrix sizes for inDistCoeffs are: 1x4, 4x1, 1x5, 5x1, 1x8, 8x1, 1x12, 12x1 in cvInitUndistortRectifyMap.

Complexity Level

This filter is available on Basic Complexity Level.