JP2006042168A - Imaging apparatus, and method for calculating white balance control value - Google Patents

Imaging apparatus, and method for calculating white balance control value Download PDF

Info

Publication number
JP2006042168A
JP2006042168A JP2004221952A JP2004221952A JP2006042168A JP 2006042168 A JP2006042168 A JP 2006042168A JP 2004221952 A JP2004221952 A JP 2004221952A JP 2004221952 A JP2004221952 A JP 2004221952A JP 2006042168 A JP2006042168 A JP 2006042168A
Authority
JP
Japan
Prior art keywords
image data
main subject
white balance
control value
balance control
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.)
Withdrawn
Application number
JP2004221952A
Other languages
Japanese (ja)
Inventor
Yoshitaka Takeuchi
義尊 竹内
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2004221952A priority Critical patent/JP2006042168A/en
Publication of JP2006042168A publication Critical patent/JP2006042168A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To properly correct the white balance of a main subject area in an image which is photographed by performing light control. <P>SOLUTION: The imaging apparatus comprises: a speed light (138); an imaging element (101) for converting an incident subject optical image into an electric signal and outputting image data; a main subject area detecting part (140) for determining the main subject area including a main subject in the image data which is picked-up by the imaging element after performing the light control with the speed light; and an achromatic color part detecting part (112) and a WB gain calculating part (114) for detecting an achromatic color part in the main subject area from the image data and calculating a white balance control value, based on partial image data corresponding to the achromatic color part. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、撮像装置及びホワイトバランス制御値算出方法に関し、特に、調光を行って撮影を行う場合のホワイトバランス制御値算出方法及び当該方法を適用した撮像装置に関する。   The present invention relates to an imaging device and a white balance control value calculation method, and more particularly, to a white balance control value calculation method in the case of shooting with light control and an imaging device to which the method is applied.

図7は、従来のデジタルカメラの一構成例を示す図である。   FIG. 7 is a diagram illustrating a configuration example of a conventional digital camera.

図7において、不図示の撮影レンズを通過した被写体光学像は撮像素子301上に結像し、その光量に応じた電荷に変換される。撮像素子301は例えば図8に示すようなR(赤)、G(緑)、B(青)のカラーフィルタにより覆われている。なお、図8に示すフィルタ配列は一般にベイヤー配列と呼ばれて、輝度信号に対する寄与度の高いGフィルタを2画素分配置した4画素を1組として構成される。なお、後述する処理において、撮像素子の回路構成上、Rを含む行とBを含む行とが異なる読み出しアンプを用いている場合を考慮して、R行のGをG1、B行のGをG2として、G1、G2を異なる色成分として扱うため、図8では区別して記載する。各カラーフィルタはそれぞれの色の波長帯域周辺の分光感度を持ち、各カラーフィルタに対応して設けられた光電変換素子は、各カラーフィルタを通過した帯域の光線をそれぞれ光電変換する。   In FIG. 7, a subject optical image that has passed through a photographing lens (not shown) is formed on an image sensor 301 and converted into electric charges corresponding to the amount of light. The image sensor 301 is covered with, for example, R (red), G (green), and B (blue) color filters as shown in FIG. Note that the filter array shown in FIG. 8 is generally called a Bayer array, and is configured as a set of four pixels in which two G filters having a high contribution to the luminance signal are arranged. In the process described later, considering the case where a readout amplifier is used in which the row including R and the row including B are different due to the circuit configuration of the image sensor, G in R row is set to G1, and G in B row is set to G1. Since G1 and G2 are handled as different color components as G2, they are described separately in FIG. Each color filter has a spectral sensitivity around the wavelength band of each color, and a photoelectric conversion element provided corresponding to each color filter photoelectrically converts light in the band that has passed through each color filter.

各光電変換素子により変換された電荷は、撮像素子301から電気信号としてA/D変換部303に出力され、A/D変換処理によりデジタル信号(画像データ)に変換される。   The electric charge converted by each photoelectric conversion element is output as an electric signal from the image pickup element 301 to the A / D conversion unit 303 and converted into a digital signal (image data) by A / D conversion processing.

A/D変換部303から出力されたデジタル信号は、オートホワイトバランス(AWB)処理部305に送られてゲイン補正されると同時に、色度座標変換部310にも送られる。   The digital signal output from the A / D conversion unit 303 is sent to the auto white balance (AWB) processing unit 305 for gain correction, and simultaneously sent to the chromaticity coordinate conversion unit 310.

撮影した画像データから撮影画像に適したホワイトバランス制御値を自動で求めるオートホワイトバランスの場合、例えば以下のようにしてホワイトバランスのゲイン値(ホワイトバランス制御値)を求める。   In the case of auto white balance that automatically obtains a white balance control value suitable for a photographed image from photographed image data, for example, a white balance gain value (white balance control value) is obtained as follows.

まず、色度座標変換部310は、画像データのうち、図8に示されるように、隣接したR、G1、G2、Bの組み合わせで、R:B及び(R+B):(G1+G2)を求めて、図9に示すような二次元座標上にプロットし、無彩色部分検出部312は、黒体輻射軌跡802の近傍の座標範囲801の枠内に位置したR、G1、G2、Bの組み合わせを無彩色の領域として判定する。そして、WBゲイン算出部314は、判定された組み合わせの信号を各色成分毎に順次積分して各色成分の積分値SumR、SumG1、SumG2、SumBを求め、SumR:SumG1:SumG2:SumBの比がG成分を基準として、1:1:1:1になるようなホワイトバランス制御値WbR、WbG1、WbG2、WbBを次式(1)のようにして求める。
WbR =(SumG1+SumG2)/(2×SumR)
WbG1 =(SumG1+SumG2)/(2×SumG1)
WbG2 =(SumG1+SumG2)/(2×SumG2)
WbB =(SumG1+SumG2)/(2×SumB) …(1)
First, the chromaticity coordinate conversion unit 310 obtains R: B and (R + B) :( G1 + G2) in the combination of adjacent R, G1, G2, and B in the image data as shown in FIG. 9, plotted on two-dimensional coordinates as shown in FIG. 9, the achromatic color portion detection unit 312 determines a combination of R, G1, G2, and B located within the frame of the coordinate range 801 in the vicinity of the blackbody radiation locus 802. It is determined as an achromatic region. Then, the WB gain calculation unit 314 sequentially integrates the determined combination signal for each color component to obtain integration values SumR, SumG1, SumG2, and SumB of each color component, and the ratio of SumR: SumG1: SumG2: SumB is G. The white balance control values WbR, WbG1, WbG2, and WbB, which are 1: 1: 1: 1, are determined as shown in the following equation (1) with reference to the components.
WbR = (SumG1 + SumG2) / (2 x SumR)
WbG1 = (SumG1 + SumG2) / (2 x SumG1)
WbG2 = (SumG1 + SumG2) / (2 x SumG2)
WbB = (SumG1 + SumG2) / (2 × SumB) (1)

AWB処理部305では、WBゲイン算出部314において上述したようにして求められたホワイトバランス制御値をこの画像での最適な光源の色温度に対する制御値であると決定して、全画像データのうち、Rフィルタの画素信号に対してWbRを、G1フィルタの画素信号に対してWbG1を、G2フィルタの画素信号に対してWbG2を、Bフィルタの画素信号に対してWbBをそれぞれ乗算することでホワイトバランス演算処理を行う。   The AWB processing unit 305 determines that the white balance control value obtained as described above in the WB gain calculation unit 314 is a control value for the optimum color temperature of the light source in this image, and out of all the image data. By multiplying WbR for the pixel signal of the R filter, WbG1 for the pixel signal of the G1 filter, WbG2 for the pixel signal of the G2 filter, and WbB for the pixel signal of the B filter, respectively. Perform balance calculation processing.

オートホワイトバランス処理された画像データは、現像処理部307において現像処理される。ここではホワイトバランス調整された画像データに対して、最適なガンマ特性によって最適なコントラスト特性を与えたり、色調整やシャープネス処理などを行うことで、モニタ鑑賞のための出力やプリント出力などに最適な特性の画像データに変換される。   The image data that has been subjected to auto white balance processing is developed in the development processing unit 307. Here, white balance adjusted image data is optimized for output for monitor viewing and print output by giving optimal contrast characteristics with optimal gamma characteristics, color adjustment, sharpness processing, etc. It is converted into image data with characteristics.

現像処理部307で出力に最適な画像処理が行われた画像データは、画像データ出力部309においてファイル化されて出力される。例えば、ファイル形式をJPEGファイルに変換する場合には、画像処理されたRGBデータをYCrCb形式に3次元マトリックス変換して付属データを添付することでJPEGファイル形式に変換する(例えば、特許文献1参照)。   The image data that has been subjected to image processing that is optimal for output by the development processing unit 307 is output as a file in the image data output unit 309. For example, when converting a file format to a JPEG file, the image-processed RGB data is converted into a YPEGCb format by three-dimensional matrix conversion and attached data is attached to the JPEG file format (see, for example, Patent Document 1). ).

特開平07−154814号公報JP 07-154814 A

上記従来例では、オートホワイトバランス処理を行うときは、撮影された全画像データから無彩色部分を検出し、検出された部分のR:G:Bを1:1:1にするゲインを求め、そのゲインをR、G、Bの各色成分ごとに乗算することで実現している。   In the above conventional example, when auto white balance processing is performed, an achromatic color portion is detected from all captured image data, and a gain for making R: G: B of the detected portion 1: 1: 1 is obtained, This is realized by multiplying the gain for each of the R, G, and B color components.

上記方式によりホワイトバランス処理を行うカメラにスピードライトなどの調光装置を装着して撮影を行った場合、例えば図10に示される撮影画面901において、被写体及びその周辺を定常光として元々照射している光源が、タングステン光やハロゲン光などのように色温度が約3000Kほどの赤みの強い光源である場合、色温度が約5500Kほどの青みの強いスピードライト光と光源色が大きく異なる。こういった撮影画面901において、主被写体部分904の露光量が適切となるように調光制御が行われた場合であっても、上記した従来の方法では調光されていない赤みの強い画像部分903からもホワイトバランス制御値を求める為の無彩色部を検出するため、その赤みの強い低色温度側の無彩色部もホワイトバランスの結果に影響を及ぼすことになる。その結果、調光されている高色温度側の青みの強い主被写体部分904やその周辺の画像部分902を適正にホワイトバランス補正できず、若干青みの残る補正結果となり、見苦しい画像となってしまう。   When shooting is performed with a light control device such as a speedlight attached to a camera that performs white balance processing according to the above method, for example, in the shooting screen 901 shown in FIG. When the light source is a strong reddish light source having a color temperature of about 3000K, such as tungsten light or halogen light, the light source color is significantly different from the bluish speedlight light having a color temperature of about 5500K. In such a photographing screen 901, even if light control is performed so that the exposure amount of the main subject portion 904 is appropriate, the image portion with strong redness that is not dimmed by the conventional method described above. Since the achromatic color portion for obtaining the white balance control value is also detected from 903, the achromatic color portion on the low color temperature side where the redness is strong also affects the white balance result. As a result, the main subject portion 904 with high bluishness on the high color temperature side that is being dimmed and the image portion 902 in the vicinity thereof cannot be properly white balance corrected, resulting in a correction result that remains slightly bluish, resulting in an unsightly image. .

本発明は上記問題点を鑑みてなされたものであり、調光制御されて撮影された画像において、主被写体領域のホワイトバランス補正を適切に行えるようにすることを目的とする。   The present invention has been made in view of the above-described problems, and an object of the present invention is to appropriately perform white balance correction of a main subject region in an image photographed with dimming control.

上記目的を達成するために、本発明の撮像装置は、調光手段と、入射した被写体光学像を電気信号に変換し、画像データを出力する撮像手段と、前記調光手段により調光を行って前記撮像手段で撮像した前記画像データにおいて、主被写体を含む主被写体領域を決定する主被写体領域決定手段と、前記画像データから、前記主被写体領域内の無彩色部分を検出し、当該無彩色部分に対応する部分画像データに基づいて、ホワイトバランス制御値を算出する算出手段とを有する。   In order to achieve the above object, an imaging apparatus according to the present invention includes a light control unit, an imaging unit that converts an incident subject optical image into an electrical signal and outputs image data, and performs light control using the light control unit. In the image data picked up by the image pickup means, a main subject area determination means for determining a main subject area including a main subject, and an achromatic portion in the main subject area is detected from the image data, and the achromatic color is detected. Calculation means for calculating a white balance control value based on partial image data corresponding to the portion.

また、本発明のホワイトバランス制御値算出方法は、調光手段による調光が必要かどうか判定する判定工程と、調光が必要な場合に、前記調光手段により調光を行い、入射した被写体光学像を電気信号に変換し、画像データを出力する撮像工程と、前記撮像工程で撮像された前記画像データにおいて、主被写体を含む主被写体領域を決定する主被写体領域決定工程と、前記画像データから、前記主被写体領域内の無彩色部分を検出し、当該無彩色部分に対応する部分画像データに基づいて、ホワイトバランス制御値を算出する算出工程とを有する。   Further, the white balance control value calculation method of the present invention includes a determination step for determining whether or not dimming by the dimming unit is necessary, and when dimming is necessary, the dimming unit performs dimming and an incident subject An imaging step for converting an optical image into an electrical signal and outputting image data, a main subject region determination step for determining a main subject region including a main subject in the image data captured in the imaging step, and the image data And calculating a white balance control value based on partial image data corresponding to the achromatic color portion.

