A method of generating an image transform for modifying a digital image, that
includes
the steps of: detecting a vanishing point related to the selected image; determining
a preferable vanishing point location, and generating an image transform based
on the vanishing point location and the preferable vanishing point location. In
another embodiment, the present invention provides a method for detecting an amount
of rotation between the vertical axes of a scene and an image of the scene, that
includes the steps of: detecting a set of vanishing points related to the image;
selecting a set of vanishing points corresponding to a vertical axis of the scene
based on a predetermined criteria; and using the selected vanishing points to detect
the rotation of the image.