70 likes | 202 Views
Median Image Filter. David Newman Nick Govier. Overview. Purpose of Filter Implementation Demo Questions ??. Purpose. Removes “ Salt & Pepper ” Noise Will not remove Gaussian Noise Use Gaussian Smoothing Side Effects Detail is lost Border pixels are lost. Implementation (1).
E N D
Median Image Filter David Newman Nick Govier
Overview • Purpose of Filter • Implementation • Demo • Questions ??
Purpose • Removes “Salt & Pepper” Noise • Will not remove Gaussian Noise • Use Gaussian Smoothing • Side Effects • Detail is lost • Border pixels are lost
Implementation (1) • Use a Template • Of size 3x3, 5x5, 7x7,… etc. • Sort the values in the template • We used merge sort • Middle value of sorted list replaces the template’s central pixel.
N.B. Each template takes the values its sorts from the original image 101 69 0 56 255 87 123 96 157 0 56 69 87 96 101 123 157 255 Implementation (2)
Demo • Implemented as a Java Applet • Can be viewed at “www.ecs.soton.ac.uk/~drn101/MedianFilter.html”