Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDiffusionNoiseModel.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_DiffusionNoiseModel_H
18 #define _MITK_DiffusionNoiseModel_H
19 
20 #include <MitkFiberTrackingExports.h>
21 #include <itkVariableLengthVector.h>
22 #include <itkVector.h>
23 #include <vnl/vnl_vector_fixed.h>
24 #include <boost/random.hpp>
25 
26 namespace mitk {
27 
33 template< class ScalarType >
35 {
36 public:
37 
40 
42 
44  virtual void AddNoise(PixelType& pixel) = 0;
45 
47  virtual void SetSeed(int seed) = 0;
48 
49  virtual double GetNoiseVariance() = 0;
50  virtual void SetNoiseVariance(double var) = 0;
51 
52 protected:
53 
54 };
55 
56 }
57 
58 #endif
59 
virtual void SetNoiseVariance(double var)=0
virtual void SetSeed(int seed)=0
DataCollection - Class to facilitate loading/accessing structured data.
virtual void AddNoise(PixelType &pixel)=0
virtual double GetNoiseVariance()=0
Abstract class for diffusion noise models.
itk::VariableLengthVector< ScalarType > PixelType