JP2004304695A - White balance adjustment method - Google Patents

White balance adjustment method Download PDF

Info

Publication number
JP2004304695A
JP2004304695A JP2003097866A JP2003097866A JP2004304695A JP 2004304695 A JP2004304695 A JP 2004304695A JP 2003097866 A JP2003097866 A JP 2003097866A JP 2003097866 A JP2003097866 A JP 2003097866A JP 2004304695 A JP2004304695 A JP 2004304695A
Authority
JP
Japan
Prior art keywords
white balance
light source
adjustment
source type
correction value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003097866A
Other languages
Japanese (ja)
Inventor
Genta Sato
玄太 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2003097866A priority Critical patent/JP2004304695A/en
Publication of JP2004304695A publication Critical patent/JP2004304695A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To perform white balance adjustment so that color deviation or variation can be prevented from occurring in the final output obtained at the time of actual photographing, even if the photographing lens of each electronic camera has variation or a color image pickup element has sensitivity variation in spectral characteristics. <P>SOLUTION: When a camera 10 is adjusted before shipment, R, G, B values of the final output to be obtained at the time of actual photographing and the fine-adjustment value of white balance for making the values match target values are obtained by using a reference chart or a light source for adjustment. In actual photographing, the white balance of the R, G, B signals to be outputted from a CCD 38 is adjusted on the basis of the white balance correction value corresponding to the light source kind selected by a manual operation and the fine-adjustment value. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明はホワイトバランス調整方法に係り、特に電子カメラごとの色バラツキも調整可能なホワイトバランス方法に関する。
【0002】
【従来の技術】
従来、マニュアルホワイトバランスモードを設定し、太陽光、曇天光、タングステン光、蛍光灯などの光源種から所望の光源種を手動で選択すると、その選択された光源種に適したホワイトバランス補正値によりホワイトバランス調整を行う電子カメラが知られている(特許文献1)。
【0003】
また、特許文献2には、ホワイトバランス調整後の画像データからホワイトバランス微調整ゲインを算出し、この微調整ゲインによってホワイトバランス調整後の画像データの微調整を行う記載がある。
【0004】
【特許文献1】
特開2000−115588号公報
【0005】
【特許文献2】
特開2000−69488号公報
【0006】
【発明が解決しようとする課題】
しかしながら、特許文献1に記載のように、光源種の選択等によって予め決定したホワイトバランス補正値によりカラー撮像素子から得られるR,G,B信号のホワイトバランス調整を行う場合、同じ機種の電子カメラでも撮影レンズのバラツキ、カラー撮像素子の分光特性の感度バラツキ等によってカメラの号機により色バラツキが生じるという問題があった。
【0007】
一方、特許文献2に記載の電子カメラは、ホワイトバランス調整後の画像データからホワイトバランス微調整ゲインを算出し、この微調整ゲインによってホワイトバランス調整後の画像データの微調整を行うことで、予め決定されているホワイトバランス調整ゲインの調整不良が発生しても色かぶり画像の発生を防止するものであり、上記撮影レンズのバラツキ、カラー撮像素子の分光特性の感度バラツキ等を防ぐことを目的とするものではない。
【0008】
本発明はこのような事情に鑑みてなされたもので、各電子カメラの撮影レンズのバラツキやカラー撮像素子の分光特性の感度バラツキ等があっても実際の撮影時に得られる最終出力に色ずれやバラツキが生じないように補正することができるホワイトバランス調整方法を提供することを目的とする。
【0009】
【課題を解決するための手段】
前記目的を達成するために請求項1に係る発明は、操作部材の操作に基づいて光源種を選択し、該選択した光源種に適したホワイトバランス補正値を第1の記憶手段から読み出すとともに、電子カメラの撮像光学系及びカラー撮像素子のバラツキに伴うホワイトバランスの微調整値を第2の記憶手段から読み出し、前記読み出したホワイトバランス補正値及び微調整値に基づいて前記カラー撮像素子から得られるR,G,B信号のホワイトバランス調整を行う電子カメラのホワイトバランス調整方法であって、
(a) ホワイトバランス調整用の所定のチャートを所定の光源種の下で撮影するとともに、前記第1の記憶手段から前記所定の光源種に対応するホワイトバランス補正値に基づいて前記カラー撮像素子から得られたR,G,B信号のホワイトバランス調整を行うステップと、
(b) 前記ステップ(a) で得られるR,G,B信号の各色の積算値の比を求めるステップと、
(c) 前記ステップ(b) で求めたR,G,B信号の各色の積算値の比を、前記所定のチャートを所定の光源種の下で撮影したときに得られる目標のR,G,B信号の各色の積算値の比(目標値)に一致させるための微調整値を求めるステップと、
(d) 前記ステップ(c) で求めたホワイトバランスの微調整値を前記第2の記憶手段に記憶させるステップと、
を含むことを特徴としている。
【0010】
即ち、前記第1の記憶手段には、晴れ、曇り、蛍光灯、タングステン電球等の各光源種に適したR,G,Bの標準的なホワイトバランス補正値が記憶されている。尚、同一機種の電子カメラであっても、電子カメラごとに撮像光学系のバラツキ、カラー撮像素子の感度バラツキ等があるため、予め設定した光源種に応じた前記標準的なホワイトバランス補正値によってホワイトバランス調整を行っても必ずしも適正なホワイトバランス調整ができず、カメラごとに色ずれが生じる。そこで、同じ機種の撮影光学系、撮像素子の分光感度バラツキまでを考慮して、カメラごとの色ずれを補正するためのホワイトバランスの微調整値を求め、その微調整値を含むホワイトバランス調整を行うようにしている。
【0011】
前記ホワイトバランスの微調整値は、以下のようにして求める。即ち、ホワイトバランス調整用の所定のチャートを所定の光源種の下で撮影するとともに、前記第1の記憶手段から前記所定の光源種に対応するホワイトバランス補正値に基づいて前記カラー撮像素子から得られたR,G,B信号のホワイトバランス調整を行う。続いて、このホワイトバランス調整後に得られるR,G,B信号の各色の積算値の比を求める。そして、このR,G,B信号の各色の積算値の比と、前記所定のチャートを所定の光源種の下で撮影したときに得られる目標値とを一致させるための微調整値を求める。
【0012】
実際の撮影時には、操作部材の操作によって予め決定されたホワイトバランス補正値と前記微調整値とを使用してカラー撮像素子から得られたR,G,B信号のホワイトバランス調整を行い、これにより撮影光学系、撮像素子の分光感度バラツキまでを考慮したホワイトバランス調整が行われる。
【0013】
請求項2に示すように、請求項1に係るホワイトバランス調整方法において、前記操作部材の操作に基づいてホワイトバランス調整を行うマニュアルホワイトバランス調整モードと、自動的にホワイトバランス調整を行うオートホワイトバランス調整モードとを有し、前記オートホワイトバランス調整モードが選択されると、前記カラー撮像素子から得られるR,G,B信号を前記第2の記憶手段に記憶されたホワイトバランスの微調整値によって補正するステップと、前記補正後のR,G,B信号に基づいてホワイトバランス補正値を算出するステップと、前記算出したホワイトバランス補正値に基づいて前記補正後のR,G,B信号のホワイトバランス調整を行うステップと、を含むことを特徴としている。
【0014】
即ち、オートホワイトバランス調整モード時には、前記カラー撮像素子から得られるR,G,B信号を、前記第2の記憶手段に記憶されたホワイトバランスの微調整値によって補正することにより、カラー撮像素子の分光感度バラツキ等に依存しないR,G,B信号を得るようにしている。このようにして補正したR,G,B信号に基づいて自動的にホワイトバランス補正値を算出し、この算出したホワイトバランス補正値により前記補正後のR,G,B信号のホワイトバランス調整を行うようにしている。
【0015】
請求項3に示すように、請求項2に係るホワイトバランス調整方法において、前記ホワイトバランス補正値を算出するステップは、前記補正後のR,G,B信号に基づいて1画面を複数のエリアに分割する各分割エリアの色情報を求めるステップと、前記複数の分割エリアの色情報を相互に近似する色情報別にグループ分けするステップと、所定の個数以上又は最大の個数の色情報を有するグループの色情報に基づいて前記ホワイトバランス補正値を算出するステップと、を含むことを特徴としている。
【0016】
各分割エリアの色情報は、その分割エリア内のR,G,B信号の積算値の比から求めることができ、また、色情報別のグループ分けは、色空間上で隣接する色情報の色空間上の距離が所定値以内のものを同一グループとする。そして、所定の個数以上の1乃至複数のグループの色情報、又は最大の個数の色情報を有するグループの色情報に基づいてホワイトバランス補正値を算出するようにしている。
【0017】
請求項4に係る発明は、操作部材の操作に基づいて光源種を選択し、該選択した光源種に適したホワイトバランス補正値を記憶手段から読み出し、前記読み出したホワイトバランス補正値に基づいて前記カラー撮像素子から得られるR,G,B信号のホワイトバランス調整を行う電子カメラのホワイトバランス調整方法であって、
(a) ホワイトバランス調整用の所定のチャートを所定の光源種の下で撮影し、前記カラー撮像素子から得られたR,G,B信号の各色の積算値の比を求めるステップと、
(b) 前記ステップ(a) で求めたR,G,B信号の各色の積算値の比を、前記所定のチャートを所定の光源種の下で撮影したときに得られる目標のR,G,B信号の各色の積算値の比(目標値)に一致させるためのホワイトバランス補正値を求めるステップと、
(c) 前記ステップ(b) で求めたホワイトバランス補正値を前記所定の光源種におけるホワイトバランス補正値として前記記憶手段に記憶させるステップと、
(d) 各光源種ごとに前記ステップ(a) 〜(c) を繰り返すステップと、
を含むことを特徴としている。
【0018】
請求項1に係る発明では、第1の記憶手段に光源種ごとのホワイトバランス補正値が記憶され、第2の記憶手段にホワイトバランスの微調整値が記憶されているが、上記請求項4に係る発明では、前記微調整値を含むホワイトバランス補正値を記憶手段に記憶させるようにしている。
【0019】
請求項5に示すように、請求項1又は4に記載のホワイトバランス調整方法において、前記ステップ(a) 〜(d) は、個々の電子カメラの出荷前の調整時に行うことを特徴としている。
【0020】
【発明の実施の形態】
以下添付図面に従って本発明に係るホワイトバランス調整方法の好ましい実施の形態について詳説する。
【0021】
図1は本発明に係るホワイトバランス調整方法が適用された電子カメラの実施の形態を示すブロック図である。
【0022】
このカメラ10は、静止画や動画の記録及び再生機能を備えたデジタルカメラであり、カメラ10全体の動作は中央処理装置(CPU)12によって統括制御される。 CPU12は、所定のプログラムに従って本カメラシステムを制御する制御手段として機能するとともに、自動露出(AE)演算、自動焦点調節(AF)演算、ホワイトバランス(WB)調整演算など、各種演算を実施する演算手段として機能する。
【0023】
バス14を介してCPU12と接続されたROM16には、CPU12が実行するプログラム及び制御に必要な各種データ等が格納され、EEPROM17には、CCD画素欠陥情報、カメラ動作に関する各種定数/情報等が格納されている。
【0024】
また、メモリ(SDRAM)18は、プログラムの展開領域及びCPU12の演算作業用領域として利用されるとともに、画像データや音声データの一時記憶領域として利用される。VRAM20は画像データ専用の一時記憶メモリであり、A領域20AとB領域20Bが含まれている。メモリ18とVRAM20は共用することが可能である。
【0025】
カメラ10にはモード選択スイッチ22、撮影ボタン24、その他、メニュー/OKキー、十字キー、キャンセルキーなどの操作手段26が設けられている。これら各種の操作部(22〜26)からの信号はCPU12に入力され、CPU12は入力信号に基づいてカメラ10の各回路を制御し、例えば、レンズ駆動制御、撮影動作制御、画像処理制御、画像データの記録/再生制御、画像表示装置28の表示制御などを行う。
【0026】
モード選択スイッチ22は、撮影モードと再生モードとを切り換えるための操作手段である。モード選択スイッチ20を操作して可動接片22Aを接点aに接続させると、その信号がCPU12に入力され、カメラ10は撮影モードに設定され、可動接片22Aを接点bに接続させると、カメラ10は記録済みの画像を再生する再生モードに設定される。
【0027】
撮影ボタン24は、撮影開始の指示を入力する操作ボタンであり、半押し時にONするS1スイッチと、全押し時にONするS2スイッチとを有する二段ストローク式のスイッチで構成されている。
【0028】
メニュー/OKキーは、画像表示装置28の画面上にメニューを表示させる指令を行うためのメニューボタンとしての機能と、選択内容の確定及び実行などを指令するOKボタンとしての機能とを兼備した操作キーである。十字キーは、上下左右の4方向の指示を入力する操作部であり、メニュー画面から項目を選択したり、各メニューから各種設定項目の選択を指示したりするボタン(カーソル移動操作手段)として機能する。また、十字キーの上/下キーは撮影時のズームスイッチあるいは再生時の再生ズームスイッチとして機能し、左/右キーは再生モード時のコマ送り(順方向/逆方向送り)ボタンとして機能する。キャンセルキーは、選択項目など所望の対象の消去や指示内容の取消し、あるいは1つ前の操作状態に戻らせる時などに使用される。
【0029】
画像表示装置28は、カラー表示可能な液晶ディスプレイで構成されている。画像表示装置28は、撮影時に画角確認用の電子ファインダとして使用できるとともに、記録済み画像を再生表示する手段として利用される。また、画像表示装置28は、ユーザインターフェース用表示画面としても利用され、必要に応じてメニュー情報や選択項目、設定内容などの情報が表示される。液晶ディスプレイに代えて、有機ELなど他の方式の表示装置(表示手段)を用いることも可能である。
【0030】
カメラ10は、メディアソケット(メディア装着部)30を有し、メディアソケット30には記録メディア32を装着することができる。記録メディアの形態は特に限定されず、xD−PictureCard(商標)、スマートメディア(商標)に代表される半導体メモリカード、可搬型小型ハードディスク、磁気ディスク、光ディスク、光磁気ディスクなど、種々の媒体を用いることができる。
【0031】
メディアコントローラ34は、メディアソケット30に装着される記録メディア32に適した入出力信号の受渡しを行うために所要の信号変換を行う。
【0032】
また、カメラ10はパソコンその他の外部機器と接続するための通信手段としてUSBインターフェース部36を備えている。図示せぬUSBケーブルを用いてカメラ10と外部機器を接続することにより、外部機器との間でデータの受渡しが可能となる。もちろん、通信方式はUSBに限らず、IEEE1394やBluetooth その他の通信方式を適用してもよい。
【0033】
次に、カメラ10の撮影機能について説明する。
【0034】
モード選択スイッチ22によって撮影モードが選択されると、カラーCCD固体撮像素子(以下CCDと記載)38を含む撮像部に電源が供給され、撮影可能な状態になる。
【0035】
レンズユニット40は、フォーカスレンズを含む撮影レンズ42と絞り兼用メカシャッター44とを含む光学ユニットである。レンズユニット40は、CPU12によって制御されるレンズ駆動部46、絞り駆動部48によって電動駆動され、ズーム制御、フォーカス制御及びアイリス制御が行われる。
【0036】
レンズユニット40を通過した光は、CCD38の受光面に結像される。CCD38の受光面には多数のフォトダイオード(受光素子)が二次元的に配列されており、各フォトダイオードに対応して赤(R)、緑(G)、青(B)の原色カラーフィルタが所定の配列構造(ベイヤー、Gストライプなど)で配置されている。また、CCD38は、各フォトダイオードの電荷蓄積時間(シャッタースピード)を制御する電子シャッター機能を有している。CPU12は、タイミングジェネレータ50を介してCCD38での電荷蓄積時間を制御する。尚、CCD38に代えてMOS型など他の方式の撮像素子を用いてもよい。
【0037】
CCD38の受光面に結像された被写体像は、各フォトダイオードによって入射光量に応じた量の信号電荷に変換される。各フォトダイオードに蓄積された信号電荷は、CPU12の指令に従いタイミングジェネレータ50から与えられる駆動パルスに基づいて信号電荷に応じた電圧信号(画像信号)として順次読み出される。
【0038】
CCD38から出力された信号はアナログ処理部(CDS/AMP)52に送られ、ここで画素ごとのR,G,B信号がサンプリングホールド(相関二重サンプリング処理)され、増幅された後、A/D変換器54に加えられる。A/D変換器54によってデジタル信号に変換された点順次のR,G,B信号は、画像入力コントローラ56を介してメモリ18に記憶される。
【0039】
画像信号処理回路58は、メモリ18に記憶されたR,G,B信号をCPU12の指令に従って処理する。即ち、画像信号処理回路58は、同時化回路(単板CCDのカラーフィルタ配列に伴う色信号の空間的なズレを補間して色信号を同時式に変換する処理回路)、ホワイトバランス補正回路、ガンマ補正回路、輪郭補正回路、輝度・色差信号生成回路等を含む画像処理手段として機能し、CPU12からのコマンドに従ってメモリ18を活用しながら所定の信号処理を行う。
【0040】
画像信号処理回路58に入力されたRGBの画像データは、画像信号処理回路58において輝度信号(Y信号)及び色差信号(Cr,Cb 信号)に変換されるとともに、ガンマ補正等の所定の処理が施される。画像信号処理回路58で処理された画像データはVRAM20に格納される。
【0041】
撮影画像を画像表示装置28にモニタ出力する場合、VRAM20から画像データが読み出され、バス14を介してビデオエンコーダ60に送られる。ビデオエンコーダ60は、入力された画像データを表示用の所定方式の信号(例えば、NTSC方式のカラー複合映像信号)に変換して画像表示装置28に出力する。
【0042】
CCD38から出力される画像信号によって、1コマ分の画像を表す画像データがA領域20AとB領域22Bとで交互に書き換えられる。VRAM22のA領域22A及びB領域22Bのうち、画像データが書き換えられている方の領域以外の領域から、書き込まれている画像データが読み出される。このようにしてVRAM20内の画像データが定期的に書き換えられ、その画像データから生成される映像信号が画像表示装置28に供給されることにより、撮像中の映像がリアルタイムに画像表示装置28に表示される。撮影者は、画像表示装置28に表示される映像(スルームービー画)によって撮影画角を確認できる。
【0043】
撮影ボタン24が半押しされ、S1がオンすると、カメラ10はAE及びAF処理を開始する。即ち、CCD38から出力された画像信号はA/D変換後に画像入力コントローラ56を介してAF検出回路62並びにAE/AWB検出回路64に入力される。
【0044】
AE/AWB検出回路64は、1画面を複数のエリア(例えば、16×16)に分割し、分割エリアごとにRGB信号を積算する回路を含み、その積算値をCPU12に提供する。CPU12は、AE/AWB検出回路64から得た積算値に基づいて被写体の明るさ(被写体輝度)を検出し、撮影に適した露出値(撮影EV値)を算出する。求めた露出値と所定のプログラム線図に従い、絞り値とシャッタースピードが決定され、これに従いCPU12はCCD38の電子シャッター及びアイリスを制御して適正な露光量を得る。
【0045】
また、AE/AWB検出回路64は、自動ホワイトバランス調整時には、分割エリアごとにRGB信号の色別の平均積算値を算出し、その算出結果をCPU12に提供する。CPU12は、Rの積算値、Bの積算値、Gの積算値を得て、各分割エリアごとにR/G及びB/Gの比を求め、これらR/G、B/Gの値のR/G、B/Gの色空間における分布等に基づいて光源種判別を行い、判別された光源種に適したホワイトバランス調整値に従って、例えば、各比の値がおよそ1(つまり、1画面においてRGBの積算比率がR:G:B≒1:1:1)になるように、ホワイトバランス調整回路のR,G,B信号に対するゲイン値(ホワイトバランス補正値)を制御し、各色チャンネルの信号に補正をかける。前述した各比の値を1以外の値になるようにホワイトバランス調整回路のゲイン値を調整すると、ある色味が残った画像を生成することができる。尚、ホワイトバランス調整の詳細は後述する。
【0046】
本カメラ10におけるAF制御は、例えば映像信号のG信号の高周波成分が極大になるようにフォーカシングレンズ(撮影レンズ42を構成するレンズ光学系のうちフォーカス調整に寄与する移動レンズ)を移動させるコントラストAFが適用される。即ち、AF検出回路62は、G信号の高周波成分のみを通過させるハイパスフィルタ、絶対値化処理部、画面内(例えば、画面中央部)に予め設定されているフォーカス対象エリア内の信号を切り出すAFエリア抽出部、及びAFエリア内の絶対値データを積算する積算部から構成される。
【0047】
AF検出回路62で求めた積算値のデータはCPU12に通知される。CPU12は、レンズ駆動部46を制御してフォーカシングレンズを移動させながら、複数のAF検出ポイントで焦点評価値(AF評価値)を演算し、評価値が極大となるレンズ位置を合焦位置として決定する。そして、求めた合焦位置にフォーカシングレンズを移動させるようにレンズ駆動部46を制御する。尚、AF評価値の演算はG信号を利用する態様に限らず、輝度信号(Y信号)を利用してもよい。
【0048】
撮影ボタン24が半押しされ、S1オンによってAE/AF処理が行われ、撮影ボタン24が全押しされ、S2オンによって記録用の撮影動作がスタートする。S2オンに応動して取得された画像データは画像信号処理回路58において輝度/色差信号(Y/C信号)に変換され、ガンマ補正等の所定の処理が施された後、メモリ18に格納される。
【0049】
メモリ18に格納されたY/C信号は、圧縮伸張回路66によって所定のフォーマットに従って圧縮された後、メディアコントローラ34を介して記録メディア32に記録される。例えば、静止画についてはJPEG(Joint Photographic Experts Group)形式で記録される。
【0050】
モード選択スイッチ22により再生モードが選択されると、記録メディア32に記録されている最終の画像ファイル(最後に記録されたファイル)の圧縮データが読み出される。最後の記録に係るファイルが静止画ファイルの場合、この読み出された画像圧縮データは、圧縮伸張回路66を介して非圧縮のYC信号に伸張され、画像信号処理回路58及びビデオエンコーダ60を介して表示用の信号に変換された後、画像表示装置28に出力される。これにより、当該ファイルの画像内容が画像表示装置28の画面上に表示される。
【0051】
静止画の一コマ再生中(動画の先頭フレーム再生中も含む)に、十字キーの右キー又は左キーを操作することによって、再生対象のファイルを切り換えること(順コマ送り/逆コマ送り)ができる。コマ送りされた位置の画像ファイルが記録メディア32から読み出され、上記と同様にして静止画像や動画が画像表示装置28に再生表示される。
【0052】
次に、本発明に係るホワイトバランス調整方法について説明する。
【0053】
同じ機種のカメラ10でもレンズ、CCD分光感度バラツキ等があり、光源種に応じて予め準備されたホワイトバランス補正値(WB補正値)によってホワイトバランス調整を行ってもカメラごとにホワイトバランス調整誤差(色ずれ)が生じる。そこで、標準のカメラでのホワイトバランス調整と同じホワイトバランス調整を行うために、個々のカメラのホワイトバランス調整誤差を補正する。
【0054】
図2は個々のカメラのホワイトバランス調整誤差を補正するためのホワイトバランス微調整値(WB微調整値)を求める処理手順を示すフローチャートであり、この処理はカメラの出荷前の調整時等に行われる。
【0055】
図2において、まず、カメラ10の画像表示装置28にメニュー画面を表示させ、このメニュー画面上で手動でホワイトバランスを行うための所定の光源種(この実施の形態では、晴れ「デーライト」)を選択する(ステップS10)。この選択は、十字キーとメニュー/OKキーの操作によって行うことができる。また、この光源種の選択により、図3に示すように各光源種ごとに予め設定されているWB補正値(R,G,Bのゲイン値)のメモリテーブルから選択されたWB補正値が読み出される。
【0056】
尚、図3に示すメモリテーブルには、光源種としては、晴れ、日陰−曇り、蛍光灯1(昼光色蛍光灯)、蛍光灯2(昼白色蛍光灯)、蛍光灯3(白色蛍光灯)、タングステン電球等があり、各光源色ごとに、その光源種の下で撮影したときの画像のホワイトバランスを適正に調整するためのR,G,BのWB補正値が記憶されている。また、各光源種ごとに設定されているWB補正値は、レンズやCCDの分光感度等が設計通りの標準のカメラを前提として設定されている。
【0057】
次に、晴れの調整光源の下でグレーチャート(N5グレー)を撮影し(ステップS12)、この撮影時にCCD38から得られるR,G,B信号に対して、予め設定された晴れのWB補正値(Rg1、Gg1、Bg1)を乗算することによりホワイトバランス調整を行う(ステップS14)。
【0058】
続いて、ホワイトバランス調整後のR,G,B信号から1画面全体のR,G,Bごとの平均積算値(Rmean, mean, mean)を算出する(ステップS16)。そして、上記算出したR,G,Bの平均積算値と、晴れの光源種の下で撮影された場合に得られるR,G,Bの目標の平均積算値(目標値Rref,ref,ref 、例えばN5グレーの晴れの目標値のR,G,B比=121:121:116)とに基づいてホワイトバランス調整誤差を補正するためのWB微調整値(Δ
g,ΔGg,ΔB)を、次式により求める(ステップS18)。
【0059】
【数1】
ΔR=Rref /Rmean
ΔG=Gref /Gmean
ΔB=Bref /Bmean
このようにして求めたWB微調整値(ΔRg,ΔGg,ΔB)は、EEPROM17に記憶される(ステップS20)。
【0060】
尚、EEPROM17に記憶されたWB微調整値(ΔRg,ΔGg,ΔB)は、カメラ10での撮影時にCCD38から得られるR,G,B信号に乗算される。これにより、カメラごとにレンズユニット40、CCD38の分光特性の感度バラツキがあってもそのバラツキに伴う色ずれが修正されたR,G,B信号が得れるようになる。
【0061】
また、WB微調整値(ΔRg,ΔGg,ΔB)を算出するために使用する目標値Rref,ref,ref は、予めカメラ内のメモリに記憶されている。更に、晴れの調整光源下での撮影に基づいてWB微調整値を求める場合に限らず、他の色温度の調整光源下での撮影に基づいてWB微調整値を求めてもよいし、複数の調整光源下で求めた複数のWB微調整値から最適なWB微調整値を求めるようにしてもよい。
【0062】
更に、上記のWB微調整値の算出及びEEPROM17への記録は、カメラ10自身で行う場合に限らず、ホワイトバランス調整時に使用する外部の調整機器で行うようにしてもよい。
【0063】
次に、上記WB微調整値を使用した実際の撮影時のホワイトバランス調整について説明する。
【0064】
図4において、まず、カメラ10において設定されたWB調整モードがマニュアルWB調整モードかオートWB調整モードかを判別する(ステップS30)。尚、マニュアルWB調整モードかオートWB調整モードかは、マニュアル撮影モード時に十字キーとメニュー/OKキーの操作によって特定の光源種が選択されている場合には、マニュアルWB調整モードとして判別され、「AUTO」のメニューが選択されている場合には、オートWB調整モードとして判別される。また、撮影モードが、オート撮影モードの場合には、WB調整モードも自動的にオートWB調整モードとなる。
【0065】
WB調整モードがマニュアルWB調整モードと判別されると、ユーザによって選択された光源種が撮影被写体を照明する光源種として設定され(ステップS32)、図3に示すように、その設定された光源種下での撮影に適したWB補正値が決定される(ステップS34)。
【0066】
その後、撮影ボタン24が押されると、マニュアル撮影モードにおける撮影が行われ(ステップS36)、この撮影時にCCD38から得られたR,G,B信号は一旦メモリ18に格納され、続いてこれらのR,G,B信号に対してホワイトバランス調整が行われる(ステップS38)。このホワイトバランス調整は、ステップS34で決定されたWB補正値と、図2のフローチャートで説明したWB微調整値とに基づいてR,G,B信号をホワイトバランス調整する。即ち、R,G,B信号の各色信号にそれぞれWB微調整値(ΔRg,ΔGg,ΔB)を乗算するとともに、光源種に応じたWB補正値を乗算する。
【0067】
その後、ホワイトバランス調整されたR,G,B信号に対してガンマ処理、YC処理等の画像処理を行い、更にYC処理されたY/C信号を所定のフォーマットに従って圧縮して記録メディア32に記録する(ステップS40〜S44)。
【0068】
一方、ステップS32でオートWB調整モードと判別された後、撮影ボタン24が押されると、オートWB調整モードでの撮影が行われる(ステップS50)。この撮影時にCCD38から得られたR,G,B信号は一旦メモリ18に格納されたのち、これらのR,G,B信号にそれぞれWB微調整値(ΔRg,ΔGg,ΔB)を乗算し、事前にカメラごとのレンズ、CCDの分光特性の感度バラツキによる調整誤差を補正する(ステップ52)。この補正したR,G,B信号は再びメモリ18に格納される。
【0069】
次に、メモリ18に格納されている前記補正後のR,G,B信号を用いて、1画面が16×16に分割された256個の分割エリアごとにRGB信号の色別の平均積算値を算出し、各分割エリアごとにR,G,Bの平均積算値の比(即ち、R/G及びB/Gの比)を算出する(ステップS54)。
【0070】
このようにして算出された256個の分割エリアごとの色情報は、前記R/G、B/Gの値に基づいて図5に示すR/G、B/Gの色空間上で分布する256個の点として表すことができる。
【0071】
続いて、各分割エリアの色情報に基づいて隣り合った分割エリアの色情報(R/G1,/G)、(R/G2,/G)間の色空間上の距離Dを、次式によって算出する。
【0072】
【数2】

Figure 2004304695
このようにして算出される距離Dが、所定値以内にある場合には、その分割エリアの色情報は、同じグループ内のものと見なし、256個の分割エリアの色情報をグループ分けする。
【0073】
そして、各グループ内に所定の個数(例えば、5個)以上入った場合には、そのグループを、後述するAWB調整に使用するためのコーンCORNとみなし、所定の個数未満のグループはコーンCORNと見なさない。図5上では、2つのコーンCORN1 、CORN2 が示されている。
【0074】
次に、上記のようにして求めたコーンCORNi(i=1,2,…) ごとに、各コーンCORNiを代表する色情報(例えば、コーンCORNiの中心の色情報)を、ニュートラル・グレー(Nグレー)にするためのR/GゲインGri、B/GゲインGbiを求め、これらのR/GゲインGri、B/GゲインGbiについて、各コーンCORNi内の個数Nで重み付けしたR/GゲインGr 、B/GゲインGb を、次式により求める(ステップS56)。
【0075】
【数3】
Gr =ΣGri×Ni/ΣNi
Gb=ΣGbi×Ni/ΣNi
以上のようにして求めたR/GゲインGr 、B/GゲインGb から前記メモリ18に保存したR,G,B信号に対するR,G,Bゲイン値(WB補正値)を求める(ステップS58)。尚、G信号に付与する所要のゲイン値を、前記R/GゲインGr 、B/GゲインGb に乗算することによりR、B信号に付与するR、Bゲイン値を求めることができる。また、G信号に付与する所要のゲイン値を1とした場合には、前記R/GゲインGr 、B/GゲインGb がそのままR、B信号に付与するR、Bゲイン値となる。
【0076】
そして、ステップS58で算出したR,G,Bゲイン値(WB補正値)により前記メモリ18に保存したR,G,B信号を補正する。これによりホワイトバランス調整が行われる(ステップS60)。
【0077】
その後、ホワイトバランス調整されたR,G,B信号は、マニュアルWB調整モードでの処理と同様に、ガンマ処理、YC処理、記録処理を経て記録メディア32に記録される(ステップS40〜S44)。
【0078】
上記オートWB調整モード時のステップS56において、各コーンCORNiを代表する色情報をNグレーにするためのR/GゲインGri、B/GゲインGbiに基づいてR/GゲインGr 、B/GゲインGb を算出するようにしたため、実際の撮影時の光源種にかかわらず、デーライト(晴れ)の光源種下で撮影されたようなホワイトバランス調整が行われることになる。
【0079】
そこで、前記メモリ18に保存したR,G,B信号に基づいて実際の撮影時の光源種の判別を行い、ステップS58では光源種に応じて更にその光源種の色味を出すためのホワイトバランス調整を行うことが好ましい。
【0080】
尚、光源種の判別は、例えば、最大個数を有するコーンCORNを代表する色情報が、図3に示した晴れ、日陰−曇り、蛍光灯1、蛍光灯2、蛍光灯3、タングステン電球等の各光源種の色情報のうちの最も近い色情報を有する光源種を求めることで撮影時の光源種を自動判別することができる。また、R/G、B/Gの色空間上で光源種ごとに予め設定した検出枠の中に入る個数や被写体の明るさ等に基づいて光源種を自動判別することもでき(特開2002−218495号公報参照)、光源種の判別方法はこの実施の形態に限定されない。
【0081】
また、光源種の判別をステップS56の処理前に行い、ステップS56では、各コーンCORNiを代表する色情報を、事前に判別した光源種に対応した色情報にするためのR/GゲインGri、B/GゲインGbiを求め、これらのR/GゲインGri、B/GゲインGbiに基づいてR/GゲインGr 、B/GゲインGb を算出するようにしてもよい。
【0082】
図6は個々のカメラのレンズ、CCDの分光特性の感度バラツキによるホワイトバランス調整誤差の補正が可能なWB補正値を求める方法を示すフローチャートであり、この処理は、カメラの出荷前の調整時等に行われる。
【0083】
同図において、まず、カメラ10の画像表示装置28にメニュー画面を表示させ、このメニュー画面上で手動でホワイトバランスを行うための所定の光源種を選択する(ステップS70)。この選択は、十字キーとメニュー/OKキーの操作によって行うことができる。
【0084】
次に、ステップS70で選択した調整光源の下でグレーチャートを撮影し(ステップS72)、この撮影時にCCD38から得られるR,G,B信号から1画面全体のR,G,Bごとの平均積算値(Rmean, mean, mean)を算出する(ステップS74)。
【0085】
上記算出したR,G,Bの平均積算値(Rmean, mean, mean)と、ステップS70で選択した光源種の下で撮影された場合に得られるR,G,Bの目標値(Rref,ref,ref )とに基づいてホワイトバランス調整を行うためのWB補正値(Rg,g,)を、次式により求める(ステップS76)。
【0086】
【数4】
=Rref /Rmean
=Gref /Gmean
=Bref /Bmean
このようにして求めたWB補正値(Rg,g,)は、EEPROM17に記憶される(ステップS78)。
【0087】
次に、カメラ10のマニュアルWB調整モード時に選択可能な全ての光源種のWB補正値が求められたか否かが判別され(ステップS80)、否定の場合には、ステップS70に戻り、ここで別の光源種が選択され、一方、肯定の場合には、光源種別のWB補正値を求める処理を終了する。
【0088】
このようにして求められEEPROM17に記憶された光源種別のWB補正値は、個々のカメラのレンズ、CCDの分光特性の感度バラツキが考慮されたWB補正値として記憶される。これにより、マニュアルWB調整モード時の光源種の選択に基づいて前記EEPROM17から読み出されるWB補正値に基づくホワイトバランス調整にはカメラごとのホワイトバランス調整誤差が生じることがな
い。
【発明の効果】
以上説明したように本発明によれば、各電子カメラの撮影レンズのバラツキやカラー撮像素子の分光特性の感度バラツキ等があっても実際の撮影時に得られる最終出力にカメラの号機による色ずれやバラツキが生じないようすることができる。
【図面の簡単な説明】
【図1】本発明に係るホワイトバランス調整方法が適用された電子カメラの実施の形態を示すブロック図
【図2】個々のカメラのホワイトバランス調整誤差を補正するためのホワイトバランス微調整値(WB微調整値)を求める処理手順を示すフローチャート
【図3】予め光源種ごとにWB補正値が格納されているメモリテーブルの一例を示す図
【図4】実際の撮影時のホワイトバランス調整方法を説明するために用いたフローチャート
【図5】複数の分割エリアの色情報のR/G、B/Gの色空間上での分布の一例を示すグラフ
【図6】個々のカメラのホワイトバランス調整誤差の補正が可能なWB補正値を求める方法を説明するために用いたフローチャート
【符号の説明】
10…カメラ、12…CPU、16…ROM、17…EEPROM、18…メモリ、26…操作手段、32…記録メディア、38…カラーCCD固体撮像素子(CCD)、40…レンズユニット、42…撮影レンズ、58…画像信号処理回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a white balance adjustment method, and more particularly to a white balance method capable of adjusting color variation for each electronic camera.
[0002]
[Prior art]
Conventionally, when manual white balance mode is set and a desired light source type is manually selected from among light source types such as sunlight, cloudy light, tungsten light, and fluorescent light, the white balance correction value appropriate for the selected light source type is used. An electronic camera that performs white balance adjustment is known (Patent Document 1).
[0003]
Japanese Patent Application Laid-Open No. 2005-228561 describes that a white balance fine adjustment gain is calculated from image data after white balance adjustment, and fine adjustment of the image data after white balance adjustment is performed using this fine adjustment gain.
[0004]
[Patent Document 1]
Japanese Patent Laid-Open No. 2000-115588
[Patent Document 2]
JP-A-2000-69488 [0006]
[Problems to be solved by the invention]
However, as described in Patent Document 1, when white balance adjustment of R, G, B signals obtained from a color imaging device is performed using a white balance correction value determined in advance by selecting a light source type or the like, an electronic camera of the same model However, there has been a problem that color variations are caused by the number of cameras due to variations in photographing lenses, sensitivity variations in spectral characteristics of color image sensors, and the like.
[0007]
On the other hand, the electronic camera described in Patent Document 2 calculates a white balance fine adjustment gain from the image data after white balance adjustment, and performs fine adjustment of the image data after white balance adjustment with this fine adjustment gain in advance. It is intended to prevent the occurrence of color cast images even if the determined white balance adjustment gain adjustment failure occurs, and to prevent variations in the above-mentioned photographing lens and spectral characteristics of color image sensors. Not what you want.
[0008]
The present invention has been made in view of such circumstances, and even if there is variation in the photographing lens of each electronic camera, sensitivity variation in the spectral characteristics of the color image sensor, etc., the final output obtained at the time of actual photographing has color shift or It is an object of the present invention to provide a white balance adjustment method capable of correcting so as not to cause variation.
[0009]
[Means for Solving the Problems]
In order to achieve the above object, the invention according to claim 1 selects a light source type based on the operation of the operation member, reads out a white balance correction value suitable for the selected light source type from the first storage means, The fine adjustment value of the white balance accompanying the variation in the imaging optical system of the electronic camera and the color image sensor is read from the second storage means and obtained from the color image sensor based on the read white balance correction value and fine adjustment value. An electronic camera white balance adjustment method for adjusting white balance of R, G, B signals,
(A) A predetermined chart for white balance adjustment is photographed under a predetermined light source type, and from the color imaging device based on a white balance correction value corresponding to the predetermined light source type from the first storage means. Adjusting the white balance of the obtained R, G, B signals;
(B) obtaining a ratio of integrated values of the respective colors of the R, G, B signals obtained in the step (a);
(C) The ratio of the integrated values of the respective colors of the R, G, B signals obtained in the step (b) is used as the target R, G, and B obtained when the predetermined chart is photographed under a predetermined light source type. Obtaining a fine adjustment value for matching the ratio (target value) of the integrated values of each color of the B signal;
(D) storing the white balance fine adjustment value obtained in step (c) in the second storage means;
It is characterized by including.
[0010]
That is, the first storage means stores standard white balance correction values of R, G, and B suitable for each light source type such as sunny, cloudy, fluorescent lamp, tungsten bulb, and the like. Even with the same model of electronic camera, there are variations in the imaging optical system, sensitivity variations in the color image sensor, etc. for each electronic camera, so the standard white balance correction value according to the preset light source type is used. Even if the white balance adjustment is performed, an appropriate white balance adjustment is not necessarily performed, and a color shift occurs for each camera. Therefore, taking into account variations in the same model of shooting optical system and spectral sensitivity of the image sensor, obtain a fine adjustment value of white balance to correct color shift for each camera, and adjust the white balance including the fine adjustment value. Like to do.
[0011]
The fine adjustment value of the white balance is obtained as follows. That is, a predetermined chart for white balance adjustment is photographed under a predetermined light source type, and obtained from the color imaging device based on a white balance correction value corresponding to the predetermined light source type from the first storage means. The white balance of the received R, G, B signals is adjusted. Subsequently, the ratio of the integrated values of the respective colors of the R, G, and B signals obtained after the white balance adjustment is obtained. Then, a fine adjustment value for matching the ratio of the integrated values of the respective colors of the R, G, and B signals with the target value obtained when the predetermined chart is photographed under a predetermined light source type is obtained.
[0012]
At the time of actual photographing, white balance adjustment of R, G, B signals obtained from the color image sensor is performed using the white balance correction value determined in advance by operating the operation member and the fine adjustment value. White balance adjustment is performed in consideration of variations in spectral sensitivity of the photographing optical system and the image sensor.
[0013]
According to a second aspect of the present invention, in the white balance adjustment method according to the first aspect, a manual white balance adjustment mode for performing white balance adjustment based on an operation of the operation member, and an automatic white balance for automatically performing white balance adjustment. When the auto white balance adjustment mode is selected, the R, G, and B signals obtained from the color image pickup device are used according to the white balance fine adjustment value stored in the second storage means. A step of correcting, a step of calculating a white balance correction value based on the corrected R, G, B signal, and a white of the corrected R, G, B signal based on the calculated white balance correction value And a step of performing balance adjustment.
[0014]
In other words, in the auto white balance adjustment mode, the R, G, B signals obtained from the color image sensor are corrected by the fine adjustment value of the white balance stored in the second storage means, thereby the color image sensor. R, G, and B signals that do not depend on variations in spectral sensitivity are obtained. A white balance correction value is automatically calculated based on the corrected R, G, and B signals, and the white balance adjustment of the corrected R, G, and B signals is performed using the calculated white balance correction value. I am doing so.
[0015]
According to a third aspect of the present invention, in the white balance adjustment method according to the second aspect, in the step of calculating the white balance correction value, one screen is divided into a plurality of areas based on the corrected R, G, and B signals. Determining color information of each divided area to be divided; grouping the color information of the plurality of divided areas according to color information that approximates each other; and a group having color information of a predetermined number or more or a maximum number of color information Calculating the white balance correction value based on color information.
[0016]
The color information of each divided area can be obtained from the ratio of the integrated values of the R, G, and B signals in the divided area, and the grouping by color information is performed by the color information of adjacent color information in the color space. If the distance in space is within a predetermined value, the same group is used. Then, the white balance correction value is calculated based on the color information of one or a plurality of groups of a predetermined number or more, or the color information of the group having the maximum number of color information.
[0017]
The invention according to claim 4 selects a light source type based on the operation of the operation member, reads a white balance correction value suitable for the selected light source type from the storage means, and based on the read white balance correction value, An electronic camera white balance adjustment method for adjusting white balance of R, G, B signals obtained from a color imaging device,
(A) photographing a predetermined chart for white balance adjustment under a predetermined light source type and obtaining a ratio of integrated values of respective colors of the R, G, B signals obtained from the color image sensor;
(B) The ratio of the integrated values of the respective colors of the R, G, B signals obtained in the step (a) is used as the target R, G, B obtained when the predetermined chart is photographed under a predetermined light source type. Obtaining a white balance correction value for matching with a ratio (target value) of integrated values of each color of the B signal;
(C) storing the white balance correction value obtained in step (b) in the storage means as a white balance correction value for the predetermined light source type;
(D) repeating the steps (a) to (c) for each light source type;
It is characterized by including.
[0018]
In the first aspect of the invention, the white balance correction value for each light source type is stored in the first storage unit, and the fine adjustment value of the white balance is stored in the second storage unit. In this invention, the white balance correction value including the fine adjustment value is stored in the storage means.
[0019]
According to a fifth aspect of the present invention, in the white balance adjustment method according to the first or fourth aspect, the steps (a) to (d) are performed at the time of adjustment before shipment of each electronic camera.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of a white balance adjusting method according to the present invention will be described in detail with reference to the accompanying drawings.
[0021]
FIG. 1 is a block diagram showing an embodiment of an electronic camera to which a white balance adjusting method according to the present invention is applied.
[0022]
The camera 10 is a digital camera having functions for recording and reproducing still images and moving images, and the overall operation of the camera 10 is centrally controlled by a central processing unit (CPU) 12. The CPU 12 functions as a control means for controlling the camera system according to a predetermined program, and performs various calculations such as automatic exposure (AE) calculation, automatic focus adjustment (AF) calculation, white balance (WB) adjustment calculation, etc. Functions as a means.
[0023]
A ROM 16 connected to the CPU 12 via the bus 14 stores programs executed by the CPU 12, various data necessary for control, and the like, and an EEPROM 17 stores CCD pixel defect information, various constants / information related to camera operation, and the like. Has been.
[0024]
The memory (SDRAM) 18 is used as a program development area and a calculation work area for the CPU 12, and is also used as a temporary storage area for image data and audio data. The VRAM 20 is a temporary storage memory dedicated to image data, and includes an A area 20A and a B area 20B. The memory 18 and the VRAM 20 can be shared.
[0025]
The camera 10 is provided with a mode selection switch 22, a shooting button 24, and other operation means 26 such as a menu / OK key, a cross key, and a cancel key. Signals from these various operation units (22 to 26) are input to the CPU 12, and the CPU 12 controls each circuit of the camera 10 based on the input signals. For example, lens driving control, photographing operation control, image processing control, image Data recording / reproduction control, display control of the image display device 28, and the like are performed.
[0026]
The mode selection switch 22 is an operation means for switching between the photographing mode and the reproduction mode. When the mode selection switch 20 is operated to connect the movable contact piece 22A to the contact point a, the signal is input to the CPU 12, the camera 10 is set to the photographing mode, and the movable contact piece 22A is connected to the contact point b, the camera 10 is set to a reproduction mode for reproducing recorded images.
[0027]
The shooting button 24 is an operation button for inputting an instruction to start shooting, and includes a two-stroke switch having an S1 switch that is turned on when half-pressed and an S2 switch that is turned on when fully pressed.
[0028]
The menu / OK key is an operation having both a function as a menu button for instructing to display a menu on the screen of the image display device 28 and a function as an OK button for instructing confirmation and execution of selection contents. Key. The cross key is an operation unit for inputting instructions in four directions, up, down, left, and right, and functions as a button (cursor moving operation means) for selecting an item from the menu screen or instructing selection of various setting items from each menu. To do. The up / down key of the cross key functions as a zoom switch at the time of shooting or a playback zoom switch at the time of playback, and the left / right key functions as a frame advance (forward / reverse feed) button in the playback mode. The cancel key is used when deleting a desired item such as a selection item, canceling an instruction content, or returning to the previous operation state.
[0029]
The image display device 28 is composed of a liquid crystal display capable of color display. The image display device 28 can be used as an electronic viewfinder for checking the angle of view at the time of shooting, and is used as a means for reproducing and displaying a recorded image. The image display device 28 is also used as a user interface display screen, and displays information such as menu information, selection items, and setting contents as necessary. Instead of the liquid crystal display, other types of display devices (display means) such as an organic EL can be used.
[0030]
The camera 10 has a media socket (media mounting portion) 30, and a recording medium 32 can be mounted on the media socket 30. The form of the recording medium is not particularly limited, and various media such as a semiconductor memory card represented by xD-PictureCard (trademark) and smart media (trademark), a portable small hard disk, a magnetic disk, an optical disk, and a magneto-optical disk are used. be able to.
[0031]
The media controller 34 performs necessary signal conversion in order to deliver an input / output signal suitable for the recording medium 32 attached to the media socket 30.
[0032]
The camera 10 also includes a USB interface unit 36 as a communication means for connecting to a personal computer or other external device. By connecting the camera 10 and an external device using a USB cable (not shown), it is possible to exchange data with the external device. Of course, the communication method is not limited to USB, and IEEE1394, Bluetooth, or other communication methods may be applied.
[0033]
Next, the shooting function of the camera 10 will be described.
[0034]
When the shooting mode is selected by the mode selection switch 22, power is supplied to an image pickup unit including a color CCD solid-state image pickup element (hereinafter referred to as CCD) 38, and the camera is ready for shooting.
[0035]
The lens unit 40 is an optical unit that includes a photographic lens 42 including a focus lens and an aperture / mechanical shutter 44. The lens unit 40 is electrically driven by a lens driving unit 46 and a diaphragm driving unit 48 controlled by the CPU 12 to perform zoom control, focus control, and iris control.
[0036]
The light that has passed through the lens unit 40 is imaged on the light receiving surface of the CCD 38. A large number of photodiodes (light receiving elements) are two-dimensionally arranged on the light receiving surface of the CCD 38, and red (R), green (G), and blue (B) primary color filters corresponding to the respective photodiodes. They are arranged in a predetermined arrangement structure (Bayer, G stripe, etc.). The CCD 38 has an electronic shutter function for controlling the charge accumulation time (shutter speed) of each photodiode. The CPU 12 controls the charge accumulation time in the CCD 38 via the timing generator 50. Instead of the CCD 38, another type of image sensor such as a MOS type may be used.
[0037]
The subject image formed on the light receiving surface of the CCD 38 is converted into a signal charge of an amount corresponding to the amount of incident light by each photodiode. The signal charge accumulated in each photodiode is sequentially read out as a voltage signal (image signal) corresponding to the signal charge based on a drive pulse given from the timing generator 50 in accordance with a command from the CPU 12.
[0038]
The signal output from the CCD 38 is sent to an analog processing unit (CDS / AMP) 52, where the R, G, B signals for each pixel are sampled and held (correlated double sampling processing), amplified, and then A / Applied to the D converter 54. The dot-sequential R, G, B signals converted into digital signals by the A / D converter 54 are stored in the memory 18 via the image input controller 56.
[0039]
The image signal processing circuit 58 processes the R, G, B signals stored in the memory 18 in accordance with a command from the CPU 12. That is, the image signal processing circuit 58 includes a synchronization circuit (a processing circuit that converts a color signal into a simultaneous expression by interpolating a spatial shift of the color signal associated with the color filter array of the single CCD), a white balance correction circuit, It functions as an image processing means including a gamma correction circuit, a contour correction circuit, a luminance / color difference signal generation circuit, etc., and performs predetermined signal processing using the memory 18 in accordance with commands from the CPU 12.
[0040]
The RGB image data input to the image signal processing circuit 58 is converted into a luminance signal (Y signal) and a color difference signal (Cr, Cb signal) by the image signal processing circuit 58, and predetermined processing such as gamma correction is performed. Applied. The image data processed by the image signal processing circuit 58 is stored in the VRAM 20.
[0041]
When the captured image is output to the image display device 28 on the monitor, the image data is read from the VRAM 20 and sent to the video encoder 60 via the bus 14. The video encoder 60 converts the input image data into a predetermined signal for display (for example, an NTSC color composite video signal) and outputs the signal to the image display device 28.
[0042]
With the image signal output from the CCD 38, image data representing an image for one frame is rewritten alternately in the A area 20A and the B area 22B. Of the A area 22A and B area 22B of the VRAM 22, the written image data is read from an area other than the area where the image data is rewritten. In this manner, the image data in the VRAM 20 is periodically rewritten, and a video signal generated from the image data is supplied to the image display device 28, whereby the image being captured is displayed on the image display device 28 in real time. Is done. The photographer can check the shooting angle of view from the video (through movie image) displayed on the image display device 28.
[0043]
When the shooting button 24 is pressed halfway and S1 is turned on, the camera 10 starts AE and AF processing. That is, the image signal output from the CCD 38 is input to the AF detection circuit 62 and the AE / AWB detection circuit 64 via the image input controller 56 after A / D conversion.
[0044]
The AE / AWB detection circuit 64 includes a circuit that divides one screen into a plurality of areas (for example, 16 × 16) and accumulates RGB signals for each divided area, and provides the accumulated value to the CPU 12. The CPU 12 detects the brightness of the subject (subject brightness) based on the integrated value obtained from the AE / AWB detection circuit 64, and calculates an exposure value (shooting EV value) suitable for shooting. According to the obtained exposure value and a predetermined program diagram, the aperture value and the shutter speed are determined, and the CPU 12 controls the electronic shutter and iris of the CCD 38 according to this to obtain an appropriate exposure amount.
[0045]
Further, the AE / AWB detection circuit 64 calculates an average integrated value for each color of the RGB signals for each divided area during automatic white balance adjustment, and provides the calculation result to the CPU 12. The CPU 12 obtains the integrated value of R, the integrated value of B, and the integrated value of G, obtains the ratio of R / G and B / G for each divided area, and R of these R / G and B / G values. The light source type is determined based on the distribution in the color space of / G, B / G, etc., and, for example, the value of each ratio is approximately 1 (that is, in one screen) according to the white balance adjustment value suitable for the determined light source type The gain values (white balance correction values) for the R, G, and B signals of the white balance adjustment circuit are controlled so that the RGB integration ratio becomes R: G: B≈1: 1: 1), and the signal of each color channel. Apply correction to. When the gain value of the white balance adjustment circuit is adjusted so that the above-described ratio values are values other than 1, an image in which a certain color remains can be generated. Details of the white balance adjustment will be described later.
[0046]
The AF control in the camera 10 is, for example, a contrast AF that moves a focusing lens (a moving lens that contributes to focus adjustment among the lens optical systems constituting the photographing lens 42) so that the high-frequency component of the G signal of the video signal is maximized. Applies. That is, the AF detection circuit 62 cuts out a signal in a focus target area set in advance in a high-pass filter that passes only a high-frequency component of the G signal, an absolute value processing unit, and a screen (for example, the center of the screen). An area extraction unit and an integration unit that integrates absolute value data in the AF area are configured.
[0047]
The integrated value data obtained by the AF detection circuit 62 is notified to the CPU 12. The CPU 12 calculates a focus evaluation value (AF evaluation value) at a plurality of AF detection points while moving the focusing lens by controlling the lens driving unit 46, and determines a lens position where the evaluation value is a maximum as a focus position. To do. Then, the lens driving unit 46 is controlled so as to move the focusing lens to the obtained in-focus position. The calculation of the AF evaluation value is not limited to a mode using the G signal, and a luminance signal (Y signal) may be used.
[0048]
The shooting button 24 is half-pressed, AE / AF processing is performed when S1 is turned on, the shooting button 24 is fully pressed, and the shooting operation for recording starts when S2 is turned on. The image data acquired in response to S2 ON is converted into a luminance / color difference signal (Y / C signal) by the image signal processing circuit 58, subjected to predetermined processing such as gamma correction, and then stored in the memory 18. The
[0049]
The Y / C signal stored in the memory 18 is compressed according to a predetermined format by the compression / decompression circuit 66 and then recorded on the recording medium 32 via the media controller 34. For example, a still image is recorded in the JPEG (Joint Photographic Experts Group) format.
[0050]
When the playback mode is selected by the mode selection switch 22, the compressed data of the last image file (last recorded file) recorded on the recording medium 32 is read. When the file related to the last recording is a still image file, the read image compression data is expanded to an uncompressed YC signal via the compression / decompression circuit 66, and the image signal processing circuit 58 and the video encoder 60 are used. After being converted into a display signal, it is output to the image display device 28. Thereby, the image content of the file is displayed on the screen of the image display device 28.
[0051]
During single-frame playback of still images (including playback of the first frame of a movie), the file to be played can be switched (forward / reverse frame advance) by operating the right or left key of the four-way controller. it can. The image file at the frame-advanced position is read from the recording medium 32, and still images and moving images are reproduced and displayed on the image display device 28 in the same manner as described above.
[0052]
Next, the white balance adjustment method according to the present invention will be described.
[0053]
Even the camera 10 of the same model has lens, CCD spectral sensitivity variation, etc. Even if white balance adjustment is performed with a white balance correction value (WB correction value) prepared in advance according to the type of light source, a white balance adjustment error ( Color misregistration) occurs. Therefore, in order to perform the same white balance adjustment as the white balance adjustment with a standard camera, the white balance adjustment error of each camera is corrected.
[0054]
FIG. 2 is a flowchart showing a processing procedure for obtaining a white balance fine adjustment value (WB fine adjustment value) for correcting a white balance adjustment error of each camera. This processing is performed at the time of adjustment before shipping the camera. Is called.
[0055]
In FIG. 2, first, a menu screen is displayed on the image display device 28 of the camera 10, and a predetermined light source type for manual white balance on this menu screen (in this embodiment, sunny “daylight”). Is selected (step S10). This selection can be performed by operating the cross key and the menu / OK key. Further, by selecting the light source type, the WB correction value selected from the memory table of WB correction values (R, G, and B gain values) preset for each light source type is read as shown in FIG. It is.
[0056]
In the memory table shown in FIG. 3, the light source types are sunny, shade-cloudy, fluorescent lamp 1 (daylight fluorescent lamp), fluorescent lamp 2 (day white fluorescent lamp), fluorescent lamp 3 (white fluorescent lamp), There are tungsten light bulbs or the like, and for each light source color, R, G, and B WB correction values for appropriately adjusting the white balance of an image taken under the light source type are stored. The WB correction value set for each light source type is set on the assumption of a standard camera as designed for the spectral sensitivity of the lens and CCD.
[0057]
Next, a gray chart (N5 gray) is photographed under a clear adjustment light source (step S12), and a clear WB correction value set in advance for the R, G, B signals obtained from the CCD 38 at the time of this photographing. White balance adjustment is performed by multiplying (R g1 , G g1 , B g1 ) (step S14).
[0058]
Subsequently, an average integrated value (R mean, G mean, B mean ) for each R, G, B of one screen is calculated from the R, G, B signals after white balance adjustment (step S16). Then, the calculated average integrated value of R, G, B and the average integrated value of the target of R, G, B obtained when taken under a clear light source type (target values R ref, G ref, WB fine adjustment value (Δ) for correcting the white balance adjustment error based on B ref , for example, a clear target value of N5 gray, R, G, B ratio = 121: 121: 116)
R g, ΔG g, the .DELTA.B g), obtained by the following equation (step S18).
[0059]
[Expression 1]
ΔR g = R ref / R mean
ΔG g = G ref / G mean
ΔB g = B ref / B mean
The WB fine adjustment values (ΔR g, ΔG g, ΔB g ) thus obtained are stored in the EEPROM 17 (step S20).
[0060]
The WB fine adjustment values (ΔR g, ΔG g, ΔB g ) stored in the EEPROM 17 are multiplied by the R, G, B signals obtained from the CCD 38 at the time of photographing with the camera 10. As a result, even if there is a variation in the sensitivity of the spectral characteristics of the lens unit 40 and the CCD 38 for each camera, it is possible to obtain R, G, and B signals in which the color shift due to the variation is corrected.
[0061]
Further, target values R ref, G ref, B ref used for calculating the WB fine adjustment values (ΔR g, ΔG g, ΔB g ) are stored in advance in a memory in the camera. Furthermore, the WB fine adjustment value is not limited to the case where the WB fine adjustment value is obtained based on shooting under a fine adjustment light source, and the WB fine adjustment value may be obtained based on photographing under an adjustment light source of another color temperature. An optimal WB fine adjustment value may be obtained from a plurality of WB fine adjustment values obtained under the adjustment light source.
[0062]
Furthermore, the calculation of the WB fine adjustment value and the recording to the EEPROM 17 are not limited to being performed by the camera 10 itself, but may be performed by an external adjustment device used during white balance adjustment.
[0063]
Next, white balance adjustment at the time of actual photographing using the WB fine adjustment value will be described.
[0064]
In FIG. 4, first, it is determined whether the WB adjustment mode set in the camera 10 is the manual WB adjustment mode or the auto WB adjustment mode (step S30). The manual WB adjustment mode or the auto WB adjustment mode is determined as the manual WB adjustment mode when a specific light source type is selected by operating the cross key and the menu / OK key in the manual shooting mode. When the “AUTO” menu is selected, the auto WB adjustment mode is determined. When the shooting mode is the auto shooting mode, the WB adjustment mode is also automatically set to the auto WB adjustment mode.
[0065]
When the WB adjustment mode is determined to be the manual WB adjustment mode, the light source type selected by the user is set as the light source type for illuminating the photographic subject (step S32), and the set light source type as shown in FIG. A WB correction value suitable for shooting below is determined (step S34).
[0066]
Thereafter, when the photographing button 24 is pressed, photographing in the manual photographing mode is performed (step S36), and R, G, B signals obtained from the CCD 38 at the time of photographing are temporarily stored in the memory 18, and then these R , G, B signals are subjected to white balance adjustment (step S38). In this white balance adjustment, the R, G, and B signals are white balance adjusted based on the WB correction value determined in step S34 and the WB fine adjustment value described in the flowchart of FIG. That is, the WB fine adjustment values (ΔR g, ΔG g, ΔB g ) are multiplied to the color signals of the R, G, B signals, respectively, and the WB correction value corresponding to the light source type is multiplied.
[0067]
Thereafter, image processing such as gamma processing and YC processing is performed on the R, G, and B signals that have been subjected to white balance adjustment, and the Y / C signals that have been subjected to YC processing are compressed in accordance with a predetermined format and recorded on the recording medium 32. (Steps S40 to S44).
[0068]
On the other hand, when it is determined in step S32 that the auto WB adjustment mode is selected, when the shooting button 24 is pressed, shooting in the auto WB adjustment mode is performed (step S50). The R, G, B signals obtained from the CCD 38 at the time of photographing are temporarily stored in the memory 18 and then multiplied by the WB fine adjustment values (ΔR g, ΔG g, ΔB g ), respectively. Then, adjustment errors due to variations in sensitivity of the spectral characteristics of the lens and CCD of each camera are corrected in advance (step 52). The corrected R, G, B signals are stored in the memory 18 again.
[0069]
Next, using the corrected R, G, and B signals stored in the memory 18, the average integrated value for each RGB signal color for each of 256 divided areas in which one screen is divided into 16 × 16. And the ratio of the average integrated values of R, G, and B (that is, the ratio of R / G and B / G) is calculated for each divided area (step S54).
[0070]
The color information for each of the 256 divided areas calculated in this way is distributed on the R / G and B / G color spaces shown in FIG. 5 based on the R / G and B / G values. Can be represented as individual points.
[0071]
Subsequently, the color between the color information (R 1 / G 1, B 1 / G 1 ) and (R 2 / G 2, B 2 / G 2 ) of adjacent divided areas based on the color information of each divided area The space distance D is calculated by the following equation.
[0072]
[Expression 2]
Figure 2004304695
When the distance D calculated in this way is within a predetermined value, the color information of the divided area is regarded as being in the same group, and the color information of 256 divided areas is grouped.
[0073]
When a predetermined number (for example, 5) or more is included in each group, the group is regarded as a cone CORN for use in AWB adjustment described later, and a group less than the predetermined number is defined as a cone CORN. Do not consider. In FIG. 5, two cones CORN1 and CORN2 are shown.
[0074]
Next, for each cone CORNi (i = 1, 2,...) Obtained as described above, color information representative of each cone CORNi (for example, color information at the center of the cone CORNi) is neutral gray (N R / G gain Gri and B / G gain Gbi to obtain gray), and R / G gain Gr weighted by the number N in each cone CORNi for these R / G gain Gri and B / G gain Gbi , B / G gain Gb is obtained by the following equation (step S56).
[0075]
[Equation 3]
Gr = ΣGri × Ni / ΣNi
Gb = ΣGbi × Ni / ΣNi
The R, G, B gain values (WB correction values) for the R, G, B signals stored in the memory 18 are obtained from the R / G gain Gr, B / G gain Gb obtained as described above (step S58). . The R / B gain values to be applied to the R and B signals can be obtained by multiplying the R / G gain Gr and the B / G gain Gb by the required gain values to be applied to the G signal. When the required gain value to be applied to the G signal is 1, the R / G gain Gr and the B / G gain Gb become the R and B gain values to be applied to the R and B signals as they are.
[0076]
Then, the R, G, B signals stored in the memory 18 are corrected by the R, G, B gain values (WB correction values) calculated in step S58. Thereby, white balance adjustment is performed (step S60).
[0077]
Thereafter, the R, G, and B signals subjected to white balance adjustment are recorded on the recording medium 32 through gamma processing, YC processing, and recording processing in the same manner as in the manual WB adjustment mode (steps S40 to S44).
[0078]
In step S56 in the auto WB adjustment mode, R / G gain Gr, B / G gain based on R / G gain Gri and B / G gain Gbi for setting the color information representing each cone CORNi to N gray. Since Gb is calculated, white balance adjustment is performed as if it was shot under a daylight (clear) light source type, regardless of the light source type at the time of actual shooting.
[0079]
Therefore, the light source type at the time of actual photographing is determined based on the R, G, and B signals stored in the memory 18, and in step S58, the white balance for giving the color of the light source type further according to the light source type. Adjustment is preferably performed.
[0080]
For example, the color information representative of the corn CORN having the maximum number is the clear, shade-cloudy, fluorescent lamp 1, fluorescent lamp 2, fluorescent lamp 3, tungsten bulb, etc. shown in FIG. By obtaining the light source type having the closest color information among the color information of each light source type, the light source type at the time of photographing can be automatically determined. It is also possible to automatically determine the light source type based on the number of objects in the detection frame set in advance for each light source type in the R / G and B / G color spaces, the brightness of the subject, and the like (Japanese Patent Application Laid-Open No. 2002-2000). No. 218495), the light source type discrimination method is not limited to this embodiment.
[0081]
Further, the light source type is determined before the process of step S56, and in step S56, the R / G gain Gri for converting the color information representing each cone CORNi into color information corresponding to the previously determined light source type, The B / G gain Gbi may be obtained, and the R / G gain Gr and the B / G gain Gb may be calculated based on the R / G gain Gri and the B / G gain Gbi.
[0082]
FIG. 6 is a flowchart showing a method for obtaining a WB correction value capable of correcting a white balance adjustment error due to variations in sensitivity of the spectral characteristics of the lens and CCD of each camera. This processing is performed at the time of adjustment before the camera is shipped. To be done.
[0083]
In the figure, first, a menu screen is displayed on the image display device 28 of the camera 10, and a predetermined light source type for manually performing white balance is selected on the menu screen (step S70). This selection can be performed by operating the cross key and the menu / OK key.
[0084]
Next, a gray chart is photographed under the adjustment light source selected in step S70 (step S72), and the average integration for each R, G, B of the entire screen from the R, G, B signals obtained from the CCD 38 at the time of photographing. Values (R mean, G mean, B mean ) are calculated (step S74).
[0085]
The calculated average integrated values of R, G, and B (R mean, G mean, B mean ) and the target values of R, G, and B obtained when captured under the light source type selected in step S70 ( Based on R ref, G ref, B ref ), WB correction values (R g, G g, B g ) for performing white balance adjustment are obtained by the following equation (step S76).
[0086]
[Expression 4]
R g = R ref / R mean
G g = G ref / G mean
B g = B ref / B mean
The WB correction values (R g, G g, B g ) obtained in this way are stored in the EEPROM 17 (step S78).
[0087]
Next, it is determined whether or not WB correction values for all light source types that can be selected in the manual WB adjustment mode of the camera 10 have been obtained (step S80). If the result is negative, the process returns to step S70. On the other hand, if the result is affirmative, the processing for obtaining the WB correction value for the light source type is terminated.
[0088]
The WB correction value of the light source type obtained in this way and stored in the EEPROM 17 is stored as a WB correction value that takes into account variations in the spectral characteristics of the lens and CCD of each camera. Thereby, white balance adjustment error for each camera does not occur in white balance adjustment based on the WB correction value read from the EEPROM 17 based on selection of the light source type in the manual WB adjustment mode.
【The invention's effect】
As described above, according to the present invention, even if there is a variation in the photographing lens of each electronic camera or a variation in the sensitivity of the spectral characteristics of the color image sensor, the color shift caused by the camera number or It is possible to prevent variation.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of an electronic camera to which a white balance adjustment method according to the present invention is applied. FIG. 2 is a white balance fine adjustment value (WB) for correcting a white balance adjustment error of each camera. FIG. 3 is a flowchart showing a processing procedure for obtaining a fine adjustment value. FIG. 3 is a diagram showing an example of a memory table in which a WB correction value is stored in advance for each light source type. FIG. FIG. 5 is a graph showing an example of the distribution of color information of a plurality of divided areas in the R / G and B / G color spaces. FIG. 6 is a graph showing white balance adjustment errors of individual cameras. Flowchart used to explain a method for obtaining a WB correction value that can be corrected.
DESCRIPTION OF SYMBOLS 10 ... Camera, 12 ... CPU, 16 ... ROM, 17 ... EEPROM, 18 ... Memory, 26 ... Operation means, 32 ... Recording medium, 38 ... Color CCD solid-state image sensor (CCD), 40 ... Lens unit, 42 ... Shooting lens 58 ... Image signal processing circuit

