































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Image Processing Spatial Filtering
Typology: Slides
1 / 39
This page cannot be seen from the preview
Don't miss anything!
Course Website: http://www.comp.dit.ie/bmacnamee
Image Enhancement (Spatial Filtering 2)
of 39
In this lecture we will look at more spatial filtering techniques
of 39
Previously we have looked at smoothing filters which remove fine detail Sharpening spatial filters seek to highlight fine detail
of 39
Differentiation measures the rate of change of a function Let’s consider a simple 1 dimensional example Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of 39
st
The formula for the 1 st derivative of a function is as follows: It’s just the difference between subsequent values and measures the rate of change of the function f ( x 1 ) f ( x ) x f
of 39
st
5 5 4 3 2 1 0 0 0 6 0 0 0 0 1 3 1 0 0 0 0 7 7 7 7 0 -1 -1 -1 -1 0 0 6 -6 0 0 0 1 2 -2 -1 0 0 0 7 0 0 0
of 39
nd
5 5 4 3 2 1 0 0 0 6 0 0 0 0 1 3 1 0 0 0 0 7 7 7 7 -1 0 0 0 0 1 0 6 -12^6 0 0 1 1 -4 1 1 0 0 7 -7 0 0
of 39 Using Second Derivatives For Image Enhancement The 2 nd derivative is more useful for image enhancement than the 1 st derivative
of 39
So, the Laplacian can be given as follows: We can easily build a filter based on this
2 f f x y f x y f ( x , y 1 ) f ( x , y 1 )] 4 f ( x , y ) 0 1 0 1 -4 1 0 1 0
of 39
Applying the Laplacian to an image we get a new image that highlights edges and other discontinuities Images taken from Gonzalez & Woods, Digital Image Processing (2002) Original Image Laplacian Filtered Image Laplacian Filtered Image Scaled for Display
of 39
In the final sharpened image edges and fine detail are much more obvious Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Original Image Laplacian Filtered Image Sharpened Image
of 39
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of 39 Simplified Image Enhancement (cont…) This gives us a new filter which does the whole job for us in one step 0 -1 0 -1 5 - 0 -1 0 Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of 39 Simplified Image Enhancement (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)