70 likes | 99 Views
This comprehensive guide explains the purpose and implementation of the Median Image Filter, emphasizing noise removal while preserving detail. The innovative technique uses templates to sort pixel values and replace central pixels with the median value. However, it may result in detail loss and border pixels being affected. A Java applet demonstration is available for a practical understanding. Explore this effective tool to mitigate "Salt & Pepper" noise in images without affecting Gaussian noise, and learn how to use Gaussian smoothing for better results.
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”