Introduction - If you have any usage issues, please Google them yourself
Prepared for their own binary threshold function. 5* 5 template partial gray value for each square, and then for 3* 3 gray neighborhood entropy, by seeking the maximum entropy of the gray value corresponding to demand threshold.