Medical Imaging Interaction Toolkit  2018.4.99-064ad45c
Medical Imaging Interaction Toolkit
mitkGIFFirstOrderHistogramStatistics.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 mitkGIFFirstOrderHistogramStatistics_h
14 #define mitkGIFFirstOrderHistogramStatistics_h
15 
17 #include <mitkBaseData.h>
18 #include <MitkCLUtilitiesExports.h>
19 
20 namespace mitk
21 {
89  {
90  public:
92  itkFactorylessNewMacro(Self);
93  itkCloneMacro(Self);
94 
96 
100  FeatureListType CalculateFeatures(const Image::Pointer & image, const Image::Pointer &feature) override;
101 
105  FeatureNameListType GetFeatureNames() override;
106 
107  itkGetConstMacro(Range,double);
108  itkSetMacro(Range, double);
109 
110  void CalculateFeaturesUsingParameters(const Image::Pointer & feature, const Image::Pointer &mask, const Image::Pointer &maskNoNAN, FeatureListType &featureList) override;
111  void AddArguments(mitkCommandLineParser &parser) override;
112  std::string GetCurrentFeatureEncoding() override;
113 
114 
118  int Bins;
119  std::string prefix;
120  };
121 
122  private:
123  double m_Range;
124  };
125 }
126 #endif //mitkGIFFirstOrderHistogramStatistics_h
Base of all data objects.
Definition: mitkBaseData.h:42
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< std::pair< std::string, double > > FeatureListType
Calulates first order features based on a histogram.
#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)