Next: About this document ...
Up: fourier
Previous: Fourier Filtering 1D
In the spatial frequency domain, the spectrum of the 2D spatial signal (the
image) is represented by a 2D array
. An arbitrary
location in the spectrum array represents a spatial sinusoid with
- frequency
and
- direction
And the complex coefficient
specifies the
- magnitude
, and
- phase angle
of the sinusoid. All frequency components can be modified according
to specific filtering needs. We could enhance and/or reduce various frequency
components by multiplying the spectrum by a 2D filter mask. Note that if the
spectrum is centralized, the DC is in the middle of the spectrum.
The farther a frequency component is from this point, the higher
frequency it has.
Here are some typical 2D filters. We assume
in the
following.
- Ideal low-pass filter
where is the ideal cut-off frequency.
- Gaussian low-pass filter
where is the cut-off frequency at which ()
the magnitude is attenuated to , and and are two
parameters. Compared with the ideal filter, the Gaussian filter is
smooth and it no longer have the undesired ringing effect.
- Butterworth low-pass filter
Butterworth filter is also a smooth low-pass filter with a parameter .
Note that when
, the Butterworth filter becomes an
ideal filter.
- Hamming low-pass filter
The high-pass filters corresponding to each of the low-pass filters above
can be obtained by
Alternatively, the same filters above can be used as high-pass filters if
they are applied to the 2D spectrum without centralization.
The filtering effects are shown in these
demonstrations
Next: About this document ...
Up: fourier
Previous: Fourier Filtering 1D
Ruye Wang
2015-11-12