また、別の構成によれば、本発明の撮像装置は、調光手段と、入射した被写体光学像を電気信号に変換し、画像データを出力する撮像手段と、前記調光手段により調光を行って前記撮像手段で撮像した前記画像データにおいて、主被写体を含む主被写体領域を決定する主被写体領域決定手段と、前記画像データを複数の領域に分割し、前記主被写体領域の重み付けが最も重くなるように、前記複数の分割領域それぞれに対して、重み付け係数を割り当てる重み付け係数決定手段と、前記画像データの前記複数の分割領域それぞれについて無彩色部分を検出し、検出された各無彩色部分に対応する部分画像データに対して、該各無彩色部分が属する分割領域に割り当てられた重み付け係数により重み付けをし、得られた値に基づいてホワイトバランス制御値を算出する算出手段とを有する。   According to another configuration, the imaging apparatus of the present invention includes a light control unit, an image pickup unit that converts an incident subject optical image into an electrical signal and outputs image data, and light control by the light control unit. In the image data that has been captured and picked up by the imaging means, a main subject area determination means that determines a main subject area including a main subject, and the image data is divided into a plurality of areas, and the weight of the main subject area is the heaviest The weighting coefficient determining means for assigning a weighting coefficient to each of the plurality of divided areas, and detecting achromatic portions for each of the plurality of divided areas of the image data, and detecting each achromatic color portion detected The corresponding partial image data is weighted by the weighting coefficient assigned to the divided area to which each achromatic color part belongs, and the white balance is based on the obtained value. And a calculating means for calculating a Nsu control value.

また、本発明のホワイトバランス制御値算出方法は、調光手段による調光が必要かどうか判定する判定工程と、調光が必要な場合に、前記調光手段により調光を行い、入射した被写体光学像を電気信号に変換し、画像データを出力する撮像工程と、前記撮像工程で撮像された前記画像データにおいて、主被写体を含む主被写体領域を決定する主被写体領域決定工程と、前記画像データを複数の領域に分割し、前記主被写体領域の重み付けが最も重くなるように、前記複数の分割領域それぞれに対して、重み付け係数を割り当てる重み付け係数決定工程と、前記画像データの前記複数の分割領域それぞれについて無彩色部分を検出し、検出された各無彩色部分に対応する部分画像データに対して、該各無彩色部分が属する分割領域に割り当てられた重み付け係数により重み付けをし、得られた値に基づいてホワイトバランス制御値を算出する算出工程とを有する。   The white balance control value calculation method according to the present invention includes a determination step for determining whether light control by the light control unit is necessary, and, when light control is necessary, performs light control by the light control unit and makes an incident subject An imaging step for converting an optical image into an electrical signal and outputting image data, a main subject region determination step for determining a main subject region including a main subject in the image data captured in the imaging step, and the image data Is divided into a plurality of regions, and a weighting coefficient determining step for assigning a weighting coefficient to each of the plurality of divided regions so that the weight of the main subject region is the heaviest, and the plurality of divided regions of the image data An achromatic color portion is detected for each, and the partial image data corresponding to each detected achromatic color portion is assigned to the divided area to which each achromatic color portion belongs. Was weighted by weighting coefficients, and a calculation step of calculating the white balance control value based on the obtained value.

本発明によれば、調光制御されて撮影された画像において、主被写体領域のホワイトバランス補正を適切に行えるようにすることが可能となる。   According to the present invention, it is possible to appropriately perform white balance correction of the main subject region in an image photographed with light control.

以下、添付図面を参照して本発明を実施するための最良の形態を詳細に説明する。   The best mode for carrying out the present invention will be described below in detail with reference to the accompanying drawings.

<第1の実施形態>
本発明の第1の実施形態について説明する。
<First Embodiment>
A first embodiment of the present invention will be described.

図1は、本発明の第1の実施形態における撮像装置の概略機能構成を示すブロック図である。   FIG. 1 is a block diagram showing a schematic functional configuration of the imaging apparatus according to the first embodiment of the present invention.

図1において、121は焦点調節レンズを含む撮影レンズ、101は撮影レンズ121を透過した被写体光学像を受光し、受光した光量に応じた電気信号を出力する、CCDやMOS等の撮像素子、103は撮像素子から出力された電気信号をデジタル信号(画像データ)に変換するA/D変換部、105はA/D変換部103から出力された画像データに対して、ホワイトバランス処理を行うオートホワイトバランス(AWB)処理部、107はAWB処理部105によりホワイトバランス処理された画像データに対して現像処理を行う現像処理部、109は現像処理によって生成された画像データを画像ファイル化して出力する画像データ出力部である。なお、上記各構成は、従来と同様の処理動作を行う。   In FIG. 1, 121 is a photographing lens including a focusing lens, 101 is an image sensor such as a CCD or MOS, which receives a subject optical image transmitted through the photographing lens 121 and outputs an electrical signal corresponding to the received light amount, 103 Is an A / D converter that converts an electrical signal output from the image sensor into a digital signal (image data), and 105 is an auto white that performs white balance processing on the image data output from the A / D converter 103. A balance (AWB) processing unit 107, a development processing unit 107 that performs development processing on the image data that has been subjected to white balance processing by the AWB processing unit 105, and an image 109 that outputs image data generated by the development processing as an image file A data output unit. In addition, each said structure performs the processing operation similar to the past.

また、A/D変換部103から出力された画像データは、色度座標変換部110、測光部132、主被写体領域検出部140へも出力される。色度座標変換部110は、入力した画像データを図9に示すような二次元座標上に変換し、無彩色部分検出部112は、座標範囲801の枠内にある無彩色の画像データ(R、G1、G2、B)を検出する。WBゲイン算出部114は、検出された無彩色の画像データに基づいて、AWB処理部105でホワイトバランス処理に用いられるホワイトバランス(AWB)制御値WbR、WbG1、WbG2、WbBを算出する。   The image data output from the A / D conversion unit 103 is also output to the chromaticity coordinate conversion unit 110, the photometry unit 132, and the main subject region detection unit 140. The chromaticity coordinate conversion unit 110 converts the input image data into two-dimensional coordinates as shown in FIG. 9, and the achromatic color portion detection unit 112 converts the achromatic color image data (R within the frame of the coordinate range 801). , G1, G2, B) are detected. The WB gain calculation unit 114 calculates white balance (AWB) control values WbR, WbG1, WbG2, and WbB that are used for white balance processing by the AWB processing unit 105 based on the detected achromatic image data.

122は焦点状態を検出する焦点検出部、124は、焦点検出部124の検出結果に基づいて撮影レンズ121を制御するレンズ制御部、132は測光部、134は測光部132の測光結果に応じて撮像素子を駆動する駆動部、138はスピードライト、136は測光部132の測光結果に応じて、スピードライト138の発光を制御するスピードライト制御部である。また、140は主被写体領域検出部である。   122 is a focus detection unit that detects the focus state, 124 is a lens control unit that controls the photographing lens 121 based on the detection result of the focus detection unit 124, 132 is a photometry unit, and 134 is according to the photometry result of the photometry unit 132. A driving unit for driving the image sensor, 138 is a speed light, and 136 is a speed light control unit that controls light emission of the speed light 138 in accordance with the photometric result of the photometric unit 132. Reference numeral 140 denotes a main subject area detection unit.

上記構成を有する本第1の実施形態の撮像装置では、AWB処理部105は、WBゲイン算出部114で算出されたAWB制御値を用いてAWB処理を行う。   In the imaging apparatus according to the first embodiment having the above-described configuration, the AWB processing unit 105 performs AWB processing using the AWB control value calculated by the WB gain calculation unit 114.

次に、本第1の実施形態の撮像装置におけるWB制御値の算出手順について、図2のフローチャートを参照して説明する。この動作は、例えば、不図示のシャッターボタンの操作により、撮影準備が指示されたときに実行される。   Next, the calculation procedure of the WB control value in the imaging apparatus of the first embodiment will be described with reference to the flowchart of FIG. This operation is executed, for example, when a preparation for photographing is instructed by operating a shutter button (not shown).

まず、ステップS11において、スピードライト138による調光が必要かどうかを判断する。ここでは、例えば、撮像装置が表示部を有する場合、表示部にスルー表示されていた、シャッターボタン操作直前の画像の明るさを測光部132で測光するようにしても、測光部132とは別に周辺光量を測光する測光回路を設けても良い。調光が必要な場合、ステップS12に進み、必要でない場合にはステップS15に進む。   First, in step S11, it is determined whether dimming with the speedlight 138 is necessary. Here, for example, when the imaging apparatus has a display unit, the brightness of the image immediately before the shutter button operation, which is displayed through on the display unit, can be measured by the photometry unit 132, separately from the photometry unit 132. You may provide the photometry circuit which measures a peripheral light quantity. If dimming is necessary, the process proceeds to step S12. If not, the process proceeds to step S15.

ステップS12において、スピードライト制御部136は、スピードライト138に撮影前発光(プレ発光)させ、調光された画像を取得する。ここでは、プレ発光をした状態で撮像素子101により撮影を行い、A/D変換部103によりデジタル信号に変更された画像データが測光部132、色度座標変換部110、主被写体領域検出部に入力される。なお、測光部132では、ここで取得した画像データを用いて測光を行うが、このとき、図3に示すように撮像素子101の撮影画面内401を複数に分割した各測光領域402毎に個別に測光値を求める。   In step S <b> 12, the speedlight control unit 136 causes the speedlight 138 to emit light before photographing (pre-light emission), and obtain a dimmed image. Here, image data is captured by the image sensor 101 in a pre-emission state, and the image data changed into a digital signal by the A / D conversion unit 103 is sent to the photometry unit 132, the chromaticity coordinate conversion unit 110, and the main subject region detection unit. Entered. The photometric unit 132 performs photometry using the image data acquired here. At this time, as shown in FIG. 3, the photometric unit 132 divides the imaging screen 401 of the image sensor 101 into a plurality of individual photometric areas 402. Find the photometric value.

ステップS13では、主被写体領域検出部140により主被写体領域を決定し、無彩色部分決定部112に通知する。ここでは、A/D変換部103から出力された画像データから各測光領域402に対応する領域毎(便宜上、測光領域と呼ぶ。)に位置する各被写体までの距離を算出し、焦点検出部122から送られてくるレンズの焦点距離に合致する距離の被写体を含む測光領域402を主被写体領域として検出する。なお、主被写体を検出する方法としては、レンズの焦点距離を用いずに、最も近くに位置する被写体を主被写体と定義するなど、これら以外にも公知の方法を用いてもよい。このように、各測光領域を単位として主被写体領域を求めることで、露光量制御に利用することができる。図3の例では、被写体404をこの撮影シーンにおける主被写体として決定し、主被写体領域として領域403を決定する。なお、図3に示す例では1つの測光領域を主被写体領域403としたが、1つの領域に限るものではなく、複数の測光領域であっても勿論構わない。   In step S <b> 13, the main subject region detection unit 140 determines the main subject region and notifies the achromatic color portion determination unit 112. Here, the distance from the image data output from the A / D conversion unit 103 to each subject located in each region corresponding to each photometric region 402 (referred to as a photometric region for convenience) is calculated, and the focus detection unit 122 is calculated. A photometric area 402 including a subject at a distance matching the focal length of the lens sent from is detected as the main subject area. In addition, as a method for detecting the main subject, a known method other than these may be used, such as defining the closest subject as the main subject without using the focal length of the lens. Thus, by obtaining the main subject area in units of each photometric area, it can be used for exposure amount control. In the example of FIG. 3, the subject 404 is determined as the main subject in this shooting scene, and the region 403 is determined as the main subject region. In the example shown in FIG. 3, one photometric area is the main subject area 403, but the present invention is not limited to one area, and may be a plurality of photometric areas.

また、主被写体領域検出部140は、検出した主被写体404を含む主被写体領域403を測光部132にも通知する。測光部132は、本発光を行う場合に主被写体領域403の測光値をスピードライト制御部136に渡す。スピードライト制御部136では、主被写体領域403が最適な調光状態となるように、本発光時の調光量を演算する。このように制御することにより、主被写体404を適正な露光状態で撮影することができる。   The main subject region detection unit 140 also notifies the photometry unit 132 of the main subject region 403 including the detected main subject 404. The photometric unit 132 passes the photometric value of the main subject area 403 to the speedlight control unit 136 when performing main light emission. The speedlight control unit 136 calculates the light control amount during the main light emission so that the main subject region 403 is in an optimal light control state. By controlling in this way, the main subject 404 can be photographed in an appropriate exposure state.

スピードライト制御部136は、同時に、発光制御を行うことを示す信号を無彩色部分検出部112に送り、本撮影時にスピードライト138による調光制御を行うことを通知する。   At the same time, the speedlight control unit 136 sends a signal indicating that light emission control is to be performed to the achromatic color part detection unit 112 to notify that the light control by the speedlight 138 is to be performed at the time of actual photographing.

ステップS14では、色度座標変換部110はA/D変換部103から入力される画像データを各画素毎に色度座標値に変換し、無彩色部分検出部112は、入力された発光制御を行うことを示す信号と、主被写体領域を示す信号の2つの信号に基づいて、各画素の色度座標値の内、主被写体領域403に含まれる無彩色部分のみを検出して、対応する画像データ(R、G1、G2、B)をWBゲイン算出部114に渡す。WBゲイン算出部114では、無彩色部分検出部112が検出した画像データを従来と同様の方法を用いて積分し、各色の積分値SumR、SumG1、SumG2、SumBを求める。   In step S14, the chromaticity coordinate conversion unit 110 converts the image data input from the A / D conversion unit 103 into chromaticity coordinate values for each pixel, and the achromatic color portion detection unit 112 performs the input light emission control. Based on the two signals, i.e., a signal indicating that the main subject area is displayed and a signal indicating the main subject area, only the achromatic color portion included in the main subject area 403 is detected from the chromaticity coordinate values of each pixel, and the corresponding image is detected. Data (R, G1, G2, B) is transferred to the WB gain calculation unit 114. The WB gain calculation unit 114 integrates the image data detected by the achromatic color part detection unit 112 using a method similar to the conventional method, and obtains integrated values SumR, SumG1, SumG2, and SumB for each color.

一方、ステップS11でスピードライト138による調光が必要でないと判断した場合には、ステップS15において、撮影前発光(プレ発光)行わずに画像を取得する。そして、ステップS16において、色度座標変換部110はA/D変換部103から入力される画像データを各画素毎に色度座標値に変換し、無彩色部分検出部112は撮像画像全体の無彩色部分の色度座標値に対応する画像データ(R、G1、G2、B)をWBゲイン算出部114に渡し、WBゲイン算出部114では、従来と同様の方法を用いて積分して、各色の積分値SumR、SumG1、SumG2、SumBを求める。   On the other hand, if it is determined in step S11 that dimming with the speedlight 138 is not necessary, in step S15, an image is acquired without performing pre-shooting light emission (pre-light emission). In step S16, the chromaticity coordinate conversion unit 110 converts the image data input from the A / D conversion unit 103 into chromaticity coordinate values for each pixel, and the achromatic color portion detection unit 112 detects the absence of the entire captured image. The image data (R, G1, G2, B) corresponding to the chromaticity coordinate value of the chromatic part is passed to the WB gain calculation unit 114, and the WB gain calculation unit 114 integrates each color using a method similar to the conventional method. Integral values SumR, SumG1, SumG2, and SumB are obtained.

次に、ステップS17において、WBゲイン算出部114はステップS14またはステップS16のいずれかで求めた積分値SumR、SumG1、SumG2、SumBに基づいて、上述した式(1)によりWB制御値WbR、WbG1、WbG2、WbBを求め、求めたWB制御値WbR、WbG1、WbG2、WbBをAWB処理部105に設定する。   Next, in step S17, the WB gain calculation unit 114 calculates the WB control values WbR, WbG1 according to the above-described equation (1) based on the integral values SumR, SumG1, SumG2, SumB obtained in either step S14 or step S16. , WbG2, WbB are obtained, and the obtained WB control values WbR, WbG1, WbG2, WbB are set in the AWB processing unit 105.

以上のように、本第1の実施形態によれば、調光撮影時のオートホワイトバランス制御値を求める場合に、本発光制御値を決めるために用いられる主被写体領域についてのみ、画像データの無彩色部分を検出してWB制御値を求めることにより、撮影画面内で調光の届かない範囲の色の影響を受けずに、調光された主被写体のホワイトバランス制御結果が適正な色あいとなるように処理とすることが可能となる。   As described above, according to the first embodiment, when the auto white balance control value at the time of flash control shooting is obtained, there is no image data only for the main subject region used for determining the main light emission control value. By detecting the chromatic part and obtaining the WB control value, the white balance control result of the dimmed main subject becomes an appropriate hue without being affected by the color within the range where the dimming does not reach within the shooting screen. In this way, the processing can be performed.

<第2の実施形態>
次に、本発明の第2の実施形態について説明する。
<Second Embodiment>
Next, a second embodiment of the present invention will be described.

図4は、本発明の第2の実施形態における撮像装置の概略機能構成を示すブロック図である。なお、第1の実施形態で説明した図1と同様の構成には同じ参照番号を付し、説明を省略する。図1に示す構成とは、各測光領域に重み付けを行う重み付け係数決定部240が追加され、それに伴い、無彩色部分検出部212、WBゲイン算出部214、測光部232の動作が変わるところが異なる。   FIG. 4 is a block diagram showing a schematic functional configuration of the imaging apparatus according to the second embodiment of the present invention. In addition, the same reference number is attached | subjected to the structure similar to FIG. 1 demonstrated in 1st Embodiment, and description is abbreviate | omitted. The configuration shown in FIG. 1 is different from the configuration shown in FIG. 1 in that a weighting coefficient determination unit 240 for weighting each photometric area is added, and the operations of the achromatic color portion detection unit 212, the WB gain calculation unit 214, and the photometry unit 232 change accordingly.

以下、図4に示す構成を有する本第2の実施形態の撮像装置におけるAWB制御値の算出手順について、図5のフローチャートを参照して説明する。なお、図5に示す処理において、図2と同様の処理には同じステップ番号を付し、一部説明を省略する。   Hereinafter, the calculation procedure of the AWB control value in the imaging apparatus of the second embodiment having the configuration shown in FIG. 4 will be described with reference to the flowchart of FIG. In the process shown in FIG. 5, the same step number is assigned to the same process as in FIG. 2, and a part of the description is omitted.

まず、ステップS11において、スピードライト138による調光が必要かどうかを判断する。調光が必要な場合、ステップS12に進み、必要でない場合にはステップS15に進む。   First, in step S11, it is determined whether dimming with the speedlight 138 is necessary. If dimming is necessary, the process proceeds to step S12. If not, the process proceeds to step S15.

ステップS12において、スピードライト制御部136は、スピードライト138に撮影前発光(プレ発光)させ、調光された画像を取得する。測光部232では得られた画像データを基にして、図3に示す各測光領域毎に測光値を求める。   In step S <b> 12, the speedlight control unit 136 causes the speedlight 138 to emit light before photographing (pre-light emission), and obtain a dimmed image. The photometric unit 232 obtains a photometric value for each photometric area shown in FIG. 3 based on the obtained image data.

次に、ステップS21において、色度座標変換部110はA/D変換部103から入力される画像データを各画素毎に色度座標値に変換し、無彩色部分検出部212は各測光領域毎に無彩色部分を検出して、対応する画像データ(R、G1、G2、B)をWBゲイン算出部214に渡す。WBゲイン算出部214では、無彩色部分検出部212が検出した画像データを従来と同様の方法を用いて各測光領域毎に積分し、各色の積分値SumR(n)、SumG1(n)、SumG2(n)、SumB(n)(但し、nは各測光領域の番号とする。)を求める。   Next, in step S21, the chromaticity coordinate conversion unit 110 converts the image data input from the A / D conversion unit 103 into chromaticity coordinate values for each pixel, and the achromatic color portion detection unit 212 performs the measurement for each photometric area. The achromatic portion is detected and the corresponding image data (R, G1, G2, B) is passed to the WB gain calculation unit 214. In the WB gain calculation unit 214, the image data detected by the achromatic color part detection unit 212 is integrated for each photometry region using a method similar to the conventional method, and the integration values SumR (n), SumG1 (n), SumG2 of each color are integrated. (n), SumB (n) (where n is the number of each photometric area).

次にステップS22で、重み付け係数決定部240により主被写体領域を決定し、更にステップS23で各測光領域に対する重み付け係数Wt(n)を決定する。ここでこの動作について説明する。   In step S22, the main subject area is determined by the weighting coefficient determination unit 240, and in step S23, the weighting coefficient Wt (n) for each photometric area is determined. This operation will now be described.

まず、上記第1の実施形態と同様にして主被写体領域を検出する。図6(a)に示す例では、領域504を主被写体とする。次に、重み付け係数決定部240は、主被写体504が位置する測光領域503を重み付け1.0とし、その周辺の各測光領域の測光結果に対しては、図6(b)の例に示されるように、測光領域503から離れるほど重み付け値が小さくなるように割り当てる。なお、重み付けの方法はこれに限るものではなく、測光領域毎に各測光領域に含まれる被写体までの距離を求め、求めた距離が主被写体までの距離から離れるにつれて重み付け値が小さくなるようにするなど、公知の方法を用いても良い。また、図6に示す例では1つの測光領域を主被写体領域503としたが、1つの領域に限るものではなく、複数の測光領域であっても勿論構わない。   First, the main subject area is detected in the same manner as in the first embodiment. In the example shown in FIG. 6A, the area 504 is the main subject. Next, the weighting coefficient determination unit 240 sets the photometry area 503 in which the main subject 504 is located to a weight of 1.0, and the photometry results of each of the peripheral photometry areas are shown in the example of FIG. 6B. As described above, the weighting value is assigned to be smaller as the distance from the photometric area 503 is increased. Note that the weighting method is not limited to this, and the distance to the subject included in each photometry area is obtained for each photometry area, and the weight value decreases as the obtained distance increases from the distance to the main subject. For example, a known method may be used. In the example shown in FIG. 6, one photometry area is the main subject area 503, but the present invention is not limited to one area, and may be a plurality of photometry areas.

重み付け係数決定部240は、求めた重み付け係数をWBゲイン算出部214に出力すると共に、測光部232にも出力する。   The weighting coefficient determination unit 240 outputs the obtained weighting coefficient to the WB gain calculation unit 214 and also outputs it to the photometry unit 232.

測光部232では、各測光値に重み付け係数による重み付けを行い、重み付けした測光値をスピードライト制御部136に渡す。スピードライト制御部130では、以上のように各測光領域ごとに重み付け乗算を行なった結果の各測光値より、この撮影シーンに対して最適な調光制御量を求める。   The photometric unit 232 weights each photometric value with a weighting coefficient, and passes the weighted photometric value to the speedlight control unit 136. The speedlight control unit 130 obtains the optimal light control amount for this shooting scene from each photometric value obtained as a result of performing weighting multiplication for each photometric area as described above.

スピードライト制御部130は、同時に、発光制御を行うことを示す信号をWBゲイン算出部214に送り、本撮影時にスピードライト138による調光制御を行うことを通知する。   At the same time, the speedlight control unit 130 sends a signal indicating that the light emission control is performed to the WB gain calculation unit 214 to notify that the light control by the speedlight 138 is performed at the time of the actual photographing.

ステップS24では、測光領域の番号を示す変数iを1に初期化する。ステップS25では、i番目の測光領域の積分値SumR(i)、SumG1(i)、SumG2(i)、SumB(i)にその測光領域の重み付け係数Wt(i)を掛け、その値を全ての測光領域について(ステップS26でYESとなるまで)、ステップS27でiを1ずつ増やしながら)順次加算することで、各色毎の重み付けした積分値の合計SumR、SumG1、SumG2、SumBを演算する。   In step S24, a variable i indicating the photometric area number is initialized to 1. In step S25, the integral value SumR (i), SumG1 (i), SumG2 (i), SumB (i) of the i-th photometric area is multiplied by the weighting coefficient Wt (i) of that photometric area, For the photometric area (until YES in step S26), the sums SumR, SumG1, SumG2, and SumB of the weighted integral values for each color are calculated by sequentially adding while increasing i by 1 in step S27.

一方、ステップS11でスピードライト138による調光が必要でないと判断した場合には、撮影前発光(プレ発光)行わずに画像を取得し、取得した画像に基づいて、ステップS16において、撮像画像全体の無彩色部分の積分値SumR、SumG1、SumG2、SumBを求める。   On the other hand, if it is determined in step S11 that dimming with the speedlight 138 is not necessary, an image is acquired without performing pre-shooting emission (pre-emission), and based on the acquired image, the entire captured image is acquired in step S16. The integral values SumR, SumG1, SumG2, and SumB of the achromatic portion are obtained.

次に、ステップS17において、WBゲイン算出部114はステップS25またはステップS16のいずれかで求めた積分値SumR、SumG1、SumG2、SumBに基づいて、上述した式(1)によりWB制御値WbR、WbG1、WbG2、WbBを求め、求めたWB制御値WbR、WbG1、WbG2、WbBをAWB処理部105に設定する。   Next, in step S17, the WB gain calculation unit 114, based on the integral values SumR, SumG1, SumG2, and SumB obtained in either step S25 or step S16, the WB control values WbR and WbG1 according to the above-described equation (1). , WbG2, WbB are obtained, and the obtained WB control values WbR, WbG1, WbG2, WbB are set in the AWB processing unit 105.

以上のように、調光撮影時のオートホワイトバランス制御値を求めるために、検出した無彩色部分に対して、重み付けを行ってホワイトバランス制御値を求めることにより、主被写体を中心とした適正なホワイトバランス制御処理を実現することが可能となる。   As described above, in order to obtain the auto white balance control value at the time of light control shooting, the detected achromatic part is weighted to obtain the white balance control value, thereby obtaining an appropriate value mainly for the main subject. White balance control processing can be realized.

以上のように、本第2の実施形態によれば、調光撮影時のオートホワイトバランスの制御値を求める場合に、主被写体の領域を中心に割り当てられた重み付け係数を用いて、各測光領域に相当する領域ごとに求めた各色成分積分値に重み付け演算を行ってから合計し、この重み付けされた各色の積分値を用いてWB制御値を求める。これにより、撮影画面内の調光の届かない範囲の色の影響を相対的に減らすことができるため、調光された主被写体を中心とした付近のホワイトバランス制御結果が適正な色あいとなるように処理とすることが可能となる。   As described above, according to the second embodiment, when obtaining the control value of the auto white balance at the time of light control shooting, each photometry area is determined using the weighting coefficient assigned around the area of the main subject. Each color component integral value obtained for each region corresponding to is weighted and summed, and a WB control value is obtained using the weighted integral value of each color. As a result, it is possible to relatively reduce the influence of the color in the shooting screen that does not reach the dimming range, so that the white balance control result in the vicinity of the dimmed main subject becomes an appropriate hue. Can be processed.

<他の実施形態>
本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。ここでプログラムコードを記憶する記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、ROM、RAM、磁気テープ、不揮発性のメモリカード、CD−ROM、CD−R、DVD、光ディスク、光磁気ディスク、MOなどが考えられる。また、LAN(ローカル・エリア・ネットワーク)やWAN(ワイド・エリア・ネットワーク)などのコンピュータネットワークを、プログラムコードを供給するために用いることができる。
<Other embodiments>
An object of the present invention is to supply a storage medium (or recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus. Needless to say, this can also be achieved by reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included. Examples of the storage medium for storing the program code include a flexible disk, hard disk, ROM, RAM, magnetic tape, nonvolatile memory card, CD-ROM, CD-R, DVD, optical disk, magneto-optical disk, MO, and the like. Can be considered. Also, a computer network such as a LAN (Local Area Network) or a WAN (Wide Area Network) can be used to supply the program code.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion card or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

本発明の第1の実施形態における撮像装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the imaging device in the 1st Embodiment of this invention. 本発明の第1の実施形態におけるホワイトバランス制御値の算出手順を示すフローチャートである。It is a flowchart which shows the calculation procedure of the white balance control value in the 1st Embodiment of this invention. 主被写体検出動作を説明するための図である。It is a figure for demonstrating main subject detection operation | movement. 本発明の第2の実施形態における撮像装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the imaging device in the 2nd Embodiment of this invention. 本発明の第2の実施形態におけるホワイトバランス制御値の算出手順を示すフローチャートである。It is a flowchart which shows the calculation procedure of the white balance control value in the 2nd Embodiment of this invention. 主被写体検出動作及び重み付け係数を説明する図である。It is a figure explaining main subject detection operation and a weighting coefficient. 従来の撮像装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the conventional imaging device. 撮像素子上のカラーフィルターの位置と、色度座標を算出するときの画素の組み合わせの一例を示す図である。It is a figure which shows an example of the combination of the pixel when calculating the position of the color filter on an image sensor, and chromaticity coordinates. 色度座標上の黒体輻射軌跡と無彩色判定領域を表す図である。It is a figure showing the black body radiation locus | trajectory on a chromaticity coordinate, and an achromatic color determination area | region. 撮影画面内での調光範囲を示す図である。It is a figure which shows the light control range in an imaging | photography screen.

符号の説明Explanation of symbols

101 撮像素子
103 A/D変換部
105 オートホワイトバランス処理部
107 現像処理部
109 画像データ出力部
110 色度座標変換部
112、212 無彩色部分検出部
114、214 WBゲイン算出部
121 撮影レンズ
122 焦点検出部
124 レンズ制御部
132、232 測光部
134 駆動部
138 スピードライト
136 スピードライト制御部
140 主被写体領域検出部
240 重み付け係数決定部
DESCRIPTION OF SYMBOLS 101 Image pick-up element 103 A / D conversion part 105 Auto white balance process part 107 Development process part 109 Image data output part 110 Chromaticity coordinate conversion part 112,212 Achromatic part detection part 114,214 WB gain calculation part 121 Shooting lens 122 Focus Detection unit 124 Lens control unit 132, 232 Photometry unit 134 Drive unit 138 Speedlight 136 Speedlight control unit 140 Main subject region detection unit 240 Weighting coefficient determination unit

Claims (16)

調光手段と、
入射した被写体光学像を電気信号に変換し、画像データを出力する撮像手段と、
前記調光手段により調光を行って前記撮像手段で撮像した前記画像データにおいて、主被写体を含む主被写体領域を決定する主被写体領域決定手段と、
前記画像データから、前記主被写体領域内の無彩色部分を検出し、当該無彩色部分に対応する部分画像データに基づいて、ホワイトバランス制御値を算出する算出手段と
を有することを特徴とする撮像装置。
Dimming means;
Imaging means for converting an incident subject optical image into an electrical signal and outputting image data;
Main subject area determining means for determining a main subject area including a main subject in the image data obtained by performing light control by the light adjusting means and picked up by the imaging means;
An imaging device comprising: a calculation unit that detects an achromatic portion in the main subject region from the image data and calculates a white balance control value based on the partial image data corresponding to the achromatic portion. apparatus.
前記算出手段は、前記検出された無彩色部分に対応する部分画像データを各色毎に合計し、得られた各色毎の和が同じ比率となる係数をホワイトバランス制御値として算出することを特徴とする請求項1に記載の撮像装置。   The calculating means totals the partial image data corresponding to the detected achromatic color part for each color, and calculates a coefficient with which the obtained sum for each color has the same ratio as a white balance control value. The imaging device according to claim 1. 調光手段と、
入射した被写体光学像を電気信号に変換し、画像データを出力する撮像手段と、
前記調光手段により調光を行って前記撮像手段で撮像した前記画像データにおいて、主被写体を含む主被写体領域を決定する主被写体領域決定手段と、
前記画像データを複数の領域に分割し、前記主被写体領域の重み付けが最も重くなるように、前記複数の分割領域それぞれに対して、重み付け係数を割り当てる重み付け係数決定手段と、
前記画像データの前記複数の分割領域それぞれについて無彩色部分を検出し、検出された各無彩色部分に対応する部分画像データに対して、該各無彩色部分が属する分割領域に割り当てられた重み付け係数により重み付けをし、得られた値に基づいてホワイトバランス制御値を算出する算出手段と
を有することを特徴とする撮像装置。
Dimming means;
Imaging means for converting an incident subject optical image into an electrical signal and outputting image data;
Main subject area determining means for determining a main subject area including a main subject in the image data obtained by performing light control by the light adjusting means and picked up by the imaging means;
Dividing the image data into a plurality of areas, and weighting coefficient determination means for assigning a weighting coefficient to each of the plurality of divided areas so that the weight of the main subject area becomes the heaviest,
A weighted coefficient assigned to the divided area to which each achromatic color part belongs to the partial image data corresponding to each detected achromatic color part for each of the plurality of divided areas of the image data. An image pickup apparatus comprising: a calculation unit that performs weighting by calculating a white balance control value based on the obtained value.
前記算出手段は、前記重み付けされた部分画像データを各色毎に合計し、得られた各色毎の和が同じ比率となる係数をホワイトバランス制御値として算出することを特徴とする請求項3に記載の撮像装置。   The said calculation means totals the said weighted partial image data for every color, and calculates the coefficient from which the sum for each obtained color becomes the same ratio as a white balance control value. Imaging device. 前記主被写体領域の露光状態が適切となるように調光手段を制御する調光制御手段を更に有することを特徴とする請求項1乃至4のいずれかに記載の撮像装置。   The imaging apparatus according to claim 1, further comprising a light control unit that controls the light control unit so that an exposure state of the main subject area is appropriate. 前記算出手段により算出されたホワイトバランス制御値を用いてホワイトバランス補正を行うホワイトバランス処理手段を更に有することを特徴とする請求項1乃至5のいずれかに記載の撮像装置。   6. The imaging apparatus according to claim 1, further comprising a white balance processing unit that performs white balance correction using the white balance control value calculated by the calculation unit. 前記主被写体領域決定手段は、前記画像データに基づいて最も近くにある被写体を主被写体として決定することを特徴とする請求項1乃至6のいずれかに記載の撮像装置。   The imaging apparatus according to claim 1, wherein the main subject area determination unit determines a closest subject as a main subject based on the image data. 焦点検出手段を更に有し、
前記主被写体領域決定手段は、合焦点にある被写体を主被写体として決定することを特徴とする請求項1乃至6のいずれかに記載の撮像装置。
A focus detection means;
The imaging apparatus according to claim 1, wherein the main subject area determination unit determines a subject at a focal point as a main subject.
調光手段による調光が必要かどうか判定する判定工程と、
調光が必要な場合に、前記調光手段により調光を行い、入射した被写体光学像を電気信号に変換し、画像データを出力する撮像工程と、
前記撮像工程で撮像された前記画像データにおいて、主被写体を含む主被写体領域を決定する主被写体領域決定工程と、
前記画像データから、前記主被写体領域内の無彩色部分を検出し、当該無彩色部分に対応する部分画像データに基づいて、ホワイトバランス制御値を算出する算出工程と
を有することを特徴とするホワイトバランス制御値算出方法。
A determination step of determining whether light control by the light control means is necessary;
When dimming is necessary, the dimming means performs dimming, converts the incident subject optical image into an electrical signal, and outputs image data; and
A main subject region determination step for determining a main subject region including a main subject in the image data captured in the imaging step;
And calculating a white balance control value based on the partial image data corresponding to the achromatic color portion, and detecting an achromatic color portion in the main subject area from the image data. Balance control value calculation method.
前記算出工程は、
前記検出された無彩色部分に対応する部分画像データを各色毎に合計する工程と、
得られた各色毎の和が同じ比率となる係数を算出する工程とを有し、
前記算出した係数をホワイトバランス制御値とすることを特徴とする請求項9に記載のホワイトバランス制御値算出方法。
The calculation step includes
Summing the partial image data corresponding to the detected achromatic color portion for each color;
And a step of calculating a coefficient with which the sum for each obtained color has the same ratio,
The white balance control value calculation method according to claim 9, wherein the calculated coefficient is used as a white balance control value.
調光手段による調光が必要かどうか判定する判定工程と、
調光が必要な場合に、前記調光手段により調光を行い、入射した被写体光学像を電気信号に変換し、画像データを出力する撮像工程と、
前記撮像工程で撮像された前記画像データにおいて、主被写体を含む主被写体領域を決定する主被写体領域決定工程と、
前記画像データを複数の領域に分割し、前記主被写体領域の重み付けが最も重くなるように、前記複数の分割領域それぞれに対して、重み付け係数を割り当てる重み付け係数決定工程と、
前記画像データの前記複数の分割領域それぞれについて無彩色部分を検出し、検出された各無彩色部分に対応する部分画像データに対して、該各無彩色部分が属する分割領域に割り当てられた重み付け係数により重み付けをし、得られた値に基づいてホワイトバランス制御値を算出する算出工程と
を有することを特徴とするホワイトバランス制御値算出方法。
A determination step of determining whether light control by the light control means is necessary;
When dimming is necessary, the dimming means performs dimming, converts the incident subject optical image into an electrical signal, and outputs image data; and
A main subject region determination step for determining a main subject region including a main subject in the image data captured in the imaging step;
Dividing the image data into a plurality of areas, and assigning a weighting coefficient to each of the plurality of divided areas so that the weight of the main subject area is the heaviest;
A weighted coefficient assigned to the divided area to which each achromatic color part belongs to the partial image data corresponding to each detected achromatic color part for each of the plurality of divided areas of the image data. And calculating a white balance control value based on the obtained value. A white balance control value calculation method comprising:
前記算出工程は、
前記重み付けされた部分画像データを各色毎に合計する工程と、
得られた各色毎の和が同じ比率となる係数を算出する工程とを有し、
前記算出した係数をホワイトバランス制御値とすることを特徴とする請求項11に記載のホワイトバランス制御値算出方法。
The calculation step includes
Summing the weighted partial image data for each color;
And a step of calculating a coefficient with which the sum for each obtained color has the same ratio,
The white balance control value calculation method according to claim 11, wherein the calculated coefficient is a white balance control value.
前記主被写体領域決定工程では、前記画像データに基づいて最も近くにある被写体を主被写体として決定することを特徴とする請求項9乃至12のいずれかに記載のホワイトバランス制御値算出方法。   13. The white balance control value calculation method according to claim 9, wherein, in the main subject area determination step, a closest subject is determined as a main subject based on the image data. 焦点検出工程を更に有し、
前記主被写体領域決定工程では、合焦点にある被写体を主被写体として決定することを特徴とする請求項9乃至12のいずれかに記載のホワイトバランス制御値算出方法。
A focus detection step;
The white balance control value calculation method according to claim 9, wherein, in the main subject area determination step, a subject in focus is determined as a main subject.
請求項9乃至14のいずれかに記載のホワイトバランス制御値算出方法を実現するためのプログラムコードを有することを特徴とする情報処理装置が実行可能なプログラム。   15. A program executable by an information processing apparatus, comprising program code for realizing the white balance control value calculation method according to claim 9. 請求項15に記載のプログラムを記憶したことを特徴とする情報処理装置が読み取り可能な記憶媒体。   A storage medium readable by an information processing apparatus, wherein the program according to claim 15 is stored.
JP2004221952A 2004-07-29 2004-07-29 Imaging apparatus, and method for calculating white balance control value Withdrawn JP2006042168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004221952A JP2006042168A (en) 2004-07-29 2004-07-29 Imaging apparatus, and method for calculating white balance control value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004221952A JP2006042168A (en) 2004-07-29 2004-07-29 Imaging apparatus, and method for calculating white balance control value

Publications (1)

Publication Number Publication Date
JP2006042168A true JP2006042168A (en) 2006-02-09

Family

ID=35906637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004221952A Withdrawn JP2006042168A (en) 2004-07-29 2004-07-29 Imaging apparatus, and method for calculating white balance control value

Country Status (1)

Country Link
JP (1) JP2006042168A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012165077A (en) * 2011-02-03 2012-08-30 Canon Inc White balance control apparatus, imaging apparatus using the same, and white balance control method
WO2016006304A1 (en) * 2014-07-08 2016-01-14 富士フイルム株式会社 Image processing device, imaging device, image processing method, and image processing program
CN108182902A (en) * 2018-01-18 2018-06-19 深圳市华星光电技术有限公司 Automatic colour cast compensation system and automatic color offset compensating method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012165077A (en) * 2011-02-03 2012-08-30 Canon Inc White balance control apparatus, imaging apparatus using the same, and white balance control method
WO2016006304A1 (en) * 2014-07-08 2016-01-14 富士フイルム株式会社 Image processing device, imaging device, image processing method, and image processing program
JPWO2016006304A1 (en) * 2014-07-08 2017-04-27 富士フイルム株式会社 Image processing apparatus, imaging apparatus, image processing method, and image processing program
US10027938B2 (en) 2014-07-08 2018-07-17 Fujifilm Corporation Image processing device, imaging device, image processing method, and image processing program
CN108182902A (en) * 2018-01-18 2018-06-19 深圳市华星光电技术有限公司 Automatic colour cast compensation system and automatic color offset compensating method
CN108182902B (en) * 2018-01-18 2021-03-23 Tcl华星光电技术有限公司 Automatic color cast compensation system and automatic color cast compensation method

Similar Documents

Publication Publication Date Title
JP4324404B2 (en) Solid-state imaging device and digital camera
US7184079B2 (en) White balance adjustment method, image processing apparatus and electronic camera
JP5168353B2 (en) Imaging device and imaging device
US10630920B2 (en) Image processing apparatus
US7969483B2 (en) White balance control method, imaging apparatus and storage medium storing white balance control program
US8009201B2 (en) Sensitivity-settable image capture apparatus
KR101352440B1 (en) Image processing apparatus, image processing method, and recording medium
US9036046B2 (en) Image processing apparatus and method with white balance correction
US8810681B2 (en) Image processing apparatus and image processing method
JP4717720B2 (en) Image processing apparatus and method, and program
JP4049257B2 (en) Solid-state imaging device and digital camera
JP2005027033A (en) Color imaging apparatus
JP2005033609A (en) Solid-state image-taking device and digital camera
JP2006333113A (en) Imaging device
JP4649734B2 (en) Video signal processing apparatus and recording medium on which video signal processing program is recorded
JP2006042168A (en) Imaging apparatus, and method for calculating white balance control value
JP2013219452A (en) Color signal processing circuit, color signal processing method, color reproduction evaluation method, imaging apparatus, electronic apparatus and testing apparatus
JP2004274367A (en) Digital camera
JP2004222160A (en) Digital camera
JP2003287674A (en) Camera
JP5791454B2 (en) Imaging apparatus and control method thereof
JP4276847B2 (en) Imaging device
JP3958219B2 (en) Imaging apparatus and contour correction method
JPH08140104A (en) Automatic white balance control circuit for electronic still video camera
JP4724735B2 (en) Solid-state imaging device and digital camera

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20071002