MaskComparison¶
- MacroModule¶
genre
author
package
definition
keywords
Purpose¶
The module MaskComparison provides three metrics for evaluating differences between two mask images.
Usage¶
Connect two binary images with same extent and voxel-to-world matrix to the fields inMask1 and inMask1.
Press Update to compute the metric values.
Windows¶
Default Panel¶
Input Fields¶
inMask1¶
inMask2¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
Visible Fields¶
Dice Coefficient¶
- name: dice, type: Float, persistent: no¶
Shows the Dice coefficient of the two input masks.
The Dice coefficient is computed using the formula:
2 × ∑(A ∩ B) / (∑(A) + ∑(B))
Overlap Coefficient¶
- name: overlap, type: Float, persistent: no¶
Shows the overlap coefficient of the two input masks.
The overlap coefficient is computed using the formula:
∑(A ∩ B) / min(∑(A), ∑(B))
Jaccard Index / Intersection Over Union (IoU)¶
- name: jaccard, type: Float, persistent: no¶
Shows the Jaccard coefficient of the two input masks.
The Jaccard coefficient is computed using the formula:
∑(A ∩ B) / ∑(A ∪ B)
Results are valid¶
- name: resultsValid, type: Bool, persistent: no¶
Shows whether the results are valid.
Update¶
- name: update, type: Trigger¶
When pressed, the metric results are updated.