标签:img http play enc lock block code com tac
img=cv2.imread("AM.png") cv_show(img,‘img‘) print (img.shape)
效果:
up=cv2.pyrUp(img) cv_show(up,‘up‘) print (up.shape)
效果:
down=cv2.pyrDown(img) cv_show(down,‘down‘) print (down.shape)
效果:
up=cv2.pyrUp(img) #先向上取样再向下取样,有损失 up_down=cv2.pyrDown(up) cv_show(up_down,‘up_down‘)
效果:
cv_show(np.hstack((img,up_down)),‘up_down‘)
效果:
up=cv2.pyrUp(img) up_down=cv2.pyrDown(up) cv_show(img-up_down,‘img-up_down‘) #原图片-先向上取样再向下取样
效果:
down=cv2.pyrDown(img) down_up=cv2.pyrUp(down) l_1=img-down_up cv_show(l_1,‘l_1‘)
效果:
标签:img http play enc lock block code com tac
原文地址:https://www.cnblogs.com/SCCQ/p/12291684.html