skeletonize.Rd
Employ a topologically constrained label propagation tool in order to thin an existing segmentation into a skeleton. The function will perform better if the initial segmentation is well-composed.
skeletonize(x, laplacianThreshold = 0.25, propagationOption = 1)
output binary image
img <- antsImageRead(getANTsRData("r16")) %>% thresholdImage("Otsu", 3)
skel <- skeletonize(thresholdImage(img, 3, 3))