12-03-2020 дата публикации
Номер: US20200082208A1
Принадлежит:
Methods and systems for image binarization using mean restrain are disclosed. A method includes: obtaining, by a computing device, a grayscale image; generating, by the computing device, a histogram from the grayscale image; determining, by the computing device, a foreground mean value and a background mean value for each pixel value in the histogram; determining, by the computing device, a binarization threshold using the foreground mean values and the background mean values; and generating, by the computing device, a binarized image using the grayscale image and the binarization threshold. 1. A method comprising:obtaining, by a computing device, a grayscale image;generating, by the computing device, a histogram from the grayscale image;determining, by the computing device, a foreground mean value and a background mean value for each pixel value in the histogram;determining, by the computing device, a binarization threshold using the foreground mean values and the background mean values; andgenerating, by the computing device, a binarized image using the grayscale image and the binarization threshold.2. The method according to claim 1 , wherein the obtaining the grayscale image comprises:receiving, by the computing device, a color image; andconverting, by the computing device, the color image to the grayscale image.3. The method according to claim 1 , wherein the foreground mean value is determined for each pixel value claim 1 , pixel claim 1 , in the histogram claim 1 , his claim 1 , using Σg×his[g]÷Σhis[g].4. The method according to claim 3 , wherein the background mean value is determined for each pixel value in the histogram using Σg×his[g]÷Σhis[g].5. The method according to claim 1 , wherein the determining the binarization threshold comprises:determining, by the computing device, an overall mean value for each pixel value in the histogram using the foreground mean value and the background mean value for the pixel value;determining, by the computing device, a ...
Подробнее