JP2003264850A - Digital camera - Google Patents

Digital camera

Info

Publication number
JP2003264850A
JP2003264850A JP2002061990A JP2002061990A JP2003264850A JP 2003264850 A JP2003264850 A JP 2003264850A JP 2002061990 A JP2002061990 A JP 2002061990A JP 2002061990 A JP2002061990 A JP 2002061990A JP 2003264850 A JP2003264850 A JP 2003264850A
Authority
JP
Japan
Prior art keywords
hue
green
scene
subject
white balance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2002061990A
Other languages
Japanese (ja)
Other versions
JP3821729B2 (en
Inventor
Genta Sato
玄太 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2002061990A priority Critical patent/JP3821729B2/en
Publication of JP2003264850A publication Critical patent/JP2003264850A/en
Application granted granted Critical
Publication of JP3821729B2 publication Critical patent/JP3821729B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a digital camera capable of properly and automatically adjusting white balance even when a photographing scene is possibly misjudged as an indoor scene although the photographing scene is actually an outdoor scene such as a dark forest or grove. <P>SOLUTION: Even when an outdoor/indoor discrimination circuit 70 discriminates that a photographing scene is an indoor scene, if a color temperature discrimination circuit 60 discriminates that a color temperature of an object has an intermediate color temperature (around 4000°C) between a luminescent color of a white fluorescent light and a green color of a plant, a green discrimination circuit 40 further discriminates whether or not the hue of the object is the green color of plant on the basis of a distribution of hue data on the R/G-B/G coordinates, when the discrimination indicates that the hue of object indicates the green of plant, a white balance deviation correction circuit 30 weakens a degree of white balance adjustment more than a degree of white balance adjustment for indoor photographing. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、撮影画像のホワイ
トバランスを自動調整する機能を備えたデジタルカメラ
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital camera having a function of automatically adjusting white balance of a photographed image.

【0002】[0002]

【従来の技術】従来、撮影シーンが屋外のシーンである
か屋内のシーンであるかを判別する機能を備えたデジタ
ルカメラにおいては、被写体の色相(RGB情報)に基
づいて撮影シーンを判別し、その判別結果に応じてホワ
イトバランスを自動調整していた。
2. Description of the Related Art Conventionally, in a digital camera having a function of discriminating whether a photographing scene is an outdoor scene or an indoor scene, the photographing scene is discriminated based on the hue (RGB information) of a subject, The white balance was automatically adjusted according to the determination result.

【0003】しかし、被写体の色相だけに基づいて撮影
シーンの判別を行ったのでは、被写体の色温度分布が不
均一の場合や、被写体が単一色あるいは同系色の物体の
場合に、撮影シーンの誤判別が生じ易く、ホワイトバラ
ンスを誤調整してしまうことが多かった。その結果、ホ
ワイトバランスずれによるカラーフェリアが生じてい
た。
However, if the photographic scene is discriminated based only on the hue of the photographic subject, the photographic scene of the photographic scene is not uniform when the color temperature distribution of the photographic subject is non-uniform or when the photographic subject is an object of a single color or a similar color. Misjudgment was likely to occur, and white balance was often adjusted incorrectly. As a result, color ferria was generated due to the white balance shift.

【0004】そこで、特開2000−224608号公
報記載の発明においては、被写体の色相と明度とに基づ
いて、撮影シーンが屋外のシーンであるか屋内のシーン
であるかを判別することにより、撮影シーンの誤判別と
ホワイトバランスずれを防止するようにしている。
Therefore, in the invention disclosed in Japanese Patent Application Laid-Open No. 2000-224608, it is determined whether the shooting scene is an outdoor scene or an indoor scene based on the hue and lightness of the subject, thereby performing shooting. It is designed to prevent misidentification of scenes and white balance shift.

【0005】[0005]

【発明が解決しようとする課題】しかし、特開2000
−224608号公報記載の発明では、比較的明るい場
所での撮影の場合には撮影シーンを正確に判別すること
ができるが、暗い場所での撮影の場合には、撮影シーン
を誤判別してしまうことがある。たとえば、外光があま
り差し込まない暗い森や林の中で緑の草木を背景にして
撮影を行った場合、屋外の撮影シーンであるにもかかわ
らず、屋内の撮影シーンと誤判別されてしまう。このよ
うな撮影シーンの誤判別は、草木の葉など植物の緑と屋
内照明に使用されるの白色蛍光灯の発光色の色温度(明
度、色相)が近いことに起因して生じる。
However, Japanese Patent Laid-Open No. 2000-2000
In the invention described in Japanese Patent Laid-Open No. 224608, the shooting scene can be accurately determined in the case of shooting in a relatively bright place, but the shooting scene may be erroneously determined in the case of shooting in a dark place. is there. For example, when shooting is performed against a background of green vegetation in a dark forest or forest where outside light does not enter much, it is erroneously determined as an indoor shooting scene even though it is an outdoor shooting scene. Such an erroneous determination of the shooting scene occurs because the color temperature (lightness, hue) of the emission color of the white fluorescent lamp used for indoor lighting is close to the green of plants such as leaves of plants and trees.

【0006】その結果、屋外撮影であるにもかかわら
ず、屋内撮影に適したホワイトバランス調整がなされ
る。これは緑の葉などをグレーにホワイトバランス調整
してしまうことを意味する。このようにホワイトバラン
スがずれた状態で緑色植物を背景にして人物の撮影を行
うと、緑色植物の色はグレーじみた色になり、肌色はマ
ゼンタじみた色になって、色の再現性が非常に悪くな
る。
As a result, the white balance adjustment suitable for indoor photography is performed even though it is outdoor photography. This means adjusting the white balance of green leaves to gray. When a person is photographed against a green plant background with the white balance deviated in this way, the color of the green plant becomes a shade of gray, and the flesh tone becomes a color of magenta. It gets very bad.

【0007】本発明は、上記事情に鑑みてなされたもの
で、その目的は、暗い森や林の中など、撮影シーンが実
際には屋外のシーンであるにもかかわらず屋内のシーン
であると誤判別するおそれのある場合においても、ホワ
イトバランスを適切に自動調整することが可能なデジタ
ルカメラを提供することにある。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to be an indoor scene, such as in a dark forest or a forest, although the shooting scene is actually an outdoor scene. It is an object of the present invention to provide a digital camera capable of appropriately and automatically adjusting white balance even in the case where there is a risk of misjudgment.

【0008】[0008]

【課題を解決するための手段】本発明は、被写体の明度
を検出する明度検出手段と、前記被写体の画像を複数の
エリアに分割して各エリアの色相を検出する色相検出手
段と、前記明度検出手段により得られた明度データと前
記色相検出手段により得られた各エリアの色相データと
に基づいて撮影シーンが屋外のシーンであるか屋内のシ
ーンであるかを判別する屋外屋内判別手段と、前記屋外
屋内判別手段により屋内のシーンと判別された場合に、
前記明度データと前記色相データとに基づいて前記被写
体の色温度を判別する色温度判別手段と、前記色温度判
別手段により白色蛍光灯の発光色の色温度と判別された
場合に、前記各エリアの色相データのR/G−B/G座
標上における分布に応じて、前記被写体の色相が緑であ
るか否かを判別する緑判別手段と、前記緑判別手段によ
り前記被写体の色相が緑であると判別された場合に、前
記ホワイトバランス調整手段によるホワイトバランス調
整の度合いを弱くするホワイトバランスずれ補正手段
と、を備えたデジタルカメラを提供する。
According to the present invention, there is provided a lightness detecting means for detecting lightness of an object, a hue detecting means for dividing an image of the object into a plurality of areas to detect a hue of each area, and the lightness. Outdoor / indoor discrimination means for discriminating whether the shooting scene is an outdoor scene or an indoor scene based on the lightness data obtained by the detection means and the hue data of each area obtained by the hue detection means, When the outdoor scene is determined to be an indoor scene,
The color temperature determining means for determining the color temperature of the subject based on the lightness data and the hue data, and each area when the color temperature determining means determines the color temperature of the emission color of the white fluorescent lamp. According to the distribution of the hue data on the R / G-B / G coordinates, a green discriminating means for discriminating whether or not the hue of the subject is green, and a hue of the subject is green by the green discriminating means. There is provided a digital camera provided with a white balance deviation correction means for weakening the degree of white balance adjustment by the white balance adjustment means when it is determined that there is.

【0009】ここで、R/GはR(赤)成分の信号強度
とG(緑)成分の信号強度との比、B/GはB(青)成
分の信号強度とG(緑)成分の信号強度との比である。
R/G−B/G座標は、R/Gをx軸(横軸)、B/G
をy軸(縦軸)にとった座標である。
Here, R / G is the ratio of the signal intensity of the R (red) component and the signal intensity of the G (green) component, and B / G is the ratio of the signal intensity of the B (blue) component and the G (green) component. It is the ratio to the signal strength.
R / G-B / G coordinates are R / G x-axis (horizontal axis), B / G
Is the coordinate along the y-axis (vertical axis).

【0010】上記のように構成した本発明のデジタルカ
メラは、屋外屋内判別手段により撮影シーンが屋内のシ
ーンであると判別された場合、色温度判別手段により被
写体の色温度を判別する。その結果、被写体の色温度が
白色蛍光灯の発光色に近い色温度(4000度付近)で
あると判別された場合、緑判別手段によりその被写体の
色相が緑であるか否かを判別する。その結果、緑である
と判別された場合、ホワイトバランスずれ補正手段によ
りホワイトバランス調整の度合いを弱くする。例えば、
被写体の色温度が白色蛍光灯の発光色と植物の緑との中
間の色温度と判別された場合に、その被写体の色相が緑
であるか否かを判別し、植物の緑であると判別された場
合には、屋内撮影に適したホワイトバランスよりも弱く
し、屋外撮影における適切なホワイトバランス調整を行
うようにする。
In the digital camera of the present invention configured as described above, when the outdoor / indoor determination means determines that the shooting scene is an indoor scene, the color temperature determination means determines the color temperature of the subject. As a result, when it is determined that the color temperature of the subject is a color temperature close to the emission color of the white fluorescent lamp (around 4000 degrees), the green determining unit determines whether or not the hue of the subject is green. As a result, when it is determined that the color is green, the degree of white balance adjustment is weakened by the white balance deviation correction means. For example,
When the color temperature of the subject is determined to be an intermediate color temperature between the emission color of the white fluorescent lamp and the green of the plant, it is determined whether the hue of the subject is green and it is determined that it is the green of the plant. In this case, the white balance is set to be weaker than the white balance suitable for indoor shooting, and an appropriate white balance adjustment for outdoor shooting is performed.

【0011】これにより、撮影シーンが実際には屋外の
シーンであるにもかかわらず屋内のシーンであると誤判
別してしまうおそれがある場合でも、ホワイトバランス
を適切に自動調整することが可能であり、撮影画像の色
再現性が悪化してしまうことを防げる。
With this, even when there is a possibility that the shooting scene is erroneously determined to be an indoor scene even though it is actually an outdoor scene, it is possible to appropriately and automatically adjust the white balance. It is possible to prevent the color reproducibility of the captured image from deteriorating.

【0012】また、前記緑判別手段は、前記色相検出手
段により得られた各エリアの色相データからR/G−B
/G座標上における色相分布近似直線の傾きを求め、そ
の傾きに基づいて前記被写体の色相が緑であるか否かを
判別することが望ましい。
Further, the green discriminating means calculates R / GB from the hue data of each area obtained by the hue detecting means.
It is desirable to find the slope of the hue distribution approximation line on the / G coordinate and determine whether the hue of the subject is green based on the slope.

【0013】上記構成では、緑判別手段において、各エ
リアの色相データからR/G−B/G座標上における色
相分布近似直線の傾きによって、例えば傾きが正(右上
がり)の場合は緑であり、負(右下がり)の場合は白色
蛍光灯の発光色であると判別する。これにより、暗い屋
外での植物の緑など、色相の判別を誤り易いものであっ
ても正確に判別が可能である。
In the above configuration, in the green discriminating means, when the inclination of the hue distribution approximation line on the R / GB / G coordinates from the hue data of each area is positive, for example, the inclination is positive (upward to the right), it is green. , If it is negative (downward to the right), it is determined to be the emission color of the white fluorescent lamp. As a result, even if it is easy to make an error in determining the hue, such as the green color of a plant outdoors in the dark, it is possible to accurately determine the hue.

【0014】また、前記緑判別手段は、前記色相検出手
段により得られた各エリアの色相データを彩度データに
変換し、緑の彩度分布の範囲を示す緑検出領域に入るデ
ータの個数から前記被写体の彩度を判定し、その判定結
果と前記傾きとに基づいて前記被写体の色相が緑である
か否かを判別することが望ましい。
Further, the green discriminating means converts the hue data of each area obtained by the hue detecting means into saturation data, and based on the number of pieces of data in the green detection area showing the range of saturation distribution of green. It is desirable to determine the saturation of the subject and determine whether the hue of the subject is green based on the determination result and the inclination.

【0015】前述のR/G−B/G座標上における色相
分布近似直線の傾きに基づいて被写体の色相が緑である
か否かを判別するのみでは、緑色の光源(水銀灯など)
の下で撮影を行った場合に、被写体の色相を全て緑であ
ると誤判別してしまう可能性がある。そこで、緑判別手
段において、各エリアの色相データを彩度データ(La
b空間データ、YCrCb空間データなど)に変換し、
緑の彩度分布の範囲を示す緑検出領域に入るエリアの色
相データの個数から被写体の彩度を判定し、この判定結
果と前記傾きとに基づいて、被写体の色相が緑であるか
否かを判別する。これにより、暗い屋外での植物の緑と
水銀灯などの緑色光源下での灰色など、色相の判別を誤
り易いものであっても彩度の違いによってさらに正確に
判別すること可能となる。
Only by determining whether or not the hue of the subject is green on the basis of the inclination of the hue distribution approximation line on the R / GB / G coordinates described above, it is only necessary to determine whether or not the hue of the subject is green.
When shooting under the light, there is a possibility that the hue of the subject is erroneously determined to be all green. Therefore, in the green discriminating means, the hue data of each area is converted into the saturation data (La
b space data, YCrCb space data, etc.),
Whether or not the hue of the subject is green is determined based on the determination result and the inclination based on the number of pieces of hue data in the area that falls within the green detection region indicating the range of the saturation distribution of green. To determine. As a result, even if it is easy to make an error in determining the hue, such as the green color of a plant in the dark outdoors and the gray color under a green light source such as a mercury lamp, it is possible to more accurately determine the color difference.

【0016】[0016]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を説明する。図1は本発明の一実施の形態に係
るデジタルカメラの機能的構成を例示するブロック図で
ある。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram illustrating a functional configuration of a digital camera according to an embodiment of the present invention.

【0017】本実施の形態のデジタルカメラにおいて、
撮影レンズ11及び絞り12を介して固体撮像装置(C
CD)13の受光面に結像された被写体像は、固体撮像
装置(CCD)13の各素子で光の入射光量に応じた量
の信号電荷に変換され蓄積される。各素子に蓄積された
信号電荷は、CCD駆動回路14から与えられるリード
ゲートパルスによってシフトレジスタに読み出され、レ
ジスタ転送パルスによって信号電荷に応じた電圧信号と
して順次読み出される。CCD13は、蓄積した信号電
荷をシャッタゲートパルスによって掃き出すことがで
き、これにより電荷の蓄積時間(シャッタスピード)を
制御する、いわゆる電子シャッタ機能を有している。
In the digital camera of this embodiment,
The solid-state imaging device (C
The subject image formed on the light receiving surface of the CD) 13 is converted by each element of the solid-state image pickup device (CCD) 13 into a signal charge of an amount corresponding to the amount of incident light and accumulated. The signal charge accumulated in each element is read out to the shift register by the read gate pulse given from the CCD drive circuit 14, and sequentially read out as a voltage signal corresponding to the signal charge by the register transfer pulse. The CCD 13 has a so-called electronic shutter function capable of sweeping out the accumulated signal charge by a shutter gate pulse and controlling the charge accumulation time (shutter speed).

【0018】CCD13から順次読み出された電圧信号
は、相関二重サンプリング回路(CDS回路)15に送
られ、ここで各画素ごとのR、G、B信号がサンプリン
グホールドされ、A/D変換器16に送られる。A/D
変換器16は、CDS回路15から順次与えられるR、
G、B信号を10ビット(0〜1023)のデジタルの
R、G、B信号に変換して出力する。なお、CCD駆動
回路14、CDS回路15及びA/D変換器16は、タ
イミング発生回路17から与えられるタイミング信号に
よって同期して駆動されるようになっている。
The voltage signal sequentially read from the CCD 13 is sent to a correlated double sampling circuit (CDS circuit) 15, where the R, G, B signals for each pixel are sampled and held, and the A / D converter is used. Sent to 16. A / D
The converter 16 has R, which are sequentially supplied from the CDS circuit 15,
The G and B signals are converted into 10-bit (0 to 1023) digital R, G and B signals and output. The CCD drive circuit 14, the CDS circuit 15 and the A / D converter 16 are driven in synchronization with a timing signal supplied from the timing generation circuit 17.

【0019】A/D変換器16から出力されたR、G、
B信号は、積算回路35を経てCPU19へ送られると
ともに、一旦メモリ18に格納された後、デジタル信号
処理回路20および明度・色相検出回路50に送られ
る。積算回路35とCPU19との間には乗算器536
R、36G、36Bが設けられており、乗算器536
R、36G、36Bには、機器のバラツキを調整するた
めの調整ゲイン値が入力されるようになっている。
R, G output from the A / D converter 16
The B signal is sent to the CPU 19 via the integrating circuit 35, is temporarily stored in the memory 18, and then is sent to the digital signal processing circuit 20 and the lightness / hue detection circuit 50. A multiplier 536 is provided between the integrating circuit 35 and the CPU 19.
R, 36G, and 36B are provided, and a multiplier 536 is provided.
Adjustment gain values for adjusting the variations of the devices are input to R, 36G, and 36B.

【0020】デジタル信号処理回路20は、同時化回路
21、ホワイトバランス調整回路22、ガンマ補正回路
23、YC信号作成回路24およびメモリ25を備えて
構成されている。同時化回路21は、メモリ18から読
み出された点順次のR、G、B信号を同時式に変換し、
R、G、B信号を同時にホワイトバランス調整回路22
に出力する。
The digital signal processing circuit 20 comprises a synchronizing circuit 21, a white balance adjusting circuit 22, a gamma correcting circuit 23, a YC signal generating circuit 24 and a memory 25. The synchronization circuit 21 converts the dot-sequential R, G, B signals read from the memory 18 into a simultaneous system,
White balance adjustment circuit 22 for R, G, B signals simultaneously
Output to.

【0021】ホワイトバランス調整回路22は、R、
G、B信号のデジタル値をそれぞれ増減するための乗算
器22R、22G、22Bから構成されており、R、
G、B信号は、それぞれ乗算器22R、22G、22B
に加えられる。乗算器22R、22G、22Bの他の入
力には、ホワイトバランスずれ補正回路30からゲイン
値Rg、Gg、Bgが加えられており、乗算器22R、
22G、22Bはそれぞれ2入力を乗算し、この乗算に
よってホワイトバランス調整されたR'、G'、B'信号
をガンマ補正回路23に出力する。
The white balance adjusting circuit 22 has R,
The multipliers 22R, 22G, and 22B for increasing and decreasing the digital values of the G and B signals, respectively,
The G and B signals are applied to multipliers 22R, 22G and 22B, respectively.
Added to. Gain values Rg, Gg, and Bg from the white balance deviation correction circuit 30 are added to the other inputs of the multipliers 22R, 22G, and 22B, respectively.
Each of 22G and 22B multiplies two inputs, and outputs R ′, G ′, and B ′ signals whose white balance has been adjusted by this multiplication to the gamma correction circuit 23.

【0022】ガンマ補正回路23は、ホワイトバランス
調整されたR'、G'、B'信号が所望のガンマ特性とな
るように入出力特性を変更し、また、10ビットの信号
が8ビットの信号となるように変更し、YC信号作成回
路24に出力する。YC信号作成回路24は、ガンマ補
正されたR、G、B信号から明度信号Yとクロマ信号C
r、Cbとを作成する。これらの明度信号Yとクロマ信
号Cr、Cb(YC信号)は、メモリ25に格納され
る。撮影時にメモリ25に格納されたYC信号は、図示
しない圧縮回路によって所定のフォーマットに圧縮され
たのち、メモリカードなどの記録媒体に記録される。
The gamma correction circuit 23 changes the input / output characteristics so that the white balance-adjusted R ', G', and B'signals have desired gamma characteristics, and a 10-bit signal is an 8-bit signal. And output to the YC signal generation circuit 24. The YC signal generation circuit 24 uses the gamma-corrected R, G, and B signals to output the lightness signal Y and the chroma signal C.
Create r and Cb. The lightness signal Y and the chroma signals Cr and Cb (YC signal) are stored in the memory 25. The YC signal stored in the memory 25 at the time of shooting is compressed into a predetermined format by a compression circuit (not shown) and then recorded on a recording medium such as a memory card.

【0023】明度・色相検出回路50は、メモリ18か
ら読み出されたR、G、B信号から被写体画像を複数エ
リアに小分割(ここでは64×64分割とする。)した
各エリアの色相データ(R、G、B)および明度データ
(Y)を作成して屋外屋内判別回路70に与える。
The lightness / hue detection circuit 50 subdivides the subject image into a plurality of areas (here, 64.times.64 divisions) from the R, G, and B signals read from the memory 18, and the hue data of each area. (R, G, B) and brightness data (Y) are created and given to the outdoor / indoor discrimination circuit 70.

【0024】屋外屋内判別回路70は、明度・色相検出
回路50からの色相データ(R、G、B)および明度デ
ータ(Y)に基づいて、撮影シーンが屋外のシーンであ
るか屋内のシーンであるかを判別し、その判別結果(撮
影シーン判別結果)をホワイトバランスずれ補正回路3
0および色温度判別回路60に与える。色温度判別回路
60へは、撮影シーン判別結果とともに明度・色相検出
回路50からの色相データ(R、G、B)および明度デ
ータ(Y)が与えられる。
The outdoor / indoor discrimination circuit 70 determines whether the shooting scene is an outdoor scene or an indoor scene based on the hue data (R, G, B) and the brightness data (Y) from the brightness / hue detection circuit 50. It is determined whether or not there is, and the determination result (shooting scene determination result) is the white balance deviation correction circuit 3
0 and color temperature discrimination circuit 60. To the color temperature discrimination circuit 60, the hue data (R, G, B) and the lightness data (Y) from the lightness / hue detection circuit 50 are given together with the photographing scene discrimination result.

【0025】色温度判別回路60は、屋外屋内判別回路
70により撮影シーンが屋内のシーンであると判別され
た場合に、色相データ(R、G、B)および明度データ
(Y)に基づいて被写体の色温度を7000から200
0度の範囲で判別し、その結果を緑判別回路40に送
る。
The color temperature discriminating circuit 60, when the outdoor / indoor discriminating circuit 70 discriminates that the photographed scene is an indoor scene, the color temperature discriminating circuit 60 is based on the hue data (R, G, B) and the lightness data (Y). Color temperature from 7000 to 200
It discriminates in the range of 0 degree and sends the result to the green discrimination circuit 40.

【0026】緑判別回路40は、色温度判別回路60に
より、被写体の色温度が白色蛍光灯の発光色と植物の緑
との中間の色温度(4000度付近)と判別された場合
に、明度・色相検出回路50により得られた被写体画像
の各エリアの色相データに基づいて、被写体の色相が植
物の緑であるか否かを判別する。緑判別回路40におけ
る判別処理および彩度データ作成処理の内容については
後で詳しく説明する。
When the color temperature determination circuit 60 determines that the color temperature of the subject is an intermediate color temperature (around 4000 degrees) between the emission color of the white fluorescent lamp and the green of the plant, the green determination circuit 40 determines the brightness. Based on the hue data of each area of the subject image obtained by the hue detection circuit 50, it is determined whether the hue of the subject is green of a plant. The details of the discrimination processing and the saturation data creation processing in the green discrimination circuit 40 will be described in detail later.

【0027】ホワイトバランスずれ補正回路30には、
屋内屋外判別回路70から撮影シーンが屋外のシーンで
あるか屋内のシーンであるかの判別結果が入力されると
ともに、緑判別回路40から撮影シーン判別結果に応じ
た補正値が入力される。ホワイトバランスずれ補正回路
30は、撮影シーン判別結果に応じてゲイン値Rg、G
g、Bgを決定し、そのゲイン値Rg、Gg、Bgを緑
判別回路40から与えられた補正値に応じて補正した
後、ホワイトバランス調整回路22に与える。補正値
は、撮影シーンが屋内のシーンであると判別された場合
におけるゲイン値Rg、Gg、Bgの補正の度合いを示
す。撮影シーンが屋外のシーンであると判別された場合
の補正値は0である。したがって、その場合は、撮影シ
ーン判別結果に応じて決定されたゲイン値Rg、Gg、
Bgがそのままホワイトバランス調整回路22に与えら
れる。
The white balance deviation correction circuit 30 includes
The indoor / outdoor discrimination circuit 70 inputs a discrimination result as to whether the shooting scene is an outdoor scene or an indoor scene, and the green discrimination circuit 40 inputs a correction value according to the shooting scene discrimination result. The white balance shift correction circuit 30 determines the gain values Rg and G according to the result of the shooting scene determination.
g, Bg are determined, and the gain values Rg, Gg, Bg are corrected according to the correction value given from the green discriminating circuit 40, and then given to the white balance adjusting circuit 22. The correction value indicates the degree of correction of the gain values Rg, Gg, and Bg when it is determined that the shooting scene is an indoor scene. The correction value is 0 when it is determined that the shooting scene is an outdoor scene. Therefore, in that case, the gain values Rg, Gg, and
Bg is given to the white balance adjusting circuit 22 as it is.

【0028】緑判別回路40は、第1判別処理部41、
第2判別処理部42および最終判定部45を有してい
る。第1判別処理部41は、色温度判別回路60によっ
て色温度が4000度付近と判断された被写体画像に対
して、各エリアの色相データ(RGB)から図3に示す
R/G−B/G座標上における色相分布近似直線の傾き
を求め、得られた傾きに基づいて、被写体の色相が植物
の緑であるか否かを判別し、その判別結果を最終判定部
45に送る。
The green discrimination circuit 40 includes a first discrimination processing section 41,
It has a second determination processing unit 42 and a final determination unit 45. The first discrimination processing unit 41, based on the hue data (RGB) of each area, for the subject image whose color temperature is determined to be around 4000 degrees by the color temperature discrimination circuit 60, R / G-B / G shown in FIG. The inclination of the hue distribution approximation line on the coordinates is obtained, based on the obtained inclination, it is determined whether the hue of the subject is green of a plant, and the determination result is sent to the final determination unit 45.

【0029】その際、緑判別回路40は、まず、被写体
画像を小分割した64×64個の色相データ(RGB)
のうちの何個が図3のR/G−B/G座標上の緑検出枠
81に入るかを調べ、所定数以上であれば、被写体の色
相が緑であると判別する。そして、最小2乗法を用いて
R/G−B/G座標上における64×64個の色相デー
タ(RGB)の分布近似直線の傾きを求め、分布例D1
のように傾きが正であれば被写体の色相が植物の緑であ
ると判別し、分布例D2のように傾きが負であれば白色
蛍光灯の発光色であると判別する。
At this time, the green discriminating circuit 40 firstly divides the subject image into small pieces and produces 64 × 64 pieces of hue data (RGB).
It is checked how many of them enter the green detection frame 81 on the R / GB / G coordinates in FIG. 3, and if the number is equal to or more than a predetermined number, it is determined that the hue of the subject is green. Then, using the least squares method, the slope of the distribution approximate straight line of 64 × 64 pieces of hue data (RGB) on the R / GB / G coordinates is obtained, and the distribution example D1
If the inclination is positive, the hue of the subject is determined to be green of the plant, and if the inclination is negative as in the distribution example D2, it is determined to be the emission color of the white fluorescent lamp.

【0030】撮影シーンが実際には屋外のシーンである
にもかかわらず屋内のシーンであると誤判別されるよう
なシーンは多くの場合青味の強い色相データ(RGB)
を多く含んでいるので、色相データ(RGB)はR/G
−B/G座標上のB/G値の大きいところからR/G
値、B/G値がともに小さいところに分布する。したが
って、このような撮影シーンの誤判別が起こるケースで
は、色相分布近似直線の傾きは正になる。一方、撮影シ
ーンが屋内のシーンである場合、光源に使用される白色
蛍光灯の発光色は黄色味が非常に強いので、色相データ
(RGB)は緑検出枠81内からR/G値が1に近くB
/G値が非常に小さいところまで分布する傾向がある。
したがって、この場合は色相分布近似直線の傾きは負に
なる。このように、色相分布近似直線の傾きから、被写
体の色相が植物の緑であるか白色蛍光灯の発光色である
かを判別することができる。
In many cases, hue data (RGB) having a strong blue tint is a scene in which a shooting scene is erroneously determined to be an indoor scene although it is actually an outdoor scene.
The hue data (RGB) is R / G because it contains a lot of
-R / G from the point where the B / G value on the B / G coordinate is large
Values and B / G values are both small. Therefore, in such a case where the photographic scene is erroneously discriminated, the slope of the hue distribution approximation line is positive. On the other hand, when the shooting scene is an indoor scene, the emission color of the white fluorescent lamp used as the light source has a very strong yellow color, so that the hue data (RGB) has an R / G value of 1 from within the green detection frame 81. Near B
/ G tends to be distributed up to a very small value.
Therefore, in this case, the gradient of the hue distribution approximation line is negative. In this way, it is possible to determine whether the hue of the subject is the green of a plant or the emission color of a white fluorescent lamp from the slope of the hue distribution approximation line.

【0031】第2判別処理部42は、図2に示すよう
に、Lab変換部43と領域判定部44とを有してい
る。Lab変換部43は、色温度判別回路60から送ら
れてきた色相データ(RGB)を彩度データ(Lab)
に変換して領域判定部44に与える。領域判定部44
は、図4に示すLab空間座標上の植物の緑の彩度分布
の範囲を示す緑検出領域82に入った彩度データ(La
b)の個数すなわちエリアの個数から被写体の彩度を求
め、その結果を最終判定部45に送る。
As shown in FIG. 2, the second discrimination processing section 42 has a Lab converting section 43 and an area determining section 44. The Lab conversion unit 43 converts the hue data (RGB) sent from the color temperature determination circuit 60 into the saturation data (Lab).
To the area determination unit 44. Area determination unit 44
Is the saturation data (La that enters the green detection area 82 indicating the range of the saturation distribution of the green of the plant on the Lab space coordinates shown in FIG. 4).
The saturation of the subject is obtained from the number in b), that is, the number of areas, and the result is sent to the final determination unit 45.

【0032】最終判定部45は、第1判別処理部41に
よる被写体の色相が植物の緑であるか否かの判別結果
と、第2判別処理部42により求められた被写体の彩度
とに基づいて、被写体の色相が植物の緑であるか否かを
最終的に判断し、被写体の彩度に応じた補正値をホワイ
トバランスずれ補正回路30に与える。
The final judgment section 45 is based on the judgment result by the first judgment processing section 41 as to whether or not the hue of the object is green of a plant, and the saturation of the object calculated by the second judgment processing section 42. Then, it is finally determined whether or not the hue of the subject is green of a plant, and a correction value according to the saturation of the subject is given to the white balance deviation correction circuit 30.

【0033】図4に示すように、Lab空間座標上の植
物の緑の彩度分布の範囲を示す緑検出領域82は彩度が
低めのA領域と彩度が高めのB領域とからなる。領域判
定部44から最終判定部45へは、被写体の彩度に関す
る情報としてA領域、B領域、それ以外の領域のそれぞ
れに入った彩度データ(Lab)の個数情報が送られ
る。最終判定部45は、A領域、B領域、それ以外の領
域のそれぞれに入った彩度データ(Lab)の個数の割
合に応じて補正値を決定する。すなわち、A領域に所定
数以上入った場合にはその数に比例してホワイトバラン
ス調整の度合いを強めるように補正値を決定し、B領域
に所定数以上入った場合にはその数に比例してホワイト
バランス調整の度合いを弱めるように補正値を決定す
る。
As shown in FIG. 4, the green detection area 82 showing the range of the saturation distribution of the green of the plant on the Lab space coordinate is composed of an area A having a low saturation and an area B having a high saturation. From the area determination unit 44 to the final determination unit 45, the number information of the saturation data (Lab) in each of the A area, the B area, and the other areas is sent as the information about the saturation of the subject. The final determination unit 45 determines the correction value according to the ratio of the number of saturation data (Lab) in each of the A area, the B area, and the other areas. That is, when a predetermined number or more is entered in the area A, a correction value is determined so as to enhance the degree of white balance adjustment in proportion to the number, and when a predetermined number or more is entered in the area B, the correction value is proportional to the number. To determine the correction value so as to weaken the degree of white balance adjustment.

