Base class for voxel metrics with pre-converted image data. More...
#include <cmtkImagePairSimilarityJointHistogram.h>
Public Types | |
typedef ImagePairSimilarityJointHistogram | Self |
This type. | |
typedef SmartPointer< Self > | SmartPtr |
Smart pointer. | |
typedef ImagePairSimilarityMeasure | Superclass |
Parent class. | |
typedef Functional::ReturnType | ReturnType |
Return type: same as cmtk::Functional. | |
Public Member Functions | |
ImagePairSimilarityJointHistogram (UniformVolume::SmartConstPtr &refVolume, UniformVolume::SmartConstPtr &fltVolume, const Interpolators::InterpolationEnum interpolation=Interpolators::DEFAULT) | |
Constructor. | |
ImagePairSimilarityJointHistogram () | |
Default constructor. | |
virtual | ~ImagePairSimilarityJointHistogram () |
Virtual destructor. | |
virtual void | SetReferenceVolume (const UniformVolume::SmartConstPtr &refVolume) |
Set reference volume. | |
virtual void | SetFloatingVolume (const UniformVolume::SmartConstPtr &fltVolume) |
Set floating volume. | |
virtual void | Reset () |
Reset computation: clear joint histogram. | |
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 | Add (const Self &other) |
Add another metric object to this one. | |
void | Remove (const Self &other) |
Add another metric object to this one. | |
virtual Types::DataItem | GetFloatingValueScaled (const Types::DataItem value) const |
Get scaled floating value if this metric rescales (implemented in derived classes), or input value if it does not (done here as the default). | |
Protected Attributes | |
size_t | m_NumberOfBinsX |
Number of X bins (reference image) | |
size_t | m_NumberOfBinsY |
Number of Y bins (floating image) | |
JointHistogram< unsigned int > | m_JointHistogram |
The joint histogram. | |
Private Member Functions | |
UniformVolume::SmartPtr | PrescaleData (const UniformVolume::SmartConstPtr &volume, size_t *numberOfBins, Types::DataItem *scaleFactor, Types::DataItem *scaleOffset) |
Duplicate and pre-scale image data so that we have the histogram bin numbers readily available. | |
Private Attributes | |
Types::DataItem | m_ScaleOffsetReference |
Store reference data rescaling offset. | |
Types::DataItem | m_ScaleFactorReference |
Store reference data rescaling factor. | |
Types::DataItem | m_ScaleOffsetFloating |
Store floating data rescaling offset. | |
Types::DataItem | m_ScaleFactorFloating |
Store floating data rescaling factor. |
Base class for voxel metrics with pre-converted image data.
Definition at line 58 of file cmtkImagePairSimilarityJointHistogram.h.
Return type: same as cmtk::Functional.
Reimplemented from cmtk::ImagePairSimilarityMeasure.
Reimplemented in cmtk::ImagePairSimilarityMeasureMI, and cmtk::ImagePairSimilarityMeasureNMI.
Definition at line 73 of file cmtkImagePairSimilarityJointHistogram.h.
This type.
Reimplemented from cmtk::ImagePairSimilarityMeasure.
Reimplemented in cmtk::ImagePairSimilarityMeasureMI, and cmtk::ImagePairSimilarityMeasureNMI.
Definition at line 64 of file cmtkImagePairSimilarityJointHistogram.h.
Smart pointer.
Reimplemented from cmtk::ImagePairSimilarityMeasure.
Reimplemented in cmtk::ImagePairSimilarityMeasureMI, and cmtk::ImagePairSimilarityMeasureNMI.
Definition at line 67 of file cmtkImagePairSimilarityJointHistogram.h.
Parent class.
Definition at line 70 of file cmtkImagePairSimilarityJointHistogram.h.
cmtk::ImagePairSimilarityJointHistogram::ImagePairSimilarityJointHistogram | ( | ) | [inline] |
Default constructor.
Definition at line 85 of file cmtkImagePairSimilarityJointHistogram.h.
virtual cmtk::ImagePairSimilarityJointHistogram::~ImagePairSimilarityJointHistogram | ( | ) | [inline, virtual] |
Virtual destructor.
Definition at line 89 of file cmtkImagePairSimilarityJointHistogram.h.
void cmtk::ImagePairSimilarityJointHistogram::Add | ( | const Self & | other ) | [inline] |
Add another metric object to this one.
Definition at line 126 of file cmtkImagePairSimilarityJointHistogram.h.
References m_JointHistogram.
void cmtk::ImagePairSimilarityJointHistogram::Decrement | ( | const T | a, |
const T | b | ||
) | [inline] |
Remove a pair of values from the metric.
Definition at line 120 of file cmtkImagePairSimilarityJointHistogram.h.
virtual Types::DataItem cmtk::ImagePairSimilarityJointHistogram::GetFloatingValueScaled | ( | const Types::DataItem | value ) | const [inline, virtual] |
Get scaled floating value if this metric rescales (implemented in derived classes), or input value if it does not (done here as the default).
Reimplemented from cmtk::ImagePairSimilarityMeasure.
Definition at line 138 of file cmtkImagePairSimilarityJointHistogram.h.
void cmtk::ImagePairSimilarityJointHistogram::Increment | ( | const T | a, |
const T | b | ||
) | [inline] |
Add a pair of values to the metric.
Definition at line 113 of file cmtkImagePairSimilarityJointHistogram.h.
void cmtk::ImagePairSimilarityJointHistogram::Remove | ( | const Self & | other ) | [inline] |
Add another metric object to this one.
Definition at line 132 of file cmtkImagePairSimilarityJointHistogram.h.
References m_JointHistogram.
virtual void cmtk::ImagePairSimilarityJointHistogram::Reset | ( | ) | [inline, virtual] |
Reset computation: clear joint histogram.
Reimplemented from cmtk::ImagePairSimilarityMeasure.
Definition at line 106 of file cmtkImagePairSimilarityJointHistogram.h.
JointHistogram<unsigned int> cmtk::ImagePairSimilarityJointHistogram::m_JointHistogram [protected] |
The joint histogram.
Definition at line 151 of file cmtkImagePairSimilarityJointHistogram.h.
size_t cmtk::ImagePairSimilarityJointHistogram::m_NumberOfBinsX [protected] |
Number of X bins (reference image)
Definition at line 145 of file cmtkImagePairSimilarityJointHistogram.h.
size_t cmtk::ImagePairSimilarityJointHistogram::m_NumberOfBinsY [protected] |
Number of Y bins (floating image)
Definition at line 148 of file cmtkImagePairSimilarityJointHistogram.h.
Store floating data rescaling factor.
Definition at line 175 of file cmtkImagePairSimilarityJointHistogram.h.
Store reference data rescaling factor.
Definition at line 169 of file cmtkImagePairSimilarityJointHistogram.h.
Store floating data rescaling offset.
Definition at line 172 of file cmtkImagePairSimilarityJointHistogram.h.
Store reference data rescaling offset.
Definition at line 166 of file cmtkImagePairSimilarityJointHistogram.h.