Download presentation
Presentation is loading. Please wait.
Published byPhebe Jefferson Modified over 9 years ago
1
Median Filtering In signal processing, it is often desirable to be able to perform some kind of noise reduction on an image or signal. The median filter is a nonlinear digital filtering technique, often used to remove noise. Median filtering is very widely used in digital image processing because it preserves edges while removing noise. Course Name: Digital Image Processing Level(UG/PG): UG Author(s) : Phani Swathi Chitta Mentor: Prof. Saravanan Vijayakumaran *The contents in this ppt are licensed under Creative Commons Attribution-NonCommercial-ShareAlike 2.5 India license
2
Learning Objectives After interacting with this Learning Object, the learner will be able to: Explain the reduction of noise using a median filter
3
Definitions of the components/Keywords: 5 3 2 4 1 The median filter is a sliding-window spatial filter. It replaces the value of the center pixel with the median of the intensity values in the neighborhood of that pixel. Median filtering is a nonlinear operation often used in image processing to reduce "salt and pepper" noise. A median filter is more effective than convolution when the goal is to simultaneously reduce noise and preserve edges. Median filters are particularly effective in the presence of impulse noise, also called ‘salt – and – pepper’ noise because of its appearance as white and black dots superimposed on an image. For every pixel, a 3x3 neighborhood with the pixel as center is considered. In median filtering, the value of the pixel is replaced by the median of the pixel values in the 3x3 neighborhood.
4
Master Layout 5 3 2 4 1 Give a slider ranging from 0 to 1 so that user can select any one value of noise density. Image with ‘Salt & pepper’ noise Image after filtering Original Image
5
Step 1: 1 5 3 2 4 Noise density 0.01 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.01, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.01 The resulting image after median filtering is done
6
Step 2: 1 5 3 2 4 Noise density 0.02 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.02, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.02 The resulting image after median filtering is done
7
Step 3: 1 5 3 2 4 Noise density 0.05 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.05, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.05 The resulting image after median filtering is done
8
Step 4: 1 5 3 2 4 Noise density 0.07 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.07, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.07 The resulting image after median filtering is done
9
Step 5: 1 5 3 2 4 Noise density 0.09 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.09, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.09 The resulting image after median filtering is done
10
Step 6: 1 5 3 2 4 Noise density 0.1 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.1, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.1 The resulting image after median filtering is done
11
Step 7: 1 5 3 2 4 Noise density 0.15 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.15, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.15 The resulting image after median filtering is done
12
Step 8: 1 5 3 2 4 Noise density 0.2 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.2, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.2 The resulting image after median filtering is done
13
Step 9: 1 5 3 2 4 Noise density 0.22 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.22, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.22 The resulting image after median filtering is done
14
Step 10: 1 5 3 2 4 Noise density 0.3 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.3, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.3 The resulting image after median filtering is done
15
Step 11: 1 5 3 2 4 Noise density 0.4 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.4, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.4 The resulting image after median filtering is done
16
Step 12: 1 5 3 2 4 Noise density 0.5 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.5, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.5 The resulting image after median filtering is done
17
Step 13: 1 5 3 2 4 Noise density 0.6 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.6, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.6 The resulting image after median filtering is done
18
Step 14: 1 5 3 2 4 Noise density 0.7 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.7, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.7 The resulting image after median filtering is done
19
Step 15: 1 5 3 2 4 Noise density 0.8 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.8, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.8 The resulting image after median filtering is done
20
Step 16: 1 5 3 2 4 Noise density 0.9 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 0.9, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 0.9 The resulting image after median filtering is done
21
Step 17: 1 5 3 2 4 Noise density 1 I nstruction for the animator T ext to be displayed in the working area (DT) The first fig. should appear and then when the slider points at 1, the second fig. should be shown The text in DT should appear in parallel to the figures The image with ‘salt & pepper’ noise with noise density 1 The resulting image after median filtering is done
22
Introduction Credits 22 Definitions Test your understanding (questionnaire) Lets Sum up (summary) Want to know more… (Further Reading) Try it yourself Interactivity: Analogy Slide 1 Slide 3 Slide 23, 24,25 Slide 26 Electrical Engineering Select any one of the figures a b c d Select the amount of noise density
23
Questionnaire 1.What is the value of the yellow box after median filtering? Answers: a) 7 b) 1 c) 3 d) 9 1 5 2 4 3
24
Questionnaire 2. What are the values of yellow boxes after median filtering is done? Answers: a) b) 1 5 2 4 3
25
Questionnaire 2. What are the values of yellow boxes after median filtering is done? Answers: c) d) 1 5 2 4 3
26
Links for further reading Reference websites: http://en.wikipedia.org/wiki/Median_filter http://medim.sth.kth.se/6l2872/F/F7-1.pdf Books: Digital Image Processing – Rafael C. Gonzalez, Richard E. Woods, Third edition, Prentice Hall
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.