[go: up one dir, main page]

JP4412109B2 - Electronic camera having color balance adjustment function and program - Google Patents

Electronic camera having color balance adjustment function and program Download PDF

Info

Publication number
JP4412109B2
JP4412109B2 JP2004236348A JP2004236348A JP4412109B2 JP 4412109 B2 JP4412109 B2 JP 4412109B2 JP 2004236348 A JP2004236348 A JP 2004236348A JP 2004236348 A JP2004236348 A JP 2004236348A JP 4412109 B2 JP4412109 B2 JP 4412109B2
Authority
JP
Japan
Prior art keywords
flash
image
balance adjustment
luminance
screen
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.)
Expired - Fee Related
Application number
JP2004236348A
Other languages
Japanese (ja)
Other versions
JP2006054775A (en
Inventor
哲也 武下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2004236348A priority Critical patent/JP4412109B2/en
Priority to US11/118,382 priority patent/US7423674B2/en
Publication of JP2006054775A publication Critical patent/JP2006054775A/en
Application granted granted Critical
Publication of JP4412109B2 publication Critical patent/JP4412109B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

閃光撮影した画像データに色バランス調整を施す電子カメラに関する。
また、本発明は、コンピュータ上において、閃光撮影した画像データに色バランス調整を施すためのプログラムに関する。
The present invention relates to an electronic camera that performs color balance adjustment on flash image data.
The present invention also relates to a program for performing color balance adjustment on image data obtained by flash photography on a computer.

従来、閃光撮影時のホワイトバランス調整を行う技術として、特許文献1が知られている。この特許文献1では、同一露出条件の元で、非閃光画像および閃光画像を撮像し、両画像間の輝度差を求める。この画像間の輝度差が大きい場合、閃光の色温度に基づいてホワイトバランス調整を実施する。逆に画像間の輝度差が小さい場合、外光の色温度に基づいてホワイトバランス調整を実施する。   Conventionally, Patent Document 1 is known as a technique for performing white balance adjustment during flash photography. In Patent Document 1, a non-flash image and a flash image are captured under the same exposure condition, and a luminance difference between the two images is obtained. When the luminance difference between the images is large, white balance adjustment is performed based on the color temperature of the flash. Conversely, when the luminance difference between images is small, white balance adjustment is performed based on the color temperature of external light.

また、蛍光灯照明下において撮影を行うと、蛍光灯の波長特性によって、撮像画像に緑かぶりを生じることが知られている。特許文献2には、このような緑かぶりを補正する技術が記載されている。
特開平8−51632号公報(請求項1など) 特開2003−264850号公報(要約など)
Further, it is known that when photographing is performed under fluorescent lamp illumination, a green fog is generated in the captured image due to the wavelength characteristics of the fluorescent lamp. Patent Document 2 describes a technique for correcting such a green fog.
JP-A-8-51632 (Claim 1 etc.) JP 2003-264850 A (summary)

ところで、特許文献1の場合、閃光発光の有無による輝度差を正確に検出するため、閃光無しの撮影と、閃光撮影とを、同一の露出条件(同一の絞り値、同一の撮像感度、および同一の電荷蓄積時間)で実施する必要がある。そのため、スローシンクロ撮影時のような長秒時の閃光撮影では、閃光無しの撮影についても長秒時にわたって実施しなければならない。この場合、本番の閃光撮影が遅れて、シャッタチャンスを逃すなどの不具合が生じる。   By the way, in the case of Patent Document 1, in order to accurately detect a luminance difference due to the presence or absence of flash emission, shooting without flash and flash shooting are performed under the same exposure conditions (the same aperture value, the same imaging sensitivity, and the same). Charge accumulation time). Therefore, in flash photography at long seconds, such as during slow sync photography, photography without flash must be performed over long seconds. In this case, the actual flash photography is delayed, and problems such as missing a photo opportunity occur.

また、閃光無し撮影と閃光撮影との露出条件を一致させて撮影を開始するため、途中で閃光撮影の露出条件を変更することができない。そのため、閃光無しの撮影結果を解析した上で、閃光撮影の露出条件を臨機応変に変えるといった動作が不可能になる。   In addition, since exposure is started by matching the exposure conditions for flashless shooting and flash shooting, the exposure conditions for flash shooting cannot be changed in the middle. For this reason, it is impossible to change the exposure condition of the flash photography in a flexible manner after analyzing the shooting result without flash.

ところで、夜景撮影や室内撮影などでは、蛍光灯や電球や閃光のミックスされた複雑な照明環境となることが多い。このような環境で各光の当たり方にムラが生じると、緑かぶりにもムラが生じる。例えば、高層ビル群(窓からは多数の蛍光灯が見える)を背景に、手前の人物に閃光を照射して、スローシンクロ撮影を実施する場合を考える。この場合、背景の大部分を占める高層ビル群の明かりには、蛍光灯による緑かぶりが発生する。一方、手前の人物は、閃光に強く照らされ、緑かぶりは生じない。
この状態の撮像画像に対して、特許文献2の通りに緑かぶりの補正を行うと、緑かぶりを生じていない人物の赤青成分が上がり過ぎて、人物に不自然なマゼンタかぶりが生じてしまう。
By the way, in night scene shooting and indoor shooting, a complicated lighting environment in which fluorescent lights, light bulbs, and flashlights are mixed is often obtained. If unevenness occurs in how each light hits in such an environment, the green fog also becomes uneven. For example, consider a case where a slow-synchronized shooting is performed by irradiating a person in front with a flash against a background of a high-rise building group (a large number of fluorescent lights can be seen from a window). In this case, a green fog caused by a fluorescent lamp occurs in the light of a high-rise building group that occupies most of the background. On the other hand, the person in the foreground is strongly illuminated by the flash, and no green fog occurs.
If a green fog correction is performed on a captured image in this state as described in Patent Document 2, the red-blue component of a person who does not have a green fog rises too much, resulting in an unnatural magenta fog on the person. .

これら従来の不具合に鑑みて、本発明は、閃光無し撮影と閃光撮影とにおいて露出条件を変更しても、閃光発光の影響度合いを適切に判定する技術を提供することを目的とする。   In view of these conventional problems, an object of the present invention is to provide a technique for appropriately determining the degree of influence of flash emission even when exposure conditions are changed between flashless shooting and flash shooting.

《1》
本発明の電子カメラは、画像取得部、輝度比検出部、および色バランス調整部を備える。
画像取得部は、閃光装置を制御して、閃光無しで撮像された非閃光画像、および閃光有りで撮像された閃光画像を取得する。
輝度比検出部は、非閃光画像について画面内の異なる領域A,B間における輝度の比を求めて輝度比Rnfとする。また、輝度比検出部は、閃光画像についても同様にして輝度比Rfを求める。さらに、輝度比検出部は、閃光の有無に伴う輝度比Rnf,Rfの変化量Cを求める。
色バランス調整部は、変化量Cが大きいほど、閃光の色温度を重視した色バランス調整を設定し、閃光撮影された本画像に色バランス調整を施す。
<< 1 >>
The electronic camera of the present invention includes an image acquisition unit, a luminance ratio detection unit, and a color balance adjustment unit.
The image acquisition unit controls the flash device to acquire a non-flash image captured without flash and a flash image captured with flash.
The luminance ratio detection unit obtains a luminance ratio between different areas A and B in the screen for the non-flash image and sets it as the luminance ratio Rnf. In addition, the luminance ratio detection unit similarly determines the luminance ratio Rf for the flash image. Further, the luminance ratio detection unit obtains a change amount C of the luminance ratios Rnf and Rf with or without flash.
The color balance adjustment unit sets the color balance adjustment with an emphasis on the color temperature of the flash as the change amount C is larger, and performs the color balance adjustment on the main image captured by the flash.

《2》
なお好ましくは、輝度比検出部は、非閃光画像について『画面中央域の輝度』と『画面全域または画面周辺域の輝度』の輝度比Rnfを求める。また、輝度比検出部は、閃光画像についても『画面中央域の輝度』と『画面全域または画面周辺域の輝度』の輝度比Rfを求める。
<< 2 >>
Preferably, the luminance ratio detection unit obtains a luminance ratio Rnf of “brightness in the center area of the screen” and “brightness in the whole area of the screen or the peripheral area of the screen” for the non-flash image. Also, the luminance ratio detection unit obtains the luminance ratio Rf of “brightness in the screen center area” and “brightness in the entire screen area or the screen peripheral area” for the flash image.

