JP2001103508A - Digital camera - Google Patents

Digital camera

Info

Publication number
JP2001103508A
JP2001103508A JP27511899A JP27511899A JP2001103508A JP 2001103508 A JP2001103508 A JP 2001103508A JP 27511899 A JP27511899 A JP 27511899A JP 27511899 A JP27511899 A JP 27511899A JP 2001103508 A JP2001103508 A JP 2001103508A
Authority
JP
Japan
Prior art keywords
gain
image
data
color
image data
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
JP27511899A
Other languages
Japanese (ja)
Other versions
JP4487342B2 (en
Inventor
Hideo Hojuyama
秀雄 宝珠山
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.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP27511899A priority Critical patent/JP4487342B2/en
Priority to US09/503,917 priority patent/US6906744B1/en
Publication of JP2001103508A publication Critical patent/JP2001103508A/en
Application granted granted Critical
Publication of JP4487342B2 publication Critical patent/JP4487342B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To decide a white balance adjustment gain of a digital camera by analyzing photographed scene. SOLUTION: The digital camera is provided with a photographing purpose image pickup device 73 that picks up an image of an object passing through a photographing lens 90 to provide an output of image data, an analysis purpose image pickup device 86 that is placed at a position conjugate to the photographing purpose image pickup device 73 with respect to the photographing lens 90 and receives the object image to provide an output of scene analysis image data, and a scene detection processing circuit 35 (Figure 2) that decides a white balance adjustment gain on the basis of the scene analysis image data outputted from the analysis purpose image pickup device 86. The white balance adjustment is applied to image data outputted from the photographing purpose image pickup device 73 on the basis of the white balance adjustment gain decided by the scene detection processing circuit 35 (Figure 2).

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 which images a subject and records the image as electronic image data.

【0002】[0002]

【従来の技術】撮影レンズを通過した被写体像を撮像し
て画像データを出力するCCDのような撮像装置と、撮
像装置から出力される画像データに対する増幅利得を調
整してホワイトバランス調整やγ補正などの画像処理を
施す画像処理回路とを備えるデジタルカメラが知られて
いる。画像処理回路では、撮像装置から出力される画像
データに基づいて、あらかじめ定めたアルゴリズムによ
りホワイトバランス調整用のRゲインやBゲイン、ある
いはγ補正用の階調カーブなどのパラメータを算出して
画像処理が行われる。
2. Description of the Related Art An image pickup device such as a CCD for picking up an image of a subject passing through a photographing lens and outputting image data, and adjusting an amplification gain for image data output from the image pickup device to adjust white balance and γ. 2. Description of the Related Art There is known a digital camera including an image processing circuit for performing image processing such as the above. The image processing circuit calculates parameters such as R gain and B gain for white balance adjustment or a gradation curve for γ correction based on image data output from the imaging device by a predetermined algorithm. Is performed.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のデジタ
ルカメラでは、撮像された主要被写体および背景などの
色彩情報を平均して無彩色とするようにホワイトバラン
ス調整係数を算出し、算出された調整係数を用いて画像
データに対するホワイトバランス調整が行われる。この
ようなカメラで人物を撮影するとき、被写界に占める顔
などの肌色部分の割合が小さい場合は、主として肌色以
外の色彩情報からホワイトバランス調整値が算出される
ので、ホワイトバランス調整係数が肌色部分に対して調
整不良を生じやすく、色落ちおよび色かぶり画像が発生
するおそれがある。
In the above-described conventional digital camera, a white balance adjustment coefficient is calculated so that color information such as a captured main subject and a background is averaged to obtain an achromatic color, and the calculated adjustment is performed. White balance adjustment is performed on the image data using the coefficients. When photographing a person with such a camera, if the proportion of the skin color portion such as the face in the object scene is small, the white balance adjustment value is calculated mainly from the color information other than the skin color. Incorrect adjustment is likely to occur in a flesh-colored part, and color fading and a color cast image may occur.

【0004】本発明の目的は、撮影シーンを解析してホ
ワイトバランス調整を行い、色落ち、色かぶり現象を十
分に抑制できるようにしたデジタルカメラを提供するこ
とにある。
An object of the present invention is to provide a digital camera which analyzes a photographic scene, performs white balance adjustment, and can sufficiently suppress color fading and color cast.

【0005】[0005]

【課題を解決するための手段】一実施の形態を示す図1
〜図3に対応づけて本発明を説明する。 (1)請求項1の発明によるデジタルカメラは、撮影レ
ンズ90を通過する被写体像を撮像して画像データを出
力する撮影用撮像装置73と、撮影レンズ90に対して
撮影用撮像装置73と共役な位置に配設され、被写体像
を受光してシーン解析用画像データを出力する解析用撮
像装置86と、シーン解析用画像の大きな領域のデータ
およびシーン解析用画像の小さな領域のデータの少なく
とも一方を用いてゲインを算出するゲイン算出手段35
Cと、撮影用撮像装置73から出力された画像データに
対してゲイン算出手段35Cで算出されたゲインをかけ
てゲイン調整を行うゲイン調整手段103とを備えるこ
とにより、上述した目的を達成する。 (2)請求項2の発明は、請求項1に記載のデジタルカ
メラにおいて、ゲイン算出手段35Cは、シーン解析用
画像の大きな領域および小さな領域のいずれか一方を被
写体に応じて選択し、選択した領域のデータを用いてゲ
インを算出することを特徴とする。 (3)請求項3の発明によるデジタルカメラは、撮影レ
ンズ90を通過する被写体像を撮像して画像データを出
力する撮影用撮像装置73と、撮影レンズ90に対して
撮影用撮像装置73と共役な位置に配設され、被写体像
を受光してシーン解析用画像データを出力する解析用撮
像装置86と、シーン解析用画像のデータから少なくと
も2色を検出する検出手段35Cと、検出手段35Cで
検出された少なくとも1色を用いてゲインを算出するゲ
イン算出手段35Cと、撮影用撮像装置73から出力さ
れた画像データに対してゲイン算出手段35Cで算出さ
れたゲインをかけてゲイン調整を行うゲイン調整手段1
03とを備えることにより、上述した目的を達成する。 (4)請求項4の発明は、請求項3に記載のデジタルカ
メラにおいて、検出手段35Cは少なくとも肌色を検出
し、ゲイン算出手段35Cは肌色を用いてゲインを算出
することを特徴とする。 (5)請求項5の発明は、請求項3に記載のデジタルカ
メラにおいて、ゲイン算出手段35Cは、検出手段35
Cで検出された2色のいずれか一方を被写体に応じて選
択し、選択した色を用いてゲインを算出することを特徴
とする。 (6)請求項6の発明によるデジタルカメラは、撮影レ
ンズ90を通過する被写体像を撮像して画像データを出
力する撮影用撮像装置73と、撮影レンズ90に対して
撮影用撮像装置73と共役な位置に配設され、被写体像
を受光してシーン解析用画像データを出力する解析用撮
像装置86と、シーン解析用画像のデータを色に関する
第1の座標系および第2の座標系に変換する変換手段3
5Cと、変換手段35Cで変換された少なくとも1つの
座標系を用いてゲインを算出するゲイン算出手段35C
と、撮影用撮像装置73から出力された画像データに対
してゲイン算出手段35Cで算出されたゲインをかけて
ゲイン調整を行うゲイン調整手段103とを備えること
により、上述した目的を達成する。 (7)請求項7の発明は、請求項6に記載のデジタルカ
メラにおいて、ゲイン算出手段35Cは、第1および第
2の座標系のいずれか一方を被写体に応じて選択し、選
択した座標系を用いてゲインを算出することを特徴とす
る。 (8)請求項8の発明によるデジタルカメラは、撮影レ
ンズ90を通過する被写体像を撮像して画像データを出
力する撮影用撮像装置73と、撮影レンズ90に対して
撮影用撮像装置73と共役な位置に配設され、被写体像
を受光してシーン解析用画像データを出力する解析用撮
像装置86と、シーン解析用画像の所定の領域のデータ
を色に関する第1の座標系および第2の座標系に変換す
る変換手段35Cと、変換手段35Cで用いられた領域
の大きさに応じて第1および第2の座標系のいずれか一
方を選択し、選択した座標系を用いてゲインを算出する
ゲイン算出手段35Cと、撮影用撮像装置73から出力
された画像データに対してゲイン算出手段35Cで算出
されたゲインをかけてゲイン調整を行うゲイン調整手段
103とを備えることにより、上述した目的を達成す
る。 (9)請求項9の発明は、請求項8に記載のデジタルカ
メラにおいて、変換手段35Cは、使用するシーン解析
用画像の領域の大きさを被写体に応じて変えることを特
徴とする。
FIG. 1 shows an embodiment of the present invention.
The present invention will be described with reference to FIG. (1) The digital camera according to the first aspect of the present invention captures an image of a subject passing through the imaging lens 90 and outputs image data. And an analysis imaging device 86 that receives a subject image and outputs scene analysis image data, and at least one of data of a large area of the scene analysis image and data of a small area of the scene analysis image Calculating means 35 for calculating a gain by using
The object described above is achieved by including C and a gain adjustment unit 103 that performs gain adjustment by multiplying the image data output from the imaging device 73 by the gain calculated by the gain calculation unit 35C. (2) In the digital camera according to the first aspect, in the digital camera according to the first aspect, the gain calculating unit 35C selects and selects one of a large area and a small area of the scene analysis image according to the subject. It is characterized in that the gain is calculated using the data of the area. (3) The digital camera according to the third aspect of the invention is a photographic imaging device 73 that captures a subject image passing through the photographic lens 90 and outputs image data, and a conjugate of the photographic lens 90 and the photographic imaging device 73. The image pickup device 86 for analysis, which is provided at an appropriate position and receives a subject image and outputs image data for scene analysis, detection means 35C for detecting at least two colors from data of the image for scene analysis, and detection means 35C A gain calculating unit 35C for calculating a gain using at least one detected color, and a gain for performing a gain adjustment by multiplying the image data output from the imaging device 73 by the gain calculated by the gain calculating unit 35C. Adjusting means 1
03, the above-described object is achieved. (4) According to a fourth aspect of the present invention, in the digital camera according to the third aspect, the detecting means 35C detects at least a flesh color, and the gain calculating means 35C calculates a gain using the flesh color. (5) According to a fifth aspect of the present invention, in the digital camera according to the third aspect, the gain calculating means (35C) comprises a detecting means (35).
One of the two colors detected in C is selected according to the subject, and the gain is calculated using the selected color. (6) The digital camera according to claim 6 captures an image of a subject passing through the photographic lens 90 and outputs image data, and the photographic lens 90 is conjugated to the photographic imaging device 73. And an image pickup device 86 for receiving scene images and outputting image data for scene analysis, and converting data of the image for scene analysis into a first coordinate system and a second coordinate system related to color. Conversion means 3
5C and gain calculating means 35C for calculating a gain using at least one coordinate system converted by the converting means 35C.
The above-mentioned object is achieved by providing a gain adjustment unit 103 that performs gain adjustment by multiplying the image data output from the imaging device 73 by the gain calculated by the gain calculation unit 35C. (7) In the digital camera according to the sixth aspect of the present invention, in the digital camera according to the sixth aspect, the gain calculating unit 35C selects one of the first and second coordinate systems according to the subject, and selects the selected coordinate system. Is used to calculate the gain. (8) The digital camera according to the eighth aspect of the present invention is a photographic imaging device 73 that captures a subject image passing through the photographic lens 90 and outputs image data, and a conjugate of the photographic lens 90 and the photographic imaging device 73. And an image pickup device 86 for receiving a subject image and outputting image data for scene analysis, and a data of a predetermined area of the image for scene analysis in a first coordinate system and a second coordinate system for color. Conversion means 35C for converting to a coordinate system, and one of the first and second coordinate systems is selected according to the size of the area used by the conversion means 35C, and the gain is calculated using the selected coordinate system. Gain calculating means 35C, and a gain adjusting means 103 for performing a gain adjustment by multiplying the image data output from the photographing imaging device 73 by the gain calculated by the gain calculating means 35C. And it allows to achieve the above object. (9) According to a ninth aspect of the present invention, in the digital camera according to the eighth aspect, the conversion means 35C changes the size of the area of the scene analysis image to be used according to the subject.

【0006】なお、本発明の構成を説明する上記課題を
解決するための手段の項では、本発明を分かり易くする
ために実施の形態の図を用いたが、これにより本発明が
実施の形態に限定されるものではない。
[0006] In the section of the means for solving the above-mentioned problems, which explains the configuration of the present invention, the drawings of the embodiments are used to make the present invention easier to understand. However, the present invention is not limited to this.

【0007】[0007]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を説明する。図1に示すように、この実施の形
態による一眼レフデジタルスチルカメラは、カメラ本体
70と、カメラ本体70に着脱されるファインダ装置8
0と、レンズ91と絞り92を内蔵してカメラ本体70
に着脱される交換ズームレンズ90とを備える。被写体
光は交換ズームレンズ90を通ってカメラ本体70に入
射し、レリーズ前は点線で示す位置にあるクイックリタ
ーンミラー71でファインダ装置80に導かれてファイ
ンダマット81に結像するとともに、焦点検出装置36
にも結像する。ファインダーマット81に結像する被写
体光はさらにペンタプリズム82で接眼レンズ83に導
かれる。また、被写体光はレリーズ前に、プリズム84
と結像レンズ85を通ってシーン解析用撮像装置86に
入射して被写体像を結像する。レリーズ後はクイックリ
ターンミラー71が実線で示す位置に回動し、被写体光
はシャッタ72を介して撮影用撮像装置73上に結像す
る。シーン解析用撮像装置86は、撮影レンズ91に対
して撮影用撮像装置73と共役な位置に配設される。
Embodiments of the present invention will be described below with reference to the drawings. As shown in FIG. 1, a single-lens reflex digital still camera according to this embodiment includes a camera body 70 and a finder device 8 attached to and detached from the camera body 70.
0, a lens 91 and an aperture 92, and a camera body 70
And an exchangeable zoom lens 90 which is attached to and detached from the camera. The subject light enters the camera body 70 through the interchangeable zoom lens 90, before being released, is guided to the finder device 80 by the quick return mirror 71 located at the position shown by the dotted line to form an image on the finder mat 81, and the focus detection device. 36
Image. The subject light that forms an image on the viewfinder mat 81 is further guided to an eyepiece 83 by a pentaprism 82. In addition, the subject light is supplied to the prism 84 before the release.
Then, the light enters the scene analysis imaging device 86 through the imaging lens 85 to form a subject image. After the release, the quick return mirror 71 rotates to the position shown by the solid line, and the subject light forms an image on the image pickup device 73 via the shutter 72. The imaging device 86 for scene analysis is disposed at a position conjugate with the imaging device 73 for imaging with respect to the imaging lens 91.

【0008】図2は本発明によるデジタルカメラの一実
施の形態の回路を示すブロック図である。CPU21に
はレリーズボタンに連動する半押しスイッチ22と全押
しスイッチ23から半押し信号と全押し信号がそれぞれ
入力される。半押しスイッチ22が操作されて半押し信
号が入力されると、CPU21からの指令により焦点検
出装置36が交換ズームレンズ90の焦点調節状態を検
出し、交換ズームレンズ90に入射する被写体光が撮影
用撮像装置73上で結像するようにレンズ駆動装置37
がレンズ91を合焦位置へ駆動する。CPU21にはレ
ンズ情報入力部38を介して交換ズームレンズ90の絞
り値などのレンズ情報が入力される。CPU21は、タ
イミングジェネレータ24とドライバ25を介して撮影
用撮像装置73のCCD26を駆動制御する。そして、
タイミングジェネレータ24によりアナログ処理回路2
7とA/D変換回路28の動作タイミングが制御され
る。
FIG. 2 is a block diagram showing a circuit of a digital camera according to an embodiment of the present invention. The CPU 21 receives a half-press signal and a full-press signal from a half-press switch 22 and a full-press switch 23 linked to the release button, respectively. When the half-press switch 22 is operated and a half-press signal is input, the focus detection device 36 detects the focus adjustment state of the interchangeable zoom lens 90 according to a command from the CPU 21, and captures the subject light incident on the interchangeable zoom lens 90. Lens driving device 37 so as to form an image on the imaging device 73
Drives the lens 91 to the in-focus position. Lens information such as the aperture value of the interchangeable zoom lens 90 is input to the CPU 21 via the lens information input unit 38. The CPU 21 drives and controls the CCD 26 of the imaging device 73 for photographing via the timing generator 24 and the driver 25. And
Analog processing circuit 2 by timing generator 24
7 and the operation timing of the A / D conversion circuit 28 are controlled.

【0009】半押しスイッチ22のオン操作に引続いて
全押しスイッチ23がオン操作されるとクイックリター
ンミラー71が上方に回動し、交換ズームレンズ90か
らの被写体光はCCD26の受光面上で結像し、CCD
26には被写体像の明るさに応じた信号電荷が蓄積され
る。CCD26に蓄積された信号電荷はドライバ25に
より掃き出され、AGC回路やCDS回路などを含むア
ナログ信号処理回路27に入力される。アナログ信号処
理回路27でアナログ画像信号に対してゲインコントロ
ール、雑音除去等のアナログ処理が施された後、A/D
変換回路28によってデジタル信号に変換される。デジ
タル変換された信号は、たとえば、ASICとして構成
される画像処理回路29に導かれ、そこで後述するホワ
イトバランス調整、輪郭補償、ガンマ補正等の画像前処
理が行われる。
When the full-press switch 23 is turned on after the half-press switch 22 is turned on, the quick return mirror 71 rotates upward, and subject light from the interchangeable zoom lens 90 is reflected on the light receiving surface of the CCD 26. Image and CCD
26 stores signal charges corresponding to the brightness of the subject image. The signal charges stored in the CCD 26 are swept out by the driver 25 and input to an analog signal processing circuit 27 including an AGC circuit and a CDS circuit. After analog processing such as gain control and noise removal is performed on the analog image signal by the analog signal processing circuit 27, the A / D
The signal is converted into a digital signal by the conversion circuit 28. The digitally converted signal is guided to, for example, an image processing circuit 29 configured as an ASIC, where image preprocessing such as white balance adjustment, contour compensation, and gamma correction, which will be described later, is performed.

【0010】画像前処理が行なわれた画像データに対し
てはさらに、JPEG圧縮のためのフォーマット処理
(画像後処理)が行なわれ、フォーマット処理後の画像
データが一時的にバッファメモリ30に格納される。
The image data subjected to the image pre-processing is further subjected to a format process (image post-process) for JPEG compression, and the image data after the format process is temporarily stored in the buffer memory 30. You.

【0011】バッファメモリ30に格納された画像デー
タは、表示画像作成回路31により表示用の画像データ
に処理され、LCD等の外部モニタ32に撮影結果とし
て表示される。また、バッファメモリ30に記憶された
画像データは、圧縮回路33によりJPEG方式で所定
の比率にデータ圧縮を受け、フラッシュメモリなどの記
録媒体(メモリカード)34に記録される。
The image data stored in the buffer memory 30 is processed by the display image creation circuit 31 into image data for display, and displayed on an external monitor 32 such as an LCD as a photographing result. The image data stored in the buffer memory 30 is subjected to data compression at a predetermined ratio by the compression circuit 33 according to the JPEG method, and is recorded on a recording medium (memory card) 34 such as a flash memory.

【0012】図3は上述したように動作するデジタルカ
メラにおける画像処理回路29の詳細を示すブロック図
である。図3はCCD26からの画像データに対してラ
インごとに信号処理するライン処理回路100であり、
上述した画像前処理を行う。このライン処理回路100
は、A/D変換回路28から出力される12ビットの
R、G、B信号に対して後述する各種の信号処理を行な
うものであり、デジタルクランプ回路101と、ゲイン
設定回路102と、ゲイン調整回路103と、黒レベル
回路104と、γ補正回路105とを有する。
FIG. 3 is a block diagram showing details of the image processing circuit 29 in the digital camera operating as described above. FIG. 3 shows a line processing circuit 100 that performs signal processing on image data from the CCD 26 line by line.
The image pre-processing described above is performed. This line processing circuit 100
Performs various kinds of signal processing described later on the 12-bit R, G, and B signals output from the A / D conversion circuit 28. The digital clamp circuit 101, the gain setting circuit 102, and the gain adjustment circuit The circuit includes a circuit 103, a black level circuit 104, and a gamma correction circuit 105.

【0013】A/D変換回路28から出力される12ビ
ットのR,G,B信号は、CCD26の出力に対して1
ラインごとに点順次で、欠陥のある画素(そのアドレス
があらかじめ特定されてレジスタにセットされている)
からのデータを補正したのちデジタルクランプ回路10
1に入力される。デジタルクランプ回路101は、CC
D26の出力に対して1ラインごとに点順次で、オプテ
ィカルブラックとして使用する複数の画素データの加重
平均をそのラインの各画素データから減算する。
The 12-bit R, G, and B signals output from the A / D conversion circuit 28 correspond to the output of the CCD 26 by one.
Defective pixels (dot-sequential for each line, whose address is specified in advance and set in a register)
Digital clamp circuit 10 after correcting data from
1 is input. The digital clamp circuit 101
A weighted average of a plurality of pixel data to be used as optical black is subtracted from each pixel data of the line in a dot-sequential manner for each line with respect to the output of D26.

【0014】ゲイン設定回路102はR、G、B各色の
画素データに対する調整用ゲインを設定する。調整用ゲ
インの設定は、CCD26から出力される各色の画素デ
ータごとにゲインを与え、与えられたゲインにより各色
の出力レベルが所定のレベルとなるように設定される。
CCD26のばらつきによりCCD26から出力される
画素データの出力レベルが異なる場合でも、調整用ゲイ
ンが設定されることににより、ゲイン調整回路103に
入力される画像データレベルがCCD26の器差にかか
わらず所定のレベルに補正される。ゲイン調整回路10
3は入力されたR、B各色の画素データに対し、後述す
るシーン検出処理回路35で算出され、CPU21内の
メモリに記憶されているRゲインとBゲインのホワイト
バランス調整用ゲインを読出してR,B信号にかけ合わ
せることにより、ホワイトバランス調整を行う。
A gain setting circuit 102 sets an adjustment gain for pixel data of each of R, G, and B colors. The adjustment gain is set such that a gain is given to each pixel data of each color output from the CCD 26, and the output level of each color is set to a predetermined level by the given gain.
Even when the output level of the pixel data output from the CCD 26 differs due to the variation of the CCD 26, the image data level input to the gain adjustment circuit 103 is set to a predetermined value regardless of the instrumental difference of the CCD 26 by setting the adjustment gain. Level. Gain adjustment circuit 10
Reference numeral 3 denotes a white balance adjustment gain of R gain and B gain which is calculated by a scene detection processing circuit 35 described later with respect to the input pixel data of each of R and B, and is stored in a memory in the CPU 21. , B signal to perform white balance adjustment.

【0015】黒レベル回路104は、CCD26の出力
に対して1ラインごとに点順次で、あらかじめ決定され
てCPU21のレジスタに格納されている値をR,G,
B信号に対して加算する。γ補正回路105は、CCD
26の出力に対して1ラインごとに点順次で、階調ルッ
クアップテーブルを用いてγ補正を行なう。
The black level circuit 104 stores predetermined values stored in the registers of the CPU 21 in R, G,
Add to the B signal. The γ correction circuit 105 includes a CCD
The gamma correction is performed on the 26 outputs using a gradation look-up table in a dot-sequential manner for each line.

【0016】−ホワイトバランス検出− 図2のシーン検出処理回路35で行われるホワイトバラ
ンス検出処理について詳細に説明する。シーン検出処理
回路35は、シーン解析用撮像装置86と、シーン解析
用撮像装置86からのアナログ信号をデジタル信号に変
換するA/D変換回路35Bと、変換されたデジタル信
号に基づいてホワイトバランス調整係数を生成するCP
U35Cとを含む。CPU35Cはシーン解析用撮像装
置86で撮像されたデジタルデータにより撮影されるシ
ーンを解析してホワイトバランスを検出してホワイトバ
ランス調整用ゲインを決定する。ここで、シーン解析と
は、たとえば撮影シーンのRGB信号の分布状態等に関
する解析を意味する。
-White Balance Detection- The white balance detection processing performed by the scene detection processing circuit 35 of FIG. 2 will be described in detail. The scene detection processing circuit 35 includes an imaging device 86 for scene analysis, an A / D conversion circuit 35B that converts an analog signal from the imaging device 86 for scene analysis into a digital signal, and white balance adjustment based on the converted digital signal. CP that generates coefficients
U35C. The CPU 35C analyzes the scene photographed by the digital data photographed by the scene analyzing photographing device 86, detects a white balance, and determines a white balance adjusting gain. Here, the scene analysis means, for example, an analysis relating to a distribution state of RGB signals of a shooting scene.

【0017】シーン解析用撮像装置86は、たとえば図
4に示すように横24列×縦20行に分割された480
個の画素を有する1枚の2次元CCDである。撮像装置
86の表面には図5に示すように、480画素に対応し
て横24列×縦20行の480ブロックに分割されたR
GBカラーフィルタ861が配設されている。480ブ
ロックのRGBフィルタを図5に示すように、それぞれ
が横6列×縦5行のフィルタ素子を有するように16個
の中領域ブロックM11,M12……M43,M44に
グルーピングして第1のシーン解析に利用する。また、
480ブロックのRGBフィルタを図6に示すように、
それぞれが横3列×縦4行のフィルタ素子を有するよう
に40個の小領域ブロックS11,S12……S57,
S58にグルーピングして第2のシーン解析に利用す
る。
The imaging device 86 for scene analysis has, for example, 480 divided into 24 columns × 20 columns as shown in FIG.
It is a single two-dimensional CCD having a number of pixels. As shown in FIG. 5, on the surface of the imaging device 86, R divided into 480 blocks of 24 columns × 20 rows corresponding to 480 pixels is provided.
A GB color filter 861 is provided. As shown in FIG. 5, the 480 block RGB filters are grouped into 16 middle area blocks M11, M12,..., M43, M44 so as to have filter elements each having 6 columns × 5 rows, as shown in FIG. Used for scene analysis. Also,
As shown in FIG. 6, the 480 block RGB filter is
40 small area blocks S11, S12,..., S57, so that each has filter elements of 3 columns × 4 rows.
It is grouped in S58 and used for the second scene analysis.

【0018】第1のシーン解析では、撮像装置86から
出力された画像データにおいて、図5に示されるように
分割された16個の各ブロックごとに色相を持たない
色、いわゆる無彩色の検出が行われる。被写界を16個
程度の中領域ブロックに分割する場合、1つのブロック
には被写体の複数の色が存在する可能性が強くなる。そ
こで、第1のシーン解析は各ブロック内に存在するRG
B色データを平均することにより、複数の色が存在する
場合に平均値が無彩色となることを利用して、R、G、
B色のデータを平均して無彩色の検出を行う。分割され
た16個の各ブロックMmnには、R、G、Bの各色に
ついてそれぞれ10個ずつのデータが存在するので、次
式(1)〜(3)を用いて各ブロックMmnごとに各色デー
タの平均値RM(m,n)、GM(m,n)およびBM(m,n)を算出す
る。
In the first scene analysis, detection of a color having no hue, that is, a so-called achromatic color, for each of the 16 blocks divided as shown in FIG. Done. When the object field is divided into about 16 middle area blocks, there is a strong possibility that a plurality of colors of the subject exist in one block. Therefore, the first scene analysis is based on the RGs existing in each block.
By averaging the B color data, using the fact that the average value is achromatic when a plurality of colors exist, the R, G,
The achromatic color is detected by averaging the B color data. In each of the 16 divided blocks Mmn, there are ten pieces of data for each color of R, G, and B. Therefore, the color data of each block Mmn is calculated using the following equations (1) to (3). The average values R M (m, n), G M (m, n) and B M (m, n) are calculated.

【数1】 ただし、RM(m,n)は中領域ブロックMmnに属する10
個のRデータの平均値、GM(m,n)は中領域ブロックMm
nに属する10個のGデータの平均値、BM(m,n)は中領
域ブロックMmnに属する10個のBデータの平均値で
ある。
(Equation 1) Here, R M (m, n) is 10% belonging to the middle area block Mmn.
The average value of the R data, G M (m, n) is the middle area block Mm
The average value of 10 G data belonging to n, B M (m, n) is the average value of 10 B data belonging to the middle area block Mmn.

【0019】合計16個のブロックごとに算出された
R、G、B色のデータの平均値を用いて、JISZ8725「光
源の分布温度及び色温度・相関色温度の測定方法」にし
たがってRGB3原色のデータをTC-Duv座標のデータに
変換する。TC-Duv座標上に変換後の16個のデータの色
温度(TC)をプロットしたとき、Duv軸の値がたとえば±
10以内となるデータは無彩色と判定し、±10を超え
るデータは無彩色でないと判定する。第1のシーン解析
の結果、16個のデータの色温度の中で無彩色と判定さ
れるデータが存在する場合は、このデータの色温度を図
7のように定められている色温度(TC)−ホワイトバラン
ス調整用ゲインの関係に当てはめて、Rデータに対する
ホワイトバランス調整用Rゲイン、およびBデータに対
するホワイトバランス調整用Bゲインを決定する。
Using the average values of the R, G, and B color data calculated for each of the 16 blocks in total, the RGB primary colors are measured in accordance with JISZ8725 "Method of measuring light source distribution temperature and color temperature / correlated color temperature". Convert data to TC-Duv coordinate data. When the color temperature (TC) of the 16 data after conversion is plotted on the TC-Duv coordinate, the value of the Duv axis is, for example, ±
Data within 10 is determined to be achromatic, and data exceeding ± 10 is determined not to be achromatic. As a result of the first scene analysis, if there is data determined to be an achromatic color among the color temperatures of the 16 data, the color temperature of this data is set to the color temperature (TC )-Determine the white balance adjustment R gain for the R data and the white balance adjustment B gain for the B data by applying the relationship of the white balance adjustment gain.

【0020】図7に定められているRゲインおよびBゲ
インの値は、TC-Duv座標にプロットされたデータのDuv
軸の値を0とするように、すなわち、無彩色と判定され
たデータをより無彩色に近づけるようにあらかじめ実測
により決定し、色温度(TC)の関数として表した値であ
る。これらRゲインおよびBゲインの値はルックアップ
テーブルとしてCPU35Cの記憶領域に格納されてお
り、色温度に対応して読出される。
The values of the R gain and the B gain determined in FIG. 7 are the Duv values of the data plotted on the TC-Duv coordinates.
This is a value that is previously determined by actual measurement so that the value of the axis is set to 0, that is, data determined to be achromatic is made closer to achromatic, and is expressed as a function of the color temperature (TC). The values of the R gain and the B gain are stored in a storage area of the CPU 35C as a look-up table, and are read out according to the color temperature.

【0021】なお、16個のブロックのデータのうち無
彩色と判定されたデータが複数存在する場合は、無彩色
と判定されたすべてのデータの色温度の平均値を算出
し、算出された色温度の平均値を図7の色温度(TC)−ホ
ワイトバランス調整用ゲインの関係に当てはめてRゲイ
ンおよびBゲインを決定する。もし、16個のブロック
のデータのうち無彩色と判定されるデータが1つも存在
しない場合は、第1のシーン解析によるホワイトバラン
ス調整係数の設定をしない。
If there are a plurality of data determined to be achromatic among the data of the 16 blocks, the average value of the color temperatures of all the data determined to be achromatic is calculated, and the calculated color temperature is calculated. The average value of the temperature is applied to the relationship between the color temperature (TC) and the gain for white balance adjustment in FIG. 7 to determine the R gain and the B gain. If there is no data determined to be achromatic among the data of the 16 blocks, the white balance adjustment coefficient is not set by the first scene analysis.

【0022】第2のシーン解析では、撮像装置86から
出力された画像データにおいて、図6に示されるように
分割された40個の各ブロックごとに所定の色、たとえ
ば肌色の検出が行われる。被写界を40個程度の小領域
ブロックに分割する場合、1つのブロックに存在する被
写体の色が1色である可能性が強くなる。そこで、第2
のシーン解析は各ブロックに存在する特定の色を検出す
る。とくに、この実施の形態では人の顔の色、すなわち
肌色を検出する。分割された各ブロックSijには、
R、G、Bの各色についてそれぞれ4個ずつのデータが
存在するので、次式(4)〜(6)を用いて各ブロックSi
jごとに各色データの平均値RS(i,j)、GS(i,j)および
S(i,j)を算出する。
In the second scene analysis, a predetermined color, for example, a flesh color is detected for each of the 40 blocks divided as shown in FIG. 6 in the image data output from the image pickup device 86. When the object scene is divided into about 40 small area blocks, there is a strong possibility that the color of the subject existing in one block is one color. Therefore, the second
Scene analysis detects a specific color present in each block. In particular, in this embodiment, the color of a human face, that is, the skin color is detected. Each divided block Sij has:
Since there are four sets of data for each of the colors R, G, and B, each block Si is calculated using the following equations (4) to (6).
The average values R S (i, j), G S (i, j) and B S (i, j) of each color data are calculated for each j.

【数2】 ただし、RS(i,j)は小領域ブロックSijに属する4個
のRデータの平均値、GS(i,j)は小領域ブロックSij
に属する4個のGデータの平均値、BS(i,j)は小領域ブ
ロックSijに属する4個のBデータの平均値である。
(Equation 2) Here, R S (i, j) is the average value of four R data belonging to the small area block Sij, and G S (i, j) is the small area block Sij
, B S (i, j) is the average of the four B data belonging to the small area block Sij.

【0023】合計40個のブロックごとに算出された
R、G、B色データの平均値を用いて、RデータとGデ
ータの比、およびBデータとGデータの比を算出して図
8に示すようなR/G-B/G座標のデータに変換する。R/
Gは上式(4)÷上式(5)で算出され、B/Gは上式(6)
÷上式(5)で算出される。図8はR/G-B/G座標で示され
る色温度曲線を示す図である。図8において、色温度が
4500Kを下回る左下部分の色温度が低く、上部にな
るほど色温度が高くなり、最上部で色温度が6500K
を超えることを示している。図8で一点鎖線で囲まれた
領域81は、第2のシーン解析で検出する肌色領域であ
る。なお、図8の色温度曲線はルックアップテーブルと
してCPU35Cの記憶領域に格納されており、R/G
およびB/Gに対応して色温度値が読出される。
Using the average value of the R, G, and B color data calculated for each of the 40 blocks in total, the ratio between the R data and the G data and the ratio between the B data and the G data are calculated. It is converted into the data of the R / GB / G coordinates as shown. R /
G is calculated by the above equation (4) ÷ the above equation (5), and B / G is calculated by the above equation (6).
算出 Calculated by equation (5). FIG. 8 is a diagram showing a color temperature curve represented by R / GB / G coordinates. In FIG. 8, the color temperature is lower in the lower left portion where the color temperature is lower than 4500K, higher in the upper portion, and 6500K in the uppermost portion.
It is shown that it exceeds. An area 81 surrounded by a dashed line in FIG. 8 is a skin color area detected by the second scene analysis. The color temperature curve of FIG. 8 is stored in the storage area of the CPU 35C as a look-up table, and the R / G
And a color temperature value corresponding to B / G.

【0024】上述したように40個のブロックごとに算
出されたR、G、B色データの平均値の比:R/Gおよ
びB/Gに基づいて40個のデータをR/G-B/G座標上に
プロットしたとき、領域81内となるデータは肌色と判
定し、領域81から外れるデータは肌色でないと判定す
る。第2のシーン解析の結果、40個のデータから肌色
と判定されるデータが存在する場合は、肌色と検出され
た領域の周囲にも肌色が検出されるかどうかの集合判定
が行われる。たとえば、図6において小分割領域S25
で肌色が検出されると、図9に示すように領域S14〜
S16、領域S24、領域S26、および領域S34〜
S36の計8つの領域で肌色判定が行われる。領域S2
5の周囲8つの領域のうち、たとえば3つ以上の領域で
肌色が検出されると、領域S25のデータは肌色データ
として保存される。一方、周囲8つの領域において肌色
が検出された領域が2つ以下の場合には、領域S25の
データは孤立データと見なされて肌色データとして保存
されない。
The ratio of the average values of the R, G, and B color data calculated for each of the 40 blocks as described above: 40 data are converted into R / GB / G coordinates based on R / G and B / G. When plotted above, the data inside the area 81 is determined to be skin color, and the data outside the area 81 is determined not to be skin color. As a result of the second scene analysis, if there is data determined to be a flesh color from the forty data, a set determination is made as to whether a flesh color is also detected around the area where the flesh color is detected. For example, in FIG.
When the skin color is detected in the region S14 to the region S14 to
S16, area S24, area S26, and area S34 to
Skin color determination is performed in a total of eight areas in S36. Area S2
If a skin color is detected in, for example, three or more of the eight regions around 5, the data in the region S25 is stored as the skin color data. On the other hand, if there are two or less skin color detected areas in the eight surrounding areas, the data in the area S25 is regarded as isolated data and is not stored as skin color data.

【0025】肌色データを保存したS25のような領域
が複数存在する場合は、上述したようにその領域Sij
ごとに図8の色温度曲線により求められた色温度の平均
値が算出される。算出された色温度の平均値を図7の色
温度(TC)−ホワイトバランス調整用ゲインの関係に当て
はめて、Rデータに対するホワイトバランス調整用Rゲ
イン、およびBデータに対するホワイトバランス調整用
Bゲインを決定する。肌色データを保存したS25のよ
うな領域が1つだけ存在する場合は、その領域において
求められた色温度をそのまま図7に適用してホワイトバ
ランス調整用のRゲインおよびBゲインを決定する。も
し、40個のブロックのうち肌色データを保存した領域
が1つも存在しない場合は、第2のシーン解析によるホ
ワイトバランス調整係数の設定をしない。
When there are a plurality of regions such as S25 in which the skin color data is stored, as described above, the regions Sij
The average value of the color temperature obtained from the color temperature curve of FIG. The calculated color temperature average value is applied to the relationship of color temperature (TC) -white balance adjustment gain in FIG. 7 to obtain a white balance adjustment R gain for R data and a white balance adjustment B gain for B data. decide. If there is only one area such as S25 in which the skin color data is stored, the color temperature obtained in that area is applied to FIG. 7 as it is to determine the R gain and the B gain for white balance adjustment. If there is no area where the skin color data is stored in the 40 blocks, the white balance adjustment coefficient is not set by the second scene analysis.

【0026】上述した第1のシーン解析および第2のシ
ーン解析でホワイトバランス調整係数が決定されなかっ
た場合、デフォルト値としてCPU35C内のメモリに
記録されている色温度の値5500Kが読出される。こ
の5500Kを図7に適用することにより、デフォルト
値としてのホワイトバランス調整係数RゲインおよびB
ゲインが決定される。
If the white balance adjustment coefficient is not determined in the first scene analysis and the second scene analysis described above, the color temperature value 5500K stored in the memory in the CPU 35C is read as a default value. By applying this 5500K to FIG. 7, the white balance adjustment coefficient R gain and B
The gain is determined.

【0027】上述したように決定されたゲイン調整値R
ゲインとBゲインは、ホワイトバランス調整値としてC
PU21のレジスタに一旦格納される。上述したゲイン
調整回路103において、ゲイン調整回路103に入力
されたR、B各色の画素データに対してホワイトバラン
ス調整が行われるとき、上記CPU21内に格納された
RゲインとBゲインが読出されてR,B信号にそれぞれ
かけ合わされる。
The gain adjustment value R determined as described above
Gain and B gain are C as white balance adjustment values.
It is temporarily stored in the register of the PU 21. In the gain adjustment circuit 103 described above, when white balance adjustment is performed on the R and B pixel data input to the gain adjustment circuit 103, the R gain and the B gain stored in the CPU 21 are read out. The R and B signals are multiplied respectively.

【0028】以上のホワイトバランス検出処理を図10
のフローチャートを参照して説明する。ホワイトバラン
ス検出処理は、デジタルスチルカメラの電源がオンされ
ている間に所定の間隔で繰り返し行われる。ステップS
11において、シーン解析用撮像装置86で信号電荷が
蓄積され、蓄積された電荷が掃き出されてA/D変換回
路35Bでデジタルデータに変換された後、CPU35
Cに取り込まれる。ステップS12において、CPU3
5Cに取り込まれたデータが16個の中領域ブロックに
分割され、分割されたブロックごとに存在するR、G、
B各色のデータの平均値がそれぞれ算出される。ステッ
プS13では16組のRGBデータがTC-Duv座標のデー
タに座標変換され、ステップS14で座標変換後のデー
タから無彩色データの検出が行われる。
The above-described white balance detection processing is shown in FIG.
This will be described with reference to the flowchart of FIG. The white balance detection processing is repeatedly performed at predetermined intervals while the power of the digital still camera is turned on. Step S
At 11, the signal charges are accumulated by the imaging device 86 for scene analysis, and the accumulated charges are swept out and converted into digital data by the A / D conversion circuit 35B.
C is taken in. In step S12, the CPU 3
The data captured in 5C is divided into 16 middle area blocks, and R, G,
The average value of the data of each color B is calculated. In step S13, the 16 sets of RGB data are converted into TC-Duv coordinate data, and in step S14, achromatic data is detected from the data after the coordinate conversion.

【0029】ステップS15において、検出された無彩
色データがあるか否かが判定され、2つ以上の無彩色デ
ータがあると判定された場合(ステップS15のY(2つ
以上))はステップS16へ進み、検出された無彩色デー
タの色温度(TC)の平均値を算出してステップS17へ進
む。ステップS15において1つの無彩色データがある
と判定された場合(ステップS15のY(1つ))は、この
無彩色データの色温度(TC)をもってステップS17へ進
む。以上のステップS12〜ステップS15が第1のシ
ーン解析処理である。
In step S15, it is determined whether or not there is detected achromatic data. If it is determined that there are two or more achromatic data (Y (two or more) in step S15), step S16 is performed. Then, the average value of the color temperature (TC) of the detected achromatic data is calculated, and the process proceeds to step S17. If it is determined in step S15 that there is one achromatic data (Y (one) in step S15), the process proceeds to step S17 with the color temperature (TC) of the achromatic data. The above steps S12 to S15 are the first scene analysis processing.

【0030】一方、ステップS15において検出された
無彩色データがないと否定判定された場合(ステップS
15のN)は、ステップS19以降の第2のシーン解析
が行われる。ステップS19において、ステップS11
でCPU35Cに取り込まれたデータが40個の小領域
ブロックに分割され、分割されたブロックごとに存在す
るR、G、B各色のデータの平均値がそれぞれ算出され
る。ステップS20では40組のRGBデータがR/G-B/
G座標のデータに座標変換され、ステップS21で座標
変換後のデータから肌色データの検出が行われる。
On the other hand, if a negative determination is made that there is no achromatic data detected in step S15 (step S15).
In 15N), the second scene analysis after step S19 is performed. In step S19, step S11
The data fetched by the CPU 35C is divided into 40 small area blocks, and the average values of the R, G, and B color data existing for each of the divided blocks are calculated. In step S20, 40 sets of RGB data are R / GB /
The coordinates are converted to G coordinate data, and in step S21, flesh color data is detected from the data after the coordinate conversion.

【0031】ステップS22では、肌色データが検出さ
れた小領域ブロックの周囲8つの小領域ブロックにおい
て、所定数以上の肌色が検出された場合のみ肌色データ
としてみなす集合判定処理が行われる。集合判定処理の
結果、肌色データとしてみなされた肌色データがあるか
否かがステップS23で判定され、2つ以上の肌色デー
タがあると判定された場合(ステップS23のY(2つ以
上))はステップS24へ進み、検出された肌色データよ
り算出した色温度(TC)の平均値を算出してステップS1
7へ進む。ステップS23において1つの肌色データが
あると判定された場合(ステップS23のY(1つ))は、
この肌色データの色温度(TC)をもってステップS17へ
進む。ステップS23で肌色データがないと判定された
場合(ステップS23のN)はステップS25へ進み、デ
フォルト値としてCPU35Cに記憶されている色温度
の値5500Kを読出してステップS17へ進む。
In step S22, a set determination process is performed in which the skin color data is regarded as skin color data only when a predetermined number or more of skin colors are detected in eight small region blocks around the small region block where the skin color data is detected. As a result of the set determination process, it is determined in step S23 whether or not there is skin color data regarded as skin color data, and when it is determined that there is two or more skin color data (Y (two or more) in step S23). Proceeds to step S24, calculates the average value of the color temperature (TC) calculated from the detected flesh color data, and proceeds to step S1.
Proceed to 7. If it is determined in step S23 that there is one skin color data (Y (one) in step S23),
The process proceeds to step S17 with the color temperature (TC) of the skin color data. If it is determined in step S23 that there is no skin color data (N in step S23), the process proceeds to step S25, in which the color temperature value 5500K stored in the CPU 35C is read as a default value, and the process proceeds to step S17.

【0032】ステップS17において、色温度(TC)に基
づいてCPU35Cの記憶領域に格納されているルック
アップテーブルからホワイトバランス調整用のRゲイン
およびBゲインが読出される。読出されたRゲイン、B
ゲインの値がステップS18でCPU21内に格納され
ることにより、図10の処理が終了する。
In step S17, the R gain and the B gain for white balance adjustment are read from the look-up table stored in the storage area of the CPU 35C based on the color temperature (TC). Read R gain, B
When the gain value is stored in the CPU 21 in step S18, the processing in FIG. 10 ends.

【0033】このように構成されたデジタルスチルカメ
ラの動作について説明する。図11は半押しスイッチで
起動されるプログラムを示すフローチャートである。半
押しスイッチ22が操作されるとステップS31におい
て撮影ズームレンズ90の焦点検出動作と被写体の輝度
を検出する測光動作が行われる。焦点検出装置36によ
り焦点調節状態が検出されると、検出された焦点調節状
態に基づいてレンズ駆動装置37がレンズ91を合焦位
置へ駆動する。被写体の輝度検出はシーン解析用撮像装
置86から出力されたデータを用いてCPU35Cで行
われる。CPU35Cが検出した輝度データをCPU2
1に出力すると、CPU21は輝度データおよびレンズ
情報入力部38から送出されたズームレンズ90の絞り
値に基づいて露出演算を行う。
The operation of the digital still camera thus configured will be described. FIG. 11 is a flowchart showing a program started by the half-press switch. When the half-press switch 22 is operated, in step S31, a focus detection operation of the photographing zoom lens 90 and a photometric operation of detecting the brightness of the subject are performed. When the focus detection state is detected by the focus detection device 36, the lens driving device 37 drives the lens 91 to the in-focus position based on the detected focus adjustment state. The luminance of the subject is detected by the CPU 35C using the data output from the imaging device 86 for scene analysis. The luminance data detected by the CPU 35C is
When output to 1, the CPU 21 performs an exposure calculation based on the luminance data and the aperture value of the zoom lens 90 sent from the lens information input unit 38.

【0034】ステップS32において、上述したように
CPU21のレジスタ内に格納されているホワイトバラ
ンス調整用のRゲイン、Bゲイン値が読出される。ステ
ップS33において全押しスイッチ23が操作されたと
判断されると、クイックリターンミラーが跳ね上がり、
撮影シーケンスが開始される。ステップS34では、C
CD26の各画素が受光信号を蓄積し、蓄積終了後、全
画素の蓄積電荷が順次読出される。ステップS35にお
いて、読出された画像データはアナログ信号処理回路2
7で処理された後、A/D変換回路28でデジタル画像
データに変換され、画像処理回路29に入力される。次
にステップS36に進み、上述したホワイトバランス調
整、γ階調補正、JPEGフォーマット化処理などが画
像処理回路29で行なわれる。画像処理が終了するとス
テップS37に進み、画像処理後の画像データをいった
んバッファメモリ30に記憶する。ステップS38にお
いて、バッファメモリ30から画像データを読込んでJ
PEG圧縮回路33でデータを圧縮する。ステップS3
9では、圧縮した画像データをメモリカード34に記憶
して処理を終了する。
In step S32, the R gain and B gain values for white balance adjustment stored in the register of the CPU 21 are read as described above. If it is determined in step S33 that the full-press switch 23 has been operated, the quick return mirror jumps up,
The shooting sequence is started. In step S34, C
Each pixel of the CD 26 accumulates the light receiving signal, and after the accumulation is completed, the accumulated charges of all the pixels are sequentially read. In step S35, the read image data is stored in the analog signal processing circuit 2
After being processed in 7, the data is converted into digital image data by an A / D conversion circuit 28 and input to an image processing circuit 29. Next, proceeding to step S36, the above-described white balance adjustment, γ gradation correction, JPEG formatting, and the like are performed by the image processing circuit 29. When the image processing is completed, the process proceeds to step S37, and the image data after the image processing is temporarily stored in the buffer memory 30. In step S38, image data is read from the buffer memory 30 and J
The data is compressed by the PEG compression circuit 33. Step S3
In step 9, the compressed image data is stored in the memory card 34, and the process ends.

