Medical Imaging Interaction Toolkit  2026.06.00
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 {
31  {
32  public:
34  itkFactorylessNewMacro(Self);
35  itkCloneMacro(Self);
36 
38 
47  FeatureListType CalculateFeatures(const Image* image, const Image* mask, const Image* maskNoNAN) override;
48  using Superclass::CalculateFeatures;
49 
51  itkGetConstMacro(Ranges, std::vector<double>);
52 
57  void SetRanges(std::vector<double> ranges);
58 
63  void SetRange(double range);
64 
66  itkGetConstMacro(UseCTRange, bool);
68  itkSetMacro(UseCTRange, bool);
69 
74  void AddArguments(mitkCommandLineParser &parser) const override;
75 
76  protected:
77  std::string GenerateLegacyFeatureName(const FeatureID& id) const override;
78 
79  FeatureListType DoCalculateFeatures(const Image* image, const Image* mask) override;
80 
81  void ConfigureSettingsByParameters(const ParametersType& parameters) override;
82 
83  private:
84  std::vector<double> m_Ranges;
85  bool m_UseCTRange;
86  };
87 }
88 #endif
#define MITKCLUTILITIES_EXPORT
Command line argument parser for MITK applications, based on the CTK command line parser.
std::vector< std::pair< FeatureID, double > > FeatureListType
Calculates features based on the neighbourhood grey level difference.
std::string GenerateLegacyFeatureName(const FeatureID &id) const override
void SetRange(double range)
Set a single distance range for neighbourhood computation.
void ConfigureSettingsByParameters(const ParametersType &parameters) override
FeatureListType DoCalculateFeatures(const Image *image, const Image *mask) override
void AddArguments(mitkCommandLineParser &parser) const override
Add command line arguments for configuring this feature class.
FeatureListType CalculateFeatures(const Image *image, const Image *mask, const Image *maskNoNAN) override
Calculate neighbourhood grey level difference features for the given image and mask.
void SetRanges(std::vector< double > ranges)
Set multiple distance ranges for neighbourhood computation.
mitkClassMacro(GIFNeighbourhoodGreyLevelDifference, AbstractGlobalImageFeature)
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
Find image slices visible on a given plane.
Unique identifier for a computed image feature.