JP2000165896A - White balance control method and its system - Google Patents

White balance control method and its system

Info

Publication number
JP2000165896A
JP2000165896A JP10333915A JP33391598A JP2000165896A JP 2000165896 A JP2000165896 A JP 2000165896A JP 10333915 A JP10333915 A JP 10333915A JP 33391598 A JP33391598 A JP 33391598A JP 2000165896 A JP2000165896 A JP 2000165896A
Authority
JP
Japan
Prior art keywords
luminance
achromatic color
range
white balance
achromatic
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
JP10333915A
Other languages
Japanese (ja)
Inventor
Yasushi Sudo
靖 須藤
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP10333915A priority Critical patent/JP2000165896A/en
Publication of JP2000165896A publication Critical patent/JP2000165896A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To attain white balance control to reduce unpleasant color slurring in the case of photographing where different light sources are included in a picked-up frame. SOLUTION: A luminance discrimination means 6 obtains a luminance distribution on the basis of image data for each prescribed areas divided for a photographing frame, the luminance distribution of the areas is compared, and an achromatic range setting means 8 sets a luminance range for extracting an achromatic color to an initial value or a calculated revised value depending on the comparison result so as to exclude other light source area from the object of achromatic discrimination, an achromatic color discrimination means 9 applies achromatic discrimination to the image data within the set luminance range and a gain control means 10 sets a gain control variable with respect to the image data on the basis of the integrated data of pixels discriminated to be chromatic so as to take white balance.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、RGB単板式CC
D等の撮像素子を用いるデジタルスチルカメラ、デジタ
ルビデオカメラ等におけるホワイトバランス制御方法及
びその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an RGB single-plate CC
The present invention relates to a white balance control method and apparatus for a digital still camera, a digital video camera, and the like using an imaging device such as D.

【0002】[0002]

【従来の技術】一般に、この種のRGB単板式CCD等
のカラー撮像素子で撮像した画像データに関しては、A
/D変換や色補間等の処理を行なった後、各画素データ
について無彩色判定を行ない、無彩色画素のRGB値を
積算し、その積算データに基づきゲイン制御量を求め、
画像データのRデータとBデータとに対してゲイン制御
をかけることで自動的にホワイトバランス制御を行なう
ようにしている。
2. Description of the Related Art Generally, image data picked up by a color image pick-up device such as an RGB single-chip CCD is used for A
After performing processing such as / D conversion and color interpolation, achromatic determination is performed for each pixel data, the RGB values of the achromatic pixels are integrated, and a gain control amount is obtained based on the integrated data.
The white balance control is automatically performed by performing gain control on the R data and the B data of the image data.

【0003】ここに、このようなホワイトバランス制御
を行なう上で、色補間等の処理がなされた撮像フレーム
内の画像データについて、画面分割を行ない、各々の分
割エリアの色情報を基にホワイトバランスを行なうこと
が広く知られている。
Here, in performing such white balance control, a screen division is performed on image data in an image pickup frame that has been subjected to processing such as color interpolation, and the white balance is determined based on color information of each divided area. It is widely known to perform

【0004】[0004]

【発明が解決しようとする課題】ところが、このような
従来方式による場合、例えば、蛍光灯などの光源下にあ
る室内での撮影時に、窓が撮像フレーム内に入るなど、
フレーム内に違った光源で照らされた物体がある場合に
自動ホワイトバランス処理を行なうと、室内を撮影して
いるにも拘わらず自動ホワイトバランス処理が窓の外に
合ってしまい、室内のホワイトバランスがずれてしまっ
たり、逆に、室内から屋外を撮影しようとする場合に室
内にホワイトバランスが合ってしまい、屋外の色ずれが
起こってしまう、等の不具合がある。
However, in the case of such a conventional method, for example, when taking a picture in a room under a light source such as a fluorescent lamp, a window enters into an imaging frame.
When performing automatic white balance processing when there is an object illuminated by a different light source in the frame, the automatic white balance processing fits outside the window even though the room is being shot, and the indoor white balance However, there are disadvantages such as that the image is shifted, or conversely, when trying to photograph the outdoors from indoors, the white balance is adjusted in the indoors, causing color shifts in the outdoors.

【0005】また、撮像フレーム内の画像全体若しくは
或る範囲内の色情報を基にホワイトバランス制御をかけ
る場合には、その画像中若しくは範囲内で窓のような違
った光源の占める割合に応じて色ずれを起こしてしまう
という問題もある。
When white balance control is performed on the basis of color information within the entire image or within a certain range in an image-capturing frame, depending on the ratio of different light sources such as windows in the image or within the range. There is also a problem of causing color misregistration.

【0006】そこで、本発明は、撮像フレーム内に違っ
た光源が含まれるような撮影時にあっても、輝度情報を
利用してホワイトバランス制御を行なうことで撮影時の
不快な色ずれを軽減させることができるホワイトバラン
ス制御方法及びその装置を提供することを目的とする。
Therefore, the present invention reduces the unpleasant color shift at the time of photographing by performing white balance control using luminance information even during photographing in which a different light source is included in the image pickup frame. It is an object of the present invention to provide a white balance control method and a white balance control method.

【0007】[0007]

【課題を解決するための手段】請求項1記載の発明のホ
ワイトバランス制御方法は、撮像フレームについて分割
された所定のエリア毎の画像データに基づき輝度分布を
求めて、各エリア毎の輝度分布を比較し、その比較結果
に応じて無彩色抽出を行なう輝度範囲を初期値又は算出
した変更値に設定し、設定された輝度範囲内で前記画像
データについて無彩色判定を行ない、無彩色と判定され
た画素の積算データに基づき前記画像データに対するゲ
イン制御量を設定することによりホワイトバランスをと
るようにした。
According to a first aspect of the present invention, there is provided a white balance control method, wherein a luminance distribution is obtained based on image data for each predetermined area divided for an image pickup frame, and the luminance distribution for each area is calculated. Compare, set a luminance range for performing achromatic color extraction according to the comparison result to an initial value or a calculated change value, perform achromatic determination on the image data within the set luminance range, and determine that the image data is achromatic. White balance is achieved by setting a gain control amount for the image data based on the integrated data of the pixels.

【0008】従って、エリア単位の輝度分布なる輝度情
報によって無彩色判定を行なうための輝度範囲を変更設
定して無彩色判定を行なうようにしたので、撮像フレー
ム内に違った光源が含まれるような撮影時にあっても、
精度よくホワイトバランス処理を行なえる。
Therefore, the achromatic color determination is performed by changing and setting the brightness range for performing the achromatic color determination based on the brightness information that is the brightness distribution in the unit of area, so that a different light source may be included in the imaging frame. Even when shooting,
White balance processing can be performed accurately.

【0009】請求項2記載の発明は、請求項1記載のホ
ワイトバランス制御方法において、各エリア毎の輝度分
布が2段階以上に異なる場合に、低輝度側の輝度分布に
基づき無彩色抽出を行なう輝度範囲を算出した変更値に
設定するようにした。
According to a second aspect of the present invention, in the white balance control method according to the first aspect, when the luminance distribution of each area is different in two or more steps, achromatic color extraction is performed based on the luminance distribution on the low luminance side. The luminance range is set to the calculated change value.

【0010】従って、輝度情報によって高輝度側の無彩
色検出を行なわないので、室内で屋外の風景を撮影した
ような場合でも、輝度値の高い屋外のデータによる影響
を除き、違和感のないホワイトバランス制御が可能とな
る。
Therefore, since the achromatic color detection on the high-brightness side is not performed based on the brightness information, even when an outdoor scene is photographed indoors, the white balance without a sense of incongruity is eliminated except for the influence of the outdoor data having a high brightness value. Control becomes possible.

【0011】請求項3記載の発明は、請求項1又は2記
載のホワイトバランス制御方法において、最大の輝度平
均値が一定値以下の範囲で各エリア毎の輝度分布が2段
階以上に異なる場合に、高輝度側の輝度分布に基づき無
彩色抽出を行なう輝度範囲を算出した変更値に設定する
ようにした。
According to a third aspect of the present invention, there is provided the white balance control method according to the first or second aspect, wherein the luminance distribution of each area is different in two or more steps within a range where the maximum luminance average value is equal to or less than a predetermined value. The luminance range for performing achromatic color extraction based on the luminance distribution on the high luminance side is set to the calculated change value.

【0012】従って、撮像フレーム中の輝度情報と一定
値、例えば、露出制御値を用いて無彩色検出のための輝
度範囲の設定を行なうことで、被写体付近の輝度範囲の
無彩色検出が行なわれ、被写体の色ずれを抑制したホワ
イトバランス処理が可能となる。
Accordingly, by setting a luminance range for achromatic color detection using luminance information and a fixed value, for example, an exposure control value, in an image pickup frame, achromatic color detection in a luminance range near an object is performed. In addition, white balance processing in which color shift of a subject is suppressed can be performed.

【0013】請求項4記載の発明のホワイトバランス制
御方法は、撮像フレームについて分割された所定のエリ
ア毎の画像データに基づき輝度分布を求めて、各エリア
毎の輝度分布を比較し、その比較の結果、各エリア毎の
輝度分布が2段階以上に異なる場合に、異なる各輝度分
布毎にその輝度分布に応じて無彩色抽出を行なう輝度範
囲を算出した変更値に設定し、設定された各輝度分布毎
の輝度範囲内で前記画像データについて無彩色判定を行
ない、これらの各輝度分布毎の無彩色判定結果に応じて
前記画像データに対するゲイン制御量を設定することに
よりホワイトバランスをとるようにした。
According to a fourth aspect of the present invention, there is provided a white balance control method, wherein a luminance distribution is obtained based on image data for each predetermined area divided for an image pickup frame, and the luminance distribution for each area is compared. As a result, when the luminance distribution of each area is different in two or more steps, the luminance range for performing achromatic color extraction is set to the calculated change value for each of the different luminance distributions, and each of the set luminances is set. Achromatic determination is performed on the image data within the luminance range of each distribution, and a white balance is obtained by setting a gain control amount for the image data according to the achromatic determination result of each luminance distribution. .

【0014】従って、輝度情報による輝度範囲毎にゲイ
ン制御量を求め、その結果に基づいて適宜ゲイン制御量
を設定して制御を行なうので、より柔軟で精度のよいホ
ワイトバランス制御が可能となる。
Accordingly, since the gain control amount is obtained for each luminance range based on the luminance information, and the gain control amount is appropriately set based on the result and the control is performed, the white balance control can be performed more flexibly and accurately.

【0015】請求項5記載の発明のホワイトバランス制
御装置は、撮像素子により撮像された撮像フレームにつ
いて分割された所定のエリア毎の画像データに基づき輝
度分布を求めて各エリア毎の輝度分布を比較する輝度判
定手段と、この輝度判定手段による比較結果に応じて無
彩色抽出を行なう輝度範囲を初期値又は算出した変更値
に設定する無彩色範囲設定手段と、この無彩色範囲設定
手段により設定された輝度範囲内で前記画像データにつ
いて無彩色判定を行なう無彩色判定手段と、この無彩色
判定手段により無彩色と判定された画素の積算データに
基づきホワイトバランスをとれるように前記画像データ
に対するゲイン制御量を設定するゲイン制御手段と、を
備える。
According to a fifth aspect of the present invention, there is provided a white balance control device, which obtains a luminance distribution based on image data for each predetermined area obtained by dividing an image frame picked up by an image sensor, and compares the luminance distribution for each area. The achromatic color range setting means for setting the luminance range for performing achromatic color extraction to an initial value or a calculated change value in accordance with the comparison result by the luminance determination means, and the achromatic color range setting means Achromatic color determination means for performing achromatic color determination on the image data within the brightness range, and gain control for the image data so that white balance can be obtained based on integrated data of pixels determined to be achromatic by the achromatic color determination means. Gain control means for setting the amount.

【0016】従って、エリア単位の輝度分布なる輝度情
報によって無彩色判定を行なうための輝度範囲を無彩色
範囲設定手段により変更設定して無彩色判定手段で無彩
色判定を行なうようにしたので、撮像フレーム内に違っ
た光源が含まれるような撮影時にあっても、精度よくホ
ワイトバランス処理を行なえる。
Therefore, the luminance range for performing the achromatic color determination based on the luminance information representing the luminance distribution in the unit of area is changed and set by the achromatic color range setting means, and the achromatic color determination is performed by the achromatic color determination means. The white balance processing can be performed with high accuracy even during shooting in which a different light source is included in the frame.

【0017】請求項6記載の発明は、請求項5記載のホ
ワイトバランス制御装置において、前記無彩色範囲設定
手段は、前記輝度判定手段による比較の結果、各エリア
毎の輝度分布が2段階以上に異なる場合に、低輝度側の
輝度分布に基づき無彩色抽出を行なう輝度範囲を算出し
た変更値に設定する。
According to a sixth aspect of the present invention, in the white balance control device according to the fifth aspect, the achromatic color range setting means sets the brightness distribution of each area to two or more levels as a result of the comparison by the brightness determination means. If different, the luminance range in which achromatic color extraction is performed based on the luminance distribution on the low luminance side is set to the calculated change value.

【0018】従って、輝度情報によって高輝度側の無彩
色検出を行なわないので、室内で屋外の風景を撮影した
ような場合でも、輝度値の高い屋外のデータによる影響
を除き、違和感のないホワイトバランス制御が可能とな
る。
Accordingly, since the achromatic color detection on the high luminance side is not performed based on the luminance information, even when an outdoor scene is photographed indoors, the white balance without a sense of incongruity is eliminated except for the influence of the outdoor data having a high luminance value. Control becomes possible.

【0019】請求項7記載の発明は、請求項5又は6記
載のホワイトバランス制御装置において、前記無彩色範
囲設定手段は、前記輝度判定手段による比較の結果、最
大の輝度平均値が一定値以下の範囲で各エリア毎の輝度
分布が2段階以上に異なる場合に、高輝度側の輝度分布
に基づき無彩色抽出を行なう輝度範囲を算出した変更値
に設定する。
According to a seventh aspect of the present invention, in the white balance control device according to the fifth or sixth aspect, the achromatic color range setting means has a maximum luminance average value equal to or less than a predetermined value as a result of the comparison by the luminance determination means. When the luminance distribution of each area is different in two or more steps in the range, the luminance range for performing achromatic color extraction based on the luminance distribution on the high luminance side is set to the calculated change value.

【0020】従って、無彩色範囲設定手段において撮像
フレーム中の輝度情報と一定値、例えば、露出制御値を
用いて無彩色検出のための輝度範囲の設定を行なうこと
で、被写体付近の輝度範囲の無彩色検出が行なわれ、被
写体の色ずれを抑制したホワイトバランス処理が可能と
なる。
Therefore, the achromatic color range setting means sets the luminance range for detecting the achromatic color by using the luminance information in the imaging frame and a constant value, for example, the exposure control value. Achromatic color detection is performed, and white balance processing that suppresses color shift of the subject can be performed.

【0021】請求項8記載の発明は、撮像素子により撮
像された撮像フレームについて分割された所定のエリア
毎の画像データに基づき輝度分布を求めて各エリア毎の
輝度分布を比較する輝度判定手段と、この輝度判定手段
による比較結果に応じて無彩色抽出を行なう輝度範囲を
初期値又は変更値に設定するとともに、比較の結果、各
エリア毎の輝度分布が2段階以上に異なる場合には異な
る各輝度分布毎にその輝度分布に応じて無彩色抽出を行
なう輝度範囲を算出した変更値に設定する無彩色範囲設
定手段と、この無彩色範囲設定手段により設定された輝
度範囲内で前記画像データについて無彩色判定を行なう
無彩色判定手段と、この無彩色判定手段による無彩色判
結果に応じてホワイトバランスをとるためのゲイン制御
量を設定するゲイン制御手段とを備える。
The invention according to claim 8 is a luminance judging means for obtaining a luminance distribution based on image data for each predetermined area divided from an image pickup frame picked up by an image pickup device and comparing the luminance distribution for each area. The brightness range in which achromatic color extraction is performed is set to an initial value or a changed value in accordance with the result of comparison by the brightness determination means. If the brightness distribution of each area differs by two or more levels as a result of the comparison, Achromatic color range setting means for setting, for each luminance distribution, a luminance range in which achromatic color extraction is performed in accordance with the luminance distribution to a calculated change value; and for the image data within the luminance range set by the achromatic color range setting means. Achromatic color determining means for performing achromatic color determination, and a gain control amount for setting a white balance according to an achromatic color determination result by the achromatic color determining means. And a control unit.

【0022】従って、撮像フレーム中の輝度情報と一定
値、例えば、露出制御値を用いて無彩色検出のための輝
度範囲の設定を行なうことで、被写体付近の輝度範囲の
無彩色検出が行なわれ、被写体の色ずれを抑制したホワ
イトバランス処理が可能となる。
Therefore, by setting the luminance range for achromatic color detection using the luminance information and a fixed value, for example, the exposure control value, in the imaging frame, the achromatic color detection in the luminance range near the subject is performed. In addition, white balance processing in which color shift of a subject is suppressed can be performed.

【0023】[0023]

【発明の実施の形態】本発明の第一の実施の形態を図1
ないし図13に基づいて説明する。図1は、本実施の形
態のホワイトバランス制御装置が用いられるカラー撮像
装置の構成例を示すブロック図である。まず、所望の撮
像フレームで被写体を撮像する撮像素子であるRGB単
板式CCD1が設けられている。このCCD1により電
気信号に変換された画像データ(アナログ)に対してノ
イズ除去のために減算法CDS(相関二重サンプリン
グ)法によるサンプリング処理を施すアナログ処理回路
2が設けられている。このアナログ処理回路2の後段に
は画像データをデジタルデータに変換するA/D変換器
3が接続されている。A/D変換器3の後段にはCCD
1から各画素毎のRGB各々のカラーデータを隣接画素
データからの補間によって作成する色補間回路4が接続
されている。
FIG. 1 shows a first embodiment of the present invention.
This will be described with reference to FIG. FIG. 1 is a block diagram illustrating a configuration example of a color imaging device using the white balance control device according to the present embodiment. First, there is provided an RGB single-chip CCD 1 which is an image sensor for imaging a subject in a desired imaging frame. An analog processing circuit 2 is provided for performing sampling processing on the image data (analog) converted into an electric signal by the CCD 1 by a subtraction method CDS (correlated double sampling) method to remove noise. An A / D converter 3 for converting image data into digital data is connected to a stage subsequent to the analog processing circuit 2. A CCD is provided after the A / D converter 3.
1 is connected to a color interpolation circuit 4 for creating RGB color data for each pixel by interpolation from adjacent pixel data.

【0024】さらに、色補間回路4の後段には、本実施
の形態の特徴とするホワイトバランス制御装置5が接続
されている。このホワイトバランス制御装置5は、輝度
判定手段としての輝度判定回路6、バッファメモリ7、
無彩色範囲設定手段としての無彩色範囲設定回路8、無
彩色判定手段としての無彩色判定回路9、及び、ゲイン
制御手段としてのゲイン制御回路10により構成されて
いる。
Further, at the subsequent stage of the color interpolation circuit 4, a white balance control device 5, which is a feature of the present embodiment, is connected. The white balance control device 5 includes a brightness determination circuit 6 as a brightness determination unit, a buffer memory 7,
It comprises an achromatic color range setting circuit 8 as achromatic color range setting means, an achromatic color determination circuit 9 as achromatic color determination means, and a gain control circuit 10 as gain control means.

【0025】輝度判定回路6は、色補間回路4により作
成されたRGBデータを基にマトリックス計算により各
画素毎の輝度値Yを求め、例えば、図2(a)に示すよ
うな撮像フレーム11についてA,B,C,D,Eで示
す5つに分割された各エリア毎に各画素の輝度値を積算
してその平均値を輝度分布として求め、かつ、各エリア
の輝度平均値を比較する。バッファメモリ7は輝度判定
された画像データを一時保存する。無彩色範囲設定回路
8は、輝度判定回路6の比較結果を基に無彩色抽出を行
なう輝度範囲を予め設定されている初期値或いは算出し
た変更値への設定や、予め外部等から設定された色差範
囲の設定を無彩色判定回路9に対して行なう。
The luminance judging circuit 6 obtains a luminance value Y for each pixel by matrix calculation based on the RGB data created by the color interpolation circuit 4, and for example, for an image pickup frame 11 as shown in FIG. The luminance value of each pixel is integrated for each of the five divided areas A, B, C, D, and E, the average value is obtained as a luminance distribution, and the average luminance value of each area is compared. . The buffer memory 7 temporarily stores the image data whose luminance has been determined. The achromatic color range setting circuit 8 sets the luminance range for performing achromatic color extraction based on the comparison result of the luminance determination circuit 6 to a preset initial value or a calculated change value, or is set in advance from outside or the like. The color difference range is set for the achromatic color determination circuit 9.

