Us Patent Ideas

Balance Patent Ideas Search

Apparatus, medium, and method with automatic white balance control

Abstract
An automatic white balance control image apparatus, medium, and method. The automatic white balance control imaging apparatus may include a color space conversion unit converting the input image data into color space data having a chromatic component, a gray region extraction unit extracting a gray region for the input image data based on gray regions for light sources, the gray regions being detected based on plural light sources and a predetermined color checker, a detection unit extracting initial light source information using a color gamut average value and a color gamut center value, and adjusting the initial light source information in order for a chromatic component introduced into the extracted gray region to be excluded, a gain control unit calculating gains to scale the input image data based on the adjusted initial light source information, and controlling a white balance by applying the calculated gains to the input image data.

--------------------------------------------------------------------------------
Inventors: Kim; Sung-su; (Yongin-si, KR) ; Lee; Ho-young; (Suwon-si, KR) ; Park; Du-Sik; (Suwon-si, KR) ; Kim; Chang-yeong; (Yongin-si, KR)
Correspondence Name and Address: STAAS & HALSEY LLP
SUITE 700
1201 NEW YORK AVENUE, N.W.
WASHINGTON
DC
20005
US


Assignee Name and Adress: SAMSUNG ELECTRONICS CO., LTD.
Suwon-si
KR


Serial No.: 356223
Series Code: 11
Filed: February 17, 2006

U.S. Current Class: 358/1.9; 358/516
U.S. Class at Publication: 358/001.9; 358/516
Intern'l Class: H04N 1/60 20060101 H04N001/60

 

--------------------------------------------------------------------------------

Foreign Application Data

--------------------------------------------------------------------------------
Date Code Application Number
Feb 18, 2005 KR 2005-0013718

--------------------------------------------------------------------------------

Claims

--------------------------------------------------------------------------------

1. An apparatus with automatic white balance control, comprising: a color space conversion unit to convert input image data captured by an image sensor into color space data having a chromatic component; a gray region extraction unit to extract a gray region for the input image data based on gray regions for light sources related to the input image data, the gray regions being identified based on plural light sources and a predetermined color checker; a detection unit to extract initial light source information by using a color gamut average value and a color gamut center value of the input image data, and adjust the initial light source information to exclude a chromatic component introduced into the extracted gray region by using a determined existence of a luminance difference between a gray component and the chromatic component; and a gain control unit to calculate gains to be applied to scale the input image data based on the adjusted initial light source information, and control a white balance of the input image data by applying the calculated gains to the input image data.

2. The apparatus of claim 1, further comprising a signal-processing unit for signal-processing and displaying the white-balanced input image.

3. The apparatus of claim 1, further comprising a charge coupled device (CCD), with the CCD being the image sensor and providing the input image data.

4. The apparatus of claim 1, wherein the color space is either a color space having a luminance (Y) axis, an R/R+G+B axis, and a B/R+G+B axis or a color space having a luminance (Y) axis, an R/G axis, and a B/G axis.

5. The apparatus of claim 1, wherein the gray region extraction unit detects a white point for each light source based on an average value of gray patch data obtained by using the plural light sources, detects a certain range about a respective white point for each light source as a respective gray region of each light source, and extracts a region including all the gray regions for the plural light sources as the gray region of the input image.

6. The apparatus of claim 1, wherein the detection unit comprises: a light source information extraction unit to calculate a weighted average value on which the color gamut average value is reflected, based on the color gamut average value and color gamut center value of the input image, and extract the initial light source information based on the weighted average value; and an adjustment unit to divide the gray region into a first region of low luminance and a second region of high luminance by using the determined existence of the luminance difference between the gray component and the chromatic component, and adjust the initial light source information based on an average value of the first region and an average value of the second region.

7. The apparatus of claim 6, wherein the light source information extraction unit vertically maps the weighted average value onto a center axis connecting white points of the plural light sources, corrects the weighted average value mapped onto the center axis based on movement enabling errors to be minimized when mapping a weighted average value of each light source onto a white point for each light source, and extracts the corrected weighted average value as the initial light source information.

8. The apparatus of claim 6, wherein weighted average values are calculated according to: r.sub.weighted=(.alpha..times.r.sub.ave+.beta..times.r.sub.gm)/(.alpha.+.- beta.) b.sub.weighted=(.alpha..times.b.sub.ave+.beta..times.b.sub.gm)/(.al- pha.+.beta.), where, r.sub.weighted denotes an R/R+G+B value of the weighted average value, b.sub.weighted denotes a B/R+G+B value of the weighted average value, .alpha. and .beta. denote constants, respectively, r.sub.ave denotes an R/R+G+B value of the color gamut average value, and b.sub.ave denotes a B/R+G+B value of the color gamut average value.

9. The apparatus of claim 6, wherein the adjustment unit divides the gray region into the first region and the second region based on a threshold luminance value determined by using an average value of maximum and minimum values in the gray region and an average value of the gray region, and adjusts the initial light source information by using the average value of the first region and the average value of the second region.

10. The apparatus of claim 9, wherein the threshold luminance value is calculated according to: Y.sub.threshold=(.alpha..times.Y.sub.region+.beta..times.Y.sub.ave)/(.alp- ha.+.beta.), where, Y.sub.threshold denotes the threshold luminance value, Y.sub.region denotes an average value of the average values of the first and second regions, Y.sub.ave denotes the average value of the gray region, and .alpha. and .beta. are an arbitrary constants.

11. The apparatus of claim 9, wherein the adjustment unit selectively detects, as the adjusted light source information, either the average value of the first region or the average value of the second region located according to a shortest distance to the initial light source information.

12. The apparatus of claim 11, wherein the adjusted light source information is calculated according to: r.sub.wht=r.sub.down, b.sub.wht=b.sub.down if Dist.sub.up>Dist.sub.down r.sub.wht=r.sub.up, b.sub.wht=b.sub.up if Dist.sub.up<Dist.sub.down, where, r.sub.wht and b.sub.wht denote R/R+G+B and B/R+G+B values of the adjusted light source information, respectively, r.sub.down and b.sub.down denote R/R+G+B and B/R+G+B values of the average value of the first region, and r.sub.up and b.sub.up denote R/R+G+B and B/R+G+B values of an color gamut average value of the second region, respectively, and Dist.sub.up and Dist.sub.down denote a distance from the initial light source information to the average value of the second region and a distance from the initial light source information to the average value of the first region, respectively.

13. The apparatus of claim 1, wherein the gains are calculated according to: R gain = f scaling .times. g wht r wht .times. .times. B gain = f scaling .times. g wht b wht , Equation .times. .times. 6 where, R.sub.gain and B.sub.gain denote gains to be applied to a red color R and a blue color B, respectively, f.sub.scaling denotes a scaling factor for scaling the input image, and r.sub.wht and b.sub.wht denote R/R+G+B and B/R+G+B values of the adjusted light source information, respectively.

14. The apparatus as claimed in claim 13, wherein the gain control unit controls the white balance for the input image by multiplying the red color R of the input image by a reciprocal number of the scaling factor and the calculated gain of the red color R and multiplying the blue color B of the input image by the reciprocal number of the scaling factor and the calculated gain of the blue color B.

15. An automatic white balance control method, comprising: converting input image data captured by an image sensor into color space data having a chromatic component; extracting a gray region for the input image data based on gray regions of light sources, the gray regions being identified based on plural light sources related to the input image data and a predetermined color checker; extracting initial light source information by using a color gamut average value and a color gamut center value of the input image data, and extracting final light source information by adjusting the initial light source information to exclude a chromatic component introduced into the extracted gray region by using a determined existence of a luminance difference between a gray component and the chromatic component; and calculating gains to be applied to scale the input image data based on the adjusted final light source information, and controlling a white balance of the input image data by applying the calculated gains to the input image data.

16. The method of claim 15, further comprising signal-processing and displaying the white-balanced input image.

17. The method of claim 15, further comprising providing the input image data from a charge coupled device (CCD) as the image sensor.

18. The method of claim 15, wherein the color space is either a color space having a luminance (Y) axis, an R/R+G+B axis, and a B/R+G+B axis or a color space having a luminance (Y) axis, an R/G axis, and a B/G axis.

19. The method of claim 15, wherein the extracting of the gray region comprises: detecting a white point for each light source based on an average value of gray patch data obtained by using plural light sources; and extracting, as the gray region of the input image, a region including all respective gray regions for the plural light sources by detecting a certain respective range about a white point of each respective light source as a respective gray region of each light source.

20. The method of claim 15, wherein the extracting of the final light source information comprises: calculating a weighted average value on which the color gamut average value is reflected, based on the color gamut average value and color gamut center value of the input image data, and extracting the initial light source information based on the weighted average value; and dividing the gray region into a first region of low luminance and a second region of high luminance by using the determined existence of the luminance difference between the gray component and the chromatic component, and adjusting the initial light source information based on average values of the first region and an average value of the second region.

21. The method of claim 20, wherein the extracting of the light source information further comprises vertically mapping the weighted average value onto a center axis connecting white points of the plural light sources, correcting the weighted average value mapped onto the center axis based on movement enabling errors to be minimized when mapping a weighted average value of each light source onto a white point for each light source, and extracting the corrected weighted average value as the initial light source information.

22. The method of claim 20, wherein the weighted average values are calculated according to: r.sub.weighted=(.alpha..times.r.sub.ave+.beta..times.r.sub.gm)/(.alpha.+.- beta.) b.sub.weighted=(.alpha..times.b.sub.ave+.beta..times.b.sub.gm)/(.al- pha.+.beta.), where, r.sub.weighted denotes an R/R+G+B value of the weighted average value, and b.sub.weighted denotes a B/R+G+B value of the weighted average value, .alpha. and .beta. denote constants, respectively, r.sub.ave denotes an R/R+G+B value of the color gamut average value, and b.sub.ave denotes a B/R+G+B value of the color gamut average value.

23. The method of claim 20, wherein the adjusting of the initial light source information comprises dividing the gray region into the first region and the second region based on a threshold luminance value decided by using an average value of maximum and minimum values in the gray region and an average value of the gray region, and adjusting the initial light source information by using the average value of the first region and the average value of the second region.

24. The method of claim 23, wherein the threshold luminance value is calculated according to: Y.sub.threshold=(.alpha..times.Y.sub.region+.beta..times.Y.sub.ave)/(.alp- ha.+.beta.), where, Y.sub.threshold denotes the threshold luminance value, Y.sub.region denotes an average value of the average values of the first and second regions, Y.sub.ave denotes the average value of the gray region, and .alpha. and .beta. denote arbitrary constants.

25. The method of claim 23, wherein the adjusting of the initial light source information comprises detecting as the adjusted light source information either the average value of the first region or the average value of the second region located in a shortest distance to the initial light source information.

26. The method of claim 25, wherein the adjusted light source information is calculated according to: r.sub.wht=r.sub.down, b.sub.wht=b.sub.down if Dist.sub.up>Dist.sub.down r.sub.wht=r.sub.up, b.sub.wht=b.sub.up if Dist.sub.up<Dist.sub.down where, r.sub.wht and b.sub.wht denote R/R+G+B and B/R+G+B values of the adjusted light source information, respectively, r.sub.down and b.sub.down denote R/R+G+B and B/R+G+B values of the average value of the first region, and r.sub.up and b.sub.up denote R/R+G+B and B/R+G+B values of an color gamut average value of the second region, respectively, and Dist.sub.up and Dist.sub.down denote a distance from the initial light source information to the average value of the second region and a distance from the initial light source information to the average value of the first region, respectively.

27. The method of claim 15, wherein the gains are calculated according to: R gain = f scaling .times. g wht r wht .times. .times. B gain = f scaling .times. g wht b wht , Equation .times. .times. 6 where, R.sub.gain and B.sub.gain denote gains to be applied to a red color R and a blue color B, respectively, f.sub.scaling denotes a scaling factor for scaling the input image, and r.sub.wht and b.sub.wht denote R/R+G+B and B/R+G+B values of the adjusted light source information, respectively.

28. The method of claim 15, wherein the controlling of the white balance comprises controlling the white balance for the input image by multiplying the red color R of the input image by a reciprocal number of the scaling factor and the calculated gain of the red color R and multiplying the blue color B of the input image by the reciprocal number of the scaling factor and the calculated gain of the blue color B.

29. At least one medium comprising computer readable code to implement the method of claim 15.
--------------------------------------------------------------------------------

Description

--------------------------------------------------------------------------------

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims benefit under 35 U.S.C. .sctn. 119 from Korean Patent Application No. 2005-13718, filed on Feb. 18, 2005, the entire contents of which is incorporated herein by reference.

BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention

[0003] Embodiments of the present invention relate to an apparatus, medium, and method with automatic white balance control capable of detecting accurate light sources by minimizing a chromatic component introduced into a gray region and automatically controlling a white balance based on detected light source information having the color component being extracted from a chromatic color space.

[0004] 2. Description of the Related Art

[0005] White balance control refers to a color control function of adjusting a color balance in a captured image or video by a shift of overall color tones through a detecting of the white color suffering the largest changes to an object color, due to light sources in an input image data, deciding a color temperature by RGB component ratios of the detected white color, and controlling red and blue colors R and B, according to the color temperature, and based on the detected white color.

[0006] Generally, even when an identical object is image-captured by an imaging apparatus such as a digital still camera, digital video camera, or the like, the captured image colors look different depending on circumstances surrounding various related image light sources, such as an incandescent room lamp, fluorescent lamp, sun light, or the like. Human eyes have color constancy enabling humans to sense a white color, as the white color, by adapting the eyes to each light source, but an imaging apparatus reproduces white color such that a blue color is included when the color temperatures of the light sources are high or a red color is included when the color temperatures are low, since RGB components are reflected by the light sources having different color temperatures.

[0007] Accordingly, white balance control is needed in order for a white color to be properly sensed as the white color, e.g., when the color temperature changes due to changes in light sources. For example, a white color containing a blue color may need to be controlled such that the gain of a red color R is increased and the gain of the blue color B is decreased, or a white color containing a red color may need to be controlled such that the gain of the blue color B is increased and the gain of the red color R is decreased.

