Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::PointSetStatisticsCalculator Class Reference

Class for calculating statistics (like standard derivation, RMS, mean, etc.) for a PointSet. More...

#include <mitkPointSetStatisticsCalculator.h>

Inheritance diagram for mitk::PointSetStatisticsCalculator:
Collaboration diagram for mitk::PointSetStatisticsCalculator:

Public Member Functions

 mitkClassMacroItkParent (PointSetStatisticsCalculator, itk::Object)
 
Pointer Clone () const
 
 mitkNewMacro1Param (PointSetStatisticsCalculator, mitk::PointSet::Pointer)
 
void SetPointSet (mitk::PointSet::Pointer pSet)
 Set the point set to be analysed. More...
 
mitk::Point3D GetPositionMean ()
 Get the mean position of the analysed point set (only valid navigation data). More...
 
mitk::Vector3D GetPositionStandardDeviation ()
 Get the standard deviation of each component (x, y, z) of the analysed point set. More...
 
mitk::Vector3D GetPositionSampleStandardDeviation ()
 Get the sample standard deviation of each component (x, y, z) of the analysed point set. More...
 
double GetPositionErrorMean ()
 Get the mean distance to the mean position (mean error) of the analysed point set. More...
 
double GetPositionErrorStandardDeviation ()
 Get the standard deviation of position errors of the analysed point set. More...
 
double GetPositionErrorSampleStandardDeviation ()
 Get the sample standard deviation of position errors of the analysed point set. More...
 
double GetPositionErrorRMS ()
 Get the RMS of position errors of the analysed point set. More...
 
double GetPositionErrorMedian ()
 Get the median of position errors of the analysed point set. More...
 
double GetPositionErrorMax ()
 Get the maximum of position errors of the analysed point set. More...
 
double GetPositionErrorMin ()
 Get the minimum of position errors of the analysed point set. More...
 
double GetStabw (std::vector< double > list)
 Compute the standard deviation of the given list (not of the point set). More...
 
double GetSampleStabw (std::vector< double > list)
 Compute the sample standard deviation of the given list (not of the point set). More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 PointSetStatisticsCalculator ()
 
 PointSetStatisticsCalculator (mitk::PointSet::Pointer)
 
 ~PointSetStatisticsCalculator () override
 
std::vector< double > GetErrorList (std::vector< mitk::Point3D > list)
 Get a list of distances to the mean of the given point list. More...
 
mitk::Point3D GetMean (std::vector< mitk::Point3D > list)
 Get the mean of the given point list. More...
 
std::vector< mitk::Point3D > PointSetToVector (mitk::PointSet::Pointer pSet)
 Convert a point set to a vector of Point3D. More...
 
bool CheckIfAllPositionsAreEqual ()
 Check whether all positions in the point set are equal. More...
 
double GetMean (std::vector< double > list)
 
double GetMedian (std::vector< double > list)
 
double GetMax (std::vector< double > list)
 
double GetMin (std::vector< double > list)
 

Protected Attributes

mitk::PointSet::Pointer m_PointSet
 

Detailed Description

Class for calculating statistics (like standard derivation, RMS, mean, etc.) for a PointSet.

Definition at line 27 of file mitkPointSetStatisticsCalculator.h.

Constructor & Destructor Documentation

◆ PointSetStatisticsCalculator() [1/2]

mitk::PointSetStatisticsCalculator::PointSetStatisticsCalculator ( )
protected

◆ PointSetStatisticsCalculator() [2/2]

mitk::PointSetStatisticsCalculator::PointSetStatisticsCalculator ( mitk::PointSet::Pointer  )
explicitprotected

◆ ~PointSetStatisticsCalculator()

mitk::PointSetStatisticsCalculator::~PointSetStatisticsCalculator ( )
overrideprotected

Member Function Documentation

◆ CheckIfAllPositionsAreEqual()

bool mitk::PointSetStatisticsCalculator::CheckIfAllPositionsAreEqual ( )
protected

Check whether all positions in the point set are equal.

Returns
True if all positions are identical, false otherwise.

◆ Clone()

Pointer mitk::PointSetStatisticsCalculator::Clone ( ) const

◆ GetErrorList()

std::vector<double> mitk::PointSetStatisticsCalculator::GetErrorList ( std::vector< mitk::Point3D >  list)
protected

Get a list of distances to the mean of the given point list.

Returns
A vector of error distances.

◆ GetMax()

double mitk::PointSetStatisticsCalculator::GetMax ( std::vector< double >  list)
protected

◆ GetMean() [1/2]

double mitk::PointSetStatisticsCalculator::GetMean ( std::vector< double >  list)
protected

◆ GetMean() [2/2]

mitk::Point3D mitk::PointSetStatisticsCalculator::GetMean ( std::vector< mitk::Point3D >  list)
protected

Get the mean of the given point list.

Returns
The mean position, or [0;0;0] if the list is empty.

◆ GetMedian()

double mitk::PointSetStatisticsCalculator::GetMedian ( std::vector< double >  list)
protected

◆ GetMin()

double mitk::PointSetStatisticsCalculator::GetMin ( std::vector< double >  list)
protected

◆ GetPositionErrorMax()

double mitk::PointSetStatisticsCalculator::GetPositionErrorMax ( )

Get the maximum of position errors of the analysed point set.

Returns
The maximum error, or 0 if there is no valid navigation data.

◆ GetPositionErrorMean()

double mitk::PointSetStatisticsCalculator::GetPositionErrorMean ( )

Get the mean distance to the mean position (mean error) of the analysed point set.

Returns
The mean error, or 0 if there is no valid navigation data.

◆ GetPositionErrorMedian()

double mitk::PointSetStatisticsCalculator::GetPositionErrorMedian ( )

Get the median of position errors of the analysed point set.

Returns
The median error, or 0 if there is no valid navigation data.

◆ GetPositionErrorMin()

double mitk::PointSetStatisticsCalculator::GetPositionErrorMin ( )

Get the minimum of position errors of the analysed point set.

Returns
The minimum error, or 0 if there is no valid navigation data.

◆ GetPositionErrorRMS()

double mitk::PointSetStatisticsCalculator::GetPositionErrorRMS ( )

Get the RMS of position errors of the analysed point set.

Returns
The RMS error, or 0 if there is no valid navigation data.

◆ GetPositionErrorSampleStandardDeviation()

double mitk::PointSetStatisticsCalculator::GetPositionErrorSampleStandardDeviation ( )

Get the sample standard deviation of position errors of the analysed point set.

Returns
The sample standard deviation of errors, or 0 if there is no valid navigation data.

◆ GetPositionErrorStandardDeviation()

double mitk::PointSetStatisticsCalculator::GetPositionErrorStandardDeviation ( )

Get the standard deviation of position errors of the analysed point set.

Returns
The standard deviation of errors, or 0 if there is no valid navigation data.

◆ GetPositionMean()

mitk::Point3D mitk::PointSetStatisticsCalculator::GetPositionMean ( )

Get the mean position of the analysed point set (only valid navigation data).

Returns
The mean position, or [0;0;0] if there is no valid navigation data.

◆ GetPositionSampleStandardDeviation()

mitk::Vector3D mitk::PointSetStatisticsCalculator::GetPositionSampleStandardDeviation ( )

Get the sample standard deviation of each component (x, y, z) of the analysed point set.

Returns
The sample standard deviation vector, or [0;0;0] if there is no valid navigation data.

◆ GetPositionStandardDeviation()

mitk::Vector3D mitk::PointSetStatisticsCalculator::GetPositionStandardDeviation ( )

Get the standard deviation of each component (x, y, z) of the analysed point set.

Returns
The standard deviation vector, or [0;0;0] if there is no valid navigation data.

◆ GetSampleStabw()

double mitk::PointSetStatisticsCalculator::GetSampleStabw ( std::vector< double >  list)

Compute the sample standard deviation of the given list (not of the point set).

Returns
The sample standard deviation.

◆ GetStabw()

double mitk::PointSetStatisticsCalculator::GetStabw ( std::vector< double >  list)

Compute the standard deviation of the given list (not of the point set).

Returns
The standard deviation.

◆ mitkClassMacroItkParent()

mitk::PointSetStatisticsCalculator::mitkClassMacroItkParent ( PointSetStatisticsCalculator  ,
itk::Object   
)

◆ mitkNewMacro1Param()

mitk::PointSetStatisticsCalculator::mitkNewMacro1Param ( PointSetStatisticsCalculator  ,
mitk::PointSet::Pointer   
)

◆ New()

static Pointer mitk::PointSetStatisticsCalculator::New ( )
static

◆ PointSetToVector()

std::vector<mitk::Point3D> mitk::PointSetStatisticsCalculator::PointSetToVector ( mitk::PointSet::Pointer  pSet)
protected

Convert a point set to a vector of Point3D.

◆ SetPointSet()

void mitk::PointSetStatisticsCalculator::SetPointSet ( mitk::PointSet::Pointer  pSet)

Set the point set to be analysed.

Member Data Documentation

◆ m_PointSet

mitk::PointSet::Pointer mitk::PointSetStatisticsCalculator::m_PointSet
protected

Definition at line 134 of file mitkPointSetStatisticsCalculator.h.


The documentation for this class was generated from the following file: