Both correlation and convolution are operations where a kernel (filter) is moved over the image and combines neighboring pixel values.
The correlation of an image with a kernel is:
The convolution introduces a kernel flip:
Symmetry: If the kernel is symmetric (e.g., averaging, Gaussian), then flipping it does nothing.
Properties of Convolution
- Associativity: we can apply filters in any grouping
- Commutativity: the order of filters does not matter.
Kernel Size and Filter design
The kernel has coefficients, where and . Designing an image filter is essentially to determine these coefficients.