[0008] Such an accurate control over the white balance requires an accurate detection of a reference white color. For this purpose, the white balance can be controlled based on a gray world assumption, stating that integrating whole color components of a captured image results in a zero, that is, a color close to an achromatic color. Specifically, white balance control under the gray world assumption can effectively detect a white color if an input image has a wide range of diverse colors. It is necessary in white balance control, under the gray world assumption, to accurately control white balance with acquisition of accurate information about light sources even when there exists a dominant color in an input image or a chromatic component is introduced into an extracted gray region.

SUMMARY OF THE INVENTION

[0009] Embodiments of the present invention, as at least discussed herein, have been developed in order to solve the above drawbacks and other problems associated with such conventional arrangements.

[0010] An embodiment of the present invention provides an apparatus, medium, and method of automatic white balance control capable of accurately controlling white balance by minimizing a chromatic component introduced to a gray region, extracted out of an chromatic color space, and using light source information detected by excluding a dominant color existing in an input image.

[0011] To achieve the above and/or other aspects and advantages, embodiments of the present invention include an apparatus with automatic white balance control, including a color space conversion unit to convert input image data captured by an image sensor into color space data having a chromatic component, a gray region extraction unit to extract a gray region for the input image data based on gray regions for light sources related to the input image data, the gray regions being identified based on plural light sources and a predetermined color checker, a detection unit to extract initial light source information by using a color gamut average value and a color gamut center value of the input image data, and adjust the initial light source information to exclude a chromatic component introduced into the extracted gray region by using a determined existence of a luminance difference between a gray component and the chromatic component, and a gain control unit to calculate gains to be applied to scale the input image data based on the adjusted initial light source information, and control a white balance of the input image data by applying the calculated gains to the input image data.

[0012] The apparatus may further include signal-processing unit for signal-processing and displaying the white-balanced input image, and/or a charge coupled device (CCD), with the CCD being the image sensor and providing the input image data.

[0013] The color space may either be a color space having a luminance (Y) axis, an R/R+G+B axis, and a B/R+G+B axis or a color space having a luminance (Y) axis, an R/G axis, and a B/G axis.

[0014] The gray region extraction unit may detect a white point for each light source based on an average value of gray patch data obtained by using the plural light sources, detects a certain range about a respective white point for each light source as a respective gray region of each light source, and extracts a region including all the gray regions for the plural light sources as the gray region of the input image.

[0015] The detection unit may include a light source information extraction unit to calculate a weighted average value on which the color gamut average value is reflected, based on the color gamut average value and color gamut center value of the input image, and extract the initial light source information based on the weighted average value, and an adjustment unit to divide the gray region into a first region of low luminance and a second region of high luminance by using the determined existence of the luminance difference between the gray component and the chromatic component, and adjust the initial light source information based on an average value of the first region and an average value of the second region.

[0016] The light source information extraction unit may vertically map the weighted average value onto a center axis connecting white points of the plural light sources, corrects the weighted average value mapped onto the center axis based on movement enabling errors to be minimized when mapping a weighted average value of each light source onto a white point for each light source, and extract the corrected weighted average value as the initial light source information.

[0017] Weighted average values may be calculated according to: r.sub.weighted=(.alpha..times.r.sub.ave+.beta..times.r.sub.gm)/(.alpha.+.- beta.) b.sub.weighted=(.beta..times.b.sub.ave+.beta..times.b.sub.gm)/(.alp- ha.+.beta.),

[0018] Here, r.sub.weighted denotes an R/R+G+B value of the weighted average value, b.sub.weighted denotes a B/R+G+B value of the weighted average value, .alpha. and .beta. denote constants, respectively, rave denotes an R/R+G+B value of the color gamut average value, and b.sub.ave denotes a B/R+G+B value of the color gamut average value.

[0019] The adjustment unit may divide the gray region into the first region and the second region based on a threshold luminance value determined by using an average value of maximum and minimum values in the gray region and an average value of the gray region, and adjust the initial light source information by using the average value of the first region and the average value of the second region.

[0020] The threshold luminance value may be calculated according to: Y.sub.threshold=(.beta..times.Y.sub.region+.beta..times.Y.sub.ave)/(.alph- a.+.beta.),

[0021] Here, Y.sub.threshold denotes the threshold luminance value, Y.sub.region denotes an average value of the average values of the first and second regions, Y.sub.ave denotes the average value of the gray region, and .alpha. and .beta. are an arbitrary constants.

[0022] The adjustment unit may selectively detect, as the adjusted light source information, either the average value of the first region or the average value of the second region located according to a shortest distance to the initial light source information.

[0023] The adjusted light source information may be calculated according to: r.sub.wht=r.sub.down, b.sub.wht=b.sub.down if Dist.sub.up>Dist.sub.down r.sub.wht=r.sub.up, b.sub.wht=b.sub.up if Dist.sub.up<Dist.sub.down,

[0024] Here, r.sub.wht and b.sub.wht denote R/R+G+B and B/R+G+B values of the adjusted light source information, respectively, r.sub.down and b.sub.down denote R/R+G+B and B/R+G+B values of the average value of the first region, and r.sub.up and b.sub.up denote R/R+G+B and B/R+G+B values of an color gamut average value of the second region, respectively, and Dist.sub.up and Dist.sub.down denote a distance from the initial light source information to the average value of the second region and a distance from the initial light source information to the average value of the first region, respectively.

[0025] The gains may be calculated according to: R gain = f scaling .times. g wht r wht .times. .times. B gain = f scaling .times. g wht b wht , Equation .times. .times. 6

[0026] Here, R.sub.gain and B.sub.gain denote gains to be applied to a red color R and a blue color B, respectively, f.sub.scaling denotes a scaling factor for scaling the input image, and r.sub.wht and b.sub.wht denote R/R+G+B and B/R+G+B values of the adjusted light source information, respectively.

[0027] The gain control unit may control the white balance for the input image by multiplying the red color R of the input image by a reciprocal number of the scaling factor and the calculated gain of the red color R and multiplying the blue color B of the input image by the reciprocal number of the scaling factor and the calculated gain of the blue color B.

[0028] To achieve the above and/or other aspects and advantages, embodiments of the present invention include an automatic white balance control method, including converting input image data captured by an image sensor into color space data having a chromatic component, extracting a gray region for the input image data based on gray regions of light sources, the gray regions being identified based on plural light sources related to the input image data and a predetermined color checker, extracting initial light source information by using a color gamut average value and a color gamut center value of the input image data, and extracting final light source information by adjusting the initial light source information to exclude a chromatic component introduced into the extracted gray region by using a determined existence of a luminance difference between a gray component and the chromatic component, and calculating gains to be applied to scale the input image data based on the adjusted final light source information, and controlling a white balance of the input image data by applying the calculated gains to the input image data.

[0029] The method may further include signal-processing and displaying the white-balanced input image, and/or providing the input image data from a charge coupled device (CCD) as the image sensor.

[0030] The color space may either a color space having a luminance (Y) axis, an R/R+G+B axis, and a B/R+G+B axis or a color space having a luminance (Y) axis, an R/G axis, and a B/G axis.

[0031] The extracting of the gray region may include detecting a white point for each light source based on an average value of gray patch data obtained by using plural light sources, and extracting, as the gray region of the input image, a region including all respective gray regions for the plural light sources by detecting a certain respective range about a white point of each respective light source as a respective gray region of each light source.

[0032] The extracting of the final light source information may include calculating a weighted average value on which the color gamut average value is reflected, based on the color gamut average value and color gamut center value of the input image data, and extracting the initial light source information based on the weighted average value, and dividing the gray region into a first region of low luminance and a second region of high luminance by using the determined existence of the luminance difference between the gray component and the chromatic component, and adjusting the initial light source information based on average values of the first region and an average value of the second region.

[0033] The extracting of the light source information may further include vertically mapping the weighted average value onto a center axis connecting white points of the plural light sources, correcting the weighted average value mapped onto the center axis based on movement enabling errors to be minimized when mapping a weighted average value of each light source onto a white point for each light source, and extracting the corrected weighted average value as the initial light source information.

[0034] The weighted average values may be calculated according to: r.sub.weighted=(.alpha..times.r.sub.ave+.beta..times.r.sub.gm)/(.alpha.+.- beta.) b.sub.weighed=(.alpha..times.b.sub.ave+.beta..times.b.sub.gm)/(.alp- ha.+.beta.),

[0035] Here, r.sub.weighted denotes an R/R+G+B value of the weighted average value, and b.sub.weighted denotes a B/R+G+B value of the weighted average value, .alpha. and .beta. denote constants, respectively, r.sub.ave denotes an R/R+G+B value of the color gamut average value, and b.sub.ave denotes a B/R+G+B value of the color gamut average value.

[0036] The adjusting of the initial light source information may include dividing the gray region into the first region and the second region based on a threshold luminance value decided by using an average value of maximum and minimum values in the gray region and an average value of the gray region, and adjusting the initial light source information by using the average value of the first region and the average value of the second region.

[0037] The threshold luminance value may be calculated according to: Y.sub.threshold=(.alpha..times.Y.sub.region+.beta..times.Y.sub.ave)/(.alp- ha.+.beta.),

[0038] Here, Y.sub.threshold denotes the threshold luminance value, Y.sub.region denotes an average value of the average values of the first and second regions, Y.sub.ave denotes the average value of the gray region, and .alpha. and .beta. denote arbitrary constants.

[0039] The adjusting of the initial light source information may include detecting as the adjusted light source information either the average value of the first region or the average value of the second region located in a shortest distance to the initial light source information.

[0040] The adjusted light source information may be calculated according to: r.sub.wht=r.sub.down, b.sub.wht=b.sub.down if Dist.sub.up>Dist.sub.down r.sub.wht=r.sub.up, b.sub.wht=b.sub.up if Dist.sub.up<Dist.sub.down,

[0041] Here, r.sub.wht and b.sub.wht denote R/R+G+B and B/R+G+B values of the adjusted light source information, respectively, r.sub.down and b.sub.down denote R/R+G+B and B/R+G+B values of the average value of the first region, and r.sub.up and b.sub.up denote R/R+G+B and B/R+G+B values of an color gamut average value of the second region, respectively, and Dist.sub.up and Dist.sub.down denote a distance from the initial light source information to the average value of the second region and a distance from the initial light source information to the average value of the first region, respectively.

[0042] The gains may be calculated according to: R gain = f scaling .times. g wht r wht .times. .times. B gain = f scaling .times. g wht b wht , Equation .times. .times. 6

[0043] Here, R.sub.gain and B.sub.gain denote gains to be applied to a red color R and a blue color B, respectively, f.sub.scaling denotes a scaling factor for scaling the input image, and r.sub.wht and b.sub.wht denote R/R+G+B and B/R+G+B values of the adjusted light source information, respectively.

[0044] The controlling of the white balance may include controlling the white balance for the input image by multiplying the red color R of the input image by a reciprocal number of the scaling factor and the calculated gain of the red color R and multiplying the blue color B of the input image by the reciprocal number of the scaling factor and the calculated gain of the blue color B.

[0045] To achieve the above and/or other aspects and advantages, embodiments of the present invention include an least one medium including computer readable code to implement a method embodiment of the present invention.

[0046] Additional aspects and/or advantages of the invention will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

[0047] These and/or other aspects and advantages of the invention will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:

[0048] FIG. 1 illustrates an apparatus with white balance control, such as an imaging device, according to an embodiment of the present invention;

[0049] FIGS. 2A and 2B illustrate operations of a color space conversion unit, such as that of FIG. 1, according to embodiments of the present invention;

[0050] FIGS. 3A to 3C illustrate operations of a gray region extraction unit, such as that of FIG. 1, according to embodiments of the present invention;

[0051] FIG. 4 illustrates a detection unit, such as that of FIG. 1, according to an embodiment of the present invention;

[0052] FIGS. 5A to 5C illustrate operations of a light source information extraction unit, such as that of FIG. 1, according to embodiments of the present invention;

[0053] FIGS. 6A and 6B illustrate operations of an adjustment unit, such as that of FIG. 1, according to embodiments of the present invention;

[0054] FIG. 7 illustrates a white balance control method for an imaging device, for example, according to an embodiment of the present invention; and

[0055] FIGS. 8A and 8B illustrate histograms for gray patches after white balance control according to an embodiment of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0056] Reference will now be made in detail to some embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. Embodiments are described below to explain the present invention by referring to the figures.

[0057] FIG. 1 illustrates an apparatus with white balance control, e.g., an imaging device, according to an embodiment of the present invention.

[0058] As illustrated in FIG. 1, white balance control in an imaging device may include a color space conversion unit 100, a gray region extraction unit 200, a detection unit 300, and a gain control unit 600, for example. Here, the detection unit 300 may further include a light source information extraction unit 400 and an adjustment unit 500, for example.

[0059] The color space conversion unit 100 may convert input image data into data for a chromatic color space. Since a gray color, out of actual color components, is a color that effectively reflects changes in the circumstances of relative light sources, the color space conversion unit 100 may convert the input image data into the chromatic color space facilitating detection of a gray region. That is, the color space conversion unit 100 may convert a CCD output RGB value into data for the chromatic color space for an easy gray region detection to control white balance of the CCD output RGB value, as an output value of an image sensor.

[0060] The chromatic color space can be a color space having a luminance axis, an R/(R+G+B) axis, and a B/(R+G+B) axis or a color space having a luminance axis, an R/G axis, and a B/G axis, for example. That is, since ratios between RGB components of a gray color vary when a color cast is created by light sources, input image data can be converted into the chromatic color space using the ratios between the RGB components of a CCD output RGB value as coordinate axes.

[0061] The gray region extraction unit 200 may extract a range of a gray region based on data of gray patches acquired by using plural light sources, for example. Here, the plural light sources can be denoted as reference numerals D65, D50, CWF, A, and so on, for example, noting that the accuracy of extraction of the gray region can be improved as the number of light sources is increased.

[0062] The gray region extraction unit 200 may acquire data for the gray patches of a Macbeth Color Checker, for example, for the plural light sources, and identify, as a white color for each light source, an average value of the acquired gray patch data. Further, the gray region extraction unit 200 may identify, as a gray region for each light source, a certain region about a white point of each light source, using distribution characteristics of each light source, and extract, as a gray region for an input image, a region containing all the identified gray regions for the light sources.

