Public Types | Public Member Functions | Private Member Functions | Private Attributes

cmtk::OverlapMeasures Class Reference
[cmtkSegmentation Library]

Class for overlap measures between multiple segmentations. More...

#include <cmtkOverlapMeasures.h>

Collaboration diagram for cmtk::OverlapMeasures:
Collaboration graph
[legend]

List of all members.

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::SmartPtrm_DataArrays
 Data arrays.

Detailed Description

Class for overlap measures between multiple segmentations.

Definition at line 48 of file cmtkOverlapMeasures.h.


Member Enumeration Documentation

Enumeration for different region weightings.

Enumerator:
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.


Member Function Documentation

size_t cmtk::OverlapMeasures::ComputeGroupwiseOverlap ( double &  overlapEqualWeighted,
double &  overlapVolumeWeighted,
double &  overlapInverseWeighted 
) const [inline]

Compute simple groupwise overlap.

Returns:
Number of labels included in computation. If this is zero, the resulting overlap values are invalid.
Parameters:
overlapEqualWeightedEqual-weighted overlap score is returned herein.
overlapVolumeWeightedVolume-weighted overlap score is returned herein.
overlapInverseWeightedInverse 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.


Member Data Documentation

Data arrays.

Definition at line 105 of file cmtkOverlapMeasures.h.

Maximum label value used in the data.

Definition at line 102 of file cmtkOverlapMeasures.h.

Number of images.

Definition at line 96 of file cmtkOverlapMeasures.h.

Number of pixels: the minimum number over all images.

Definition at line 99 of file cmtkOverlapMeasures.h.


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