res = cv2.resize(sub,dsize=(256,192),interpolation=cv2.INTER_AREA)
cv2.imwrite(‘resized/res.jpeg’,res)
INTER_AREA
使用像素区域关系进行重采样。
不容易产生锯齿
CV2.resize()锯齿现象消除
最新推荐文章于 2024-04-17 20:15:14 发布
res = cv2.resize(sub,dsize=(256,192),interpolation=cv2.INTER_AREA)
cv2.imwrite(‘resized/res.jpeg’,res)
INTER_AREA
使用像素区域关系进行重采样。
不容易产生锯齿