Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkGIFCooccurenceMatrix2.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 mitkGIFCooccurenceMatrix2_h
14 #define mitkGIFCooccurenceMatrix2_h
15 
17 #include <mitkBaseData.h>
18 #include <MitkCLUtilitiesExports.h>
19 
20 #include <itkeigen/Eigen/src/Core/Array.h>
21 
22 namespace mitk
23 {
24 
133  {
134  public:
136  itkFactorylessNewMacro(Self);
137  itkCloneMacro(Self);
138 
140 
149  FeatureListType CalculateFeatures(const Image* image, const Image* mask, const Image* maskNoNAN) override;
150  using Superclass::CalculateFeatures;
151 
153  itkGetConstMacro(Ranges, std::vector<double>);
154 
159  void SetRanges(std::vector<double> ranges);
160 
165  void SetRange(double range);
166 
171  void AddArguments(mitkCommandLineParser& parser) const override;
172 
173  protected:
174  std::string GenerateLegacyFeatureEncoding(const FeatureID& id) const override;
175 
176  FeatureListType DoCalculateFeatures(const Image* image, const Image* mask) override;
177 
178  void ConfigureSettingsByParameters(const ParametersType& parameters) override;
179 
180  private:
181  std::vector<double> m_Ranges;
182  };
183 
184 }
185 #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 co-occurrence matrix.
FeatureListType CalculateFeatures(const Image *image, const Image *mask, const Image *maskNoNAN) override
Calculate co-occurrence matrix (version 2) features for the given image and mask.
void SetRange(double range)
Set a single distance range for co-occurrence computation.
void ConfigureSettingsByParameters(const ParametersType &parameters) override
void AddArguments(mitkCommandLineParser &parser) const override
Add command line arguments for configuring this feature class.
void SetRanges(std::vector< double > ranges)
Set multiple distance ranges for co-occurrence computation.
std::string GenerateLegacyFeatureEncoding(const FeatureID &id) const override
mitkClassMacro(GIFCooccurenceMatrix2, AbstractGlobalImageFeature)
FeatureListType DoCalculateFeatures(const Image *image, const Image *mask) override
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.