1、介绍
2、代码
import cv2
import numpy as np
import matplotlib.pyplot as plt
def nn_interpolate(img, ax=1, ay=1):
H, W, C = img.shape
aH = int(ay * H)
aW = int(ax * W)
y = np.arange(aH
1、介绍
2、代码
import cv2
import numpy as np
import matplotlib.pyplot as plt
def nn_interpolate(img, ax=1, ay=1):
H, W, C = img.shape
aH = int(ay * H)
aW = int(ax * W)
y = np.arange(aH