Medical Imaging Interaction Toolkit  2022.04.99-b878213f
Medical Imaging Interaction Toolkit
mitkGIFNeighbourhoodGreyLevelDifference.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 mitkGIFNeighbourhoodGreyLevelDifference_h
14 #define mitkGIFNeighbourhoodGreyLevelDifference_h
15 
17 #include <mitkBaseData.h>
18 #include <MitkCLUtilitiesExports.h>
19 
20 namespace mitk
21 {
23  {
24  public:
26  itkFactorylessNewMacro(Self);
27  itkCloneMacro(Self);
28 
30 
31  FeatureListType CalculateFeatures(const Image* image, const Image* mask, const Image* maskNoNAN) override;
32  using Superclass::CalculateFeatures;
33 
34  itkGetConstMacro(Ranges, std::vector<double>);
35  void SetRanges(std::vector<double> ranges);
36  void SetRange(double range);
37 
38  itkGetConstMacro(UseCTRange, bool);
39  itkSetMacro(UseCTRange, bool);
40 
41  void AddArguments(mitkCommandLineParser &parser) const override;
42 
43  protected:
44  std::string GenerateLegacyFeatureName(const FeatureID& id) const override;
45 
46  FeatureListType DoCalculateFeatures(const Image* image, const Image* mask) override;
47 
48  void ConfigureSettingsByParameters(const ParametersType& parameters) override;
49 
50  private:
51  std::vector<double> m_Ranges;
52  bool m_UseCTRange;
53  };
54 }
55 #endif //mitkGIFNeighbourhoodGreyLevelDifference_h
Base of all data objects.
Definition: mitkBaseData.h:42
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Image class for storing images.
Definition: mitkImage.h:69
std::vector< std::pair< FeatureID, double > > FeatureListType
#define MITKCLUTILITIES_EXPORT