An image processing apparatus and a recording medium which can improve the
quality of a color document image are provided. An input image is
converted into an image having low resolution. A subtractive color image
is generated using the converted image having low resolution. From the
subtractive color image, adjacent pixels which are allocated to the same
representative color are unified so as to extract an FCR (Flat Color
Region) candidate region. A region candidate is redetermined using an
image having resolution which is higher than the subtractive color image.
Next, a boundary of the FCR is detected and an ultimate FCR is determined.
Selection of a representative color of the determined FCR is carried out,
and a specific color processing which replaces a color which is close to a
pure color with the pure color is effected. Finally, image regeneration is
carried out by overwriting and drawing (synthesizing) the FCR on the input
image.