You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shouldn't an empty reference and an empty result set output a Dice coefficient of 1 rather than 0? I.e. if no pixels of a class are present in the image and no mask is predicted, then the prediction is correct. Or am I missing something here?
(For the Jaccard coefficient the division by 0 detection seems to be missing altogether.)
Thanks and best wishes,
Christian
The text was updated successfully, but these errors were encountered:
baumgach
changed the title
Dice coefficient for empty result and empty reference
Should Dice coefficient for empty result and empty reference be 1?
May 24, 2022
Hi there,
This issue is in reference to the following line:
medpy/medpy/metric/binary.py
Line 79 in 39131b9
Shouldn't an empty reference and an empty result set output a Dice coefficient of 1 rather than 0? I.e. if no pixels of a class are present in the image and no mask is predicted, then the prediction is correct. Or am I missing something here?
(For the Jaccard coefficient the division by 0 detection seems to be missing altogether.)
Thanks and best wishes,
Christian
The text was updated successfully, but these errors were encountered: