1. Field of the Invention
The invention relates to exposure compensation, and in particular to method of exposure compensation in a camera.
2. Description of the Prior Art
Generally, color and brightness of a background may cause an incorrect exposure in photography. For example, when using the center weighted averaging metering function of a camera, a background of light color or high brightness may result in a captured image with under-exposed background due to the camera misjudging the exposure, for example, the original white background registering as gray. Similarly, a background of dark color or low brightness can result in a captured image with overexposed background, for example, an original black background registering as gray.
A conventional method of exposure compensation to address the above problem adjusts the overall brightness of the subject. Namely, the foreground and the background are adjusted at the same time, to be lighter or darker. This method, however, while correcting the exposure of the background, can inaccurately expose the foreground. Accordingly, some multi-featured cameras utilize flash compensation to overcome the problem, although this requires the two compensation methods to cooperate.
This cooperative solution can be complicated and difficult to use, causing inconvenience for users.
It is therefore a primary objective of the invention to provide a method of exposure compensation to solve the above-mentioned problems.
The invention discloses a method of exposure compensation, comprising capturing a first image without a flash, capturing a second image with the flash, generating a F-number, a shutter speed value, and a flash value according to brightness distribution of the first and second images, and capturing a third image according to the F-number, the shutter speed value, and the flash value.
These and other objectives of the invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Lflash
When flash 120 of the camera 110 is used, exposure enhancement of the background 140 is less than that of the foreground 130 because the background 140 is further from the camera 110. Therefore, when one of the flash contributing values Lflash
After the foreground and the background of the capturing environment 100 are distinguished, a compensation F-number Fnc and a compensation shutter speed value Expc are generated according to the average brightness LAbg of the background. More specifically, an environmental brightness LV calculated according to the average brightness LAbg generates the compensation F-number Fnc and compensation shutter speed value Expc. However, another environmental brightness LV may be calculated according to the average brightness LBbg to generate the compensation F-number Fnc and compensation shutter speed value Expc. Calculation of environmental brightness LV is as follows:
LV=Log2[(Fn2×LAbg)/(Exp×Ltarget)] formula (2)
In formula (2), Fn and Exp indicate the F-number and the shutter speed value when capturing the first image 200. Ltarget indicates the normal exposure recognized by the camera 110, varying with circumstance. Next, the compensation F-number Fnc and compensation shutter speed value Expc are generated according to environmental brightness LV. Calculation of compensation F-number Fnc and compensation shutter speed value Expc is as follows:
LV+EVbias=log2(Fnc2/Expc) formula (3)
In formula (3), EVbias indicates that exposure of the background requires adjustment, and may vary with circumstance. Thus, the generated compensation F-number Fnc and compensation shutter speed value Expc compensate the exposure of the background to achieve expected results. Multiple sets of compensation F-number Fnc and compensation shutter speed value Expc can be calculated from formula (3). Camera 110 or the user chooses a compensation F-number Fnc, and the corresponding compensation shutter speed value Expc is calculated, or a compensation shutter speed value Expc is chosen to calculate the corresponding compensation F-number Fnc.
When the compensation F-number Fnc and the compensation shutter speed value Expc are generated, a compensation flash value Sc is generated according to the average brightness of the foreground, the compensation F-number Fnc, the compensation shutter speed value Expc, and the flash contributing value Lflash. More specifically, a new average brightness of the foreground Lfg
Lfg
In formula (4), Fn and Exp indicate the used F-number and shutter speed value when capturing the first image 200. The LAfg indicates the average brightness of foreground in the first image 200. In this embodiment, the Lfg
Otherwise, calculation of a new flash contributing value Lflash
Lflash
After the new average brightness of the foreground Lfg
Sc=S×[(Ltarget−Lfg
In formula (6), S indicates the flash value when capturing the second image 300.
With formulae (1) to (6), the camera 110 of the invention utilizes the generated compensation F-number Fnc, the compensation shutter speed value Expc, and the compensation flash value Sc to shoot a third image with correct exposure in foreground and background.
In step 410, a first image is generated without using a flash.
In step 420, a second image is generated with a flash.
In step 430, a foreground area, a background area and a flash contributing value Lflash are generated according to brightness of each area of the first image 200 and the second image 300.
In step 440, a compensation F-number Fnc and a compensation shutter speed value Expc are generated according to the average brightness of the background.
In step 450, a compensation flash value Sc is generated according to the compensation F-number Fnc, the compensation shutter speed value Expc, and the flash contributing value Lflash.
In step 460, a third image is generated according to the compensation F-number Fnc, the compensation shutter speed value Expc, and the compensation flash value Sc.
The steps may follow the above sequence, or alternatively, may vary with circumstance. Other steps may be inserted into the process. The method of the invention can be executed by software, firmware, hardware, or combinations thereof.
As mentioned, a first image 200 and a second image 300 are captured to generate the compensation F-number Fnc, the compensation shutter speed value Expc, and the compensation flash value Sc so that a third image is captured with accurate foreground and background exposure. The procedure may executed by a camera (such as a digital camera) 110 during a predetermined period. The exposure compensation of the foreground and the background is automatically adjusted according to the exposure of the background (via choosing a EVbias) such that the method of the exposure compensation is easily employed.
The invention provides a method of exposure compensation utilized for capturing an image by a camera with a flash, such that the captured picture has accurate foreground and background exposure, and the conventional flash compensation and method of exposure compensation are not required. Thus, the invention is more convenient and easily used than conventional methods.
While the invention has been described by way of example and in terms of a preferred embodiment, it is to be understood that the invention is not limited thereto. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
094140500 | Nov 2005 | TW | national |