JP2004282133A - Automatic white balance processor and method, and image signal processor - Google Patents

Automatic white balance processor and method, and image signal processor Download PDF

Info

Publication number
JP2004282133A
JP2004282133A JP2003066740A JP2003066740A JP2004282133A JP 2004282133 A JP2004282133 A JP 2004282133A JP 2003066740 A JP2003066740 A JP 2003066740A JP 2003066740 A JP2003066740 A JP 2003066740A JP 2004282133 A JP2004282133 A JP 2004282133A
Authority
JP
Japan
Prior art keywords
color
luminance
pixel
white balance
range
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.)
Granted
Application number
JP2003066740A
Other languages
Japanese (ja)
Other versions
JP4352730B2 (en
Inventor
Ryuichi Shiobara
隆一 塩原
Takayoshi Kojima
貴義 小嶋
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2003066740A priority Critical patent/JP4352730B2/en
Publication of JP2004282133A publication Critical patent/JP2004282133A/en
Application granted granted Critical
Publication of JP4352730B2 publication Critical patent/JP4352730B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an automatic white balance processor and method, and an image signal processor with a simple configuration capable of carrying out white balance processing with excellent color reproducibility. <P>SOLUTION: The automatic white balance processor is characterized in to include: an extracted pixel determination means 12 for receiving a luminance signal and a color difference signal obtained by conversion from each color component on the basis of an output of an imaging device with color filters provided thereto into a luminance - color difference color space and determining a pixel within a prescribed color range and a prescribed luminance range as an extracted pixel; a color coefficient calculation means 14 for using each color component of the pixel determined to be the extracted pixel by the extracted pixel determination means 12 to calculate a color coefficient for the white balance processing; and a white balance adjustment means 11 for adjusting white balance through linear processing using the color coefficient applied to each color component. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、イメージセンサを用いた撮像装置のホワイトバランス調整に好適なオートホワイトバランス処理装置及び方法並びに画像信号処理装置に関する。
【0002】
【従来の技術】
近年、被写体像をイメージセンサ等の光電変換素子によって電気信号に変換して画像信号を得る電子カメラが普及している。このような電子カメラにおいては、光学系を通過した被写体の光学像は、撮像素子であるイメージセンサによって電気信号に変換される。イメージセンサからの電気信号は画像信号として所定の画像信号処理が施される。画像信号処理としては、画像信号に対するガンマ補正処理、色分離処理及びホワイトバランス処理等の処理があり、これらの処理を経て所定のフォーマットの画像信号が得られる。
【0003】
なお、ガンマ補正処理は、表示系における画像信号のレベルと透過率(輝度)との関係の非線形性を補正するための処理である。また、ホワイトバランス処理は、白色を正しく再現するための処理である。
【0004】
電子カメラにおいては、イメージセンサにカラーフィルタを配置することでカラー画像が得られる。カラーフィルタによって例えばR(赤),G(緑),B(青)光をイメージセンサに入射させることで、R,G,B画像信号が得られる。ところが、同一被写体(同一物色)を撮像した場合でも、イメージセンサから得られたR,G,B信号のレベルは、光源(環境色)の色温度に応じて個々に変動してしまう。そこで、白色を正しく再現すると共に色のバランスを適切に再現するために、ホワイトバランス処理が行われている。
【0005】
ホワイトバランス処理はR,G,B画像信号に対して、夫々所定の係数(色係数)を乗算することで行われる。これにより、R,G,B信号のレベルを個々に調整して、色のバランスを適正なものにするのである。
【0006】
【発明が解決しようとする課題】
ところで、ホワイトバランス調整は、上述したように、白を正確に再現するためのものである。即ち、白の被写体を撮像した場合の出力画像信号を画面上に映出させた場合に、正しく白い被写体を再現させるためのものである。なお、ホワイトバランス調整では、白の再現性だけでなく、色バランスの調整も同時に行っている。放送用テレビカメラ等においては、ホワイトバランス調整のために、環境色を基準色(灰色)に設定するような照明を施すようになっている。そして、この状態で撮像して得た画像信号に対してホワイトバランス処理を行うことにより、確実な色バランス調整を可能にしている。
【0007】
ところが、カムコーダやデジタルカメラを個人的に使用する場合等においては、環境(照明)色を基準色に設定することは実質的に困難である。そこで、パーソナルな電子カメラにおいては、撮像した画像からホワイトバランス調整用の色係数を算出することで、自動的なホワイトバランスの調整を可能にしている。
【0008】
しかしながら、当然ながら、基準色ではない通常の撮像画像から求めた色係数を用いたオートホワイトバランスでは、色バランスの再現性が十分であるとは言えないという問題があった。しかも、色係数の算出のための演算量は極めて大きく、デジタルスチルカメラ等のCPUを搭載したシステムでなければある程度の色再現性を得ることも困難である。
【0009】
本発明はかかる問題点に鑑みてなされたものであって、ワイヤードロジックによる色調整を可能にすると共に、色再現性を著しく向上させることができるオートホワイトバランス処理装置及び方法並びに画像信号処理装置を提供することを目的とする。
【0010】
【課題を解決するための手段】
本発明に係るホワイトバランス処理装置は、カラーフィルタが配設された撮像素子の出力に基づく各色成分から輝度−色差色空間への変換によって得られた輝度信号及び色差信号が与えられ、所定の色範囲及び所定の輝度範囲の画素を抽出画素として判定する抽出画素判定手段と、前記抽出画素判定手段によって抽出画素と判定された画素の前記各色成分を用いてホワイトバランス処理のための色係数を算出する色係数算出手段と、前記各色成分に対する前記色係数を用いた線形処理によってホワイトバランスを調整するホワイトバランス調整手段とを具備したことを特徴とする。
【0011】
このような構成によれば、撮像素子の出力に基づく各色成分は輝度−色差色空間の輝度信号及び色差信号に変換された後抽出画素判定手段に与えられる。抽出画素判定手段は、所定の色範囲及び所定の輝度範囲の画素を抽出画素として判定する。これにより、例えば、無彩色の画素を確実に抽出画素として判定することができる。色係数算出手段は、抽出画素判定手段によって抽出画素と判定された画素の各色成分を用いてホワイトバランス処理のための色係数を算出する。これにより、色係数は極めて高精度のものとなる。この色係数を用いて、ホワイトバランス調整手段は各色成分に対する線形処理を行ってホワイトバランスを調整する。こうして、色再現性に極めて優れたホワイトバランス調整が可能となる。
【0012】
また、前記抽出画素判定手段は、前記所定の色範囲内の画素について前記所定の輝度範囲内の画素であるか否かを判定して前記抽出画素を決定することを特徴とする。
【0013】
このような構成によれば、所定の色範囲内の画素であるか否かの判定が所定の輝度範囲内の画素であるか否かの判定の前に行われる。先に輝度範囲に基づいて画素を選択すると、色範囲に基づく画素の選択時に、高輝度の無彩色画素の多くが選択から除外されてしまう。このため、色係数の算出時の母数が小さくなって色係数の信頼性が低くなる。これに対し、先の色範囲に基づいて画素を選択した後、選択した画素について輝度範囲内の画素であるか否かを判定すれば、色係数の算出時の母数として十分な数を確保することができ、色係数の信頼性を向上させることができる。
【0014】
また、前記抽出画素判定手段は、前記所定の輝度範囲内の画素であるか否かの判定に代えて、輝度値順の所定番目から所定数の画素を前記抽出画素として決定することを特徴とする。
【0015】
このような構成によれば、輝度値の所定番目から所定数の画素を抽出画素として決定しているので、色係数の算出時の母数が小さくなることを防止することができ、色係数の信頼性を向上させることができる。
【0016】
また、前記抽出画素判定手段は、前記所定の色範囲内の画素について輝度の分布を求める輝度分布検出手段と、前記輝度分布中の所定の輝度値番目から所定数の画素を前記抽出画素として決定する輝度範囲判定手段とを具備したことを特徴とする。
【0017】
このような構成によれば、輝度分布検出手段は所定の色範囲内の画素について輝度の分布を求める。これにより、所定の輝度値番目から所定数の画素の選択が容易となる。
【0018】
また、前記輝度分布検出手段は、所定の輝度上限値及び下限値の範囲内において輝度の分布を求めることを特徴とする。
【0019】
このような構成によれば、抽出画素として選択される可能性が極めて少ない画素を、輝度の分布を作成する時点において除外していることから、抽出画素として選択すべき画素の精度を向上させることができる。
【0020】
また、前記輝度分布検出手段は、所定輝度範囲毎に分割して輝度の分布を求め、前記輝度範囲判定手段は、前記所定輝度範囲単位で前記抽出画素を決定することを特徴とする。
【0021】
このような構成によれば、所定輝度範囲毎の分割単位で輝度の分布を求めればよく、輝度分布を求めるための回路規模を縮小することができる。
【0022】
また、前記抽出画素判定手段は、輝度値として採り得る値の最大値よりも所定輝度だけ小さい値以下の輝度値の画素を前記抽出画素として決定することを特徴とする。
【0023】
このような構成によれば、各色成分のうちの所定の色成分が飽和状態にある場合にこの飽和状態の色成分が色係数の算出に使用されることを阻止することができ、色係数の精度を向上させることができる。
【0024】
また、前記色係数算出手段は、前記ホワイトバランス調整手段によるホワイトバランスの調整前の各色成分を色係数の算出に用いることを特徴とする。
【0025】
このような構成によれば、色係数の算出をフィードフォワード構成によって得ることができる。
【0026】
また、前記色係数算出手段は、前記ホワイトバランス調整手段によるホワイトバランスの調整後の各色成分を色係数の算出に用いることを特徴とする。
【0027】
このような構成によれば、色係数の算出をフィードバック構成によって得ることができる。
【0028】
また、前記色係数算出手段は、前記抽出画素と判定された画素の前記各色成分を用いた前記色係数を所定期間で目標値に収束させることを特徴とする。
【0029】
このような構成によれば、色係数は所定の期間で目標値に収束する。従って、色係数を用いたホワイトバランス処理によって画像が急変することを防止することができ、画質を向上させることができる。
【0030】
また、本発明に係るホワイトバランス処理方法は、カラーフィルタが配設された撮像素子の出力に基づく各色成分から輝度−色差色空間への変換によって得られた輝度信号及び色差信号が与えられ、所定の色範囲及び所定の輝度範囲の画素を抽出画素として判定する抽出画素判定手順と、前記抽出画素判定手順において抽出画素と判定された画素の前記各色成分を用いてホワイトバランス処理のための色係数を算出する色係数算出手順と、前記各色成分に対する前記色係数を用いた線形処理によってホワイトバランスを調整するホワイトバランス調整手順とを具備したことを特徴とする。
【0031】
このような構成によれば、撮像素子の出力に基づく各色成分は輝度−色差色空間の輝度信号及び色差信号に変換され、抽出画素判定手順において、所定の色範囲及び所定の輝度範囲の画素が抽出画素として判定される。これにより、例えば、無彩色の画素が抽出画素として確実に判定される。色係数の算出には、抽出画素判定手順において抽出画素と判定された画素の各色成分が用いられる。これにより、色係数は極めて高精度のものとなる。ホワイトバランス調整手順では、各色成分に対する色係数を用いた線形処理を行ってホワイトバランスが調整される。こうして、色再現性に極めて優れたホワイトバランス調整が可能となる。
【0032】
また、前記抽出画素判定手順は、前記所定の色範囲内の画素について前記所定の輝度範囲内の画素であるか否かを判定して前記抽出画素を決定することを特徴とする。
【0033】
このような構成によれば、所定の色範囲内の画素であるか否かの判定が所定の輝度範囲内の画素であるか否かの判定の前に行われることから、高輝度の無彩色画素の多くが選択から除外されてしまうことを防止することができる。これにより、色係数の算出時の母数を十分に確保して色係数の信頼性を維持する。
【0034】
また、本発明に係る画像信号処理装置は、カラーフィルタが配設された撮像素子の出力に基づく各色成分から輝度−色差色空間への変換を行って輝度信号及び色差信号を得るマトリクス手段を具備し、前記マトリクス手段から前記輝度信号及び色差信号を用いて前記ホワイトバランス処理装置又は前記ホワイトバランス処理方法によってホワイトバランスを調整することを特徴とする。
【0035】
このような構成によれば、ホワイトバランス処理装置及びホワイトバランス処理方法によるホワイトバランスの調整によって色再現性に極めて優れた画像信号処理が可能となる。
【0036】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態について詳細に説明する。図1は本発明の第1の実施の形態に係る画像信号処理装置を示すブロック図である。
【0037】
本実施の形態においては、撮像して得た画像信号から所定の色範囲の画素を抽出し、更に抽出した画素のうち所定の輝度範囲の画素のみを取り出して、オートホワイトバランス処理の色係数の算出に用いることにより、色の再現性を向上させるようになっている。
【0038】
被写体からの光学像は、カラーフィルタを含む図示しない光学系を介して図示しないイメージセンサに入射される。イメージセンサは入射光を光電変換して、被写体の光学像に基づく画像信号を発生する。この画像信号は図1のAFE(アナログフロントエンド)回路1に供給されるようになっている。AFE回路1は図示しない増幅器及びアナログ/デジタル変換器等によって構成されており、入力された画像信号をデジタル信号に変換してOBクランプ回路2に出力する。
【0039】
OBクランプ回路2は、入力された画像信号を適切な黒色の基準レベルに調整するための回路である。イメージセンサには予め決められた数個の画素が遮光板等によって遮光されてOB(オプティカルブラック)領域に設定されている。OBクランプ回路2はこのOB領域の画素の画素信号レベルに基づいて、画像信号の黒色レベルを調整するようになっている。OBクランプ回路2の出力はデータレンジ補正回路3に与えられる。データレンジ補正回路3は、入力されたデジタル画像データのレンジを補正してCFA色補間回路4に出力する。
【0040】
イメージセンサに設けられたカラーフィルタは、例えば、R,G,Bフィルタが適宜の配列規則に従って、循環的に配列されたものである。これにより、イメージセンサの各画素は、個々にR画素、G画素又はB画素を構成する。CFA色補間回路4は、複数ライン(例えば3ライン)分の画像信号を保持するラインバッファ(図示せず)を有しており、隣接した位置のR,G,B画素を用いた演算処理によって、各画素位置でR,G,B信号を得るための補間処理を行う。CFA色補間回路4からのR,G,B信号はマトリクス演算器5に供給される。
【0041】
マトリクス演算器5は入力されたR,G,B信号をYUV′信号に変換するためのものである。マトリクス演算器5は例えば3×3のマトリクス演算によって、R,G,B信号をYUV′信号に変換し、(輝度)信号Yをハイパスフィルタ(HPF)6に与え、色差信号U,V′をローパスフィルタ(LPF)7に与えるようになっている。HPF6は輝度信号Yの高域成分を通過させて高域強調による輪郭補償等の画質補正を行ってマトリクス演算器9に出力する。また、LPF7は入力された色差信号U,V′を低域のみに制限して色抑制回路8に出力する。
【0042】
本実施の形態においては、色抑制回路8は色差信号UV′の色成分を抑制してマトリクス演算器9に出力するようになっている。画素信号に対する利得が比較的大きい場合には、量子化ノイズ等の影響によって画素信号の欠陥が目立ってしまう。そこで、暗い部分については色に対する人間の目の感度が比較的低いことを利用して、比較的輝度が低い画素(暗い部分)の色成分を抑制し、又はモノクロモードにすることによって、画素の欠陥を目立たなくなるようにしている。
【0043】
本実施の形態においては、YUV′信号に変換した画像信号を再びR,G,B信号に戻すようになっている。マトリクス演算器9は入力されたYUV′信号をマトリクス処理してR1 ,G1 ,B1 信号に変換した後マトリクス演算器10に出力する。マトリクス演算器10は入力されたR1 ,G1 ,B1 信号に対してマトリクス処理を施して色調整し、色調整後のR2 ,G2 ,B2 信号をオートホワイトバランス回路11に出力するようになっている。オートホワイトバランス回路11は、後述するように、AWB用係数算出回路4からオートホワイトバランス調整用の色係数が与えられ、入力されたR2 ,G2 ,B2 信号に対して、色係数を乗算するマトリクス処理によって各色レベルを調整を行い、ホワイトバランスを適正なものにするようになっている。オートホワイトバランス回路11によってオートホワイトバランス調整されたR3 ,G3 ,B3 信号はユーザ色調整回路15に出力される。
【0044】
ユーザ色調整回路15は、ユーザ操作に基づく外部信号が入力され、この外部信号に基づいて入力されたR3 ,G3 ,B3 信号のレベルを調整することで、色バランスをユーザの好みに調整するようになっている。ユーザ色調整回路15からの色調整後のR4 ,G4 ,B4 信号はユーザデジタルゲイン設定回路16に供給される。ユーザデジタルゲイン設定回路16は、ユーザ操作に基づく外部信号が入力され、この外部信号に基づいて入力されたR4 ,G4 ,B4 信号に対するゲインを調整することで、輝度をユーザの好みに調整するようになっている。ユーザデジタルゲイン設定回路16からの輝度調整後のR5 ,G5 ,B5 信号はガンマ補正回路17に供給される。
【0045】
ガンマ補正回路17は入力されたR5 ,G5 ,B5 信号に所定の非線形処理を施してガンマ補正した後、マトリクス演算器18に出力する。マトリクス演算器18は、入力されたR,G,B信号をYUV信号に変換するためのものである。マトリクス演算器18は例えば3×3のマトリクス演算によって、R,G,B信号をYUV信号に変換して出力するようになっている。
【0046】
次に、図2及び図3を参照してオートホワイトバランス処理について説明する。
【0047】
一般的なホワイトバランス処理では、画像全体の平均の色は無彩色であるという仮説をもとに色係数が生成されている。この手法は画像にまんべんなく色がついているようなシーンには有効であるが、ある色に偏ったシーンでは期待した結果は得られず、偏った色を無彩色に引き込むような処理になってしまう。画像の平均的な色を特定の色に偏らせるのに影響を与えやすい画素(以下、偏り影響色という)としては、例えば、肌色、草木の緑色、青空の色等が考えられる。そこで、本実施の形態においては、画像中からこれらの偏り影響色の画素を除外して残った画素を平均化した場合には画像の平均的な色は無彩色になるものと考え、画像中の偏り影響色を除く画素を色係数の生成に用いるようにしている。
【0048】
ところで、環境色(照明光)が変化すると、イメージセンサによって撮像されて得られた画像の色も変化する。このように環境色が変化する場合でも、偏り影響色を除く色、即ち、無彩色(灰色)は色空間上の所定の範囲内に存在する。図2は偏り影響色を除く無彩色のYUV色空間上の分布範囲を斜線部によって示している。ところが、画像の輝度によっては、偏り影響色であっても図2の斜線部分の範囲内に存在することがある。
【0049】
一方、光源(照明光)の照度の変化によって各色の輝度を調べると、無彩色のうち白を含む明るい灰色は比較的輝度が高いことが判明した。そこで、本実施の形態においては、抽出する画素の色範囲として図2の斜線部分を設定すると共に、この色範囲内の画素のうち輝度が所定の輝度範囲の画素であるか否かによって、色係数の演算に用いる画素(以下、抽出画素という)を決定するようになっている。図3は抽出画素を抽出する輝度範囲を斜線にて示している。
【0050】
本実施の形態においては、色係数の算出に用いる抽出画素は、(オートホワイトバランス)用抽出画素判定回路12によって判定するようになっている。図4は図1中のAWB用抽出画素判定回路12の具体的な構成を示すブロック図である。
【0051】
図2では斜線部分の範囲(以下、抽出色範囲という)は、UV色空間上の直線U=umax、V′=vmax、V′=−mU+uvmax、V′=−nU+uvmin(−m,−nは夫々V′軸上の点uvmax,uvminを通過する直線の傾き)によって囲まれる範囲である。即ち、図2の例では、抽出色範囲は、下記(1)式を満足するように設定されている。なお、図2ではm,nは1である。
【0052】
U≦umax
V′≦vmax
uvmin≦{(m×U)+(n×V′)}≦uvmax …(1)
また、図3において、斜線にて示す抽出画素の抽出範囲(以下、抽出輝度範囲という)は、下記(2)式を満足するように設定される。
【0053】
Ymin≦Y≦max …(2)
図4において、範囲設定回路21及び色範囲比較回路22には、マトリクス演算器5からの色差信号U,V′が入力される。また、位置情報出力回路25には、範囲設定回路21及び色範囲比較回路22に入力されている色差信号U,V′に対応した画素の画面上の画素位置を示す位置情報が入力される。範囲設計回路21は上記(1)式の(m×U)+(n×V′)を算出して色範囲比較回路22に出力する。
【0054】
色範囲比較回路22は、抽出色範囲を特定する情報であるumax、vmax、uvmin及びuvmaxの値が与えられており、入力された色差信号U,V′が上記(1)式を満足するか否かを判定する。色範囲比較回路22からの判定結果は輝度信号抽出回路23に与えられる。輝度信号抽出回路23には、範囲設定回路21及び色範囲比較回路22に入力されている色差信号U,V′に対応した輝度信号Yがマトリクス演算器5から与えられている。輝度信号抽出回路23は、色範囲比較回路22から上記(1)式を満足した色差信号U,V′が入力されたことを示す判定結果が得られた場合にのみ、この色差信号U,V′に対応する輝度信号Yを輝度範囲比較回路24に出力するようになっている。
【0055】
輝度範囲比較回路24は、抽出輝度範囲を特定する情報であるYmin,Ymaxの値が与えられており、入力された輝度信号Yが上記(2)式を満足するか否かを判定する。輝度範囲比較回路24からの判定結果は位置情報出力回路25に与えられる。
【0056】
位置情報出力回路25は、輝度範囲比較回路24から上記(2)式を満足した輝度信号Yが入力されたことを示す判定結果が得られた場合にのみ、この輝度信号Yの画面上の画素位置を示す位置情報を出力するようになっている。
【0057】
このように、AWB用抽出画素判定回路12は、マトリクス演算器5の出力のうち抽出色範囲内の画素、即ち、無彩色と考えられる画素であって、抽出輝度範囲内の画素、即ち、輝度レベルが比較的高い画素について、色係数の算出に用いる抽出画素と判定して、その画素位置を示す位置情報をAWB用画素データ蓄積回路13に出力するようになっている。
【0058】
AWB用画素データ蓄積回路13は、マトリクス演算器10の出力R2 ,G2 ,B2 信号が与えられて、位置情報で与えられる画素位置のR2 ,G2 ,B2 信号を例えば少なくとも1画面分以上記憶保持してAWB用係数算出回路14に出力する。
【0059】
AWB用係数算出回路14は、AWB用画素データ蓄積回路13に蓄積されているR2 ,G2 ,B2 信号を読み出して、各色信号毎に例えば1画面分積分する。即ち、AWB用係数算出回路14は、ΣR,ΣG,ΣBを求める。次に、AWB用係数算出回路14は、ホワイトバランス処理用の色係数Rc,Gc,Bcを下記(3)式に基づいて算出する。
【0060】
Rc=ΣG/ΣR
Gc=ΣG/ΣG=1.0 (3)
Bc=ΣG/ΣB
なお、色係数Gcは常に1であるので、算出する必要はない。
AWB用係数算出回路14は上記(3)式に基づいて算出した色係数をオートホワイトバランス回路11に出力する。オートホワイトバランス回路11は、マトリクス演算器10からのR2 ,G2 ,B2 信号に対して下記(4)式のマトリクス演算によって、ホワイトバランスを調整したR3 ,G3 ,B3 信号を得るようになっている。
【0061】
次に、このように構成された実施の形態の動作について説明する。
【0062】
所定の物色の被写体は所定の環境色の照明光によって照明されているものとする。被写体の光学像はカラーフィルタを含む光学系を介してイメージセンサに入射され、光電変換されてR,G,B信号が得られる。AFE回路1に入力されるR,G,B信号は、被写体の物色、被写体の照明光(環境色)及びフィルタの分光特性に基づく色光に対応したものとなっている。AFE回路1は入力されたR,G,B信号をデジタル信号に変換してOBクランプ回路1に出力する。OBクランプ回路1は、入力された画素信号の黒レベルを黒色の適切なレベルに設定してデータレンジ補正回路3に出力する。データレンジ補正回路3によって、R,G,B信号は適正なレンジに補正されて画像の明るさが調整される。更に、R,G,B信号はCFA色補間回路4において色補間が行われて、各画素位置におけるR,G,B画像信号が得られる。
【0063】
本実施の形態においては、YUV′色空間においてオートホワイトバランス用の色係数を算出すると共に画質補正を行うために、色補間されたR,G,B信号は、先ずマトリクス演算器5によって、YUV′信号に変換される。輝度信号YはHPF6によって高域強調されてマトリクス演算器9に供給され、色差信号UV′はLPF7によって低域に帯域制限されて色抑制回路8に供給される。色抑制回路8は量子化ノイズ等のノイズの影響を低減するために、画像の暗い部分について色を抑制してマトリクス演算器9に出力する。
【0064】
AWB用抽出画素判定回路12は、マトリクス演算器5から各画素の色差信号U,V′及び輝度信号Yが順次与えられ、上記(1)式の演算によって、先ず、入力された色差信号U,V′が図2の抽出色範囲内の色を与えるものであるか否かを判定し、そうである場合には、更にその画素について輝度信号Yが上記(2)式及び図3に示す抽出輝度範囲の輝度であるか否かを判定する。AWB用抽出画素判定回路12は、図2の抽出色範囲内の色であって、図3に示す抽出輝度範囲内の画素については、画面内の画素位置を示す位置情報をAWB用画素データ蓄積回路13に出力する。AWB用画素データ蓄積回路13は、少なくとも1画面分以上の画素について、入力された位置情報を記憶保持して出力する。
【0065】
一方、マトリクス演算器5からのYUV′信号は、色バランスの調整のために、マトリクス演算器9によって一旦R,G,B信号に戻す。マトリクス演算器9は、入力されたYUV′信号に対するマトリクス処理によって、R1 ,G1 ,B1 信号を得て、色調整用のマトリクス演算器10に出力する。マトリクス演算器10は、入力されたR1 ,G1 ,B1 信号に対するマトリクス処理によって、カラーフィルタの分光特性を補正して、R,G,Bフィルタの特性が急峻な場合と同様な特性のR2 ,G2 ,B2 信号を得る。このR2 ,G2 ,B2 信号はオートホワイトバランス回路11に与えられる。
【0066】
また、AWB用画素データ蓄積回路13は、抽出色範囲及び抽出輝度範囲内の条件を備えた画素の位置情報を例えば1画面分記憶保持して、マトリクス演算器10の出力R2 ,G2 ,B2 信号のうち位置情報で与えられる画素位置のR2 ,G2 ,B2 信号をAWB用係数算出回路14に出力する。AWB用係数算出回路14は、AWB用画素データ蓄積回路13に蓄積されているR2 ,G2 ,B2 信号を読み出して、各色信号毎に例えば1画面分積分する。即ち、AWB用係数算出回路14は、ΣR,ΣG,ΣBを求め、次いで、ホワイトバランス処理用の色係数Rc,Gc,Bcを上記(3)式に基づいて算出する。
【0067】
オートホワイトバランス回路11は、AWB用係数算出回路14において算出された色係数を用いて、例えば3×3の線形マトリクス処理によって、ホワイトバランスの調整を行う。これにより、入力R,G,B信号に含まれていた環境色の影響が除去される。オートホワイトバランス回路11によってオートホワイトバランス調整されたR3 ,G3 ,B3 信号はユーザ色調整回路15に出力される。
【0068】
ユーザ色調整回路15は、ユーザ操作に基づいて、色バランスをユーザの好みに調整する。更に、ユーザデジタルゲイン設定回路16は、ユーザ操作に基づいて、輝度をユーザの好みに調整する。ユーザ操作に基づいて、色調整及び輝度調整が施された画像信号はガンマ補正回路17に与えられて、ガンマ補正される。ガンマ補正された画像信号はマトリクス演算器18に与えられ、入力されたR,G,B信号をYUV信号に変換する。
【0069】
このように本実施の形態においては、オートホワイトバランスに用いる色係数は、無彩色と考えられる抽出色範囲内の画素であって、しかも、輝度が比較的高い抽出輝度範囲内の画素を用いて生成している。従って、色係数の生成に用いる画素は無彩色の画素である可能性が極めて高く、オートホワイトバランスに用いる色係数を極めて高精度に算出することができる。これにより、色再現性を向上させることが可能である。
【0070】
なお、上記実施の形態においては、抽出色範囲内の画素について抽出輝度範囲内の画素であるか否かを判定して、色係数の算出に用いる抽出画素を決定したが、逆に、抽出輝度範囲内の画素について抽出色範囲内の画素であるか否かの判定によって色係数の算出に用いる抽出画素を決定してもよい。
【0071】
ところで、本実施の形態においては、色係数の算出に用いる抽出画素として、無彩色の色である画素を選別するようにしている。上述したように、無彩色の色であっても色温度によっては、得られる色差信号UV′の色空間上の位置は変化する。そこで、抽出画素の選別には、色温度によって無彩色が変化する抽出色範囲を指定するようになっている。しかし、上述したように、無彩色以外の色であっても、輝度、彩度が高い色は抽出色範囲に入ることが考えられる。例えば、人間の肌色,青空,新緑の緑等である。この理由から輝度レベルを判定して、抽出色範囲内の色であっても輝度が高い色を除外することで、これらの無彩色以外の色を抽出画素として選別しないようにしている。
【0072】
ところで、上述したように、先に抽出輝度範囲の画素を判定して、この判定結果を用いて抽出色範囲内の画素を選別する方法も考えられる。しかしながら、人間の肌色,青空,新緑の緑は高輝度であり、このような画素は低輝度側から約85%〜約95%の範囲内に存在する可能性が高い。従って、先に抽出輝度範囲内の画素を判定し、この判定結果を利用して抽出色範囲以外の画素を除外すると、残った抽出画素の数が極めて少なくなってしまう。そうすると、上記(3)式の母数が小さくなってしまい、色係数の信頼性が低下する。
【0073】
この理由から、本実施の形態においては、先に抽出色範囲の判定を行い、この判定結果に基づいて抽出輝度範囲内の画素であるか否かを判定して抽出画素を決定している。これにより、抽出画素の画素数として十分な画素数を確保することができ、上記(3)式の母数を増やして色係数の信頼性を向上させることができる。
【0074】
なお、抽出色範囲の設定は,オートホワイトバランス処理の引き込み範囲に大きな影響を及ぼす。この理由から、抽出色範囲を予め回路に組み込むのではなく、レジスタを用いて範囲の変更を可能にし、回路使用者が撮影する環境や撮影する被写体に応じて設定する抽出色範囲を調整可能にした方がよい。
【0075】
また、上記実施の形態においては、抽出輝度範囲の上限値Ymaxは輝度値として採り得る上限値に設定していない。撮像によって得られる画像は撮影環境光によって著しく変化する。例えば,ハロゲンランプのような光源の下では、その色温度が約3000K程度と低いことから、撮像画像は赤っぽい色になりやすい。即ち、G,B信号については高輝度域の画素の数が極めて少ないのに対し、R信号については高輝度域の画素が多数存在してしまい、イメージセンサからのR,G,B信号のうちR信号のみが飽和してしまうことがある。飽和状態では、実際の赤色の輝度レベルとR信号の数値との線形性は崩れている。従って、輝度レベルが飽和している画素を色係数の算出に用いると、色再現性の精度が低下してしまう。そこで、輝度レベルが飽和してしまう可能性が高い輝度範囲の画素を色係数の算出から除外するために、抽出輝度範囲の上限値Ymaxを輝度値として採り得る上限値よりも低い値に設定している。
【0076】
なお、上記実施の形態においては、画像によっては色係数として極端に大きいか又は小さい値が出力される可能性がある。この場合には、予め設定された初期値を色係数として用いるようにすることも考えられる。
【0077】
図5は本発明の第2の実施の形態の画像信号処理装置において採用されるAWB用抽出画素判定回路の構成を示すブロック図である。図5において図4と同一の構成要素には同一符号を付して説明を省略する。本実施の形態における他の構成は図1と同様である。
【0078】
図5のAWB用抽出画素判定回路31は輝度範囲比較回路24に代えて輝度範囲比較回路32を採用した点が図4のAWB用抽出画素判定回路24と異なる。
【0079】
ホワイトバランス調整用の色係数の算出に用いる画素(抽出画素)の数が少ない場合には、上述したように、(3)式の母数が小さくなり、色係数の信頼性が低下する。そこで、本実施の形態においては、抽出輝度範囲を輝度の絶対値で指定するのではなく、輝度の分布を検出し、輝度が所定の分布範囲内に存在する一定数の画素を抽出画素として選択するようになっている。
【0080】
図6は図5中の輝度範囲比較回路32の具体的な構成を示すブロック図である。輝度範囲比較回路32は、ヒストグラム作成回路35及び輝度範囲判定回路36によって構成されている。ヒストグラム作成回路35には、マトリクス演算器5(図1参照)から輝度信号Yが供給されると共に、色範囲比較回路22から入力された輝度信号Yが抽出色範囲内の画素に基づくものであるか否かの判定結果が与えられる。ヒストグラム作成回路35は、入力された輝度信号Yのうち抽出色範囲内の画素に基づく信号についてその輝度値の分布を求める。図7は横軸に輝度値Yをとり縦軸に画素数をとって、ヒストグラム作成回路35が作成するヒストグラムの例を示している。
【0081】
ヒストグラム作成回路35が作成した輝度値と画素数との関係を示す度数分布の情報は輝度範囲判定回路36に与えられる。輝度範囲判定回路36は、与えられた輝度分布のうち最低輝度の画素から数えて画素数がYst%〜Yed%の範囲内の画素を抽出輝度範囲の画素として判定するようになっている。
【0082】
図8は輝度範囲判定回路36の動作を説明するための説明図である。なお、図8の例ではYst,Yedは夫々85%,95%に設定されている。
【0083】
図8の斜線部は、ヒストグラム上の最低輝度の画素から数えて85%目の画素から95%目の画素が存在する範囲(抽出輝度範囲)を示している。即ち、図8の例では、抽出色範囲内の画素のうちの10%の画素で、比較的輝度値が高い画素が抽出輝度範囲の画素として選択される。
【0084】
輝度範囲判定回路36は、抽出色範囲内の画素のうち輝度値が低い画素から数えてYst%目の画素(下限輝度画素)を検出すると共に、輝度値が低い画素から数えてYed%目の画素(上限輝度画素)を検出する。
【0085】
例えば、輝度値が8ビットで表現されるものとすると、ヒストグラム作成回路35は、最低輝度0から最高輝度255に夫々対応した256個のレジスタを有し、抽出色範囲内の各画素の輝度値に応じて各レジスタにその画素の情報を蓄積する。そして、輝度範囲判定回路36は、最低輝度に対応したレジスタから順に画素数を計数し、これにより、Yst%目の画素からYed%目の画素までを判定するようになっている。
【0086】
このように本実施の形態においては、抽出輝度範囲として抽出色範囲内の画素から一定%の画素を選択して抽出画素としており、上記(3)式の母数を確保して、色係数の信頼性を向上させている。
【0087】
他の構成及び作用効果は第1の実施の形態と同様である。
【0088】
また、本実施の形態においても、抽出色範囲内の画素であるか否かの判定結果を用いて抽出輝度範囲内の画素を判定する点、上限輝度Yedとして輝度値として採り得る最大値を設定しない点等は第1の実施の形態と同様である。
【0089】
図9は本発明の第3の実施の形態に採用される輝度範囲比較回路を示すブロック図である。本実施の形態は輝度範囲比較回路の判定方法が図5の第2の実施の形態と異なるのみである。本実施の形態においては、輝度範囲比較回路はヒストグラム作成回路42及び輝度範囲判定回路43によって構成されている。
【0090】
上記第2の実施の形態においては、ヒストグラム作成回路35(図6参照)は、輝度値が8ビット(0〜255)で表現されている場合には、256個のカウンタ(レジスタ)を用意し、0〜255の輝度の値毎に画素の数をカウントしてヒストグラムを作成する。従って、必要なカウンタ数が極めて多く回路規模が膨大となる。そこで、本実施の形態においては、輝度値の1精度毎にヒストグラムを作成するのではなく、所定の分割範囲毎にヒストグラムを作成することによって、回路規模を縮小させるようになっている。
【0091】
例えば、採り得る輝度値(0〜255)を16分割すると、0〜15,16〜31,・・・・・,240〜255と16階単位の範囲にすることができる。同様に、採り得る輝度値を8分割にすると、32段階単位に分割することができる。分割数を小さくすると回路規模を縮小することができる反面ヒストグラムの精度が低下してしまう。例えば、8分割を行った場合には、ヒストグラム精度が悪化し、正しく85%(Yst)〜95%(Yed)の抽出画素を算出することがきない可能性がある。
【0092】
ところで、輝度範囲比較回路は、抽出色範囲内の画素のうち輝度が低い方向から約85%〜約95%の画素を選別することを目的としている。ところが、例えばヒストグラムを16分割する例では,最終的には低輝度側のうち例えば0〜15,16〜31の範囲はヒストグラムをとってもさして重要な範囲ではない。また、同様に、抽出色範囲内の全画素のうちの上述した85%(Yst)〜95%(Yed)の10%の画素が、輝度値240〜255(略真っ白)の範囲に集中することも考えにくい。もし有ったとすれば,それは適正な露出制御ができないことが考えられる。
【0093】
これらの点を考慮して、本実施の形態におけるヒストグラム作成回路42は、重要でない範囲はヒストグラムを作成しないことによって回路規模を縮小するようになっている。
【0094】
ヒストグラム作成回路42は、輝度値0〜255のうち、精度良く輝度ヒストグラムを作成する範囲としてヒストグラム上限の輝度値とヒストグラム下限の輝度値をレジスタに指定する。そして、抽出色範囲内の画素であってもヒストグラム下限よりも小さい輝度値の画素及びヒストグラム上限よりも大きい輝度値の画素について、レジスタに登録しない。なお、ヒストグラム上限及びヒストグラム下限の指定は、輝度値の採り得る範囲0〜255の1ステップ単位で指定可能である。
【0095】
例えば、ヒストグラム作成回路42は、ヒストグラム上限として220〜240の範囲内の例えば230の値を指定し,ヒストグラム下限として50〜100の範囲内の例えば71の値を指定する。そして、ヒストグラム作成回路42は、ヒストグラム下限とヒストグラム上限との間の範囲を8〜16分割例えば10分割する。この場合には、ヒストグラム作成回路42は、71〜230の範囲を等分に16ステップずつ10分割してもよく、また、明るい方を広く、暗い方を狭く分割してもよい。
【0096】
ヒストグラム作成回路42は、こうして指定された分割輝度毎に、抽出色範囲内の画素についてのヒストグラム作成を行う。ヒストグラム作成回路42が作成したヒストグラムの情報は輝度範囲判定回路43に与えられる。輝度範囲判定回路43は、抽出率の情報が与えられており、ヒストグラム中の輝度の最高値から抽出率で示される個数の画素を選択して、選択した画素が抽出輝度範囲の画素であることを示す判定結果を出力するようになっている。
【0097】
次に、このように構成された実施の形態における抽出輝度範囲の画素の選択方法について説明する。
【0098】
いま、ヒストグラム作成回路42が、輝度値として採り得る0〜255のうち輝度値71〜230の範囲を等分に16ステップずつ10分割した状態で、抽出色範囲内の画素の輝度ヒストグラムを作成するものとする。また、輝度範囲判定回路43には抽出率として20%が指定されているものとする。
【0099】
輝度範囲判定回路43は、先ず、ヒストグラムに登録されている画素のうち輝度が上位のものから総画素数の20%の個数の画素が10分割されたヒストグラムのいずれの分割領域に属するかを検索する。いま、例えば、10分割されたヒストグラムが下記表1によって示されるものとする。また、ヒストグラムに登録された総画素数が1000個であるものとする。
【0100】

Figure 2004282133
輝度範囲判定回路43はヒストグラムに登録されている総画素数(1000個)のうち抽出率で示される上位20%の画素を抽出画素と判定する。この場合には、1000×20%=200個の画素が選択されることになる。
【0101】
輝度範囲判定回路43は、先ず、ヒストグラムに登録されている全画素数を求める。輝度範囲判定回路43は、ヒストグラム作成回路42によるヒストグラムの作成時に、抽出色範囲の画素数をカウントすることでヒストグラムの完成と同時に総画素数を取得することができる。そして、輝度範囲判定回路43は総画素数×抽出率で抽出する画素数を求める。次に、輝度範囲判定回路43は、ヒストグラムの分割された各分割領域毎に輝度値が高い領域から順に画素数を評価して200個に到達する領域を求める。
【0102】
上記表1の例においては、最上位ブロックは60個であり200個に満たない。次ブロックの画素数を加算すると60個+120個=180個である。更に、次ブロックの画素数を加算すると180個+150個=330個となり、200個を越える。即ち、輝度の上位からの画素数が抽出率に到達した領域は輝度値が201〜210の範囲の分割領域である。そこで、輝度範囲判定回路43は、輝度値201を抽出画素の下限の輝度に設定する。一方、上限はヒストグラム上限の230とする。そして、輝度範囲判定回路43は、輝度下限と輝度上限、即ち、輝度値が201〜230の範囲の画素を抽出輝度範囲の画素とする判定結果を出力する。
【0103】
このように本実施の形態においては、抽出色範囲内の画素のうちヒストグラム上限とヒストグラム下限との間の輝度値の画素のみによってヒストグラムを作成すると共に、ヒストグラムを複数の領域に分割し、輝度値が上位の画素から抽出率で定めされた画素数の画素を分割領域毎単位で選択して、抽出画素に決定するようにしている。これにより、上記(3)式の母数として十分な数を確保すると共に、分割ステップ精度を細かくしつつ、ヒストグラムを作成する回路及び抽出画素を決定する回路の回路規模を著しく低減することが可能である。
【0104】
これにより、CPUを搭載していないシステムであっても、十分な色再現性を得ることを可能にしている。
【0105】
他の構成及び作用効果は第2の実施の形態と同様である。
【0106】
なお、上記第2の実施の形態においては、抽出輝度範囲は輝度値が低い方から数えて85%目〜95%目の画素に設定したが、第3の実施の形態においては、ヒストグラムに登録された画素のうち輝度が高い順に80%以下〜100%の画素に設定されている。上限を100%に設定していても、ヒストグラム上限として輝度95%までの範囲に制限していることから、上述した飽和の問題は回避することができる。また、逆に、ヒストグラム下限についても予め制限していることから、第2の実施の形態における画素の範囲の下限85%を本実施の形態においては80%にしている。
【0107】
なお、80%という値は抽出率20%を指定することが得られており、輝度範囲判定回路43に与える抽出率を変更するだけで抽出する画素の範囲を変化させることができ、自由度が高い。また、よりステップ精度を細かくしたければ、ヒストグラムの下限を上げればよいことは明らかである。なお、第2の実施の形態における抽出輝度範囲を画素数が85%目〜95%目の範囲に設定している点を考慮すると、ヒストグラムの下限を相当上げても問題ないことは明らかである。
【0108】
図10は本発明の第4の実施の形態に採用される画像信号処理装置のホワイトバランス処理を示す説明図である。本実施の形態は図1の画像信号処理装置と同様の構成によって実現可能である。本実施の形態は動画時のホワイトバランス処理に適用したものである。
【0109】
図10における輝度ヒストグラム作成処理51、抽出輝度範囲算出処理52及び抽出画素位置取得処理53は図1中のAWB用抽出画素判定処理12に実現可能であり、抽出画素積算処理54はAWB用画素データ蓄積処理13によって実現可能であり、色係数算出処理55はAWB用係数算出回路14によって実現可能である。
【0110】
ところで、上記各実施の形態においては、画像中の情報から無彩色を検出し、無彩色の画素を利用して色係数を算出することで、ホワイトバランスによる色再現性を向上させる手法を説明した。しかし、動画時においては、上記各実施の形態におけるAWB用係数算出回路14によって算出した色係数を用いて直ちにホワイトバランス処理を実行すると、画像が急激に変化して画質が劣化したように見えてしまう。そこで、本実施の形態においては、動画時には、ホワイトバランス処理に用いる色係数を、上記各実施の形態におけるAWB用係数算出回路14によって得られる色係数の値に徐々に近づけていく収束処理を行うようになっている。
【0111】
1フレーム目においては、図10の処理51において、抽出色範囲の画素に対して輝度のヒストグラムを作成する。次に、処理52において、作成されたヒストグラムから上限輝度Yed及び下限輝度Ystを算出する。
【0112】
次に、2フレーム目においては、処理53において、抽出色範囲の画素について、Yst<Y<Yed(第2の実施の形態に適用させた場合)を満足する画素、抽出輝度範囲内の画素(抽出画素)を決定して、処理54において、抽出画素についてΣR,ΣG,ΣBを算出する。
【0113】
次いで、3フレーム目において、処理55において、上記(3)式から色係数Rc,Bcを算出する。そして、ホワイトバランス回路11(図1参照)に色係数を与えて、マトリクス処理を実行させる。なお、色係数算出時の割算器の速度によっては、マトリクス処理は4フレーム目に実施されることも考えられる。
【0114】
この場合において、収束動作をさせるためには画像より算出した色係数とは別にもう1つ別の色係数を用意する。そして、画像から算出した係数を目標に収東するような係数を算出して実際に各画素に適用する色係数とする。
【0115】
いま、処理55によって得られる最終的な色係数を目標色係数Rctarget,Bctargetとし、実際にホワイトバランス処理に適用する色係数を適用色係数とする。現フレームの適用色係数をRccurrent,Bccurrentとし、次フレームの適用色係数をRcnext,Bcnextとすると、次フレームの適用色係数は下記(4)式によって算出される。
【0116】
Rcnext=(Rctarget×h+Rccurrent)/(h+1)
Bcnext=(Bctarget×h+Bccurrent)/(h+1) (h=2i−1,i=0,1,2,…) …(4)
上記(4)式においては、次フレームの適用色係数Rcnext,Bcnextは、係数h(i)の値を適宜設定することによって所望の早さで目標色係数Rctarget,Bctargetに収束する。これにより、画像のホワイトバランスはフレーム毎に次第に変化し、最終的には最適な色再現性が得られるように変化させることができる。また、収束する時間を自由に設定することができる。こうして、画像が急激に変化することを防止して、画質の劣化を防止することができる。
【0117】
ところで、上記各実施の形態においては、色係数の算出に用いるR,G,B信号としては、ホワイトバランス処理前の信号を用いた。これに対し、ホワイトバランス処理後のR,G,B信号を色係数の算出に用いることも考えられる。
【0118】
図11はこの場合におけるホワイトバランス処理を図10に対応させて示す説明図である。図11において図10と同一の処理には同一符号を付して説明を省略する。
【0119】
図11中の抽出画素積算処理54′は図1のAWB用画素データ蓄積回路13にオートホワイトバランス回路11からのR3 ,G3 ,B3 信号を与えることによって実現可能であり、図11中の色係数算出回路55′は、AWB用係数算出回路14によって実現可能である。
【0120】
抽出画素位置取得処理によって得た抽出画素の画面上の位置を示す位置情報は、抽出画素積算処理54′によって色係数の算出に用いるR,G,B信号の取得に用いられる。抽出画素積算処理54′においては、オートホワイトバランス処理後のR,G,B信号が用いられる。色係数算出処理55′は、抽出画素積算処理54′によって取得された色係数を用いて、色係数を算出する。
【0121】
図11中の他の処理は図10と同様である。
【0122】
この場合において、色係数を収束動作をさせるためには、最終的な色係数を目標色係数Rctarget,Bctargetとし、実際にホワイトバランス処理に適用する現フレームの適用色係数をRccurrent,Bccurrentとし、次フレームの適用色係数をRcnext,Bcnextとすると、下記(5)式の演算によって処理55′は色係数を算出する。
【0123】
Rcnext=(Rctarget×h+Rctarget×Rccurrent)/(h+1)
Bcnext=(Bctarget×h+Bctarget×Bccurrent)/(h+1) (h=2i−1,i=0,1,2,…) …(5)
この(5)式においても、次フレームの適用色係数Rcnext,Bcnextは、係数h(i)の値を適宜設定することによって所望の早さで目標色係数Rctarget,Bctargetに収束する。これにより、画像のホワイトバランスをフレーム毎に次第に変化させ、最終的には最適な色再現性が得られるように変化させることができる。こうして、図11の例においても、画像が急激に変化することを防止して、画質の劣化を防止することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態に係る画像信号処理装置を示すブロック図。
【図2】第1の実施の形態にオートホワイトバランス処理を説明するための説明図。
【図3】第1の実施の形態にオートホワイトバランス処理を説明するための説明図。
【図4】図1中のAWB用抽出画素判定回路12の具体的な構成を示すブロック図。
【図5】本発明の第2の実施の形態の画像信号処理装置において採用されるAWB用抽出画素判定回路の構成を示すブロック図。
【図6】図5中の輝度範囲比較回路32の具体的な構成を示すブロック図。
【図7】横軸に輝度値Yをとり縦軸に画素数をとって、ヒストグラム作成回路35が作成するヒストグラムの例を示すグラフ。
【図8】輝度範囲判定回路36の動作を説明するための説明図。
【図9】本発明の第3の実施の形態に採用される輝度範囲比較回路を示すブロック図。
【図10】本発明の第4の実施の形態に採用される画像信号処理装置のホワイトバランス処理を示す説明図。
【図11】変形例におけるホワイトバランス処理を図10に対応させて示す説明図である。
【符号の説明】
5,9,10…マトリクス演算器、11…オートホワイトバランス回路、12…AWB用抽出画素判定回路、13…AWB用画素データ蓄積回路、14…AWB用係数算出回路。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an automatic white balance processing device and method suitable for white balance adjustment of an imaging device using an image sensor, and an image signal processing device.
[0002]
[Prior art]
In recent years, electronic cameras that convert a subject image into an electric signal by a photoelectric conversion element such as an image sensor to obtain an image signal have become widespread. In such an electronic camera, an optical image of a subject passing through an optical system is converted into an electric signal by an image sensor serving as an image sensor. The electric signal from the image sensor is subjected to predetermined image signal processing as an image signal. The image signal processing includes processing such as gamma correction processing, color separation processing, and white balance processing for the image signal, and an image signal in a predetermined format is obtained through these processings.
[0003]
The gamma correction process is a process for correcting a non-linearity in a relationship between a level of an image signal and a transmittance (luminance) in a display system. The white balance processing is processing for correctly reproducing white.
[0004]
In an electronic camera, a color image is obtained by disposing a color filter on an image sensor. For example, R (red), G (green), and B (blue) light are made incident on the image sensor by a color filter to obtain R, G, and B image signals. However, even when the same subject (same object color) is imaged, the levels of the R, G, and B signals obtained from the image sensor individually vary according to the color temperature of the light source (environmental color). Therefore, white balance processing is performed in order to correctly reproduce white and properly reproduce color balance.
[0005]
The white balance process is performed by multiplying each of the R, G, and B image signals by a predetermined coefficient (color coefficient). Thus, the levels of the R, G, and B signals are individually adjusted to make the color balance proper.
[0006]
[Problems to be solved by the invention]
By the way, the white balance adjustment is for accurately reproducing white as described above. That is, when an output image signal obtained when a white subject is imaged is projected on a screen, the white subject is correctly reproduced. In the white balance adjustment, not only the reproducibility of white but also the adjustment of color balance are performed at the same time. 2. Description of the Related Art In a broadcast television camera or the like, lighting for setting an environmental color to a reference color (gray) is performed for white balance adjustment. By performing white balance processing on an image signal obtained by imaging in this state, reliable color balance adjustment is enabled.
[0007]
However, when a camcorder or a digital camera is used personally, it is substantially difficult to set the environment (illumination) color as the reference color. Therefore, in a personal electronic camera, white balance adjustment can be automatically performed by calculating a color coefficient for white balance adjustment from a captured image.
[0008]
However, naturally, there is a problem that the reproducibility of the color balance cannot be said to be sufficient in the auto white balance using the color coefficient obtained from the normal captured image other than the reference color. Moreover, the amount of calculation for calculating the color coefficient is extremely large, and it is difficult to obtain a certain degree of color reproducibility unless the system is equipped with a CPU such as a digital still camera.
[0009]
The present invention has been made in view of such a problem, and has been made to provide an automatic white balance processing apparatus and method and an image signal processing apparatus that enable color adjustment by wired logic and that can significantly improve color reproducibility. The purpose is to provide.
[0010]
[Means for Solving the Problems]
A white balance processing device according to the present invention is provided with a luminance signal and a color difference signal obtained by converting each color component based on the output of an image sensor provided with a color filter into a luminance-color difference color space, Calculating a color coefficient for white balance processing using extracted pixel determining means for determining a pixel in a range and a predetermined luminance range as an extracted pixel, and each color component of the pixel determined as an extracted pixel by the extracted pixel determining means And a white balance adjusting unit that adjusts a white balance by linear processing using the color coefficient for each color component.
[0011]
According to such a configuration, each color component based on the output of the image sensor is converted into a luminance signal and a color difference signal in a luminance-color difference color space, and is then provided to the extracted pixel determination unit. The extraction pixel determination means determines a pixel in a predetermined color range and a predetermined luminance range as an extraction pixel. Thus, for example, achromatic pixels can be reliably determined as extracted pixels. The color coefficient calculation means calculates a color coefficient for white balance processing using each color component of the pixel determined as the extraction pixel by the extraction pixel determination means. As a result, the color coefficient becomes extremely accurate. Using this color coefficient, the white balance adjustment means performs linear processing on each color component to adjust the white balance. In this way, white balance adjustment with extremely excellent color reproducibility becomes possible.
[0012]
Further, the extracted pixel determination unit determines whether or not the pixels within the predetermined color range are pixels within the predetermined luminance range to determine the extracted pixels.
[0013]
According to such a configuration, the determination as to whether or not the pixel is within the predetermined color range is performed before the determination as to whether or not the pixel is within the predetermined luminance range. If a pixel is selected based on the luminance range first, when selecting a pixel based on the color range, many high-luminance achromatic pixels are excluded from the selection. For this reason, the parameter at the time of calculating the color coefficient becomes small, and the reliability of the color coefficient becomes low. On the other hand, after selecting a pixel based on the previous color range, if it is determined whether or not the selected pixel is a pixel within the luminance range, a sufficient number is secured as a parameter when calculating the color coefficient. And the reliability of the color coefficient can be improved.
[0014]
Further, the extracted pixel determination unit determines a predetermined number of pixels from a predetermined number in the order of luminance value as the extracted pixels, instead of determining whether the pixel is within the predetermined luminance range. I do.
[0015]
According to such a configuration, since a predetermined number of pixels from the predetermined number of the luminance value are determined as the extracted pixels, it is possible to prevent the parameter at the time of calculating the color coefficient from being reduced, and to reduce the color coefficient. Reliability can be improved.
[0016]
In addition, the extracted pixel determination unit determines a luminance distribution for a pixel within the predetermined color range, and determines a predetermined number of pixels from a predetermined luminance value in the luminance distribution as the extracted pixel. And a luminance range determination unit that performs the determination.
[0017]
According to such a configuration, the luminance distribution detecting means obtains a luminance distribution for pixels within a predetermined color range. This makes it easy to select a predetermined number of pixels from the predetermined luminance value.
[0018]
Further, the brightness distribution detecting means obtains a brightness distribution within a range of a predetermined brightness upper limit value and a predetermined brightness lower limit value.
[0019]
According to such a configuration, since the pixels that are extremely unlikely to be selected as the extraction pixels are excluded when the luminance distribution is created, it is possible to improve the accuracy of the pixels to be selected as the extraction pixels. Can be.
[0020]
Further, the luminance distribution detecting means obtains a luminance distribution by dividing the luminance distribution for each predetermined luminance range, and the luminance range determining means determines the extracted pixel in the predetermined luminance range unit.
[0021]
According to such a configuration, it is only necessary to obtain the luminance distribution in the unit of division for each predetermined luminance range, and the circuit scale for obtaining the luminance distribution can be reduced.
[0022]
Further, the extracted pixel determination means determines a pixel having a luminance value equal to or less than a maximum value of a value that can be taken as a luminance value by a predetermined luminance or less as the extracted pixel.
[0023]
According to such a configuration, when a predetermined color component of each color component is in a saturated state, it is possible to prevent the saturated color component from being used for calculating the color coefficient, and Accuracy can be improved.
[0024]
Further, the color coefficient calculation means uses each color component before white balance adjustment by the white balance adjustment means for calculating a color coefficient.
[0025]
According to such a configuration, the calculation of the color coefficient can be obtained by the feedforward configuration.
[0026]
Further, the color coefficient calculation means uses each color component after white balance adjustment by the white balance adjustment means for calculating a color coefficient.
[0027]
According to such a configuration, the calculation of the color coefficient can be obtained by the feedback configuration.
[0028]
Further, the color coefficient calculation means converges the color coefficient using the respective color components of the pixel determined as the extracted pixel to a target value in a predetermined period.
[0029]
According to such a configuration, the color coefficient converges to the target value in a predetermined period. Therefore, it is possible to prevent the image from being suddenly changed by the white balance processing using the color coefficient, and to improve the image quality.
[0030]
Further, the white balance processing method according to the present invention is characterized in that a luminance signal and a color difference signal obtained by converting each color component based on an output of an image sensor provided with a color filter into a luminance-color difference color space are given, An extracted pixel determining step of determining a pixel in a color range and a predetermined luminance range as an extracted pixel; and a color coefficient for white balance processing using each color component of the pixel determined to be an extracted pixel in the extracted pixel determining step. And a white balance adjustment procedure for adjusting a white balance by linear processing using the color coefficients for the respective color components.
[0031]
According to such a configuration, each color component based on the output of the image sensor is converted into a luminance signal and a color difference signal in a luminance-chrominance color space, and in the extraction pixel determination procedure, pixels in a predetermined color range and a predetermined luminance range are determined. It is determined as an extracted pixel. Thus, for example, achromatic pixels are reliably determined as extracted pixels. Each color component of a pixel determined as an extracted pixel in the extracted pixel determination procedure is used for calculating a color coefficient. As a result, the color coefficient becomes extremely accurate. In the white balance adjustment procedure, the white balance is adjusted by performing linear processing using the color coefficient for each color component. In this way, white balance adjustment with extremely excellent color reproducibility becomes possible.
[0032]
Further, the extraction pixel determination step is characterized in that the extraction pixels are determined by determining whether or not the pixels within the predetermined color range are pixels within the predetermined luminance range.
[0033]
According to such a configuration, the determination as to whether or not the pixel is within the predetermined color range is performed before the determination as to whether or not the pixel is within the predetermined brightness range. It is possible to prevent many of the pixels from being excluded from the selection. As a result, the parameter at the time of calculating the color coefficient is sufficiently ensured to maintain the reliability of the color coefficient.
[0034]
The image signal processing apparatus according to the present invention further includes a matrix unit that converts each color component based on the output of the image sensor provided with the color filter into a luminance-color difference color space to obtain a luminance signal and a color difference signal. The white balance is adjusted by the white balance processing device or the white balance processing method using the luminance signal and the color difference signal from the matrix unit.
[0035]
According to such a configuration, it is possible to perform image signal processing with extremely excellent color reproducibility by adjusting the white balance by the white balance processing device and the white balance processing method.
[0036]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing an image signal processing device according to the first embodiment of the present invention.
[0037]
In the present embodiment, pixels in a predetermined color range are extracted from an image signal obtained by imaging, and only pixels in a predetermined luminance range are extracted from the extracted pixels, and a color coefficient of an auto white balance process is extracted. By using for calculation, color reproducibility is improved.
[0038]
An optical image from a subject is incident on an image sensor (not shown) via an optical system (not shown) including a color filter. The image sensor photoelectrically converts incident light to generate an image signal based on an optical image of a subject. This image signal is supplied to an AFE (analog front end) circuit 1 in FIG. The AFE circuit 1 includes an amplifier (not shown), an analog / digital converter, and the like. The AFE circuit 1 converts an input image signal into a digital signal and outputs the digital signal to the OB clamp circuit 2.
[0039]
The OB clamp circuit 2 is a circuit for adjusting an input image signal to an appropriate black reference level. In the image sensor, several predetermined pixels are shielded from light by a light shielding plate or the like and set in an OB (optical black) area. The OB clamp circuit 2 adjusts the black level of the image signal based on the pixel signal level of the pixel in the OB area. The output of the OB clamp circuit 2 is given to the data range correction circuit 3. The data range correction circuit 3 corrects the range of the input digital image data and outputs the result to the CFA color interpolation circuit 4.
[0040]
The color filters provided in the image sensor are, for example, those in which R, G, and B filters are cyclically arranged according to an appropriate arrangement rule. Thus, each pixel of the image sensor individually forms an R pixel, a G pixel, or a B pixel. The CFA color interpolation circuit 4 has a line buffer (not shown) that holds image signals for a plurality of lines (for example, three lines), and performs arithmetic processing using R, G, and B pixels at adjacent positions. And an interpolation process for obtaining R, G, B signals at each pixel position. The R, G, B signals from the CFA color interpolation circuit 4 are supplied to a matrix calculator 5.
[0041]
The matrix calculator 5 converts the input R, G, B signals into YUV 'signals. The matrix calculator 5 converts the R, G, and B signals into YUV 'signals by, for example, a 3 × 3 matrix calculation, applies the (luminance) signal Y to a high-pass filter (HPF) 6, and converts the color difference signals U and V'. The signal is supplied to a low-pass filter (LPF) 7. The HPF 6 passes the high-frequency component of the luminance signal Y, performs image quality correction such as contour compensation by high-frequency emphasis, and outputs the result to the matrix calculator 9. Further, the LPF 7 restricts the input color difference signals U and V ′ to only the low band and outputs the signals to the color suppression circuit 8.
[0042]
In the present embodiment, the color suppression circuit 8 suppresses the color components of the color difference signal UV ′ and outputs the result to the matrix calculator 9. When the gain with respect to the pixel signal is relatively large, the defect of the pixel signal becomes conspicuous due to the influence of quantization noise or the like. Therefore, by taking advantage of the relatively low sensitivity of the human eye to a color in a dark portion, the color components of a pixel having a relatively low luminance (a dark portion) are suppressed, or the monochrome mode is set. Defects are made less noticeable.
[0043]
In the present embodiment, the image signal converted into the YUV 'signal is returned to the R, G, B signals again. The matrix calculator 9 performs matrix processing on the input YUV 'signal, converts the signal into R1, G1, and B1 signals, and outputs the signal to the matrix calculator 10. The matrix computing unit 10 performs matrix processing on the input R1, G1, and B1 signals to perform color adjustment, and outputs the R2, G2, and B2 signals after color adjustment to the auto white balance circuit 11. . The auto white balance circuit 11 is provided with a color coefficient for automatic white balance adjustment from the AWB coefficient calculation circuit 4 and multiplies the input R2, G2, and B2 signals by a color coefficient, as described later. Each color level is adjusted by the processing to make the white balance proper. The R3, G3, and B3 signals that have been subjected to automatic white balance adjustment by the automatic white balance circuit 11 are output to the user color adjustment circuit 15.
[0044]
The user color adjustment circuit 15 receives an external signal based on a user operation, and adjusts the level of the input R3, G3, and B3 signals based on the external signal to adjust the color balance to the user's preference. It has become. The R4, G4, and B4 signals after color adjustment from the user color adjustment circuit 15 are supplied to a user digital gain setting circuit 16. The user digital gain setting circuit 16 receives an external signal based on a user operation, and adjusts the gain for the input R4, G4, and B4 signals based on the external signal so that the luminance is adjusted to the user's preference. It has become. The R5, G5, and B5 signals after luminance adjustment from the user digital gain setting circuit 16 are supplied to the gamma correction circuit 17.
[0045]
The gamma correction circuit 17 subjects the input R5, G5, and B5 signals to gamma correction by performing predetermined non-linear processing, and then outputs the signals to the matrix calculator 18. The matrix calculator 18 converts the input R, G, B signals into YUV signals. The matrix calculator 18 converts the R, G, and B signals into YUV signals by, for example, a 3 × 3 matrix calculation and outputs the signals.
[0046]
Next, the auto white balance processing will be described with reference to FIGS.
[0047]
In general white balance processing, a color coefficient is generated based on the hypothesis that the average color of the entire image is an achromatic color. This method is effective for scenes where the image is evenly colored, but does not produce the expected results for scenes that are biased toward a certain color, resulting in a process that pulls the biased color into achromatic color. . As a pixel that tends to influence the average color of the image toward a specific color (hereinafter referred to as a bias influence color), for example, a skin color, a green color of a vegetation, a blue sky color, or the like can be considered. Therefore, in the present embodiment, it is considered that the average color of the image becomes achromatic when the remaining pixels are averaged by excluding the pixels of these bias influence colors from the image. The pixels excluding the bias influence color are used for generating the color coefficient.
[0048]
When the environmental color (illumination light) changes, the color of the image captured by the image sensor also changes. Thus, even when the environmental color changes, the color excluding the bias influence color, that is, the achromatic color (gray) exists within a predetermined range in the color space. FIG. 2 shows the distribution range of the achromatic color in the YUV color space excluding the bias influence color by hatching. However, depending on the luminance of the image, even the bias influence color may exist within the range of the hatched portion in FIG.
[0049]
On the other hand, when the luminance of each color was examined based on the change in the illuminance of the light source (illumination light), it was found that among the achromatic colors, light gray including white had relatively high luminance. Therefore, in the present embodiment, the shaded portion in FIG. 2 is set as the color range of the pixel to be extracted, and the color is determined by whether or not the pixel within the color range has a luminance within a predetermined luminance range. A pixel (hereinafter, referred to as an extracted pixel) used for calculating the coefficient is determined. FIG. 3 shows the luminance range for extracting the extracted pixels by oblique lines.
[0050]
In the present embodiment, the extracted pixels used for calculating the color coefficient are determined by the (auto white balance) extracted pixel determination circuit 12. FIG. 4 is a block diagram showing a specific configuration of the AWB extraction pixel determination circuit 12 in FIG.
[0051]
In FIG. 2, the range of the shaded portion (hereinafter referred to as an extracted color range) is represented by straight lines U = umax, V ′ = vmax, V ′ = − mU + uvmax, V ′ = − nU + uvmin (−m, −n (The slopes of the straight lines passing through the points uvmax and uvmin on the V ′ axis). That is, in the example of FIG. 2, the extracted color range is set so as to satisfy the following equation (1). In FIG. 2, m and n are 1.
[0052]
U ≦ max
V '≦ vmax
uvmin ≦ {(m × U) + (n × V ′)} ≦ uvmax (1)
In FIG. 3, an extraction range of an extraction pixel indicated by oblique lines (hereinafter, referred to as an extraction luminance range) is set so as to satisfy the following expression (2).
[0053]
Ymin ≦ Y ≦ max (2)
In FIG. 4, the color difference signals U and V ′ from the matrix calculator 5 are input to the range setting circuit 21 and the color range comparison circuit 22. The position information output circuit 25 receives position information indicating a pixel position on the screen of a pixel corresponding to the color difference signals U and V ′ input to the range setting circuit 21 and the color range comparison circuit 22. The range design circuit 21 calculates (m × U) + (n × V ′) in the above equation (1) and outputs it to the color range comparison circuit 22.
[0054]
The color range comparison circuit 22 is given values of umax, vmax, uvmin, and uvmax, which are information for specifying the extracted color range, and determines whether the input color difference signals U and V ′ satisfy the above equation (1). Determine whether or not. The determination result from the color range comparison circuit 22 is given to the luminance signal extraction circuit 23. A luminance signal Y corresponding to the color difference signals U and V ′ input to the range setting circuit 21 and the color range comparison circuit 22 is supplied to the luminance signal extraction circuit 23 from the matrix calculator 5. The luminance signal extraction circuit 23 outputs the color difference signals U and V only when a determination result indicating that the color difference signals U and V ′ satisfying the above expression (1) is input from the color range comparison circuit 22 is obtained. Is output to the luminance range comparison circuit 24.
[0055]
The luminance range comparison circuit 24 is given the values of Ymin and Ymax, which are information for specifying the extracted luminance range, and determines whether or not the input luminance signal Y satisfies the above equation (2). The determination result from the luminance range comparison circuit 24 is given to the position information output circuit 25.
[0056]
Only when a determination result indicating that the luminance signal Y satisfying the above expression (2) is input from the luminance range comparison circuit 24 is obtained, the position information output circuit 25 It outputs position information indicating the position.
[0057]
As described above, the AWB extracted pixel determination circuit 12 outputs a pixel within the extracted color range, that is, a pixel that is considered to be an achromatic color in the output of the matrix calculator 5, and a pixel within the extracted luminance range, that is, the luminance. A pixel having a relatively high level is determined to be an extracted pixel used for calculating a color coefficient, and position information indicating the pixel position is output to the AWB pixel data storage circuit 13.
[0058]
The AWB pixel data storage circuit 13 receives the output R2, G2, and B2 signals of the matrix calculator 10, and stores and holds the R2, G2, and B2 signals of the pixel position given by the position information for at least one screen, for example. And outputs it to the AWB coefficient calculation circuit 14.
[0059]
The AWB coefficient calculation circuit 14 reads the R2, G2, and B2 signals stored in the AWB pixel data storage circuit 13 and integrates, for example, one screen for each color signal. That is, the AWB coefficient calculation circuit 14 calculates ΣR, ΣG, and ΣB. Next, the AWB coefficient calculation circuit 14 calculates the color coefficients Rc, Gc, and Bc for white balance processing based on the following equation (3).
[0060]
Rc = ΣG / ΣR
Gc = ΣG / ΣG = 1.0 (3)
Bc = ΣG / ΣB
Since the color coefficient Gc is always 1, it is not necessary to calculate it.
The AWB coefficient calculation circuit 14 outputs the color coefficient calculated based on the above equation (3) to the auto white balance circuit 11. The auto white balance circuit 11 obtains R3, G3, and B3 signals whose white balance has been adjusted by performing a matrix operation of the following equation (4) with respect to the R2, G2, and B2 signals from the matrix calculator 10. .
[0061]
Next, the operation of the embodiment configured as described above will be described.
[0062]
It is assumed that a subject having a predetermined object color is illuminated by illumination light having a predetermined environment color. An optical image of a subject is incident on an image sensor via an optical system including a color filter, and is subjected to photoelectric conversion to obtain R, G, and B signals. The R, G, and B signals input to the AFE circuit 1 correspond to the object color of the subject, the illumination light (environmental color) of the subject, and the color light based on the spectral characteristics of the filter. The AFE circuit 1 converts the input R, G, B signals into digital signals and outputs the digital signals to the OB clamp circuit 1. The OB clamp circuit 1 sets the black level of the input pixel signal to an appropriate black level and outputs it to the data range correction circuit 3. The data range correction circuit 3 corrects the R, G, B signals to an appropriate range and adjusts the brightness of the image. Further, the R, G, and B signals are subjected to color interpolation in the CFA color interpolation circuit 4 to obtain R, G, and B image signals at each pixel position.
[0063]
In the present embodiment, in order to calculate a color coefficient for auto white balance in the YUV ′ color space and to perform image quality correction, first, the R, G, and B signals subjected to color interpolation are first converted into a YUV ′ signal by the matrix calculator 5. ′ Signal. The luminance signal Y is emphasized in the high band by the HPF 6 and supplied to the matrix calculator 9, and the color difference signal UV ′ is band-limited to the low band by the LPF 7 and supplied to the color suppression circuit 8. The color suppression circuit 8 suppresses the color of a dark part of the image and outputs the result to the matrix calculator 9 in order to reduce the influence of noise such as quantization noise.
[0064]
The AWB extracted pixel determination circuit 12 is sequentially supplied with the color difference signals U and V 'and the luminance signal Y of each pixel from the matrix calculator 5, and first calculates the input color difference signals U and It is determined whether or not V ′ gives a color within the extraction color range of FIG. 2, and if so, the luminance signal Y for that pixel is further expressed by the above equation (2) and the extraction signal shown in FIG. It is determined whether or not the luminance is within the luminance range. The AWB extracted pixel determination circuit 12 stores the position information indicating the pixel position in the screen for the pixels within the extracted luminance range shown in FIG. Output to the circuit 13. The AWB pixel data storage circuit 13 stores and holds the input position information for pixels of at least one screen.
[0065]
On the other hand, the YUV 'signal from the matrix calculator 5 is once returned to the R, G, B signals by the matrix calculator 9 in order to adjust the color balance. The matrix calculator 9 obtains R1, G1, and B1 signals by performing matrix processing on the input YUV 'signal, and outputs the signals to the matrix calculator 10 for color adjustment. The matrix calculator 10 corrects the spectral characteristics of the color filters by performing matrix processing on the input R1, G1, and B1 signals, and R2, G2 having characteristics similar to those when the characteristics of the R, G, and B filters are steep. , B2 signals. The R2, G2, and B2 signals are provided to the auto white balance circuit 11.
[0066]
Further, the AWB pixel data storage circuit 13 stores and holds, for example, one screen of pixel position information having conditions within the extracted color range and the extracted luminance range, and outputs the signals R2, G2, B2 of the matrix calculator 10. Out of the pixel positions given by the position information are output to the AWB coefficient calculation circuit 14. The AWB coefficient calculation circuit 14 reads the R2, G2, and B2 signals stored in the AWB pixel data storage circuit 13 and integrates, for example, one screen for each color signal. That is, the AWB coefficient calculation circuit 14 calculates ΣR, ΣG, and ΣB, and then calculates color coefficients Rc, Gc, and Bc for white balance processing based on the above equation (3).
[0067]
The auto white balance circuit 11 uses the color coefficients calculated by the AWB coefficient calculation circuit 14 to adjust white balance by, for example, 3 × 3 linear matrix processing. Thereby, the influence of the environmental color included in the input R, G, and B signals is removed. The R3, G3, and B3 signals that have been subjected to automatic white balance adjustment by the automatic white balance circuit 11 are output to the user color adjustment circuit 15.
[0068]
The user color adjustment circuit 15 adjusts the color balance to the user's preference based on a user operation. Further, the user digital gain setting circuit 16 adjusts the brightness to the user's preference based on the user operation. The image signal that has been subjected to color adjustment and luminance adjustment based on a user operation is supplied to a gamma correction circuit 17 and gamma corrected. The gamma-corrected image signal is supplied to a matrix calculator 18, which converts the input R, G, B signals into YUV signals.
[0069]
As described above, in the present embodiment, the color coefficient used for the auto white balance is a pixel in the extracted color range that is considered to be achromatic, and furthermore, by using a pixel in the extracted luminance range where the luminance is relatively high. Has been generated. Therefore, the pixel used for generating the color coefficient is very likely to be an achromatic pixel, and the color coefficient used for the auto white balance can be calculated with extremely high accuracy. Thereby, color reproducibility can be improved.
[0070]
In the above embodiment, it is determined whether or not the pixels within the extraction color range are the pixels within the extraction luminance range, and the extraction pixels to be used for calculating the color coefficient are determined. The extraction pixels used for calculating the color coefficient may be determined by determining whether or not the pixels within the range are within the extraction color range.
[0071]
By the way, in the present embodiment, an achromatic color pixel is selected as an extraction pixel used for calculating a color coefficient. As described above, even in the case of an achromatic color, the position of the obtained color difference signal UV 'in the color space changes depending on the color temperature. Therefore, in selecting the extracted pixels, an extracted color range in which the achromatic color changes according to the color temperature is specified. However, as described above, even with colors other than achromatic colors, colors with high luminance and high saturation may fall within the extracted color range. For example, human skin color, blue sky, fresh green, and the like. For this reason, the luminance level is determined, and colors having high luminance are excluded from the colors within the extracted color range, so that colors other than these achromatic colors are not selected as extracted pixels.
[0072]
By the way, as described above, a method is also conceivable in which pixels in the extraction luminance range are determined first, and pixels in the extraction color range are selected using the determination result. However, human flesh color, blue sky, and green of fresh green have high luminance, and such pixels are likely to be in the range of about 85% to about 95% from the low luminance side. Therefore, if pixels within the extracted luminance range are determined first and pixels outside the extracted color range are excluded using this determination result, the number of remaining extracted pixels becomes extremely small. Then, the parameter of the above equation (3) becomes small, and the reliability of the color coefficient decreases.
[0073]
For this reason, in the present embodiment, the extraction color range is determined first, and whether or not the pixel is within the extraction luminance range is determined based on the determination result to determine the extraction pixel. Accordingly, a sufficient number of pixels can be secured as the number of extracted pixels, and the reliability of the color coefficient can be improved by increasing the number of parameters in the above equation (3).
[0074]
The setting of the extraction color range has a great influence on the pull-in range of the auto white balance processing. For this reason, instead of incorporating the extracted color range in the circuit in advance, the range can be changed using a register, and the extracted color range set by the circuit user according to the shooting environment or the subject to be shot can be adjusted. It is better to do.
[0075]
Further, in the above embodiment, the upper limit value Ymax of the extracted luminance range is not set to an upper limit value that can be taken as a luminance value. An image obtained by imaging significantly changes depending on the shooting environment light. For example, under a light source such as a halogen lamp, since the color temperature is as low as about 3000K, the captured image tends to be reddish. That is, while the number of pixels in the high-luminance region is very small for the G and B signals, a large number of pixels in the high-luminance region exist for the R signal, and among the R, G, and B signals from the image sensor, Only the R signal may be saturated. In the saturated state, the linearity between the actual red luminance level and the value of the R signal is broken. Therefore, when a pixel whose luminance level is saturated is used for calculating a color coefficient, the accuracy of color reproducibility is reduced. Therefore, in order to exclude pixels in the luminance range where the luminance level is likely to be saturated from the calculation of the color coefficient, the upper limit value Ymax of the extracted luminance range is set to a value lower than the upper limit value that can be taken as the luminance value. ing.
[0076]
In the above embodiment, an extremely large or small value may be output as a color coefficient depending on an image. In this case, it is conceivable to use a preset initial value as a color coefficient.
[0077]
FIG. 5 is a block diagram showing a configuration of an AWB extracted pixel determination circuit employed in the image signal processing device according to the second embodiment of the present invention. 5, the same components as those in FIG. 4 are denoted by the same reference numerals, and description thereof will be omitted. Other configurations in the present embodiment are the same as those in FIG.
[0078]
The AWB extraction pixel determination circuit 31 of FIG. 5 differs from the AWB extraction pixel determination circuit 24 in that a luminance range comparison circuit 32 is used instead of the luminance range comparison circuit 24.
[0079]
When the number of pixels (extracted pixels) used for calculating the color coefficient for white balance adjustment is small, as described above, the parameter of Expression (3) becomes small, and the reliability of the color coefficient decreases. Therefore, in the present embodiment, instead of specifying the extracted luminance range with the absolute value of the luminance, the luminance distribution is detected, and a fixed number of pixels whose luminance is within the predetermined distribution range are selected as the extracted pixels. It is supposed to.
[0080]
FIG. 6 is a block diagram showing a specific configuration of the luminance range comparison circuit 32 in FIG. The luminance range comparison circuit 32 includes a histogram creation circuit 35 and a luminance range determination circuit 36. The histogram creation circuit 35 is supplied with the luminance signal Y from the matrix calculator 5 (see FIG. 1), and the luminance signal Y input from the color range comparison circuit 22 is based on the pixels within the extracted color range. The result of the determination is given. The histogram creation circuit 35 obtains a distribution of luminance values of a signal based on pixels within the extracted color range of the input luminance signal Y. FIG. 7 shows an example of a histogram created by the histogram creation circuit 35 by taking the luminance value Y on the horizontal axis and the number of pixels on the vertical axis.
[0081]
Frequency distribution information indicating the relationship between the luminance value and the number of pixels generated by the histogram generation circuit 35 is given to the luminance range determination circuit 36. The luminance range determination circuit 36 is configured to determine a pixel having a pixel number in a range of Yst% to Yed% in the given luminance distribution from the pixel having the lowest luminance as a pixel in the extracted luminance range.
[0082]
FIG. 8 is an explanatory diagram for explaining the operation of the luminance range determination circuit 36. In the example of FIG. 8, Yst and Yed are set to 85% and 95%, respectively.
[0083]
The hatched portion in FIG. 8 indicates a range (an extracted luminance range) in which the 85% pixel to the 95% pixel counted from the pixel with the lowest luminance on the histogram exist. That is, in the example of FIG. 8, among the pixels in the extracted color range, 10% of the pixels having a relatively high luminance value are selected as the pixels in the extracted luminance range.
[0084]
The luminance range determination circuit 36 detects the Yst% pixel (lower limit luminance pixel) counted from the pixel having the lower luminance value among the pixels in the extracted color range, and detects the Yed% pixel from the pixel having the lower luminance value. A pixel (upper limit luminance pixel) is detected.
[0085]
For example, assuming that the luminance value is represented by 8 bits, the histogram creation circuit 35 has 256 registers corresponding to the minimum luminance 0 to the maximum luminance 255, respectively, and the luminance value of each pixel within the extraction color range. , The information of the pixel is stored in each register. Then, the brightness range determination circuit 36 counts the number of pixels in order from the register corresponding to the lowest brightness, and thereby determines the pixels from the Yst% pixel to the Yed% pixel.
[0086]
As described above, in the present embodiment, a certain percentage of pixels are selected as pixels to be extracted from the pixels within the extracted color range as the extracted luminance range, and the parameter of the above equation (3) is secured, and the color coefficient Improves reliability.
[0087]
The other configuration and operation and effect are the same as those of the first embodiment.
[0088]
Also in the present embodiment, a point that a pixel within the extracted luminance range is determined using the determination result of whether or not the pixel is within the extracted color range, and a maximum value that can be taken as a luminance value is set as the upper limit luminance Yed. The points that are not performed are the same as in the first embodiment.
[0089]
FIG. 9 is a block diagram showing a luminance range comparison circuit employed in the third embodiment of the present invention. This embodiment is different from the second embodiment of FIG. 5 only in the method of determining the luminance range comparison circuit. In the present embodiment, the brightness range comparison circuit includes a histogram creation circuit 42 and a brightness range determination circuit 43.
[0090]
In the second embodiment, the histogram creation circuit 35 (see FIG. 6) prepares 256 counters (registers) when the luminance value is represented by 8 bits (0 to 255). , 0 to 255, the number of pixels is counted and a histogram is created. Therefore, the number of necessary counters is extremely large and the circuit scale becomes enormous. Thus, in the present embodiment, the circuit scale is reduced by creating a histogram for each predetermined division range instead of creating a histogram for each accuracy of the luminance value.
[0091]
For example, when the available luminance value (0 to 255) is divided into 16, the range of 0 to 15, 16 to 31,... Similarly, if the available luminance value is divided into eight, the luminance value can be divided into 32 steps. If the number of divisions is reduced, the circuit scale can be reduced, but the accuracy of the histogram decreases. For example, when the division into eight is performed, the accuracy of the histogram deteriorates, and there is a possibility that the extraction pixels of 85% (Yst) to 95% (Yed) cannot be calculated correctly.
[0092]
By the way, the luminance range comparison circuit has an object of selecting about 85% to about 95% of the pixels in the extracted color range from the lower luminance direction. However, in the example in which the histogram is divided into 16, the range of 0 to 15, 16 to 31 on the low luminance side is not an important range even if the histogram is taken. Similarly, 10% of the above-described 85% (Yst) to 95% (Yed) of all the pixels in the extracted color range are concentrated in the range of luminance values of 240 to 255 (substantially pure white). It is hard to think. If so, it is possible that proper exposure control cannot be performed.
[0093]
In consideration of these points, the histogram creation circuit 42 according to the present embodiment reduces the circuit scale by not creating a histogram for an unimportant range.
[0094]
The histogram creation circuit 42 designates, in a register, a brightness value at the upper limit of the histogram and a brightness value at the lower limit of the histogram as a range for creating a brightness histogram with high accuracy among the brightness values 0 to 255. Then, even if the pixel is within the extracted color range, a pixel having a luminance value smaller than the histogram lower limit and a pixel having a luminance value larger than the histogram upper limit are not registered in the register. Note that the upper limit of the histogram and the lower limit of the histogram can be specified in one-step units from 0 to 255, in which luminance values can be taken.
[0095]
For example, the histogram creating circuit 42 specifies a value of, for example, 230 in the range of 220 to 240 as the upper limit of the histogram, and specifies, for example, a value of 71 in the range of 50 to 100 as the lower limit of the histogram. Then, the histogram creation circuit 42 divides the range between the lower limit of the histogram and the upper limit of the histogram into eight to sixteen, for example, ten. In this case, the histogram creation circuit 42 may divide the range of 71 to 230 into 16 equal steps at equal intervals, or may divide the brighter one wide and the dark one narrower.
[0096]
The histogram creating circuit 42 creates a histogram for the pixels within the extracted color range for each of the designated divided luminances. Information on the histogram created by the histogram creating circuit 42 is given to the luminance range determination circuit 43. The luminance range determination circuit 43 is provided with information on the extraction rate, selects the number of pixels indicated by the extraction rate from the highest luminance value in the histogram, and determines that the selected pixel is a pixel in the extraction luminance range. Is output.
[0097]
Next, a method of selecting a pixel in the extracted luminance range in the embodiment configured as described above will be described.
[0098]
Now, the histogram creation circuit 42 creates a brightness histogram of the pixels within the extracted color range in a state where the range of the brightness values 71 to 230 among 0 to 255 that can be taken as the brightness value is equally divided into 16 steps by 16 steps. Shall be. It is also assumed that 20% is specified as an extraction rate in the luminance range determination circuit 43.
[0099]
First, the luminance range determination circuit 43 searches for which divided area of the histogram into which the 20% of the total number of pixels belong to the histogram from the pixels having higher luminance among the pixels registered in the histogram. I do. Now, for example, it is assumed that a histogram divided into 10 is shown in Table 1 below. It is also assumed that the total number of pixels registered in the histogram is 1000.
[0100]
Figure 2004282133
The luminance range determination circuit 43 determines the top 20% of the pixels indicated by the extraction rate among the total number of pixels (1000) registered in the histogram as the extracted pixels. In this case, 1000 × 20% = 200 pixels are selected.
[0101]
First, the luminance range determination circuit 43 obtains the total number of pixels registered in the histogram. The luminance range determination circuit 43 can acquire the total number of pixels simultaneously with the completion of the histogram by counting the number of pixels in the extraction color range when the histogram is created by the histogram creation circuit 42. Then, the luminance range determination circuit 43 calculates the number of pixels to be extracted by the total number of pixels × the extraction rate. Next, the luminance range determination circuit 43 evaluates the number of pixels in order from a region having a higher luminance value for each of the divided regions of the histogram and obtains a region reaching 200 pixels.
[0102]
In the example of Table 1 above, the number of the highest-order block is 60, which is less than 200. When the number of pixels of the next block is added, 60 + 120 = 180. Further, when the number of pixels of the next block is added, 180 + 150 = 330, which exceeds 200. That is, the area where the number of pixels from the highest luminance reaches the extraction rate is a divided area whose luminance value ranges from 201 to 210. Therefore, the luminance range determination circuit 43 sets the luminance value 201 to the lower limit luminance of the extracted pixel. On the other hand, the upper limit is set to the histogram upper limit of 230. Then, the luminance range determination circuit 43 outputs a determination result that a pixel having a luminance lower limit and a luminance upper limit, that is, a pixel whose luminance value is in a range of 201 to 230 is set as a pixel of the extracted luminance range.
[0103]
As described above, in the present embodiment, a histogram is created using only pixels having a luminance value between the histogram upper limit and the histogram lower limit among the pixels within the extracted color range, and the histogram is divided into a plurality of regions, Selects pixels of the number of pixels determined by the extraction rate from higher-order pixels in units of each divided region, and determines the extracted pixels. As a result, it is possible to secure a sufficient number of parameters in the above equation (3), and to remarkably reduce the circuit scale of a circuit for creating a histogram and a circuit for determining an extraction pixel while reducing the division step accuracy. It is.
[0104]
As a result, it is possible to obtain sufficient color reproducibility even in a system without a CPU.
[0105]
Other configurations, functions and effects are the same as those of the second embodiment.
[0106]
In the second embodiment, the extracted luminance range is set to the 85% to 95% pixels counted from the lower luminance value, but in the third embodiment, the extracted luminance range is registered in the histogram. The pixels are set to 80% or less to 100% in the descending order of luminance among the pixels. Even if the upper limit is set to 100%, since the upper limit of the histogram is limited to the range up to 95% of the luminance, the above-described problem of the saturation can be avoided. Conversely, since the lower limit of the histogram is also limited in advance, the lower limit of 85% of the pixel range in the second embodiment is set to 80% in the present embodiment.
[0107]
Note that a value of 80% has been obtained to specify an extraction rate of 20%, and the range of pixels to be extracted can be changed only by changing the extraction rate given to the luminance range determination circuit 43, and the degree of freedom is increased. high. It is also clear that the lower limit of the histogram should be increased if the step accuracy is to be made finer. In view of the fact that the extracted luminance range in the second embodiment is set in the range of 85% to 95% of the number of pixels, it is apparent that there is no problem even if the lower limit of the histogram is considerably increased. .
[0108]
FIG. 10 is an explanatory diagram showing the white balance processing of the image signal processing device employed in the fourth embodiment of the present invention. This embodiment can be realized by the same configuration as the image signal processing device of FIG. This embodiment is applied to a white balance process at the time of a moving image.
[0109]
The luminance histogram creation processing 51, the extraction luminance range calculation processing 52, and the extraction pixel position acquisition processing 53 in FIG. 10 can be realized in the AWB extraction pixel determination processing 12 in FIG. 1, and the extraction pixel integration processing 54 is the AWB pixel data. The color coefficient calculation processing 55 can be realized by the AWB coefficient calculation circuit 14.
[0110]
By the way, in each of the above embodiments, a method has been described in which achromatic color is detected from information in an image and a color coefficient is calculated using achromatic pixels, thereby improving color reproducibility by white balance. . However, in the case of a moving image, if the white balance processing is immediately performed using the color coefficient calculated by the AWB coefficient calculation circuit 14 in each of the above embodiments, the image suddenly changes and the image quality appears to have deteriorated. I will. Thus, in the present embodiment, at the time of a moving image, convergence processing is performed in which the color coefficient used for the white balance processing gradually approaches the value of the color coefficient obtained by the AWB coefficient calculation circuit 14 in each of the above embodiments. It has become.
[0111]
In the first frame, in processing 51 of FIG. 10, a luminance histogram is created for pixels in the extracted color range. Next, in processing 52, the upper limit luminance Yed and the lower limit luminance Yst are calculated from the created histogram.
[0112]
Next, in the second frame, in the process 53, for the pixels in the extraction color range, pixels satisfying Yst <Y <Yed (when applied to the second embodiment) and pixels in the extraction luminance range ( The extracted pixels are determined, and in a process 54, ΣR, ΣG, and ΣB are calculated for the extracted pixels.
[0113]
Next, in the third frame, in a process 55, the color coefficients Rc and Bc are calculated from the above equation (3). Then, a color coefficient is given to the white balance circuit 11 (see FIG. 1) to execute the matrix processing. The matrix processing may be performed in the fourth frame depending on the speed of the divider at the time of calculating the color coefficient.
[0114]
In this case, in order to perform the convergence operation, another color coefficient is prepared separately from the color coefficient calculated from the image. Then, a coefficient is calculated such that the coefficient is calculated using the coefficient calculated from the image as a target, and is set as a color coefficient to be actually applied to each pixel.
[0115]
Now, the final color coefficients obtained by the processing 55 are set as target color coefficients Rctarget and Bctarget, and the color coefficients actually applied to the white balance processing are set as applied color coefficients. If the applied color coefficients of the current frame are Rccurrent and Bccurrent, and the applied color coefficients of the next frame are Rcnext and Bcnext, the applied color coefficients of the next frame are calculated by the following equation (4).
[0116]
Rcnext = (Rtarget × h + Rccurrent) / (h + 1)
Bcnext = (Btarget × h + Bcccurrent) / (h + 1) (h = 2i−1, i = 0, 1, 2,...) (4)
In the above equation (4), the applied color coefficients Rcnext and Bcnext of the next frame converge to the target color coefficients Rctarget and Bctarget at a desired speed by appropriately setting the value of the coefficient h (i). As a result, the white balance of the image gradually changes for each frame, and can be finally changed so as to obtain optimal color reproducibility. Further, the convergence time can be set freely. In this way, it is possible to prevent the image from changing abruptly and prevent the image quality from deteriorating.
[0117]
By the way, in each of the above embodiments, the signals before white balance processing are used as the R, G, and B signals used for calculating the color coefficients. On the other hand, it is conceivable to use the R, G, B signals after the white balance processing for calculating the color coefficients.
[0118]
FIG. 11 is an explanatory diagram showing the white balance processing in this case corresponding to FIG. In FIG. 11, the same processes as those in FIG. 10 are denoted by the same reference numerals, and description thereof will be omitted.
[0119]
11 can be realized by providing the RWB, G3, and B3 signals from the auto white balance circuit 11 to the AWB pixel data storage circuit 13 in FIG. The calculation circuit 55 'can be realized by the AWB coefficient calculation circuit 14.
[0120]
The position information indicating the position of the extracted pixel on the screen obtained by the extracted pixel position obtaining process is used for obtaining the R, G, B signals used for calculating the color coefficient by the extracted pixel integrating process 54 '. In the extraction pixel integration processing 54 ', the R, G, and B signals after the automatic white balance processing are used. The color coefficient calculation processing 55 'calculates a color coefficient using the color coefficient obtained by the extraction pixel integration processing 54'.
[0121]
Other processes in FIG. 11 are the same as those in FIG.
[0122]
In this case, in order to perform the convergence operation of the color coefficients, the final color coefficients are set as target color coefficients Rctarget and Bctarget, and the applied color coefficients of the current frame actually applied to the white balance processing are set as Rccurrent and Bccurrent. Assuming that the applied color coefficients of the frame are Rcnext and Bcnext, the processing 55 'calculates the color coefficients by the operation of the following equation (5).
[0123]
Rcnext = (Rtarget × h + Rtarget × Rccurrent) / (h + 1)
Bcnext = (Btarget × h + Btarget × Bcccurrent) / (h + 1) (h = 2i−1, i = 0, 1, 2,...) (5)
Also in this equation (5), the applied color coefficients Rcnext and Bcnext of the next frame converge to the target color coefficients Rctarget and Bctarget at a desired speed by appropriately setting the value of the coefficient h (i). As a result, the white balance of the image can be gradually changed for each frame, and finally can be changed so as to obtain optimum color reproducibility. Thus, also in the example of FIG. 11, it is possible to prevent a sudden change in the image and prevent the image quality from deteriorating.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an image signal processing device according to a first embodiment of the present invention.
FIG. 2 is an explanatory diagram for explaining an auto white balance process in the first embodiment.
FIG. 3 is an explanatory diagram for explaining an auto white balance process according to the first embodiment.
FIG. 4 is a block diagram showing a specific configuration of an AWB extraction pixel determination circuit 12 in FIG. 1;
FIG. 5 is a block diagram illustrating a configuration of an AWB extracted pixel determination circuit employed in an image signal processing device according to a second embodiment of the present invention.
FIG. 6 is a block diagram showing a specific configuration of a luminance range comparison circuit 32 in FIG. 5;
FIG. 7 is a graph showing an example of a histogram created by a histogram creating circuit 35, with the horizontal axis representing the luminance value Y and the vertical axis representing the number of pixels.
FIG. 8 is an explanatory diagram for explaining an operation of a luminance range determination circuit 36;
FIG. 9 is a block diagram showing a luminance range comparison circuit employed in a third embodiment of the present invention.
FIG. 10 is an explanatory diagram showing white balance processing of an image signal processing device employed in a fourth embodiment of the present invention.
FIG. 11 is an explanatory diagram showing a white balance process in a modified example in correspondence with FIG. 10;
[Explanation of symbols]
5, 9, 10: matrix arithmetic unit, 11: automatic white balance circuit, 12: AWB extracted pixel determination circuit, 13: AWB pixel data storage circuit, 14: AWB coefficient calculation circuit.

Claims (13)

カラーフィルタが配設された撮像素子の出力に基づく各色成分から輝度−色差色空間への変換によって得られた輝度信号及び色差信号が与えられ、所定の色範囲及び所定の輝度範囲の画素を抽出画素として判定する抽出画素判定手段と、
前記抽出画素判定手段によって抽出画素と判定された画素の前記各色成分を用いてホワイトバランス処理のための色係数を算出する色係数算出手段と、
前記各色成分に対する前記色係数を用いた線形処理によってホワイトバランスを調整するホワイトバランス調整手段とを具備したことを特徴とするホワイトバランス処理装置。
A luminance signal and a color difference signal obtained by converting each color component based on the output of the image sensor provided with the color filter into a luminance-chrominance color space are provided, and pixels in a predetermined color range and a predetermined luminance range are extracted. Extraction pixel determination means for determining as a pixel,
A color coefficient calculation unit that calculates a color coefficient for white balance processing using the respective color components of the pixel determined as the extraction pixel by the extraction pixel determination unit;
A white balance adjustment unit for adjusting a white balance by linear processing using the color coefficient for each of the color components.
前記抽出画素判定手段は、前記所定の色範囲内の画素について前記所定の輝度範囲内の画素であるか否かを判定して前記抽出画素を決定することを特徴とする請求項1に記載のオートホワイトバランス処理装置。2. The extracted pixel determining unit according to claim 1, wherein the extracted pixel determining unit determines whether or not a pixel within the predetermined color range is a pixel within the predetermined luminance range to determine the extracted pixel. Auto white balance processing device. 前記抽出画素判定手段は、前記所定の輝度範囲内の画素であるか否かの判定に代えて、輝度値順の所定番目から所定数の画素を前記抽出画素として決定することを特徴とする請求項1又は2のいずれか一方に記載のオートホワイトバランス処理装置。The extraction pixel determination unit determines a predetermined number of pixels from a predetermined number in the order of luminance value as the extraction pixels instead of determining whether the pixel is within the predetermined luminance range. Item 3. The automatic white balance processing device according to any one of Items 1 and 2. 前記抽出画素判定手段は、前記所定の色範囲内の画素について輝度の分布を求める輝度分布検出手段と、
前記輝度分布中の所定の輝度値番目から所定数の画素を前記抽出画素として決定する輝度範囲判定手段とを具備したことを特徴とする請求項2に記載のオートホワイトバランス処理装置。
The extracted pixel determination means, a brightness distribution detection means for obtaining a brightness distribution for pixels within the predetermined color range,
3. The automatic white balance processing apparatus according to claim 2, further comprising: a luminance range determining unit that determines a predetermined number of pixels from a predetermined luminance value in the luminance distribution as the extracted pixels.
前記輝度分布検出手段は、所定の輝度上限値及び下限値の範囲内において輝度の分布を求めることを特徴とする請求項4に記載のオートホワイトバランス処理装置。5. The automatic white balance processing device according to claim 4, wherein said luminance distribution detecting means obtains a luminance distribution within a range of a predetermined luminance upper limit value and a predetermined luminance lower limit value. 前記輝度分布検出手段は、所定輝度範囲毎に分割して輝度の分布を求め、
前記輝度範囲判定手段は、前記所定輝度範囲単位で前記抽出画素を決定することを特徴とする請求項4又は5のいずれか一方に記載のオートホワイトバランス処理装置。
The luminance distribution detecting means obtains a luminance distribution by dividing the luminance distribution for each predetermined luminance range,
The automatic white balance processing device according to claim 4, wherein the luminance range determination unit determines the extracted pixel in units of the predetermined luminance range.
前記抽出画素判定手段は、輝度値として採り得る値の最大値よりも所定輝度だけ小さい値以下の輝度値の画素を前記抽出画素として決定することを特徴とする請求項1乃至6のいずれか1つに記載のオートホワイトバランス処理装置。7. The extraction pixel determination unit according to claim 1, wherein the extraction pixel determination unit determines, as the extraction pixel, a pixel having a luminance value equal to or smaller than a maximum value of a luminance value that is smaller than the maximum value by a predetermined luminance. An automatic white balance processing device according to any one of the above. 前記色係数算出手段は、前記ホワイトバランス調整手段によるホワイトバランスの調整前の各色成分を色係数の算出に用いることを特徴とする請求項1乃至3のいずれか1つに記載のホワイトバランス処理装置。4. The white balance processing apparatus according to claim 1, wherein the color coefficient calculation unit uses each color component before white balance adjustment by the white balance adjustment unit for calculating a color coefficient. 5. . 前記色係数算出手段は、前記ホワイトバランス調整手段によるホワイトバランスの調整後の各色成分を色係数の算出に用いることを特徴とする請求項1乃至3のいずれか1つに記載のホワイトバランス処理装置。4. The white balance processing device according to claim 1, wherein the color coefficient calculation unit uses each color component after white balance adjustment by the white balance adjustment unit for calculating a color coefficient. 5. . 前記色係数算出手段は、前記抽出画素と判定された画素の前記各色成分を用いた前記色係数を所定期間で目標値に収束させることを特徴とする請求項1乃至3のいずれか1つに記載のホワイトバランス処理装置。4. The method according to claim 1, wherein the color coefficient calculation unit converges the color coefficient using the respective color components of the pixel determined as the extracted pixel to a target value in a predetermined period. The white balance processing device as described in the above. カラーフィルタが配設された撮像素子の出力に基づく各色成分から輝度−色差色空間への変換によって得られた輝度信号及び色差信号が与えられ、所定の色範囲及び所定の輝度範囲の画素を抽出画素として判定する抽出画素判定手順と、
前記抽出画素判定手順において抽出画素と判定された画素の前記各色成分を用いてホワイトバランス処理のための色係数を算出する色係数算出手順と、
前記各色成分に対する前記色係数を用いた線形処理によってホワイトバランスを調整するホワイトバランス調整手順とを具備したことを特徴とするホワイトバランス処理方法。
A luminance signal and a color difference signal obtained by converting each color component based on the output of the image sensor provided with the color filter into a luminance-chrominance color space are provided, and pixels in a predetermined color range and a predetermined luminance range are extracted. An extracted pixel determination procedure for determining as a pixel;
A color coefficient calculation step of calculating a color coefficient for white balance processing using each of the color components of the pixel determined as the extraction pixel in the extraction pixel determination step;
A white balance adjustment procedure for adjusting white balance by linear processing using the color coefficients for the respective color components.
前記抽出画素判定手順は、前記所定の色範囲内の画素について前記所定の輝度範囲内の画素であるか否かを判定して前記抽出画素を決定することを特徴とする請求項11に記載のオートホワイトバランス処理方法。The method according to claim 11, wherein the extraction pixel determination step determines whether or not a pixel within the predetermined color range is a pixel within the predetermined luminance range to determine the extraction pixel. Auto white balance processing method. カラーフィルタが配設された撮像素子の出力に基づく各色成分から輝度−色差色空間への変換を行って輝度信号及び色差信号を得るマトリクス手段を具備し、
前記マトリクス手段から前記輝度信号及び色差信号を用いて請求項1乃至10のいずれか1つに記載のホワイトバランス処理装置又は請求項11若しくは12に記載のホワイトバランス処理方法によってホワイトバランスを調整することを特徴とする画像信号処理装置。
Matrix means for performing a conversion from each color component based on the output of the image sensor provided with a color filter to a luminance-color difference color space to obtain a luminance signal and a color difference signal,
The white balance is adjusted by the white balance processing device according to any one of claims 1 to 10 or the white balance processing method according to claim 11 or 12, using the luminance signal and the color difference signal from the matrix unit. An image signal processing device characterized by the above-mentioned.
JP2003066740A 2003-03-12 2003-03-12 Auto white balance processing apparatus and method, and image signal processing apparatus Expired - Fee Related JP4352730B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003066740A JP4352730B2 (en) 2003-03-12 2003-03-12 Auto white balance processing apparatus and method, and image signal processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003066740A JP4352730B2 (en) 2003-03-12 2003-03-12 Auto white balance processing apparatus and method, and image signal processing apparatus

Publications (2)

Publication Number Publication Date
JP2004282133A true JP2004282133A (en) 2004-10-07
JP4352730B2 JP4352730B2 (en) 2009-10-28

Family

ID=33284553

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003066740A Expired - Fee Related JP4352730B2 (en) 2003-03-12 2003-03-12 Auto white balance processing apparatus and method, and image signal processing apparatus

Country Status (1)

Country Link
JP (1) JP4352730B2 (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006080892A (en) * 2004-09-09 2006-03-23 Olympus Corp Image recording and reproducing apparatus
EP1781045A2 (en) 2005-10-27 2007-05-02 Seiko Epson Corporation Image processing apparatus and image processing method
WO2007129371A1 (en) 2006-04-25 2007-11-15 The Nippon Synthetic Chemical Industry Co., Ltd. Multilayer film
KR100809344B1 (en) 2006-05-26 2008-03-05 삼성전자주식회사 Method and apparatus for auto white balancing
JP2008072575A (en) * 2006-09-15 2008-03-27 Canon Inc Image processor, method, and computer program
JP2008104051A (en) * 2006-10-20 2008-05-01 Sony Corp Imaging apparatus, imaging method, image processor, image processing method and image processing program
KR100925629B1 (en) 2007-12-07 2009-11-06 삼성전기주식회사 METHOD FOR AUTO WHITE BALANCE IN YCbCr COLOR SPACE
KR100949188B1 (en) * 2008-01-31 2010-03-23 (주)세미솔루션 Method for processing image of the ccd
JP2011040856A (en) * 2009-08-07 2011-02-24 Sharp Corp Image processng apparatus, image processing method, and image processing program
JP2012060594A (en) * 2010-09-13 2012-03-22 Ricoh Co Ltd White balance adjustment device and imaging device
CN102404582A (en) * 2010-09-01 2012-04-04 苹果公司 Flexible color space selection for auto-white balance processing
CN106454305A (en) * 2016-11-14 2017-02-22 浙江宇视科技有限公司 White balance correcting method and device
JP2017085482A (en) * 2015-10-30 2017-05-18 キヤノン株式会社 Video image processing device, video image processing method, program
CN106993175A (en) * 2016-01-20 2017-07-28 瑞昱半导体股份有限公司 Produce the method that the pixel used for realizing auto kine bias function computing screens scope

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006080892A (en) * 2004-09-09 2006-03-23 Olympus Corp Image recording and reproducing apparatus
EP1781045A2 (en) 2005-10-27 2007-05-02 Seiko Epson Corporation Image processing apparatus and image processing method
US8885935B2 (en) 2005-10-27 2014-11-11 Seiko Epson Corporation Image processing apparatus and image processing method
US7974468B2 (en) 2005-10-27 2011-07-05 Seiko Epson Corporation Image processing apparatus and image processing method
EP2326094A1 (en) 2005-10-27 2011-05-25 Seiko Epson Corporation Image processing apparatus and image processing method
WO2007129371A1 (en) 2006-04-25 2007-11-15 The Nippon Synthetic Chemical Industry Co., Ltd. Multilayer film
KR100809344B1 (en) 2006-05-26 2008-03-05 삼성전자주식회사 Method and apparatus for auto white balancing
JP2008072575A (en) * 2006-09-15 2008-03-27 Canon Inc Image processor, method, and computer program
US8466983B2 (en) 2006-09-15 2013-06-18 Canon Kabushiki Kaisha Image processing apparatus performing white balance control
JP2008104051A (en) * 2006-10-20 2008-05-01 Sony Corp Imaging apparatus, imaging method, image processor, image processing method and image processing program
US8654207B2 (en) 2006-10-20 2014-02-18 Sony Corporation Imaging pickup apparatus, image pickup method, image processing apparatus, image processing method, and image processing program
KR100925629B1 (en) 2007-12-07 2009-11-06 삼성전기주식회사 METHOD FOR AUTO WHITE BALANCE IN YCbCr COLOR SPACE
KR100949188B1 (en) * 2008-01-31 2010-03-23 (주)세미솔루션 Method for processing image of the ccd
JP2011040856A (en) * 2009-08-07 2011-02-24 Sharp Corp Image processng apparatus, image processing method, and image processing program
CN102404582A (en) * 2010-09-01 2012-04-04 苹果公司 Flexible color space selection for auto-white balance processing
JP2012060594A (en) * 2010-09-13 2012-03-22 Ricoh Co Ltd White balance adjustment device and imaging device
JP2017085482A (en) * 2015-10-30 2017-05-18 キヤノン株式会社 Video image processing device, video image processing method, program
CN106993175A (en) * 2016-01-20 2017-07-28 瑞昱半导体股份有限公司 Produce the method that the pixel used for realizing auto kine bias function computing screens scope
CN106454305A (en) * 2016-11-14 2017-02-22 浙江宇视科技有限公司 White balance correcting method and device

Also Published As

Publication number Publication date
JP4352730B2 (en) 2009-10-28

Similar Documents

Publication Publication Date Title
JP3892648B2 (en) Image input device, white balance adjustment method, and computer-readable recording medium storing program for executing the method
EP2426928B1 (en) Image processing apparatus, image processing method and program
US7030913B2 (en) White balance control apparatus and method, and image pickup apparatus
US7583297B2 (en) Image processing method, image processing apparatus, and computer program used therewith
US7084907B2 (en) Image-capturing device
US7358988B1 (en) Image signal processor for performing image processing appropriate for an output device and method therefor
EP1592227A2 (en) Apparatus and method for determining an image processing parameter from image data at a user-selected image position
RU2496250C1 (en) Image processing apparatus and method
JP4352730B2 (en) Auto white balance processing apparatus and method, and image signal processing apparatus
US8280162B2 (en) Image processing apparatus and recording medium recording image processing program
WO2015008681A1 (en) Image processing device, image processing method, and image processing program
JP2009017229A (en) Imaging device and imaging control method
JP4374484B2 (en) A method for improving image quality in digital cameras.
JP3764461B2 (en) White balance adjustment method for digital video apparatus
WO2019104047A1 (en) Global tone mapping
JPH11113018A (en) Image pickup device
JP2008219230A (en) Imaging apparatus, and image processing method
KR101143834B1 (en) Aparatus and metod for controlling auto white balance
JP2004112473A (en) Gradation corrector
JP4067775B2 (en) White balance adjustment device
KR101903428B1 (en) System and Method of Color Correction for Related Images
JP2009260542A (en) Color correction device and color correction method
JP3384916B2 (en) Imaging device
JP4258237B2 (en) Image signal processing device
JP2009111894A (en) Video signal processing device, imaging apparatus and video signal processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060309

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070403

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080805

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080911

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081014

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081208

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090325

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20090406

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: 20090707

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090720

R150 Certificate of patent or registration of utility model

Ref document number: 4352730

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120807

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130807

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees