Skip to content

4103 enhances surface Dice to use subvoxel borders #6681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 5, 2023
Prev Previous commit
Next Next commit
update docstring
Signed-off-by: Wenqi Li <[email protected]>
  • Loading branch information
wyli committed Jul 1, 2023
commit b3a44f4d253cf77cb64362cf028ccd565f834df6
5 changes: 3 additions & 2 deletions monai/metrics/surface_dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ class SurfaceDiceMetric(CumulativeIterationMetric):
Computes the Normalized Surface Dice (NSD) for each batch sample and class of
predicted segmentations `y_pred` and corresponding reference segmentations `y` according to equation :eq:`nsd`.
This implementation is based on https://arxiv.org/abs/2111.05408 and supports 2D and 3D images.
Be aware that the computation of boundaries is different from DeepMind's implementation
https://github.com/deepmind/surface-distance. In this implementation, the length/area of a segmentation boundary is
Be aware that by default (`use_subvoxels=False`), the computation of boundaries is different from DeepMind's
mplementation https://github.com/deepmind/surface-distance.
In this implementation, the length/area of a segmentation boundary is
interpreted as the number of its edge pixels. In DeepMind's implementation, the length of a segmentation boundary
depends on the local neighborhood (cf. https://arxiv.org/abs/1809.04430).
This issue is discussed here: https://github.com/Project-MONAI/MONAI/issues/4103.
Expand Down