This is a C++ program to rotate and warp the input file(image) by the use of wrafAffine funtion which is inbuilt in the opencv library. wrafAffine takes 4 parametres. FIrst is source image file , second is destination image file , third parameter is mat object that is ouput after rotating with some point taking into reference and last is taking the size.
A transformation that can be expressed in the form of a matrix multiplication (linear transformation) followed by a vector addition (translation) is affine transformation.
Here src: Input image
warp_dst: Output image
warp_mat: Affine transform
warp_dst.size(): The desired size of the output image
Comments