摘要 |
PROBLEM TO BE SOLVED: To improve a processing speed while properly acquiring a combination of major colors to be a distribution object of an intermediate color.SOLUTION: An image processing apparatus includes: a major color extraction section for extracting major colors including a foreground color and a background color of an image on the basis of a result obtained by associating the color information of each pixel of the image with an area of a color space; a line segment calculation section for calculating a line segment in which an intermediate color showing a color other than the major colors is present on a line between arbitrary two major colors in the color space among the major colors extracted by the major color extraction section; a determination section for acquiring, in each intermediate color in the image, two major colors in which a distance between an intermediate color and a line segment is the smallest in the color space to determine which the intermediate color belongs to between the two major color; and a generation section for generating an image obtained by replacing each intermediate color in the image with the major color determined by the determination section. |