Image Analysis
Filtering in the frequency domain Niclas Börlin niclas.borlin@cs.umu.se
Department of Computing Science Umeå University
February 3, 2009
Niclas Börlin (CS, UmU) Filtering in the frequency domain February 3, 2009 1 / 24
The Fourier Transform II
The Fourier transform and its inverse allows us to jump back and forth between the spatial and frequency domains. By manipulating the spectra in the frequency domain we can construct the filters we want more intuitively than if we were to construct the filter in the spatial domain.
Niclas Börlin (CS, UmU) Filtering in the frequency domain February 3, 2009 2 / 24
Filtering in the frequency domain
The basic filtering equation is g(x, y) = F−1{H(u, v)F(u, v)}. where F(u, v) is the DFT of the input image f(x, y), H(u, v) is a filter function or simply filter and g(x, y) is the filtered output image. The array H(u, v) contains the filter coefficient and must be of the same size as F(u, v). We assume the spectra is shifted such that the zero frequency is located at F(M/2, N/2).
Niclas Börlin (CS, UmU) Filtering in the frequency domain February 3, 2009 3 / 24
Filter types
A filter that attenuates high frequencies while passing low frequencies is called a lowpass filter. Lowpass filters are usually used for smoothing. A filter that does not effect high frequencies is called a highpass filter. Highpass filters are usually used for sharpening. Furthermore, bandpass (bandreject) filters work on specific frequency bands. Finally, notch filters work on specific frequencies.
Niclas Börlin (CS, UmU) Filtering in the frequency domain February 3, 2009 4 / 24