Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkRicianNoiseModel.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _MITK_RicianNoiseModel_H
18 #define _MITK_RicianNoiseModel_H
19 
21 #include <itkMersenneTwisterRandomVariateGenerator.h>
22 
23 namespace mitk {
24 
30 template< class ScalarType >
31 class RicianNoiseModel : public DiffusionNoiseModel< ScalarType >
32 {
33 public:
34 
37 
39 
41  void AddNoise(PixelType& pixel);
42 
43  void SetNoiseVariance(double var){ m_NoiseVariance = var; }
44  double GetNoiseVariance(){ return m_NoiseVariance; }
45  void SetSeed(int seed);
46 
47 protected:
48 
50  double m_NoiseVariance;
51 
52 };
53 
54 }
55 
56 #include "mitkRicianNoiseModel.cpp"
57 
58 #endif
59 
void AddNoise(PixelType &pixel)
itk::SmartPointer< Self > Pointer
void SetNoiseVariance(double var)
itk::Statistics::MersenneTwisterRandomVariateGenerator::Pointer m_RandGen
DataCollection - Class to facilitate loading/accessing structured data.
DiffusionNoiseModel< ScalarType >::PixelType PixelType
void SetSeed(int seed)
Set seed for random number generator.
double m_NoiseVariance
variance of underlying distribution
Implementation of noise following a rician distribution.
Abstract class for diffusion noise models.