Medical Imaging Interaction Toolkit  2023.12.99-29da53b2
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 (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 
14 #ifndef mitkPointSetDifferenceStatisticsCalculator_h
15 #define mitkPointSetDifferenceStatisticsCalculator_h
16 
17 #include <itkObject.h>
20 #include <mitkPointSet.h>
21 
22 namespace mitk
23 {
24 
31 {
32 public:
33 
35  itkFactorylessNewMacro(Self);
36  itkCloneMacro(Self);
37 
39 
43  void SetPointSets(mitk::PointSet::Pointer pSet1, mitk::PointSet::Pointer pSet2);
47  std::vector<double> GetDifferences();
51  std::vector<double> GetSquaredDifferences();
55  double GetMean();
59  double GetSD();
63  double GetVariance();
67  double GetRMS();
71  double GetMedian();
75  double GetMax();
79  double GetMin();
83  double GetNumberOfPoints();
84 
85 protected:
86 
90 
94  void ComputeStatistics();
95 
97  std::vector<double> m_DifferencesVector;
98  std::vector<double> m_SquaredDifferencesVector;
102 };
103 
104 }
105 
106 #endif
mitkImageStatisticsCalculator.h
mitk::PointSetDifferenceStatisticsCalculator::m_PointSet1
mitk::PointSet::Pointer m_PointSet1
first point set used for comparison
Definition: mitkPointSetDifferenceStatisticsCalculator.h:99
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
itk::SmartPointer< Self >
mitk::PointSetDifferenceStatisticsCalculator::m_SquaredDifferencesVector
std::vector< double > m_SquaredDifferencesVector
vector holding the squared differences between the corresponding points
Definition: mitkPointSetDifferenceStatisticsCalculator.h:98
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk::PointSetDifferenceStatisticsCalculator
Class for calculating the difference between two corresponding point sets. The user can access the si...
Definition: mitkPointSetDifferenceStatisticsCalculator.h:30
mitkPointSet.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MITKIMAGESTATISTICS_EXPORT
#define MITKIMAGESTATISTICS_EXPORT
Definition: MitkImageStatisticsExports.h:15
mitk::PointSetDifferenceStatisticsCalculator::m_PointSet2
mitk::PointSet::Pointer m_PointSet2
second point set used for comparison
Definition: mitkPointSetDifferenceStatisticsCalculator.h:100
mitk::ImageStatisticsContainer::ImageStatisticsObject
Container class for storing the computed image statistics.
Definition: mitkImageStatisticsContainer.h:62
mitk::PointSetDifferenceStatisticsCalculator::m_StatisticsCalculated
bool m_StatisticsCalculated
flag indicating whether statistics are already calculated or not.
Definition: mitkPointSetDifferenceStatisticsCalculator.h:101
MitkImageStatisticsExports.h
mitk::PointSetDifferenceStatisticsCalculator::m_DifferencesVector
std::vector< double > m_DifferencesVector
vector holding the differences between the corresponding points
Definition: mitkPointSetDifferenceStatisticsCalculator.h:97
mitk::PointSetDifferenceStatisticsCalculator::m_Statistics
mitk::ImageStatisticsContainer::ImageStatisticsObject m_Statistics
struct holding the statistics
Definition: mitkPointSetDifferenceStatisticsCalculator.h:96