1. A method for generating an enhanced output image, comprising the steps of: acquiring an ambient image of a scene illuminated by ambient light; acquiring a flash image of the scene illuminated with a flash unit; determining a gradient flash image from the flash image; determining a gradient ambient image from the ambient image; combining the gradient flash image and the gradient ambient image to produce a combined gradient image; and constructing an enhanced output image from the combined gradient image.