Patent ID: 8625150

Claim:
An image processing device that acquires both first image data and second image data, each of which is included in a rectangular region, wherein shape and area of rectangular regions are same, and that aligns the shape of the rectangular region of the first image data with that of the second image data, the device comprising: an image data acquiring part that acquires the first image data and the second image data; an edge characteristic extraction part that extracts both first edges forming the shape of the rectangular region contained in the first image data and second edges forming the shape of the rectangular region; a rectangular characteristic calculating part that extracts both a first calculated rectangular region formed by the first edges and a second calculated rectangular region formed by the second edges; a position adjustment parameter calculating part that calculates parameters indicating a separation distance and a separation angle between the first calculated rectangular region and the second calculated rectangular region when the first image data and the second image data are overlapped; and an image data correction part that adjusts a position of one of the first image data and the second image data to an original position of the other one of the first image data and the second image data by shifting and rotating only the one of the first image data and the second image data based upon the parameters, wherein the position adjustment parameter calculating part determines whether or not a size of the first calculated rectangular region matches a size of the second calculated rectangular region, the image data correction part perform the adjustment if the size of the first calculated rectangular region matches the size of the second calculated rectangular region, the image data correction part does not perform the adjustment if the size of the first calculated rectangular region does not match the size of the second calculated rectangular region.