Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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)
 Sets the point set which will be analysed. More...
 
mitk::Point3D GetPositionMean ()
 
mitk::Vector3D GetPositionStandardDeviation ()
 
mitk::Vector3D GetPositionSampleStandardDeviation ()
 
double GetPositionErrorMean ()
 
double GetPositionErrorStandardDeviation ()
 
double GetPositionErrorSampleStandardDeviation ()
 
double GetPositionErrorRMS ()
 
double GetPositionErrorMedian ()
 
double GetPositionErrorMax ()
 
double GetPositionErrorMin ()
 
double GetStabw (std::vector< double > list)
 
double GetSampleStabw (std::vector< double > list)
 

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)
 
mitk::Point3D GetMean (std::vector< mitk::Point3D > list)
 
std::vector< mitk::Point3DPointSetToVector (mitk::PointSet::Pointer pSet)
 Converts a point set to a vector of Point3D. More...
 
bool CheckIfAllPositionsAreEqual ()
 
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

Definition at line 16 of file mitkPointSetStatisticsCalculator.cpp.

References m_PointSet, and mitk::PointSet::New().

◆ PointSetStatisticsCalculator() [2/2]

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

Definition at line 21 of file mitkPointSetStatisticsCalculator.cpp.

References m_PointSet.

◆ ~PointSetStatisticsCalculator()

mitk::PointSetStatisticsCalculator::~PointSetStatisticsCalculator ( )
overrideprotected

Definition at line 26 of file mitkPointSetStatisticsCalculator.cpp.

Member Function Documentation

◆ CheckIfAllPositionsAreEqual()

bool mitk::PointSetStatisticsCalculator::CheckIfAllPositionsAreEqual ( )
protected
Returns
Returns true if all positions in the evaluated points set are equal. False if not.

Definition at line 281 of file mitkPointSetStatisticsCalculator.cpp.

References m_PointSet.

Referenced by GetErrorList(), GetPositionErrorMean(), GetPositionErrorRMS(), GetPositionSampleStandardDeviation(), and GetPositionStandardDeviation().

◆ Clone()

Pointer mitk::PointSetStatisticsCalculator::Clone ( ) const

◆ GetErrorList()

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

◆ GetMax()

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

Definition at line 43 of file mitkPointSetStatisticsCalculator.cpp.

Referenced by GetPositionErrorMax().

◆ GetMean() [1/2]

mitk::Point3D mitk::PointSetStatisticsCalculator::GetMean ( std::vector< mitk::Point3D list)
protected
Returns
Returns the mean of the point list. Returns [0;0;0] if the list is empty.

Definition at line 115 of file mitkPointSetStatisticsCalculator.cpp.

Referenced by GetErrorList(), GetPositionErrorMean(), GetPositionErrorRMS(), GetPositionMean(), GetSampleStabw(), and GetStabw().

◆ GetMean() [2/2]

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

Definition at line 87 of file mitkPointSetStatisticsCalculator.cpp.

◆ GetMedian()

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

Definition at line 99 of file mitkPointSetStatisticsCalculator.cpp.

Referenced by GetPositionErrorMedian().

◆ GetMin()

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

Definition at line 50 of file mitkPointSetStatisticsCalculator.cpp.

Referenced by GetPositionErrorMin().

◆ GetPositionErrorMax()

double mitk::PointSetStatisticsCalculator::GetPositionErrorMax ( )
Returns
Returns the maximum of the errors of all positions of the analysed point set (only valid navigation data). Returns 0 if there is no valid navigation data.

Definition at line 201 of file mitkPointSetStatisticsCalculator.cpp.

References GetErrorList(), GetMax(), m_PointSet, and PointSetToVector().

◆ GetPositionErrorMean()

double mitk::PointSetStatisticsCalculator::GetPositionErrorMean ( )
Returns
Returns the mean distance to the mean postion (=mean error) of the analysed point set (only valid navigation data). Returns 0 if there is no valid navigation data.

Definition at line 142 of file mitkPointSetStatisticsCalculator.cpp.

References CheckIfAllPositionsAreEqual(), GetMean(), m_PointSet, and PointSetToVector().

◆ GetPositionErrorMedian()

double mitk::PointSetStatisticsCalculator::GetPositionErrorMedian ( )
Returns
Returns the median of the errors of all positions of the analysed point set (only valid navigation data). Returns 0 if there is no valid navigation data.

Definition at line 196 of file mitkPointSetStatisticsCalculator.cpp.