《3》
また好ましくは、色バランス調整部は、変化量Cが小さいほど、本画像または閃光画像の色温度を重視した色バランス調整を設定し、本画像に色バランス調整を施す。
<< 3 >>
Preferably, the color balance adjustment unit sets the color balance adjustment with an emphasis on the color temperature of the main image or the flash image as the change amount C is smaller, and performs the color balance adjustment on the main image.

《4》
なお好ましくは、色バランス調整部は、変化量Cが大きいほど、色バランス調整における緑かぶりの補正量(赤青成分を緑成分よりも相対的に大きくする補正量)を弱める。
<< 4 >>
Preferably, the color balance adjustment unit weakens the green fog correction amount (correction amount that makes the red-blue component relatively larger than the green component) in the color balance adjustment as the change amount C is larger.

《5》
また好ましくは、画像取得部は、副撮像素子、および主撮像素子を備える。
副撮像素子は、閃光装置を閃光発光させない状態で、非閃光画像を撮像する。
主撮像素子は、閃光装置を閃光発光させた状態で、閃光画像(本画像を兼ねる)を撮像する。
<< 5 >>
Preferably, the image acquisition unit includes a sub image sensor and a main image sensor.
The sub-imaging device captures a non-flash image in a state where the flash device is not flashed.
The main imaging element captures a flash image (also serving as a main image) in a state where the flash device is flashed.

《6》
なお好ましくは、画像取得部は、副撮像素子、および主撮像素子を備える。
副撮像素子は、閃光装置のプリ発光の前または後に非閃光画像を撮像し、プリ発光中に閃光画像を撮像する。
主撮像素子は、閃光装置を本発光させた状態で本画像を撮像する。
<< 6 >>
Preferably, the image acquisition unit includes a sub image sensor and a main image sensor.
The sub-imaging device captures a non-flash image before or after pre-flash of the flash device, and captures a flash image during pre-flash.
The main image pickup device picks up the main image in a state where the flash device performs main light emission.

《7》
本発明のプログラムは、コンピュータを、上記《1》ないし《6》のいずれか1項に記載の輝度比検出部、および色バランス調整部として機能させることを特徴とする。
<< 7 >>
The program according to the present invention causes a computer to function as the luminance ratio detection unit and the color balance adjustment unit according to any one of the above << 1 >> to << 6 >>.

(1)
本発明の電子カメラは、画面内の異なる領域A,B間について輝度の比率を求める。
もしも、この輝度比が閃光照明によって大きく変化したとすると、領域AB間において閃光の届き方や、被写界の反射率にムラがあったと判断できる。このように照明状態が不均一になると、閃光画像それ自体から推定される色温度に基づいてホワイトバランス調整を適切に行うことは難しくなる。無理に行えば、推定色温度とは異なる照明箇所の色が不自然に調整されてしまう。
(1)
The electronic camera of the present invention obtains the luminance ratio between different areas A and B in the screen.
If this luminance ratio is greatly changed by the flash illumination, it can be determined that there is unevenness in the way the flash reaches between the areas AB and the reflectance of the object scene. As described above, when the illumination state becomes uneven, it is difficult to appropriately adjust the white balance based on the color temperature estimated from the flash image itself. If forcibly performed, the color of the illumination location different from the estimated color temperature is unnaturally adjusted.

そこで、本発明では、閃光画像/非閃光画像の間で輝度比の変化量Cが大きくなると、閃光の色温度を重視した色バランス調整を実施する。一般に、閃光照明がよく当たっている箇所は、手前ないしカメラに正対して位置するといった撮影環境にあることから、主要被写体である可能性が大である。したがって、輝度比の変化量Cが大きいほど、閃光の色温度を重視して色バランス調整を実施することにより、高い成功確率で主要被写体の色バランスを良好に調整できる。   Therefore, in the present invention, when the change amount C of the luminance ratio between the flash image and the non-flash image increases, color balance adjustment is performed with an emphasis on the color temperature of the flash. In general, a portion that is well lit by flash light is in a shooting environment such as being located in front or facing the camera, so it is highly likely that it is a main subject. Accordingly, the color balance adjustment is performed with an emphasis on the color temperature of the flash as the change amount C of the luminance ratio is larger, so that the color balance of the main subject can be adjusted better with a high success probability.

ところで、ここで求めている輝度比は、画面内の領域AB間において輝度の比率を取った値であり、相対的な値である。したがって、輝度比には、露出条件(撮像素子、絞り値、撮像感度、および電荷蓄積時間)の違いは現れにくい。そのため、閃光画像と非閃光画像の間で、露出条件を完全一致させる必要性は少なく、露出条件を適宜にずらすことが許容される。例えば、スローシンクロ撮影において、非閃光画像の電荷蓄積時間を適宜に短縮することが可能になる。この場合、本番の閃光撮影はさほど遅れず、シャッタチャンスを逃すことは少なくなる。
なお、本発明では、非閃光画像を解析することで、閃光撮影の露出条件を臨機応変に変更するといった高度な露出制御も可能になる。
By the way, the luminance ratio obtained here is a value obtained by taking the luminance ratio between the areas AB in the screen, and is a relative value. Therefore, differences in exposure conditions (imaging device, aperture value, imaging sensitivity, and charge accumulation time) hardly appear in the luminance ratio. For this reason, there is little need to completely match the exposure conditions between the flash image and the non-flash image, and it is allowed to appropriately shift the exposure conditions. For example, in slow sync photography, the charge accumulation time of a non-flash image can be shortened appropriately. In this case, the actual flash photography is not so delayed, and the chance of missing a photo opportunity is reduced.
In the present invention, by analyzing the non-flash image, it is possible to perform advanced exposure control such as changing the exposure condition of flash photography to the occasion.

(2)
なお、主要被写体は、画面中央域に一部かかって存在することが多い。そこで、本発明では、輝度比を『画面中央域の輝度』と『画面全域または画面周辺域の輝度』との比較から求めることが好ましい。
このような輝度比の求め方により、主要被写体とその他領域とに生じる閃光ムラを見逃さずに検出できる。その結果、より高い成功確率で主要被写体の色バランスを良好に調整できる。
(2)
Note that the main subject often exists partly in the center area of the screen. Therefore, in the present invention, it is preferable to obtain the luminance ratio from a comparison between “luminance in the center area of the screen” and “luminance in the entire screen area or the peripheral area of the screen”.
By such a method for obtaining the luminance ratio, it is possible to detect without overlooking the flash unevenness occurring in the main subject and other areas. As a result, it is possible to satisfactorily adjust the color balance of the main subject with a higher success probability.

(3)
ところで、輝度比が閃光照明によってさほど変化しない場合、領域AB間において閃光の照明状態は均一に近いと判断できる。
通常に、閃光照明は一種の点光源に近いため、照明状態にムラが生じやすい。それにもかかわらず閃光照明下において照明状態が均一に近いということは、例えば下記の状況が予想される。
(3)
By the way, when the luminance ratio does not change so much by the flash illumination, it can be determined that the flash illumination state is almost uniform between the areas AB.
Usually, since flash illumination is close to a kind of point light source, unevenness in illumination is likely to occur. Nevertheless, the fact that the illumination state is almost uniform under flash illumination, for example, can be expected as follows.

ケース1:被写界が平板で、閃光が均一に当たっている。
ケース2:閃光よりも外光の割合が高く、閃光の有無による状態変化が小さい。
ケース3:被写体距離が全般的に遠いなどの理由から、閃光照明が有効に照射されていない。
Case 1: The object scene is a flat plate and the flash is uniformly illuminated.
Case 2: The ratio of outside light is higher than that of flash, and the state change due to the presence or absence of flash is small.
Case 3: The flash illumination is not effectively irradiated because the subject distance is generally long.

これらの状況において、閃光の色温度を重視した色バランス調整を実施すると、上記のケース2,3において、色バランスが不自然に調整されてしまう。   In these situations, if the color balance adjustment is performed with emphasis on the color temperature of the flash, the color balance is unnaturally adjusted in the cases 2 and 3 described above.

そこで、本発明では、閃光の有無によって輝度比の変化が小さいほど、本画像または閃光画像の色温度を重視した色バランス調整を設定することが好ましい。この場合、照明状態が均一に近いため、閃光撮影された本画像(あるいは閃光画像)から、色温度を比較的に正確に推定できる。その結果、上記のケース1〜3のいずれの場合においても、高い成功確率で本画像の色バランスを良好に調整できる。   Therefore, in the present invention, it is preferable to set the color balance adjustment in which the color temperature of the main image or the flash image is emphasized as the change in the luminance ratio is small depending on the presence or absence of the flash. In this case, since the illumination state is nearly uniform, the color temperature can be estimated relatively accurately from the main image (or the flash image) captured with the flash. As a result, in any case of the above cases 1 to 3, the color balance of the main image can be adjusted well with a high success probability.

(4)
ところで、閃光の有無によって輝度比の変化が大きい場合、画面内の領域A,Bのいずれかは閃光照明がよく当たっている箇所である。この箇所は、閃光照明の割合が高く、蛍光灯による緑かぶりが軽減される。
そこで、本発明では、輝度比の変化量Cが大きいほど、色バランス調整における緑かぶりの補正量(赤青成分を緑成分よりも相対的に大きくする補正量)を弱めることが好ましい。
この動作により、画面内の閃光照明がよく当たっている箇所(主要被写体の可能性大)において、緑かぶりの過剰補正に伴うマゼンタかぶりを確実に防止できる。
(4)
By the way, when the change in the luminance ratio is large depending on the presence or absence of flashlight, one of the areas A and B in the screen is a place where the flashlight is well applied. This portion has a high proportion of flash illumination, and the green fog caused by the fluorescent lamp is reduced.
Therefore, in the present invention, it is preferable to decrease the green fog correction amount (correction amount for making the red-blue component relatively larger than the green component) in the color balance adjustment as the luminance ratio change amount C is larger.
This operation can reliably prevent magenta fog due to excessive correction of green fog at a location where the flash illumination is well in the screen (the possibility of the main subject is high).

(5)
ところで、本発明では、撮像素子を2系統備え、一方の副撮像素子で非閃光画像を撮像し、他方の主撮像素子で閃光画像(本画像を兼ねる)を撮像することが好ましい。
このように非閃光画像用の副撮像素子と、閃光画像用の主撮像素子とを個別に設けることができるのは、本発明の輝度比が相対値であり、輝度比に撮像素子の違いが現れにくいからである。
また、電子カメラ(主撮像素子)が高画素化されても、副撮像素子の画素数を低く抑えることで、非閃光画像の画像読み出し時間を短く保つことができる。その結果、本発明の撮像シーケンスにかかる処理時間を短縮することが可能になる。
(5)
By the way, in the present invention, it is preferable that two image pickup devices are provided, a non-flash image is picked up by one sub-image pickup device, and a flash image (also serving as a main image) is picked up by the other main image pickup device.
As described above, the non-flash image sub-image sensor and the flash image main image sensor can be provided separately because the luminance ratio of the present invention is a relative value, and there is a difference between the image sensors in the luminance ratio. It is hard to appear.
Further, even when the number of pixels of the electronic camera (main image sensor) is increased, the image reading time of the non-flash image can be kept short by keeping the number of pixels of the sub image sensor low. As a result, the processing time required for the imaging sequence of the present invention can be shortened.

(6)
また、本発明では、副撮像素子を用いて、閃光装置のプリ発光の前または後に非閃光画像を撮像し、プリ発光中に閃光画像を撮像することが好ましい。この場合、主撮像素子は本画像の撮影に使用する。したがって、電子カメラ(主撮像素子)が高画素化されても、副撮像素子の画素数を低く抑えることで、非閃光画像および閃光画像の画像読み出し時間を短く保つことができる。その結果、本発明の撮像シーケンスにかかる処理時間を更に短縮することが可能になる。
(6)
In the present invention, it is preferable that the sub-imaging device is used to capture a non-flash image before or after pre-emission of the flash device, and to capture a flash image during pre-emission. In this case, the main image sensor is used for photographing the main image. Therefore, even when the number of pixels of the electronic camera (main image sensor) is increased, the image reading time of the non-flash image and the flash image can be kept short by keeping the number of pixels of the sub image sensor low. As a result, it is possible to further reduce the processing time required for the imaging sequence of the present invention.

(7)
なお、本発明のプログラムをコンピュータで実行することにより、コンピュータを、上述した輝度比検出部および色バランス調整部として機能させることができる。その結果、上記の電子カメラと同様の色バランス調整を、コンピュータ上で実現することができる。
(7)
Note that by executing the program of the present invention on a computer, the computer can function as the above-described luminance ratio detection unit and color balance adjustment unit. As a result, the same color balance adjustment as that of the electronic camera can be realized on the computer.

(1)第1実施形態
《第1実施形態の構成説明》
図1は、本実施形態における電子カメラ11の部品配置を説明する図である。
図1において、電子カメラ11には、電子閃光装置12および撮影レンズ13が設けられる。この撮影レンズ13の像空間側には、クイックリターン式のミラー15が設けられる。このミラー15に反射された被写体光束の結像位置には、拡散板16が配置される。ユーザーは、この拡散板16に形成される被写体像を、ファインダー光学系17を介して観察する。なお、この拡散板16からの光束は、ファインダー光学系17の隅に設けられた測光用撮像素子18の撮像面に導かれ、この撮像面に被写体像を再結像する。さらに、ミラー15の後方には、シャッタ19aおよび記録用撮像素子19などが配置される。
(1) First Embodiment << Configuration Description of First Embodiment >>
FIG. 1 is a diagram for explaining a component arrangement of the electronic camera 11 in the present embodiment.
In FIG. 1, the electronic camera 11 is provided with an electronic flash device 12 and a photographing lens 13. A quick return type mirror 15 is provided on the image space side of the photographic lens 13. A diffusion plate 16 is disposed at the imaging position of the subject light beam reflected by the mirror 15. The user observes the subject image formed on the diffusion plate 16 via the finder optical system 17. The light beam from the diffusion plate 16 is guided to the imaging surface of the photometric image sensor 18 provided at the corner of the finder optical system 17 and re-images the subject image on the imaging surface. Further, behind the mirror 15, a shutter 19a, a recording image sensor 19 and the like are arranged.

図2は、この電子カメラ11の画像処理に関するブロック図である。
図2において、測光用撮像素子18の出力は、A/D変換部20を介して、画像メモリ22に入力される。また、記録用撮像素子19の出力は、A/D変換部21を介して、画像メモリ22に入力される。この画像メモリ22は、バス23に接続される。このバス23には、画像処理部24、圧縮記録部25、撮像制御部27、閃光発光制御部28、およびマイクロプロセッサ29などが接続される。
FIG. 2 is a block diagram relating to image processing of the electronic camera 11.
In FIG. 2, the output of the photometric image sensor 18 is input to the image memory 22 via the A / D converter 20. The output of the recording image sensor 19 is input to the image memory 22 via the A / D converter 21. The image memory 22 is connected to the bus 23. Connected to the bus 23 are an image processing unit 24, a compression recording unit 25, an imaging control unit 27, a flash emission control unit 28, a microprocessor 29, and the like.

この内、圧縮記録部25は、着脱自在なメモリカード26に対して画像データを圧縮記録する。また、マイクロプロセッサ29には、レリーズ釦29aなどから操作入力が与えられる。   Among these, the compression recording unit 25 compresses and records image data on a removable memory card 26. The microprocessor 29 is given an operation input from a release button 29a or the like.

《発明との対応関係》
以下、請求項の記載事項と第1実施形態との対応関係について説明する。なお、ここでの対応関係は、参考のために一解釈を例示するものであり、本発明を徒らに限定するものではない。
請求項記載の画像取得部は、撮像制御部27、閃光発光制御部28、測光用撮像素子18および記録用撮像素子19に対応する。
請求項記載の輝度比検出部は、マイクロプロセッサ29の『輝度比Rf、Rnfの変化量Cを求める機能』に対応する。
請求項記載の色バランス調整部は、マイクロプロセッサ29および画像処理部24による『変化量Cを尺度にして本画像の色バランス調整を設定して実行する機能』に対応する。
請求項記載の副撮像素子は、測光用撮像素子18に対応する。
請求項記載の主撮像素子は、記録用撮像素子19に対応する。
<< Correspondence with Invention >>
Hereinafter, the correspondence between the description items of the claims and the first embodiment will be described. Note that the correspondence relationship here illustrates one interpretation for reference, and does not limit the present invention.
The image acquisition unit described in the claims corresponds to the imaging control unit 27, the flash emission control unit 28, the photometric image sensor 18, and the recording image sensor 19.
The luminance ratio detection unit described in the claims corresponds to the “function for obtaining the change amount C of the luminance ratios Rf and Rnf” of the microprocessor 29.
The color balance adjustment unit described in the claims corresponds to “a function for setting and executing color balance adjustment of the main image using the change amount C as a scale” by the microprocessor 29 and the image processing unit 24.
The sub-imaging device described in the claims corresponds to the photometric imaging device 18.
The main image sensor described in the claims corresponds to the image sensor 19 for recording.

《第1実施形態の動作説明》
図3は、第1実施形態の動作を説明する流れ図である。
以下、図3に示すステップ番号に沿って、電子カメラ11の動作を説明する。
<< Description of Operation of First Embodiment >>
FIG. 3 is a flowchart for explaining the operation of the first embodiment.
Hereinafter, the operation of the electronic camera 11 will be described along the step numbers shown in FIG.

[ステップS1] レリーズ操作の開始前、ミラー15は下降状態にある。そのため、撮影レンズ13を通過した被写体光束は、拡散板16、ファインダー光学系17を介して、測光用撮像素子18の撮像面に被写体像を形成する。
この状態で、マイクロプロセッサ29は、撮像制御部27を用いて測光用撮像素子18に駆動信号を与える。測光用撮像素子18からは、閃光無しで撮像された非閃光画像が出力される。この非閃光画像は、A/D変換部20を介して画素単位にデジタル化された後、画像メモリ22に一時蓄積される。
[Step S1] Before starting the release operation, the mirror 15 is in the lowered state. Therefore, the subject luminous flux that has passed through the photographing lens 13 forms a subject image on the imaging surface of the photometric imaging element 18 via the diffusion plate 16 and the finder optical system 17.
In this state, the microprocessor 29 uses the imaging control unit 27 to give a drive signal to the photometric image sensor 18. A non-flash image captured without flashing is output from the photometric image sensor 18. This non-flash image is digitized in units of pixels via the A / D converter 20 and then temporarily stored in the image memory 22.

[ステップS2] マイクロプロセッサ29は、画像メモリ22内にアクセスして、非閃光画像の小領域(例えば画素毎)ごとに輝度成分を求める。
なお、この非閃光画像を構成する各色成分を、輝度成分の構成比率(例えばR:G:B=0.29:0.587:0.114等)に従って加算して、輝度成分を生成することが好ましい。また、非閃光画像中の輝度成分を多く含む色成分(G色成分など)を、そのまま輝度成分とみなしてもよい。
マイクロプロセッサ29は、このように求めた非閃光画像の輝度成分を、画面中央域と画面周辺域とに区分し、それぞれに平均輝度を求める。マイクロプロセッサ29は、これら平均輝度を下式に代入して、輝度比Rnfを求める。
輝度比Rnf=(画面中央域の平均輝度)/(画面周辺域の平均輝度)
なお、画面周辺域の平均輝度がたとえゼロであっても、輝度比Rnfがオーバーフローしないように、上式右辺の分母に微小値を加算することが好ましい。
[Step S2] The microprocessor 29 accesses the image memory 22 and obtains a luminance component for each small region (for example, each pixel) of the non-flash image.
It should be noted that each color component constituting the non-flash image is added according to the composition ratio of luminance components (for example, R: G: B = 0.29: 0.587: 0.114, etc.) to generate a luminance component. Is preferred. Further, a color component (G color component or the like) containing a large amount of luminance components in the non-flash image may be regarded as a luminance component as it is.
The microprocessor 29 divides the luminance component of the non-flash image obtained in this way into a screen central area and a screen peripheral area, and calculates an average luminance for each. The microprocessor 29 substitutes these average luminances into the following equation to obtain the luminance ratio Rnf.
Brightness ratio Rnf = (Average brightness in the screen center area) / (Average brightness in the screen periphery area)
Note that it is preferable to add a minute value to the denominator on the right side of the above equation so that the luminance ratio Rnf does not overflow even if the average luminance in the screen peripheral area is zero.

[ステップS3] マイクロプロセッサ29は、レリーズ釦29aが全押しされたか否かを判断する。
もしも、レリーズ釦29aが全押しされた場合、マイクロプロセッサ29はステップS4に動作を移行する。
一方、レリーズ釦29aが全押し以外(半押しまたは押されていない)の場合、マイクロプロセッサ29は、ステップS1に動作を戻す。
[Step S3] The microprocessor 29 determines whether or not the release button 29a is fully pressed.
If the release button 29a is fully pressed, the microprocessor 29 proceeds to step S4.
On the other hand, if the release button 29a is not fully pressed (half pressed or not pressed), the microprocessor 29 returns the operation to step S1.

[ステップS4] マイクロプロセッサ29は、プリ発光を次のように実施する。まず、マイクロプロセッサ29は、ミラー15を跳ね上げて、シャッタ19aのシャッタ幕に被写体像を投影する。この状態で、マイクロプロセッサ29は、閃光発光制御部28を用いて、電子閃光装置12に微小なプリ発光を実施させる。マイクロプロセッサ29は、シャッタ19aを見込む位置に設けられた測光素子(不図示)を用いて、プリ発光時のシャッタ幕の明るさを測定する。マイクロプロセッサ29は、このプリ発光時のシャッタ幕の明るさに応じて、本発光の目標光量を決定する。この本発光の目標光量は、電子閃光装置12側に情報伝達される。   [Step S4] The microprocessor 29 performs pre-emission as follows. First, the microprocessor 29 raises the mirror 15 and projects a subject image on the shutter curtain of the shutter 19a. In this state, the microprocessor 29 causes the electronic flash device 12 to perform minute pre-emission using the flash emission control unit 28. The microprocessor 29 measures the brightness of the shutter curtain during pre-emission using a photometric element (not shown) provided at a position where the shutter 19a is viewed. The microprocessor 29 determines the target light amount for the main light emission according to the brightness of the shutter curtain during the pre-light emission. Information on the target light amount of the main light emission is transmitted to the electronic flash device 12 side.

[ステップS5] 続いて、マイクロプロセッサ29は、シャッタ19aの先幕を開き、記録用撮像素子19の撮像面に被写体像を投影開始する。
単発式の本発光を実施する場合、シャッタ19aが全開した時点で、マイクロプロセッサ29は、電子閃光装置12に本発光を開始させる。電子閃光装置12は、この本発光の発光量をモニタし、予め情報伝達された目標光量に到達した時点で、本発光を停止させる。
一方、露出設定された電荷蓄積時間が経過すると、マイクロプロセッサ29は、シャッタ19aの後幕を閉じる。このようにしてシャッタ19aが完全に閉じると、マイクロプロセッサ29は、ミラー15を下に降ろす。なお、ここでの電荷蓄積時間は、非閃光画像の輝度分布(ヒストグラム)などに基づいて、柔軟に変更することが好ましい。
[Step S5] Subsequently, the microprocessor 29 opens the front curtain of the shutter 19a, and starts projecting a subject image on the imaging surface of the recording image sensor 19.
When single-shot main light emission is performed, the microprocessor 29 causes the electronic flash device 12 to start main light emission when the shutter 19a is fully opened. The electronic flash device 12 monitors the light emission amount of the main light emission, and stops the main light emission when reaching the target light amount for which information has been transmitted in advance.
On the other hand, when the charge accumulation time set for exposure has elapsed, the microprocessor 29 closes the rear curtain of the shutter 19a. When the shutter 19a is completely closed in this way, the microprocessor 29 lowers the mirror 15 downward. Note that the charge accumulation time here is preferably changed flexibly based on the luminance distribution (histogram) of the non-flash image.

[ステップS6] マイクロプロセッサ29は、撮像制御部27を用いて記録用撮像素子19に駆動信号を与える。記録用撮像素子19からは、閃光有りで撮像された閃光画像(本画像を兼ねる)が出力される。この閃光画像は、A/D変換部21を介して画素単位にデジタル化された後、画像メモリ22に一時蓄積される。   [Step S <b> 6] The microprocessor 29 supplies a drive signal to the recording image sensor 19 using the imaging controller 27. The recording image sensor 19 outputs a flash image (also serving as a main image) captured with flash. The flash image is digitized in units of pixels via the A / D converter 21 and then temporarily stored in the image memory 22.

