Applies an affine transformation to an image.
img_out = warpAffine(img_in, M, size[, flags[, borderType[, borderValue]]])
Input image (Mat).
Transformation matrix (2x3 double matrix).
Size of the output image (1x2 double matrix).
Can be a combination of:
CV_WARP_INVERSE_MAP
to specify an inverse transformation.Pixel extrapolation method (double) (default BORDER_DEFAULT
).
Border value (double matrix 1xn n=1..4).
Output image (Mat).
warpAffine
transforms the source image using the specified matrix MwarpAffines an image, either to the specified size size, or by using the scale factors scale_x and scale_y.