JA EN

Convolution

A fundamental image processing operation that slides a kernel (small matrix) across an image, computing weighted sums at each position for blurring, edge detection, and sharpening.

Convolution is the core operation of spatial image filtering: a small matrix called a kernel slides across the image, computing a weighted sum of surrounding pixels at each position. Nearly all spatial filters - blur, sharpen, edge detection, emboss - are implemented as convolutions.

The convolution procedure:

Representative kernels and their effects:

Computationally, applying an N×N kernel to an M×M image requires O(M²N²) operations. For large kernels, converting to frequency domain (FFT) multiplication is faster. Separable kernels like Gaussian can be decomposed into two 1D passes, reducing complexity to O(M²N).

Deep learning CNNs (Convolutional Neural Networks) use the same convolution operation, but learn kernel values automatically through training rather than manual design.

Related Terms

Related Articles