A method for correcting distortion of a captured image is provided. The
method includes receiving a detection output from a sensor; optically
correcting distortion of a captured image in image data from the element
due to the positional change of the imaging element by controlling a
control mechanism depending on the detection output in the receiving
step, the mechanism being configured to control a position at which
incident light from a target object enters the imaging element; receiving
image data resulting from the optical correction of a captured image in
the correcting step from the element, and detecting a motion vector per
one screen of a captured image from the image data; and further
correcting distortion of a captured image due to the positional change of
the imaging element for the image data from the imaging element based on
the motion vector detected in the motion vector detecting step.