Python實現兩個矩陣的卷積操做

import numpy as np f = np.array([[1,2,1], [1,0,0], [-1,0,1]]) # f = np.array([[3,4,4], # [1,0,2], # [-1,0,3]]) img = np.array([ [2,3,7,4,6,2,9], [6,6,9,8,7,4,3], [3,4,8,3,8,9,7]
相關文章
相關標籤/搜索