Introduction - If you have any usage issues, please Google them yourself
OTSU method of adaptive image binarization threshold, OTSU adaptive algorithm can be said to compute a single threshold (used to convert grayscale image to binary image) is simple and efficient method. The following code was first provided by the Ryan Dibble, then after more than Joerg.Schulenburg, RZLiu such modification, correction. Algorithm to the input gray-scale image histogram analysis, the histogram is divided into two parts, making the maximum distance between the two parts. Division point is obtained threshold. Are written by foreigners, the classic Oh.