【0034】CPU19は、シャッタボタン等を含むカ
メラ操作部31からの入力に基づいて各回路を統括制御
し、オートフォーカス制御、自動露光制御などの一連の
制御を実行してこのデジタルカメラの撮影動作を制御す
る。
The CPU 19 integrally controls each circuit based on an input from the camera operation unit 31 including a shutter button, etc., and executes a series of controls such as autofocus control and automatic exposure control to perform a photographing operation of this digital camera. To control.

【0035】カメラ操作部31には撮影モード選択ダイ
ヤルが設けられている。撮影モード選択ダイヤルを操作
することにより、撮影シーンをデジタルカメラが自動判
別して撮影を行うシーン自動判別モードと、撮影シーン
をユーザが自分で設定して撮影を行うマニュアル撮影モ
ードのいずれか一方を選択できるようになっている。マ
ニュアル撮影モードでは、さらに山のシーンの撮影に適
した山モードを選択できるようになっている。山モード
ではあらかじめ植物の緑をきれいに見せることができる
ように設定されたゲイン値Rg、Gg、BgがCPU1
9からホワイトバランス調整回路22に与えられるた
め、カラーフェリア現象が起こることはない。
The camera operation section 31 is provided with a photographing mode selection dial. By operating the shooting mode selection dial, either the automatic scene detection mode, in which the digital camera automatically determines the shooting scene and shooting, or the manual shooting mode, in which the user sets the shooting scene and shoots You can choose. In the manual shooting mode, it is possible to select a mountain mode more suitable for shooting a mountain scene. In the mountain mode, the gain values Rg, Gg, and Bg set in advance so that the green of the plant can be clearly seen are CPU1.
9 is applied to the white balance adjusting circuit 22, so that the color ferria phenomenon does not occur.

【0036】次に、上記のように構成されたデジタルカ
メラの動作について図5のフローチャートに従って説明
する。
Next, the operation of the digital camera configured as described above will be described with reference to the flowchart of FIG.

【0037】この実施の形態のデジタルカメラは、シー
ン自動判別モードで撮影操作がなされると、撮影を実行
するとともに(ステップS1)、屋外屋内判別回路70
にて撮影シーンが屋外のシーンであるか屋内のシーンで
あるかを判別する(ステップS2)。撮影シーン判別結
果はホワイトバランス制御回路30と色温度判別回路6
0とに送られる。屋外のシーンであると判別された場合
(ステップS2でYes)、色温度判別回路60は色温
度判別を行わず、屋外屋内判別回路70から受け取った
撮影シーン判別結果を緑判別回路40に渡す。撮影シー
ン判別結果を受け取った緑判別回路40は補正値0を示
す信号をホワイトバランス制御回路30に与える。その
結果、ホワイトバランス制御回路30内で屋外撮影シー
ン用に生成されたゲイン値Rg、Gg、Bgがそのまま
ホワイトバランス調整回路22に与えられる。この場
合、撮影された被写体画像はホワイトバランス調整回路
22にて屋外撮影シーン用のホワイトバランス調整がな
された後(ステップS3)、ガンマ補正回路23、YC
信号作成回路24およびメモリ25を経て、メモリカー
ドなどの記録媒体に記録される(ステップS10)。
When the photographing operation is performed in the automatic scene discrimination mode, the digital camera of this embodiment executes the photographing (step S1) and the outdoor / indoor discrimination circuit 70.
At, it is determined whether the shooting scene is an outdoor scene or an indoor scene (step S2). The result of the shooting scene determination is the white balance control circuit 30 and the color temperature determination circuit 6.
Sent to 0. When it is determined that it is an outdoor scene (Yes in step S2), the color temperature determination circuit 60 does not perform color temperature determination, and passes the shooting scene determination result received from the outdoor indoor determination circuit 70 to the green determination circuit 40. The green discriminating circuit 40 which has received the photographing scene discrimination result gives a signal indicating the correction value 0 to the white balance control circuit 30. As a result, the gain values Rg, Gg, Bg generated for the outdoor shooting scene in the white balance control circuit 30 are given to the white balance adjustment circuit 22 as they are. In this case, the photographed subject image is subjected to white balance adjustment for an outdoor shooting scene by the white balance adjustment circuit 22 (step S3), and then the gamma correction circuit 23, YC.
It is recorded on a recording medium such as a memory card through the signal generating circuit 24 and the memory 25 (step S10).

