A method for producing a distance map of scene distance values for a
digital image captured by a digital camera includes capturing a first
digital image of a scene under a first illumination condition, wherein
the first digital image includes a plurality of pixels and the scene
includes a plurality of scene objects located at different distances from
the digital camera, capturing a second digital image of the scene under a
second illumination condition that is different from the first
illumination condition, and using the first and second digital images to
produce a distance map having a plurality of scene distance values,
wherein each scene distance value relates to the distance between the
digital camera and the corresponding scene object.