Skip to content

Commit

Permalink
v1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingnan-Jia committed Jun 18, 2024
1 parent cda8997 commit 9b287c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion seg_metrics/seg_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ def computeQualityMeasures(lP: np.ndarray,
quality["stdsd"] = np.std(all_surface_distances)
if len(all_surface_distances) == 0:
quality["hd95"] = 0
quality["hd"] = 0
else:
quality["hd95"] = np.percentile(all_surface_distances, 95)
quality["hd"] = np.max(all_surface_distances)
quality["hd"] = np.max(all_surface_distances)
return quality


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setuptools.setup(
name="seg_metrics", # Replace with your own username
version="1.2.4",
version="1.2.5",
author="Jingnan Jia",
author_email="[email protected]",
description="A package to compute different segmentation metrics for 2D/3D medical images.",
Expand Down

0 comments on commit 9b287c2

Please sign in to comment.