Public Types | Public Member Functions | Private Attributes

cmtk::VoxelMatchingCrossCorrelation Class Reference
[cmtkRegistration Library]

Normalized Cross Correlation Metric. More...

#include <cmtkVoxelMatchingCrossCorrelation.h>

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

List of all members.

Public Types

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

Public Member Functions

 VoxelMatchingCrossCorrelation ()
 Default constructor.
 VoxelMatchingCrossCorrelation (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 ()
 Start with a new computation.
Self::ReturnType Get () const
 Compute cross correlation.
void AddMetric (const Self &other)
void RemoveMetric (const Self &other)

Private Attributes

double SumX
 Sum over all samples in X distribution.
double SumY
 Sum over all samples in Y distribution.
double SumXY
 Sum over products of corresponding samples in X and Y distribution.
double SumSqX
 Sum over all squared samples in X distribution.
double SumSqY
 Sum over all squared samples in Y distribution.
size_t Samples
 Number of samples.

Detailed Description

Normalized Cross Correlation Metric.

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

Definition at line 59 of file cmtkVoxelMatchingCrossCorrelation.h.


Member Typedef Documentation

This type.

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

Definition at line 65 of file cmtkVoxelMatchingCrossCorrelation.h.

Smart pointer.

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

Definition at line 68 of file cmtkVoxelMatchingCrossCorrelation.h.


Constructor & Destructor Documentation

cmtk::VoxelMatchingCrossCorrelation::VoxelMatchingCrossCorrelation (  ) [inline]

Default constructor.

Definition at line 72 of file cmtkVoxelMatchingCrossCorrelation.h.


Member Function Documentation

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

Definition at line 121 of file cmtkVoxelMatchingCrossCorrelation.h.

References Samples, SumSqX, SumSqY, SumX, SumXY, and SumY.

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

Remove a pair of values from the metric.

Definition at line 98 of file cmtkVoxelMatchingCrossCorrelation.h.

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

Add a pair of values to the metric.

Definition at line 83 of file cmtkVoxelMatchingCrossCorrelation.h.

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

Definition at line 131 of file cmtkVoxelMatchingCrossCorrelation.h.

References Samples, SumSqX, SumSqY, SumX, SumXY, and SumY.

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

Start with a new computation.

Definition at line 112 of file cmtkVoxelMatchingCrossCorrelation.h.


Member Data Documentation

Number of samples.

Definition at line 159 of file cmtkVoxelMatchingCrossCorrelation.h.

Referenced by AddMetric(), and RemoveMetric().

Sum over all squared samples in X distribution.

Definition at line 153 of file cmtkVoxelMatchingCrossCorrelation.h.

Referenced by AddMetric(), and RemoveMetric().

Sum over all squared samples in Y distribution.

Definition at line 156 of file cmtkVoxelMatchingCrossCorrelation.h.

Referenced by AddMetric(), and RemoveMetric().

Sum over all samples in X distribution.

Definition at line 144 of file cmtkVoxelMatchingCrossCorrelation.h.

Referenced by AddMetric(), and RemoveMetric().

Sum over products of corresponding samples in X and Y distribution.

Definition at line 150 of file cmtkVoxelMatchingCrossCorrelation.h.

Referenced by AddMetric(), and RemoveMetric().

Sum over all samples in Y distribution.

Definition at line 147 of file cmtkVoxelMatchingCrossCorrelation.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