【0038】撮影シーンが屋内のシーンであると判別さ
れた場合は(ステップS2でNo)、色温度判別回路6
0にて被写体の色温度が判別される(ステップS4)。
その結果、被写体の色温度が白色蛍光灯の発光色と植物
の緑との中間の色温度(4000度付近)ではないと判
別された場合(ステップS4でNo)、緑判別回路40
は判別処理を行わず、補正値0を示す信号をホワイトバ
ランス制御回路30に与える。この場合、撮影された被
写体画像はホワイトバランス調整回路22にて屋内撮影
シーン用のホワイトバランス調整がなされた後(ステッ
プS5)、ガンマ補正回路23、YC信号作成回路24
およびメモリ25を経て、メモリカードなどの記録媒体
に記録される(ステップS10)。
When it is determined that the shooting scene is an indoor scene (No in step S2), the color temperature determination circuit 6
The color temperature of the subject is determined at 0 (step S4).
As a result, when it is determined that the color temperature of the subject is not the intermediate color temperature (around 4000 degrees) between the emission color of the white fluorescent lamp and the green of the plant (No in step S4), the green determination circuit 40.
Does not perform the discrimination process, and gives a signal indicating the correction value 0 to the white balance control circuit 30. In this case, the photographed subject image is subjected to white balance adjustment for an indoor photography scene by the white balance adjustment circuit 22 (step S5), and then the gamma correction circuit 23 and the YC signal creation circuit 24 are provided.
Then, it is recorded on a recording medium such as a memory card via the memory 25 (step S10).

【0039】被写体の色温度が白色蛍光灯の発光色と植
物の緑との中間の色温度(4000度付近)であると判
別された場合(ステップS4でYes)、緑判別回路4
0は第1判別処理部41にて、R/G−B/G座標上に
おける色相分布近似直線の傾きの正負から被写体の色相
が植物の緑であるか否かを判別するとともに(ステップ
S6)、第2判別処理部42にて、緑検出領域82(ス
テップ図4)のA領域、B領域、それ以外の領域のそれ
ぞれに入った彩度データ(Lab)の個数を求める彩度
判別処理を行い(ステップS7)、それぞれの結果を最
終判定部45に与える。
When it is determined that the color temperature of the subject is an intermediate color temperature between the emission color of the white fluorescent lamp and the green of the plant (around 4000 degrees) (Yes in step S4), the green determination circuit 4
In the case of 0, the first discrimination processing unit 41 discriminates whether or not the hue of the subject is the green of a plant based on whether the inclination of the hue distribution approximation line on the R / GB / G coordinates is positive or negative (step S6). In the second discrimination processing unit 42, the chroma discrimination processing for obtaining the number of chroma data (Lab) in each of the A area, the B area, and the other areas of the green detection area 82 (step FIG. 4) is performed. The process is performed (step S7), and each result is given to the final determination unit 45.

