Multi-threshold algorithm segmentation algorithm