In a method for processing an image, a scene to be captured is divided
into multiple zones and statistical values for a plurality of the
multiple zones are obtained. In addition, a short-exposure time and a
long-exposure time from the statistical values of the plurality of zones
are determined. A long-exposure frame is captured at the long-exposure
time and a short-exposure frame is captured at the short-exposure time.
The long-exposure frame and the short-exposure frame are combined into a
combined image while correcting for motion estimated to have occurred
between the long-exposure frame and the short-exposure frame, and the
combined image is stored.