Watershed based image segmentation