Interactive segmentation based on colour similarity. Boundary editing step is used to improve the accuracy of the results for complex images. Works as a multi-label image segmentation algorithm. Effectively detects the lithological boundaries of geological images.