[0063] The light source information extraction unit 400 may extract initial light source information, e.g., using a color gamut center value and an average value of the input image. The light source information extraction unit 400 may calculate the color gamut center value and average value, if there exists a large difference between the center value and the average value, calculate a weighted average value by applying a weight value to the calculated average value, and use the calculated weighted average values in extracting the initial light source information. The light source information extraction unit 400 may vertically map, for example, the calculated weighted average value onto a light locus, being a center axis connecting the white points of the light sources identified by the gray region extraction unit 200, and extract finalized initial light source information from the vertically mapped light locus.

[0064] The adjustment unit 500 may adjust the initial light source information in order to exclude a chromatic component introduced into the gray region, e.g., extracted by the gray region extraction unit 200, and extract the final light source information. Here, for the extraction of the final light source information, the adjustment unit 500 may divide the gray region based on a threshold luminance value, using the existence of a difference between the gray component and the chromatic component, and identify a final white point based on average values of the divided gray regions. The adjustment unit 500 may extract, as adjusted light source information, an average value of regions, out of the divided gray regions, not containing the chromatic component.

[0065] Further, the adjustment unit 500 may divide the gray region into smaller regions in order to extract more accurate light source information. Furthermore, if an image having a single background color is input, the adjusting unit 500 can detect a highlighted region by further dividing again the gray regions of the divided gray regions, and extracts more accurate light source information by determining an average value of the highlighted region when adjusting the light source information.

[0066] The gain control unit 600 may calculate gains for adjusting input image data by using the final light source information, for example, as decided by the adjustment unit 500, and adjust the white balance by applying the calculated gains to the input image data.

[0067] FIGS. 2A and 2B illustrate operations of a color space conversion unit 100, such as that of FIG. 1, according to embodiments of the present invention. FIG. 2A illustrates a distribution of the image data when the R, G, and B color components are uniformly increased in the chromatic color space of an R/G and B/G plane having a fixed luminance. Further, FIG. 2B illustrates a distribution of the image data when the R, G, and B color components are uniformly increased in the chromatic color space of an R/(R+G+B) and B/(R+G+B) plane having a fixed luminance.

[0068] In FIG. 2A, generally, an imaging apparatus does not use all of the Charge Coupled Device (CCD) data, for example, but performs sampling over the CCD data at certain intervals and uses patching data based on an average value of the CCD data in a predetermined window about the sampled data. Since an average value of the gray region can be considered a white point, the gray region can be first extracted for extraction of the light source information, i.e. the white point, based on such patching data. Further, the chromatic color space of the R/G and B/G plane can, as shown in FIG. 2A, be used since the ratios between the RGB components of a gray color vary when a color cast is created due to the light source.

[0069] In FIG. 2B, since the image data is relatively uniformly distributed compared to the chromatic color space shown in FIG. 2A, as the RGB components of each color component are uniformly increased, the accuracy of the extraction of the gray region can be improved. Thus, hereinafter, information on the light sources may be extracted based on the chromatic color space on the R/(R+G+B) and B/(R+G+B) plane having a fixed luminance as shown in FIG. 2B, for example.

[0070] FIGS. 3A to 3C illustrate operations of a gray region extraction unit 200, such as that of FIG. 1, according to embodiments of the present invention. FIG. 3A illustrates a color gamut for four light sources, in general, and FIG. 3B illustrates gray regions for four light sources. Further, FIG. 3C is illustrates the introduction of the chromatic component into the detected gray region for an imaging apparatus. Here, in FIGS. 3A-3C, the reference numeral Gr is used to denote gray regions for the imaging apparatus.

[0071] In FIG. 3A, a color gamut of each light source can be detected based on image data of a color checker obtained by using each light source. Here, the four light sources have been denoted as D65, D50, CWF, and A, noting that other light sources may similarly be used for extraction of a color gamut of the input image.

[0072] In FIG. 3B, from the color gamut, e.g., as detected for the four light sources, the gray region for each light source may be detected based on gray patch data for a color checker. An average value of the gray patch data for the color checker, detected for each light source, can correspond to a white point. Thus, the white point for each light source can be detected, and then a gray patch variance range is formed about the white point for each light source. Further, a modeling gray region for the input image can be obtained through four straight lines, for example, including all the gray variance ranges for the four light sources.

[0073] In FIG. 3C, the chromatic component can be introduced, e.g., due to changes to the light sources, into the gray region for the input image data decided based on the color gamut information of the color checker and the four light sources, e.g., as shown in FIGS. 3A and 3B. That is, since a gray region is more widely extracted than the gray region variance range for the light sources, used for an actual input image, as the gray region is extracted for the input image data caused by the different light sources, as shown in FIG. 3B, a chromatic component such as cyan can be introduced into the gray region. As shown in FIG. 3C, the chromatic components such as yellow and cyan families have been relatively further introduced into the gray region compared to the chromatic components such as blue, red, magenta, and green families. Now, as will be discussed below, and according to embodiments of the present invention, there is a desire to control extracted light source information in order to exclude the chromatic components introduced into the gray region.

[0074] FIG. 4 illustrates a detecting unit 300, such as that of FIG. 1, according to an embodiment of the present invention.

[0075] In FIG. 4, the aforementioned detecting unit 300 may include a light source information extraction unit 400 and an adjustment unit 500, and the light source information extraction unit 400 may further include a color gamut center calculation unit 410, a color gamut average calculation unit 420, and weighted average extraction unit 430.

[0076] The gamut center calculation unit 410 may obtain a modeling light locus, being a center axis connecting white points for the light sources calculated in the gray region extraction unit 200, and calculate a color gamut center value based on two outermost points, for example, of a color gamut detected by intersection points of an extended line of a modeling center axis and the R/(R+G+B) and B/(R+G+B) axes, for example.

[0077] The gamut average calculation unit 420 may calculate the color gamut average value of the color gamut for the input image, and the weighted average extraction unit 430 may calculate a weighted average value based on the color gamut center value, e.g., as calculated in the color gamut center calculation unit 410, and the color gamut average value, e.g., as calculated in the color gamut average calculation unit 420. Here, the weighted average value can be an average value calculated by application of a weighting factor to the color gamut average value, for example, based on a difference between the calculated color gamut average value and color gamut center value.

[0078] The adjustment unit 500 may detect the gray region by applying a different light source to the initial light source information, e.g., as extracted in the light source information extraction unit 400, and identify final light source information by excluding the chromatic component introduced into the gray region.

[0079] FIGS. 5A to 5C further illustrate operations of a light source information extraction unit 400, such as that of FIG. 1, according to embodiments of the present invention. FIG. 5A illustrates operations of the color gamut center calculation 410, and FIG. 5B illustrates operations of the weighted average extraction unit 430. FIG. 5C illustrates operations for acquiring the initial light source information decided based on the weighted average value, e.g., as calculated in the weighted average extraction unit 430.

[0080] In FIG. 5A, the color gamut center may be calculated through the extraction of the two outermost points, for example, of the color gamut for the input image and calculation of an average value of the two outermost points.

[0081] In detail, a center axis in the chromatic color space may be identified, e.g., connecting the white points for the light sources calculated in the gray region extraction unit 200, and points X0 and Y0 may be identified, e.g., which may be intersection points of an extension line of the center axis and the R/(R+G+B) and B/(R+G+B) axes. Points located the shortest distance from the point X0 to the center axis and from the point Y0 to the center axis, respectively, can become the two outermost points of the color gamut for the input image. That is, a point X1 located the shortest distance from the point X0 to the center axis and a point Y1 located the shortest distance from the point Y0 to the center axis become the outermost points, respectively. Accordingly, here, the color gamut center value corresponds to a reference numeral gm, a center value of the points X1 and Y1.

