jni / skan

Python module to analyse skeleton (thin object) images
https://skeleton-analysis.org
BSD 3-Clause "New" or "Revised" License
118 stars 39 forks source link

skeletonize widget could work with integer labels #192

Closed jni closed 1 year ago

jni commented 1 year ago

This might be more of an issue for scikit-image, but it would be easy to add here: if the skeletonize widget receives an integer-valued input, it currently binarizes it and returns a {0, 1} valued skeleton. Instead, we could multiply the input image with the binary skeleton, so that each skeleton would have the same value as the original labels image. This might be less surprising behaviour to users because the labels and the skeletonized labels would have the same colour scheme.

CC @jamesyan-git