Start » Filter Reference » OpenCV » Geometric Image Transformations » cvWarpAffine

cvWarpAffine


Module: OpenCV

Applies an affine transformation to an image.

Name Type Range Description
Input value
inSrc Image Source image.
Input value
inM Matrix 2x3 transformation matrix.
Input value
inDWidth Integer 0 - Width of destination image.
Input value
inDHeight Integer 0 - Height of destination image.
Input value
inInterpolation CvInterpolationMethod Interpolation method.
Input value
inWarpInverseMap Bool True value means that M is the inverse transformation, dst->src.
Input value
inBorderMode CvBorderType Pixel extrapolation method.
Input value
inBorderValue Pixel* Value used in case of a constant border.
Output value
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 transformation matrix must have 2 rows and 3 columns in cvWarpAffine.

Complexity Level

This filter is available on Basic Complexity Level.