Two-dimensional convolution
(Quaternion overloading of standard MATLAB® function)
C = conv2(A, B)
conv2(A, B) computes the two-dimensional convolution of matrices A and B. It operates in a similar way to the standard MATLAB® function apart from supporting both left and right coefficients. (Since quaternion multiplication is not commutative, the general case requires both left and right multiplication in the convolution product/summation.) The MATLAB® function allows the first two parameters to be vectors - this is not implemented as yet. Acceptable calling profiles are:
C = conv2(A, B) - A is convolved on the left of B, that is A * B C = conv2({L, R}, B) - The convolution is L * B * R. L and R must be of the same size.An optional last parameter can specify 'shape' as for the standard Matlab function. This is currently not implemented.