Medical Imaging Interaction Toolkit  2026.06.00
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 
48  FeatureListType CalculateFeatures(const Image* image, const Image* mask, const Image* maskNoNAN) override;
49  using Superclass::CalculateFeatures;
50 
52  itkGetConstMacro(Ranges, std::vector<double>);
53 
58  void SetRanges(std::vector<double> ranges);
59 
64  void SetRange(double range);
65 
70  void AddArguments(mitkCommandLineParser& parser) const override;
71 
72  protected:
73 
74  std::string GenerateLegacyFeatureNamePart(const FeatureID& id) const override;
75  std::string GenerateLegacyFeatureEncoding(const FeatureID& id) const override;
76 
77  FeatureListType DoCalculateFeatures(const Image* image, const Image* mask) override;
78 
79  void ConfigureSettingsByParameters(const ParametersType& parameters) override;
80 
81  private:
82  std::vector<double> m_Ranges;
83  };
84 
85 }
86 #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
void ConfigureSettingsByParameters(const ParametersType &parameters) override
void SetRanges(std::vector< double > ranges)
Set multiple distance ranges for co-occurrence computation.
std::string GenerateLegacyFeatureNamePart(const FeatureID &id) const override
FeatureListType CalculateFeatures(const Image *image, const Image *mask, const Image *maskNoNAN) override
Calculate co-occurrence matrix features for the given image and mask.
void AddArguments(mitkCommandLineParser &parser) const override
Add command line arguments for configuring this feature class.
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)
Set a single distance range for co-occurrence computation.
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.