Skip to content

Commit

Permalink
some 💅
Browse files Browse the repository at this point in the history
  • Loading branch information
vovaf709 committed Nov 23, 2024
1 parent 0106fa0 commit 170eee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imops/morphology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 170eee4

Please sign in to comment.