Skeletonize algorithm based on ITKThinningImageFilter3D