Skeletonize
This layer (skeletonize) extracts skeletons from bitmap figures.
1
{
2
"src": [
3
"$sample1"
4
],
5
"dst": "$sample2",
6
"action": "skeletonize",
7
"settings": {
8
"method": "thinning",
9
"classes": [
10
"cool-bitmap"
11
]
12
}
13
}
Copied!
Each figure of class "cool-bitmap" will be reduced to 1 pixel wide representation. Each source mask (figure of shape "bitmap") produces one resulting mask (shape "bitmap").
It uses scikit-image as a backend, so three methods of skeletonization are provided. For more information, look here.
For large images it may be... not fast.

Settings

  • classes โ€” list of classes to apply transformation. Only classes with shape "bitmap" are allowed.
  • method (type: enum ["skeletonization", "medial_axis", "thinning"]) โ€” algorithm of processing.

Example

Illustrated example of usage may be found here.
Last modified 1yr ago
Copy link