Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
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>
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 point sets to be compared More... | |
std::vector< double > | GetDifferences () |
returns a vector holding the differences between the corresponding points of the point sets More... | |
std::vector< double > | GetSquaredDifferences () |
returns a vector holding the squared differences between the corresponding points of the point sets More... | |
double | GetMean () |
returns the mean distance of all corresponding points of the point sets More... | |
double | GetSD () |
returns the standard deviation of the distances between all corresponding points of the point sets More... | |
double | GetVariance () |
returns the variance of the distances between all corresponding points of the point sets More... | |
double | GetRMS () |
returns the root mean squared distance of all corresponding points of the point sets More... | |
double | GetMedian () |
returns the median distance of all corresponding points of the point sets More... | |
double | GetMax () |
returns the maximal distance of all corresponding points of the point sets More... | |
double | GetMin () |
returns the minimal distance of all corresponding points of the point sets More... | |
double | GetNumberOfPoints () |
returns the total number of corresponding points of the point sets More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
PointSetDifferenceStatisticsCalculator () | |
PointSetDifferenceStatisticsCalculator (mitk::PointSet::Pointer, mitk::PointSet::Pointer) | |
~PointSetDifferenceStatisticsCalculator () override | |
void | ComputeStatistics () |
Method for computing the complete statistics of the differences 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... | |
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.
|
protected |
Definition at line 17 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References m_PointSet1, m_PointSet2, and mitk::PointSet::New().
|
protected |
Definition at line 25 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References m_PointSet1, m_PointSet2, and m_StatisticsCalculated.
|
overrideprotected |
Definition at line 33 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
Pointer mitk::PointSetDifferenceStatisticsCalculator::Clone | ( | ) | const |
|
protected |
Method for computing the complete statistics of the differences between the given point sets.
Definition at line 141 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References mitk::ImageStatisticsContainer::ImageStatisticsObject::AddStatistic(), m_DifferencesVector, m_PointSet1, m_PointSet2, m_SquaredDifferencesVector, m_Statistics, m_StatisticsCalculated, mitk::ImageStatisticsConstants::MAXIMUM(), mitk::ImageStatisticsConstants::MEAN(), mitk::ImageStatisticsConstants::MEDIAN(), mitk::ImageStatisticsConstants::MINIMUM(), mitk::ImageStatisticsConstants::NUMBEROFVOXELS(), mitk::ImageStatisticsConstants::RMS(), mitk::ImageStatisticsConstants::STANDARDDEVIATION(), and mitk::ImageStatisticsConstants::VARIANCE().
Referenced by GetDifferences(), GetMax(), GetMean(), GetMedian(), GetMin(), GetNumberOfPoints(), GetRMS(), GetSD(), GetSquaredDifferences(), and GetVariance().
std::vector< double > mitk::PointSetDifferenceStatisticsCalculator::GetDifferences | ( | ) |
returns a vector holding the differences between the corresponding points of the point sets
Definition at line 51 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), m_DifferencesVector, and m_StatisticsCalculated.
double mitk::PointSetDifferenceStatisticsCalculator::GetMax | ( | ) |
returns the maximal distance of all corresponding points of the point sets
Definition at line 114 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), mitk::ImageStatisticsContainer::ImageStatisticsObject::GetValueConverted(), m_Statistics, m_StatisticsCalculated, and mitk::ImageStatisticsConstants::MAXIMUM().
double mitk::PointSetDifferenceStatisticsCalculator::GetMean | ( | ) |
returns the mean distance of all corresponding points of the point sets
Definition at line 69 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), mitk::ImageStatisticsContainer::ImageStatisticsObject::GetValueConverted(), m_Statistics, m_StatisticsCalculated, and mitk::ImageStatisticsConstants::MEAN().
double mitk::PointSetDifferenceStatisticsCalculator::GetMedian | ( | ) |
returns the median distance of all corresponding points of the point sets
Definition at line 105 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), mitk::ImageStatisticsContainer::ImageStatisticsObject::GetValueConverted(), m_Statistics, m_StatisticsCalculated, and mitk::ImageStatisticsConstants::MEDIAN().
double mitk::PointSetDifferenceStatisticsCalculator::GetMin | ( | ) |
returns the minimal distance of all corresponding points of the point sets
Definition at line 123 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), mitk::ImageStatisticsContainer::ImageStatisticsObject::GetValueConverted(), m_Statistics, m_StatisticsCalculated, and mitk::ImageStatisticsConstants::MINIMUM().
double mitk::PointSetDifferenceStatisticsCalculator::GetNumberOfPoints | ( | ) |
returns the total number of corresponding points of the point sets
Definition at line 132 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), mitk::ImageStatisticsContainer::ImageStatisticsObject::GetValueConverted(), m_Statistics, m_StatisticsCalculated, and mitk::ImageStatisticsConstants::NUMBEROFVOXELS().
double mitk::PointSetDifferenceStatisticsCalculator::GetRMS | ( | ) |
returns the root mean squared distance of all corresponding points of the point sets
Definition at line 96 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), mitk::ImageStatisticsContainer::ImageStatisticsObject::GetValueConverted(), m_Statistics, m_StatisticsCalculated, and mitk::ImageStatisticsConstants::RMS().
double mitk::PointSetDifferenceStatisticsCalculator::GetSD | ( | ) |
returns the standard deviation of the distances between all corresponding points of the point sets
Definition at line 78 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), mitk::ImageStatisticsContainer::ImageStatisticsObject::GetValueConverted(), m_Statistics, m_StatisticsCalculated, and mitk::ImageStatisticsConstants::STANDARDDEVIATION().
std::vector< double > mitk::PointSetDifferenceStatisticsCalculator::GetSquaredDifferences | ( | ) |
returns a vector holding the squared differences between the corresponding points of the point sets
Definition at line 60 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), m_SquaredDifferencesVector, and m_StatisticsCalculated.
double mitk::PointSetDifferenceStatisticsCalculator::GetVariance | ( | ) |
returns the variance of the distances between all corresponding points of the point sets
Definition at line 87 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References ComputeStatistics(), mitk::ImageStatisticsContainer::ImageStatisticsObject::GetValueConverted(), m_Statistics, m_StatisticsCalculated, and mitk::ImageStatisticsConstants::VARIANCE().
mitk::PointSetDifferenceStatisticsCalculator::mitkClassMacroItkParent | ( | PointSetDifferenceStatisticsCalculator | , |
itk::Object | |||
) |
mitk::PointSetDifferenceStatisticsCalculator::mitkNewMacro2Param | ( | PointSetDifferenceStatisticsCalculator | , |
mitk::PointSet::Pointer | , | ||
mitk::PointSet::Pointer | |||
) |
|
static |
void mitk::PointSetDifferenceStatisticsCalculator::SetPointSets | ( | mitk::PointSet::Pointer | pSet1, |
mitk::PointSet::Pointer | pSet2 | ||
) |
set point sets to be compared
Definition at line 37 of file mitkPointSetDifferenceStatisticsCalculator.cpp.
References m_PointSet1, m_PointSet2, and m_StatisticsCalculated.
|
protected |
vector holding the differences between the corresponding points
Definition at line 97 of file mitkPointSetDifferenceStatisticsCalculator.h.
Referenced by ComputeStatistics(), and GetDifferences().
|
protected |
first point set used for comparison
Definition at line 99 of file mitkPointSetDifferenceStatisticsCalculator.h.
Referenced by ComputeStatistics(), PointSetDifferenceStatisticsCalculator(), and SetPointSets().
|
protected |
second point set used for comparison
Definition at line 100 of file mitkPointSetDifferenceStatisticsCalculator.h.
Referenced by ComputeStatistics(), PointSetDifferenceStatisticsCalculator(), and SetPointSets().
|
protected |
vector holding the squared differences between the corresponding points
Definition at line 98 of file mitkPointSetDifferenceStatisticsCalculator.h.
Referenced by ComputeStatistics(), and GetSquaredDifferences().
|
protected |
struct holding the statistics
Definition at line 96 of file mitkPointSetDifferenceStatisticsCalculator.h.
Referenced by ComputeStatistics(), GetMax(), GetMean(), GetMedian(), GetMin(), GetNumberOfPoints(), GetRMS(), GetSD(), and GetVariance().
|
protected |
flag indicating whether statistics are already calculated or not.
Definition at line 101 of file mitkPointSetDifferenceStatisticsCalculator.h.
Referenced by ComputeStatistics(), GetDifferences(), GetMax(), GetMean(), GetMedian(), GetMin(), GetNumberOfPoints(), GetRMS(), GetSD(), GetSquaredDifferences(), GetVariance(), PointSetDifferenceStatisticsCalculator(), and SetPointSets().