×

White balance method

  • US 7,495,696 B2
  • Filed: 04/11/2005
  • Issued: 02/24/2009
  • Est. Priority Date: 01/27/2005
  • Status: Expired due to Fees
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.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×