Public Types | Public Member Functions | Private Attributes

cmtk::VoxelMatchingMeanSquaredDifference Class Reference
[cmtkRegistration Library]

Mean squared difference metric. More...

#include <cmtkVoxelMatchingMeanSquaredDifference.h>

Inheritance diagram for cmtk::VoxelMatchingMeanSquaredDifference:
Inheritance graph
[legend]
Collaboration diagram for cmtk::VoxelMatchingMeanSquaredDifference:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
VoxelMatchingMeanSquaredDifference 
Self
 This type.
typedef SmartPointer< SelfSmartPtr
 Smart pointer.

Public Member Functions

 VoxelMatchingMeanSquaredDifference (const UniformVolume *refVolume, const UniformVolume *fltVolume)
 Constructor.
template<class T >
void Increment (const T a, const T b)
 Add a pair of values to the metric.
template<class T >
void Decrement (const T a, const T b)
 Remove a pair of values from the metric.
void Reset ()
 Reset internal variables for next computation.
Self::ReturnType Get () const
 Get similarity measure value.
void AddMetric (const Self &other)
void RemoveMetric (const Self &other)

Private Attributes

double Sum
 Sum of all value pair differences.
int Samples
 Counter for number of sample pairs.

Detailed Description

Mean squared difference metric.

Deprecated:
For future code, use cmtk::ImagePairSimilarityMetricMSD instead.

Definition at line 55 of file cmtkVoxelMatchingMeanSquaredDifference.h.


Member Typedef Documentation

This type.

Reimplemented from cmtk::VoxelMatchingMetric< T, DT, I >.

Definition at line 61 of file cmtkVoxelMatchingMeanSquaredDifference.h.

Smart pointer.

Reimplemented from cmtk::VoxelMatchingMetric< T, DT, I >.

Definition at line 64 of file cmtkVoxelMatchingMeanSquaredDifference.h.


Member Function Documentation

void cmtk::VoxelMatchingMeanSquaredDifference::AddMetric ( const Self other ) [inline]

Definition at line 104 of file cmtkVoxelMatchingMeanSquaredDifference.h.

References Samples, and Sum.

template<class T >
void cmtk::VoxelMatchingMeanSquaredDifference::Decrement ( const T  a,
const T  b 
) [inline]

Remove a pair of values from the metric.

Definition at line 84 of file cmtkVoxelMatchingMeanSquaredDifference.h.

Self::ReturnType cmtk::VoxelMatchingMeanSquaredDifference::Get (  ) const [inline]

Get similarity measure value.

Definition at line 99 of file cmtkVoxelMatchingMeanSquaredDifference.h.

template<class T >
void cmtk::VoxelMatchingMeanSquaredDifference::Increment ( const T  a,
const T  b 
) [inline]

Add a pair of values to the metric.

Definition at line 75 of file cmtkVoxelMatchingMeanSquaredDifference.h.

void cmtk::VoxelMatchingMeanSquaredDifference::RemoveMetric ( const Self other ) [inline]

Definition at line 110 of file cmtkVoxelMatchingMeanSquaredDifference.h.

References Samples, and Sum.

void cmtk::VoxelMatchingMeanSquaredDifference::Reset (  ) [inline]

Reset internal variables for next computation.

Definition at line 92 of file cmtkVoxelMatchingMeanSquaredDifference.h.


Member Data Documentation

Counter for number of sample pairs.

Definition at line 123 of file cmtkVoxelMatchingMeanSquaredDifference.h.

Referenced by AddMetric(), and RemoveMetric().

Sum of all value pair differences.

Definition at line 120 of file cmtkVoxelMatchingMeanSquaredDifference.h.

Referenced by AddMetric(), and RemoveMetric().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines