摘要 |
PROBLEM TO BE SOLVED: To provide an image processing apparatus capable of performing an image rotating process in a short period of time. SOLUTION: Two integers "a" and "b", of which the ratio a/b is equal to a tangent value of a rotation angle, are inputted to perform a rotation process. Each time an x-coordinate (m) of a target pixel of a rotated image is changed by one pixel, "a" is added to a y-direction weight factor "kwy". When the y-direction weight factor "kwy" becomes more than or equal to "b", "b" is subtracted from the y-direction weight factor "kwy", and a y-coordinate of a corresponding target pixel of an original image is changed by one pixel. Each time a y-coordinate (n) of the target pixel is changed by one pixel, "a" is added to an x-direction weight factor "kwx". When the x-direction weight factor "kwx" becomes more than or equal to "b", "b" is subtracted from the x-direction weight factor "kwx", and an x-coordinate (i) of the corresponding target pixel of the original image is changed by one pixel. Four pixels including the corresponding target pixel are used to acquire a pixel value of the target pixel by two-dimensional interpolation by ratios acquired by dividing the x-direction weight factor "kwx" and the y-direction weight factor "kwy" respectively by "b". COPYRIGHT: (C)2009,JPO&INPIT
|