Image Segmentation through Topographic Analysis