Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkGIFCooccurenceMatrix.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 mitkGIFCooccurenceMatrix_h
14 #define mitkGIFCooccurenceMatrix_h
15 
17 #include <mitkBaseData.h>
18 #include <MitkCLUtilitiesExports.h>
19 
20 namespace mitk
21 {
22 
24  {
33  public:
35  itkFactorylessNewMacro(Self);
36  itkCloneMacro(Self);
37 
39 
40  FeatureListType CalculateFeatures(const Image* image, const Image* mask, const Image* maskNoNAN) override;
41  using Superclass::CalculateFeatures;
42 
43  itkGetConstMacro(Ranges, std::vector<double>);
44  void SetRanges(std::vector<double> ranges);
45  void SetRange(double range);
46 
47  void AddArguments(mitkCommandLineParser& parser) const override;
48 
49  protected:
50 
51  std::string GenerateLegacyFeatureNamePart(const FeatureID& id) const override;
52  std::string GenerateLegacyFeatureEncoding(const FeatureID& id) const override;
53 
54  FeatureListType DoCalculateFeatures(const Image* image, const Image* mask) override;
55 
56  void ConfigureSettingsByParameters(const ParametersType& parameters) override;
57 
58  private:
59  std::vector<double> m_Ranges;
60  };
61 
62 }
63 #endif
#define MITKCLUTILITIES_EXPORT
std::vector< std::pair< FeatureID, double > > FeatureListType
void ConfigureSettingsByParameters(const ParametersType &parameters) override
void SetRanges(std::vector< double > ranges)
std::string GenerateLegacyFeatureNamePart(const FeatureID &id) const override
FeatureListType CalculateFeatures(const Image *image, const Image *mask, const Image *maskNoNAN) override
void AddArguments(mitkCommandLineParser &parser) const override
std::string GenerateLegacyFeatureEncoding(const FeatureID &id) const override
FeatureListType DoCalculateFeatures(const Image *image, const Image *mask) override
mitkClassMacro(GIFCooccurenceMatrix, AbstractGlobalImageFeature)
Calculates features based on the co-occurrence matrix.
void SetRange(double range)
Image class for storing images.
Definition: mitkImage.h:70
Find image slices visible on a given plane.