Description
Returns a matrix that is the two dimensional convolution of
g with h,
where g and h are integer, real, double-precision,
or complex matrices.
We use the following notation to specify the return matrix f:
Notation
Meaning
mf
number of rows in f
nf
number of columns in f
mg
number of rows in g
ng
number of columns in g
mh
number of rows in h
nh
number of columns in h
If 1 <i<mh and 1 <j<nh
we define
H(i, j) = h i,j otherwise H(i, j) is zero.
The return value f has the same type as g
and is defined by
mf = mg + mh - 1 nf = ng + nh - 1
mgng
--- --- f = > > gH(m-i+1, n-j+1) m,n --- --- i,j i=1 j=1 An two dimensional fft
is used to compute the convolution.