Medical Imaging Interaction Toolkit  2025.12.02
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 
42 
45 
48 
51 
54 
57 
60 
63 
66 
69 
70  //#####################################################################################################
71 
72  //this both methods are used by another class an so they are public... perhaps we want to move them
73  //out of this class because they have nothing to do with point sets.
74 
76  double GetStabw(std::vector<double> list);
77 
79  double GetSampleStabw(std::vector<double> list);
80 
81  //#####################################################################################################
82 
83 
84 protected:
85 
87  explicit PointSetStatisticsCalculator(mitk::PointSet::Pointer);
89 
90  // TODO: Remove the std::vector<mitk::Point3D> data structure and use mitk::PointSet everywhere
91 
93  std::vector<double> GetErrorList(std::vector<mitk::Point3D> list);
94 
96  mitk::Point3D GetMean(std::vector<mitk::Point3D> list);
97 
99  std::vector<mitk::Point3D> PointSetToVector(mitk::PointSet::Pointer pSet);
100 
103 
104  mitk::PointSet::Pointer m_PointSet;
105 
106  double GetMean(std::vector<double> list);
107 
108  double GetMedian(std::vector<double> list);
109 
110  double GetMax(std::vector<double> list);
111 
112  double GetMin(std::vector<double> list);
113 
114 };
115 
116 }
117 
118 #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)
double GetSampleStabw(std::vector< double > list)
double GetMax(std::vector< double > list)
std::vector< mitk::Point3D > PointSetToVector(mitk::PointSet::Pointer pSet)
Converts a point set to a vector of Point3D.
double GetMedian(std::vector< double > list)
mitk::Vector3D GetPositionStandardDeviation()
mitkNewMacro1Param(PointSetStatisticsCalculator, mitk::PointSet::Pointer)
PointSetStatisticsCalculator(mitk::PointSet::Pointer)
double GetMean(std::vector< double > list)
mitk::Vector3D GetPositionSampleStandardDeviation()
double GetMin(std::vector< double > list)
void SetPointSet(mitk::PointSet::Pointer pSet)
Sets the point set which will be analysed.
mitkClassMacroItkParent(PointSetStatisticsCalculator, itk::Object)
std::vector< double > GetErrorList(std::vector< mitk::Point3D > list)
double GetStabw(std::vector< double > list)
Find image slices visible on a given plane.