【0026】この無彩色範囲設定回路8による輝度範囲
の設定例について図2(b)を参照して説明する。図2
(b)に示すように、例えばエリアAに窓を含むような
撮像フレーム11で画像撮影を行なった場合に、このエ
リアAの輝度積算値が他のエリアB,C,D,Eの輝度
積算値に比べて高い値となる。このとき、輝度判定回路
6からはエリアAの輝度平均値が200、他のエリア
B,C,D,Eの輝度平均値が120、といった情報が
得られる。無彩色判定を行なう画素の輝度範囲設定値の
初期値を、輝度値Yに対して 255>Y>32 とした場合、エリア毎の輝度平均値の比較を行ない、エ
リアAの輝度平均値が他のエリアB,C,D,Eの輝度
平均値に対して違う輝度分布を示しているという比較結
果が得られる。このように分割されたエリア間におい
て、輝度分布が異なるという結果が得られると、無彩色
範囲設定回路8は高輝度側を除外するようにして輝度範
囲を初期値から変更設定する。この場合の輝度範囲の変
更設定としては、例えば、上記の初期値に対して、 (200+120)/2>Y>32 即ち、 160>Y>32 の如き、演算により処理される。
An example of setting the luminance range by the achromatic color range setting circuit 8 will be described with reference to FIG. FIG.
As shown in (b), for example, when an image is captured using the imaging frame 11 in which the area A includes a window, the luminance integrated value of this area A becomes the luminance integrated value of the other areas B, C, D, and E. The value is higher than the value. At this time, information that the average luminance value of the area A is 200 and the average luminance value of the other areas B, C, D, and E is 120 is obtained from the luminance determination circuit 6. When the initial value of the luminance range setting value of the pixel for which the achromatic color determination is performed is set to 255>Y> 32 with respect to the luminance value Y, the luminance average value of each area is compared, and the luminance average value of the area A becomes A comparison result is obtained that shows different luminance distributions with respect to the average luminance values of the areas B, C, D, and E. When a result that the luminance distribution is different between the divided areas is obtained, the achromatic color range setting circuit 8 changes and sets the luminance range from the initial value so as to exclude the high luminance side. In this case, as a change setting of the luminance range, for example, (200 + 120) / 2>Y> 32, that is, 160>Y> 32 with respect to the above initial value is processed by calculation.

【0027】ここに、元々のエリア毎の輝度平均値の分
布の差の判定(輝度分布が2段階以上であるか否かの判
定)については、通常一般、被写体が含まれる中心部の
エリアCの輝度平均値が基準とされる。即ち、このエリ
アCの輝度平均値に対して各エリアA,B,D,Eの輝
度平均値が一定範囲内であれば、輝度範囲の変更設定を
行なわず初期値のままとし、一定範囲外のエリアが存在
すれば上記のような輝度範囲の変更設定を行なわせる。
即ち、許容される一定範囲をΔC、各エリアA,B,
C,D,Eの輝度平均値を各々EVA ,EVB ,EV
C ,EVD ,EVEとしたとき、 EVA >EVC +ΔC EVB >EVC +ΔC EVD >EVC +ΔC EVE >EVC +ΔC の何れかを満たす条件下で、上記のような輝度範囲の変
更設定が行われる。
Here, the determination of the difference in the distribution of the average luminance values for each of the original areas (determination of whether or not the luminance distribution has two or more levels) is generally performed in the central area C including the subject. Is used as a reference. That is, if the average luminance value of each of the areas A, B, D, and E is within a predetermined range with respect to the average luminance value of the area C, the luminance range is not changed and set to the initial value, and the luminance value is outside the predetermined range If such an area exists, the change setting of the luminance range as described above is performed.
That is, the allowable fixed range is ΔC, and each area A, B,
The average luminance values of C, D, and E are calculated as EV A , EV B , and EV, respectively.
C, EV D, when the EV E, EV A> EV C + ΔC EV B> EV C + ΔC EV D> under conditions satisfying one of the EV C + ΔC EV E> EV C + ΔC, luminance range as described above Is set.

【0028】無彩色判定回路9では無彩色範囲設定回路
8により設定された無彩色抽出を行なう輝度範囲に従
い、バッファメモリ7から読み出した画像データに対し
て無彩色判定を行ない、無彩色と判定した画素のRGB
値を積算する。ゲイン制御回路10では無彩色判定回路
9から得られるRGB各々の積算データに基づきゲイン
制御量を求め、画像データ中のR,Bデータに対してゲ
イン制御をかけることでホワイトバランス処理を行な
う。例えば、無彩色判定回路9から得られるRGB各々
の積算データをRsum,Gsum,Bsumとしたとき、R,
Bの各々のゲイン制御量Rgain,Bgainは、 Rgain=Gsum/Rsum, Bgain=Gsum/Bsum なる演算処理により求められる。
The achromatic color determination circuit 9 performs an achromatic color determination on the image data read from the buffer memory 7 in accordance with the luminance range in which the achromatic color extraction is set by the achromatic color range setting circuit 8 and determines that the image data is achromatic. RGB of pixel
Multiply the values. The gain control circuit 10 obtains a gain control amount based on the integrated data of each of the RGB obtained from the achromatic color determination circuit 9 and performs white balance processing by applying gain control to R and B data in the image data. For example, when the integrated data of each of the RGB obtained from the achromatic determination circuit 9 is Rsum, Gsum, Bsum, R,
The respective gain control amounts Rgain and Bgain of B are obtained by the arithmetic processing of Rgain = Gsum / Rsum and Bgain = Gsum / Bsum.

【0029】図3はこのような概略処理を順に示すフロ
ーチャートである。即ち、CCD1により画像データが
取込まれると(ステップS1)、アナログ処理回路2で
CDS法によりノイズを除去した後(S2)、A/D変
換器3によりA/D変換され(S3)、さらに、色補間
回路4で色補間処理が行なわれる(S4)。この後、輝
度判定回路6において撮像フレーム11を画面分割し
(S5)、各分割エリア毎に輝度平均値を求めた上で
(S6)、各エリア毎の輝度平均値を中心エリアの輝度
平均値と比較し(S7)、中心エリアの輝度平均値に対
して一定範囲以上の高輝度エリアが存在するか否かを判
定する(S8)。存在しなければ、無彩色検出を行なう
輝度範囲に変更を要せず初期値のままとするが、高輝度
エリアが存在する場合には、無彩色検出を行なう輝度範
囲を無彩色範囲設定回路8により変更設定する(S
9)。このように輝度範囲が初期値のまま、或いは、変
更値に変更設定された状態で、無彩色判定回路9により
無彩色の検出処理を行ない(S10)、その結果に基づ
きゲイン制御回路10でゲイン制御量を演算し(S1
1)、その演算結果に基づいてR,Bデータに対するゲ
イン制御を行なう(S12)ことで、ホワイトバランス
をとる。
FIG. 3 is a flowchart showing such a schematic process in order. That is, when image data is captured by the CCD 1 (step S1), noise is removed by the analog processing circuit 2 by the CDS method (S2), and then A / D converted by the A / D converter 3 (S3). The color interpolation circuit 4 performs color interpolation processing (S4). Thereafter, the luminance determination circuit 6 divides the image frame 11 into screens (S5), calculates an average luminance value for each divided area (S6), and calculates the average luminance value for each area as the average luminance value for the central area. Is determined (S7), and it is determined whether or not there is a high-luminance area exceeding a certain range with respect to the luminance average value of the central area (S8). If it does not exist, the luminance range in which achromatic color detection is performed is not changed and the initial value is maintained, but if a high luminance area exists, the luminance range in which achromatic color detection is performed is changed to the achromatic color range setting circuit 8. Change setting by (S
9). In this manner, the achromatic color detection circuit 9 performs an achromatic color detection process while the luminance range remains at the initial value or is set to the changed value (S10), and based on the result, the gain control circuit 10 sets the gain. The control amount is calculated (S1
1) A white balance is obtained by performing gain control on the R and B data based on the calculation result (S12).

【0030】よって、このような概略構成及び概略動作
によれば、撮像フレーム11中に他の光源等による高輝
度部分が含まれていても、その画像データが無彩色判定
の対象外となるので、高輝度部分の画像データによる色
ずれのない良好なるホワイトバランス処理を行ない得る
ことが判る。
Therefore, according to such a schematic configuration and operation, even if the imaging frame 11 includes a high-luminance portion due to another light source or the like, the image data is excluded from the achromatic judgment. It can be seen that good white balance processing without color shift due to image data of a high luminance portion can be performed.

【0031】ここで、本実施の形態のより具体的な構成
例及び動作について以下に説明する。まず、RGB単板
式CCD1には図4に示すような配列のフィルタ12が
付設されている。即ち、ブルー用フィルタBの列におい
てはグリーン用フィルタ(ブルー)Gbが配設され、レ
ッド用フィルタRの列においてはグリーン用フィルタ
(レッド)Grが配設されることで、RGBが注目画素
に対して相互に隣接する3×3マトリックスを基本とす
るフィルタが構成されている。
Here, a more specific configuration example and operation of the present embodiment will be described below. First, a filter 12 having an arrangement as shown in FIG. That is, a green filter (blue) Gb is provided in the column of the blue filter B, and a green filter (red) Gr is provided in the column of the red filter R, so that RGB becomes the target pixel. On the other hand, a filter based on a 3 × 3 matrix adjacent to each other is configured.

【0032】このようなフィルタ12の構成に対応させ
て、色補間回路4は例えば図5に示すように構成されて
いる。即ち、A/D変換器3によりA/D変換されたA
/D出力を画素クロックCLKを基準として3ライン・
9画素分を格納するための2つのラインバッファ13
a,13bと、9個のレジスタ14a〜14iと、これ
らのレジスタ14a〜14iに格納された各画素データ
を適宜補間処理してR,G,Bデータとして出力するセ
レクタ&加算器15とにより構成されている。即ち、注
目画素を含む周辺3×3画素の画像データに基づき各色
の補間を行なうことによりR,G,Bデータが得られ
る。
The color interpolation circuit 4 is configured, for example, as shown in FIG. That is, A / D converted by the A / D converter 3
/ D output for three lines with reference to the pixel clock CLK.
Two line buffers 13 for storing 9 pixels
a, 13b, nine registers 14a to 14i, and a selector & adder 15 for appropriately interpolating each pixel data stored in these registers 14a to 14i and outputting as R, G, B data. Have been. That is, R, G, and B data are obtained by performing interpolation for each color based on image data of 3 × 3 pixels around the pixel including the target pixel.

【0033】図6にセレクタ&加算器15における色補
間処理例のフローチャートを示す。R,G(Gr,Gb
の2種類),Bは各々フィルタ12配列対応の画素の画
像データ、COL NUMはCCD画素サイズの横方向の画素
数、RAW NUMはCCD画素サイズの縦方向の画素数、配
列[i,j]はその画素データが記憶されている画素位置
を示す。まず、注目画素の画像データがGrであれば
(S21のY)、R,G,Bに関して各々、R=([i
-1,j]+[i+1,j])/2、G=[i,j]、B=
([i,j-1]+[i,j+1])/2なる色補間処理を行
なう(S22,S23,S24)。注目画素の画像デー
タがRであれば(S25のY)、R,G,Bに関して各
々、R=[i,j]、G=([i-1,j]+[i+1,j]+
[i,j-1]+[i,j+1])/4、B=([i-1,j-
1]+[i+1,j-1]+[i-1,j+1]+[i+1,j+1])
/4なる色補間処理を行なう(S26,S27,S2
8)。注目画素の画像データがGbであれば(S29の
Y)、R,G,Bに関して各々、R=([i,j-1]+
[i,j+1])/2、G=[i,j]、B=([i-1,j]
+[i+1,j])/2なる色補間処理を行なう(S3
0,S31,S32)。注目画素の画像データがBであ
れば(S33のY)、R,G,Bに関して各々、R=
([i-1,j-1]+[i+1,j-1]+[i-1,j+1]+
[i+1,j+1])/4、G=([i-1,j]+[i+1,
j]+[i,j-1]+[i,j+1])/4、B=[i,j]
なる色補間処理を行なう(S34,S35,S36)。
この後、横方向に1画素進め(S37)、横方向の画素
数に達するまで同様の処理を繰返す(S38)。i行目
の処理が終了したら(S38のY)、縦方向に1画素進
め(S39)、かつ、横方向の画素を初期値i=0にし
て(S41)、縦方向の画素数に達するまで同様の処理
を繰返す(S40)。
FIG. 6 shows a flowchart of an example of color interpolation processing in the selector & adder 15. R, G (Gr, Gb
, B is the image data of the pixel corresponding to the filter 12 array, COL NUM is the number of pixels in the horizontal direction of the CCD pixel size, RAW NUM is the number of pixels in the vertical direction of the CCD pixel size, and the array [i, j] Indicates a pixel position where the pixel data is stored. First, if the image data of the pixel of interest is Gr (Y of S21), R = ([i
−1, j] + [i + 1, j]) / 2, G = [i, j], B =
A color interpolation process of ([i, j-1] + [i, j + 1]) / 2 is performed (S22, S23, S24). If the image data of the target pixel is R (Y in S25), R = [i, j] and G = ([i−1, j] + [i + 1, j]) for R, G, and B, respectively. +
[I, j-1] + [i, j + 1]) / 4, B = ([i-1, j-
1] + [i + 1, j-1] + [i-1, j + 1] + [i + 1, j + 1])
/ 4 is performed (S26, S27, S2
8). If the image data of the target pixel is Gb (Y in S29), R = ([i, j-1] +
[I, j + 1]) / 2, G = [i, j], B = ([i−1, j]
+ [I + 1, j]) / 2 is performed (S3
0, S31, S32). If the image data of the pixel of interest is B (Y in S33), R = R
([I-1, j-1] + [i + 1, j-1] + [i-1, j + 1] +
[I + 1, j + 1]) / 4, G = ([i-1, j] + [i + 1,
j] + [i, j-1] + [i, j + 1]) / 4, B = [i, j]
Is performed (S34, S35, S36).
Thereafter, the process is advanced by one pixel in the horizontal direction (S37), and the same processing is repeated until the number of pixels in the horizontal direction is reached (S38). When the processing of the i-th row is completed (Y in S38), the pixel in the vertical direction is advanced by one pixel (S39), and the horizontal pixel is set to an initial value i = 0 (S41) until the number of pixels in the vertical direction is reached. The same processing is repeated (S40).

【0034】次に、輝度判定回路6及び無彩色範囲設定
回路8の構成例及びその動作について説明する。図7は
輝度判定回路6及び無彩色範囲設定回路8の構成例を示
すブロック図である。輝度判定回路6はマトリックス回
路16と分割エリアの数分の加算器・レジスタ対17a
〜17eと画素クロックCLKを計数するカウンタ18
とこのカウンタ18の計数値により加算器を選択するセ
レクタ19と加算器・レジスタ対17a〜17eの出力
に対する比較器&セレクタ20とにより構成されてい
る。マトリックス回路16では色補間回路4からのRG
Bデータに対してマトリックス変換を施して画素毎に輝
度信号Yを得る。この輝度信号Yを、画素クロックCL
Kをカウンタ18で計数してセレクタ19により選択さ
れた加算器・レジスタ対17a〜17eで積算すること
により、エリアA〜E毎に輝度信号Yを積算する。これ
らの積算結果を基に比較器&セレクタ20でエリア毎の
輝度の比較を行ない、無彩色範囲設定回路8を構成する
輝度範囲設定回路21で輝度範囲(Yレンジ)の設定を
無彩色検出回路9に対して行なう。
Next, an example of the configuration of the luminance judgment circuit 6 and the achromatic color range setting circuit 8 and their operations will be described. FIG. 7 is a block diagram showing a configuration example of the luminance determination circuit 6 and the achromatic color range setting circuit 8. The luminance determination circuit 6 includes a matrix circuit 16 and adders / register pairs 17a for the number of divided areas.
To 17e and a counter 18 for counting the pixel clock CLK
And a selector 19 for selecting an adder based on the count value of the counter 18, and a comparator & selector 20 for the outputs of the adder / register pairs 17a to 17e. In the matrix circuit 16, the RG from the color interpolation circuit 4
A matrix conversion is performed on the B data to obtain a luminance signal Y for each pixel. This luminance signal Y is supplied to the pixel clock CL
The luminance signal Y is integrated for each of the areas A to E by counting K by the counter 18 and integrating it by the adder / register pair 17a to 17e selected by the selector 19. Based on these integration results, the comparator & selector 20 compares the luminance for each area, and the luminance range setting circuit 21 constituting the achromatic color range setting circuit 8 sets the luminance range (Y range) to the achromatic color detection circuit. 9

【0035】図8に輝度範囲設定回路21による輝度範
囲の設定例のフローチャートを示す。フローチャート
中、max は輝度平均の最大値、min は輝度平均の最小
値、Nはエリアの分割数、Ev0 〜Evn はエリア毎の
輝度平均値、YHは無彩色検出時の輝度上限値、YLは
無彩色検出時の輝度下限値、YHCはデフォルトの輝度
上限値、YLCはデフォルトの輝度下限値を各々示す。
FIG. 8 shows a flowchart of an example of setting the luminance range by the luminance range setting circuit 21. In the flowchart, max is the maximum value of the average luminance, the minimum value of min is the luminance average, N is the number of divided areas, Ev 0 ~Ev n is the average luminance value for each area, YH brightness upper limit value for the achromatic detection, YL indicates the lower limit of luminance when achromatic color is detected, YHC indicates the upper limit of the default luminance, and YLC indicates the lower limit of the default luminance.

【0036】まず、輝度平均の最大値max を0、輝度平
均の最小値min を255に設定し(S51,S52)、
対象エリアを示すnをN−1にセットした後(S5
3)、そのエリアの輝度平均値Evn が輝度平均の最大
値max よりも大きいかを比較し(S54)、大きければ
そのエリアの輝度平均値Evn を輝度平均の最大値max
として更新設定する(S55)。同様に、そのエリアの
輝度平均値Evn が輝度平均の最小値min よりも小さい
かを比較し(S56)、小さければそのエリアの輝度平
均値Evn を輝度平均の最小値min として更新設定する
(S57)。このような最大値、最小値設定処理をnが
0になるまで各エリアについて同様に繰り返す(S5
8,S59)。
First, the maximum value of the average luminance is set to 0, and the minimum value of the average luminance is set to 255 (S51, S52).
After n indicating the target area is set to N−1 (S5
3) Compares the luminance average value Ev n in the area is larger than the maximum value max of the average luminance (S54), greater if the maximum value max of the luminance average luminance average value Ev n in the area
Is updated (S55). Similarly, update set Compares the luminance average value Ev n in the area is smaller than the minimum value min of the luminance average (S56), the luminance average value Ev n of the area smaller as the minimum value min of the luminance average (S57). Such maximum value / minimum value setting processing is similarly repeated for each area until n becomes 0 (S5).
8, S59).

【0037】今回の撮像フレーム内の各エリアの輝度情
報に基づき最大値、最小値が設定された後、再び、対象
エリアを示すnをN−1にセットし(S60)、そのエ
リアの輝度平均値Evn が変動範囲として許容される一
定範囲ΔC内であるか否かの比較を各エリアについて行
なう(S61,S62,S63)。一定範囲ΔCを超え
るエリアがない場合には(S61のN,S62のY)、
無彩色検出時の輝度上限値YHを初期値YHCに設定す
る(S64)。一方、一定範囲ΔCを超えるエリアが存
在した場合には(S61のY)、無彩色検出時の輝度上
限値YHを(max+min)/2なる演算により算出される
変更値に設定する(S65)。
After the maximum value and the minimum value are set based on the luminance information of each area in the current imaging frame, n indicating the target area is set to N-1 again (S60), and the luminance average of the area is set. the comparison of whether or not the value Ev n is within a range ΔC allowed for the variation range is performed for each area (S61, S62, S63). If there is no area exceeding the fixed range ΔC (N in S61, Y in S62),
The luminance upper limit value YH at the time of achromatic color detection is set to the initial value YHC (S64). On the other hand, if there is an area exceeding the fixed range ΔC (Y in S61), the luminance upper limit value YH at the time of achromatic color detection is set to a changed value calculated by the calculation of (max + min) / 2 (S65).

【0038】さらに、無彩色判定回路9の構成例及びそ
の動作について説明する。図9は無彩色判定回路9の構
成例を示すブロック図である。まず、バッファメモリ7
から得られるR,G,Bデータから色差データR−G,
B−Gを各々算出する色差データ生成回路22a,22
bが設けられている。また、これらの色差データ生成回
路22a,22bから得られる色差データR−G,B−
Gを予め外部から設定された無彩色抽出色差範囲データ
や無彩色範囲設定回路8により設定された輝度範囲(Y
レンジ)に基づき無彩色であるか否かを比較判定する比
較器23が設けられている。また、バッファメモリ7か
ら得られるR,G,Bデータについてこの比較器23の
判定結果に基づき加算処理する加算器・レジスタ対24
r,24g,24bが各色データ毎に設けられている。
さらに、比較器23により判定処理した画素数を計数す
るためのカウンタ25も設けられている。これにより、
基本的には、R,G,Bデータから色差データR−G,
B−Gを作成し、予め設定されている無彩色抽出色差範
囲データ及び輝度範囲データから無彩色と判定したR,
G,Bデータ値のみを積算する。
Further, an example of the configuration of the achromatic color determination circuit 9 and its operation will be described. FIG. 9 is a block diagram illustrating a configuration example of the achromatic color determination circuit 9. First, the buffer memory 7
From the R, G, B data obtained from
Color difference data generating circuits 22a and 22 for calculating BG
b is provided. Further, the color difference data RG, B-B obtained from these color difference data generation circuits 22a, 22b.
G is an achromatic color extraction color difference range data set in advance from outside or a luminance range (Y
A comparator 23 is provided for comparing and determining whether the image is an achromatic color based on the range. An adder / register pair 24 that performs an addition process on the R, G, B data obtained from the buffer memory 7 based on the determination result of the comparator 23.
r, 24g, and 24b are provided for each color data.
Further, a counter 25 for counting the number of pixels determined by the comparator 23 is also provided. This allows
Basically, color difference data RG,
B-G is created, and R, which is determined to be an achromatic color from the preset achromatic color extraction color difference range data and the luminance range data,
Only the G and B data values are integrated.

【0039】図10に無彩色判定処理例のフローチャー
トを示す。まず、対象画素データの輝度Yを計算し(S
71)、その輝度Yが無彩色検出時用の輝度上限値YH
より大きいか、輝度下限値YLより小さいかを判定する
(S72,S73)。輝度上限値YHより大きかった
り、輝度下限値YLより小さかった場合には無彩色判定
の対象から除外される。輝度上限値YH以下で、輝度下
限値YL以上であれば、色差データR−G,B−Gを算
出する(S74)。次に、算出された色差データR−G
について予め設定された無彩色抽出色差範囲RGL〜R
GHの範囲内にあるか否かを判定する(S75,S7
6)。無彩色抽出色差範囲RGL〜RGH内にない場合
には無彩色判定の対象から除外される。同様に、算出さ
れた色差データB−Gについて予め設定された無彩色抽
出色差範囲BGL〜BGHの範囲内にあるか否かを判定
する(S77,S78)。無彩色抽出色差範囲BGL〜
BGH内にない場合には無彩色判定の対象から除外され
る。このような判定を経て、無彩色抽出色差範囲RGL
〜RGH、BGL〜BGH内にある画素データについて
順次計数し(S79)、各々の積算値Rsum ,Gsum ,
Bsum の値を1ずつ加算する(S80)。同時に、カウ
ンタ25の計数値も1だけ加算する(S81)。このよ
うな処理をカウンタ25の計数値が全画素数に達するま
で、同様に繰返す(S82)。
FIG. 10 shows a flowchart of an example of the achromatic color determination process. First, the luminance Y of the target pixel data is calculated (S
71) The luminance Y is the luminance upper limit value YH for achromatic color detection
It is determined whether the value is larger than the lower limit value YL (S72, S73). If it is larger than the luminance upper limit YH or smaller than the luminance lower limit YL, it is excluded from the target of the achromatic color determination. If the luminance is equal to or less than the luminance upper limit YH and is equal to or greater than the luminance lower limit YL, color difference data RG and BG are calculated (S74). Next, the calculated color difference data RG
Achromatic color extraction color difference ranges RGL to R
It is determined whether it is within the range of GH (S75, S7)
6). If it is not within the achromatic color extraction color difference range RGL to RGH, it is excluded from the target of the achromatic color determination. Similarly, it is determined whether or not the calculated color difference data BG is within a preset achromatic color extraction color difference range BGL to BGH (S77, S78). Achromatic color extraction color difference range BGL ~
If it is not within the BGH, it is excluded from the target of the achromatic color determination. After such determination, the achromatic color extraction color difference range RGL
To RGH, BGL to BGL are sequentially counted (S79), and the respective integrated values Rsum, Gsum,
The value of Bsum is added one by one (S80). At the same time, the count value of the counter 25 is also incremented by one (S81). Such processing is repeated similarly until the count value of the counter 25 reaches the total number of pixels (S82).

【0040】さらに、ゲイン制御回路10の構成例及び
その動作について説明する。図11はゲイン制御回路1
0の構成例を示すブロック図である。このゲイン制御回
路10は無彩色判定回路9から得られる各々の積算値R
sum ,Gsum ,Bsumに基づきR,B用のゲイン制御量
Rgain,Bgainを算出するゲイン演算回路26と、この
ゲイン演算回路26により算出されたゲイン制御量Rga
in,BgainをR,Bデータに対して乗算処理する乗算器
27a,27bとにより構成されている。
Further, an example of the configuration of the gain control circuit 10 and its operation will be described. FIG. 11 shows a gain control circuit 1.
FIG. 4 is a block diagram showing an example of the configuration of 0. This gain control circuit 10 calculates each integrated value R obtained from the achromatic color judgment circuit 9.
A gain calculation circuit 26 for calculating gain control amounts Rgain and Bgain for R and B based on sum, Gsum and Bsum, and a gain control amount Rga calculated by the gain calculation circuit 26
It comprises multipliers 27a and 27b for multiplying R data and B data by in and Bgain.

【0041】図12にゲイン演算回路26によるゲイン
計算例のフローチャートを示す。即ち、積算値Rsum ,
Gsumに基づきゲイン制御量Rgainを算出し(S9
1)、積算値Gsum ,Bsumに基づきゲイン制御量Bgai
nを算出する(S92)。
FIG. 12 shows a flowchart of an example of gain calculation by the gain calculation circuit 26. That is, the integrated value Rsum,
The gain control amount Rgain is calculated based on Gsum (S9).
1), gain control amount Bgai based on integrated values Gsum and Bsum
n is calculated (S92).

【0042】つづいて、本発明の第二の実施の形態を図
13に基づいて説明する。図1ないし図12で示した部
分と同一部分は同一符号を用いて示し、説明も省略す
る。本実施の形態は、無彩色範囲設定回路8における無
彩色抽出を行なう輝度範囲の設定処理が異なるだけで、
この他は、基本的に第一の実施の形態と同様である。
Next, a second embodiment of the present invention will be described with reference to FIG. 1 to FIG. 12 are denoted by the same reference numerals, and description thereof will be omitted. This embodiment differs from the first embodiment only in the setting process of the luminance range for performing achromatic color extraction in the achromatic color range setting circuit 8.
The rest is basically the same as the first embodiment.

【0043】そこで、本実施の形態における無彩色範囲
設定回路8の処理例について説明する。ここでは、輝度
判定回路6からの各エリア毎の輝度平均値と一定値、例
えば、露出制御に用いられる設定値AEVAL を使用する
ことで輝度範囲の設定を行なう。例えば、図2(a)に
示す各エリアA〜Eに関して輝度平均値EVA ,EV
B ,EVC ,EVD ,EVE が EVA =120 EVB =120 EVC =80 EVD =80 EVE =120 であり、設定値AEVAL からの変動許容範囲をRANGE=
20とした場合、エリアA,B,Eの輝度平均値はAE
VAL±RANGEの範囲内に入り、エリアC,Dの輝度平均値
はAEVAL±RANGEの範囲外となる。このとき、エリア
C,Dが示す平均輝度付近は違う光源の可能性が高いと
いう判断をし、輝度範囲を初期値の 255>Y>32 から、 255>Y>(120+80)/2 つまり、 255>Y>100 なる変更値に変更設定する。
Therefore, the achromatic color range in the present embodiment
A processing example of the setting circuit 8 will be described. Here, the brightness
Example of average brightness value and constant value for each area from determination circuit 6
For example, the set value AE used for exposure controlVAL Use
This sets the luminance range. For example, in FIG.
Average brightness value EV for each of areas A to E shownA , EV
B , EVC , EVD , EVE Is EVA = 120 EVB = 120 EVC = 80 EVD = 80 EVE = 120 and the set value AEVAL RANGE =
In the case of 20, the average brightness of the areas A, B and E is AE
VALWithin the range of ± RANGE, average luminance value of areas C and D
Is AEVALOut of range of ± RANGE. At this time, the area
If there is a high possibility of a different light source near the average luminance indicated by C and D
Then, the luminance range is changed and set from the initial value of 255> Y> 32 to 255> Y> (120 + 80) / 2, that is, 255> Y> 100.

【0044】また、他のエリアに関して、仮にAEVAL
+RANGEを超えるような高輝度平均値を示すような場合
には、第一の実施の形態の場合と同様な処理(輝度範囲
の設定対象から除外する)が行われる。
For other areas, suppose that AE VAL
When a high luminance average value exceeding + RANGE is indicated, the same processing as in the first embodiment (excluding the luminance range from being set) is performed.

【0045】図13は、図8に示したフローチャートに
本実施の形態を加味して示すフローチャートである。ス
テップS64までの処理は図8の場合と同様に行なわれ
る。ステップS61の判定結果において、一定範囲ΔC
を超えるエリアが存在した場合には(S61のY)、予
め設定された一定値Hlim(=AEVAL±RANGE)の範囲
外であって低い方か否かを判定する(S66)。一定値
Hlimよりも小さければ(S66のY)、無彩色検出時
の輝度下限値YLを(max+min)/2なる演算により算
出される変更値に設定する(S67)とともに、輝度上
限値YHは初期値YHCを設定する(S64)。一方、
一定値Hlimよりも大きければ(S66のN)、第一の
実施の形態に準じて無彩色検出時の輝度上限値YHを
(max+min)/2なる演算により算出される変更値に設
定する(S65)とともに、輝度下限値YLは初期値Y
LCを設定する(S68)。
FIG. 13 is a flowchart showing this embodiment in addition to the flowchart shown in FIG. The processing up to step S64 is performed in the same manner as in FIG. In the determination result of step S61, the fixed range ΔC
If the area exceeds the present judges whether lower be outside the range of (S61 of Y), a preset constant value Hlim (= AE VAL ± RANGE) (S66). If it is smaller than the fixed value Hlim (Y in S66), the lower luminance limit YL at the time of achromatic color detection is set to a changed value calculated by the calculation of (max + min) / 2 (S67), and the upper luminance limit YH is initialized. The value YHC is set (S64). on the other hand,
If it is larger than the fixed value Hlim (N in S66), the luminance upper limit YH at the time of achromatic color detection is set to a changed value calculated by the calculation of (max + min) / 2 according to the first embodiment (S65). ), The lower luminance limit YL is the initial value Y
The LC is set (S68).

【0046】本実施の形態のように、露出制御設定値を
用いて輝度範囲の設定を行なうことで、被写体の輝度か
ら大きく外れた輝度の無彩色判定を行なうことがなく、
被写体の色ずれのない精度の高いホワイトバランス処理
が可能となる。
By setting the luminance range using the exposure control set value as in the present embodiment, the achromatic judgment of the luminance greatly deviating from the luminance of the subject can be prevented.
High-accuracy white balance processing without color shift of the subject can be performed.

【0047】本発明の第三の実施の形態を図14及び図
15に基づいて説明する。図1ないし図12で示した部
分と同一部分は同一符号を用いて示し、説明も省略す
る。本実施の形態は、無彩色範囲設定回路8における無
彩色抽出を行なう輝度範囲の設定処理及びゲイン制御回
路10の構成及び処理が異なり、この他は、基本的に第
一の実施の形態と同様である。
A third embodiment of the present invention will be described with reference to FIGS. 1 to FIG. 12 are denoted by the same reference numerals, and description thereof will be omitted. This embodiment is different from the first embodiment in the configuration of the luminance range setting processing for performing achromatic color extraction in the achromatic color range setting circuit 8 and the configuration and processing of the gain control circuit 10. It is.

【0048】そこで、本実施の形態における無彩色範囲
設定回路8の処理例について説明する。ここでは、輝度
判定回路6からの各エリア毎の輝度平均値に基づき、無
彩色判定を行なうための輝度範囲の範囲設定を複数、こ
こでは2段階に設定する。例えば、図2(a)に示す各
エリアA〜Eに関して輝度平均値EVA ,EVB ,EV
C ,EVD ,EVE が EVA =120 EVB =120 EVC =80 EVD =80 EVE =120 であった場合、輝度分布を120を中心としたものと8
0を中心としたものとに2段階に分け、輝度範囲の設定
として、初期値 255>Y>32 に対して、 255>Y>(120+80)/2,(120+80)
/2>Y>32 即ち、 255>Y>100,100>Y>32 の如く、2つの輝度範囲を設定する。
Thus, an example of processing of the achromatic color range setting circuit 8 in the present embodiment will be described. Here, based on the average luminance value of each area from the luminance determination circuit 6, a plurality of luminance ranges for performing achromatic color determination are set, here, two levels. For example, the average brightness values EV A , EV B , EV for each of the areas A to E shown in FIG.
C, EV D, when EV E were EV A = 120 EV B = 120 EV C = 80 EV D = 80 EV E = 120, that the luminance distribution around the 120 and 8
It is divided into two stages, one centered on 0, and the brightness range is set as follows: 255>Y> (120 + 80) / 2, (120 + 80) for the initial value 255>Y> 32.
/ 2>Y> 32 That is, two luminance ranges are set as follows: 255>Y> 100, 100>Y> 32.

【0049】図14は、図8に示したフローチャートに
本実施の形態を加味して示すフローチャートである。図
中、YH1,YH2は輝度範囲を2つに分けて無彩色抽
出を行なう場合の各々の輝度上限値、YL1,YL2は
輝度範囲を2つに分けて無彩色抽出を行なう場合の各々
の輝度下限値を示す。ステップS63までの処理は図8
の場合と同様に行なわれる。ステップS61の判定結果
において、一定範囲ΔCを超えるエリアが存在した場合
には(S61のY)、一方の輝度上限値YH1を初期値
YHCに設定する(S101)とともに輝度下限値YL
1を(max+min)/2なる演算により算出される変更値
に設定する(S102)。さらに、他方の輝度上限値Y
H2を(max+min)/2なる演算により算出される変更
値に設定する(S103)とともに輝度下限値YL2を
初期値YLCに設定する(S104)。これにより、2
段階の輝度範囲が設定される。一方、一定範囲ΔCを超
えるエリアが存在しない場合には(S61のN,S62
のY)、輝度上限値YH1を初期値YHCに設定する
(S105)とともに輝度下限値YL1も初期値YLC
に設定し(S106)、輝度上限値YH2,輝度下限値
YL2についてはともに0を設定する(S107,S1
08)。即ち、前述した実施の形態の場合と同様に1つ
の輝度範囲のみが初期値により設定される。
FIG. 14 is a flowchart showing this embodiment in addition to the flowchart shown in FIG. In the drawing, YH1 and YH2 are upper limit values of luminance when the achromatic color is extracted by dividing the luminance range into two, and YL1 and YL2 are respective luminance values when the achromatic color is extracted by dividing the luminance range into two. Indicates the lower limit. The processing up to step S63 is shown in FIG.
Is performed in the same manner as As a result of the determination in step S61, when there is an area exceeding the fixed range ΔC (Y in S61), one of the luminance upper limit values YH1 is set to the initial value YHC (S101) and the luminance lower limit value YL is set.
1 is set to the changed value calculated by the calculation of (max + min) / 2 (S102). Further, the other luminance upper limit value Y
H2 is set to a changed value calculated by the calculation of (max + min) / 2 (S103), and the lower luminance limit YL2 is set to an initial value YLC (S104). This gives 2
A step luminance range is set. On the other hand, when there is no area exceeding the fixed range ΔC (N in S61, S62
Y), the luminance upper limit YH1 is set to the initial value YHC (S105), and the luminance lower limit YL1 is also set to the initial value YLC.
(S106), and 0 is set for both the luminance upper limit YH2 and the luminance lower limit YL2 (S107, S1).
08). That is, as in the case of the above-described embodiment, only one luminance range is set by the initial value.

【0050】無彩色判定回路9においては、各々の輝度
範囲について各々各画素毎の無彩色判定を行なう。
The achromatic determination circuit 9 performs achromatic determination for each pixel for each luminance range.

【0051】ゲイン制御回路10では、各々の輝度範囲
におけるゲイン制御量の算出を行ない、それらのゲイン
制御量の比較を行なう。そして、その比較結果によっ
て、2つのゲイン制御量が異なる場合には、例えば、被
写体が含まれている確率の高いエリアCの平均輝度値を
含む輝度範囲の無彩色判定結果によるゲイン制御量を使
用するように動作する。
The gain control circuit 10 calculates the amount of gain control in each luminance range and compares the amounts of gain control. If the two gain control amounts differ according to the comparison result, for example, the gain control amount based on the achromatic color determination result of the luminance range including the average luminance value of the area C having a high probability of containing the subject is used. To work.

【0052】図15はこのためのゲイン制御回路10の
構成例を示すブロック図である。本実施の形態では、無
彩色判定回路9から得られる各々の積算値Rsum,Gsu
m,Bsumに基づき輝度範囲毎のR,B用のゲイン制御量
Rgain1,Rgain2,Bgain1,Bgain2を算出するゲイン
演算回路28と、これらのゲイン制御量Rgain1,Rgai
n2,Bgain1,Bgain2の何れかを輝度信号Y及びカウン
タ29により計数されたクロック数に応じた画素位置で
選択するセレクタ30a,30bと、セレクタ30aに
より選択されたゲイン制御量Rgain1又はRgain2により
Rデータに対するゲイン制御を行なう乗算器27aと、
セレクタ30bにより選択されたゲイン制御量Bgain1
又はBgain2によりBデータに対するホワイトバランス
のためのゲイン制御を行なう乗算器27bとにより構成
されている。
FIG. 15 is a block diagram showing a configuration example of the gain control circuit 10 for this purpose. In the present embodiment, each integrated value Rsum, Gsu obtained from the achromatic color determination circuit 9 is used.
a gain calculation circuit 28 for calculating gain control amounts Rgain1, Rgain2, Bgain1, Bgain2 for R and B for each luminance range based on m and Bsum, and gain control amounts Rgain1, Rgai
selectors 30a and 30b for selecting any one of n2, Bgain1, and Bgain2 at a pixel position corresponding to the luminance signal Y and the number of clocks counted by the counter 29, and R data by a gain control amount Rgain1 or Rgain2 selected by the selector 30a. A multiplier 27a that performs gain control on
Gain control amount Bgain1 selected by selector 30b
Or, a multiplier 27b for performing gain control for white balance for B data by Bgain2.

【0053】もっとも、ゲイン制御としては、ゲイン制
御量の小さい方を使用する等の選択により、ゲイン制御
量Rgain,Bgainの設定・選択を行なうようにしてもよ
い。或いは、何れか一方のゲイン制御量の選択に限ら
ず、積算データ等に基づく重み付けを行ない、重み付け
されたゲイン制御量を用いるようにしてもよい。
However, as the gain control, the setting and selection of the gain control amounts Rgain and Bgain may be performed by selecting the smaller gain control amount. Alternatively, the present invention is not limited to the selection of either one of the gain control amounts, and the weighting may be performed based on the integrated data and the like, and the weighted gain control amount may be used.

【0054】本実施の形態によれば、輝度分布が現れた
際にも、無彩色判定データ数を多くサンプルすることが
でき、色ずれを抑制し得るホワイトバランス制御が可能
な上に、ゲイン制御量の決定法によりホワイトバランス
処理の自由度を上げることもできる。
According to the present embodiment, even when a luminance distribution appears, a large number of achromatic color determination data can be sampled, white balance control capable of suppressing color shift can be performed, and gain control can be performed. The degree of freedom in white balance processing can be increased by the method of determining the amount.

【0055】なお、これらの実施の形態では、色補間回
路4、輝度判定回路6、無彩色範囲設定回路8、無彩色
判定回路9及びゲイン制御回路10なる回路構成により
前述した処理を実行させるようにしたが、プロセッサ等
の使用によりソフトウェア上の制御で処理させるように
してもよい。
In these embodiments, the above-described processing is executed by the circuit configuration including the color interpolation circuit 4, the luminance determination circuit 6, the achromatic color range setting circuit 8, the achromatic color determination circuit 9, and the gain control circuit 10. However, the processing may be controlled by software using a processor or the like.

【0056】[0056]

