Patent ID: 8634114

Claim:
An image processing apparatus comprising: an identifying unit that identifies a color mode of each pixel included in image data of a target image, based on color data of each pixel included in the image data; a counting unit that counts, for each color mode of the pixels, a number of pixels which are included in the image data in a page unit and are identified by the identifying unit as the color mode; an acquiring unit that acquires a total number of pixels included in the image data in a page unit; a determining unit that determines which color mode the target image corresponds to in a page unit, the determination being performed sequentially for each color mode based on a predetermined color mode order; and a subtracting unit that calculates a subtraction total number of pixels obtained by subtracting a summed number of pixels, which is obtained by summing the number of pixels of each color mode before a second or subsequent color mode in the predetermined color mode order, from the total number of pixels acquired by the acquiring unit, before a determination to the second or subsequent color mode in the predetermined color mode order is performed by the determining unit, wherein the determining unit determines whether the target image corresponds to a first color mode in the predetermined color mode order, based on a pixel ratio of a number of pixels identified as the first color mode to the total number of pixels, and wherein the determining unit determines whether the target image corresponds to the second or subsequent color mode in the predetermined color mode order, based on a pixel ratio of a number of pixels identified as the second or subsequent color mode to the subtraction total number of pixels calculated by the subtracting unit.