Discrete Convolution Formula, Assume that matrix A has dimensions (Ma, Na) and matrix B has dimensions (Mb, Nb).