我就废话不多说了,直接上代码吧!
#coding=utf-8
import cv2
import numpy as np
'''双线性插值'''
img = cv2.imread('timg.jpeg', cv2.CV_LOAD_IMAGE_GRAYSCALE) # load the gray image
cv2.imwrite('img.jpg', img)
h, w = img.shape[:2]
# shrink to half of the original
a1 = np.array([[0.5, 0, 0], [0, 0.5, 0]], np.float32)
d1 = cv2.
2021-10-25 19:43:49
30KB
c
nc
op
1