Adaptation of https://github.com/LingDong-/skeleton-tracing/blob/master/rs/trace_skeleton.rs for large images.
Do not run on NBITS=1
images!
Compile with cargo build --release
, then run it with target/release/thinning <image.tif>
.
It overwrites the input image!