Medical Imaging Interaction Toolkit  2025.12.02
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 
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
#define MITKCLMRUTILITIES_EXPORT
Superclass of all classes generating Images (instances of class Image) as output.
Superclass of all classes having one or more Images as input and generating Images as output.
Image class for storing images.
Definition: mitkImage.h:70
void InternalComputeMask(itk::Image< TPixel, VImageDimension > *itkImage)
mitkClassMacro(MRNormLinearStatisticBasedFilter, ImageToImageFilter)
const mitk::Image * GetMask() const
void SetMask(const mitk::Image *mask)
Find image slices visible on a given plane.