【0035】上記の説明では、自然光の下で撮影する場
合を想定して説明したが、たとえば、蛍光灯の下で撮影
する場合はホワイトバランス調整用ゲインを調整する必
要が生じる。一般に、自然光の下で撮影したときより蛍
光灯の下で撮影したときの方が、撮影されたRGBデー
タの色温度が高くなる。この色温度差は図7のRゲイン
およびBゲインの値を所定量補正することで補正され
る。そこで、RゲインおよびBゲインの値を格納したル
ックアップテーブルを自然光の下での撮影用と蛍光灯の
下での撮影用に2組用意し、撮影時の撮影光に応じて切
換えて読出すようにする。
In the above description, the case of photographing under natural light has been described. For example, when photographing under fluorescent light, it is necessary to adjust the gain for white balance adjustment. Generally, the color temperature of the captured RGB data is higher when photographing under a fluorescent light than when photographing under natural light. This color temperature difference is corrected by correcting the values of the R gain and the B gain in FIG. 7 by a predetermined amount. Therefore, two sets of lookup tables storing the values of the R gain and the B gain are prepared for photographing under natural light and for photographing under fluorescent light, and are read out by switching according to the photographing light at the time of photographing. To do.

【0036】この実施の形態の特徴についてまとめる。 (1)ステップS12〜ステップS15の第1のシーン
解析では被写界を16個の中領域に分割し、分割された
領域ごとにRGBの各色データの平均を求め、TC-Duv座
標上のデータに変換して無彩色データを検出するように
した。この結果、1つの中領域ブロックに被写体の複数
の色が存在する可能性が強くなるので、ブロック内のR
GB色データを平均することにより無彩色の検出を行い
やすくする効果がある。また、分割された領域数が多い
とTC-Duv座標への変換処理時の演算量が多くなるが、1
6領域とすることでCPUの負担を軽減することがで
き、処理時間を短縮する効果が得られる。 (2)第1のシーン解析で検出された無彩色データの色
温度の平均値を算出し、算出された色温度の平均値に応
じてホワイトバランス調整用のRゲインおよびBゲイン
を決定するようにしたので、全画面に対して平均的なホ
ワイトバランス調整が行われて、被写体の色を再現する
ことが可能になる。
The features of this embodiment will be summarized. (1) In the first scene analysis of steps S12 to S15, the object scene is divided into 16 medium regions, the average of each color data of RGB is obtained for each of the divided regions, and the data on the TC-Duv coordinates is obtained. To achromatic data. As a result, there is a strong possibility that a plurality of colors of the subject exist in one middle area block.
Averaging the GB color data has the effect of making it easier to detect achromatic colors. Also, if the number of divided areas is large, the amount of calculation at the time of conversion processing to TC-Duv coordinates increases,
With six regions, the load on the CPU can be reduced, and the effect of reducing the processing time can be obtained. (2) The average of the color temperatures of the achromatic data detected in the first scene analysis is calculated, and the R gain and the B gain for white balance adjustment are determined according to the calculated average of the color temperatures. Therefore, the average white balance adjustment is performed for the entire screen, and the color of the subject can be reproduced.

【0037】(3)ステップS19〜ステップS23の
第2のシーン解析では被写界を40個の小領域に分割
し、分割された領域ごとにRGBの各色データの平均を
求め、R/G-B/G座標上のデータに変換して肌色データを
検出するようにした。さらに検出された肌色データに集
合判定処理を施して、周囲のデータのうち所定数以上の
データが肌色である場合に改めて肌色データとみなすよ
うにした。この結果、1つの小領域ブロックの被写体は
1色である可能性が強くなるので、ブロックに存在する
特定の色の検出を行いやすくする効果がある。 (4)第2のシーン解析で肌色データとみなされたデー
タの色温度の平均値を算出し、算出された色温度の平均
値に応じてホワイトバランス調整用のRゲインおよびB
ゲインを決定するようにしたので、被写界の肌色部分に
対して最適なホワイトバランス調整が行われる。したが
って、たとえば、緑色を背景にして人物を撮影する場合
など、背景の色に関係なく人の肌色を再現することが可
能になる。
(3) In the second scene analysis of steps S19 to S23, the object scene is divided into 40 small areas, and the average of RGB color data is obtained for each divided area to obtain R / GB / Converted to data on G coordinate to detect flesh color data. Further, a set determination process is performed on the detected skin color data, and when a predetermined number or more of the surrounding data is skin color, the data is regarded as skin color data again. As a result, it is more likely that the subject in one small area block is one color, and this has an effect of making it easier to detect a specific color present in the block. (4) The average of the color temperatures of the data regarded as the skin color data in the second scene analysis is calculated, and the R gain and B for white balance adjustment are calculated according to the calculated average of the color temperatures.
Since the gain is determined, optimal white balance adjustment is performed on the skin color portion of the object scene. Therefore, for example, when a person is photographed against a green background, the skin color of the person can be reproduced regardless of the background color.

【0038】(5)シーン解析用撮像装置86はファイ
ンダー装置80内に配設されるようにしたので、全押し
スイッチ23の操作によりミラー71がミラーアップさ
れる前にシーン解析用撮像装置86でシーン解析用デー
タを撮像し、ホワイトバランス調整用ゲインを決定して
CPU21内に格納しておくことが可能になる。したが
って、全押しスイッチ23の操作により行われるステッ
プS34からの撮影シーケンスにおいてホワイトバラン
ス調整用ゲインを決定する必要がないから、撮影ケンス
でシーン解析用データが撮像される場合に比べて撮影処
理時間を短縮することができる。 (6)シーン解析用撮像装置86は、シーン解析用デー
タの撮像と被写体の輝度検出の両方に兼用されるように
したので、兼用しない場合に比べて実装スペースを小さ
くすることができる上に、コストを低減する効果が得ら
れる。
(5) Since the scene analysis image pickup device 86 is disposed in the viewfinder device 80, the scene analysis image pickup device 86 is operated before the mirror 71 is mirrored up by operating the full-press switch 23. It becomes possible to image the data for scene analysis, determine the gain for white balance adjustment, and store it in the CPU 21. Therefore, since it is not necessary to determine the white balance adjustment gain in the shooting sequence from step S34 performed by operating the full-press switch 23, the shooting processing time is shorter than when the scene analysis data is shot by the shooting can. Can be shortened. (6) The imaging device 86 for scene analysis is used for both the imaging of the data for scene analysis and the luminance detection of the subject, so that the mounting space can be reduced as compared with the case where the imaging device 86 is not shared. The effect of reducing costs can be obtained.

【0039】以上の説明では、第1のシーン解析で被写
界を16個の中領域に分割し、第2のシーン解析で被写
界を40個の小領域に分割するようにしたが、これらの
分割数は説明した通りでなくてもよい。また、等分とな
るように方形に分割するように説明したが、これらは等
分割でなくてもよく、必ずしも方形に分割しなくてもよ
い。さらにまた、シーン解析用撮像装置86で受光され
た領域の全域を分割するようにしたが、特定の領域だけ
を使用するようにしてもよい。
In the above description, the scene is divided into 16 medium regions in the first scene analysis, and the scene is divided into 40 small regions in the second scene analysis. The number of these divisions may not be as described. In addition, although it has been described that the image is divided into rectangles so as to be equally divided, these may not be equally divided and may not necessarily be divided into rectangles. Furthermore, although the entire area of the area received by the imaging device 86 for scene analysis is divided, only a specific area may be used.

【0040】上記説明では、第1のシーン解析で分割さ
れた16の領域による16組のRGBデータをTC-Duv座
標のデータに座標変換し、第2のシーン解析で分割され
た40の領域による40組のRGBデータをR/G-B/G座
標のデータに座標変換するようにした。分割数が必ずし
も16および40でない場合は、分割数が少ない方のデ
ータを用いてTC-Duv座標のデータに座標変換し、分割数
が多い方のデータを用いてR/G-B/G座標のデータに座標
変換すればよい。また、分割される領域の数によらず、
撮影する目的に応じて変換する座標を選択できるように
してもよい。たとえば、スナップ撮影のように多色の被
写体を撮影する場合にTC-Duv座標を選択すれば、全ての
色に対して平均的なホワイトバランス調整を行うことが
でき、ポートレート撮影のように人物を撮影する場合に
R/G-B/G座標を選択すれば、肌色などの特定の色に対し
て最適なホワイトバランス調整を行うことができる。
In the above description, 16 sets of RGB data based on the 16 regions divided by the first scene analysis are coordinate-converted into TC-Duv coordinate data, and the data is converted into 40 regions divided by the second scene analysis. Forty sets of RGB data were converted to R / GB / G coordinate data. If the number of divisions is not necessarily 16 or 40, the data of the smaller number of divisions is used to convert the coordinates to data of TC-Duv coordinates, and the data of the larger number of divisions is used to convert the data of R / GB / G coordinates. What is necessary is just to convert coordinates. Also, regardless of the number of divided areas,
The coordinates to be converted may be selected according to the purpose of photographing. For example, when shooting multi-colored subjects such as snapshots, if you select TC-Duv coordinates, you can perform average white balance adjustment for all colors, When shooting
If the R / GB / G coordinates are selected, the optimum white balance adjustment can be performed for a specific color such as skin color.

【0041】上述した説明では、第2のシーン解析にお
いて肌色を検出してホワイトバランス調整用ゲインを決
定するようにしたが、肌色の代わりに、たとえば緑色や
無彩色を検出するようにしてもよい。また、人物を撮影
する場合は肌色を検出し、風景を撮影する場合は緑色を
検出するように、撮影モードに応じて検出する色を切換
えるようにすることもできる。たとえば、遠景撮影モー
ドに設定された場合に緑色を検出するようにし、ポート
レート撮影モードに設定された場合に肌色を検出するよ
うにすれば、それぞれ検出される色に対して最適なホワ
イトバランス調整が行われるようになる。さらにまた、
肌色や緑色などの複数の色を検出して、集合判定処理に
より集合判定されたデータの数が最大となる色を採用し
てホワイトバランス調整用ゲインを決定してもよい。
In the above description, the skin color is detected in the second scene analysis to determine the white balance adjustment gain. However, instead of the skin color, for example, a green color or an achromatic color may be detected. . Further, the color to be detected can be switched according to the photographing mode so that the skin color is detected when a person is photographed and the green color is detected when a landscape is photographed. For example, if green is detected in the distant view mode and flesh color is detected in the portrait mode, optimal white balance adjustment for each detected color is achieved. Will be performed. Furthermore,
A plurality of colors such as flesh color and green may be detected, and the color for which the number of data determined as a group by the group determination processing is maximum may be adopted to determine the white balance adjustment gain.

【0042】以上の説明では、第1のシーン解析が行わ
れた結果、無彩色が検出されなかった場合に第2のシー
ン解析が行われるようにしたが、第1のシーン解析およ
び第2のシーン解析のいずれか一方を選択して行い、選
択されたシーン解析により得られた色温度に基づいてホ
ワイトバランス調整ゲインを決定するようにしてもよ
い。また、両方のシーン解析を行うようにして、両シー
ン解析により得られた2つの色温度を平均してホワイト
バランス調整用ゲインを決定するようにすることもでき
る。
In the above description, the second scene analysis is performed when no achromatic color is detected as a result of the first scene analysis. However, the first scene analysis and the second scene analysis are performed. One of the scene analysis may be selected and performed, and the white balance adjustment gain may be determined based on the color temperature obtained by the selected scene analysis. Also, by performing both scene analyses, it is also possible to determine the white balance adjustment gain by averaging two color temperatures obtained by the two scene analyses.

【0043】以上の説明では、一眼レフデジタルスチル
カメラについて説明したが、一眼レフでないデジタルカ
メラにも本発明を適用することができる。この場合、ビ
ームスプリッタやハーフミラーなどを用いて撮影用撮像
装置およびシーン解析用撮像装置に被写体像を別々に結
像させる。また、上述した説明では、撮影用撮像装置お
よびシーン解析用撮像装置を別々に設けたが、撮影用撮
像装置がシーン解析用撮像装置を兼用するようにしても
よい。この場合には、電源オン時、レリーズボタンの操
作にかかわらず液晶モニタなどの表示器に撮影用撮像装
置で撮像された被写体像をスルー画像として繰り返し表
示するようにし、また、撮影用撮像装置で撮像されたデ
ータを用いて上述したようにホワイトバランス調整用ゲ
インを決定する。そして、レリーズ操作が行われたとき
に撮像された被写体画像データに対して、上記のホワイ
トバランス調整用ゲインによりホワイトバランス調整を
行う。
In the above description, a single-lens reflex digital still camera has been described. However, the present invention can be applied to a non-single-lens reflex digital camera. In this case, the subject images are separately formed on the imaging device for photographing and the imaging device for scene analysis using a beam splitter, a half mirror, or the like. In the above description, the imaging device for photographing and the imaging device for scene analysis are separately provided. However, the imaging device for photography may also be used as the imaging device for scene analysis. In this case, when the power is turned on, regardless of the operation of the release button, the subject image picked up by the image pickup device is repeatedly displayed as a through image on a display device such as a liquid crystal monitor. The white balance adjustment gain is determined as described above using the captured data. Then, white balance adjustment is performed on the subject image data captured when the release operation is performed by using the white balance adjustment gain.

【0044】また、上記の説明では色に関する座標系と
して、TC-Duv座標系およびR/G-B/G座標系を使用した
が、色差信号R-YおよびB-Yを用いた座標系を使用して行
うようにすることもできる。
In the above description, the TC-Duv coordinate system and the R / GB / G coordinate system are used as the coordinate systems related to the colors. However, the coordinate system using the color difference signals RY and BY is used. You can also.

【0045】特許請求の範囲における各構成要素と、発
明の実施の形態における各構成要素との対応について説
明すると、交換ズームレンズ90が撮影レンズに、CC
D26が撮影用撮像装置に、シーン解析用撮像装置86
が解析用撮像装置に、中領域ブロックM11〜M44が
大きな領域に、小領域ブロックS11〜S58が小さな
領域に、CPU35Cがゲイン算出手段、検出手段およ
び変換手段に、TC-Duv座標系が第1の座標系に、R/G-B/
G座標系が第2の座標系に、ゲイン調整回路103がゲ
イン調整手段に、それぞれ対応する。
The correspondence between each component in the claims and each component in the embodiment of the present invention will be described.
D26 is an imaging device for photographing, and an imaging device 86 for scene analysis.
Is in the imaging device for analysis, the middle region blocks M11 to M44 are in a large region, the small region blocks S11 to S58 are in a small region, the CPU 35C is in a gain calculating unit, a detecting unit and a converting unit, and the TC-Duv coordinate system is in a first region. R / GB /
The G coordinate system corresponds to the second coordinate system, and the gain adjustment circuit 103 corresponds to gain adjustment means.

【0046】[0046]

【発明の効果】以上詳細に説明したように本発明によれ
ば、次のような効果を奏する。 (1)請求項1、2の発明では、シーン解析用画像の大
きな領域のデータおよびシーン解析画像の小さな領域の
データの少なくとも一方を用いて、撮影用画像データに
対するゲイン調整用のゲインを算出するようにした。し
たがって、大きな領域のデータを用いた場合は領域内に
被写体の複数の色が存在する可能性が高く、小さな領域
を用いた場合は被写体の色が1色となる可能性が高くな
る。この関係を用いてゲイン調整を行うことにより、色
おち、色かぶり現象を抑制することが可能になる。 (2)請求項3、4、5の発明では、シーン解析用画像
のデータから少なくとも2色を検出し、検出された色の
うち少なくとも1色を用いて撮影用画像に対するゲイン
調整用のゲインを算出するようにした。この結果、たと
えばポートレート撮影を行う場合に肌色を検出してゲイ
ン調整用のゲインを算出するようにすれば、肌色に対し
て最適なゲインを算出することができるから、肌色が正
しく再現される。
According to the present invention as described in detail above, the following effects can be obtained. (1) According to the first and second aspects of the present invention, at least one of data of a large area of a scene analysis image and data of a small area of a scene analysis image is used to calculate a gain for gain adjustment with respect to the image data for photographing. I did it. Therefore, when data of a large area is used, there is a high possibility that a plurality of colors of the subject exist in the area, and when a small area is used, there is a high possibility that the color of the subject becomes one color. By performing gain adjustment using this relationship, it is possible to suppress the color drop and the color cast. (2) In the invention of claims 3, 4, and 5, at least two colors are detected from the data of the image for scene analysis, and at least one of the detected colors is used to adjust the gain for gain adjustment for the image for photographing. It was calculated. As a result, for example, when performing portrait photography, if the skin color is detected and the gain for gain adjustment is calculated, the optimal gain for the skin color can be calculated, and the skin color is correctly reproduced. .

【0047】(3)請求項6、7の発明では、シーン解
析用画像データを色に関する第1の座標系および第2の
座標系に変換するようにしたので、たとえば、シーン解
析用画像データを色温度および無彩色からの隔たり具合
の座標で表したり、R色成分およびB色成分の大きさの
座標で表すことができる。したがって、たとえば、ポー
トレート撮影の場合にゲイン算出手段がシーン解析用画
像データから肌色を検出してゲイン調整用ゲインを算出
するとき、R色成分およびB色成分の大きさの座標を用
いるようにすれば、肌色を検出しやすくなる。 (4)請求項8の発明では、座標変換に用いられるシー
ン解析用画像データの領域に応じて第1の座標系および
第2の座標系を選択するようにした。大きな領域の場合
は領域内に被写体の複数の色が存在する可能性が高く、
小さな領域の場合は被写体の色が1色となる可能性が高
くなる。この関係を用いてゲイン調整を行うことによ
り、色おち、色かぶり現象を抑制することが可能にな
る。 (5)請求項9の発明では、請求項8の構成に加えて、
被写体に応じて座標変換に用いられるシーン解析用画像
データの領域の大きさを変えるようにした。したがっ
て、ポートレート撮影のように、肌色を検出してゲイン
調整用ゲインを算出する方がよい場合に小さな領域が用
いられるようにすれば、R色成分およびB色成分の大き
さの座標が選択されるようになり、肌色を検出しやすく
なる。
(3) According to the sixth and seventh aspects of the present invention, the image data for scene analysis is converted into the first coordinate system and the second coordinate system related to color. It can be represented by coordinates of the color temperature and the degree of separation from the achromatic color, or can be represented by the coordinates of the magnitudes of the R color component and the B color component. Therefore, for example, in the case of portrait photographing, when the gain calculating means calculates the gain for gain adjustment by detecting the skin color from the image data for scene analysis, it uses the coordinates of the magnitudes of the R color component and the B color component. Then, it becomes easier to detect the flesh color. (4) In the invention of claim 8, the first coordinate system and the second coordinate system are selected according to the area of the image data for scene analysis used for coordinate conversion. In the case of a large area, there is a high possibility that there are multiple colors of the subject in the area,
In the case of a small area, there is a high possibility that the color of the subject becomes one color. By performing gain adjustment using this relationship, it is possible to suppress the color drop and the color cast. (5) In the invention of claim 9, in addition to the configuration of claim 8,
The size of the area of the image data for scene analysis used for coordinate transformation is changed according to the subject. Therefore, if it is better to detect the skin color and calculate the gain for gain adjustment, such as in portrait photography, and use a small area, the coordinates of the size of the R color component and the B color component can be selected. And it becomes easier to detect skin color.

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

【図1】一眼レフデジタルスチルカメラの一実施の形態
の構成を示す図である。
FIG. 1 is a diagram illustrating a configuration of an embodiment of a single-lens reflex digital still camera.

【図2】一眼レフデジタルスチルカメラの信号処理系統
の一実施の形態を示すブロック図である。
FIG. 2 is a block diagram showing an embodiment of a signal processing system of the single-lens reflex digital still camera.

【図3】図2に示した信号処理系統のうちライン処理を
行なう回路を説明するブロック図である。
FIG. 3 is a block diagram illustrating a circuit that performs line processing in the signal processing system illustrated in FIG. 2;

【図4】シーン解析用撮像装置の画素配列を示す図であ
る。
FIG. 4 is a diagram illustrating a pixel array of the imaging device for scene analysis.

【図5】図4の撮像装置上に設けられたカラーフィルタ
の配列、および中領域分割を示す図である。
5 is a diagram showing an arrangement of color filters provided on the image pickup apparatus of FIG. 4 and a middle area division.

【図6】図4の撮像装置の小領域分割を示す図である。FIG. 6 is a diagram illustrating a small area division of the imaging apparatus of FIG. 4;

【図7】色温度とホワイトバランス調整用ゲインの関係
を示すグラフである。
FIG. 7 is a graph showing a relationship between a color temperature and a gain for white balance adjustment.

【図8】R/G-B/G座標上に表した色温度曲線の図であ
る。
FIG. 8 is a diagram of a color temperature curve represented on R / GB / G coordinates.

【図9】集合判定を説明する図である。FIG. 9 is a diagram illustrating a set determination.

【図10】ホワイトバランス検出処理を示すフローチャ
ートである。
FIG. 10 is a flowchart illustrating white balance detection processing.

【図11】半押しスイッチで起動されるプログラムを示
すフローチャートである。
FIG. 11 is a flowchart showing a program started by a half-press switch.

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

21…CPU、 22…半押し
スイッチ、23…全押しスイッチ、 2
6…CCD、28…A/D変換回路、
29…画像処理回路、33…JPEG圧縮回路、
35…シーン検出処理回路、35B…A/D変
換回路、 35C…CPU、36…焦点検
出装置、 37…レンズ駆動装置、3
8…レンズ情報入力部、 73…撮影用撮
像装置、86…シーン解析用撮像装置、 90
…交換ズームレンズ、91…撮影レンズ、
92…絞り、100…ライン処理回路、
102…ゲイン設定回路、103…ゲイン調整
回路、 M11〜M44…16分割された中
領域、S11〜S58…40分割された小領域
21: CPU, 22: Half-press switch, 23: Full-press switch, 2
6 CCD, 28 A / D conversion circuit,
29 ... Image processing circuit, 33 ... JPEG compression circuit,
35: scene detection processing circuit, 35B: A / D conversion circuit, 35C: CPU, 36: focus detection device, 37: lens drive device, 3
Reference numeral 8: lens information input unit; 73, an imaging device for photographing; 86, an imaging device for scene analysis;
… Interchangeable zoom lens, 91… Shooting lens,
92: aperture, 100: line processing circuit,
102: gain setting circuit, 103: gain adjustment circuit, M11 to M44: medium area divided into 16, S11 to S58: small area divided into 40

フロントページの続き Fターム(参考) 5C065 AA03 BB02 BB04 BB10 BB12 BB23 CC08 CC09 DD02 DD17 EE06 EE13 FF03 GG15 GG17 GG18 GG23 GG30 GG31 GG32 GG35 5C066 AA01 BA20 CA08 CA17 DD01 DD07 EA08 EA15 EA19 EB03 EC02 EC05 GA01 HA02 KA09 KA12 KD02 KD06 KE03 KE05 KE09 KE17 KE19 KE24 KF05 KM02 KM05 Continued on the front page F term (reference) 5C065 AA03 BB02 BB04 BB10 BB12 BB23 CC08 CC09 DD02 DD17 EE06 EE13 FF03 GG15 GG17 GG18 GG23 GG30 GG31 GG32 GG35 5C066 AA01 BA20 CA08 CA17 DD01 DD07 EA08 EA02 EC02 KE03 KE05 KE09 KE17 KE19 KE24 KF05 KM02 KM05

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】撮影レンズを通過する被写体像を撮像して
画像データを出力する撮影用撮像装置と、 前記撮影レンズに対して前記撮影用撮像装置と共役な位
置に配設され、前記被写体像を受光してシーン解析用画
像データを出力する解析用撮像装置と、 前記シーン解析用画像の大きな領域のデータおよび前記
シーン解析用画像の小さな領域のデータの少なくとも一
方を用いてゲインを算出するゲイン算出手段と、 前記撮影用撮像装置から出力された画像データに対して
前記ゲイン算出手段で算出されたゲインをかけてゲイン
調整を行うゲイン調整手段とを備えることを特徴とする
デジタルカメラ。
An image pickup device for picking up an image of an object passing through an image pickup lens and outputting image data; and an image pickup device arranged at a position conjugate with the image pickup device for image pickup with respect to the image pickup lens. An imaging device for receiving image data and outputting scene analysis image data; and a gain for calculating a gain using at least one of data of a large area of the scene analysis image and data of a small area of the scene analysis image. A digital camera, comprising: a calculating unit; and a gain adjusting unit configured to apply a gain calculated by the gain calculating unit to image data output from the photographing imaging apparatus to perform a gain adjustment.
【請求項2】請求項1に記載のデジタルカメラにおい
て、 前記ゲイン算出手段は、前記シーン解析用画像の大きな
領域および小さな領域のいずれか一方を被写体に応じて
選択し、選択した領域のデータを用いてゲインを算出す
ることを特徴とするデジタルカメラ。
2. The digital camera according to claim 1, wherein said gain calculating means selects one of a large area and a small area of said scene analysis image according to a subject, and stores data of the selected area. A digital camera characterized in that the gain is calculated using the digital camera.
【請求項3】撮影レンズを通過する被写体像を撮像して
画像データを出力する撮影用撮像装置と、 前記撮影レンズに対して前記撮影用撮像装置と共役な位
置に配設され、前記被写体像を受光してシーン解析用画
像データを出力する解析用撮像装置と、 前記シーン解析用画像のデータから少なくとも2色を検
出する検出手段と、 前記検出手段で検出された少なくとも1色を用いてゲイ
ンを算出するゲイン算出手段と、 前記撮影用撮像装置から出力された画像データに対して
前記ゲイン算出手段で算出されたゲインをかけてゲイン
調整を行うゲイン調整手段とを備えることを特徴とする
デジタルカメラ。
3. An imaging device for capturing an image of an object passing through an imaging lens and outputting image data, the imaging device being disposed at a position conjugate to the imaging device with respect to the imaging lens, and An imaging device that receives image data and outputs scene analysis image data; a detection unit that detects at least two colors from the data of the scene analysis image; and a gain using at least one color detected by the detection unit. And a gain adjusting means for performing a gain adjustment by multiplying the image data output from the photographing imaging device by a gain calculated by the gain calculating means. camera.
【請求項4】請求項3に記載のデジタルカメラにおい
て、 前記検出手段は少なくとも肌色を検出し、前記ゲイン算
出手段は前記肌色を用いてゲインを算出することを特徴
とするデジタルカメラ。
4. The digital camera according to claim 3, wherein said detecting means detects at least a flesh color, and said gain calculating means calculates a gain using said flesh color.
【請求項5】請求項3に記載のデジタルカメラにおい
て、 前記ゲイン算出手段は、前記検出手段で検出された2色
のいずれか一方を被写体に応じて選択し、選択した色を
用いてゲインを算出することを特徴とするデジタルカメ
ラ。
5. The digital camera according to claim 3, wherein said gain calculating means selects one of the two colors detected by said detecting means in accordance with a subject, and calculates a gain using the selected color. A digital camera characterized by calculating.
【請求項6】撮影レンズを通過する被写体像を撮像して
画像データを出力する撮影用撮像装置と、 前記撮影レンズに対して前記撮影用撮像装置と共役な位
置に配設され、前記被写体像を受光してシーン解析用画
像データを出力する解析用撮像装置と、 前記シーン解析用画像のデータを色に関する第1の座標
系および第2の座標系に変換する変換手段と、 前記変換手段で変換された少なくとも1つの座標系を用
いてゲインを算出するゲイン算出手段と、 前記撮影用撮像装置から出力された画像データに対して
前記ゲイン算出手段で算出されたゲインをかけてゲイン
調整を行うゲイン調整手段とを備えることを特徴とする
デジタルカメラ。
6. An imaging device for capturing an image of an object passing through an imaging lens and outputting image data, the imaging device being disposed at a position conjugate with the imaging device for the imaging with respect to the imaging lens, and An image capturing apparatus for receiving image data and outputting scene analysis image data; a conversion unit configured to convert the data of the scene analysis image into a first coordinate system and a second coordinate system related to color; Gain calculating means for calculating a gain using at least one of the converted coordinate systems; and performing gain adjustment by multiplying the image data output from the imaging device for photographing by the gain calculated by the gain calculating means. A digital camera, comprising: a gain adjusting unit.
【請求項7】請求項6に記載のデジタルカメラにおい
て、 前記ゲイン算出手段は、前記第1および第2の座標系の
いずれか一方を被写体に応じて選択し、選択した座標系
を用いてゲインを算出することを特徴とするデジタルカ
メラ。
7. The digital camera according to claim 6, wherein said gain calculating means selects one of said first and second coordinate systems according to a subject, and uses the selected coordinate system to obtain a gain. A digital camera characterized by calculating
【請求項8】撮影レンズを通過する被写体像を撮像して
画像データを出力する撮影用撮像装置と、 前記撮影レンズに対して前記撮影用撮像装置と共役な位
置に配設され、前記被写体像を受光してシーン解析用画
像データを出力する解析用撮像装置と、 前記シーン解析用画像の所定の領域のデータを色に関す
る第1の座標系および第2の座標系に変換する変換手段
と、 前記変換手段で用いられた前記領域の大きさに応じて前
記第1および第2の座標系のいずれか一方を選択し、選
択した座標系を用いてゲインを算出するゲイン算出手段
と、 前記撮影用撮像装置から出力された画像データに対して
前記ゲイン算出手段で算出されたゲインをかけてゲイン
調整を行うゲイン調整手段とを備えることを特徴とする
デジタルカメラ。
8. An image pickup device for picking up an image of an object passing through an image pickup lens and outputting image data; and an image pickup device arranged at a position conjugate to the image pickup device for image pickup with respect to the image pickup lens. An imaging device for receiving image data and outputting image data for scene analysis, and conversion means for converting data of a predetermined area of the image for scene analysis into a first coordinate system and a second coordinate system related to color, Gain calculation means for selecting one of the first and second coordinate systems according to the size of the area used by the conversion means and calculating a gain using the selected coordinate system; And a gain adjustment unit for multiplying the image data output from the imaging device by the gain calculated by the gain calculation unit to adjust the gain.
【請求項9】請求項8に記載のデジタルカメラにおい
て、 前記変換手段は、使用する前記シーン解析用画像の領域
の大きさを被写体に応じて変えることを特徴とするデジ
タルカメラ。
9. The digital camera according to claim 8, wherein said converting means changes a size of an area of said scene analysis image to be used according to a subject.
JP27511899A 1999-09-28 1999-09-28 Digital camera Expired - Lifetime JP4487342B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP27511899A JP4487342B2 (en) 1999-09-28 1999-09-28 Digital camera
US09/503,917 US6906744B1 (en) 1999-09-28 2000-02-15 Electronic camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27511899A JP4487342B2 (en) 1999-09-28 1999-09-28 Digital camera

Publications (2)

Publication Number Publication Date
JP2001103508A true JP2001103508A (en) 2001-04-13
JP4487342B2 JP4487342B2 (en) 2010-06-23

Family

ID=17550974

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27511899A Expired - Lifetime JP4487342B2 (en) 1999-09-28 1999-09-28 Digital camera

Country Status (1)

Country Link
JP (1) JP4487342B2 (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002354498A (en) * 2001-05-24 2002-12-06 Nikon Corp Electronic camera
JP2003264850A (en) * 2002-03-07 2003-09-19 Fuji Photo Film Co Ltd Digital camera
JP2003333616A (en) * 2002-03-06 2003-11-21 Canon Inc White balance adjustment method, image pickup device, program, and storage medium
EP1482725A2 (en) 2003-05-26 2004-12-01 Nikon Corporation Image processing unit, electronic camera, and image processing program
JP2006270135A (en) * 2005-03-22 2006-10-05 Acutelogic Corp Color reproduction compensator in electronic image pickup device
US7146041B2 (en) 2001-11-08 2006-12-05 Fuji Photo Film Co., Ltd. Method and apparatus for correcting white balance, method for correcting density and recording medium on which program for carrying out the methods is recorded
US7148921B2 (en) 2002-03-06 2006-12-12 Canon Kabushiki Kaisha White balance adjustment method, image sensing apparatus, program, and storage medium
JP2007036462A (en) * 2005-07-25 2007-02-08 Fujifilm Holdings Corp Image processing apparatus
JP2007228516A (en) * 2006-02-27 2007-09-06 Fujifilm Corp Photographing apparatus
JP2007300320A (en) * 2006-04-28 2007-11-15 Canon Inc Imaging device and imaging method
JP2009004895A (en) * 2007-06-19 2009-01-08 Nikon Corp Imaging apparatus, image processor, and program
JP2009218641A (en) * 2008-03-06 2009-09-24 Ricoh Co Ltd Imaging device, imaging method, and program for executing imaging method by computer of imaging device
US7599093B2 (en) 2004-09-30 2009-10-06 Fujifilm Corporation Image processing apparatus, method and program
US7782394B2 (en) 2005-12-06 2010-08-24 Panasonic Corporation Digital camera
US8035707B2 (en) 2006-04-06 2011-10-11 Nikon Corporation Imaging apparatus with scene analysis
US8223242B2 (en) 2005-12-06 2012-07-17 Panasonic Corporation Digital camera which switches the displays of images with respect to a plurality of display portions
JP2012165077A (en) * 2011-02-03 2012-08-30 Canon Inc White balance control apparatus, imaging apparatus using the same, and white balance control method
US8629912B2 (en) 2005-05-12 2014-01-14 Nikon Corporation Camera including a plurality of image sensors
JP2015095681A (en) * 2013-11-08 2015-05-18 オリンパス株式会社 Multi-area white balance controller, multi-area white balance control method, multi-area white balance control program, computer recorded with multi-area white balance control program, multi-area white balance image processing device, multi-area white balance image processing method, multi-area white balance image processing program, computer recorded with multi-area white balance image processing program, and imaging apparatus equipped with multi-area white balance image processing device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929631B (en) * 2013-01-15 2016-12-28 瑞昱半导体股份有限公司 Use white balance adjustment method and the device thereof of scene detection

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002354498A (en) * 2001-05-24 2002-12-06 Nikon Corp Electronic camera
US7146041B2 (en) 2001-11-08 2006-12-05 Fuji Photo Film Co., Ltd. Method and apparatus for correcting white balance, method for correcting density and recording medium on which program for carrying out the methods is recorded
JP2003333616A (en) * 2002-03-06 2003-11-21 Canon Inc White balance adjustment method, image pickup device, program, and storage medium
US7148921B2 (en) 2002-03-06 2006-12-12 Canon Kabushiki Kaisha White balance adjustment method, image sensing apparatus, program, and storage medium
JP2003264850A (en) * 2002-03-07 2003-09-19 Fuji Photo Film Co Ltd Digital camera
EP1482725A2 (en) 2003-05-26 2004-12-01 Nikon Corporation Image processing unit, electronic camera, and image processing program
EP1482725A3 (en) * 2003-05-26 2006-04-05 Nikon Corporation Image processing unit, electronic camera, and image processing program
US7446802B2 (en) 2003-05-26 2008-11-04 Nikon Corporation Image processing unit, electronic camera, and image processing program for determining parameters of white balance adjustment to be applied to an image
US7599093B2 (en) 2004-09-30 2009-10-06 Fujifilm Corporation Image processing apparatus, method and program
JP2006270135A (en) * 2005-03-22 2006-10-05 Acutelogic Corp Color reproduction compensator in electronic image pickup device
US8629912B2 (en) 2005-05-12 2014-01-14 Nikon Corporation Camera including a plurality of image sensors
JP2007036462A (en) * 2005-07-25 2007-02-08 Fujifilm Holdings Corp Image processing apparatus
US7787045B2 (en) 2005-12-06 2010-08-31 Panasonic Corporation Digital camera having a control portion for light measurement
US8228416B2 (en) 2005-12-06 2012-07-24 Panasonic Corporation Digital camera
US9071747B2 (en) 2005-12-06 2015-06-30 Panasonic Intellectual Property Management Co., Ltd. Digital camera
US7782394B2 (en) 2005-12-06 2010-08-24 Panasonic Corporation Digital camera
US8970759B2 (en) 2005-12-06 2015-03-03 Panasonic Intellectual Property Management Co., Ltd. Digital camera
US7796160B2 (en) 2005-12-06 2010-09-14 Panasonic Corporation Digital camera
US8411196B2 (en) 2005-12-06 2013-04-02 Panasonic Corporation Digital camera with movable mirror for AF in live view mode and optical viewfinder mode
US8264596B2 (en) 2005-12-06 2012-09-11 Panasonic Corporation Digital camera with live view mode
US8111323B2 (en) 2005-12-06 2012-02-07 Panasonic Corporation Digital camera
US8218071B2 (en) 2005-12-06 2012-07-10 Panasonic Corporation Digital camera
US8223242B2 (en) 2005-12-06 2012-07-17 Panasonic Corporation Digital camera which switches the displays of images with respect to a plurality of display portions
US8223263B2 (en) 2005-12-06 2012-07-17 Panasonic Corporation Digital camera
JP4647518B2 (en) * 2006-02-27 2011-03-09 富士フイルム株式会社 Imaging device
JP2007228516A (en) * 2006-02-27 2007-09-06 Fujifilm Corp Photographing apparatus
US8035707B2 (en) 2006-04-06 2011-10-11 Nikon Corporation Imaging apparatus with scene analysis
US9165377B2 (en) 2006-04-06 2015-10-20 Nikon Corporation Imaging apparatus with scene analysis
JP2007300320A (en) * 2006-04-28 2007-11-15 Canon Inc Imaging device and imaging method
JP2009004895A (en) * 2007-06-19 2009-01-08 Nikon Corp Imaging apparatus, image processor, and program
JP2009218641A (en) * 2008-03-06 2009-09-24 Ricoh Co Ltd Imaging device, imaging method, and program for executing imaging method by computer of imaging device
JP2012165077A (en) * 2011-02-03 2012-08-30 Canon Inc White balance control apparatus, imaging apparatus using the same, and white balance control method
JP2015095681A (en) * 2013-11-08 2015-05-18 オリンパス株式会社 Multi-area white balance controller, multi-area white balance control method, multi-area white balance control program, computer recorded with multi-area white balance control program, multi-area white balance image processing device, multi-area white balance image processing method, multi-area white balance image processing program, computer recorded with multi-area white balance image processing program, and imaging apparatus equipped with multi-area white balance image processing device

Also Published As

Publication number Publication date
JP4487342B2 (en) 2010-06-23

Similar Documents

Publication Publication Date Title
JP4826028B2 (en) Electronic camera
KR100799215B1 (en) Camera
US6906744B1 (en) Electronic camera
JP4487342B2 (en) Digital camera
JP3551123B2 (en) Electronic camera
JP4628937B2 (en) Camera system
US7009641B2 (en) Electronic camera with gain adjustment
EP1246453A2 (en) Signal processing apparatus and method, and image sensing apparatus
JP5169318B2 (en) Imaging apparatus and imaging method
US20070047019A1 (en) Device and method for processing images
JP5219268B2 (en) Imaging apparatus and flash control method
JP4717720B2 (en) Image processing apparatus and method, and program
KR20080101277A (en) Digiatal image process apparatus for displaying histogram and method thereof
KR20070070008A (en) Camera
JP4239234B2 (en) Electronic still camera
US20050206750A1 (en) Digital still camera and image processing program, imaging device and method and program for same
JP4029206B2 (en) Imaging device
JP3967510B2 (en) Digital camera
JP5048599B2 (en) Imaging device
JP4649734B2 (en) Video signal processing apparatus and recording medium on which video signal processing program is recorded
JP4880375B2 (en) Image signal processing apparatus and image signal processing method
KR101612853B1 (en) Photographing apparatus, controlling method of photographing apparatus, and recording medium storing program to implement the controlling method
JP4028395B2 (en) Digital camera
US20050030411A1 (en) Digital still camera and image processing program
JP2001136546A (en) Electronic camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090717

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090728

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090925

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20090925

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100215

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100322

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

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4487342

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

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20130409

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140409

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

EXPY Cancellation because of completion of term