Unlock the secrets of segmentation: A comprehensive guide