[ステップS7] マイクロプロセッサ29は、画像メモリ22内にアクセスして、閃光画像から低彩度領域(彩度が所定値以下の領域)を読み出す。マイクロプロセッサ29は、この低彩度領域のRGB色成分について小領域(例えば画素毎)ごとに色度(R/G,B/G)を求め、これら色度の分布中心を求める。続いて、マイクロプロセッサ29は、この分布中心と、色度座標上の黒体軌跡との乖離を判定する。
さらに、マイクロプロセッサ29は、この分布中心を黒体軌跡に写像し、黒体軌跡上の相関色温度を検出する。
[Step S7] The microprocessor 29 accesses the image memory 22 and reads a low saturation area (area where the saturation is a predetermined value or less) from the flash image. The microprocessor 29 obtains the chromaticity (R / G, B / G) for each small region (for example, each pixel) for the RGB color components in the low saturation region, and obtains the distribution center of these chromaticities. Subsequently, the microprocessor 29 determines the difference between the distribution center and the black body locus on the chromaticity coordinates.
Further, the microprocessor 29 maps the distribution center onto a black body locus and detects a correlated color temperature on the black body locus.

[ステップS8] マイクロプロセッサ29は、上述した緑方向への乖離を短縮するための色比率(RゲインおよびBゲイン)を求めて、緑かぶりの補正係数とする。   [Step S8] The microprocessor 29 calculates a color ratio (R gain and B gain) for shortening the above-described deviation in the green direction, and sets it as a green fog correction coefficient.

[ステップS9] マイクロプロセッサ29は、画像メモリ22内にアクセスして、閃光画像を読み出し、非閃光画像との比較に適する処理画像に加工する。
この処理画像の作成に際しては、下記のような撮像素子の差を抑制する画像処理を施すことが好ましい。
[Step S9] The microprocessor 29 accesses the image memory 22, reads the flash image, and processes it into a processed image suitable for comparison with the non-flash image.
In creating the processed image, it is preferable to perform image processing that suppresses the difference between the imaging elements as described below.

(1)非閃光画像の撮像画角に合わせて、閃光画像から処理画像を切り出す処理。
(2)測光用撮像素子18の小領域(ステップS4参照)の各位置に合わせて、閃光画像を画素ブロックに分割し、画素ブロック単位に輝度成分(G色などの疑似輝度成分も含む)を求める処理。
(3)非閃光画像の最大階調値、平均階調値、最頻度階調値、および最小階調値などに合わせて、閃光画像の最大階調値、平均階調値、最頻度階調値、および最小階調値などを正規化して合わせる処理。
(4)非閃光画像の階調特性に合わせて、閃光画像の階調ステップ数や階調カーブを変換する処理。
(1) Processing for cutting out a processed image from a flash image in accordance with the imaging field angle of the non-flash image.
(2) The flash image is divided into pixel blocks in accordance with the positions of the small areas (see step S4) of the photometric image sensor 18, and luminance components (including pseudo luminance components such as G color) are provided for each pixel block. The requested process.
(3) The maximum gradation value, the average gradation value, and the most frequent gradation of the flash image according to the maximum gradation value, the average gradation value, the most frequent gradation value, and the minimum gradation value of the non-flash image. Processing to normalize and match values and minimum gradation values.
(4) Processing for converting the number of gradation steps and the gradation curve of the flash image in accordance with the gradation characteristics of the non-flash image.

[ステップS10] マイクロプロセッサ29は、閃光画像から作成した処理画像を、画面中央域と画面周辺域とに区分し、それぞれに平均輝度を求める。マイクロプロセッサ29は、これら平均輝度を下式に代入して、輝度比Rfを求める。
輝度比Rf=(画面中央域の平均輝度)/(画面周辺域の平均輝度)
なお、画面周辺域の平均輝度がたとえゼロであっても、輝度比Rfがオーバーフローしないように、上式右辺の分母に微小値を加算することが好ましい。
[Step S10] The microprocessor 29 divides the processed image created from the flash image into a screen central area and a screen peripheral area, and calculates an average luminance for each. The microprocessor 29 substitutes these average luminances into the following equation to obtain the luminance ratio Rf.
Brightness ratio Rf = (Average luminance in the screen center area) / (Average brightness in the screen periphery area)
Note that it is preferable to add a minute value to the denominator on the right side of the above equation so that the luminance ratio Rf does not overflow even if the average luminance in the peripheral area of the screen is zero.

[ステップS11] マイクロプロセッサ29は、閃光発光に伴う輝度比Rnf、Rfの変化量Cを求める。
変化量C=|輝度比Rf−輝度比Rnf|
[Step S11] The microprocessor 29 obtains a change amount C of the luminance ratios Rnf and Rf accompanying the flash emission.
Change amount C = | luminance ratio Rf−luminance ratio Rnf |

[ステップS12] この変化量Cの大小から、次のような判断および対処が可能になる。   [Step S12] From the magnitude of the change amount C, the following determination and countermeasure can be performed.

(変化量Cが大きいケース)
変化量Cが大きい場合、画面中央と画面周辺で閃光発光の届き方にムラが生じていると判断できる。例えば、閃光発光に強く照らされる手前被写体と、閃光発光が届きにくい遠景が一画面内に混在するなどの状況である。
そこで、マイクロプロセッサ29は、変化量Cが大きいほど、閃光色温度の色偏りの補正を強めたホワイトバランス調整値を設定する(図4参照)。
この設定により、閃光発光がよく届く近場の被写体(主要被写体である可能性大)の色再現性を高めることが可能になる。
(Case where amount of change C is large)
When the amount of change C is large, it can be determined that there is unevenness in the way the flash emission reaches in the center and the periphery of the screen. For example, there is a situation in which a near subject that is strongly illuminated by flash emission and a distant view where flash emission is difficult to reach are mixed in one screen.
Therefore, the microprocessor 29 sets the white balance adjustment value in which the correction of the color deviation of the flash color temperature is increased as the change amount C is larger (see FIG. 4).
With this setting, it is possible to improve the color reproducibility of a near-field subject (high possibility of being a main subject) to which flash emission is well transmitted.

(変化量Cが小さいケース)
一方、変化量Cが小さい場合、画面中央と画面周辺で閃光照明が一様である、あるいは一様に届かないかのいずれかである。これらの被写体配置では、照明光のムラは少なく、照明の均一度が高いと判断できる。
そこで、マイクロプロセッサ29は、変化量Cが小さいほど、相関色温度の色偏りの補正を強めたホワイトバランス調整値を設定する(図4参照)。
この設定により、画面全体の均一照明に合わせたホワイトバランス調整値が設定され、画面全体の色再現性を高めることが可能になる。
(Case where change C is small)
On the other hand, when the change amount C is small, the flash illumination is either uniform or does not reach uniformly at the screen center and the screen periphery. With these subject arrangements, it can be determined that there is little unevenness in the illumination light and the illumination uniformity is high.
Therefore, the microprocessor 29 sets a white balance adjustment value in which the correction of the color deviation of the correlated color temperature is strengthened as the change amount C is small (see FIG. 4).
With this setting, a white balance adjustment value that matches the uniform illumination of the entire screen is set, and the color reproducibility of the entire screen can be improved.

[ステップS13] 上記のように、変化量Cが大きい場合、近場の被写体に閃光発光がよく届いていると判断できる。このような近場の被写体については、照明光全体に占める閃光の割合が高く、蛍光灯などの緑かぶりは殆ど発生しない。
そこで、マイクロプロセッサ29は、変化量Cが大きいほど、緑かぶりの補正量を小さくするように、緑かぶりの補正係数を調整する(図5参照)。
この設定により、閃光発光がよく届く近場の被写体(主要被写体である可能性大)に、逆方向のマゼンダかぶりが生じるといった不具合を防止することができる。
[Step S13] As described above, when the amount of change C is large, it can be determined that the flash emission is well delivered to the near subject. For such a near-field subject, the proportion of flash light in the entire illumination light is high, and green fog such as a fluorescent lamp hardly occurs.
Therefore, the microprocessor 29 adjusts the green fog correction coefficient so that the greater the change amount C is, the smaller the green fog correction amount is (see FIG. 5).
With this setting, it is possible to prevent a problem that a magenta fogging in the reverse direction occurs in a near-field subject (which is likely to be a main subject) to which flash emission is well transmitted.

