The operation can be done in 3-D or 2-D. Also, when thinning to completion, short branches of the skeleton - such as branches corresponding to small and possibly noisy geometrical components of an object - can be suppressed.
The 3-D method is based on [18,29]. The 2-D method is a simple template-checking technique.
dimensions = 3-DThe ``dimensions'' toggles between ``3-D'' and ``2-D'' - it determines how the thinning is done.
num_passes = to completion
min_branch_length = 5
connectivity = 8/26
The ``num_passes'' can be used to specify the number of iterations of thinning. Leaving the parameter at ``num_passes = to completion'' will thin the volume down to a skeleton.
The ``min_branch_length'' parameter specifies the shortest skeletal branches preserved (in voxels).