Medical Imaging Interaction Toolkit  2026.06.00
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef itkSmoothedClassProbabilites_h
14 #define itkSmoothedClassProbabilites_h
15 
16 #include <itkImageToImageFilter.h>
17 
18 namespace itk
19 {
28 template< class TImage>
29 class SmoothedClassProbabilites:public ImageToImageFilter< TImage, TImage >
30 {
31 public:
34  typedef ImageToImageFilter< TImage, TImage > Superclass;
36 
38  itkNewMacro(Self);
40  itkTypeMacro(SmoothedClassProbabilites, ImageToImageFilter);
41  itkSetMacro(Sigma, double);
42 
47  void SetMaskImage(TImage * mask){m_MaskImage = mask;}
48 
49 protected:
52 
53 
55  virtual void GenerateData();
56 
57 private:
58  //LabelSampler(const Self &); //purposely not implemented
59  //void operator=(const Self &); //purposely not implemented
60 
61  double m_Sigma;
62  TImage * m_MaskImage;
63 
64 };
65 } //namespace ITK
66 
67 
68 #ifndef ITK_MANUAL_INSTANTIATION
69 #include "../src/Algorithms/itkSmoothedClassProbabilites.cpp"
70 #endif
71 
72 
73 #endif // itLabelSampler_h
Applies Gaussian smoothing to class probability images within a mask region.
void SetMaskImage(TImage *mask)
Set the mask image that restricts the smoothing region.
ImageToImageFilter< TImage, TImage > Superclass