From 170eee416f8090a16e37d3f96fefd93690a79d90 Mon Sep 17 00:00:00 2001 From: Vladimir Filipenko Date: Sun, 24 Nov 2024 01:28:16 +0300 Subject: [PATCH] some :nail_care: --- imops/morphology.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imops/morphology.py b/imops/morphology.py index 1d9466a..0be6a6c 100644 --- a/imops/morphology.py +++ b/imops/morphology.py @@ -529,7 +529,7 @@ def distance_transform_edt( return None -def convex_hull_image(image, offset_coordinates=True): +def convex_hull_image(image: np.ndarray, offset_coordinates: bool = True) -> np.ndarray: """ Fast convex hull of an image. Similar to skimage.morphology.convex_hull_image with include_borders=True @@ -560,7 +560,7 @@ def convex_hull_image(image, offset_coordinates=True): if np.count_nonzero(image) == 0: warn( - 'Input image is entirely zero, no valid convex hull. ' 'Returning empty image', + 'Input image is entirely zero, no valid convex hull. Returning empty image', UserWarning, ) return np.zeros(image.shape, dtype=bool)