Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPointSetDifferenceStatisticsCalculator.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 _MITK_PointSetDifferenceStatisticsCalculator_H
19 #define _MITK_PointSetDifferenceStatisticsCalculator_H
20 
21 #include <itkObject.h>
24 #include <mitkPointSet.h>
25 
26 namespace mitk
27 {
28 
35 {
36 public:
37 
39  itkFactorylessNewMacro(Self)
40  itkCloneMacro(Self)
41 
43 
47  void SetPointSets(mitk::PointSet::Pointer pSet1, mitk::PointSet::Pointer pSet2);
51  std::vector<double> GetDifferences();
55  std::vector<double> GetSquaredDifferences();
59  double GetMean();
63  double GetSD();
67  double GetVariance();
71  double GetRMS();
75  double GetMedian();
79  double GetMax();
83  double GetMin();
87  double GetNumberOfPoints();
88 
89 protected:
90 
94 
98  void ComputeStatistics();
99 
101  std::vector<double> m_DifferencesVector;
102  std::vector<double> m_SquaredDifferencesVector;
106 };
107 
108 }
109 
110 #endif // #define _MITK_PointSetDifferenceStatisticsCalculator_H
std::vector< double > m_SquaredDifferencesVector
vector holding the squared differences between the corresponding points
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIMAGESTATISTICS_EXPORT
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:89
mitk::PointSet::Pointer m_PointSet2
second point set used for comparison
bool m_StatisticsCalculated
flag indicating whether statistics are already calculated or not.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
std::vector< double > m_DifferencesVector
vector holding the differences between the corresponding points
mitk::ImageStatisticsCalculator::StatisticsContainer::Pointer m_Statistics
struct holding the statistics
Class for calculating the difference between two corresponding point sets. The user can access the si...
mitk::PointSet::Pointer m_PointSet1
first point set used for comparison