Rotating or Resizing an Image in OpenCV
The page will show you how to do some common image transformations in OpenCV, such as rotating an image, cropping an image or resizing an image without changing its aspect ratio. Rotating an Image in OpenCV The function below will rotate an image using cvGetQuadrangleSubPix(),