A digital keystone correction process locates image points in a corrected
image from image points in a distorted image that was produced by
misalignment of the axis of a sensor such as a camera. The correction
process locates corrected image points by constructing intercept points
that are the intersections of the extended sides of a quadrilateral in
the distorted image plane that is constructed from a known rectangular
feature in the subject plane. Reference points are located by drawing a
line through each intercept point and the distorted image point.
Distances are found from the intercept points to the image points and the
reference points. The distances are scaled and corrected with an offset
to locate the coordinates of the image points in the corrected image
plane. This process can correct alignment errors of pitch, yaw, and roll
between the subject plane and an image plane such as photographic film.