1. A method of imaging a foreground object placed in front of a background, the method comprising: acquiring a first image of the foreground object and the background while illuminating the background under a first lighting condition relative to the object; acquiring a second image of the foreground object and the background while illuminating the background under a second lighting condition relative to the object; computing a mixing function based on a selected one of the images; and using the image that was not selected and the mixing function, computing an object image function relating to an image of the foreground object with a reduced background intensity relative to the foreground object as compared to the image that was not selected.