NOISE_SCATTER

NOISE_SCATTER

The NOISE_SCATTER function introduces noise into an image by applying normally distributed noise to the entire image. In the normal distribution, a large number of pixels will have smaller amounts of noise applied to them, while fewer pixels will have larger amounts of noise applied to them.

This routine is written in the IDL language. Its source code can be found in the file noise_scatter.pro in the lib subdirectory of the IDL distribution.

Syntax

Return Value

Result is an array of the same type and dimensions as Image.

Arguments

Image

A two dimensional or three dimensional array containing the input image. Two dimensional arrays are treated as single channel images. For three dimensional arrays, the first dimension contains the color channels (Pixel Interleave).

Keywords

CORRELATED_NOISE

Set this keyword to apply the same noise distribution to all channels of the image. By default, a new noise distribution is generated for each channel.

LEVELS

Set this keyword to a 3-element floating-point array containing noise scale factors for each image channel. Values must be in the range [0.0 to 1.0]. The default is [0.5, 0.5, 0.5].

NOISE_FACTOR

Set this keyword to a scalar noise scale factor to be applied to all channels. A typical value is half the range of the image data. The default value is 127 (suitable for BYTE images).

SEED

Set this keyword to the seed value for the random number generator. This keyword is used in the same way as the SEED argument for RANDOMU.