[ステップS14] マイクロプロセッサ29は、ステップS12で設定した『ホワイトバランス調整値』、およびステップS13で調整した『緑かぶりの補正係数』を読み出す。マイクロプロセッサ29は、読み出した値に基づいて、ステップS6で撮影した本画像の色成分ゲインを調整し、色バランス調整済みの本画像を生成する。   [Step S14] The microprocessor 29 reads out the “white balance adjustment value” set in step S12 and the “green fog correction coefficient” adjusted in step S13. The microprocessor 29 adjusts the color component gain of the main image captured in step S6 based on the read value, and generates a main image that has been color balance adjusted.

《第1実施形態の効果など》
以上説明したように、第1実施形態では、非閃光画像の画面内の輝度比Rnfと、閃光画像の画面内の輝度比Rfとの変化量Cを求める。この変化量Cが大きければ、画面内に閃光照明を強く受けた近場の被写体が存在すると推定できる。そこで、第1実施形態では、輝度比の変化量Cが大きいほど、閃光色温度の寄与率を高めたホワイトバランス調整値を使用する。その結果、閃光の色温度に染まった近場の被写体(主要被写体の可能性大)の色再現性を高めることができる。
<< Effects of First Embodiment >>
As described above, in the first embodiment, the change amount C between the luminance ratio Rnf in the screen of the non-flash image and the luminance ratio Rf in the screen of the flash image is obtained. If the amount of change C is large, it can be estimated that there is a near-field subject that has received strong flash illumination in the screen. Therefore, in the first embodiment, the white balance adjustment value in which the contribution rate of the flash color temperature is increased as the luminance ratio change amount C is larger. As a result, it is possible to improve the color reproducibility of a near-field subject (large possibility of a main subject) that is stained by the color temperature of the flashlight.

さらに、これらの輝度比は、画面内の相対的な比率のため、両画像(非閃光画像および閃光画像)の露出条件の違いは現れにくい。したがって、両画像の露出条件の違いによって輝度の平均値がずれても、変化量Cを正確に求めることができる。そのため、非閃光画像の電荷蓄積時間を適度に短縮することが可能であり、上述した一連の撮像シーケンスを時間短縮することができる。   Furthermore, since these luminance ratios are relative ratios within the screen, differences in the exposure conditions of both images (non-flash image and flash image) are unlikely to appear. Therefore, even if the average value of luminance shifts due to the difference in the exposure conditions of both images, the change amount C can be accurately obtained. Therefore, the charge accumulation time of the non-flash image can be appropriately shortened, and the above-described series of imaging sequences can be shortened.

さらに、第1実施形態では、変化量Cが大きいほど、緑かぶりの補正量を下げる。その結果、画面内の閃光照明がよく当たっている箇所に対して、緑かぶりの過剰補正を防止し、過剰補正に伴うマゼンタかぶりを適切に防止することができる。
次に別の実施形態について説明する。
Furthermore, in the first embodiment, the green fog correction amount is lowered as the change amount C is larger. As a result, it is possible to prevent over-correction of the green fog and appropriately prevent the magenta fog due to the over-correction for the portion of the screen where the flash illumination is well applied.
Next, another embodiment will be described.

(2)第2実施形態
第2実施形態における電子カメラの構成は、第1実施形態(図1,図2)と同一のため、ここでの説明を省略する。
図6は、第2実施形態の動作を説明する流れ図である。
以下、図6に示すステップ番号に沿って、電子カメラ11の動作を説明する。
(2) Second Embodiment Since the configuration of the electronic camera in the second embodiment is the same as that of the first embodiment (FIGS. 1 and 2), description thereof is omitted here.
FIG. 6 is a flowchart for explaining the operation of the second embodiment.
Hereinafter, the operation of the electronic camera 11 will be described along the step numbers shown in FIG.

[ステップS31〜S32] 第1実施形態のステップS1〜S2と同一。   [Steps S31 to S32] Same as steps S1 to S2 of the first embodiment.

[ステップS33] マイクロプロセッサ29は、レリーズ釦29aが全押しされたか否かを判断する。
もしも、レリーズ釦29aが全押しされた場合、マイクロプロセッサ29はステップS34に動作を移行する。
一方、レリーズ釦29aが全押し以外(半押しまたは押されていない)の場合、マイクロプロセッサ29は、ステップS31に動作を戻す。
[Step S33] The microprocessor 29 determines whether or not the release button 29a is fully pressed.
If the release button 29a is fully pressed, the microprocessor 29 proceeds to step S34.
On the other hand, if the release button 29a is not fully pressed (half pressed or not pressed), the microprocessor 29 returns the operation to step S31.

[ステップS34] マイクロプロセッサ29は、電子閃光装置12にプリ発光を実施させ、測光用撮像素子18から閃光画像を得る。   [Step S34] The microprocessor 29 causes the electronic flash device 12 to perform pre-emission, and obtains a flash image from the photometric image sensor 18.

[ステップS35] マイクロプロセッサ29は、プリ発光の分割測光結果(つまり閃光画像)に基づいて、本発光の目標発光量を決定する。   [Step S35] The microprocessor 29 determines the target light emission amount of the main light emission based on the divided light metering result of the pre-light emission (that is, the flash image).

[ステップS36] マイクロプロセッサ29は、閃光画像を、画面中央域と画面周辺域とに区分し、それぞれに平均輝度を求める。マイクロプロセッサ29は、この『画面中央域の平均輝度』と『画面周辺域の平均輝度』との比を求め、輝度比Rfとする。   [Step S36] The microprocessor 29 divides the flash image into a screen central area and a screen peripheral area, and obtains an average luminance for each. The microprocessor 29 obtains a ratio between the “average brightness in the screen center area” and the “average brightness in the screen periphery area” and sets it as the brightness ratio Rf.

[ステップS37] 続いて、マイクロプロセッサ29は、ミラー15を跳ね上げ、シャッタ19aの先幕を開いて、記録用撮像素子19の撮像面に被写体像を投影開始する。
単発式の本発光を実施する場合、シャッタ19aが全開した時点で、マイクロプロセッサ29は、電子閃光装置12に本発光を開始させる。電子閃光装置12は、この本発光の発光量をモニタし、目標光量に到達した時点で、本発光を停止させる。
一方、設定された電荷蓄積時間が経過すると、マイクロプロセッサ29は、シャッタ19aの後幕を閉じる。このようにしてシャッタ19aが完全に閉じると、マイクロプロセッサ29は、ミラー15を下に降ろす。
[Step S37] Subsequently, the microprocessor 29 flips up the mirror 15, opens the front curtain of the shutter 19a, and starts projecting a subject image on the imaging surface of the recording imaging device 19.
When single-shot main light emission is performed, the microprocessor 29 causes the electronic flash device 12 to start main light emission when the shutter 19a is fully opened. The electronic flash device 12 monitors the light emission amount of the main light emission, and stops the main light emission when the target light amount is reached.
On the other hand, when the set charge accumulation time has elapsed, the microprocessor 29 closes the rear curtain of the shutter 19a. When the shutter 19a is completely closed in this way, the microprocessor 29 lowers the mirror 15 downward.

[ステップS38] マイクロプロセッサ29は、撮像制御部27を用いて記録用撮像素子19に駆動信号を与える。記録用撮像素子19からは、本画像が出力される。この本画像は、A/D変換部21を介して画素単位にデジタル化された後、画像メモリ22に一時蓄積される。   [Step S <b> 38] The microprocessor 29 uses the imaging control unit 27 to provide a drive signal to the recording image sensor 19. A main image is output from the recording image sensor 19. The main image is digitized in units of pixels via the A / D converter 21 and then temporarily stored in the image memory 22.

