import numpy as np. def my_convolve2d(x,h): [xM,xN] = x.shape [hM,hN] = h.shape x = np.pad(x.copy(),((hM-1,hM-1),(hN-1,hN-1))) #pad the image to apply 2d ...
確定! 回上一頁