Medical Imaging Interaction Toolkit  2018.4.99-07c45cb1
Medical Imaging Interaction Toolkit
mitkGIFNeighbouringGreyLevelDependenceFeatures.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 mitkGIFNeighbouringGreyLevelDependenceFeatures_h
14 #define mitkGIFNeighbouringGreyLevelDependenceFeatures_h
15 
17 #include <mitkBaseData.h>
18 #include <MitkCLUtilitiesExports.h>
19 
20 #include <Eigen/src/Core/Array.h>
21 
22 namespace mitk
23 {
117  {
118  public:
120  itkFactorylessNewMacro(Self);
121  itkCloneMacro(Self);
122 
124 
128  FeatureListType CalculateFeatures(const Image::Pointer & image, const Image::Pointer &feature) override;
129 
133  FeatureNameListType GetFeatureNames() override;
134 
135  std::string GetCurrentFeatureEncoding() override;
136 
137  itkGetConstMacro(Range,double);
138  itkSetMacro(Range, double);
139  itkGetConstMacro(Alpha, int);
140  itkSetMacro(Alpha, int);
141 
142  void CalculateFeaturesUsingParameters(const Image::Pointer & feature, const Image::Pointer &mask, const Image::Pointer &maskNoNAN, FeatureListType &featureList) override;
143  void AddArguments(mitkCommandLineParser &parser) override;
144 
145 
147  {
148  double range;
149  unsigned int direction;
150  int alpha;
151 
154  int Bins;
155  std::string FeatureEncoding;
156  };
157 
158  private:
159  double m_Range;
160  int m_Alpha;
161  };
162 
163 }
164 #endif //mitkGIFNeighbouringGreyLevelDependenceFeature_h
Base of all data objects.
Definition: mitkBaseData.h:37
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< std::pair< std::string, double > > FeatureListType
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
#define MITKCLUTILITIES_EXPORT
mitk::Image::Pointer image
Calculates the Neighbouring Grey Level Dependence Features.
mitk::Image::Pointer mask
void CalculateFeatures(mitk::CoocurenceMatrixHolder &holder, mitk::CoocurenceMatrixFeatures &results)