RTK  1.4.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
rtk::AdditiveGaussianNoiseImageFilter< TInputImage > Class Template Reference

#include <rtkAdditiveGaussianNoiseImageFilter.h>

+ Inheritance diagram for rtk::AdditiveGaussianNoiseImageFilter< TInputImage >:
+ Collaboration diagram for rtk::AdditiveGaussianNoiseImageFilter< TInputImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef InputImageType::ConstPointer InputImageConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef InputImageType::PixelType InputPixelType
 
typedef itk::UnaryFunctorImageFilter< InputImageType, InputImageType, NormalVariateNoiseFunctor< typename InputImageType::PixelType > > NoiseFilterType
 
typedef Superclass::OutputImagePointer OutputImagePointer
 
typedef Superclass::OutputImageRegionType OutputImageRegionType
 
typedef itk::SmartPointer< SelfPointer
 
typedef AdditiveGaussianNoiseImageFilter Self
 
typedef itk::ImageToImageFilter< TInputImage, TInputImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
void GenerateData () override
 
float GetMean () const
 
virtual const char * GetNameOfClass () const
 
InputImagePixelType GetOutputMaximum ()
 
InputImagePixelType GetOutputMinimum ()
 
float GetStandardDeviation () const
 
void SetMean (float mean)
 
void SetStandardDeviation (float stddev)
 
void SetSeed (unsigned long seed)
 
void SetOutputMinimum (InputImagePixelType min)
 
void SetOutputMaximum (InputImagePixelType max)
 

Static Public Member Functions

static Pointer New ()
 

Static Public Attributes

static const unsigned int InputImageDimension = TInputImage::ImageDimension
 

Protected Member Functions

 AdditiveGaussianNoiseImageFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 

Private Member Functions

 AdditiveGaussianNoiseImageFilter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

NoiseFilterType::Pointer m_NoiseFilter
 

Detailed Description

template<class TInputImage>
class rtk::AdditiveGaussianNoiseImageFilter< TInputImage >

Adds Gaussian noise to the input image.

Adds noise to the input image according to a Gaussian normal variate distribution. The user supplies the mean \(\bar{x}\) and standard deviation \(\sigma\), such that the output is given by:

\[ v_{out} = v_{in} + \bar{x} + \sigma * G(d) \]

where G() is the Gaussian generator and d is the seed. A particular seed can be specified in order to perform repeatable tests.

Test:
rtkrampfiltertest.cxx
Author
Gavin Baker: gavinb at cs_mu_oz_au

Definition at line 157 of file rtkAdditiveGaussianNoiseImageFilter.h.

Member Typedef Documentation

template<class TInputImage >
typedef itk::SmartPointer<const Self> rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::ConstPointer

Definition at line 165 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef InputImageType::ConstPointer rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::InputImageConstPointer

Definition at line 180 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef InputImageType::PixelType rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::InputImagePixelType

Definition at line 182 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef InputImageType::Pointer rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::InputImagePointer

Definition at line 179 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef InputImageType::RegionType rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::InputImageRegionType

Definition at line 181 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef TInputImage rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::InputImageType

Some convenient typedefs.

Definition at line 178 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef InputImageType::PixelType rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::InputPixelType

Definition at line 183 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef itk::UnaryFunctorImageFilter< InputImageType, InputImageType, NormalVariateNoiseFunctor< typename InputImageType::PixelType > > rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::NoiseFilterType

Definition at line 299 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef Superclass::OutputImagePointer rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::OutputImagePointer

Definition at line 175 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef Superclass::OutputImageRegionType rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::OutputImageRegionType

Superclass typedefs.

Definition at line 171 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef itk::SmartPointer<Self> rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::Pointer

Definition at line 164 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef AdditiveGaussianNoiseImageFilter rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::Self

Standard class typedefs.

Definition at line 162 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
typedef itk::ImageToImageFilter<TInputImage, TInputImage> rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::Superclass

Definition at line 163 of file rtkAdditiveGaussianNoiseImageFilter.h.

Constructor & Destructor Documentation

template<class TInputImage >
rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::AdditiveGaussianNoiseImageFilter ( )
protected
template<class TInputImage >
rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::AdditiveGaussianNoiseImageFilter ( const Self )
private

Member Function Documentation

template<class TInputImage >
virtual::itk::LightObject::Pointer rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::CreateAnother ( ) const
template<class TInputImage >
void rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::GenerateData ( )
override
template<class TInputImage >
float rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::GetMean ( ) const
inline

Returns the average noise added to the image per pixel. The default is 0.

Definition at line 210 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
virtual const char* rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage >
InputImagePixelType rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::GetOutputMaximum ( )
inline

Get the maximum output value.

Definition at line 279 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
InputImagePixelType rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::GetOutputMinimum ( )
inline

Get the minimum output value.

Definition at line 261 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
float rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::GetStandardDeviation ( ) const
inline

Returns the standard deviation of the noise added to the image. The default is 1.

Definition at line 230 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
static Pointer rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::New ( )
static

Method for creation through the object factory

template<class TInputImage >
void rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::operator= ( const Self )
private
template<class TInputImage >
void rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected
template<class TInputImage >
void rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::SetMean ( float  mean)
inline

Specifies the average noise added to the image per pixel. The default is 0.

Definition at line 199 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
void rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::SetOutputMaximum ( InputImagePixelType  max)
inline

Set the maximum output value.

Definition at line 267 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
void rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::SetOutputMinimum ( InputImagePixelType  min)
inline

Set the minimum output value.

Definition at line 249 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
void rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::SetSeed ( unsigned long  seed)
inline

Specifies the seed for the normal variate generator. The same seed will produce the same pseduo-random sequence, which can be used to reproduce results. For a higher dose of entropy, initialise with the current system time (in ms).

Definition at line 241 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
void rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::SetStandardDeviation ( float  stddev)
inline

Specifies the standard deviation of the noise added to the image. The default is 1.

Definition at line 219 of file rtkAdditiveGaussianNoiseImageFilter.h.

Member Data Documentation

template<class TInputImage >
const unsigned int rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::InputImageDimension = TInputImage::ImageDimension
static

ImageDimension constants

Definition at line 187 of file rtkAdditiveGaussianNoiseImageFilter.h.

template<class TInputImage >
NoiseFilterType::Pointer rtk::AdditiveGaussianNoiseImageFilter< TInputImage >::m_NoiseFilter
private

Definition at line 303 of file rtkAdditiveGaussianNoiseImageFilter.h.


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