Visceral-Project / EvaluateSegmentation

A program to evaluate the quality of image segmentations.
Apache License 2.0
313 stars 87 forks source link

Fixed image is empty! #5

Open utkarshmttl opened 6 years ago

utkarshmttl commented 6 years ago

If the ground truth mask is empty (no positive classes - which is clearly possible in real life), it shows this error.

hmeine commented 5 years ago

Several measures are not well-defined in this situation, though. (Think of surface distances, for instance.) I think it's better to get an error than some magic numbers (such as "9999", for instance). Yet, it may be very useful to explicitly define corresponding outputs for all measures in this situation.