JP2007053617A - Exposure value operation method and imaging apparatus - Google Patents

Exposure value operation method and imaging apparatus Download PDF

Info

Publication number
JP2007053617A
JP2007053617A JP2005237571A JP2005237571A JP2007053617A JP 2007053617 A JP2007053617 A JP 2007053617A JP 2005237571 A JP2005237571 A JP 2005237571A JP 2005237571 A JP2005237571 A JP 2005237571A JP 2007053617 A JP2007053617 A JP 2007053617A
Authority
JP
Japan
Prior art keywords
value
exposure
subject
weighting factor
luminance
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
Application number
JP2005237571A
Other languages
Japanese (ja)
Inventor
Takehiro Kawaguchi
武弘 河口
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.)
Fujifilm Holdings Corp
Original Assignee
Fujifilm Holdings 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 Fujifilm Holdings Corp filed Critical Fujifilm Holdings Corp
Priority to JP2005237571A priority Critical patent/JP2007053617A/en
Publication of JP2007053617A publication Critical patent/JP2007053617A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent exposure from being largely deviated from appropriate exposure for a principal subject even when contrast between the principal subject and a background is extremely high. <P>SOLUTION: An image division part 55a divides image data output from an A/D 42 into a plurality of small areas. A luminance operation part 55b calculates a subject luminance value of each small area. An exposure operation part 55c multiplies each subject luminance value by a weight coefficient to operate a weighted average and thereby calculates an exposure value of image data. Weight coefficients are set by a weight coefficient operation circuit 56. The weight coefficient operation circuit 56 detects a maximum value of subject luminance values and calculates difference values from the maximum value per small area and sets the weight coefficients on the basis of the difference values. The difference values are larger for parts having lower subject luminance values, and the weight coefficients are larger in proportion to the difference values. Thus exposure can be adapted to the principal subject having a low subject luminance value even when the principal subject is extremely darker than the background. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、画像データが表す撮像画面を複数の小領域に分割して各小領域毎の被写体輝度値を算出し、各被写体輝度値を基にして前記画像データの露出値を算出する露出値算出方法と、この露出値算出方法を用いた撮像装置に関する。   The present invention divides an imaging screen represented by image data into a plurality of small areas, calculates subject luminance values for each small area, and calculates an exposure value for the image data based on each subject luminance value The present invention relates to a calculation method and an imaging apparatus using the exposure value calculation method.

撮像装置の一つとして、CCDなどの固体撮像素子で撮像した被写体像をデジタルの画像データに変換し、内蔵メモリやメモリカードなどの記憶媒体に記憶するデジタルカメラが普及している。このようなデジタルカメラでは、画像データから画像の輝度を測光して適正な露出値を算出することにより、シャッタスピードや絞り値などを自動的に決定する自動露出調整が行われている。   As one of imaging apparatuses, a digital camera that converts a subject image captured by a solid-state imaging device such as a CCD into digital image data and stores the digital image data in a storage medium such as a built-in memory or a memory card is widely used. In such a digital camera, automatic exposure adjustment for automatically determining a shutter speed, an aperture value, and the like is performed by measuring an image brightness from image data and calculating an appropriate exposure value.

自動露出調整の測光方法としては、例えば、平均測光や中央重点測光などが知られている(特許文献1参照)。平均測光は、画像全体の平均輝度を適正な露出値として算出する測光方法である。一方、中央重点測光は、主要な被写体が画像の中央付近にくることを想定したものであり、画像を複数の小領域に分割して各小領域毎の輝度を算出した後、中央付近の小領域の重みを大きくして適正な露出値を算出する測光方法である。この中央重点測光では、主要被写体と背景との間のコントラストが大きい場合でも、平均測光に比べて主要被写体に露出が合い易い。
特開平07−087372号公報
As photometry methods for automatic exposure adjustment, for example, average photometry and center-weighted photometry are known (see Patent Document 1). Average photometry is a photometric method that calculates the average brightness of the entire image as an appropriate exposure value. On the other hand, center-weighted metering assumes that the main subject is near the center of the image, and after dividing the image into a plurality of small areas and calculating the brightness for each small area, This is a photometric method for calculating an appropriate exposure value by increasing the weight of a region. In this center-weighted metering, even when the contrast between the main subject and the background is large, the main subject is more easily exposed than the average metering.
Japanese Patent Application Laid-Open No. 07-087372

しかしながら、例えば、逆光の撮影シーンや、夜間にスポットライトを当てた撮影シーンなど、主要被写体と背景との間のコントラストが極端に大きい場合には、中央重点測光を用いたとしても主要被写体の露出アンダーや露出オーバーを抑えることは難しかった。   However, if the contrast between the main subject and the background is extremely large, for example, in a backlight scene or in a night scene with a spotlight, the exposure of the main subject is possible even if center-weighted metering is used. It was difficult to suppress under-exposure and over-exposure.

本発明は、上記課題を鑑みてなされたものであり、主要被写体と背景との間のコントラストが極端に大きい場合でも、主要被写体から露出が大きく外れることを抑えることを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to prevent the exposure from being largely deviated from the main subject even when the contrast between the main subject and the background is extremely large.

上記課題を達成するため、本発明の露出値算出方法は、撮像レンズを透過した被写体像を撮像する撮像素子から前記被写体像に応じた画像データを取得するデータ取得ステップと、前記画像データが表す撮像画面を複数の小領域に分割する分割ステップと、前記小領域毎の被写体輝度値を算出する輝度演算ステップと、前記被写体輝度値の低い前記小領域ほど重み付けが大きくなるように前記各演算用重み係数を設定する重み係数演算ステップとを有し、前記各小領域毎に設定された演算用重み係数を前記各被写体輝度値に乗じて加重平均を取ることにより、前記画像データの露出値を算出することを特徴とする。   In order to achieve the above object, an exposure value calculation method of the present invention represents a data acquisition step of acquiring image data corresponding to the subject image from an image sensor that captures the subject image transmitted through the imaging lens, and the image data represents A dividing step for dividing the imaging screen into a plurality of small areas; a luminance calculating step for calculating a subject luminance value for each of the small areas; and for each calculation so that the smaller area having the lower subject luminance value has a higher weight. A weighting factor calculation step for setting a weighting factor, and multiplying each subject luminance value by the calculation weighting factor set for each of the small areas to obtain a weighted average, thereby calculating the exposure value of the image data It is characterized by calculating.

なお、前記重み係数演算ステップは、前記各被写体輝度値の最大値を検出するステップと、前記最大値から前記各被写体輝度値を減算して前記各小領域毎に前記最大値からの差分値を求めるステップと、入力値の大きい部分がより大きくなるように変換する補正関数に前記各差分値を入力して前記補正関数に応じた出力値を得るステップと、前記撮像画面の中央部分の重み付けを大きくするように前記各小領域のそれぞれに予め設定された中央重点の重み係数と前記各出力値とを乗算し、この乗算結果を前記各演算用重み係数として設定するステップとからなることが好ましい。   The weighting factor calculating step includes a step of detecting a maximum value of each subject luminance value, and subtracting each subject luminance value from the maximum value to obtain a difference value from the maximum value for each small region. A step of calculating, a step of inputting each of the difference values to a correction function for conversion so that a larger portion of the input value becomes larger, obtaining an output value according to the correction function, and weighting of a central portion of the imaging screen Preferably, the method includes a step of multiplying each of the small areas by a weight factor of a center weight set in advance for each of the small regions and each of the output values, and setting the multiplication result as the weighting factor for each calculation. .

また、前記各差分値は、前記補正関数に入力される前に、前記補正関数の入力範囲に応じた値に正規化されることが好ましい。   Each difference value is preferably normalized to a value corresponding to the input range of the correction function before being input to the correction function.

さらに、前記輝度演算ステップの後に、前記各被写体輝度値の平均輝度値を算出する平均輝度値算出ステップと、前記平均輝度値が所定値以上であるか否かの判定を行う判定ステップとを行い、前記平均輝度値が所定値以上であると判定された場合には、前記重み係数演算ステップを行い、前記平均輝度値が所定値以下であると判定された場合には、前記撮像画面の中央部分の重み付けを大きくするように前記各小領域のそれぞれに予め設定された中央重点の重み係数を前記各演算用重み係数として前記露出値の算出を行うことが好ましい。   Further, after the luminance calculation step, an average luminance value calculating step for calculating an average luminance value of the subject luminance values and a determining step for determining whether or not the average luminance value is equal to or greater than a predetermined value are performed. When it is determined that the average luminance value is equal to or greater than a predetermined value, the weighting factor calculation step is performed. When it is determined that the average luminance value is equal to or less than the predetermined value, the center of the imaging screen is determined. It is preferable that the exposure value is calculated using a center-weighted weighting factor set in advance in each of the small regions so as to increase the weighting of the portion, as the calculation weighting factor.

なお、本発明の露出値演算方法は、撮像レンズを透過した被写体像を撮像する撮像素子から前記被写体像に応じた画像データを取得するデータ取得ステップと、前記画像データが表す撮像画面を複数の小領域に分割する分割ステップと、前記小領域毎の被写体輝度値を算出する輝度演算ステップと、前記被写体輝度値の高い前記小領域ほど重み付けが大きくなるように前記各演算用重み係数を設定する重み係数演算ステップとを有し、前記各小領域毎に設定された演算用重み係数を前記各被写体輝度値に乗じて加重平均を取ることにより、前記画像データの露出値を算出するようにしてもよい。   The exposure value calculation method of the present invention includes a data acquisition step of acquiring image data corresponding to the subject image from an image sensor that captures the subject image that has passed through the imaging lens, and a plurality of imaging screens represented by the image data. A division step for dividing into small areas, a luminance calculation step for calculating subject luminance values for each of the small areas, and setting the weighting factors for each calculation so that the smaller areas with higher subject luminance values have higher weights. A weighting factor calculation step, wherein the exposure value of the image data is calculated by multiplying the subject luminance value by a calculation weighting factor set for each small area and taking a weighted average. Also good.

この際、前記重み係数演算ステップは、前記各被写体輝度値の最小値を検出するステップと、前記各被写体輝度値から前記最小値を減算して前記各小領域毎に前記最小値からの差分値を求めるステップと、入力値の大きい部分がより大きくなるように変換する補正関数に前記各差分値を入力して前記補正関数に応じた出力値を得るステップと、前記撮像画面の中央部分の重み付けを大きくするように前記各小領域のそれぞれに予め設定された中央重点の重み係数と前記各出力値とを乗算し、この乗算結果を前記各演算用重み係数として設定するステップとからなることが好ましい。   In this case, the weighting factor calculation step includes a step of detecting a minimum value of each subject luminance value, and subtracting the minimum value from each subject luminance value to obtain a difference value from the minimum value for each small region. Obtaining the output value corresponding to the correction function by inputting each difference value into a correction function for converting the large input value portion to be larger, and weighting the central portion of the imaging screen. Each of the small regions is multiplied by a weighting factor of a center weight set in advance for each of the small regions and the output value, and the multiplication result is set as the weighting factor for each calculation. preferable.

また、前記各差分値は、前記補正関数に入力される前に、前記補正関数の入力範囲に応じた値に正規化されることが好ましい。   Each difference value is preferably normalized to a value corresponding to the input range of the correction function before being input to the correction function.

さらに、前記輝度演算ステップの後に、前記各被写体輝度値の平均輝度値を算出する平均輝度値算出ステップと、前記平均輝度値が所定値以上であるか否かの判定を行う判定ステップとを行い、前記平均輝度値が所定値以下であると判定された場合には、前記重み係数演算ステップを行い、前記平均輝度値が所定値以上であると判定された場合には、前記撮像画面の中央部分の重み付けを大きくするように前記各小領域のそれぞれに予め設定された中央重点の重み係数を前記各演算用重み係数として前記露出値の算出を行うことが好ましい。   Further, after the luminance calculation step, an average luminance value calculating step for calculating an average luminance value of the subject luminance values and a determining step for determining whether or not the average luminance value is equal to or greater than a predetermined value are performed. When the average luminance value is determined to be less than or equal to a predetermined value, the weighting coefficient calculation step is performed. When the average luminance value is determined to be equal to or greater than the predetermined value, the center of the imaging screen is determined. It is preferable that the exposure value is calculated using a center-weighted weighting factor set in advance in each of the small regions so as to increase the weighting of the portion, as the calculation weighting factor.

なお、本発明の露出値演算方法は、撮像レンズを透過した被写体像を撮像する撮像素子から前記被写体像に応じた画像データを取得するデータ取得ステップと、前記画像データが表す撮像画面を複数の小領域に分割する分割ステップと、前記小領域毎の被写体輝度値を算出する輝度演算ステップとを有し、前記各小領域毎に設定された重み係数を前記各被写体輝度値に乗じて加重平均を取ることにより、前記画像データの露出値を算出する際に、重み付けの異なる複数の重み係数を用いて複数の前記露出値を算出する複数露出値算出ステップと、前記各被写体輝度値の平均輝度値を算出する平均輝度値算出ステップと、前記各露出値毎に設けられた変換関数を参照して、前記平均輝度値に応じた前記各露出値の合成割合を取得する合成割合取得ステップと、前記各露出値と前記各合成割合とから1つの最適な露出値を割り出す最適露出値算出ステップとを含めるものでもよい。   The exposure value calculation method of the present invention includes a data acquisition step of acquiring image data corresponding to the subject image from an image sensor that captures the subject image that has passed through the imaging lens, and a plurality of imaging screens represented by the image data. A division step of dividing into small areas, and a luminance calculation step of calculating a subject luminance value for each of the small areas, and multiplying each of the subject luminance values by a weighting factor set for each of the small areas, the weighted average A plurality of exposure value calculation steps for calculating a plurality of the exposure values using a plurality of weighting factors having different weights when calculating the exposure value of the image data, and an average luminance of the subject luminance values An average luminance value calculating step for calculating a value and a conversion function provided for each of the exposure values to obtain a combination ratio of the exposure values according to the average luminance value. Steps and, the may be those including the optimum exposure value calculation step to determine the one optimum exposure values from the exposure value and the each combination ratio.

この際、前記複数の重み係数には、少なくとも、前記被写体輝度値の低い前記小領域ほど重み付けが大きくなるように設定した第1重み係数と、前記被写体輝度値の高い前記小領域ほど重み付けが大きくなるように設定した第2重み係数と、前記撮像画面の中央部分の前記小領域ほど重み付けが大きくなるように設定した第3重み係数とが含まれることが好ましい。   At this time, the plurality of weighting factors are set such that at least the first weighting factor set to increase the weighting in the small region with the lower subject luminance value and the weighting in the small region with the higher subject luminance value. It is preferable that the second weighting coefficient set so as to be equal to the third weighting coefficient set so that the weighting is increased in the small area in the central portion of the imaging screen.

また、前記第1重み係数は、前記各被写体輝度値の最大値を検出し、この最大値から前記各被写体輝度値を減算して前記各小領域毎に前記最大値からの差分値を求め、入力値の大きい部分がより大きくなるように変換する補正関数に前記各差分値を入力して前記補正関数に応じた出力値を取得し、予め設定された前記第3重み係数と前記各出力値とを乗算することによって設定され、前記第2重み係数は、前記各被写体輝度値の最小値を検出し、前記各被写体輝度値から前記最小値を減算して前記各小領域毎に前記最小値からの差分値を求め、入力値の大きい部分がより大きくなるように変換する補正関数に前記各差分値を入力して前記補正関数に応じた出力値を取得し、予め設定された前記第3重み係数と前記各出力値とを乗算することによって設定されることが好ましい。   Further, the first weighting coefficient detects a maximum value of each subject luminance value, subtracts each subject luminance value from the maximum value, and obtains a difference value from the maximum value for each small region, The difference value is input to a correction function that converts the larger input value to be larger, and an output value corresponding to the correction function is obtained. The preset third weighting factor and each output value And the second weighting factor detects the minimum value of each subject luminance value, subtracts the minimum value from each subject luminance value, and sets the minimum value for each small region. The difference value is obtained from the input value, and each difference value is input to a correction function that converts the larger input value to be larger, and an output value corresponding to the correction function is obtained. Multiplying the weighting factor by each output value It is preferable to set me.

なお、本発明の撮像装置は、撮像レンズを透過した被写体像を撮像して前記被写体像に応じた画像データを出力する撮像素子と、この撮像素子への入射光量を調整する絞りと、前記画像データが表す撮像画面を複数の小領域に分割する分割手段と、前記小領域毎の被写体輝度値を算出する輝度演算手段と、前記各被写体輝度値に基づいて前記画像データの露出値を算出する露出演算手段と、算出された前記露出値に基づいて前記絞りの絞り値と前記撮像素子の露光時間との少なくとも一方を制御する露出制御手段とを備え、前記露出演算手段が、上記いずれかの露出値演算方法を用いて前記露出値を算出することを特徴とする。   The imaging device of the present invention includes an imaging device that captures a subject image that has passed through an imaging lens and outputs image data corresponding to the subject image, a diaphragm that adjusts the amount of incident light on the imaging device, and the image Dividing means for dividing the imaging screen represented by the data into a plurality of small areas, luminance calculating means for calculating a subject luminance value for each of the small areas, and calculating an exposure value of the image data based on each of the subject luminance values Exposure calculation means, and exposure control means for controlling at least one of the aperture value of the aperture and the exposure time of the image sensor based on the calculated exposure value, wherein the exposure calculation means is one of the above The exposure value is calculated using an exposure value calculation method.

本発明によれば、被写体輝度値の低い小領域ほど重み付けが大きくなるように各演算用重み係数を設定するようにしたので、例えば、逆光の撮影シーンなど、背景に対して主要被写体が極端に暗くなってしまう場合でも、被写体輝度値が低い主要被写体に露出が合わせられるので、主要被写体から露出が大きく外れることを抑えることができる。また、被写体輝度値の高い小領域ほど重み付けが大きくなるように各演算用重み係数を設定すると、例えば、夜間にスポットライトを当てた撮影シーンなど、背景に対して主要被写体が極端に明るくなってしまう場合でも、被写体輝度値が高い主要被写体に露出が合わせられるので、主要被写体から露出が大きく外れることを抑えることができる。   According to the present invention, the weighting factor for each calculation is set so that the smaller the region with a lower subject luminance value is, the larger the weighting factor for each operation. Even when it becomes dark, the exposure is adjusted to the main subject having a low subject luminance value, so that it is possible to prevent the exposure from being greatly deviated from the main subject. Also, if the weighting factor for each calculation is set so that the smaller the area with a higher subject luminance value, the higher the weight, the main subject will become extremely bright with respect to the background, such as a shooting scene with a spotlight applied at night. Even in such a case, since the exposure is adjusted to the main subject having a high subject luminance value, it is possible to prevent the exposure from being largely deviated from the main subject.

さらに、被写体輝度値の低い小領域ほど重み付けが大きくなるように設定した重み係数や被写体輝度値の高い小領域ほど重み付けが大きくなるように設定した重み係数などが含まれる複数の重み係数を用いて複数の露出値を算出し、これらの各露出値を合成して1つの最適な露出値を割り出すようにすれば、背景に対して主要被写体が極端に暗い場合にも、極端に明るい場合にも、主要被写体から露出が大きく外れることを抑えることができる。   Furthermore, using a plurality of weighting factors including a weighting factor set so that weighting is increased in a small region with a low subject luminance value, and a weighting factor set so that weighting is increased in a small region with a high subject luminance value. By calculating multiple exposure values and combining each of these exposure values to determine one optimal exposure value, whether the main subject is extremely dark or extremely bright against the background , It is possible to prevent the exposure from being largely deviated from the main subject.

図1、及び図2に、デジタルカメラ(撮像装置)2の外観を示す。図1の斜視図に示すように、デジタルカメラ2の前面には、撮像レンズ10を保持するレンズ鏡胴11が設けられている。デジタルカメラ2の上面には、レリーズボタン12、電源スイッチ13、及びモードダイヤル14が設けられている。また、側面には、メモリカード52(図3参照)を着脱自在に装填するメモリカードスロット(図示は省略)が設けられており、このメモリカードスロットを蓋15が覆っている。   FIG. 1 and FIG. 2 show the external appearance of a digital camera (imaging device) 2. As shown in the perspective view of FIG. 1, a lens barrel 11 that holds an imaging lens 10 is provided on the front surface of the digital camera 2. On the upper surface of the digital camera 2, a release button 12, a power switch 13, and a mode dial 14 are provided. Further, a memory card slot (not shown) in which a memory card 52 (see FIG. 3) is detachably loaded is provided on the side surface, and the lid 15 covers this memory card slot.

電源スイッチ13は、周知のように、デジタルカメラ2の電源をON/OFFする際に用いられる。また、デジタルカメラ2では、静止画撮影を行う静止画撮影モード、動画撮影を行う動画撮影モード、撮影した画像をLCD22に表示する再生モード、及び各種設定を行う設定モードが選択可能になっている。これらのモードの切り替えは、モードダイヤル14を回動操作することで行われる。なお、動画撮影モードでは、動画の撮影とともに、図示を省略したマイクロホンを介して周囲の音声が収録される。   As is well known, the power switch 13 is used when turning on / off the power of the digital camera 2. The digital camera 2 can select a still image shooting mode for shooting still images, a movie shooting mode for shooting movies, a playback mode for displaying captured images on the LCD 22, and a setting mode for performing various settings. . Switching between these modes is performed by rotating the mode dial 14. In the moving image shooting mode, along with shooting of moving images, surrounding sounds are recorded via a microphone (not shown).

レリーズボタン12は、2段階押しのスイッチになっている。LCD22による被写体のフレーミングの後に、レリーズボタン12を軽く押圧(半押し)すると、自動露出調整(AE)、自動焦点調整(AF)などの各種撮影準備処理が施される。この状態でレリーズボタン12をもう一度強く押圧(全押し)すると、撮影準備処理が施された1画面分の撮像信号が画像データに変換される。変換された画像データは、例えば、種々の画像処理や圧縮処理などが加えられた後、メモリカード52に記憶される。   The release button 12 is a two-stage push switch. After the framing of the subject by the LCD 22, when the release button 12 is lightly pressed (half-pressed), various shooting preparation processes such as automatic exposure adjustment (AE) and automatic focus adjustment (AF) are performed. In this state, when the release button 12 is pressed once more (fully pressed), the imaging signal for one screen on which the imaging preparation processing has been performed is converted into image data. The converted image data is stored in the memory card 52 after, for example, various image processing and compression processing are applied.

図2は、デジタルカメラ2を背面から見た平面図である。デジタルカメラ2の背面には、電子ビューファインダを構成するファインダ接眼窓21、液晶表示器(LCD)22、及び操作部23が設けられている。LCD22は、例えば、撮影した画像やいわゆるスルー画像、及び各種のメニュー画面などを表示する。操作部23は、撮像レンズ10のズームレンズ30(図3参照)を広角側、望遠側に変倍するズーム操作ボタン24や、LCD22にメニュー画面を表示させる際や、選択内容を決定する際などに操作されるメニューボタン25、及びメニュー画面内のカーソルを移動させる十字キー26などから構成される。   FIG. 2 is a plan view of the digital camera 2 as viewed from the back. A finder eyepiece window 21, a liquid crystal display (LCD) 22, and an operation unit 23 that constitute an electronic viewfinder are provided on the back surface of the digital camera 2. The LCD 22 displays, for example, captured images, so-called through images, and various menu screens. The operation unit 23 is a zoom operation button 24 that changes the zoom lens 30 (see FIG. 3) of the image pickup lens 10 to the wide-angle side and the telephoto side, when the menu screen is displayed on the LCD 22, and when the selection content is determined. The menu button 25 is operated, and the cross key 26 is used to move the cursor in the menu screen.

図3は、デジタルカメラ2の内部構成を概略的に示すブロック図である。撮像レンズ10は、光軸Lに沿って配列されたズームレンズ30、絞り31、及びフォーカスレンズ32によって構成されている。ズームレンズ30には、レンズモータ33が接続されている。レンズモータ33は、ズーム操作ボタン24の操作に連動して、ズームレンズ30を広角側、もしくは望遠側に移動させる。絞り31には、アイリスモータ34が接続されている。アイリスモータ34は、レリーズボタン12の半押しにともなう撮影準備処理の際に、絞り31の開口面積(絞り値)を変化させてズームレンズ30から入射する光の量を調節する。また、フォーカスレンズ32には、レンズモータ35が接続されている。レンズモータ35は、ズームレンズの変倍やレリーズボタン12の半押しにともなって、フォーカスレンズ32を至近側、もしくは無限遠側に移動させる。   FIG. 3 is a block diagram schematically showing the internal configuration of the digital camera 2. The imaging lens 10 includes a zoom lens 30, a diaphragm 31, and a focus lens 32 arranged along the optical axis L. A lens motor 33 is connected to the zoom lens 30. The lens motor 33 moves the zoom lens 30 to the wide angle side or the telephoto side in conjunction with the operation of the zoom operation button 24. An iris motor 34 is connected to the diaphragm 31. The iris motor 34 adjusts the amount of light incident from the zoom lens 30 by changing the aperture area (aperture value) of the diaphragm 31 during the photographing preparation process when the release button 12 is half-pressed. A lens motor 35 is connected to the focus lens 32. The lens motor 35 moves the focus lens 32 to the close side or the infinity side in response to zooming of the zoom lens or half-pressing of the release button 12.

各モータ33、34、35は、モータドライバ36に接続されている。モータドライバ36は、デジタルカメラ2を統括的に制御するCPU37に接続されており、このCPU37からの制御信号に基づいて各モータ33、34、35に駆動パルスを送信する。各モータ33、34、35は、この駆動パルスに応じて回転軸を回転駆動する。なお、各モータ33、34、35としては、例えば、ステッピングモータが用いられる。   Each motor 33, 34, 35 is connected to a motor driver 36. The motor driver 36 is connected to a CPU 37 that comprehensively controls the digital camera 2, and transmits drive pulses to the motors 33, 34, and 35 based on control signals from the CPU 37. Each of the motors 33, 34, and 35 rotates the rotation shaft according to the drive pulse. As each motor 33, 34, 35, for example, a stepping motor is used.

撮像レンズ10の背後には、撮像レンズ10を透過した被写体像を撮像するCCD(撮像素子)38が配置されている。CCD38には、CPU37によって制御されるタイミングジェネレータ(TG)39が接続され、このTG39から入力されるタイミング信号(クロックパルス)により、電子シャッタのシャッタ速度(露光時間)が決定される。すなわち、CPU37は、絞り31の絞り値とCCD38の露光時間との制御が可能であり、請求項記載の露出制御手段に相当するものである。   Behind the imaging lens 10 is a CCD (imaging device) 38 that captures a subject image that has passed through the imaging lens 10. A timing generator (TG) 39 controlled by the CPU 37 is connected to the CCD 38, and a shutter speed (exposure time) of the electronic shutter is determined by a timing signal (clock pulse) input from the TG 39. That is, the CPU 37 can control the aperture value of the aperture 31 and the exposure time of the CCD 38, and corresponds to the exposure control means described in the claims.

CCD38から出力された撮像信号は、相関二重サンプリング回路(CDS)40に入力される。CDS40は、相関二重サンプリングを行うことによって撮像信号からノイズの除去を行う。増幅器(AMP)41は、CDS40からノイズを除去した撮像信号を受け取り、CPU37によって設定される撮影感度に応じたゲインで撮像信号を増幅する。A/D変換器(A/D)42は、AMP41から増幅後の撮像信号を受け取ってデジタル変換し、画像データとして出力する。   The imaging signal output from the CCD 38 is input to a correlated double sampling circuit (CDS) 40. The CDS 40 removes noise from the imaging signal by performing correlated double sampling. The amplifier (AMP) 41 receives the imaging signal from which noise has been removed from the CDS 40, and amplifies the imaging signal with a gain corresponding to the imaging sensitivity set by the CPU 37. The A / D converter (A / D) 42 receives the amplified imaging signal from the AMP 41, digitally converts it, and outputs it as image data.

画像入力コントローラ43は、バス44を介してCPU37に接続され、CPU37の制御命令に応じて、CCD38、CDS40、AMP41、及びA/D42の各部を制御する。A/D42から出力された画像データは、SDRAM45に一時的に記録される。   The image input controller 43 is connected to the CPU 37 via the bus 44, and controls each part of the CCD 38, the CDS 40, the AMP 41, and the A / D 42 in accordance with a control command from the CPU 37. The image data output from the A / D 42 is temporarily recorded in the SDRAM 45.

画像信号処理回路46は、SDRAM45から画像データを読み出して、階調変換、ホワイトバランス補正、γ補正処理などの各種画像処理を施し、この画像データを再度SDRAM45に記録する。YC変換処理回路47は、画像信号処理回路46で各種処理を施された画像データをSDRAM45から読み出し、輝度信号Yと色差信号Cr、Cbとに変換する。   The image signal processing circuit 46 reads the image data from the SDRAM 45, performs various image processing such as gradation conversion, white balance correction, and γ correction processing, and records the image data in the SDRAM 45 again. The YC conversion processing circuit 47 reads out the image data subjected to various processes by the image signal processing circuit 46 from the SDRAM 45, and converts it into a luminance signal Y and color difference signals Cr and Cb.

VRAM48は、LCD22にスルー画像を出力するためのメモリであり、画像信号処理回路46、YC変換処理回路47を経た画像データが格納される。このVRAM48には、画像データの書き込みと読み出しとを並行して行えるように、2フレーム分のメモリが確保されている。VRAM48に格納された画像データは、LCDドライバ49でアナログのコンポジット信号に変換され、LCD22にスルー画像として表示される。   The VRAM 48 is a memory for outputting a through image to the LCD 22, and stores image data that has passed through the image signal processing circuit 46 and the YC conversion processing circuit 47. The VRAM 48 has a memory for two frames so that image data can be written and read in parallel. The image data stored in the VRAM 48 is converted into an analog composite signal by the LCD driver 49 and displayed as a through image on the LCD 22.

圧縮伸長処理回路50は、YC変換処理回路47でYC変換された画像データを、例えば、TIFFやJPEGなどといった所定の圧縮形式で圧縮する。圧縮された画像データは、メディアコントローラ51を経由してメモリカード52に記憶される。   The compression / decompression processing circuit 50 compresses the image data YC converted by the YC conversion processing circuit 47 in a predetermined compression format such as TIFF or JPEG. The compressed image data is stored in the memory card 52 via the media controller 51.

CPU37には、レリーズボタン12、操作部23の他に、EEPROM53が接続されている。EEPROM53には、各種制御用のプログラムや設定情報などが記録されている。CPU37は、これらの情報をEEPROM53から作業用メモリであるSDRAM45に読み出して、各種処理を実行する。   In addition to the release button 12 and the operation unit 23, an EEPROM 53 is connected to the CPU 37. The EEPROM 53 stores various control programs and setting information. The CPU 37 reads these pieces of information from the EEPROM 53 to the SDRAM 45, which is a working memory, and executes various processes.

さらに、バス44には、レリーズボタン12の半押しにともなう撮影準備処理の際に、撮影に適した撮像レンズ10の焦点位置を検出するAF検出回路54と、撮影に適した露出値を検出するAE検出回路55、及びこのAE検出回路55が露出値を検出する際に用いる重み係数を算出する重み係数演算回路56とが接続されている。   Furthermore, the bus 44 detects an AF detection circuit 54 that detects the focal position of the imaging lens 10 that is suitable for photographing and an exposure value that is suitable for photographing during photographing preparation processing when the release button 12 is half-pressed. An AE detection circuit 55 and a weight coefficient calculation circuit 56 that calculates a weight coefficient used when the AE detection circuit 55 detects an exposure value are connected.

AF検出回路54は、いわゆるコントラスト方式のAF処理を行うためのものであり、A/D42でデジタル化された画像データから画像のコントラストを表すフォーカス評価値を算出して、この算出結果をCPU37に送信する。フォーカス評価値は、画像の特定のエリア、例えば、撮影画角の中央部分の画像データに対して、ハイパスフィルタなどで輪郭抽出処理を施し、これにより抽出した輪郭信号、及び中央部分の画像データの輝度値を積算することで得られる。なお、フォーカス評価値は、大きい程その部分の高周波成分が多く、その部分が合焦状態にあることを表す。CPU37は、フォーカスレンズ32を所定量ずつ移動させながら複数の位置でのフォーカス評価値を取得し、フォーカス評価値が最も高くなる位置にフォーカスレンズ32を移動させることによってAF処理を行う。   The AF detection circuit 54 is for performing a so-called contrast AF process, calculates a focus evaluation value representing the contrast of the image from the image data digitized by the A / D 42, and sends the calculation result to the CPU 37. Send. The focus evaluation value is obtained by performing contour extraction processing with a high-pass filter or the like on a specific area of the image, for example, image data of the central portion of the shooting angle of view, and extracting the contour signal and the central portion of the image data. It is obtained by integrating the luminance value. Note that the larger the focus evaluation value is, the more high-frequency components are in the portion, and the portion is in focus. The CPU 37 acquires focus evaluation values at a plurality of positions while moving the focus lens 32 by a predetermined amount, and performs AF processing by moving the focus lens 32 to a position where the focus evaluation value is the highest.

AE検出回路55は、画像分割部(分割手段)55aと、輝度演算部(輝度演算手段)55bと、露出演算部(露出演算手段)55cとから構成されている。画像分割部55aは、例えば、図4に示すように、画像データが表す撮像画面60を縦8列、横8列の計64個の小領域62に分割する。なお、説明の便宜上、図4の各小領域62には、1〜64までの番号を付してある。また、本例では、撮像画面60を64個の小領域62に分割するようにしているが、小領域62の数は64に限るものではない。また、小領域62の分割方法は、例えば、ゲート回路を用いるなど、周知の方法によればよい。   The AE detection circuit 55 includes an image dividing unit (dividing unit) 55a, a luminance calculating unit (luminance calculating unit) 55b, and an exposure calculating unit (exposure calculating unit) 55c. For example, as shown in FIG. 4, the image dividing unit 55 a divides the imaging screen 60 represented by the image data into a total of 64 small regions 62 of 8 columns and 8 columns. For convenience of explanation, numbers 1 to 64 are assigned to the small areas 62 in FIG. In this example, the imaging screen 60 is divided into 64 small areas 62, but the number of small areas 62 is not limited to 64. In addition, a method for dividing the small region 62 may be a known method, for example, using a gate circuit.

輝度演算部55bは、各小領域62毎の撮像信号の平均積算値を算出することにより、各小領域62毎の被写体輝度値を求める。輝度演算部55bによって各小領域62毎の被写体輝度値を求めたAE検出回路55は、求めた各被写体輝度値を重み係数演算回路56に送信する。   The luminance calculation unit 55b calculates the subject integrated value for each small region 62 by calculating the average integrated value of the imaging signals for each small region 62. The AE detection circuit 55 that has obtained the subject brightness value for each small region 62 by the brightness computation unit 55 b transmits the obtained subject brightness value to the weight coefficient computation circuit 56.

重み係数演算回路56は、最大値検出部56aと差分演算部56bと関数演算部56cと中央重点処理部56dとから構成されている。AE検出回路55から各被写体輝度値を受け取った重み係数演算回路56は、受け取った各被写体輝度値を最大値検出部56aに入力する。各被写体輝度値を入力された最大値検出部56aは、例えば、図5のフローチャートに示す手順で各小領域62の中から最大の被写体輝度値を検出する。   The weighting coefficient calculation circuit 56 includes a maximum value detection unit 56a, a difference calculation unit 56b, a function calculation unit 56c, and a center weight processing unit 56d. The weighting factor calculation circuit 56 that has received each subject luminance value from the AE detection circuit 55 inputs each received subject luminance value to the maximum value detection unit 56a. The maximum value detection unit 56a, to which each subject brightness value is input, detects the maximum subject brightness value from each small region 62 by the procedure shown in the flowchart of FIG.

最大値検出部56aは、まず初期最大値として0をセットする。なお、最大値は、例えば、SDRAM45にセットするようにしてもよいし、最大値検出部56a内の専用のメモリにセットするようにしてもよい。初期最大値をセットした最大値検出部56aは、任意の小領域62、例えば、図4において1番の番号が付された小領域62を比較領域として設定する。比較領域を設定した最大値検出部56aは、セットした最大値と比較領域の被写体輝度値とを比較し、比較領域の被写体輝度値の方が大きい場合に、その被写体輝度値を新しい最大値としてセットする。最大値検出部56aは、1番から64番までの各小領域62について比較を行い、より大きい方に更新していくようにして被写体輝度値の最大値を検出する。   The maximum value detector 56a first sets 0 as the initial maximum value. For example, the maximum value may be set in the SDRAM 45, or may be set in a dedicated memory in the maximum value detection unit 56a. The maximum value detection unit 56a that sets the initial maximum value sets an arbitrary small region 62, for example, the small region 62 numbered 1 in FIG. 4 as the comparison region. The maximum value detection unit 56a that sets the comparison region compares the set maximum value with the subject luminance value of the comparison region, and when the subject luminance value of the comparison region is larger, sets the subject luminance value as a new maximum value. set. The maximum value detection unit 56a compares the small areas 62 from No. 1 to No. 64, and detects the maximum value of the subject luminance value by updating the smaller area 62.

差分演算部56bは、最大値検出部56aが検出した最大値から各小領域62のそれぞれの被写体輝度値を減算し、各小領域62毎に最大値からの差分を算出する。この差分値は、被写体輝度値の低いところ、すなわち暗いところほど値が大きくなり、撮像画面60内の暗い小領域62を表す。   The difference calculation unit 56b subtracts the subject luminance value of each small region 62 from the maximum value detected by the maximum value detection unit 56a, and calculates a difference from the maximum value for each small region 62. This difference value increases as the subject brightness value is lower, that is, the darker, and represents a dark small area 62 in the imaging screen 60.

関数演算部56cは、差分演算部56bが算出した各小領域62の差分値を補正関数に入力し、その出力結果を得る。図6に、補正関数の一例を示す。図6の補正関数RFは、右上がり、かつ右上部分が膨らむような曲線を描いており、入力値の大きいところ、すなわち、撮像画面60内の暗い部分をより大きくして出力する。これにより、暗い部分をより強調した重み係数を得ることができる。また、補正関数RFは、入力値が0〜180までの範囲しか持っていない。このため、関数演算部56cは、補正関数RFに各差分値を入力する前に、例えば、比例計算によって、各差分値の最大値が180となるように正規化を行う。このように正規化を行うことによって、各差分値を補正関数RFに正確に当て嵌めることができるようになる。なお、補正関数RFの曲率や、入力値と出力値の範囲は、補正の度合いなどによって適宜決定すればよい。また、補正関数RFは、例えば、EEPROM53などに予め記憶されており、必要に応じて関数演算部56cに読み出される。   The function calculation unit 56c inputs the difference value of each small region 62 calculated by the difference calculation unit 56b to the correction function, and obtains the output result. FIG. 6 shows an example of the correction function. The correction function RF in FIG. 6 draws a curve that rises to the right and bulges in the upper right portion, and outputs a larger portion of the input value, that is, a dark portion in the imaging screen 60. Thereby, it is possible to obtain a weighting coefficient in which dark portions are more emphasized. Further, the correction function RF has only a range of input values from 0 to 180. For this reason, before inputting each difference value to the correction function RF, the function calculation unit 56c performs normalization so that the maximum value of each difference value becomes 180, for example, by proportional calculation. By normalizing in this way, each difference value can be accurately applied to the correction function RF. Note that the curvature of the correction function RF and the range of the input value and the output value may be appropriately determined depending on the degree of correction. The correction function RF is stored in advance in, for example, the EEPROM 53, and is read out to the function calculation unit 56c as necessary.

中央重点処理部56dは、主要被写体が撮像画面60の中央付近にくることが多いことを考慮して撮像画面60の中央付近(例えば、図4における28、29、36、37番の小領域62など)の重み係数を大きくする、いわゆる中央重点測光を行うものである。図7に、中央重点測光で用いられる重み係数の一例を示す。なお、図7では、各領域内に記された数字が重み係数を示している。中央重点処理部56dは、関数演算部56cによって各小領域62毎に算出された出力値と、図7に示す中央重点の重み係数とを乗算する。これにより、撮像画面60内の暗い部分と、主要被写体がくる確立の高い中央部分とを重視した重み係数を得る事ができる。なお、中央重点の重み係数は、例えば、EEPROM53などに予め記憶されており、必要に応じて中央重点処理部56dに読み出される。重み係数演算回路56は、中央重点処理部56dによって算出された乗算結果を各小領域62毎の最終的な重み係数としてAE検出回路55に出力する。   In consideration of the fact that the main subject often comes near the center of the imaging screen 60, the center emphasis processing unit 56d (for example, the small regions 62 of No. 28, 29, 36, and 37 in FIG. 4). The center-weighted photometry is performed to increase the weighting coefficient. FIG. 7 shows an example of weighting factors used in center-weighted metering. In FIG. 7, the numbers written in each area indicate the weighting coefficient. The center emphasis processing unit 56d multiplies the output value calculated for each small region 62 by the function calculation unit 56c by the center emphasis weighting coefficient shown in FIG. As a result, it is possible to obtain a weighting factor that emphasizes the dark part in the imaging screen 60 and the central part where the main subject is highly likely to come. The center-weighted weighting factor is stored in advance in the EEPROM 53, for example, and is read by the center-weighted processing unit 56d as necessary. The weighting factor calculation circuit 56 outputs the multiplication result calculated by the center emphasis processing unit 56d to the AE detection circuit 55 as a final weighting factor for each small region 62.

重み係数演算回路56から重み係数を受け取ったAE検出回路55は、受け取った各小領域62毎の重み係数と、輝度演算部55bが最初に算出した各小領域62毎の被写体輝度値とを露出演算部55cに入力する。露出演算部55cは、露出値をE、小領域62毎の被写体輝度値をDi(i=1,2,・・・n)、小領域62毎の重み係数をWi(i=1,2,・・・n)としたとき、次式(1)による加重平均によって露出値Eを算出する。但し、本例では、小領域62の数を64としているので、n=64である。   The AE detection circuit 55 that has received the weighting factor from the weighting factor calculation circuit 56 exposes the received weighting factor for each small region 62 and the subject luminance value for each small region 62 initially calculated by the luminance calculation unit 55b. It inputs into the calculating part 55c. The exposure calculation unit 55c sets the exposure value to E, the subject brightness value for each small region 62 to Di (i = 1, 2,... N), and the weighting factor for each small region 62 to Wi (i = 1, 2, .., N), the exposure value E is calculated by a weighted average according to the following equation (1). However, in this example, since the number of the small regions 62 is 64, n = 64.

Figure 2007053617
Figure 2007053617

露出値Eを算出したAE検出回路55は、その露出値EをCPU37に送信する。CPU37は、AE検出回路55から送信された露出値Eを基に、例えば、予めEEPROM53などに保存されたプログラム線図から適切な絞り値やシャッタ速度などを決定して、絞り31やCCD36などの動作を制御する。   The AE detection circuit 55 that has calculated the exposure value E transmits the exposure value E to the CPU 37. Based on the exposure value E transmitted from the AE detection circuit 55, the CPU 37, for example, determines an appropriate aperture value, shutter speed, etc. from a program diagram stored in advance in the EEPROM 53, etc. Control the behavior.

次に、図8に示すフローチャートを参照しながら、図9に示す撮影シーンを例に、上記構成によるデジタルカメラ2の作用について説明する。なお、図9の撮影シーンは、逆光のため主要被写体である人物が暗く、背景が明るくなったシーンを示している。デジタルカメラ2は、レリーズボタン12の半押し操作に応じて、AF処理とAE処理とを含む撮影準備処理を行う。AE処理を行う際、CPU37は、A/D42から出力された画像データを、AE検出回路55に送信する。   Next, the operation of the digital camera 2 configured as described above will be described with reference to the flowchart shown in FIG. 8, taking the shooting scene shown in FIG. 9 as an example. Note that the shooting scene of FIG. 9 shows a scene in which the person as the main subject is dark and the background is bright due to backlight. The digital camera 2 performs shooting preparation processing including AF processing and AE processing in response to a half-press operation of the release button 12. When performing the AE process, the CPU 37 transmits the image data output from the A / D 42 to the AE detection circuit 55.

AE検出回路55に送信された画像データは、画像分割部55aに入力され、64個の小領域62(図4参照)に分割される。各小領域62に分割された画像データは、輝度演算部55bに送られる。輝度演算部55bは、各小領域62のそれぞれの被写体輝度値を算出する。図10に、図9の撮影シーンに応じた各被写体輝度値の算出結果を示す。なお、図10では、各小領域62内の数値が、それぞれ各小領域62の被写体輝度値(単位は、EV)を表している。この図10から、背景部分に相当する1〜8番付近の小領域62の被写体輝度値が高く、人物部分に相当する20、21、28、29番付近の小領域62の被写体輝度値が低いことが分かる。   The image data transmitted to the AE detection circuit 55 is input to the image dividing unit 55a and divided into 64 small areas 62 (see FIG. 4). The image data divided into the small areas 62 is sent to the luminance calculation unit 55b. The luminance calculation unit 55b calculates the subject luminance value of each small region 62. FIG. 10 shows a calculation result of each subject luminance value corresponding to the shooting scene of FIG. In FIG. 10, the numerical value in each small area 62 represents the subject brightness value (unit is EV) of each small area 62. From FIG. 10, the subject brightness value of the small area 62 near No. 1 to 8 corresponding to the background portion is high, and the subject brightness value of the small area 62 near No. 20, 21, 28, and 29 corresponding to the person portion is low. I understand that.

各小領域62の被写体輝度値を算出したAE検出回路55は、算出した各被写体輝度値を重み係数演算回路56に送信し、露出値を得るための重み係数を算出させる。重み係数演算回路56に送信された各被写体輝度値は、最大値検出部56aに入力される。最大値検出部56aは、前述のように1番から64番までの各小領域62の被写体輝度値について比較を行い、より大きい方に更新していくようにして被写体輝度値の最大値を検出する(図5参照)。図10においては、4番の小領域62の16.45EVが最大値として検出される。被写体輝度値の最大値を検出した最大値検出部56aは、検出した最大値16.45EVと各小領域62の被写体輝度値とを差分演算部56bに入力する。   The AE detection circuit 55 that has calculated the subject luminance value of each small area 62 transmits the calculated subject luminance value to the weighting factor calculation circuit 56 to calculate a weighting factor for obtaining an exposure value. Each subject luminance value transmitted to the weighting coefficient calculation circuit 56 is input to the maximum value detection unit 56a. As described above, the maximum value detection unit 56a compares the subject luminance values of the small areas 62 from No. 1 to No. 64, and detects the maximum value of the subject luminance value by updating to the larger one. (See FIG. 5). In FIG. 10, 16.45 EV of the fourth small area 62 is detected as the maximum value. The maximum value detection unit 56a that has detected the maximum value of the subject luminance value inputs the detected maximum value 16.45EV and the subject luminance value of each small region 62 to the difference calculation unit 56b.

差分演算部56bは、最大値16.45EVから各小領域62の被写体輝度値をそれぞれ減算し、各小領域62毎に最大値からの差分を算出する。図11に、差分値の算出結果を示す。なお、図11では、小数点をなくして簡明化するため、最大値16.45EVから各小領域62の被写体輝度値をそれぞれ減算した後、各差分値を100倍している。この図11では、被写体輝度値が最大であった4番の小領域62が0になり、人物部分に相当する被写体輝度値の低い小領域62(例えば、28番)の数値が高いことが分かる。これにより、最終的な重み係数を算出する際に、被写体輝度値の低い部分(暗い部分)の重み係数が大きく算出されるようになる。各小領域62の差分値を算出した差分演算部56bは、算出した各差分値を関数演算部56cに入力する。   The difference calculation unit 56b subtracts the subject luminance value of each small area 62 from the maximum value 16.45EV, and calculates a difference from the maximum value for each small area 62. FIG. 11 shows the calculation result of the difference value. In FIG. 11, in order to simplify the description by eliminating the decimal point, each difference value is multiplied by 100 after subtracting the subject luminance value of each small area 62 from the maximum value 16.45 EV. In FIG. 11, the fourth small area 62 having the maximum subject luminance value is 0, and it can be seen that the numerical value of the small area 62 (for example, No. 28) having a low subject luminance value corresponding to the person portion is high. . As a result, when the final weighting factor is calculated, the weighting factor of the portion with the low subject luminance value (dark portion) is calculated to be large. The difference calculation part 56b which calculated the difference value of each small area | region 62 inputs each calculated difference value into the function calculation part 56c.

関数演算部56cは、各差分値を補正関数RF(図6参照)に入力するため、最大値が180となるように各差分値を正規化する。図11においては、28番の小領域62の650が差分値の最大値であることが分かる。関数演算部56cは、図12に示すように、28番の小領域62が180となるように各差分値の正規化を行う。正規化を行った関数演算部56cは、正規化後の各差分値を補正関数RFに入力し、補正関数RFに応じた出力値を取得する。図13に、取得した各出力値の結果を示す。各出力値を得た関数演算部56cは、取得した各出力値を中央重点処理部56dに入力する。   The function calculation unit 56c normalizes each difference value so that the maximum value becomes 180 in order to input each difference value to the correction function RF (see FIG. 6). In FIG. 11, it can be seen that 650 of the 28th small region 62 is the maximum difference value. The function calculation unit 56c normalizes each difference value so that the 28th small region 62 becomes 180 as shown in FIG. The normalized function calculation unit 56c inputs each difference value after normalization to the correction function RF, and acquires an output value corresponding to the correction function RF. FIG. 13 shows the result of each acquired output value. The function calculation unit 56c that has obtained each output value inputs the obtained output value to the center emphasis processing unit 56d.

中央重点処理部56dは、関数演算部56cから入力された各小領域62の出力値のそれぞれに中央重点の重み係数(図7参照)を乗算し、各小領域62の最終的な重み係数を算出する。図14に、中央重点の重み係数を乗算した結果を示す。以上のように小領域62毎の重み係数を算出することにより、撮像画面60内の暗い部分と、主要被写体(人物など)がくる可能性の高い撮像画面60内の中央部分とを重視した重み係数を得ることができる。各重み係数を算出した重み係数演算回路56は、算出した各重み係数をAE検出回路55に送信する。   The center emphasis processing unit 56d multiplies each output value of each small region 62 input from the function calculation unit 56c by the center emphasis weighting factor (see FIG. 7), and obtains the final weighting factor of each subregion 62. calculate. FIG. 14 shows the result of multiplying the weighting factor of the center weight. By calculating the weighting coefficient for each small area 62 as described above, weights that place importance on the dark part in the imaging screen 60 and the central part in the imaging screen 60 where the main subject (such as a person) is likely to come. A coefficient can be obtained. The weighting factor calculation circuit 56 that has calculated each weighting factor transmits the calculated weighting factor to the AE detection circuit 55.

AE検出回路55に送信された各重み係数は、露出演算部55cに入力される。各重み係数を受け取った露出演算部55cは、上記(1)式に基づいて、図9に示す撮影シーンに応じた露出値を算出し、CPU37に送信する。CPU37は、算出された露出値を基にしてシャッタ速度や絞り値などを決定する。下表1に、図14に示す重み係数(以下、「低輝度重視の重み係数」と称す)を用いて算出した露出値と、中央重点の重み係数のみを用いて算出した露出値とを示す。   Each weighting coefficient transmitted to the AE detection circuit 55 is input to the exposure calculation unit 55c. Receiving each weighting coefficient, the exposure calculation unit 55c calculates an exposure value corresponding to the shooting scene shown in FIG. The CPU 37 determines a shutter speed, an aperture value, and the like based on the calculated exposure value. Table 1 below shows exposure values calculated using the weighting factors shown in FIG. 14 (hereinafter referred to as “weighting factors emphasizing low luminance”) and exposure values calculated using only the centering weighting factors. .

Figure 2007053617
Figure 2007053617

表1に示されるように、低輝度重視の重み係数を用いて算出した露出値は、中央重点の重み係数のみを用いて算出した露出値よりも約1EV低いことが分かる。これにより、CPU37は、中央重点の重み係数のみの場合よりもシャッタ速度を一段遅くするか、絞り値を一段小さくして1EV分明るく被写体を撮影する。このように、低輝度重視の重み係数を用いることにより、撮像画面内の暗い部分が重視されて、中央重点の重み係数のみの場合よりも被写体が明るく撮影されるので、図9に示すような主要被写体と背景との間のコントラストが極端に大きい逆光の撮影シーンで撮影を行ったとしても、主要被写体である人物などが露出アンダーになってしまうことを抑えることができる。   As shown in Table 1, it can be seen that the exposure value calculated using the low-luminance weighting factor is about 1 EV lower than the exposure value calculated using only the center-weighting weighting factor. As a result, the CPU 37 shoots the subject brighter by 1 EV by lowering the shutter speed by one step or reducing the aperture value by one step as compared with the case of only the weighting factor of the center weight. In this way, by using the weighting factor emphasizing low luminance, the dark portion in the imaging screen is emphasized, and the subject is photographed brighter than the case of only the weighting factor of the center emphasis. Even if shooting is performed in a backlight scene where the contrast between the main subject and the background is extremely large, it is possible to prevent the person who is the main subject from being underexposed.

なお、上記実施形態では、常に低輝度重視の重み係数を用いて露出値を算出するようにしているが、図15のフローチャートに示すように、中央重点の重み係数と低輝度重視の重み係数とを使い分けるようにしてもよい。AE検出回路55は、画像分割部55aによる撮像画面60の分割と、輝度演算部55bによる各小領域62の被写体輝度値の算出とを行った後、各被写体輝度値を基に撮像画面60全体の平均輝度値の算出を行う。平均輝度値は、例えば、上記(1)式の重み係数を全て1にして計算すればよい。   In the above embodiment, the exposure value is always calculated using a weighting factor emphasizing low luminance. However, as shown in the flowchart of FIG. You may make it use properly. The AE detection circuit 55 performs the division of the imaging screen 60 by the image dividing unit 55a and the calculation of the subject luminance value of each small area 62 by the luminance calculation unit 55b, and then the entire imaging screen 60 based on each subject luminance value. The average luminance value is calculated. For example, the average luminance value may be calculated by setting all the weighting coefficients in the above equation (1) to 1.

平均輝度値を算出したAE検出回路55は、その平均輝度値が12EV以上であるか否かの判定を行う。平均輝度値が12EV以上であると判定したAE検出回路55は、上記実施形態と同様に、輝度演算部55bが算出した各被写体輝度値を重み係数演算回路56に送信し、低輝度重視の重み係数を算出させる。一方、平均輝度値が12EV以下であると判定したAE検出回路55は、各被写体輝度値を露出演算部55cに入力し、中央重点の重み係数のみで露出値の算出を行う。   The AE detection circuit 55 that has calculated the average luminance value determines whether or not the average luminance value is 12 EV or more. The AE detection circuit 55 that has determined that the average luminance value is equal to or greater than 12 EV transmits each subject luminance value calculated by the luminance calculation unit 55b to the weight coefficient calculation circuit 56 in the same manner as in the above embodiment, and weights that emphasize low luminance. Let the coefficient be calculated. On the other hand, the AE detection circuit 55 that has determined that the average luminance value is 12 EV or less inputs each subject luminance value to the exposure calculation unit 55c, and calculates the exposure value using only the center-weighted weighting factor.

上記実施形態のように、常に低輝度重視の重み係数を用いていると、逆光などの撮影シーンでは、主要被写体の露出アンダーを抑えることができるものの、夜間のスポットライト撮影などのように、主要被写体の方が背景よりも明るい場合には、反対に主要被写体を露出オーバー気味にさせてしまうことが懸念される。このため、本例では、平均輝度値が12EV以上である場合に、逆光やライトなどの高輝度物が写りこんだ撮影シーンであると判断し、この場合にだけ低輝度重視の重み係数を使用するようにした。これにより、逆光などの撮影シーンにおける主要被写体の露出アンダーを抑えるとともに、それ以外の撮影シーンで低輝度重視の重み係数が悪影響を及ぼすことを防止することができる。なお、本例では、平均輝度値の閾値を12EVとしているが、これに限ることなく、CCD38のダイナミックレンジなどを考慮して任意に設定すればよい。   If a weighting factor that emphasizes low luminance is always used as in the above-described embodiment, underexposure of the main subject can be suppressed in shooting scenes such as backlighting, but it is not possible to perform main shooting as in night spotlight shooting. If the subject is brighter than the background, the main subject may be overexposed. Therefore, in this example, when the average luminance value is 12 EV or more, it is determined that the scene is a shooting scene in which a high-luminance object such as backlight or light is reflected. Only in this case, the weighting factor emphasizing low luminance is used. I tried to do it. As a result, underexposure of the main subject in a shooting scene such as backlighting can be suppressed, and a weighting factor emphasizing low luminance can be prevented from adversely affecting other shooting scenes. In this example, the threshold value of the average luminance value is set to 12 EV. However, the threshold value is not limited to this and may be arbitrarily set in consideration of the dynamic range of the CCD 38 and the like.

なお、上記実施形態では、逆光などの撮影シーンにおける主要被写体の露出アンダーを抑える例を示したが、例えば、デジタルカメラ2を図16に示すように構成し、夜間のスポットライト撮影などにおける主要被写体の露出オーバーを抑えるようにしてもよい。なお、上記実施形態と機能・構成上、同じものについては、同符号を付し、詳細な説明を省略する。   In the above embodiment, an example in which underexposure of a main subject in a shooting scene such as backlighting is suppressed has been shown. However, for example, the digital camera 2 is configured as shown in FIG. The overexposure may be suppressed. In addition, about the same thing as the said embodiment on a function and a structure, the same code is attached and detailed description is abbreviate | omitted.

重み係数演算回路70は、最小値検出部70aと差分演算部70bと関数演算部70cと中央重点処理部70dとから構成されている。この重み係数演算回路70は、AE検出回路55から各小領域62毎の被写体輝度値が送信された際に、それらの各被写体輝度値を最小値検出部70aに入力する。各被写体輝度値を入力された最小値検出部70aは、例えば、図17のフローチャートに示す手順で各小領域62の中から最小の被写体輝度値を検出する。   The weighting factor calculation circuit 70 includes a minimum value detection unit 70a, a difference calculation unit 70b, a function calculation unit 70c, and a center weight processing unit 70d. When the subject brightness value for each small region 62 is transmitted from the AE detection circuit 55, the weight coefficient calculation circuit 70 inputs each subject brightness value to the minimum value detection unit 70a. The minimum value detection unit 70a, to which each subject brightness value is input, detects the minimum subject brightness value from each small region 62 by the procedure shown in the flowchart of FIG.

最小値検出部70aは、まず初期最小値として99.99をセットする。なお、最小値は、例えば、SDRAM45にセットするようにしてもよいし、最小値検出部70a内の専用のメモリにセットするようにしてもよい。また、初期最小値は、99.99に限らず、輝度値としてありえない程の十分に大きな値をセットすればよい。初期最小値をセットした最小値検出部70aは、任意の小領域62、例えば、図4において1番の番号が付された小領域62を比較領域として設定する。比較領域を設定した最大値検出部70aは、セットした最小値と比較領域の被写体輝度値とを比較し、比較領域の被写体輝度値の方が小さい場合に、その被写体輝度値を新しい最小値としてセットする。最小値検出部70aは、1番から64番までの各小領域62について比較を行い、より小さい方に更新していくようにして被写体輝度値の最小値を検出する。   The minimum value detector 70a first sets 99.99 as the initial minimum value. The minimum value may be set in the SDRAM 45, for example, or may be set in a dedicated memory in the minimum value detection unit 70a. The initial minimum value is not limited to 99.99, and a sufficiently large value that is impossible as a luminance value may be set. The minimum value detection unit 70a that sets the initial minimum value sets an arbitrary small region 62, for example, the small region 62 numbered 1 in FIG. 4 as the comparison region. The maximum value detection unit 70a that sets the comparison region compares the set minimum value with the subject luminance value of the comparison region, and when the subject luminance value of the comparison region is smaller, sets the subject luminance value as a new minimum value. set. The minimum value detection unit 70a compares the small areas 62 from No. 1 to No. 64, and detects the minimum value of the subject luminance value so as to update the smaller area.

差分演算部70bは、最小値検出部70aが検出した最小値を各小領域62のそれぞれの被写体輝度値から減算し、各小領域62毎に最小値からの差分を算出する。この差分値は、被写体輝度値の高いところ、すなわち明るいところほど値が大きくなり、撮像画面60内の明るい小領域62を表す。   The difference calculation unit 70 b subtracts the minimum value detected by the minimum value detection unit 70 a from the subject luminance value of each small region 62, and calculates a difference from the minimum value for each small region 62. This difference value increases as the subject brightness value is higher, that is, the brighter, and represents a bright small area 62 in the imaging screen 60.

関数演算部70cは、差分演算部70bが算出した各小領域62の差分値を、例えば、図6に示した補正関数RFに入力し、その出力結果を得る。図6の補正関数RFは、右上がり、かつ右上部分が膨らむような曲線を描いており、入力値の大きいところ、すなわち、撮像画面60内の明るい部分をより大きくして出力する。これにより、明るい部分をより強調した重み係数を得ることができる。また、関数演算部70cは、上記実施形態と同様に、補正関数RFに各差分値を入力する前に、各差分値の最大値が180となるように正規化を行う。   The function calculation unit 70c inputs the difference value of each small region 62 calculated by the difference calculation unit 70b, for example, to the correction function RF shown in FIG. 6, and obtains the output result. The correction function RF of FIG. 6 draws a curve that rises to the right and the upper right part swells, and outputs a larger input value, that is, a bright part in the imaging screen 60. Thereby, it is possible to obtain a weighting factor that emphasizes brighter portions. Similarly to the above-described embodiment, the function calculation unit 70c performs normalization so that the maximum value of each difference value is 180 before inputting each difference value to the correction function RF.

中央重点処理部70dは、関数演算部70cによって各小領域62毎に算出された出力値と、図7に示す中央重点の重み係数とを乗算する。これにより、撮像画面60内の明るい部分と、主要被写体がくる確立の高い中央部分とを重視した重み係数を得る事ができる。重み係数演算回路70は、中央重点処理部70dによって算出された乗算結果を各小領域62毎の最終的な重み係数としてAE検出回路55に出力する。   The center emphasis processing unit 70d multiplies the output value calculated for each small region 62 by the function calculation unit 70c by the center emphasis weighting coefficient shown in FIG. As a result, it is possible to obtain a weighting factor that places importance on the bright part in the imaging screen 60 and the central part where the main subject is highly likely to come. The weighting factor calculation circuit 70 outputs the multiplication result calculated by the center emphasis processing unit 70d to the AE detection circuit 55 as a final weighting factor for each small region 62.

次に、図18に示すフローチャートを参照しながら、図19に示す撮影シーンを例に、図16の構成によるデジタルカメラ2の作用について説明する。なお、図19の撮影シーンは、夜間にスポットライトなどを当てて主要被写体である人物が明るく、背景が暗い撮影シーンを示している。デジタルカメラ2は、レリーズボタン12の半押し操作に応じて、AF処理とAE処理とを含む撮影準備処理を行う。AE処理を行う際、CPU37は、A/D42から出力された画像データを、AE検出回路55に送信する。   Next, the operation of the digital camera 2 having the configuration shown in FIG. 16 will be described with reference to the flowchart shown in FIG. 18, taking the shooting scene shown in FIG. 19 as an example. The shooting scene of FIG. 19 shows a shooting scene in which a person who is a main subject is bright and a background is dark by applying a spotlight or the like at night. The digital camera 2 performs shooting preparation processing including AF processing and AE processing in response to a half-press operation of the release button 12. When performing the AE process, the CPU 37 transmits the image data output from the A / D 42 to the AE detection circuit 55.

AE検出回路55に送信された画像データは、画像分割部55aに入力され、64個の小領域62(図4参照)に分割される。各小領域62に分割された画像データは、輝度演算部55bに送られる。輝度演算部55bは、各小領域62のそれぞれの被写体輝度値を算出する。図20に、図19の撮影シーンに応じた各被写体輝度値の算出結果を示す。なお、図20では、各小領域62内の数値が、それぞれ各小領域62の被写体輝度値(単位は、EV)を表している。この図20から、背景部分に相当する両端の小領域62の被写体輝度値が低く、スポットライトが当たった人物部分に相当する中央付近の小領域62の被写体輝度値が高いことが分かる。   The image data transmitted to the AE detection circuit 55 is input to the image dividing unit 55a and divided into 64 small areas 62 (see FIG. 4). The image data divided into the small areas 62 is sent to the luminance calculation unit 55b. The luminance calculation unit 55b calculates the subject luminance value of each small region 62. FIG. 20 shows a calculation result of each subject luminance value corresponding to the shooting scene of FIG. In FIG. 20, the numerical value in each small area 62 represents the subject luminance value (unit: EV) of each small area 62. From FIG. 20, it can be seen that the subject luminance value of the small region 62 at both ends corresponding to the background portion is low and the subject luminance value of the small region 62 near the center corresponding to the person portion hit by the spotlight is high.

各小領域62の被写体輝度値を算出したAE検出回路55は、算出した各被写体輝度値を重み係数演算回路70に送信し、露出値を得るための重み係数を算出させる。重み係数演算回路70に送信された各被写体輝度値は、最小値検出部70aに入力される。最小値検出部70aは、前述のように1番から64番までの各小領域62の被写体輝度値について比較を行い、より小さい方に更新していくようにして被写体輝度値の最小値を検出する(図17参照)。図20においては、35番、及び56番の小領域62の3.42EVが最小値として検出される。被写体輝度値の最小値を検出した最小値検出部70aは、検出した最小値3.42EVと各小領域62の被写体輝度値とを差分演算部70bに入力する。   The AE detection circuit 55 that has calculated the subject luminance value of each small area 62 transmits the calculated subject luminance value to the weighting factor calculation circuit 70 to calculate a weighting factor for obtaining an exposure value. Each subject luminance value transmitted to the weighting coefficient calculation circuit 70 is input to the minimum value detection unit 70a. As described above, the minimum value detection unit 70a compares the subject luminance values of the small areas 62 from No. 1 to No. 64, and detects the minimum value of the subject luminance value by updating the smaller one. (See FIG. 17). In FIG. 20, 3.42 EV of the 35th and 56th small regions 62 is detected as the minimum value. The minimum value detection unit 70a that detects the minimum value of the subject luminance value inputs the detected minimum value 3.42EV and the subject luminance value of each small region 62 to the difference calculation unit 70b.

差分演算部70bは、各小領域62の被写体輝度値のそれぞれから最小値16.45EVを減算し、各小領域62毎に最小値からの差分を算出する。図21に、差分値の算出結果を示す。なお、図21では、小数点をなくして簡明化するため、各小領域62の被写体輝度値のそれぞれから最小値3.42EVを減算した後、各差分値を100倍している。この図21では、被写体輝度値が最小であった35番、及び56番の小領域62が0になり、人物部分に相当する被写体輝度値の高い小領域62(例えば、37番)の数値が高いことが分かる。これにより、最終的な重み係数を算出する際に、被写体輝度値の高い部分(明るい部分)の重み係数が大きく算出されるようになる。各小領域62の差分値を算出した差分演算部70bは、算出した各差分値を関数演算部70cに入力する。   The difference calculation unit 70b subtracts the minimum value 16.45EV from each of the subject luminance values of each small area 62, and calculates a difference from the minimum value for each small area 62. FIG. 21 shows the calculation result of the difference value. In FIG. 21, in order to simplify the description by eliminating the decimal point, each difference value is multiplied by 100 after subtracting the minimum value 3.42EV from each of the subject luminance values of each small area 62. In FIG. 21, the 35th and 56th small areas 62 with the lowest subject luminance value are 0, and the numerical value of the small area 62 (for example, No. 37) having a high subject luminance value corresponding to the person portion is obtained. I understand that it is expensive. As a result, when the final weighting factor is calculated, the weighting factor of the portion with a high subject luminance value (the bright portion) is calculated to be large. The difference calculation part 70b which calculated the difference value of each small area | region 62 inputs each calculated difference value into the function calculation part 70c.

関数演算部70cは、各差分値を補正関数RF(図6参照)に入力するため、各差分値の最大値が180となるように正規化を行う。図21においては、37番の小領域62の569が差分値の最大値であることが分かる。関数演算部70cは、図22に示すように、37番の小領域62が180となるように各差分値の正規化を行う。正規化を行った関数演算部70cは、正規化後の各差分値を補正関数RFに入力し、補正関数RFに応じた出力値を取得する。図23に、取得した各出力値の結果を示す。各出力値を得た関数演算部70cは、取得した各出力値を中央重点処理部70dに入力する。   The function calculation unit 70c performs normalization so that the maximum value of each difference value is 180 in order to input each difference value to the correction function RF (see FIG. 6). In FIG. 21, it can be seen that 569 in the 37th small area 62 is the maximum difference value. The function calculation unit 70c normalizes each difference value so that the 37th small region 62 becomes 180 as shown in FIG. The normalized function calculation unit 70c inputs each normalized difference value to the correction function RF, and acquires an output value corresponding to the correction function RF. FIG. 23 shows the results of the acquired output values. The function calculation unit 70c that has obtained each output value inputs the obtained output value to the center emphasis processing unit 70d.

中央重点処理部70dは、関数演算部70cから入力された各小領域62の出力値のそれぞれに中央重点の重み係数(図7参照)を乗算し、各小領域62の最終的な重み係数を算出する。図24に、中央重点の重み係数を乗算した結果を示す。以上のように小領域62毎の重み係数を算出することにより、撮像画面60内の明るい部分と、主要被写体(人物など)がくる可能性の高い撮像画面60内の中央部分とを重視した重み係数を得ることができる。各重み係数を算出した重み係数演算回路70は、算出した各重み係数をAE検出回路55に送信する。   The center emphasis processing unit 70d multiplies each output value of each small region 62 input from the function calculation unit 70c by a center emphasis weighting factor (see FIG. 7), and obtains the final weighting factor of each subregion 62. calculate. FIG. 24 shows the result of multiplying the weighting factor of the center weight. By calculating the weighting coefficient for each small region 62 as described above, weights that emphasize the bright portion in the imaging screen 60 and the central portion in the imaging screen 60 where a main subject (such as a person) is likely to come. A coefficient can be obtained. The weighting factor calculation circuit 70 that has calculated each weighting factor transmits the calculated weighting factor to the AE detection circuit 55.

AE検出回路55に送信された各重み係数は、露出演算部55cに入力される。各重み係数を受け取った露出演算部55cは、上記(1)式に基づいて、図19に示す撮影シーンに応じた露出値を算出し、CPU37に送信する。CPU37は、算出された露出値を基にしてシャッタ速度や絞り値などを決定する。下表2に、図24に示す重み係数(以下、「高輝度重視の重み係数」と称す)を用いて算出した露出値と、中央重点の重み係数のみを用いて算出した露出値とを示す。   Each weighting coefficient transmitted to the AE detection circuit 55 is input to the exposure calculation unit 55c. Receiving each weighting coefficient, the exposure calculation unit 55c calculates an exposure value corresponding to the shooting scene shown in FIG. The CPU 37 determines a shutter speed, an aperture value, and the like based on the calculated exposure value. Table 2 below shows exposure values calculated using the weighting factor shown in FIG. 24 (hereinafter referred to as “weighting factor emphasizing high luminance”) and exposure values calculated using only the weighting factor of the center weight. .

Figure 2007053617
Figure 2007053617

表2に示されるように、高輝度重視の重み係数を用いて算出した露出値は、中央重点の重み係数のみを用いて算出した露出値よりも約1EV高いことが分かる。これにより、CPU37は、中央重点の重み係数のみの場合よりもシャッタ速度を一段早くするか、絞り値を一段大きくして1EV分暗く被写体を撮影する。このように、高輝度重視の重み係数を用いることにより、撮像画面内の明るい部分が重視されて、中央重点の重み係数のみの場合よりも被写体が暗く撮影されるので、図19に示すような夜間のスポットライト撮影など主要被写体と背景との間のコントラストが極端に大きい場合でも、主要被写体である人物などが露出オーバーになってしまうことを抑えることができる。   As shown in Table 2, it can be seen that the exposure value calculated using the high-luminance weighting factor is about 1 EV higher than the exposure value calculated using only the center-weighting weighting factor. As a result, the CPU 37 takes the subject darker by 1 EV by increasing the shutter speed by one step or by increasing the aperture value by one step as compared with the case of using only the center-weighted weighting factor. In this way, by using a weighting factor emphasizing high luminance, the bright part in the imaging screen is emphasized, and the subject is photographed darker than the case of only the weighting factor of the center emphasis. Therefore, as shown in FIG. Even when the contrast between the main subject and the background is extremely large, such as nighttime spotlight shooting, it is possible to prevent the person who is the main subject from being overexposed.

