Patent ID: 7760404

Claim:
An image processing device, comprising: a reference position determining system that determines a reference position along only one edge of an original image in a main scanning direction based on image data of the original image; an image scanning system that scans the original image line by line, the line extending in the main scanning direction; an image storing system that stores a predetermined number of plural lines of image data scanned by the image scanning system; a compensation value determining system that determines a compensation value based on positions of points along only the one edge of the original image in the main scanning direction which is used to make at least a position of a point in the predetermined number of plural lines of image data stored in the image storing system coincide with the reference position; and a compensating system that compensates the position of the predetermined number of plural lines of image data in accordance with the compensation value determined by the compensation value determining system; wherein the image storing system stores the predetermined number of plural lines of image data as unit image data; wherein the reference position determining system determines a reference position corresponding to n-th unit image data based on (n−1)-th unit image data stored in the image storing system and a compensation value corresponding to the (n−1)-th unit image data determined by the compensation value determining system; wherein the reference position determining system determines a lower left position, in the main scanning direction, of first unit image data as a reference position corresponding to the first unit image data; wherein the compensation value determining system determines a compensation value for the n-th unit image data by subtracting a value corresponding to an upper left position, in the main scanning direction, of the n-th unit image data from a value corresponding to a lower left position, in the main scanning direction, of the (n−1)-th unit image data; and wherein the reference position determining system determines the reference position corresponding to the n-th unit image data by adding the compensation value for the n-th unit image data to a value corresponding to a lower left position, in the main scanning direction, of the n-th unit image data.