Back to Adaptive Vision Studio website

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

cvUndistort


Module: OpenCV

Transforms an image to compensate for lens distortion.

Name Type Description
inSrc Image Source image.
inCameraMatrix Matrix Input camera matrix.
inDistCoeffs Matrix Input vector of distortion coefficients of 4, 5, or 8 elements.
inNewCameraMatrix Matrix* Camera matrix of the distorted image.
outDst Image Output image.

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 Input camera matrix must not be empty in cvUndistort.
DomainError Input distortion matrix must not be empty in cvUndistort.
DomainError Input image must not be empty in cvUndistort.

Complexity Level

This filter is available on Basic Complexity Level.