NEG_EXP_NOISE_CVIP
neg_exp_noise_cvip() - adds Negative Exponential noise to an image.
Contents
SYNTAX
[ outImage ] = neg_exp_noise_cvip( inImage, var, noiseImgSize)
Input Parameters include:
- inImage - 1-band input image of MxN size or 3-band input image of MxNx3 size. The input image can be of uint8 or uint16 or double class.
- var - variance of Negative Exponential noise. (default 100)
- noiseImgSize - Size of Negative Exponential noise image. Only needed when noise is added to black image. noiseImgSize(1): height (default 256) noiseImgSize(2): width (default 256)
Output Parameter includes:
- outImage - Negative Exponential noise added image or Negative Exponential noise image
DESCRIPTION
The function adds Negative exponential noise to an image or creates Negative exponential noise image. If user wants to add Negative exponential noise to the image, the user needs to pass only two input arguments (input image, and noise variance). If user wants to create a Negative exponential noise image only, pass input image as an empty matrix [ ]. And, the size of the noise image can be defined by passing additional parameter (size of noise image). If not passed, default size of 256*256 will be selected.
REFERENCE
1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.
EXAMPLE
% Read image I = imread('butterfly.tif'); % Calling function with default parameters O1 = neg_exp_noise_cvip(I); % variance = 200 noise_parameter = 200; % Calling functon with user defined parameters O2 = neg_exp_noise_cvip(I,noise_parameter); % Negative exponential noise image image_size = [300 400]; %height = 300, width = 400 O3 = neg_exp_noise_cvip([],noise_parameter, image_size); % Display input image figure;imshow(I);title('Input image'); % Display output images figure;imshow(remap_cvip(O1,[]));title('Output image with default parameters'); figure;imshow(remap_cvip(O2,[]));title('Output image with user defined parameters'); figure;imshow(remap_cvip(O3,[]));title('Output image with user defined parameters');
CREDITS
Author:Norsang Lama, April 2017
Copyright © 2017-2018 Scott
E Umbaugh
For updates visit CVIP Toolbox Website