Public Types | Public Member Functions | Private Attributes

cmtk::ImagePairSimilarityMeasureNCC Class Reference
[cmtkRegistration Library]

Normalized Cross Correlation Metric. More...

#include <cmtkImagePairSimilarityMeasureNCC.h>

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

List of all members.

Public Types

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

Public Member Functions

 ImagePairSimilarityMeasureNCC ()
 Default constructor.
virtual ~ImagePairSimilarityMeasureNCC ()
 Virtual destructor.
 ImagePairSimilarityMeasureNCC (const UniformVolume::SmartPtr &refVolume, const UniformVolume::SmartPtr &fltVolume, const Interpolators::InterpolationEnum interpolation=Interpolators::DEFAULT)
 Constructor.
 ImagePairSimilarityMeasureNCC (const Self &other)
 Constant copy 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.
virtual void Reset ()
 Start with a new computation.
virtual Self::ReturnType Get () const
 Compute cross correlation.
void Add (const Self &other)
 Add contribution from another (partial) metric object.
void Remove (const Self &other)
 Remove contribution from another (partial) metric object.

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.

Definition at line 58 of file cmtkImagePairSimilarityMeasureNCC.h.


Member Typedef Documentation

This type.

Reimplemented from cmtk::ImagePairSimilarityMeasure.

Definition at line 64 of file cmtkImagePairSimilarityMeasureNCC.h.

Smart pointer.

Reimplemented from cmtk::ImagePairSimilarityMeasure.

Definition at line 67 of file cmtkImagePairSimilarityMeasureNCC.h.


Constructor & Destructor Documentation

cmtk::ImagePairSimilarityMeasureNCC::ImagePairSimilarityMeasureNCC (  ) [inline]

Default constructor.

Definition at line 71 of file cmtkImagePairSimilarityMeasureNCC.h.

virtual cmtk::ImagePairSimilarityMeasureNCC::~ImagePairSimilarityMeasureNCC (  ) [inline, virtual]

Virtual destructor.

Definition at line 75 of file cmtkImagePairSimilarityMeasureNCC.h.


Member Function Documentation

void cmtk::ImagePairSimilarityMeasureNCC::Add ( const Self other ) [inline]

Add contribution from another (partial) metric object.

Definition at line 123 of file cmtkImagePairSimilarityMeasureNCC.h.

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

Remove a pair of values from the metric.

Definition at line 102 of file cmtkImagePairSimilarityMeasureNCC.h.

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

Add a pair of values to the metric.

Definition at line 90 of file cmtkImagePairSimilarityMeasureNCC.h.

void cmtk::ImagePairSimilarityMeasureNCC::Remove ( const Self other ) [inline]

Remove contribution from another (partial) metric object.

Definition at line 134 of file cmtkImagePairSimilarityMeasureNCC.h.

virtual void cmtk::ImagePairSimilarityMeasureNCC::Reset (  ) [inline, virtual]

Start with a new computation.

Reimplemented from cmtk::ImagePairSimilarityMeasure.

Definition at line 113 of file cmtkImagePairSimilarityMeasureNCC.h.


Member Data Documentation

Number of samples.

Definition at line 162 of file cmtkImagePairSimilarityMeasureNCC.h.

Sum over all squared samples in X distribution.

Definition at line 156 of file cmtkImagePairSimilarityMeasureNCC.h.

Sum over all squared samples in Y distribution.

Definition at line 159 of file cmtkImagePairSimilarityMeasureNCC.h.

Sum over all samples in X distribution.

Definition at line 147 of file cmtkImagePairSimilarityMeasureNCC.h.

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

Definition at line 153 of file cmtkImagePairSimilarityMeasureNCC.h.

Sum over all samples in Y distribution.

Definition at line 150 of file cmtkImagePairSimilarityMeasureNCC.h.


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