loli / medpy

Medical image processing in Python
http://loli.github.io/medpy/
GNU General Public License v3.0
559 stars 136 forks source link

Fixed dice coef. return value on emtpy sets #111

Closed loli closed 1 year ago

loli commented 1 year ago

While not clearly defined, the convention seems to be that an empty result and reference set should cause the dice coefficient to return 1 (i.e. a perfect result) rather than 0. Adapted accordingly.

Fixes #106