3D thinning and its applications to medical image processing. TASK QUARTERLY. 1999;3(4):397-408.