addCauchyNoise
Compute a sample image corrupted with a Cauchy noise.
Contents
Syntax.
[ Xnoisy ] = addCauchyNoise( X, gamma );
Definitions.
For , and a pixel image X, the Cauchy distribution is given by the following density:
Description.
[ Xnoisy ] = addCauchyNoise( X, gamma ) computes a sample image corrupted with a Cauchy noise with parameter gamma.
Example.
% Define gamma parameter gamma=5; % Load an image. input= imread('./data/parrot.png'); % Corrupt the image. noisy = addCauchyNoise( input, gamma); % Display the objective function. figure, imshow(noisy), title('Cauchy noise on an image')
Error using imread>get_full_filename (line 516) File "./data/parrot.png" does not exist. Error in imread (line 340) fullname = get_full_filename(filename); Error in doc_addCauchyNoise (line 26) input= imread('./data/parrot.png');