Medical Imaging Interaction Toolkit  2026.06.00
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 
38  mitkNewMacro2Param(PointSetDifferenceStatisticsCalculator,mitk::PointSet::Pointer,mitk::PointSet::Pointer);
39 
45  void SetPointSets(mitk::PointSet::Pointer pSet1, mitk::PointSet::Pointer pSet2);
46 
51  std::vector<double> GetDifferences();
52 
57  std::vector<double> GetSquaredDifferences();
58 
63  double GetMean();
64 
69  double GetSD();
70 
75  double GetVariance();
76 
81  double GetRMS();
82 
87  double GetMedian();
88 
93  double GetMax();
94 
99  double GetMin();
100 
106 
107 protected:
108 
110  PointSetDifferenceStatisticsCalculator(mitk::PointSet::Pointer,mitk::PointSet::Pointer);
112 
117 
119  std::vector<double> m_DifferencesVector;
120  std::vector<double> m_SquaredDifferencesVector;
121  mitk::PointSet::Pointer m_PointSet1;
122  mitk::PointSet::Pointer m_PointSet2;
124 };
125 
126 }
127 
128 #endif
#define MITKIMAGESTATISTICS_EXPORT
Container class for storing the computed image statistics.
Class for calculating the difference between two corresponding point sets. The user can access the si...
double GetMean()
Get the mean distance of all corresponding point pairs.
mitk::PointSet::Pointer m_PointSet1
first point set used for comparison
PointSetDifferenceStatisticsCalculator(mitk::PointSet::Pointer, mitk::PointSet::Pointer)
void ComputeStatistics()
Compute the complete statistics of the distances between the given point sets.
std::vector< double > m_DifferencesVector
vector holding the differences between the corresponding points
double GetMedian()
Get the median distance of all corresponding point pairs.
mitk::PointSet::Pointer m_PointSet2
second point set used for comparison
mitkClassMacroItkParent(PointSetDifferenceStatisticsCalculator, itk::Object)
mitk::ImageStatisticsContainer::ImageStatisticsObject m_Statistics
struct holding the statistics
void SetPointSets(mitk::PointSet::Pointer pSet1, mitk::PointSet::Pointer pSet2)
Set the two point sets to be compared.
bool m_StatisticsCalculated
flag indicating whether statistics are already calculated or not.
mitkNewMacro2Param(PointSetDifferenceStatisticsCalculator, mitk::PointSet::Pointer, mitk::PointSet::Pointer)
double GetVariance()
Get the variance of the distances between all corresponding point pairs.
double GetSD()
Get the standard deviation of the distances between all corresponding point pairs.
double GetMin()
Get the minimum distance of all corresponding point pairs.
double GetNumberOfPoints()
Get the total number of corresponding point pairs.
std::vector< double > m_SquaredDifferencesVector
vector holding the squared differences between the corresponding points
double GetRMS()
Get the root mean squared distance of all corresponding point pairs.
double GetMax()
Get the maximum distance of all corresponding point pairs.
std::vector< double > GetSquaredDifferences()
Get the squared Euclidean distances between corresponding points.
std::vector< double > GetDifferences()
Get the Euclidean distances between corresponding points.
Find image slices visible on a given plane.