Medical Imaging Interaction Toolkit  2026.06.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 {
35  {
36  public:
38 
39  itkFactorylessNewMacro(Self);
40  itkCloneMacro(Self);
41 
46  void SetMask( const mitk::Image* mask );
47 
52  const mitk::Image* GetMask() const;
53 
56  {
57  MEAN,
58  MODE,
59  MEDIAN
60  };
61 
62  itkGetConstMacro(CenterMode, NormalizationBase);
63  itkSetMacro(CenterMode, NormalizationBase);
64 
65  itkGetConstMacro(IgnoreOutlier, bool);
66  itkSetMacro(IgnoreOutlier, bool);
67 
68  itkGetConstMacro(TargetValue, double);
69  itkSetMacro(TargetValue, double);
70 
71  itkGetConstMacro(TargetWidth, double);
72  itkSetMacro(TargetWidth, double);
73 
74  protected:
76 
78 
80 
81  void GenerateOutputInformation() override;
82 
83  void GenerateData() override;
84 
86  template < typename TPixel, unsigned int VImageDimension >
87  void InternalComputeMask(itk::Image<TPixel, VImageDimension>* itkImage);
88 
91  private:
92  double m_TargetValue;
93  double m_TargetWidth;
94 
95  };
96 } // namespace mitk
97 
98 #endif
#define MITKCLMRUTILITIES_EXPORT
Superclass of all classes having one or more Images as input and generating Images as output.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
Normalizes MR images using linear scaling based on statistical measures within a mask region.
NormalizationBase
Enumeration for the statistical measure used as normalization center.
void InternalComputeMask(itk::Image< TPixel, VImageDimension > *itkImage)
Internal templated implementation that computes statistics and normalizes the image.
mitkClassMacro(MRNormLinearStatisticBasedFilter, ImageToImageFilter)
const mitk::Image * GetMask() const
Get the mask image used for computing statistics.
void SetMask(const mitk::Image *mask)
Set the mask image defining the region used for computing statistics.
Find image slices visible on a given plane.