Claims (5)

操作部材の操作に基づいて光源種を選択し、該選択した光源種に適したホワイトバランス補正値を第1の記憶手段から読み出すとともに、電子カメラの撮像光学系及びカラー撮像素子のバラツキに伴うホワイトバランスの微調整値を第2の記憶手段から読み出し、前記読み出したホワイトバランス補正値及び微調整値に基づいて前記カラー撮像素子から得られるR,G,B信号のホワイトバランス調整を行う電子カメラのホワイトバランス調整方法であって、
(a) ホワイトバランス調整用の所定のチャートを所定の光源種の下で撮影するとともに、前記第1の記憶手段から前記所定の光源種に対応するホワイトバランス補正値に基づいて前記カラー撮像素子から得られたR,G,B信号のホワイトバランス調整を行うステップと、
(b) 前記ステップ(a) で得られるR,G,B信号の各色の積算値の比を求めるステップと、
(c) 前記ステップ(b) で求めたR,G,B信号の各色の積算値の比を、前記所定のチャートを所定の光源種の下で撮影したときに得られる目標のR,G,B信号の各色の積算値の比(目標値)に一致させるための微調整値を求めるステップと、
(d) 前記ステップ(c) で求めたホワイトバランスの微調整値を前記第2の記憶手段に記憶させるステップと、
を含むことを特徴とする電子カメラのホワイトバランス調整方法。
A light source type is selected based on the operation of the operation member, and a white balance correction value suitable for the selected light source type is read out from the first storage means, and white due to variations in the imaging optical system of the electronic camera and the color imaging element. An electronic camera that reads a fine adjustment value of balance from the second storage unit and performs white balance adjustment of R, G, and B signals obtained from the color imaging device based on the read white balance correction value and fine adjustment value. A white balance adjustment method,
(A) A predetermined chart for white balance adjustment is photographed under a predetermined light source type, and from the color imaging device based on a white balance correction value corresponding to the predetermined light source type from the first storage means. Adjusting the white balance of the obtained R, G, B signals;
(B) obtaining a ratio of integrated values of the respective colors of the R, G, B signals obtained in the step (a);
(C) The ratio of the integrated values of the respective colors of the R, G, B signals obtained in the step (b) is used as the target R, G, and B obtained when the predetermined chart is photographed under a predetermined light source type. Obtaining a fine adjustment value for matching the ratio (target value) of the integrated values of each color of the B signal;
(D) storing the white balance fine adjustment value obtained in step (c) in the second storage means;
A white balance adjustment method for an electronic camera, comprising:
前記操作部材の操作に基づいてホワイトバランス調整を行うマニュアルホワイトバランス調整モードと、自動的にホワイトバランス調整を行うオートホワイトバランス調整モードとを有し、
前記オートホワイトバランス調整モードが選択されると、前記カラー撮像素子から得られるR,G,B信号を前記第2の記憶手段に記憶されたホワイトバランスの微調整値によって補正するステップと、
前記補正後のR,G,B信号に基づいてホワイトバランス補正値を算出するステップと、
前記算出したホワイトバランス補正値に基づいて前記補正後のR,G,B信号のホワイトバランス調整を行うステップと、
を含むことを特徴とする請求項1に記載のホワイトバランス調整方法。
A manual white balance adjustment mode for performing white balance adjustment based on the operation of the operation member; and an auto white balance adjustment mode for automatically performing white balance adjustment.
When the auto white balance adjustment mode is selected, correcting the R, G, B signals obtained from the color image sensor with the white balance fine adjustment value stored in the second storage means;
Calculating a white balance correction value based on the corrected R, G, B signals;
Adjusting the white balance of the corrected R, G, B signals based on the calculated white balance correction value;
The white balance adjustment method according to claim 1, further comprising:
前記ホワイトバランス補正値を算出するステップは、
前記補正後のR,G,B信号に基づいて1画面を複数のエリアに分割する各分割エリアの色情報を求めるステップと、
前記複数の分割エリアの色情報を相互に近似する色情報別にグループ分けするステップと、
所定の個数以上又は最大の個数の色情報を有するグループの色情報に基づいて前記ホワイトバランス補正値を算出するステップと、
を含むことを特徴とする請求項2に記載のホワイトバランス調整方法。
The step of calculating the white balance correction value includes:
Obtaining color information of each divided area for dividing one screen into a plurality of areas based on the corrected R, G, B signals;
Grouping the color information of the plurality of divided areas by color information approximating each other;
Calculating the white balance correction value based on color information of a group having a predetermined number or more or the maximum number of color information;
The white balance adjustment method according to claim 2, further comprising:
操作部材の操作に基づいて光源種を選択し、該選択した光源種に適したホワイトバランス補正値を記憶手段から読み出し、前記読み出したホワイトバランス補正値に基づいて前記カラー撮像素子から得られるR,G,B信号のホワイトバランス調整を行う電子カメラのホワイトバランス調整方法であって、
(a) ホワイトバランス調整用の所定のチャートを所定の光源種の下で撮影し、前記カラー撮像素子から得られたR,G,B信号の各色の積算値の比を求めるステップと、
(b) 前記ステップ(a) で求めたR,G,B信号の各色の積算値の比を、前記所定のチャートを所定の光源種の下で撮影したときに得られる目標のR,G,B信号の各色の積算値の比(目標値)に一致させるためのホワイトバランス補正値を求めるステップと、
(c) 前記ステップ(b) で求めたホワイトバランス補正値を前記所定の光源種におけるホワイトバランス補正値として前記記憶手段に記憶させるステップと、
(d) 各光源種ごとに前記ステップ(a) 〜(c) を繰り返すステップと、
を含むことを特徴とする電子カメラのホワイトバランス調整方法。
A light source type is selected based on the operation of the operation member, a white balance correction value suitable for the selected light source type is read from the storage means, and R, obtained from the color imaging device based on the read white balance correction value An electronic camera white balance adjustment method for adjusting white balance of G and B signals,
(A) photographing a predetermined chart for white balance adjustment under a predetermined light source type and obtaining a ratio of integrated values of respective colors of the R, G, B signals obtained from the color image sensor;
(B) The ratio of the integrated values of the respective colors of the R, G, B signals obtained in the step (a) is used as the target R, G, B obtained when the predetermined chart is photographed under a predetermined light source type. Obtaining a white balance correction value for matching with a ratio (target value) of integrated values of each color of the B signal;
(C) storing the white balance correction value obtained in step (b) in the storage means as a white balance correction value for the predetermined light source type;
(D) repeating the steps (a) to (c) for each light source type;
A white balance adjustment method for an electronic camera, comprising:
前記ステップ(a) 〜(d) は、個々の電子カメラの出荷前の調整時に行うことを特徴とする請求項1又は4に記載のホワイトバランス調整方法。5. The white balance adjustment method according to claim 1, wherein the steps (a) to (d) are performed at the time of adjustment before shipment of each electronic camera.
JP2003097866A 2003-04-01 2003-04-01 White balance adjustment method Pending JP2004304695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003097866A JP2004304695A (en) 2003-04-01 2003-04-01 White balance adjustment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003097866A JP2004304695A (en) 2003-04-01 2003-04-01 White balance adjustment method

