Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
mitkBilateralFilter.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 #ifndef __mitkBilateralFilter_h
13 #define __mitkBilateralFilter_h
14 
16 
17 // MITK
18 #include "mitkImageToImageFilter.h"
19 #include <itkImage.h>
20 #include <mitkImage.h>
21 
22 namespace mitk
23 {
25  {
26  public:
28  itkFactorylessNewMacro(Self);
29  itkCloneMacro(Self);
30  itkSetMacro(DomainSigma, float);
31  itkSetMacro(RangeSigma, float);
32  itkSetMacro(AutoKernel, bool);
33  itkSetMacro(KernelRadius, unsigned int);
34 
35  itkGetMacro(DomainSigma, float);
36  itkGetMacro(RangeSigma, float);
37  itkGetMacro(AutoKernel, bool);
38  itkGetMacro(KernelRadius, unsigned int);
39 
40  protected:
48  ~BilateralFilter() override;
53  void GenerateOutputInformation() override;
58  void GenerateData() override;
59 
63  template <typename TPixel, unsigned int VImageDimension>
64  void ItkImageProcessing(const itk::Image<TPixel, VImageDimension> *itkImage);
65 
66  float m_DomainSigma;
67  float m_RangeSigma;
68  bool m_AutoKernel; // true: kernel size is calculated from DomainSigma. See ITK Doc; false: set by m_KernelRadius
69  unsigned int m_KernelRadius; // use in combination with m_AutoKernel = true
70  };
71 } // END mitk namespace
72 #endif
Superclass of all classes generating some kind of mitk::BaseData.
#define MITKIMAGEDENOISING_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
float m_RangeSigma
Sigma of the gaussian kernel. See ITK docu.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Superclass of all classes having one or more Images as input and generating Images as output...
bool m_AutoKernel
Sigma of the range mask kernel. See ITK docu.