A method of processing a digital image to produce an improved digital
image, includes receiving the digital image captured with a camera;
determining a first vanishing point associated with the digital image;
determining a second vanishing point associated with the digital image
corresponding to a direction orthogonal the first vanishing point;
determining a transform for modifying the digital image based on the
first vanishing point and the second vanishing point; and applying the
transform to the digital image to produce an improved digital image.