Coder Social home page Coder Social logo

noisereduction's Introduction

Noise Reduction Spatial

Demo of implementing CICD pipeline for image noise reduction algos, conducting few sample test cases on CircleCI to test the resulting image reduction

Here I am trying to run few basic Spatial denoise algos over a with 4 differnt types of noises added.

Filters that are implemented:

  1. Mean Filter
  2. Median Filter
  3. Guassian Filter
  4. Conservative Filter

First we try to add 4 different type of noise to our image

  1. Guassian Noise
  2. Poission Noise
  3. Sath and Pepper
  4. Speckle
python addnoise.py 

This will create 4 distorted images in the images/ directory Now we run our filters on top of these images

To verify the efficacy, we will convert the images to Grayscale and run a noise calculation function before and after applying the filter

python MeanFilter.py 

Output

Mean Filter

##### Running MEAN filter on different noises ####
Estimating quality for guassian image before mean filter   0.6361
Estimating quality for guassian image after mean filter   0.1604

image


Estimating quality for poisson image before mean filter    0.6416
Estimating quality for poisson image after mean filter    0.1614

image

Estimating quality for S&P image before mean filter   11.9353
Estimating quality for S&P image after mean filter    0.2798

image

Estimating quality for speckle image before mean filter   61.4482
Estimating quality for speckle image after mean filter    0.5790

image

Median Filter


##### Running MEDIAN filter on different noises ####
Estimating quality for guassian image before median filter   0.6361
Estimating quality for guassian image after median filter   0.1981

image

Estimating quality for poisson image before median filter    0.6416
Estimating quality for poisson image after median filter    0.1995

image

Estimating quality for S&P image before median filter   11.9353
Estimating quality for S&P image after median filter    0.2358

image

Estimating quality for speckle image before median filter   61.4482
Estimating quality for speckle image after median filter    1.6339

image

Guassian Filter

python GuassianBlur.py

##### Running GAUSSIAN filter on different noises ####
Estimating quality for guassian image before Gaussian filter   0.6361
Estimating quality for guassian image after Gaussian filter   0.1825

image

Estimating quality for poisson image before Gaussian filter    0.6416
Estimating quality for poisson image after Gaussian filter    0.1836

image

Estimating quality for S&P image before Gaussian filter   11.9353
Estimating quality for S&P image after Gaussian filter    0.2732

image

Estimating quality for speckle image before Gaussian filter   61.4482
Estimating quality for speckle image after Gaussian filter    0.3154

image

We can also run UnitTest on these algos

python -m unittest

(DJ) ag841k@US-00010509:~/AG/TopazLabs$ python -m unittest test.py
....
----------------------------------------------------------------------
Ran 4 tests in 13.222s

noisereduction's People

Contributors

ayush37 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.