irtkGaussianNoise< VoxelType > Class Template Reference

#include <irtkGaussianNoise.h>

Inheritance diagram for irtkGaussianNoise< VoxelType >:

Inheritance graph
[legend]
Collaboration diagram for irtkGaussianNoise< VoxelType >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class VoxelType>
class irtkGaussianNoise< VoxelType >

Class for adding Gaussian noise to images.

This class implements a filter for adding Gaussian noise to images.

Definition at line 24 of file irtkGaussianNoise.h.


Public Member Functions

 irtkGaussianNoise (double mean, double sigma, VoxelType min, VoxelType max)
 Constructor.
 ~irtkGaussianNoise ()
 Destructor (empty).
virtual double Run (int, int, int, int)
 Run filter on single voxel.
 SetMacro (Mean, double)
 Set mean of Gaussian noise.
 GetMacro (Mean, double)
 Get mean of Gaussian noise.
 SetMacro (Sigma, double)
 Set standard deviation of Gaussian noise.
 GetMacro (Sigma, double)
 Get standard deviation of Gaussian noise.
 SetMacro (MinVal, VoxelType)
 Set minimum value for Gaussian noise.
 GetMacro (MinVal, VoxelType)
 Get minimum value for Gaussian noise.
 SetMacro (MaxVal, VoxelType)
 Set maximum value for Gaussian noise.
 GetMacro (MaxVal, VoxelType)
 Get maximum value for Gaussian noise.

Protected Member Functions

virtual const char * NameOfClass ()
 Returns the name of the class.

Protected Attributes

double _Mean
 The mean value of the noise distribution.
double _Sigma
 The standard deviation of the noise distribution.
VoxelType _MinVal
 Minimum voxel value.
VoxelType _MaxVal
 Maximum voxel value.

Constructor & Destructor Documentation

template<class VoxelType>
irtkGaussianNoise< VoxelType >::irtkGaussianNoise ( double  mean,
double  sigma,
VoxelType  min,
VoxelType  max 
)

Constructor.

Sets mean value and standard deviation of the noise distribution, and range of values permitted for each voxel in the image.


Member Data Documentation

template<class VoxelType>
double irtkGaussianNoise< VoxelType >::_Sigma [protected]

The standard deviation of the noise distribution.

This is the same as the amplitude of the noise.

Definition at line 35 of file irtkGaussianNoise.h.


The documentation for this class was generated from the following file: