Patent ID: 8515209

Claim:
An image processing apparatus that compresses and encodes an input image formed of multi-valued image data, the image processing apparatus comprising: a drawing unit configured to draw a desired image representing the input image at a magnification ratio, the drawing unit including, a reducing unit configured to reduce the input image to form an intermediate image by interpolating the input image such that the intermediate image has a resolution of 1/n times a resolution of a desired image, if the magnification ratio is less than two, where n is an integer greater than or equal to two, and an enlarging unit configured to enlarge one of the intermediate image and the input image to form the desired image by performing interpolation based on the magnification ratio such that the desired image has the magnification ratio and the desired image is defined by sets of at least two continuous pixels in one of the vertical direction and the horizontal direction that have matching pixel values; a predicting unit configured to calculates a prediction value relative to an attention pixel of the desired image based on a pixel value of the attention pixel and a pixel value of a pixel surrounding the attention pixel; a predicting error unit configured to calculates an error value of the prediction value relative to the pixel value of the attention pixel; and a code generating unit that encodes one of the pixel value of the attention pixel and the error value.