Medical Imaging Interaction Toolkit  2023.12.00
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
mitk::BilateralFilter::m_DomainSigma
float m_DomainSigma
Definition: mitkBilateralFilter.h:66
mitkImageToImageFilter.h
mitkImage.h
mitk::BilateralFilter::m_RangeSigma
float m_RangeSigma
Sigma of the gaussian kernel. See ITK docu.
Definition: mitkBilateralFilter.h:67
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::BilateralFilter::m_KernelRadius
unsigned int m_KernelRadius
Definition: mitkBilateralFilter.h:69
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::BilateralFilter::m_AutoKernel
bool m_AutoKernel
Sigma of the range mask kernel. See ITK docu.
Definition: mitkBilateralFilter.h:68
MitkImageDenoisingExports.h
MITKIMAGEDENOISING_EXPORT
#define MITKIMAGEDENOISING_EXPORT
Definition: MitkImageDenoisingExports.h:15
mitk::BilateralFilter
Definition: mitkBilateralFilter.h:24
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition: mitkImageToImageFilter.h:25