medial_axis
skimage.morphology.medial_axis(image, mask=None, return_distance=False) [source]
Compute the medial axis transform of a binary image Parameters:
image : binary ndarray, shape (M, N) The image of the shape to be skeletonized. mask : binary ndarray, shape (M, N), optional If a mask is given, only those elements in image with a true value in mask are used for computing the medial axis. return_distance : bool, optional If true, the distance transform is returned as well as the