Normalized Cross Correlation Metric. More...
#include <cmtkImagePairSimilarityMeasureNCC.h>
Public Types | |
typedef ImagePairSimilarityMeasureNCC | Self |
This type. | |
typedef SmartPointer< Self > | SmartPtr |
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. |
Normalized Cross Correlation Metric.
Definition at line 58 of file cmtkImagePairSimilarityMeasureNCC.h.
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.
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.
void cmtk::ImagePairSimilarityMeasureNCC::Add | ( | const Self & | other ) | [inline] |
Add contribution from another (partial) metric object.
Definition at line 123 of file cmtkImagePairSimilarityMeasureNCC.h.
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.
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.
size_t cmtk::ImagePairSimilarityMeasureNCC::Samples [private] |
Number of samples.
Definition at line 162 of file cmtkImagePairSimilarityMeasureNCC.h.
double cmtk::ImagePairSimilarityMeasureNCC::SumSqX [private] |
Sum over all squared samples in X distribution.
Definition at line 156 of file cmtkImagePairSimilarityMeasureNCC.h.
double cmtk::ImagePairSimilarityMeasureNCC::SumSqY [private] |
Sum over all squared samples in Y distribution.
Definition at line 159 of file cmtkImagePairSimilarityMeasureNCC.h.
double cmtk::ImagePairSimilarityMeasureNCC::SumX [private] |
Sum over all samples in X distribution.
Definition at line 147 of file cmtkImagePairSimilarityMeasureNCC.h.
double cmtk::ImagePairSimilarityMeasureNCC::SumXY [private] |
Sum over products of corresponding samples in X and Y distribution.
Definition at line 153 of file cmtkImagePairSimilarityMeasureNCC.h.
double cmtk::ImagePairSimilarityMeasureNCC::SumY [private] |
Sum over all samples in Y distribution.
Definition at line 150 of file cmtkImagePairSimilarityMeasureNCC.h.