[0082] In FIG. 5B, when the average value, e.g., as calculated by the color gamut average calculation unit 420, is different from the center value, e.g., as calculated by the color gamut center calculation unit 410, the gray world assumption, stating that an average color becomes a gray color since a dominant color exists in a color gamut, can be violated. Thus, since there is a possibility that the calculated color gamut average value may not accurately represent the white information, the weighted average value may be identified through determination of the color gamut center value when the white information is calculated. As an example, the weighted average value can be calculated according to the below Equation 1. r.sub.weighted=(.alpha..times.r.sub.ave+.beta..times.r.sub.gm)/(.alpha.+.- beta.) b.sub.weighted=(.alpha..times.b.sub.ave+.beta..times.b.sub.gm)/(.al- pha.+.beta.) Equation 1

[0083] Here, r.sub.weighted denotes the R/R+G+B value of the weighted average value, b.sub.weighted denotes the B/R+G+B value of the weighted average value, and .alpha. and .beta. denote constants. Further, r.sub.ave denotes the R/R+G+B value of the color gamut average value, and b.sub.ave denotes the B/R+G+B value of the color gamut average value.

[0084] As shown in Equation 1, e.g., in the weighted average extraction unit 430, the R/R+G+B value and B/R+G+B value of the weighted average value can reflect the color gamut center value on the color gamut average values, e.g., as calculated by the gamut average calculation unit 420. That is, if there exists a difference between the color gamut average value and the color gamut center value, the weighted average extraction unit 430, for example, can prevent the color gamut average value from being biased in any particular direction due to a dominant color of the color gamut by applying a weighting factor to the color gamut average value and the color gamut center value in order for the color gamut average value to move toward the color gamut center value, thereby enabling accurate initial light source information to be extracted.

[0085] For example, since the color gamut average value, as calculated by the gamut average calculation unit 420, has a value close to a yellow color rather than a gray color when a predominant color is the yellow color, in the color gamut as shown in FIG. 5B, the weighted average extraction unit 430 may extract a weighted average value obtained from moving the color gamut average value toward the color gamut center value by reflecting the color gamut center value on the calculated color gamut average value. Thus, the weighted average extraction unit 430 can prevent the initial light source information from being inaccurately extracted due to the existence of a dominant color rather than a conventionally preferred existence of different colors uniformly existing in the color gamut.

[0086] In FIG. 5C, the point `a` denotes the weighted average value of the color gamut, e.g., as extracted by the weighted average extraction unit 430, the point `b` denotes the point `a` obtained when the weighted average value of the color gamut is mapped onto the light locus, i.e., the center axis connecting the white points for the light sources, and the point `c` denotes a light source adjusted based on the mapped point b.

[0087] For extraction of the initial light source information, the weighted average value `a` is vertically mapped onto the light locus. That is, a mapping point is assigned to be at an intersection point of the light locus and a straight line perpendicular to the light locus containing the weighted average value `a`. Further, for minimization of errors when the weighted average value of each light source is mapped onto the white point for an original light source, the weighted average value mapped onto the light locus can be corrected and then the initial light source information extracted. See Equation 2 below. r.sub.initial=l.times.r.sub.weighted.sup.2+m.times.r.sub.weighted+n b.sub.initial=l'.times.r.sub.weighted.sup.2+m'.times.r.sub.weighted+n' Equation 2

[0088] Here, r.sub.initial and b.sub.initial denote the initial light source information, with r.sub.weighted denoting the R/R+G+B value of the weighted average value and b.sub.weighted denoting the B/R+G+B value of the weighted average value. Further, l, m, and n, and l', m', and n' denote arbitrary constants. Equation 2 can be applied to adjust the weighted average value mapped onto the light locus when a distance between whites points of the light sources, located in the vicinity of the weighted average value mapped onto the light locus, is less than a certain value, for example.

[0089] FIGS. 6A and 6B illustrate operations of an adjustment unit 500, such as that illustrated in FIG. 1, according to embodiments of the present invention.

[0090] For example, FIG. 6A illustrates an operation of the adjustment unit 500, adjusting the initial light source information according to luminance. Similarly, FIG. 6B illustrates an operation of the adjustment unit 500 extracting the final light source information by using average value of the regions divided based on luminance.

[0091] In FIG. 6A, the horizontal axis indicates the chromatic component, and the vertical axis indicates the luminance component. For extraction of the light source information, from which the chromatic component introduced into the gray region is removed, the gray region can be divided based on the luminance component, with the initial light source information being adjusted, and extracted in the light source information extraction unit 300, based on the color gamut average value of each divided region.

[0092] Further, as shown in FIG. 6A, in the adjusting of the initial light source information based on the luminance component, the color component may be located nearer a border of the color gamut as the chromatic values of the image data are increased. However, the color component comes nearer the Y axis as the gray values of the image data are increased. Accordingly, the gray region may be divided based on luminance into regions containing the chromatic component and regions not containing the chromatic component, since there is a difference between the gray component and the chromatic component, and the extracted initial light source information may be adjusted based on the gray regions into which the chromatic component is introduced.

[0093] For example, a second color may be located nearer to the color gamut border since the second color has a higher chromatic value compared to a first color. That is, the first color is located relatively near the luminance axis since the first color has a higher gray value compared to the second color. Here, there is a luminance difference between the first color and the second color, with the occurring luminance difference becoming l2-l1.

[0094] As illustrated in FIG. 6B, since there is a luminance difference between the gray component and the chromatic component, the gray region may be divided into the first region having low luminance values and the second region having high luminance values, based on a luminance value. Here, as illustrated, the horizontal axis indicates the R/R+G+B values and the vertical axis indicates luminance. FIG. 6B further illustrates that the gray region is divided based on luminance with respect to the R/R+G+B values, but the R/R+G+B and B/R+G+B values of the light source information, adjusted through the division of the gray region based on luminance, with respect to the B/B+G+B values, can be obtained.

[0095] Equation 3, as shown below, can be used to obtain a threshold luminance value for a reference to the division of the gray region into the first region and the second region. Y.sub.threshold=(.alpha..times.Y.sub.region+.beta..times.Y.sub.ave)/(.alp- ha.+.beta.) Equation 3

[0096] Here, Y.sub.threshold denotes the threshold luminance value as a reference to the division of the gray region, Y.sub.region denotes an average value of the average values of the divided gray regions, Y.sub.ave denotes the average value of the gray region, and .alpha. and .beta. denote arbitrary constants.

[0097] As shown in Equation 3, the luminance value as a reference to the division of the gray region can be obtained based on the average value Y.sub.region of a maximum luminance value and a minimum luminance value and the color gamut average value Y.sub.ave of the entire gray region.

