1. A method comprising: receiving a two-dimensional image to be converted to a first three-dimensional image; computing, by a processing device, a feature-to-depth mapping function based on an approximate depth map associated with a second three-dimensional image; applying the feature-to-depth mapping function to a plurality of pixels of the two-dimensional image to determine a depth value for each of the plurality of pixels; and generating the first three-dimensional image based on the depth values for the plurality of pixels of the two-dimensional image.