[ステップS39] マイクロプロセッサ29は、画像メモリ22内にアクセスして、本画像から低彩度領域(彩度が所定値以下の領域)を読み出す。マイクロプロセッサ29は、この低彩度領域のRGB色成分について小領域(例えば画素毎)ごとに色度(R/G,B/G)を求め、これら色度の分布中心を求める。続いて、マイクロプロセッサ29は、この分布中心と、色度座標上の黒体軌跡との乖離を判定する。
さらに、マイクロプロセッサ29は、この分布中心を黒体軌跡に写像し、黒体軌跡上の相関色温度を検出する。
[Step S39] The microprocessor 29 accesses the image memory 22 and reads a low saturation area (area where the saturation is equal to or less than a predetermined value) from the main image. The microprocessor 29 obtains the chromaticity (R / G, B / G) for each small region (for example, each pixel) for the RGB color components in the low saturation region, and obtains the distribution center of these chromaticities. Subsequently, the microprocessor 29 determines the difference between the distribution center and the black body locus on the chromaticity coordinates.
Further, the microprocessor 29 maps the distribution center onto a black body locus and detects a correlated color temperature on the black body locus.

[ステップS40] マイクロプロセッサ29は、黒体軌跡から緑方向への乖離を短縮するための色比率(RゲインおよびBゲイン)を求めて、緑かぶりの補正係数とする。   [Step S40] The microprocessor 29 obtains the color ratio (R gain and B gain) for shortening the deviation from the black body locus in the green direction, and sets it as a green fog correction coefficient.

[ステップS41] マイクロプロセッサ29は、プリ発光に伴う輝度比Rnf、Rfの変化量Cを求める。
変化量C=|輝度比Rf−輝度比Rnf|
[Step S41] The microprocessor 29 obtains the change amount C of the luminance ratios Rnf and Rf accompanying the pre-emission.
Change amount C = | luminance ratio Rf−luminance ratio Rnf |

[ステップS42〜S43] 第1実施形態のステップS12〜S14と同一。   [Steps S42 to S43] Same as steps S12 to S14 of the first embodiment.

《第2実施形態の効果など》
以上説明したように、第2実施形態においても、第1実施形態と同様の効果を得ることができる。
<< Effects of Second Embodiment >>
As described above, also in the second embodiment, the same effect as in the first embodiment can be obtained.

さらに、第2実施形態では、測光用撮像素子18を用いて、プリ発光の前後で輝度比を比較する。この場合、非閃光画像および閃光画像のどちらも画素数が少なくなるため、輝度比や変化量Cの算出処理にかかる処理コストが小さくなる。その結果、一連の撮像シーケンスを一段と軽快にすることができる。   Furthermore, in the second embodiment, the photometric image sensor 18 is used to compare the luminance ratio before and after pre-emission. In this case, since both the non-flash image and the flash image have a small number of pixels, the processing cost for calculating the luminance ratio and the change amount C is reduced. As a result, a series of imaging sequences can be further simplified.

《実施形態の補足事項》
なお、上述した実施形態では、一眼式の電子カメラ11について説明した。しかしながら、本発明はこれに限定されるものではない。例えば、コンパクトタイプの電子カメラに本発明を適用することもできる。この場合、非閃光画像を記録用撮像素子で撮像してもよい。このような構成では、測光用撮像素子18が不要となり、撮像部の構成をより単純化することができる。
<< Additional items of embodiment >>
In the above-described embodiment, the single-lens electronic camera 11 has been described. However, the present invention is not limited to this. For example, the present invention can be applied to a compact type electronic camera. In this case, a non-flash image may be captured by a recording image sensor. In such a configuration, the photometric image sensor 18 is not required, and the configuration of the imaging unit can be further simplified.

また、上述した実施形態では、画像全体に対して、一つの色バランス調整値を決定している。しかしながら、本発明はこれに限定されるものではない。例えば、画面を複数の領域に分割し、領域ごとに本発明の色バランス調整値を決定してもよい。この場合、領域ごとに照明状態の均一性判断を行い、その均一性判断に従って領域ごとに適切な色バランス調整値を決定できる。   In the above-described embodiment, one color balance adjustment value is determined for the entire image. However, the present invention is not limited to this. For example, the screen may be divided into a plurality of areas, and the color balance adjustment value of the present invention may be determined for each area. In this case, it is possible to determine the uniformity of the illumination state for each region, and determine an appropriate color balance adjustment value for each region according to the uniformity determination.

なお、上述した実施形態では、内蔵タイプの電子閃光装置12を使用するケースについて説明した。しかしながら、本発明はこれに限定されるものではない。外付けタイプの電子閃光装置を使用するケースに本発明を適用してもかまわない。   In the above-described embodiment, the case where the built-in type electronic flash device 12 is used has been described. However, the present invention is not limited to this. The present invention may be applied to a case in which an external type electronic flash device is used.

さらに、上述した実施形態では、電子カメラ内で色バランス調整を実施するケースについて説明した。しかしながら、これに限定されるものではない。例えば、図3や図6に示した処理の一部または全部を実施するプログラムを作成してもよい。このプログラムを外部のコンピュータ上で実行することにより、上述した画像処理をコンピュータ上で実施することが可能になる。   Further, in the above-described embodiment, the case where the color balance adjustment is performed in the electronic camera has been described. However, the present invention is not limited to this. For example, a program for executing part or all of the processing shown in FIGS. 3 and 6 may be created. By executing this program on an external computer, the above-described image processing can be performed on the computer.

また、上述した実施形態では、輝度比Rnf,Rfの差分の大きさを求めて、変化量Cとしている。しかしながら、本発明はこれに限定されるものではない。例えば、輝度比Rnf,Rfの比(Rf/Rnfなど)を求めて、変化量Cとしてもよい。   In the above-described embodiment, the magnitude of the difference between the luminance ratios Rnf and Rf is obtained and used as the change amount C. However, the present invention is not limited to this. For example, the change amount C may be obtained by obtaining a ratio (Rf / Rnf or the like) between the luminance ratios Rnf and Rf.

なお、上述した実施形態では、画面中央域と画面周辺域との輝度比を求めている。しかしながら、本発明はこれに限定されるものではない。一般に、画面内の異なる領域について輝度比を求めればよい。例えば、選択中のAFエリアの近傍域と、その他領域との輝度比を求めてもよい。また例えば、画面中央域と画面全域との輝度比を求めてもよい。   In the above-described embodiment, the luminance ratio between the screen central area and the screen peripheral area is obtained. However, the present invention is not limited to this. In general, the luminance ratio may be obtained for different areas in the screen. For example, the luminance ratio between the vicinity of the selected AF area and the other area may be obtained. For example, the luminance ratio between the screen center area and the entire screen area may be obtained.

以上説明したように、本発明は、電子カメラや画像処理プログラムなどに利用可能な技術である。   As described above, the present invention is a technique that can be used for an electronic camera, an image processing program, and the like.

本実施形態における電子カメラ11の部品配置を説明する図である。It is a figure explaining component arrangement | positioning of the electronic camera 11 in this embodiment. この電子カメラ11の画像処理に関するブロック図である。2 is a block diagram relating to image processing of the electronic camera 11. FIG. 第1実施形態の動作を説明する流れ図である。It is a flowchart explaining operation | movement of 1st Embodiment. 変化量Cと色バランス調整値との関係を示す図である。It is a figure which shows the relationship between the variation | change_quantity C and a color balance adjustment value. 変化量Cと緑かぶり補正量との関係を示す図である。It is a figure which shows the relationship between the variation | change_quantity C and the green fog correction amount. 第2実施形態の動作を説明する流れ図である。It is a flowchart explaining operation | movement of 2nd Embodiment.

符号の説明Explanation of symbols

11 電子カメラ
12 電子閃光装置
13 撮影レンズ
15 ミラー
16 拡散板
17 ファインダー光学系
18 測光用撮像素子
19 記録用撮像素子
19a シャッタ
20 A/D変換部
21 A/D変換部
22 画像メモリ
23 バス
24 画像処理部
25 圧縮記録部
26 メモリカード
27 撮像制御部
28 閃光発光制御部
29 マイクロプロセッサ
29a レリーズ釦
DESCRIPTION OF SYMBOLS 11 Electronic camera 12 Electronic flash device 13 Shooting lens 15 Mirror 16 Diffuser 17 Finder optical system 18 Photometric image sensor 19 Recording image sensor 19a Shutter 20 A / D converter 21 A / D converter 22 Image memory 23 Bus 24 Image Processing unit 25 Compression recording unit 26 Memory card 27 Imaging control unit 28 Flash emission control unit 29 Microprocessor 29a Release button

Claims (7)