[0098] Based on the calculated threshold luminance value Y.sub.threshold, the gray region can be divided into the first region having the low luminance value and the second region having the high luminance value. Further, the adjusted light source information can be obtained based on an average value of a white point WP_down, i.e., the color gamut average value of the first region, and a white point WP_up, i.e., the color gamut average value of the second region. Accordingly, the below Equation 4 can be used to obtain the light source information, as adjusted by the adjustment unit 500, for example. r.sub.wht=r.sub.down, b.sub.wht=b.sub.down if Dist.sub.up>Dist.sub.down r.sub.wht=r.sub.up, b.sub.wht=b.sub.up if Dist.sub.up<Dist.sub.down Equation 4

[0099] Here, r.sub.wht and b.sub.wht denote the R/R+G+B and B/R+G+B values of the white point value, i.e., the adjusted light source information, respectively. Further, r.sub.down and b.sub.down denote the R/R+G+B and B/R+G+B values of the average value of the first region, respectively, and r.sub.up and b.sub.up denote the R/R+G+B and B/R+G+B values of the average value of the second region, respectively. Further, Dist.sub.up and Dist.sub.down denote distances from a point detected based on the initial light source information, i.e. the point `c` in FIG. 5C, to the average value of the second region and to the average value of the first region, respectively. Accordingly, the below Equation 5 can be used to obtain a distance from an initial light source information value to the average value of the first region and a distance from the initial light source information value to the average value of the second region. Dist.sub.up= {square root over ((r.sub.initial-r.sub.up).sup.2+(b.sub.initial-b.sub.up).sup.2)}Dist.sub.- down= {square root over ((r.sub.initial-r.sub.down).sup.2+(b.sub.initial-b.sub.down).sup.2)} Equation 5

[0100] Here, Dist.sub.up and Dist.sub.down denote a distance from the initial light source information value to the average value of the second region and a distance from the initial light source information value to the average value of the first region, respectively, with r.sub.initial and b.sub.initial denoting the initial light source information values, e.g., as extracted by the light source information extraction unit 400. Further, r.sub.down and b.sub.down denote the R/R+G+B and B/R+G+B values of the average value of the first region, and r.sub.up and b.sub.up denote the R/R+G+B and B/R+G+B values of the average value of the second region, respectively.

[0101] As shown in the above Equation 3, the adjusted light source information becomes an average value, which is either the average value of the first region or the average value of the second region, having the shortest distance to the initial light source information value. The adjustment unit 500 may divide the gray region into the second region having high luminance values and the first region having low luminance values based on the calculated luminance threshold value, divide the gray region into a region into which chromatic components are introduced and a region into which the chromatic components are not introduced, and identify a white point for a region containing the initial light sources as the adjusted light source information. Accordingly, by identifying the white point for the gray region, into which chromatic components are not introduced, as the final light source information, the adjustment unit 500 can extract the light source information excluding chromatic components from initial light source information decided with the chromatic components introduced into the gray region.

[0102] On the other hand, since the second region, as a high luminance region, includes a highlighted region when the input image is an image having a single background color, the adjustment unit 500 may extract accurate light source information by adjusting the light source information on which a luminance value of the highlighted region is reflected. When the high luminance region corresponds to the divided gray region not containing a chromatic component, i.e., the divided gray region in which the initial light source information and the white point for the divided region have minimum values, the adjustment unit 500 can determine that the divided gray region contains the highlighted region.

[0103] Accordingly, the adjustment unit 500 may again divide the second region, which is a high luminance region in the gray regions, divided based on the threshold luminance value, into a region containing a highlighted region and a region not containing a highlighted region. The region containing a highlighted region can be a region corresponding to the top 20% of luminance of the second region, for example.

[0104] Here, the adjustment unit 500 may first decide whether or not a highlighted region is generated by the input image, and reflect a decision result on light source information for a white point for the highlighted region to be adjusted. The adjustment unit 500 can determine whether the highlighted region has been generated by the input image by checking whether or not an average luminance value of the highlighted region is smaller than a luminance value obtained from multiplying an average luminance value of the entire gray region by 3.5, for example.

[0105] If the average luminance value of the highlighted region is smaller than a luminance value obtained from multiplying the average luminance value of the entire gray region by 3.5, again noting this is only an example, the adjustment unit 500 may assign the average value of the highlighted region as the adjusted light source information. However, in this example, if the average luminance value of the highlighted region is larger than a luminance value obtained from multiplying the average luminance value of the entire gray region by 3.5, the adjustment unit 500 may assign the average value of the second region as the adjusted light source information.

[0106] FIG. 7 illustrates a white balance control method for an imaging apparatuses according to an embodiment of the present invention.

[0107] In FIG. 7, the input image data may be converted into data for a color space having a chromatic component (S901). In order to extract light source information and control white balance, the image data may be converted into a color space in which the image data can be separated into a chromatic component and an achromatic component, and properties changing RGB component ratios of gray colors can be used when a color cast occurs from light sources.

[0108] Such a color space can be an R/G and B/G plane having a fixed luminance or an R/R+G+B and B/R+G+B plane having a fixed luminance, for example. Hereinafter, description will be made on operations of converting the input image data onto an R/R+G+B and B/R+G+B plane having a fixed luminance and controlling white balance based on the extracted light source information.

[0109] Further, the image data may be obtained from sampling data captured by an image sensor, e.g., at certain intervals, with the sampled data being used in patching data based on an average value of data within a predetermined window.

[0110] Next, a gray region for an image apparatus may be extracted in the converted color space based on plural light sources and a color checker (S903), for example. In general, the plural light sources can be light sources D65, D50, CWF, and A, as examples, for an imaging apparatus, and the color checker can be the Macbeth color checker, noting that alternative embodiments are equally available.

[0111] In this example, the light sources may be used for extraction of gray regions for the light sources based on image data acquired from the Macbeth Color Checker, and a gray region for an imaging apparatus is extracted which contains all the extracted gray regions. In detail, the gray regions for light sources may be extracted based on an average value of gray patch data of the Macbeth color checker, and four straight lines may be formed to include all the extracted gray regions for the light sources, so that the gray region for an imaging apparatus can be extracted. Here, the accuracy of the gray region extraction for an imaging apparatus can be improved, with the number of the light sources increased, based on a non-linear method using a look-up table and the like rather than the four straight lines formed to include the gray regions for the light sources, noting again that alternative embodiments are also equally available.

[0112] Initial light source information may be extracted based on a color gamut center value and a color gamut average value of the input image (S905). In order to prevent violation of the gray world assumption, stating that an average value of an input image becomes a gray color when there exists a dominant color in an input image, calculations can be performed in order for the color gamut center value of the input image to be reflected. Since a large difference occurs between the color gamut average value of the input image and a color gamut center value of the input image when a dominant color exists in the input image, the weighted average value may be calculated through application of a weight value to the calculated color gamut average value and color gamut center value.

[0113] The calculated weighted average value may be vertically mapped, for example, onto a center axis connecting white points of the light sources in the gray region extracted in operation S903. That is, the weighted average value may be mapped onto a point at which a straight line and the center axis cross, the straight line containing the weighted average value among straight lines perpendicular to the center axis. Further, the initial light source information may be extracted through adjustment of the weighted average value mapped onto a light locus in order for errors to be minimized when the weighted average value of each light source is mapped onto a white point of an original light source.

