Class for overlap measures between multiple segmentations. More...
#include <cmtkOverlapMeasures.h>
Public Types | |
enum | RegionWeightingMode { Equal, Volume, VolumeInverse } |
Enumeration for different region weightings. More... | |
Public Member Functions | |
OverlapMeasures (const std::vector< TypedArray::SmartPtr > &dataArrays) | |
Constructor: allocate local data structures and do precomputations (e.g., count labels, etc). | |
size_t | ComputeGroupwiseOverlap (const int firstLabel, const int numberOfLabels, double &overlapEqualWeighted, double &overlapVolumeWeighted, double &overlapInverseWeighted) const |
Compute groupwise overlap with advanced options. | |
size_t | ComputeGroupwiseOverlap (double &overlapEqualWeighted, double &overlapVolumeWeighted, double &overlapInverseWeighted) const |
Compute simple groupwise overlap. | |
unsigned int | GetMaxLabelValue () const |
Return maximum label value used in data. | |
Private Member Functions | |
double | ComputePairwiseOverlapMinMax (double &overlap_min, double &overlap_max, const TypedArray::SmartPtr &data0, const TypedArray::SmartPtr &data1, const int label) const |
Compute pairwise overlap minimum. | |
Private Attributes | |
size_t | m_NumberOfImages |
Number of images. | |
size_t | m_NumberOfPixels |
Number of pixels: the minimum number over all images. | |
unsigned int | m_MaxLabelValue |
Maximum label value used in the data. | |
std::vector< TypedArray::SmartPtr > | m_DataArrays |
Data arrays. |
Class for overlap measures between multiple segmentations.
Definition at line 48 of file cmtkOverlapMeasures.h.
Enumeration for different region weightings.
Equal |
Equal weighting of all regions. |
Volume |
Weighting of regions proportional to volume. |
VolumeInverse |
Weighting of regions proportional to inverse volume. |
Definition at line 55 of file cmtkOverlapMeasures.h.
size_t cmtk::OverlapMeasures::ComputeGroupwiseOverlap | ( | double & | overlapEqualWeighted, |
double & | overlapVolumeWeighted, | ||
double & | overlapInverseWeighted | ||
) | const [inline] |
Compute simple groupwise overlap.
overlapEqualWeighted | Equal-weighted overlap score is returned herein. |
overlapVolumeWeighted | Volume-weighted overlap score is returned herein. |
overlapInverseWeighted | Inverse volume-weighted overlap score is returned herein. |
Definition at line 80 of file cmtkOverlapMeasures.h.
unsigned int cmtk::OverlapMeasures::GetMaxLabelValue | ( | ) | const [inline] |
Return maximum label value used in data.
Definition at line 89 of file cmtkOverlapMeasures.h.
std::vector<TypedArray::SmartPtr> cmtk::OverlapMeasures::m_DataArrays [private] |
Data arrays.
Definition at line 105 of file cmtkOverlapMeasures.h.
unsigned int cmtk::OverlapMeasures::m_MaxLabelValue [private] |
Maximum label value used in the data.
Definition at line 102 of file cmtkOverlapMeasures.h.
size_t cmtk::OverlapMeasures::m_NumberOfImages [private] |
Number of images.
Definition at line 96 of file cmtkOverlapMeasures.h.
size_t cmtk::OverlapMeasures::m_NumberOfPixels [private] |
Number of pixels: the minimum number over all images.
Definition at line 99 of file cmtkOverlapMeasures.h.