Filtering
Filtering computes each output pixel from a small neighborhood of input pixels. This folder covers linear filters, meaning convolution and cross-correlation with a kernel, and their main uses in blurring, sharpening, edge detection and template matching. It also covers the median filter, the standard nonlinear filter for removing outliers. These operations reappear in image pyramids, blending, feature detection and convolutional networks.
Prerequisites
- 1.1. Digital Images: images as arrays of pixel values.
- 2.2b LTI Convolution: convolution of 1D signals.
- 3.6. Gradients: partial derivatives and the gradient vector.
Contents
- 2.1.1. Linear Filters: cross-correlation versus convolution, box and Gaussian kernels, output sizes and boundary handling.
- 2.1.2. Edge Detection: finite differences, gradient magnitude and orientation, derivative of Gaussian, Sobel and Laplacian kernels.
- 2.1.3. Blurring and Sharpening: box versus Gaussian blur in the frequency domain, high-pass details, and the unsharp mask.
- 2.1.4. Median Filter: a nonlinear, outlier-robust filter for salt-and-pepper noise.
- 2.1.5. Template Matching: correlation, zero-mean correlation, SSD and NCC, and channel alignment by exhaustive search.
Recommended Path
Read 2.1.1. Linear Filters first, since every other note builds on it. Then read 2.1.3. Blurring and Sharpening and 2.1.2. Edge Detection, which cover the two most common kinds of kernel. 2.2. Fourier Transform in Images explains the frequency arguments used in the blurring note.