Volumetric Overlap
This node computes a set of standard volumetric overlap metrics between corresponding labels in two masks. These measures quantify how well two binary segmentations agree, providing insight into similarity (agreement) and error (disagreement) from both directions. Background voxels (label 0) are ignored.
For each pair of masks Reference ( R ) and Test (T) (or for each label within each mask), the following metrics are returned:
Dice Coefficient:
\[ \text{Dice} = \frac{2\,|R \cap T|}{|R| + |T|} \]A measure of overlap ranging from 0 (no overlap) to 1 (perfect overlap). Doubly weights the intersection, making it sensitive to small objects.
Jaccard Index (Intersection over Union):
\[ \text{Jaccard} = \frac{|R \cap T|}{|R \cup T|} \]Also ranges from 0 to 1. Unlike Dice, it treats false positives and false negatives symmetrically in the denominator.
Volume Similarity:
\[ \text{Similarity} = 1 - \frac{|\,|R| - |T|\,|}{|R| + |T|} \]Reflects how similar the volumes of the two masks are, without regard for spatial alignment. A value of 1 means identical volumes; lower values indicate volume discrepancies.
False Positive Error (FPE):
\[ \text{FPE} = \frac{|T \setminus R|}{|T|} \]The fraction of voxels in the test mask (T) that are not in the reference mask ( R ). Indicates over-segmentation relative to the reference.
False Negative Error (FNE):
\[ \text{FNE} = \frac{|R \setminus T|}{|R|} \]The fraction of voxels in the reference mask ( R ) that are missing from the test mask ( R ). Indicates under-segmentation.
Each metric is computed either globally across the entire volume or on a slice-by-slice basis (if Slice-wise is enabled). These measures are suitable for evaluating segmentation algorithms, comparing manual vs. automated labels, and tracking performance across datasets.
Inputs
Reference
Reference mask(s).
Type: Mask, List, Required, Single
Inputs
Input mask(s).
Type: Mask, List, Required, Single
Outputs
Output
Table(s) containing the results.
Type: Table
Settings
Slice-wise Boolean
Calculate the volumetric overlap per slice.
Slice Plane Selection
Select the slice plane for slicewise calculation.
Values: i-j, i-k, j-k
Ignore Geometry Boolean
Ignore geometric information for calculations, i.e. Position, Orientation and Voxelsize, and only compare matrices. Useful for comparing e.g. 2D slices from different series.
Compare Input List Selection
If Pairwise is selected, each element in the Reference list is compared to the corresponding element in the Input list. The two lists must be the same lenght. Output is a list of tables, one for each pair. If you want to have the information as a single table, use Merge Tables.
If Against each Ref element is selected, the filter compares each reference volume to all volumes in the input list. If the reference input is a list, each element in that list will be compared to all elements in the input list, and the output will be a list of tables.
Values: Pairwise, Against each Ref element
Merge Tables Boolean
If output produces a list, merge the list into one table.
See also
Keywords: Dice, Jaccard, Similarity, False Positive Error, False Negative Error
Copyright © 2025, Hero Imaging AB