Convolution
- •
What it is
- •
combines a function or signal with a shifted, reversed kernel using weighted sums
- •
- •
Image formula
- •
.
- •
- •
Distinguish from correlation
- •
correlation applies the kernel without the reversal used in convolution.
- •
in two dimensions, converting a correlation kernel to the corresponding convolution kernel involves a rotation and appropriate anchor placement.
- •
a kernel unchanged by that rotation gives the same result under matching conventions.
- •
- •
Example
- •
for the 1D neighborhood and kernel , direct correlation gives ; using the reversed kernel gives
- •
- •
- •
Reference
- •
https://docs.opencv.org/5.0/main_modules/imgproc_filter.html
- •