Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPointSetStatisticsCalculator.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 mitkPointSetStatisticsCalculator_h
15 #define mitkPointSetStatisticsCalculator_h
16 
17 #include <itkObject.h>
19 #include <mitkPointSet.h>
20 
21 namespace mitk
22 {
23 
28 {
29 public:
30 
32  itkFactorylessNewMacro(Self);
33  itkCloneMacro(Self);
34 
36 
38  void SetPointSet(mitk::PointSet::Pointer pSet);
39 
44 
49 
54 
59 
64 
69 
74 
79 
84 
89 
90  //#####################################################################################################
91 
92  //this both methods are used by another class an so they are public... perhaps we want to move them
93  //out of this class because they have nothing to do with point sets.
94 
98  double GetStabw(std::vector<double> list);
99 
103  double GetSampleStabw(std::vector<double> list);
104 
105  //#####################################################################################################
106 
107 
108 protected:
109 
111  explicit PointSetStatisticsCalculator(mitk::PointSet::Pointer);
113 
114  // TODO: Remove the std::vector<mitk::Point3D> data structure and use mitk::PointSet everywhere
115 
119  std::vector<double> GetErrorList(std::vector<mitk::Point3D> list);
120 
124  mitk::Point3D GetMean(std::vector<mitk::Point3D> list);
125 
127  std::vector<mitk::Point3D> PointSetToVector(mitk::PointSet::Pointer pSet);
128 
133 
134  mitk::PointSet::Pointer m_PointSet;
135 
136  double GetMean(std::vector<double> list);
137 
138  double GetMedian(std::vector<double> list);
139 
140  double GetMax(std::vector<double> list);
141 
142  double GetMin(std::vector<double> list);
143 
144 };
145 
146 }
147 
148 #endif
#define MITKIMAGESTATISTICS_EXPORT
Class for calculating statistics (like standard derivation, RMS, mean, etc.) for a PointSet.
mitk::Point3D GetMean(std::vector< mitk::Point3D > list)
Get the mean of the given point list.
double GetSampleStabw(std::vector< double > list)
Compute the sample standard deviation of the given list (not of the point set).
double GetMax(std::vector< double > list)
std::vector< mitk::Point3D > PointSetToVector(mitk::PointSet::Pointer pSet)
Convert a point set to a vector of Point3D.
double GetMedian(std::vector< double > list)
double GetPositionErrorStandardDeviation()
Get the standard deviation of position errors of the analysed point set.
double GetPositionErrorMax()
Get the maximum of position errors of the analysed point set.
mitk::Vector3D GetPositionStandardDeviation()
Get the standard deviation of each component (x, y, z) of the analysed point set.
mitkNewMacro1Param(PointSetStatisticsCalculator, mitk::PointSet::Pointer)
PointSetStatisticsCalculator(mitk::PointSet::Pointer)
double GetMean(std::vector< double > list)
double GetPositionErrorMin()
Get the minimum of position errors of the analysed point set.
double GetPositionErrorSampleStandardDeviation()
Get the sample standard deviation of position errors of the analysed point set.
double GetPositionErrorMedian()
Get the median of position errors of the analysed point set.
double GetPositionErrorRMS()
Get the RMS of position errors of the analysed point set.
mitk::Vector3D GetPositionSampleStandardDeviation()
Get the sample standard deviation of each component (x, y, z) of the analysed point set.
double GetMin(std::vector< double > list)
void SetPointSet(mitk::PointSet::Pointer pSet)
Set the point set to be analysed.
mitk::Point3D GetPositionMean()
Get the mean position of the analysed point set (only valid navigation data).
bool CheckIfAllPositionsAreEqual()
Check whether all positions in the point set are equal.
mitkClassMacroItkParent(PointSetStatisticsCalculator, itk::Object)
std::vector< double > GetErrorList(std::vector< mitk::Point3D > list)
Get a list of distances to the mean of the given point list.
double GetStabw(std::vector< double > list)
Compute the standard deviation of the given list (not of the point set).
double GetPositionErrorMean()
Get the mean distance to the mean position (mean error) of the analysed point set.
Find image slices visible on a given plane.