Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkMRNormLinearStatisticBasedFilter.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 mitkMRNormLinearStatisticBasedFilter_h
14 #define mitkMRNormLinearStatisticBasedFilter_h
15 
16 #include "mitkCommon.h"
18 #include "mitkImageToImageFilter.h"
19 #include "mitkImageTimeSelector.h"
20 
21 #include "itkImage.h"
22 
23 namespace mitk {
24  //##Documentation
25  //## @brief
26  //## @ingroup Process
28  {
29  public:
31 
32  itkFactorylessNewMacro(Self);
33  itkCloneMacro(Self);
34 
35  void SetMask( const mitk::Image* mask );
36 
37  const mitk::Image* GetMask() const;
38 
40  {
43  MEDIAN
44  };
45 
46  itkGetConstMacro(CenterMode, NormalizationBase);
47  itkSetMacro(CenterMode, NormalizationBase);
48 
49  itkGetConstMacro(IgnoreOutlier, bool);
50  itkSetMacro(IgnoreOutlier, bool);
51 
52  itkGetConstMacro(TargetValue, double);
53  itkSetMacro(TargetValue, double);
54 
55  itkGetConstMacro(TargetWidth, double);
56  itkSetMacro(TargetWidth, double);
57 
58  protected:
60 
62 
63  void GenerateInputRequestedRegion() override;
64 
65  void GenerateOutputInformation() override;
66 
67  void GenerateData() override;
68 
69  template < typename TPixel, unsigned int VImageDimension >
70  void InternalComputeMask(itk::Image<TPixel, VImageDimension>* itkImage);
71 
74  private:
75  double m_TargetValue;
76  double m_TargetWidth;
77 
78  };
79 } // namespace mitk
80 
81 #endif
mitkImageToImageFilter.h
mitk::MRNormLinearStatisticBasedFilter
Definition: mitkMRNormLinearStatisticBasedFilter.h:27
mitk::MRNormLinearStatisticBasedFilter::m_IgnoreOutlier
bool m_IgnoreOutlier
Definition: mitkMRNormLinearStatisticBasedFilter.h:73
mitkImageTimeSelector.h
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk::MRNormLinearStatisticBasedFilter::MODE
@ MODE
Definition: mitkMRNormLinearStatisticBasedFilter.h:42
MITKCLMRUTILITIES_EXPORT
#define MITKCLMRUTILITIES_EXPORT
Definition: MitkCLMRUtilitiesExports.h:15
mitk::MRNormLinearStatisticBasedFilter::MEAN
@ MEAN
Definition: mitkMRNormLinearStatisticBasedFilter.h:41
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::MRNormLinearStatisticBasedFilter::m_CenterMode
NormalizationBase m_CenterMode
Definition: mitkMRNormLinearStatisticBasedFilter.h:72
mitk::MRNormLinearStatisticBasedFilter::NormalizationBase
NormalizationBase
Definition: mitkMRNormLinearStatisticBasedFilter.h:39
mitkCommon.h
MitkCLMRUtilitiesExports.h
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