[0114] The extracted initial light source information may be controlled based on the gray region to which a chromatic component is introduced (S907). Since the gray region for the input image is extracted based on a gray region for plural light sources, a region to which a chromatic component is introduced is used as a gray region for extraction of the light source information, rather than a gray region for light sources actually used. Accordingly, according to embodiments of the present invention, there is a desire to adjust the initial light source information extracted based on the gray region to which the chromatic component is introduced.

[0115] For adjustment of the initial light source information, it is beneficial to acknowledge that there exists a luminance difference between a gray component and a chromatic component. As described above with reference to FIG. 6A, upon luminance comparison of a gray component to a chromatic component on a plane having a chromaticity axis and a luminance axis, the gray component has a lower luminance value than the chromatic component in a region in which chromaticity is proportional to luminance, and the gray component has a higher luminance value than the chromatic component in the region in which the chromaticity is inversely proportional to the luminance.

[0116] Accordingly, since a luminance difference exists between the gray component and the chromatic component, the gray region may be divided based on a threshold luminance value, and, out of average values of the divided regions, an average value located near the initial light source information may be identified as the adjusted light source information. The gray region may be divided into a gray region containing a chromatic component and a gray region not containing a chromatic component based on the threshold luminance value, an average value of a divided region close to the initial light source information may be identified as the light source information, and an average value of the gray region not containing a chromatic component can be extracted as the adjusted light source information. Accordingly, the light source information can be extracted where a chromatic component has been introduced into the gray region has been excluded from.

[0117] Meanwhile, when an input image having a single background color is input, a gray region may not be divided into two regions based on one threshold luminance value, but a high luminance region may be divided again so that the initial light source information can be adjusted in order for an average value of luminance corresponding to a highlighted region to be reflected.

[0118] Gains to be applied to the input image may be calculated based on the adjusted light source information (S909). Data scaling may be performed over RGB data for each input image in order to exclude color temperature changes caused by light sources based on the extracted light source information. The gains used for the scaling of the RGB data for the input image can be obtained according to the below Equation 6, for example. R gain = f scaling .times. g wht r wht B gain = f scaling .times. g wht b wht

[0119] Here, R.sub.gain and B.sub.gain denote gain values to be applied to R and B, f.sub.scaling denotes a scaling factor, and r.sub.wht and b.sub.wht denote R/R+G+B and B/R+G+B values of a white point being the adjusted light source information. Further, g.sub.wht denotes a G value of light source information.

[0120] The calculated gains may be applied for image data control (S911). The white balance can be controlled by multiplication of R and B by R.sub.gain and B.sub.gain, e.g., calculated in Equation 6, respectively. That is, the white balance for each input image can be controlled by R'=R.times.R.sub.gain/f.sub.scaling, G'=G, B'=B.times.B.sub.gain/f.sub.scaling.

[0121] FIGS. 8A and 8B illustrate histograms for gray patches, according to an embodiment of the present invention. FIG. 8A illustrates histograms for gray patches to which a conventional white balance control method is applied, and FIG. 8B shows histograms for gray patches to which a white balance control method according to the present invention is applied.

[0122] In FIGS. 8A and 8B, in result images for the Macbeth color checker, to which a conventional white balance control method may be applied, RGB components are unevenly distributed in FIG. 8A histograms since the white balance is not accurately adjusted over histogram distribution of gray patches. However, FIG. 8B illustrates that RGB components maintain balance therebetween in images to which a white balance control method according to the present invention is applied.

[0123] As explained above, embodiments of the present invention can improve the accuracy of white balance by detecting light source information having a minimized effect of a chromatic component introduced into a gray region and by adjusting the white balance.

[0124] Further, embodiments of the present invention can prevent light source information from being inaccurately detected due to an existence of a dominant color in a color gamut by calculating a color gamut average value based on a color gamut center value when detecting a gray region used for the detection of the light source information.

[0125] In addition to the above described embodiments, embodiments of the present invention can also be implemented through computer readable code/instructions in/on at least one medium, e.g., a computer readable medium. The medium can correspond to any medium/media permitting the storing and/or transmission of the computer readable code.

[0126] The computer readable code can be recorded/transferred on a medium in a variety of ways, with examples of the medium including magnetic storage media (e.g., ROM, floppy disks, hard disks, etc.), optical recording media (e.g., CD-ROMs, or DVDS), and storage/transmission media such as carrier waves, as well as through the Internet, for example. The media may also be a distributed network, so that the computer readable code is stored/transferred and executed in a distributed fashion.

[0127] Although a few embodiments of the present invention have been shown and described, it would be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the claims and their equivalents.

Related Patent
Patent NO. Balance Patent Title
20070001622 Balance transformer
20070001621 Multiple lamp balance transformer and drive circuit
20060293604 Evaluating a patient condition using autonomic balance information in implatable cardiac devices
20060290957 Apparatus, medium, and method with automatic white balance control
20060287173 Balance and motion exercise training and conditioning device
20060286415 Regulation of the water balance in fuel cell systems
20060285134 System and method for spatial gray balance calibration using hybrid sensing systems
20060277993 Asymmetric torsion balance gravimeter
20060274160 Automatic white balance correction method for image capturing apparatus
20060273652 Balance weight
 
 
Adjustable Bed
Air Curtain
Air Purifier
Auto Lift
Badge Holder
Balance
Blinds
Blister Packaging
Cable Lock
Cable Ties
Carpet
Caster Wheel
CCtv Camera
Cell Phone
Computer Desk
Computer Rack
Conference System
Conference Table
Copier
Counterfeit Detector
Credit Card
Dental Care
Desiccant
Digital Video Recorder
Domain Names
Dome Camera
Double Sided Tape
Electric Hoist
Electric Wheel Chair
Ethernet Switch
Exit Sign
Fire Extinguisher
First Aid Kit
Flow Meter
Forklift Truck
Garden Light
Garden Umbrella
Geogrid
Glue Gun
Hair Treatment
Hand Dryer
Health Care
Hearing Aid
Heat Shrink Tube
Infrared Camera
Infrared Thermometer
Ink
Ink Refill
Inkjet Cartridge
Insurance
Investment Casting
Juice
Juice Extractor
Kitchen Faucet
Laminate Flooring
Lanyard
Laptop
Laser Engraving Machine
Latex Gloves
LED Display
Linear Bearing
Massage Chair
Massage Table
Mattress
Mattress Pad
Mechanical Balance
Memory Foam Pillow
Microscope Camera
Mini Flashlight
Modem Card
Nitrogen Generator
Office Chair
Office Furniture
Pallet
Paper Shredder
Patch Cord
PCB
Personal Care
Photo Paper
Portable Vacuum Cleaner
Power Cord
Powered Wheelchair
Printed Circuit Board
Printed Tape
Printer Ribbon
Printing Machine
Projector
Radiant Heat
Radiant Heating
Rechargeable Flashlight
Rewinding Machine
Roll Label
Safety Vest
Security Door
Self-adhesive Label
Shopping Cart
Skin Care Product
Skin Cream
Spiral Staircase
Stereo Microscope
Storage Box
Storage Racks
Temperature Controller
Terminal Blocks
Thermocouple
Toner Cartridge
Towel Dispenser
Treadmill
Venetian Blind
VoIP Phone
Walkie Talkie
Water Filter
Wheel Chair
Wheelchair
Wire Shelving
Wood Flooring
Wristbands
Quick Index
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z