pub fn skeletonize(input: &Tensor) -> Result<Tensor, ImgProcError>Expand description
Morphological skeletonization. Input: [H, W] binary.
Zhang-Suen thinning algorithm on a binary single-channel [H, W, 1] image.
Pixels > 0.5 are foreground. Iteratively removes boundary pixels to produce a one-pixel-wide skeleton. Returns a binary image with 1.0 for skeleton pixels.