首先說明,本文是從網上搜集到的材料進行整合。第一部分 conv2、filter2、imfilter的區別,原文出自 http://www.ilovematlab.cn/thread-293710-1-1.html;
第二部分conv2 matlab 代碼 出自: http://www.ilovematlab.cn/thread-291079-1-1.html
第一部分 conv2、filter2、imfilter的區別
(1) conv2函數
1、用法
C=conv2(A,B,shape); %卷積濾波