GAUSSIAN_NOISE_CVIP

gaussian_noise_cvip() - adds Gaussian noise to an image.

Contents

SYNTAX

[ outImage ] = gaussian_noise_cvip( inImage, gaussianArgs, noiseImgSize)

Input Parameters include :

Output Parameter includes :

DESCRIPTION

The function adds Gaussian noise to an image or creates Gaussian noise image. If the user wants to add Gaussian noise to an image, the user needs to pass only two input arguments (input image and gaussian noise arguments). The gaussian noise argument consists of mean and variance values. If the user wants to create a Gaussian noise image only, the input image is to be passed as an empty matrix [ ]. The size of the noise image can be defined by passing additional parameters. The default size of the image is 256*256.

REFERENCE

1.Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

EXAMPLE

% Read image

 I = imread('butterfly.tif');

% default parameters

 O1 = gaussian_noise_cvip(I);
 noise_parameter = [20 100];       %mean = 20, variance =100

% Gamma noise added image

 O2 = gaussian_noise_cvip(I,noise_parameter);


% Gamma noise image

 image_size = [300 400];           %height = 300, width = 400
 O3 = gaussian_noise_cvip([],noise_parameter, image_size);

% Display input image

 figure;imshow(I);title('Input Image');

% Display output image

 figure;imshow(remap_cvip(O1,[]));title('Gamma noise added image ');
 figure;imshow(remap_cvip(O2,[]));title('Gamma noise added image with default parameters');
 figure;imshow(remap_cvip(O3,[]));title('Gamma noise added image with user defined parameters');

CREDITS

Author: Norsang Lama, April 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website