1. A method for automatically performing perspective correction in a digital photo of a scene recorded with a camera, the method comprising: providing, using only a single camera with a single acquisition position, a digital photo of a scene represented by pixel values, P (x,y) , for an array of pixels, (x,y), the photo having perspective distortion effects; a depth map associated with the photo and comprising, for each pixel in the pixel array, a depth, d (x,y) , being a distance between a part of the scene represented by that pixel and an acquisition position of the camera at the time of acquisition of the photo; and performing perspective correction of the photo using as photographic input only the photo of the scene from the single camera and acquisition position and its associated depth map by, for each pixel, (x,y), in the photo, determining a new position, D proc , in an image plane for a virtual camera position from at least the pixel's depth, d acq (x,y), its position, D acq (x,y), in the image plane at the acquisition position, and a displacement, C, between the virtual camera position and the acquisition position as: D proc = D acq ( x , y ) * d acq ( x , y ) d acq ( x , y ) + C