Method for generating target gain value of wide dynamic range operation
A method for generating a target gain value of a wide dynamic range (WDR) operation is disclosed including: acquiring an average bright portion luminance corresponding to an average pixel luminance of a bright portion of a video image; acquiring an average dark portion luminance corresponding to an average pixel luminance of a dark portion of the video image; generating an initial gain value of the WDR operation according to a difference between the average bright portion luminance and the average dark portion luminance; and adjusting the initial gain value according to at least one of a color temperature and an exposure duration configuration value of the video image to generate the target gain value.
Latest REALTEK SEMICONDUCTOR CORP. Patents:
- SIGNAL TRANSPORTING SYSTEM AND SIGNAL TRANSPORTING METHOD
- Audio signal modulation and amplification circuit
- Integrated circuit applicable to performing system protection through dynamic voltage change
- SYSTEM AND METHOD FOR PERFORMING FIELD PROGRAMMABLE GATE ARRAY PROTOTYPE VERIFICATION ON TESTED CIRCUIT
- MEMORY CONTROL CIRCUIT AND CONTROL METHOD THEREOF
This application claims the benefit of priority to Patent Application No. 105101144, filed in Taiwan on Jan. 14, 2016; the entirety of which is incorporated herein by reference for all purposes.
BACKGROUNDThe disclosure generally relates to an image processing technology and, more particularly, to a method for generating a target gain value of a wide dynamic range (WDR) operation.
The high dynamic range (HDR) operation is greatly beneficial to improve clarity of the high contrast images, and thus widely used in many image processing systems, such as digital cameras, smart phones, tablet computers, surveillance systems, and the like.
The conventional HDR operation configures multiple images of successive points of time to have different exposure durations, and then combines these images to form single image having appropriate luminance in both the dark portion and bright portion.
However, the conventional HDR operation requires the use of more complex image sensors, and thus the overall circuitry complexity of the image processing system would be inevitably increased.
SUMMARYAn example embodiment of a method for generating a target gain value of a wide dynamic range (WDR) operation is disclosed, comprising: acquiring an average bright portion luminance corresponding to an average pixel luminance of a bright portion of a video image; acquiring an average dark portion luminance corresponding to an average pixel luminance of a dark portion of the video image; generating an initial gain value of the WDR operation according to a difference between the average bright portion luminance and the average dark portion luminance; and adjusting the initial gain value according to at least one of a color temperature and an exposure duration configuration value of the video image to generate the target gain value.
Both the foregoing general description and the following detailed description are examples and explanatory only, and are not restrictive of the invention as claimed.
Reference is made in detail to embodiments of the invention, which are illustrated in the accompanying drawings. The same reference numbers may be used throughout the drawings to refer to the same or like parts, components, or operations.
Before conducting the WDR operation on the arbitrary video image, the image processing system may perform the operation 110 to acquire an average bright portion luminance corresponding to the average pixel luminance of the bright portion of the video image, and to acquire an average dark portion luminance corresponding to the average pixel luminance of the dark portion of the video image.
In practice, the image processing system may directly acquire the aforementioned average bright portion luminance and average dark portion luminance from other existing circuits, or may independently perform a brightness computation for the video image.
In the operation 120, the image processing system may generate an initial gain value of the WDR operation according to the difference between the average bright portion luminance and the average dark portion luminance. In general, a larger difference between the average bright portion luminance and the average dark portion luminance translates to a higher possibility that the arbitrary video image is corresponding to a high contrast scene. On the contrary, a smaller difference between the average bright portion luminance and the average dark portion luminance translates to a lower possibility that the arbitrary video image is corresponding to a high contrast scene. Accordingly, the image processing system may configure the initial gain value to be directly proportional to the difference between the average bright portion luminance and the average dark portion luminance.
Since the difference between the average bright portion luminance and the average dark portion luminance cannot accurately reflect the scene of the arbitrary video image, the image processing system further proceeds to the operations 130 and 140.
In the operation 130, the image processing system may adjust the initial gain value according to the color temperature of the video image. A higher color temperature translates to a higher possibility that the video image is corresponding to an outdoor scene. On the contrary, a lower color temperature translates to a higher possibility that the video image is corresponding to an indoor scene. In general, when the video image is corresponding to the outdoor scene, there is a higher possibility that the video image is generated under a strong back light situation. A video image of the indoor scene may have the possibility to be taken under a back light situation, but the back light situation in the indoor scene is typically gentler than that in the outdoor scene. Accordingly, the image processing system may configure the initial gain value to be directly proportional to the color temperature.
In the operation 140, the image processing system may adjust the initial gain value according to an exposure duration configuration value of the video image. The term “exposure duration configuration value” as used throughout the description and claims refers to the exposure duration setting value of the image sensor when the hardware WDR function is disabled. In general, a smaller exposure duration configuration value translates to a higher possibility that the video image is corresponding to an outdoor scene. On the contrary, a larger exposure duration configuration value translates to a higher possibility that the video image is corresponding to an indoor scene. Accordingly, the image processing system may configure the initial gain value to be inversely proportional to the exposure duration configuration value.
In order to increase the accuracy of the subsequent WDR operation, the image processing system may take the average dark portion luminance and the total pixel quantity of the dark portion into consideration to further adjust the gain value of the WDR operation.
For example, after the aforementioned operations 130 and 140, the image processing system may perform the operation 150 to further adjust a weighting of the initial gain value according to the average dark portion luminance.
Please refer to
As shown in
In addition, after adjusting the weighting of the initial gain value based on the average dark portion luminance, the image processing system may perform the operation 160 to further adjust the weighting of the initial gain value according to the total pixel quantity of the dark portion of the video image.
Please refer to
As shown in
In the embodiment of
It can be appreciated from the foregoing descriptions that when the method of
In addition, since the image processing system is enabled to compensate the high contrast image by conducting digital computations, the circuit structure of the image sensor can be simplified to reduce the overall circuitry complexity.
Furthermore, in addition to the difference between the average bright portion luminance and the average dark portion luminance, the method of
As shown in
For example,
For the embodiment of
Then, the image processing system may perform the operation 480 to further adjust the weighting of the initial gain value according to the difference between the central luminance and the peripheral luminance to generate the target gain value. Since the human eyes are more sensitive to the central region of an image, the image processing system may configure the weighting of the initial gain value to be directly proportional to the difference between the central luminance and the peripheral luminance to generate the target gain value.
The foregoing descriptions regarding the operations 110-160 of
Since the method of
Please note that the executing order of the operations in
In addition, the shape of the aforementioned central region 510 is merely an embodiment, rather than restriction to the practical implementations. In practice, t the central region of the video image may be configured to have another shape, such as an elliptical shape, a rounded rectangular shape, a hexagonal shape, an octagonal shape, a square shape, and the like. For example,
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention indicated by the following claims.
Claims
1. A method for generating a target gain value of a wide dynamic range (WDR) operation, the method comprising:
- acquiring an average bright portion luminance corresponding to an average pixel luminance of a bright portion of a video image;
- acquiring an average dark portion luminance corresponding to an average pixel luminance of a dark portion of the video image;
- generating an initial gain value of the WDR operation according to a difference between the average bright portion luminance and the average dark portion luminance; and
- adjusting the initial gain value according to at least one of a color temperature and an exposure duration configuration value of the video image to generate the target gain value.
2. The method of claim 1, wherein the operation of generating the initial gain value comprises:
- configuring the initial gain value to be directly proportional to the difference between the average bright portion luminance and the average dark portion luminance.
3. The method of claim 1, wherein the operation of adjusting the initial gain value comprises:
- configuring the initial gain value to be directly proportional to a value of the color temperature.
4. The method of claim 1, wherein the operation of adjusting the initial gain value comprises:
- configuring the initial gain value to be inversely proportional to the exposure duration configuration value.
5. The method of claim 1, wherein the operation of adjusting the initial gain value comprises:
- after adjusting the initial gain value according to at least one of the color temperature and the exposure duration configuration value, further adjusting a weighting of the initial gain value according to the average dark portion luminance to generate the target gain value.
6. The method of claim 5, wherein the operation of adjusting the weighting of the initial gain value comprises:
- if the average dark portion luminance is lower than a threshold luminance (L1), configuring the weighting of the initial gain value to be fixed at a first predetermined weighting (W1); and
- if the average dark portion luminance is greater the threshold luminance (L1), configuring the weighting of the initial gain value to be inversely proportional to the average dark portion luminance.
7. The method of claim 5, wherein the operation of adjusting the initial gain value comprises:
- after adjusting the weighting of the initial gain value according to the average dark portion luminance, further adjusting the weighting of the initial gain value according to a total pixel quantity of the dark portion to generate the target gain value.
8. The method of claim 7, wherein the operation of adjusting the weighting of the initial gain value according to the total pixel quantity of the dark portion comprises:
- if the total pixel quantity of the dark portion is between a first predetermined quantity (Q1) and a second predetermined quantity (Q2), configuring the weighting of the initial gain value to be directly proportional to the total pixel quantity of the dark portion.
9. The method of claim 1, wherein the operation of adjusting the initial gain value comprises:
- computing a central luminance corresponding to an average pixel luminance of a central region (510) of a video image (500);
- computing a peripheral luminance corresponding to an average pixel luminance of a peripheral region (520) of the video image (500); and
- after adjusting the initial gain value according to at least one of the color temperature and the exposure duration configuration value, further adjusting the weighting of the initial gain value according to a difference between the central luminance and the peripheral luminance to generate the target gain value.
10. The method of claim 9, wherein the operation of adjusting the weighting of the initial gain value according to the difference between the central luminance and the peripheral luminance comprises:
- configuring the weighting of the initial gain value to be directly proportional to the difference between the central luminance and the peripheral luminance.
5712682 | January 27, 1998 | Hannah |
7098945 | August 29, 2006 | Sasai |
8154628 | April 10, 2012 | Ishida |
20100020205 | January 28, 2010 | Ishida |
20100310189 | December 9, 2010 | Wakazono |
20110249890 | October 13, 2011 | Kim |
20140240533 | August 28, 2014 | Hirooka |
20140307117 | October 16, 2014 | Feng |
20140329128 | November 6, 2014 | Ohashi |
20150009361 | January 8, 2015 | Liu |
20150244917 | August 27, 2015 | Huang |
201410017 | March 2014 | TW |
- Wong et al., “A Method for the Evaluation of Wide Dynamic Range Cameras,” Proceedings of SPIE, vol. 8299, Digital Photography VIII, Jan. 24, 2012, 7 pages.
Type: Grant
Filed: Oct 18, 2016
Date of Patent: Oct 24, 2017
Patent Publication Number: 20170208233
Assignee: REALTEK SEMICONDUCTOR CORP. (Hsinchu)
Inventors: Wei-Te Chang (Taoyuan), Shih-Tse Chen (Hsinchu County)
Primary Examiner: Pritham Prabhakher
Application Number: 15/296,324
International Classification: H04N 5/235 (20060101); G06T 7/40 (20170101); G06K 9/46 (20060101); G06K 9/62 (20060101);