问题是如何使用OpenCV旋转图像并保持原始尺寸。目前使用的函数是:
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
此外,warpAffine中使用了什么样的算法(双三次?)