For controlling exposure in a camera, first and second brightness levels
of first and second areas of a captured image are determined. First and
second weight values for the first and second brightness levels are
determined with an increase of the first weight value for a higher
difference between the first and second brightness levels. Exposure
control data is generated from the first and second weight values and the
first and second brightness levels.