Noise in an image: Digital images are prone to various types of noise that makes the quality of the images worst. Image noise is random variation of brightness or color information in the captured image. Noise is basically the degradation in image signal caused by external sources such as camera. Images containing multiplicative noise have the characteristic that the brighter the area the noisier it. But mostly it is additive. There are several ways to introduce noise into an image, depending on how the image is created. For example:
- If the image is scanned from a photograph made on film, the film grain can be the source of noise. Noise can also be the result of damage to the film, or be introduced by the scanner fluctuations itself.
- If the image is acquired directly in digital format, the mechanism for gathering the data (such as a CCD detector) can introduce noise.
- Electronic transmission of digital image data can also introduce noise.
To simulate the effects of some of the problems listed above, the toolbox provides the in-built imnoise function in MATLAB, which you can use to add various types of noise to an image.
Various kind of noise that can be introduced by MATLAB inbuilt function are:
- Salt and Pepper noise: Salt and pepper noise refers to a wide variety of processes that result in the image degradation. In Salt and Pepper noise only few pixels are noisy, but they are very noisy. The effect is similar to sprinkling white and black dots on the image.
X = imnoise(Image, 'salt & pepper', percentage_distortion)
Above in-built function adds “salt and pepper” noise to an image named Image, where percentage_distortion is the noise density. The default for percentage_distortion is 0.05.
- Gaussian noise: Gaussian Noise is a statistical noise having a probability density function equal to normal distribution, also known as Gaussian Distribution. It is also called electronic noise because it arises in amplifiers or detectors.
X = imnoise(Image, 'gaussian', percentage_distortion)
- Speckle noise: Speckle is a noise that inherently exists in an image and degrades its quality. Speckle noise can be generated by multiplying random pixel values with different pixels of an image.
X = imnoise(Image, 'speckle', percentage_distortion)
Below is the Matlab code for adding noise in an image:
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Salt and Pepper Noise removal using C++
- Noise removal using Median filter in C++
- Wand noise() function - Python
- Python | Peak Signal-to-Noise Ratio (PSNR)
- Matlab | Edge Detection of an image without using in-built function
- Matlab program to rotate an image 180 degrees clockwise without using function
- Edge detection using in-built function in MATLAB
- MATLAB | Converting a Grayscale Image to Binary Image using Thresholding
- Draw Switzerland Flag Using Matlab
- LSB based Image steganography using MATLAB
- Draw Sweden Flag using matlab
- How to draw Japan flag using MATLAB
- Draw Kuwait Flag using MATLAB
- Draw Sudan Flag using MATLAB
- Draw Indian Flag using matlab
- Draw Seychelles Flag using MATLAB
- Draw Austria flag using Matlab
- Draw Bangladesh Flag Using Matlab
- Plot a circle using centre point and radius in MATLAB
- Draw Thailand Flag Using MATLAB
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.