Introduction - If you have any usage issues, please Google them yourself
Gray threshold of many cases, the image is gray level of two different regional groupings. If words and paper, surface features and cloud cover (aerial photograph). Its features: histogram has two peak, respectively, with the two gray-scale range corresponding to. So choose a threshold, separating the two peaks.