Medical Imaging Interaction Toolkit  2023.12.99-63768887
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 <Eigen/src/Core/Array.h>
21 
22 namespace mitk
23 {
24 
133  {
134  public:
136  itkFactorylessNewMacro(Self);
137  itkCloneMacro(Self);
138 
140 
141  FeatureListType CalculateFeatures(const Image* image, const Image* mask, const Image* maskNoNAN) override;
142  using Superclass::CalculateFeatures;
143 
144  itkGetConstMacro(Ranges, std::vector<double>);
145  void SetRanges(std::vector<double> ranges);
146  void SetRange(double range);
147 
148  void AddArguments(mitkCommandLineParser& parser) const override;
149 
150  protected:
151  std::string GenerateLegacyFeatureEncoding(const FeatureID& id) const override;
152 
153  FeatureListType DoCalculateFeatures(const Image* image, const Image* mask) override;
154 
155  void ConfigureSettingsByParameters(const ParametersType& parameters) override;
156 
157  private:
158  std::vector<double> m_Ranges;
159  };
160 
161 }
162 #endif
mitkAbstractGlobalImageFeature.h
MITKCLUTILITIES_EXPORT
#define MITKCLUTILITIES_EXPORT
Definition: MitkCLUtilitiesExports.h:15
mitk::GIFCooccurenceMatrix2
Calculates features based on the co-occurence matrix.
Definition: mitkGIFCooccurenceMatrix2.h:132
mitk::FeatureID
Definition: mitkAbstractGlobalImageFeature.h:38
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::AbstractGlobalImageFeature
Definition: mitkAbstractGlobalImageFeature.h:151
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitkCommandLineParser
Definition: mitkCommandLineParser.h:50
mitkBaseData.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::AbstractGlobalImageFeature::FeatureListType
std::vector< std::pair< FeatureID, double > > FeatureListType
Definition: mitkAbstractGlobalImageFeature.h:156
mitk::AbstractGlobalImageFeature::ParametersType
FeatureID::ParametersType ParametersType
Definition: mitkAbstractGlobalImageFeature.h:157
MitkCLUtilitiesExports.h