Color image segmentation based on watershed algorithm