machinevisiontoolbox.Image.thin_animate
- Image.thin_animate(delay=0.5, **kwargs)
Morphological skeletonization with animation
- Parameters:
delay (float, optional) – time in seconds between each iteration of display, default to 0.5
kwargs – options passed to
hitormiss
- Returns:
Image
- Return type:
Image
instance
Return the thinned version (skeleton) of the binary image as another binary image. Any non-zero region is replaced by a network of single-pixel wide lines.
The algorithm is iterative, and the result of of each iteration is displayed using Matplotlib.
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read("shark2.png") >>> img.thin_animate() Image: 500 x 500 (uint8)
- References:
Robotics, Vision & Control for Python, Section 11.6.3, P. Corke, Springer 2023.
- Seealso: