A Step-by-Step Guide to Image Segmentation Techniques