Giter VIP home page Giter VIP logo

add_salt-pepper_noise's Introduction

Add Salt&Pepper Noise

Code for adding Salt&Pepper noise to an image ,you can customize pa and pb to your need.

Requirement:

  • OpenCV (2.2.0+)

  • IDE: {QT(suggested) or VS} or maybe simply a g++ compiler

  • Some C++ standard libs

Notes: This is a project for adding salt&pepper noise to an image and try to remove it using median filter (I write this code in ubuntu 14.04)

First we have an image below as original image :(lena for example)

To add salt&pepper noise to the image above and the result is the following:(I set pa=0.1and pb =0.05)

After step2 we will generate an noise-image, we can remove the salt-pepper noise using Median filter

And the effect:

Note that the code is in main.cpp, I also add the add-guassian-noise section,again you can try different pa,pb of salt-pepper noise and different sigma,mean of guassian-noise.

add_salt-pepper_noise's People

Contributors

timlentse avatar

Stargazers

Alireza Yoonesi avatar  avatar Dylan Deelen avatar  avatar  avatar Shan Wijenayaka avatar Luo avatar  avatar Şems Turgut avatar 少左 avatar

Watchers

James Cloos avatar  avatar 少左 avatar  avatar

add_salt-pepper_noise's Issues

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.