A method and system generate an enhanced output image. A first image is
acquired of a scene illuminated by a first illumination condition. A
second image is acquired of the scene illuminated by a second
illumination condition. First and second gradient images are determined
from the first and second images. Orientations of gradients in the first
and second gradient images are compared to produce a combined gradient
image, and an enhanced output image is constructed from the combined
gradient image.