image-js icon indicating copy to clipboard operation
image-js copied to clipboard

Implement `skeletonize()`

Open opatiny opened this issue 3 years ago • 1 comments

Implement a function that skeletonizes a mask. https://homepages.inf.ed.ac.uk/rbf/HIPR2/skeleton.htm

Is there anything similar in image-js already?

Ref to Matlab equivalent function: https://nl.mathworks.com/help/images/ref/bwskel.html

opatiny avatar Jan 28 '22 11:01 opatiny

This method will only apply on a binary image (mask) and return a new mask.

const skeleton = mask.skeletonize();

Need to check what is the best algorithm and this could be useful:

Here are some example of application

  • http://devdoc.net/python/scikit-image-doc-0.13.1/auto_examples/edges/plot_skeleton.html
  • https://tirthajyoti.github.io/Scikit-image-book/Skeletonize.html
  • https://imagej.net/plugins/analyze-skeleton/

lpatiny avatar Apr 12 '23 14:04 lpatiny