Skip to content

Commit

Permalink
fix shape bug in convex_hull when 2d image has a singletone size on o…
Browse files Browse the repository at this point in the history
…ne axis
  • Loading branch information
grlee77 committed Mar 1, 2025
1 parent d7e724c commit 783a434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cucim/src/cucim/skimage/morphology/convex_hull.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def convex_hull_image(
original_shape = image.shape
image = cp.squeeze(image)
if image.ndim < 2:
return image
return image.reshape(original_shape)

if image.size < cpu_fallback_threshold:
# Fallback to pure CPU implementation
Expand Down

0 comments on commit 783a434

Please sign in to comment.