Rom*_*man 3 python opencv image-processing
问题是如何使用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
Run Code Online (Sandbox Code Playgroud)
另外warpAffine中使用了哪种算法(Bicubic?)