JP5091734B2 - Imaging apparatus and imaging method - Google Patents

Imaging apparatus and imaging method Download PDF

Info

Publication number
JP5091734B2
JP5091734B2 JP2008069249A JP2008069249A JP5091734B2 JP 5091734 B2 JP5091734 B2 JP 5091734B2 JP 2008069249 A JP2008069249 A JP 2008069249A JP 2008069249 A JP2008069249 A JP 2008069249A JP 5091734 B2 JP5091734 B2 JP 5091734B2
Authority
JP
Japan
Prior art keywords
output
pixel
correction
filter
specified value
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
JP2008069249A
Other languages
Japanese (ja)
Other versions
JP2009225252A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2008069249A priority Critical patent/JP5091734B2/en
Publication of JP2009225252A publication Critical patent/JP2009225252A/en
Application granted granted Critical
Publication of JP5091734B2 publication Critical patent/JP5091734B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)

Description

本発明は、デジタルスチルカメラ、デジタルビデオカメラ等の撮像装置および撮像方法に関し、特に撮影画像のダイナミックレンジを拡大することができる撮像装置および撮像方法に関する。   The present invention relates to an imaging apparatus and an imaging method such as a digital still camera and a digital video camera, and more particularly to an imaging apparatus and an imaging method that can expand a dynamic range of a captured image.

銀塩写真フィルムを用いる従来の銀塩カメラで撮影される画像のダイナミックレンジに比べ、CCD等の固体撮像素子を有するデジタルスチルカメラやデジタルビデオカメラ等で撮影される画像のダイナミックレンジは極めて狭い。ダイナミックレンジが狭いと、被写体の暗い部分は「黒つぶれ」といわれる現象が発生し、逆に被写体の明るい部分は「白とび」といわれる現象が発生して画像品質が低下する。   Compared to the dynamic range of images taken with a conventional silver salt camera using a silver salt photographic film, the dynamic range of images taken with a digital still camera or a digital video camera having a solid-state image sensor such as a CCD is extremely narrow. When the dynamic range is narrow, a phenomenon called “blackout” occurs in the dark part of the subject, and conversely, a phenomenon called “overexposure” occurs in the bright part of the subject, and the image quality deteriorates.

そこで、CCD等の固体撮像素子で撮像される画像のダイナミックレンジを拡大するために、例えば、同一被写体に対して露光量を変えて複数回の撮影を行い、露光量の異なる複数の画像を取得し、これらの画像を加算してダイナミックレンジが拡大された合成画像を生成する技術が従来より知られている(例えば、特許文献1参照)。
特開2000−92378号公報
Therefore, in order to expand the dynamic range of an image captured by a solid-state imaging device such as a CCD, for example, the same subject is shot multiple times with different exposure amounts to obtain a plurality of images with different exposure amounts. A technique for adding these images to generate a composite image with an expanded dynamic range has been known (see, for example, Patent Document 1).
JP 2000-92378 A

ところで、ダイナミックレンジを拡大するために、前記特許文献1のように露光量を変えて複数回の撮影を行う方法では、移動物体の被写体を撮影したりすると、被写体が2重にずれた画像になり、正しく画像を合成できないことがある。   By the way, in order to expand the dynamic range, in the method of performing photographing a plurality of times while changing the exposure amount as in the above-mentioned Patent Document 1, when photographing a moving object, the subject is doubled. Therefore, the image may not be synthesized correctly.

そこで、本発明は、露光量を変え複数回の撮影を行って画像を合成することなく、1回の撮影によってダイナミックレンジを拡大することができる撮像装置および撮像方法を提供することを目的とする。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide an imaging apparatus and an imaging method capable of expanding the dynamic range by one shooting without changing the exposure amount and performing a plurality of shootings to combine images. .

前記目的を達成するために請求項1に記載の発明は、光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置において、前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出手段と、前記画素出力検出手段により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正手段と、前記画素出力補正手段によって前記補正を行う際の補正係数を設定する補正係数設定手段と、被写体に対する撮影シーンを判定する撮影シーン判定手段と、前記撮像素子から出力される電気信号から、人物の顔部を検出する顔検出手段と、前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正手段から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換手段とを備え、前記ビット圧縮変換手段は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、前記補正係数設定手段は、前記撮影シーン判定手段により判定した撮影シーン情報及び前記顔検出手段による顔部検出情報を入力し、入力したこれらの情報に基づいて、前記画素出力補正手段によって前記補正を行う際の補正係数を設定することを特徴としている。 In order to achieve the above object, according to the first aspect of the present invention, a subject image incident through an optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and the front side of each pixel is provided. An image pickup device having a color separation filter of three primary color filters or a complementary color filter is provided, and a specific color filter of the color separation filters is higher than other color filters for light having a wide wavelength band In the imaging apparatus having luminance sensitivity, the output from each pixel in which the color separation filter is arranged is detected based on an electrical signal output from the imaging element, and any one of the pixels A pixel output detecting means for determining whether or not the output from the pixel has reached a predetermined specified value or more; and the pixel output detecting means determines that there is a pixel having an output exceeding the predetermined specified value. In this case, a pixel output correction unit that corrects the output of the pixel that is equal to or greater than the predetermined specified value based on the output from the surrounding pixels, and a correction coefficient for performing the correction by the pixel output correction unit are set. A correction coefficient setting unit, a shooting scene determination unit that determines a shooting scene for a subject, a face detection unit that detects a human face from an electric signal output from the image sensor, and the filter of the specific color are arranged. Output from the pixel output correcting means when the pixel output reaches or exceeds the predetermined specified value, and is once expanded from the first bit number below the predetermined specified value to the second bit number. Bit compression conversion means for compressing pixel output data again to the first number of bits, wherein the bit compression conversion means converts the pixel output to a pixel output in the region above the predetermined specified value. Than the compression rate for the response data is compressed by reducing the compression ratio for the data corresponding to the pixel output in the following the predetermined specified value, the correction coefficient setting means, photographic scene information determined by the photographic scene determination means The face detection information by the face detection means is input, and a correction coefficient for performing the correction by the pixel output correction means is set based on the input information.

請求項2に記載の発明は、光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置において、前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出手段と、前記画素出力検出手段により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正手段と、前記画素出力補正手段によって前記補正を行う際の補正係数を設定する補正係数設定手段と、被写体に対する撮影シーンを判定する撮影シーン判定手段と、前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正手段から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換手段とを備え、前記ビット圧縮変換手段は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、前記補正係数設定手段は、前記撮影シーン判定手段により判定した撮影シーン情報を入力し、入力した撮影シーン情報に基づいて、前記画素出力補正手段によって前記補正を行う際の補正係数を設定することを特徴としている。 According to a second aspect of the present invention, a subject image incident through an optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a three primary color filter or a complementary color system is provided on the front side of each pixel. An image pickup device having a color separation filter is disposed, and a specific color filter of the color separation filter has higher luminance sensitivity than light of other colors with respect to light having a wide wavelength band. In the imaging device, based on an electrical signal output from the imaging element, an output from each pixel in which the color separation filter is arranged is detected, and an output from any one of the pixels is a predetermined value. A pixel output detection unit that determines whether or not a predetermined value or more has been reached, and when the pixel output detection unit determines that there is a pixel with an output that is equal to or greater than the predetermined specified value, A pixel output correction unit that corrects an output of a pixel that is equal to or greater than the predetermined specified value based on an output from the element; a correction coefficient setting unit that sets a correction coefficient when performing the correction by the pixel output correction unit; A shooting scene determination unit that determines a shooting scene for the pixel, and an output from the pixel output correction unit when the output of the pixel in which the filter of the specific color has reached the predetermined specified value or more. Bit compression conversion means for compressing the pixel output data once expanded from the first bit number below the prescribed value to the second bit number to the first bit number, and the bit compression conversion means comprises: The pressure on the data corresponding to the pixel output below the predetermined specified value is higher than the compression rate for the data corresponding to the pixel output in the region above the predetermined specified value. Compressed to reduce the rate, the correction coefficient setting means receives the photographic scene information determined by the photographic scene determination means, based on the input photographic scene information, when performing the correction by the pixel output correcting means The correction coefficient is set.

請求項3に記載の発明は、光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置において、前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出手段と、前記画素出力検出手段により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正手段と、前記画素出力補正手段によって前記補正を行う際の補正係数を設定する補正係数設定手段と、前記撮像素子から出力される電気信号から、人物の顔部を検出する顔検出手段と、前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正手段から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換手段とを備え、前記ビット圧縮変換手段は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、前記補正係数設定手段は、前記顔検出手段による顔部検出情報を入力し、入力した顔部検出情報に基づいて、前記画素出力補正手段によって前記補正を行う際の補正係数を設定することを特徴としている。 According to a third aspect of the present invention, a subject image incident through an optical system is received by a light receiving surface having a plurality of pixels and converted into an electric signal, and a three primary color filter or a complementary color system is provided on the front side of each pixel. An image pickup device having a color separation filter is disposed, and a specific color filter of the color separation filter has higher luminance sensitivity than light of other colors with respect to light having a wide wavelength band. In the imaging device, based on an electrical signal output from the imaging element, an output from each pixel in which the color separation filter is arranged is detected, and an output from any one of the pixels is a predetermined value. A pixel output detection unit that determines whether or not a predetermined value or more has been reached, and when the pixel output detection unit determines that there is a pixel with an output that is equal to or greater than the predetermined specified value, A pixel output correction unit that corrects an output of a pixel that is equal to or greater than the predetermined specified value based on an output from an element; a correction coefficient setting unit that sets a correction coefficient when performing the correction by the pixel output correction unit; The pixel output when the output of the pixel in which the face detecting means for detecting the face portion of the person from the electrical signal output from the image sensor and the filter of the specific color has reached the predetermined specified value or more Bit compression conversion means for compressing the pixel output data output from the correction means and expanded once from the first bit number below the predetermined prescribed value to the second bit number to the first bit number again And the bit compression conversion means corresponds to the pixel output below the predetermined specified value rather than the compression rate for the data corresponding to the pixel output in the region above the predetermined specified value. The compression ratio for the data to compress small, the correction coefficient setting means inputs the face portion information detected by said face detecting means, based on the input face portion detection information, the correction by the pixel output correcting means It is characterized by setting a correction coefficient when performing.

請求項4に記載の発明は、前記撮像素子から出力される電気信号から被写体までの距離を検出する距離検出手段と、前記撮像素子から出力される電気信号から被写体の色分布を検出する色分布検出手段と、前記撮像素子から出力される電気信号から被写体の輝度の分布を検出する輝度分布検出手段を更に備え、前記撮影シーン判定手段は、前記距離検出手段で検出される距離情報、前記色分布検出手段で検出される色分布情報、前記輝度分布検出手段で検出される輝度分布情報のうちのいずれか1つ以上の情報に基づいて、撮影シーンを判定することを特徴としている。   According to a fourth aspect of the present invention, there is provided distance detection means for detecting a distance from an electric signal output from the image sensor to a subject, and a color distribution for detecting a color distribution of the subject from the electric signal output from the image sensor. A luminance distribution detection unit that detects a luminance distribution of a subject from an electric signal output from the image sensor; and the photographing scene determination unit includes the distance information detected by the distance detection unit, the color The photographic scene is determined based on one or more of the color distribution information detected by the distribution detection unit and the luminance distribution information detected by the luminance distribution detection unit.

請求項5に記載の発明は、光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置の撮像方法において、前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出工程と、前記画素出力検出工程により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正工程と、前記画素出力補正工程によって前記補正を行う際の補正係数を設定する補正係数設定工程と、被写体に対する撮影シーンを判定する撮影シーン判定工程と、前記撮像素子から出力される電気信号から、人物の顔部を検出する顔検出工程と、前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正工程から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換工程と、を含み、前記ビット圧縮変換工程は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、前記補正係数設定工程は、前記撮影シーン判定工程により判定した撮影シーン情報及び前記顔検出工程による顔部検出情報を入力し、入力したこれらの情報に基づいて、前記画素出力補正工程によって前記補正を行う際の補正係数を設定することを特徴としている。 According to a fifth aspect of the present invention, a subject image incident through an optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a three primary color filter or a complementary color system is provided on the front side of each pixel. An image pickup device having a color separation filter is disposed, and a specific color filter of the color separation filter has higher luminance sensitivity than light of other colors with respect to light having a wide wavelength band. In the imaging method of the imaging apparatus, an output from each pixel in which the color separation filter is arranged is detected based on an electrical signal output from the imaging element, and an output from any one of the pixels A pixel output detection step for determining whether or not the pixel value has reached a predetermined specified value or more, and when it is determined by the pixel output detection step that there is a pixel having an output equal to or higher than the predetermined value, A pixel output correction step for correcting the output of the pixel that is equal to or greater than the predetermined specified value based on an output from a peripheral pixel of the pixel, and a correction coefficient setting step for setting a correction coefficient for performing the correction by the pixel output correction step A shooting scene determination step for determining a shooting scene for a subject, a face detection step for detecting a human face from an electrical signal output from the image sensor, and an output of a pixel in which the filter of the specific color is arranged Pixel output data that is output from the pixel output correction step when the value reaches or exceeds the predetermined specified value and is expanded from the first bit number to the second bit number below the predetermined specified value. A bit compression conversion step that compresses the data again to the first number of bits, wherein the bit compression conversion step includes data corresponding to a pixel output in an area above the predetermined specified value. Than the compression rate for, and compressed to reduce the compression ratio for the data corresponding to the pixel output in the following the predetermined specified value, the correction factor setting step, the photographic scene information and the face that is determined by the photographic scene determination step It is characterized in that face detection information by the detection process is input, and a correction coefficient for performing the correction by the pixel output correction process is set based on the input information.

請求項6に記載の発明は、光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置の撮像方法において、前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出工程と、前記画素出力検出工程により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正工程と、前記画素出力補正工程によって前記補正を行う際の補正係数を設定する補正係数設定工程と、被写体に対する撮影シーンを判定する撮影シーン判定工程と、前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正工程から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換工程と、を含み、前記ビット圧縮変換工程は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、前記補正係数設定工程は、前記撮影シーン判定工程により判定した撮影シーン情報を入力し、入力した撮影シーン情報に基づいて、前記画素出力補正工程によって前記補正を行う際の補正係数を設定することを特徴としている。 According to a sixth aspect of the present invention, a subject image incident through an optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a three primary color filter or a complementary color system is provided on the front side of each pixel. An image pickup device having a color separation filter is disposed, and a specific color filter of the color separation filter has higher luminance sensitivity than light of other colors with respect to light having a wide wavelength band. In the imaging method of the imaging apparatus, an output from each pixel in which the color separation filter is arranged is detected based on an electrical signal output from the imaging element, and an output from any one of the pixels A pixel output detection step for determining whether or not the pixel value has reached a predetermined specified value or more, and when it is determined by the pixel output detection step that there is a pixel having an output equal to or higher than the predetermined value, A pixel output correction step for correcting the output of the pixel that is equal to or greater than the predetermined specified value based on an output from a peripheral pixel of the pixel, and a correction coefficient setting step for setting a correction coefficient for performing the correction by the pixel output correction step And a shooting scene determination step for determining a shooting scene for the subject, and an output from the pixel output correction step when the output of the pixel in which the filter of the specific color is arranged reaches or exceeds the predetermined specified value. A bit compression conversion step of compressing the pixel output data once expanded from the first number of bits below the predetermined prescribed value to the second number of bits to the first number of bits again, In the compression conversion step, the data corresponding to the pixel output at the predetermined specified value or less than the compression rate for the data corresponding to the pixel output at the region above the predetermined specified value is used. By reducing the compression ratio and compression of, the correction coefficient setting step, enter the shooting scene information determined by the photographic scene determination step, based on the input photographic scene information, the correction by the pixel output correction step It is characterized by setting a correction coefficient when performing.

請求項7に記載の発明は、光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置の撮像方法において、前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出工程と、前記画素出力検出工程により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正工程と、前記画素出力補正工程によって前記補正を行う際の補正係数を設定する補正係数設定工程と、前記撮像素子から出力される電気信号から、人物の顔部を検出する顔検出工程と、前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正工程から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換工程と、を含み、
前記ビット圧縮変換工程は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、前記補正係数設定工程は、前記顔検出工程による顔部検出情報を入力し、入力した顔部検出情報に基づいて、前記画素出力補正工程によって前記補正を行う際の補正係数を設定することを特徴としている。
According to a seventh aspect of the present invention, a subject image incident through an optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a three primary color filter or a complementary color system is provided on the front side of each pixel. An image pickup device having a color separation filter is disposed, and a specific color filter of the color separation filter has higher luminance sensitivity than light of other colors with respect to light having a wide wavelength band. In the imaging method of the imaging apparatus, an output from each pixel in which the color separation filter is arranged is detected based on an electrical signal output from the imaging element, and an output from any one of the pixels A pixel output detection step for determining whether or not the pixel value has reached a predetermined specified value or more, and when it is determined by the pixel output detection step that there is a pixel having an output equal to or higher than the predetermined value, A pixel output correction step for correcting the output of the pixel that is equal to or greater than the predetermined specified value based on an output from a peripheral pixel of the pixel, and a correction coefficient setting step for setting a correction coefficient for performing the correction by the pixel output correction step And a face detection step of detecting a human face from an electrical signal output from the image sensor, and an output of a pixel in which the filter of the specific color is disposed reaches the predetermined specified value or more. Bits that are output from the pixel output correction step and that are once expanded from the first number of bits below the predetermined specified value to the second number of bits, are compressed again to the first number of bits. A compression conversion process,
In the bit compression conversion step, compression is performed by reducing the compression rate for data corresponding to the pixel output below the predetermined specified value, rather than the compression rate for data corresponding to the pixel output in the region above the predetermined specified value, The correction coefficient setting step inputs face detection information from the face detection step, and sets a correction coefficient for performing the correction by the pixel output correction step based on the input face detection information. It is said.

請求項8に記載の発明は、前記撮像素子から出力される電気信号から被写体までの距離を検出する距離検出工程と、前記撮像素子から出力される電気信号から被写体の色分布を検出する色分布検出工程と、前記撮像素子から出力される電気信号から被写体の輝度の分布を検出する輝度分布検出工程を更に含み、前記撮影シーン判定工程は、前記距離検出工程で検出された距離情報、前記色分布検工程で検出した色分布情報、前記輝度分布検出工程で検出した輝度分布情報のうちのいずれか1つ以上の情報に基づいて、撮影シーンを判定することを特徴としている。   The invention according to claim 8 is a distance detection step of detecting a distance from an electrical signal output from the image sensor to a subject, and a color distribution of detecting a color distribution of the subject from the electrical signal output from the image sensor. A luminance distribution detecting step of detecting a luminance distribution of a subject from an electric signal output from the image sensor, wherein the photographing scene determining step includes the distance information detected in the distance detecting step, the color The photographic scene is determined based on one or more of the color distribution information detected in the distribution detection step and the luminance distribution information detected in the luminance distribution detection step.

本発明によれば、各画素のいずれかの画素からの出力が所定の規定値以上に達していると判定した場合に、その周辺の画素からの出力に基づいて所定の規定値以上の画素の出力を補正してダイナミックレンジを拡大することにより、露光量を変え複数回の撮影を行って画像を合成することなく、1回の撮影によってダイナミックレンジを拡大することができる。   According to the present invention, when it is determined that the output from any one of the pixels has reached a predetermined specified value or more, the output of the pixel having a predetermined specified value or more is determined based on the output from the surrounding pixels. By correcting the output and expanding the dynamic range, it is possible to expand the dynamic range by one shooting without changing the exposure amount and performing multiple shootings to synthesize images.

更に、本発明によれば、顔検出手段(顔検出工程)による顔検出情報及び撮影シーン判別手段(撮影シーン判別工程)による撮影シーンの判別情報、あるいはいずれか一方の情報に基づいて、入力したこれらの情報に基づいて、画素出力補正手段(画素出力補正工程)によって補正を行う際の補正係数を設定することにより、撮影シーンの状況や、撮影シーン内に人物の顔の有無に応じて、適切な拡大幅のダイナミックレンジを設定することができる。   Further, according to the present invention, the input is performed based on the face detection information by the face detection means (face detection step) and / or the shooting scene determination information by the shooting scene determination means (shooting scene determination step). Based on these information, by setting a correction coefficient when performing correction by the pixel output correction means (pixel output correction step), depending on the situation of the shooting scene and the presence or absence of a human face in the shooting scene, It is possible to set a dynamic range with an appropriate expansion width.

以下、本発明を図示の実施形態に基づいて説明する。
〈実施形態1〉
Hereinafter, the present invention will be described based on the illustrated embodiments.
<Embodiment 1>

図1(a)は、本発明の実施形態1に係る撮像装置の一例としてのデジタルスチルカメラ(以下、「デジタルカメラ」という)を示す正面図、図1(b)は、その上面図、図1(c)は、その背面図、図2は、図1(a),(b),(c)に示したデジタルカメラ内のシステム構成の概要を示すブロック図である。   FIG. 1A is a front view showing a digital still camera (hereinafter referred to as “digital camera”) as an example of an imaging apparatus according to Embodiment 1 of the present invention, and FIG. 1 (c) is a rear view thereof, and FIG. 2 is a block diagram showing an outline of a system configuration in the digital camera shown in FIGS. 1 (a), (b), and (c).

(デジタルカメラの外観構成)
図1(a),(b),(c)に示すように、本実施形態に係るデジタルカメラ1の上面側には、レリーズボタン(シャッタボタン)2、電源ボタン3、撮影・再生切替ダイアル4が設けられており、デジタルカメラ1の正面(前面)側には、撮影レンズ系5を有する鏡胴ユニット6、ストロボ発光部(フラッシュ)7、光学ファインダ8が設けられている。
(Appearance structure of digital camera)
As shown in FIGS. 1A, 1B, and 1C, a release button (shutter button) 2, a power button 3, a shooting / playback switching dial 4 are provided on the upper surface side of the digital camera 1 according to the present embodiment. In the front (front) side of the digital camera 1, a lens barrel unit 6 having a photographing lens system 5, a strobe light emitting unit (flash) 7, and an optical viewfinder 8 are provided.

デジタルカメラ1の背面側には、液晶モニタ(LCD)9、前記光学ファインダ8の接眼レンズ部8a、広角側ズーム(W)スイッチ10、望遠側ズーム(T)スイッチ11、メニュー(MENU)ボタン12、確定ボタン(OKボタン)13等が設けられている。また、デジタルカメラ1の側面内部には、撮影した画像データを保存するためのメモリカード14(図2参照)を収納するメモリカード収納部15が設けられている。   On the back side of the digital camera 1, there are a liquid crystal monitor (LCD) 9, an eyepiece 8 a of the optical viewfinder 8, a wide-angle zoom (W) switch 10, a telephoto zoom (T) switch 11, and a menu (MENU) button 12. , A confirmation button (OK button) 13 and the like are provided. Further, a memory card storage unit 15 for storing a memory card 14 (see FIG. 2) for storing captured image data is provided inside the side surface of the digital camera 1.

(デジタルカメラのシステム構成)
図2に示すように、このデジタルカメラ1は、鏡胴ユニット6の撮影レンズ系5を通して入射される被写体画像が受光面上に結像する固体撮像素子としてのCCD20、CCD20から出力される電気信号(アナログRGB画像信号)をデジタル信号に処理するアナログフロントエンド部(以下、「AFE部」という)21、AFE部21から出力されるデジタル信号を処理する信号処理部22、データを一時的に格納するSDRAM23、制御プログラム等が記憶されたROM24、鏡胴ユニット6を駆動するモータドライバ25等を有している。
(Digital camera system configuration)
As shown in FIG. 2, the digital camera 1 includes a CCD 20 serving as a solid-state imaging device on which a subject image incident through a photographing lens system 5 of a lens barrel unit 6 forms an image on a light receiving surface, and electrical signals output from the CCD 20. An analog front-end unit (hereinafter referred to as “AFE unit”) 21 that processes (analog RGB image signal) into a digital signal, a signal processing unit 22 that processes a digital signal output from the AFE unit 21, and temporarily stores data SDRAM 23 for controlling, ROM 24 for storing a control program, a motor driver 25 for driving the lens barrel unit 6 and the like.

鏡胴ユニット6は、ズームレンズやフォーカスレンズ等を有する撮影レンズ系5、絞りユニット26、メカシャッタユニット27を備えており、撮影レンズ系5、絞りユニット26、メカシャッタユニット27の各駆動ユニットは、モータドライバ25によって駆動される。モータドライバ25は、信号処理部22の制御部(CPU)28からの駆動信号により駆動制御される。   The lens barrel unit 6 includes a photographic lens system 5 having a zoom lens, a focus lens, and the like, an aperture unit 26, and a mechanical shutter unit 27. The drive units of the photographic lens system 5, the aperture unit 26, and the mechanical shutter unit 27 are as follows. It is driven by the motor driver 25. The motor driver 25 is driven and controlled by a drive signal from a control unit (CPU) 28 of the signal processing unit 22.

CCD20は、図3に示すように、CCD20を構成する複数の画素20a上にベイヤ配列のRGB原色フィルタ(以下、「RGBフィルタ」という)が配置されており、各画素からRGB3原色に対応した電気信号(アナログRGB画像信号)が出力される。   As shown in FIG. 3, the CCD 20 has a Bayer array RGB primary color filter (hereinafter referred to as “RGB filter”) arranged on a plurality of pixels 20 a constituting the CCD 20. A signal (analog RGB image signal) is output.

AFE部21は、CCD20を駆動するTG(タイミング信号発生部)30、CCD20から出力される電気信号(アナログRGB画像信号)をサンプリングするCDS(相関2重サンプリング部)31、CDS31にてサンプリングされた信号のゲインを調整するAGC(アナログ利得制御部)32、AGC32でゲイン調整された信号をデジタル信号(以下、「RAW−RGBデータ」という)に変換するA/D変換部33を備えている。   The AFE unit 21 is sampled by a TG (timing signal generating unit) 30 that drives the CCD 20, a CDS (correlated double sampling unit) 31 that samples an electrical signal (analog RGB image signal) output from the CCD 20, and the CDS 31. An AGC (analog gain control unit) 32 that adjusts the gain of the signal, and an A / D conversion unit 33 that converts the signal gain-adjusted by the AGC 32 into a digital signal (hereinafter referred to as “RAW-RGB data”).

信号処理部22は、AFE部21のTG30へ画面水平同期信号(HD)と画面垂直同期信号(VD)の出力を行い、これらの同期信号に合わせて、AFE部21のA/D変換部33から出力されるRAW−RGBデータを取り込むCCDインターフェース(以下、「CCDI/F」という)34と、SDRAM23を制御するメモリコントローラ35と、取り込んだRAW−RGBデータを表示や記録が可能なYUV形式の画像データに変換するYUV変換部36と、表示や記録される画像データのサイズに合わせて画像サイズを変更するリサイズ処理部37と、画像表示に必要な処理を行う表示出力制御部38と、画像データをJPEG形成などで記録するためのデータ圧縮部39と、画像データをメモリカード14へ書き込み、又はメモリカード14に書き込まれた画像データを読み出すメディアインターフェース(以下、「メディアI/F」という)40と、操作部41からの操作入力情報に基づき、ROM24に記憶された制御プログラムに基づいてデジタルカメラ1全体のシステム制御等を行う制御部(CPU)28を備えている。   The signal processing unit 22 outputs a screen horizontal synchronization signal (HD) and a screen vertical synchronization signal (VD) to the TG 30 of the AFE unit 21, and an A / D conversion unit 33 of the AFE unit 21 in accordance with these synchronization signals. CCD interface (hereinafter referred to as “CCD I / F”) 34 that captures RAW-RGB data output from the CPU, a memory controller 35 that controls the SDRAM 23, and a YUV format that can display and record the captured RAW-RGB data. A YUV conversion unit 36 for converting to image data, a resize processing unit 37 for changing the image size in accordance with the size of image data to be displayed or recorded, a display output control unit 38 for performing processing necessary for image display, and an image A data compression unit 39 for recording data by JPEG formation and the like, and writing image data to the memory card 14 or The digital camera 1 is based on a control program stored in the ROM 24 on the basis of a media interface (hereinafter referred to as “media I / F”) 40 that reads image data written on the recard 14 and operation input information from the operation unit 41. A control unit (CPU) 28 that performs overall system control and the like is provided.

操作部41は、デジタルカメラ1(図1(a),(b),(c)参照)の外観表面に設けられているレリーズボタン2、電源ボタン3、撮影・再生切替ダイアル4、広角側ズームスイッチ10、望遠側ズームスイッチ11、メニューボタン12、確定ボタン13等であり、撮影者の操作によって所定の動作指示信号が制御部28に入力される。SDRAM23には、CCDI/F34に取り込まれたRAW−RGBデータが保存されると共に、YUV変換部36で変換処理されたYUVデータ(YUV形式の画像データ)が保存され、更に、データ圧縮部39で圧縮処理されたJPEG形成などの画像データが保存される。なお、前記YUVデータのYUVは、輝度データ(Y)と、色差(輝度データと青色(B)成分データの差分(U)と、輝度データと赤色(R)成分データの差分(V))の情報で色を表現する形式である。   The operation unit 41 includes a release button 2, a power button 3, a shooting / playback switching dial 4, and a wide-angle zoom provided on the external surface of the digital camera 1 (see FIGS. 1A, 1B, and 1C). The switch 10, the telephoto zoom switch 11, the menu button 12, the confirm button 13, and the like, and a predetermined operation instruction signal is input to the control unit 28 by the photographer's operation. The SDRAM 23 stores the RAW-RGB data captured by the CCD I / F 34, and stores the YUV data (YUV format image data) converted by the YUV conversion unit 36. Further, the SDRAM 23 stores the RAW-RGB data. The compressed image data such as JPEG formation is stored. Note that YUV of the YUV data is luminance data (Y), color difference (difference (U) between luminance data and blue (B) component data, and difference (V) between luminance data and red (R) component data). It is a format that expresses color with information.

(デジタルカメラのモニタリング動作、静止画撮影動作)
次に、前記したデジタルカメラ1のモニタリング動作と静止画撮影動作について説明する。このデジタルカメラ1は、静止画撮影モード時には、以下に説明するようなモニタリング動作を実行しながら静止画撮影動作が行われる。
(Digital camera monitoring and still image shooting)
Next, the monitoring operation and still image shooting operation of the digital camera 1 will be described. In the still image shooting mode, the digital camera 1 performs a still image shooting operation while executing a monitoring operation as described below.

先ず、撮影者が電源ボタン3をONし、撮影・再生切替ダイアル4を撮影モードに設定することで、デジタルカメラ1が記録モードで起動する。電源ボタン3がONされて、撮影・再生切替ダイアル4が撮影モードに設定されたことを制御部28が検知すると、制御部28はモータドライバ25に制御信号を出力して、鏡胴ユニット6を撮影可能位置に移動させ、かつ、CCD20、AFE部21、信号処理部22、SDRAM23、ROM24、液晶モニタ9等を起動させる。   First, when the photographer turns on the power button 3 and sets the photographing / playback switching dial 4 to the photographing mode, the digital camera 1 is activated in the recording mode. When the control unit 28 detects that the power button 3 is turned on and the shooting / playback switching dial 4 is set to the shooting mode, the control unit 28 outputs a control signal to the motor driver 25 to switch the lens barrel unit 6. The camera 20 is moved to a photographing position and the CCD 20, the AFE unit 21, the signal processing unit 22, the SDRAM 23, the ROM 24, the liquid crystal monitor 9 and the like are activated.

そして、鏡胴ユニット6の撮影レンズ系5を被写体に向けることにより、撮影レンズ系5を通して入射される被写体画像がCCD20の各画素の受光面上に結像する。そして、CCD20から出力される被写体画像に応じた電気信号(アナログRGB画像信号)は、CDS31、AGC32を介してA/D変換部33に入力され、A/D変換部33により12ビット(bit)のRAW−RGBデータに変換する。   Then, by directing the photographic lens system 5 of the lens barrel unit 6 toward the subject, a subject image incident through the photographic lens system 5 is formed on the light receiving surface of each pixel of the CCD 20. Then, an electrical signal (analog RGB image signal) corresponding to the subject image output from the CCD 20 is input to the A / D conversion unit 33 via the CDS 31 and the AGC 32, and 12 bits (bit) by the A / D conversion unit 33. To RAW-RGB data.

このRAW−RGBデータは、信号処理部22のCCDI/F34に取り込まれてメモリコントローラ35を介してSDRAM23に保存される。そして、SDRAM23から読み出されたRAW−RGBデータは、YUV変換部36で表示可能な形式であるYUVデータ(YUV信号)に変換された後に、メモリコントローラ35を介してSDRAM23にYUVデータが保存される。   This RAW-RGB data is taken into the CCD I / F 34 of the signal processing unit 22 and stored in the SDRAM 23 via the memory controller 35. The RAW-RGB data read from the SDRAM 23 is converted into YUV data (YUV signal) in a format that can be displayed by the YUV converter 36, and then the YUV data is stored in the SDRAM 23 via the memory controller 35. The

そして、SDRAM23からメモリコントローラ35を介して読み出したYUVデータは、表示出力制御部38を介して液晶モニタ(LCD)9へ送られ、撮影画像が表示される。前記した液晶モニタ(LCD)9に撮影画像を表示しているモニタリング時においては、CCDI/F34による画素数の間引き処理により1/30秒の時間で1フレームを読み出している。   The YUV data read from the SDRAM 23 via the memory controller 35 is sent to the liquid crystal monitor (LCD) 9 via the display output control unit 38, and a captured image is displayed. At the time of monitoring in which a photographed image is displayed on the liquid crystal monitor (LCD) 9 described above, one frame is read out in a time of 1/30 second by thinning out the number of pixels by the CCD I / F 34.

なお、このモニタリング動作時は、電子ファインダとして機能する液晶モニタ(LCD)9に撮影画像が表示されているだけで、まだレリーズボタン2が押圧操作されていない状態である。   In this monitoring operation, the photographed image is only displayed on the liquid crystal monitor (LCD) 9 functioning as an electronic viewfinder, and the release button 2 is not yet pressed.

この撮影画像の液晶モニタ(LCD)9への表示によって、静止画を撮影するための構図の確認等を撮影者が行うことができる。なお、表示出力制御部38からTVビデオ信号として出力して、ビデオケーブルを介して外部のTV(テレビ)に撮影画像を表示することもできる。   By displaying the photographed image on the liquid crystal monitor (LCD) 9, the photographer can confirm the composition for photographing the still image. In addition, it can output as a TV video signal from the display output control part 38, and can display a picked-up image on external TV (television) via a video cable.

そして、信号処理部22のCCDI/F34は、取り込まれたRAW−RGBデータより、AF(自動合焦)評価値、AE(自動露出)評価値、AWB(オートホワイトバランス)評価値を算出する。   The CCD I / F 34 of the signal processing unit 22 calculates an AF (automatic focus) evaluation value, an AE (automatic exposure) evaluation value, and an AWB (auto white balance) evaluation value from the captured RAW-RGB data.

AF評価値は、例えば、高周波成分抽出フィルタの出力積分値や、近接画素の輝度差の積分値によって算出される。合焦状態にあるときは、被写体のエッジ部分がはっきりとしているため、高周波成分が一番高くなる。これを利用して、AF動作時(合焦検出動作時)には、撮影レンズ系5内の各フォーカスレンズ位置におけるAF評価値を取得して、その極大になる点を合焦検出位置としてAF動作が実行される。   The AF evaluation value is calculated by, for example, the output integrated value of the high frequency component extraction filter or the integrated value of the luminance difference between adjacent pixels. When in the in-focus state, the edge portion of the subject is clear, so the high frequency component is the highest. By utilizing this, at the time of AF operation (at the time of focus detection operation), an AF evaluation value at each focus lens position in the photographing lens system 5 is acquired, and the point where the maximum is obtained is used as the focus detection position for AF. The action is executed.

AE評価値とAWB評価値は、RAW−RGBデータにおけるRGB値のそれぞれの積分値から算出される。例えば、CCD20の全画素の受光面に対応した画面を1024エリアに等分割(水平32分割、垂直32分割)し、それぞれのエリアのRGB積算を算出する。   The AE evaluation value and the AWB evaluation value are calculated from the integrated values of the RGB values in the RAW-RGB data. For example, the screen corresponding to the light receiving surfaces of all the pixels of the CCD 20 is equally divided into 1024 areas (horizontal 32 divisions and vertical 32 divisions), and the RGB integration of each area is calculated.

そして、制御部28は、算出されたRGB積算値を読み出し、AE処理では、画面のそれぞれのエリアの輝度を算出して、輝度分布から適正な露光量を決定する。決定した露光量に基づいて、露光条件(CCD20の電子シャッタ回数、絞りユニット26の絞り値等)を設定する。また、AWB処理では、RGBの分布から被写体色や光源色を判定し、光源の色に合わせたAWBの制御値を決定する。このAWB処理により、YUV変換部36でYUVデータに変換処理するときのホワイトバランスを合わせる。なお、前記したAE処理とAWB処理は、前記モニタリング時には連続的に行われている。   Then, the control unit 28 reads the calculated RGB integrated value, and in the AE process, calculates the luminance of each area of the screen and determines an appropriate exposure amount from the luminance distribution. Based on the determined exposure amount, exposure conditions (the number of electronic shutters of the CCD 20, the aperture value of the aperture unit 26, etc.) are set. In the AWB process, the subject color and the light source color are determined from the RGB distribution, and the AWB control value according to the color of the light source is determined. By this AWB process, white balance is adjusted when the YUV conversion unit 36 performs conversion to YUV data. The AE process and AWB process described above are continuously performed during the monitoring.

そして、前記したモニタリング動作時に、レリーズボタン2が押圧(半押しから全押し)操作されて静止画撮影動作が開始されると、合焦位置検出動作であるAF動作と静止画記録処理が行われる。   When the release button 2 is pressed (half-pressed to full-press) and the still image shooting operation is started during the monitoring operation described above, the AF operation and the still image recording process that are the focus position detection operations are performed. .

即ち、レリーズボタン2が押圧(半押しから全押し)操作されると、制御部28からモータドライバ25への駆動指令により撮影レンズ系5のフォーカスレンズが移動し、例えば、いわゆる山登りAFと称されるコントラスト評価方式のAF動作が実行される。   That is, when the release button 2 is pressed (half-pressed to full-pressed), the focus lens of the photographing lens system 5 is moved by a drive command from the control unit 28 to the motor driver 25, and is referred to as so-called hill-climbing AF, for example. The contrast evaluation AF operation is executed.

AF(合焦)対象範囲が無限から至近までの全領域であった場合、撮影レンズ系5のフォーカスレンズは、至近から無限、又は無限から至近までの間の各フォーカス位置に移動し、CCDI/F34で算出されている各フォーカス位置における前記AF評価値を制御部28が読み出す。そして、各フォーカス位置のAF評価値が極大になる点を合焦位置としてフォーカスレンズを合焦位置に移動させ、合焦させる。   When the AF (focusing) target range is the entire region from infinity to close, the focus lens of the photographing lens system 5 moves to each focus position from close to infinity, or from infinity to close, and CCDI / The control unit 28 reads out the AF evaluation value at each focus position calculated in F34. Then, the focus lens is moved to the in-focus position with the point where the AF evaluation value at each focus position is maximized as the in-focus position, and in-focus.

そして、前記したAE処理が行われ、露光完了時点で、制御部28からモータドライバ25への駆動指令によりメカシャッタユニット27が閉じられ、CCD20から静止画用のアナログRGB画像信号が出力される。そして、前記モニタリング時と同様に、AFE部21のA/D変換部33によりRAW−RGBデータに変換される。   Then, the AE process described above is performed, and when the exposure is completed, the mechanical shutter unit 27 is closed by a drive command from the control unit 28 to the motor driver 25, and an analog RGB image signal for a still image is output from the CCD 20. As in the monitoring, the A / D conversion unit 33 of the AFE unit 21 converts the data into RAW-RGB data.

そして、このRAW−RGBデータは、信号処理部22のCCDI/F34に取り込まれ、後述するYUV変換部36でYUVデータに変換されて、メモリコントローラ35を介してSDRAM23に保存される。そして、このYUVデータはSDRAM23から読み出されて、リサイズ処理部37で記録画素数に対応するサイズに変換され、データ圧縮部39でJPEG形式等の画像データへと圧縮される。   The RAW-RGB data is taken into the CCD I / F 34 of the signal processing unit 22, converted into YUV data by a YUV conversion unit 36 described later, and stored in the SDRAM 23 via the memory controller 35. The YUV data is read from the SDRAM 23, converted into a size corresponding to the number of recorded pixels by the resizing processing unit 37, and compressed into image data such as JPEG format by the data compression unit 39.

圧縮されたJPEG形式等の画像データは、SDRAM23に書き戻された後にメモリコントローラ35を介してSDRAM23から読み出され、メディアI/F40を介してメモリカード14に保存される。   The compressed image data such as JPEG format is written back to the SDRAM 23, read out from the SDRAM 23 through the memory controller 35, and stored in the memory card 14 through the media I / F 40.

また、本実施形態では、図4に示すように、制御部28内に顔検出部42と、撮影シーン判定部43を有している。   In the present embodiment, as shown in FIG. 4, the control unit 28 includes a face detection unit 42 and a shooting scene determination unit 43.

顔検出部42は、例えば、SDRAM23に書き込まれたYUVデータの輝度データ(Y)を読み出し、予め記憶されている人物の顔の目と鼻の輝度パターンテンプレートとのマッチングを行うことで、人物の顔を検出する。前記輝度パターンテンプレートは、複数種類の大きさのものが予めROM24に記憶されており、それぞれの大きさの輝度パターンテンプレートで画面内の各点においてパターンマッチングすることで人物の顔部の検出を行う。なお、顔検出部42による顔部の検出動作は、モニタリング動作時に連続的に行われており、AE(自動露出)において適正輝度を決める基準位置として利用される。また、AF(自動合焦)時は、合焦位置を決定するピーク検出位置としても利用される。   For example, the face detection unit 42 reads the luminance data (Y) of the YUV data written in the SDRAM 23 and performs matching between the human face eyes and the nose luminance pattern template stored in advance. Detect faces. Plural types of luminance pattern templates are stored in the ROM 24 in advance, and the face portion of a person is detected by pattern matching at each point in the screen with the luminance pattern templates of the respective sizes. . The face detection operation by the face detection unit 42 is continuously performed during the monitoring operation, and is used as a reference position for determining appropriate luminance in AE (automatic exposure). In AF (automatic focus), it is also used as a peak detection position for determining the focus position.

撮影シーン判定部43は、AF時に取得としたAF評価値から算出される被写体画面内の各位置の距離情報、前記AE評価値による画面内での輝度分布情報、及び前記AWB評価値による画面内での色分布情報を入力し、入力したこれらの情報に基づいて撮影シーンを判定する。   The shooting scene determination unit 43 includes distance information of each position in the subject screen calculated from the AF evaluation value acquired during AF, luminance distribution information in the screen based on the AE evaluation value, and in-screen based on the AWB evaluation value. The color distribution information is input, and the shooting scene is determined based on the input information.

例えば、撮影シーン判定部43は、入力される距離情報、輝度分布情報、色分布情報に基づいて、被写体までの距離が近くでなく、画面全体の輝度が高く、画面上部に青色が分布していると判断した場合には、屋外の昼間の風景シーンと判定する。同様に、入力される距離情報、輝度分布情報、色分布情報に基づいて、被写体までの距離が近くでなく、画面全体の輝度が低く、画面の一部に高輝度が点在していると判断した場合には、夜景シーンと判定する。   For example, the shooting scene determination unit 43 is based on the input distance information, luminance distribution information, and color distribution information, and the distance to the subject is not close, the luminance of the entire screen is high, and blue is distributed at the top of the screen. If it is determined that the scene is an outdoor daytime landscape scene. Similarly, if the distance to the subject is not close based on the input distance information, luminance distribution information, and color distribution information, the luminance of the entire screen is low, and high luminance is scattered in a part of the screen. If it is determined, it is determined as a night scene.

更に、顔検出部42によって前記したように画面内に人物の顔部を検出し、かつ撮影シーン判定部43により被写体である人物の顔部までの距離が近く、それ以外の部分が遠距離であると判断している場合は、風景を背景とした人物撮影シーンと判定する。また、同様に、顔検出部42によって前記したように画面内に人物の顔部を検出し、かつ撮影シーン判定部43により被写体である人物の顔部までの距離が近く、それ以外の部分が遠距離であると判断し、更に、撮影シーン判定部43により画面全体の輝度が低く、画面の一部に高輝度が点在していると判断している場合には、夜景を背景とした人物撮影シーンと判定する。   Further, as described above, the face detection unit 42 detects the person's face in the screen, and the shooting scene determination unit 43 closes the distance to the person's face, which is the subject, and the other parts are far away. If it is determined that there is a scene, the scene is determined to be a person-captured scene with the landscape as the background. Similarly, the face detection unit 42 detects the face of the person on the screen as described above, and the shooting scene determination unit 43 closes the distance to the face of the person who is the subject. If it is determined that the distance is long, and the shooting scene determination unit 43 determines that the brightness of the entire screen is low and that high brightness is scattered on a part of the screen, the night scene is used as the background. It is determined as a person shooting scene.

(本発明におけるダイナミックレンジの拡大原理)
デジタルカメラ1のCCD20を構成する各画素上には、ベイヤ配列のRGBフィルタ(図3参照)が配置されているが、太陽光のように広い波長帯域を持つ光に対して、通常のRGBフィルタは各色ごとに輝度に対する感度が異なっている。
(Principle of dynamic range expansion in the present invention)
A Bayer-arranged RGB filter (see FIG. 3) is arranged on each pixel constituting the CCD 20 of the digital camera 1, but a normal RGB filter for light having a wide wavelength band such as sunlight. Have different luminance sensitivity for each color.

例えば、図5に示すように、G(グリーン)フィルタの感度が、R(レッド)フィルタ、B(ブルー)フィルタの2倍程度の感度を有するRGBフィルタ(図5のa、b、c)を有するCCD20の場合、太陽光のように広い波長帯域を持つ光が同じだけRGBフィルタに入射したときに、R、Bフィルタの各画素出力に対してGフィルタ(図5のcの斜線部分)の画素出力の方が先に飽和レベルAに達してしまう。なお、図5において、fはGフィルタの画素感度特性、gはR、Bフィルタの各画素感度特性であり、Gフィルタの画素感度特性は、R、Bフィルタの各画素感度特性の2倍程度の感度を有している。   For example, as shown in FIG. 5, an RGB filter (a, b, and c in FIG. 5) has a sensitivity of the G (green) filter that is about twice that of an R (red) filter and a B (blue) filter. In the case of the CCD 20 having the same, when the same amount of light having a wide wavelength band such as sunlight is incident on the RGB filter, the G filter (shaded portion in FIG. 5c) is applied to each pixel output of the R and B filters. The pixel output first reaches the saturation level A. In FIG. 5, f is the pixel sensitivity characteristic of the G filter, g is the pixel sensitivity characteristic of the R and B filters, and the pixel sensitivity characteristic of the G filter is about twice the pixel sensitivity characteristics of the R and B filters. It has the sensitivity of.

ところで、RGBフィルタが配置されたCCDなどの固体撮像素子を有する従来のデジタルカメラでは、図5のa、b、cのRGBフィルタのように、感度の高いGフィルタの画素出力に応じた飽和レベルAに合わせてダイナミックレンジの範囲を設定している。このため、Gフィルタの画素出力が飽和レベルAに達している場合でも、R、Bフィルタの画素出力は飽和レベルAの1/2程度である。   By the way, in a conventional digital camera having a solid-state imaging device such as a CCD in which an RGB filter is arranged, a saturation level corresponding to the pixel output of a G filter with high sensitivity, such as the RGB filters of a, b, and c in FIG. The dynamic range is set according to A. For this reason, even when the pixel output of the G filter reaches the saturation level A, the pixel output of the R and B filters is about ½ of the saturation level A.

これに対して、本発明では、図5のd、eのRGBフィルタのように、Gフィルタの画素出力が飽和レベルAを超えていても、R、Bフィルタの各画素出力が飽和レベルAを超えていない範囲内にあるときに、R、Bフィルタの各画素出力レベルから、R、Bフィルタの各画素感度特性(図5のg)とGフィルタの画素感度特性(図5のf)とに基づいてGフィルタの画素出力レベルを予測補間補正(一点鎖線部分)し、この予測補間した分だけダイナミックレンジを拡大するようにした。   On the other hand, in the present invention, even if the pixel output of the G filter exceeds the saturation level A as in the RGB filters of d and e in FIG. From within the pixel output level of the R and B filters, the pixel sensitivity characteristics of the R and B filters (g in FIG. 5) and the pixel sensitivity characteristics of the G filter (f in FIG. 5) Based on this, the pixel output level of the G filter is subjected to predictive interpolation correction (one-dot chain line portion), and the dynamic range is expanded by this predicted interpolation.

前記したように本実施形態では、太陽光のように広い波長帯域を持つ光に対して、Gフィルタの画素感度特性は、R、Bフィルタの各画素感度特性の2倍程度の感度を有している。よって、本実施形態におけるダイナミックレンジの拡大幅の最大値は、ダイナミックレンジの拡大処理動作を行わない通常の撮影時に対して2倍程度である。   As described above, in the present embodiment, the pixel sensitivity characteristic of the G filter has a sensitivity about twice that of each pixel sensitivity characteristic of the R and B filters with respect to light having a wide wavelength band such as sunlight. ing. Therefore, the maximum value of the expansion range of the dynamic range in the present embodiment is about twice as large as that in normal shooting without performing the dynamic range expansion processing operation.

なお、本実施形態では、Gフィルタの画素感度特性がR、Bフィルタの各画素感度特性の2倍程度の感度を有し、これに基づいてダイナミックレンジの拡大幅の最大値が2倍としたが、R、G、Bフィルタの各画素感度特性を変化させることにより、ダイナミックレンジの拡大幅の最大値を2倍以上の所定値、あるいは2倍以下の所定値に設定することができる。   In this embodiment, the pixel sensitivity characteristic of the G filter has a sensitivity that is about twice that of the pixel sensitivity characteristics of the R and B filters, and based on this, the maximum value of the dynamic range expansion width is doubled. However, by changing the pixel sensitivity characteristics of the R, G, and B filters, the maximum value of the expansion range of the dynamic range can be set to a predetermined value that is two times or more, or a predetermined value that is two times or less.

(YUV変換部36によるダイナミックレンジ拡大処理)
本実施形態に係るデジタルカメラ1のYUV変換部36は、前記したダイナミックレンジを拡大するためのダイナミックレンジ拡大処理機能を有している。
(Dynamic range expansion processing by the YUV converter 36)
The YUV conversion unit 36 of the digital camera 1 according to the present embodiment has a dynamic range expansion processing function for expanding the dynamic range described above.

図6に示すように、YUV変換部36は、後述するダイナミックレンジ拡大予測補間部(以下、「Dレンジ拡大予測補間部」という)50、ビット圧縮変換部51、ホワイトバランス制御部52、同時化部53、トーンカーブ変換部54、RGB−YUV変換部55、画像サイズコンバータ部56、輝度ヒストグラム生成部57、およびエッジエンハンス部58を備えている。   As shown in FIG. 6, the YUV conversion unit 36 includes a dynamic range expansion prediction interpolation unit (hereinafter referred to as “D range expansion prediction interpolation unit”) 50, a bit compression conversion unit 51, a white balance control unit 52, and synchronization described later. Unit 53, tone curve conversion unit 54, RGB-YUV conversion unit 55, image size converter unit 56, luminance histogram generation unit 57, and edge enhancement unit 58.

Dレンジ拡大予測補間部50は、図7に示すように、輝度レベル判定部60、飽和画素補正処理部61、非飽和画素補正処理部62、補正係数設定部63、およびビット拡張処理部64を備えている。   As shown in FIG. 7, the D range expansion prediction interpolation unit 50 includes a luminance level determination unit 60, a saturated pixel correction processing unit 61, a non-saturated pixel correction processing unit 62, a correction coefficient setting unit 63, and a bit extension processing unit 64. I have.

輝度レベル判定部60は、入力されるRAW−RGBデータからRGBフィルタを設けた各画素の画素出力を検出するとともに、感度が一番高いGフィルタを設けた画素の画素出力(以下、「Gフィルタの画素出力」という)が飽和レベル以上に達したか否かを判定する。   The luminance level determination unit 60 detects the pixel output of each pixel provided with the RGB filter from the input RAW-RGB data, and also outputs the pixel output of the pixel provided with the highest sensitivity G filter (hereinafter referred to as “G filter”). It is determined whether or not the “pixel output” is equal to or higher than the saturation level.

飽和画素補正処理部61は、輝度レベル判定部60でGフィルタの画素出力が飽和レベル以上に達したと判定した場合に、その周囲のR、Bフィルタを設けた画素の画素出力(以下、「R、Bフィルタの画素出力」という)によって飽和レベル以上に達しているGフィルタの画素出力の補正(予測補間処理)を行う。なお、飽和画素補正処理部61は、飽和レベル以上に達しているGフィルタの画素出力を補正する際に、補正係数設定部63から入力される補正係数に基づいて補正処理を行う(詳細は後述する)。非飽和画素補正処理部62は、飽和画素補正処理部61で補正されたGフィルタの画素出力の値に基づいて、R、Bフィルタの画素出力を補正する。   When the luminance level determination unit 60 determines that the pixel output of the G filter has reached the saturation level or higher, the saturation pixel correction processing unit 61 outputs the pixel output of the pixels provided with the surrounding R and B filters (hereinafter, “ Correction of the pixel output of the G filter that has reached the saturation level (predictive interpolation processing) is performed. The saturated pixel correction processing unit 61 performs correction processing based on the correction coefficient input from the correction coefficient setting unit 63 when correcting the pixel output of the G filter that has reached the saturation level (details will be described later). To do). The non-saturated pixel correction processing unit 62 corrects the pixel output of the R and B filters based on the pixel output value of the G filter corrected by the saturated pixel correction processing unit 61.

補正係数設定部63は、撮影シーン判定部43により判定した撮影シーン情報及び前記顔検出部42による顔部検出情報を入力し、入力したこれらの情報に基づいて、飽和画素補正処理部61によってGフィルタの画素出力の補正を行う際の補正係数を設定する(詳細は後述する)。   The correction coefficient setting unit 63 inputs the shooting scene information determined by the shooting scene determination unit 43 and the face detection information by the face detection unit 42, and based on the input information, the saturated pixel correction processing unit 61 performs G A correction coefficient for correcting the pixel output of the filter is set (details will be described later).

ビット拡張処理部64は、輝度レベル判定部60でGフィルタの画素出力が飽和レベルに達していないと判定された場合に、Gフィルタの画素出力、およびR、Bフィルタの画素出力に対して、出力レベルの補正を行うことなく12ビットから14ビットにそれぞれビット拡張のみを行う。   When the luminance level determination unit 60 determines that the pixel output of the G filter has not reached the saturation level, the bit extension processing unit 64 performs the pixel output of the G filter and the pixel output of the R and B filters. Only bit expansion is performed from 12 bits to 14 bits without correcting the output level.

以下、本実施形態におけるダイナミックレンジの拡大処理動作について説明する。   The dynamic range expansion processing operation in this embodiment will be described below.

例えば、撮影したい被写体の背景の一部にその周囲よりも極端に明るい部分が有る場合や、夜景を背景にして人物をフラッシュ発光で撮影するときに人物の顔部分が白飛びするおそれがある場合などにおいて、ダイナミックレンジを拡大して高い輝度部分に対して良好な階調を有する画像を得たいことがある。このように、通常の撮影時よりもダイナミックレンジを拡大して撮影したいときには、メニューボタン12(図1(C)参照)を撮影者が押圧操作することにより、例えば、図8に示すような撮影設定画面が液晶モニタ(LCD)9に表示される。   For example, if there is a part of the background of the subject you want to shoot that is extremely brighter than its surroundings, or the person's face may be overexposed when shooting a person with a flash against a night view In some cases, it is desired to obtain an image having a good gradation with respect to a high luminance part by expanding the dynamic range. Thus, when it is desired to shoot with a larger dynamic range than during normal shooting, the photographer presses the menu button 12 (see FIG. 1C), for example, as shown in FIG. A setting screen is displayed on a liquid crystal monitor (LCD) 9.

そして、図8に示すように、メニューボタン12の押圧操作により選択された「ダイナミックレンジ2倍」の項目に対し、確定ボタン(図1(C)参照)13を押して「ダイナミックレンジ2倍」を決定する。これにより、ダイナミックレンジ拡大処理動作がONされ、制御部28から輝度レベル判定部60へダイナミックレンジの拡大幅を2倍とする信号が出力される。   Then, as shown in FIG. 8, with respect to the item “dynamic range doubling” selected by pressing the menu button 12, the confirmation button (see FIG. 1C) 13 is pressed to “double dynamic range”. decide. As a result, the dynamic range expansion processing operation is turned on, and a signal for doubling the dynamic range expansion width is output from the control unit 28 to the luminance level determination unit 60.

そして、制御部28から輝度レベル判定部60へダイナミックレンジの拡大幅を2倍とする信号が出力されて、ダイナミックレンジ拡大処理動作が実行されると、Dレンジ拡大予測補間部50の輝度レベル判定部60は、入力されるRAW−RGBデータに基づいてGフィルタの画素出力が飽和レベル以上に達したか否かを判定処理する。   When the signal that doubles the dynamic range expansion width is output from the control unit 28 to the luminance level determination unit 60 and the dynamic range expansion processing operation is executed, the luminance level determination of the D range expansion prediction interpolation unit 50 is performed. The unit 60 determines whether or not the pixel output of the G filter has reached a saturation level or higher based on the input RAW-RGB data.

この判定処理を行う場合において、本実施形態では、RGBフィルタが設置されたCCD20の各画素に対して、図3に示したように、太枠A内の2×2画素(Gフィルタが2画素、R、Bフィルタがそれぞれ1画素)を処理単位(最小単位)とする。   In the case where this determination process is performed, in the present embodiment, as shown in FIG. 3, 2 × 2 pixels in the thick frame A (2 pixels for the G filter) for each pixel of the CCD 20 in which the RGB filter is installed. , R and B filters are each one pixel) as a processing unit (minimum unit).

この処理単位(太枠A)内にある2つのGフィルタの画素のうちの少なくとも1つの画素出力が飽和レベル以上に達している場合に、Gフィルタの感度は、前記したようにR、Bフィルタの感度の約2倍であるため、Gフィルタの画素出力値(G)は、下記の式(1)から算出する。   When at least one pixel output of two G filter pixels in the processing unit (thick frame A) has reached the saturation level or higher, the sensitivity of the G filter is the R and B filters as described above. Therefore, the pixel output value (G) of the G filter is calculated from the following formula (1).

G={(R+B)/2}×2 …式(1)   G = {(R + B) / 2} × 2 Formula (1)

飽和画素補正処理部61は、式(1)のように、R、Bフィルタの画素出力の平均値を算出して、それを2倍することでGフィルタの画素出力値を算出する。算出されたGフィルタの画素出力値は、処理単位(2×2画素)内にある2つのGフィルタの画素出力値として置き換えられる。なお、前記Gフィルタの画素出力値は12ビットを超えたデータになるため、ここでは一度14ビットのデータに置き換える。よって、R、Bフィルタの画素出力の最大値はいずれも4095(12ビット)なので、Gフィルタの画素出力の最大値は8190(13ビット)となることによって、14ビットのデータとして扱うことができる。   The saturated pixel correction processing unit 61 calculates the average value of the pixel outputs of the R and B filters and doubles the average value of the pixel outputs of the R and B filters as shown in the equation (1) to calculate the pixel output value of the G filter. The calculated pixel output values of the G filter are replaced with the pixel output values of the two G filters in the processing unit (2 × 2 pixels). Since the pixel output value of the G filter exceeds 12 bits, it is replaced here with 14-bit data. Therefore, since the maximum value of the pixel output of the R and B filters is 4095 (12 bits), the maximum value of the pixel output of the G filter is 8190 (13 bits), so that it can be handled as 14-bit data. .

なお、前記式(1)では、Gフィルタの画素出力値の算出を2×2画素で行っているが、これに限定するものではなく、補正対象のGフィルタの画素周辺のR、Bフィルタの画素をそれぞれn(2以上)個用いて、式(1)と同様にその平均値を算出し、それを2倍するようにしてもよい。   In the equation (1), the calculation of the pixel output value of the G filter is performed with 2 × 2 pixels. However, the present invention is not limited to this, and the R and B filters around the pixel of the correction target G filter are not limited thereto. It is also possible to use n (two or more) pixels, calculate the average value in the same manner as in equation (1), and double the average value.

この際、補正係数設定部63は、撮影シーン判定部43により判定した撮影シーン情報及び顔検出部42による顔部検出情報を入力し、入力したこれらの情報に基づいて、飽和画素補正処理部61によってGフィルタの画素出力の補正を行う際の補正係数を設定する。飽和画素補正処理部61は、補正係数設定部63で設定された補正係数に基づいて、飽和レベル以上に達しているGフィルタの画素出力の補正を行う。   At this time, the correction coefficient setting unit 63 inputs the shooting scene information determined by the shooting scene determination unit 43 and the face detection information by the face detection unit 42, and based on the input information, the saturated pixel correction processing unit 61. To set a correction coefficient for correcting the pixel output of the G filter. The saturated pixel correction processing unit 61 corrects the pixel output of the G filter that has reached the saturation level or higher based on the correction coefficient set by the correction coefficient setting unit 63.

具体的には、撮影シーン判定部43及び顔検出部42により、例えば、前記のように夜景を背景としたフラッシュ発光による人物撮影シーンと判定した場合、フラッシュ発光により人物の顔部が少し露出オーバーになり易い。これは、通常のフラッシュ発光による撮影時には撮影直前に弱い発光であるプレ発光を行い、その反射光で必要な発光量を算出し、算出した露光量に応じたフラッシュ発光を行って撮影を行う。この際、背景が遠景のときは人物からの反射光によって発光量算出を行うが、相対的に面積が広い人物の胴体部の服や髪の毛の反射率が発光量の算出に影響を与え、人物の顔部よりも反射率の低い服を着ていた場合、顔部が少し露出オーバーになってしまうことが多い。このような場合は顔部が白飛びとなってしまう。   Specifically, for example, when the shooting scene determination unit 43 and the face detection unit 42 determine that the scene is a person shooting scene with flash emission against a night scene as described above, the person's face is slightly overexposed due to flash emission. It is easy to become. In normal flash emission, during pre-emission, pre-emission, which is weak emission, is performed, and a necessary emission amount is calculated from the reflected light, and flash emission is performed according to the calculated exposure amount. At this time, when the background is a distant view, the amount of light emission is calculated based on the reflected light from the person, but the reflectance of the torso clothes and hair of a person with a relatively large area affects the calculation of the amount of light emission. When wearing clothes with a lower reflectance than the face part, the face part is often overexposed. In such a case, the face portion is overexposed.

そこで、補正係数設定部63は、撮影シーン判定部43及び顔検出部42から入力される情報(前記した夜景を背景としたフラッシュ発光による人物撮影シーン)に基づいて、ダイナミックレンジの拡大幅が最大(本実施形態では、通常時の約2倍)となるような補正係数(この場合の補正係数は、1.0)を設定して、この補正係数を飽和画素補正処理部61に出力する。飽和画素補正処理部61は、この補正係数に基づいて飽和レベル以上に達しているGフィルタの画素出力を補正する。この場合は、ダイナミックレンジの拡大幅が最大となるような補正処理である。   Therefore, the correction coefficient setting unit 63 has the largest dynamic range expansion width based on the information input from the shooting scene determination unit 43 and the face detection unit 42 (the person shooting scene by flash emission with the night scene as a background). A correction coefficient (in this case, the correction coefficient in this case is 1.0) is set so as to be (in this embodiment, approximately twice that of normal time), and this correction coefficient is output to the saturated pixel correction processing unit 61. The saturated pixel correction processing unit 61 corrects the pixel output of the G filter that has reached the saturation level or higher based on this correction coefficient. In this case, the correction process is such that the expansion range of the dynamic range is maximized.

また、撮影シーン判定部43及び顔検出部42により、例えば、前記のように人物がいない夜景シーンと判定した場合、夜景シーンにおいては、画面内の高輝度部は電灯等の光源である可能性が高い。よって、夜景シーンの場合には、この光源(高輝度部)が白くキラキラと光っている画像の方が好まれるため、この光源(高輝度部)が飽和レベルを超えたままの方が好まれる画像となる。   In addition, when the shooting scene determination unit 43 and the face detection unit 42 determine, for example, a night scene without a person as described above, in the night scene, the high luminance part in the screen may be a light source such as an electric lamp. Is expensive. Therefore, in the case of a night scene, an image in which this light source (high luminance part) is white and shining is preferred, so that this light source (high luminance part) is preferred to remain above the saturation level. It becomes an image.

そこで、補正係数設定部63は、撮影シーン判定部43及び顔検出部42から入力される情報(前記した夜景シーン)に基づいて、ダイナミックレンジの拡大幅を最大(本実施形態では、通常時の約2倍)よりも制限するような補正係数(この場合の補正係数は、例えば、0.7)を設定して、この補正係数を飽和画素補正処理部61に出力する。飽和画素補正処理部61は、この補正係数に基づいて飽和レベル以上に達しているGフィルタの画素出力を補正する。この場合は、ダイナミックレンジの拡大幅が補正係数(この場合の補正係数は、例えば0.7)に応じて低減されるような補正処理である。   Therefore, the correction coefficient setting unit 63 maximizes the expansion range of the dynamic range based on information (the above-described night view scene) input from the shooting scene determination unit 43 and the face detection unit 42 (in this embodiment, the normal time). A correction coefficient that is more limited than about twice (a correction coefficient in this case is 0.7, for example) is set, and this correction coefficient is output to the saturated pixel correction processing unit 61. The saturated pixel correction processing unit 61 corrects the pixel output of the G filter that has reached the saturation level or higher based on this correction coefficient. In this case, the correction processing is such that the expansion range of the dynamic range is reduced according to a correction coefficient (in this case, the correction coefficient is, for example, 0.7).

このように、補正係数設定部63は、予め撮影シーン判定部43及び顔検出部42からそれぞれ入力される情報に対応した複数の補正係数が格納されており、撮影シーン判定部43及び顔検出部42からそれぞれ入力される情報に基づいて適切な補正係数を飽和画素補正処理部61に出力する。   As described above, the correction coefficient setting unit 63 stores a plurality of correction coefficients corresponding to information respectively input from the shooting scene determination unit 43 and the face detection unit 42 in advance, and the shooting scene determination unit 43 and the face detection unit. An appropriate correction coefficient is output to the saturated pixel correction processing unit 61 on the basis of information input from each of 42.

ところで、輝度レベル判定部60でGフィルタの画素出力が飽和レベル以上に達しているか否かを判定処理する前に、欠陥画素の補正が完了している必要がある。即ち、Gフィルタを設けた画素に欠陥画素があり、常に飽和する値を出力する画素があった場合、同じ処理単位内にあるGフィルタを設けた画素を大きな値に置き換えてしまうため、新たな欠陥画素を生成してしまうことになる。   By the way, before the luminance level determination unit 60 determines whether or not the pixel output of the G filter has reached the saturation level or higher, the correction of the defective pixel needs to be completed. That is, if there is a defective pixel in the pixel provided with the G filter and there is a pixel that always outputs a saturated value, the pixel provided with the G filter in the same processing unit is replaced with a large value. A defective pixel will be generated.

また、R、Bフィルタが配置された画素に欠陥画素がある場合、前記式(1)によるGフィルタを設けた画素の換算が正しくない値になってしまう。このため、本実施形態では、CCDI/F34に欠陥画素を取り除く欠陥画素除去処理部(不図示)を備えている。   Further, when a pixel in which the R and B filters are arranged has a defective pixel, the conversion of the pixel provided with the G filter according to the equation (1) becomes an incorrect value. Therefore, in the present embodiment, the CCD I / F 34 includes a defective pixel removal processing unit (not shown) that removes defective pixels.

ところで、前記したように補正係数設定部63から入力される補正係数に基づいて、飽和画素補正処理部61で飽和レベル以上に達しているGフィルタの画素出力の補正を行うと、その周囲の飽和していないR、Bフィルタの画素出力とのバランスがくずれて、色相(色合い)がずれてしまう場合がある。そこで、非飽和画素補正処理部62は、飽和画素補正処理部61で補正されたGフィルタの画素出力に応じて、以下のようにR、Bフィルタの画素出力を補正するようにした。   By the way, when the pixel output of the G filter that has reached the saturation level or higher is corrected by the saturated pixel correction processing unit 61 based on the correction coefficient input from the correction coefficient setting unit 63 as described above, the surrounding saturation is obtained. There is a case where the balance with the pixel output of the R and B filters that are not performed is lost and the hue (hue) is shifted. Therefore, the non-saturated pixel correction processing unit 62 corrects the R and B filter pixel outputs as follows according to the G filter pixel output corrected by the saturated pixel correction processing unit 61.

図9は、光源の色温度(2000K(ケルビン)以下〜9000K(ケルビン)以上)の違いに対するRGBフィルタの各画素出力の比率の一例を示した特性図である。図9から明らかなように、Gフィルタの画素出力は色温度が変化しても殆ど変化しないが、Rフィルタの画素出力は色温度が低い(赤っぽい光源)ほど大きくなり、Bフィルタの画素出力は色温度が高い(青っぽい光源)ほど大きくなる。   FIG. 9 is a characteristic diagram showing an example of a ratio of each pixel output of the RGB filter with respect to a difference in color temperature of the light source (2000K (Kelvin) or less to 9000K (Kelvin) or more). As is apparent from FIG. 9, the pixel output of the G filter hardly changes even when the color temperature changes, but the pixel output of the R filter increases as the color temperature decreases (reddish light source), and the pixel of the B filter The output increases as the color temperature increases (blue light source).

図9に示したような色温度とRGBフィルタの各画素出力値の比率関係は、RGBフィルタが配置されたCCDに依存している。そこで、デジタルカメラ1に前記RGBフィルタが配置されたCCD20を組み込む際に、このRGBフィルタが配置されたCCD20に応じた図9のような異なる色温度に対するRGBフィルタの各画素出力値の比率関係を示したテーブル(以下、「RGB出力比率テーブル」という)を、ROM24に保存しておく。   The ratio relationship between the color temperature and each pixel output value of the RGB filter as shown in FIG. 9 depends on the CCD in which the RGB filter is arranged. Therefore, when incorporating the CCD 20 with the RGB filter in the digital camera 1, the ratio relationship of the pixel output values of the RGB filter to different color temperatures as shown in FIG. 9 corresponding to the CCD 20 with the RGB filter is shown. The indicated table (hereinafter referred to as “RGB output ratio table”) is stored in the ROM 24.

そして、制御部28は、CCDI/F34から取得したAWB評価値であるRGBの分布から被写体の光源の色温度を決定した後、ROM24から前記RGB出力比率テーブルを読み出し、非飽和画素補正処理部62に出力する。非飽和画素補正処理部62は、撮影時における光源の色温度に対する、飽和画素補正処理部61で補正されたGフィルタの画素出力値と該Gフィルタの画素周囲のR、Bフィルタの画素出力値との比率が、前記RGB出力比率テーブルの画素出力比率と同じになるように、R、Bフィルタの画素出力値を補正する。補正されたR、Bフィルタの画素出力は14ビットに拡張されて、ビット圧縮変換部51に出力される。   Then, the control unit 28 determines the color temperature of the light source of the subject from the RGB distribution that is the AWB evaluation value acquired from the CCD I / F 34, and then reads the RGB output ratio table from the ROM 24, and the unsaturated pixel correction processing unit 62. Output to. The non-saturated pixel correction processing unit 62 corrects the pixel output value of the G filter corrected by the saturated pixel correction processing unit 61 and the pixel output values of the R and B filters around the pixel of the G filter with respect to the color temperature of the light source at the time of shooting. The pixel output values of the R and B filters are corrected so that the ratio is the same as the pixel output ratio in the RGB output ratio table. The corrected R and B filter pixel outputs are expanded to 14 bits and output to the bit compression conversion unit 51.

そして、ビット圧縮変換部51は、例えば、図10(a)に示すような変換特性(3箇所の節点を指定し、それらの間を直線で近似する4区間の折れ線近似特性)によって、14ビットに拡張されたR、G、Bフィルタの画素出力のうちのGフィルタの画素出力を12ビットに圧縮する。なお、図10(a)において、aは12ビットの範囲であり、bは最大値8190のデータを1ビットシフト(1/2倍)する単純な線形変換特性(一点鎖線部分)である。   Then, the bit compression conversion unit 51 uses, for example, 14 bits by conversion characteristics as shown in FIG. 10A (four-segment broken line approximation characteristics in which three nodes are designated and approximated by a straight line). The pixel output of the G filter among the pixel outputs of the R, G, and B filters expanded to 12 is compressed to 12 bits. In FIG. 10A, a is a 12-bit range, and b is a simple linear conversion characteristic (one-dot chain line portion) for shifting data of the maximum value 8190 by 1 bit (1/2 times).

図10(a)に示す変換特性では、Gフィルタの画素出力の最大値は8190なので、ダイナミックレンジを最大に拡大する場合には、8190が4095になるように圧縮する。そして、Gフィルタの画素出力の圧縮倍率に合わせて、R、Bフィルタの画素出力の値も圧縮する。   In the conversion characteristic shown in FIG. 10A, since the maximum value of the pixel output of the G filter is 8190, when the dynamic range is expanded to the maximum, compression is performed so that 8190 becomes 4095. Then, the pixel output values of the R and B filters are also compressed in accordance with the compression magnification of the pixel output of the G filter.

また、前記のようにダイナミックレンジを最大(本実施形態では、通常時の約2倍)に拡大するのではなく、ダイナミックレンジの拡大幅を最大よりも制限する場合には、図10(b)に示すように、8190よりも小さい値、例えば、5461が4095になるように圧縮する。なお、図10(b)のような設定とした場合には、ダイナミックレンジの拡大幅は通常時の約4/3倍になっている。   In addition, as described above, when the dynamic range is not expanded to the maximum (in the present embodiment, about twice as large as normal), but the expansion range of the dynamic range is limited more than the maximum, FIG. As shown in FIG. 5, the compression is performed so that a value smaller than 8190, for example, 5461 becomes 4095. In the case of setting as shown in FIG. 10B, the expansion range of the dynamic range is about 4/3 times that in the normal state.

図10(b)のように、ダイナミックレンジの拡大幅を最大よりも制限する場合としては、例えば、前記した人物がいない夜景シーンがある。この場合には、前記したようにダイナミックレンジの拡大幅を最大よりも制限するような補正係数を設定することにより、前記補正(予測補間処理)されたGフィルタの画素出力値を低減させて、ビット圧縮変換部51に出力される。これにより、例えば、図10(b)に示すように、8190よりも小さい値、例えば、5461が4095になるように圧縮される。   As shown in FIG. 10B, as a case where the expansion range of the dynamic range is limited more than the maximum, for example, there is a night scene without the above-described person. In this case, as described above, by setting a correction coefficient that limits the expansion range of the dynamic range from the maximum, the pixel output value of the G filter that has been corrected (predictive interpolation processing) is reduced, The data is output to the bit compression converter 51. Thus, for example, as shown in FIG. 10B, the compression is performed so that a value smaller than 8190, for example, 5461 becomes 4095.

前記したように本実施形態では、最大値が8190に拡張されたGフィルタの画素出力を最大値が4095に圧縮する場合の一例として、図10(a)の実線で示したような3つの節点を有する変換特性を用いた。本実施形態では、単純な節点のない線形変換特性(図10(a)のb)では得られない以下のような2つの効果が得られる。   As described above, in this embodiment, as an example of the case where the pixel output of the G filter whose maximum value is expanded to 8190 is compressed to 4095, three nodes as shown by the solid line in FIG. A conversion characteristic with In the present embodiment, the following two effects that cannot be obtained with a linear conversion characteristic without a simple node (b in FIG. 10A) are obtained.

第1の効果としては、データの信頼性が高いデータにより多くのビット数を割り当てることができる。即ち、飽和レベル以上に達しているGフィルタの画素出力に対して予測補間処理する場合、前記したようにGフィルタの画素出力の飽和レベル付近の規定値以上の値になった範囲について予測補間を行い、この規定値以下の範囲では予測補間は行われない。よって、予測補間を行う範囲と行わない範囲とでは、データの精度が異なっている。   As a first effect, a larger number of bits can be assigned to data with high data reliability. That is, when predictive interpolation processing is performed on the pixel output of the G filter that has reached the saturation level or higher, the prediction interpolation is performed for the range that is equal to or greater than the specified value near the saturation level of the pixel output of the G filter. The prediction interpolation is not performed in the range below the specified value. Therefore, the accuracy of the data is different between the range where the predictive interpolation is performed and the range where the predictive interpolation is not performed.

即ち、例えば、前記式(1)によって飽和しているGフィルタの画素出力値を予測補間(補正)する場合、主被写体の色によっては、予測補間を行う範囲においては被写体の輝度レベルが正確に再現できていない場合がある。これに対して予測補間を行っていない範囲は、RGBフィルタが配置されたCCD20から出力される実際のデータ(アナログRGB画像信号)をA/D変換したデータであるので、このデータの信頼性は高いものとなる。   That is, for example, when predictive interpolation (correction) is performed on the pixel output value of the G filter that is saturated according to the equation (1), the luminance level of the subject is accurate within the range in which predictive interpolation is performed depending on the color of the main subject. It may not be reproduced. On the other hand, the range in which the predictive interpolation is not performed is data obtained by A / D conversion of actual data (analog RGB image signal) output from the CCD 20 in which the RGB filter is arranged. It will be expensive.

即ち、図10(a)に示した本実施形態における変換特性(実線で示した部分)では、例えば、入力14ビットデータが1024ときに出力12ビットデータは1024になっており、元のデータがそのまま使われている。これに対し、例えば、入力14ビットデータが3072ときに出力12ビットデータは2560になっており、この範囲では予測補間前のビット割付よりも少ない割付となることによって、多少のビット誤差が発生する。   That is, in the conversion characteristic (part indicated by the solid line) in this embodiment shown in FIG. 10A, for example, when the input 14-bit data is 1024, the output 12-bit data is 1024, and the original data is It is used as it is. On the other hand, for example, when the input 14-bit data is 3072, the output 12-bit data is 2560. In this range, the bit allocation is smaller than the bit allocation before the prediction interpolation, so that a bit error occurs. .

このように、単純な節点のない線形変換を行う特性(一点鎖線で示した部分)ではなく、本実施形態のように3つの節点を有する変換特性(実線で示した部分)を採用することにより、ビット割付をだんだんと少なくしていくことができるので、データの信頼性が高いデータにより多くのビット数を割り当てることができる。   In this way, by adopting a conversion characteristic (part indicated by a solid line) having three nodes as in this embodiment, instead of a characteristic for performing linear conversion without a simple node (part indicated by a one-dot chain line). Since the bit allocation can be gradually reduced, a larger number of bits can be allocated to data with high data reliability.

そして、第2の効果としては、低・中輝度における階調を正確に保存することができる。即ち、単純な線形変換特性(図10(a)のb)でビット圧縮を行った場合、低輝度側の予測補間が行われていない範囲では、ビット割付が1/4になってしまう。このため、階調感のない画像になってしまう。これに対し、図10(a)に示したような本実施形態における変換特性(実線部分)でビット圧縮を行った場合には、飽和レベル以下で低輝度レベルにおける画素出力に対応したデータに対しては、ビット圧縮変換部51でビット圧縮する前とビット圧縮した後で略同じ値となるような圧縮率を用いることにより、低・中輝度レベルにおける階調性を良好に保持することができる。   As a second effect, gradations at low and medium luminance can be accurately stored. That is, when bit compression is performed with a simple linear conversion characteristic (b in FIG. 10A), the bit allocation becomes ¼ in a range where predictive interpolation on the low luminance side is not performed. For this reason, the image has no tone. On the other hand, when bit compression is performed with the conversion characteristics (solid line portion) in the present embodiment as shown in FIG. 10A, the data corresponding to the pixel output at the low luminance level below the saturation level is applied. Therefore, by using a compression rate that is substantially the same value before and after bit compression by the bit compression conversion unit 51, it is possible to satisfactorily maintain gradation at low and medium luminance levels. .

なお、本実施形態では、拡張したGフィルタの画素出力の14ビットデータを12ビットに縮小するときに、図10(a)のように3つの節点を指定し、それらの間を直線で近似する4区間の折れ線近似特性(変換特性)でビット圧縮を行う構成であったが、この区間数は特に限定されるものではない。例えば、1つの節点を指定する2区間の折れ線近似特性としてもよいが、節点付近でビット割付が大きく変わることにより、前記した2つの効果が小さくなる。よって、3区間以上の区間数を有する折れ線近似特性(変換特性)が好ましい。   In this embodiment, when the 14-bit data of the pixel output of the expanded G filter is reduced to 12 bits, three nodes are designated as shown in FIG. 10A and approximated by a straight line between them. Although the bit compression is performed with the broken line approximation characteristic (conversion characteristic) of four sections, the number of sections is not particularly limited. For example, it may be a polygonal line approximate characteristic of two sections designating one node, but the above-mentioned two effects are reduced by changing the bit allocation in the vicinity of the node. Therefore, a broken line approximation characteristic (conversion characteristic) having three or more sections is preferable.

また、拡張したGフィルタの画素出力の14ビットデータを12ビットに縮小する変換特性を、複数の節点を有していない曲線による変換特性としてもよい。即ち、区間数を8192にすれば、入力14ビットのデータにおいては分解能が8192なので、滑らかな曲線による変換と同等に考えることができる。よって、ビット圧縮変換部51で、入力8192のルックアップテーブルを持つことができれば、曲線による変換も可能になり、節点付近でビット割付量が変わってしまうという不具合を防止することができる。   Further, the conversion characteristic for reducing the 14-bit data of the pixel output of the expanded G filter to 12 bits may be a conversion characteristic by a curve not having a plurality of nodes. In other words, if the number of sections is 8192, the resolution of the input 14-bit data is 8192, so that it can be considered equivalent to conversion by a smooth curve. Therefore, if the bit compression conversion unit 51 can have the lookup table of the input 8192, it is possible to perform conversion using a curve, and it is possible to prevent the problem that the bit allocation amount changes near the node.

そして、ビット圧縮変換部51で14ビットから12ビットに圧縮変換されたR、G、Bフィルタの画素出力データは、ホワイトバランス制御部52に入力される。   The pixel output data of the R, G, and B filters that have been compression-converted from 14 bits to 12 bits by the bit compression conversion unit 51 are input to the white balance control unit 52.

ホワイトバランス制御部52は、入力されるR、G、Bフィルタの画素出力値データに対してホワイトバランスを合わせるための補正係数を乗算する。この補正係数は、CCDI/F34で生成された前記AWB評価値に基づいて制御部28で算出される。なお、この補正係数は、光源色を白くするような係数である。   The white balance control unit 52 multiplies the input pixel output value data of the R, G, and B filters by a correction coefficient for adjusting white balance. This correction coefficient is calculated by the control unit 28 based on the AWB evaluation value generated by the CCD I / F 34. The correction coefficient is a coefficient that makes the light source color white.

具体的には、図9に示したような異なる色温度に対するRGBフィルタの画素出力値の比率に基づいて、Rフィルタの画素出力値には、補正係数としてのG/R(Gフィルタの画素出力値/Rフィルタの画素出力値)を乗算し、Bフィルタの画素出力値には、補正係数としてのG/B(Gフィルタの画素出力値/Bフィルタの画素出力値)を乗算することによって、R、G、Bフィルタの画素出力値のレベルを合わせる。   Specifically, based on the ratio of the RGB filter pixel output values to different color temperatures as shown in FIG. 9, the R filter pixel output values include G / R (G filter pixel output as a correction coefficient). Value / R filter pixel output value), and the B filter pixel output value is multiplied by G / B (G filter pixel output value / B filter pixel output value) as a correction coefficient. The levels of the pixel output values of the R, G, and B filters are matched.

ところで、前記したDレンジ拡大予測補間部50の飽和画素補正処理部61、非飽和画素補正処理部62での補正処理により、R、G、Bフィルタの画素出力値の比率は、光源色より決定したR、G、Bフィルタの画素出力値の比率になっている。   By the way, the ratio of the pixel output values of the R, G, and B filters is determined from the light source color by the correction processing in the saturated pixel correction processing unit 61 and the unsaturated pixel correction processing unit 62 of the D range expansion prediction interpolation unit 50 described above. This is the ratio of the pixel output values of the R, G, and B filters.

よって、Dレンジ拡大予測補間部50からの出力にホワイトバランス制御部52で前記補正係数が乗算された出力は、R、G、Bフィルタのレベルが略同じになり、無彩色に近い値となる。なお、R、G、Bフィルタのすべての画素出力値が飽和している画像領域は白とびが生じ、白く飛んでしまう。また、感度の高いGフィルタの画素出力値のみが飽和している画像領域も、輝度が高く入射している光量が大きい可能性が高いため、画素出力の補正対象となる画像領域が無彩色でも違和感は少なくなる。   Therefore, the output obtained by multiplying the output from the D range expansion prediction interpolation unit 50 by the correction coefficient in the white balance control unit 52 has substantially the same R, G, and B filter levels, and has a value close to an achromatic color. . Note that an image region in which all the pixel output values of the R, G, and B filters are saturated is overexposed and whitened. In addition, an image region where only the pixel output value of the high-sensitivity G filter is saturated is also likely to have a high luminance and a large amount of incident light, so even if the image region to be corrected for pixel output is an achromatic color There is less discomfort.

そして、ホワイトバランス制御部52からホワイトバランスが合わされたR、G、Bフィルタの画素出力値データ(12ビット)は、同時化部53に入力される。同時化部53は、ベイヤ配列の1画素に1色のデータしか持っていないRAWデータに対して補間演算処理を行い、1画素に対してRGBの全てのデータを生成する。   Then, the pixel output value data (12 bits) of the R, G, and B filters with the white balance adjusted from the white balance control unit 52 is input to the synchronization unit 53. The synchronization unit 53 performs an interpolation calculation process on the RAW data having only one color data in one pixel of the Bayer array, and generates all RGB data for one pixel.

そして、同時化部53で生成されたRGBの全てのデータ(12ビット)は、トーンカーブ変換部54に入力される。トーンカーブ変換部54は、例えば、図11に示すような変換テーブルによって12ビットのRGBのデータを8ビットのRGBのデータに変換するγ変換を行って、8ビットのRGB値を生成し、RGB−YUV変換部55に出力する。RGB−YUV変換部55は、入力されるRGBデータ(8ビット)をマトリックス演算によりYUVデータに変換し、画像サイズコンバータ部56に出力する。画像サイズコンバータ部56は、入力されるYUVデータ(8ビット)に対して所望の画像サイズに縮小または拡大を行い、輝度ヒストグラム生成部57およびエッジエンハンス部58に出力する。   All the RGB data (12 bits) generated by the synchronization unit 53 is input to the tone curve conversion unit 54. For example, the tone curve conversion unit 54 performs γ conversion that converts 12-bit RGB data into 8-bit RGB data using a conversion table as shown in FIG. -Output to the YUV converter 55. The RGB-YUV conversion unit 55 converts input RGB data (8 bits) into YUV data by matrix calculation and outputs the YUV data to the image size converter unit 56. The image size converter unit 56 reduces or enlarges the input YUV data (8 bits) to a desired image size, and outputs it to the luminance histogram generation unit 57 and the edge enhancement unit 58.

輝度ヒストグラム生成部57は、入力されるYUVデータにより輝度ヒストグラムを生成する。エッジエンハンス部58は、入力されるYUVデータに対して画像に合わせたエッジ強調等の処理を行い、メモリコントローラ35を介してSDRAM23に保存する。   The luminance histogram generation unit 57 generates a luminance histogram based on the input YUV data. The edge enhancement unit 58 performs processing such as edge enhancement according to the image on the input YUV data, and stores the processed data in the SDRAM 23 via the memory controller 35.

このように、本実施形態では、処理単位内の感度の高いGフィルタの画素出力が飽和レベルを超えているような場合においても、その周囲の飽和レベルに達していないR、Bフィルタの画素出力に基づいて、飽和しているGフィルタの画素出力を補正(予測補間処理)することにより、図5に示したように、Gフィルタ(図5のd、e)の画素出力の予測補間した拡張領域(図5のd、eのGフィルタの画素出力の一点鎖線部分)に基づいて、1回の撮影でダイナミックレンジを2倍に拡大することが可能となる。   As described above, in the present embodiment, even when the pixel output of the G filter with high sensitivity in the processing unit exceeds the saturation level, the pixel output of the R and B filters that have not reached the surrounding saturation level. As shown in FIG. 5, the pixel output of the G filter (d and e in FIG. 5) is subjected to prediction interpolation expansion by correcting the pixel output of the saturated G filter based on Based on the region (the dot-and-dash line portion of the pixel output of the G filter of d and e in FIG. 5), the dynamic range can be doubled by one shooting.

よって、撮影画像内の背景等に高輝度部分がある場合でも、白とびの発生を防止して良好な階調性を得ることが可能となる。   Therefore, even when there is a high-luminance portion in the background or the like in the captured image, it is possible to prevent the occurrence of overexposure and obtain good gradation.

更に、本実施形態では、前記したように補正係数設定部63は、撮影シーン判定部43により判定した撮影シーン情報及び顔検出部42による顔部検出情報を入力し、入力したこれらの情報に基づいて、飽和画素補正処理部61によってGフィルタの画素出力の補正を行う際の補正係数を設定し、飽和画素補正処理部61は、補正係数設定部63で設定された補正係数に基づいて、飽和レベル以上に達しているGフィルタの画素出力の補正を行う。これにより、撮影シーンの状況や、撮影シーン内に人物の顔の有無に応じて、適切な拡大幅のダイナミックレンジを設定することができる。   Further, in the present embodiment, as described above, the correction coefficient setting unit 63 inputs the shooting scene information determined by the shooting scene determination unit 43 and the face detection information by the face detection unit 42, and based on these input information. Then, a correction coefficient for correcting the pixel output of the G filter by the saturated pixel correction processing unit 61 is set, and the saturated pixel correction processing unit 61 performs saturation based on the correction coefficient set by the correction coefficient setting unit 63. The pixel output of the G filter that has reached the level is corrected. Accordingly, it is possible to set a dynamic range with an appropriate expansion width according to the situation of the shooting scene and the presence or absence of a human face in the shooting scene.

図12(a)は、Gフィルタの画素出力が飽和レベルを超えたときに、前記した本実施形態におけるダイナミックレンジを最大に拡大処理した場合の、輝度ヒストグラム生成部57で生成されたヒストグラムの一例である。このヒストグラムは、前記した夜景を背景としたフラッシュ発光による人物撮影シーンの例であり、人物の顔部(図12(a)の領域a)付近での白飛びがほとんど発生していなく、良好な階調で再現されている。   FIG. 12A shows an example of a histogram generated by the luminance histogram generation unit 57 when the dynamic range in the present embodiment is expanded to the maximum when the pixel output of the G filter exceeds the saturation level. It is. This histogram is an example of a person-photographed scene by flash emission against the background of the night view described above, and is almost free from whiteout in the vicinity of the person's face (area a in FIG. 12A). Reproduced with gradation.

これに対し、図12(b)は、同様の撮影シーンで前記した本実施形態におけるダイナミックレンジの拡大処理を行わなかった場合の、輝度ヒストグラム生成部57で生成されたヒストグラムの一例である。このヒストグラムから明らかなように、ダイナミックレンジの拡大処理を行わなかったことにより、人物の顔部(図12(b)の領域a)付近が白飛びに近い状態となっている。   On the other hand, FIG. 12B is an example of a histogram generated by the luminance histogram generation unit 57 when the dynamic range expansion process in the present embodiment is not performed in the same shooting scene. As is apparent from this histogram, since the dynamic range expansion process has not been performed, the vicinity of the human face (region a in FIG. 12 (b)) is nearly white.

〈実施形態2〉
前記実施形態1では、被写体の光源の色温度に合わせて、補正されたGフィルタの画素出力値と該Gフィルタの画素周囲のR、Bフィルタの画素出力値との比率が、前記RGB出力比率テーブルの画素出力比率と同じになるように、R、Bフィルタの画素出力値を補正するようにしたが、簡易的な構成として、特定の光源下におけるR、G、Bフィルタの画素出力の感度差に応じた比率を予め測定してROM24(図2参照)に記憶しておき、この予め測定されている比率と同じになるようにR、Bフィルタの画素出力値を補正するようにしてもよい。他の構成は、前記した実施形態1のデジタルカメラと同様である。
<Embodiment 2>
In the first embodiment, the ratio between the pixel output value of the corrected G filter and the pixel output values of the R and B filters around the pixel of the G filter according to the color temperature of the light source of the subject is the RGB output ratio. The pixel output values of the R and B filters are corrected so as to be the same as the pixel output ratio of the table. However, as a simple configuration, the sensitivity of the pixel outputs of the R, G, and B filters under a specific light source A ratio corresponding to the difference is measured in advance and stored in the ROM 24 (see FIG. 2), and the pixel output values of the R and B filters are corrected to be the same as the ratio measured in advance. Good. Other configurations are the same as those of the digital camera of the first embodiment.

例えば、図13(a),(b)は、特定の光源下においてそれぞれ感度特性が異なる2つのR、G、Bフィルタの画素出力の一例を示したものである。   For example, FIGS. 13A and 13B show examples of pixel outputs of two R, G, and B filters having different sensitivity characteristics under a specific light source.

図13(a)のR、G、Bフィルタの画素出力特性を有するデジタルカメラ(撮像装置)では、このR、G、Bフィルタの画素出力の比率が予め記憶されることになる。また、図13(b)のR、G、Bフィルタの画素出力特性を有するデジタルカメラ(撮像装置)では、このR、G、Bフィルタの画素出力の比率が予め記憶されることになる。   In the digital camera (imaging device) having the pixel output characteristics of the R, G, and B filters in FIG. 13A, the ratio of the pixel outputs of the R, G, and B filters is stored in advance. In the digital camera (imaging device) having the pixel output characteristics of the R, G, and B filters shown in FIG. 13B, the ratio of the pixel outputs of the R, G, and B filters is stored in advance.

そして、例えば、図13(a)に示したようなR、G、Bフィルタの画素出力の比率が予め記憶されているデジタルカメラ(撮像装置)では、この予め測定されている比率と同じになるようにR、Bフィルタの画素出力値を補正する。   For example, in a digital camera (imaging device) in which the pixel output ratios of the R, G, and B filters as shown in FIG. 13A are stored in advance, the ratio is the same as the ratio measured in advance. As described above, the pixel output values of the R and B filters are corrected.

なお、本実施形態では、通常のホワイトバランスの制御範囲が2000〜8000K(ケルビン)程度なので、その中心付近の4000〜5000K(ケルビン)程度の色温度を有する光源下で測定したR、G、Bフィルタの画素出力の比率を予め記憶しておくことが望ましい。   In this embodiment, since the normal white balance control range is about 2000 to 8000 K (Kelvin), R, G, and B measured under a light source having a color temperature of about 4000 to 5000 K (Kelvin) near the center. It is desirable to store in advance the pixel output ratio of the filter.

このように、本実施形態では、特定の光源下におけるR、G、Bフィルタの画素出力の感度差に応じた比率を予め測定して記憶しておき、この予め測定されている比率と同じになるようにR、Bフィルタの画素出力値を補正する構成なので、実施形態1の場合よりも簡易な構成とすることができる。   Thus, in this embodiment, the ratio according to the sensitivity difference of the pixel output of the R, G, and B filters under a specific light source is measured and stored in advance, and is the same as the ratio measured in advance. Since the configuration is such that the pixel output values of the R and B filters are corrected, the configuration can be made simpler than in the first embodiment.

〈実施形態3〉
前記実施形態1では、補正係数設定部63は、撮影シーン判定部43により判定した撮影シーン情報及び顔検出部42による顔部検出情報を入力し、入力したこれらの情報に基づいて、飽和画素補正処理部61によってGフィルタの画素出力の補正を行う際の補正係数を設定する構成であったが、撮影シーン判定部43により判定した撮影シーン情報、もしくは顔検出部42による顔部検出情報のいずれか一方の情報に基づいて、飽和画素補正処理部61によってGフィルタの画素出力の補正を行う際の補正係数を設定する構成でもよい。
<Embodiment 3>
In the first embodiment, the correction coefficient setting unit 63 inputs the shooting scene information determined by the shooting scene determination unit 43 and the face detection information by the face detection unit 42, and based on the input information, the saturated pixel correction is performed. The correction coefficient when correcting the pixel output of the G filter by the processing unit 61 is set. However, either the shooting scene information determined by the shooting scene determination unit 43 or the face detection information by the face detection unit 42 is used. A configuration may be used in which a correction coefficient for correcting the pixel output of the G filter by the saturated pixel correction processing unit 61 is set based on the information on either side.

〈実施形態4〉
前記実施形態1、2では、一番感度の高いGフィルタの画素出力が飽和レベル以上に達したか否かを判定する構成であったが、Rフィルタの画素出力又はBフィルタの画素出力によって飽和レベル以上に達したか否かを判定することも可能である。
<Embodiment 4>
In the first and second embodiments, it is configured to determine whether or not the pixel output of the G filter having the highest sensitivity has reached a saturation level or higher. However, the pixel output of the R filter or the pixel output of the B filter is saturated. It is also possible to determine whether or not the level has been reached.

Rフィルタの画素及びBフィルタの画素が、図9のような特性を持っている場合には、Rフィルタの画素又はBフィルタの画素のいずれか一方が、例えば、飽和レベルの70%以上になったらGフィルタの画素は飽和していると判断することができる。つまり、規定値を飽和レベルの70%として、Rフィルタの画素又はBフィルタの画素出力を検出対象とすることが可能である。   When the R filter pixel and the B filter pixel have the characteristics shown in FIG. 9, either the R filter pixel or the B filter pixel is, for example, 70% or more of the saturation level. Then, it can be determined that the pixel of the G filter is saturated. That is, the specified value is set to 70% of the saturation level, and the pixel output of the R filter or the pixel output of the B filter can be the detection target.

ここでRフィルタの画素出力とBフィルタの画素出力のいずれかが規定以上と判断された場合には、Rフィルタの画素出力とBフィルタの画素出力の比率より光源の色温度を判定し、図9のRGB出力比率テーブルの選択を行い、選択された出力比率とRフィルタの画素出力または又はBフィルタの画素出力に基づいて、RGBフィルタの各画素出力値が決定される。   Here, when it is determined that either the pixel output of the R filter or the pixel output of the B filter is greater than the specified value, the color temperature of the light source is determined from the ratio of the pixel output of the R filter and the pixel output of the B filter. 9 RGB output ratio tables are selected, and each pixel output value of the RGB filter is determined based on the selected output ratio and the pixel output of the R filter or the pixel output of the B filter.

更には、Rフィルタの画素出力とBフィルタの画素出力の平均値による高輝度検出としてもよい。Rフィルタの画素出力とBフィルタの画素出力が図9のような関係があるので、例えば、規定値を飽和レベルの70%として、平均値に対して高輝度判定を行う。補正に関しては、前記同様にRフィルタの画素出力とBフィルタの画素出力の出力比率から図9の光源色温度を判定し、Rフィルタの画素出力または又はBフィルタの画素出力の少なくとも一方の出力レベルより全体の出力レベルを決定し、RGBフィルタの各画素出力を決定する。   Furthermore, high luminance detection may be performed based on the average value of the pixel output of the R filter and the pixel output of the B filter. Since the pixel output of the R filter and the pixel output of the B filter have a relationship as shown in FIG. As for the correction, the light source color temperature in FIG. 9 is determined from the output ratio of the pixel output of the R filter and the pixel output of the B filter as described above, and the output level of at least one of the pixel output of the R filter or the pixel output of the B filter is determined. The overall output level is determined, and each pixel output of the RGB filter is determined.

なお、前記実施形態1では、CCD20の全画素の受光面に対応した画面を1024エリアに等分割(水平32分割、垂直32分割)し、飽和レベル以上に達しているGフィルタの画素が前記1024エリア(水平32分割、垂直32分割)のどのエリアに含まれるかを判定するようにしたが、CCD20の全画素の受光面に対応した画面を、例えば1画素単位等のようにさらに細かいエリアに分割しない方がよい。   In the first embodiment, the screen corresponding to the light receiving surface of all the pixels of the CCD 20 is equally divided into 1024 areas (horizontal 32 divisions and vertical 32 divisions), and the pixels of the G filter that have reached the saturation level or more are 1024. Although it is determined which area of the area (horizontal 32 divisions and vertical 32 divisions) is included, the screen corresponding to the light receiving surface of all the pixels of the CCD 20 is made into a finer area such as one pixel unit, for example. It is better not to divide.

これは、R、G、Bフィルタの画素出力は、画素ごとに多少の感度差があり、また欠陥画素のように、入射光によらずに特定の出力を出してしまうものがあるためである。このため、例えば、AWB評価値の生成時の積分対象が10画素以上あれば、平均化により画素ごとの特性ばらつきを吸収できるようなばらつきを有しているRGBフィルタが設置されたCCDを用いるようにすることが望ましい。   This is because the pixel output of the R, G, and B filters has a slight sensitivity difference for each pixel, and there are some pixels that output a specific output regardless of incident light, such as defective pixels. . For this reason, for example, if the integration target at the time of generating the AWB evaluation value is 10 pixels or more, a CCD provided with an RGB filter having a variation that can absorb the variation in characteristics of each pixel by averaging is used. It is desirable to make it.

なお、前記した各実施形態では、色分解フィルタとしてRGBの3原色系フィルタを配置した構成であったが、色分解フィルタとして補色系フィルタを配置した構成においても、同様に本発明を適用することができる。   In each of the embodiments described above, the RGB three primary color filters are arranged as the color separation filters. However, the present invention is similarly applied to a configuration in which the complementary color filters are arranged as the color separation filters. Can do.

また、前記した各実施形態では、撮影レンズ系とCCD等の固体撮像素子を有するデジタルカメラなどの撮像装置についての説明であったが、画像処理装置においも同様に本発明を適用することが可能である。例えば、単板式カラー撮像素子からのアナログ出力をデジタル信号に変換して保存したRAWデータを入力して、RGBデータやYCbCrデータを出力するような画像処理装置においても、同様に本発明を適用することが可能である。   In each of the above-described embodiments, the description has been made on the imaging device such as a digital camera having a photographing lens system and a solid-state imaging device such as a CCD. However, the present invention can be similarly applied to an image processing device. It is. For example, the present invention is similarly applied to an image processing apparatus in which analog data from a single-plate color image sensor is converted into digital signals and stored, and RAW data is input to output RGB data or YCbCr data. It is possible.

(a)は、本発明の実施形態1に係る撮像装置の一例としてのデジタルカメラを示す正面図、(b)は、その上面図、(c)は、その背面図。(A) is a front view which shows the digital camera as an example of the imaging device which concerns on Embodiment 1 of this invention, (b) is the top view, (c) is the back view. 本発明の実施形態1に係る撮像装置の一例としてのデジタルカメラ内のシステム構成の概要を示すブロック図。1 is a block diagram showing an outline of a system configuration in a digital camera as an example of an imaging apparatus according to Embodiment 1 of the present invention. 本発明の実施形態1におけるRGBフィルタが配置されたCCDの画素配置位置と処理単位を示す図。FIG. 3 is a diagram illustrating a pixel arrangement position and a processing unit of a CCD in which an RGB filter according to Embodiment 1 of the present invention is arranged. 顔検出部と撮影シーン判定部を有する制御部を示す図。The figure which shows the control part which has a face detection part and an imaging | photography scene determination part. 本発明の実施形態1におけるダイナミックレンジ拡大の原理を説明するための図。The figure for demonstrating the principle of the dynamic range expansion in Embodiment 1 of this invention. 本発明の実施形態1におけるYUV変換部の構成を示すブロック図。The block diagram which shows the structure of the YUV conversion part in Embodiment 1 of this invention. 本発明の実施形態1におけるDレンジ拡大予測補間部の構成を示すブロック図。The block diagram which shows the structure of the D range expansion prediction interpolation part in Embodiment 1 of this invention. 液晶モニタに表示された撮影設定画面の一例を示す図。The figure which shows an example of the imaging | photography setting screen displayed on the liquid crystal monitor. 色温度とRGBフィルタの画素出力との関係を示す図。The figure which shows the relationship between color temperature and the pixel output of an RGB filter. (a)は、本発明の実施形態1における、拡張したGフィルタの画素出力の14ビットデータを12ビットに圧縮する変換特性を示す図、(b)は、ダイナミックレンジの拡大幅を制限した場合における、拡張したGフィルタの画素出力の14ビットデータを12ビットに圧縮する変換特性を示す図。(A) is a figure which shows the conversion characteristic which compresses the 14-bit data of the pixel output of the extended G filter in Embodiment 1 of this invention to 12 bits, (b) is the case where the expansion width of a dynamic range is restrict | limited The figure which shows the conversion characteristic which compresses 14-bit data of the pixel output of the extended G filter in 12 bits in 12 bits. 12ビットのRGBのデータを8ビットのRGBのデータに変換(γ変換)する変換テーブルを示す図。The figure which shows the conversion table which converts 12-bit RGB data into 8-bit RGB data (gamma conversion). (a)は、本発明の実施形態1におけるダイナミックレンジの拡大処理を行った場合のヒストグラムを示す図、(b)は、本実施形態におけるダイナミックレンジの拡大処理を行わなかった場合のヒストグラムを示す図。(A) is a figure which shows the histogram at the time of performing the expansion process of the dynamic range in Embodiment 1 of this invention, (b) shows the histogram at the time of not performing the expansion process of the dynamic range in this embodiment. Figure. (a),(b)は、本発明の実施形態2における特定の光源下においてそれぞれ感度特性が異なるR、G、Bフィルタの画素出力の一例を示す図。(A), (b) is a figure which shows an example of the pixel output of the R, G, B filter from which the sensitivity characteristic each differs under the specific light source in Embodiment 2 of this invention.

符号の説明Explanation of symbols

1 デジタルカメラ(撮像装置)
5 撮影レンズ系(光学系)
6 鏡胴ユニット
9 液晶モニタ
12 メニューボタン
20 CCD(撮像素子)
21 アナログフロントエンド部
22 信号処理部
23 SDRAM
28 制御部
34 CCDインターフェース
35 メモリコントローラ
36 YUV変換部
42 顔検出部(顔検出手段)
43 撮影シーン判定部(撮影シーン判定手段)
50 Dレンジ拡大予測補間部
51 ビット圧縮変換部
60 輝度レベル判定部(画素出力検出手段)
61 飽和画素補正処理部(画素出力補正処理手段)
62 非飽和画素補正処理部
63 補正係数設定部(補正係数設定手段)
64 ビット拡張処理部
1 Digital camera (imaging device)
5 Shooting lens system (optical system)
6 Lens unit 9 LCD monitor 12 Menu button 20 CCD (image sensor)
21 Analog Front End 22 Signal Processor 23 SDRAM
28 Control Unit 34 CCD Interface 35 Memory Controller 36 YUV Conversion Unit 42 Face Detection Unit (Face Detection Unit)
43. Shooting scene determination unit (shooting scene determination means)
50 D range expansion prediction interpolation unit 51 bit compression conversion unit 60 luminance level determination unit (pixel output detection means)
61 Saturated pixel correction processing unit (pixel output correction processing means)
62 Unsaturated pixel correction processing unit 63 Correction coefficient setting unit (correction coefficient setting means)
64-bit extension processing section

Claims (8)

光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置において、
前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出手段と、
前記画素出力検出手段により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正手段と、
前記画素出力補正手段によって前記補正を行う際の補正係数を設定する補正係数設定手段と、
被写体に対する撮影シーンを判定する撮影シーン判定手段と、
前記撮像素子から出力される電気信号から、人物の顔部を検出する顔検出手段と、
前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正手段から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換手段とを備え、
前記ビット圧縮変換手段は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、
前記補正係数設定手段は、前記撮影シーン判定手段により判定した撮影シーン情報及び前記顔検出手段による顔部検出情報を入力し、入力したこれらの情報に基づいて、前記画素出力補正手段によって前記補正を行う際の補正係数を設定する、
ことを特徴とする撮像装置。
A subject image incident through the optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a color separation filter of a three primary color filter or a complementary color filter is disposed on the front side of each pixel. In an imaging apparatus that includes an imaging device, and a specific color filter of the color separation filter has higher luminance sensitivity than other color filters for light having a wide wavelength band,
Based on the electrical signal output from the image sensor, the output from each pixel in which the color separation filter is arranged is detected, and the output from any one of the pixels is equal to or greater than a predetermined specified value. A pixel output detection means for determining whether or not it has reached,
Pixel output correction that corrects the output of the pixel above the predetermined specified value based on the output from the surrounding pixels when it is determined by the pixel output detection means that there is a pixel of the output above the predetermined specified value Means,
Correction coefficient setting means for setting a correction coefficient when performing the correction by the pixel output correction means;
Shooting scene determination means for determining a shooting scene for a subject;
Face detection means for detecting a human face from an electrical signal output from the image sensor;
When the output of the pixel in which the filter of the specific color is arranged reaches or exceeds the predetermined specified value, the second output from the first bit number below the predetermined specified value is output from the pixel output correcting means. Bit compression conversion means for compressing the pixel output data once expanded to the number of bits to the first number of bits again,
The bit compression conversion means compresses by compressing the data corresponding to the pixel output below the predetermined specified value to be smaller than the data corresponding to the pixel output in the area above the predetermined specified value,
The correction coefficient setting means inputs shooting scene information determined by the shooting scene determination means and face detection information by the face detection means, and based on the input information, the pixel output correction means performs the correction. Set the correction factor when performing,
An imaging apparatus characterized by that.
光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置において、
前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出手段と、
前記画素出力検出手段により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正手段と、
前記画素出力補正手段によって前記補正を行う際の補正係数を設定する補正係数設定手段と、
被写体に対する撮影シーンを判定する撮影シーン判定手段と、
前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正手段から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換手段とを備え、
前記ビット圧縮変換手段は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、
前記補正係数設定手段は、前記撮影シーン判定手段により判定した撮影シーン情報を入力し、入力した撮影シーン情報に基づいて、前記画素出力補正手段によって前記補正を行う際の補正係数を設定する、
ことを特徴とする撮像装置。
A subject image incident through the optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a color separation filter of a three primary color filter or a complementary color filter is disposed on the front side of each pixel. In an imaging apparatus that includes an imaging device, and a specific color filter of the color separation filter has higher luminance sensitivity than other color filters for light having a wide wavelength band,
Based on the electrical signal output from the image sensor, the output from each pixel in which the color separation filter is arranged is detected, and the output from any one of the pixels is equal to or greater than a predetermined specified value. A pixel output detection means for determining whether or not it has reached,
Pixel output correction that corrects the output of the pixel above the predetermined specified value based on the output from the surrounding pixels when it is determined by the pixel output detection means that there is a pixel of the output above the predetermined specified value Means,
Correction coefficient setting means for setting a correction coefficient when performing the correction by the pixel output correction means;
Shooting scene determination means for determining a shooting scene for a subject;
When the output of the pixel in which the filter of the specific color is arranged reaches or exceeds the predetermined specified value, the second output from the first bit number below the predetermined specified value is output from the pixel output correcting means. Bit compression conversion means for compressing the pixel output data once expanded to the number of bits to the first number of bits again,
The bit compression conversion means compresses by compressing the data corresponding to the pixel output below the predetermined specified value to be smaller than the data corresponding to the pixel output in the area above the predetermined specified value,
The correction coefficient setting means inputs the shooting scene information determined by the shooting scene determination means, and sets a correction coefficient for performing the correction by the pixel output correction means based on the input shooting scene information.
An imaging apparatus characterized by that.
光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置において、
前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出手段と、
前記画素出力検出手段により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正手段と、
前記画素出力補正手段によって前記補正を行う際の補正係数を設定する補正係数設定手段と、
前記撮像素子から出力される電気信号から、人物の顔部を検出する顔検出手段と、
前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正手段から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換手段とを備え、
前記ビット圧縮変換手段は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、
前記補正係数設定手段は、前記顔検出手段による顔部検出情報を入力し、入力した顔部検出情報に基づいて、前記画素出力補正手段によって前記補正を行う際の補正係数を設定する、
ことを特徴とする撮像装置。
A subject image incident through the optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a color separation filter of a three primary color filter or a complementary color filter is disposed on the front side of each pixel. In an imaging apparatus that includes an imaging device, and a specific color filter of the color separation filter has higher luminance sensitivity than other color filters for light having a wide wavelength band,
Based on the electrical signal output from the image sensor, the output from each pixel in which the color separation filter is arranged is detected, and the output from any one of the pixels is equal to or greater than a predetermined specified value. A pixel output detection means for determining whether or not it has reached,
Pixel output correction that corrects the output of the pixel above the predetermined specified value based on the output from the surrounding pixels when it is determined by the pixel output detection means that there is a pixel of the output above the predetermined specified value Means,
Correction coefficient setting means for setting a correction coefficient when performing the correction by the pixel output correction means;
Face detection means for detecting a human face from an electrical signal output from the image sensor;
When the output of the pixel in which the filter of the specific color is arranged reaches or exceeds the predetermined specified value, the second output from the first bit number below the predetermined specified value is output from the pixel output correcting means. Bit compression conversion means for compressing the pixel output data once expanded to the number of bits to the first number of bits again,
The bit compression conversion means compresses by compressing the data corresponding to the pixel output below the predetermined specified value to be smaller than the data corresponding to the pixel output in the area above the predetermined specified value,
The correction coefficient setting means inputs face detection information by the face detection means, and sets a correction coefficient for performing the correction by the pixel output correction means based on the input face detection information.
An imaging apparatus characterized by that.
前記撮像素子から出力される電気信号から被写体までの距離を検出する距離検出手段と、前記撮像素子から出力される電気信号から被写体の色分布を検出する色分布検出手段と、前記撮像素子から出力される電気信号から被写体の輝度の分布を検出する輝度分布検出手段を更に備え、
前記撮影シーン判定手段は、前記距離検出手段で検出される距離情報、前記色分布検出手段で検出される色分布情報、前記輝度分布検出手段で検出される輝度分布情報のうちのいずれか1つ以上の情報に基づいて、撮影シーンを判定する、
ことを特徴とする請求項1又は請求項2に記載の撮像装置。
Distance detection means for detecting the distance from the electrical signal output from the image sensor to the subject, color distribution detection means for detecting the color distribution of the subject from the electrical signal output from the image sensor, and output from the image sensor A luminance distribution detecting means for detecting the luminance distribution of the subject from the electrical signal to be
The photographing scene determination unit is any one of distance information detected by the distance detection unit, color distribution information detected by the color distribution detection unit, and luminance distribution information detected by the luminance distribution detection unit. Based on the above information, the shooting scene is determined.
The imaging apparatus according to claim 1 or 2, wherein
光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置の撮像方法において、
前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出工程と、
前記画素出力検出工程により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正工程と、
前記画素出力補正工程によって前記補正を行う際の補正係数を設定する補正係数設定工程と、
被写体に対する撮影シーンを判定する撮影シーン判定工程と、
前記撮像素子から出力される電気信号から、人物の顔部を検出する顔検出工程と、
前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正工程から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換工程と、を含み、
前記ビット圧縮変換工程は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、
前記補正係数設定工程は、前記撮影シーン判定工程により判定した撮影シーン情報及び前記顔検出工程による顔部検出情報を入力し、入力したこれらの情報に基づいて、前記画素出力補正工程によって前記補正を行う際の補正係数を設定する、
ことを特徴とする撮像方法。
A subject image incident through the optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a color separation filter of a three primary color filter or a complementary color filter is disposed on the front side of each pixel. In an imaging method of an imaging apparatus comprising an imaging device, a filter of a specific color among the color separation filters with respect to light having a wide wavelength band has higher luminance sensitivity than a filter of another color.
Based on the electrical signal output from the image sensor, the output from each pixel in which the color separation filter is arranged is detected, and the output from any one of the pixels is equal to or greater than a predetermined specified value. A pixel output detection step for determining whether or not the threshold has been reached;
Pixel output correction that corrects the output of the pixel above the predetermined specified value based on the output from the surrounding pixels when it is determined by the pixel output detection step that there is a pixel having an output of the predetermined specified value or higher. Process,
A correction coefficient setting step for setting a correction coefficient when performing the correction by the pixel output correction step;
A shooting scene determination process for determining a shooting scene for a subject;
A face detection step of detecting a human face from an electrical signal output from the image sensor;
When the output of the pixel in which the filter of the specific color is arranged reaches or exceeds the predetermined specified value, the second output from the first bit number below the predetermined specified value is output from the pixel output correction step. A bit compression conversion step of compressing the pixel output data once expanded to the first bit number to the first bit number,
In the bit compression conversion step, compression is performed by reducing the compression rate for data corresponding to the pixel output below the predetermined specified value, rather than the compression rate for data corresponding to the pixel output in the region above the predetermined specified value,
The correction coefficient setting step inputs the shooting scene information determined by the shooting scene determination step and the face detection information by the face detection step, and based on the input information, the correction is performed by the pixel output correction step. Set the correction factor when performing,
An imaging method characterized by the above.
光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置の撮像方法において、
前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出工程と、
前記画素出力検出工程により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正工程と、
前記画素出力補正工程によって前記補正を行う際の補正係数を設定する補正係数設定工程と、
被写体に対する撮影シーンを判定する撮影シーン判定工程と、
前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正工程から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換工程と、を含み、
前記ビット圧縮変換工程は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、
前記補正係数設定工程は、前記撮影シーン判定工程により判定した撮影シーン情報を入力し、入力した撮影シーン情報に基づいて、前記画素出力補正工程によって前記補正を行う際の補正係数を設定する、
ことを特徴とする撮像方法。
A subject image incident through the optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a color separation filter of a three primary color filter or a complementary color filter is disposed on the front side of each pixel. In an imaging method of an imaging apparatus comprising an imaging device, a filter of a specific color among the color separation filters with respect to light having a wide wavelength band has higher luminance sensitivity than a filter of another color.
Based on the electrical signal output from the image sensor, the output from each pixel in which the color separation filter is arranged is detected, and the output from any one of the pixels is equal to or greater than a predetermined specified value. A pixel output detection step for determining whether or not the threshold has been reached;
Pixel output correction that corrects the output of the pixel above the predetermined specified value based on the output from the surrounding pixels when it is determined by the pixel output detection step that there is a pixel having an output of the predetermined specified value or higher. Process,
A correction coefficient setting step for setting a correction coefficient when performing the correction by the pixel output correction step;
A shooting scene determination process for determining a shooting scene for a subject;
When the output of the pixel in which the filter of the specific color is arranged reaches or exceeds the predetermined specified value, the second output from the first bit number below the predetermined specified value is output from the pixel output correction step. A bit compression conversion step of compressing the pixel output data once expanded to the first bit number to the first bit number,
In the bit compression conversion step, compression is performed by reducing the compression rate for data corresponding to the pixel output below the predetermined specified value, rather than the compression rate for data corresponding to the pixel output in the region above the predetermined specified value,
The correction coefficient setting step inputs the shooting scene information determined by the shooting scene determination step, and sets a correction coefficient when performing the correction by the pixel output correction step based on the input shooting scene information.
An imaging method characterized by the above.
光学系を通して入射される被写体像を複数の画素を有する受光面に受光して電気信号に変換するとともに、前記各画素の前面側に3原色系フィルタまたは補色系フィルタの色分解フィルタが配置された撮像素子を備え、広い波長帯域を持つ光に対して前記色分解フィルタのうちの特定色のフィルタが他の色のフィルタよりも高い輝度感度を有している撮像装置の撮像方法において、
前記撮像素子から出力される電気信号に基づいて、前記色分解フィルタが配置された前記各画素からの出力を検出するとともに、前記各画素のいずれかの画素からの出力が所定の規定値以上に達しているか否かを判定する画素出力検出工程と、
前記画素出力検出工程により前記所定の規定値以上の出力の画素が有ると判定した場合に、その周辺の画素からの出力に基づいて前記所定の規定値以上の画素の出力を補正する画素出力補正工程と、
前記画素出力補正工程によって前記補正を行う際の補正係数を設定する補正係数設定工程と、
前記撮像素子から出力される電気信号から、人物の顔部を検出する顔検出工程と、
前記特定色のフィルタが配置された画素の出力が前記所定の規定値以上に達している場合に前記画素出力補正工程から出力される、前記所定の規定値以下における第1のビット数から第2のビット数に一度拡張された画素出力のデータを、再度前記第1のビット数に圧縮するビット圧縮変換工程と、を含み、
前記ビット圧縮変換工程は、前記所定の規定値以上領域における画素出力に対応したデータに対する圧縮率よりも、前記所定の規定値以下における画素出力に対応したデータに対する圧縮率を小さくして圧縮し、
前記補正係数設定工程は、前記顔検出工程による顔部検出情報を入力し、入力した顔部検出情報に基づいて、前記画素出力補正工程によって前記補正を行う際の補正係数を設定する、
ことを特徴とする撮像方法。
A subject image incident through the optical system is received by a light receiving surface having a plurality of pixels and converted into an electrical signal, and a color separation filter of a three primary color filter or a complementary color filter is disposed on the front side of each pixel. In an imaging method of an imaging apparatus comprising an imaging device, a filter of a specific color among the color separation filters with respect to light having a wide wavelength band has higher luminance sensitivity than a filter of another color.
Based on the electrical signal output from the image sensor, the output from each pixel in which the color separation filter is arranged is detected, and the output from any one of the pixels is equal to or greater than a predetermined specified value. A pixel output detection step for determining whether or not the threshold has been reached;
Pixel output correction that corrects the output of the pixel above the predetermined specified value based on the output from the surrounding pixels when it is determined by the pixel output detection step that there is a pixel having an output of the predetermined specified value or higher. Process,
A correction coefficient setting step for setting a correction coefficient when performing the correction by the pixel output correction step;
A face detection step of detecting a human face from an electrical signal output from the image sensor;
When the output of the pixel in which the filter of the specific color is arranged reaches or exceeds the predetermined specified value, the second output from the first bit number below the predetermined specified value is output from the pixel output correction step. A bit compression conversion step of compressing the pixel output data once expanded to the first bit number to the first bit number,
In the bit compression conversion step, compression is performed by reducing the compression rate for data corresponding to the pixel output below the predetermined specified value, rather than the compression rate for data corresponding to the pixel output in the region above the predetermined specified value,
The correction coefficient setting step inputs face detection information from the face detection step, and sets a correction coefficient for performing the correction by the pixel output correction step based on the input face detection information.
An imaging method characterized by the above.
前記撮像素子から出力される電気信号から被写体までの距離を検出する距離検出工程と、前記撮像素子から出力される電気信号から被写体の色分布を検出する色分布検出工程と、前記撮像素子から出力される電気信号から被写体の輝度の分布を検出する輝度分布検出工程を更に含み、
前記撮影シーン判定工程は、前記距離検出工程で検出される距離情報、前記色分布検出工程で検出される色分布情報、前記輝度分布検出工程で検出される輝度分布情報のうちのいずれか1つ以上の情報に基づいて、撮影シーンを判定する、
ことを特徴とする請求項5又は請求項6に記載の撮像方法。
A distance detection step of detecting a distance from the electrical signal output from the image sensor to a subject, a color distribution detection step of detecting a color distribution of the subject from the electrical signal output from the image sensor, and an output from the image sensor A luminance distribution detecting step of detecting a luminance distribution of the subject from the electrical signal to be
The shooting scene determination step is any one of distance information detected in the distance detection step, color distribution information detected in the color distribution detection step, and luminance distribution information detected in the luminance distribution detection step. Based on the above information, the shooting scene is determined.
The imaging method according to claim 5 or 6, characterized in that:
JP2008069249A 2008-03-18 2008-03-18 Imaging apparatus and imaging method Expired - Fee Related JP5091734B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008069249A JP5091734B2 (en) 2008-03-18 2008-03-18 Imaging apparatus and imaging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008069249A JP5091734B2 (en) 2008-03-18 2008-03-18 Imaging apparatus and imaging method

Publications (2)

Publication Number Publication Date
JP2009225252A JP2009225252A (en) 2009-10-01
JP5091734B2 true JP5091734B2 (en) 2012-12-05

Family

ID=41241539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008069249A Expired - Fee Related JP5091734B2 (en) 2008-03-18 2008-03-18 Imaging apparatus and imaging method

Country Status (1)

Country Link
JP (1) JP5091734B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5896877B2 (en) * 2012-10-18 2016-03-30 オリンパス株式会社 Light control device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3988457B2 (en) * 2001-12-25 2007-10-10 ソニー株式会社 Imaging apparatus and signal processing method for solid-state imaging device
JP4306306B2 (en) * 2003-04-09 2009-07-29 富士フイルム株式会社 White balance control method and imaging apparatus
JP4595569B2 (en) * 2005-02-03 2010-12-08 株式会社ニコン Imaging device
JP4666681B2 (en) * 2006-01-20 2011-04-06 株式会社日立国際電気 Image processing apparatus and image processing method
JP5106870B2 (en) * 2006-06-14 2012-12-26 株式会社東芝 Solid-state image sensor

Also Published As

Publication number Publication date
JP2009225252A (en) 2009-10-01

Similar Documents

Publication Publication Date Title
JP5123137B2 (en) Imaging apparatus and imaging method
JP5347707B2 (en) Imaging apparatus and imaging method
JP6521776B2 (en) Image processing apparatus, image processing method
JP5660341B2 (en) Imaging apparatus and imaging method
JP2007180631A (en) Imaging apparatus and photographing method
US7884866B2 (en) Imaging apparatus and imaging method
US8319864B2 (en) Imaging apparatus and imaging method
US10321062B2 (en) Image pickup apparatus, non-transitory computer-readable medium storing computer program, and image pickup method for controlling the luminance at which a live view image is displayed
JP5223686B2 (en) Imaging apparatus and imaging method
JP5458937B2 (en) IMAGING DEVICE, IMAGING METHOD, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING PROGRAM FOR EXECUTING THE IMAGING METHOD
JP4999871B2 (en) Imaging apparatus and control method thereof
JP5256947B2 (en) IMAGING DEVICE, IMAGING METHOD, AND COMPUTER-READABLE RECORDING MEDIUM RECORDING PROGRAM FOR EXECUTING THE METHOD
JP5277863B2 (en) Imaging apparatus and imaging method
WO2016117137A1 (en) Image-capturing device, image-capturing method, and image display device
JP5948997B2 (en) Imaging apparatus and imaging method
JP5091781B2 (en) Imaging apparatus and imaging method
JP5803233B2 (en) Imaging apparatus and imaging method
JP5146015B2 (en) Imaging apparatus and imaging method
JP5310331B2 (en) Imaging apparatus and imaging method
JP2010068331A (en) Imaging device and imaging method
JP5316923B2 (en) Imaging apparatus and program thereof
JP5335964B2 (en) Imaging apparatus and control method thereof
JP5091734B2 (en) Imaging apparatus and imaging method
JP5169540B2 (en) Imaging apparatus and imaging method
JP5145876B2 (en) Imaging apparatus and imaging method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101102

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120302

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120410

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120604

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120904

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120914

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

Free format text: PAYMENT UNTIL: 20150921

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5091734

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees