JP2013219561A - Imaging device, control method therefor, and program - Google Patents

Imaging device, control method therefor, and program Download PDF

Info

Publication number
JP2013219561A
JP2013219561A JP2012088735A JP2012088735A JP2013219561A JP 2013219561 A JP2013219561 A JP 2013219561A JP 2012088735 A JP2012088735 A JP 2012088735A JP 2012088735 A JP2012088735 A JP 2012088735A JP 2013219561 A JP2013219561 A JP 2013219561A
Authority
JP
Japan
Prior art keywords
correction value
white balance
balance correction
zoom magnification
change
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
JP2012088735A
Other languages
Japanese (ja)
Other versions
JP5943682B2 (en
Inventor
Masahiro Takayama
将浩 高山
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 JP2012088735A priority Critical patent/JP5943682B2/en
Publication of JP2013219561A publication Critical patent/JP2013219561A/en
Application granted granted Critical
Publication of JP5943682B2 publication Critical patent/JP5943682B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To appropriately control white balance even in the case of photographing at a changed zoom magnification.SOLUTION: A WB correction unit 103 calculates a first WB correction value on the basis of image data captured by a solid-state image sensor 101. Then, the WB correction unit 103 monitors the calculated first WB correction value during change of zoom magnification at a predetermined interval, and calculates a second WB correction value on the basis of the monitored first WB correction value.

Description

本発明は、画像データに対するホワイトバランス制御技術に関するものである。   The present invention relates to a white balance control technique for image data.

一般に、デジタルカメラやデジタルビデオカメラ等の、撮像素子を用いた撮像装置においては、撮像によって得られた画像の色調を調整するホワイトバランス制御機能を備えている。ホワイトバランス制御には、マニュアルホワイトバランス制御とオートホワイトバランス制御とがある。マニュアルホワイトバランス制御は、予め白色被写体を撮像してホワイトバランス係数を算出しておき、算出したホワイトバランス係数を画面全体に適用する制御である。一方、オートホワイトバランス制御は、撮像した画像データから白色と思われる部分を自動検出し、画面全体の各色成分の平均値からホワイトバランス係数を算出し、算出したホワイトバランス係数を画面全体に適用する制御である。   In general, an imaging apparatus using an imaging element such as a digital camera or a digital video camera has a white balance control function for adjusting the color tone of an image obtained by imaging. White balance control includes manual white balance control and automatic white balance control. Manual white balance control is control in which a white subject is imaged in advance and a white balance coefficient is calculated, and the calculated white balance coefficient is applied to the entire screen. On the other hand, the auto white balance control automatically detects a white portion from captured image data, calculates a white balance coefficient from the average value of each color component of the entire screen, and applies the calculated white balance coefficient to the entire screen. Control.

ここで、従来のオートホワイトバランス制御について簡単に説明する。従来のオートホワイトバランス制御は、撮像された画像データのブロック毎に色評価値が求められ、色評価値が白検出領域に含まれる場合、そのブロックが白であると判定される。そして、白と判定されたブロックの画素の積分値が求められることにより、ホワイトバランス係数が算出される。   Here, the conventional auto white balance control will be briefly described. In the conventional auto white balance control, a color evaluation value is obtained for each block of captured image data, and when the color evaluation value is included in the white detection area, it is determined that the block is white. Then, the white balance coefficient is calculated by obtaining the integral value of the pixels of the block determined to be white.

しかしながら、撮像された画像データに白が存在しない場合、色評価値が白検出範囲に含まれるブロックの画素の積分値がゼロに近くなるため、正しいホワイトバランス係数を算出することができない。さらに、ズーム撮影時は、ワイド撮影時に比べて白が存在する確率が低く、環境光源の色温度を特定することは困難である。例えば、人のアップをズームにより撮影した場合、画面に対して白の割合が減少する。   However, when white is not present in the captured image data, the integrated value of the pixels of the block whose color evaluation value is included in the white detection range is close to zero, and thus a correct white balance coefficient cannot be calculated. Furthermore, when zoom shooting is performed, the probability of white being present is lower than when shooting wide, and it is difficult to specify the color temperature of the environmental light source. For example, when a person's up is photographed by zooming, the ratio of white to the screen decreases.

また、人のアップをズームにより撮影した場合は、以下のような問題も生じる。例えば、蛍光灯のような光源において、人の肌色は白検出範囲における低色温度側に分布する。つまり、画面に白が少なく且つ人肌がアップのシーンにおいて、肌色を低色温度光源下の白色と誤判別することにより、人の肌を青白くしてしまい、撮影者の意図しない画像となる可能性がある。   In addition, when a person's up is photographed by zooming, the following problems also occur. For example, in a light source such as a fluorescent lamp, human skin color is distributed on the low color temperature side in the white detection range. In other words, in a scene where there is little white on the screen and the human skin is up, by misclassifying the skin color as white under a low color temperature light source, the human skin may become pale, resulting in an image unintended by the photographer. There is sex.

これに対し、例えば特許文献1には、ズーム倍率に応じて制御範囲をコントロールする技術が開示されている。特許文献1に開示される技術においては、ズーム倍率が低いときは制御範囲を広くとり、ズーム倍率が高いときは制御範囲を狭くしている。これにより、撮影された画像データにおける有彩色の占有面積が大きくなっても、有彩色を白っぽくしてしまう褪色現象を抑えることができる。   On the other hand, for example, Patent Document 1 discloses a technique for controlling a control range according to a zoom magnification. In the technique disclosed in Patent Document 1, the control range is wide when the zoom magnification is low, and the control range is narrow when the zoom magnification is high. Thereby, even if the occupation area of the chromatic color in the photographed image data increases, it is possible to suppress the fading phenomenon that makes the chromatic color whitish.

特許第2640168号公報Japanese Patent No. 264168

しかしながら、特許文献1に開示される技術では、環境光源に追従できない場合がある。例えば、ズーム倍率変更後に光源の切り替わりが発生した場合、制御範囲を狭くしてしまうことで環境光源に追従できない場合がある。また、ズーム倍率変更前のシーンにおいて有彩色の占有面積が大きい場合も、ズーム倍率変更前後で環境光源に追従できない場合がある。   However, the technique disclosed in Patent Document 1 may not be able to follow the environmental light source. For example, when the light source is switched after the zoom magnification is changed, the control range may be narrowed to follow the environment light source. Also, even when the occupying area of the chromatic color is large in the scene before the zoom magnification change, there are cases where the environment light source cannot be followed before and after the zoom magnification change.

そこで、本発明の目的は、ズーム倍率が変更されて撮影された場合であっても、適切なホワイトバランス制御を行うことにある。   Therefore, an object of the present invention is to perform appropriate white balance control even when the zoom magnification is changed and the image is taken.

本発明の撮像装置は、撮像手段と、前記撮像手段により撮像された画像データに基づいて、第1のホワイトバランス補正値を算出する第1の算出手段と、前記撮像手段による撮像処理時のズーム倍率を変更する変更手段と、前記変更手段によるズーム倍率変更中において前記第1の算出手段により算出される第1のホワイトバランス補正値を所定の間隔で監視する監視手段と、前記監視手段により監視された第1のホワイトバランス補正値に基づいて、第2のホワイトバランス補正値を算出する第2の算出手段とを有することを特徴とする。   The image pickup apparatus of the present invention includes an image pickup unit, a first calculation unit that calculates a first white balance correction value based on image data picked up by the image pickup unit, and a zoom during the image pickup process by the image pickup unit. Changing means for changing the magnification, monitoring means for monitoring the first white balance correction value calculated by the first calculation means during a zoom magnification change by the changing means, and monitoring by the monitoring means And a second calculating means for calculating a second white balance correction value based on the first white balance correction value.

本発明によれば、ズーム倍率が変更されて撮影された場合であっても、適切なホワイトバランス補正を行うことが可能となる。   According to the present invention, appropriate white balance correction can be performed even when the zoom magnification is changed and the image is taken.

本発明の実施形態に係る撮像装置の構成を示す図である。It is a figure which shows the structure of the imaging device which concerns on embodiment of this invention. WB制御部における第1のWB補正値の算出処理を示すフローチャートである。It is a flowchart which shows the calculation process of the 1st WB correction value in a WB control part. 白検出の際に使用されるグラフを示す図である。It is a figure which shows the graph used in the case of white detection. WB制御部における第2のWB補正値の算出処理を示すフローチャートである。It is a flowchart which shows the calculation process of the 2nd WB correction value in a WB control part. ズーミング処理を行った場合を模式的に示す図である。It is a figure which shows typically the case where a zooming process is performed. ズーム倍率と色温度との関係を示す図である。It is a figure which shows the relationship between zoom magnification and color temperature.

以下、本発明を適用した好適な実施形態を、添付図面を参照しながら詳細に説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments to which the invention is applied will be described in detail with reference to the accompanying drawings.

図1は、本発明の実施形態に係る撮像装置の構成を示す図である。図1において、101は、CCDやCMOS等から構成される固体撮像素子であり、その表面は例えばベイヤー配列のようなRGBカラーフィルタにより覆われ、カラー撮影が可能な構成となっている。被写体像が固体撮像素子101上に結像されると、固体撮像素子101は、画像データ(画像信号)を生成し、生成された画像データはメモリ102に記憶される。   FIG. 1 is a diagram illustrating a configuration of an imaging apparatus according to an embodiment of the present invention. In FIG. 1, reference numeral 101 denotes a solid-state imaging device composed of a CCD, a CMOS, or the like, and its surface is covered with an RGB color filter such as a Bayer array so that color photography can be performed. When the subject image is formed on the solid-state image sensor 101, the solid-state image sensor 101 generates image data (image signal), and the generated image data is stored in the memory 102.

制御部114は、画像全体が明るくなるようなシャッタ速度及び絞り値を計算するとともに、合焦領域内にある被写体に合焦するようにフォーカスレンズの駆動量を計算する。そして、制御部114により計算された露出値(シャッタ速度、絞り値)及びフォーカスレンズの駆動量は撮像制御回路113に出力され、各値に基づいてそれぞれ制御される。ホワイトバランス(WB)制御部103は、メモリ102に記憶された画像データに基づいてWB補正値を算出し、算出したWB補正値を用いて、メモリ102に記憶された画像データに対してWB補正を行う。なお、このWB制御部103によるWB補正値の算出方法の詳細については後述する。   The control unit 114 calculates a shutter speed and an aperture value that brighten the entire image, and calculates a driving amount of the focus lens so as to focus on a subject in the focusing area. Then, the exposure value (shutter speed, aperture value) and the driving amount of the focus lens calculated by the control unit 114 are output to the imaging control circuit 113 and controlled based on each value. The white balance (WB) control unit 103 calculates a WB correction value based on the image data stored in the memory 102, and uses the calculated WB correction value to perform WB correction on the image data stored in the memory 102. I do. The details of the method for calculating the WB correction value by the WB control unit 103 will be described later.

色変換マトリックス(MTX)回路104は、WB制御部103によりWB補正された画像データが最適な色で再現されるように色ゲインをかけて色差信号R−Y、B−Yに変換する。ローパスフィルタ(LPF)回路105は、色差信号R−Y、B−Yの帯域を制限する。CSUP(Chroma Supress)回路106は、LPF回路105で帯域制限された画像データのうち、飽和部分の偽色信号を抑圧する。一方、WB制御部103によりWB補正された画像データは、輝度信号生成回路111にも出力される。輝度信号生成回路111は、入力された画像データから輝度信号Yを生成する。エッジ強調回路112は、生成された輝度信号Yに対してエッジ強調処理を施す。   A color conversion matrix (MTX) circuit 104 converts the image data corrected by the WB control unit 103 into color difference signals RY and BY with a color gain so that the image data is reproduced with an optimum color. A low-pass filter (LPF) circuit 105 limits the bands of the color difference signals RY and BY. A CSUP (Chroma Supress) circuit 106 suppresses a false color signal in a saturated portion of the image data band-limited by the LPF circuit 105. On the other hand, the image data that has undergone WB correction by the WB control unit 103 is also output to the luminance signal generation circuit 111. The luminance signal generation circuit 111 generates a luminance signal Y from the input image data. The edge enhancement circuit 112 performs edge enhancement processing on the generated luminance signal Y.

RGB変換回路107は、CSUP回路106から出力される色差信号R−Y、B−Yとエッジ強調回路112から出力される輝度信号YとをRGB信号に変換する。ガンマ(γ)補正回路108は、変換されたRGB信号に対して階調補正を施す。色輝度変換回路109は、階調補正が施されたRGB信号をYUV信号に変換する。JPEG圧縮回路110は、色輝度変換回路109から出力されるYUV信号をJPEG方式等により圧縮し、外部記録媒体又は内部記録媒体に画像データとして記録させる。   The RGB conversion circuit 107 converts the color difference signals RY and BY output from the CSUP circuit 106 and the luminance signal Y output from the edge enhancement circuit 112 into RGB signals. A gamma (γ) correction circuit 108 performs gradation correction on the converted RGB signal. The color luminance conversion circuit 109 converts the RGB signal subjected to gradation correction into a YUV signal. The JPEG compression circuit 110 compresses the YUV signal output from the color luminance conversion circuit 109 by the JPEG method or the like, and records it as image data on an external recording medium or an internal recording medium.

図2は、WB制御部103における第1のWB補正値(第1のホワイトバランス補正値)の算出処理を示すフローチャートである。以下、図2を参照しながら、WB制御部103における第1のWB補正値の算出処理について詳細に説明する。なお、図2に示す処理及び後述する図4に示す処理は、制御部114がROM等から必要なデータ及びプログラムを読み出して実行し、WB制御部103を制御することにより実現する処理である。   FIG. 2 is a flowchart showing a calculation process of the first WB correction value (first white balance correction value) in the WB control unit 103. Hereinafter, the calculation process of the first WB correction value in the WB control unit 103 will be described in detail with reference to FIG. The process shown in FIG. 2 and the process shown in FIG. 4 to be described later are processes realized by the control unit 114 reading out and executing necessary data and programs from a ROM or the like and controlling the WB control unit 103.

ステップS201において、WB制御部103は、メモリ102に記憶された画像データを読み出し、当該画像データを任意のm個のブロックに分割する。ステップS202において、WB制御部103は、ブロック(1〜m)毎に、画素値を各色に加算平均して色平均値(R[i],G[i],B[i])を算出する。そして、WB制御部103は、次の式を用いて、色評価値(Cx[i],Cy[i])を算出する。
Cx[i]=(R[i]−B[i])/Y[i]×1024
Cy[i]=(R[i]+B[i]−2G[i])/Y[i]×1024
但し、Y[i]=(R[i]+2G[i]+B[i])/4
In step S201, the WB control unit 103 reads the image data stored in the memory 102, and divides the image data into arbitrary m blocks. In step S202, the WB control unit 103 calculates a color average value (R [i], G [i], B [i]) by adding and averaging pixel values to each color for each block (1 to m). . Then, the WB control unit 103 calculates a color evaluation value (Cx [i], Cy [i]) using the following formula.
Cx [i] = (R [i] −B [i]) / Y [i] × 1024
Cy [i] = (R [i] + B [i] -2G [i]) / Y [i] × 1024
However, Y [i] = (R [i] + 2G [i] + B [i]) / 4

WB制御部103は、図3に示すような座標軸を持つグラフを用いて白検出を行う。図3において、x座標(Cx)の負方向が高色温度被写体の白を撮影したときの色評価値を表し、正方向が低色温度被写体の白を撮影したときの色評価値を表す。また、y座標(Cy)は光源の緑成分の度合いを意味しており、負方向になるにつれGreen成分が大きくなり、つまり蛍光灯であることを示している。   The WB control unit 103 performs white detection using a graph having coordinate axes as shown in FIG. In FIG. 3, the negative direction of the x coordinate (Cx) represents a color evaluation value when white of a high color temperature subject is photographed, and the positive direction represents a color evaluation value when white of a low color temperature subject is photographed. The y-coordinate (Cy) means the degree of the green component of the light source, and the green component increases as it goes in the negative direction, that is, it indicates a fluorescent lamp.

ステップS203において、WB制御部103は、ステップS202で算出したi番目のブロックの色評価値(Cx[i],Cy[i])が、予め設定された白検出範囲301に含まれるか否かを判定する。白検出範囲301は、予め異なる光源下で白を撮影して算出した色評価値を黒体放射軸に沿ってプロットしたものである。なお、この白検出範囲301は撮影モードによって異なるように設定できるものとする。例えば、ストロボが発光された場合、既知の光源として、白検出範囲302のように範囲を限定して設定できるものとする。色評価値(Cx[i],Cy[i])が白検出範囲301に含まれる場合、処理はステップS204に移行する。一方、色評価値(Cx[i],Cy[i])が白検出範囲301に含まれない場合、処理はステップS204をスキップして、ステップS205に移行する。   In step S203, the WB control unit 103 determines whether or not the color evaluation value (Cx [i], Cy [i]) of the i-th block calculated in step S202 is included in the preset white detection range 301. Determine. The white detection range 301 is obtained by plotting color evaluation values calculated by photographing white under different light sources in advance along the black body radiation axis. The white detection range 301 can be set differently depending on the shooting mode. For example, when a strobe light is emitted, a known light source can be set with a limited range such as a white detection range 302. If the color evaluation value (Cx [i], Cy [i]) is included in the white detection range 301, the process proceeds to step S204. On the other hand, when the color evaluation values (Cx [i], Cy [i]) are not included in the white detection range 301, the process skips step S204 and proceeds to step S205.

ステップS204において、WB制御部103は、i番目のブロックが白色であると判定して、当該ブロックの色平均値(R[i],G[i],B[i])を積分する。一方、ステップS204がスキップされた場合、当該ブロックの色平均値は積分(加算)されないまま、処理はステップS205に移行する。なお、ステップS203及びS204の処理は、次の式によって表すことができる。   In step S204, the WB control unit 103 determines that the i-th block is white, and integrates the color average values (R [i], G [i], B [i]) of the block. On the other hand, when step S204 is skipped, the process proceeds to step S205 while the color average value of the block is not integrated (added). Note that the processing of steps S203 and S204 can be expressed by the following equation.

Figure 2013219561
Figure 2013219561

ここで、上記式において、色評価値(Cx[i],Cy[i])が白検出範囲301に含まれる場合、Sw[i]は1に設定され、色評価値(Cx[i],Cy[i])が白検出範囲301に含まれない場合、Sw[i]は0に設定される。これにより、ステップS203及びS204において、色平均値(R[i],G[i],B[i])を積分するか、積分しないかを実質的に行っている。   Here, in the above equation, when the color evaluation value (Cx [i], Cy [i]) is included in the white detection range 301, Sw [i] is set to 1, and the color evaluation value (Cx [i], If Cy [i]) is not included in the white detection range 301, Sw [i] is set to zero. Thereby, in steps S203 and S204, the color average values (R [i], G [i], B [i]) are substantially integrated or not integrated.

ステップS205において、WB制御部103は、全てのブロックについてステップS202〜S204の処理を実行したか否かを判定する。全てのブロックについて処理が実行された場合、処理はステップS206に移行する。一方、全てのブロックについて処理が実行されていない場合、処理はステップS202に戻る。   In step S205, the WB control unit 103 determines whether the processes in steps S202 to S204 have been executed for all blocks. If the process has been executed for all blocks, the process proceeds to step S206. On the other hand, if the process has not been executed for all the blocks, the process returns to step S202.

ステップS206において、WB制御部103は、得られた色評価値の積分値(SumR1,SumG1,SumB1)から、次の式を用いて、第1のWB補正値(WBCol_R1,WBCol_G1,WBCol_B1)を算出する。なお、ステップS206は、第1の算出手段の処理例である。
WBCol_R1=SumY1×1024/SumR1
WBCol_G1=SumY1×1024/SumG1
WBCol_B1=SumY1×1024/SumB1
但し、SumY1=(SumR1+2×SumG1+SumB1)/4
In step S206, the WB control unit 103 calculates a first WB correction value (WBCol_R1, WBCol_G1, WBCol_B1) using the following formula from the obtained integrated value (SumR1, SumG1, SumB1) of the color evaluation values. To do. Step S206 is a processing example of the first calculation unit.
WBCol_R1 = SumY1 × 1024 / SumR1
WBCol_G1 = SumY1 × 1024 / SumG1
WBCol_B1 = SumY1 × 1024 / SumB1
However, SumY1 = (SumR1 + 2 × SumG1 + SumB1) / 4

図4は、WB制御部103における第2のWB補正値(第2のホワイトバランス補正値)の算出処理を示すフローチャートである。以下、図4を参照しながら、WB制御部103における第2のWB補正値の算出処理について詳細に説明する。   FIG. 4 is a flowchart showing the calculation process of the second WB correction value (second white balance correction value) in the WB control unit 103. Hereinafter, the calculation process of the second WB correction value in the WB control unit 103 will be described in detail with reference to FIG.

ステップS401において、WB制御部103は、ズーム倍率変更前のWB補正値を記憶しておく。例えば、WB制御部103は、過去に算出されたEVF(Electronic View Finder)駆動時のWB補正値を記憶しておく。なお、ここで記憶されるWB補正値は、図2に示した第1のWB補正値の算出処理によって得られるものである。   In step S401, the WB control unit 103 stores the WB correction value before the zoom magnification change. For example, the WB control unit 103 stores a WB correction value calculated in the past when EVF (Electronic View Finder) is driven. The WB correction value stored here is obtained by the first WB correction value calculation process shown in FIG.

ステップS402において、WB制御部103は、ズーム倍率が変更されて撮影されたか否かを判定する。ズーム倍率が変更されて撮影された場合、処理はステップS403に移行する。一方、ズーム倍率が変更されずに撮影された場合、処理はステップS407に移行する。ステップS407において、WB制御部103は、ステップS401で記憶されたWB補正値(第1のWB補正値)を用いて通常のWB制御を行う。   In step S402, the WB control unit 103 determines whether or not the zoom magnification has been changed and shot. When the zoom magnification is changed and the image is taken, the process proceeds to step S403. On the other hand, if the image has been shot without changing the zoom magnification, the process proceeds to step S407. In step S407, the WB control unit 103 performs normal WB control using the WB correction value (first WB correction value) stored in step S401.

ステップS403において、WB制御部103は、ズーム倍率変更中においてWB補正値を所定の間隔で算出するとともに、監視する。なお、所定の間隔で監視された各WB補正値は記憶される。本実施形態においては、所定のズームポジションに応じてWB補正値を監視するものとする。例えば、35mm換算で28mm−560mm画角の場合、28mm、56mm、84mm、・・・、560mmと所定のズームポジションに応じてWB補正値を監視することとする。なお、WB補正値の監視間隔は、ズーム速度に応じて可変にしてもよいし、所定の時間間隔でWB補正値を監視してもよい。   In step S403, the WB control unit 103 calculates and monitors WB correction values at predetermined intervals during zoom magnification change. Each WB correction value monitored at a predetermined interval is stored. In the present embodiment, the WB correction value is monitored according to a predetermined zoom position. For example, in the case of a 28 mm-560 mm angle of view in terms of 35 mm, the WB correction value is monitored according to a predetermined zoom position such as 28 mm, 56 mm, 84 mm,. Note that the monitoring interval of the WB correction value may be varied according to the zoom speed, or the WB correction value may be monitored at a predetermined time interval.

ズーム倍率が変更された後、ステップS404において、WB制御部103は、WB制御範囲(WB補正値の範囲)を設定する。ここでのWB制御範囲の設定は、ズーム倍率変更前のWB補正値に基づいて行われる。例えば、ズーム倍率変更前のWB補正値を中心に所定の幅を持った範囲をWB制御範囲として設定してもよい。また、WB制御範囲の設定は、ズーム倍率変更前又はズーム倍率変更後のズーム倍率によって可変にしてもよい。例えば、ズーム倍率が高いときは有彩色の占有面積が大きくなり、有彩色が白と判断される可能性が高くなるため、WB制御範囲が狭く設定される。   After the zoom magnification is changed, in step S404, the WB control unit 103 sets a WB control range (WB correction value range). The setting of the WB control range here is performed based on the WB correction value before the zoom magnification change. For example, a range having a predetermined width around the WB correction value before the zoom magnification change may be set as the WB control range. The setting of the WB control range may be variable depending on the zoom magnification before or after the zoom magnification change. For example, when the zoom magnification is high, the occupying area of the chromatic color increases, and the possibility that the chromatic color is determined to be white increases. Therefore, the WB control range is set to be narrow.

ステップS405において、WB制御部103は、ズーム倍率変更中又はズーム倍率変更後にシーンが変化したか否かを判定する。ここでは、シーン変化の判断要素として、ジャイロセンサから得られる情報や、環境光源の明るさ(測光値)情報の変動を監視することにより、シーンの変化を検出するものとする。即ち、ジャイロセンサから得られる情報を用いた場合、パンニングして撮影されたか否かを検出することができ、環境光源の明るさ(測光値)情報を用いた場合、環境光源の切り替わりを検出することができる。シーンが変化していない場合、処理はステップS406に移行する。一方、シーンが変化した場合、処理は上述したステップS407に移行する。   In step S405, the WB control unit 103 determines whether the scene has changed during or after the zoom magnification change. Here, as a determination element for a scene change, a change in the scene is detected by monitoring changes in information obtained from the gyro sensor and brightness (photometric value) information of the environment light source. That is, when information obtained from the gyro sensor is used, it is possible to detect whether or not the image is panned and photographed. When the brightness (photometric value) information of the environment light source is used, the change of the environment light source is detected. be able to. If the scene has not changed, the process proceeds to step S406. On the other hand, if the scene has changed, the process proceeds to step S407 described above.

ステップS406において、WB制御部103は、ステップS403にて設定したWB制御範囲とステップS404で監視した監視結果とに基づいて、第2のWB補正値を算出する。なお、ステップS406は、第2の算出手段の処理例である。   In step S406, the WB control unit 103 calculates a second WB correction value based on the WB control range set in step S403 and the monitoring result monitored in step S404. Step S406 is a processing example of the second calculation unit.

以下、図5及び図6を参照しながら、ステップS406における第2のWB補正値の算出処理について具体的に説明する。なお、図5及び図6においては、zoom(0)→zoom(1)→zoom(2)→zoom(3)→zoom(4)のようにズームされたことを表している。   Hereinafter, the second WB correction value calculation process in step S406 will be described in detail with reference to FIGS. In FIGS. 5 and 6, zooming is performed as zoom (0) → zoom (1) → zoom (2) → zoom (3) → zoom (4).

図5(a)は、主被写体501の顔領域に対してズーミング処理を行った場合を模式的に示している。図5(a)に示すように、主被写体501の顔領域に対してズーミング処理を行った場合、顔色が低色温度光源であると誤検出される割合が徐々に増加していくため、検出される色温度が低下していく。つまり、ここで検出される色温度の状態遷移は、図6(a)に示すようになる。図6(a)に示すように、ズーム倍率変更前に検出された色温度(WB補正値)から徐々に減少する傾向のような状態遷移の場合、ズーム倍率変更前のWB補正値がより信頼度が高いと判定される。従って、第2のWB補正値として、ズーム倍率変更前のWB補正値が使用される。また、図6(a)に示す例とは反対に、ズーム倍率変更前の検出色温度(WB補正値)から徐々に増加する傾向のような状態遷移の場合であっても、ズーム倍率変更前のWB補正値がより信頼度が高いと判定される。従って、この場合、第2のWB補正値としてズーム倍率変更前のWB補正値が使用される。そのほか、ズーム倍率変更前のWB補正値がより信頼度が高いと判定された場合、ズーム倍率変更中において算出されたWB補正値のうち、WB制御範囲の上限値或いは下限値又はその近傍の値に該当するWB補正値を第2のWB補正値として出力するようにしてもよい。   FIG. 5A schematically shows a case where the zooming process is performed on the face area of the main subject 501. As shown in FIG. 5A, when the zoom process is performed on the face area of the main subject 501, the ratio of false detection that the face color is a low color temperature light source gradually increases. The color temperature is reduced. That is, the state transition of the color temperature detected here is as shown in FIG. As shown in FIG. 6A, in the case of a state transition that tends to gradually decrease from the color temperature (WB correction value) detected before the zoom magnification change, the WB correction value before the zoom magnification change is more reliable. It is determined that the degree is high. Therefore, the WB correction value before the zoom magnification change is used as the second WB correction value. Further, contrary to the example shown in FIG. 6A, even in the case of a state transition that tends to gradually increase from the detected color temperature (WB correction value) before the zoom magnification change, before the zoom magnification change. It is determined that the WB correction value is more reliable. Therefore, in this case, the WB correction value before the zoom magnification change is used as the second WB correction value. In addition, when it is determined that the reliability of the WB correction value before the zoom magnification change is higher, the upper limit value or the lower limit value of the WB control range or a value in the vicinity thereof among the WB correction values calculated during the zoom magnification change. The WB correction value corresponding to the above may be output as the second WB correction value.

また、図5(b)に示すように、背景に様々な色の被写体502がある場合、ズーム倍率変更前からWB補正値として信頼度が低いことがある。つまり、図6(b)に示すように、状態遷移として、検出された色温度(WB補正値)がばらついているような場合、ズーム倍率変更前のWB補正値の信頼度が低いと判定され、WB制御範囲内に含まれるWB補正値を加重加算して第2のWB補正値とする。即ち、WB制御部103は、次の式を用いて、第2のWB補正値を算出する。   Also, as shown in FIG. 5B, when there are subjects 502 of various colors in the background, the reliability as the WB correction value may be low before the zoom magnification change. That is, as shown in FIG. 6B, when the detected color temperature (WB correction value) varies as the state transition, it is determined that the reliability of the WB correction value before the zoom magnification change is low. The WB correction value included in the WB control range is weighted and added to obtain the second WB correction value. That is, the WB control unit 103 calculates the second WB correction value using the following equation.

Figure 2013219561
Figure 2013219561

ここで、上記式において、ズーム倍率変更時に監視されているWB補正値(Cx[j],Cy[j])が図6(b)に示すWB制御範囲に含まれる場合、Sw[j]は1に設定される。一方、WB補正値(Cx[j],Cy[j])が図6(b)に示すWB制御範囲に含まれない場合、Sw[j]は0に設定される。これにより、WB補正値の加算を行うか、行わないかの処理を行っている。   Here, in the above formula, when the WB correction value (Cx [j], Cy [j]) monitored when the zoom magnification is changed is included in the WB control range shown in FIG. 6B, Sw [j] is Set to 1. On the other hand, if the WB correction value (Cx [j], Cy [j]) is not included in the WB control range shown in FIG. 6B, Sw [j] is set to 0. As a result, processing is performed to determine whether or not to add the WB correction value.

以上により、ズーム倍率を変更して撮影された場合においても、適切なホワイトバランス補正値を得ることができ、ユーザにとって好ましい画像を提供することができる。   As described above, an appropriate white balance correction value can be obtained even when the zoom magnification is changed and an image preferable for the user can be provided.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

101:固定撮像素子、102:メモリ、103:WB制御部、104:色変換マトリックス回路、105:LPF回路、106:CSUP回路、107:RGB変換回路、108:γ補正回路、109:色輝度変換回路、110:JPEG圧縮回路、111:輝度信号生成回路、112:エッジ強調回路、113:撮像制御回路、114:制御部   101: Fixed imaging device, 102: Memory, 103: WB control unit, 104: Color conversion matrix circuit, 105: LPF circuit, 106: CSUP circuit, 107: RGB conversion circuit, 108: γ correction circuit, 109: Color luminance conversion Circuit: 110: JPEG compression circuit, 111: Luminance signal generation circuit, 112: Edge enhancement circuit, 113: Imaging control circuit, 114: Control unit

Claims (11)

撮像手段と、
前記撮像手段により撮像された画像データに基づいて、第1のホワイトバランス補正値を算出する第1の算出手段と、
前記撮像手段による撮像処理時のズーム倍率を変更する変更手段と、
前記変更手段によるズーム倍率変更中において前記第1の算出手段により算出される第1のホワイトバランス補正値を所定の間隔で監視する監視手段と、
前記監視手段により監視された第1のホワイトバランス補正値に基づいて、第2のホワイトバランス補正値を算出する第2の算出手段とを有することを特徴とする撮像装置。
Imaging means;
First calculation means for calculating a first white balance correction value based on image data picked up by the image pickup means;
Changing means for changing a zoom magnification at the time of image pickup processing by the image pickup means;
Monitoring means for monitoring the first white balance correction value calculated by the first calculating means at a predetermined interval during the zoom magnification change by the changing means;
An image pickup apparatus comprising: a second calculation unit that calculates a second white balance correction value based on the first white balance correction value monitored by the monitoring unit.
前記変更手段によるズーム倍率変更前において前記第1の算出手段により算出された第1のホワイトバランス補正値に基づいて、ホワイトバランス補正値の範囲を設定する設定手段を更に有し、
前記第2の算出手段は、前記監視手段により監視された第1のホワイトバランス補正値と、前記設定手段により設定された前記ホワイトバランス補正値の範囲とに基づいて、第2のホワイトバランス補正値を算出することを特徴とする請求項1に記載の撮像装置。
Further comprising setting means for setting a range of white balance correction values based on the first white balance correction value calculated by the first calculation means before the zoom magnification change by the changing means;
The second calculating unit is configured to determine a second white balance correction value based on the first white balance correction value monitored by the monitoring unit and the range of the white balance correction value set by the setting unit. The imaging apparatus according to claim 1, wherein the imaging device is calculated.
前記設定手段は、前記変更手段によるズーム倍率変更前又はズーム倍率変更後のズーム倍率に応じて、前記ホワイトバランス補正値の範囲を設定することを特徴とする請求項2に記載の撮像装置。   The imaging apparatus according to claim 2, wherein the setting unit sets a range of the white balance correction value according to a zoom magnification before or after the zoom magnification is changed by the changing unit. 前記変更手段によるズーム倍率変更前において前記第1の算出手段により算出された第1のホワイトバランス補正値の信頼度を判定する判定手段を更に有し、
前記第2の算出手段は、前記判定手段による判定結果に応じて、前記変更手段によるズーム倍率変更前において前記第1の算出手段により算出された第1のホワイトバランス補正値を、前記第2のホワイトバランス補正値として算出することを特徴とする請求項1乃至3の何れか1項に記載の撮像装置。
A determination means for determining a reliability of the first white balance correction value calculated by the first calculation means before the zoom magnification change by the changing means;
The second calculating means uses the first white balance correction value calculated by the first calculating means before the zoom magnification change by the changing means in accordance with the determination result by the determining means. The imaging apparatus according to claim 1, wherein the imaging apparatus calculates the white balance correction value.
前記変更手段によるズーム倍率変更前において前記第1の算出手段により算出された第1のホワイトバランス補正値の信頼度を判定する判定手段を更に有し、
前記第2の算出手段は、前記判定手段による判定結果に応じて、前記変更手段によるズーム倍率変更中において前記第1の算出手段により算出された第1のホワイトバランス補正値のうち、前記ホワイトバランス補正値の範囲の上限値或いは下限値又はその近傍の値に該当する第1のホワイトバランス補正値を、前記第2のホワイトバランス補正値として算出することを特徴とする請求項2又は3に記載の撮像装置。
A determination means for determining a reliability of the first white balance correction value calculated by the first calculation means before the zoom magnification change by the changing means;
The second calculation unit is configured to determine the white balance among the first white balance correction values calculated by the first calculation unit during the zoom magnification change by the change unit according to the determination result by the determination unit. The first white balance correction value corresponding to an upper limit value, a lower limit value, or a value in the vicinity thereof in the correction value range is calculated as the second white balance correction value. Imaging device.
前記変更手段によるズーム倍率変更前において前記第1の算出手段により算出された第1のホワイトバランス補正値の信頼度を判定する判定手段を更に有し、
前記第2の算出手段は、前記判定手段による判定結果に応じて、前記変更手段によるズーム倍率変更中において前記第1の算出手段により算出された第1のホワイトバランス補正値のうち、前記ホワイトバランス補正値の範囲内に属する第1のホワイトバランス補正値に基づいて、前記第2のホワイトバランス補正値を算出することを特徴とする請求項2又は3に記載の撮像装置。
A determination means for determining a reliability of the first white balance correction value calculated by the first calculation means before the zoom magnification change by the changing means;
The second calculation unit is configured to determine the white balance among the first white balance correction values calculated by the first calculation unit during the zoom magnification change by the change unit according to the determination result by the determination unit. The imaging apparatus according to claim 2, wherein the second white balance correction value is calculated based on a first white balance correction value belonging to a range of correction values.
前記変更手段によるズーム倍率変更中又はズーム倍率変更後におけるシーンの変化を検出する検出手段を更に有し、
前記第2の算出手段は、前記検出手段によりシーンの変化が検出されなかった場合、前記第2のホワイトバランス補正値を算出することを特徴とする請求項1乃至6の何れか1項に記載の撮像装置。
A detecting means for detecting a change in the scene during or after the zoom magnification change by the changing means;
The said 2nd calculation means calculates the said 2nd white balance correction value, when the change of a scene is not detected by the said detection means, The one of Claims 1 thru | or 6 characterized by the above-mentioned. Imaging device.
前記検出手段は、ジャイロセンサから得られる情報に基づいて、シーンの変化を検出することを特徴とする請求項7に記載の撮像装置。   The imaging apparatus according to claim 7, wherein the detection unit detects a change in a scene based on information obtained from a gyro sensor. 前記検出手段は、環境光源の明るさに基づいて、シーンの変化を検出することを特徴とする請求項7に記載の撮像装置。   The imaging apparatus according to claim 7, wherein the detection unit detects a change in a scene based on brightness of an environmental light source. 撮像手段を有する撮像装置の制御方法であって、
前記撮像手段により撮像された画像データに基づいて、第1のホワイトバランス補正値を算出する第1の算出ステップと、
前記撮像手段による撮像処理時のズーム倍率を変更する変更ステップと、
前記変更ステップによるズーム倍率変更中において前記第1の算出ステップにより算出される第1のホワイトバランス補正値を所定の間隔で監視する監視ステップと、
前記監視ステップにより監視された第1のホワイトバランス補正値に基づいて、第2のホワイトバランス補正値を算出する第2の算出ステップとを有することを特徴とする撮像装置の制御方法。
A method for controlling an imaging apparatus having imaging means,
A first calculation step of calculating a first white balance correction value based on image data imaged by the imaging means;
A change step of changing a zoom magnification at the time of image pickup processing by the image pickup means;
A monitoring step of monitoring the first white balance correction value calculated by the first calculation step at a predetermined interval during the zoom magnification change by the changing step;
And a second calculation step of calculating a second white balance correction value based on the first white balance correction value monitored in the monitoring step.
撮像手段を有する撮像装置の制御方法をコンピュータに実行させるためのプログラムであって、
前記撮像手段により撮像された画像データに基づいて、第1のホワイトバランス補正値を算出する第1の算出ステップと、
前記撮像手段による撮像処理時のズーム倍率を変更する変更ステップと、
前記変更ステップによるズーム倍率変更中において前記第1の算出ステップにより算出される第1のホワイトバランス補正値を所定の間隔で監視する監視ステップと、
前記監視ステップにより監視された第1のホワイトバランス補正値に基づいて、第2のホワイトバランス補正値を算出する第2の算出ステップとをコンピュータに実行させるためのプログラム。
A program for causing a computer to execute a control method of an image pickup apparatus having an image pickup means,
A first calculation step of calculating a first white balance correction value based on image data imaged by the imaging means;
A change step of changing a zoom magnification at the time of image pickup processing by the image pickup means;
A monitoring step of monitoring the first white balance correction value calculated by the first calculation step at a predetermined interval during the zoom magnification change by the changing step;
A program for causing a computer to execute a second calculation step of calculating a second white balance correction value based on the first white balance correction value monitored in the monitoring step.
JP2012088735A 2012-04-09 2012-04-09 Imaging apparatus, control method thereof, and program Expired - Fee Related JP5943682B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012088735A JP5943682B2 (en) 2012-04-09 2012-04-09 Imaging apparatus, control method thereof, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012088735A JP5943682B2 (en) 2012-04-09 2012-04-09 Imaging apparatus, control method thereof, and program

Publications (2)

Publication Number Publication Date
JP2013219561A true JP2013219561A (en) 2013-10-24
JP5943682B2 JP5943682B2 (en) 2016-07-05

Family

ID=49591204

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012088735A Expired - Fee Related JP5943682B2 (en) 2012-04-09 2012-04-09 Imaging apparatus, control method thereof, and program

Country Status (1)

Country Link
JP (1) JP5943682B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018179624A1 (en) * 2017-03-30 2018-10-04 ソニーセミコンダクタソリューションズ株式会社 Imaging device, imaging system, and control method for imaging device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03148988A (en) * 1989-11-02 1991-06-25 Minolta Camera Co Ltd White balance adjusting device
JPH0479691A (en) * 1990-07-23 1992-03-13 Sharp Corp Color image pickup device
JPH04135396A (en) * 1990-09-27 1992-05-08 Mitsubishi Electric Corp Automatic white balance adjusting device
JPH04170887A (en) * 1990-11-05 1992-06-18 Canon Inc White balance correction device
JPH05122719A (en) * 1991-09-04 1993-05-18 Fuji Photo Film Co Ltd White balance adjustment device
JPH06189314A (en) * 1992-12-21 1994-07-08 Canon Inc Electronic camera
JP2003060982A (en) * 2001-08-09 2003-02-28 Fuji Photo Film Co Ltd Imaging device and control method therefor
JP2003259389A (en) * 2002-02-27 2003-09-12 Hitachi Ltd Imaging unit

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03148988A (en) * 1989-11-02 1991-06-25 Minolta Camera Co Ltd White balance adjusting device
JPH0479691A (en) * 1990-07-23 1992-03-13 Sharp Corp Color image pickup device
JPH04135396A (en) * 1990-09-27 1992-05-08 Mitsubishi Electric Corp Automatic white balance adjusting device
JPH04170887A (en) * 1990-11-05 1992-06-18 Canon Inc White balance correction device
JPH05122719A (en) * 1991-09-04 1993-05-18 Fuji Photo Film Co Ltd White balance adjustment device
JPH06189314A (en) * 1992-12-21 1994-07-08 Canon Inc Electronic camera
JP2003060982A (en) * 2001-08-09 2003-02-28 Fuji Photo Film Co Ltd Imaging device and control method therefor
JP2003259389A (en) * 2002-02-27 2003-09-12 Hitachi Ltd Imaging unit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018179624A1 (en) * 2017-03-30 2018-10-04 ソニーセミコンダクタソリューションズ株式会社 Imaging device, imaging system, and control method for imaging device
US10873732B2 (en) 2017-03-30 2020-12-22 Sony Semiconductor Solutions Corporation Imaging device, imaging system, and method of controlling imaging device

Also Published As

Publication number Publication date
JP5943682B2 (en) 2016-07-05

Similar Documents

Publication Publication Date Title
CN108683862B (en) Imaging control method, imaging control device, electronic equipment and computer-readable storage medium
JP5398156B2 (en) WHITE BALANCE CONTROL DEVICE, ITS CONTROL METHOD, AND IMAGING DEVICE
RU2562918C2 (en) Shooting device, shooting system and control over shooting device
JP6083974B2 (en) Image processing apparatus, image processing method, and program
US9036046B2 (en) Image processing apparatus and method with white balance correction
US11838648B2 (en) Image processing device, imaging apparatus, image processing method, and program for determining a condition for high dynamic range processing
JP5225137B2 (en) Imaging apparatus, image processing method, and program
JP4626432B2 (en) Color discriminating method and apparatus in imaging apparatus and exposure control method of imaging apparatus
JP5316923B2 (en) Imaging apparatus and program thereof
JP5854716B2 (en) Image processing apparatus, image processing method, and program
JP5943682B2 (en) Imaging apparatus, control method thereof, and program
JP2009063674A (en) Imaging apparatus and flash control method
JP6492452B2 (en) Control system, imaging apparatus, control method, and program
JP2015119436A (en) Imaging apparatus
US8154618B2 (en) Imaging apparatus and method for setting the same
JP2016220031A (en) Image processing device and image processing method
JP2013132065A (en) Imaging apparatus and flash control method
JP2015142281A (en) Subject searching device, control method and control program of the same, and imaging device
JP2015037222A (en) Image processing apparatus, imaging apparatus, control method, and program
JP6900577B2 (en) Image processing equipment and programs
JP4950553B2 (en) Imaging apparatus and image processing method
JP6601062B2 (en) Imaging control apparatus, imaging control method, and program
JP2017034536A (en) Image processing apparatus, image processing method, and program
JP6616674B2 (en) Image processing apparatus and method, and imaging apparatus
JP5659574B2 (en) Image processing apparatus, imaging apparatus, and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150320

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151106

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151208

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160308

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160318

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160524

R151 Written notification of patent or utility model registration

Ref document number: 5943682

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees