a1=conv2(a,d) a为模板,d为图像,得到的a1是空白图像,这是为啥
你好,你这个卷积核没有归一化,所以显示不了图像:
d = imread('test.jpg'); d = rgb2gray(d); a1=conv2(a/sum(a(:)),d); imshow(a1)