Image binarization using mean restrain
AssigneeInternational Business Machines Corporation
InventorsBin Gu, Xiao Chao Yan, Chongming Wang, Jian Bing Chen, Min Xu
Life of this patent
Estimating the term…
Abstract
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.
Claims20
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;
- and
- generating, by the computing device, a binarized image using the grayscale image and the binarization threshold.
A computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computing device to cause the computing device to:
- receive a color image;
- convert the color image to a grayscale image;
- determine a foreground mean value and a background mean value for each grayscale value;
- determine a binarization threshold using the foreground mean values and the background mean values;
- and
- generate a binarized image using the grayscale image and the binarization threshold.
A system comprising:
- a hardware processor, a computer readable memory, and a non-transitory computer readable storage medium associated with a computing device;
- program instructions configured to obtain a grayscale image;
- program instructions configured to generate a histogram from the grayscale image;
- program instructions configured to determine a foreground mean value and a background mean value for each pixel value in the histogram;
- program instructions configured to determine a binarization threshold using the foreground mean values and the background mean values;
- and
- program instructions configured to generate a binarized image using the grayscale image and the binarization threshold,
- wherein the program instructions are stored on the non-transitory computer readable storage medium for execution by the hardware processor via the computer readable memory.
Dependencies are inferred from the claim text.