Two-Dimensional Correlation |
correl2d(M, K) Returns the 2D correlation of matrices M and K.
Correlation is performed in the spatial domain, and image boundaries are treated by zero padding the input image; however, the size of the output image is the same as the input image.
The origin of the kernel is assumed to be at the center of the kernel which ensures a zero-phase shift correlation output. (i.e. The corresponding features in the input and output images are not shifted with respect to each other.)