摘要 |
An image window is subdivided into a plurality of sub-windows arranged in a rectangular grid pattern. The average brightness of the window and each sub-window is determined. A sub-window is tagged as dark if its average brightness is a predetermined percentage of the window average brightness. If the sub-window in the center of the grid pattern is considered to be dark, a segmentation is performed to detect a main backlit subject. The comparison of sub-window brightness is continued from the center sub-window in outward sequential, side adjacent rows and columns of sub-windows. Each sub-window that meets the above-described criterion for being dark is tagged as dark. The image is considered to have a main backlit subject if, in one embodiment, the subject is comprised of a predetermined quantity of continuous, dark sub-windows.
|