matlab中的conv2是用于对二维数据进行卷积运算,有三个参数可供选择,下面是help content of conv2
conv2 Two dimensional convolution.
C = conv2(A, B) performs the 2-D convolution of matrices A and B.If [ma,na] = size(A), [mb,nb] = size(B), and [mc,nc] = size(C), then
mc = max([ma+mb-1,ma,mb]) and nc = max([na+nb-1,na,nb]).
C = conv2(H1, H2, A) first convolves each column of A with the vector
H1 and then convolves each row