Introduction - If you have any usage issues, please Google them yourself
By improving the gray histogram Shuangfeng method, the example program achieves the global optimum threshold by iteration, and has good segmentation effect for the images with obvious differences in the gray range of the previous background.