White balance method
First Claim
Patent Images
1. A white balance method for an image formed by a digital still camera, comprising steps of:
- (a) removing a color cast over a white object of said image,wherein the step (a) includes sub-steps of;
storing an original image data Iorg (Rorg, Gorg, Borg) of said image;
performing a histogram equalization for said original image data Iorg; and
converting said original image data Iorg from an RGB color space to a YCrCb color space so as to obtain a histogram-equalized image data IHist (YHist, CrHist, CbHist);
(b) detecting a reference white point from said image by extracting a pixel information of said white object,wherein the step (b) includes sub-steps of;
determining all candidate white pixels from said histogram-equalized image data IHist with an equation (1);
YHist≧
210, and
−
3≦
CrHist, CbHist≦
+3
(1);
obtaining a relatively brightest pixel (YHistbright, CrHistbright, CbHistbright) from said candidate white pixels, wherein said relatively brightest pixel has a relatively maximum YHist value and has CrHist and CbHist values being relatively closest to zero;
calculating an average pixel (YHistavg, CrHistavg, CbHistavg) of said candidate white pixels;
determining all reference white pixels from said RGB color space if corresponding pixels thereof from said histogram-equalized image data IHist satisfy equation (2);
Y1≦
YHist≦
Yu
Cr1≦
Cr Hist≦
Cru
Cb1≦
Cb Hist≦
Cbu
(2),wherein Yl and Yu are a relatively maximum value and a relatively minimum value of said YHistbright and said YHistavg respectively, Crl and Ccu are a relatively maximum value and a relatively minimum value of said CrHistbright and said CrHistavg respectively, and Cbl and Cbu are a relatively maximum value and a relatively minimum value of said CbHistbright and said CbHistavg respectively; and
calculating an average W(Rw,Gw,Bw) of said reference white pixels as said pixel information; and
(c) adjusting a white balance of said white object by determining a scale factor based on said color cast and said pixel information.
1 Assignment
0 Petitions
Accused Products
Abstract
A white balance method for an image formed by a digital still camera is provided. The white balance method comprises steps of: removing a color cast over a white object of the image; detecting a reference white point from the image by extracting an a pixel information of the white object; and adjusting a white balance of the white object by determining a scale factor based on the color cast and the pixel information.
-
Citations
5 Claims
-
1. A white balance method for an image formed by a digital still camera, comprising steps of:
-
(a) removing a color cast over a white object of said image, wherein the step (a) includes sub-steps of; storing an original image data Iorg (Rorg, Gorg, Borg) of said image; performing a histogram equalization for said original image data Iorg; and converting said original image data Iorg from an RGB color space to a YCrCb color space so as to obtain a histogram-equalized image data IHist (YHist, CrHist, CbHist); (b) detecting a reference white point from said image by extracting a pixel information of said white object, wherein the step (b) includes sub-steps of; determining all candidate white pixels from said histogram-equalized image data IHist with an equation (1);
YHist≧
210, and
−
3≦
CrHist, CbHist≦
+3
(1);obtaining a relatively brightest pixel (YHistbright, CrHistbright, CbHistbright) from said candidate white pixels, wherein said relatively brightest pixel has a relatively maximum YHist value and has CrHist and CbHist values being relatively closest to zero; calculating an average pixel (YHistavg, CrHistavg, CbHistavg) of said candidate white pixels; determining all reference white pixels from said RGB color space if corresponding pixels thereof from said histogram-equalized image data IHist satisfy equation (2);
Y1≦
YHist≦
Yu
Cr1≦
Cr Hist≦
Cru
Cb1≦
Cb Hist≦
Cbu
(2),wherein Yl and Yu are a relatively maximum value and a relatively minimum value of said YHistbright and said YHistavg respectively, Crl and Ccu are a relatively maximum value and a relatively minimum value of said CrHistbright and said CrHistavg respectively, and Cbl and Cbu are a relatively maximum value and a relatively minimum value of said CbHistbright and said CbHistavg respectively; and calculating an average W(Rw,Gw,Bw) of said reference white pixels as said pixel information; and (c) adjusting a white balance of said white object by determining a scale factor based on said color cast and said pixel information. - View Dependent Claims (2, 3, 4, 5)
-
Specification