摘要 |
<P>PROBLEM TO BE SOLVED: To provide an image processor, an image processing method, a computer program, and a recording medium, extracting foreground pixels with high accuracy even from input image data having a complicated layout such as an image having a local background color or an image including a reversed character. <P>SOLUTION: A foreground pixel block extracting part 61 divides the input image data into a plurality of pixel blocks, and classifies each pixel block into a flat pixel block or a foreground pixel block to extract the foreground pixel block. A foreground color calculation part 63 calculates a foreground color as color information from the extracted foreground pixel block. A labeling part 62 attaches the same label to a plurality of adjacent foreground pixel blocks to extract an area by continuous foreground pixel blocks as a foreground pixel area. From the result thereof, a foreground pixel extracting part 64 calculates a representative color for each foreground pixel area, and extracts pixels having a color similar to the representative color as the foreground pixels. <P>COPYRIGHT: (C)2011,JPO&INPIT |