1. Technical Field
The disclosed embodiments relate generally to an imaging method, and more particularly, to a wide dynamic range imaging method.
2. Description of Related Art
Regarding the image with high contrast grounds (such as, the extremely dark foreground and the extremely light background), if the image capturing apparatus increases its exposure rate, the moderate lightness will be given to the foreground, but the background will be over-exposed. By contrast, if the image capturing apparatus decreases its exposure rate, the moderate lightness will be given to the background, but the foreground will be too dark.
The high dynamic range imaging method can obtain two images for one scene with different exposure rates, and synthesizes the two obtained images, such that the foreground and the background within the scene have moderate lightness. However, the high dynamic range imaging method has a complex algorithm, and the image capturing apparatus requires an excellent light sensing component for exposing selectively with different exposure rates. Even the frame rate or the processing speed of the image capturing apparatus must be further enhanced to successfully perform the high dynamic range imaging method.
An exemplary embodiment of the present disclosure provides a wide dynamic rage imaging method which comprises the following steps. According to a first difference value between a light-part average luminance value and a dark-part average luminance value of an image, a first enhancing value is obtained. According to the dark-part average luminance value and a dark-part pixel number, the first enhancing value is adjusted to generate a second enhancing value. A light-part weighted average value in first regions of the image and a dark-part weighted average value in second regions of the image are calculated, a second difference value between the dark-part weighted average value and the light-part weighted average value is calculated, and the second enhancing value is adjusted to generate a third enhancing value according to the second difference value. The third enhancing value is used to selectively adjust the pixels of the image.
To sum up, the wide dynamic range imaging method provided by the exemplary embodiment of the present disclosure can increase the fineness of the whole image, and simultaneously make details in the dark region and the light region be viewed apparently.
In order to further understand the techniques, means and effects of the present disclosure, the following detailed descriptions and appended drawings are hereby referred, such that, through which, the purposes, features and aspects of the present disclosure can be thoroughly and concretely appreciated; however, the appended drawings are merely provided for reference and illustration, without any intention to be used for limiting the present disclosure.
The accompanying drawings are included to provide a further understanding of the present disclosure, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
Reference will now be made in detail to the exemplary embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
An exemplary embodiment of the present disclosure provides a wide dynamic range imaging method, and the wide dynamic rage imaging method firstly obtains a difference value between a light-part average luminance value and a dark-part average luminance value of an image (i.e. subtract the dark-part average luminance value from the light-part average luminance value to obtain the difference value) via a histogram of the image, and then obtains the first enhancing value according to the difference value. Then considering the condition that the image has the large difference value but does not have the high contrast grounds, the wide dynamic range imaging method performs a darkness weighting process to adjust the first enhancing value, and then generates the second enhancing value, accordingly. Next, a central luminance weighting process is performed to adjust the second enhancing value, and then the third enhancing value is generated, accordingly. Next, the wide dynamic range imaging method performs a wide dynamic range gain adjusting process, an exposure gain adjusting process, or a gamma gain adjusting process on each of the pixels of the image according to the third enhancing value, and then outputs an adjusted image.
In the exemplary embodiment of the present disclosure, the darkness weighting process adjusts the first enhancing value according to a dark-part pixel number and the dark-part average luminance value, so as to generate the second enhancing value. The central luminance weighting process divides the image into first regions (corresponding to a preset background region) and second regions (corresponding to a preset foreground region), calculates the light-part weighted average value according to the luminance values and weighting values of the first regions, calculates the dark-part weighted average value according to the luminance values and weighting values of the second regions, and then adjusts the second enhancing value according to the dark-part weighted average value and the light-part weighted average value, so as to generate the third enhancing value.
In addition, in the exemplary embodiment of the present disclosure, the third enhancing value is used to determine whether the pixels which have luminance values less than a specific threshold value should be adjusted, and according to at least one of a selected scene mode, a hardware specification, and the third enhancing value, the wide dynamic range gain adjusting process is performed on the pixels which have luminance values within a first luminance range, the exposure gain adjusting process is performed on the pixels which have luminance values within a second luminance range, and the Gamma gain adjusting process is performed on the pixels which have luminance values within a third luminance range. The third enhancing value can be a percentage, such as 90%, the first luminance range is the range between the 90% and 30% of the maximum luminance value (depending on the bit number for presenting the luminance value), the second luminance range is the range between the 30% and 20% of the maximum luminance value, and the third luminance range is the range between the 10% and 20% of the maximum luminance value.
The wide dynamic range imaging method can be applied in a digital camera, a camera in a smart phone, a pad, or a monitoring system, without modifying the design of the light sensing component. The wide dynamic range imaging method can efficiently increase the luminance of the low luminance part within the scene of the image and decrease the luminance of the high luminance part within the scene of the image, such that the visibility of the image is enhanced, and the edge effect of the image is avoided. Next, details of the wide dynamic range imaging method are illustrated as follows.
Referring to
Firstly, at step S11, according to a difference value between the light-part average luminance value and the dark-part average luminance value of the image, a first enhancing value is obtained. Specifically, the wide dynamic range imaging method performs a luminance statistics process on the captured image to obtain the histogram of the image. Next, the wide dynamic range imaging method performs an average calculation on the luminance values lower than a specific threshold value TH to obtain a dark-part average luminance value m1, and performs the average calculation on the luminance values higher than or equal to a specific threshold value TH to obtain light-part average luminance value m2 Next, the wide dynamic range imaging method calculates the difference value between the light-part average luminance value m2 and the dark-part average luminance value m1, i.e. the difference value is equal to m1−m2, and then by using a specific mapping relation, the wide dynamic range imaging method obtains the first enhancing value according to the difference value, wherein the first enhancing value can be a percentage.
Referring to
Next, still referring to
Referring to
Still referring to
Next, referring to
Referring to both of
Still referring to
Referring to
It is noted that, the threshold value TH1 is determined by the third enhancing value, and the other threshold values TH2 through TH4 can be determined according to at least one of the selected scene mode, the hardware specification, and the third enhancing value. For example, the third enhancing value can be a percentage, such as 90%, and the threshold values TH1 through TH4 are respectively 90%, 30%, 20%, and 10% of the maximum luminance value. The wide dynamic range gain adjusting process can be the pixel adjusting manner of the conventional wide dynamic range imaging method, the exposure gain adjusting process can be the conventional exposure time adjusting manner of the pixels, and the Gamma gain adjusting process can be the conventional pixel adjusting manner by using the Gamma mapping curve, and therefore the details of them are omitted herein.
In short, the exemplary embodiment of the present disclosure provides a wide dynamic range imaging method, and the wide dynamic range imaging method can increase fineness of the whole image and simultaneously make details in the dark region and the light region be viewed more apparently. Furthermore, the wide dynamic range imaging method can further solve the color distortion and edge effect of the adjusted image. Additionally, the computation complexity of the wide dynamic range imaging method is not large, the execution speed of it is quick, and the hardware complexity is not large, such that it can be implemented in the electronic apparatus easily, without changing the design of the light sensing component.
The above-mentioned descriptions represent merely the exemplary embodiment of the present disclosure, without any intention to limit the scope of the present disclosure thereto. Various equivalent changes, alterations or modifications based on the claims of present disclosure are all consequently viewed as being embraced by the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
104129834 | Sep 2015 | TW | national |