dscience.calc.morphology
¶
Module Contents¶
-
class
dscience.calc.morphology.
ConvexHullCropper
¶ Auto-crops images based on their convex hull, assuming a white or transparent background. Idea & code from Sandipan Dey’s answer on https://stackoverflow.com/questions/14211340/automatically-cropping-an-image-with-python-pil
-
crop
(self, im_array: np.array)¶
-
crop_file
(self, from_path: str, to_path: str)¶
-
__repr__
(self)¶
-
__str__
(self)¶
-