閃光装置を制御して、閃光無しで撮像された非閃光画像、および閃光有りで撮像された閃光画像を取得する画像取得部と、
前記非閃光画像について画面内の異なる領域A,B間における輝度の比を求めて輝度比Rnfとし、前記閃光画像について画面内の前記領域A,B間における輝度の比を求めて輝度比Rfとし、前記閃光の有無に伴う前記輝度比Rnf,Rfの変化量Cを求める輝度比検出部と、
前記変化量Cが大きいほど、前記閃光の色温度を重視した色バランス調整を設定し、閃光撮影された本画像に前記色バランス調整を施す色バランス調整部と
を備えたことを特徴とする電子カメラ。
An image acquisition unit that controls the flash device to acquire a non-flash image captured without flash and a flash image captured with flash;
For the non-flash image, a luminance ratio between different regions A and B in the screen is obtained as a luminance ratio Rnf, and for the flash image, a luminance ratio between the regions A and B in the screen is obtained as a luminance ratio Rf. A luminance ratio detection unit for obtaining a change amount C of the luminance ratios Rnf and Rf with or without the flash;
A color balance adjustment unit that sets color balance adjustment with an emphasis on the color temperature of the flash as the change amount C increases, and performs the color balance adjustment on the flash-photographed main image. camera.
請求項1に記載の電子カメラにおいて、
前記輝度比検出部は、
前記非閃光画像について、前記画面中央域の輝度と、前記画面全域または前記画面周辺域の輝度との輝度比Rnfを求め、
前記閃光画像について、前記画面中央域の輝度と、前記画面全域または前記画面周辺域の輝度との輝度比Rfを求める
ことを特徴とする電子カメラ。
The electronic camera according to claim 1,
The luminance ratio detector is
For the non-flash image, a luminance ratio Rnf between the luminance of the screen central area and the luminance of the entire screen area or the peripheral area of the screen is obtained,
An electronic camera characterized in that, for the flash image, a luminance ratio Rf between the luminance in the central area of the screen and the luminance in the entire area of the screen or the peripheral area of the screen is obtained.
請求項1または請求項2に記載の電子カメラにおいて、
前記色バランス調整部は、
前記変化量Cが小さいほど、前記本画像または前記閃光画像の色温度を重視した色バランス調整を設定し、前記本画像に前記色バランス調整を施す
ことを特徴とする電子カメラ。
The electronic camera according to claim 1 or 2,
The color balance adjustment unit
An electronic camera characterized in that, as the change amount C is smaller, color balance adjustment is performed with emphasis on the color temperature of the main image or the flash image, and the color balance adjustment is performed on the main image.
請求項1ないし請求項3のいずれか1項に記載の電子カメラにおいて、
前記色バランス調整部は、
前記変化量Cが大きいほど、前記色バランス調整における緑かぶりの補正量(赤青成分を緑成分よりも相対的に大きくする補正量)を弱める
ことを特徴とする電子カメラ。
The electronic camera according to any one of claims 1 to 3,
The color balance adjustment unit
The electronic camera characterized in that as the change amount C is larger, a green fog correction amount (a correction amount that makes the red-blue component relatively larger than the green component) in the color balance adjustment is weakened.
請求項1ないし請求項4のいずれか1項に記載の電子カメラにおいて、
前記画像取得部は、
前記閃光装置を閃光発光させない状態で、前記非閃光画像を撮像する副撮像素子と、
前記閃光装置を閃光発光させた状態で、前記本画像を兼ねた前記閃光画像を撮像する主撮像素子とを有する
ことを特徴とする電子カメラ。
The electronic camera according to any one of claims 1 to 4,
The image acquisition unit
A sub-imaging device that captures the non-flash image in a state in which the flash device is not flashed;
An electronic camera comprising: a main image pickup device that picks up the flash image that also serves as the main image in a state where the flash device is flashed.
請求項1ないし請求項4のいずれか1項に記載の電子カメラにおいて、
前記画像取得部は、
前記閃光装置のプリ発光の前または後に前記非閃光画像を撮像し、前記プリ発光中に前記閃光画像を撮像する副撮像素子と、
前記閃光装置を本発光させた状態で前記本画像を撮像する主撮像素子とを有する
ことを特徴とする電子カメラ。
The electronic camera according to any one of claims 1 to 4,
The image acquisition unit
A sub-imaging device that captures the non-flash image before or after the pre-flash of the flash device, and captures the flash image during the pre-flash;
An electronic camera, comprising: a main image pickup device that picks up the main image in a state where the flash device performs main light emission.
コンピュータを、請求項1ないし請求項6のいずれか1項に記載の前記輝度比検出部、および前記色バランス調整部として機能させるためのプログラム。   A program for causing a computer to function as the luminance ratio detection unit and the color balance adjustment unit according to any one of claims 1 to 6.
JP2004236348A 2003-12-08 2004-08-16 Electronic camera having color balance adjustment function and program Expired - Fee Related JP4412109B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2004236348A JP4412109B2 (en) 2004-08-16 2004-08-16 Electronic camera having color balance adjustment function and program
US11/118,382 US7423674B2 (en) 2003-12-08 2005-05-02 Electronic camera having color adjustment function and program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004236348A JP4412109B2 (en) 2004-08-16 2004-08-16 Electronic camera having color balance adjustment function and program

Publications (2)

Publication Number Publication Date
JP2006054775A JP2006054775A (en) 2006-02-23
JP4412109B2 true JP4412109B2 (en) 2010-02-10

Family

ID=36031939

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004236348A Expired - Fee Related JP4412109B2 (en) 2003-12-08 2004-08-16 Electronic camera having color balance adjustment function and program

Country Status (1)

Country Link
JP (1) JP4412109B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8018525B2 (en) 2007-12-21 2011-09-13 Nokia Corporation Camera flash module and method for controlling same
JP5532621B2 (en) * 2009-02-17 2014-06-25 株式会社ニコン Electronic camera and image processing program
KR101072945B1 (en) 2009-11-17 2011-10-17 한국과학기술원 Apparatus for balancing flashed image color using depth estimation and method therefor
JP4935925B1 (en) * 2010-11-04 2012-05-23 カシオ計算機株式会社 Imaging apparatus, white balance adjustment method, and white balance adjustment program
KR101317552B1 (en) * 2010-11-04 2013-10-16 가시오게산키 가부시키가이샤 Image capturing apparatus, method and storage medium capable of adjusting white balance
CN103250418B (en) * 2010-11-30 2014-10-15 富士胶片株式会社 Image processing device, imaging device, image processing method, and white balance adjustment method
JP6260213B2 (en) * 2013-11-12 2018-01-17 リコーイメージング株式会社 Imaging apparatus and imaging method

Also Published As

Publication number Publication date
JP2006054775A (en) 2006-02-23

Similar Documents

Publication Publication Date Title
US7423674B2 (en) Electronic camera having color adjustment function and program therefor
US8018525B2 (en) Camera flash module and method for controlling same
JP5610762B2 (en) Imaging apparatus and control method
JP4021716B2 (en) Camera with strobe adjustment function
JPH08340542A (en) Electronic still camera
US11838648B2 (en) Image processing device, imaging apparatus, image processing method, and program for determining a condition for high dynamic range processing
US7365778B2 (en) Electronic camera and white balance correction circuit
JP2011039449A (en) Imaging apparatus and control method thereof
JP2003234955A (en) Image processing device, image processing program, and image processing method
JP4412109B2 (en) Electronic camera having color balance adjustment function and program
JP2015034850A (en) Photographing device and photographing method
KR100978675B1 (en) How to adjust the white balance when shooting with the flash
JP2009063674A (en) Imaging apparatus and flash control method
JP2002369074A (en) Exposure controller for optical equipment and its program and its method
JP4461892B2 (en) Electronic camera having color cast adjustment function by special light source, and program
JP4385749B2 (en) Electronic camera having white balance adjustment function and program
JP2016005105A (en) Imaging apparatus
JP2002237995A (en) Electronic camera
JP2002268116A (en) Automatic exposure controller and external storage medium stored with program thereof
JP4539254B2 (en) Electronic camera and image processing program
JP2003259231A (en) Automatic exposure controller and program thereof
JP2000184381A (en) Digital still camera
JP2006319901A (en) Electronic camera and image processing program
JP4311285B2 (en) Electronic camera and image processing program
JP2006243371A (en) Electronic flash apparatus, its control method and digital still camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070809

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091015

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091109

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

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4412109

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20151127

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20151127

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees