Patent ID: 8736858

Claim:
An image processing apparatus that selects, based on data of an image that is acquired, an image output mode for outputting the image from one of a plurality of output modes, the image processing apparatus comprising: a pixel classification unit that classifies each pixel of the image into one of a plurality of pixel categories based on the image data of each pixel; an image division unit that divides the image into a plurality of blocks, the plurality of blocks each including a plurality of pixels adjacent to each other; a block classification unit that classifies each of the plurality of blocks into one of a plurality of block categories based on the pixel category of each of the plurality of pixels belonging to each of the plurality of blocks; and an output mode selection unit that selects the image output mode by sequentially determining, in accordance with an output mode order allotted to the plurality of output modes, whether or not to select one of the plurality of output modes as the image output mode, based on a ratio of a classified number of blocks, which is a number of blocks classified into each block category, to a reference number of blocks, wherein the output mode selection unit selects the image output mode after the block classification unit has classified each of the plurality of blocks into one of the plurality of block categories, wherein the plurality of output modes includes at least a first output mode and a second output mode, the first output mode being prior to the second output mode in the output mode order, wherein, in a first determination in the output mode order, the output mode selection unit determines whether or not to select the first output mode as the image output mode based on a ratio of a first classified number of blocks, which is a number of blocks classified into a first block category, to a first reference number of blocks, which is a total number of the plurality of blocks of the image, and wherein, in a second determination in the output mode order, the output mode selection unit determines whether or not to select the second output mode as the image output mode based on a ratio of a second classified number of blocks, which is a number of blocks classified into a second block category, to a second reference number of blocks, which is a value obtained by subtracting the first classified number of blocks from the first reference number of blocks.