Shape spaces via medial axis transforms for segmentation of complex geometry in 3D voxel data