cows.label_skeleton¶
- cows.label_skeleton(skel, periodic=False)[source]¶
Label the skeleton.
Label all skeleton cells with their respective number of neighbour that they share a face, edge or vertex with (N_26).
- Parameters:
skel (ndarray, 3D) – A binary image containing the skeletonized objects. Zeros represent background, nonzero values are foreground.
periodic (bool) – If True, the skeletonization uses periodic boundary conditions for the input array. Input array must be 3D.
- Returns:
result (ndarray) – The labeled skeleton.