【0040】最終判定部45は、第1判別処理部41に
て植物の緑と判別されなかった場合、すなわち色相分布
近似直線の傾きが負であると判別された場合には(ステ
ップS8でNo)、被写体の色相が植物の緑ではないと
最終的に判断し、補正値0を示す信号をホワイトバラン
ス制御回路30に与える。この場合、撮影された被写体
画像はホワイトバランス調整回路22にて屋内撮影シー
ン用のホワイトバランス調整がなされた後(ステップS
5)、ガンマ補正回路23、YC信号作成回路24およ
びメモリ25を経て、メモリカードなどの記録媒体に記
録される(ステップS10)。
The final judgment section 45 judges that the first judgment processing section 41 does not judge that the plant is green, that is, if the slope of the hue distribution approximation line is negative (No in step S8). ), It is finally determined that the hue of the subject is not green of a plant, and a signal showing a correction value 0 is given to the white balance control circuit 30. In this case, the photographed subject image is subjected to white balance adjustment for an indoor photography scene by the white balance adjustment circuit 22 (step S
5), through the gamma correction circuit 23, the YC signal generation circuit 24, and the memory 25, it is recorded on a recording medium such as a memory card (step S10).

【0041】第1判別処理部41にて植物の緑と判別さ
れた場合、すなわち色相分布近似直線の傾きが正である
と判別された場合(ステップS6でYes)、判断部4
5は、彩度判別処理(ステップS7)の結果に基づいて
被写体の色相が植物の緑であるか否かを最終的に判断す
る(ステップS8)。ここで被写体の色相が植物の緑で
はないと最終的に判断された場合も(ステップS8でN
o)、判断部45から補正値0を示す信号がホワイトバ
ランス制御回路30に与えられる。そして、撮影された
被写体画像はホワイトバランス調整回路22にて屋内撮
影シーン用のホワイトバランス調整がなされた後(ステ
ップS5)、ガンマ補正回路23、YC信号作成回路2
4およびメモリ25を経て、メモリカードなどの記録媒
体に記録される(ステップS10)。
When the first discrimination processing unit 41 discriminates that the plant is green, that is, when the inclination of the hue distribution approximation line is positive (Yes in step S6), the discrimination unit 4 is determined.
5 finally determines whether or not the hue of the subject is green of a plant based on the result of the saturation determination process (step S7) (step S8). Even when it is finally determined that the hue of the subject is not the green of the plant (N in step S8)
o), a signal indicating the correction value 0 is given from the judgment unit 45 to the white balance control circuit 30. Then, the photographed subject image is subjected to white balance adjustment for an indoor photographing scene by the white balance adjustment circuit 22 (step S5), and then the gamma correction circuit 23 and the YC signal generation circuit 2
It is recorded on a recording medium such as a memory card through the memory 4 and the memory 25 (step S10).

【0042】最終判定部45は、被写体の色相が植物の
緑であると最終的に判断した場合(ステップS8でYe
s)、被写体の彩度に応じた補正値をホワイトバランス
ずれ補正回路30に与える。この補正値は、被写体の彩
度が大きいほど、すなわち被写体の色相が植物の緑であ
る可能性が高く、緑色の光源の発光色である可能性が低
いほど、ホワイトバランス調整の度合いを弱めるよう決
定される。
When the final judging section 45 finally judges that the hue of the subject is green of the plant (Yes in step S8).
s), a correction value according to the saturation of the subject is given to the white balance deviation correction circuit 30. This correction value weakens the degree of white balance adjustment as the saturation of the subject is higher, that is, the hue of the subject is more likely to be green of plants and less likely to be the emission color of the green light source. It is determined.

【0043】ホワイトバランスずれ補正回路30は、ま
ず屋内撮影シーン用のゲイン値Rg、Gg、Bgを生成
し、そのゲイン値Rg、Gg、Bgを緑判別回路40の
最終判定部45から受け取った補正値に応じて補正した
後、ホワイトバランス調整回路22に与える。すなわ
ち、この場合、撮影された被写体画像に対して、ホワイ
トバランス調整回路22にて屋内撮影シーン用のホワイ
トバランス調整がなされるが、その際、緑判別回路40
から受け取った補正値に応じて、被写体の色相が植物の
緑である可能性が高く、水銀灯の発光色である可能性が
低いほど、ホワイトバランス調整の度合いを弱めるよう
に、ゲイン値Rg、Gg、Bgが補正される。そして、
補正されたゲイン値Rg、Gg、Bgに応じてホワイト
バランス調整回路22にて屋内撮影シーン用のホワイト
バランス調整(彩度に応じたホワイトバランス調整)が
なされた後(ステップS9)、ガンマ補正回路23、Y
C信号作成回路24およびメモリ25を経て、メモリカ
ードなどの記録媒体に記録される(ステップS10)。
The white balance shift correction circuit 30 first generates gain values Rg, Gg, Bg for indoor shooting scenes, and receives the gain values Rg, Gg, Bg from the final determination section 45 of the green determination circuit 40. The value is corrected according to the value and then applied to the white balance adjustment circuit 22. That is, in this case, the white balance adjustment circuit 22 performs white balance adjustment for an indoor shooting scene on the photographed subject image.
The gain values Rg and Gg are set so that the degree of white balance adjustment is weakened according to the correction value received from the subject, as the hue of the subject is likely to be green of a plant and the emission color of the mercury lamp is less likely to be. , Bg are corrected. And
After the white balance adjustment circuit 22 performs white balance adjustment (white balance adjustment according to saturation) in accordance with the corrected gain values Rg, Gg, and Bg (step S9), the gamma correction circuit 23, Y
It is recorded on a recording medium such as a memory card via the C signal generating circuit 24 and the memory 25 (step S10).

【0044】このように上記実施の形態では、屋外屋内
判別回路70にて撮影シーンが屋内であると判別された
場合であっても、色温度判別回路60にて被写体の色温
度が白色蛍光灯の発光色と植物の緑との中間の色温度
(4000度付近)であると判別された場合には、緑判
別回路40にてその被写体の色相が植物の緑であるか否
かを更に判別し、その結果、植物の緑であると判別され
た場合、ホワイトバランスずれ補正回路30によってホ
ワイトバランス調整の度合いを屋内撮影用のホワイトバ
ランス調整の度合いよりも弱くするようにした。これに
より、撮影シーンが実際には屋外のシーンであるにもか
かわらず屋内のシーンであると誤判別してしまった場合
でも、屋外の植物の緑を屋内照明に使用される白色蛍光
灯の発光色と誤認することを防止でき、色の再現性を悪
化させないようにホワイトバランスを自動調整して撮影
を行うことができる。
As described above, in the above embodiment, even when the outdoor / indoor discrimination circuit 70 discriminates that the shooting scene is indoors, the color temperature discrimination circuit 60 determines that the color temperature of the subject is a white fluorescent lamp. When it is determined that the color temperature is between the luminescent color of the green color and the green color of the plant (around 4000 degrees), the green determination circuit 40 further determines whether the hue of the subject is the green color of the plant. Then, as a result, when it is determined that the color of the plant is green, the white balance deviation correction circuit 30 makes the degree of white balance adjustment weaker than the degree of white balance adjustment for indoor shooting. As a result, even if the shooting scene is mistakenly determined to be an indoor scene even though it is an outdoor scene, the green color of the outdoor plant is regarded as the emission color of the white fluorescent lamp used for indoor lighting. It is possible to prevent misidentification, and it is possible to shoot by automatically adjusting the white balance so as not to deteriorate the color reproducibility.

【0045】よって、撮影シーンが屋外のシーンである
か屋内のシーンであるかを判別してその判別結果に応じ
てホワイトバランスを自動調整する場合に、屋外の植物
の緑のシーンを屋内のシーンであると誤判別したことに
起因するカラーフェリアを防止できる。
Therefore, when it is determined whether the shooting scene is an outdoor scene or an indoor scene and the white balance is automatically adjusted according to the result of the determination, the green scene of the outdoor plant is changed to the indoor scene. Therefore, it is possible to prevent color ferria due to the erroneous determination that

【0046】しかも、上記実施の形態では、緑判別回路
40内の第1判定処理部41にて被写体の各エリアの色
相データから求めたR/G−B/G座標上における色相
分布近似直線の傾きに基づいて被写体の色相が植物の緑
であるか否かを判定するとともに、第2判定処理部42
にて被写体の彩度を求め、両判定処理部41、42の判
定結果に基づいて、最終判定部45にて被写体の色相が
植物の緑であるか否かを最終的に判断するようにしたの
で、緑色の光源の発光色を植物の緑であると誤判別して
しまうのを防止できる。
Moreover, in the above embodiment, the approximate straight line of the hue distribution on the R / GB / G coordinates obtained from the hue data of each area of the subject by the first determination processing unit 41 in the green discrimination circuit 40. Based on the inclination, it is determined whether the hue of the subject is green of a plant, and the second determination processing unit 42
Then, the saturation of the subject is obtained, and based on the determination results of both determination processing units 41 and 42, the final determination unit 45 finally determines whether or not the hue of the subject is green of plants. Therefore, it is possible to prevent the emission color of the green light source from being erroneously determined to be the green color of the plant.

【0047】さらに、上記実施の形態では、被写体の色
相が植物の緑である可能性が高く、水銀灯の発光色であ
る可能性が低いほど、ホワイトバランス調整の度合いを
弱めるようにしたので、極めて良好な色再現性を実現で
きる。
Further, in the above-described embodiment, the degree of white balance adjustment is weakened as the hue of the subject is likely to be green of a plant and the emission color of the mercury lamp is less likely to occur. Good color reproducibility can be realized.

【0048】なお、上記の実施の形態のデジタルカメラ
は、カラーフェリア現象の発生を防止するための専用の
回路、すなわちホワイトバランスずれ補正回路30、緑
判別回路40、明度・色相検出回路50、色温度判別回
路60および屋外屋内判別回路70を備えているが、こ
れらの回路の機能をCPU19によって実現するように
してもよい。
In the digital camera of the above embodiment, a dedicated circuit for preventing the occurrence of the color ferria phenomenon, that is, the white balance deviation correction circuit 30, the green discrimination circuit 40, the brightness / hue detection circuit 50, the color Although the temperature determination circuit 60 and the outdoor / indoor determination circuit 70 are provided, the functions of these circuits may be realized by the CPU 19.

【0049】また、緑色の光源下で撮影が行われること
を考慮しないならば、緑判別回路40内の第2判定処理
部42および最終判定部45は省略してもよい。すなわ
ち、緑判別回路40に第1判定処理部41の機能だけを
持たせるようにしてもよい。
The second determination processing section 42 and the final determination section 45 in the green determination circuit 40 may be omitted if it is not taken into consideration that photographing is performed under a green light source. That is, the green discriminating circuit 40 may have only the function of the first discriminating processing unit 41.

【0050】[0050]

【発明の効果】以上説明したように本発明によれば、暗
い森や林の中など、撮影シーンが実際には屋外のシーン
であるにもかかわらず屋内のシーンであると誤判別する
おそれのある場合においても、ホワイトバランスを適切
に自動調整することが可能なデジタルカメラを提供でき
る効果がある。
As described above, according to the present invention, there is a risk of misidentifying an indoor scene such as a dark forest or a forest even though the shooting scene is actually an outdoor scene. Even in some cases, it is possible to provide a digital camera capable of automatically adjusting the white balance appropriately.

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

【図1】本発明の一実施の形態に係るデジタルカメラの
機能的構成を例示するブロック図である。
FIG. 1 is a block diagram illustrating a functional configuration of a digital camera according to an embodiment of the present invention.

【図2】図1中の第2判別処理部の構成例を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a configuration example of a second determination processing section in FIG.

【図3】R/G−B/G座標上における各種光源の発光
色や各種被写体の色相検出枠を示した図である。
FIG. 3 is a diagram showing emission colors of various light sources and hue detection frames of various subjects on R / GB / G coordinates.

【図4】色の彩度を示すLab空間座標上における緑検
出領域を示した図である。
FIG. 4 is a diagram showing a green detection area on a Lab space coordinate indicating color saturation.

【図5】図1のデジタルカメラの動作内容を示すフロー
チャートである。
5 is a flowchart showing the operation contents of the digital camera of FIG.

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

18 メモリ 19 CPU 20 デジタル信号処理回路 22 ホワイトバランス調整回路 30 ホワイトバランスずれ補正回路 35 積算回路 40 緑判別回路 41 第1判別処理部 42 第2判別処理部 45 最終判定部 43 Lab変換部 44 領域判定部 50 明度・色相検出回路 60 色温度判別回路 70 屋外屋内判別回路 81 緑検出枠 82 緑検出領域 18 memory 19 CPU 20 Digital signal processing circuit 22 White balance adjustment circuit 30 White balance deviation correction circuit 35 integrating circuit 40 Green discrimination circuit 41 First Discrimination Processing Unit 42 Second Discrimination Processing Unit 45 Final judgment section 43 Lab converter 44 area determination unit 50 brightness / hue detection circuit 60 color temperature discrimination circuit 70 Outdoor / indoor discrimination circuit 81 Green detection frame 82 Green detection area

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 被写体の明度を検出する明度検出手段
と、 前記被写体の画像を複数のエリアに分割して各エリアの
色相を検出する色相検出手段と、 前記明度検出手段により得られた明度データと前記色相
検出手段により得られた各エリアの色相データとに基づ
いて撮影シーンが屋外のシーンであるか屋内のシーンで
あるかを判別する屋外屋内判別手段と、 前記屋外屋内判別手段により屋内のシーンと判別された
場合に、前記明度データと前記色相データとに基づいて
前記被写体の色温度を判別する色温度判別手段と、 前記色温度判別手段により白色蛍光灯の発光色の色温度
と判別された場合に、前記各エリアの色相データのR/
G−B/G座標上における分布に応じて、前記被写体の
色相が緑であるか否かを判別する緑判別手段と、 前記緑判別手段により前記被写体の色相が緑であると判
別された場合に、前記ホワイトバランス調整手段による
ホワイトバランス調整の度合いを弱くするホワイトバラ
ンスずれ補正手段と、 を備えたことを特徴とするデジタルカメラ。
1. A lightness detecting means for detecting the lightness of a subject, a hue detecting means for dividing an image of the subject into a plurality of areas to detect a hue of each area, and lightness data obtained by the lightness detecting means. And an indoor / outdoor discrimination unit for discriminating whether the shooting scene is an outdoor scene or an indoor scene based on the hue data of each area obtained by the hue detection unit, and the indoor / outdoor discrimination unit by the outdoor / indoor discrimination unit. When it is determined to be a scene, a color temperature determination unit that determines the color temperature of the subject based on the lightness data and the hue data; and a color temperature determination unit that determines the color temperature of the emission color of the white fluorescent lamp. R / of the hue data of each area
When the hue of the subject is determined to be green by the green determination means that determines whether the hue of the subject is green according to the distribution on the GB / G coordinates. A digital camera, further comprising: a white balance deviation correction unit that weakens the degree of white balance adjustment by the white balance adjustment unit.
【請求項2】 前記緑判別手段は、前記色相検出手段に
より得られた各エリアの色相データからR/G−B/G
座標上における色相分布近似直線の傾きを求め、その傾
きに基づいて前記被写体の色相が緑であるか否かを判別
することを特徴とする請求項1に記載のデジタルカメ
ラ。
2. The green discriminating means uses R / G-B / G from the hue data of each area obtained by the hue detecting means.
The digital camera according to claim 1, wherein a slope of the hue distribution approximation line on the coordinates is obtained, and whether or not the hue of the subject is green is determined based on the slope.
【請求項3】 前記緑判別手段は、前記色相検出手段に
より得られた各エリアの色相データを彩度データに変換
し、緑の彩度分布の範囲を示す緑検出領域に入るデータ
の個数から前記被写体の彩度を判定し、その判定結果と
前記傾きとに基づいて前記被写体の色相が緑であるか否
かを判別することを特徴とする請求項1または2に記載
のデジタルカメラ。
3. The green discriminating means converts the hue data of each area obtained by the hue detecting means into saturation data, and determines the number of pieces of data in the green detection area indicating the range of saturation distribution of green. 3. The digital camera according to claim 1, wherein the saturation of the subject is determined, and whether the hue of the subject is green is determined based on the determination result and the inclination.
JP2002061990A 2002-03-07 2002-03-07 Digital camera Expired - Fee Related JP3821729B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002061990A JP3821729B2 (en) 2002-03-07 2002-03-07 Digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002061990A JP3821729B2 (en) 2002-03-07 2002-03-07 Digital camera

Publications (2)

Publication Number Publication Date
JP2003264850A true JP2003264850A (en) 2003-09-19
JP3821729B2 JP3821729B2 (en) 2006-09-13

Family

ID=29195987

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002061990A Expired - Fee Related JP3821729B2 (en) 2002-03-07 2002-03-07 Digital camera

Country Status (1)

Country Link
JP (1) JP3821729B2 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004274367A (en) * 2003-03-07 2004-09-30 Fuji Photo Film Co Ltd Digital camera
JP2005142890A (en) * 2003-11-07 2005-06-02 Fuji Photo Film Co Ltd White balance adjusting method and image processing apparatus
JP2007043364A (en) * 2005-08-02 2007-02-15 Konica Minolta Photo Imaging Inc Imaging device
US7423674B2 (en) 2003-12-08 2008-09-09 Nikon Corporation Electronic camera having color adjustment function and program therefor
US7714902B2 (en) 2004-02-10 2010-05-11 Casio Computer Co., Ltd. Image pick-up apparatus, method of controlling white balance, and program of controlling white balance
CN1863321B (en) * 2005-05-11 2010-05-12 索尼株式会社 White balance controlling apparatus, method and image pickup apparatus
US8111302B2 (en) 2007-12-11 2012-02-07 Olympus Corporation White balance control apparatus and method
JP2013172308A (en) * 2012-02-21 2013-09-02 Ricoh Co Ltd Image processing device, image processing method, image processing program, and recording medium having image processing program recorded therein in computer executable form
CN104168468A (en) * 2013-11-08 2014-11-26 深圳市中兴移动通信有限公司 White-balance adjusting method and device
CN105611265A (en) * 2016-02-16 2016-05-25 上海斐讯数据通信技术有限公司 White balance regulation device and white balance regulation method
CN105898260A (en) * 2016-04-07 2016-08-24 广东欧珀移动通信有限公司 Method and device of adjusting camera white balance
CN107343195A (en) * 2017-07-10 2017-11-10 广东欧珀移动通信有限公司 Photographed scene detection method, device and its equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07162890A (en) * 1993-12-08 1995-06-23 Matsushita Electric Ind Co Ltd White balance adjusting device
JPH0823461A (en) * 1994-07-06 1996-01-23 Sony Corp Video camera
JPH11122631A (en) * 1991-07-16 1999-04-30 Fuji Photo Film Co Ltd Image photographing device
JP2000224608A (en) * 1999-02-02 2000-08-11 Fuji Photo Film Co Ltd Automatic white balance control method
JP2001103508A (en) * 1999-09-28 2001-04-13 Nikon Corp Digital camera

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11122631A (en) * 1991-07-16 1999-04-30 Fuji Photo Film Co Ltd Image photographing device
JPH07162890A (en) * 1993-12-08 1995-06-23 Matsushita Electric Ind Co Ltd White balance adjusting device
JPH0823461A (en) * 1994-07-06 1996-01-23 Sony Corp Video camera
JP2000224608A (en) * 1999-02-02 2000-08-11 Fuji Photo Film Co Ltd Automatic white balance control method
JP2001103508A (en) * 1999-09-28 2001-04-13 Nikon Corp Digital camera

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004274367A (en) * 2003-03-07 2004-09-30 Fuji Photo Film Co Ltd Digital camera
JP2005142890A (en) * 2003-11-07 2005-06-02 Fuji Photo Film Co Ltd White balance adjusting method and image processing apparatus
US7423674B2 (en) 2003-12-08 2008-09-09 Nikon Corporation Electronic camera having color adjustment function and program therefor
US7714902B2 (en) 2004-02-10 2010-05-11 Casio Computer Co., Ltd. Image pick-up apparatus, method of controlling white balance, and program of controlling white balance
CN1863321B (en) * 2005-05-11 2010-05-12 索尼株式会社 White balance controlling apparatus, method and image pickup apparatus
JP4752381B2 (en) * 2005-08-02 2011-08-17 コニカミノルタオプト株式会社 Imaging device
JP2007043364A (en) * 2005-08-02 2007-02-15 Konica Minolta Photo Imaging Inc Imaging device
US8111302B2 (en) 2007-12-11 2012-02-07 Olympus Corporation White balance control apparatus and method
JP2013172308A (en) * 2012-02-21 2013-09-02 Ricoh Co Ltd Image processing device, image processing method, image processing program, and recording medium having image processing program recorded therein in computer executable form
CN104168468A (en) * 2013-11-08 2014-11-26 深圳市中兴移动通信有限公司 White-balance adjusting method and device
CN104168468B (en) * 2013-11-08 2018-12-21 努比亚技术有限公司 white balance adjustment method and device
CN105611265A (en) * 2016-02-16 2016-05-25 上海斐讯数据通信技术有限公司 White balance regulation device and white balance regulation method
CN105898260A (en) * 2016-04-07 2016-08-24 广东欧珀移动通信有限公司 Method and device of adjusting camera white balance
CN107343195A (en) * 2017-07-10 2017-11-10 广东欧珀移动通信有限公司 Photographed scene detection method, device and its equipment
CN107343195B (en) * 2017-07-10 2019-03-19 Oppo广东移动通信有限公司 Photographed scene detection method, device and its equipment

Also Published As

Publication number Publication date
JP3821729B2 (en) 2006-09-13

Similar Documents

Publication Publication Date Title
JP3849834B2 (en) Auto white balance control method
EP1351524B1 (en) Method for automatic white balance of digital images
US7084907B2 (en) Image-capturing device
US7030913B2 (en) White balance control apparatus and method, and image pickup apparatus
EP2426927B1 (en) Image processing apparatus, image processing method and computer program
KR100478064B1 (en) Illumination light color estimating method of obtaining white balance and image sensing apparatus
US20070139532A1 (en) Digital camera, gain-computing device and method
JPH07298286A (en) Image pickup device
US8810681B2 (en) Image processing apparatus and image processing method
JP2007036462A (en) Image processing apparatus
JP3821729B2 (en) Digital camera
JP2004312139A (en) Imaging unit
JP4029206B2 (en) Imaging device
JP2003333616A (en) White balance adjustment method, image pickup device, program, and storage medium
JP2003163944A (en) White balance-control method and digital camera
JP2004297650A (en) Control method of white balance and digital camera
JPH11262029A (en) Image-pickup device and signal processing unit
JP4649734B2 (en) Video signal processing apparatus and recording medium on which video signal processing program is recorded
JP3958700B2 (en) Digital camera
JP2007043364A (en) Imaging device
JP3554069B2 (en) Imaging device
KR100581526B1 (en) A digital still camera operating white correction in response to variable light source
JP4385240B2 (en) Auto white balance control method for digital camera and digital camera
JPH08242459A (en) Light source information collectng device and image pickup device using the same
JP3903095B2 (en) White balance control method and digital camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040316

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060324

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060609

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060620

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3821729

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090630

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20090630

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090630

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100630

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20100630

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110630

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20110630

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120630

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120630

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130630

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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