References GetErrorList(), GetMedian(), m_PointSet, and PointSetToVector().

◆ GetPositionErrorMin()

double mitk::PointSetStatisticsCalculator::GetPositionErrorMin ( )
Returns
Returns the minimum of the errors of all positions of the analysed point set (only valid navigation data). Returns 0 if there is no valid navigation data.

Definition at line 206 of file mitkPointSetStatisticsCalculator.cpp.

References GetErrorList(), GetMin(), m_PointSet, and PointSetToVector().

◆ GetPositionErrorRMS()

double mitk::PointSetStatisticsCalculator::GetPositionErrorRMS ( )
Returns
Returns the RMS of the errors of all positions of the analysed point set (only valid navigation data). Returns 0 if there is no valid navigation data.

Definition at line 174 of file mitkPointSetStatisticsCalculator.cpp.

References CheckIfAllPositionsAreEqual(), GetMean(), m_PointSet, and PointSetToVector().

◆ GetPositionErrorSampleStandardDeviation()

double mitk::PointSetStatisticsCalculator::GetPositionErrorSampleStandardDeviation ( )
Returns
Returns the sample standard derivation of the errors of all positions of the analysed point set (only valid navigation data). Returns 0 if there is no valid navigation data.

Definition at line 168 of file mitkPointSetStatisticsCalculator.cpp.

References GetErrorList(), GetSampleStabw(), m_PointSet, and PointSetToVector().

◆ GetPositionErrorStandardDeviation()

double mitk::PointSetStatisticsCalculator::GetPositionErrorStandardDeviation ( )
Returns
Returns the standard derivation of the errors of all positions of the analysed point set (only valid navigation data). Returns 0 if there is no valid navigation data.

Definition at line 163 of file mitkPointSetStatisticsCalculator.cpp.

References GetErrorList(), GetStabw(), m_PointSet, and PointSetToVector().

◆ GetPositionMean()

mitk::Point3D mitk::PointSetStatisticsCalculator::GetPositionMean ( )
Returns
Returns the mean position of the analysed point set (only valid navigation data). Returns [0;0;0] if there is no valid navigation data.

Definition at line 276 of file mitkPointSetStatisticsCalculator.cpp.

References GetMean(), m_PointSet, and PointSetToVector().

◆ GetPositionSampleStandardDeviation()

mitk::Vector3D mitk::PointSetStatisticsCalculator::GetPositionSampleStandardDeviation ( )
Returns
Returns the sample standard derivation of each component (x, y and z) of the analysed point set (only valid navigation data). Returns [0;0;0] if there is no valid navigation data.

Definition at line 248 of file mitkPointSetStatisticsCalculator.cpp.

References CheckIfAllPositionsAreEqual(), GetSampleStabw(), m_PointSet, and PointSetToVector().

◆ GetPositionStandardDeviation()

mitk::Vector3D mitk::PointSetStatisticsCalculator::GetPositionStandardDeviation ( )
Returns
Returns the standard derivation of each component (x, y and z) of the analysed point set (only valid navigation data). Returns [0;0;0] if there is no valid navigation data.

Definition at line 220 of file mitkPointSetStatisticsCalculator.cpp.

References CheckIfAllPositionsAreEqual(), GetStabw(), m_PointSet, and PointSetToVector().

◆ GetSampleStabw()

double mitk::PointSetStatisticsCalculator::GetSampleStabw ( std::vector< double >  list)
Returns
returns the sample standard derivation of the given list (NOT of the point set).

Definition at line 72 of file mitkPointSetStatisticsCalculator.cpp.

References GetMean().

Referenced by GetPositionErrorSampleStandardDeviation(), and GetPositionSampleStandardDeviation().

◆ GetStabw()

double mitk::PointSetStatisticsCalculator::GetStabw ( std::vector< double >  list)
Returns
returns the standard derivation of the given list (NOT of the point set).

Definition at line 57 of file mitkPointSetStatisticsCalculator.cpp.

References GetMean().

Referenced by GetPositionErrorStandardDeviation(), and GetPositionStandardDeviation().

◆ mitkClassMacroItkParent()

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

◆ mitkNewMacro1Param()

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

◆ New()

◆ PointSetToVector()

◆ SetPointSet()

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

Sets the point set which will be analysed.

Definition at line 30 of file mitkPointSetStatisticsCalculator.cpp.

References m_PointSet.

Member Data Documentation

◆ m_PointSet


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