Sharpening using frequency Domain Filter
-
Upload
arulraj121 -
Category
Education
-
view
130 -
download
12
Transcript of Sharpening using frequency Domain Filter
![Page 1: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/1.jpg)
DIGITAL IMAGE PROCESSINGTOPIC: FREQUENCY DOMAIN FILTER
IMAGE SHARPENING
Submitted To - Mrs.G.Murugeswari M.Tech.,Assistant ProfessorDepartment of Computer Science & EngineeringM.S.UniversityAbishekapattiSubmitted By -
T.Arul RajA.D.BibinM.KalidassM.SaravananM.Phil (CSE)M.S University
05/02/23
![Page 2: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/2.jpg)
What Is Image Enhancement?
Image enhancement is the process of making images more useful
The reasons for doing this include:
– Highlighting interesting detail in images
– Removing noise from images
– Making images more visually appealing
05/02/23
2
![Page 3: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/3.jpg)
Spatial & Frequency Domains
There are two broad categories of image enhancement techniques
– Spatial domain techniques
– Direct manipulation of image pixels
– Frequency domain techniques
– Manipulation of Fourier transform or wavelet transform of an image
For the moment we will concentrate on techniques that operate in the spatial domain
05/02/23
3
![Page 4: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/4.jpg)
Basic steps for filtering in the frequency domain
4
05/02/23
![Page 5: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/5.jpg)
Basics of filtering in the frequency domain1. multiply the input image by (-1)x+y to center the
transform to u = M/2 and v = N/2 (if M and N are even numbers, then the shifted coordinates will be integers)
2. computer F(u,v), the DFT of the image from (1)3. multiply F(u,v) by a filter function H(u,v)4. compute the inverse DFT of the result in (3)5. obtain the real part of the result in (4)6. multiply the result in (5) by (-1)x+y to cancel the
multiplication of the input image.
5
05/02/23
![Page 6: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/6.jpg)
Sharpening
– Edges and fine detail characterized by sharp transitions in image intensity
– Such transitions contribute significantly to high frequency components of Fourier transform
– Intuitively, attenuating certain low frequency components and preserving high frequency components result in sharpening
05/02/23
6
![Page 7: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/7.jpg)
Sharpening Filter Transfer Function
– Intended goal is to do the reverse operation of low-pass filters
– When low-pass filer attenuates frequencies, high-pass filter passes them
– When high-pass filter attenuates frequencies, low-pass filter passes them
( , ) 1 ( , )hp lpH u v H u v
05/02/23
7
![Page 8: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/8.jpg)
Blurring masks
A blurring mask has the following properties.
– All the values in blurring masks are positive
– The sum of all the values is equal to 1
– The edge content is reduced by using a blurring mask
– As the size of the mask grow, more smoothing effect will take place
05/02/23
8
![Page 9: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/9.jpg)
Derivative masks
A derivative mask has the following properties.
– A derivative mask have positive and as well as negative values
– The sum of all the values in a derivative mask is equal to zero
– The edge content is increased by a derivative mask
– As the size of the mask grows , more edge content is increased
05/02/23
9
![Page 10: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/10.jpg)
Relationship between blurring mask and derivative mask with high pass filters and low pass filters:
The relationship between blurring mask and derivative mask with a high pass filter and low pass filter can be defined simply as.
– Blurring masks are also called as low pass filter
– Derivative masks are also called as high pass filter
05/02/23
10
![Page 11: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/11.jpg)
High pass frequency components and Low pass frequency components
– High pass frequency components and Low pass frequency components
– the low pass frequency components denotes smooth regions.
05/02/23
11
![Page 12: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/12.jpg)
Ideal low pass
This is the common example of low pass filter.
When one is placed inside and the zero is placed outside , we got a blurred image. Now as we increase the size of 1, blurring would be increased and the edge content would be reduced.
05/02/23
12
![Page 13: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/13.jpg)
Ideal High pass filters
This is a common example of high pass filter.
When 0 is placed inside, we get edges, which gives us a sketched image. An ideal low pass filter in frequency domain is given below.
05/02/23
13
![Page 14: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/14.jpg)
Butterworth High Pass FiltersThe Butterworth high pass filter is given as:
where n is the order and D0 is the cut off distance as before
nvuDDvuH 2
0 )],(/[11),(
05/02/23
14
![Page 15: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/15.jpg)
Butterworth High Pass Filters (cont…)
Results of Butterworth
high pass filtering of
order 2 with D0 = 15
Results of Butterworth high pass filtering of order 2 with D0 = 80
Results of Butterworth high pass filtering of order 2 with D0 = 30
05/02/23
15
![Page 16: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/16.jpg)
Gaussian Low pass Filter
– The concept of filtering and low pass remains the same, but only the transition becomes different and become more smooth.
– The Gaussian low pass filter can be represented as
– Note the smooth curve transition, due to which at each point, the value of Do, can be exactly defined.
05/02/23
16
![Page 17: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/17.jpg)
Gaussian high pass filter
– Gaussian high pass filter has the same concept as ideal high pass filter, but again the transition is more smooth as compared to the ideal one.
05/02/23
17
![Page 18: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/18.jpg)
Sharpening Filters: Laplacian
The Laplacian is defined as:
(dot product)
Approximatederivatives:
05/02/23
18
![Page 19: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/19.jpg)
Sharpening Filters: Laplacian (cont’d)
Laplacian Mask
detect zero-crossings
05/02/23
19
![Page 20: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/20.jpg)
20 Conclusion
– The aim of image enhancement is to improve the information in images for human viewers, or to provide `better' input for other automated image processing techniques
– There is no general theory for determining what is `good' image enhancement when it comes to human perception. If it looks good, it is good!
05/02/23
![Page 21: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/21.jpg)
REFERENCE VIDEOS
05/02/23
21
![Page 22: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/22.jpg)
References Videos
05/02/23
22
![Page 23: Sharpening using frequency Domain Filter](https://reader033.fdocuments.in/reader033/viewer/2022061415/5871f8c61a28ab5c348b7123/html5/thumbnails/23.jpg)
05/02/23
23
THANK YOU