AddNoise¶
-
MLModule
¶ genre Generators
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLBasicModules
definition mlBasicModules.def keywords uniform
,gaussian
,white
,random
,disturbance
,inhomogeneity
,testing
,segmentation
,gray
,gaussian
,speckle
,salt
,pepper
,checkerboard
Purpose¶
The AddNoise
module produces noise from various distributions.
Usage¶
Connect an image, choose a distribution and set the parameters. Note that only scalar input images are currently supported, i.e. adding noise to vector or tensor images is not supported.
Details¶
Random numbers are generated using the boost library and the lagged_fibonacci607 random number generator. The following noise distributions are available:
Uniform | Adds uniformly distributed noise to the image: I = I + noise |
Gaussian | Adds Gaussian noise of mean m and variance v to the image: I = I + noise |
Gaussian DTI | Adds complex Gaussian noise of variance v to the MR signal |
Salt & Pepper | Adds salt and pepper noise to the image (intensity=amplitude or amplitude2 for density*100% of the pixels): I = I + noise |
Speckle | Adds multiplicative noise (Gaussian white noise of variance v) to the image: I = I + I*noise |
Tips¶
If just a noise image is desired, produce a constant image with the ConstantImage
module and attach it to the AddNoise
module.
Input Fields¶
A scalar image volume. Vector and tensor images are not yet supported.
Parameter Fields¶
Field Index¶
Add Input : Bool |
sigma (input image) : Float |
Density : Float |
sigma (output image) : Float |
Gray Value 1 (Salt) : Float |
|
Gray Value 2 (Pepper) : Float |
|
Mean Value : Float |
|
Noise Type : Enum |
|
RandSeed (negative: unused) : Integer |
|
sigma (additive) : Float |
Visible Fields¶
Add Input¶
-
name:
addInput
, type:
Bool
, default:
TRUE
¶ If checked, the voxel values of the input image are being added to the output (noise) voxel values.
RandSeed (negative: unused)¶
-
name:
randSeed
, type:
Integer
, default:
-1
¶ Sets the seed for the random number generator.
If a negative number is selected, a seed is chosen based on the current time.
Noise Type¶
-
name:
noiseType
, type:
Enum
, default:
Uniform
¶ Defines the type of noise that is being generated.
Values:
Title | Name | Description | ||||||
---|---|---|---|---|---|---|---|---|
Gaussian | Gaussian |
|
||||||
Gaussian Dti | GaussianDti |
|
||||||
Salt Pepper | SaltPepper |
|
||||||
Speckle | Speckle |
|
||||||
Checkerboard | Checkerboard |