addCauchyNoise

Compute a sample image corrupted with a Cauchy noise.

Contents

Syntax.

[ Xnoisy ] = addCauchyNoise( X, gamma );

Definitions.

For $\gamma \in R$, and a pixel image X, the Cauchy distribution is given by the following density:

$$f(t) = \frac{1}{\pi}\; arctan (\frac{ t-X }{\gamma}) + \frac{1 }{2} $$

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');