Morphological image enhancement and segmentation