【発明の効果】請求項1記載の発明のホワイトバランス
制御方法によれば、エリア単位の輝度分布なる輝度情報
によって無彩色判定を行なうための輝度範囲を変更設定
して無彩色判定を行なうようにしたので、撮像フレーム
内に違った光源が含まれるような撮影時にあっても、精
度よくホワイトバランス処理を行なわせることができ
る。
According to the white balance control method of the present invention, the achromatic color determination is performed by changing and setting the luminance range for performing the achromatic color determination based on the luminance information of the luminance distribution in the unit of area. Therefore, the white balance processing can be performed with high accuracy even during imaging in which a different light source is included in the imaging frame.

【0057】請求項2記載の発明によれば、請求項1記
載のホワイトバランス制御方法において、輝度情報によ
って高輝度側の無彩色検出を行なわないようにしたの
で、室内で屋外の風景を撮影したような場合でも、輝度
値の高い屋外のデータによる影響を除き、違和感のない
ホワイトバランス制御が可能となる。
According to the second aspect of the present invention, in the white balance control method according to the first aspect, since the achromatic color detection on the high luminance side is not performed based on the luminance information, an outdoor scene is photographed indoors. Even in such a case, white balance control without a sense of incongruity can be performed except for the influence of outdoor data having a high luminance value.

【0058】請求項3記載の発明によれば、請求項1又
は2記載のホワイトバランス制御方法において、撮像フ
レーム中の輝度情報と一定値、例えば、露出制御値を用
いて無彩色検出のための輝度範囲の設定を行なうように
したので、被写体付近の輝度範囲の無彩色検出が行なわ
れ、被写体の色ずれを抑制したホワイトバランス処理が
可能となる。
According to the third aspect of the present invention, in the white balance control method according to the first or second aspect, the achromatic color detection is performed by using luminance information and a fixed value, for example, an exposure control value, in the imaged frame. Since the setting of the luminance range is performed, achromatic color detection in the luminance range near the subject is performed, and white balance processing that suppresses color shift of the subject can be performed.

【0059】請求項4記載の発明のホワイトバランス制
御方法によれば、輝度情報による輝度範囲毎にゲイン制
御量を求め、その結果に基づいて適宜ゲイン制御量を設
定して制御を行なうようにしたので、より柔軟で精度の
よいホワイトバランス制御が可能となる。
According to the white balance control method of the present invention, the gain control amount is obtained for each luminance range based on the luminance information, and the control is performed by appropriately setting the gain control amount based on the result. Therefore, more flexible and accurate white balance control becomes possible.

【0060】請求項5記載の発明のホワイトバランス制
御装置によれば、エリア単位の輝度分布なる輝度情報に
よって無彩色判定を行なうための輝度範囲を無彩色範囲
設定手段により変更設定して無彩色判定手段で無彩色判
定を行なうようにしたので、撮像フレーム内に違った光
源が含まれるような撮影時にあっても、精度よくホワイ
トバランス処理を行なわせることができる。
According to the white balance control apparatus of the present invention, the achromatic color range is set by the achromatic color range setting means to change and set the luminance range for performing the achromatic color determination based on the luminance information of the luminance distribution in the unit of area. Since the achromatic color determination is performed by the means, the white balance processing can be performed with high accuracy even during shooting in which a different light source is included in the imaging frame.

【0061】請求項6記載の発明によれば、輝度情報に
よって高輝度側の無彩色検出を行なわないようにしたの
で、室内で屋外の風景を撮影したような場合でも、輝度
値の高い屋外のデータによる影響を除き、違和感のない
ホワイトバランス制御が可能となる。
According to the sixth aspect of the present invention, the achromatic color detection on the high luminance side is not performed based on the luminance information. Therefore, even when an outdoor scene is photographed indoors, an outdoor scene having a high luminance value can be obtained. Except for the influence of data, white balance control without a sense of incongruity becomes possible.

【0062】請求項7記載の発明によれば、請求項5又
は6記載のホワイトバランス制御装置において、無彩色
範囲設定手段において撮像フレーム中の輝度情報と一定
値、例えば、露出制御値を用いて無彩色検出のための輝
度範囲の設定を行なうようにしたので、被写体付近の輝
度範囲の無彩色検出が行なわれ、被写体の色ずれを抑制
したホワイトバランス処理が可能となる。
According to the seventh aspect of the present invention, in the white balance control apparatus according to the fifth or sixth aspect, the achromatic color range setting means uses the luminance information and a fixed value, for example, an exposure control value, in the imaging frame. Since the luminance range for achromatic color detection is set, achromatic color detection in the luminance range near the subject is performed, and white balance processing that suppresses color shift of the subject can be performed.

【0063】請求項8記載の発明によれば、撮像フレー
ム中の輝度情報と一定値、例えば、露出制御値を用いて
無彩色検出のための輝度範囲の設定を行なうようにした
ので、被写体付近の輝度範囲の無彩色検出が行なわれ、
被写体の色ずれを抑制したホワイトバランス処理が可能
となる。
According to the eighth aspect of the present invention, a luminance range for achromatic color detection is set by using luminance information and a constant value, for example, an exposure control value, in an imaging frame. Achromatic color detection in the luminance range of
White balance processing that suppresses color shift of the subject can be performed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施の形態を示すカラー撮像装置の
構成例のブロック図である。
FIG. 1 is a block diagram illustrating a configuration example of a color imaging apparatus according to an embodiment of the present invention.

【図2】撮像フレーム例を示す模式図である。FIG. 2 is a schematic diagram illustrating an example of an imaging frame.

【図3】基本処理例を示すフローチャートである。FIG. 3 is a flowchart illustrating an example of a basic process.

【図4】CCDフィルタの配列例を示す模式図である。FIG. 4 is a schematic diagram showing an example of the arrangement of CCD filters.

【図5】色補間回路の構成例を示すブロック図である。FIG. 5 is a block diagram illustrating a configuration example of a color interpolation circuit.

【図6】その色補間処理例を示すフローチャートであ
る。
FIG. 6 is a flowchart showing an example of the color interpolation processing.

【図7】輝度判定回路及び無彩色範囲設定回路の構成例
を示すブロック図である。
FIG. 7 is a block diagram illustrating a configuration example of a luminance determination circuit and an achromatic color range setting circuit.

【図8】その輝度範囲設定処理例を示すフローチャート
である。
FIG. 8 is a flowchart illustrating an example of a luminance range setting process.

【図9】無彩色判定回路の構成例を示すブロック図であ
る。
FIG. 9 is a block diagram illustrating a configuration example of an achromatic color determination circuit.

【図10】その無彩色検出処理例を示すブロック図であ
る。
FIG. 10 is a block diagram showing an example of an achromatic color detection process.

【図11】ゲイン制御回路の構成例を示すブロック図で
ある。
FIG. 11 is a block diagram illustrating a configuration example of a gain control circuit.

【図12】そのゲイン算出例を示すフローチャートであ
る。
FIG. 12 is a flowchart showing an example of the gain calculation.

【図13】本発明の第二の実施の形態の輝度範囲設定処
理例を示すフローチャートである。
FIG. 13 is a flowchart illustrating an example of a luminance range setting process according to the second embodiment of this invention.

【図14】本発明の第三の実施の形態の輝度範囲設定処
理例を示すフローチャートである。
FIG. 14 is a flowchart illustrating an example of a luminance range setting process according to the third embodiment of the present invention.

【図15】そのゲイン制御回路の構成例を示すブロック
図である。
FIG. 15 is a block diagram showing a configuration example of the gain control circuit.

【符号の説明】[Explanation of symbols]

