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

Class for calculating the difference between two corresponding point sets. The user can access the single distances between corresponding points as well as a complete statistic (mean, sd, rms, median, max, min) The point sets must be of equal size! More...

#include <mitkPointSetDifferenceStatisticsCalculator.h>

Inheritance diagram for mitk::PointSetDifferenceStatisticsCalculator:
Collaboration diagram for mitk::PointSetDifferenceStatisticsCalculator:

Public Member Functions

 mitkClassMacroItkParent (PointSetDifferenceStatisticsCalculator, itk::Object)
 
Pointer Clone () const
 
 mitkNewMacro2Param (PointSetDifferenceStatisticsCalculator, mitk::PointSet::Pointer, mitk::PointSet::Pointer)
 
void SetPointSets (mitk::PointSet::Pointer pSet1, mitk::PointSet::Pointer pSet2)
 Set the two point sets to be compared. More...
 
std::vector< double > GetDifferences ()
 Get the Euclidean distances between corresponding points. More...
 
std::vector< double > GetSquaredDifferences ()
 Get the squared Euclidean distances between corresponding points. More...
 
double GetMean ()
 Get the mean distance of all corresponding point pairs. More...
 
double GetSD ()
 Get the standard deviation of the distances between all corresponding point pairs. More...
 
double GetVariance ()
 Get the variance of the distances between all corresponding point pairs. More...
 
double GetRMS ()
 Get the root mean squared distance of all corresponding point pairs. More...
 
double GetMedian ()
 Get the median distance of all corresponding point pairs. More...
 
double GetMax ()
 Get the maximum distance of all corresponding point pairs. More...
 
double GetMin ()
 Get the minimum distance of all corresponding point pairs. More...
 
double GetNumberOfPoints ()
 Get the total number of corresponding point pairs. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 PointSetDifferenceStatisticsCalculator ()
 
 PointSetDifferenceStatisticsCalculator (mitk::PointSet::Pointer, mitk::PointSet::Pointer)
 
 ~PointSetDifferenceStatisticsCalculator () override
 
void ComputeStatistics ()
 Compute the complete statistics of the distances between the given point sets. More...
 

Protected Attributes

mitk::ImageStatisticsContainer::ImageStatisticsObject m_Statistics
 struct holding the statistics More...
 
std::vector< double > m_DifferencesVector
 vector holding the differences between the corresponding points More...
 
std::vector< double > m_SquaredDifferencesVector
 vector holding the squared differences between the corresponding points More...
 
mitk::PointSet::Pointer m_PointSet1
 first point set used for comparison More...
 
mitk::PointSet::Pointer m_PointSet2
 second point set used for comparison More...
 
bool m_StatisticsCalculated
 flag indicating whether statistics are already calculated or not. More...
 

Detailed Description

Class for calculating the difference between two corresponding point sets. The user can access the single distances between corresponding points as well as a complete statistic (mean, sd, rms, median, max, min) The point sets must be of equal size!

Definition at line 30 of file mitkPointSetDifferenceStatisticsCalculator.h.

Constructor & Destructor Documentation

◆ PointSetDifferenceStatisticsCalculator() [1/2]

mitk::PointSetDifferenceStatisticsCalculator::PointSetDifferenceStatisticsCalculator ( )
protected

◆ PointSetDifferenceStatisticsCalculator() [2/2]

mitk::PointSetDifferenceStatisticsCalculator::PointSetDifferenceStatisticsCalculator ( mitk::PointSet::Pointer  ,
mitk::PointSet::Pointer   
)
protected

◆ ~PointSetDifferenceStatisticsCalculator()

mitk::PointSetDifferenceStatisticsCalculator::~PointSetDifferenceStatisticsCalculator ( )
overrideprotected

Member Function Documentation

◆ Clone()

Pointer mitk::PointSetDifferenceStatisticsCalculator::Clone ( ) const

◆ ComputeStatistics()

void mitk::PointSetDifferenceStatisticsCalculator::ComputeStatistics ( )
protected

Compute the complete statistics of the distances between the given point sets.

◆ GetDifferences()

std::vector<double> mitk::PointSetDifferenceStatisticsCalculator::GetDifferences ( )

Get the Euclidean distances between corresponding points.

Returns
A vector holding the distance for each pair of corresponding points.

◆ GetMax()

double mitk::PointSetDifferenceStatisticsCalculator::GetMax ( )

Get the maximum distance of all corresponding point pairs.

Returns
The maximum distance.

◆ GetMean()

double mitk::PointSetDifferenceStatisticsCalculator::GetMean ( )

Get the mean distance of all corresponding point pairs.

Returns
The mean Euclidean distance.

◆ GetMedian()

double mitk::PointSetDifferenceStatisticsCalculator::GetMedian ( )

Get the median distance of all corresponding point pairs.

Returns
The median distance.

◆ GetMin()

double mitk::PointSetDifferenceStatisticsCalculator::GetMin ( )

Get the minimum distance of all corresponding point pairs.

Returns
The minimum distance.

◆ GetNumberOfPoints()

double mitk::PointSetDifferenceStatisticsCalculator::GetNumberOfPoints ( )

Get the total number of corresponding point pairs.

Returns
The number of points.

◆ GetRMS()

double mitk::PointSetDifferenceStatisticsCalculator::GetRMS ( )

Get the root mean squared distance of all corresponding point pairs.

Returns
The RMS distance.

◆ GetSD()

double mitk::PointSetDifferenceStatisticsCalculator::GetSD ( )

Get the standard deviation of the distances between all corresponding point pairs.

Returns
The standard deviation of distances.

◆ GetSquaredDifferences()

std::vector<double> mitk::PointSetDifferenceStatisticsCalculator::GetSquaredDifferences ( )

Get the squared Euclidean distances between corresponding points.

Returns
A vector holding the squared distance for each pair of corresponding points.

◆ GetVariance()

double mitk::PointSetDifferenceStatisticsCalculator::GetVariance ( )

Get the variance of the distances between all corresponding point pairs.

Returns
The variance of distances.

◆ mitkClassMacroItkParent()

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

◆ mitkNewMacro2Param()

mitk::PointSetDifferenceStatisticsCalculator::mitkNewMacro2Param ( PointSetDifferenceStatisticsCalculator  ,
mitk::PointSet::Pointer  ,
mitk::PointSet::Pointer   
)

◆ New()

static Pointer mitk::PointSetDifferenceStatisticsCalculator::New ( )
static

◆ SetPointSets()

void mitk::PointSetDifferenceStatisticsCalculator::SetPointSets ( mitk::PointSet::Pointer  pSet1,
mitk::PointSet::Pointer  pSet2 
)

Set the two point sets to be compared.

Parameters
[in]pSet1First point set.
[in]pSet2Second point set. Must have the same size as pSet1.

Member Data Documentation

◆ m_DifferencesVector

std::vector<double> mitk::PointSetDifferenceStatisticsCalculator::m_DifferencesVector
protected

vector holding the differences between the corresponding points

Definition at line 119 of file mitkPointSetDifferenceStatisticsCalculator.h.

◆ m_PointSet1

mitk::PointSet::Pointer mitk::PointSetDifferenceStatisticsCalculator::m_PointSet1
protected

first point set used for comparison

Definition at line 121 of file mitkPointSetDifferenceStatisticsCalculator.h.

◆ m_PointSet2

mitk::PointSet::Pointer mitk::PointSetDifferenceStatisticsCalculator::m_PointSet2
protected

second point set used for comparison

Definition at line 122 of file mitkPointSetDifferenceStatisticsCalculator.h.

◆ m_SquaredDifferencesVector

std::vector<double> mitk::PointSetDifferenceStatisticsCalculator::m_SquaredDifferencesVector
protected

vector holding the squared differences between the corresponding points

Definition at line 120 of file mitkPointSetDifferenceStatisticsCalculator.h.

◆ m_Statistics

mitk::ImageStatisticsContainer::ImageStatisticsObject mitk::PointSetDifferenceStatisticsCalculator::m_Statistics
protected

struct holding the statistics

Definition at line 118 of file mitkPointSetDifferenceStatisticsCalculator.h.

◆ m_StatisticsCalculated

bool mitk::PointSetDifferenceStatisticsCalculator::m_StatisticsCalculated
protected

flag indicating whether statistics are already calculated or not.

Definition at line 123 of file mitkPointSetDifferenceStatisticsCalculator.h.


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