Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkSmoothedClassProbabilites.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 itSmoothedClassProbabilites_h
18 #define itSmoothedClassProbabilites_h
19 
20 #include "itkImageToImageFilter.h"
21 
22 namespace itk
23 {
24 template< class TImage>
25 class SmoothedClassProbabilites:public ImageToImageFilter< TImage, TImage >
26 {
27 public:
30  typedef ImageToImageFilter< TImage, TImage > Superclass;
32 
34  itkNewMacro(Self)
35 
36 
37  itkTypeMacro(SmoothedClassProbabilites, ImageToImageFilter)
38 
39  itkSetMacro(Sigma, double)
40 
41  void SetMaskImage(TImage * mask){m_MaskImage = mask;}
42 
43 protected:
46 
47 
49  virtual void GenerateData();
50 
51 private:
52  //LabelSampler(const Self &); //purposely not implemented
53  //void operator=(const Self &); //purposely not implemented
54 
55  double m_Sigma;
56  TImage * m_MaskImage;
57 
58 };
59 } //namespace ITK
60 
61 
62 #ifndef ITK_MANUAL_INSTANTIATION
63 #include <../src/Algorithms/itkSmoothedClassProbabilites.cpp>
64 #endif
65 
66 
67 #endif // itLabelSampler_h
ImageToImageFilter< TImage, TImage > Superclass