Salt-and-pepper noise is a form of noise sometimes seen on images. It is also known as impulse noise. This noise can be caused by sharp and sudden disturbances in the image signal. It presents itself as sparsely occurring white and black pixels.
An effective noise reduction method for this type of noise is a median filter or a morphological filter.I have been implemented median filter with three different ordering methods.These are Lexicographical ordering, Bitmix ordering and Norm based ordering.The median filter run through each element of the signal (in this case the image) and replace each pixel with the median of its neighboring pixels (located in a square neighborhood around the evaluated pixel).I want to observe different methods on median filter and comparing these.
This project is an application that runs through the console.
- All the
code
required to get started
- Install python3 and PILL -sudo su - to root
- "apt-get update && apt-get install python3.6" - to install python3
- "python3 -m pip install Pillow" - to install PILL
- Clone this repo to your local machine using
https://github.com/Emreozgun/MedianFilter-Implementation.git
- Then open the terminal and go to the directory where the file is located.
- Run with python3 MedianFılter.py
Reach out to me at one of the following places!
- Linkedin at
Emre_Ozgun_linkedin
- Stackoverflow at
Emre_Ozgun_stackoverflow