1. A system for capturing digital images of a scene and producing a distance map from the captured digital images, the distance map having scene distance values related to the distance between a digital camera and objects in the scene, the system comprising: (a) a digital camera comprising an attached electronic flash unit which provides less illumination to a distant object in the scene than to a nearby object in the scene, and a digital memory for storing two captured digital images, including a first digital image of the scene illuminated using only ambient illumination and a second digital image of the scene illuminated using a combination of ambient illumination and light from the electronic flash unit; and (b) a processor for producing a distance map of scene distance values from the two captured digital images, wherein the processor uses the first captured digital image to determine the relative reflectance of objects in the second captured digital image, and uses the second captured digital image to determine scene distance values of objects in the scene wherein the scene distance values are related to the intensity values of first and second digital images.