JP2006042168A - Imaging apparatus, and method for calculating white balance control value - Google Patents
Imaging apparatus, and method for calculating white balance control value Download PDFInfo
- 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
Links
Images
Abstract
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
各光電変換素子により変換された電荷は、撮像素子301から電気信号としてA/D変換部303に出力され、A/D変換処理によりデジタル信号(画像データ)に変換される。
The electric charge converted by each photoelectric conversion element is output as an electric signal from the
A/D変換部303から出力されたデジタル信号は、オートホワイトバランス(AWB)処理部305に送られてゲイン補正されると同時に、色度座標変換部310にも送られる。
The digital signal output from the A /
撮影した画像データから撮影画像に適したホワイトバランス制御値を自動で求めるオートホワイトバランスの場合、例えば以下のようにしてホワイトバランスのゲイン値(ホワイトバランス制御値)を求める。 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
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
オートホワイトバランス処理された画像データは、現像処理部307において現像処理される。ここではホワイトバランス調整された画像データに対して、最適なガンマ特性によって最適なコントラスト特性を与えたり、色調整やシャープネス処理などを行うことで、モニタ鑑賞のための出力やプリント出力などに最適な特性の画像データに変換される。
The image data that has been subjected to auto white balance processing is developed in the
現像処理部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
上記従来例では、オートホワイトバランス処理を行うときは、撮影された全画像データから無彩色部分を検出し、検出された部分の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
本発明は上記問題点を鑑みてなされたものであり、調光制御されて撮影された画像において、主被写体領域のホワイトバランス補正を適切に行えるようにすることを目的とする。 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
また、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 /
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
上記構成を有する本第1の実施形態の撮像装置では、AWB処理部105は、WBゲイン算出部114で算出されたAWB制御値を用いてAWB処理を行う。
In the imaging apparatus according to the first embodiment having the above-described configuration, the
次に、本第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
ステップS12において、スピードライト制御部136は、スピードライト138に撮影前発光(プレ発光)させ、調光された画像を取得する。ここでは、プレ発光をした状態で撮像素子101により撮影を行い、A/D変換部103によりデジタル信号に変更された画像データが測光部132、色度座標変換部110、主被写体領域検出部に入力される。なお、測光部132では、ここで取得した画像データを用いて測光を行うが、このとき、図3に示すように撮像素子101の撮影画面内401を複数に分割した各測光領域402毎に個別に測光値を求める。
In step S <b> 12, the
ステップS13では、主被写体領域検出部140により主被写体領域を決定し、無彩色部分決定部112に通知する。ここでは、A/D変換部103から出力された画像データから各測光領域402に対応する領域毎(便宜上、測光領域と呼ぶ。)に位置する各被写体までの距離を算出し、焦点検出部122から送られてくるレンズの焦点距離に合致する距離の被写体を含む測光領域402を主被写体領域として検出する。なお、主被写体を検出する方法としては、レンズの焦点距離を用いずに、最も近くに位置する被写体を主被写体と定義するなど、これら以外にも公知の方法を用いてもよい。このように、各測光領域を単位として主被写体領域を求めることで、露光量制御に利用することができる。図3の例では、被写体404をこの撮影シーンにおける主被写体として決定し、主被写体領域として領域403を決定する。なお、図3に示す例では1つの測光領域を主被写体領域403としたが、1つの領域に限るものではなく、複数の測光領域であっても勿論構わない。
In step S <b> 13, the main subject
また、主被写体領域検出部140は、検出した主被写体404を含む主被写体領域403を測光部132にも通知する。測光部132は、本発光を行う場合に主被写体領域403の測光値をスピードライト制御部136に渡す。スピードライト制御部136では、主被写体領域403が最適な調光状態となるように、本発光時の調光量を演算する。このように制御することにより、主被写体404を適正な露光状態で撮影することができる。
The main subject
スピードライト制御部136は、同時に、発光制御を行うことを示す信号を無彩色部分検出部112に送り、本撮影時にスピードライト138による調光制御を行うことを通知する。
At the same time, the
ステップ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
一方、ステップ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
次に、ステップ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
以上のように、本第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
以下、図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
ステップS12において、スピードライト制御部136は、スピードライト138に撮影前発光(プレ発光)させ、調光された画像を取得する。測光部232では得られた画像データを基にして、図3に示す各測光領域毎に測光値を求める。
In step S <b> 12, the
次に、ステップ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
次にステップS22で、重み付け係数決定部240により主被写体領域を決定し、更にステップS23で各測光領域に対する重み付け係数Wt(n)を決定する。ここでこの動作について説明する。
In step S22, the main subject area is determined by the weighting
まず、上記第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
重み付け係数決定部240は、求めた重み付け係数をWBゲイン算出部214に出力すると共に、測光部232にも出力する。
The weighting
測光部232では、各測光値に重み付け係数による重み付けを行い、重み付けした測光値をスピードライト制御部136に渡す。スピードライト制御部130では、以上のように各測光領域ごとに重み付け乗算を行なった結果の各測光値より、この撮影シーンに対して最適な調光制御量を求める。
The
スピードライト制御部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
ステップ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
次に、ステップ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
以上のように、調光撮影時のオートホワイトバランス制御値を求めるために、検出した無彩色部分に対して、重み付けを行ってホワイトバランス制御値を求めることにより、主被写体を中心とした適正なホワイトバランス制御処理を実現することが可能となる。 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.
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
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.
入射した被写体光学像を電気信号に変換し、画像データを出力する撮像手段と、
前記調光手段により調光を行って前記撮像手段で撮像した前記画像データにおいて、主被写体を含む主被写体領域を決定する主被写体領域決定手段と、
前記画像データを複数の領域に分割し、前記主被写体領域の重み付けが最も重くなるように、前記複数の分割領域それぞれに対して、重み付け係数を割り当てる重み付け係数決定手段と、
前記画像データの前記複数の分割領域それぞれについて無彩色部分を検出し、検出された各無彩色部分に対応する部分画像データに対して、該各無彩色部分が属する分割領域に割り当てられた重み付け係数により重み付けをし、得られた値に基づいてホワイトバランス制御値を算出する算出手段と
を有することを特徴とする撮像装置。 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.
前記主被写体領域決定手段は、合焦点にある被写体を主被写体として決定することを特徴とする請求項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のいずれかに記載のホワイトバランス制御値算出方法。 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.
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)
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 |
-
2004
- 2004-07-29 JP JP2004221952A patent/JP2006042168A/en not_active Withdrawn
Cited By (6)
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 |