White balancing method and image capturing device
Granted 1 Jul 2014 · no office action yet
Current assignee: POLIGHT TECHNOLOGIES LTD. · originally Foxconn Technology Group
Law firm: Law firm · Log in to unlock
Attorney: Attorney · Log in to unlock
Inventors: Kuo-Hung Lin · Examiner: Hung Lam · AU 2661 · TC 2600
Life of the application
7 dated eventsAbstract
A white balancing method includes capturing an original image with red (R), green (G) and blue (B) color channels; computing and converting the R, G and B color channels into original color histogram; stretching the original color histograms over the entire grayscale width from 0 to 255 values; and adjusting a color of the original image based on the stretched color histograms to obtain a white balanced image. In the computing and converting the original color histograms, a sampling length follows a formula of span m =min{(2 h , H), (2 w , W)}, wherein h=[log 2 H]+1, w=[log 2 W]+1, H represents a height of the original image, W represents a width of the original image, [ ] is the Gaussian symbol, ( ) is greatest common divisor function, and min{ } means selecting the minimum value. An image capturing device using the white balancing method is also provided.
Description
3 parts›BACKGROUND
1. Technical Field
The present disclosure relates to white balance techniques, and particularly to a white balancing method and an image capturing device using the white balancing method.
2. Description of Related Art
Human eyes automatically adapt to each new environment, such that the same colors for each object can be recognized even under different light sources. However, image capturing devices don't have such a function, such that white balancing is needed for adjusting colors of an image.
A color histogram stretching (CHS) has been proposed for white balancing. In the CHS, color channels are computed and made into original color histograms, then the original color histograms are stretched over an entire width of the grayscale, thus increasing a contrast of the image, and finally the color of the image is adjusted based on the stretched color histograms. However, in the CHS, a sampling length for computing the color channels is proposed at 2 unit, which making the CHS a very time-consuming process in the white balancing.
What is needed, therefore, is a white balancing method and image capturing device using same, which can overcome the above shortcomings.
›BRIEF DESCRIPTION OF THE DRAWINGS
Many aspects of the white balancing method and image capturing device can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present white balancing method and image capturing device. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
FIG. 1 is a flow chart of a white balancing method in accordance with a first embodiment.
FIGS. 2-4 are original color histograms of R, G, and B color channels.
FIGS. 5-7 are stretched color histograms of R, G, and B color channels.
FIG. 8 is a schematic view of an original image represented by R, G and B color channels.
FIG. 9 is a block diagram of an image capturing device in accordance with a second embodiment.
›DETAILED DESCRIPTION
Embodiments of the present white balancing method and image capturing device will be described with reference to the drawings.
Referring to FIGS. 1 to 8 , an image white balancing method 100 includes the following steps.
Step S 1 : an original image is provided by a digital image capturing device. The original image includes a plurality of pixels, and each pixel is composed of red (R), green (G) and blue (B) sub-pixels. Each sub-pixel includes at least one color channel. The original image represented by R, G and B color channels is as shown in FIG. 8 .
Step S 2 : as shown in FIGS. 2-4 , the R, G, and B color channels are computed and converted into original color histograms. In the drawings, each horizontal ordinate represent a grayscale including 0 to 255 values, and each vertical ordinate represents pixel appearance frequency. The computing of the R, G, and B color channels is performed by a software process represented by RAW(x, y). In this process, x satisfies a formula (x=0; x<W; x=x+span), and y satisfies a formula (y=0; y<H; y=y+span), wherein H represents a height of the original image, W represents a width of the original image, and “span” represents a sampling length. In the present embodiment, the “span” follows a formula of span m =min{(2 h , H), (2 w , W)}, wherein h=[log 2 H]+1, w=[log 2 W]+1, [ ] is the Gaussian symbol, ( ) is greatest common divisor function, and min{ } means selecting the minimum value.
Step S 3 , as shown in FIGS. 5 to 7 , the R, G, and B original color histograms of FIGS. 2-4 are stretched to be distributed over the entire width of the grayscale, thus increasing a contrast of the image.
Step S 4 , the color of the original image is adjusted based on the stretched R, G, and B color histogram to obtain a white balanced image.
In particular, in step S 2 , if red (R), green red (Gr), green blue (Gb) and blue (B) color channels are used in computing and converting the original color histograms, the times for computing the original image will be
H span · W span · 4 = 4 H · W span 2 .
In the related art method, a sampling length for the span may be 2 unit, then the conventional computing times is H·W.
In the present embodiment, the span m is proposed. According to the formula span m =min{(2 h , H), (2 w , W)}, span m is far greater than 2, and the times for computing the original image will be
H span m · W span m · 4 = 4 H · W span m 2 .
As span m 2 is far greater than 4, the computing times will be far less than H·W. That is, the time spent on the computing and converting the original color histograms will be decreased, and therefore a lot of time will be saved in performing the white balancing.
According to a comparison, the white balanced image using the sampling length span m appears the same as the white balanced image using the normal sampling length 2.
Referring to FIG. 9 , an image capturing device 200 using the white balancing method of the present embodiment includes a lens module 20 , an image sensor 40 and a image processor 60 . The image sensor 40 is electrically connected to the image processor 60 . The lens module 20 and the image sensor 40 cooperatively capture an image, and the image processor 60 receives the image from the image sensor 40 .
The image processor 60 has an automatic white balancing circuit 62 to perform the white balancing method of the present embodiment. The image capturing device 200 further includes a flash lamp module 10 .
It is understood that the above-described embodiments are intended to illustrate rather than to limit the disclosure. Variations may be made to the embodiments and methods without departing from the spirit of the disclosure. Accordingly, it is appropriate that the appended claims be construed broadly and in a manner consistent with the scope of the disclosure.
Claims as granted
6 claimsLog in to read the claims of this application.
Log in to unlockClassifications
6 codes- H04N23/40
- H04N9/75
Claim changes
SoonSee which claims were amended, added or cancelled during examination, with every added and removed word marked.
The published claims of this application are not paired with the granted ones in what we hold.
File wrapper
See the full prosecution history — every USPTO and applicant action on this file, in order.
Log in to unlockDocuments
Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.
Log in to unlockChain of title
See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.
Log in to unlock