Patent attributes
Posture information corresponding to a line of an input image is calculated. Then, a first virtual line, which is a line in a line direction of the input image for which the posture information calculated is common, is rotated according to the posture information to obtain a second virtual line on the output image. For each pixel of the output image, a corresponding second virtual line is calculated, and posture information is obtained on the basis of the corresponding second virtual line. Then, for coordinates of each pixel of the output image, the reference coordinates on the input image corresponding to the pixel coordinates is calculated using the associated posture information. By cutting out the output image from the input image on the basis of the reference pixel, highly accurate distortion correction can be realized even in a case where the camera posture differs depending on the line.