1 撮像素子 6 輝度判定手段 8 無彩色範囲設定手段 9 無彩色判定手段 10 ゲイン制御手段 11 撮像フレーム DESCRIPTION OF SYMBOLS 1 Image sensor 6 Luminance determination means 8 Achromatic color range setting means 9 Achromatic color determination means 10 Gain control means 11 Imaging frame

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C065 AA01 AA03 BB02 BB15 CC01 DD02 DD17 GG12 GG13 GG15 GG17 GG18 GG21 GG22 GG24 GG30 GG35 5C066 AA01 BA20 CA08 CA17 DD07 DD08 EA15 GA01 GB01 KA12 KD02 KE02 KE04 KE09 KE19 KE20 KM02 LA02  ──────────────────────────────────────────────────続 き Continued on the front page F-term (reference)

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 撮像フレームについて分割された所定の
エリア毎の画像データに基づき輝度分布を求めて、各エ
リア毎の輝度分布を比較し、その比較結果に応じて無彩
色抽出を行なう輝度範囲を初期値又は算出した変更値に
設定し、設定された輝度範囲内で前記画像データについ
て無彩色判定を行ない、無彩色と判定された画素の積算
データに基づき前記画像データに対するゲイン制御量を
設定することによりホワイトバランスをとるようにした
ホワイトバランス制御方法。
1. A luminance distribution is obtained based on image data of each predetermined area divided for an imaging frame, and the luminance distribution of each area is compared, and a luminance range in which achromatic color is extracted is determined in accordance with the comparison result. Set to an initial value or a calculated change value, perform achromatic determination on the image data within the set luminance range, and set a gain control amount for the image data based on the integrated data of the pixels determined to be achromatic. A white balance control method that achieves a white balance by using
【請求項2】 各エリア毎の輝度分布が2段階以上に異
なる場合に、低輝度側の輝度分布に基づき無彩色抽出を
行なう輝度範囲を算出した変更値に設定するようにした
請求項1記載のホワイトバランス制御方法。
2. The method according to claim 1, wherein when the luminance distribution of each area is different in two or more steps, the luminance range for performing achromatic color extraction based on the luminance distribution on the low luminance side is set to the calculated change value. White balance control method.
【請求項3】 最大の輝度平均値が一定値以下の範囲で
各エリア毎の輝度分布が2段階以上に異なる場合に、高
輝度側の輝度分布に基づき無彩色抽出を行なう輝度範囲
を算出した変更値に設定するようにした請求項1又は2
記載のホワイトバランス制御方法。
3. A luminance range in which achromatic color extraction is performed based on a luminance distribution on a high luminance side when a luminance distribution of each area is different in two or more steps in a range where a maximum luminance average value is equal to or less than a predetermined value. 3. The method according to claim 1, wherein the change value is set.
The white balance control method described in the above.
【請求項4】 撮像フレームについて分割された所定の
エリア毎の画像データに基づき輝度分布を求めて、各エ
リア毎の輝度分布を比較し、その比較の結果、各エリア
毎の輝度分布が2段階以上に異なる場合に、異なる各輝
度分布毎にその輝度分布に応じて無彩色抽出を行なう輝
度範囲を算出した変更値に設定し、設定された各輝度分
布毎の輝度範囲内で前記画像データについて無彩色判定
を行ない、これらの各輝度分布毎の無彩色判定結果に応
じて前記画像データに対するゲイン制御量を設定するこ
とによりホワイトバランスをとるようにしたホワイトバ
ランス制御方法。
4. A luminance distribution is obtained based on image data of each predetermined area divided for an imaging frame, and the luminance distributions of the respective areas are compared. As a result of the comparison, the luminance distribution of each area has two levels. In the case of the above difference, the brightness range for performing achromatic color extraction is set to the calculated change value for each different brightness distribution according to the brightness distribution, and the image data is set within the brightness range for each brightness distribution set. A white balance control method which performs achromatic color determination and sets a gain control amount for the image data in accordance with the achromatic color determination result for each of the luminance distributions to obtain a white balance.
【請求項5】 撮像素子により撮像された撮像フレーム
について分割された所定のエリア毎の画像データに基づ
き輝度分布を求めて各エリア毎の輝度分布を比較する輝
度判定手段と、 この輝度判定手段による比較結果に応じて無彩色抽出を
行なう輝度範囲を初期値又は算出した変更値に設定する
無彩色範囲設定手段と、 この無彩色範囲設定手段により設定された輝度範囲内で
前記画像データについて無彩色判定を行なう無彩色判定
手段と、 この無彩色判定手段により無彩色と判定された画素の積
算データに基づきホワイトバランスをとれるように前記
画像データに対するゲイン制御量を設定するゲイン制御
手段と、を備えるホワイトバランス制御装置。
5. A luminance determining means for obtaining a luminance distribution based on image data for each of predetermined areas obtained by dividing an imaging frame imaged by an imaging device and comparing the luminance distribution for each area; Achromatic color range setting means for setting a luminance range for performing achromatic color extraction according to the comparison result to an initial value or a calculated change value; and achromatic color for the image data within the luminance range set by the achromatic color range setting means. Achromatic color determining means for performing determination, and gain control means for setting a gain control amount for the image data so as to obtain a white balance based on integrated data of pixels determined to be achromatic by the achromatic color determining means. White balance control device.
【請求項6】 前記無彩色範囲設定手段は、前記輝度判
定手段による比較の結果、各エリア毎の輝度分布が2段
階以上に異なる場合に、低輝度側の輝度分布に基づき無
彩色抽出を行なう輝度範囲を算出した変更値に設定する
請求項5記載のホワイトバランス制御装置。
6. The achromatic color range setting means performs achromatic color extraction based on the luminance distribution on the low luminance side when the luminance distribution of each area is different by two or more levels as a result of the comparison by the luminance determining means. The white balance control device according to claim 5, wherein the brightness range is set to the calculated change value.
【請求項7】 前記無彩色範囲設定手段は、前記輝度判
定手段による比較の結果、最大の輝度平均値が一定値以
下の範囲で各エリア毎の輝度分布が2段階以上に異なる
場合に、高輝度側の輝度分布に基づき無彩色抽出を行な
う輝度範囲を算出した変更値に設定する請求項5又は6
記載のホワイトバランス制御装置。
7. The achromatic color range setting means, as a result of the comparison by the luminance judging means, when the luminance distribution of each area is different in two or more steps in a range where the maximum luminance average value is equal to or less than a fixed value, 7. A modified value for calculating a luminance range in which achromatic color extraction is performed based on a luminance distribution on the luminance side.
The white balance control device as described in the above.
【請求項8】 撮像素子により撮像された撮像フレーム
について分割された所定のエリア毎の画像データに基づ
き輝度分布を求めて各エリア毎の輝度分布を比較する輝
度判定手段と、 この輝度判定手段による比較結果に応じて無彩色抽出を
行なう輝度範囲を初期値又は変更値に設定するととも
に、比較の結果、各エリア毎の輝度分布が2段階以上に
異なる場合には異なる各輝度分布毎にその輝度分布に応
じて無彩色抽出を行なう輝度範囲を算出した変更値に設
定する無彩色範囲設定手段と、 この無彩色範囲設定手段により設定された輝度範囲内で
前記画像データについて無彩色判定を行なう無彩色判定
手段と、 この無彩色判定手段による無彩色判結果に応じてホワイ
トバランスをとるためのゲイン制御量を設定するゲイン
制御手段と、を備えるホワイトバランス制御装置。
8. A luminance determining means for obtaining a luminance distribution based on image data for each of predetermined areas obtained by dividing an imaging frame imaged by an imaging element and comparing the luminance distribution for each area; According to the comparison result, the brightness range in which achromatic color extraction is performed is set to an initial value or a changed value. If the brightness distribution of each area is different in two or more stages as a result of the comparison, the brightness is different for each brightness distribution. An achromatic color range setting means for setting a luminance range for performing achromatic color extraction in accordance with the distribution to a calculated change value; and an achromatic color determination section for performing achromatic determination on the image data within the luminance range set by the achromatic color range setting means. A chromatic determination unit; and a gain control unit for setting a gain control amount for obtaining a white balance according to an achromatic determination result by the achromatic determination unit. White balance control device.
JP10333915A 1998-11-25 1998-11-25 White balance control method and its system Pending JP2000165896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10333915A JP2000165896A (en) 1998-11-25 1998-11-25 White balance control method and its system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10333915A JP2000165896A (en) 1998-11-25 1998-11-25 White balance control method and its system

Publications (1)

Publication Number Publication Date
JP2000165896A true JP2000165896A (en) 2000-06-16

Family

ID=18271395

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10333915A Pending JP2000165896A (en) 1998-11-25 1998-11-25 White balance control method and its system

Country Status (1)

Country Link
JP (1) JP2000165896A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002185976A (en) * 2000-12-08 2002-06-28 Nikon Corp Video signal processor and recording medium with video signal processing program recorded thereon
JP2007243714A (en) * 2006-03-09 2007-09-20 Fujifilm Corp Photographing device and exposure control method
KR100801085B1 (en) 2005-12-14 2008-02-11 삼성전자주식회사 Method and apparatus for auto white controlling
CN100378796C (en) * 2004-03-09 2008-04-02 奥林巴斯株式会社 Display control apparatus and display control method
US7397502B2 (en) 2002-07-31 2008-07-08 Ricoh Company, Ltd. Imaging apparatus including control device for controlling white balance
JP2009506700A (en) * 2005-08-30 2009-02-12 ノキア コーポレイション Image processing apparatus with auto white balance
US8164649B2 (en) 2007-04-25 2012-04-24 Nikon Corporation White balance adjusting device, imaging apparatus, and recording medium storing white balance adjusting program
US8482630B2 (en) 2009-08-27 2013-07-09 Samsung Electronics Co., Ltd. Apparatus and method for adjusting automatic white balance by detecting effective area
US11375127B2 (en) 2020-03-12 2022-06-28 Ricoh Company, Ltd. Image-capturing device, image capturing method, image-capturing system, and electronic device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002185976A (en) * 2000-12-08 2002-06-28 Nikon Corp Video signal processor and recording medium with video signal processing program recorded thereon
US7397502B2 (en) 2002-07-31 2008-07-08 Ricoh Company, Ltd. Imaging apparatus including control device for controlling white balance
CN100378796C (en) * 2004-03-09 2008-04-02 奥林巴斯株式会社 Display control apparatus and display control method
JP2009506700A (en) * 2005-08-30 2009-02-12 ノキア コーポレイション Image processing apparatus with auto white balance
JP2012100362A (en) * 2005-08-30 2012-05-24 Nokia Corp Image processing apparatus including automatic white balance
US8941755B2 (en) 2005-08-30 2015-01-27 Nokia Corporation Image processing device with automatic white balance
KR100801085B1 (en) 2005-12-14 2008-02-11 삼성전자주식회사 Method and apparatus for auto white controlling
JP2007243714A (en) * 2006-03-09 2007-09-20 Fujifilm Corp Photographing device and exposure control method
JP4533860B2 (en) * 2006-03-09 2010-09-01 富士フイルム株式会社 Imaging apparatus and exposure control method
US8164649B2 (en) 2007-04-25 2012-04-24 Nikon Corporation White balance adjusting device, imaging apparatus, and recording medium storing white balance adjusting program
US8482630B2 (en) 2009-08-27 2013-07-09 Samsung Electronics Co., Ltd. Apparatus and method for adjusting automatic white balance by detecting effective area
US11375127B2 (en) 2020-03-12 2022-06-28 Ricoh Company, Ltd. Image-capturing device, image capturing method, image-capturing system, and electronic device

Similar Documents

Publication Publication Date Title
JP3824237B2 (en) Image processing apparatus and method, recording medium, and program
JP5738080B2 (en) Imaging apparatus and control method thereof
JP4679685B2 (en) Digital camera composition auxiliary frame selection method and digital camera
WO2003085963A1 (en) Digital color image pre-processing
JP2009124552A (en) Noise reduction system, noise reduction program and imaging system
JP2009017229A (en) Imaging device and imaging control method
EP2161938B1 (en) Imaging apparatus, imaging method and computer readable recording medium storing programs for executing the imaging method
JPH11298792A (en) Electronic still camera
JP2000165896A (en) White balance control method and its system
US20070019105A1 (en) Imaging apparatus for performing optimum exposure and color balance control
JP2004297650A (en) Control method of white balance and digital camera
JP4752381B2 (en) Imaging device
JP2009004966A (en) Imaging apparatus
JP2002218495A (en) White balance control method and electronic camera
JP2004312553A (en) White balance control method and imaging apparatus
CN110572585A (en) Image processing method, image processing device, storage medium and electronic equipment
JP5803233B2 (en) Imaging apparatus and imaging method
JP4272566B2 (en) Color shading correction method and solid-state imaging device for wide dynamic range solid-state imaging device
JPH07135599A (en) Image pickup device and its picture processing method
JP2008219230A (en) Imaging apparatus, and image processing method
JP2002185977A (en) Video signal processor and recording medium with video signal processing program recorded thereon
US7804526B2 (en) Auto white balance method using windows of a plurality of windows that form an image and image photographing apparatus using the same
JP4277258B2 (en) White balance control method and imaging apparatus
JP4385240B2 (en) Auto white balance control method for digital camera and digital camera
JP2008288896A (en) Imaging apparatus, imaging method, and integrated circuit