Publications (1)

Publication Number Publication Date
JP2004304695A true JP2004304695A (en) 2004-10-28

Family

ID=33409544

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003097866A Pending JP2004304695A (en) 2003-04-01 2003-04-01 White balance adjustment method

Country Status (1)

Country Link
JP (1) JP2004304695A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010041611A (en) * 2008-08-07 2010-02-18 Nikon Corp Digital camera and image processor, as well as image processing program
US7764318B2 (en) 2006-09-13 2010-07-27 Hoya Corporation Photographing apparatus having a white balance adjustment function
KR100978675B1 (en) 2008-07-21 2010-08-30 삼성전기주식회사 Method of controlling white balance at flashlight photographing
US7839436B2 (en) 2006-09-13 2010-11-23 Hoya Corporation Photographing apparatus with setting for white balance adjustment
JP2014022998A (en) * 2012-07-19 2014-02-03 Canon Inc Image processor and control method thereof
CN112581539A (en) * 2020-12-15 2021-03-30 合肥泰禾智能科技集团股份有限公司 Gray scale adjusting method and device, color selector and computer readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7764318B2 (en) 2006-09-13 2010-07-27 Hoya Corporation Photographing apparatus having a white balance adjustment function
US7839436B2 (en) 2006-09-13 2010-11-23 Hoya Corporation Photographing apparatus with setting for white balance adjustment
KR100978675B1 (en) 2008-07-21 2010-08-30 삼성전기주식회사 Method of controlling white balance at flashlight photographing
JP2010041611A (en) * 2008-08-07 2010-02-18 Nikon Corp Digital camera and image processor, as well as image processing program
JP2014022998A (en) * 2012-07-19 2014-02-03 Canon Inc Image processor and control method thereof
US9300935B2 (en) 2012-07-19 2016-03-29 Canon Kabushiki Kaisha Image processing apparatus capable of reducing differences of color characteristics between interchangeable lenses using white balance adjustment and control method thereof
CN112581539A (en) * 2020-12-15 2021-03-30 合肥泰禾智能科技集团股份有限公司 Gray scale adjusting method and device, color selector and computer readable storage medium
CN112581539B (en) * 2020-12-15 2023-07-18 合肥泰禾智能科技集团股份有限公司 Gray scale adjusting method, device, color selector and computer readable storage medium

Similar Documents

Publication Publication Date Title
JP4158592B2 (en) Auto white balance adjustment method and camera to which this method is applied
JP4329125B2 (en) White balance control method, white balance control device, and imaging device
JP4730553B2 (en) Imaging apparatus and exposure control method
JP4791331B2 (en) Imaging apparatus and exposure control method
JP5004544B2 (en) Imaging apparatus and exposure control method
JP4697606B2 (en) Imaging apparatus and focus control method
JP2007053499A (en) White balance control unit and imaging apparatus
JP4639406B2 (en) Imaging device
JP2009048136A (en) Focusing device and focusing method
JP2008109485A (en) Imaging apparatus and imaging control method
JP2004328117A (en) Digital camera and photographing control method
JP2008053931A (en) Imaging apparatus
JP4067033B2 (en) Image processing apparatus and method
JP2008236396A (en) Camera system, imaging apparatus and service server
JP2008017198A (en) Device and method for calculating light source color, and photographing device
JP2004304695A (en) White balance adjustment method
JP2008083243A (en) Photographing device and exposure control method
JP4026516B2 (en) Image processing apparatus and method
JP4264808B2 (en) Moving image processing apparatus and method
JP4716182B2 (en) Imaging apparatus and imaging control program
JP2002023049A (en) Digital camera and recording medium
JP5550333B2 (en) Imaging apparatus, development method, and program
JP4991602B2 (en) Imaging device
JP4378629B2 (en) Auto white balance adjustment method
JP4239219B2 (en) Auto white balance adjustment method and apparatus