1. A method, comprising: capturing a first image with a camera; capturing at least a second image subsequent to lateral movement of the camera; computing the amount of the lateral movement; determining a direction of the lateral movement; performing correlation of pixels in the first and second images in the direction of the lateral movement; computing peak of correlation for each pixel in the direction of the lateral movement; computing distance from the camera for each pixel based on the peak of the correlation and the amount and the direction of the lateral movement; and generating a three-dimensional image based upon the distance from the camera for each pixel.