Skip to content

Commit

Permalink
Update python/cucim/src/cucim/skimage/morphology/convex_hull.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gigon Bae <gigony@gmail.com>
  • Loading branch information
grlee77 and gigony authored Feb 26, 2025
1 parent 3695936 commit 4a04965
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/cucim/src/cucim/skimage/morphology/convex_hull.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def convex_hull_image(
"""
if cpu_fallback_threshold is not None and cpu_fallback_threshold < 0:
raise ValueError("cpu_fallback_threshold must be non-negative")
if tolerance <= 0:
raise ValueError("tolerance must be positive")
if cpu_fallback_threshold is None:
# Fallback to scikit-image implementation of total number of pixels
# is less than this
Expand Down

0 comments on commit 4a04965

Please sign in to comment.