Image thresholding segmentation method based on minimum square