Emreozgun / MedianFilter-Implementation

Median Filter usually have been use as pre-processing steps in Image processing projects.Median filter is one of the well-known order-statistic filters due to its good performance for some specific noise types such as “Gaussian,” “random,” and “salt and pepper” noises.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Median Filter Implementation with different ordering methods

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.

Badges Badges Badges Badges Badges Badges Badges Badges Badges Badges                                                                                                    Badges

Table of Contents

Installation

  • All the code required to get started

Clone

  • 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

Features

Lexicographical ordering

Bitmix ordering

Norm based ordering

Results

First picture - Sample

b

Scalar implementation - Result

b png_scalar_

Norm based ordering - Result

b png_vector_norm_based_ordering

Lexical ordering - Result

b png_vector_lexicographical_ordering

Bitmax ordering - Result

b png_vector_bitMix_ordering

Opencv Median Filter - Result

result_opencv

Support

Reach out to me at one of the following places!


About

Median Filter usually have been use as pre-processing steps in Image processing projects.Median filter is one of the well-known order-statistic filters due to its good performance for some specific noise types such as “Gaussian,” “random,” and “salt and pepper” noises.


Languages

Language:Python 100.0%