JP3903095B2 - White balance control method and digital camera - Google Patents

White balance control method and digital camera Download PDF

Info

Publication number
JP3903095B2
JP3903095B2 JP2002020741A JP2002020741A JP3903095B2 JP 3903095 B2 JP3903095 B2 JP 3903095B2 JP 2002020741 A JP2002020741 A JP 2002020741A JP 2002020741 A JP2002020741 A JP 2002020741A JP 3903095 B2 JP3903095 B2 JP 3903095B2
Authority
JP
Japan
Prior art keywords
light source
value
color
white balance
control value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002020741A
Other languages
Japanese (ja)
Other versions
JP2003224865A (en
Inventor
学 兵藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2002020741A priority Critical patent/JP3903095B2/en
Publication of JP2003224865A publication Critical patent/JP2003224865A/en
Application granted granted Critical
Publication of JP3903095B2 publication Critical patent/JP3903095B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Description

【0001】
【発明の属する技術分野】
本発明はホワイトバランス制御方法及びデジタルカメラに係り、特に、ストロボ光を発光して撮像する場合に、光源に応じて適正なホワイトバランス制御を行うためのホワイトバランス制御方法及びデジタルカメラに関する。
【0002】
【従来の技術】
ストロボ装置を備えたデジタルカメラでは、光源の色温度に関わらず、白い被写体が白く色再現されるようにホワイトバランスを調整することが行われているが、従来では、ストロボ光以外の外光がどのような光源であるかに関わらずストロボ光の色温度に合わせたホワイトバランス調整を行っていたため、ストロボ光が十分に到達しない場合などにはホワイトバランスが適正とならない場合があった。
【0003】
この問題を解決するため、特開平9−322191号公報には、ストロボが発光しない状態で予備露光することにより外光の色温度情報を取得してホワイトバランス制御値を決定し、これと予め定めたストロボ光のホワイトバランス制御値との比例配分からストロボ発光時のホワイトバランス制御値を決定し、本露光の際に、この制御値に従ってストロボ発光時のホワイトバランスを制御する装置が記載されている。
【0004】
また、特開平7−301842号公報には、ホワイトバランス調整用の専用のセンサを設け、この専用センサの出力結果を用いてストロボ光が発光しない場合のホワイトバランス制御値を求める技術が記載されている。
【0005】
【発明が解決しようとする課題】
しかしながら、特開平9−322191号公報に記載された技術では、予備露光でストロボが発光しない場合の色温度情報を検出するため、撮像素子であるCCDから信号が読み出されるときに光の影響で発生するスミアの影響により、正しく色温度を検出できない場合がある、という問題があった。
【0006】
これを解決するためには、例えば本露光の時だけでなく予備露光の時もスミアの影響をなくすためのメカニカルシャッタを作動させる必要があるため、撮像シーケンスが複雑になる、という問題がある。
【0007】
また、緑色をした木の葉のように、無彩色を含まない有彩色の被写体を撮影した場合には、光源の色を正確に検出することができず、撮影した画像から得られた色情報から光源の色を検出し、該検出した光源の色に応じたホワイトバランス制御を行うと、被写体の補色に色回りしてしまうカラーフェリアが起こり、この場合は緑色の木の葉が枯れたような色になってしまう、といった問題もある。
【0008】
また、特開平7−301842号公報に記載された技術では、専用のセンサが必要となるため、コストが高くなると共に、小型化を図るのが困難になる、という問題があった。
【0009】
本発明は、上記事実を考慮してなされたものであり、ストロボ発光下の撮影でも適正にホワイトバランス制御を行うことができるホワイトバランス制御方法及びデジタルカメラを提供することを目的とする。
【0010】
【課題を解決するための手段】
上記目的を達成するために、請求項1記載の発明は、ストロボ光を発光可能なデジタルカメラにおけるホワイトバランス制御方法において、被写体までの距離を検出するステップと、被写体を撮像したときの撮像画像の輝度レベルを検出するステップと、前記ストロボ光が発光された状態での前記撮像画像の画像データに、前記ストロボ光を基準光源として該基準光源の色が予め定めた所定色となるようにホワイトバランス制御を行うための基準制御値を乗算することにより、ストロボ光を光源とした場合のホワイトバランス制御が施された画像データに補正するステップと、前記撮像画像を複数のエリアに分割し、各エリアに属する前記基準制御値が乗算された画像データから各々色情報を取得するステップと、取得したエリアごとの色情報に基づいて、各エリアの色分布を検出するステップと、検出した前記輝度レベル及び前記色分布に基づいて環境光源を定めるステップと、前記環境光源と前記基準光源との混合光源の色が前記所定色となるようにホワイトバランス制御を行うための制御値を算出するステップと、前記制御値が、前記制御値と前記基準制御値との間の値で、かつ前記混合光源に適した値となるように、前記距離に応じた調整用の係数によって前記制御値を調整するステップと、を含むことを特徴とする。
【0011】
この発明によれば、被写体までの距離を検出し、被写体を撮像したときの撮像画像の輝度レベルを検出する。輝度レベルは、例えば撮像画像のR,G,Bの各色データから求めることができるが、専用のセンサで検出してもよい。
【0012】
ストロボ光が発光された状態での撮像画像の画像データに、ストロボ光を基準光源として該基準光源の色が予め定めた所定色、例えば白色となるようにホワイトバランス制御を行うための基準制御値を乗算する。すなわち、撮像画像の画像データを、ストロボ光を光源とした場合のホワイトバランス制御が施された画像データに補正する。
【0013】
そして、撮像画像を複数のエリアに分割し、各エリアに属する基準制御値が乗算された画像データから各々色情報を取得する。色情報は、例えばエリア内のR、G、B信号の比R/G、B/Gとすることができる。
【0014】
この取得したエリアごとの色情報に基づいて、各エリアの色分布を検出する。色分布は、例えば各エリアを予め定めた複数の環境光源に対応した色分布の範囲を示す検出枠に当てはめ、各々の検出枠に当てはまるエリアの個数を求めることにより得ることができる。検出枠は、例えばR/Gの範囲とB/Gの範囲とによって定められた枠とすることができる。
【0015】
次に、検出した輝度レベル及び色分布に基づいて環境光源を定める。色分布は、ストロボ光が発光された状態、すなわち、ストロボ光とストロボ光以外の環境光源とが混合された混合光源により撮像された撮像画像の画像データに基準制御値が乗算された画像データから取得された色情報から求められているため、環境光源のみを定めることができる。環境光源とは、ストロボ光以外の光源をいい、例えばデーライト光や蛍光灯、電球等の光源をいう。環境光源は、例えば予め定めた複数の環境光源の各々に対応して設けられた所定式によって算出された環境光源らしさの度合いを表す評価値に基づいて定めることができる。所定式は、例えば輝度レベルや、色分布、すなわち各検出枠に当てはまるエリアの個数等から環境光源らしさの度合いを表す評価値を算出する式によって定めることができる。
【0016】
このように、色分布だけでなく輝度レベルを考慮して環境光源を定めるため、環境光源を正確に定めることができる。また、色分布は、ストロボ光が発光された状態での撮像画像の画像データ、すなわち本撮影での撮像画像の画像データから求めているため、撮像シーケンスを複雑にすることなく環境光源を正確に定めることができる。
【0017】
そして、環境光源と基準光源との混合光源の色が所定色となるようにホワイトバランス制御を行うための制御値を算出する。この制御値は、例えば、予め定めた複数の環境光源の各々に対応して設けられた所定式によって算出された環境光源らしさの度合いを表す評価値が、予め定めた所定閾値以上であるか否かを判別するステップと、前記所定閾値以上の評価値に各々対応した対応制御値を算出するステップと、前記所定閾値以上の評価値を重みとした前記対応制御値の加重平均値を前記制御値として算出するステップと、によって算出することができる。
【0018】
すなわち、環境光源らしさの度合いを表す評価値が所定閾値以上のものが環境光源である確率が高いと判断し、所定閾値以上であると判断された環境光源の各々に対応する対応制御値を求め、これらの加重平均値を制御値とする。これにより、バランスよく制御値を定めることができる。
【0019】
そして、最終的な制御値は、この制御値と基準制御値との間の値で、かつ混合光源に適した値となるように、検出された被写体までの距離に応じた調整用の係数によって調整される。この制御値は、例えば請求項2にも記載したように、前記距離が小さくなるに従って前記基準制御値に近づくように調整される。すなわち、被写体までの距離が近い場合には、ストロボ光が支配的であるため、ストロボ光を光源とした場合に適したホワイトバランス制御が行われるように制御値が調整される。これにより、被写体の距離に応じて最適にホワイトバランス調整することができる。
【0020】
上記のホワイトバランス制御方法は、請求項3に記載したように、ストロボ光を発光可能なデジタルカメラにおいて、被写体までの距離を検出する距離検出手段と、被写体を撮像したときの撮像画像の輝度レベルを検出する輝度レベル検出手段と、前記ストロボ光が発光された状態での前記撮像画像の画像データに、前記ストロボ光を基準光源として該基準光源の色が予め定めた所定色となるようにホワイトバランス制御を行うための基準制御値を乗算することにより、ストロボ光を光源とした場合のホワイトバランス制御が施された画像データに補正する乗算手段と、前記撮像画像を複数のエリアに分割し、各エリアに属する前記基準制御値が乗算された画像データから各々色情報を取得する取得手段と、取得したエリアごとの色情報に基づいて、各エリアの色分布を検出する色分布検出手段と、検出した前記輝度レベル及び前記色分布に基づいて環境光源を定める設定手段と、前記環境光源と前記基準光源との混合光源の色が前記所定色となるようにホワイトバランス制御を行うための制御値を算出する算出手段と、前記制御値が、前記制御値と前記基準制御値との間の値で、かつ前記混合光源に適した値となるように、前記距離に応じた調整用の係数によって前記制御値を調整する調整手段と、を含むことを特徴とするデジタルカメラにより実現できる。
【0021】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態の一例について詳細に説明する。
【0022】
図1は本発明に係るデジタルカメラの背面図であり、図2はカメラ上面に設けられたモードダイヤルの平面図である。
【0023】
図2に示すようにモードダイヤル1は、ダイヤル上のアイコン1A〜1FがマークMに合うように回転させることにより、複数段階の露出で撮影する連写/ブラケティングモード、絞りやシャッタースピードを各々設定可能なマニュアル撮影モード、様々な被写体の撮影に適したオート撮影モード、人物を撮影する場合に適した人物モード、風景を撮影する場合に適した風景モード、及び夜景を撮影する場合に適した夜景モード等の撮影モードに設定できるようになっている。なお、図2上では、風景モードが設定されている。
【0024】
また、これらの撮影モードの他に、絞り及びシャッタスピードの組み合わせを選択できるP(プログラム)モード、絞りを選択でき、シャッタースピードが自動的に選択されるA(絞り優先)モード、シャッタースピードを選択でき、絞りが自動的に選択されるS(シャッタースピード優先)モード等の撮影モードを設定することができる。さらに、各撮影モードについて、自動的にストロボ発光するオートモード、人物を撮影した場合に赤目になるのを軽減するための赤目軽減モード、ストロボ光を強制発光させるストロボ強制発光モード、ストロボ光を発光すると共にシャッタースピードを長めにして人物と夜景とをバランスよく撮影するためのスローシンクロモード等のストロボモードを設定することができる。
【0025】
また、モードダイヤル1の中央には、半押し時にONするスイッチS1と、全押し時にONするスイッチS2とを有するシャッタボタン2が設けられている。
【0026】
このデジタルカメラの背面には、図1に示すようにファインダ接眼部3、シフトキー4、表示キー5、撮影モード/再生モード切替えレバー6、キャンセルキー7、実行キー8、マルチファンクションの十字キー9、及び液晶モニタ52が設けられている。
【0027】
図3は、図1に示したデジタルカメラの内部構成を示すブロック図である。
【0028】
同図において、撮影レンズ10及び絞り12を介して固体撮像素子(CCD)14の受光面に結像された被写体像は、各センサで光の入射光量に応じた量の信号電荷に変換される。このようにして蓄積された信号電荷は、CCD駆動回路16から加えられるリードゲートパルスによってシフトレジスタに読み出され、レジスタ転送パルスによって信号電荷に応じた電圧信号として順次読み出される。尚、このCCD14は、蓄積した信号電荷をシャッタゲートパルスによって掃き出すことができ、これにより電荷の蓄積時間(シャッタスピード)を制御する、いわゆる電子シャッタ機能を有している。
【0029】
CCD14から順次読み出された電圧信号は、相関二重サンプリング回路(CDS回路)18に加えられ、ここで各画素ごとのR、G、B信号がサンプリングホールドされ、A/D変換器20に加えられる。A/D変換器20は、CDS回路18から順次加えられるR、G、B信号を例えば10ビット(0〜1023)のデジタルのR、G、B信号に変換して出力する。尚、CCD駆動回路16、CDS回路18及びA/D変換器20は、タイミング発生回路(TG)22から加えられるタイミング信号によって同期して駆動されるようになっている。
【0030】
A/D変換器20から出力されたR、G、B信号は、一旦メモリ24に格納され、その後、メモリ24に格納されたR、G、B信号は、デジタル信号処理回路26に加えられる。デジタル信号処理回路26は、同時化回路28、ホワイトバランス調整回路30、ガンマ補正回路32、YC信号作成回路34、及びメモリ36から構成されている。
【0031】
同時化回路28は、メモリ24から読み出された点順次のR、G、B信号を同時式に変換し、R、G、B信号を同時にホワイトバランス調整回路30に出力する。ホワイトバランス調整回路30は、R、G、B信号のデジタル値をそれぞれ増減するための乗算器30R、30G、30Bから構成されており、R、G、B信号は、それぞれ乗算器30R、30G、30Bに加えられる。
【0032】
乗算器30R、30G、30Bの他の入力には、中央処理装置(CPU)38からホワイトバランス制御するためのホワイトバランス補正値(ゲイン値)Rg、Gg、Bgが加えられており、乗算器30R、30G、30Bはそれぞれ2入力を乗算し、この乗算によってホワイトバランス調整されたR’、G’、B’信号をガンマ補正回路32に出力する。尚、CPU38からホワイトバランス調整回路30に加えられるホワイトバランス補正値Rg、Gg、Bgの詳細については後述する。
【0033】
ガンマ補正回路32は、ホワイトバランス調整されたR’、G’、B’信号が所望のガンマ特性となるように入出力特性を変更し、また、10ビットの信号が8ビットの信号となるように変更し、YC信号作成回路34に出力する。YC信号作成回路34は、ガンマ補正されたR、G、B信号から輝度信号Yとクロマ信号Cr、Cbとを作成する。これらの輝度信号Yとクロマ信号Cr、Cb(YC信号)は、メモリ24と同じメモリ空間のメモリ36に格納される。
【0034】
ここで、メモリ36内のYC信号を読み出し、液晶モニタ52に出力することにより動画又は静止画を液晶モニタ52に表示させることができる。また、撮影後のYC信号は、圧縮/伸長回路54によって所定のフォーマットに圧縮されたのち、記録部56にてメモリカードなどの記録媒体に記録される。更に、再生モード時にはメモリカードなどに記録されている画像データが圧縮/伸長回路54によって伸長処理された後、液晶モニタ52に出力され、液晶モニタ52に再生画像が表示されるようになっている。
【0035】
CPU38は、図1に示したモードダイヤル1、シャッタボタン2等を含むカメラ操作部40からの入力に基づいて各回路を統括制御するとともに、オートフォーカス、自動露光制御、オートホワイトバランス等の制御を行う。このオートフォーカス制御は、例えばG信号の高周波成分が最大になるように撮影レンズ10を移動させるコントラストAFであり、シャッタボタン2の半押し時にG信号の高周波成分が最大になるように駆動部42を介して撮影レンズ10を合焦位置に移動させる。
【0036】
また、CPU38には、EV値や被写体までの距離データなどの各種データを記憶するためのメモリ39、ストロボ光を発光するためのストロボ46、被写体までの距離を検出するための距離センサ(距離検出手段)47が接続されており、これらを制御する。なお、被写体までの距離は、シャッタボタン2の半押し時に距離センサ47により検出され、メモリ39に格納される。
【0037】
また、自動露光制御では、図4に示すように予め決めた露出▲1▼〜▲4▼にて最大4回R、G、B信号を取り込み、これらのR、G、B信号を積算した積算値に基づいて被写体輝度(撮影EV値)を求める。これは、シャッタボタン2の半押し時に実行される。なお、撮影EV値を求める処理は、本発明の輝度レベル検出手段に相当する。
【0038】
次に、上記撮影EV値の測定の詳細について説明する。
【0039】
図5に示すように、1画面を複数のエリア(8×8)に分割し、各分割エリアごとにR、G、B信号から求めた輝度信号を積算し、その積算値に基づいて各分割エリアのEV値(EVi)を求める。続いて、図5に示すように撮影モードに対応して各分割エリアのEV値に重み付けを行い、画面全体のEV’値を次式によって算出する。
【0040】
【数1】

Figure 0003903095
【0041】
但し、iは、分割エリアの各々を示す添え字であり、上記の場合、0〜63の値を取り得る。Nは、分割エリア数を示し、上記の場合は8×8=64である。ΔEVisoは、所定の感度(例えばISO200)を基準としてEV値補正量であり、感度が変更されても、EV’が一定となるように調整するための値である。Wiは、各分割エリアごとの重み係数であり、例えば図5に示すように中央重点測光方式の重み係数を用いる。
【0042】
上記のように算出したEV’に対し、更に、次式に示すように撮影モードに応じた露出補正ΔEVを行って撮影EV値を求める。求めた撮影EV値は、メモリ39に記憶される。
【0043】
EV=EV’−ΔEV …(2)
なお、ΔEVは、例えば、人物モードの場合にはΔEV=0、風景モード、夜景モードの場合にはΔEV=0.3とする。
【0044】
上記のようにして求めた撮影EV値に基づいて撮影時の絞り値とシャッタスピードを最終的に決定する。
【0045】
そして、シャッタボタンの全押し時に前記決定した絞り値になるように絞り駆動部44を介して絞り12を駆動し、また、決定したシャッタスピードとなるように電子シャッタによって電荷の蓄積時間を制御する。
【0046】
次に、図6に示すフローチャートを参照しながらオートホワイトバランス制御方法について説明する。
【0047】
図6に示したホワイトバランス制御は、予め定めた撮影モード及びストロボモードの場合で、かつストロボ発光すると判断した場合に実行される。
【0048】
以下の表に、図6に示したホワイトバランス制御が実行される撮影モード及びストロボモードの組み合わせを示す。例えばオート撮影モードで、EV値が所定閾値以下の場合等に、以下のホワイトバランス制御が実行され、その他の場合には、通常のホワイトバランス制御が行われる。
【0049】
【表1】
Figure 0003903095
【0050】
まず、EV値や撮影モード及びストロボモードからストロボ発光するか否かが判断され、ストロボ発光される場合は、撮影モード及びストロボモードが上記の表の○で示される組み合わせであるか否かが判断される。そして、ストロボ発光すると判断し、かつ撮影モード及びストロボモードが上記の表の○で示される組み合わせでないと判断された場合には、周知の方法により通常のストロボ発光時のホワイトバランス制御を行うためのホワイトバランス補正値Rg、Gg、Bgが設定され、ホワイトバランス調整回路30に加えられる。また、ストロボ発光しないと判断された場合には、周知の方法によりストロボ光を発光しない場合に適したホワイトバランス制御を行うためのホワイトバランス補正値Rg、Gg、Bgが設定され、ホワイトバランス調整回路30に加えられる。
【0051】
そして、ストロボ発光すると判断し、かつ撮影モード及びストロボモードが上記の表の○で示される組み合わせであると判断された場合には、CPU38は、シャッタボタンの半押し時に求めた被写体までの距離データを取得する(ステップS10)。
【0052】
次に、シャッタボタンの半押し時に求めた撮影EV値をメモリ39から読み込む(ステップS11)。
【0053】
次に、シャッタボタンの全押し時にストロボ発光されて撮像された画像のR、G、B信号は一旦メモリ24に格納されているが、この1画面を複数のエリア(例えば8×8)に分割し、各分割エリアごとにR、G、B信号の色別の積算値を積算回路48によって求める(ステップS12)。
【0054】
R,G,B信号の積算値Rt,Gt,Btは、積算回路48とCPU38との間に設けられた乗算器(乗算手段)50R、50G、50Bに出力され、乗算器50R、50G、50Bによって予め定められた基準WB(ホワイトバランス)ゲイン値(基準制御値)Rst,Gst、Bstが掛けられる(ステップS14)。なお、基準WBゲイン値Rst,Gst、Bstは、予めメモリ39に記憶されている。
【0055】
基準WBゲイン値Rst,Gst,Bstが掛けられたR,G,B信号の積算値Rt’,Gt’,Bt’は、CPU38に入力される。
【0056】
この基準WBゲイン値Rst,Gst,Bstは、ストロボ光が被写体に十分に到達した場合のように、光源としてストロボ光が支配的な場合にホワイトバランスが適正となるように調整するためのゲイン値である。
【0057】
そして、CPU38は、入力されたR信号の積算値Rt’とG信号の積算値Gt’との比Rt’/Gt’、及びB信号の積算値とG信号の積算値との比Bt’/Gt’を求める(ステップS16)。なお、この処理は、本発明の取得手段に相当する。
【0058】
上記のようにして各分割エリアごとに求められるRt’/Gt’、Bt’/Gt’は、その分割エリアが、図7に示すグラフ上に表された検出枠のうちの、どの検出枠内に入るかを判別するために使用される。なお、図7における各検出枠は、ストロボ光以外の環境光源などの色分布の範囲を規定するものである。
【0059】
図7に示すように、検出枠には、青空検出枠、日陰−曇り検出枠、昼光色(の蛍光灯)検出枠、緑検出枠、昼白色(の蛍光灯)検出枠、ストロボ検出枠、タングステン電球検出枠があり、日陰−曇り検出枠は、日陰−曇り検出枠CLD1〜CLD4を含み、昼光色検出枠は、昼光色検出枠EXD1〜EXD4を含み、昼白色検出枠は、昼白色検出枠EXN1〜EXN4を含み、タングステン電球検出枠は、タングステン電球検出枠TNG1−1〜TNG1−4,TNG2−1〜TNG2−4、TNG3を含んでいる。
【0060】
そして、CPU38は、Rt’/Gt’=X’、Bt’/Gt’=Y’として、各分割エリアごとに求められたRt’/Gt’、Bt’/Gt’で表される(Xi’、Yi’)が、これらの検出枠のうちの、どの検出枠内に入るかを判別し、その個数をカウントする(ステップS18)。なお、この処理は、本発明の色分布検出手段に相当する。
【0061】
次に、各検出枠内に存在する(Xi’、Yi’)の平均値(Xaj’Yaj’)を求める(ステップS20)。ここで、jは、各検出枠の各々を示す添え字である。なお、平均値でなく、重心値でもよい。
【0062】
次に、各検出枠に対応して設けられたメンバシップ関数により、色に関する光源らしさ(日陰−曇りらしさ等)を表す評価値Fc()を算出する(ステップS22)。メンバシップ関数は、検出枠内の個数を変数として色に関する光源らしさを表す評価値Fc()を出力する関数である。すなわち、評価値が高ければ、その検出枠に対応する光源(環境光源)の可能性が高くなる。
【0063】
Fc(CLD1)〜Fc(CLD4)は、図8に示すように、日陰−曇り検出枠内に入る分割エリアの個数を変数とした日陰−曇りらしさを表すメンバシップ関数の値である。
【0064】
Fc(SKY)は、図9に示すように、青空検出枠内に入る分割エリアの個数を変数とした青空らしさを表すメンバシップ関数の値である。同様に、Fc(GRN)は、図9に示すように、緑検出枠内に入る分割エリアの個数を変数とした緑らしさを表すメンバシップ関数の値である。
【0065】
Fc(EXD1)〜Fc(EXD4)は、図10に示すように、昼光色検出枠内に入る分割エリアの個数を変数とした昼光色の蛍光灯らしさを表すメンバシップ関数である。Fc(EXN1)〜Fc(EXN4)、Fc(TNG1−1)〜Fc(TNG3)は、図10に示したFc(EXD1)〜Fc(EXD4)と同様であり、Fc(EXN1)〜Fc(EXN4)は、昼白色検出枠内に入る分割エリアの個数を変数とした昼白色の蛍光灯らしさを表すメンバシップ関数の値であり、Fc(TNG1−1)〜Fc(TNG3)は、タングステン電球検出枠内に入る分割エリアの個数を変数とした昼白色の蛍光灯らしさを表すメンバシップ関数の値である。
【0066】
Fc(TYP)は、ストロボ検出枠内に入る分割エリアの個数を変数としたストロボらしさ、すなわちストロボ光が支配的であるか否かを表すメンバシップ関数の値であり、このメンバシップ関数は、図10に示す蛍光灯らしさを表すメンバシップ関数と同様である。
【0067】
次に、各検出枠に対応して設けられたメンバシップ関数により、輝度に関する光源らしさ(屋内らしさ、屋外らしさ)を表す評価値Fy()を算出する(ステップS24)。メンバシップ関数は、ステップS11で取得したEV値を変数として輝度に関する光源らしさを表す評価値を出力する関数である。
【0068】
Fy(屋外らしさDAY)は、図11に示すように、EV値を変数としたデーライトの屋外らしさを表すメンバシップ関数の値である。
【0069】
Fy(屋外らしさCLD)は、図12に示すように、EV値を変数とした日陰又は曇りの屋外らしさを表すメンバシップ関数の値である。
【0070】
Fy(屋内らしさEXD)、Fy(屋内らしさEXN)、Fy(屋内らしさTNG)は、図13に示すように、それぞれEV値を変数とした昼光色の蛍光灯の屋内らしさ又は昼白色の蛍光灯の屋内らしさ又はタングステン電球の屋内らしさを表すメンバシップ関数の値である。
【0071】
次に、色に関する光源らしさを表す評価値及び輝度に関する評価値を表す評価値から各検出枠について総合的な光源らしさの評価値Hjを求める(ステップS26)。
【0072】
評価値H1〜H22は、以下の式によって求められる。
【0073】
1(日陰−曇りらしさの評価値)=Fc(CLD1)×Fy(屋外らしさ)×Fc(SKY) …(3)
2(日陰−曇りらしさの評価値)=Fc(CLD2)×Fy(屋外らしさ)×Fc(SKY) …(4)
3(日陰−曇りらしさの評価値)=Fc(CLD3)×Fy(屋外らしさ)…(5)
4(日陰−曇りらしさの評価値)=Fc(CLD4)×Fy(屋外らしさ)…(6)
5(昼光色の蛍光灯らしさの評価値)=Fc(EXD1)×Fy(屋内らしさEXD) …(7)
6(昼光色の蛍光灯らしさの評価値)=Fc(EXD2)×Fy(屋内らしさEXD) …(8)
7(昼光色の蛍光灯らしさの評価値)=Fc(EXD3)×Fy(屋内らしさEXD) …(9)
8(昼光色の蛍光灯らしさの評価値)=Fc(EXD4)×Fy(屋内らしさEXD) …(10)
9(昼白色の蛍光灯らしさの評価値)=Fc(EXN1)×Fy(屋内らしさEXN) …(11)
10(昼白色の蛍光灯らしさの評価値)=Fc(EXN2)×Fy(屋内らしさEXN) …(12)
11(昼白色の蛍光灯らしさの評価値)=Fc(EXN3)×Fy(屋内らしさEXN)×Fc(GRN) …(13)
12(昼光色の蛍光灯らしさの評価値)=Fc(EXN4)×Fy(屋内らしさEXN)×Fc(GRN) …(14)
13(タングステン電球らしさの評価値)=Fc(TNG1−1)×Fy(屋内らしさTNG) …(15)
14(タングステン電球らしさの評価値)=Fc(TNG1−2)×Fy(屋内らしさTNG) …(16)
15(タングステン電球らしさの評価値)=Fc(TNG1−3)×Fy(屋内らしさTNG) …(17)
16(タングステン電球らしさの評価値)=Fc(TNG1−4)×Fy(屋内らしさTNG) …(18)
17(タングステン電球らしさの評価値)=Fc(TNG2−1)×Fy(屋内らしさTNG) …(19)
18(タングステン電球らしさの評価値)=Fc(TNG2−2)×Fy(屋内らしさTNG) …(20)
19(タングステン電球らしさの評価値)=Fc(TNG2−3)×Fy(屋内らしさTNG) …(21)
20(タングステン電球らしさの評価値)=Fc(TNG2−4)×Fy(屋内らしさTNG) …(22)
21(タングステン電球らしさの評価値)=Fc(TNG3)×Fy(屋内らしさTNG) …(23)
22(ストロボ光らしさの評価値)=Fc(TYP)×Fy(屋外らしさDAY) …(24)
ここで、0≦Fc()、Fy()≦1であるため、0≦Hj≦1である。なお、Fc(SKY)、Fc(GRN)は、図9に示すように、青空検出枠又は緑検出枠内に入る分割エリアの個数が多い程、日陰−曇りらしさ又は昼白色検出枠の評価値を下げる方向に作用する値をとる。
【0074】
また、Fy(屋内らしさ)は、図13に示すように、EV値が高い程、それらの検出枠の評価値を下げる方向に作用する値をとる。このように、光源らしさの評価値Hjは、色分布だけでなく輝度も考慮して決定されるため、適正に光源を特定することが可能となる。例えば、蛍光灯が点灯した室内と室外とで同じ色の被写体を撮影した場合に、色分布のみで光源を特定した場合には、光源の特定を誤ってしまい、カラーフェリアが発生してしまう場合がある。
【0075】
しかしながら、本実施の形態では、輝度が低い場合、すなわち室内で撮影されたような場合には、Fy(室内らしさ)が高くなり、輝度が高い場合、すなわち室外で撮影されたような場合には、Fy(室内らしさ)が低くなるため、光源を正確に特定することができ、カラーフェリアが発生するのを防ぐことができる。
【0076】
そして、上記のように各検出枠に対応した光源らしさの評価値が算出されると、これらの評価値のうち予め定めた所定閾値以上の(例えば0.4以上)か否かを判別する(ステップS28)。そして、評価値が所定閾値以上のものが存在する場合には、評価値が所定閾値以上のものを環境光源の候補として選択する。なお、この処理は、本発明の設定手段に相当する。
【0077】
次に、選択された環境光源の各々について、以下の式に従ってストロボ光と環境光源とが混合された混合光源の色が白色となるようにホワイトバランス制御を行うための制御値(ゲイン値)GR、GB、GGを算出する(ステップS30)。なお、この処理は、本発明の算出手段に相当する。
【0078】
R={Σ(grj×Hj)/ΣHj}×{Σ(Gj×Hj)/ΣHj
…(25)
B={Σ(gbj×Hj)/ΣHj}×{Σ(Gj×Hj)/ΣHj
…(26)
G=Σ(Gj×Hj)/ΣHj …(27)
ここで、上記(25)〜(27)式は、評価値が所定閾値以上のものについて算出され、例えば所定閾値以上の評価値がH11〜H14である場合には、H11〜H14の光源についてgrj,gbjが算出され、算出されたgrj,gbj、H11〜H14を用いて各Σ内の計算が行われる。また、grj,gbjは、各検出枠における光源の色を所定色とするために必要なゲインであり、次式で示される。なお、Gjは、この場合Gstであり、固定値である。
【0079】
grj=Xst/Xaj’×Txj …(28)
gbj=Yst/Yaj’×Tyj …(29)
ここで、Xst=Rst/Gst、Yst=Bst/Gstである。また、Txj、Tyjは、基準WBゲイン値が掛けられていない元の画像データのR,G,Bの積算値について求めたXi、Yiの平均値をXaj(=Xaj’/Xst)、Yaj(=Yaj’/Yst)とした場合における、Xaj、Yajの目標値であり、所定色に対応する。すなわち、grj,gbjは、元の画像データのR,G,Bの積算値についてXaj、Yajを求めた場合に、このXaj、Yajで示される光源(ストロボ光と環境光源との混合光源)の色を所定色とするために必要なゲインである。なお、Txj、Tyjは、例えば1である。
【0080】
従って、上記(25)、(26)式の第1項は、評価値Hjを重みとしたgrj,gbjはの加重平均値をそれぞれ表している。また、第2項は、明るさを補正するための項であるが、Gjが固定値であるため、この場合は明るさは補正されない。
【0081】
なお、ストロボ検出枠の評価値H22が所定閾値以上であるとして選択されている場合には、gr22=Xst、gb22=Ystとする。
【0082】
このようにして、ストロボ光とストロボ光以外の環境光源とが混合された混合光源の色を所定色にするための制御値GR、GB、GGが算出されると、これらの制御値が、基準WBゲイン値との間の値で、かつ混合光源に適した値となるように、距離センサ47により検出した被写体までの距離に応じて調整される(ステップS32)。なお、この処理は、本発明の調整手段に相当する。調整後の制御値は、ホワイトバランス補正値Rg、Gg、Bgとして表され、次式により得られる。
【0083】
Rg=(GR−Rst)×Ld+Rst …(30)
Gg=(GG−Gst)×Ld+Gst …(31)
Bg=(GB−Bst)×Ld+Bst …(32)
ここで、Ldは、被写体までの距離に応じた補正係数であり、例えば図14に示すように、距離が0から予め定めた閾値th1までの区間と、距離が予め定めた閾値th2以上の区間は一定の値となり、閾値th1〜閾値th2の区間では、距離が大きくなるに従って大きくなる値をとる。従って、ホワイトバランス補正値Rg、Gg、Bgは、距離が小さくなるに従って基準WBゲイン値Rst,Gst,Bstに近づき、距離が大きくなるに従って制御値GR、GB、GGに近づく。すなわち、被写体までの距離が近い場合には、ストロボ光を光源とした場合に適したホワイトバランス制御が行われるように制御値が調整され、距離が遠い場合には、混合光源に適したホワイトバランス制御が行われるように制御値が調整される。これにより、被写体までの距離に応じて最適にホワイトバランス制御を行うことができる。
【0084】
このように算出されたホワイトバランス補正値Rg、Gg、Bgは、ホワイトバランス調整回路30へ出力され、元の画像データのR、G、Bの各信号がホワイトバランス調整される(ステップS34)。補正後の信号をR’、G’、B’とすると、R’、G’、B’は、次式で表される。
【0085】
R’=Rg×R …(33)
G’=Gg×G …(34)
B’=Bg×B …(35)
一方、所定閾値以上の評価値Hjが1つもない場合には、ホワイトバランス補正値Rg、Gg、BgをそれぞれRst、Gst、Bstに設定して(ステップS36)、ホワイトバランス調整を行う(ステップS34)。
【0086】
このように、本実施形態では、環境光源の色だけでなくEV値をも考慮して環境光源を定めるため、環境光源を正確に定めることができる。また、環境光源の色は、ストロボ光が発光された状態での撮像画像の画像データ、すなわち本撮影での撮像画像の画像データから求めているため、撮像シーケンスを複雑にすることなく環境光源を正確に定めることができる。
【0087】
そして、ホワイトバランス補正値Rg、Gg、Bgは、基準WBゲイン値から混合光源の色を所定色にするための制御値GR、GB、GGとの間の値で、かつ被写体までの距離に適したホワイトバランス制御を行うことができる値となるため、被写体までの距離に応じて適正にホワイトバランス制御することができ、カラーフェリアの発生を抑えることができる。
【0088】
また、ホワイトバランス補正値Rg、Gg、Bgは、専用センサによらずに求めているため、コストを抑えることができると共に、装置を小型化することができる。
【0089】
【発明の効果】
以上説明したように本発明によれば、ホワイトバランス制御のための制御値が、この制御値と基準制御値との間の値で、かつ混合光源に適した値となるように、被写体までの距離に応じて調整されるため、ストロボ発光下の撮影でも適正にホワイトバランス制御を行うことができると共に、カラーフェリアの発生を抑えることができる、という効果を有する。
【図面の簡単な説明】
【図1】 本発明に係るデジタルカメラの背面図である。
【図2】 デジタルカメラの上面に設けられたモードダイヤルの平面図である。
【図3】 デジタルカメラの内部構成を示すブロック図である。
【図4】 EV値の求め方について説明するための図である。
【図5】 測光方式について説明するための図である。
【図6】 ホワイトバランス制御方法のフローチャートである。
【図7】 光源の色分布の範囲としての検出枠を示すグラフである。
【図8】 日陰−曇りらしさを表すメンバシップ関数を示すグラフである。
【図9】 青空のメンバシップ関数を示すグラフである。
【図10】 蛍光灯らしさ等を表すメンバシップ関数を示すグラフである。
【図11】 デーライトの屋外らしさを表すメンバシップ関数を示すグラフである。
【図12】 屋外らしさを表すメンバシップ関数を示すグラフである。
【図13】 屋内らしさを表すメンバシップ関数を示すグラフである。
【図14】 被写体までの距離と補正係数との関係を示す線図である。
【符号の説明】
10 撮影レンズ
16 駆動回路
18 CDS回路
20 A/D変換器
24 メモリ
26 デジタル信号処理回路
28 同時化回路
30 ホワイトバランス調整回路
30R、30G、30B 乗算器
32 ガンマ補正回路
34 YC信号作成回路
36 メモリ
39 メモリ
40 カメラ操作部
42 駆動部
44 絞り駆動部
47 距離センサ
48 積算回路
50R、50G、50B 乗算器[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a white balance control method and a digital camera, and more particularly to a white balance control method and a digital camera for performing appropriate white balance control in accordance with a light source when shooting with strobe light.
[0002]
[Prior art]
In digital cameras equipped with a strobe device, the white balance is adjusted so that white objects are reproduced in white regardless of the color temperature of the light source. Regardless of the type of light source, white balance adjustment was performed in accordance with the color temperature of the strobe light. Therefore, the white balance may not be appropriate when the strobe light does not reach enough.
[0003]
In order to solve this problem, Japanese Patent Application Laid-Open No. 9-322191 discloses a white balance control value by obtaining color temperature information of external light by performing pre-exposure in a state where the strobe does not emit light, and this is determined in advance. A device is described that determines the white balance control value during strobe emission from proportional distribution with the white balance control value of the strobe light, and controls the white balance during strobe emission according to this control value during main exposure. .
[0004]
Japanese Patent Application Laid-Open No. 7-301842 discloses a technique for providing a dedicated sensor for white balance adjustment and obtaining a white balance control value when no strobe light is emitted using the output result of the dedicated sensor. Yes.
[0005]
[Problems to be solved by the invention]
However, in the technique described in Japanese Patent Application Laid-Open No. 9-322191, color temperature information is detected when the strobe does not emit light during pre-exposure. There is a problem that the color temperature may not be detected correctly due to the effect of smear.
[0006]
In order to solve this problem, for example, it is necessary to operate a mechanical shutter for eliminating the influence of smear not only at the time of main exposure but also at the time of preliminary exposure, so that there is a problem that the imaging sequence becomes complicated.
[0007]
Also, when shooting a chromatic subject that does not include an achromatic color, such as green leaves, the color of the light source cannot be detected accurately, and the light source is obtained from the color information obtained from the captured image. When the white balance control corresponding to the detected color of the light source is performed, a color feria that rotates around the subject's complementary color occurs, and in this case, the color of the green tree leaves withered. There is also a problem such as.
[0008]
Further, the technique described in Japanese Patent Laid-Open No. 7-301842 has a problem that a dedicated sensor is required, which increases costs and makes it difficult to reduce the size.
[0009]
The present invention has been made in consideration of the above-described facts, and an object of the present invention is to provide a white balance control method and a digital camera capable of appropriately performing white balance control even in shooting under strobe light emission.
[0010]
[Means for Solving the Problems]
To achieve the above object, according to a first aspect of the present invention, in the white balance control method in a digital camera capable of emitting strobe light, a step of detecting a distance to a subject and a captured image when the subject is imaged are detected. A step of detecting a luminance level, and white balance in the image data of the captured image in a state in which the strobe light is emitted so that the color of the reference light source becomes a predetermined color using the strobe light as a reference light source. Multiply the reference control value for control To correct the image data to which white balance control is applied when the strobe light is used as the light source. Dividing the captured image into a plurality of areas, obtaining each color information from the image data multiplied by the reference control value belonging to each area, and based on the obtained color information for each area, Detecting a color distribution of an area, determining an environmental light source based on the detected luminance level and the color distribution, and setting a color of a mixed light source of the environmental light source and the reference light source to be the predetermined color A step of calculating a control value for performing white balance control, and the distance so that the control value is a value between the control value and the reference control value and suitable for the mixed light source. According to Depending on the adjustment factor Adjusting the control value.
[0011]
According to the present invention, the distance to the subject is detected, and the brightness level of the captured image when the subject is imaged is detected. The luminance level can be obtained from each color data of R, G, B of the captured image, for example, but may be detected by a dedicated sensor.
[0012]
A reference control value for performing white balance control on image data of a captured image in a state where the strobe light is emitted, using the strobe light as a reference light source so that the color of the reference light source is a predetermined color, for example, white. Multiply That is, the image data of the captured image is corrected to image data subjected to white balance control when strobe light is used as a light source.
[0013]
Then, the captured image is divided into a plurality of areas, and each piece of color information is acquired from the image data multiplied by the reference control value belonging to each area. The color information can be, for example, the ratio R / G, B / G of R, G, B signals in the area.
[0014]
Based on the acquired color information for each area, the color distribution of each area is detected. The color distribution can be obtained by, for example, applying each area to a detection frame indicating a range of color distribution corresponding to a plurality of predetermined environmental light sources, and obtaining the number of areas that apply to each detection frame. The detection frame may be a frame defined by, for example, an R / G range and a B / G range.
[0015]
Next, an environmental light source is determined based on the detected luminance level and color distribution. The color distribution is based on the image data obtained by multiplying the reference control value by the image data of the captured image captured by the mixed light source in which the strobe light is emitted, that is, the strobe light and the environmental light source other than the strobe light. Since it is calculated | required from the acquired color information, only an environmental light source can be defined. An environmental light source refers to a light source other than strobe light, for example, a light source such as a daylight light, a fluorescent lamp, or a light bulb. The environmental light source can be determined based on, for example, an evaluation value indicating the degree of environmental lightness that is calculated by a predetermined formula provided corresponding to each of a plurality of predetermined environmental light sources. The predetermined formula can be determined by a formula that calculates an evaluation value representing the degree of environmental light source from the brightness level, color distribution, that is, the number of areas that apply to each detection frame, and the like.
[0016]
In this way, since the environmental light source is determined in consideration of not only the color distribution but also the luminance level, the environmental light source can be accurately determined. In addition, since the color distribution is obtained from the image data of the captured image in a state in which the strobe light is emitted, that is, the image data of the captured image in actual shooting, the environmental light source can be accurately determined without complicating the imaging sequence. Can be determined.
[0017]
Then, a control value for performing white balance control is calculated so that the color of the mixed light source of the environmental light source and the reference light source becomes a predetermined color. This control value is, for example, whether or not an evaluation value representing the degree of environmental lightness that is calculated by a predetermined formula provided corresponding to each of a plurality of predetermined environmental light sources is equal to or greater than a predetermined threshold. Determining a corresponding control value corresponding to each of the evaluation values equal to or greater than the predetermined threshold, and a weighted average value of the corresponding control values with the evaluation value equal to or greater than the predetermined threshold as a weight. And the step of calculating as follows.
[0018]
That is, it is determined that an evaluation value representing the degree of environmental lightness is equal to or higher than a predetermined threshold is high, and a corresponding control value corresponding to each environmental light source determined to be equal to or higher than the predetermined threshold is obtained. These weighted average values are used as control values. Thereby, the control value can be determined in a balanced manner.
[0019]
The final control value is a value between this control value and the reference control value, and depends on the detected distance to the subject so as to be a value suitable for the mixed light source. Depending on the adjustment factor Adjusted. For example, as described in claim 2, the control value is adjusted so as to approach the reference control value as the distance decreases. That is, since the strobe light is dominant when the distance to the subject is short, the control value is adjusted so that white balance control suitable for the case where the strobe light is used as a light source is performed. Thereby, the white balance can be optimally adjusted according to the distance of the subject.
[0020]
In the above-described white balance control method, as described in claim 3, in a digital camera capable of emitting strobe light, distance detection means for detecting a distance to a subject, and a luminance level of a captured image when the subject is imaged Brightness level detecting means for detecting the image and image data of the captured image in a state in which the strobe light is emitted, white light so that the color of the reference light source is a predetermined color using the strobe light as a reference light source. Multiply the reference control value for balance control To correct the image data to which white balance control is applied when the strobe light is used as the light source. Multiplying means, obtaining means for dividing the captured image into a plurality of areas, and obtaining each color information from the image data multiplied by the reference control value belonging to each area, and based on the obtained color information for each area A color distribution detecting means for detecting a color distribution in each area; a setting means for determining an environmental light source based on the detected luminance level and the color distribution; and a color of a mixed light source of the environmental light source and the reference light source A calculating means for calculating a control value for performing white balance control so as to obtain a predetermined color, and the control value is a value between the control value and the reference control value, and a value suitable for the mixed light source Depending on the distance so that Depending on the adjustment factor It can be realized by a digital camera comprising adjusting means for adjusting the control value.
[0021]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.
[0022]
FIG. 1 is a rear view of a digital camera according to the present invention, and FIG. 2 is a plan view of a mode dial provided on the upper surface of the camera.
[0023]
As shown in FIG. 2, the mode dial 1 is rotated so that the icons 1A to 1F on the dial are aligned with the mark M, so that the continuous shooting / bracketing mode, aperture and shutter speed for shooting at a plurality of levels of exposure are set. Suitable for manual shooting modes that can be set, auto shooting mode suitable for shooting various subjects, portrait mode suitable for shooting people, landscape mode suitable for shooting landscapes, and shooting night scenes The camera can be set to a shooting mode such as night view mode. In FIG. 2, a landscape mode is set.
[0024]
In addition to these shooting modes, you can select a combination of aperture and shutter speed, P (program) mode, you can select an aperture, A (aperture priority) mode in which the shutter speed is automatically selected, and shutter speed It is possible to set a photographing mode such as an S (shutter speed priority) mode in which an aperture is automatically selected. In addition, for each shooting mode, auto mode that automatically fires the flash, red-eye reduction mode to reduce red-eye when a person is shot, flash forced flash mode that forces the flash to fire, and flash light emission At the same time, it is possible to set a flash mode such as a slow sync mode for shooting a person and a night scene in a balanced manner by increasing the shutter speed.
[0025]
In the center of the mode dial 1, a shutter button 2 having a switch S1 that is turned on when half-pressed and a switch S2 that is turned on when fully pressed is provided.
[0026]
On the back of the digital camera, as shown in FIG. 1, a viewfinder eyepiece 3, a shift key 4, a display key 5, a shooting mode / playback mode switching lever 6, a cancel key 7, an execution key 8, and a multifunction cross key 9 And a liquid crystal monitor 52 are provided.
[0027]
FIG. 3 is a block diagram showing an internal configuration of the digital camera shown in FIG.
[0028]
In the figure, a subject image formed on a light receiving surface of a solid-state image sensor (CCD) 14 through a photographing lens 10 and a diaphragm 12 is converted into a signal charge in an amount corresponding to the amount of incident light by each sensor. . The signal charges accumulated in this way are read out to the shift register by a read gate pulse applied from the CCD drive circuit 16, and sequentially read out as a voltage signal corresponding to the signal charge by a register transfer pulse. The CCD 14 has a so-called electronic shutter function that can sweep out the accumulated signal charge by a shutter gate pulse and thereby control the charge accumulation time (shutter speed).
[0029]
The voltage signal sequentially read out from the CCD 14 is applied to a correlated double sampling circuit (CDS circuit) 18, where R, G, B signals for each pixel are sampled and held and applied to an A / D converter 20. It is done. The A / D converter 20 converts the R, G, and B signals sequentially added from the CDS circuit 18 into, for example, 10-bit (0 to 1023) digital R, G, and B signals and outputs the signals. The CCD drive circuit 16, the CDS circuit 18, and the A / D converter 20 are driven in synchronization with a timing signal applied from a timing generation circuit (TG) 22.
[0030]
The R, G, and B signals output from the A / D converter 20 are temporarily stored in the memory 24, and then the R, G, and B signals stored in the memory 24 are added to the digital signal processing circuit 26. The digital signal processing circuit 26 includes a synchronization circuit 28, a white balance adjustment circuit 30, a gamma correction circuit 32, a YC signal creation circuit 34, and a memory 36.
[0031]
The synchronization circuit 28 converts the dot-sequential R, G, B signals read from the memory 24 into simultaneous equations and outputs the R, G, B signals to the white balance adjustment circuit 30 simultaneously. The white balance adjustment circuit 30 includes multipliers 30R, 30G, and 30B for increasing and decreasing the digital values of the R, G, and B signals. The R, G, and B signals are respectively multiplied by the multipliers 30R, 30G, and 30G, respectively. Added to 30B.
[0032]
White balance correction values (gain values) Rg, Gg, and Bg for white balance control from the central processing unit (CPU) 38 are added to other inputs of the multipliers 30R, 30G, and 30B. , 30G, and 30B each multiply two inputs, and output R ′, G ′, and B ′ signals subjected to white balance adjustment by this multiplication to the gamma correction circuit 32. The details of the white balance correction values Rg, Gg, and Bg applied from the CPU 38 to the white balance adjustment circuit 30 will be described later.
[0033]
The gamma correction circuit 32 changes the input / output characteristics so that the white balance adjusted R ′, G ′, B ′ signals have the desired gamma characteristics, and the 10-bit signal becomes an 8-bit signal. And output to the YC signal generation circuit 34. The YC signal creation circuit 34 creates a luminance signal Y and chroma signals Cr and Cb from the gamma-corrected R, G, and B signals. The luminance signal Y and chroma signals Cr and Cb (YC signal) are stored in the memory 36 in the same memory space as the memory 24.
[0034]
Here, by reading the YC signal in the memory 36 and outputting it to the liquid crystal monitor 52, a moving image or a still image can be displayed on the liquid crystal monitor 52. The YC signal after photographing is compressed into a predetermined format by the compression / decompression circuit 54 and then recorded on a recording medium such as a memory card by the recording unit 56. Further, in the reproduction mode, the image data recorded on the memory card or the like is decompressed by the compression / decompression circuit 54 and then output to the liquid crystal monitor 52 so that the reproduced image is displayed on the liquid crystal monitor 52. .
[0035]
The CPU 38 controls each circuit based on inputs from the camera operation unit 40 including the mode dial 1 and the shutter button 2 shown in FIG. 1, and performs control such as autofocus, automatic exposure control, and auto white balance. Do. This autofocus control is, for example, contrast AF that moves the taking lens 10 so that the high-frequency component of the G signal is maximized, and the drive unit 42 so that the high-frequency component of the G signal is maximized when the shutter button 2 is half-pressed. Then, the photographing lens 10 is moved to the in-focus position.
[0036]
The CPU 38 also includes a memory 39 for storing various data such as an EV value and distance data to the subject, a strobe 46 for emitting strobe light, and a distance sensor (distance detection for detecting the distance to the subject). (Means) 47 is connected, and these are controlled. Note that the distance to the subject is detected by the distance sensor 47 when the shutter button 2 is half-pressed and stored in the memory 39.
[0037]
In the automatic exposure control, as shown in FIG. 4, the R, G, B signals are fetched up to four times at predetermined exposures (1) to (4), and these R, G, B signals are integrated. The subject luminance (shooting EV value) is obtained based on the value. This is executed when the shutter button 2 is half-pressed. Note that the process for obtaining the photographing EV value corresponds to the luminance level detecting means of the present invention.
[0038]
Next, details of the measurement of the photographing EV value will be described.
[0039]
As shown in FIG. 5, one screen is divided into a plurality of areas (8 × 8), the luminance signals obtained from the R, G, and B signals are integrated for each divided area, and each division is performed based on the integrated value. The EV value (EVi) of the area is obtained. Subsequently, as shown in FIG. 5, the EV value of each divided area is weighted corresponding to the shooting mode, and the EV ′ value of the entire screen is calculated by the following equation.
[0040]
[Expression 1]
Figure 0003903095
[0041]
However, i is a subscript indicating each of the divided areas, and can take a value of 0 to 63 in the above case. N indicates the number of divided areas. In the above case, 8 × 8 = 64. ΔEViso is an EV value correction amount based on a predetermined sensitivity (for example, ISO 200), and is a value for adjusting EV ′ to be constant even when the sensitivity is changed. Wi is a weighting factor for each divided area. For example, as shown in FIG. 5, the weighting factor of the center-weighted metering method is used.
[0042]
The EV ′ calculated as described above is further subjected to exposure correction ΔEV corresponding to the shooting mode as shown in the following equation to obtain the shooting EV value. The obtained shooting EV value is stored in the memory 39.
[0043]
EV = EV′−ΔEV (2)
Note that ΔEV is, for example, ΔEV = 0 in the portrait mode, and ΔEV = 0.3 in the landscape mode and the night view mode.
[0044]
The aperture value and shutter speed at the time of shooting are finally determined based on the shooting EV value obtained as described above.
[0045]
Then, when the shutter button is fully pressed, the diaphragm 12 is driven through the diaphragm driving unit 44 so that the determined diaphragm value is obtained, and the charge accumulation time is controlled by the electronic shutter so that the determined shutter speed is achieved. .
[0046]
Next, an auto white balance control method will be described with reference to the flowchart shown in FIG.
[0047]
The white balance control shown in FIG. 6 is executed in the case of a predetermined shooting mode and strobe mode and when it is determined that strobe light is emitted.
[0048]
The following table shows combinations of shooting modes and strobe modes in which the white balance control shown in FIG. 6 is executed. For example, in the auto shooting mode, the following white balance control is executed when the EV value is equal to or less than a predetermined threshold value, and in other cases, normal white balance control is performed.
[0049]
[Table 1]
Figure 0003903095
[0050]
First, it is determined whether or not strobe light is emitted from the EV value, shooting mode, and strobe mode. If strobe light is emitted, it is determined whether or not the shooting mode and strobe mode are a combination indicated by a circle in the above table. Is done. If it is determined that the flash fires, and the shooting mode and the flash mode are determined not to be a combination indicated by a circle in the above table, white balance control during normal flash firing is performed by a well-known method. White balance correction values Rg, Gg, and Bg are set and applied to the white balance adjustment circuit 30. If it is determined that the strobe light is not emitted, white balance correction values Rg, Gg, and Bg for performing white balance control suitable for a case where the strobe light is not emitted are set by a known method, and a white balance adjustment circuit is set. 30.
[0051]
If it is determined that the flash is emitted and the shooting mode and the flash mode are determined to be a combination indicated by a circle in the above table, the CPU 38 obtains the distance data to the subject obtained when the shutter button is half-pressed. Is acquired (step S10).
[0052]
Next, the photographing EV value obtained when the shutter button is half-pressed is read from the memory 39 (step S11).
[0053]
Next, the R, G and B signals of the image captured by the flash emission when the shutter button is fully pressed are temporarily stored in the memory 24. This one screen is divided into a plurality of areas (for example, 8 × 8). Then, an integrated value for each color of the R, G, and B signals is obtained by the integrating circuit 48 for each divided area (step S12).
[0054]
The integrated values Rt, Gt, Bt of the R, G, B signals are output to multipliers (multiplier means) 50R, 50G, 50B provided between the integrating circuit 48 and the CPU 38, and the multipliers 50R, 50G, 50B are output. Is multiplied by a predetermined reference WB (white balance) gain value (reference control value) Rst, Gst, Bst (step S14). The reference WB gain values Rst, Gst, and Bst are stored in the memory 39 in advance.
[0055]
The integrated values Rt ′, Gt ′, Bt ′ of the R, G, B signals multiplied by the reference WB gain values Rst, Gst, Bst are input to the CPU 38.
[0056]
The reference WB gain values Rst, Gst, and Bst are gain values for adjusting the white balance to be appropriate when the strobe light is dominant as a light source, such as when the strobe light sufficiently reaches the subject. It is.
[0057]
Then, the CPU 38 has a ratio Rt ′ / Gt ′ between the integrated value Rt ′ of the input R signal and the integrated value Gt ′ of the G signal, and a ratio Bt ′ / Gt of the integrated value of the B signal and the integrated value of the G signal. Gt ′ is obtained (step S16). This process corresponds to an acquisition unit of the present invention.
[0058]
Rt ′ / Gt ′ and Bt ′ / Gt ′ obtained for each divided area as described above are the detection frames in which the divided area is detected from the detection frames represented on the graph shown in FIG. Used to determine whether to enter. Note that each detection frame in FIG. 7 defines a range of color distribution of an environmental light source other than strobe light.
[0059]
As shown in FIG. 7, the detection frame includes a blue sky detection frame, a shade-clouding detection frame, a daylight color (fluorescent light) detection frame, a green detection frame, a daylight white (fluorescent light) detection frame, a strobe detection frame, tungsten. There is a light bulb detection frame, the shade-cloud detection frame includes shade-cloud detection frames CLD1 to CLD4, the daylight color detection frame includes daylight color detection frames EXD1 to EXD4, and the daylight white detection frame includes a daylight white detection frame EXN1. The tungsten light bulb detection frame includes EXN4, and includes tungsten light bulb detection frames TNG1-1 to TNG1-4, TNG2-1 to TNG2-4, and TNG3.
[0060]
Then, the CPU 38 represents Rt ′ / Gt ′ = X ′, Bt ′ / Gt ′ = Y ′, and Rt ′ / Gt ′, Bt ′ / Gt ′ obtained for each divided area (X i ', Y i ') Discriminates which detection frame of these detection frames is included, and counts the number (step S18). This process corresponds to the color distribution detecting means of the present invention.
[0061]
Next, it exists in each detection frame (X i ', Y i ') Average value (Xa j 'Ya j ') Is obtained (step S20). Here, j is a subscript indicating each detection frame. The center of gravity value may be used instead of the average value.
[0062]
Next, an evaluation value Fc () representing the light source likeness (shade-cloudiness etc.) regarding the color is calculated by the membership function provided corresponding to each detection frame (step S22). The membership function is a function that outputs an evaluation value Fc () representing the light source likeness with respect to the color using the number in the detection frame as a variable. That is, if the evaluation value is high, the possibility of a light source (environment light source) corresponding to the detection frame increases.
[0063]
As shown in FIG. 8, Fc (CLD1) to Fc (CLD4) are membership function values representing shade-cloudiness as variables with the number of divided areas falling within the shade-cloudiness detection frame.
[0064]
As shown in FIG. 9, Fc (SKY) is a value of a membership function that represents the likelihood of a blue sky with the number of divided areas falling within the blue sky detection frame as a variable. Similarly, as shown in FIG. 9, Fc (GRN) is a membership function value representing the greenness with the number of divided areas falling within the green detection frame as a variable.
[0065]
As shown in FIG. 10, Fc (EXD1) to Fc (EXD4) are membership functions representing the daylight-colored fluorescent lamps with the number of divided areas entering the daylight color detection frame as variables. Fc (EXN1) to Fc (EXN4) and Fc (TNG1-1) to Fc (TNG3) are the same as Fc (EXD1) to Fc (EXD4) shown in FIG. 10, and Fc (EXN1) to Fc (EXN4) ) Is a value of a membership function representing the nature of a fluorescent white light with the number of divided areas falling within the natural white detection frame as a variable. Fc (TNG1-1) to Fc (TNG3) are tungsten light bulb detections. This is a membership function value representing the characteristic of daylight fluorescent light with the number of divided areas falling within the frame as a variable.
[0066]
Fc (TYP) is a strobe characteristic with the number of divided areas falling within the strobe detection frame as a variable, that is, a membership function value indicating whether or not strobe light is dominant. This is the same as the membership function representing the fluorescent lightness shown in FIG.
[0067]
Next, an evaluation value Fy () representing the light source-likeness (indoorness, outdoorness) relating to the luminance is calculated by a membership function provided corresponding to each detection frame (step S24). The membership function is a function that outputs an evaluation value representing the light source-likeness related to the luminance using the EV value acquired in step S11 as a variable.
[0068]
As shown in FIG. 11, Fy (outdoor likelihood DAY) is a value of a membership function that represents the outdoorness of the daylight with the EV value as a variable.
[0069]
As shown in FIG. 12, Fy (outdoor likelihood CLD) is a value of a membership function representing shaded or cloudy outdoor appearance with the EV value as a variable.
[0070]
As shown in FIG. 13, Fy (indoorness EXD), Fy (indoorness EXN), and Fy (indoorness TNG) are respectively the indoorness of daylight fluorescent lamps with the EV value as a variable or the whiteness of daylight fluorescent lamps. This is a membership function value representing the indoorness or the indoorness of a tungsten light bulb.
[0071]
Next, an overall evaluation value H of the light source likeness for each detection frame from the evaluation value showing the light source likeness relating to the color and the evaluation value showing the evaluation value relating to the luminance. j Is obtained (step S26).
[0072]
Evaluation value H 1 ~ H twenty two Is obtained by the following equation.
[0073]
H 1 (Evaluation value of shade-cloudiness) = Fc (CLD1) × Fy (outdoorness) × Fc (SKY) (3)
H 2 (Evaluation value of shade-cloudiness) = Fc (CLD2) × Fy (outdoorness) × Fc (SKY) (4)
H Three (Evaluation value of shade-cloudiness) = Fc (CLD3) × Fy (outdoorness) (5)
H Four (Evaluation value of shade-cloudiness) = Fc (CLD4) × Fy (outdoorness) (6)
H Five (Evaluation value of daylight color fluorescent light) = Fc (EXD1) × Fy (indoor quality EXD) (7)
H 6 (Evaluation value of daylight color fluorescent light) = Fc (EXD2) × Fy (indoor quality EXD) (8)
H 7 (Evaluation value of daylight color fluorescent light) = Fc (EXD3) × Fy (indoor quality EXD) (9)
H 8 (Evaluation value of daylight color fluorescent light) = Fc (EXD4) × Fy (indoor quality EXD) (10)
H 9 (Evaluation value of daylight white fluorescent light) = Fc (EXN1) × Fy (indoor quality EXN) (11)
H Ten (Evaluation value of daylight white fluorescent light) = Fc (EXN2) × Fy (indoor quality EXN) (12)
H 11 (Evaluation value of daylight white fluorescent light) = Fc (EXN3) × Fy (indoorness EXN) × Fc (GRN) (13)
H 12 (Evaluation value of daylight color fluorescent lamp) = Fc (EXN4) × Fy (indoorness EXN) × Fc (GRN) (14)
H 13 (Evaluation value of tungsten bulb-likeness) = Fc (TNG1-1) × Fy (indoor-likeness TNG) (15)
H 14 (Evaluation value of tungsten bulb-likeness) = Fc (TNG1-2) × Fy (indoor-likeness TNG) (16)
H 15 (Evaluation value of tungsten bulb-likeness) = Fc (TNG1-3) × Fy (indoorness-likeness TNG) (17)
H 16 (Evaluation value of tungsten bulb-likeness) = Fc (TNG1-4) × Fy (indoor-likeness TNG) (18)
H 17 (Evaluation value of tungsten bulb-likeness) = Fc (TNG2-1) × Fy (indoor-likeness TNG) (19)
H 18 (Evaluation value of tungsten bulb-likeness) = Fc (TNG2-2) × Fy (indoor-likeness TNG) (20)
H 19 (Evaluation value of tungsten bulb-likeness) = Fc (TNG2-3) × Fy (indoor-likeness TNG) (21)
H 20 (Evaluation value of tungsten bulb-likeness) = Fc (TNG2-4) × Fy (indoor-likeness TNG) (22)
H twenty one (Evaluation value of tungsten bulb-likeness) = Fc (TNG3) × Fy (indoor-likeness TNG) (23)
H twenty two (Evaluation value of strobe lightness) = Fc (TYP) × Fy (outdoor likeness DAY) (24)
Here, since 0 ≦ Fc () and Fy () ≦ 1, 0 ≦ H j ≦ 1. As shown in FIG. 9, Fc (SKY) and Fc (GRN) are the evaluation values of the shade-cloudiness or neutral white detection frame as the number of divided areas that fall within the blue sky detection frame or the green detection frame increases. Takes a value that acts in the direction of lowering.
[0074]
Further, as shown in FIG. 13, Fy (indoorness) takes a value that acts in the direction of lowering the evaluation value of the detection frames as the EV value is higher. Thus, the evaluation value H of the light source quality j Is determined in consideration of not only the color distribution but also the luminance, so that the light source can be specified appropriately. For example, when shooting a subject of the same color in a room where the fluorescent lamp is lit, and when the light source is specified only by the color distribution, the light source is incorrectly specified and a color failure occurs. There is.
[0075]
However, in this embodiment, when the luminance is low, that is, when the image is taken indoors, Fy (appearance of the room) is high, and when the luminance is high, that is, when the image is taken outdoor. , Fy (likeness in the room) is reduced, so that the light source can be specified accurately and the occurrence of color feria can be prevented.
[0076]
When the evaluation value of the light source corresponding to each detection frame is calculated as described above, it is determined whether or not the evaluation value is not less than a predetermined threshold value (for example, not less than 0.4) among these evaluation values ( Step S28). If there is an evaluation value that is equal to or greater than a predetermined threshold value, an evaluation value that is equal to or greater than the predetermined threshold value is selected as an environmental light source candidate. This process corresponds to setting means of the present invention.
[0077]
Next, for each selected environmental light source, a control value (gain value) G for performing white balance control so that the color of the mixed light source in which the strobe light and the environmental light source are mixed according to the following formula is white. R , G B , G G Is calculated (step S30). This process corresponds to the calculation means of the present invention.
[0078]
G R = {Σ (gr j × H j ) / ΣH j } × {Σ (G j × H j ) / ΣH j }
... (25)
G B = {Σ (gb j × H j ) / ΣH j } × {Σ (G j × H j ) / ΣH j }
... (26)
G G = Σ (G j × H j ) / ΣH j ... (27)
Here, the above formulas (25) to (27) are calculated for evaluation values that are equal to or higher than a predetermined threshold value. 11 ~ H 14 If H 11 ~ H 14 About light source of gr j , Gb j Is calculated and the calculated gr j , Gb j , H 11 ~ H 14 Is used to calculate within each Σ. Gr j , Gb j Is a gain necessary for setting the color of the light source in each detection frame to a predetermined color, and is expressed by the following equation. G j In this case, Gst is a fixed value.
[0079]
gr j = Xst / Xa j '× Tx j ... (28)
gb j = Yst / Ya j '× Ty j ... (29)
Here, Xst = Rst / Gst and Yst = Bst / Gst. Tx j , Ty j X obtained from the integrated values of R, G, B of the original image data not multiplied by the reference WB gain value i , Y i The average value of Xa j (= Xa j '/ Xst), Ya j (= Ya j '/ Yst), Xa j , Ya j Which corresponds to a predetermined color. That is, gr j , Gb j Xa for the integrated values of R, G, B of the original image data j , Ya j Xa j , Ya j Is a gain necessary to set the color of the light source (mixed light source of strobe light and environmental light source) to a predetermined color. Tx j , Ty j Is 1, for example.
[0080]
Therefore, the first term of the above equations (25) and (26) is the evaluation value H j Gr with weight j , Gb j Represents the weighted average of each. The second term is a term for correcting the brightness. j Since is a fixed value, the brightness is not corrected in this case.
[0081]
The evaluation value H of the strobe detection frame twenty two Is selected as being greater than or equal to a predetermined threshold, gr twenty two = Xst, gb twenty two = Yst.
[0082]
In this way, the control value G for setting the color of the mixed light source in which the strobe light and the environmental light source other than the strobe light are mixed to a predetermined color. R , G B , G G Is calculated according to the distance to the subject detected by the distance sensor 47 so that these control values are values between the reference WB gain value and a value suitable for the mixed light source. (Step S32). This process corresponds to the adjusting means of the present invention. The adjusted control values are expressed as white balance correction values Rg, Gg, and Bg, and are obtained by the following equations.
[0083]
Rg = (G R −Rst) × Ld + Rst (30)
Gg = (G G −Gst) × Ld + Gst (31)
Bg = (G B −Bst) × Ld + Bst (32)
Here, Ld is a correction coefficient corresponding to the distance to the subject. For example, as shown in FIG. 14, a section where the distance is from 0 to a predetermined threshold th1 and a section where the distance is equal to or greater than the predetermined threshold th2. Becomes a constant value, and takes a value that increases as the distance increases in the interval from the threshold th1 to the threshold th2. Accordingly, the white balance correction values Rg, Gg, and Bg approach the reference WB gain values Rst, Gst, and Bst as the distance decreases, and the control values G as the distance increases. R , G B , G G Get closer to. That is, when the distance to the subject is short, the control value is adjusted so that white balance control suitable for the case where strobe light is used as the light source, and when the distance is long, the white balance suitable for the mixed light source is adjusted. The control value is adjusted so that control is performed. Thereby, white balance control can be optimally performed according to the distance to the subject.
[0084]
The white balance correction values Rg, Gg, Bg calculated in this way are output to the white balance adjustment circuit 30, and the R, G, B signals of the original image data are white balance adjusted (step S34). Assuming that the corrected signals are R ′, G ′, and B ′, R ′, G ′, and B ′ are expressed by the following equations.
[0085]
R ′ = Rg × R (33)
G ′ = Gg × G (34)
B ′ = Bg × B (35)
On the other hand, the evaluation value H equal to or greater than a predetermined threshold j If there is no single, the white balance correction values Rg, Gg, and Bg are set to Rst, Gst, and Bst, respectively (step S36), and white balance adjustment is performed (step S34).
[0086]
Thus, in this embodiment, since the environmental light source is determined in consideration of not only the color of the environmental light source but also the EV value, the environmental light source can be accurately determined. Also, since the color of the environmental light source is obtained from the image data of the captured image in a state where the strobe light is emitted, that is, the image data of the captured image in actual shooting, the environmental light source can be selected without complicating the imaging sequence. It can be determined accurately.
[0087]
The white balance correction values Rg, Gg, and Bg are control values G for setting the color of the mixed light source to a predetermined color from the reference WB gain value. R , G B , G G And a value that enables white balance control suitable for the distance to the subject, so that white balance control can be performed appropriately according to the distance to the subject, and the occurrence of color feria Can be suppressed.
[0088]
Further, since the white balance correction values Rg, Gg, and Bg are obtained without using a dedicated sensor, the cost can be reduced and the apparatus can be downsized.
[0089]
【The invention's effect】
As described above, according to the present invention, the control value for white balance control is a value between the control value and the reference control value, and a value suitable for the mixed light source. Since it is adjusted according to the distance, it is possible to appropriately control white balance even in shooting under strobe light emission and to suppress the occurrence of color feria.
[Brief description of the drawings]
FIG. 1 is a rear view of a digital camera according to the present invention.
FIG. 2 is a plan view of a mode dial provided on the upper surface of the digital camera.
FIG. 3 is a block diagram showing an internal configuration of the digital camera.
FIG. 4 is a diagram for explaining how to obtain an EV value;
FIG. 5 is a diagram for explaining a photometric method.
FIG. 6 is a flowchart of a white balance control method.
FIG. 7 is a graph showing a detection frame as a range of color distribution of a light source.
FIG. 8 is a graph showing a membership function representing shade-cloudiness.
FIG. 9 is a graph showing a blue sky membership function.
FIG. 10 is a graph showing a membership function representing the likelihood of a fluorescent lamp and the like.
FIG. 11 is a graph showing a membership function representing the outdoorness of daylight.
FIG. 12 is a graph showing a membership function representing outdoorness.
FIG. 13 is a graph showing a membership function representing indoorness.
FIG. 14 is a diagram showing a relationship between a distance to a subject and a correction coefficient.
[Explanation of symbols]
10 Shooting lens
16 Drive circuit
18 CDS circuit
20 A / D converter
24 memory
26 Digital signal processing circuit
28 Synchronization circuit
30 White balance adjustment circuit
30R, 30G, 30B multiplier
32 Gamma correction circuit
34 YC signal generation circuit
36 memory
39 memory
40 Camera control unit
42 Drive unit
44 Aperture drive
47 Distance sensor
48 Integration circuit
50R, 50G, 50B multiplier

Claims (3)

ストロボ光を発光可能なデジタルカメラにおけるホワイトバランス制御方法において、
被写体までの距離を検出するステップと、
被写体を撮像したときの撮像画像の輝度レベルを検出するステップと、
前記ストロボ光が発光された状態での前記撮像画像の画像データに、前記ストロボ光を基準光源として該基準光源の色が予め定めた所定色となるようにホワイトバランス制御を行うための基準制御値を乗算することにより、ストロボ光を光源とした場合のホワイトバランス制御が施された画像データに補正するステップと、
前記撮像画像を複数のエリアに分割し、各エリアに属する前記基準制御値が乗算された画像データから各々色情報を取得するステップと、
取得したエリアごとの色情報に基づいて、各エリアの色分布を検出するステップと、
検出した前記輝度レベル及び前記色分布に基づいて環境光源を定めるステップと、
前記環境光源と前記基準光源との混合光源の色が前記所定色となるようにホワイトバランス制御を行うための制御値を算出するステップと、
前記制御値が、前記制御値と前記基準制御値との間の値で、かつ前記混合光源に適した値となるように、前記距離に応じた調整用の係数によって前記制御値を調整するステップと、
を含むことを特徴とするホワイトバランス制御方法。
In a white balance control method in a digital camera capable of emitting strobe light,
Detecting the distance to the subject;
Detecting the brightness level of the captured image when the subject is imaged;
A reference control value for performing white balance control on the image data of the captured image in a state where the strobe light is emitted, using the strobe light as a reference light source so that the color of the reference light source becomes a predetermined color. To correct the image data subjected to white balance control when the strobe light is used as the light source ,
Dividing the captured image into a plurality of areas, and obtaining each color information from the image data multiplied by the reference control value belonging to each area;
Detecting the color distribution of each area based on the acquired color information for each area;
Determining an ambient light source based on the detected brightness level and the color distribution;
Calculating a control value for performing white balance control so that a color of a mixed light source of the environmental light source and the reference light source becomes the predetermined color;
Adjusting the control value by a coefficient for adjustment according to the distance so that the control value is a value between the control value and the reference control value and suitable for the mixed light source. When,
A white balance control method comprising:
前記制御値は、前記距離が小さくなるに従って前記基準制御値に近づくように調整されることを特徴とする請求項1記載のホワイトバランス制御方法。  The white balance control method according to claim 1, wherein the control value is adjusted to approach the reference control value as the distance decreases. ストロボ光を発光可能なデジタルカメラにおいて、
被写体までの距離を検出する距離検出手段と、
被写体を撮像したときの撮像画像の輝度レベルを検出する輝度レベル検出手段と、
前記ストロボ光が発光された状態での前記撮像画像の画像データに、前記ストロボ光を基準光源として該基準光源の色が予め定めた所定色となるようにホワイトバランス制御を行うための基準制御値を乗算することにより、ストロボ光を光源とした場合のホワイトバランス制御が施された画像データに補正する乗算手段と、
前記撮像画像を複数のエリアに分割し、各エリアに属する前記基準制御値が乗算された画像データから各々色情報を取得する取得手段と、
取得したエリアごとの色情報に基づいて、各エリアの色分布を検出する色分布検出手段と、
検出した前記輝度レベル及び前記色分布に基づいて環境光源を定める設定手段と、
前記環境光源と前記基準光源との混合光源の色が前記所定色となるようにホワイトバランス制御を行うための制御値を算出する算出手段と、
前記制御値が、前記制御値と前記基準制御値との間の値で、かつ前記混合光源に適した値となるように、前記距離に応じた調整用の係数によって前記制御値を調整する調整手段と、
を含むことを特徴とするデジタルカメラ。
In digital cameras that can emit strobe light,
Distance detection means for detecting the distance to the subject;
Brightness level detection means for detecting the brightness level of the captured image when the subject is imaged;
A reference control value for performing white balance control on the image data of the captured image in a state where the strobe light is emitted, using the strobe light as a reference light source so that the color of the reference light source becomes a predetermined color. Multiplying means for correcting the image data subjected to white balance control when the strobe light is used as a light source ,
An acquisition unit that divides the captured image into a plurality of areas and acquires color information from image data multiplied by the reference control value belonging to each area;
Color distribution detection means for detecting the color distribution of each area based on the acquired color information for each area;
Setting means for determining an environmental light source based on the detected luminance level and the color distribution;
Calculating means for calculating a control value for performing white balance control so that a color of a mixed light source of the environmental light source and the reference light source becomes the predetermined color;
Adjustment that adjusts the control value by a coefficient for adjustment according to the distance so that the control value is a value between the control value and the reference control value and is a value suitable for the mixed light source Means,
A digital camera characterized by including:
JP2002020741A 2002-01-29 2002-01-29 White balance control method and digital camera Expired - Fee Related JP3903095B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002020741A JP3903095B2 (en) 2002-01-29 2002-01-29 White balance control method and digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002020741A JP3903095B2 (en) 2002-01-29 2002-01-29 White balance control method and digital camera

Publications (2)

Publication Number Publication Date
JP2003224865A JP2003224865A (en) 2003-08-08
JP3903095B2 true JP3903095B2 (en) 2007-04-11

Family

ID=27744159

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002020741A Expired - Fee Related JP3903095B2 (en) 2002-01-29 2002-01-29 White balance control method and digital camera

Country Status (1)

Country Link
JP (1) JP3903095B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5308792B2 (en) * 2008-11-28 2013-10-09 オリンパス株式会社 White balance adjustment device, white balance adjustment method, white balance adjustment program, and imaging device
JP4757927B2 (en) * 2009-03-13 2011-08-24 アキュートロジック株式会社 White balance adjusting device and white balance adjusting method
JP5118165B2 (en) * 2010-03-04 2013-01-16 ソニーモバイルコミュニケーションズ株式会社 Camera photographed image color correction device and portable terminal device
CN107801012B (en) * 2017-10-30 2019-05-17 Oppo广东移动通信有限公司 White balancing treatment method and device, electronic device and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0759087B2 (en) * 1988-07-25 1995-06-21 旭光学工業株式会社 Still video camera
JP3550440B2 (en) * 1995-04-13 2004-08-04 イーストマン・コダックジャパン株式会社 Auto white balance adjustment device
JPH09322191A (en) * 1996-03-29 1997-12-12 Ricoh Co Ltd Image input device
JP3849834B2 (en) * 1999-02-02 2006-11-22 富士写真フイルム株式会社 Auto white balance control method
JP3896438B2 (en) * 1999-04-12 2007-03-22 富士フイルム株式会社 Digital camera and auto white balance control method
JP2001095008A (en) * 1999-09-17 2001-04-06 Fuji Photo Film Co Ltd Image-pickup unit and white balance adjusting method
JP4081213B2 (en) * 1999-10-04 2008-04-23 イーストマン コダック カンパニー Auto white balance apparatus and method

Also Published As

Publication number Publication date
JP2003224865A (en) 2003-08-08

Similar Documents

Publication Publication Date Title
JP4679685B2 (en) Digital camera composition auxiliary frame selection method and digital camera
JP3849834B2 (en) Auto white balance control method
JP4207148B2 (en) Digital camera
US20020118967A1 (en) Color correcting flash apparatus, camera, and method
JP3896438B2 (en) Digital camera and auto white balance control method
JP3999321B2 (en) Electronic camera
JP2007325145A (en) Image processing apparatus, method and program
JP4158029B2 (en) White balance adjustment method and electronic camera
JP3821729B2 (en) Digital camera
JP2004297650A (en) Control method of white balance and digital camera
JP2003163944A (en) White balance-control method and digital camera
JP2001189890A (en) Digital camera
JP4043928B2 (en) Digital camera
JP2002218495A (en) White balance control method and electronic camera
JP3831934B2 (en) Camera automatic exposure device
JP3903095B2 (en) White balance control method and digital camera
JP3903093B2 (en) White balance control method and digital camera
JP4385240B2 (en) Auto white balance control method for digital camera and digital camera
JP3958700B2 (en) Digital camera
JP2009033386A (en) Photographing device and method
JP3903094B2 (en) White balance control method and digital camera
JP2004349930A (en) Digital camera
JP4277258B2 (en) White balance control method and imaging apparatus
JP4396225B2 (en) White balance control device and electronic device
KR101589493B1 (en) White ballance control method and apparatus using a flash and digital photographing apparatus using thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040312

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060707

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060718

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060919

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061017

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061019

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061227

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110119

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110119

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120119

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120119

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130119

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees