JP2006074623A - Automatic white balance adjustment method - Google Patents
Automatic white balance adjustment method Download PDFInfo
- Publication number
- JP2006074623A JP2006074623A JP2004257587A JP2004257587A JP2006074623A JP 2006074623 A JP2006074623 A JP 2006074623A JP 2004257587 A JP2004257587 A JP 2004257587A JP 2004257587 A JP2004257587 A JP 2004257587A JP 2006074623 A JP2006074623 A JP 2006074623A
- Authority
- JP
- Japan
- Prior art keywords
- color information
- representative color
- white balance
- representative
- calculating
- 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
Links
Images
Landscapes
- Color Television Image Signal Generators (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
Description
本発明はオートホワイトバランス調整方法に係り、特にカラー撮像素子から得られるR,G,B信号に基づいて自動的に適正なホワイトバランス調整を行うオートホワイトバランス調整方法に関する。 The present invention relates to an auto white balance adjustment method, and more particularly to an auto white balance adjustment method that automatically performs appropriate white balance adjustment based on R, G, and B signals obtained from a color image sensor.
従来のこの種のオートホワイトバランス調整方法として、特許文献1に記載の方法がある。
As a conventional automatic white balance adjustment method of this type, there is a method described in
このオートホワイトバランス調整方法は、被写体の輝度レベルと、1画面を複数のエリアに分割した各分割エリアごとの色情報(分割エリア内のR,G,B信号を色別に積算した積算値の比R/G及びB/G)とを求める。 This auto white balance adjustment method is based on the luminance level of a subject and the color information for each divided area obtained by dividing one screen into a plurality of areas (the ratio of integrated values obtained by integrating the R, G, and B signals in each divided area by color). R / G and B / G).
一方、R/G、B/Gの色空間上に、日陰、青空、蛍光灯、タングステン電球等の光源種に対応する色分布の範囲を示す検出枠を設定し、前記求めた各分割エリアごとの色情報に基づいて各検出枠に色情報が入る分割エリアの個数を求める。そして、前記検出した被写体の輝度レベル及び検出枠に入る分割エリアの個数に基づいて光源種を判別し、その判別した光源種に適したホワイトバランス補正値に基づいてホワイトバランス調整を行うようにしている。
特許文献1に記載のオートホワイトバランス調整方法は、極端なシーンを除いて適切なオートホワイトバランス調整を行なうことができ、広範囲の色温度領域まで追従可能であるが、このオートホワイトバランス調整方法には、下記の問題点が存在する。
The auto white balance adjustment method described in
(1) オートホワイトバランス調整のアルゴリズムが複雑であること
光源種に対応する色分布の範囲を示す検出枠を多数用意するために、それぞれの検出枠ごとのパラメータが必要であり、枠領域の座標、その他枠ごとの設定座標など、多くのパラメータを用意しなければならない。
(1) The algorithm of auto white balance adjustment is complicated.To prepare many detection frames indicating the range of color distribution corresponding to the light source type, parameters for each detection frame are required, and the coordinates of the frame area are required. In addition, many parameters such as set coordinates for each frame must be prepared.
(2) 各分割エリアごとの色情報(積算値)の検出性能が低い
画角違いや機種違いなどで、少しR/G、B/Gの積算値がずれた場合、入る検出枠、位置などもずれが生じ、ホワイトバランス補正値が異なってくる。
(2) The detection performance of color information (integrated value) for each divided area is low. The detection frame, position, etc. to be entered when the integrated values of R / G and B / G are slightly shifted due to differences in angle of view or model. Deviation occurs and the white balance correction value is different.
本出願人は、以上の問題点を改善するアルゴリズムを提案した(特願2003−378092)。 The present applicant has proposed an algorithm for improving the above problems (Japanese Patent Application No. 2003-378092).
このアルゴリズムは、検出枠を用いなくてもよい点で複雑でなく、また、色情報の検出性能が低くても近似している色情報の集合(以下、「カタマリ」という)の中心を精度よく検出できるので、画角ずれの色の不連続性も改善できるという利点があるが、演算時間が遅く、カメラの撮影時間などに大きく影響するという問題がある。 This algorithm is not complicated in that it does not require the use of a detection frame, and the center of a set of approximate color information (hereinafter referred to as “catamari”) is accurate even if the detection performance of color information is low. Since it can be detected, there is an advantage that the discontinuity of the color of the angle of view can be improved.
演算時間が遅くなる原因は、分布している色情報のカタマリ中心を算出する際の演算回数が多いことによる。即ち、色情報のカタマリ中心を算出する際のアルゴリズムは、ある注目する色情報を中心とする所定の半径内の色情報の平均値を求め、この平均値を代表色情報として、注目する色情報を順次変更しながら代表色情報を求める。このようにして求めた代表色情報を元にして再度ある注目する代表色情報を中心とする所定の半径内の代表色情報の平均値を求め、この平均値を次の代表色情報として、注目する代表色情報を順次変更しながら代表色情報を求める。このようにして求められる代表色情報が収束するまで演算を繰り返す。 The reason why the calculation time is delayed is that the number of calculations is large when calculating the catamari center of the distributed color information. In other words, the algorithm for calculating the color information catalog center calculates an average value of color information within a predetermined radius centered on a certain color information of interest, and uses this average value as representative color information to obtain the color information of interest. The representative color information is obtained while sequentially changing. Based on the representative color information obtained in this way, an average value of representative color information within a predetermined radius centered around the representative color information of interest is obtained again, and the average value is used as the next representative color information to obtain attention. The representative color information is obtained while sequentially changing the representative color information. The calculation is repeated until the representative color information obtained in this way converges.
したがって、1画面を16×16に分割した各分割エリアの色情報(256個の色情報)の代表色情報が収束するまでの代表色情報の演算回数は、256のt乗回(t:注目する色情報や代表色情報を順次変更しながら次の代表色情報を求めるための一連の処理の回数であって、代表色情報が収束するまでの回数)となり、この多数の演算回数の演算に要する時間が問題となっていた。 Therefore, the number of computations of the representative color information until the representative color information of the color information (256 color information) of each divided area obtained by dividing one screen into 16 × 16 converges is 256 times t (t: attention) This is the number of times of a series of processing for obtaining the next representative color information while sequentially changing the color information and representative color information to be performed, and the number of times until the representative color information converges). The time required was a problem.
本発明はこのような事情に鑑みてなされたもので、光源種を検出するための検出枠を設けることなく、簡単なアルゴリズムにより良好なホワイトバランス補正値を算出して自動的にホワイトバランス調整を行うことができ、特にホワイトバランス補正値を算出するまでの演算時間の短縮化を可能にしたオートホワイトバランス調整方法を提供することを目的とする。 The present invention has been made in view of such circumstances, and a white balance adjustment value is automatically calculated by calculating a good white balance correction value by a simple algorithm without providing a detection frame for detecting a light source type. It is an object of the present invention to provide an auto white balance adjustment method that can be performed, and in particular, can shorten the calculation time until the white balance correction value is calculated.
前記目的を達成するために請求項1に係る発明は、カラー撮像素子から得られるR,G,B信号に基づいてホワイトバランス補正値を算出するステップと、前記算出したホワイトバランス補正値に基づいて前記R,G,B信号のホワイトバランス調整を行うステップとを含むオートホワイトバランス調整方法において、前記ホワイトバランス補正値を算出するステップは、(a) 1画面を複数のエリアに分割してなる複数の分割エリアの色情報を各分割エリア内のR,G,B信号に基づいて求めるステップと、(b) 前記複数の分割エリアの色情報の中から注目する色情報を順次変更しながら各注目する色情報ごとに該色情報と相互に近似する色情報を求めるステップであって、前記注目する色情報及び注目する色情報と近似する色情報は第1の代表色情報の算出に使用されていない色情報の中から求めるステップと、(c) 前記ステップ(b) において注目する色情報を順次変更しながら各注目する色情報ごとに求めた色情報を代表する前記第1の代表色情報を算出するステップと、(d) 前記ステップ(c) で算出された第1の代表色情報の中から注目する第1の代表色情報を順次変更しながら各注目する第1の代表色情報ごとに該第1の代表色情報と相互に近似する第1の代表色情報を求めるステップであって、前記注目する第1の代表色情報及び注目する第1の代表色情報と近似する第1の代表色情報は第2の代表色情報の算出に使用されていない第1の代表色情報の中から求めるステップと、(e) 前記ステップ(d) において注目する第1の代表色情報を順次変更しながら各注目する第1の代表色情報ごとに求めた第1の代表色情報を代表する前記第2の代表色情報を算出するステップと、(f) 前記ステップ(d) 及びステップ(e) の処理と同様にして算出された代表色情報に基づいて次の代表色情報を算出し、代表色情報が収束するまで繰り返すステップと、(g) 前記収束した代表色情報に基づいて前記ホワイトバランス補正値を算出するステップと、を含むことを特徴としている。
In order to achieve the above object, the invention according to
即ち、前記ステップ(a) により1画面の分割エリアの個数と同数の色情報を取得し、前記ステップ(b) 〜(f) により前記取得した色情報のうちの相互に近似する色情報(色情報のカタマリ)の収束した代表色情報を求めるようにしている。 That is, the same number of color information as the number of divided areas of one screen is acquired by the step (a), and the color information (colors) that are approximate to each other among the acquired color information by the steps (b) to (f). The representative color information in which the information catalog is converged is obtained.
前記ステップ(b) では、ステップ(a) で取得した色情報のうちの任意の色情報(既に、注目する色情報と相互に近似する色情報として求められた色情報を除く色情報のうちの任意に色情報) を注目する色情報とし、その注目する色情報を順次変更しながら各注目する色情報と相互に近似する色情報を求める。ある注目する色情報と相互に近似する色情報も、既に他の注目する色情報と相互に近似する色情報として求められた色情報を除く色情報の中から求める。そして、前記ステップ(c) では、前記ステップ(b) で求めた色情報を代表する前記第1の代表色情報を算出する。即ち、上記ステップ(b) 、(c) では、一度、代表色情報の算出に使用した色情報は、別の代表色情報の算出には使用しないようにしている。 In the step (b), arbitrary color information in the color information acquired in the step (a) (of the color information excluding the color information already obtained as color information that is close to the target color information) The color information is arbitrarily selected as color information to be noticed, and color information that approximates each noticed color information is obtained while sequentially changing the noticed color information. The color information that is mutually approximated with certain noticed color information is also obtained from the color information excluding the color information that has already been obtained as color information that is mutually approximated with other noticed color information. In the step (c), the first representative color information representing the color information obtained in the step (b) is calculated. That is, in steps (b) and (c) above, the color information once used for calculating the representative color information is not used for calculating another representative color information.
前記ステップ(d) では、前記ステップ(c) で算出された第1の代表色情報の中から前記ステップ(b) と同様にして注目する第1の代表色情報を順次変更しながら各注目する第1の代表色情報ごとに該第1の代表色情報と相互に近似する第1の代表色情報を求める。即ち、ステップ(b) では、ステップ(a) で取得した色情報の中から注目する色情報と相互に近似する色情報を求めているのに対し、ステップ(d) では、ステップ(c) で算出された第1の代表色情報の中から注目する第1の代表色情報と相互に近似する第1の代表色情報を求めている点で相違する。そして、ステップ(e) では、前記ステップ(d) で求めた第1の代表色情報を代表する前記第2の代表色情報を算出する。 In the step (d), attention is paid to each of the first representative color information calculated in the step (c) while sequentially changing the first representative color information to be noticed in the same manner as in the step (b). For each first representative color information, first representative color information that approximates the first representative color information is obtained. That is, in step (b), color information that approximates the target color information from the color information acquired in step (a) is obtained, whereas in step (d), step (c) The difference is that the first representative color information that is mutually approximate to the first representative color information of interest is obtained from the calculated first representative color information. In step (e), the second representative color information representing the first representative color information obtained in step (d) is calculated.
その後、前記ステップ(d) 及びステップ(e) の処理と同様にして算出された第2の代表色情報に基づいて第3の代表色情報を算出し、第3の代表色情報に基づいて第4の代表色情報を算出し、…、代表色情報が収束するまで繰り返す。これにより、ステップ(a) で取得した色情報のうちの相互に近似する色情報のカタマリの中心となる代表色情報(収束した代表色情報)を求めることができる。このようにして求めた収束した代表色情報に基づいてホワイトバランス補正値を算出するようにしている。 Thereafter, the third representative color information is calculated based on the second representative color information calculated in the same manner as in the processing of step (d) and step (e), and the third representative color information is calculated based on the third representative color information. 4 representative color information is calculated and repeated until the representative color information converges. This makes it possible to obtain representative color information (converged representative color information) that is the center of the color information that approximates each other among the color information acquired in step (a). The white balance correction value is calculated based on the converged representative color information obtained in this way.
請求項2に示すように請求項1に記載のオートホワイトバランス調整方法において、前記ステップ(a) は、前記分割エリア内のR,G,B信号を色別に積算して各色ごとの積算値を求めるステップと、前記各色ごとの積算値の比R/G及びB/Gを求め、これらの比R/G及びB/Gを該分割エリアの色情報とするステップと、を含むことを特徴としている。
In the auto white balance adjustment method according to
請求項3に示すように請求項2に記載のオートホワイトバランス調整方法において、前記ステップ(b) は、前記R/GとB/Gとで表される色空間上での注目する色情報と他の色情報との距離を求めるステップを含み、前記求めた距離が所定の閾値以下のときに前記他の色情報を前記注目する色情報と近似する色情報とすることを特徴としている。 3. The auto white balance adjustment method according to claim 2, wherein the step (b) includes color information of interest in a color space represented by the R / G and B / G. The method includes a step of obtaining a distance from other color information, wherein the other color information is set as color information approximate to the noticed color information when the obtained distance is equal to or less than a predetermined threshold value.
請求項4に示すように請求項1に記載のオートホワイトバランス調整方法において、前記ステップ(c) は、前記ステップ(b) で求めた色情報の平均値を算出し、この算出した平均値を第1の代表色情報とすることを特徴としている。 According to a fourth aspect of the present invention, in the auto white balance adjustment method according to the first aspect, the step (c) calculates an average value of the color information obtained in the step (b), and calculates the calculated average value. The first representative color information is used.
請求項5に示すように請求項2に記載のオートホワイトバランス調整方法において、前記ステップ(d) は、前記R/GとB/Gとで表される色空間上での注目する第1の代表色情報と他の第1の代表色情報との距離を求めるステップを含み、前記求めた距離が所定の閾値以下のときに前記他の第1の代表色情報を前記注目する第1の代表色情報と近似する第1の代表色情報とすることを特徴としている。 5. The auto white balance adjustment method according to claim 2, wherein the step (d) includes a first attention focused on a color space represented by the R / G and B / G. A step of obtaining a distance between the representative color information and the other first representative color information, wherein the other first representative color information is the first representative to be noted when the obtained distance is equal to or less than a predetermined threshold. The first representative color information approximate to the color information is used.
請求項6に示すように請求項1に記載のオートホワイトバランス調整方法において、前記ステップ(e) は、前記ステップ(d) で求めた第1の代表色情報の平均値を算出し、この算出した平均値を第2の代表色情報とすることを特徴としている。
6. The auto white balance adjustment method according to
請求項7に示すように請求項1に記載のオートホワイトバランス調整方法において、前記収束した代表色情報が複数個ある場合には、各代表色情報の算出に使用された前記色情報の個数が、所定の個数以上の代表色情報、又は代表色情報の算出に使用された色情報の個数が多い上位のm個の代表色情報を前記ホワイトバランス補正値の算出に使用することを特徴としている。
In the auto white balance adjustment method according to
請求項8に示すように請求項1に記載のオートホワイトバランス調整方法において、前記収束した代表色情報が複数個ある場合には、各代表色情報を目標の色情報にするためのホワイトバランス補正値をそれぞれ算出し、該算出した代表色情報ごとのホワイトバランス補正値をそれぞれ代表色情報の算出に使用された第1の色情報の個数によって重み付け加算して前記ホワイトバランス補正値を算出することを特徴としている。
The automatic white balance adjustment method according to
請求項9に示すように請求項1に記載のオートホワイトバランス調整方法において、前記収束した代表色情報が複数個ある場合には、各代表色情報の算出に使用された前記色情報の個数が最大の代表色情報を前記ホワイトバランス補正値の算出に使用することを特徴としている。
In the auto white balance adjustment method according to
本発明によれば、1画面を複数のエリアに分割してなる複数の分割エリアの色情報のうち、相互に近似する色情報のカタマリを、光源種に起因するカタマリと見なし、そのカタマリ内の色情報に基づいてホワイトバランス調整を行うためのホワイトバランス補正値を算出するようにしたため、特許文献1に記載のように光源種を検出するための検出枠を設ける必要がなく、簡単なアルゴリズムで良好なホワイトバランス補正値を求めることができ、特にカタマリ内の色情報から代表色情報を算出する際、及び算出された代表色情報から次に代表色情報を算出する際に、一度、算出に使用された色情報、又は代表色情報は、別の代表色情報の算出には使用しないようにしたため、代表色情報が収束するまでの演算回数を大幅に低減することができ、ホワイトバランス補正値を算出するまでの演算時間の短縮化を図ることができる。
According to the present invention, among color information of a plurality of divided areas obtained by dividing one screen into a plurality of areas, a color information catalog that is close to each other is regarded as a catalog that is caused by a light source type, and Since the white balance correction value for performing the white balance adjustment based on the color information is calculated, there is no need to provide a detection frame for detecting the light source type as described in
以下添付図面に従って本発明に係るオートホワイトバランス調整方法の好ましい実施の形態について詳説する。 Hereinafter, preferred embodiments of an auto white balance adjusting method according to the present invention will be described in detail with reference to the accompanying drawings.
図1は本発明に係るオートホワイトバランス調整方法が適用されたデジタルカメラの実施の形態を示すブロック図である。 FIG. 1 is a block diagram showing an embodiment of a digital camera to which an auto white balance adjusting method according to the present invention is applied.
このカメラ10は、静止画や動画の記録及び再生機能を備えたデジタルカメラであり、カメラ10全体の動作は中央処理装置(CPU)12によって統括制御される。 CPU12は、所定のプログラムに従って本カメラシステムを制御する制御手段として機能するとともに、自動露出(AE)演算、自動焦点調節(AF)演算、ホワイトバランス(WB)調整演算など、各種演算を実施する演算手段として機能する。
The
バス14を介してCPU12と接続されたROM16には、CPU12が実行するプログラム及び制御に必要な各種データ等が格納され、EEPROM17には、CCD画素欠陥情報、カメラ動作に関する各種定数/情報等が格納されている。
A
また、メモリ(SDRAM)18は、プログラムの展開領域及びCPU12の演算作業用領域として利用されるとともに、画像データや音声データの一時記憶領域として利用される。VRAM20は画像データ専用の一時記憶メモリであり、A領域20AとB領域20Bが含まれている。メモリ18とVRAM20は共用することが可能である。
The memory (SDRAM) 18 is used as a program development area and a calculation work area for the
カメラ10にはモード選択スイッチ22、撮影ボタン24、その他、メニュー/OKキー、十字キー、キャンセルキーなどの操作手段26が設けられている。これら各種の操作部(22〜26)からの信号はCPU12に入力され、CPU12は入力信号に基づいてカメラ10の各回路を制御し、例えば、レンズ駆動制御、撮影動作制御、画像処理制御、画像データの記録/再生制御、画像表示装置28の表示制御などを行う。
The
モード選択スイッチ22は、撮影モードと再生モードとを切り換えるための操作手段である。モード選択スイッチ22を操作して可動接片22Aを接点aに接続させると、その信号がCPU12に入力され、カメラ10は撮影モードに設定され、可動接片22Aを接点bに接続させると、カメラ10は記録済みの画像を再生する再生モードに設定される。
The
撮影ボタン24は、撮影開始の指示を入力する操作ボタンであり、半押し時にONするS1スイッチと、全押し時にONするS2スイッチとを有する二段ストローク式のスイッチで構成されている。
The
メニュー/OKキーは、画像表示装置28の画面上にメニューを表示させる指令を行うためのメニューボタンとしての機能と、選択内容の確定及び実行などを指令するOKボタンとしての機能とを兼備した操作キーである。十字キーは、上下左右の4方向の指示を入力する操作部であり、メニュー画面から項目を選択したり、各メニューから各種設定項目の選択を指示したりするボタン(カーソル移動操作手段)として機能する。また、十字キーの上/下キーは撮影時のズームスイッチあるいは再生時の再生ズームスイッチとして機能し、左/右キーは再生モード時のコマ送り(順方向/逆方向送り)ボタンとして機能する。キャンセルキーは、選択項目など所望の対象の消去や指示内容の取消し、あるいは1つ前の操作状態に戻らせる時などに使用される。
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
画像表示装置28は、カラー表示可能な液晶ディスプレイで構成されている。画像表示装置28は、撮影時に画角確認用の電子ファインダとして使用できるとともに、記録済み画像を再生表示する手段として利用される。また、画像表示装置28は、ユーザインターフェース用表示画面としても利用され、必要に応じてメニュー情報や選択項目、設定内容などの情報が表示される。液晶ディスプレイに代えて、有機ELなど他の方式の表示装置(表示手段)を用いることも可能である。
The
カメラ10は、メディアソケット(メディア装着部)30を有し、メディアソケット30には記録メディア32を装着することができる。記録メディアの形態は特に限定されず、xD-PictureCard(商標)、スマートメディア(商標)に代表される半導体メモリカード、可搬型小型ハードディスク、磁気ディスク、光ディスク、光磁気ディスクなど、種々の媒体を用いることができる。
The
メディアコントローラ34は、メディアソケット30に装着される記録メディア32に適した入出力信号の受渡しを行うために所要の信号変換を行う。
The
また、カメラ10はパソコンその他の外部機器と接続するための通信手段としてUSBインターフェース部36を備えている。図示せぬUSBケーブルを用いてカメラ10と外部機器を接続することにより、外部機器との間でデータの受渡しが可能となる。もちろん、通信方式はUSBに限らず、IEEE1394やBluetooth その他の通信方式を適用してもよい。
The
次に、カメラ10の撮影機能について説明する。
Next, the shooting function of the
モード選択スイッチ22によって撮影モードが選択されると、カラーCCD固体撮像素子(以下CCDと記載)38を含む撮像部に電源が供給され、撮影可能な状態になる。
When the shooting mode is selected by the
レンズユニット40は、フォーカスレンズを含む撮影レンズ42と絞り兼用メカシャッター44とを含む光学ユニットである。レンズユニット40は、CPU12によって制御されるレンズ駆動部46、絞り駆動部48によって電動駆動され、ズーム制御、フォーカス制御及びアイリス制御が行われる。
The
レンズユニット40を通過した光は、CCD38の受光面に結像される。CCD38の受光面には多数のフォトダイオード(受光素子)が二次元的に配列されており、各フォトダイオードに対応して赤(R)、緑(G)、青(B)の原色カラーフィルタが所定の配列構造(ベイヤー、Gストライプなど)で配置されている。また、CCD38は、各フォトダイオードの電荷蓄積時間(シャッタースピード)を制御する電子シャッター機能を有している。CPU12は、タイミングジェネレータ50を介してCCD38での電荷蓄積時間を制御する。尚、CCD38に代えてMOS型など他の方式の撮像素子を用いてもよい。
The light that has passed through the
CCD38の受光面に結像された被写体像は、各フォトダイオードによって入射光量に応じた量の信号電荷に変換される。各フォトダイオードに蓄積された信号電荷は、CPU12の指令に従いタイミングジェネレータ50から与えられる駆動パルスに基づいて信号電荷に応じた電圧信号(画像信号)として順次読み出される。
The subject image formed on the light receiving surface of the
CCD38から出力された信号はアナログ処理部(CDS/AMP)52に送られ、ここで画素ごとのR,G,B信号がサンプリングホールド(相関二重サンプリング処理)され、増幅された後、A/D変換器54に加えられる。A/D変換器54によってデジタル信号に変換された点順次のR,G,B信号は、画像入力コントローラ56を介してメモリ18に記憶される。
The signal output from the
画像信号処理回路58は、メモリ18に記憶されたR,G,B信号をCPU12の指令に従って処理する。即ち、画像信号処理回路58は、同時化回路(単板CCDのカラーフィルタ配列に伴う色信号の空間的なズレを補間して色信号を同時式に変換する処理回路)、ホワイトバランス補正回路、ガンマ補正回路、輪郭補正回路、輝度・色差信号生成回路等を含む画像処理手段として機能し、CPU12からのコマンドに従ってメモリ18を活用しながら所定の信号処理を行う。
The image
画像信号処理回路58に入力されたRGBの画像データは、画像信号処理回路58において輝度信号(Y信号)及び色差信号(Cr,Cb 信号)に変換されるとともに、ガンマ補正等の所定の処理が施される。画像信号処理回路58で処理された画像データはVRAM20に格納される。
The RGB image data input to the image
撮影画像を画像表示装置28にモニタ出力する場合、VRAM20から画像データが読み出され、バス14を介してビデオエンコーダ60に送られる。ビデオエンコーダ60は、入力された画像データを表示用の所定方式の信号(例えば、NTSC方式のカラー複合映像信号)に変換して画像表示装置28に出力する。
When the captured image is output to the
CCD38から出力される画像信号によって、1コマ分の画像を表す画像データがA領域20AとB領域22Bとで交互に書き換えられる。VRAM20のA領域20A及びB領域20Bのうち、画像データが書き換えられている方の領域以外の領域から、書き込まれている画像データが読み出される。このようにしてVRAM20内の画像データが定期的に書き換えられ、その画像データから生成される映像信号が画像表示装置28に供給されることにより、撮像中の映像がリアルタイムに画像表示装置28に表示される。撮影者は、画像表示装置28に表示される映像(スルームービー画)によって撮影画角を確認できる。
With the image signal output from the
撮影ボタン24が半押しされ、S1がオンすると、カメラ10はAE及びAF処理を開始する。即ち、CCD38から出力された画像信号はA/D変換後に画像入力コントローラ56を介してAF検出回路62並びにAE/AWB検出回路64に入力される。
When the
AE/AWB検出回路64は、1画面を複数のエリア(例えば、16×16)に分割し、分割エリアごとにRGB信号を積算する回路を含み、その積算値をCPU12に提供する。CPU12は、AE/AWB検出回路64から得た積算値に基づいて被写体の明るさ(被写体輝度)を検出し、撮影に適した露出値(撮影EV値)を算出する。求めた露出値と所定のプログラム線図に従い、絞り値とシャッタースピードが決定され、これに従いCPU12はCCD38の電子シャッター及びアイリスを制御して適正な露光量を得る。
The AE /
また、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以外の値になるようにホワイトバランス調整回路のゲイン値を調整すると、ある色味が残った画像を生成することができる。尚、ホワイトバランス調整の詳細は後述する。
Further, the AE /
本カメラ10におけるAF制御は、例えば映像信号のG信号の高周波成分が極大になるようにフォーカシングレンズ(撮影レンズ42を構成するレンズ光学系のうちフォーカス調整に寄与する移動レンズ)を移動させるコントラストAFが適用される。即ち、AF検出回路62は、G信号の高周波成分のみを通過させるハイパスフィルタ、絶対値化処理部、画面内(例えば、画面中央部)に予め設定されているフォーカス対象エリア内の信号を切り出すAFエリア抽出部、及びAFエリア内の絶対値データを積算する積算部から構成される。
The AF control in the
AF検出回路62で求めた積算値のデータはCPU12に通知される。CPU12は、レンズ駆動部46を制御してフォーカシングレンズを移動させながら、複数のAF検出ポイントで焦点評価値(AF評価値)を演算し、評価値が極大となるレンズ位置を合焦位置として決定する。そして、求めた合焦位置にフォーカシングレンズを移動させるようにレンズ駆動部46を制御する。尚、AF評価値の演算はG信号を利用する態様に限らず、輝度信号(Y信号)を利用してもよい。
The integrated value data obtained by the
撮影ボタン24が半押しされ、S1オンによってAE/AF処理が行われ、撮影ボタン24が全押しされ、S2オンによって記録用の撮影動作がスタートする。S2オンに応動して取得された画像データは画像信号処理回路58において輝度/色差信号(Y/C信号)に変換され、ガンマ補正等の所定の処理が施された後、メモリ18に格納される。
The
メモリ18に格納されたY/C信号は、圧縮伸張回路66によって所定のフォーマットに従って圧縮された後、メディアコントローラ34を介して記録メディア32に記録される。例えば、静止画についてはJPEG(Joint Photographic Experts Group)形式で記録される。
The Y / C signal stored in the
モード選択スイッチ22により再生モードが選択されると、記録メディア32に記録されている最終の画像ファイル(最後に記録されたファイル)の圧縮データが読み出される。最後の記録に係るファイルが静止画ファイルの場合、この読み出された画像圧縮データは、圧縮伸張回路66を介して非圧縮のYC信号に伸張され、画像信号処理回路58及びビデオエンコーダ60を介して表示用の信号に変換された後、画像表示装置28に出力される。これにより、当該ファイルの画像内容が画像表示装置28の画面上に表示される。
When the playback mode is selected by the
静止画の一コマ再生中(動画の先頭フレーム再生中も含む)に、十字キーの右キー又は左キーを操作することによって、再生対象のファイルを切り換えること(順コマ送り/逆コマ送り)ができる。コマ送りされた位置の画像ファイルが記録メディア32から読み出され、上記と同様にして静止画像や動画が画像表示装置28に再生表示される。
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
次に、本発明に係るオートホワイトバランス調整方法について説明する。 Next, an auto white balance adjustment method according to the present invention will be described.
図2は本発明に係るホワイトバランス調整方法を説明するために用いたフローチャートである。 FIG. 2 is a flowchart used for explaining the white balance adjustment method according to the present invention.
まず、撮影ボタン24が押されると、被写体の撮影が行われる。この撮影時にCCD38から得られたR,G,B信号は一旦メモリ18に格納される。メモリ18に格納されているR,G,B信号を用いて、1画面が16×16に分割された256個の分割エリアごとにRGB信号の色別の平均積算値を算出し、各分割エリアごとにR,G,Bの平均積算値の比(即ち、R/G及びB/Gの比)を算出する(ステップS10)。
First, when the photographing
このようにして算出された256個の分割エリアごとの色情報は、前記R/G、B/Gの値に基づいて図3に示すR/G、B/Gの色空間上で分布する256個の点として表すことができる。 The color information for each of the 256 divided areas calculated in this manner is distributed on the R / G and B / G color spaces shown in FIG. 3 based on the R / G and B / G values. Can be represented as individual points.
そして、以下のアルゴリズムにより、R/G、B/Gの色空間上で分布する256個の色情報のカタマリ中心座標点をコーンCORNとして算出する。 Then, by the following algorithm, the catamary center coordinate points of 256 pieces of color information distributed in the R / G and B / G color spaces are calculated as the cone CORN.
このアルゴリズムの概要について、図4を参照しながら説明する。 The outline of this algorithm will be described with reference to FIG.
図4(A)に示すように色空間上に6つの色情報a〜fが分布しているとする。この6つの色情報a〜fから色情報のカタマリを求めるとともに、そのカタマリ中心座標点を以下のようにして求める。 Assume that six pieces of color information a to f are distributed in the color space as shown in FIG. The color information catalog is obtained from the six color information a to f, and the catalog central coordinate point is obtained as follows.
まず、6つの色情報a〜fのうちの任意の1つの色情報aを注目する色情報とし、この色情報aと他の色情報b〜fとの距離を算出する。そして、算出された距離が所定の距離以内の他の色情報を求める。即ち、色情報aを中心とする円1の中の色情報を求める。この例では、色情報aから所定の距離以内の他の色情報は、色情報b、cであり、これらの色情報b、cは、色情報aと近似した色情報である。
First, any one of the six color information a to f is set as the color information to be noticed, and the distance between the color information a and the other color information b to f is calculated. Then, other color information whose calculated distance is within a predetermined distance is obtained. That is, the color information in the
注目する色情報aと、これに近似した色情報b、cの加重平均を求め、この平均値を色情報a、b、cの代表色情報(第1の代表色情報)a1 とする。 A weighted average of the noticed color information a and the color information b and c approximated thereto is obtained, and this average value is set as representative color information (first representative color information) a 1 of the color information a, b and c.
次に、注目する色情報を変更する。この場合、第1の代表色情報a1 の算出に使用されなかった色情報(この例では、色情報d、e、f)の中から注目する色情報を選択する。この例では、色情報dを次に注目する色情報とする。そして、上記と同様にして注目する色情報dと他の色情報e、f(第1の代表色情報の算出に使用されなかった色情報)との距離を算出し、色情報dを中心とする円2の中の色情報を求める。この例では、色情報dから所定の距離以内の、第1の代表色情報の算出に使用されていない他の色情報は、色情報eである。 Next, the noticed color information is changed. In this case, the target color information is selected from the color information (in this example, the color information d, e, f) that has not been used for the calculation of the first representative color information a 1 . In this example, the color information d is the color information to be noticed next. Then, the distance between the color information d of interest and the other color information e and f (color information that was not used for calculating the first representative color information) is calculated in the same manner as described above, and the color information d is the center. Find the color information in the circle 2 to do. In this example, the other color information that is not used for calculating the first representative color information within a predetermined distance from the color information d is the color information e.
注目する色情報dと、これに近似した色情報eの加重平均を求め、この平均値を色情報d、eの代表色情報(第1の代表色情報)b1 とする。 A weighted average of the noticed color information d and the color information e approximated thereto is obtained, and this average value is used as representative color information (first representative color information) b 1 of the color information d and e.
次に、注目する色情報を変更する。この場合、第1の代表色情報a1 、b1 の算出に使用されなかった色情報(この例では、色情報f)を注目する色情報とする。そして、この注目する色情報fと他の色情報(第1の代表色情報の算出に使用されなかった色情報)との距離を算出するが、この場合、他の色情報がないため、距離の算出は行なわれない。即ち、色情報fは、色情報のカタマリに属していない孤立した色情報である。 Next, the noticed color information is changed. In this case, (in this example, color information f) the first color information that has not been used for calculating the representative color information a 1, b 1 and the color information of interest to. Then, the distance between the noticed color information f and other color information (color information that was not used for calculating the first representative color information) is calculated. In this case, since there is no other color information, the distance is calculated. Is not calculated. That is, the color information f is isolated color information that does not belong to the color information catalog.
上記第1の代表色情報の算出が終了し、注目する色情報がなくなると、次に、図4(B)に示すように前記算出された第1の代表色情報(この例では、第1の代表色情報a1 、b1 )のうちの任意の1つの第1の代表色情報a1 を注目する第1の代表色情報とし、この第1の代表色情報a1 と他の第1の代表色情報b1 との距離を算出する。そして、算出された距離が所定の距離以内の他の第1の代表色情報を求める。即ち、第1の代表色情報a1 を中心とする円3の中の第1の代表色情報を求める。この例では、第1の代表色情報a1 から所定の距離以内の他の第1の代表色情報は、第1の代表色情報b1 である。 When the calculation of the first representative color information is completed and there is no color information of interest, the calculated first representative color information (in this example, first representative color information a 1, b 1) of one first arbitrary representative color information a 1 is a first representative color information of interest of this first representative color information a 1 and the other of the first The distance from the representative color information b 1 is calculated. Then, other first representative color information whose calculated distance is within a predetermined distance is obtained. That is, the first representative color information in the circle 3 centered on the first representative color information a 1 is obtained. In this example, the other first representative color information within a predetermined distance from the first representative color information a 1 is the first representative color information b 1 .
注目する第1の代表色情報a1 と、これに近似した第1の代表色情報b1 の加重平均を求め、この平均値を第1の代表色情報a1 、b2 の代表色情報(第2の代表色情報)a2 とする。 A weighted average of the first representative color information a 1 to be noticed and the first representative color information b 1 approximated thereto is obtained, and this average value is obtained as the representative color information of the first representative color information a 1 and b 2 ( the second representative color information) and a 2.
このようにして代表色情報が収束するまで、第1の代表色情報、第2の代表色情報、…を求める。そして、収束した代表色情報(この例では、第2の代表色情報a2 )を、色情報a〜eのカタマリの中心座標点とする。 Thus, the first representative color information, the second representative color information,... Are obtained until the representative color information converges. Then, the converged representative color information (in this example, the second representative color information a 2 ) is set as the central coordinate point of the color information a to e.
図2に戻って、t=1を設定する(ステップS12)。ここで、tは、前述した第1の代表色情報、第2の代表色情報、…、第nの代表色情報の算出する場合に応じて1、2、…、nと変化するパラメータである。 Returning to FIG. 2, t = 1 is set (step S12). Here, t is a parameter that changes to 1, 2,..., N according to the calculation of the first representative color information, the second representative color information,. .
R/G、B/Gの色空間上で分布する、注目する色情報(又は代表色情報)の(R/G,B/G)の座標を(Rjt,Bjt )とする(ステップS14)。ここで、jは1〜分布数kt を表しており、t=1の場合の分布数k1 は256である。 The coordinates of (R / G, B / G) of the target color information (or representative color information) distributed in the R / G, B / G color space are set to (Rj t, Bj t ) (step S14). ). Here, j represents 1 to the number of distributions k t , and the number of distributions k 1 when t = 1 is 256.
続いて、(Rjt,Bjt )と、R/G、B/Gの色空間上で分布している他の色情報(又は代表色情報)の座標(Rjta,Bjta)との距離Djtaを、次式により求める(ステップS16)。 Subsequently, (Rj t, Bj t ) and coordinates (Rj t a , Bj t a) of other color information (or representative color information) distributed in the R / G, B / G color space Distance Dj t a is obtained by the following equation (step S16).
[数1]
Djta=√{(Rjt −Rjta ) 2+(Bjt −Bjta ) 2}
ここで、aはj〜分布数kt であり、t=1の場合には、256個すべての色情報の座標(Rjt,Bjt )と他の色情報との距離を求める。
[Equation 1]
Dj t a = √ {(Rj t −Rj t a) 2 + (Bj t −Bj t a) 2 }
Here, a is a j~ distribution number k t, in the case of t = 1 is 256 coordinates all color information (Rj t, Bj t) determining the distance between the other color information.
次に、[数1]で求めた距離Djtaと所定の閾値Nとを比較し、Djta<N、かつフラグFLGa≠1の条件を満たす色情報を選択する(ステップS18)。尚、Nは、図4に示した円の半径に対応し、予めEEPROMに設定された値である。また、フラグFLGa=1は、後述のステップS22にて既に平均値の演算に使用された色情報を示す。
上記のようにして選択された色情報には、フラグFLGa=1を設定し(ステップS20)、続いて、Kjtaと、(Rjta,Bjta)との加重平均からステップS18で選択された色情報の代表色情報(Rjt+1,Bjt+1)を算出する。[数2]は、代表色情報(Rjt+1,Bjt+1)を算出する式を示している。
Next, the distance Dj t a obtained in [Equation 1] is compared with a predetermined threshold N, and color information satisfying the condition of Dj t a <N and the flag FLGa ≠ 1 is selected (step S18). N corresponds to the radius of the circle shown in FIG. 4 and is a value preset in the EEPROM. The flag FLGa = 1 indicates the color information that has already been used for the average value calculation in step S22 described later.
The color information selected in the manner described above, sets a flag FLGa = 1 (step S20), followed by a Kj t a, at step S18 from the weighted average of the (Rj t a, Bj t a ) The representative color information (Rj t + 1, Bj t + 1 ) of the selected color information is calculated. [Equation 2] represents an expression for calculating representative color information (Rj t + 1, Bj t + 1 ).
但し、[数2]において、Djta<N、かつFLGa≠1のとき、Kjta=1、それ以外のとき、Kjta=0である。 However, in [Expression 2], when Dj t a <N and FLGa ≠ 1, Kj t a = 1, otherwise Kj t a = 0.
次に、jを1だけインクリメントし(ステップS24)、j≦kt か否かを判別する(ステップS26)。j≦kt の場合には、ステップS24で設定されたjに対応する色情報(又は代表色情報)のフラグFLGtがFLGt=1か否かを判別する(ステップS28)。FLGt=1の場合には、一度、ステップS22での計算に使用されている情報であるため、ステップS24に進み、FLGt≠1の場合には、ステップS14に進み、ステップS24で設定されたjに対応する色情報(又は代表色情報)を注目する色情報(又は代表色情報)とする。 Then, j is incremented by 1 (step S24), and determines whether or not j ≦ k t (step S26). In the case of j ≦ k t is the flag FLGt color information corresponding to the j set in step S24 (or representative color information) is equal to or FLGt = 1 (step S28). If FLGt = 1, since the information is once used in the calculation in step S22, the process proceeds to step S24. If FLGt ≠ 1, the process proceeds to step S14, and j set in step S24. The color information (or representative color information) corresponding to is used as the noticed color information (or representative color information).
一方、対象となる分布数kt だけ処理が行なわれ、ステップS26において、j>kt となると、t回の代表色情報の座標値(Rjta,Bjta)と、ステップS22で算出されたt+1回の代表色情報の座標値(Rjt+1,Bjt+1)とが一致するか否かを判別する(ステップS30)。 On the other hand, processing is performed for the target distribution number k t , and when j> k t in step S26, t times of representative color information coordinate values (Rj t a , Bj t a) are calculated in step S22. has been t + 1 time coordinate values of the representative color information (Rj t + 1, Bj t + 1) and it is determined whether or not matching (step S30).
座標値が一致しない場合には、tを1だけインクリメントし(ステップS32)、ステップS14に進む。そして、ステップS14において、ステップS22で算出された各代表色情報の中から注目する代表色情報を選定して上記と同様の処理を繰り返す。 If the coordinate values do not match, t is incremented by 1 (step S32), and the process proceeds to step S14. In step S14, the representative color information of interest is selected from the representative color information calculated in step S22, and the same processing as described above is repeated.
これにより、256(=k1 )個の色情報、k2 個の第1の代表色情報、k3 個の第2の代表色情報、…と、代表色情報の個数が徐々に減少する。 Thus, the number of 256 (= k 1 ) pieces of color information, k 2 pieces of first representative color information, k 3 pieces of second representative color information,.
ステップS30において、(Rjta,Bjta)=(Rjt+1,Bjt+1)に収束したと判別されると、続いて、その座標(カタマリ中心座標)に収束した色情報の個数が、閾値e以上のカタマリを検出し(ステップS34)、更に個数の多い上位m個以内のカタマリを検出する(ステップS36)。尚、e、mはそれぞれEEPROMに設定された設定値である。 In step S30, if it is determined that (Rj t a , Bj t a) = (Rj t + 1, Bj t + 1 ) has converged, then the color information converged to that coordinate (catamari center coordinate) is determined. Catamaries whose number is equal to or greater than the threshold value e are detected (step S34), and further, the top m number of catamaries with a larger number are detected (step S36). Note that e and m are set values set in the EEPROM, respectively.
そして、ステップS36で検出されたカタマリを、AWB調整に使用するためのコーンCORN1、…、CORNmとする(ステップS38、図3参照)。 Then, the catalog detected in step S36 is set as cones CORN1,..., CORNm for use in AWB adjustment (step S38, see FIG. 3).
その後、上記のようにして求めたコーンCORNi(i=1,2,…) ごとの代表色情報を、ニュートラル・グレー(Nグレー)にするためのR/GゲインGri、B/GゲインGbiを求め、これらのR/GゲインGri、B/GゲインGbiについて、各コーンCORNi内の個数Nで重み付けしたR/GゲインGr 、B/GゲインGb を、次式により求める。 Thereafter, the R / G gain Gri and the B / G gain Gbi for changing the representative color information for each cone CORNI (i = 1, 2,...) Obtained as described above to neutral gray (N gray) are obtained. For these R / G gain Gri and B / G gain Gbi, R / G gain Gr and B / G gain Gb weighted by the number N in each cone CORNI are obtained by the following equations.
[数3]
Gr =ΣGri×Ni/ΣNi
Gb=ΣGbi×Ni/ΣNi
以上のようにして求めたR/GゲインGr 、B/GゲインGb から、図1のメモリ18に保存したR,G,B信号に対するR,G,Bゲイン値(WB補正値)を求める。尚、G信号に付与する所要のゲイン値を、前記R/GゲインGr 、B/GゲインGb に乗算することによりR、B信号に付与するR、Bゲイン値を求めることができる。また、G信号に付与する所要のゲイン値を1とした場合には、前記R/GゲインGr 、B/GゲインGb がそのままR、B信号に付与するR、Bゲイン値となる。
[Equation 3]
Gr = ΣGri × Ni / ΣNi
Gb = ΣGbi × Ni / ΣNi
From the R / G gain Gr and B / G gain Gb obtained as described above, R, G, B gain values (WB correction values) for the R, G, B signals stored in the
そして、上記R,G,Bゲイン値(WB補正値)によりメモリ18に保存したR,G,B信号を補正する。これによりホワイトバランス調整が行われる。
Then, the R, G, B signals stored in the
尚、この実施の形態では、色情報が収束するまでの回数tにかかわらず、色情報の近似する範囲を規定する閾値Nの値を固定値としたが、これに限らず、tの回数に応じて閾値Nの値を最適な値に変動させるようにしてもよい。 In this embodiment, regardless of the number of times t until the color information converges, the value of the threshold value N that defines the approximate range of the color information is a fixed value. Accordingly, the value of the threshold value N may be changed to an optimum value.
10…カメラ、12…CPU、16…ROM、17…EEPROM、18…メモリ、26…操作手段、32…記録メディア、38…カラーCCD固体撮像素子(CCD)、40…レンズユニット、42…撮影レンズ、58…画像信号処理回路
DESCRIPTION OF
Claims (9)
前記ホワイトバランス補正値を算出するステップは、
(a) 1画面を複数のエリアに分割してなる複数の分割エリアの色情報を各分割エリア内のR,G,B信号に基づいて求めるステップと、
(b) 前記複数の分割エリアの色情報の中から注目する色情報を順次変更しながら各注目する色情報ごとに該色情報と相互に近似する色情報を求めるステップであって、前記注目する色情報及び注目する色情報と近似する色情報は第1の代表色情報の算出に使用されていない色情報の中から求めるステップと、
(c) 前記ステップ(b) において注目する色情報を順次変更しながら各注目する色情報ごとに求めた色情報を代表する前記第1の代表色情報を算出するステップと、
(d) 前記ステップ(c) で算出された第1の代表色情報の中から注目する第1の代表色情報を順次変更しながら各注目する第1の代表色情報ごとに該第1の代表色情報と相互に近似する第1の代表色情報を求めるステップであって、前記注目する第1の代表色情報及び注目する第1の代表色情報と近似する第1の代表色情報は第2の代表色情報の算出に使用されていない第1の代表色情報の中から求めるステップと、
(e) 前記ステップ(d) において注目する第1の代表色情報を順次変更しながら各注目する第1の代表色情報ごとに求めた第1の代表色情報を代表する前記第2の代表色情報を算出するステップと、
(f) 前記ステップ(d) 及びステップ(e) の処理と同様にして算出された代表色情報に基づいて次の代表色情報を算出し、代表色情報が収束するまで繰り返すステップと、
(g) 前記収束した代表色情報に基づいて前記ホワイトバランス補正値を算出するステップと、
を含むことを特徴とするオートホワイトバランス調整方法。 Calculating a white balance correction value based on R, G, B signals obtained from a color image sensor, and performing white balance adjustment of the R, G, B signals based on the calculated white balance correction value; In the auto white balance adjustment method including
The step of calculating the white balance correction value includes:
(a) obtaining color information of a plurality of divided areas obtained by dividing one screen into a plurality of areas based on R, G, and B signals in each divided area;
(b) obtaining color information that approximates the color information for each target color information while sequentially changing the target color information from among the color information of the plurality of divided areas, Obtaining color information and color information that approximates the color information of interest from color information that is not used for calculating the first representative color information;
(c) calculating the first representative color information representing the color information obtained for each color information of interest while sequentially changing the color information of interest in the step (b);
(d) The first representative color information for each noticed first representative color information while sequentially changing the noticed first representative color information from the first representative color information calculated in the step (c). A step of obtaining first representative color information that approximates the color information, wherein the first representative color information to be noticed and the first representative color information to be approximated to the first representative color information to be noticed are second Determining from the first representative color information that is not used for calculating the representative color information;
(e) The second representative color representing the first representative color information obtained for each first representative color information of interest while sequentially changing the first representative color information of interest in the step (d) Calculating information;
(f) calculating the next representative color information based on the representative color information calculated in the same manner as the processing of step (d) and step (e), and repeating until the representative color information converges;
(g) calculating the white balance correction value based on the converged representative color information;
An auto white balance adjustment method comprising:
前記分割エリア内のR,G,B信号を色別に積算して各色ごとの積算値を求めるステップと、
前記各色ごとの積算値の比R/G及びB/Gを求め、これらの比R/G及びB/Gを該分割エリアの色情報とするステップと、
を含むことを特徴とする請求項1に記載のオートホワイトバランス調整方法。 Step (a) includes
Integrating the R, G, B signals in the divided area for each color to obtain an integrated value for each color;
Obtaining ratios R / G and B / G of integrated values for the respective colors, and using these ratios R / G and B / G as color information of the divided areas;
The auto white balance adjustment method according to claim 1, further comprising:
When there are a plurality of converged representative color information, representative color information having the largest number of color information used for calculating each representative color information is used for calculating the white balance correction value. The auto white balance adjustment method according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004257587A JP4378629B2 (en) | 2004-09-03 | 2004-09-03 | Auto white balance adjustment method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004257587A JP4378629B2 (en) | 2004-09-03 | 2004-09-03 | Auto white balance adjustment method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006074623A true JP2006074623A (en) | 2006-03-16 |
JP4378629B2 JP4378629B2 (en) | 2009-12-09 |
Family
ID=36154712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004257587A Expired - Fee Related JP4378629B2 (en) | 2004-09-03 | 2004-09-03 | Auto white balance adjustment method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4378629B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106993175A (en) * | 2016-01-20 | 2017-07-28 | 瑞昱半导体股份有限公司 | Produce the method that the pixel used for realizing auto kine bias function computing screens scope |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11205812A (en) * | 1998-01-19 | 1999-07-30 | Ricoh Co Ltd | White balance control method and system thereof |
JPH11308634A (en) * | 1998-04-20 | 1999-11-05 | Ricoh Co Ltd | White balance controller |
JP2000224608A (en) * | 1999-02-02 | 2000-08-11 | Fuji Photo Film Co Ltd | Automatic white balance control method |
-
2004
- 2004-09-03 JP JP2004257587A patent/JP4378629B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11205812A (en) * | 1998-01-19 | 1999-07-30 | Ricoh Co Ltd | White balance control method and system thereof |
JPH11308634A (en) * | 1998-04-20 | 1999-11-05 | Ricoh Co Ltd | White balance controller |
JP2000224608A (en) * | 1999-02-02 | 2000-08-11 | Fuji Photo Film Co Ltd | Automatic white balance control method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106993175A (en) * | 2016-01-20 | 2017-07-28 | 瑞昱半导体股份有限公司 | Produce the method that the pixel used for realizing auto kine bias function computing screens scope |
Also Published As
Publication number | Publication date |
---|---|
JP4378629B2 (en) | 2009-12-09 |
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 | |
JP4791331B2 (en) | Imaging apparatus and exposure control method | |
JP4697606B2 (en) | Imaging apparatus and focus control method | |
JP4730553B2 (en) | Imaging apparatus and exposure control method | |
JP2005086499A (en) | Imaging apparatus | |
JP2007053499A (en) | White balance control unit and imaging apparatus | |
US7705896B2 (en) | Imaging apparatus which adds a first number of R and B pixels, and adds a second number of G pixels | |
JP2009048136A (en) | Focusing device and focusing method | |
JP2008109485A (en) | Imaging apparatus and imaging control method | |
JP4067033B2 (en) | Image processing apparatus and method | |
JP2006042399A (en) | Imaging apparatus | |
US7570294B2 (en) | Digital camera | |
JP2008017198A (en) | Device and method for calculating light source color, and photographing device | |
JP4716182B2 (en) | Imaging apparatus and imaging control program | |
JP4026516B2 (en) | Image processing apparatus and method | |
JP4264808B2 (en) | Moving image processing apparatus and method | |
JP2008083243A (en) | Photographing device and exposure control method | |
JP2004304695A (en) | White balance adjustment method | |
JP4378629B2 (en) | Auto white balance adjustment method | |
JP5550333B2 (en) | Imaging apparatus, development method, and program | |
JP2005109999A (en) | White balance adjustment method and camera | |
JP4239219B2 (en) | Auto white balance adjustment method and apparatus | |
JP2010239267A (en) | Imaging apparatus, method for controlling peripheral darkening correction, and program | |
JP5054209B2 (en) | Imaging apparatus and focus control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061226 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070213 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080414 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080527 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20090306 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090403 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20090521 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090605 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090730 |
|
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: 20090820 |
|
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: 20090902 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121002 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121002 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131002 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |