OpenCV学习笔记-几何变换

一、扩展缩放 扩展缩放只是改变图像的大小。OpenCV提供函数cv.resize()实现这个功能。在缩放时推荐使用cv.INTER_AREA,在扩展时推荐使用cv.INTER_CUBIC(慢)和cv.INTER_LINEAR。 #扩展缩放 def resize_demo(img): #使用缩放因子 res = cv.resize(img, None, fx=2, fy=2, interpo
相关文章
相关标签/搜索