The question is how to rotate image using OpenCV and keep original dimensions. Currently using this function:
def rotateImage(image, angle):
(h, w) = image.shape[:2]
center = (w / 2, h / 2)
M = cv2.getRotationMatrix2D(center,angle,1.0)
rotated_image = cv2.warpAffine(image, M, (w,h))
return rotated_image
Additionally what kind of algorithm utilised in warpAffine (Bicubic?)