JP2009239974A - Automatic exposing device and method - Google Patents
Automatic exposing device and method Download PDFInfo
- Publication number
- JP2009239974A JP2009239974A JP2009169923A JP2009169923A JP2009239974A JP 2009239974 A JP2009239974 A JP 2009239974A JP 2009169923 A JP2009169923 A JP 2009169923A JP 2009169923 A JP2009169923 A JP 2009169923A JP 2009239974 A JP2009239974 A JP 2009239974A
- Authority
- JP
- Japan
- Prior art keywords
- luminance
- image data
- difference
- areas
- comparison
- 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.)
- Pending
Links
Images
Landscapes
- Exposure Control For Cameras (AREA)
- Studio Devices (AREA)
Abstract
Description
本発明は、特にデジタルスチルカメラに好適な自動露出装置及び方法に関する。 The present invention relates to an automatic exposure apparatus and method particularly suitable for a digital still camera.
デジタルスチルカメラと銀塩カメラとを問わず、特に多くの機能を搭載する比較的高級なカメラにおいては、AE(Auto Exposure)機能の1つとして、画面をいくつかに分割し、その一部または複数部分を測光し、最適な露出を得ようとするマルチパターン測光、あるいは多分割測光、評価測光と称される測光モード(以下「マルチ測光モード」と略称する)をほとんどの機種で有している。 Regardless of whether it is a digital still camera or a silver salt camera, a relatively high-class camera equipped with many functions, in particular, splits the screen into several parts as one of the AE (Auto Exposure) functions. Most models have multi-pattern photometry, multi-division photometry, and evaluation photometry (hereinafter abbreviated as “multi-photometry mode”) to obtain the optimum exposure by measuring multiple parts. Yes.
このようなマルチ測光モードは、予め用意した多くの測光パターンとその時点で得られる測光パターンとのマッチングをとることで、極端な逆光や過度に強い光源の撮影を行なう場合でも、より最適な露出が得られる確率を向上するようにしたものである。 In such multi-metering mode, by matching many photometric patterns prepared in advance with the photometric pattern obtained at that time, more optimal exposure is possible even when shooting with extreme backlighting or excessively strong light sources. The probability of obtaining is improved.
しかるに、被写体に対して背景が非常に明るい逆光状態での撮影では、背景の明るさの影響でどうしても被写体の画像が暗くなってしまいがちである。 However, when the subject is photographed in a backlit state where the background is very bright, the subject image tends to become dark due to the influence of the brightness of the background.
この場合、特に画面の中心部とこの中心部を除く画面上部との明るさを比較することで逆光を判断して補正を行なう場合を考えると、被写体が画面の中心に位置する際には、非常に典型的な構図であり、比較的有効な補正がかけられることとなる一方、被写体が画面の中心から外れて位置する際には、これもよくある構図ではありながら、充分に適正な補正がかけられる確率は低いものとなる。 In this case, especially when considering the case where the backlight is determined by comparing the brightness of the center of the screen with the brightness of the top of the screen excluding this center, when the subject is positioned at the center of the screen, This is a very typical composition, and relatively effective correction can be applied. On the other hand, when the subject is located off the center of the screen, this is a common composition, but it is adequately corrected. The probability of being applied is low.
また、特にデジタルカメラで上記マルチ測光モードのAEを設定し、且つホワイトバランスも自動調整を設定しているような場合には、明るさを常に一定の基準に合せて撮影するようになり、例えば被写体が実際には白あるいは黒いものであっても中間調のグレーの基準値となるように撮影されてしまうため、撮影時の雰囲気を撮影した画像に忠実に反映させることが困難となる。 In particular, when the AE of the multi-metering mode is set on the digital camera and the white balance is set to the automatic adjustment, the brightness is always adjusted according to a constant reference. Even if the subject is actually white or black, it is photographed so that it becomes a reference value of halftone gray, so it is difficult to faithfully reflect the atmosphere at the time of photographing on the photographed image.
このような不具合に対し、従来より、デジタルカメラで撮影時に得た画像データの各画素の輝度値からヒストグラムを作成して正確な露出を判断し、本来のタイミングでの撮影に利用するようにしたものも考えられている。 For such problems, conventionally, a histogram was created from the brightness value of each pixel of image data obtained with a digital camera to determine the correct exposure, and it was used for shooting at the original timing. Things are also considered.
しかしながら、近年、デジタルカメラの撮像素子であるCCD等の構成画素数は飛躍的に向上しており、それに連れて撮影により得られる画像データの容量も非常に大きなものとなる。 However, in recent years, the number of constituent pixels of a CCD or the like that is an image sensor of a digital camera has been dramatically improved, and the amount of image data obtained by photographing is accordingly very large.
そのような膨大な容量の画像データからヒストグラムを作成して正確な露出を判断する手段としては、DSP(Digital Signal Proccessor)を用いてソフトウェア的に処理を実行するか、あるいはヒストグラム演算を行なうための専用のハードウェア回路を実装することが考えられる。 As means for creating a histogram from such a large amount of image data and determining an accurate exposure, processing is performed in software using a DSP (Digital Signal Processor), or for performing histogram calculation. It is possible to implement a dedicated hardware circuit.
しかして、ソフトウェアによる処理の場合、DSPに対する負担が大きく、多大な演算時間を要するため、本来の撮影に移行できるまでの時間がかかり過ぎることにもなり、被写体を含む撮影環境が変化してヒストグラムを有効に活用できなくなることもあり得る。 In the case of processing by software, since the burden on the DSP is large and a lot of calculation time is required, it takes too much time to shift to the original shooting, and the shooting environment including the subject changes and the histogram changes. May not be able to be used effectively.
また、専用のハードウェア回路を用いる場合、適正な露出を得る1つの手段のためだけに比較的規模の大きな回路を加えて実装しなければならないため、デジタルカメラ全体の回路規模が大型化し、且つ商品としてのコストが大幅に上昇してしまうことになる。 In addition, when a dedicated hardware circuit is used, the circuit scale of the entire digital camera is increased because a relatively large circuit must be added and mounted only for one means for obtaining appropriate exposure, and The cost as a product will increase significantly.
本発明は上記のような実情に鑑みてなされたもので、その目的とするところは、ハードウェア及びソフトウェア双方の面での負担を充分小さいものとしながら、撮影した画像データから適正な露出を得ることが可能な自動露出装置及び方法を提供することにある。 The present invention has been made in view of the above circumstances, and the object of the present invention is to obtain appropriate exposure from captured image data while making the burden on both hardware and software sufficiently small. It is an object of the present invention to provide an automatic exposure apparatus and method.
請求項1記載の発明は、画像データを撮像する撮像素子と、上記画像データを複数の領域に分割する分割手段と、この分割手段で分割した複数の領域毎の画像データから輝度信号を生成する生成手段と、この生成手段で生成した複数の領域毎の輝度信号を積分する積分手段と、この積分手段で得た複数の領域毎の積分値を上下方向に隣接する複数の領域間で比較し、下の領域の輝度に対する上の領域の輝度の差を算出する第1の比較手段と、画像データの中央部の領域を含む複数の領域を対象として上記第1の比較手段により算出された輝度の差と、画像データの上部であり画像データの中央部の領域を含まない複数の領域を対象として上記第1の比較手段により算出された輝度の差とを合算して得られる輝度の差が所定値より大きい場合には逆光と判定する判定手段とを具備したことを特徴とする。 According to the first aspect of the present invention, an image sensor that captures image data, a dividing unit that divides the image data into a plurality of regions, and a luminance signal are generated from the image data for each of the plurality of regions divided by the dividing unit. The generation means, the integration means for integrating the luminance signals for each of the plurality of areas generated by the generation means, and the integration value for each of the plurality of areas obtained by the integration means are compared between a plurality of areas adjacent in the vertical direction. The first comparison means for calculating the difference in luminance of the upper area relative to the luminance of the lower area, and the luminance calculated by the first comparison means for a plurality of areas including the central area of the image data And the difference in luminance obtained by summing the difference in luminance calculated by the first comparison means for a plurality of regions that are above the image data and do not include the central region of the image data. When larger than the predetermined value Characterized by comprising a determination means backlit.
請求項2記載の発明は、上記請求項1記載の発明において、上記積分手段で得た複数の領域毎の積分値を左右方向に隣接する複数の領域間で比較し、中央の領域の輝度に対する左右の領域の輝度の差を算出する第2の比較手段を更に備え、上記判定手段は、画像データの中央部の領域を含む複数の領域を対象として上記第1の比較手段により算出された輝度の差と、画像データの上部であり画像データの中央部の領域を含まない複数の領域を対象として上記第1の比較手段により算出された輝度の差と、画像データの上部であり画像データの中央部の領域を含まない複数の領域を対象として上記第2の比較手段により算出された輝度の差とを合算して得られる輝度の差が所定値より大きい場合には逆光と判定することを特徴とする。 According to a second aspect of the present invention, in the first aspect of the present invention, the integrated values for a plurality of regions obtained by the integrating means are compared between a plurality of regions adjacent in the left-right direction, and the luminance of the central region is compared. Second comparison means for calculating a difference in luminance between the left and right areas is further provided, wherein the determination means calculates the luminance calculated by the first comparison means for a plurality of areas including a central area of the image data. And the difference in luminance calculated by the first comparison means for a plurality of areas that are above the image data and do not include the central area of the image data, and between the difference between the brightness of the image data If the difference in luminance obtained by adding together the luminance difference calculated by the second comparison means for a plurality of areas not including the central area is larger than a predetermined value, it is determined that the backlight is backlit. Features.
請求項3記載の発明は、上記請求項1または2記載の発明において、上記判定手段は、画像データの中央部の領域を含む複数の領域を対象として上記第1の比較手段により算出された輝度の差と、画像データの最上部の領域を含む複数の領域を対象として上記第1の比較手段により算出された輝度の差とを合算して得られる輝度の差が所定値より大きい場合には逆光と判定することを特徴とする。 According to a third aspect of the present invention, in the first or second aspect of the invention, the determination means is a luminance calculated by the first comparison means for a plurality of areas including a central area of the image data. And the difference in luminance obtained by adding the difference in luminance calculated by the first comparison means for a plurality of areas including the uppermost area of the image data is larger than a predetermined value. It is determined that the light is backlit.
請求項4記載の発明は、上記請求項1記載の発明において、上記判定手段は、画像データの各部において上記第1の比較手段により算出された輝度の差を合算する際に、各領域の位置に応じた重み係数を乗算してから合算することを特徴とする。 According to a fourth aspect of the present invention, in the first aspect of the present invention, the determination unit adds the luminance difference calculated by the first comparison unit in each part of the image data. Multiplying by weighting factors according to the above, and adding together.
請求項5記載の発明は、上記請求項2記載の発明において、上記判定手段は、画像データの各部において上記第1の比較手段または上記第2の比較手段により算出された輝度の差を合算する際に、各領域の位置に応じた重み係数を乗算してから合算することを特徴とする。 According to a fifth aspect of the present invention, in the second aspect of the invention, the determination means adds up the luminance differences calculated by the first comparison means or the second comparison means in each part of the image data. In this case, the weighting coefficients corresponding to the positions of the respective regions are multiplied and then added.
請求項6記載の発明は、上記請求項1乃至5いずれか記載の発明において、上記判定手段は、合算して得られた輝度の差が正である場合には逆光と判定し、負である場合には順光と判定することを特徴とする。
The invention according to claim 6 is the invention according to any one of
請求項7記載の発明は、上記請求項1乃至6いずれか記載の発明において、上記判定手段により逆光と判定された場合に逆光の補正を行う逆光補正手段を更に備えたことを特徴とする。
The invention according to claim 7 is the invention according to any one of
請求項8記載の発明は、上記請求項7記載の発明において、上記積分手段で得た複数の領域毎の積分値から輝度の分布状態を算出する算出手段と、この算出手段により算出された輝度の分布状態に応じて明るさの補正を行う明るさ補正手段とを更に具備したことを特徴とする。
請求項9記載の発明は、画像データを撮像する撮像ステップと、上記画像データを複数の領域に分割する分割ステップと、この分割ステップで分割した複数の領域毎の画像データから輝度信号を生成する生成ステップと、この生成ステップで生成した複数の領域毎の輝度信号を積分する積分ステップと、この積分ステップで得た複数の領域毎の積分値を上下方向に隣接する複数の領域間で比較し、下の領域の輝度に対する上の領域の輝度の差を算出する第1の比較ステップと、画像データの中央部の領域を含む複数の領域を対象として上記第1の比較ステップにより算出された輝度の差と、画像データの上部であり画像データの中央部の領域を含まない複数の領域を対象として上記第1の比較ステップにより算出された輝度の差とを合算して得られる輝度の差が所定値より大きい場合には逆光と判定する判定ステップとを有したことを特徴とする。
The invention according to claim 8 is the invention according to claim 7, in which the calculation means for calculating the distribution state of the luminance from the integral value for each of the plurality of regions obtained by the integration means, and the luminance calculated by the calculation means Brightness correction means for correcting the brightness in accordance with the distribution state.
According to the ninth aspect of the present invention, an imaging step for capturing image data, a dividing step for dividing the image data into a plurality of regions, and a luminance signal are generated from the image data for each of the plurality of regions divided in the dividing step. The integration step for integrating the luminance signal for each of the plurality of regions generated in this generation step, and the integration value for each of the plurality of regions obtained in this integration step are compared between a plurality of regions adjacent in the vertical direction. The first comparison step for calculating the difference in luminance of the upper region with respect to the luminance of the lower region and the luminance calculated by the first comparison step for a plurality of regions including the central region of the image data And the luminance difference calculated in the first comparison step for a plurality of areas that are above the image data and do not include the central area of the image data. The difference in brightness is is characterized in that and a determination step of determining a backlit is greater than a predetermined value.
本発明によれば、画像データを複数の領域に分割して各領域毎に輝度信号の積分値を算出し、上下方向に隣接する複数の領域間で積分値を比較して下の領域の輝度に対する上の領域の輝度の差を算出する比較手段により、画像データの中央部の領域を含む複数の領域を対象として算出された輝度の差と、この比較手段により、画像データの上部であり画像データの中央部の領域を含まない複数の領域を対象として算出された輝度の差とを合算して得られる輝度の差が所定値より大きい場合には逆光と判定することで、重要な被写体が、撮影範囲の中心領域に位置する場合であっても、撮影範囲の中心から上にずれた領域に位置している場合であっても、適正な逆光補正をかけることが可能となる。 According to the present invention, the image data is divided into a plurality of regions, the integral value of the luminance signal is calculated for each region, and the integral value is compared between the plurality of regions adjacent in the vertical direction to determine the luminance of the lower region. The brightness difference calculated for a plurality of areas including the central area of the image data by the comparison means for calculating the brightness difference of the upper area with respect to the image area, and the comparison means is an upper part of the image data. If the luminance difference obtained by adding together the luminance differences calculated for a plurality of areas not including the central area of the data is greater than a predetermined value, it is determined that the subject is an Even in the case of being located in the central region of the photographing range or in the case of being located in the region shifted upward from the center of the photographing range, it is possible to perform appropriate backlight correction.
(第1の実施の形態)
以下本発明をデジタルスチルカメラに適用した場合の第1の実施の形態について図面を参照して説明する。
(First embodiment)
A first embodiment when the present invention is applied to a digital still camera will be described below with reference to the drawings.
図1はその回路構成を示すもので、10がデジタルカメラである。このデジタルカメラ10は、記録モードと再生モードとを設定可能であり、記録モードの状態においては、レンズ11の後方に配置されたCCD12は、タイミング発生器(TG)13、垂直ドライバ14によって走査駆動され、一定周期毎に光電変換出力を1画面分出力する。
FIG. 1 shows the circuit configuration, and 10 is a digital camera. The
この光電変換出力は、アナログ値の信号の状態でRGBの各原色成分毎に適宜ゲイン調整された後に、サンプルホールド(S/H)回路15でサンプルホールドされ、A/D変換器(A/D)16でデジタルデータに変換され、カラープロセス回路17で補間処理及びγ補正処理を含むカラープロセス処理が行なわれて、デジタル値の輝度信号Y及び色差信号Cb,Crが生成され、DMA(Direct Memory Access)コントローラ18に出力される。
This photoelectric conversion output is appropriately gain-adjusted for each primary color component of RGB in the state of an analog value signal, and then is sampled and held by a sample and hold (S / H)
DMAコントローラ18は、カラープロセス回路17の出力する輝度信号Y及び色差信号Cb,Crを、同じくカラープロセス回路17からの同期信号、メモリ書込みイネーブル、クロック出力を用いて一度DMAコントローラ18内部のバッファに書込み、DRAMインタフェース(I/F)19を介してDRAM20にDMA転送を行なう。
The
CPU21は、上記輝度及び色差信号のDRAM20へのDMA転送終了後に、この輝度及び色差信号をDRAMインタフェース19を介してDRAM20より読出し、VRAMコントローラ22を介してVRAM23に書込む。
After completing the DMA transfer of the luminance and color difference signals to the
デジタルビデオエンコーダ(以下「ビデオエンコーダ」と略称する)24は、上記輝度及び色差信号をVRAMコントローラ22を介してVRAM23より定期的に読出し、これらのデータを元にビデオ信号を発生して表示部25に出力する。
A digital video encoder (hereinafter abbreviated as “video encoder”) 24 periodically reads the luminance and color difference signals from the
この表示部25は、例えばバックライト付のカラー液晶表示パネルとその駆動回路とで構成され、カメラ本体の背面側に配設されて、記録モード時にはEVF(Electronic View Finder:電子ビューファインダ)として機能するもので、ビデオエンコーダ24からのビデオ信号に基づいた表示を行なうことで、その時点でVRAMコントローラ22から取込んでいる画像情報に基づく画像を表示することとなる。
The
そして、このように表示部25にその時点での画像がモニタ画像としてリアルタイムに表示されている状態で、記録保存を行ないたいタイミングでキー入力部26を構成する複数のキー中のシャッタキーを操作すると、トリガ信号を発生する。
Then, with the image at that time being displayed as a monitor image in real time on the
CPU21は、このトリガ信号に応じてその時点でCCD12から取込んでいる1画面分の輝度及び色差信号のDRAM20へのDMA転送の終了後、直ちにCCD12からのDRAM20への経路を停止し、記録保存の状態に遷移する。
In response to this trigger signal, the
この記録保存の状態では、CPU21がDRAM20に書込まれている1フレーム分の輝度及び色差信号をDRAMインタフェース19を介してY,Cb,Crの各コンポーネント毎に縦8画素×横8画素の基本ブロックと呼称される単位で読出してJPEG回路27に書込み、このJPEG回路27でADCT(Adaptive Discrete Cosine Transform:適応離散コサイン変換)、エントロピ符号化方式であるハフマン符号化等の処理により圧縮し、得た符号データを1画像データファイルとして該JPEG回路27から読出し、このデジタルカメラ10の記憶媒体として着脱自在に装着される、不揮発性メモリであるフラッシュメモリ28に書込む。
In this recording and storage state, the
そして、1フレーム分の輝度及び色差信号の圧縮処理及びフラッシュメモリ28への全圧縮データの書込み終了に伴なって、CPU21は再度CCD12からDRAM20への経路を起動する。
Then, the
この際、併せてCPU21は、元の画像データの構成画素数を大幅に間引いた画像データを作成し、これをサムネイル画像とも呼称されるプレビュー画像として元の画像データに関連付けてフラッシュメモリ28に記憶させる。
At this time, the
なお、上記キー入力部26は、上述したシャッタキーの他に、記録(REC)モードと再生(PLAY)モードとを切換える録/再モード切換えキー、画像選択等のために上下左右各方向を指示するカーソルキーや「Enter」キー等から構成され、キー操作に伴なう信号は直接CPU21へ送出される。
In addition to the shutter key described above, the
また、再生モードでは、CPU21はCCD12からDRAM20への経路を停止し、キー入力部26の画像選択キー等の操作に応じてCPU21がフラッシュメモリ28から特定の1フレーム分の符号データを読出してJPEG回路27に書込み、JPEG回路27で伸長処理を行なって得られた縦8画素×横8画素の基本ブロック単位に、VRAMコントローラ22を介してVRAM23へ1フレーム分のYUVデータを展開記憶させる。すると、ビデオエンコーダ24は、VRAM23に展開記憶されている1フレーム分のYUVデータを元にビデオ信号を発生し、表示部25で表示させる。
Further, in the playback mode, the
次に上記実施の形態の動作について説明する。 Next, the operation of the above embodiment will be described.
ここでは、記録モード時に測光モードでマルチ測光モードが設定されている際には自動逆光補正を行なうものとしてその動作を説明する。 Here, the operation will be described assuming that automatic backlight correction is performed when the multi-metering mode is set in the metering mode during the recording mode.
図2は主としてCPU21によりなされる処理内容を示すもので、その当初には測光モードがマルチ測光モードであるか否かを判断し(ステップA01)、そうでなければキー入力部26のシャッタキーが操作されたか否かを判断する(ステップA02)、という処理を所定の周期で繰返し実行することで、これらを待機する。
FIG. 2 mainly shows the processing contents performed by the
しかして、上記ステップA01でマルチ測光モードであると判断した場合、直ちに逆光判定を行なうための画像データを得るべく、AF(オートフォーカス)、AE、AWB(自動ホワイトバランス)調整により撮影を行ない、画像データを取得する(ステップA03)。 If it is determined in step A01 that the multi-metering mode is selected, shooting is performed by AF (auto focus), AE, and AWB (automatic white balance) adjustment in order to obtain image data for immediately performing backlight determination. Image data is acquired (step A03).
そして、取得した画像データをDRAM20に記憶した段階で、特にその輝度信号Yに対して図3に示すような、例えば縦5×横10の計50のブロック領域に分割する(ステップA04)。
Then, at the stage where the acquired image data is stored in the
こうして分割した各ブロック領域毎の輝度信号Yを積分処理する(ステップA05)。積分により得られたブロック領域毎の積分値を図示する如く「Sum00」〜「Sum49」とすると、次にこれら積分値「Sum00」〜「Sum49」を用い、横方向に隣り合う2つのブロック領域どうしを統合するものとして図中で示す25のブロック領域に再分割するものとする。 The luminance signal Y for each block area divided in this way is integrated (step A05). Assuming that the integration values for each block area obtained by integration are “Sum00” to “Sum49” as shown in the figure, these integration values “Sum00” to “Sum49” are used next, and two block areas adjacent in the horizontal direction are used. Are subdivided into 25 block areas shown in FIG.
この場合、各ブロック領域の積分値を「a0」〜「e4」とすると、まず全ブロック領域の積分値により、1画素当たりの輝度信号Yのレベルの平均値が、ある一定の基準値になる露光時間に合せるものとする。すなわち、
Yref=(sum00+sum01+‥‥+sum49)/(50*n) …(1)
(但し、Yref :1画素当たりの輝度基準値、
n:1ブロック毎の画素数。)
この基準値Yref に合せた状態でのブロック領域毎の積分値を用いて逆光係数算出式を実行する(ステップA06)。すなわち、
add1=b1+b2+b3 …(2)
add2=a1+a2+a3 …(3)
L=(add1*X/c1+add1*X/c2+add1*X/c3−X*9) …(4)
M=(add2*Y/b1+add2*Y/b2+add2*Y/b3−Y*9) …(5)
N=((a1+a3)*Z/a2−Z*2) …(6)
Against =L+M+N …(7)
(但し、Against :出力係数、
X,Y,Z :夫々出力係数の大きさに与える影響をブロック領域の位置に
応じて重付けする定数で、重付けしない際は「1」。)
上記式(7)で使用される変数Lを定義する式(4)は、画像データの中央部における比較を行なうものであり、c1,c2,c3に位置するブロック領域とその上の3つのブロック領域b1,b2,b3との輝度に差があるかを判断するためのものである。
In this case, assuming that the integration value of each block area is “a0” to “e4”, the average value of the level of the luminance signal Y per pixel first becomes a certain reference value by the integration value of all the block areas. It shall be adjusted to the exposure time. That is,
Yref = (sum00 + sum01 + ... + sum49) / (50 * n) (1)
(However, Yref: luminance reference value per pixel,
n: Number of pixels per block. )
The backlight coefficient calculation formula is executed using the integrated value for each block area in the state matched with the reference value Yref (step A06). That is,
add1 = b1 + b2 + b3 (2)
add2 = a1 + a2 + a3 (3)
L = (add1 * X / c1 + add1 * X / c2 + add1 * X / c3−X * 9) (4)
M = (add2 * Y / b1 + add2 * Y / b2 + add2 * Y / b3−Y * 9) (5)
N = ((a1 + a3) * Z / a2-Z * 2) (6)
Against = L + M + N (7)
(However, Against: Output coefficient,
X, Y, Z: The effect on the size of the output coefficient is determined by the position of the block area.
It is a constant that is weighted accordingly. "1" when not weighted. )
Expression (4) that defines the variable L used in the above expression (7) is for comparison at the center of the image data, and the block area located at c1, c2, and c3 and the three blocks above it. This is to determine whether there is a difference in luminance from the areas b1, b2, and b3.
また、上記式(7)で使用される変数Mを定義する式(5)は、画像データの最上部における比較を行なうものであり、b1,b2,b3に位置するブロック領域とその上の3つのブロック領域a1,a2,a3との輝度に差があるかを判断するためのものである。 The equation (5) defining the variable M used in the above equation (7) is for comparison at the uppermost part of the image data, and the block region located at b1, b2, b3 and 3 above it. This is for determining whether there is a difference in luminance between the two block areas a1, a2 and a3.
さらに、上記式(7)で使用される変数Nを定義する式(6)は、画像データの最上部左右における比較を行なうものであり、a2に位置するブロック領域とその左右のブロック領域a1,a3との輝度に差があるかを判断するためのものである。 Further, the equation (6) defining the variable N used in the above equation (7) is for comparing the left and right uppermost portions of the image data. The block region located at a2 and the left and right block regions a1, This is for determining whether there is a difference in luminance from a3.
こうして得られた出力係数Againstを逆光判定係数として、その値により逆光判定のための比較処理を実行する(ステップA07)。 The output coefficient Against obtained in this way is used as a backlight determination coefficient, and a comparison process for backlight determination is executed based on the value (step A07).
ここで、仮に画像データが全面に渡って均一な輝度であり、各ブロック領域の輝度データの積分値が等しかった場合には、上記式(4)〜(6)で変数L,M,Nにより、画像データの中央部、最上部、及び最上部左右の比較を行なった後に、係数及び比較ブロック数の乗算値と同等の値とを減算しているため、最終的な計算結果である係数Againstも「0(ゼロ)」になる。 Here, if the image data has uniform brightness over the entire surface and the integrated value of the brightness data in each block area is equal, the variables L, M, and N in the above equations (4) to (6). After the comparison of the center, top and left and right of the top of the image data, the coefficient Against which is the final calculation result is subtracted from the value equivalent to the product of the coefficient and the number of comparison blocks. Becomes “0 (zero)”.
これに対し、逆光であった場合には係数Againstは「+(プラス)」に、また順光であった場合には係数Againstは「−(マイナス)」になる。この点について、以下に説明する。 On the other hand, the coefficient Against is “+ (plus)” in the case of backlight, and the coefficient Against is “− (minus)” in the case of direct light. This point will be described below.
いま、例えば被写体の最も重要な部分である人物の顔が、上記図3で示した撮影範囲の中心であるブロック領域c2に位置する場合について考えるものとする。 For example, let us consider a case where the face of a person who is the most important part of the subject is located in the block region c2 which is the center of the shooting range shown in FIG.
この場合、予め一定の基準であるYrefに合せた状態での積分値の比較となるので、画像データ中にそれより明るいブロック領域が存在すれば、同様に暗いブロック領域も存在することとなる。 In this case, since the integration value is compared with Yref which is a predetermined reference in advance, if a brighter block area exists in the image data, a dark block area similarly exists.
人物の顔がブロック領域c2に位置しており、且つ背景が明るい逆光の場合には、ブロック領域c2とその上の3ブロック領域b1〜b3とを比較した値が「+(プラス)」となる。 When the face of a person is located in the block area c2 and the background is bright backlight, the value obtained by comparing the block area c2 with the three block areas b1 to b3 above is “+ (plus)”. .
一方、被写体の顔の左右であるブロック領域c1,c3とその上の3つのブロック領域b1〜b3との比較結果は、同等の明るさとなり、比較した値はほとんど「0(ゼロ)」となる。したがって、上記式(4)における変数Lは「+(プラス)」となる。 On the other hand, the comparison results between the block areas c1 and c3 on the left and right of the subject's face and the three block areas b1 to b3 above are equivalent to each other, and the compared value is almost “0 (zero)”. . Therefore, the variable L in the above equation (4) is “+ (plus)”.
また、被写体の顔の部分のブロック領域c2の上に位置する3つのブロック領域b1〜b3と、さらにその上に位置する3つのブロック領域a1〜a3において同様の比較を行なうと同等の明るさとなるので、上記式(5)における変数Mとなる比較値はほとんど「0(ゼロ)」となる。 Further, if the same comparison is made in the three block areas b1 to b3 positioned above the block area c2 of the face portion of the subject and the three block areas a1 to a3 positioned further above, the same brightness is obtained. Therefore, the comparison value that is the variable M in the above equation (5) is almost “0 (zero)”.
そして、最上部中央のブロック領域a2とその左右のブロック領域a1,a3との比較においても、同等の明るさとなり、上記式(6)における変数Nとなる比較値はほとんど「0(ゼロ)」となる。 Further, in the comparison between the uppermost center block area a2 and its left and right block areas a1 and a3, the brightness is equivalent, and the comparison value as the variable N in the above equation (6) is almost “0 (zero)”. It becomes.
結果として、全体としては、被写体となる人物の顔が位置しているブロック領域c2とその上の3ブロック領域b1〜b3との比較値「+(プラス)」の数値がそのまま出力係数Againstそのものとなるもので、特にブロック領域c2とその上の3ブロック領域b1〜b3とで輝度値の積分値の差が大きい場合にはその比較値の数値もそれに連れて大きいものとなる。 As a result, as a whole, the numerical value of the comparison value “+ (plus)” between the block area c2 where the face of the person who is the subject is located and the three block areas b1 to b3 above the block area c2 is the output coefficient Against itself. In particular, when the difference in the integral value of the luminance value is large between the block region c2 and the three block regions b1 to b3 above the block region c2, the numerical value of the comparison value also increases accordingly.
次に、被写体の最も重要な部分である人物の顔が、上記図3で示した撮影範囲の中心から1つ左側にずれたブロック領域c1に位置する場合について考える。 Next, consider the case where the face of the person, the most important part of the subject, is located in the block area c1 shifted to the left by one from the center of the shooting range shown in FIG.
この場合も人物の顔がブロック領域c1に位置しており、且つ背景が明るい逆光の場合には、ブロック領域c1とその上の3ブロック領域b1〜b3とを比較した値のみが「+(プラス)」となり、その他の場合は上記ほとんど「0(ゼロ)」となるので、全体としては、被写体となる人物の顔が位置しているブロック領域c1とその上の3ブロック領域b1〜b3との比較値「+(プラス)」の数値がそのまま出力係数Againstそのものとなる。 Also in this case, when the face of the person is located in the block area c1 and the background is bright and the backlight is bright, only the value obtained by comparing the block area c1 with the three block areas b1 to b3 above is “+ (plus ) ”, And in most other cases,“ 0 (zero) ”. Therefore, as a whole, the block area c1 where the face of the person who is the subject is located and the three block areas b1 to b3 above the block area c1 The numerical value of the comparison value “+ (plus)” becomes the output coefficient Against itself.
同様に、被写体の最も重要な部分である人物の顔が上記図3で示した撮影範囲の中心から1つ上にずれたブロック領域b1〜b3のいずれに位置している場合であっても、背景となる周囲のブロック領域が明るい逆光の場合には、ブロック領域b1(またはb2,b3)とさらにその上の3ブロック領域a1〜a3とを比較した値のみが「+(プラス)」となり、その他の場合はほとんど「0(ゼロ)」となるので、全体としては、被写体となる人物の顔が位置しているブロック領域b1とその上の3ブロック領域b1〜b3との比較値「+(プラス)」の数値がそのまま出力係数Againstそのものとなる。 Similarly, even if the face of the person who is the most important part of the subject is located in any of the block areas b1 to b3 that are shifted up by one from the center of the shooting range shown in FIG. When the surrounding block area as the background is bright backlight, only the value obtained by comparing the block area b1 (or b2, b3) with the three block areas a1 to a3 further above is “+ (plus)”. In other cases, the value is almost “0 (zero)”. Therefore, as a whole, a comparison value “+ () between the block area b1 where the face of the person who is the subject is located and the three block areas b1 to b3 above the block area b1. The numerical value of “plus)” becomes the output coefficient Against itself.
さらに、被写体の最も重要な部分である人物の顔が上記図3で示した撮影範囲の最上部のブロック領域a2に位置している場合であっても、背景となる周囲のブロック領域が明るい逆光の場合には、ブロック領域a2とその左右のブロック領域a1,a3とを比較した値が「+(プラス)」となり、その他の場合はほとんど「0(ゼロ)」となるので、全体としては、被写体となる人物の顔が位置しているブロック領域b1とその上の3ブロック領域b1〜b3との比較値「+(プラス)」の数値がそのまま出力係数Againstそのものとなる。 Furthermore, even when the face of the person, the most important part of the subject, is located in the uppermost block area a2 of the shooting range shown in FIG. In this case, the value obtained by comparing the block area a2 with the left and right block areas a1 and a3 is “+ (plus)”. In other cases, the value is almost “0 (zero)”. The numerical value of the comparison value “+ (plus)” between the block area b1 where the face of the person who is the subject is located and the three block areas b1 to b3 thereabove becomes the output coefficient Against itself.
しかして、このように逆光が生じている場合には出力係数Againstによりこれを判定することができるもので、上記図2の処理では、上記ステップA07で逆光判定の比較演算を行なった結果、逆光が生じていたか否かを判断する(ステップA08)。 Thus, when the backlight is generated in this way, it can be determined by the output coefficient Against. In the process of FIG. 2, the result of the comparison operation of the backlight determination in the step A07 results in the backlight. Whether or not has occurred has been determined (step A08).
そして、逆光が生じていると判断した場合にのみ、その出力係数値に対応してAEの露出値を補正、具体的には出力係数値に応じた分だけ露出値をプラス方向に補正設定し(ステップA09)、それから上記ステップA02に進んでシャッタキーが操作されるのを待機する。 Then, only when it is determined that backlighting has occurred, the AE exposure value is corrected corresponding to the output coefficient value, specifically, the exposure value is corrected and set in the positive direction by the amount corresponding to the output coefficient value. (Step A09) Then, the process proceeds to Step A02 to wait for the shutter key to be operated.
しかるに、ステップA01,A02の処理を繰返し実行しながらシャッタキーが操作されるのを待機する過程で、マルチ測光モードが設定されている場合には逐次上記ステップA03〜A09の処理を行なうことにより、逆光が生じている場合でもリアルタイムでその露出値の補正設定を行なうことができる。 However, in the process of waiting for the shutter key to be operated while repeatedly executing the processes of steps A01 and A02, when the multi-metering mode is set, the processes of steps A03 to A09 are sequentially performed. Even when backlighting occurs, the exposure value can be corrected in real time.
そして、ステップA02でシャッタキーが操作されたと判断した時点で、直ちに撮影に移行し、まずAF(自動合焦)を行なって被写体の正確な合焦距離を得る(ステップA10)。 When it is determined in step A02 that the shutter key has been operated, the process immediately shifts to shooting, and AF (automatic focusing) is first performed to obtain an accurate focusing distance of the subject (step A10).
次いで、その合焦した状態で、マルチ測光モードが設定されているか否かを判断するもので(ステップA11)、マルチ測光モードが設定されておらず、他の測光モードであると判断した場合にはその測光モードに応じたAEを行なう一方(ステップA12)、マルチ測光モードであると判断した場合には、上記ステップA09での処理により必要に応じて逆光補正を行なったその時点で最も新しい露出値を設定する(ステップA13)。 Next, in the focused state, it is determined whether or not the multi-metering mode is set (step A11), and when it is determined that the multi-metering mode is not set and the other metering mode is set. While performing AE in accordance with the photometry mode (step A12), if it is determined that it is the multi-photometry mode, the latest exposure at that time when the backlight correction is performed as necessary by the processing in step A09. A value is set (step A13).
その後、AWB調整を行なった上で(ステップA14)、画像データの撮影を行ない(ステップA15)、得た画像データをJPEG回路27にてデータ圧縮させ、得た画像データを記録媒体であるフラッシュメモリ28に書込み(ステップA16)、それから再び次の撮影に備えて上記ステップA01からの処理に戻る。
Thereafter, after performing AWB adjustment (step A14), image data is shot (step A15), the obtained image data is compressed by the
このように、画像データを複数のブロック領域に分割した上でその輝度信号を積分することでブロック領域毎の積分値を得、それら積分値の相互間での比較結果により逆光の判定を行なうので、ソフトウェアによる処理ながら、取扱うデータ量が充分に小さいために短時間で演算を終えることができ、撮影した画像データから迅速に逆光の状態を判定して本撮影に活用して、適正な露出出の撮影を実行することが可能となる。 In this way, the image data is divided into a plurality of block areas, and the luminance signal is integrated to obtain an integrated value for each block area, and the backlight is determined based on a comparison result between the integrated values. Because the amount of data handled is sufficiently small while processing by software, the calculation can be completed in a short time, and the backlit state can be quickly determined from the captured image data and used for actual shooting to obtain the proper exposure output. It is possible to execute the shooting.
また、ブロックの比較するパターンを上部の3ブロック領域としたがその組み合わせを変えても可能なことは言うまでもない。 Further, although the upper three block areas are used as the pattern to be compared with the blocks, it goes without saying that the combination can be changed.
(第2の実施の形態)
以下本発明をデジタルスチルカメラに適用した場合の第2の実施の形態について図面を参照して説明する。
(Second Embodiment)
A second embodiment when the present invention is applied to a digital still camera will be described below with reference to the drawings.
なお、回路構成自体は上記図1で示したものと基本的にほぼ同様であるものとして、同一部分には同一符号を付してその図示及び説明は省略するものとする。 Note that the circuit configuration itself is basically the same as that shown in FIG. 1, and the same parts are denoted by the same reference numerals, and the illustration and description thereof will be omitted.
次に上記実施の形態の動作について説明する。 Next, the operation of the above embodiment will be described.
ここでは、記録モード時に測光モードでマルチ測光モードが設定されている際に明るさの補正を行なうものとしてその動作を説明する。 Here, the operation will be described assuming that the brightness is corrected when the multi-metering mode is set in the metering mode during the recording mode.
図4は主としてCPU21によりなされる処理内容を示すもので、その当初には測光モードがマルチ測光モードであるか否かを判断し(ステップB01)、そうでなければキー入力部26のシャッタキーが操作されたか否かを判断する(ステップB02)、という処理を所定の周期で繰返し実行することで、これらを待機する。
FIG. 4 mainly shows the processing contents performed by the
しかして、上記ステップB01でマルチ測光モードであると判断した場合、直ちに逆光判定を行なうための画像データを得るべく、AF(オートフォーカス)、AE、AWB(自動ホワイトバランス)調整により撮影を行ない、画像データを取得する(ステップB03)。 If it is determined in step B01 that the multi-metering mode is selected, shooting is performed by AF (auto focus), AE, and AWB (automatic white balance) adjustments in order to obtain image data for performing backlight determination immediately. Image data is acquired (step B03).
そして、取得した画像データをDRAM20に記憶した段階で、特にその輝度信号Yに対して図5に示すような、例えば縦5×横10の計50のブロック領域に分割する(ステップB04)。
Then, at the stage where the acquired image data is stored in the
こうして分割した各ブロック領域毎の輝度信号Yを積分処理する(ステップB05)。積分により得られたブロック領域毎の積分値を図示する如く「Sum00」〜「Sum49」とする。 The luminance signal Y for each block area thus divided is integrated (step B05). The integrated values for each block region obtained by the integration are “Sum00” to “Sum49” as shown in the figure.
これら輝度信号の積分値「Sum00」〜「Sum49」を用いたヒストグラムが例えば図6に示すような分布であったものとする。この場合、横軸が8ビットの数値で表現した輝度の積分値、縦軸がブロック数であり、総ブロック数は「50」となる。 It is assumed that the histogram using the integration values “Sum00” to “Sum49” of these luminance signals has a distribution as shown in FIG. In this case, the horizontal axis represents the integral value of luminance expressed by 8-bit numerical values, the vertical axis represents the number of blocks, and the total number of blocks is “50”.
同図は、例えば白い紙のような、きわめて単調な画像パターンの被写体を撮影した場合の輝度分布を示すものであり、明るさの分布がほぼ1か所に集中している。 This figure shows a luminance distribution when a subject having a very monotonous image pattern, such as white paper, is photographed, and the brightness distribution is concentrated in almost one place.
そのため、画像データとしては均一な明るさを有するものとなり、第1の実施の形態で示したような逆光補正を行なうようなことはしない。 Therefore, the image data has a uniform brightness, and the backlight correction as shown in the first embodiment is not performed.
しかしながら、このようなきわめて狭い範囲に輝度分布が集中しているような場合には、中間調であるグレーはそのまま忠実にグレーとして処理される一方、白や黒といった輝度の値が極端なものも基準に合せることでグレーとして処理されてしまう。 However, when the luminance distribution is concentrated in such a very narrow range, gray that is a halftone is processed as it is faithfully as it is, but some of the luminance values such as white and black are extreme. If it matches the standard, it will be processed as gray.
これは、一面の青空を撮影してもグレーの画像、すなわち曇り空として処理されてしまうことを意味するもので、明るさの調整が必要となる。 This means that even if a single blue sky is photographed, it is processed as a gray image, that is, a cloudy sky, and brightness adjustment is required.
そこで、まず上記積分値「Sum00」〜「Sum49」を用い、1画素当たりの輝度信号Yのレベルの平均値が、ある一定の基準値になる露光時間に合せるものとする。すなわち、
Yref=(sum00+sum01+‥‥+sum49)/(50*n) …(8)
(但し、Yref :1画素当たりの輝度基準値、
n:1ブロック毎の画素数。)
この基準値Yrefに合せた状態でのブロック領域毎の積分値を用いて明るさの比較値を算出する(ステップB06)。すなわち、
VALUE =(絞りF値)2/露光時間 …(9)
(但し、VALUE :相対的な明るさ(=EV)。)
として明るさの比較値VALUEを算出するもので、上記式(9)の右辺には、さらにこのデジタルカメラ10固体のばらつき係数を乗算するものとしてもよい。
Therefore, first, the integrated values “Sum00” to “Sum49” are used, and the average value of the level of the luminance signal Y per pixel is adjusted to the exposure time at which a certain reference value is obtained. That is,
Yref = (sum00 + sum01 + ... + sum49) / (50 * n) (8)
(However, Yref: luminance reference value per pixel,
n: Number of pixels per block. )
A brightness comparison value is calculated using the integrated value for each block region in a state in accordance with the reference value Yref (step B06). That is,
VALUE = (Aperture F value) 2 / Exposure time (9)
(However, VALUE: Relative brightness (= EV).)
The brightness comparison value VALUE is calculated as follows, and the right side of the equation (9) may be further multiplied by a variation coefficient of the
しかして、上記式(9)は、比較値VALUEが露光時間に反比例することを示しており、基準値Yrefに合せた時の露光時間が2倍になると、1段階暗くなったことになるので、明るさの比較値としては1/2になることを示している。 Therefore, the above equation (9) indicates that the comparison value VALUE is inversely proportional to the exposure time, and when the exposure time when the reference value Yref is adjusted is doubled, it is darkened by one step. The brightness comparison value is ½.
しかして、このようにして算出した比較値VALUEを、予め用意したしきい値と比較し(ステップB07)、比較値VALUEが該しきい値より大きいか否かにより、明るさの補正を行なうか否かを判断する(ステップB08)。 Thus, the comparison value VALUE calculated in this way is compared with a threshold value prepared in advance (step B07), and brightness correction is performed depending on whether or not the comparison value VALUE is larger than the threshold value. It is determined whether or not (step B08).
そして、明るさの補正を行なうと判断した場合にのみ、実際の撮影時に、より明るい画像を得ることができるように、絞りF値、シャッタスピード、A/D変換器16で調整するCCD12出力のゲイン等を補正設定し(ステップB09)、それから上記ステップB02に進んでシャッタキーが操作されるのを待機する。
Only when it is determined that the brightness is to be corrected, the aperture F value, the shutter speed, and the
しかるに、ステップB01,B02の処理を繰返し実行しながらシャッタキーが操作されるのを待機する過程で、マルチ測光モードが設定されている場合には逐次上記ステップB03〜B09の処理を行なうことにより、明るさの補正が必要な際には適宜これに対処して露出値の補正設定を行なうことができる。 However, in the process of waiting for the shutter key to be operated while repeatedly executing the processes of steps B01 and B02, when the multi-metering mode is set, the processes of steps B03 to B09 are sequentially performed. When it is necessary to correct the brightness, the exposure value can be corrected and set appropriately.
そして、ステップB02でシャッタキーが操作されたと判断した時点で、直ちに撮影に移行し、まずAF(自動合焦)を行なって被写体の正確な合焦距離を得る(ステップB10)。 When it is determined in step B02 that the shutter key has been operated, the process immediately shifts to shooting, and AF (automatic focusing) is first performed to obtain an accurate focusing distance of the subject (step B10).
次いで、その合焦した状態で、マルチ測光モードが設定されているか否かを判断するもので(ステップB11)、マルチ測光モードが設定されておらず、他の測光モードであると判断した場合にはその測光モードに応じたAEを行なう一方(ステップB12)、マルチ測光モードであると判断した場合には、上記ステップB09での処理により必要に応じて明るさの補正を行なったその時点で最も新しい露出値を設定する(ステップB13)。 Next, in the in-focus state, it is determined whether or not the multi-metering mode is set (step B11). When it is determined that the multi-metering mode is not set and the other metering mode is set. While performing AE according to the photometry mode (step B12), if it is determined that the multi-photometry mode is selected, the brightness is corrected as necessary by the processing in step B09, and the most at that time. A new exposure value is set (step B13).
その後、AWB調整を行なった上で(ステップB14)、画像データの撮影を行ない(ステップB15)、得た画像データをJPEG回路27にてデータ圧縮させ、得た画像データを記録媒体であるフラッシュメモリ28に書込み(ステップB16)、それから再び次の撮影に備えて上記ステップB01からの処理に戻る。
Thereafter, after performing AWB adjustment (step B14), image data is photographed (step B15), the obtained image data is compressed by the
このように、画像データを複数のブロック領域に分割した上でその輝度信号を積分することでブロック領域毎の積分値を得、それら積分値のしきい値との比較結果により明るさの判定を行なうので、ソフトウェアでの処理ながら取扱うデータ量が充分に小さいために短時間で演算を終えることができ、撮影した画像データから迅速に明るさの状態を判定して、例えば暗い環境下でグレーに見える白い紙と、明るい環境下で正しく白に見える白い紙を正確に中間調を適切に表現するべく必要により露出を補正設定することで、本撮影に活用して適正な露出を得ることが可能となる。 In this way, the image data is divided into a plurality of block areas, and the luminance signal is integrated to obtain an integrated value for each block area, and the brightness is determined based on the comparison result with the threshold value of the integrated value. Since the amount of data handled while being processed by software is sufficiently small, the calculation can be completed in a short time, and the brightness state can be quickly determined from the captured image data, for example, gray in a dark environment The correct exposure can be used for actual shooting by adjusting the exposure as necessary to accurately represent the halftone between the white paper that is visible and the white paper that appears white correctly in a bright environment. It becomes.
なお、上記第1の実施の形態で示した逆光による露出補正を行なう方法と、第2の実施の形態で示した明るさの分布に対応した露出補正を行なう方法は、併用して実行することで、より正確な露出制御を実現することが可能となるものである。 Note that the method of performing exposure correction by backlight shown in the first embodiment and the method of performing exposure correction corresponding to the brightness distribution shown in the second embodiment are executed in combination. Thus, more accurate exposure control can be realized.
その場合、逆光が発生するような、ブロック間の輝度値に大きな差が現出するようなケースでは、輝度値のヒストグラムは大きく分布が広がる傾向にあるため、逆光による補正を行なう一方で、明るさに関する補正は行なえず、一方、逆光が発生せず、全体がほぼ均一な輝度となっているケースでは、そのときの明るさに合せて輝度分布から露出補正を行なうようにするような設定とすることが可能となる。 In such a case, in a case where a large difference appears in the luminance value between blocks where backlighting occurs, the histogram of luminance values tends to have a large distribution. On the other hand, in the case where backlighting does not occur and the overall brightness is almost uniform, the exposure is adjusted from the brightness distribution according to the brightness at that time. It becomes possible to do.
また、上記各実施の形態では画像データを例えば50のブロック領域に分割するものとした。その場合、画像全体の2%未満の範囲であれば、著しく大きな輝度の差があったとしても、輝度値の分布には反映されず、マルチ測光モードにおける適正な露出値を得る際に悪影響を及ぼすことはないものと判断できる。 In each of the above embodiments, the image data is divided into, for example, 50 block areas. In that case, if the range is less than 2% of the entire image, even if there is a remarkably large difference in luminance, it will not be reflected in the distribution of luminance values, and will have an adverse effect on obtaining an appropriate exposure value in the multi-photometry mode. It can be judged that there is no effect.
同様に、画像データを分割するブロック領域の数が小さくなると、露出補正を負う樽の制度が低下することとなるが、ある程度の範囲までであれば、著しく大きな輝度の差があったとしても、その影響を吸収することができる。 Similarly, if the number of block areas into which image data is divided becomes smaller, the barrel system that bears exposure correction will decrease, but if it is up to a certain range, even if there is a significantly large luminance difference, The effect can be absorbed.
その他、本発明は上記実施の形態に限らず、その要旨を逸脱しない範囲内で種々変形して実施することが可能であるものとする。 In addition, the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the scope of the invention.
さらに、上記実施の形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜な組合わせにより種々の発明が抽出され得る。例えば、実施の形態に示される全構成要件からいくつかの構成要件が削除されても、発明が解決しようとする課題の欄で述べた課題の少なくとも1つが解決でき、発明の効果の欄で述べられている効果の少なくとも1つが得られる場合には、この構成要件が削除された構成が発明として抽出され得る。 Further, the above embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some constituent elements are deleted from all the constituent elements shown in the embodiment, at least one of the problems described in the column of the problem to be solved by the invention can be solved, and described in the column of the effect of the invention. In a case where at least one of the obtained effects can be obtained, a configuration in which this configuration requirement is deleted can be extracted as an invention.
10…デジタルカメラ
11…レンズ
12…CCD
13…タイミング発生器(TG)
14…垂直ドライバ
15…サンプルホールド回路(S/H)
16…A/D変換器(A/D)
17…カラープロセス回路
18…DMAコントローラ
19…DRAMインタフェース(I/F)
20…DRAM
21…CPU
22…VRAMコントローラ
23…VRAM
24…ビデオエンコーダ
25…表示部
26…キー入力部
27…JPEG回路
28…フラッシュメモリ
10 ...
13 ... Timing generator (TG)
14 ...
16 ... A / D converter (A / D)
17 ...
20 ... DRAM
21 ... CPU
22 ...
24 ...
Claims (9)
上記画像データを複数の領域に分割する分割手段と、
この分割手段で分割した複数の領域毎の画像データから輝度信号を生成する生成手段と、
この生成手段で生成した複数の領域毎の輝度信号を積分する積分手段と、
この積分手段で得た複数の領域毎の積分値を上下方向に隣接する複数の領域間で比較し、下の領域の輝度に対する上の領域の輝度の差を算出する第1の比較手段と、
画像データの中央部の領域を含む複数の領域を対象として上記第1の比較手段により算出された輝度の差と、画像データの上部であり画像データの中央部の領域を含まない複数の領域を対象として上記第1の比較手段により算出された輝度の差とを合算して得られる輝度の差が所定値より大きい場合には逆光と判定する判定手段と
を具備したことを特徴とする自動露出装置。 An image sensor for imaging image data;
Dividing means for dividing the image data into a plurality of regions;
Generating means for generating a luminance signal from image data for each of a plurality of areas divided by the dividing means;
Integrating means for integrating the luminance signals for each of the plurality of regions generated by the generating means;
A first comparing means for comparing the integral values for each of the plurality of areas obtained by the integrating means between a plurality of areas adjacent in the vertical direction and calculating a difference in luminance of the upper area with respect to the luminance of the lower area;
The luminance difference calculated by the first comparison means for a plurality of areas including the central area of the image data and a plurality of areas that are above the image data and do not include the central area of the image data. An automatic exposure comprising: a determination means for determining that the object is backlit when the luminance difference obtained by adding the luminance difference calculated by the first comparison means as a target is larger than a predetermined value. apparatus.
上記判定手段は、画像データの中央部の領域を含む複数の領域を対象として上記第1の比較手段により算出された輝度の差と、画像データの上部であり画像データの中央部の領域を含まない複数の領域を対象として上記第1の比較手段により算出された輝度の差と、画像データの上部であり画像データの中央部の領域を含まない複数の領域を対象として上記第2の比較手段により算出された輝度の差とを合算して得られる輝度の差が所定値より大きい場合には逆光と判定することを特徴とする請求項1記載の自動露出装置。 A second comparing means for comparing the integrated values of the plurality of areas obtained by the integrating means between a plurality of areas adjacent in the left-right direction, and calculating a difference in luminance between the left and right areas with respect to the luminance of the central area; Prepared,
The determination means includes a luminance difference calculated by the first comparison means for a plurality of areas including a central area of the image data, and an upper area of the image data and a central area of the image data. The difference in luminance calculated by the first comparison unit for a plurality of non-regions and the second comparison unit for a plurality of regions that are above the image data and do not include the central region of the image data. 2. The automatic exposure apparatus according to claim 1, wherein when the difference in luminance obtained by adding together the difference in luminance calculated by the above is larger than a predetermined value, it is determined as backlight.
この算出手段により算出された輝度の分布状態に応じて明るさの補正を行う明るさ補正手段と
を更に具備したことを特徴とする請求項7記載の自動露出装置。 A calculation means for calculating a luminance distribution state from an integral value for each of a plurality of areas obtained by the integration means;
8. The automatic exposure apparatus according to claim 7, further comprising brightness correction means for correcting brightness according to the luminance distribution state calculated by the calculation means.
上記画像データを複数の領域に分割する分割ステップと、
この分割ステップで分割した複数の領域毎の画像データから輝度信号を生成する生成ステップと、
この生成ステップで生成した複数の領域毎の輝度信号を積分する積分ステップと、
この積分ステップで得た複数の領域毎の積分値を上下方向に隣接する複数の領域間で比較し、下の領域の輝度に対する上の領域の輝度の差を算出する第1の比較ステップと、
画像データの中央部の領域を含む複数の領域を対象として上記第1の比較ステップにより算出された輝度の差と、画像データの上部であり画像データの中央部の領域を含まない複数の領域を対象として上記第1の比較ステップにより算出された輝度の差とを合算して得られる輝度の差が所定値より大きい場合には逆光と判定する判定ステップと
を有したことを特徴とする自動露出方法。 An imaging step for imaging image data;
A division step of dividing the image data into a plurality of regions;
A generation step for generating a luminance signal from the image data for each of the plurality of regions divided in the division step;
An integration step for integrating the luminance signals for each of the plurality of regions generated in this generation step;
A first comparison step for comparing the integration values for each of the plurality of regions obtained in this integration step between a plurality of regions adjacent in the vertical direction, and calculating a difference in luminance of the upper region with respect to the luminance of the lower region;
The luminance difference calculated by the first comparison step for a plurality of areas including the central area of the image data, and a plurality of areas that are above the image data and do not include the central area of the image data. An automatic exposure comprising: a determination step for determining that the object is backlit when the difference in luminance obtained by adding the difference in luminance calculated in the first comparison step as a target is greater than a predetermined value; Method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009169923A JP2009239974A (en) | 2009-07-21 | 2009-07-21 | Automatic exposing device and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009169923A JP2009239974A (en) | 2009-07-21 | 2009-07-21 | Automatic exposing device and method |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000371717A Division JP4787403B2 (en) | 2000-12-06 | 2000-12-06 | Automatic exposure apparatus and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2009239974A true JP2009239974A (en) | 2009-10-15 |
Family
ID=41253269
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009169923A Pending JP2009239974A (en) | 2009-07-21 | 2009-07-21 | Automatic exposing device and method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2009239974A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102547132A (en) * | 2011-12-31 | 2012-07-04 | 蔡静 | Method and device for carrying out shooting under backlighting condition, and camera |
| CN110809120A (en) * | 2019-11-01 | 2020-02-18 | 深圳创维-Rgb电子有限公司 | Light supplementing method for shot picture, smart television and computer readable storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH031771A (en) * | 1989-05-30 | 1991-01-08 | Sony Corp | Backlight correction device |
| JPH05122599A (en) * | 1991-09-04 | 1993-05-18 | Fuji Photo Film Co Ltd | Exposure controller for video camera |
-
2009
- 2009-07-21 JP JP2009169923A patent/JP2009239974A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH031771A (en) * | 1989-05-30 | 1991-01-08 | Sony Corp | Backlight correction device |
| JPH05122599A (en) * | 1991-09-04 | 1993-05-18 | Fuji Photo Film Co Ltd | Exposure controller for video camera |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102547132A (en) * | 2011-12-31 | 2012-07-04 | 蔡静 | Method and device for carrying out shooting under backlighting condition, and camera |
| CN110809120A (en) * | 2019-11-01 | 2020-02-18 | 深圳创维-Rgb电子有限公司 | Light supplementing method for shot picture, smart television and computer readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6911202B2 (en) | Imaging control method and imaging device | |
| JP4293174B2 (en) | Imaging apparatus and image processing apparatus | |
| TWI491214B (en) | Image capturing device and method for controlling image capturing device | |
| JP5672796B2 (en) | Image processing apparatus and image processing method | |
| US8786728B2 (en) | Image processing apparatus, image processing method, and storage medium storing image processing program | |
| JP6624889B2 (en) | Video processing apparatus, video processing method, and video processing program | |
| JP2014143613A (en) | Image processor, image processing method, program and imaging apparatus | |
| JP4914300B2 (en) | Imaging apparatus and imaging control method | |
| JP4136464B2 (en) | Imaging apparatus and imaging method | |
| KR101750986B1 (en) | An apparatus and a method for processing image, and a computer-readable storage medium | |
| JP5225137B2 (en) | Imaging apparatus, image processing method, and program | |
| JP2009182599A (en) | Image processing apparatus, image processing method, image processing program, and imaging apparatus | |
| JP7077100B2 (en) | Imaging device and its control method, and program | |
| JP2009200743A (en) | Image processor, image processing method, image processing program and imaging apparatus | |
| JP5173664B2 (en) | Image processing apparatus and image processing method | |
| JP6108680B2 (en) | Imaging apparatus, control method therefor, program, and storage medium | |
| JP2014179920A (en) | Imaging apparatus, control method thereof, program, and storage medium | |
| JP2012124652A (en) | Imaging apparatus and image processing method | |
| JP4787403B2 (en) | Automatic exposure apparatus and method | |
| JP2009239974A (en) | Automatic exposing device and method | |
| JP2008219230A (en) | Imaging apparatus, and image processing method | |
| JP2008085634A (en) | Imaging apparatus and image processing method | |
| US20070019105A1 (en) | Imaging apparatus for performing optimum exposure and color balance control | |
| JP2006094419A (en) | Image signal processing apparatus and image signal processing method | |
| JP2010271507A (en) | Imaging apparatus, exposure adjustment method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090728 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090728 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090904 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110329 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110523 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110802 |