Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkAbstractGlobalImageFeature.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef mitkAbstractGlobalImageFeature_h
19 #define mitkAbstractGlobalImageFeature_h
20 
21 #include <MitkCLCoreExports.h>
22 
23 #include <mitkBaseData.h>
24 #include <mitkImage.h>
25 
26 // Eigen
27 #include <Eigen/Dense>
28 
29 // STD Includes
30 
31 // MITK includes
33 
34 namespace mitk
35 {
37 {
38 public:
39 
40  typedef std::vector< std::pair<std::string, double> > FeatureListType;
41  typedef std::vector< std::string> FeatureNameListType;
42 
46  virtual FeatureListType CalculateFeatures(const Image::Pointer & image, const Image::Pointer &feature) = 0;
47 
51  virtual FeatureNameListType GetFeatureNames() = 0;
52 
53 public:
54 
55 //#ifndef DOXYGEN_SKIP
56 
57  virtual void SetRequestedRegionToLargestPossibleRegion() override {};
58  virtual bool RequestedRegionIsOutsideOfTheBufferedRegion() override { return true; };
59  virtual bool VerifyRequestedRegion() override { return false; };
60  virtual void SetRequestedRegion (const itk::DataObject * /*data*/) override {};
61 
62  // Override
63  virtual bool IsEmpty() const override
64  {
65  if(IsInitialized() == false)
66  return true;
67  const TimeGeometry* timeGeometry = const_cast<AbstractGlobalImageFeature*>(this)->GetUpdatedTimeGeometry();
68  if(timeGeometry == NULL)
69  return true;
70  return false;
71  }
72 
73 //#endif // Skip Doxygen
74 
75 };
76 }
77 
78 #endif //mitkAbstractGlobalImageFeature_h
Base of all data objects.
Definition: mitkBaseData.h:39
DataCollection - Class to facilitate loading/accessing structured data.
virtual bool IsEmpty() const override
Check whether object contains data (at least at one point in time), e.g., a set of points may be empt...
#define MITKCLCORE_EXPORT
std::vector< std::pair< std::string, double > > FeatureListType
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
virtual void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
virtual void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
virtual bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.