From fe7a25840d1263e94514c9056390c0333131daff Mon Sep 17 00:00:00 2001 From: Yiheng Wang Date: Wed, 12 May 2021 19:22:40 +0800 Subject: [PATCH 1/2] Add reference for surface distance metric Signed-off-by: Yiheng Wang --- monai/metrics/surface_distance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monai/metrics/surface_distance.py b/monai/metrics/surface_distance.py index b605fdb88f..d4b2a84572 100644 --- a/monai/metrics/surface_distance.py +++ b/monai/metrics/surface_distance.py @@ -99,6 +99,7 @@ def compute_average_surface_distance( under the default setting. In addition, if sets ``symmetric = True``, the average symmetric surface distance between these two inputs will be returned. + The implementation refers to `DeepMind's implementation `_. Args: y_pred: input data to compute, typical segmentation model output. From 4f8c6fa539099ff0a0a69dc443cd75138fed19d2 Mon Sep 17 00:00:00 2001 From: Yiheng Wang Date: Wed, 12 May 2021 19:25:47 +0800 Subject: [PATCH 2/2] Add reference for hausdorff distance Signed-off-by: Yiheng Wang --- monai/metrics/hausdorff_distance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monai/metrics/hausdorff_distance.py b/monai/metrics/hausdorff_distance.py index 6570ace800..9617c0365a 100644 --- a/monai/metrics/hausdorff_distance.py +++ b/monai/metrics/hausdorff_distance.py @@ -30,6 +30,8 @@ class HausdorffDistanceMetric: `y_preds` is expected to have binarized predictions and `y` should be in one-hot format. You can use suitable transforms in ``monai.transforms.post`` first to achieve binarized values. + The implementation refers to `DeepMind's implementation `_. + Args: include_background: whether to include distance computation on the first channel of the predicted output. Defaults to ``False``.