Patent ID: 7949184

Claim:
An image processing apparatus comprising: a histogram producing device configured to produce a histogram in a color space from an input image; a peak-color extracting device configured to extract a plurality of peak colors having a local maximum frequency of appearance of a color value in the histogram; a representative-color selecting device configured to determine whether to unify the extracted plurality of peak colors, based on a feature amount of the extracted plurality of peak colors, and that selects a peak color as a representative color among the extracted plurality of peak colors when the extracted plurality of peak colors are unified, the feature amount comprising a lightness difference among the extracted plurality of peak colors and directions of vectors in the color space, the vectors each showing a shortest distance from one of the extracted plurality of peak colors to a line segment connecting between a reference color and a dark color; and a replacing device configured to replace a color of each pixel in the input image by the representative color.