Normalized Cross Correlation Metric. More...
#include <cmtkVoxelMatchingCrossCorrelation.h>
Public Types | |
typedef VoxelMatchingCrossCorrelation | Self |
This type. | |
typedef SmartPointer< Self > | SmartPtr |
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. |
Normalized Cross Correlation Metric.
Definition at line 59 of file cmtkVoxelMatchingCrossCorrelation.h.
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.
cmtk::VoxelMatchingCrossCorrelation::VoxelMatchingCrossCorrelation | ( | ) | [inline] |
Default constructor.
Definition at line 72 of file cmtkVoxelMatchingCrossCorrelation.h.
void cmtk::VoxelMatchingCrossCorrelation::AddMetric | ( | const Self & | other ) | [inline] |
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.
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] |
void cmtk::VoxelMatchingCrossCorrelation::Reset | ( | ) | [inline] |
Start with a new computation.
Definition at line 112 of file cmtkVoxelMatchingCrossCorrelation.h.
size_t cmtk::VoxelMatchingCrossCorrelation::Samples [private] |
Number of samples.
Definition at line 159 of file cmtkVoxelMatchingCrossCorrelation.h.
Referenced by AddMetric(), and RemoveMetric().
double cmtk::VoxelMatchingCrossCorrelation::SumSqX [private] |
Sum over all squared samples in X distribution.
Definition at line 153 of file cmtkVoxelMatchingCrossCorrelation.h.
Referenced by AddMetric(), and RemoveMetric().
double cmtk::VoxelMatchingCrossCorrelation::SumSqY [private] |
Sum over all squared samples in Y distribution.
Definition at line 156 of file cmtkVoxelMatchingCrossCorrelation.h.
Referenced by AddMetric(), and RemoveMetric().
double cmtk::VoxelMatchingCrossCorrelation::SumX [private] |
Sum over all samples in X distribution.
Definition at line 144 of file cmtkVoxelMatchingCrossCorrelation.h.
Referenced by AddMetric(), and RemoveMetric().
double cmtk::VoxelMatchingCrossCorrelation::SumXY [private] |
Sum over products of corresponding samples in X and Y distribution.
Definition at line 150 of file cmtkVoxelMatchingCrossCorrelation.h.
Referenced by AddMetric(), and RemoveMetric().
double cmtk::VoxelMatchingCrossCorrelation::SumY [private] |
Sum over all samples in Y distribution.
Definition at line 147 of file cmtkVoxelMatchingCrossCorrelation.h.
Referenced by AddMetric(), and RemoveMetric().