Image Skeletonize
This function block extracts the skeletal structure of objects in a binary/grayscale image. It is useful for feature extraction, topology analysis, and producing thin representations of shapes for measurement or further processing.
π₯ Inputs
Image GrayGrayscale or binary image to be skeletonized.
π€ Outputs
SkeletonizedFull skeleton result as a binary image (thin, single-pixel-wide representation).Skeletonized LiteThinned version using a standard thinning method.Skeletonized PartiallyPartially thinned image controlled by the iterations setting.
πΉοΈ Controls
IterationsSlider to adjust maximum iteration for partial thinning. Higher values produce more thinning in theSkeletonized Partiallyoutput.
π¨ Features
Produces three different skeleton-style outputs for flexible use in analysis and visualization.
Works directly on binary or grayscale imagesβno coding required.
Skeletonized Partiallyallows controlled thinning so you can balance detail vs. simplification.
π Usage Instructions
Prepare the image input and connect it to the
Image Grayinput socket.If your image is not already binary (black & white), consider thresholding or preprocessing (see Tips and Tricks).
Adjust the
Iterationsslider to change how aggressive the partial thinning should be.Use the outputs for visualization, shape analysis, or as inputs to other blocks.
π Evaluation
When run, the block produces:
Skeletonizedfor a full skeleton result,Skeletonized Litefor a standard thinned result,Skeletonized Partiallywhich respects theIterationscontrol for gradual thinning.
These outputs can be inspected visually or fed to downstream blocks for measurement or further processing.
π‘ Tips and Tricks
Clean binary input produces the best skeletons. Consider using
Image ThresholdorImage Adaptive Thresholdbefore this block to create a clear foreground/background separation.Reduce noise prior to skeletonization with
BlurorDenoisingto avoid spurious branches.Use
Morphological Transformations(opening/closing) to remove small artifacts or to close small gaps in shapes before skeletonizing.Crop to the region of interest using
Image ROI SelectorImage ROIso the block focuses on the area you care about.After skeletonization, use
Find Contour,Approximate Contour, orMeasure Position Distanceto extract measurements or further analyze the thin structures.If your images are large and processing is slow, try
Image Resizerto reduce size before skeletonizing.
π οΈ Troubleshooting
No visible skeletons: Ensure the input is binary or has sufficient contrast. Try
Image Thresholdor increase contrast withContrast Optimization.Too many small branches or noise: Apply
Morphological TransformationsorBlurbefore skeletonizing to remove small artifacts.Skeleton too thin or details lost: Lower the
Iterationssetting for a gentler partial thinning, or use theSkeletonized Liteoutput which preserves more structure.Processing is slow: Reduce input resolution with
Image Resizeror preprocess to limit the area usingImage ROI Select.
Last updated
Was this helpful?