なお、上記実施形態では、常に高輝度重視の重み係数を用いて露出値を算出するようにしているが、図25のフローチャートに示すように、中央重点の重み係数と高輝度重視の重み係数とを使い分けるようにしてもよい。AE検出回路55は、画像分割部55aによる撮像画面60の分割と、輝度演算部55bによる各小領域62の被写体輝度値の算出とを行った後、各被写体輝度値を基に撮像画面60全体の平均輝度値の算出を行う。平均輝度値は、例えば、上記(1)式の重み係数を全て1にして計算すればよい。   In the above embodiment, the exposure value is always calculated using a weighting factor emphasizing high brightness. However, as shown in the flowchart of FIG. You may make it use properly. The AE detection circuit 55 performs the division of the imaging screen 60 by the image dividing unit 55a and the calculation of the subject luminance value of each small area 62 by the luminance calculation unit 55b, and then the entire imaging screen 60 based on each subject luminance value. The average luminance value is calculated. For example, the average luminance value may be calculated by setting all the weighting coefficients in the above equation (1) to 1.

平均輝度値を算出したAE検出回路55は、その平均輝度値が7EV以下であるか否かの判定を行う。平均輝度値が7EV以下であると判定したAE検出回路55は、上記実施形態と同様に、輝度演算部55bが算出した各被写体輝度値を重み係数演算回路70に送信し、高輝度重視の重み係数を算出させる。一方、平均輝度値が7EV以上であると判定したAE検出回路55は、各被写体輝度値を露出演算部55cに入力し、中央重点の重み係数のみで露出値の算出を行う。   The AE detection circuit 55 that has calculated the average luminance value determines whether or not the average luminance value is 7 EV or less. The AE detection circuit 55 that has determined that the average luminance value is 7 EV or less transmits each subject luminance value calculated by the luminance calculation unit 55b to the weighting coefficient calculation circuit 70 in the same manner as in the above embodiment, and weights that emphasize high luminance. Let the coefficient be calculated. On the other hand, the AE detection circuit 55 that has determined that the average luminance value is 7 EV or more inputs each subject luminance value to the exposure calculation unit 55c, and calculates the exposure value using only the center-weighted weight coefficient.

上記実施形態のように、常に高輝度重視の重み係数を用いていると、夜間のスポットライト撮影などでは、主要被写体の露出オーバーを抑えることができるものの、逆光などの撮影シーンでは、反対に主要被写体を露出アンダー気味にさせてしまうことが懸念される。このため、本例では、平均輝度値が7EV以下である場合に、夜間のスポットライト撮影などであると判断し、この場合にだけ高輝度重視の重み係数を使用するようにした。これにより、夜間のスポットライト撮影などにおける主要被写体の露出オーバーを抑えるとともに、それ以外の撮影シーンで高輝度重視の重み係数が悪影響を及ぼすことを防止することができる。なお、本例では、平均輝度値の閾値を7EVとしているが、これに限ることなく、CCD38のダイナミックレンジなどを考慮して任意に設定すればよい。   If a weighting factor that emphasizes high brightness is always used as in the above embodiment, overexposure of the main subject can be suppressed in night spotlight shooting, but on the contrary, in a shooting scene such as backlighting, There is a concern that the subject may be underexposed. For this reason, in this example, when the average luminance value is 7 EV or less, it is determined that the spotlight shooting is performed at night, and the weighting factor emphasizing high luminance is used only in this case. As a result, it is possible to suppress overexposure of the main subject in spotlight shooting at night and to prevent the weighting factor emphasizing high luminance from adversely affecting other shooting scenes. In this example, the threshold value of the average luminance value is 7 EV. However, the threshold value is not limited to this and may be arbitrarily set in consideration of the dynamic range of the CCD 38.

なお、上記各実施形態では、逆光などの撮影シーンにおける主要被写体の露出アンダーを抑える例と、夜間のスポットライト撮影などにおける主要被写体の露出オーバーを抑える例とを示したが、例えば、デジタルカメラ2を図26に示すように構成し、主要被写体の露出アンダーと露出オーバーとが同時に抑えられるようにしてもよい。   In each of the above embodiments, an example in which underexposure of a main subject in a shooting scene such as backlighting is suppressed and an example in which overexposure of a main subject in nighttime spotlight shooting or the like is suppressed have been described. 26 may be configured so that underexposure and overexposure of the main subject can be suppressed at the same time.

重み係数演算回路81は、最大値検出部81aと、最小値検出部81bと、差分演算部81cと、関数演算部81dと、中央重点処理部81eとから構成されている。この重み係数演算回路81は、AE検出回路80から各小領域62毎の被写体輝度値が送信された際に、各被写体輝度値を最大値検出部81aと最小値検出部81bとに入力して、低輝度重視の重み係数(図8参照)と、高輝度重視の重み係数(図18参照)とを、それぞれ算出し、AE検出回路80に送る。   The weighting factor calculation circuit 81 includes a maximum value detection unit 81a, a minimum value detection unit 81b, a difference calculation unit 81c, a function calculation unit 81d, and a center weight processing unit 81e. When the subject luminance value for each small area 62 is transmitted from the AE detection circuit 80, the weight coefficient calculation circuit 81 inputs each subject luminance value to the maximum value detection unit 81a and the minimum value detection unit 81b. The weighting factor emphasizing low luminance (see FIG. 8) and the weighting factor emphasizing high luminance (see FIG. 18) are respectively calculated and sent to the AE detection circuit 80.

AE検出回路80には、上記各実施形態と同様の画像分割部80a、輝度演算部80b、露出演算部80cの他に、露出値合成部80dが設けられている。露出演算部80cは、重み係数演算回路81から送信された低輝度重視の重み係数と高輝度重視の重み係数とを基に、それぞれの重み係数に対応した露出値を算出する。また、露出演算部80cは、EEPROM53などに記憶された中央重点の重み係数を読み出し、中央重点の重み係数のみの露出値も算出する。すなわち、本例の露出演算部80cは、1回のAE処理にかかる1つの撮像画面60に対して、異なる重み係数を用いた3つの露出値を算出する。なお、算出された各露出値は、例えば、SDRAM45や、AE検出回路80に専用に設けられたメモリなどに一時的に書き込まれる。   The AE detection circuit 80 is provided with an exposure value synthesis unit 80d in addition to the image division unit 80a, the luminance calculation unit 80b, and the exposure calculation unit 80c that are the same as those in the above embodiments. The exposure calculation unit 80c calculates an exposure value corresponding to each weighting factor based on the weighting factor emphasizing low luminance and the weighting factor emphasizing high luminance transmitted from the weighting factor calculation circuit 81. Further, the exposure calculation unit 80c reads the center-weighted weight coefficient stored in the EEPROM 53 or the like, and calculates the exposure value of only the center-weighted weight coefficient. That is, the exposure calculation unit 80c of this example calculates three exposure values using different weighting factors for one imaging screen 60 related to one AE process. The calculated exposure values are temporarily written in, for example, the SDRAM 45 or a memory provided exclusively for the AE detection circuit 80.

露出値合成部80dは、図27に示すような変換関数を利用して露出値毎の合成割合を求め、この合成割合を基に露出演算部80cが算出した3つの露出値を合成することにより、1つの最適な露出値を割り出す。変換関数は、各露出値のそれぞれに対応して設けられており、例えば、EEPROM53などに予め記憶されている。なお、これ以降においては、低輝度重視の重み係数を用いて算出した露出値を露出値E1、高輝度重視の重み係数を用いて算出した露出値を露出値E2、中央重点の重み係数を用いて算出した露出値を露出値E3、これらの合成によって割り出された最適な露出値を最適露出値Esと称す。また、露出値E1に対応する変換関数を変換関数CF1、露出値E2に対応する変換関数を変換関数CF2、露出値E3に対応する変換関数を変換関数CF3と称す。   The exposure value composition unit 80d obtains a composition ratio for each exposure value using a conversion function as shown in FIG. 27, and composes the three exposure values calculated by the exposure calculation unit 80c based on this composition ratio. Determine one optimal exposure value. The conversion function is provided corresponding to each exposure value, and is stored in advance in the EEPROM 53, for example. In the following, the exposure value calculated using the low-luminance weighting factor is the exposure value E1, the exposure value calculated using the high-luminance weighting factor is the exposure value E2, and the center-weighting weighting factor is used. The exposure value calculated in this way is referred to as exposure value E3, and the optimum exposure value determined by combining these values is referred to as optimum exposure value Es. A conversion function corresponding to the exposure value E1 is referred to as a conversion function CF1, a conversion function corresponding to the exposure value E2 is referred to as a conversion function CF2, and a conversion function corresponding to the exposure value E3 is referred to as a conversion function CF3.

各露出値E1、E2、E3のそれぞれの合成割合を求めた露出値合成部80dは、露出値E1の合成割合をR1、露出値E2の合成割合をR2、露出値E3の合成割合をR3としたとき、次式(2)によって最適露出値Esを算出する。   The exposure value synthesizing unit 80d that has obtained the respective composition ratios of the exposure values E1, E2, and E3 has the composition ratio of the exposure value E1 as R1, the composition ratio of the exposure value E2 as R2, and the composition ratio of the exposure value E3 as R3. Then, the optimum exposure value Es is calculated by the following equation (2).

Figure 2007053617
Figure 2007053617

次に、図28に示すフローチャートを参照しながら、図26の構成によるデジタルカメラ2の作用について説明する。デジタルカメラ2は、レリーズボタン12の半押し操作に応じて、AF処理とAE処理とを含む撮影準備処理を行う。AE処理を行う際、CPU37は、A/D42から出力された画像データを、AE検出回路80に送信する。   Next, the operation of the digital camera 2 configured as shown in FIG. 26 will be described with reference to the flowchart shown in FIG. The digital camera 2 performs shooting preparation processing including AF processing and AE processing in response to a half-press operation of the release button 12. When performing the AE process, the CPU 37 transmits the image data output from the A / D 42 to the AE detection circuit 80.

AE検出回路80に送信された画像データは、画像分割部80aに入力され、64個の小領域62(図4参照)に分割される。各小領域62に分割された画像データは、輝度演算部80bに送られる。輝度演算部80bは、各小領域62のそれぞれの被写体輝度値を算出する。   The image data transmitted to the AE detection circuit 80 is input to the image dividing unit 80a and divided into 64 small regions 62 (see FIG. 4). The image data divided into the small areas 62 is sent to the luminance calculation unit 80b. The luminance calculation unit 80b calculates the subject luminance value of each small region 62.

各小領域62の被写体輝度値を算出したAE検出回路80は、算出した各被写体輝度値を重み係数演算回路81に送信し、露出値を得るための重み係数を算出させる。各被写体輝度値を受け取った重み係数演算回路81は、それぞれ図8、及び図18に示す手順に従って、各被写体輝度値から低輝度重視の重み係数と高輝度重視の重み係数とを算出し、これらの各重み係数をAE検出回路80に送信する。   The AE detection circuit 80 that has calculated the subject luminance value of each small region 62 transmits the calculated subject luminance value to the weighting factor calculation circuit 81 to calculate a weighting factor for obtaining an exposure value. The weighting factor calculation circuit 81 that has received each subject luminance value calculates a weighting factor emphasizing low luminance and a weighting factor emphasizing high luminance from each subject luminance value according to the procedures shown in FIGS. 8 and 18, respectively. Are transmitted to the AE detection circuit 80.

AE検出回路80に送信された各重み係数は、露出演算部80cに入力される。各重み係数を受け取った露出演算部80cは、上記(1)式に基づいて、低輝度重視の重み係数を用いた露出値E1と、高輝度重視の重み係数を用いた露出値E2、及び中央重点の重み係数(図7参照)を用いた露出値E3をそれぞれ算出する。算出された各露出値は、露出値合成部80dに入力される。   Each weighting factor transmitted to the AE detection circuit 80 is input to the exposure calculation unit 80c. The exposure calculation unit 80c that has received each weighting factor, based on the above equation (1), exposes an exposure value E1 that uses a weighting factor that emphasizes low luminance, an exposure value E2 that uses a weighting factor that emphasizes high luminance, and the center. The exposure value E3 using the weighting factor of importance (see FIG. 7) is calculated. Each calculated exposure value is input to the exposure value composition unit 80d.

露出演算部80cによる各露出値E1、E2、E3の算出が終了すると、露出値合成部80dは、まず各小領域62毎の被写体輝度値を基に撮像画面60全体の平均輝度値を算出する。平均輝度値を算出した露出値合成部80dは、各変換関数CF1、CF2、CF3を参照して、平均輝度値に応じた各露出値E1、E2、E3の合成割合R1、R2、R3を求める。各変換関数CF1、CF2、CF3は、平均輝度値が高いほど露出値E1の合成割合R1を大きく、平均輝度値が低いほど露出値E2の合成割合R2を大きく、また、中間付近の平均輝度値では露出値E3の合成割合R3を大きくするようにしている。   When the calculation of the exposure values E1, E2, and E3 by the exposure calculation unit 80c is completed, the exposure value synthesis unit 80d first calculates the average luminance value of the entire imaging screen 60 based on the subject luminance value for each small region 62. . The exposure value combining unit 80d that has calculated the average luminance value refers to the conversion functions CF1, CF2, and CF3, and determines the combined ratios R1, R2, and R3 of the exposure values E1, E2, and E3 according to the average luminance value. . For each conversion function CF1, CF2, CF3, the higher the average luminance value, the larger the combined ratio R1 of the exposure value E1, the lower the average luminance value, the larger the combined ratio R2 of the exposed value E2, and the average luminance value near the middle. Then, the composition ratio R3 of the exposure value E3 is increased.

前述のように、平均輝度値が高い場合には、逆光やライトなどの高輝度物が写りこんだ撮影シーンであると判断することができる。このため、平均輝度値が高い場合には、低輝度重視の重み係数を用いた露出値E1の合成割合R1を大きくすることにより、主要被写体の露出アンダーを抑えることができる。反対に、平均輝度値が低い場合には、夜間にスポットライトを当てた撮影シーンなどであると判断することができる。このため、平均輝度値が低い場合には、高輝度重視の重み係数を用いた露出値E2の合成割合R2を大きくすることにより、主要被写体の露出オーバーを抑えることができる。また、中間付近の平均輝度値では、中央重点の重み係数を用いた露出値E3の合成割合R3を大きくすることにより、低輝度重視の重み係数や高輝度重視の重み係数が、主要被写体の露出に対して悪影響を及ぼすことを防止することができる。   As described above, when the average luminance value is high, it can be determined that the shooting scene includes a high-luminance object such as backlight or light. For this reason, when the average luminance value is high, underexposure of the main subject can be suppressed by increasing the composition ratio R1 of the exposure value E1 using a weighting factor emphasizing low luminance. On the other hand, when the average luminance value is low, it can be determined that the scene is a shooting scene with a spotlight applied at night. For this reason, when the average luminance value is low, overexposure of the main subject can be suppressed by increasing the composition ratio R2 of the exposure value E2 using a weighting factor emphasizing high luminance. For the average luminance value near the middle, by increasing the composition ratio R3 of the exposure value E3 using the center-weighted weighting factor, the weighting factor emphasizing low luminance or the weighting factor emphasizing high luminance becomes the exposure of the main subject. Can be prevented from adversely affecting.

例えば、輝度演算部80bによる各被写体輝度値の算出結果が、図29に示すように求められたとする。各被写体輝度値を重み係数演算回路81に送信し、図8、及び図18に示す手順で各重み係数を算出させると、低輝度重視の重み係数が図30、高輝度重視の重み係数が図31に示すように、それぞれ求められる。算出した各重み係数をAE検出回路80に送信し、各重み係数に応じた露出値E1、E2、E3を露出演算部80cに算出させると、その算出結果は、下表3に示すように求められる。   For example, it is assumed that the calculation result of each subject luminance value by the luminance calculation unit 80b is obtained as shown in FIG. When each subject luminance value is transmitted to the weighting factor calculation circuit 81 and each weighting factor is calculated according to the procedure shown in FIG. 8 and FIG. 18, the weighting factor emphasizing low luminance is shown in FIG. As shown in FIG. When the calculated weighting factors are transmitted to the AE detection circuit 80 and the exposure values E1, E2, and E3 corresponding to the weighting factors are calculated by the exposure calculation unit 80c, the calculation results are obtained as shown in Table 3 below. It is done.

Figure 2007053617
Figure 2007053617

また、表3に示すように、上記(1)式を用いて図29の各被写体輝度の平均輝度値を算出すると、13.64EVと求めることができる。露出値合成部80dは、各変換関数CF1、CF2、CF3を参照して、平均輝度値に応じた各合成割合R1、R2、R3を求める。図27に示すように、平均輝度値が13.64EVである場合、合成割合R1は46、合成割合R2は0、合成割合R3は17と、それぞれ求められる。   Further, as shown in Table 3, when the average luminance value of each subject luminance in FIG. 29 is calculated using the above equation (1), 13.64 EV can be obtained. The exposure value synthesizing unit 80d refers to the respective conversion functions CF1, CF2, and CF3 and obtains the respective synthesis ratios R1, R2, and R3 according to the average luminance value. As shown in FIG. 27, when the average luminance value is 13.64 EV, the composition ratio R1 is 46, the composition ratio R2 is 0, and the composition ratio R3 is 17, respectively.

求めた各合成割合R1、R2、R3と、各露出値E1、E2、E3とを上記(2)式に代入すると、最適露出値Esは、12.28EVと算出される。すなわち、図29の各被写体輝度値が与えられた撮影シーンでは、12.28EVに合わせてシャッタ速度や絞り値などを決定することにより、主要被写体から大きく露出を外すことなく撮影を行うことができる。   By substituting the obtained composite ratios R1, R2, and R3 and the exposure values E1, E2, and E3 into the above equation (2), the optimal exposure value Es is calculated as 12.28 EV. That is, in the shooting scene given each subject luminance value in FIG. 29, it is possible to perform shooting without greatly removing the exposure from the main subject by determining the shutter speed, aperture value, etc. according to 12.28 EV. .

なお、上記実施形態では、3種類の重み係数による3つの露出値E1、E2、E3を基に、最適露出値Esを算出するようにしているが、基にする露出値は3つに限ることなく、さらに多くの露出値演算方法を用いて3つ以上の露出値を基に最適露出値Esを算出するようにしてもよい。また、各変換関数CF1、CF2、CF3は、上記に限ることなく、CCD38のダイナミックレンジなどといった種々の設計事項を考慮して任意に設定すればよい。   In the above embodiment, the optimum exposure value Es is calculated based on the three exposure values E1, E2, and E3 based on the three types of weighting factors. However, the number of exposure values based on the exposure value is limited to three. Alternatively, the optimum exposure value Es may be calculated based on three or more exposure values using more exposure value calculation methods. The conversion functions CF1, CF2, and CF3 are not limited to the above, and may be arbitrarily set in consideration of various design items such as the dynamic range of the CCD 38.

さらに、上記各実施形態では、撮像装置の一例としてデジタルカメラ2を示しているが、本発明は、これに限ることなく、例えば、カメラ付き携帯電話などに適用することもできる。   Further, in each of the above embodiments, the digital camera 2 is shown as an example of the imaging device, but the present invention is not limited to this, and can be applied to, for example, a camera-equipped mobile phone.

デジタルカメラの外観を示す前面方向の斜視図である。It is a perspective view of the front direction which shows the external appearance of a digital camera. デジタルカメラの外観を示す背面方向の平面図である。It is a top view of the back direction which shows the external appearance of a digital camera. デジタルカメラの内部構成を概略的に示すブロック図である。It is a block diagram which shows the internal structure of a digital camera schematically. 撮像画面を複数の小領域に分割する一例を示す説明図である。It is explanatory drawing which shows an example which divides | segments an imaging screen into a some small area. 各小領域の被写体輝度値の最大値を検出する手順を示すフローチャートである。It is a flowchart which shows the procedure which detects the maximum value of the subject luminance value of each small area. 補正関数の一例を示すグラフである。It is a graph which shows an example of a correction function. 中央重点の重み係数の一例を示す説明図である。It is explanatory drawing which shows an example of the weighting coefficient of a center weight. 低輝度重視の重み係数を用いた露出値を算出する手順を示すフローチャートである。It is a flowchart which shows the procedure which calculates the exposure value using the weighting factor which emphasizes low luminance. 逆光の撮影シーンの一例を示す説明図である。It is explanatory drawing which shows an example of the imaging | photography scene of backlight. 図9の撮影シーンに応じた各小領域の被写体輝度値を示す説明図である。FIG. 10 is an explanatory diagram showing subject luminance values of each small area corresponding to the shooting scene of FIG. 9. 各被写体輝度値の最大値からの差分を示す説明図である。It is explanatory drawing which shows the difference from the maximum value of each to-be-photographed object luminance value. 正規化後の各差分値を示す説明図である。It is explanatory drawing which shows each difference value after normalization. 補正関数に代入した後の出力値を示す説明図である。It is explanatory drawing which shows the output value after substituting to a correction function. 図9の撮影シーンに応じた低輝度重視の重み係数を示す説明図である。FIG. 10 is an explanatory diagram illustrating a weighting factor emphasizing low luminance according to the shooting scene of FIG. 9. 平均輝度値が所定値以上の場合にだけ低輝度重視の重み係数を算出する例を示すフローチャートである。It is a flowchart which shows the example which calculates the weighting coefficient which attaches importance to low luminance only when the average luminance value is a predetermined value or more. 主要被写体の露出オーバーを抑える際のデジタルカメラの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the digital camera at the time of suppressing the overexposure of the main subject. 各小領域の被写体輝度値の最小値を検出する手順を示すフローチャートである。It is a flowchart which shows the procedure which detects the minimum value of the photographic subject luminance value of each small area. 高輝度重視の重み係数を用いた露出値を算出する手順を示すフローチャートである。It is a flowchart which shows the procedure which calculates the exposure value using the weighting factor emphasizing high brightness. 夜間にスポットライトを当てた撮影シーンの一例を示す説明図である。It is explanatory drawing which shows an example of the imaging | photography scene which applied the spotlight at night. 図19の撮影シーンに応じた各小領域の被写体輝度値を示す説明図である。It is explanatory drawing which shows the to-be-photographed object luminance value of each small area | region according to the imaging | photography scene of FIG. 各被写体輝度値の最小値からの差分を示す説明図である。It is explanatory drawing which shows the difference from the minimum value of each subject luminance value. 正規化後の各差分値を示す説明図である。It is explanatory drawing which shows each difference value after normalization. 補正関数に代入した後の出力値を示す説明図である。It is explanatory drawing which shows the output value after substituting to a correction function. 図19の撮影シーンに応じた高輝度重視の重み係数を示す説明図である。FIG. 20 is an explanatory diagram illustrating a weighting factor emphasizing high luminance according to the shooting scene of FIG. 19. 平均輝度値が所定値以下の場合にだけ高輝度重視の重み係数を算出する例を示すフローチャートである。It is a flowchart which shows the example which calculates the weighting coefficient emphasizing high luminance only when the average luminance value is a predetermined value or less. 主要被写体の露出アンダーと露出オーバーとを抑える際のデジタルカメラの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the digital camera at the time of suppressing underexposure and overexposure of the main subject. 各変換関数の一例を示すグラフである。It is a graph which shows an example of each conversion function. 最適露出値Esを算出する手順を示すフローチャートである。It is a flowchart which shows the procedure which calculates the optimal exposure value Es. 各小領域の被写体輝度値の一例を示す説明図である。It is explanatory drawing which shows an example of the photographic subject luminance value of each small area | region. 図29の撮影シーンに応じた低輝度重視の重み係数を示す説明図である。FIG. 30 is an explanatory diagram illustrating a weighting factor emphasizing low luminance according to the shooting scene of FIG. 29. 図29の撮影シーンに応じた高輝度重視の重み係数を示す説明図である。FIG. 30 is an explanatory diagram illustrating a weighting factor emphasizing high luminance according to the shooting scene of FIG. 29.

符号の説明Explanation of symbols

2 デジタルカメラ
10 撮像レンズ
31 絞り
37 CPU(露出制御手段)
38 CCD(撮像素子)
55、80 AE検出回路
55a、80a 画像分割部(分割手段)
55b、80b 輝度演算部(輝度演算手段)
55c、80c 露出演算部(露出演算手段)
56、70、81 重み係数演算回路
56a、81a 最大値検出部
56b、70b、81c 差分演算部
56c、70c、81d 関数演算部
56d、70d、81e 中央重点処理部
70a、81b 最小値検出部
80d 露出値合成部
2 Digital Camera 10 Imaging Lens 31 Aperture 37 CPU (Exposure Control Means)
38 CCD (imaging device)
55, 80 AE detection circuit 55a, 80a Image dividing unit (dividing means)
55b, 80b Luminance calculation unit (luminance calculation means)
55c, 80c Exposure calculation unit (exposure calculation means)
56, 70, 81 Weight coefficient calculation circuit 56a, 81a Maximum value detection unit 56b, 70b, 81c Difference calculation unit 56c, 70c, 81d Function calculation unit 56d, 70d, 81e Center weight processing unit 70a, 81b Minimum value detection unit 80d Exposure Value composition part

Claims (12)

撮像レンズを透過した被写体像を撮像する撮像素子から前記被写体像に応じた画像データを取得するデータ取得ステップと、前記画像データが表す撮像画面を複数の小領域に分割する分割ステップと、前記小領域毎の被写体輝度値を算出する輝度演算ステップとを有し、前記各小領域毎に設定された演算用重み係数を前記各被写体輝度値に乗じて加重平均を取ることにより、前記画像データの露出値を算出する露出値演算方法において、
前記被写体輝度値の低い前記小領域ほど重み付けが大きくなるように前記各演算用重み係数を設定する重み係数演算ステップを含むことを特徴とする露出値演算方法。
A data acquisition step for acquiring image data corresponding to the subject image from an image sensor that captures the subject image transmitted through the imaging lens, a division step for dividing the imaging screen represented by the image data into a plurality of small regions, and the small step A luminance calculation step for calculating a subject luminance value for each region, and multiplying each subject luminance value by a weighting factor set for each small region to obtain a weighted average. In the exposure value calculation method for calculating the exposure value,
An exposure value calculation method comprising a weighting coefficient calculation step for setting each calculation weighting coefficient so that the weighting is increased in the small area with the lower subject luminance value.
前記重み係数演算ステップは、前記各被写体輝度値の最大値を検出するステップと、前記最大値から前記各被写体輝度値を減算して前記各小領域毎に前記最大値からの差分値を求めるステップと、入力値の大きい部分がより大きくなるように変換する補正関数に前記各差分値を入力して前記補正関数に応じた出力値を得るステップと、前記撮像画面の中央部分の重み付けを大きくするように前記各小領域のそれぞれに予め設定された中央重点の重み係数と前記各出力値とを乗算し、この乗算結果を前記各演算用重み係数として設定するステップとからなることを特徴とする請求項1記載の露出値演算方法。   The weighting factor calculating step includes a step of detecting a maximum value of the subject luminance values, and a step of subtracting the subject luminance values from the maximum value to obtain a difference value from the maximum value for each small region. A step of inputting each difference value to a correction function for converting so that a larger input value portion becomes larger and obtaining an output value corresponding to the correction function, and increasing the weighting of the central portion of the imaging screen And multiplying each of the small regions by a weight factor of a center weight set in advance and each of the output values, and setting the multiplication result as the weighting factor for each calculation. The exposure value calculation method according to claim 1. 前記各差分値は、前記補正関数に入力される前に、前記補正関数の入力範囲に応じた値に正規化されることを特徴とする請求項2記載の露出値演算方法。   The exposure value calculation method according to claim 2, wherein each difference value is normalized to a value corresponding to an input range of the correction function before being input to the correction function. 前記輝度演算ステップの後に、前記各被写体輝度値の平均輝度値を算出する平均輝度値算出ステップと、
前記平均輝度値が所定値以上であるか否かの判定を行う判定ステップとを行い、
前記平均輝度値が所定値以上であると判定された場合には、前記重み係数演算ステップを行い、前記平均輝度値が所定値以下であると判定された場合には、前記撮像画面の中央部分の重み付けを大きくするように前記各小領域のそれぞれに予め設定された中央重点の重み係数を前記各演算用重み係数として前記露出値の算出を行うことを特徴とする請求項1から3のいずれか1項に記載の露出値演算方法。
After the luminance calculation step, an average luminance value calculating step for calculating an average luminance value of each subject luminance value;
Performing a determination step of determining whether or not the average luminance value is equal to or greater than a predetermined value;
When it is determined that the average luminance value is equal to or greater than a predetermined value, the weighting coefficient calculation step is performed. When it is determined that the average luminance value is equal to or less than the predetermined value, a central portion of the imaging screen 4. The exposure value is calculated using a weighting factor of a center weight set in advance in each of the small regions so as to increase the weighting of each of the subregions as the weighting factor for each calculation. 5. The exposure value calculation method according to claim 1.
撮像レンズを透過した被写体像を撮像する撮像素子から前記被写体像に応じた画像データを取得するデータ取得ステップと、前記画像データが表す撮像画面を複数の小領域に分割する分割ステップと、前記小領域毎の被写体輝度値を算出する輝度演算ステップとを有し、前記各小領域毎に設定された演算用重み係数を前記各被写体輝度値に乗じて加重平均を取ることにより、前記画像データの露出値を算出する露出値演算方法において、
前記被写体輝度値の高い前記小領域ほど重み付けが大きくなるように前記各演算用重み係数を設定する重み係数演算ステップを含むことを特徴とする露出値演算方法。
A data acquisition step for acquiring image data corresponding to the subject image from an image sensor that captures the subject image transmitted through the imaging lens, a division step for dividing the imaging screen represented by the image data into a plurality of small regions, and the small step A luminance calculation step for calculating a subject luminance value for each region, and multiplying each subject luminance value by a weighting factor set for each small region to obtain a weighted average. In the exposure value calculation method for calculating the exposure value,
An exposure value calculation method comprising a weighting factor calculation step for setting each calculation weighting factor such that the weighting is increased in the small region having a higher subject luminance value.
前記重み係数演算ステップは、前記各被写体輝度値の最小値を検出するステップと、前記各被写体輝度値から前記最小値を減算して前記各小領域毎に前記最小値からの差分値を求めるステップと、入力値の大きい部分がより大きくなるように変換する補正関数に前記各差分値を入力して前記補正関数に応じた出力値を得るステップと、前記撮像画面の中央部分の重み付けを大きくするように前記各小領域のそれぞれに予め設定された中央重点の重み係数と前記各出力値とを乗算し、この乗算結果を前記各演算用重み係数として設定するステップとからなることを特徴とする請求項5記載の露出値演算方法。   The weighting factor calculating step includes a step of detecting a minimum value of each subject luminance value, and a step of obtaining a difference value from the minimum value for each small region by subtracting the minimum value from each subject luminance value. A step of inputting each difference value to a correction function for converting so that a larger input value portion becomes larger and obtaining an output value corresponding to the correction function, and increasing the weighting of the central portion of the imaging screen And multiplying each of the small regions by a weight factor of a center weight set in advance and each of the output values, and setting the multiplication result as the weighting factor for each calculation. The exposure value calculation method according to claim 5. 前記各差分値は、前記補正関数に入力される前に、前記補正関数の入力範囲に応じた値に正規化されることを特徴とする請求項6記載の露出値演算方法。   7. The exposure value calculation method according to claim 6, wherein each difference value is normalized to a value corresponding to an input range of the correction function before being input to the correction function. 前記輝度演算ステップの後に、前記各被写体輝度値の平均輝度値を算出する平均輝度値算出ステップと、
前記平均輝度値が所定値以上であるか否かの判定を行う判定ステップとを行い、
前記平均輝度値が所定値以下であると判定された場合には、前記重み係数演算ステップを行い、前記平均輝度値が所定値以上であると判定された場合には、前記撮像画面の中央部分の重み付けを大きくするように前記各小領域のそれぞれに予め設定された中央重点の重み係数を前記各演算用重み係数として前記露出値の算出を行うことを特徴とする請求項5から7のいずれか1項に記載の露出値演算方法。
After the luminance calculation step, an average luminance value calculating step for calculating an average luminance value of each subject luminance value;
Performing a determination step of determining whether or not the average luminance value is equal to or greater than a predetermined value;
When it is determined that the average luminance value is equal to or less than a predetermined value, the weighting factor calculation step is performed. When it is determined that the average luminance value is equal to or greater than a predetermined value, a central portion of the imaging screen 8. The exposure value is calculated using a weighting factor of a center weight set in advance in each of the small regions so as to increase the weighting of each of the subregions as the weighting factor for each calculation. The exposure value calculation method according to claim 1.
撮像レンズを透過した被写体像を撮像する撮像素子から前記被写体像に応じた画像データを取得するデータ取得ステップと、前記画像データが表す撮像画面を複数の小領域に分割する分割ステップと、前記小領域毎の被写体輝度値を算出する輝度演算ステップとを有し、前記各小領域毎に設定された重み係数を前記各被写体輝度値に乗じて加重平均を取ることにより、前記画像データの露出値を算出する露出値演算方法において、
重み付けの異なる複数の重み係数を用いて複数の前記露出値を算出する複数露出値算出ステップと、
前記各被写体輝度値の平均輝度値を算出する平均輝度値算出ステップと、
前記各露出値毎に設けられた変換関数を参照して、前記平均輝度値に応じた前記各露出値の合成割合を取得する合成割合取得ステップと、
前記各露出値と前記各合成割合とから1つの最適な露出値を割り出す最適露出値算出ステップとを含むことを特徴とする露出値演算方法。
A data acquisition step for acquiring image data corresponding to the subject image from an image sensor that captures the subject image that has passed through the imaging lens, a division step for dividing the imaging screen represented by the image data into a plurality of small regions, and the small step A luminance calculation step for calculating a subject luminance value for each region, and multiplying each subject luminance value by a weighting factor set for each small region to obtain a weighted average to obtain an exposure value of the image data In the exposure value calculation method for calculating
A plurality of exposure value calculating steps for calculating a plurality of the exposure values using a plurality of weighting factors having different weights;
An average luminance value calculating step for calculating an average luminance value of each subject luminance value;
With reference to a conversion function provided for each exposure value, a combination ratio acquisition step of acquiring a combination ratio of the exposure values according to the average luminance value;
An exposure value calculation method comprising: an optimum exposure value calculation step of determining one optimum exposure value from each exposure value and each composition ratio.
前記複数の重み係数には、少なくとも、前記被写体輝度値の低い前記小領域ほど重み付けが大きくなるように設定した第1重み係数と、前記被写体輝度値の高い前記小領域ほど重み付けが大きくなるように設定した第2重み係数と、前記撮像画面の中央部分の前記小領域ほど重み付けが大きくなるように設定した第3重み係数とが含まれることを特徴とする請求項9記載の露出値演算方法。   The plurality of weighting factors are set such that at least the first weighting factor set so as to increase the weight in the small region with the lower subject luminance value and the weighting in the small region with the higher subject luminance value. The exposure value calculation method according to claim 9, further comprising: a set second weighting factor and a third weighting factor set such that the smaller the region in the center of the imaging screen, the higher the weighting. 前記第1重み係数は、前記各被写体輝度値の最大値を検出し、この最大値から前記各被写体輝度値を減算して前記各小領域毎に前記最大値からの差分値を求め、入力値の大きい部分がより大きくなるように変換する補正関数に前記各差分値を入力して前記補正関数に応じた出力値を取得し、予め設定された前記第3重み係数と前記各出力値とを乗算することによって設定され、
前記第2重み係数は、前記各被写体輝度値の最小値を検出し、前記各被写体輝度値から前記最小値を減算して前記各小領域毎に前記最小値からの差分値を求め、入力値の大きい部分がより大きくなるように変換する補正関数に前記各差分値を入力して前記補正関数に応じた出力値を取得し、予め設定された前記第3重み係数と前記各出力値とを乗算することによって設定されることを特徴とする請求項10記載の露出値演算方法。
The first weighting coefficient detects a maximum value of each subject luminance value, subtracts each subject luminance value from the maximum value, obtains a difference value from the maximum value for each small region, and inputs an input value Each of the difference values is input to a correction function that converts the larger portion of the correction function to be larger, an output value corresponding to the correction function is obtained, and the preset third weighting factor and each output value are obtained. Set by multiplying,
The second weighting coefficient detects a minimum value of each subject luminance value, subtracts the minimum value from each subject luminance value, obtains a difference value from the minimum value for each small region, and inputs an input value Each of the difference values is input to a correction function that converts the larger portion of the correction function to be larger, an output value corresponding to the correction function is obtained, and the preset third weighting factor and each output value are obtained. The exposure value calculation method according to claim 10, wherein the exposure value calculation method is set by multiplication.
撮像レンズを透過した被写体像を撮像して前記被写体像に応じた画像データを出力する撮像素子と、この撮像素子への入射光量を調整する絞りと、前記画像データが表す撮像画面を複数の小領域に分割する分割手段と、前記小領域毎の被写体輝度値を算出する輝度演算手段と、前記各被写体輝度値に基づいて前記画像データの露出値を算出する露出演算手段と、算出された前記露出値に基づいて前記絞りの絞り値と前記撮像素子の露光時間との少なくとも一方を制御する露出制御手段とを備えた撮像装置において、
前記露出演算手段が、請求項1から11のいずれか1項に記載の露出値演算方法を用いて前記露出値を算出することを特徴とする撮像装置。
An image sensor that captures a subject image that has passed through an imaging lens and outputs image data corresponding to the subject image, an aperture that adjusts the amount of light incident on the image sensor, and an imaging screen represented by the image data A dividing unit that divides the image into regions; a luminance calculating unit that calculates a subject luminance value for each of the small regions; an exposure calculating unit that calculates an exposure value of the image data based on each of the subject luminance values; In an imaging apparatus comprising exposure control means for controlling at least one of the aperture value of the aperture and the exposure time of the image sensor based on an exposure value,
12. The imaging apparatus according to claim 1, wherein the exposure calculation means calculates the exposure value using the exposure value calculation method according to any one of claims 1 to 11.
JP2005237571A 2005-08-18 2005-08-18 Exposure value operation method and imaging apparatus Pending JP2007053617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005237571A JP2007053617A (en) 2005-08-18 2005-08-18 Exposure value operation method and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005237571A JP2007053617A (en) 2005-08-18 2005-08-18 Exposure value operation method and imaging apparatus

Publications (1)

Publication Number Publication Date
JP2007053617A true JP2007053617A (en) 2007-03-01

Family

ID=37917756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005237571A Pending JP2007053617A (en) 2005-08-18 2005-08-18 Exposure value operation method and imaging apparatus

Country Status (1)

Country Link
JP (1) JP2007053617A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009177399A (en) * 2008-01-23 2009-08-06 Victor Co Of Japan Ltd Automatic exposure controller
JP2010124258A (en) * 2008-11-20 2010-06-03 Canon Inc Imaging apparatus and control method of the same
JP2010166297A (en) * 2009-01-15 2010-07-29 Panasonic Corp Imaging device
JP2011119875A (en) * 2009-12-01 2011-06-16 Canon Inc Image processing device and image processing method
JP2013186144A (en) * 2012-03-05 2013-09-19 Casio Comput Co Ltd Image capturing device, image capturing method and program
WO2014042104A1 (en) * 2012-09-11 2014-03-20 Ricoh Company, Ltd. Imaging controller and imaging control method and program
CN106506982A (en) * 2016-12-07 2017-03-15 浙江宇视科技有限公司 A kind of method for obtaining photometric parameter, device and terminal unit
WO2017043190A1 (en) * 2015-09-09 2017-03-16 株式会社リコー Control system, imaging device, and program
CN114727024A (en) * 2021-01-05 2022-07-08 广州汽车集团股份有限公司 Automatic exposure parameter adjusting method and device, storage medium and shooting equipment
WO2022206353A1 (en) * 2021-03-27 2022-10-06 影石创新科技股份有限公司 Image processing method, photographic apparatus, image processing apparatus and readable storage medium

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009177399A (en) * 2008-01-23 2009-08-06 Victor Co Of Japan Ltd Automatic exposure controller
JP2010124258A (en) * 2008-11-20 2010-06-03 Canon Inc Imaging apparatus and control method of the same
JP2010166297A (en) * 2009-01-15 2010-07-29 Panasonic Corp Imaging device
JP2011119875A (en) * 2009-12-01 2011-06-16 Canon Inc Image processing device and image processing method
JP2013186144A (en) * 2012-03-05 2013-09-19 Casio Comput Co Ltd Image capturing device, image capturing method and program
US20150222816A1 (en) * 2012-09-11 2015-08-06 Makoto Shohara Imaging controller and imaging control method and program
JP2014057156A (en) * 2012-09-11 2014-03-27 Ricoh Co Ltd Imaging control apparatus, imaging control method, and program
CN104620569A (en) * 2012-09-11 2015-05-13 株式会社理光 Imaging controller and imaging control method and program
WO2014042104A1 (en) * 2012-09-11 2014-03-20 Ricoh Company, Ltd. Imaging controller and imaging control method and program
EP2896201A4 (en) * 2012-09-11 2015-09-02 Ricoh Co Ltd Imaging controller and imaging control method and program
US9756243B2 (en) 2012-09-11 2017-09-05 Ricoh Company, Ltd. Imaging controller and imaging control method and program
WO2017043190A1 (en) * 2015-09-09 2017-03-16 株式会社リコー Control system, imaging device, and program
JPWO2017043190A1 (en) * 2015-09-09 2018-04-05 株式会社リコー Control system, imaging apparatus, and program
US10477106B2 (en) 2015-09-09 2019-11-12 Ricoh Company, Ltd. Control system, imaging device, and computer-readable medium
CN106506982A (en) * 2016-12-07 2017-03-15 浙江宇视科技有限公司 A kind of method for obtaining photometric parameter, device and terminal unit
CN106506982B (en) * 2016-12-07 2019-12-13 浙江宇视科技有限公司 method and device for obtaining photometric parameters and terminal equipment
CN114727024A (en) * 2021-01-05 2022-07-08 广州汽车集团股份有限公司 Automatic exposure parameter adjusting method and device, storage medium and shooting equipment
WO2022206353A1 (en) * 2021-03-27 2022-10-06 影石创新科技股份有限公司 Image processing method, photographic apparatus, image processing apparatus and readable storage medium

Similar Documents

Publication Publication Date Title
KR101427660B1 (en) Apparatus and method for blurring an image background in digital image processing device
JP4136793B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
US7667763B2 (en) Image pickup equipment and method
JP2007053617A (en) Exposure value operation method and imaging apparatus
US8937677B2 (en) Digital photographing apparatus, method of controlling the same, and computer-readable medium
JP6267502B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
JP4562182B2 (en) Image processing apparatus, image processing method, and program
JP4533593B2 (en) Imaging device
JP5262247B2 (en) Imaging apparatus, imaging method, and program
JP4136464B2 (en) Imaging apparatus and imaging method
JP2008148180A (en) Imaging apparatus, image processing device and method, and computer program
JP5133921B2 (en) Imaging apparatus and imaging method
JP2010279054A (en) Image pickup device, image processing device, image pickup method, and image processing method
JP2007057974A (en) Photographing device
JP5048599B2 (en) Imaging device
JP2004201228A (en) Method and device for extracting face area
JP4170194B2 (en) Imaging device
JP5747595B2 (en) Exposure control device and camera
JP5120414B2 (en) Electronic camera and image processing program
JP2008085839A (en) Error notification method of imaging apparatus, and imaging apparatus
JP4496051B2 (en) Imaging device
JP2002252804A (en) Electronic camera
JP5245644B2 (en) Exposure calculator
JP4539254B2 (en) Electronic camera and image processing program
JP2006208664A (en) Imaging apparatus

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20070116