Image Filtering
Principles of Spatial Convolution and Linear Operators
Vol. I · Part 01
The Anatomy of Convolution
Convolution is the fundamental operation for image filtering. It involves sliding a small matrix called a kernel over an image. At each position, we multiply the kernel values with the underlying image pixels and sum them up to produce a single new pixel in the output image.
Input Image
Kernel
Feature Map
Fig. 1.1 — Visualization of the sliding kernel operator
The mathematical operation for a kernel and image at pixel is expressed as:
Interactive Laboratory
Different kernels produce different effects. A Box Blur averages neighboring pixels, while an Edge Detector like Sobel highlights gradients. Observe the transformation below.

Linear Transformation Grid

Plate 1.A — Output Comparison View
Correlation vs. Convolution
In deep learning, what we call “convolution” is mathematically often correlation. The only difference is that true mathematical convolution requires flipping the kernel horizontally and vertically ( rotation) before sliding it over the image.
Reference Operator
Notice directional shift disparity
