Frequency Enhancement-1
Frequency Enhancement-1
Frequency refersDOMAIN
to the rate of repetition of some periodic event.
In image processing, spatial frequency refers to the variation of image brightness
with its position in space.
A varying signal can be transformed into a series of simple periodic variations.
The Fourier transform decomposes a signal into a set of sine waves of different
characteristics like frequency and phase.
If we compute the Fourier Transform of an image, and then immediately inverse
transform the result, we can regain the same image because a Fourier transform is
perfectly reversible.
IMAGE ENHANCEMENT IN THE FREQUENCY
DOMAIN
On the other hand, if we multiply each element of the Fourier
coefficient by a suitably chosen weighting function then we can
accentuate certain frequency components and attenuate others.
The corresponding changes in the spatial form can be seen after an
inverse transform is computed.
This selective enhancement or suppression of frequency components
is termed Fourier filtering or frequency domain filtering.
IMAGE ENHANCEMENT IN THE
FREQUENCY DOMAIN
The spatial representation of image data describes the adjacency relationship
between the pixels.
On the other hand, the frequency domain representation clusters the image
data according to their frequency distribution.
In frequency domain filtering, the image data is dissected into various spectral
bands, where each band depicts a specific range of details within the image.
The process of selective frequency inclusion or exclusion is termed frequency
domain filtering.
It is possible to perform filtering in the frequency domain by specifying the
frequencies that should be kept and the frequencies that should be discarded.
Spatial domain filtering is accomplished by convolving the image with a filter
kernel.
IMAGE ENHANCEMENT IN THE FREQUENCY DOMAIN
If filtering in spatial domain is done by convolving the input image f(m, n) with the
filter kernel h(m, n),
imshow(im),title('Original Image'),
figure,imshow(uint8(abs(imf))),title('transformed Image')
figure,imshow(uint8(out)),title('Lowpass Filterd Image')
High-pass Filter in Frequency
Domain
The low-pass filters and high-pass filters are
complementary to each other.
The 2D ideal0, high-pass
if D k , l Dfilter is one whose transfer function
H k ,the
satisfies l relation 0
1, if D k , l D
0
m2 n2
1
h m, n e 2 2
2 2
m2 n2
1 1
h m, n
2
2 2
e 2
e
2 2 2 2
Low-pass and High-pass Gaussian Filter.
m2 n2
1 1
h m, n
2
2 2
e 2
e
2 2
2 2