Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
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 
144  FeatureListType CalculateFeatures(const Image::Pointer & image, const Image::Pointer &feature) override;
145 
149  FeatureNameListType GetFeatureNames() override;
150 
151  void CalculateFeaturesUsingParameters(const Image::Pointer & feature, const Image::Pointer &mask, const Image::Pointer &maskNoNAN, FeatureListType &featureList) override;
152  void AddArguments(mitkCommandLineParser &parser) override;
153  std::string GetCurrentFeatureEncoding() override;
154 
155  itkGetConstMacro(Range,double);
156  itkSetMacro(Range, double);
157 
159  {
160  double range;
161  unsigned int direction;
162 
165  int Bins;
166  std::string prefix;
167  };
168 
169  private:
170  double m_Range;
171  };
172 
173 }
174 #endif //mitkGIFCooccurenceMatrix2_h
Base of all data objects.
Definition: mitkBaseData.h:37
DataCollection - Class to facilitate loading/accessing structured data.
Calculates features based on the co-occurence matrix.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
#define MITKCLUTILITIES_EXPORT
mitk::Image::Pointer image
mitk::Image::Pointer mask
void CalculateFeatures(mitk::CoocurenceMatrixHolder &holder, mitk::CoocurenceMatrixFeatures &results)