A simple and effective automatic multi-threshold segmentation algorithm