Design and implementation of edge-based, region-based and threshold-based image segmentation techniques