JP5149055B2 - Imaging device - Google Patents
Imaging device Download PDFInfo
- Publication number
- JP5149055B2 JP5149055B2 JP2008095220A JP2008095220A JP5149055B2 JP 5149055 B2 JP5149055 B2 JP 5149055B2 JP 2008095220 A JP2008095220 A JP 2008095220A JP 2008095220 A JP2008095220 A JP 2008095220A JP 5149055 B2 JP5149055 B2 JP 5149055B2
- Authority
- JP
- Japan
- Prior art keywords
- correction
- exposure value
- exposure
- adjustment
- image
- 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
Links
- 238000003384 imaging method Methods 0.000 title claims description 11
- 238000012937 correction Methods 0.000 claims description 150
- 238000003702 image correction Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 description 18
- 238000011156 evaluation Methods 0.000 description 10
- 238000005286 illumination Methods 0.000 description 7
- 238000000034 method Methods 0.000 description 7
- 230000003044 adaptive effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000000875 corresponding effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000005375 photometry Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000010835 comparative analysis Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000004800 variational method Methods 0.000 description 1
Images
Landscapes
- Image Input (AREA)
- Image Processing (AREA)
- Facsimile Scanning Arrangements (AREA)
- Studio Devices (AREA)
- Exposure Control For Cameras (AREA)
Description
本発明は撮像装置に関し、特に階調補正に関する。 The present invention relates to an imaging apparatus, and more particularly to gradation correction.
逆光等の照明条件で撮影された画像を補正するため、輝度やコントラストを補正する階調補正が知られている。ガンマ補正やヒストグラム補正はその代表であるが、一定の係数で補正するため、白飛びや黒つぶれが生じる問題がある。 In order to correct an image captured under illumination conditions such as backlight, gradation correction for correcting luminance and contrast is known. Gamma correction and histogram correction are typical examples, but since correction is performed with a constant coefficient, there is a problem that overexposure and blackout occur.
一方、画像データの階調値だけでなく、補正すべき画素の周辺画素の情報を用いて補正係数を決定する適応的階調補正が提案されており、画像の内容に応じた補正が可能となっている。非特許文献1には、適応的階調補正が開示されている。適応的階調補正では、Retinex理論を基にしており、Retinex理論では入力画像を照明光と反射率の積で表されるとし、入力画像から照明光を分離することで反射率画像を補正画像として得るものである。いま、入力画像I=照明光L×反射率R(補正画像)とすると、R(x,y)=exp{log(I(x,y))−log(L(x,y))}である。照明光の推定には変分法が用いられ、解像度が原画像の1/2kのレイヤkを複数作成し、低解像度のレイヤから照明光更新の計算を繰り返す。照明光更新の計算は、L(x,y)=L(x,y)−μNSD×G(x,y)である。ここで、G(x,y)はコスト関数の勾配、μNSDは学習係数である。具体的には、まずG(x,y)を計算し、次にμNSD(x,y)を計算し、これらに基づいてL(x,y)を計算するという処理を繰り返す。 On the other hand, adaptive tone correction has been proposed in which a correction coefficient is determined by using not only the tone value of image data but also information on neighboring pixels of the pixel to be corrected, and correction according to the content of the image is possible. It has become. Non-Patent Document 1 discloses adaptive tone correction. The adaptive tone correction is based on the Retinex theory. In the Retinex theory, the input image is represented by the product of illumination light and reflectance, and the reflectance image is corrected by separating the illumination light from the input image. What you get as Now, assuming that the input image I = illumination light L × reflectance R (corrected image), R (x, y) = exp {log (I (x, y)) − log (L (x, y))} is there. A variational method is used for estimating the illumination light, and a plurality of layers k having a resolution of 1/2 k of the original image are created, and the calculation of the illumination light update is repeated from the low resolution layer. The calculation of the illumination light update is L (x, y) = L (x, y) −μNSD × G (x, y). Here, G (x, y) is a gradient of the cost function, and μNSD is a learning coefficient. Specifically, first, G (x, y) is calculated, then μNSD (x, y) is calculated, and L (x, y) is calculated based on these.
また、特許文献1では、人物撮影モードが選択された場合に、AE(自動露出)検出手段により算出された適正な露出値よりも露出値をアンダーに設定して画像を撮影するとともに、撮影して得られた画像データに対して階調変換処理後の画像データのダイナミックレンジを広くするγ変換テーブルを用いて階調補正を施すことにより、被写体中心付近における輝度が不足する部分の輝度値を補正することが開示されている。 Further, in Patent Document 1, when the person photographing mode is selected, the exposure value is set lower than the appropriate exposure value calculated by the AE (automatic exposure) detection unit, and an image is photographed and photographed. By applying tone correction to the image data obtained using the γ conversion table that widens the dynamic range of the image data after the tone conversion processing, the luminance value of the portion where the luminance is insufficient near the subject center is obtained. It is disclosed to correct.
このように、AEで設定された最適露出値に対してアンダーに設定した露出値で被写体を撮影し、得られた画像データに対して適応的に階調補正を行うことで白飛びや黒つぶれを防止することが可能であるが、アンダーの露出値を固定的に設定したのでは、多様な画像に対応することができず、ユーザの意図する画像が得られない問題がある。 In this way, the subject is photographed with an exposure value set under the optimal exposure value set in AE, and gradation correction is adaptively performed on the obtained image data, so that whiteout or blackout occurs. However, if the underexposure value is fixedly set, various images cannot be handled, and there is a problem that an image intended by the user cannot be obtained.
本発明の目的は、導出されたAEの適正露出に対し、撮影状態に応じた露出補正値を加味して撮影された画像データに対し、適応的に階調補正を行うことでユーザの意図する画像を得ることができる撮像装置を提供することにある。 An object of the present invention is intended by the user by adaptively performing gradation correction on image data taken by taking an exposure correction value corresponding to a shooting state into consideration for the derived appropriate exposure of AE. An object of the present invention is to provide an imaging apparatus capable of obtaining an image.
本発明は、被写体像を撮像する撮像装置であって、適正な露出値を算出する露出制御手段と、前記適正な露出値よりも露出値をアンダーまたはオーバに設定して撮像された画像データに対し、階調補正を行う補正手段と、前記補正手段による階調補正前の前記画像データの輝度ヒストグラムが特定の条件を満足するか否かを判定することで露出値を調整する調整手段とを有し、前記調整手段は、調整に関するデータを前記画像補正手段に供給し、前記補正手段は、前記調整に関するデータを用いて補正量を調整し、前記調整手段は、前記輝度ヒストグラムにおいて適正な露出値に対する高輝度な画素の比率あるいは低輝度な画素の比率の少なくともいずれかを用いてアンダーに設定する露出値を調整することを特徴とする。 The present invention is an image pickup apparatus for picking up an image of a subject, exposure control means for calculating an appropriate exposure value, and image data obtained by setting an exposure value under or over the appropriate exposure value. On the other hand, correction means for performing gradation correction, and adjustment means for adjusting an exposure value by determining whether or not a luminance histogram of the image data before gradation correction by the correction means satisfies a specific condition. And the adjustment unit supplies data related to adjustment to the image correction unit, the correction unit adjusts a correction amount using the data related to the adjustment, and the adjustment unit adjusts an appropriate exposure in the luminance histogram. The exposure value to be set to under is adjusted using at least one of a ratio of a high luminance pixel to a value and a ratio of a low luminance pixel .
また、本発明は、被写体像を撮像する撮像装置であって、適正な露出値を算出する露出制御手段と、前記適正な露出値よりも露出値をアンダーまたはオーバに設定して撮像された画像データに対し、階調補正を行う補正手段と、前記補正手段による階調補正前の前記画像データの輝度ヒストグラムが特定の条件を満足するか否かを判定することで露出値を調整する調整手段とを有し、前記調整手段は、調整に関するデータを前記画像補正手段に供給し、前記補正手段は、前記調整に関するデータを用いて補正量を調整し、前記調整手段は、さらに、前記被写体の輝度がストロボを発光させることが必要な輝度レベルであるか否かを判定することでアンダーに設定する露出値を調整することを特徴とする。 In addition, the present invention is an imaging apparatus that captures a subject image, an exposure control unit that calculates an appropriate exposure value, and an image that is captured with an exposure value set to under or over than the appropriate exposure value. Correction means for performing gradation correction on data, and adjustment means for adjusting an exposure value by determining whether or not a luminance histogram of the image data before gradation correction by the correction means satisfies a specific condition The adjustment means supplies data relating to adjustment to the image correction means, the correction means adjusts a correction amount using the data relating to the adjustment, and the adjustment means further includes the adjustment of the subject. It is characterized in that the exposure value set to under is adjusted by determining whether or not the luminance is a luminance level that requires the strobe to emit light .
また、本発明は、被写体像を撮像する撮像装置であって、適正な露出値を算出する露出制御手段と、前記適正な露出値よりも露出値をアンダーまたはオーバに設定して撮像された画像データに対し、階調補正を行う補正手段と、前記補正手段による階調補正前の前記画像データの輝度ヒストグラムが特定の条件を満足するか否かを判定することで露出値を調整する調整手段とを有し、前記調整手段は、調整に関するデータを前記画像補正手段に供給し、前記補正手段は、前記調整に関するデータを用いて補正量を調整し、前記調整手段は、さらに、前記被写体が特定のシーンであるか否かを判定することでアンダーに設定する露出値を調整することを特徴とする。 In addition, the present invention is an imaging apparatus that captures a subject image, an exposure control unit that calculates an appropriate exposure value, and an image that is captured with an exposure value set to under or over than the appropriate exposure value. Correction means for performing gradation correction on data, and adjustment means for adjusting an exposure value by determining whether or not a luminance histogram of the image data before gradation correction by the correction means satisfies a specific condition The adjustment means supplies data relating to adjustment to the image correction means, the correction means adjusts a correction amount using the data relating to the adjustment, and the adjustment means further includes: The exposure value set to under is adjusted by determining whether or not the scene is a specific scene .
また、本発明は、被写体像を撮像する撮像装置であって、適正な露出値を算出する露出制御手段と、前記適正な露出値よりも露出値をアンダーまたはオーバに設定して撮像された画像データに対し、階調補正を行う補正手段と、前記補正手段による階調補正前の前記画像データの輝度ヒストグラムが特定の条件を満足するか否かを判定することで露出値を調整する調整手段とを有し、前記調整手段は、調整に関するデータを前記画像補正手段に供給し、前記補正手段は、前記調整に関するデータを用いて補正量を調整し、前記調整手段は、さらに、ISO値がしきい値以上か否かを判定することでアンダーに設定する露出値を調整することを特徴とする。
In addition, the present invention is an imaging apparatus that captures a subject image, an exposure control unit that calculates an appropriate exposure value, and an image that is captured with an exposure value set to under or over than the appropriate exposure value. Correction means for performing gradation correction on data, and adjustment means for adjusting an exposure value by determining whether or not a luminance histogram of the image data before gradation correction by the correction means satisfies a specific condition The adjustment means supplies data related to adjustment to the image correction means, the correction means adjusts a correction amount using the data related to the adjustment, and the adjustment means further has an ISO value. The exposure value set to under is adjusted by determining whether or not the threshold value is exceeded .
本発明によれば、導出されたAEの適正露出に対し、撮影状態に応じた露出補正値を加味して撮影された画像データに対し、適応的に階調補正を行うことでユーザの意図する画像を得ることができる。 According to the present invention, the user's intention is to adaptively perform tone correction on image data that is taken by taking an exposure correction value according to the shooting state into consideration for the derived appropriate exposure of AE. An image can be obtained.
以下、図面に基づき本発明の実施形態について、撮像装置としてデジタルカメラを例にとり説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings, taking a digital camera as an example of an imaging apparatus.
図1に、本実施形態におけるデジタルカメラの機能ブロック図を示す。なお、撮像素子に被写体像を結像するための光学系、撮像素子からの画像信号を相関二重サンプリングする手段、デジタル信号に変換する手段、画像データを圧縮伸長する手段、プレビュー画像を生成する手段、撮影済み画像あるいはプレビュー画像を表示装置に表示する手段、画像データを記録媒体に記録する手段、オートフォーカス(AF)手段、ホワイトバランス(WB)処理手段等は公知のデジタルカメラの構成と同一であるため省略する。 FIG. 1 shows a functional block diagram of a digital camera in the present embodiment. An optical system for forming a subject image on an image sensor, a means for performing correlated double sampling on an image signal from the image sensor, a means for converting to a digital signal, a means for compressing / decompressing image data, and generating a preview image Means for displaying captured images or preview images on a display device, means for recording image data on a recording medium, autofocus (AF) means, white balance (WB) processing means, and the like are the same as those of known digital cameras. Therefore, it is omitted.
図1において、撮像素子としてのCCDはR、G、B各画像信号を出力する。撮像素子はCCDに限定されるものではなく、CMOSでもよい。 In FIG. 1, a CCD as an image sensor outputs R, G, and B image signals. The image sensor is not limited to a CCD, and may be a CMOS.
領域分割平均部12は、CCD10からの画像データ、より特定的にはプレビュー画像データを複数の領域に分割し、各領域毎に画素値の平均を算出して出力する。すなわち、画像データの全体をn×mの矩形領域に分割し、各領域毎にR、G、Bの画素値の単純平均を算出する。
The area
AE制御部14は、プレビュー画像データに基づいてプレビュー用の露出評価を行い、適正な露出値を計算する。プレビュー用の露出評価としては中央部に重点をおいて測光する方法とマルチポイントで測光する方法がある。マルチポイントで測光する方法を採用すれば撮影用の露出評価にも用いることができる。さらに、AE制御部14は、プレビュー画像の画像データを用いて輝度ヒストグラムを作成し、この輝度ヒストグラムを露出補正量計算部16に供給する。
The
露出補正量計算部16は、輝度ヒストグラムが特定の条件を満たすか否かを判定することで適正露出に対する露出補正量を計算し、AE制御部14に供給するとともに階調補正部18に供給する。露出補正量計算部16は、撮影された画像データが階調補正部18で階調補正されることを前提として露出補正量を計算する。本実施形態では、露出補正量は、適正露出値に対して6段階に設定される。すなわち、露出補正量をΔEVとすると、ΔEV=0EV、−Δ1EV、−Δ2EV、−Δ3EV、−Δ4EV、+Δ5EVのいずれかに設定される。ここで、露出補正量のプラスは適正露出値に対するオーバ露出を意味し、露出補正量のマイナスは適正露出値に対するアンダー露出を意味する。また、Δ1<Δ2<Δ3<Δ4とする。
The exposure correction
階調補正部18は、露出補正量計算部16からの露出補正量及び適正露出値(露出の基準)に基づき、露出補正されて撮影された画像データに対して適応的に階調補正を行う。階調補正の方法は任意であるが、輝度データに対して適応的なγ関数を用いてγ変換するとともに、色差データに対して補正を行うことで階調補正を行う。階調補正部18は、アンダー露出で撮影された画像データの露出を補償して適正露出となるように階調補正するため、露出補正量が小さい場合にはその分だけ階調補正の補正量も小さくなり、露出補正量が大きい場合にはその分だけ階調補正の補正量も大きくなり、階調補正の効果が顕著に現れる(言い換えると、階調補正の歪みも顕著に現れる)。図1における露出補正量計算部16は具体的にはCPUで構成される。階調補正部18は専用のDSPで構成される。
The
図2に、図1におけるAE制御部14及び露出補正量計算部16の詳細機能ブロック図を示す。CCD10で得られた画像信号を処理して得られるプレビュー画像20は領域分割平均部12に供給される。領域分割平均部12は、AE評価用データを作成する。例えば、プレビュー画像を12×8のブロックに分割し、各ブロック毎に、R、G、Bの平均値を計算する。
FIG. 2 shows a detailed functional block diagram of the
AE制御部14のプレビュー用露出評価部22は、プレビュー画像の露出を制御するための評価値を算出する。算出された評価値はプレビュー露出制御部32に供給され、適正露出値に制御される。撮影露出予測ヒストグラム作成部28は、プレビュー用露出評価部22からのデータに基づいて、現在の露出値で撮影した場合に撮影後の画像データから得られるであろう輝度ヒストグラムを作成する。具体的には、撮影露出予測ヒストグラム作成部28は、各ブロック毎のR、G、Bの平均値を輝度Yに変換し、log2(輝度Y/適正露出値)によりEV単位に変換する。各ブロック毎に輝度YをEV単位で算出した後、これら12×8個=96個のデータでヒストグラムを作成する。ヒストグラムの横軸は、適正露出(153)からのずれ量とする。算出されたヒストグラムは、露出補正量計算部16に供給される。
The preview
露出補正量計算部18の露出補正量決定部30は、ヒストグラムとその他の判定データに基づき露出補正量を決定する。その他の判定データとは、フラッシュONの条件であるか否か、プレビュー画像が存在するか否か、顔情報(有無、位置、大きさ等)等の判定データである。露出補正量は、例えばヒストグラムにおいてx4EV以上が全体の25%以上存在し、かつ、x5EV以上が存在せず、かつ、x2EV以下が全体の10%以下存在の場合に露出補正量を−Δ3とする等である。ヒストグラムに基づく具体的な決定方法については後述する。決定された露出補正量は階調補正部18に供給されるとともにAE制御部22のスチル撮影用露出判断部26に供給される。スチル撮影用露出判断部26は、スチル撮影用露出評価部24からの評価結果と露出補正量とに基づいて撮影時の露出値を決定する。
The exposure correction
図3に、本実施形態の処理フローチャートを示す。まず、デジタルカメラのCPUは、プレビュー画像の輝度レベルがストロボ(フラッシュ)をONするためのレベルより暗いか否かを判定する(S101)。この判定は、フラッシュ発光する場合には撮影シーン事態が暗いため、さらに露出アンダーとしないためである。したがって、フラッシュONレベルよりも輝度レベルが暗い場合、適正露出値に対する露出補正量ΔEVは0、すなわち適正露出のままとする(S114)。 FIG. 3 shows a processing flowchart of the present embodiment. First, the CPU of the digital camera determines whether the brightness level of the preview image is darker than the level for turning on the strobe (flash) (S101). This determination is because when the flash is emitted, the shooting scene situation is dark, so that it is not further underexposed. Accordingly, when the brightness level is darker than the flash ON level, the exposure correction amount ΔEV with respect to the appropriate exposure value is kept at 0, that is, the appropriate exposure (S114).
プレビュー画像の輝度レベルがフラッシュをONするためのレベル以上に明るい場合、次にプレビューデータが存在しないか否かを判定する(S102)。電源ON直後や再生モードからの復帰直後においてはプレビュー画像データは存在せず、この状態でユーザがシャッタを一気押しした場合にはプレビュー画像データが存在しないため露出補正を行うことができない。そこで、このような場合には撮影できることを優先し、露出補正量計算部16は露出補正量をデフォルトのアンダー露出値とする(S115)。すなわち、適正露出値に対してΔEV=−Δ1EVだけアンダー露出値に設定する。
If the brightness level of the preview image is brighter than the level for turning on the flash, it is next determined whether or not there is preview data (S102). There is no preview image data immediately after the power is turned on or immediately after the return from the reproduction mode. When the user presses the shutter at once in this state, the preview image data does not exist and exposure correction cannot be performed. Therefore, in such a case, priority is given to photographing, and the exposure correction
プレビュー画像が存在する場合、次に、逆光状態か否かを判定する(S103)。逆光状態の場合、強制的にフラッシュ発光するため、この場合には露出補正量計算部16は露出補正量をデフォルトのアンダー露出値とする(S115)。すなわち、適正露出値に対してΔEV=−Δ1EVだけアンダー露出値に設定する。
If there is a preview image, it is next determined whether or not it is in a backlight state (S103). Since the flash is forcibly emitted in the backlight state, in this case, the exposure correction
逆光状態でない場合、次に撮影シーンが特定のシーンか否か、具体的には撮影シーンがビーチ(海岸)のシーンあるいはテキスト(文書)を撮影するシーンであるか否かを判定する(S104)。撮影シーンがこれらのシーンである場合、露出アンダーで撮影するよりも露出オーバで撮影する方がよい場合があるからである。したがって、撮影シーンがこれらのシーンである場合、露出補正量計算部16は露出補正量を適正露出値よりもオーバ露出値とする(S119)。すなわち、適正露出値に対してΔEV=+Δ5EVだけオーバ露出値に設定する。なお、撮影シーンがビーチシーンであるかテキスト撮影シーンであるかは、公知のシーン判別技術を用いることができる。例えば、特開2007−121654号公報には、温度特徴と、画像特徴抽出回路で検出した画像の動き、色相、彩度、輝度等とを組み合わせてシーンを判別する技術が開示されている。
If it is not backlit, it is next determined whether or not the shooting scene is a specific scene, specifically, whether or not the shooting scene is a beach (coast) scene or a text (document) scene (S104). . This is because when the shooting scenes are those scenes, it may be better to shoot with overexposure than with underexposure. Therefore, when the shooting scenes are these scenes, the exposure correction
撮影シーンが特定シーンでない場合、次にISOがしきい値以上か否かを判定する(S105)。撮影シーンが暗いと手ぶれ抑制のためにシャッタスピードを固定してISOを高くして感度を上げるが、ISOが高くなるとノイズが増大することになるのでISOがしきい値以上である場合に露出補正を実行しないためである。したがって、ISOがしきい値以上である場合には露出補正量計算部16は基本的に適正露出のままとするように露出補正量を決定する。但し、ISOが高い場合としては、
(1)撮影シーン自体が暗い場合
(2)撮影シーンは暗くないが、動く被写体を止めて撮影することを目的として高速シャッタを用いる場合、結果的に光量が足りなくなるのでISOを高くする場合
の2つがある。このうち、(1)の場合において露出補正を行わないこととし、(2)の場合には露出補正を行うものとする。このため、撮影シーンの輝度が動く被写体用の輝度よりも低いか否かを判定し(S106)、動く被写体用の輝度よりも低い場合に露出補正量計算部16は適正露出のままとするように露出補正量を決定する(S115)。すなわち、ΔEV=0とする。ここで、判定のためのEV値のしきい値は、ヒストグラムの横軸上の値を表し、x0<x1<x2<x3<x4<x5、y1<y2<y3とする。
If the shooting scene is not a specific scene, it is next determined whether or not ISO is equal to or greater than a threshold value (S105). When the shooting scene is dark, the shutter speed is fixed to increase the ISO by increasing the shutter speed in order to suppress camera shake. However, since the noise increases as the ISO increases, exposure compensation is performed when the ISO is above the threshold value. Is not executed. Therefore, when the ISO is equal to or greater than the threshold value, the exposure correction
(1) When the shooting scene itself is dark (2) The shooting scene is not dark, but when using a high-speed shutter for the purpose of shooting while stopping a moving subject, the amount of light is insufficient, resulting in a high ISO. There are two. Of these, exposure correction is not performed in the case of (1), and exposure correction is performed in the case of (2). Therefore, it is determined whether or not the luminance of the shooting scene is lower than the luminance for the moving subject (S106), and when the luminance is lower than the luminance for the moving subject, the exposure correction
ISOがしきい値より小さい場合、あるいはISOがしきい値以上であっても上記の(2)の条件に該当する場合、次にヒストグラムを用いて輝度差を判定する(S107)。そして、輝度差が特定の条件に該当するか否かを順次判定し、判定結果に応じて露出補正量を設定する。 If the ISO is smaller than the threshold value, or if the above condition (2) is met even if the ISO is equal to or greater than the threshold value, then the luminance difference is determined using the histogram (S107). Then, it is sequentially determined whether the luminance difference meets a specific condition, and an exposure correction amount is set according to the determination result.
具体的には、まず、撮影シーンに顔が存在するか否かを判定する(S108)。顔を検出する技術も公知であり、例えば画像データから肌色部分を抽出し、人物の顔のテンプレートと肌色部分の画像とのマッチング度を求め、マッチング度の高い部分を顔部候補とする等である。さらに、顔候補部分において目の部分を抽出し、顔か否かを判別してもよい。 Specifically, first, it is determined whether or not a face exists in the shooting scene (S108). A technique for detecting a face is also known. For example, a skin color part is extracted from image data, a matching degree between a human face template and a skin color part image is obtained, and a part with a high matching degree is used as a face candidate. is there. Further, an eye part may be extracted from the face candidate part to determine whether or not the face is a face.
顔が存在する場合には、次に輝度のヒストグラムが露出補正量ΔEV=−Δ3EVに相当する条件を満たすか否かを判定する(S109)。ΔEV=−Δ3EVに設定される条件は以下のとおりである。
<−Δ3EVとなる条件:顔あり>
x4EV以上が25%以上、かつ、x5EV以上が存在せず、かつ、x2EV以下が10%以下、かつ、顔エリアがy2EV以上y3EV以下である。
−Δ3EVの条件を満たさない場合、次に、輝度のヒストグラムが露出補正量ΔEV=−Δ2EVに相当する条件を満たすか否かを判定する(S110)。ΔEV=−Δ2EVに設定される条件は以下のとおりである。
<−Δ2EVとなる条件:顔あり>
x3EV以上が60%以上、かつ、顔エリアがy1EV以上である。
If a face exists, it is next determined whether or not the luminance histogram satisfies a condition corresponding to the exposure correction amount ΔEV = −Δ 3 EV (S109). The conditions set for ΔEV = −Δ 3 EV are as follows.
<Condition to be −Δ 3 EV: With Face>
x 4 EV or more is 25% or more, x 5 EV or more does not exist, x 2 EV or less is 10% or less, and the face area is y 2 EV or more and y 3 EV or less.
If the condition of −Δ 3 EV is not satisfied, it is next determined whether or not the luminance histogram satisfies a condition corresponding to the exposure correction amount ΔEV = −Δ 2 EV (S110). The conditions set for ΔEV = −Δ 2 EV are as follows.
<Condition to be −Δ 2 EV: with face>
x 3 EV or more is 60% or more, and the face area is y 1 EV or more.
そして、輝度のヒストグラムがこれらの条件を満たさない場合には、露出補正量計算部16は露出補正量ΔEVをデフォルトの−Δ1EVに設定し(S115)、−Δ2EVの条件を満たす場合には、露出補正量ΔEVを−Δ2EVに設定する(S116)。これは、デフォルトのアンダー露出値よりもさらに露出値をアンダーに設定して撮影することを意味する。また、−Δ3EVの条件を満たす場合、露出補正量ΔEVを−Δ3EVに設定する(S117)。これは、デフォルトのアンダー露出値よりもさらに露出値をアンダーに設定して撮影することを意味する。
When the luminance histogram does not satisfy these conditions, the exposure correction
一方、撮影シーンに顔が存在しない場合、順次、輝度のヒストグラムが−Δ4EVに相当する条件を満たすか否か(S111)、−Δ3EVに相当する条件を満たすか否か(S112)、−Δ2EVに相当する条件を満たすか否かを判定する(S113)。これらの条件は、それぞれ以下のとおりである。
<−Δ4EVとなる条件:顔なし>
x4EV以上が20%以上、かつ、x5EV以上が存在し、かつ、x1EV以下が10%以下、もしくは、x0EV以下が20%以上である。
<−Δ3EVとなる条件:顔なし>
x4EV以上が25%以上、かつ、x5EV以上が存在せず、かつ、x2EV以下が10%以下である。
<−Δ2EVとなる条件:顔なし>
x3EV以上が50%以上である。
On the other hand, if the photographic scene no face, successively, determine if they satisfy the condition histogram of luminance corresponding to -Δ 4 EV (S111), - Δ 3 determine if they satisfy the condition corresponding to EV (S112) , −Δ 2 EV is determined (S113). These conditions are as follows.
<Condition to be −Δ 4 EV: No Face>
x 4 EV or more is 20% or more, x 5 EV or more exists, and x 1 EV or less is 10% or less, or x 0 EV or less is 20% or more.
<Condition to be −Δ 3 EV: No Face>
x 4 EV or more is 25% or more, x 5 EV or more is not present, and x 2 EV or less is 10% or less.
<Condition to be −Δ 2 EV: No Face>
x 3 EV or more is 50% or more.
これらの条件をまとめて図4に示す。顔の有無で判定基準を変えているのは、顔が存在する場合には顔が存在しない場合に比べて階調補正における補正量を相対的に小さくするためである。すなわち、露出補正量計算部16で計算された露出補正量ΔEVは、撮影時の露出制御に用いられるとともに、階調補正部18にも供給されて階調補正時の補正量を調整するために用いられる。階調補正部32は、アンダー露出値で撮影された画像データに対し、階調補正を施して適正露出値まで補正するため、アンダー露出値が小さいと階調補正時の補正量も小さくなる。したがって、露出補正量を調整することは、同時に、階調補正部32での階調補正の補正量を調整することを意味する。また、図4に示すように、顔が存在する場合には顔が存在しない場合に比べて露出補正量ΔEVを小さく設定している。図4において、顔が存在する場合のアンダー露出値の最大値は、露出補正量ΔEV=−Δ3EVであるのに対し、顔が存在しない場合のアンダー露出値の最大値は、露出補正量ΔEV=−Δ4であることに留意されたい。顔が存在する場合にアンダー露出値を小さくするのは、露出値をアンダーに設定するとその分だけノイズが混入しやすくなるので、アンダー露出値を小さくして顔の部分にノイズが混入することを防止するためである。
These conditions are collectively shown in FIG. The reason why the determination criterion is changed depending on the presence / absence of the face is to make the correction amount in the gradation correction relatively small when the face is present compared to when the face is not present. That is, the exposure correction amount ΔEV calculated by the exposure correction
このように、本実施形態では、プレビュー画像の輝度のヒストグラムに基づいて露出補正量を動的に調整して撮影するとともに、撮影して得られた画像データに対して階調補正を行うため、固定的にアンダー露出値で撮影して階調補正を行う場合に比べて多様な撮影シーンに対応することができる。本実施形態における露出補正量は、後段の処理において適応的に階調補正されることを前提として設定されるものであり、適応的階調補正の補正量を調整するためのパラメータとして機能するものであって、単に輝度ヒストグラムに基づいて露出値を設定するものではない。 As described above, in the present embodiment, the exposure correction amount is dynamically adjusted based on the luminance histogram of the preview image, and the gradation correction is performed on the image data obtained by the shooting. Compared to the case where the gradation correction is performed by photographing with a fixed underexposure value, it is possible to cope with various photographing scenes. The exposure correction amount in the present embodiment is set on the assumption that gradation correction is adaptively performed in subsequent processing, and functions as a parameter for adjusting the correction amount of adaptive gradation correction. However, the exposure value is not simply set based on the luminance histogram.
10 CCD、12 領域分割平均部、14 AE制御部、16 露出補正量計算部、18 階調補正部。 10 CCD, 12 area division average part, 14 AE control part, 16 exposure correction amount calculation part, 18 gradation correction part.
Claims (4)
適正な露出値を算出する露出制御手段と、
前記適正な露出値よりも露出値をアンダーまたはオーバに設定して撮像された画像データに対し、階調補正を行う補正手段と、
前記補正手段による階調補正前の前記画像データの輝度ヒストグラムが特定の条件を満足するか否かを判定することで露出値を調整する調整手段と、
を有し、
前記調整手段は、調整に関するデータを前記画像補正手段に供給し、
前記補正手段は、前記調整に関するデータを用いて補正量を調整し、
前記調整手段は、前記輝度ヒストグラムにおいて適正な露出値に対する高輝度な画素の比率あるいは低輝度な画素の比率の少なくともいずれかを用いてアンダーに設定する露出値を調整することを特徴とする撮像装置。 An imaging device that captures a subject image,
Exposure control means for calculating an appropriate exposure value;
Correction means for performing gradation correction on image data captured with the exposure value set to under or over than the appropriate exposure value;
Adjusting means for adjusting an exposure value by determining whether or not a luminance histogram of the image data before gradation correction by the correcting means satisfies a specific condition;
Have
The adjustment means supplies data relating to adjustment to the image correction means,
The correction means adjusts a correction amount using data relating to the adjustment,
The adjustment unit adjusts an exposure value to be set to under using at least one of a ratio of a high luminance pixel and a ratio of a low luminance pixel to an appropriate exposure value in the luminance histogram. .
適正な露出値を算出する露出制御手段と、
前記適正な露出値よりも露出値をアンダーまたはオーバに設定して撮像された画像データに対し、階調補正を行う補正手段と、
前記補正手段による階調補正前の前記画像データの輝度ヒストグラムが特定の条件を満足するか否かを判定することで露出値を調整する調整手段と、
を有し、
前記調整手段は、調整に関するデータを前記画像補正手段に供給し、
前記補正手段は、前記調整に関するデータを用いて補正量を調整し、
前記調整手段は、さらに、前記被写体の輝度がストロボを発光させることが必要な輝度レベルであるか否かを判定することでアンダーに設定する露出値を調整することを特徴とする撮像装置。 An imaging device that captures a subject image,
Exposure control means for calculating an appropriate exposure value;
Correction means for performing gradation correction on image data captured with the exposure value set to under or over than the appropriate exposure value;
Adjusting means for adjusting an exposure value by determining whether or not a luminance histogram of the image data before gradation correction by the correcting means satisfies a specific condition;
Have
The adjustment means supplies data relating to adjustment to the image correction means,
The correction means adjusts a correction amount using data relating to the adjustment,
The adjustment device further adjusts an exposure value to be set to under by determining whether or not the luminance of the subject is a luminance level that requires the strobe to emit light.
適正な露出値を算出する露出制御手段と、
前記適正な露出値よりも露出値をアンダーまたはオーバに設定して撮像された画像データに対し、階調補正を行う補正手段と、
前記補正手段による階調補正前の前記画像データの輝度ヒストグラムが特定の条件を満足するか否かを判定することで露出値を調整する調整手段と、
を有し、
前記調整手段は、調整に関するデータを前記画像補正手段に供給し、
前記補正手段は、前記調整に関するデータを用いて補正量を調整し、
前記調整手段は、さらに、前記被写体が特定のシーンであるか否かを判定することでアンダーに設定する露出値を調整することを特徴とする撮像装置。 An imaging device that captures a subject image,
Exposure control means for calculating an appropriate exposure value;
Correction means for performing gradation correction on image data captured with the exposure value set to under or over than the appropriate exposure value;
Adjusting means for adjusting an exposure value by determining whether or not a luminance histogram of the image data before gradation correction by the correcting means satisfies a specific condition;
Have
The adjustment means supplies data relating to adjustment to the image correction means,
The correction means adjusts a correction amount using data relating to the adjustment,
The adjustment apparatus further adjusts an exposure value set to under by determining whether or not the subject is a specific scene.
適正な露出値を算出する露出制御手段と、
前記適正な露出値よりも露出値をアンダーまたはオーバに設定して撮像された画像データに対し、階調補正を行う補正手段と、
前記補正手段による階調補正前の前記画像データの輝度ヒストグラムが特定の条件を満足するか否かを判定することで露出値を調整する調整手段と、
を有し、
前記調整手段は、調整に関するデータを前記画像補正手段に供給し、
前記補正手段は、前記調整に関するデータを用いて補正量を調整し、
前記調整手段は、さらに、ISO値がしきい値以上か否かを判定することでアンダーに設定する露出値を調整することを特徴とする撮像装置。 An imaging device that captures a subject image,
Exposure control means for calculating an appropriate exposure value;
Correction means for performing gradation correction on image data captured with the exposure value set to under or over than the appropriate exposure value;
Adjusting means for adjusting an exposure value by determining whether or not a luminance histogram of the image data before gradation correction by the correcting means satisfies a specific condition;
Have
The adjustment means supplies data relating to adjustment to the image correction means,
The correction means adjusts a correction amount using data relating to the adjustment,
The adjustment unit further adjusts an exposure value set to under by determining whether or not the ISO value is equal to or greater than a threshold value.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008095220A JP5149055B2 (en) | 2007-12-27 | 2008-04-01 | Imaging device |
US12/132,634 US8059187B2 (en) | 2007-12-27 | 2008-06-04 | Image capturing apparatus |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007335468 | 2007-12-27 | ||
JP2007335468 | 2007-12-27 | ||
JP2008095220A JP5149055B2 (en) | 2007-12-27 | 2008-04-01 | Imaging device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009177764A JP2009177764A (en) | 2009-08-06 |
JP5149055B2 true JP5149055B2 (en) | 2013-02-20 |
Family
ID=41032336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008095220A Expired - Fee Related JP5149055B2 (en) | 2007-12-27 | 2008-04-01 | Imaging device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5149055B2 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5587045B2 (en) * | 2010-06-09 | 2014-09-10 | キヤノン株式会社 | Imaging apparatus and control method thereof |
JP5621335B2 (en) * | 2010-06-14 | 2014-11-12 | 株式会社リコー | Image processing apparatus, image processing method, and image pickup apparatus |
JP5591026B2 (en) * | 2010-08-20 | 2014-09-17 | キヤノン株式会社 | Imaging apparatus and control method thereof |
JP5968068B2 (en) * | 2011-05-24 | 2016-08-10 | キヤノン株式会社 | Imaging apparatus for controlling exposure, control method for imaging apparatus, program, and recording medium |
JP5782311B2 (en) * | 2011-07-01 | 2015-09-24 | キヤノン株式会社 | Imaging apparatus and control method thereof |
CN110796600B (en) * | 2019-10-29 | 2023-08-11 | Oppo广东移动通信有限公司 | Image super-resolution reconstruction method, image super-resolution reconstruction device and electronic equipment |
CN113942458B (en) * | 2021-10-29 | 2022-07-29 | 禾多科技(北京)有限公司 | Control method, device, equipment and medium for vehicle-mounted camera adjusting system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10322592A (en) * | 1997-03-17 | 1998-12-04 | Konica Corp | Method and device for controlling electronic camera |
JP4516503B2 (en) * | 2005-09-07 | 2010-08-04 | 富士フイルム株式会社 | Imaging system and control method thereof |
-
2008
- 2008-04-01 JP JP2008095220A patent/JP5149055B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009177764A (en) | 2009-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10412296B2 (en) | Camera using preview image to select exposure | |
US8059187B2 (en) | Image capturing apparatus | |
EP2216987B1 (en) | Image capturing apparatus and control method thereof | |
KR101812807B1 (en) | A method of adaptive auto exposure contol based upon adaptive region's weight | |
JP5149055B2 (en) | Imaging device | |
JP2006287323A (en) | Imaging apparatus | |
JP4999871B2 (en) | Imaging apparatus and control method thereof | |
JP4300936B2 (en) | Imaging device | |
JP2014179920A (en) | Imaging apparatus, control method thereof, program, and storage medium | |
JP2019029833A (en) | Imaging apparatus | |
KR101005769B1 (en) | Auto exposure and auto white-balance method for detecting high dynamic range conditions | |
JP2010183460A (en) | Image capturing apparatus and method of controlling the same | |
JP2010011153A (en) | Imaging apparatus, imaging method and program | |
JP5335964B2 (en) | Imaging apparatus and control method thereof | |
KR101168110B1 (en) | Apparatus and method for compensating back light of image | |
JP2009063674A (en) | Imaging apparatus and flash control method | |
JP6300514B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
JP2010183461A (en) | Image capturing apparatus and method of controlling the same | |
JP5138510B2 (en) | Image data processing device | |
JP2009135670A (en) | Image device and its control method | |
JP5782546B2 (en) | VIDEO PROCESSING DEVICE, VIDEO PROCESSING METHOD, IMAGING DEVICE, PROGRAM, AND STORAGE MEDIUM | |
JP2006166320A (en) | Digital camera with gradation distribution correcting function | |
JP5351663B2 (en) | Imaging apparatus and control method thereof | |
US20090190911A1 (en) | Imaging apparatus | |
JP6148577B2 (en) | Imaging apparatus and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110401 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120328 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120822 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120828 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121025 |
|
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: 20121120 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121129 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5149055 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: 20151207 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
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 |