摘要 |
An anti-aliasing font character on a monitor is prevented from being erroneously judged as an image region. The pixel of interest and four pixels each preceding and following the pixel of interest (a total of nine pixels) are extracted (S3). The largest of the values of the sub-pixels of each of the nine pixels extracted is determined as the representative value of each pixel (step S5). The nine representative values are represented as a histogram and referred to as H0, H1, H2, and the like in the descending order of the frequency in the distribution (S7). Whether Formula (1) below is satisfied is determined (S9). H0+H1+H2<TH . . . (1) If Formula (1) is satisfied, the pixel of interest is judged as a non-character-region pixel; if not, the pixel of interest is judged as a character-region pixel (S11, S13). |
主权项 |
1. A method for judging whether a unit pixel is included in a character region on a display screen including a plurality of unit pixels, each unit pixel having three or more primary color sub-pixels arranged therein, the method comprising:
specifying, with a processor, a pixel of interest; when the pixel of interest is specified, automatically specifying, with a processor, the pixel of interest and a predetermined number of unit pixels adjacent to the pixel of interest, as a judgment region, wherein the predetermined number of unit pixels is a positive integer greater than 0; automatically determining, with the processor, the largest of values of the primary color sub-pixels of each of the unit pixels in the judgment region, as a respective representative value of the respective unit pixel; and based on a subset of a histogram of the representative values of the unit pixels in the judgment region being greater than a threshold value, automatically determining, with the processor, that the pixel of interest is included in a character region. |