Skip to content

MATLAB code to calculate the 3D skeleton of a binary volume using parallel medial axis thinning

License

Notifications You must be signed in to change notification settings

phi-max/skeleton3d-matlab

Repository files navigation

skeleton3D-matlab: Parallel medial axis thinning of a 3D binary volume

This code calculates the 3D medial axis skeleton of an arbitrary 3d binary volume. It is an optimized MATLAB implementation of the homotopic thinning algorithm described in [1]. We developed it to quantify the network of cell processes in bone [2], but it should work on images of any tubular or filamentous structures. An example volume (testvol.mat) is included, along with an example script (Test_Skeleton3D.m). Any comments, corrections or suggestions are highly welcome.

Usage:

skel = Skeleton3D(bin)

where "bin" is a 3D binary image, and "skel" the resulting image containing only the skeleton voxels, or

skel = Skeleton3D(bin,mask)

to mask all foreground voxels in 'mask' from skeletonization, e.g. to preserve certain structures in a image volume.

For additional cleanup, e.g. pruning of short branches, please use my Skel2Graph3D package on MATLAB File Exchange.

This code is inspired by the ITK implementation by Hanno Homann [3] and the Fiji/ImageJ plugin by Ignacio Arganda-Carreras [4]. If you include this in your own work, please cite our publicaton [2].

Philip Kollmannsberger 09/2013 philipk@gmx.net

References:

[1] Ta-Chih Lee, Rangasami L. Kashyap and Chong-Nam Chu "Building skeleton models via 3-D medial surface/axis thinning algorithms." Computer Vision, Graphics, and Image Processing, 56(6):462–478, 1994.

[2] Kollmannsberger, Kerschnitzki et al., "The small world of osteocytes: connectomics of the lacuno-canalicular network in bone." New Journal of Physics 19:073019, 2017.

[3] http://hdl.handle.net/1926/1292

[4] http://fiji.sc/wiki/index.php/Skeletonize3D

About

MATLAB code to calculate the 3D skeleton of a binary volume using parallel medial axis thinning

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages