JP4717720B2 - Image processing apparatus and method, and program - Google Patents

Image processing apparatus and method, and program Download PDF

Info

Publication number
JP4717720B2
JP4717720B2 JP2006155572A JP2006155572A JP4717720B2 JP 4717720 B2 JP4717720 B2 JP 4717720B2 JP 2006155572 A JP2006155572 A JP 2006155572A JP 2006155572 A JP2006155572 A JP 2006155572A JP 4717720 B2 JP4717720 B2 JP 4717720B2
Authority
JP
Japan
Prior art keywords
image data
dynamic range
correction coefficient
subject
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006155572A
Other languages
Japanese (ja)
Other versions
JP2007325145A (en
Inventor
浩一 坂本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Corp
Original Assignee
Fujifilm 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 Corp filed Critical Fujifilm Corp
Priority to JP2006155572A priority Critical patent/JP4717720B2/en
Publication of JP2007325145A publication Critical patent/JP2007325145A/en
Application granted granted Critical
Publication of JP4717720B2 publication Critical patent/JP4717720B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Description

本発明は、同一の被写体について異なる感度により取得した2つの画像データを処理する画像処理装置および方法並びに画像処理方法をコンピュータに実行させるためのプログラムに関するものである。   The present invention relates to an image processing apparatus and method for processing two image data acquired with different sensitivities for the same subject, and a program for causing a computer to execute the image processing method.

近年、デジタルカメラにはAE(自動露出)やAF(自動焦点調整)の機能が装備され、撮影がより容易に行えるようになっている。このAEにおける測光方式としては中央重点測光が一般的に知られているが、主要な被写体が中央にない構図で撮影するような場合、中央重点測光では主要被写体に合わせた適正な露出が得られないという問題がある。このため、複数のポイントにおいて光量を測定するいわゆるマルチパターン測光による露出制御も行われている。マルチパターン測光によれば、フレーム全体で平均的な露出制御が行われるため、上記のように主要被写体である人物が中央にないような場合の問題を解決できる。しかしながら、逆光で人物を撮影する場合、どのような構図であっても、AEは全体的に明るいと判断して光量を絞るように露出制御を行うため、人物の顔が暗くなってしまう。   In recent years, digital cameras are equipped with functions such as AE (automatic exposure) and AF (automatic focus adjustment) so that photographing can be performed more easily. Center-weighted metering is generally known as the AE metering method. However, when photographing with a composition in which the main subject is not in the center, center-weighted metering can provide an appropriate exposure according to the main subject. There is no problem. For this reason, exposure control is also performed by so-called multi-pattern photometry in which the amount of light is measured at a plurality of points. According to multi-pattern metering, since average exposure control is performed over the entire frame, it is possible to solve the problem in the case where the person who is the main subject is not in the center as described above. However, when a person is photographed with backlight, the AE is determined to be bright overall and exposure control is performed to reduce the amount of light regardless of the composition, and the person's face becomes dark.

このため、露出を主要な被写体に固定するスポット測光による露出制御も行われている。スポット測光による露出制御を用いれば、レリーズボタンを半押し状態として主要な被写体に露出を合わせ、所望とする構図となるように画角を移動すれば所望とする構図における主要な被写体の明るさを適切なものとすることが可能である。しかしながら、レリーズボタンを半押し状態としたまま画角を変更する際に、誤ってレリーズボタンを全押ししてしまったり、半押しを解除してしまうおそれがある。   For this reason, exposure control is also performed by spot photometry that fixes the exposure to the main subject. If exposure control using spot metering is used, the release button is pressed halfway to adjust the exposure to the main subject, and if the angle of view is moved to achieve the desired composition, the brightness of the main subject in the desired composition can be adjusted. It can be appropriate. However, when the angle of view is changed while the release button is in a half-pressed state, there is a possibility that the release button is accidentally fully pressed or the half-press is released.

ここで、撮影の対象を人物とする画像においては、とくに人物の顔の撮影状態が画像としての出来に影響するため、人物の顔を適切な明るさにすることが望まれている。このため、画像から人物の顔を抽出し、抽出した顔が所望の明るさとなるように画像を補正する手法が種々提案されている(特許文献1〜3参照)。これらの手法を用いることにより、人物の明るさを適切なものとなるように修正することが可能である。   Here, in an image in which a subject to be photographed is a person, in particular, since the photographing state of the person's face affects the performance of the image, it is desired to make the person's face appropriate brightness. For this reason, various methods for extracting a human face from an image and correcting the image so that the extracted face has a desired brightness have been proposed (see Patent Documents 1 to 3). By using these methods, it is possible to correct the brightness of the person to be appropriate.

ところで、デジタルカメラに用いられる撮像手段であるCCDは、銀塩フィルムと比較してダイナミックレンジが狭いため、画像の白とびや黒つぶれが生じやすい。このため、広ダイナミックレンジの画像データを得るために、異なる露光条件で撮像した複数枚の画像データを合成する技術が知られている。   By the way, a CCD, which is an imaging means used in a digital camera, has a narrow dynamic range as compared with a silver salt film, so that overexposure and blackout of an image are likely to occur. For this reason, in order to obtain image data with a wide dynamic range, a technique for combining a plurality of pieces of image data captured under different exposure conditions is known.

また、高感度の主画素(S画素)と、主画素よりも面積が小さく感度は低いが飽和しにくい副画素(R画素)とを配列したCCDを使用し、主画素で得られる高感度画像データと副画素で得られる低感度画像データとを合成することにより、広いダイナミックレンジを確保して、高輝度の部分を含む広い範囲で良好な再現性を有する合成画像データが得られるデジタルカメラが提供されている。
特開2004−153315号公報 特開2005−311484号公報 特開2005−51407号公報
In addition, a high-sensitivity image obtained from a main pixel using a CCD in which a high-sensitivity main pixel (S pixel) and a sub-pixel (R pixel) that has a smaller area than the main pixel but is less sensitive but less saturated are arranged. A digital camera capable of securing a wide dynamic range by combining data and low-sensitivity image data obtained by sub-pixels and obtaining composite image data having good reproducibility in a wide range including a high-luminance part. Is provided.
JP 2004-153315 A JP-A-2005-311484 JP 2005-51407 A

しかしながら、上記特許文献1〜3に記載の手法を用いた場合、顔の明るさを適切となるように補正できるが、それに応じて顔以外の部分の明るさも補正されてしまう。このため、顔が暗い場合に顔を明るくする補正を行うと、画像に含まれる高輝度部分が飽和してしまい、白とびが生じてしまうおそれがある。   However, when the methods described in Patent Documents 1 to 3 are used, the brightness of the face can be corrected to be appropriate, but the brightness of portions other than the face is also corrected accordingly. For this reason, when correction is performed to brighten the face when the face is dark, the high-luminance portion included in the image is saturated, and there is a possibility that overexposure occurs.

本発明は、上記事情に鑑みなされたものであり、画像に含まれる人物等の特定の被写体の明るさを好適にするとともに、画像の白とびを防止することを目的とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to make the brightness of a specific subject such as a person included in an image suitable and to prevent overexposure of the image.

本発明による画像処理装置は、同一の被写体に対して高い感度で撮像した第1の画像データと該第1の画像データよりも低い感度で撮像した第2の画像データとを処理する画像処理装置において、
前記被写体の最大ダイナミックレンジを検出する検出手段と、
前記被写体に含まれる特定の対象物の輝度が所定の輝度となるように前記第1および前記第2の画像データを補正する輝度補正手段と、
前記被写体に含まれる前記特定の対象物の輝度の前記所定の輝度への補正に応じた、前記最大ダイナミックレンジを補正する補正係数を算出する補正係数算出手段と、
前記補正係数により前記最大ダイナミックレンジを補正するダイナミックレンジ補正手段と、
前記補正された前記第1および前記第2の画像データを、前記補正された最大ダイナミックレンジに応じて合成して合成画像データを取得する合成手段とを備えたことを特徴とするものである。
An image processing apparatus according to the present invention processes first image data captured with high sensitivity with respect to the same subject and second image data captured with sensitivity lower than the first image data. In
Detecting means for detecting a maximum dynamic range of the subject;
Luminance correction means for correcting the first and second image data so that the luminance of a specific object included in the subject becomes a predetermined luminance;
Wherein according to the correction of the brightness the predetermined luminance of the specific object included in the subject, a correction coefficient calculating means for calculating a correction coefficient for correcting the maximum dynamic range,
Dynamic range correction means for correcting the maximum dynamic range by the correction coefficient;
The image processing apparatus includes a combining unit that combines the corrected first and second image data in accordance with the corrected maximum dynamic range to obtain combined image data.

なお、本発明による画像処理装置においては、前記補正係数算出手段を、前記第1の画像データに基づいて前記補正係数を算出する手段としてもよい。   In the image processing apparatus according to the present invention, the correction coefficient calculation means may be means for calculating the correction coefficient based on the first image data.

また、本発明による画像処理装置においては、前記合成手段を、各種ダイナミックレンジに応じてあらかじめ用意された複数の階調変換特性から、前記補正された最大ダイナミックレンジに応じた階調変換特性を選択し、該選択した階調変換特性により前記第1および前記第2の画像データをそれぞれ階調変換するとともに合成する手段としてもよい。   In the image processing apparatus according to the present invention, the synthesizing unit selects a gradation conversion characteristic according to the corrected maximum dynamic range from a plurality of gradation conversion characteristics prepared in advance according to various dynamic ranges. In addition, the first and second image data may be subjected to gradation conversion and composition based on the selected gradation conversion characteristics.

また、本発明による画像処理装置においては、前記第1および前記第2の画像データにより表される画像から、人物の顔を前記特定の対象物として検出する顔検出手段をさらに備えるものとしてもよい。 The image processing apparatus according to the present invention may further include face detection means for detecting a human face as the specific object from the images represented by the first and second image data. .

本発明による撮影装置は、同一の被写体に対して高い感度の撮像を行う高感度画素と該高感度画素よりも感度が低い低感度画素とが配設され、前記高感度画素により第1の画像データを得るとともに、前記低感度画素により第2の画像データを得る撮像手段と、
上記本発明による画像処理装置と、
前記合成画像データを記録する記録手段とを備えたことを特徴とするものである。
In the photographing apparatus according to the present invention, a high-sensitivity pixel that performs high-sensitivity imaging on the same subject and a low-sensitivity pixel that is lower in sensitivity than the high-sensitivity pixel are arranged, and the first image is formed by the high-sensitivity pixel. Imaging means for obtaining data and obtaining second image data by the low-sensitivity pixels;
An image processing apparatus according to the present invention;
And recording means for recording the composite image data.

本発明による画像処理方法は、同一の被写体に対して高い感度で撮像した第1の画像データと該第1の画像データよりも低い感度で撮像した第2の画像データとを処理する画像処理方法において、
前記被写体の最大ダイナミックレンジを検出し、
前記被写体に含まれる特定の対象物の輝度が所定の輝度となるように前記第1および前記第2の画像データを補正し、
前記被写体に含まれる前記特定の対象物の輝度の前記所定の輝度への補正に応じた、前記最大ダイナミックレンジを補正する補正係数を算出し、
前記補正係数により前記最大ダイナミックレンジを補正し、
前記補正された前記第1および前記第2の画像データを、前記補正された最大ダイナミックレンジに応じて合成して合成画像データを取得することを特徴とするものである。
An image processing method according to the present invention processes first image data captured with high sensitivity for the same subject and second image data captured with lower sensitivity than the first image data. In
Detecting the maximum dynamic range of the subject,
Correcting the first and second image data so that a specific object included in the subject has a predetermined luminance;
According to the correction of the brightness the predetermined luminance of the specific object included in the subject, calculates a correction coefficient for correcting the maximum dynamic range,
The maximum dynamic range is corrected by the correction coefficient,
The corrected first image data and the second image data are combined according to the corrected maximum dynamic range to obtain combined image data.

なお、本発明による画像処理方法をコンピュータに実行させるためのプログラムとして提供してもよい。   The image processing method according to the present invention may be provided as a program for causing a computer to execute the image processing method.

本発明によれば、被写体の最大ダイナミックレンジが検出され、被写体に含まれる特定の対象物の輝度が検出され、特定の対象物の輝度が所定の輝度となるように、同一の被写体に対して高い感度で撮像した第1の画像データと第1の画像データよりも低い感度で撮像した第2の画像データとが補正される。また、この補正に応じた、最大ダイナミックレンジを補正する補正係数が算出され、補正係数により最大ダイナミックレンジが補正される。そして、補正された最大ダイナミックレンジに応じて、特定の対象物が所定の輝度となるように補正された第1の画像データと第2の画像データとが合成されて合成画像データが取得される。   According to the present invention, the maximum dynamic range of a subject is detected, the brightness of a specific object included in the subject is detected, and the brightness of the specific object is a predetermined brightness. The first image data imaged with high sensitivity and the second image data imaged with lower sensitivity than the first image data are corrected. Further, a correction coefficient for correcting the maximum dynamic range according to this correction is calculated, and the maximum dynamic range is corrected by the correction coefficient. Then, in accordance with the corrected maximum dynamic range, the first image data and the second image data corrected so that the specific object has a predetermined luminance is combined to obtain combined image data. .

このため、被写体に含まれる特定の対象物の明るさを所定の明るさに補正しつつも、補正した最大ダイナミックレンジに応じて、飽和しないように第1の画像データおよび第2の画像データを合成することができる。したがって、特定の対象物の明るさを好適にしつつも白とびがない画像を得ることができる。   Therefore, the first image data and the second image data are not saturated according to the corrected maximum dynamic range while correcting the brightness of a specific object included in the subject to a predetermined brightness. Can be synthesized. Therefore, it is possible to obtain an image without overexposure while making the brightness of the specific object suitable.

また、第1の画像データに基づいて補正係数を算出することにより、第1および第2の画像データの双方を用いて補正係数を算出する場合と比較して、補正係数の算出のための演算時間を短縮することができる。   Further, by calculating the correction coefficient based on the first image data, the calculation for calculating the correction coefficient is compared with the case where the correction coefficient is calculated using both the first and second image data. Time can be shortened.

また、各種ダイナミックレンジに応じてあらかじめ用意された複数の階調変換特性から、補正された最大ダイナミックレンジに応じた階調変換特性を選択することにより、複雑な演算を行うことなく簡易に第1および第2の画像データの階調を変換して合成画像データを取得することができる。   In addition, by selecting a gradation conversion characteristic corresponding to the corrected maximum dynamic range from a plurality of gradation conversion characteristics prepared in advance according to various dynamic ranges, the first can be easily performed without performing complicated calculations. The composite image data can be acquired by converting the gradation of the second image data.

以下、図面を参照して本発明の実施形態について説明する。図1は本発明の撮影装置の実施形態であるデジタルカメラの構成を示す概略ブロック図である。図1に示すように、本実施形態によるデジタルカメラ1は、撮像部2、アナログ信号処理部4、制御部6、デジタル信号処理部8、圧縮伸張部10、表示部12、記録部14、メモリ16、操作部18、顔検出部20および補正値算出部22を備える。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a schematic block diagram showing a configuration of a digital camera which is an embodiment of a photographing apparatus of the present invention. As shown in FIG. 1, the digital camera 1 according to the present embodiment includes an imaging unit 2, an analog signal processing unit 4, a control unit 6, a digital signal processing unit 8, a compression / decompression unit 10, a display unit 12, a recording unit 14, and a memory. 16, an operation unit 18, a face detection unit 20, and a correction value calculation unit 22.

撮像部2は、不図示の撮像レンズ、絞り、メカニカルシャッタおよびこれらを駆動する駆動回路と、撮像レンズを介して結像される光学像を光電変換するCCDとを含む撮像ユニットであり、被写体の光学像をCCDの撮像面に結像させて所定時間露光することにより結像画像に応じたアナログ信号を出力する。   The imaging unit 2 is an imaging unit including an imaging lens (not shown), a diaphragm, a mechanical shutter, a drive circuit that drives these, and a CCD that photoelectrically converts an optical image formed through the imaging lens. An optical image is formed on the imaging surface of the CCD and exposed for a predetermined time, thereby outputting an analog signal corresponding to the formed image.

CCDは、ハニカム状に配置された多数の受光素子を有する光センサである。図2はCCDにおける受光素子の配置を示す部分拡大図である。図2に示すように、CCD40は、画像の1画素に対応する八角形の受光素子42がハニカム状に配置されており、各受光素子42は受光面積が大きい主画素42Sと、主画素42Sよりも受光面積が小さい副画素42Rとからなる。   The CCD is an optical sensor having a large number of light receiving elements arranged in a honeycomb shape. FIG. 2 is a partially enlarged view showing the arrangement of the light receiving elements in the CCD. As shown in FIG. 2, in the CCD 40, octagonal light receiving elements 42 corresponding to one pixel of the image are arranged in a honeycomb shape, and each light receiving element 42 includes a main pixel 42S having a large light receiving area and a main pixel 42S. The sub-pixel 42R has a small light receiving area.

主画素42Sは、副画素42Rに較べてその面積比に応じて信号電荷生成量が多く受光感度が高くなるため主画素42Sは同一光量を受光する場合、副画素42Rと比較して早く飽和する。   The main pixel 42S saturates earlier than the sub-pixel 42R when receiving the same amount of light because the signal charge generation amount is large and the light receiving sensitivity is increased according to the area ratio compared to the sub-pixel 42R. .

図3は主画素42Sと副画素42Rとの面積比が4:1の場合の入射光量に対する出力信号レベルの関係を示すグラフであり、主画素出力QSは、入射光量が100%のレベルにて飽和し、副画素出力QRは入射光量が400%のレベルまで飽和しない状態が示されて感度比が16対1となっている。副画素出力QRを主画素出力QSに合成すると特性QGに示すように、ハイライト部分の階調再現が可能なようにダイナミックレンジを拡大させることができる。   FIG. 3 is a graph showing the relationship of the output signal level with respect to the incident light amount when the area ratio of the main pixel 42S and the sub-pixel 42R is 4: 1. The main pixel output QS is at a level where the incident light amount is 100%. The subpixel output QR is saturated and the state where the incident light quantity is not saturated to a level of 400% is shown, and the sensitivity ratio is 16: 1. When the sub-pixel output QR is combined with the main pixel output QS, as shown in the characteristic QG, the dynamic range can be expanded so as to reproduce the gradation of the highlight portion.

アナログ信号処理部4は、撮像部2から出力されたアナログ信号のノイズを除去する相関2重サンプリング回路(CDS)と、アナログ信号のゲインを調節するオートゲインコントローラ(AGC)と、アナログ信号をデジタル信号に変換するA/Dコンバータ(ADC)とからなる。このデジタル信号に変換された画像データは、画素ごとにR,G,Bの濃度値を持つCCD−RAWデータである。   The analog signal processing unit 4 is a correlated double sampling circuit (CDS) that removes noise of the analog signal output from the imaging unit 2, an auto gain controller (AGC) that adjusts the gain of the analog signal, and digitally converts the analog signal to It consists of an A / D converter (ADC) that converts it into a signal. The image data converted into the digital signal is CCD-RAW data having R, G, and B density values for each pixel.

制御部6は、バス30により接続される各部の動作を制御し、レリーズボタン18Aやその他の操作スイッチからなる操作部18からの入力に基づいて、デジタルカメラ1の撮像動作に係る統括制御を行う。具体的には、プレ画像に基づいて、焦点位置を決定するためのAF処理、被写体輝度を測定して測定した被写体輝度に基づいて絞り値、シャッタスピード等を決定するAE処理等を行う。なお、これらの処理を行う場合、プレ画像は主画素42Sの出力のみからなる第1の画像および副画素42Rの出力のみからなる第2の画像のいずれか一方のみを用いてもよく、第1および第2の画像を加算して用いてもよい。なお、第1および第2の画像のいずれか一方のみを用いることにより、これらの処理のための演算を高速に行うことができる。とくに感度が高い主画素42Sから得られた第1の画像を用いることにより、より正確なAF処理およびAE処理を行うことができる。   The control unit 6 controls the operation of each unit connected by the bus 30 and performs overall control related to the imaging operation of the digital camera 1 based on the input from the operation unit 18 including the release button 18A and other operation switches. . Specifically, AF processing for determining the focal position based on the pre-image, AE processing for determining the aperture value, shutter speed, and the like based on the subject luminance measured by measuring the subject luminance are performed. When performing these processes, the pre-image may use only one of the first image consisting only of the output of the main pixel 42S and the second image consisting only of the output of the sub-pixel 42R. The second image may be added and used. Note that by using only one of the first and second images, operations for these processes can be performed at high speed. By using the first image obtained from the main pixel 42S having particularly high sensitivity, more accurate AF processing and AE processing can be performed.

ここで、プレ画像とは、レリーズボタン18Aが半押しされることによって発生する半押し信号S1を検出した制御部6が撮像部2にプレ撮影を実行させることにより得られる画像データにより表される画像である。   Here, the pre-image is represented by image data obtained by causing the imaging unit 2 to perform pre-photographing by the control unit 6 that has detected the half-press signal S1 generated when the release button 18A is half-pressed. It is an image.

また、制御部6は、測定した被写体輝度に基づいて被写体の最大ダイナミックレンジを算出し、後述するように補正値算出部22が算出した補正係数k2により最大ダイナミックレンジDRmaxを補正して補正ダイナミックレンジDRrevを算出する。   Further, the control unit 6 calculates the maximum dynamic range of the subject based on the measured subject luminance, and corrects the maximum dynamic range DRmax with the correction coefficient k2 calculated by the correction value calculation unit 22 as will be described later, thereby correcting the dynamic range. Calculate DRrev.

顔検出部20は、アナログ処理された本画像から人物の顔を検出する。具体的には、顔に含まれる顔の特徴を有する領域(例えば肌色を有する、目を有する、顔の形状を有する等)を顔領域として検出するが、これに限定されるものではない。   The face detection unit 20 detects a human face from the analog processed main image. Specifically, an area having a facial feature included in the face (for example, having skin color, having eyes, or having a face shape) is detected as a face area, but the present invention is not limited to this.

ここで、本画像とは、レリーズボタン18Aが全押しされることによって発生する全押し信号S2を検出した制御部6が撮像部2に本撮影を実行させることにより得られる画像データにより表される画像である。   Here, the main image is represented by image data obtained by causing the image pickup unit 2 to perform main shooting when the control unit 6 that has detected the full press signal S2 generated when the release button 18A is fully pressed. It is an image.

なお、本画像の画素数の上限は、CCD40の画素数によって決定されるが、例えば、ファイン、ノーマル等の設定により、記録画素数を変更することができる。一方、プレ画像の画像数は、本画像よりも少なく、例えば、本画像の1/16程度の画素数で取り込まれる。   The upper limit of the number of pixels of the main image is determined by the number of pixels of the CCD 40. For example, the number of recorded pixels can be changed by setting such as fine and normal. On the other hand, the number of pre-images is smaller than that of the main image. For example, the pre-image is captured with about 1/16 of the number of pixels of the main image.

補正値算出部22は、顔検出部20が検出した顔領域の明るさ(輝度値)を算出して、算出した明るさと所望とされる適正な明るさとの差分から、画像の明るさを補正するための補正値k1および最大ダイナミックレンジDRmaxを補正するための補正係数k2を算出する。   The correction value calculation unit 22 calculates the brightness (luminance value) of the face area detected by the face detection unit 20, and corrects the brightness of the image from the difference between the calculated brightness and a desired appropriate brightness. A correction value k1 for correction and a correction coefficient k2 for correcting the maximum dynamic range DRmax are calculated.

以下、補正ダイナミックレンジDRrevの算出について説明する。図4は補正ダイナミックレンジDRrevの算出を説明するための図である。まず、プレ画像に基づくAE処理において、プレ画像により表される画角内の領域を図4(a)に示すように16分割し、各領域A1〜A16の被写体反射率の分布を求める。ここで、図4(b)に示すように被写体反射率の分布が求められたとすると、制御部6は最大ダイナミックレンジDRmaxを230%として算出する。   Hereinafter, calculation of the corrected dynamic range DRrev will be described. FIG. 4 is a diagram for explaining calculation of the corrected dynamic range DRrev. First, in the AE process based on the pre-image, the area within the angle of view represented by the pre-image is divided into 16 as shown in FIG. 4A, and the distribution of subject reflectance in each of the areas A1 to A16 is obtained. Here, as shown in FIG. 4B, when the distribution of the subject reflectance is obtained, the control unit 6 calculates the maximum dynamic range DRmax as 230%.

一方、顔検出部20は、図4(c)に示すように、アナログ処理された本画像から顔領域F1を検出する。   On the other hand, as shown in FIG. 4C, the face detection unit 20 detects a face area F1 from the analog processed main image.

また、補正値算出部22が、顔領域F1の平均輝度Ymを算出する。そして、平均輝度Ymを所望とする輝度Ypに補正するための補正値k1=Yp−Ymを算出する。また、補正値算出部22は、最大ダイナミックレンジDRmaxを補正するための補正係数k2を下記の式(1)により算出する。   Further, the correction value calculation unit 22 calculates the average luminance Ym of the face area F1. Then, a correction value k1 = Yp−Ym for correcting the average luminance Ym to a desired luminance Yp is calculated. Further, the correction value calculation unit 22 calculates a correction coefficient k2 for correcting the maximum dynamic range DRmax by the following equation (1).

k2=Yp/Ym (1)
ここで、Yp=50、Ym=30のとき、k2=5/3となる。したがって、補正係数k2により各領域A1〜A16の被写体反射率を補正すると図4(d)に示すものとなる。したがって、最大ダイナミックレンジDRmaxが230%の場合、補正ダイナミックレンジDRrevは383%となる。
k2 = Yp / Ym (1)
Here, when Yp = 50 and Ym = 30, k2 = 5/3. Therefore, when the subject reflectance in each of the areas A1 to A16 is corrected by the correction coefficient k2, the result is as shown in FIG. Therefore, when the maximum dynamic range DRmax is 230%, the corrected dynamic range DRrev is 383%.

デジタル信号処理部8は、本画像の画像データに対して、撮影時のホワイトバランスを自動調整するAWB(オートホワイトバランス)、明るさ補正、ガンマ補正、階調変換処理等の画質補正処理、およびCCD−RAWデータを輝度信号であるYデータと、青色色差信号であるCbデータおよび赤色色差信号であるCrデータとからなるYCデータに変換するYC処理を行う。とくに、デジタル信号処理部8は、顔検出部20が検出した顔領域の輝度が所望とする輝度となるように明るさ補正処理を行う。なお、デジタル信号処理部8の構成およびデジタル信号処理部8が行う処理については後述する。   The digital signal processing unit 8 performs image quality correction processing such as AWB (auto white balance) for automatically adjusting white balance at the time of shooting, brightness correction, gamma correction, gradation conversion processing, and the like on the image data of the main image, and YC processing is performed to convert the CCD-RAW data into YC data composed of Y data that is a luminance signal, Cb data that is a blue color difference signal, and Cr data that is a red color difference signal. In particular, the digital signal processing unit 8 performs brightness correction processing so that the luminance of the face area detected by the face detection unit 20 becomes a desired luminance. The configuration of the digital signal processing unit 8 and the processing performed by the digital signal processing unit 8 will be described later.

圧縮伸張部10は、デジタル信号処理部8によって処理が施された本画像の画像データをJPEG方式等の所定の圧縮方式で圧縮して記録部14に装填された記録媒体に記録したり、記録媒体から読み出された画像データを伸張したりする。   The compression / decompression unit 10 compresses the image data of the main image processed by the digital signal processing unit 8 by a predetermined compression method such as the JPEG method, and records it on a recording medium loaded in the recording unit 14 or records it. The image data read from the medium is expanded.

表示部12は、液晶モニタ等からなる画像表示用のディスプレイであり、不図示の表示制御部により駆動されて、画像や操作に必要な各種表示を行う。   The display unit 12 is a display for image display composed of a liquid crystal monitor or the like, and is driven by a display control unit (not shown) to perform various displays necessary for images and operations.

記録部14は、取得した本画像の画像データと画像データごとのタグ情報をメモリカード等の記録媒体に記録する。具体的には、JPEG方式により圧縮された本画像に、撮影日時等の付帯情報が格納されたタグを付与して記録媒体に記録する。   The recording unit 14 records the acquired image data of the main image and tag information for each image data on a recording medium such as a memory card. Specifically, the main image compressed by the JPEG method is provided with a tag storing additional information such as the shooting date and time and recorded on a recording medium.

メモリ16は、デジタルカメラ1において設定される各種定数、および制御部6が実行するプログラム等を格納する。また、デジタルカメラ1が各種処理を行う際の作業領域ともなる。   The memory 16 stores various constants set in the digital camera 1 and programs executed by the control unit 6. Also, it becomes a work area when the digital camera 1 performs various processes.

図5はデジタル信号処理部8の構成を示す概略ブロック図である。図5に示すように、デジタル信号処理部8は、CCD40の主画素42Sにて生成されて入力される主画素の画像データhigh(以下主画素データとする)を演算して分光特性を補正する処理等を行うオフセット処理部50Sと、補正値k1に基づいて画像の明るさを補正するとともにホワイトバランス(WB)を調節する処理を行うゲイン処理部52Sと、γ補正を行うγ補正部54Sとを備える。   FIG. 5 is a schematic block diagram showing the configuration of the digital signal processing unit 8. As shown in FIG. 5, the digital signal processing unit 8 calculates image data high (hereinafter referred to as main pixel data) of the main pixel generated and input by the main pixel 42S of the CCD 40 to correct the spectral characteristics. An offset processing unit 50S that performs processing, a gain processing unit 52S that performs processing to correct the brightness of the image and adjust white balance (WB) based on the correction value k1, and a γ correction unit 54S that performs γ correction. Is provided.

また、デジタル信号処理部8は、副画素42Rにて生成されて入力される副画素の画像データlow(以下副画素データとする)を演算して分光特性を補正する処理等を行うオフセット処理部50Rと、補正値k1に基づいて画像の明るさを補正するとともにホワイトバランス(WB)を調節する処理を行うゲイン処理部52Rと、γ補正を行うγ補正部54Rとを備える。   Also, the digital signal processing unit 8 calculates the sub-pixel image data low (hereinafter referred to as sub-pixel data) generated and input by the sub-pixel 42R, and performs processing for correcting spectral characteristics and the like. 50R, a gain processing unit 52R that performs processing for correcting the brightness of the image and adjusting white balance (WB) based on the correction value k1, and a γ correction unit 54R that performs γ correction.

γ補正部54S,54Rは、それぞれ14ビットデータの主画素データhighおよび最大12ビットデータの副画素データlowのガンマ(γ)を補正する回路であり、γ補正部54S,54Rは、画像信号の出力形態等の処理目的に応じた階調にそれぞれ補正して例えば8ビットにて表される主画素データhighおよび副画素データlowを出力する。   The γ correction units 54S and 54R are circuits for correcting gamma (γ) of the main pixel data high of 14-bit data and the sub-pixel data low of maximum 12-bit data, respectively. The γ correction units 54S and 54R The main pixel data high and the sub-pixel data low represented by, for example, 8 bits are output after being corrected to the gradation corresponding to the processing purpose such as the output form.

さらに、デジタル信号処理部8はゲイン算出部56を備える。ゲイン算出部56は、後述する広ダイナミックレンジ合成処理を行うために、制御部6が算出した補正ダイナミックレンジDRrevに基づいて、ルックアップテーブル(LUT)58を参照して、主画素データhighに乗算するゲインh_gainおよび副画素データlowに乗算するゲインl_gainを算出する。   Further, the digital signal processing unit 8 includes a gain calculation unit 56. The gain calculation unit 56 multiplies the main pixel data high with reference to a look-up table (LUT) 58 based on the corrected dynamic range DRrev calculated by the control unit 6 in order to perform a wide dynamic range synthesis process to be described later. A gain h_gain to be multiplied and a gain l_gain to be multiplied by the sub-pixel data low are calculated.

ゲイン算出部56が算出したゲインh_gainは、乗算部60Sによりγ補正部54Sの出力に乗算される。また、ゲインl_gainは、乗算部60Rによりγ補正部54Rの出力に乗算される。さらに、乗算部60S,60Rの出力は加算部62により加算され、これにより合成画像データが算出される。ここで、乗算部60S,60Rおよび加算部62により広ダイナミックレンジ合成処理部64が構成される。なお、加算部62において得られる合成画像データは、不図示のシャープネス処理部、色補正処理部等に入力され、ここでシャープネス処理、色補正処理等が施されて、デジタル信号処理部8から出力される。   The gain h_gain calculated by the gain calculation unit 56 is multiplied by the output of the γ correction unit 54S by the multiplication unit 60S. Also, the gain l_gain is multiplied by the output of the γ correction unit 54R by the multiplication unit 60R. Further, the outputs of the multiplying units 60S and 60R are added by the adding unit 62, thereby calculating the composite image data. Here, the multiplying units 60S and 60R and the adding unit 62 constitute a wide dynamic range synthesis processing unit 64. Note that the composite image data obtained in the adding unit 62 is input to a sharpness processing unit, a color correction processing unit, and the like (not shown), where sharpness processing, color correction processing, and the like are performed and output from the digital signal processing unit 8. Is done.

ここで、LUT58と広ダイナミックレンジ合成処理とについて説明する。広ダイナミックレンジ合成処理により加算部62から出力される合成画像データの値dataは、下記の式(2)により算出される。   Here, the LUT 58 and the wide dynamic range synthesis process will be described. The value data of the synthesized image data output from the adding unit 62 by the wide dynamic range synthesis process is calculated by the following equation (2).

data=(high+MIN(high/th,1)×low)×MAX(-lg(high/th)+1,p) (2)
=MAX(-lg(high/th)+1,p)×high+(MAX(-lg(high/th)+1,p)×MIN(high/th,1))×low (3)
h_gain=MAX(-lg(high/th)+1,p) (4)
l_gain=MAX(-lg(high/th)+1,p)×MIN(high/th,1))=h_gain×wl (5)
とすると、
data=h_gain×high+l_gain×low (6)
である。
data = (high + MIN (high / th, 1) × low) × MAX (-lg (high / th) + 1, p) (2)
= MAX (-lg (high / th) + 1, p) × high + (MAX (-lg (high / th) + 1, p) × MIN (high / th, 1)) × low (3)
h_gain = MAX (-lg (high / th) + 1, p) (4)
l_gain = MAX (-lg (high / th) + 1, p) × MIN (high / th, 1)) = h_gain × wl (5)
Then,
data = h_gain × high + l_gain × low (6)
It is.

なお、pは加算された主画素データhighと副画素データlowの全体に対するゲインであり、これによりダイナミックレンジの制御を行う。通常pとしては0.8〜0.9程度の値が用いられ、pの値が小さいほど広ダイナミックレンジが広く、大きいほど広ダイナミックレンジが狭くなる。より具体的には、コントラストの高い真夏の晴天のようなシーンでは0.8程度、曇りや日陰のシーンでは0.86程度、室内の蛍光灯下の心では0.9というようにシーンのダイナミックレンジに応じてpの値を変化させることにより、出力されるデータの8ビットの幅を有効に利用することができる。   Note that p is a gain with respect to the added main pixel data high and sub-pixel data low, and controls the dynamic range. Normally, a value of about 0.8 to 0.9 is used as p. The smaller the value of p, the wider the wide dynamic range, and the larger the value, the narrower the wide dynamic range. More specifically, the scene dynamics are about 0.8 for scenes such as clear midsummer sky with high contrast, about 0.86 for cloudy or shaded scenes, and 0.9 for hearts under indoor fluorescent lights. By changing the value of p according to the range, the 8-bit width of the output data can be used effectively.

thは、主画素データhighと副画素データlowとを合成する度合を制御するためのしきい値である。   th is a threshold value for controlling the degree of synthesis of the main pixel data high and the sub-pixel data low.

lgは、主画素データhighと副画素データlowとを合成する度合を制御するためのパラメータである。   lg is a parameter for controlling the degree to which the main pixel data high and the sub-pixel data low are combined.

ここで、LUT58は、ゲインh_gainおよびゲインl_gainを算出するための上記パラメータp,th,lgを規定する。図6はLUT58の構成を示す図である。図6に示すように、LUT58は、ゲインh_gainおよびゲインl_gainを算出するためのパラメータp,th,lgを、例えばダイナミックレンジとして100〜400%の間において50%刻みで7段階で規定する。   Here, the LUT 58 defines the parameters p, th, and lg for calculating the gain h_gain and the gain l_gain. FIG. 6 is a diagram showing the configuration of the LUT 58. As shown in FIG. 6, the LUT 58 defines the parameters p, th, and lg for calculating the gain h_gain and the gain l_gain, for example, in seven stages in 100% to 400% as dynamic ranges in increments of 50%.

このようなパラメータにより、h_gainは、例えば図7に示すような入出力特性を有し、l_gainは、図7に示した入出力特性に例えば図8に示す入出力特性が乗算されるものとなる。   With such parameters, h_gain has input / output characteristics as shown in FIG. 7, for example, and l_gain is obtained by multiplying the input / output characteristics shown in FIG. 7 by the input / output characteristics shown in FIG. .

次いで、本実施形態において行われる処理について説明する。図9は本実施形態において行われる処理を示すフローチャートである。まず、レリーズボタン18Aの半押し信号S1が検出されると(ステップST1)、プレ撮影を行ってプレ撮影により得られたプレ画像に基づいてAE、AF処理を行い(ステップST2)、さらに最大ダイナミックレンジDRmaxを算出する(ステップST3)。そして、算出した最大ダイナミックレンジDRmaxをメモリ16に一時的に格納する(ステップST4)。   Next, processing performed in the present embodiment will be described. FIG. 9 is a flowchart showing processing performed in the present embodiment. First, when the half-press signal S1 of the release button 18A is detected (step ST1), AE and AF processing are performed based on the pre-image obtained by pre-photographing (step ST2), and the maximum dynamic The range DRmax is calculated (step ST3). Then, the calculated maximum dynamic range DRmax is temporarily stored in the memory 16 (step ST4).

次いで、レリーズボタン18Aの全押し信号S2が検出されると(ステップST5)、本撮影を行い、主画素42Sおよび副画素42Rのそれぞれにて生成された信号電荷に応じた画素データからなる本画像データがアナログ信号処理部4において処理されてメモリ16に格納される(ステップST6)。   Next, when the full-press signal S2 of the release button 18A is detected (step ST5), the main image is taken and the main image composed of pixel data corresponding to the signal charges generated in each of the main pixel 42S and the sub-pixel 42R. Data is processed in the analog signal processing unit 4 and stored in the memory 16 (step ST6).

そして、顔検出部20が主画素42Sにおいて得られた主画素データにより表される画像から顔領域を検出し(ステップST7)、補正値算出部22が補正値k1および補正係数k2を算出する(ステップST8)、そして、制御部6が最大ダイナミックレンジDRmaxを補正係数k2により補正して補正ダイナミックレンジDRrevを算出する(ステップST9)。   Then, the face detection unit 20 detects a face area from the image represented by the main pixel data obtained in the main pixel 42S (step ST7), and the correction value calculation unit 22 calculates the correction value k1 and the correction coefficient k2 ( Then, the control unit 6 corrects the maximum dynamic range DRmax with the correction coefficient k2 and calculates the corrected dynamic range DRrev (step ST9).

次いで、デジタル信号処理部8がメモリ16に格納された主画素データおよび副画素データを読み出してオフセット処理、ゲイン処理およびγ補正処理を施す(ステップST10)。なお、ゲイン処理部52S,52Rは補正値k1に基づいて、顔の明るさが所望とする明るさとなるようにゲイン処理を行う。   Next, the digital signal processing unit 8 reads the main pixel data and subpixel data stored in the memory 16, and performs offset processing, gain processing, and γ correction processing (step ST10). The gain processing units 52S and 52R perform gain processing based on the correction value k1 so that the brightness of the face becomes a desired brightness.

そして、ゲイン算出部56が補正ダイナミックレンジDRrevに基づいてゲインh_gain,l_gainを算出し(ステップST11)、算出したゲインh_gain,l_gainを用いて広ダイナミックレンジ合成処理部64が広ダイナミックレンジ合成処理を行う(ステップST12)。さらに、広ダイナミックレンジ合成処理が施されることにより得られた合成画像データに、他に必要な画像処理を施し、処理が施された合成画像データを記録部14が記録媒体に記録し(ステップST14)、処理を終了する。   Then, the gain calculation unit 56 calculates gains h_gain and l_gain based on the corrected dynamic range DRrev (step ST11), and the wide dynamic range synthesis processing unit 64 performs wide dynamic range synthesis processing using the calculated gains h_gain and l_gain. (Step ST12). Further, the composite image data obtained by performing the wide dynamic range composition processing is subjected to other necessary image processing, and the processed composite image data is recorded on the recording medium by the recording unit 14 (step S1). ST14), the process ends.

これにより、本実施形態によれば、主画素データおよび副画素データを、顔の明るさを所望の明るさに補正しつつも、補正ダイナミックレンジDRrevに応じたゲインh_gain,l_gainにより階調変換して合成することができる。したがって、特定の対象物の明るさを好適にしつつも白とびがない画像を得ることができる。   Thus, according to the present embodiment, the main pixel data and the sub-pixel data are subjected to gradation conversion using the gains h_gain and l_gain corresponding to the correction dynamic range DRrev while correcting the facial brightness to a desired brightness. Can be synthesized. Therefore, it is possible to obtain an image without overexposure while making the brightness of the specific object suitable.

なお、上記実施形態においては、主画素データhighを用いて顔領域の検出および輝度の補正値と補正係数との算出を行っているが、主画素データhighと副画素データlowとを加算したデータを用いて、顔領域の検出並びに輝度の補正値および補正係数の算出を行ってもよい。   In the above embodiment, the detection of the face area and the calculation of the correction value and the correction coefficient of the face area are performed using the main pixel data high, but the data obtained by adding the main pixel data high and the sub-pixel data low. The face area may be detected and the brightness correction value and the correction coefficient may be calculated.

以上、本発明の第1の実施形態に係るデジタルカメラ1について説明したが、コンピュータに図9に示すような処理を行わせるプログラムも、本発明の実施形態の1つである。また、そのようなプログラムを記録したコンピュータ読取り可能な記録媒体も、本発明の実施形態の1つである。これらの場合において、LUT58は、プログラム内あるいは同一の記録媒体内に含まれているものであってもよいし、外部の装置や別個の記録媒体から提供されるものであってもよい。   The digital camera 1 according to the first embodiment of the present invention has been described above, but a program for causing a computer to perform the process shown in FIG. 9 is also one embodiment of the present invention. A computer-readable recording medium in which such a program is recorded is also one embodiment of the present invention. In these cases, the LUT 58 may be included in the program or the same recording medium, or may be provided from an external device or a separate recording medium.

なお、このようなプログラムをパソコンにインストールすることにより、デジタルカメラ1において取得したCCD−RAWデータに対して、パソコンにおいて上記実施形態と同様に広ダイナミックレンジ合成処理を行うことが可能である。例えば、図10(a)に示すようにCCD−RAWデータを展開して処理画面70に表示し、最大ダイナミックレンジDRmaxをダイナミックレンジ表示領域70Aに表示する。そして、自動補正ボタン70Bをクリックすることによりダイナミックレンジ合成処理を行い、図10(b)に示すように処理後の画像を処理画面70に表示する。この際、補正ダイナミックレンジDRrevがダイナミックレンジ表示領域70Aに表示されることとなる。   By installing such a program in a personal computer, it is possible to perform wide dynamic range composition processing on the CCD-RAW data acquired in the digital camera 1 in the personal computer as in the above embodiment. For example, as shown in FIG. 10A, the CCD-RAW data is expanded and displayed on the processing screen 70, and the maximum dynamic range DRmax is displayed in the dynamic range display area 70A. Then, by clicking the automatic correction button 70B, dynamic range synthesis processing is performed, and the processed image is displayed on the processing screen 70 as shown in FIG. At this time, the corrected dynamic range DRrev is displayed in the dynamic range display area 70A.

なお、この場合において、最大ダイナミックレンジDRmax、補正値k1および補正係数k2は、CCD−RAWデータに含まれる主画素データを用いて算出すればよい。   In this case, the maximum dynamic range DRmax, the correction value k1, and the correction coefficient k2 may be calculated using main pixel data included in the CCD-RAW data.

本発明の撮影装置の実施形態であるデジタルカメラの構成を示す概略ブロック図1 is a schematic block diagram showing the configuration of a digital camera that is an embodiment of a photographing apparatus of the present invention. CCDにおける受光素子の配置を示す部分拡大図Partial enlarged view showing arrangement of light receiving elements in CCD 主画素と副画素との面積比が4:1の場合の入射光量に対する出力信号レベルの関係を示すグラフThe graph which shows the relationship of the output signal level with respect to the incident light quantity in case the area ratio of a main pixel and a subpixel is 4: 1. 補正ダイナミックレンジの算出を説明するための図Diagram for explaining the calculation of the corrected dynamic range デジタル信号処理部の構成を示す概略ブロック図Schematic block diagram showing the configuration of the digital signal processor LUTの構成を示す図Diagram showing LUT configuration h_gainの入出力特性を示す図Diagram showing input / output characteristics of h_gain l_gainを算出するためにh_gainに乗算される入出力特性を示す図The figure which shows the input-output characteristic multiplied by h_gain in order to calculate l_gain 本実施形態において行われる処理を示すフローチャートA flowchart showing processing performed in the present embodiment プログラムの処理画面を示す図Figure showing the program processing screen

1 デジタルカメラ
2 撮像部
4 アナログ信号処理部
6 制御部
8 デジタル信号処理部
10 圧縮伸張部
12 表示部
14 記録部
16 メモリ
18 操作部
20 顔検出部
22 補正値算出部
56 ゲイン算出部
64 広ダイナミックレンジ合成処理部
DESCRIPTION OF SYMBOLS 1 Digital camera 2 Imaging part 4 Analog signal processing part 6 Control part 8 Digital signal processing part 10 Compression / decompression part 12 Display part 14 Recording part 16 Memory 18 Operation part 20 Face detection part 22 Correction value calculation part 56 Gain calculation part 64 Wide dynamic Range composition processing section

Claims (9)

同一の被写体に対して高い感度で撮像した第1の画像データと該第1の画像データよりも低い感度で撮像した第2の画像データとを処理する画像処理装置において、
前記被写体の最大ダイナミックレンジを検出する検出手段と、
前記被写体に含まれる特定の対象物の輝度が所定の輝度となるように前記第1および前記第2の画像データを補正する輝度補正手段と、
前記被写体に含まれる前記特定の対象物の輝度の前記所定の輝度への補正に応じた、前記最大ダイナミックレンジを補正する補正係数を算出する補正係数算出手段と、
前記補正係数により前記最大ダイナミックレンジを補正するダイナミックレンジ補正手段と、
前記補正された前記第1および前記第2の画像データを、前記補正された最大ダイナミックレンジに応じて合成して合成画像データを取得する合成手段とを備えたことを特徴とする画像処理装置。
In an image processing apparatus that processes first image data captured with high sensitivity for the same subject and second image data captured with lower sensitivity than the first image data,
Detecting means for detecting a maximum dynamic range of the subject;
Luminance correction means for correcting the first and second image data so that the luminance of a specific object included in the subject becomes a predetermined luminance;
Wherein according to the correction of the brightness the predetermined luminance of the specific object included in the subject, a correction coefficient calculating means for calculating a correction coefficient for correcting the maximum dynamic range,
Dynamic range correction means for correcting the maximum dynamic range by the correction coefficient;
An image processing apparatus comprising: combining means for combining the corrected first and second image data in accordance with the corrected maximum dynamic range to obtain combined image data.
前記補正係数算出手段は、前記第1の画像データに基づいて前記補正係数を算出する手段であることを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the correction coefficient calculating unit is a unit that calculates the correction coefficient based on the first image data. 前記合成手段は、各種ダイナミックレンジに応じてあらかじめ用意された複数の階調変換特性から、前記補正された最大ダイナミックレンジに応じた階調変換特性を選択し、該選択した階調変換特性により前記第1および前記第2の画像データをそれぞれ階調変換するとともに合成する手段であることを特徴とする請求項1または2記載の画像処理装置。   The synthesizing unit selects a gradation conversion characteristic according to the corrected maximum dynamic range from a plurality of gradation conversion characteristics prepared in advance according to various dynamic ranges, and the combination conversion unit selects the gradation conversion characteristic according to the selected gradation conversion characteristic. 3. The image processing apparatus according to claim 1, wherein the image processing apparatus is means for performing gradation conversion and combining the first and second image data. 前記第1および前記第2の画像データにより表される画像から、人物の顔を前記特定の対象物として検出する顔検出手段をさらに備えたことを特徴とする請求項1から3のいずれか1項記載の画像処理装置。 4. The apparatus according to claim 1, further comprising a face detecting unit that detects a human face as the specific object from the images represented by the first and second image data. 5. The image processing apparatus according to item. 前記輝度補正手段は、前記特定の対象物の平均輝度が前記所定の輝度となるように前記第1および前記第2の画像データを補正する手段であり、  The luminance correction means is means for correcting the first and second image data so that an average luminance of the specific object becomes the predetermined luminance,
前記補正係数算出手段は、前記補正係数を(前記所定の輝度)/(前記特定の対象物の平均輝度)の演算により算出する手段であることを特徴とする請求項1から4のいずれか1項記載の画像処理装置。  5. The correction coefficient calculating means according to claim 1, wherein the correction coefficient calculating means is means for calculating the correction coefficient by calculating (the predetermined brightness) / (average brightness of the specific object). The image processing apparatus according to item.
前記補正係数算出手段は、前記補正係数の算出を、前記第1および前記第2の画像データを加算したデータに基づいて行う手段であることを特徴とする請求項1から4のいずれか1項記載の画像処理装置。  The correction coefficient calculation means is means for performing calculation of the correction coefficient based on data obtained by adding the first and second image data. The image processing apparatus described. 同一の被写体に対して高い感度の撮像を行う高感度画素と該高感度画素よりも感度が低い低感度画素とが配設され、前記高感度画素により第1の画像データを得るとともに、前記低感度画素により第2の画像データを得る撮像手段と、
請求項1からのいずれか1項記載の画像処理装置と、
前記合成画像データを記録する記録手段とを備えたことを特徴とする撮影装置。
A high-sensitivity pixel that performs high-sensitivity imaging on the same subject and a low-sensitivity pixel that is lower in sensitivity than the high-sensitivity pixel are disposed, and the first image data is obtained by the high-sensitivity pixel, and the low-sensitivity pixel Imaging means for obtaining second image data by sensitivity pixels;
The image processing apparatus according to any one of claims 1 to 6 ,
An imaging apparatus comprising: recording means for recording the composite image data.
同一の被写体に対して高い感度で撮像した第1の画像データと該第1の画像データよりも低い感度で撮像した第2の画像データとを処理する画像処理方法において、
前記被写体の最大ダイナミックレンジを検出し、
前記被写体に含まれる特定の対象物の輝度が所定の輝度となるように前記第1および前記第2の画像データを補正し、
前記被写体に含まれる前記特定の対象物の輝度の前記所定の輝度への補正に応じた、前記最大ダイナミックレンジを補正する補正係数を算出し、
前記補正係数により前記最大ダイナミックレンジを補正し、
前記補正された前記第1および前記第2の画像データを、前記補正された最大ダイナミックレンジに応じて合成して合成画像データを取得することを特徴とする画像処理方法。
In an image processing method for processing first image data imaged with high sensitivity with respect to the same subject and second image data imaged with lower sensitivity than the first image data,
Detecting the maximum dynamic range of the subject,
Correcting the first image data and the second image data so that a specific object included in the subject has a predetermined luminance;
According to the correction of the brightness the predetermined luminance of the specific object included in the subject, calculates a correction coefficient for correcting the maximum dynamic range,
The maximum dynamic range is corrected by the correction coefficient,
An image processing method comprising: combining the corrected first and second image data in accordance with the corrected maximum dynamic range to obtain combined image data.
同一の被写体に対して高い感度で撮像した第1の画像データと該第1の画像データよりも低い感度で撮像した第2の画像データとを処理する画像処理方法をコンピュータに実行させるためのプログラムにおいて、
前記被写体の最大ダイナミックレンジを検出する手順と、
前記被写体に含まれる特定の対象物の輝度が所定の輝度となるように前記第1および前記第2の画像データを補正する手順と、
前記被写体に含まれる前記特定の対象物の輝度の前記所定の輝度への補正に応じた、前記最大ダイナミックレンジを補正する補正係数を算出する手順と、
前記補正係数により前記最大ダイナミックレンジを補正する手順と、
前記補正された前記第1および前記第2の画像データを、前記補正された最大ダイナミックレンジに応じて合成して合成画像データを取得する手順とを有することを特徴とするプログラム。
Program for causing a computer to execute an image processing method for processing first image data captured with high sensitivity for the same subject and second image data captured with lower sensitivity than the first image data In
Detecting the maximum dynamic range of the subject;
A procedure for correcting the first and second image data so that a specific object included in the subject has a predetermined luminance;
A step of calculating according to the correction of the brightness the predetermined luminance of the specific object included in the subject, a correction coefficient for correcting the maximum dynamic range,
A procedure for correcting the maximum dynamic range by the correction coefficient;
A program for synthesizing the corrected first and second image data in accordance with the corrected maximum dynamic range to obtain combined image data.
JP2006155572A 2006-06-05 2006-06-05 Image processing apparatus and method, and program Expired - Fee Related JP4717720B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006155572A JP4717720B2 (en) 2006-06-05 2006-06-05 Image processing apparatus and method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006155572A JP4717720B2 (en) 2006-06-05 2006-06-05 Image processing apparatus and method, and program

Publications (2)

Publication Number Publication Date
JP2007325145A JP2007325145A (en) 2007-12-13
JP4717720B2 true JP4717720B2 (en) 2011-07-06

Family

ID=38857525

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006155572A Expired - Fee Related JP4717720B2 (en) 2006-06-05 2006-06-05 Image processing apparatus and method, and program

Country Status (1)

Country Link
JP (1) JP4717720B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009239368A (en) * 2008-03-25 2009-10-15 Seiko Epson Corp Image processing method, image processor, image processing program, and printing device
US8447132B1 (en) 2009-12-09 2013-05-21 CSR Technology, Inc. Dynamic range correction based on image content
JP5136664B2 (en) * 2010-07-09 2013-02-06 カシオ計算機株式会社 Image processing apparatus and program
JP5136665B2 (en) * 2010-07-21 2013-02-06 カシオ計算機株式会社 Image processing apparatus and program
CN104025580A (en) 2011-12-27 2014-09-03 富士胶片株式会社 Color imaging element and imaging device
WO2017122396A1 (en) * 2016-01-15 2017-07-20 ソニー株式会社 Control device, control method and program
JP2022018276A (en) * 2020-07-15 2022-01-27 株式会社Jvcケンウッド Imaging control device, imaging control method, and program
CN112929576B (en) * 2021-02-01 2023-08-01 北京字节跳动网络技术有限公司 Image processing method, device, equipment and storage medium
WO2023136134A1 (en) * 2022-01-12 2023-07-20 ソニーセミコンダクタソリューションズ株式会社 Signal processing device, signal processing method, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002290707A (en) * 2001-03-26 2002-10-04 Olympus Optical Co Ltd Image processing device
JP4335728B2 (en) * 2004-03-31 2009-09-30 富士フイルム株式会社 Image processing apparatus and method

Also Published As

Publication number Publication date
JP2007325145A (en) 2007-12-13

Similar Documents

Publication Publication Date Title
TWI524709B (en) Image capture apparatus, method of controlling image capture apparatus, and electronic device
KR100819804B1 (en) Photographing apparatus
US8421882B2 (en) Imaging apparatus and imaging control method
JP4717720B2 (en) Image processing apparatus and method, and program
JP5347707B2 (en) Imaging apparatus and imaging method
JP6521776B2 (en) Image processing apparatus, image processing method
JP4679685B2 (en) Digital camera composition auxiliary frame selection method and digital camera
JP4687492B2 (en) Camera, imaging method, exposure calculation device, and program
JP5123137B2 (en) Imaging apparatus and imaging method
JP2009296102A (en) Imaging device
JP2009017229A (en) Imaging device and imaging control method
JP5223686B2 (en) Imaging apparatus and imaging method
JP4999871B2 (en) Imaging apparatus and control method thereof
JP2007036438A (en) Color discrimination method and device of imaging apparatus, and exposure control method of imaging apparatus
JP5048599B2 (en) Imaging device
JP2009055077A (en) Imaging apparatus
JP4150599B2 (en) Digital camera with exposure compensation
JP5310331B2 (en) Imaging apparatus and imaging method
JP5515795B2 (en) Imaging apparatus and imaging method
JP4028395B2 (en) Digital camera
JP5772064B2 (en) Imaging apparatus and image generation program
JP3903093B2 (en) White balance control method and digital camera
JP5091734B2 (en) Imaging apparatus and imaging method
JP4276847B2 (en) Imaging device
JP4832320B2 (en) Imaging device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101116

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110104

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110308

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110330

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140408

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees