An analysis and classification tool compares at least a portion of a
captured image and a reference image of nominally the same scene. One of
the captured and reference images is taken with flash and the other is
taken without flash. The tool provides a measure of the difference in
illumination between the captured image and the reference image. The tool
compares the measure with a threshold and categorizes the scene as
outdoor or indoor based on the measure.