JP4645921B2 - Image signal processing apparatus and method, program, and imaging apparatus - Google Patents

Image signal processing apparatus and method, program, and imaging apparatus Download PDF

Info

Publication number
JP4645921B2
JP4645921B2 JP2008302340A JP2008302340A JP4645921B2 JP 4645921 B2 JP4645921 B2 JP 4645921B2 JP 2008302340 A JP2008302340 A JP 2008302340A JP 2008302340 A JP2008302340 A JP 2008302340A JP 4645921 B2 JP4645921 B2 JP 4645921B2
Authority
JP
Japan
Prior art keywords
gradation correction
processing
representative value
processing unit
frame
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
JP2008302340A
Other languages
Japanese (ja)
Other versions
JP2010130299A (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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2008302340A priority Critical patent/JP4645921B2/en
Priority to US12/590,099 priority patent/US8564862B2/en
Priority to CN200910246354.3A priority patent/CN101753797B/en
Publication of JP2010130299A publication Critical patent/JP2010130299A/en
Application granted granted Critical
Publication of JP4645921B2 publication Critical patent/JP4645921B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/407Control or modification of tonal gradation or of extreme levels, e.g. background level
    • H04N1/4072Control or modification of tonal gradation or of extreme levels, e.g. background level dependent on the contents of the original
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration using histogram techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/409Edge or detail enhancement; Noise or error suppression

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

An image signal processing apparatus includes the following elements. A control unit determines a gradation correction characteristic representing a conversion characteristic for correcting brightness of an input frame. A separation unit separates the determined gradation correction characteristic into a representative gradation correction value representing an amount of correction for a representative value of a main subject and a remaining gradation correction characteristic obtained by removing the representative gradation correction value from the gradation correction characteristic. A gain processing unit uniformly applies the separated representative gradation correction value to the frame as a gain. A noise reduction processing unit performs noise reduction processing on the frame to which the representative gradation correction value is applied. A gradation correction processing unit performs gradation correction processing on the frame for which the noise reduction processing has been performed using the separated remaining gradation correction characteristic.

Description

本発明は、画像信号処理装置および方法、プログラム、並びに撮像装置に関し、特に、階調補正処理とノイズリダクション処理を併用した場合でも、ノイズが適切に抑制された画像を得ることができるようにした画像信号処理装置および方法、プログラム、並びに撮像装置に関する。   The present invention relates to an image signal processing apparatus and method, a program, and an imaging apparatus, and in particular, an image in which noise is appropriately suppressed can be obtained even when tone correction processing and noise reduction processing are used in combination. The present invention relates to an image signal processing device and method, a program, and an imaging device.

近年、固体撮像素子の低ノイズ化などの進歩や信号処理技術の進歩により、デジタルカメラにおいても、広ダイナミックレンジを有する画像データの撮影が可能になってきた。この際、撮像素子での飽和を防ぐために、通常時の撮影よりも露光量を抑える制御が行われる(例えば、特許文献1参照)。   2. Description of the Related Art In recent years, image data having a wide dynamic range can be taken even with digital cameras due to advances such as noise reduction of solid-state imaging devices and advances in signal processing technology. At this time, in order to prevent saturation in the image sensor, control is performed to suppress the exposure amount more than normal shooting (see, for example, Patent Document 1).

以下、この制御で行う撮影を、広DR撮影と称し、この制御で撮影された画像を、広DR画像と称する。   Hereinafter, imaging performed by this control is referred to as wide DR imaging, and an image captured by this control is referred to as a wide DR image.

広DR画像のデータは、通常撮影の画像に較べて画面が一律に暗くなっている。そこで、出力に際しては、主要被写体の明るさが好適になるように、カメラ内部のデジタル信号処理で階調補正処理が行われる。この階調補正処理としては、例えば、トーンカーブ処理、または、ダイナミックレンジ圧縮処理などがよく用いられる。   Wide DR image data has a uniformly dark screen compared to the normal image. Therefore, at the time of output, gradation correction processing is performed by digital signal processing inside the camera so that the brightness of the main subject is suitable. For example, tone curve processing or dynamic range compression processing is often used as the gradation correction processing.

ここで、階調補正処理は、主要被写体の見えを明るくするように働く。この動作は、主要被写体に割り当てられる信号の幅を広げる作用を持ち、それゆえ、デジタル信号処理においては、その部分の信号の連続性(レベル方向の変化の滑らかさ)が悪化してしまう。   Here, the gradation correction process works to brighten the appearance of the main subject. This operation has the effect of widening the width of the signal assigned to the main subject. Therefore, in the digital signal processing, the continuity of the signal at that portion (the smoothness of the change in the level direction) is deteriorated.

一方、デジタルカメラにおいては、画像データのノイズを抑制するために、ノイズリダクション処理(以下、NR処理と称する)がよく行われる。NR処理では、入力レベルとノイズ成分の関係を示すノイズモデル(例えば、特許文献2参照)や、人間の視覚特性を考慮して(例えば、特許文献3参照)、画像データからノイズ成分を除去する。   On the other hand, in a digital camera, noise reduction processing (hereinafter referred to as NR processing) is often performed in order to suppress noise in image data. In the NR process, a noise model indicating the relationship between the input level and the noise component (see, for example, Patent Document 2) and human visual characteristics (for example, see Patent Document 3) are removed from the image data. .

NR処理は、例えば、バイラテラルフィルタを代表とする非線形平滑化によって行われることが多い。デジタル信号の平滑化処理には、量子化誤差とノイズを含む複数のデータを平均することで、レベル方向の連続性(分解能)を向上させる作用がある。そのため、NR処理は、ノイズ除去以外にも入力画像の信号の連続性を改善させる性質を合わせ持っている。   The NR process is often performed, for example, by nonlinear smoothing represented by a bilateral filter. Digital signal smoothing has an effect of improving level direction continuity (resolution) by averaging a plurality of data including quantization error and noise. Therefore, the NR process has the property of improving the continuity of the input image signal in addition to noise removal.

特開2008−148180号公報JP 2008-148180 A 特開2008−131529号公報JP 2008-131529 A 特開2008−113222号公報JP 2008-113222 A

さて、ここで、広DR画像に対して、上述した階調補正処理とNR処理を共に用いた場合、階調補正処理を先に行っても、また、NR処理を先に行っても、以下のように、処理の性能が低下してしまう。   Now, when the above-described gradation correction processing and NR processing are used together for a wide DR image, even if the gradation correction processing is performed first or the NR processing is performed first, As described above, the processing performance is degraded.

階調補正処理を先に行い、次にNR処理を行う場合、階調補正処理の影響で、ノイズが増幅されたり、原信号が抑圧されたりするため、ノイズと原信号の弁別が難しくなり、NR処理の性能が低下する恐れがある。また、階調補正処理後の画像においては、その影響によりノイズモデルが成立しなくなるため、NR処理を適切に行うことが困難になる。   When gradation correction processing is performed first, and then NR processing is performed, noise is amplified or the original signal is suppressed due to the influence of the gradation correction processing, so it becomes difficult to distinguish the noise from the original signal, There is a risk that the performance of the NR processing will deteriorate. In addition, in the image after the gradation correction process, the noise model is not established due to the influence thereof, and it is difficult to appropriately perform the NR process.

一方、NR処理を先に行い、次に、階調補正処理を行う場合、階調補正が行われていないことにより、主要被写体の明るさが暗いため、人間の視覚特性が正しく反映されず、NR処理の性能が低下する恐れがある。また、階調補正処理が主要被写体を明るく補正することにより、その被写体のレベルの連続性が劣化する恐れがある。   On the other hand, when performing the NR process first and then performing the gradation correction process, because the brightness of the main subject is dark because the gradation correction is not performed, the human visual characteristics are not correctly reflected, There is a risk that the performance of the NR processing will deteriorate. Further, since the gradation correction process corrects the main subject brightly, the continuity of the level of the subject may be deteriorated.

本発明は、このような状況に鑑みてなされたものであり、階調補正処理とノイズリダクション処理を併用した場合における処理の性能劣化を抑制することができるようにするものである。   The present invention has been made in view of such a situation, and is intended to suppress deterioration in processing performance when tone correction processing and noise reduction processing are used in combination.

本発明の一側面の画像信号処理装置は、フレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性を決定する制御手段と、前記制御手段により決定された前記階調補正特性を、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分ける振り分け手段と、前記振り分け手段により振り分けられた前記階調補正代表値を、前記フレームに対して一律にゲインとして印加するゲイン処理手段と、前記ゲイン処理手段により前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理を行うノイズリダクション処理手段と、前記振り分け手段により振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理手段により前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理を行う階調補正処理手段とを備える。 An image signal processing apparatus according to an aspect of the present invention includes: a control unit that determines a gradation correction characteristic representing a conversion characteristic for correcting the brightness of the frame based on an exposure adjustment amount at the time of shooting the frame; and the control unit The gradation correction characteristic determined by the gradation correction representative value representing the correction amount with respect to the representative value of the main subject, and the remaining gradation correction characteristics obtained by removing the gradation correction representative value from the gradation correction characteristic. , A gradation processing unit that applies the gradation correction representative value distributed by the distribution unit as a gain uniformly to the frame, and the gradation correction representative value is applied by the gain processing unit. Noise reduction processing means for performing noise reduction processing on the frame, and the remaining tone correction characteristics distributed by the distribution means. There are, and a gradation correcting means for performing gradation correction processing to the frame in which the noise reduction processing is performed by the noise reduction processing means.

前記関数は、前記階調補正代表値に対して前記階調補正関数を正規化した正規化階調補正関数である。   The function is a normalized gradation correction function obtained by normalizing the gradation correction function with respect to the gradation correction representative value.

前記階調補正処理手段は、前記階調補正処理として、トーンカーブ処理を行うことができる。 The gradation correction processing means can perform tone curve processing as the gradation correction processing.

前記階調補正処理手段は、前記階調補正処理として、ダイナミックレンジ圧縮処理を行うことができる。 The gradation correction processing means can perform dynamic range compression processing as the gradation correction processing.

前記階調補正処理手段は、前記階調補正処理として、シェーディング補正処理を行うことができる。 The gradation correction processing means can perform a shading correction process as the gradation correction process.

前記振り分け手段により振り分けられた前記階調補正代表値を用いて、前記ノイズリダクション処理のノイズモデルのパラメータを設定するパラメータ設定手段をさらに備えることができる。   The image processing apparatus may further include parameter setting means for setting a noise model parameter for the noise reduction processing using the gradation correction representative value distributed by the distribution means.

本発明の一側面の画像信号処理方法は、画像信号処理装置が、フレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性を決定し、決定された前記階調補正特性を、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分け、振り分けられた前記階調補正代表値を、前記フレームに対して一律にゲインとして印加し、前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理を行い、振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理を行うステップを含む。 In the image signal processing method according to one aspect of the present invention, the image signal processing apparatus determines a gradation correction characteristic representing a conversion characteristic for correcting the brightness of the frame based on an exposure adjustment amount at the time of shooting the frame , The determined gradation correction characteristics are converted into a gradation correction representative value representing a correction amount with respect to a representative value of a main subject, and a remaining gradation correction characteristic obtained by removing the gradation correction representative value from the gradation correction characteristic. The assigned gradation correction representative value is uniformly applied as a gain to the frame, and noise reduction processing is performed on the frame to which the gradation correction representative value is applied. A step of performing gradation correction processing on the frame on which the noise reduction processing has been performed using the remaining gradation correction characteristics;

本発明の一側面のプログラムは、フレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性を決定し、決定された前記階調補正特性を、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分け、振り分けられた前記階調補正代表値を、前記フレームに対して一律にゲインとして印加し、前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理を行い、振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理を行うステップを含む処理をコンピュータに実行させる。 The program according to one aspect of the present invention determines a gradation correction characteristic representing a conversion characteristic for correcting the brightness of the frame based on an exposure adjustment amount at the time of shooting the frame, and the determined gradation correction characteristic is determined. And the gradation correction representative value representing the correction amount for the representative value of the main subject and the remaining gradation correction characteristics obtained by removing the gradation correction representative value from the gradation correction characteristics, and the assigned gradation correction A representative value is uniformly applied as a gain to the frame, a noise reduction process is performed on the frame to which the gradation correction representative value is applied, and the remaining gradation correction characteristics thus distributed are used. , Causing the computer to execute processing including a step of performing gradation correction processing on the frame on which the noise reduction processing has been performed.

本発明の他の側面の撮像装置は、被写体を撮像する撮像手段と、前記撮像手段により撮像された前記被写体に対応するフレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性を決定する制御手段と、前記制御手段により決定された前記階調補正特性を、前記被写体のうち、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分ける振り分け手段と、前記振り分け手段により振り分けられた前記階調補正代表値を、前記フレームに対して一律にゲインとして印加するゲイン処理手段と、前記ゲイン処理手段により前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理を行うノイズリダクション処理手段と、前記振り分け手段により振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理手段により前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理を行う階調補正処理手段とを備える。 An imaging apparatus according to another aspect of the present invention corrects the brightness of a frame based on an imaging unit that images a subject and an exposure adjustment amount at the time of shooting a frame corresponding to the subject imaged by the imaging unit. A gradation correction representative value representing a correction amount with respect to a representative value of a main subject among the objects, a control means for determining a gradation correction characteristic representing a conversion characteristic to be performed, and the gradation correction characteristic determined by the control means. And a distribution means for distributing the gradation correction characteristics to the remaining gradation correction characteristics obtained by removing the gradation correction representative values, and the gradation correction representative values distributed by the distribution means for the frame. Gain processing means for uniformly applying the gain, and noise reduction processing for the frame to which the gradation correction representative value is applied by the gain processing means. Using the reduction processing means and the remaining gradation correction characteristics distributed by the distribution means, a gradation correction process is performed on the frame on which the noise reduction processing has been performed by the noise reduction processing means. Tone correction processing means.

本発明の一側面においては、フレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性が決定され、決定された前記階調補正特性が、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分けられる。そして、振り分けられた前記階調補正代表値が、前記フレームに対して一律にゲインとして印加され、前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理が行われ、振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理が行われる。 In one aspect of the present invention, a gradation correction characteristic representing a conversion characteristic for correcting the brightness of the frame is determined based on an exposure adjustment amount at the time of shooting of the frame, and the determined gradation correction characteristic is The gradation correction representative value indicating the correction amount with respect to the representative value of the main subject and the remaining gradation correction characteristics obtained by removing the gradation correction representative value from the gradation correction characteristics are sorted. Then, the distributed gradation correction representative value is uniformly applied as a gain to the frame, and noise reduction processing is performed on the frame to which the gradation correction representative value is applied. Using the remaining tone correction characteristics, tone correction processing is performed on the frame on which the noise reduction processing has been performed.

本発明の他の側面においては、被写体が撮像され、撮像された前記被写体に対応するフレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性が決定され、決定された前記階調補正特性が、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分けられる。そして、振り分けられた前記階調補正代表値が、前記フレームに対して一律にゲインとして印加され、前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理が行われ、振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理が行われる。 In another aspect of the present invention, a gradation correction characteristic representing a conversion characteristic for correcting the brightness of the frame based on an exposure adjustment amount at the time of shooting of the frame corresponding to the imaged subject is captured. Is determined, and the determined gradation correction characteristic is a gradation correction representative value indicating a correction amount with respect to a representative value of a main subject, and the remaining gradations obtained by removing the gradation correction representative value from the gradation correction characteristic. Sorted into correction characteristics. Then, the distributed gradation correction representative value is uniformly applied as a gain to the frame, and noise reduction processing is performed on the frame to which the gradation correction representative value is applied. Using the remaining tone correction characteristics, tone correction processing is performed on the frame on which the noise reduction processing has been performed.

本発明によれば、階調補正処理とノイズリダクション処理を併用することができる。また、本発明によれば、階調補正処理とノイズリダクション処理を併用した場合における処理の性能劣化を抑制することができる。   According to the present invention, the gradation correction process and the noise reduction process can be used together. Further, according to the present invention, it is possible to suppress deterioration in processing performance when the tone correction processing and the noise reduction processing are used in combination.

以下、本発明が適用される画像信号処理装置の実施の形態として、第1の実施の形態と第2の実施の形態とについて説明する。なお、説明は以下の順序で行う。

1.第1の実施の形態(デジタルカメラで構成される例)
2.第2の実施の形態(パーソナルコンピュータで構成される例)
Hereinafter, a first embodiment and a second embodiment will be described as embodiments of an image signal processing apparatus to which the present invention is applied. The description will be given in the following order.

1. 1st Embodiment (example comprised with a digital camera)
2. Second embodiment (example configured with a personal computer)

<1.第1の実施の形態>
[デジタルカメラの構成例]
図1は、本発明を適用した画像信号処理装置としてのデジタルカメラの実施の形態の構成例を示すブロック図である。
<1. First Embodiment>
[Example of digital camera configuration]
FIG. 1 is a block diagram showing a configuration example of an embodiment of a digital camera as an image signal processing apparatus to which the present invention is applied.

図1の例において、デジタルカメラ1は、露出制御コントローラ11、露光量調整部12、撮像素子13、A/D(Analog to Digital)変換部14、画像信号処理部15、信号処理部16、表示部17、および記録部18により構成される。   In the example of FIG. 1, the digital camera 1 includes an exposure controller 11, an exposure amount adjustment unit 12, an image sensor 13, an A / D (Analog to Digital) conversion unit 14, an image signal processing unit 15, a signal processing unit 16, and a display. The unit 17 and the recording unit 18 are included.

露出制御コントローラ11と露光量調整部12は、露出の制御を行う。露出制御コントローラ11は、被写体の輝度分布とデジタルカメラ1の撮影モードに応じて、撮像素子13の露光量が適正になるように、露出調整量(すなわち、露光量調整部12の制御値)を設定する。また、露出制御コントローラ11は、このときの露出調整量を、DET処理部21に出力する。露光量調整部12は、露出制御コントローラ11からの制御値を用いて、撮像素子13の露光量を調整し、露光を行う。この制御値としては、例えば、絞り開口、露光時間、および減光(ND)フィルタの濃度などがよく用いられる。   The exposure control controller 11 and the exposure amount adjustment unit 12 perform exposure control. The exposure controller 11 sets the exposure adjustment amount (that is, the control value of the exposure amount adjustment unit 12) so that the exposure amount of the image sensor 13 is appropriate according to the luminance distribution of the subject and the shooting mode of the digital camera 1. Set. Further, the exposure controller 11 outputs the exposure adjustment amount at this time to the DET processing unit 21. The exposure adjustment unit 12 adjusts the exposure of the image sensor 13 using the control value from the exposure controller 11, and performs exposure. As this control value, for example, aperture stop, exposure time, and density of a neutral density (ND) filter are often used.

撮像素子13は、例えば、CCD(charge coupled device)や、CMOS(complementary metal oxide semiconductor)などの固体撮像素子からなり、レンズなどからなる図示せぬ光学ブロックを通じて被写体などから入射された光を、アナログ信号に変換する。   The image sensor 13 is composed of a solid-state image sensor such as a CCD (charge coupled device) or a CMOS (complementary metal oxide semiconductor), for example, and receives light incident from an object through an optical block (not shown) such as a lens. Convert to signal.

A/D変換部14は、撮像素子13によりアナログ信号に変換された画像信号を量子化して、デジタルの画像データに変換する。A/D変換部14からの画像データは、画像信号処理部15のDET処理部21およびゲイン処理部23に出力される。   The A / D converter 14 quantizes the image signal converted into an analog signal by the image sensor 13 and converts it into digital image data. Image data from the A / D conversion unit 14 is output to the DET processing unit 21 and the gain processing unit 23 of the image signal processing unit 15.

画像信号処理部15は、A/D変換部14からの画像データの画像信号処理を行う。すなわち、画像信号処理部15は、A/D変換部14からの画像データ(フレーム)における主要被写体の明るさが好適になるように階調補正を行うとともに、画像データのノイズを抑制するためにノイズリダクション処理を行う。その際、画像信号処理部15は、明るさの階調補正処理を、実質的に、ノイズリダクション処理の前後に2段階に分けて行う。例えば、1段階目として、階調を持ち上げる階調補正処理が行われ、2段階目として、高輝度の階調を抑える階調補正処理が行われる。なお、以下、ノイズリダクション処理を、適宜、NR処理またはノイズ除去処理と称する。   The image signal processing unit 15 performs image signal processing of the image data from the A / D conversion unit 14. That is, the image signal processing unit 15 performs gradation correction so that the brightness of the main subject in the image data (frame) from the A / D conversion unit 14 is suitable, and suppresses noise in the image data. Perform noise reduction processing. At that time, the image signal processing unit 15 substantially performs the brightness gradation correction process in two stages before and after the noise reduction process. For example, a gradation correction process for increasing gradation is performed as the first stage, and a gradation correction process for suppressing high-intensity gradation is performed as the second stage. Hereinafter, the noise reduction processing is appropriately referred to as NR processing or noise removal processing.

画像信号処理部15は、DET(detection)処理部21、振分処理部22、1段階目の階調補正処理を行うゲイン処理部23、NR(noise reduction)調整処理部24、NR処理部25、および、2段階目の階調補正処理を行うTM(tone map:階調補正)処理部26により構成される。   The image signal processing unit 15 includes a DET (detection) processing unit 21, a distribution processing unit 22, a gain processing unit 23 that performs first-stage gradation correction processing, an NR (noise reduction) adjustment processing unit 24, and an NR processing unit 25. , And a TM (tone map) processing unit 26 that performs second-stage gradation correction processing.

DET処理部21は、A/D変換部14からの画像データを解析し、露出制御コントローラ11からの露出調整量を用いて、その画像データに対して適用する階調補正特性を決定し、決定した階調補正特性を、振分処理部22に出力する。例えば、DET処理部21は、階調補正特性の例として、階調補正関数を決定する。階調補正関数は、画像データの明るさを好適にする変換特性を、明るさの入出力関係として定めた関数であり、例えば、高輝度部分の白とびを抑え、かつ、主要被写体が明るくなるように決定される。   The DET processing unit 21 analyzes the image data from the A / D conversion unit 14, determines the gradation correction characteristic to be applied to the image data using the exposure adjustment amount from the exposure controller 11, and determines The gradation correction characteristics thus obtained are output to the distribution processing unit 22. For example, the DET processing unit 21 determines a gradation correction function as an example of the gradation correction characteristic. The tone correction function is a function that defines conversion characteristics that make the brightness of image data suitable as the input / output relationship of brightness. For example, the overexposure of high-luminance portions is suppressed and the main subject becomes brighter. To be determined.

振分処理部22は、DET処理部21からの階調補正特性を、1段階目の明るさの階調補正処理を行うゲイン処理部23に必要な成分と、2段階目の明るさの階調補正処理を行うTM処理部26に必要な成分に分解し、それぞれに振り分ける。例えば、DET処理部21からの階調補正特性としての階調補正関数が入力された場合、振分処理部22は、階調補正関数を、階調補正代表値と、階調補正関数から階調補正代表値を除いた残りの階調補正関数である正規化階調補正関数に分解する。そして、振分処理部22は、階調補正代表値を、ゲイン処理部23に振り分け、正規化階調補正関数を、TM処理部26に振り分ける。なお、階調補正代表値は、NR調整処理部24にも出力される。   The distribution processing unit 22 uses the gradation correction characteristics from the DET processing unit 21 as components necessary for the gain processing unit 23 that performs gradation correction processing for the first-stage brightness and the second-stage brightness level. The TM processing unit 26 that performs the tone correction processing is decomposed into components necessary for distribution. For example, when a gradation correction function as a gradation correction characteristic is input from the DET processing unit 21, the distribution processing unit 22 converts the gradation correction function from the gradation correction representative value and the gradation correction function to the gradation correction function. It decomposes into a normalized gradation correction function which is the remaining gradation correction function excluding the tone correction representative value. Then, the distribution processing unit 22 distributes the gradation correction representative value to the gain processing unit 23, and distributes the normalized gradation correction function to the TM processing unit 26. The gradation correction representative value is also output to the NR adjustment processing unit 24.

ここで、階調補正代表値は、主要被写体の代表値(代表レベル値)に対して行われる補正処理をゲインで表した際のゲイン量である。正規化階調補正関数は、主要被写体の代表値に対して階調補正関数の入出力が同一となるように正規化した階調補正関数である。   Here, the gradation correction representative value is a gain amount when the correction processing performed on the representative value (representative level value) of the main subject is represented by a gain. The normalized gradation correction function is a gradation correction function normalized so that the input / output of the gradation correction function is the same as the representative value of the main subject.

ゲイン処理部23は、振分処理部22からの階調補正代表値を用いて、1段階目の明るさの階調補正処理を行う。すなわち、ゲイン処理部23は、振分処理部22からの階調補正代表値を用いて、A/D変換部14からの画像データに対して明るさを一律に補正(調整)し、明るさを補正した画像データをNR処理部25に出力する。   The gain processing unit 23 uses the gradation correction representative value from the distribution processing unit 22 to perform gradation correction processing for brightness at the first stage. That is, the gain processing unit 23 uniformly corrects (adjusts) the brightness of the image data from the A / D conversion unit 14 using the gradation correction representative value from the distribution processing unit 22 to obtain the brightness. Is output to the NR processing unit 25.

NR調整処理部24は、振分処理部22からの階調補正代表値を用いて、入力レベルとノイズ成分の関係を示すノイズモデルのパラメータを計算し、NR処理部25のノイズモデルに設定する。   The NR adjustment processing unit 24 uses the gradation correction representative value from the distribution processing unit 22 to calculate a noise model parameter indicating the relationship between the input level and the noise component, and sets it as the noise model of the NR processing unit 25. .

NR処理部25においては、例えば、特許文献3に記載のノイズ除去処理が行われる。NR処理部25は、NR調整処理部24により設定されたノイズモデルを用いて、ゲイン処理部23からの画像データのノイズを除去し、TM処理部26に出力する。なお、NR処理部25におけるノイズの除去は、ノイズを完全に除去することを意味するだけでなく、ノイズの軽減も含まれる。   In the NR processing unit 25, for example, noise removal processing described in Patent Document 3 is performed. The NR processing unit 25 removes the noise of the image data from the gain processing unit 23 using the noise model set by the NR adjustment processing unit 24 and outputs it to the TM processing unit 26. Note that noise removal in the NR processing unit 25 not only means that noise is completely removed, but also includes noise reduction.

TM処理部26は、振分処理部22からの正規化階調補正関数を用いて、2段階目の明るさの階調補正処理を行う。すなわち、TM処理部26は、振分処理部22からの正規化階調補正関数を用いて、NR調整処理部24からの画像データの階調補正を行い、階調補正された画像データを、信号処理部16に出力する。この階調補正としては、トーンカーブ処理、ダイナミックレンジ圧縮処理、または、シェーディング処理などが用いられる。なお、以下においては、階調補正として、トーンカーブ処理を例に説明する。   The TM processing unit 26 uses the normalized gradation correction function from the distribution processing unit 22 to perform the second-level brightness gradation correction process. That is, the TM processing unit 26 performs tone correction of the image data from the NR adjustment processing unit 24 using the normalized tone correction function from the distribution processing unit 22, and the tone-corrected image data is The signal is output to the signal processing unit 16. As the tone correction, tone curve processing, dynamic range compression processing, shading processing, or the like is used. In the following description, tone curve processing will be described as an example of tone correction.

信号処理部16は、TM処理部26からの画像データに対して、後段の表示部17への表示や、記録部18における記録に適した画像データに変換する信号処理を行い、対応する表示部17や記録部18に出力する。信号処理部16においては、例えば、ガンマ変換やYCbCr変換といった信号フォーマットの変換や、LUTを用いた色変換処理を組み合わせた信号処理が行われる。   The signal processing unit 16 performs signal processing for converting the image data from the TM processing unit 26 into image data suitable for display on the subsequent display unit 17 and recording in the recording unit 18, and corresponding display units 17 and the recording unit 18. The signal processing unit 16 performs signal processing that combines signal format conversion such as gamma conversion and YCbCr conversion, and color conversion processing using an LUT.

表示部17は、例えば、LCD(Liquid Crystal Display)パネルなどで構成され、信号処理部16からの画像データに対応する画像を表示する。記録部18は、信号処理部16からの画像データを、図示せぬ光ディスクまたは磁気ディスクなどの記録媒体に記録する。   The display unit 17 is composed of, for example, an LCD (Liquid Crystal Display) panel and displays an image corresponding to the image data from the signal processing unit 16. The recording unit 18 records the image data from the signal processing unit 16 on a recording medium such as an optical disk or a magnetic disk (not shown).

[NR処理部の構成例]
図2は、NR処理部の構成例を示す図である。
[Configuration example of NR processing unit]
FIG. 2 is a diagram illustrating a configuration example of the NR processing unit.

図2に示すNR処理部25は、物理特性値算出部31、視覚特性値算出部32、閾値決定部33、およびノイズ除去部34により構成される。   The NR processing unit 25 illustrated in FIG. 2 includes a physical characteristic value calculation unit 31, a visual characteristic value calculation unit 32, a threshold value determination unit 33, and a noise removal unit 34.

ゲイン処理部23からの画像データは、物理特性値算出部31、視覚特性値算出部32、およびノイズ除去部34にそれぞれ入力される。   Image data from the gain processing unit 23 is input to the physical characteristic value calculating unit 31, the visual characteristic value calculating unit 32, and the noise removing unit 34, respectively.

物理特性値算出部31は、NR調整処理部24によりパラメータが設定されたノイズモデルを用いて、入力された画像データの輝度に依存する値であるノイズ量(物理特性値)σ2を算出し、閾値決定部33に出力する。 The physical characteristic value calculation unit 31 calculates a noise amount (physical characteristic value) σ 2 that is a value depending on the luminance of the input image data, using the noise model in which the parameter is set by the NR adjustment processing unit 24. And output to the threshold value determination unit 33.

視覚特性値算出部32は、入力された画像データが示す画像の色R,G,Bを判別し、視覚モデルを用いて、物理特性値を補正する係数である補正パラメータ(視覚特性値)kを算出し、閾値決定部33に出力する。   The visual characteristic value calculation unit 32 determines the colors R, G, and B of the image indicated by the input image data, and uses a visual model to correct a correction parameter (visual characteristic value) k that is a coefficient for correcting the physical characteristic value. Is calculated and output to the threshold value determination unit 33.

視覚モデルは、例えば、図3を参照して後述する、人間の視覚特性を考慮して作成されている色と補正値の変換テーブルで構成される。   The visual model includes, for example, a color and correction value conversion table created in consideration of human visual characteristics, which will be described later with reference to FIG.

閾値決定部33は、物理特性値算出部31からのノイズ量σ2と、視覚特性値算出部32からの補正パラメータkを用いて、ノイズ除去部34がノイズ除去処理を行うために用いるフィルタ閾値εを計算し、計算したフィルタ閾値εを、ノイズ除去部34に出力する。例えば、閾値決定部33は、乗算器で構成され、物理特性値算出部31からのノイズ量σ2と、視覚特性値算出部32からの補正パラメータkとを乗算し、乗算した値であるkσ2をフィルタ閾値εとして、ノイズ除去部34に出力する。このように、フィルタ閾値εを決定することによって、ノイズの物理特性と人間の視覚特性とを考慮した適切な閾値を用いたノイズ除去処理を行うことができる。 The threshold value determination unit 33 uses the noise amount σ 2 from the physical characteristic value calculation unit 31 and the correction parameter k from the visual characteristic value calculation unit 32 to use a filter threshold value used by the noise removal unit 34 to perform noise removal processing. ε is calculated, and the calculated filter threshold ε is output to the noise removing unit 34. For example, the threshold value determination unit 33 is configured by a multiplier, and multiplies the noise amount σ 2 from the physical characteristic value calculation unit 31 by the correction parameter k from the visual characteristic value calculation unit 32 and is a multiplied value kσ. 2 is output to the noise removing unit 34 as the filter threshold ε. As described above, by determining the filter threshold ε, it is possible to perform noise removal processing using an appropriate threshold considering the physical characteristics of noise and the human visual characteristics.

ノイズ除去部34は、入力された画像データに対して、閾値決定部33からのフィルタ閾値εを用いて、例えば、εフィルタによるノイズ除去を実行し、ノイズ除去処理が施された画像データを後段のTM処理部26に出力する。なお、ノイズ除去部34におけるノイズ除去方法は、εフィルタ以外の方法を用いることもできる。   The noise removal unit 34 performs noise removal using, for example, an ε filter on the input image data using the filter threshold value ε from the threshold value determination unit 33, and the image data subjected to the noise removal process is processed later. Is output to the TM processing unit 26. Note that a method other than the ε filter may be used as the noise removal method in the noise removal unit 34.

[変換テーブルの構成例]
図3は、視覚モデルとして用いられる変換テーブルの例を示す図である。
[Conversion table configuration example]
FIG. 3 is a diagram illustrating an example of a conversion table used as a visual model.

変換テーブルは、色と、(r,g,b)の値と、補正パラメータkとが対応付けられている変換テーブルであり、画像の色R,G,Bの各値を、補正パラメータkに変換するものである。   The conversion table is a conversion table in which colors, values of (r, g, b), and correction parameters k are associated with each other, and values of image colors R, G, and B are used as correction parameters k. To convert.

変換テーブルにおいては、緑色、(r,g,b)=(100,170,100)、補正パラメータk=2.0が対応付けられており、黄色、(r,g,b)=(240,200,60)、補正パラメータk=2.0が対応付けられている。また、青色、(r,g,b)=(90,90,200)、補正パラメータk=3.0が対応付けられており、赤色、(r,g,b)=(200,50,70)、補正パラメータk=3.0が対応付けられている。さらに、肌色、(r,g,b)=(220,170,170)、補正パラメータk=3.0が対応付けられており、その他、補正パラメータk=2.5が対応付けられている。   In the conversion table, green, (r, g, b) = (100,170,100), correction parameter k = 2.0 are associated, yellow, (r, g, b) = (240,200,60), correction parameter k = 2.0 is associated. Also, blue, (r, g, b) = (90,90,200), correction parameter k = 3.0 are associated, red, (r, g, b) = (200,50,70), correction parameter k = 3.0 is associated. Further, skin color, (r, g, b) = (220, 170, 170), correction parameter k = 3.0 are associated, and in addition, correction parameter k = 2.5 is associated.

視覚特性値算出部32は、入力された画像データが示す画像の色R,G,Bを判別し、判別したR,G,Bの各値に最も近い値を、変換テーブルの(r,g,b)の中から選択する。そして、視覚特性値算出部32は、変換テーブルから、選択した(r,g,b)の値に対応する補正パラメータkを選択し、選択した補正パラメータkを閾値決定部33に出力する。   The visual characteristic value calculation unit 32 discriminates the colors R, G, and B of the image indicated by the input image data, and calculates a value closest to the discriminated values of R, G, and B in the conversion table (r, g , b). Then, the visual characteristic value calculation unit 32 selects the correction parameter k corresponding to the selected value of (r, g, b) from the conversion table, and outputs the selected correction parameter k to the threshold value determination unit 33.

なお、R,G,Bの各値に最も近い値を、変換テーブルの(r,g,b)の値の中から選択する際には、各値の色空間距離(ベクトル)を基準に判断される。   When selecting the closest value to each value of R, G, B from the values of (r, g, b) in the conversion table, it is determined based on the color space distance (vector) of each value. Is done.

[広DR撮影モードの説明]
次に、図4を参照して、デジタルカメラ1の撮影モードについて説明する。
[Explanation of wide DR shooting mode]
Next, the shooting mode of the digital camera 1 will be described with reference to FIG.

デジタルカメラ1には、撮影モードとして、少なくとも、広ダイナミックレンジを有する画像の撮影を行う広DR撮影モードと、広ダイナミックレンジではなく、標準のダイナミックレンジを有する画像の撮影を行う標準撮影モードが設けられている。図4の例の場合、広DR撮影モードとして、それぞれ異なる露出の調整方法を用いる2種類の広DR撮影Aモードと広DR撮影Bモードが設けられている。   The digital camera 1 is provided with at least a wide DR shooting mode for shooting an image having a wide dynamic range and a standard shooting mode for shooting an image having a standard dynamic range instead of a wide dynamic range. It has been. In the case of the example of FIG. 4, two types of wide DR shooting A mode and wide DR shooting B mode using different exposure adjustment methods are provided as the wide DR shooting mode.

デジタルカメラ1の撮影モードが広DR撮影Aモードである場合、露出制御コントローラ11は、例えば、特許文献1に記載の、撮像素子13上での白とびを防ぎつつ、主要被写体の露光量が極端に少なくならないように露出を調整する方法を用い、露出調整量を設定する。   When the shooting mode of the digital camera 1 is the wide DR shooting A mode, the exposure controller 11, for example, described in Patent Document 1 prevents the overexposure on the image sensor 13 and the exposure amount of the main subject is extremely high. Set the amount of exposure adjustment using a method that adjusts the exposure so that it is not too low.

また、デジタルカメラ1の撮影モードが広DR撮影Bモードである場合、露出制御コントローラ11は、例えば、撮像素子13上での全ての白とびをなくすように露出を調整する方法を用い、露出調整量を設定する。   Further, when the shooting mode of the digital camera 1 is the wide DR shooting B mode, the exposure controller 11 uses, for example, a method of adjusting the exposure so as to eliminate all overexposure on the image sensor 13 and adjust the exposure. Set the amount.

なお、露出の具体的な調整方法については、上述した広DR撮影Aモードや広DR撮影Bモードの方法に限らず、任意であるが、標準モードの撮影と比較した場合、DR撮影モードの撮影のときの露出調整量は、露出が下がる。   Note that the specific method of adjusting the exposure is not limited to the above-described wide DR shooting A mode and wide DR shooting B mode, but is arbitrary. However, when compared with shooting in the standard mode, shooting in the DR shooting mode is possible. The exposure will be reduced when the exposure is adjusted.

図4の例においては、上述した各撮影モードで撮影された画像データの画像51乃至53と、それらの各ヒストグラム54乃至56が示されている。すなわち、上段には、標準撮影モードで撮影された画像データの画像51と、そのヒストグラム54が示されている。また、中段には、広DR撮影Aモードで撮影された画像データの画像52と、そのヒストグラム55が示されており、下段には、広DR撮影Bモードで撮影された画像データの画像53と、そのヒストグラム56が示されている。   In the example of FIG. 4, images 51 to 53 of image data photographed in each of the photographing modes described above and their histograms 54 to 56 are shown. That is, the upper part shows an image 51 of image data shot in the standard shooting mode and a histogram 54 thereof. The middle row shows an image 52 of image data shot in the wide DR shooting A mode and a histogram 55 thereof, and the lower row shows an image 53 of image data shot in the wide DR shooting B mode. The histogram 56 is shown.

なお、ヒストグラム54乃至56においては、縦軸が度数を表し、横軸が明るさ(輝度)を表し、右にいくほど明るいことが示されている。また、画像51乃至53における主要被写体は、画面中央の人物であり、各ヒストグラム54乃至56における範囲Eは、主要被写体の明るさ分布を示している。以下、特に言及しないが、他のヒストグラムについても同様に表される。   In the histograms 54 to 56, the vertical axis represents the frequency, the horizontal axis represents the brightness (luminance), and it is shown that the brighter the color goes to the right. The main subject in the images 51 to 53 is a person at the center of the screen, and the range E in each of the histograms 54 to 56 indicates the brightness distribution of the main subject. Hereinafter, although not particularly mentioned, the other histograms are similarly expressed.

標準撮影モードでの撮影では、主要被写体の明るさは、ヒストグラム54の範囲Eに示されるように十分な明るさを有し、好ましい反面、画像51の上部における高輝度の空の部分では、白とびが起こって、被写体(空の部分)を信号に反映できていない。   In shooting in the standard shooting mode, the brightness of the main subject has sufficient brightness as shown in the range E of the histogram 54, which is preferable, but in the high-luminance sky portion above the image 51, A jump occurs and the subject (empty part) cannot be reflected in the signal.

それに対して、広DR撮影Aモードの撮影では、標準撮影モードの撮影よりも露出を下げて撮影される。広DR撮影Aモードの撮影の場合、標準撮影モードの撮影よりも露出を下げたことで、標準撮影モードでの画像51と比して、画像52における空の部分が概ね信号に反映されている。   On the other hand, in wide DR shooting A mode shooting, shooting is performed with a lower exposure than in standard shooting mode shooting. In the wide DR shooting A mode shooting, since the exposure is lower than in the standard shooting mode shooting, the empty portion of the image 52 is reflected in the signal as compared with the image 51 in the standard shooting mode. .

広DR撮影Bモードの撮影では、広DR撮影Aモードの撮影よりもさらに露出を下げて撮影される。広DR撮影Bモードの撮影の場合、広DR撮影Aモードの撮影よりさらに露出を下げたことで、画像53における空の部分が完全に信号に反映されている。ただし、どちらの広DR撮影モードの撮影でも露出を下げたことにより、ヒストグラム55および56の範囲Eに示されるように、主要被写体の明るさが暗くなっている。   In wide DR shooting B mode shooting, exposure is further reduced compared to wide DR shooting A mode shooting. In the case of wide DR shooting B mode shooting, the sky portion in the image 53 is completely reflected in the signal by lowering the exposure further than shooting in the wide DR shooting A mode. However, the brightness of the main subject is dark as shown in the range E of the histograms 55 and 56 by reducing the exposure in both wide DR shooting modes.

[階調補正特性の説明]
図5は、図4の各画像データの階調補正特性の例を示す図である。図5の例においては、図4の各撮影モードで撮影された画像データの階調補正特性を表すトーンカーブ61乃至63のグラフと、トーンカーブ61乃至63による階調補正後の画像データに対応する画像64乃至66と、画像64乃至66のヒストグラム67乃至69が示されている。
[Description of gradation correction characteristics]
FIG. 5 is a diagram showing an example of gradation correction characteristics of each image data in FIG. In the example of FIG. 5, the graph corresponds to the tone curves 61 to 63 representing the tone correction characteristics of the image data shot in each shooting mode of FIG. 4, and the image data after tone correction using the tone curves 61 to 63. Images 64 to 66 to be displayed and histograms 67 to 69 of the images 64 to 66 are shown.

なお、トーンカーブ61乃至63の各グラフにおいて、横軸は入力レベルを表しており、右へ行くほど入力レベルが高輝度であることを示している。縦軸は出力レベルを表しており、上に行くほど出力レベルが高輝度であることを示している。以下、特に言及しないが、他のトーンカーブのグラフについても同様に表される。   In each of the graphs of the tone curves 61 to 63, the horizontal axis represents the input level, and indicates that the input level increases as it goes to the right. The vertical axis represents the output level, and the higher the level, the higher the output level. Hereinafter, although not particularly mentioned, other tone curve graphs are similarly expressed.

これらの画像64乃至66における主要被写体は、画像51乃至53と同様に、画面中央の人物である。また、トーンカーブ62および63のグラフにおける範囲Fは、主要被写体の明るさ範囲を示しており、各ヒストグラム67乃至69における範囲Eは、主要被写体の明るさ分布を示している。   The main subject in these images 64 to 66 is the person at the center of the screen, as in the images 51 to 53. A range F in the graphs of the tone curves 62 and 63 indicates the brightness range of the main subject, and a range E in each of the histograms 67 to 69 indicates the brightness distribution of the main subject.

DET処理部21においては、撮像により得られた画像データの明るさを補正する階調補正特性が決定される。この階調補正特性とは、高輝度の部分の信号を保持しつつ、広DR撮影モードの撮影により暗くなっている主要被写体の明るさを補正するための処理特性であり、例えば、トーンカーブ62または63で表される階調補正関数である。   In the DET processing unit 21, gradation correction characteristics for correcting the brightness of image data obtained by imaging are determined. This gradation correction characteristic is a processing characteristic for correcting the brightness of a main subject that is dark due to shooting in the wide DR shooting mode while retaining a signal of a high-luminance portion. Or a tone correction function represented by 63.

この階調補正特性の決め方は任意であるが、DET処理部21は、例えば、高輝度部分の白とびを抑え、かつ、主要被写体が明るくなるように階調補正特性を決定する。具体的には、DET処理部21は、トーンカーブ62のグラフの範囲Fに示される主要被写体の明るさ範囲では、露出制御コントローラ11の露出調整量により、標準撮影モードの場合よりも下げられた露出を相殺(キャンセル)するように階調補正特性を決定する。そして、DET処理部21は、その明るさの範囲Fを超えるにつれ、徐々に補正量を抑えるように階調補正特性を決定する。   Although the method for determining the gradation correction characteristic is arbitrary, the DET processing unit 21 determines the gradation correction characteristic so as to suppress, for example, overexposure in a high-luminance portion and to brighten the main subject. More specifically, the DET processing unit 21 is lowered in the brightness range of the main subject indicated by the range F of the tone curve 62 by the exposure adjustment amount of the exposure controller 11 as compared with the case of the standard shooting mode. The gradation correction characteristic is determined so as to cancel (cancel) the exposure. Then, as the brightness range F is exceeded, the DET processing unit 21 determines the gradation correction characteristics so as to gradually suppress the correction amount.

同様に、DET処理部21は、トーンカーブ63のグラフの範囲Fに示される主要被写体の明るさ範囲では、露出制御コントローラ11の露出調整量により、広DR撮影Aモードの場合よりさらに下げられた露出を相殺するように階調補正特性を設定する。そして、DET処理部21は、その明るさの範囲Fを超えるにつれ、徐々に補正量を抑えるように階調補正特性を決定する。したがって、トーンカーブ63の範囲Fの傾きは、トーンカーブ62の範囲Fの傾きよりも急になっている。なお、トーンカーブ62および63の各グラフに示される「×(1/露出調整量)」は、露出調整量を相殺することを表している。   Similarly, the DET processing unit 21 is further lowered in the brightness range of the main subject indicated by the range F of the tone curve 63 by the exposure adjustment amount of the exposure controller 11 than in the wide DR shooting A mode. Tone correction characteristics are set so as to cancel the exposure. Then, as the brightness range F is exceeded, the DET processing unit 21 determines the gradation correction characteristics so as to gradually suppress the correction amount. Therefore, the slope of the range F of the tone curve 63 is steeper than the slope of the range F of the tone curve 62. Note that “x (1 / exposure adjustment amount)” shown in each graph of the tone curves 62 and 63 represents that the exposure adjustment amount is canceled out.

このトーンカーブ(階調補正特性)62により、図4の画像52における輝度の低い側は明るく補正される。すなわち、図4の画像52の主要被写体を、画像65とヒストグラム68に示されるように、好適な明るさ(例えば、標準撮影モードによる画像64とヒストグラム67の範囲Eに示される明るさと同等の明るさ)に補正することができる。   By this tone curve (gradation correction characteristic) 62, the low luminance side of the image 52 in FIG. 4 is corrected brightly. That is, the main subject of the image 52 in FIG. 4 has a suitable brightness (for example, the brightness equivalent to the brightness shown in the range E of the image 64 and the histogram 67 in the standard shooting mode) as shown in the image 65 and the histogram 68. Can be corrected.

同様に、トーンカーブ(階調補正特性)63により、図4の画像53における輝度の低い側は明るく補正される。すなわち、図4の画像53の主要被写体を、画像66とヒストグラム69の範囲Eに示されるように、好適な明るさ(例えば、標準撮影モードによる画像64とヒストグラム67の範囲Eに示される明るさと同等の明るさ)に補正することができる。   Similarly, the tone curve (tone correction characteristic) 63 corrects the low brightness side of the image 53 in FIG. That is, the main subject of the image 53 in FIG. 4 has a suitable brightness (for example, the brightness shown in the range E of the image 64 and the histogram 67 in the standard shooting mode) as shown in the range E of the image 66 and the histogram 69. Equivalent brightness).

なお、標準撮影モードで撮影された画像データは、画像信号処理部15における階調補正の対象ではないが、図5の例においては、広DR撮影モードの撮影された画像データとの比較のために、トーンカーブ61、画像64、およびヒストグラム67が示されている。したがって、図5に示されるトーンカーブ61は、リニアのトーンカーブとなっており、階調補正後の画像64は、図4の画像51と一致しており、階調補正後のヒストグラム67は図4のヒストグラム54と一致している。   Note that image data shot in the standard shooting mode is not subject to gradation correction in the image signal processing unit 15, but in the example of FIG. 5, for comparison with image data shot in the wide DR shooting mode. A tone curve 61, an image 64, and a histogram 67 are shown. Accordingly, the tone curve 61 shown in FIG. 5 is a linear tone curve, the image 64 after gradation correction matches the image 51 in FIG. 4, and the histogram 67 after gradation correction is shown in FIG. 4 is consistent with the histogram 54 of FIG.

[画像信号処理の説明]
次に、図6を参照して、画像信号処理部15の処理の詳細について説明する。なお、図6の例においては、説明の便宜上、NR調整処理部24が省略されており、振分処理部22は、代表値検出部71と階調補正正規化部72とにより構成されている。
[Description of image signal processing]
Next, details of the processing of the image signal processing unit 15 will be described with reference to FIG. In the example of FIG. 6, for convenience of explanation, the NR adjustment processing unit 24 is omitted, and the distribution processing unit 22 includes a representative value detection unit 71 and a gradation correction normalization unit 72. .

また、図6の例においては、トーンカーブ81乃至83の各グラフと、ヒストグラム91乃至93が示されている。トーンカーブ81は、DET処理部21により決定された階調補正特性を表しており、トーンカーブ82は、代表値検出部71により検出された階調補正代表値Gを一律に印加する処理の入出力特性を、説明のためトーンカーブとして表現しあものである。トーンカーブ83は、階調補正正規化部72により求められた正規化階調補正特性を表している。ヒストグラム91乃至93は、それぞれ、ゲイン処理部23に入力される画像データのヒストグラム、ゲイン処理の後の画像データのヒストグラム、階調補正後の画像データのヒストグラムである。   Further, in the example of FIG. 6, graphs of tone curves 81 to 83 and histograms 91 to 93 are shown. The tone curve 81 represents the tone correction characteristic determined by the DET processing unit 21, and the tone curve 82 is input of processing for uniformly applying the tone correction representative value G detected by the representative value detecting unit 71. The output characteristics are expressed as tone curves for explanation. A tone curve 83 represents the normalized gradation correction characteristic obtained by the gradation correction normalization unit 72. Histograms 91 to 93 are a histogram of image data input to the gain processing unit 23, a histogram of image data after gain processing, and a histogram of image data after gradation correction, respectively.

DET処理部21から、例えば、トーンカーブ81で表される階調補正特性のデータが、代表値検出部71および階調補正正規化部72に入力される。   For example, data of gradation correction characteristics represented by a tone curve 81 is input from the DET processing unit 21 to the representative value detection unit 71 and the gradation correction normalization unit 72.

代表値検出部71は、DET処理部21が決めた階調補正特性において、主要被写体の代表値に対して行われる補正量を表す値である階調補正代表値Gを検出する。階調補正代表値Gは、ゲインで表される数値で、一例として、階調補正特性が関数y=f(x)で表されるとき、その入出力比f(x)/x(すなわち、関数y=f(x)の傾き)を用いて、次の式(1)から求められる。   The representative value detection unit 71 detects a gradation correction representative value G that is a value representing a correction amount to be performed on the representative value of the main subject in the gradation correction characteristic determined by the DET processing unit 21. The gradation correction representative value G is a numerical value represented by a gain. As an example, when the gradation correction characteristic is represented by a function y = f (x), the input / output ratio f (x) / x (that is, The slope of the function y = f (x)) is obtained from the following equation (1).


G = argmax(f(x)/x) ・・・(1)

ただし、主要被写体の明るさ範囲が既知である場合、x∈主要被写体の明るさ範囲となる。なお、主要被写体の明るさが、例えば、検出されることにより既知で、ある値x0である場合(すなわち、主要被写体の代表値がx0である場合)には、G = f(x0)/x0となる。また、主要被写体の明るさが範囲を有する場合の階調補正代表値Gとしては、その範囲でのf(x)/xの最大値の他に、例えば、f(x)/xの平均値を用いるようにしてもよい。さらに、主要被写体の明るさが不明の場合には、f(x)/xの最大値を用いる。

G = argmax (f (x) / x) (1)

However, if the brightness range of the main subject is already known, x is the brightness range of the main subject. For example, when the brightness of the main subject is known by detection and is a certain value x0 (that is, when the representative value of the main subject is x0), G = f (x0) / x0 It becomes. Further, as the gradation correction representative value G when the brightness of the main subject has a range, in addition to the maximum value of f (x) / x in the range, for example, an average value of f (x) / x May be used. Further, when the brightness of the main subject is unknown, the maximum value of f (x) / x is used.

この階調補正代表値Gの検出処理により、主要被写体の明るさを補正する要素が検出される。   By this gradation correction representative value G detection process, an element for correcting the brightness of the main subject is detected.

階調補正正規化部72は、DET処理部21が決めた階調補正特性から、代表値検出部71が検出した階調補正代表値Gを除いた残りの成分を求める。すなわち、階調補正正規化部72は、DET処理部21が決めた階調補正特性を主要被写体に対して正規化し、新しい階調補正特性を求める。例えば、新しい階調補正特性である正規化階調補正特性を表す関数f'(x)は、階調補正特性が関数y=f(x)で表されるとき、代表値検出部71が検出した階調補正代表値Gを用いて、次の式(2)で求められる。

f'(x) = f(x×G)/G ・・・(2)
The gradation correction normalization unit 72 obtains the remaining components excluding the gradation correction representative value G detected by the representative value detection unit 71 from the gradation correction characteristics determined by the DET processing unit 21. That is, the tone correction normalization unit 72 normalizes the tone correction characteristics determined by the DET processing unit 21 with respect to the main subject, and obtains new tone correction characteristics. For example, the function f ′ (x) representing the normalized gradation correction characteristic which is a new gradation correction characteristic is detected by the representative value detection unit 71 when the gradation correction characteristic is represented by the function y = f (x). Using the gradation correction representative value G, the following equation (2) is obtained.

f '(x) = f (x × G) / G (2)

なお、式(2)においては、後述するゲイン処理部23における階調補正代表値Gによるレベル幅の引き延ばしを相殺するために、x軸がG倍されており、階調補正代表値Gで明るくした分を元に戻すため、y軸が1/G倍されている。すなわち、このf'(x)を求める式(2)は、トーンカーブ83に示されるように、階調補正特性を主要被写体x0の周囲でリニア直線となる特性にする式、換言するに、階調補正特性f(x)を正規化する式である。したがって、階調補正代表値Gの検出は、正規化の定数を検出していること同意である。   In equation (2), the x-axis is multiplied by G in order to cancel out the extension of the level width due to the gradation correction representative value G in the gain processing unit 23 to be described later. The y-axis has been multiplied by 1 / G to restore the original amount. That is, the equation (2) for obtaining f ′ (x) is an equation that makes the tone correction characteristic a linear straight line around the main subject x0 as shown by the tone curve 83, in other words, This is an expression for normalizing the tone correction characteristic f (x). Therefore, the detection of the gradation correction representative value G agrees that a normalization constant is detected.

以上のように、振分処理部22は、トーンカーブ81で表される階調補正特性を、フレームに対して、トーンカーブ82で表される一律のゲインGと、トーンカーブ83で表される正規化階調補正特性に分解し、それぞれ、ゲイン処理部23およびTM処理部26に振り分ける。   As described above, the distribution processing unit 22 represents the tone correction characteristic represented by the tone curve 81 with the uniform gain G represented by the tone curve 82 and the tone curve 83 with respect to the frame. They are decomposed into normalized gradation correction characteristics, and are distributed to the gain processing unit 23 and the TM processing unit 26, respectively.

すなわち、代表値検出部71により検出された階調補正代表値Gは、ゲイン処理部23に出力され、階調補正正規化部72により求められた正規化階調補正特性は、TM処理部26に出力される。なお、この階調補正代表値Gは、図6の例においては図示せぬNR調整処理部24にも出力される。NR調整処理部24における処理の詳細は、図7を参照して後述する。   That is, the gradation correction representative value G detected by the representative value detection unit 71 is output to the gain processing unit 23, and the normalized gradation correction characteristic obtained by the gradation correction normalization unit 72 is the TM processing unit 26. Is output. The gradation correction representative value G is also output to the NR adjustment processing unit 24 (not shown) in the example of FIG. Details of the processing in the NR adjustment processing unit 24 will be described later with reference to FIG.

ゲイン処理部23は、入力される画像データに対して、トーンカーブ82に示されるように、ゲイン(階調補正代表値)Gを一律に印加する。これにより、ヒストグラム92に示されるように、明るさの軸(横軸)をゲイン分だけ引き延ばすことになるので、画像の信号のレベル幅が広がる。したがって、階調補正代表値Gの印加前には、ヒストグラム91の範囲Eに示されるように暗かった主要被写体の明るさ分布は、ヒストグラム92の範囲Eに示されるように、主要被写体に合わせて明るく補正される。   The gain processing unit 23 uniformly applies a gain (gradation correction representative value) G to the input image data as indicated by the tone curve 82. As a result, as shown in the histogram 92, the brightness axis (horizontal axis) is extended by the gain, so that the level width of the image signal is widened. Therefore, before applying the gradation correction representative value G, the brightness distribution of the main subject that is dark as shown in the range E of the histogram 91 matches the main subject as shown in the range E of the histogram 92. Brightly corrected.

NR処理部25は、ゲイン処理部23の後の画像データに対して、NR処理を行う。このとき、画像データは、ゲイン処理部23により明るさが調整されて、図2を参照して上述した視覚モデルが正常に動作する土台ができているので、NR処理部25においては、主要被写体に対して好適なNR処理を行うことができる。   The NR processing unit 25 performs NR processing on the image data after the gain processing unit 23. At this time, since the brightness of the image data is adjusted by the gain processing unit 23 and a foundation for the normal operation of the visual model described above with reference to FIG. 2 is formed, the NR processing unit 25 uses the main subject. Therefore, a suitable NR process can be performed.

TM処理部26は、NR処理後の画像データに対して、トーンカーブ83で表される正規化階調補正特性を用いて、階調補正を行う。正規化階調補正特性は、主要被写体の代表値(例えば、x0)に対して正規化されたものであるので、その代表値x0まではリニアとなるが、一般的に、代表値x0より、輝度の高い部分の明るさを下げる性質を有する。これにより、後段の信号処理部16における白とびが抑制される。   The TM processing unit 26 performs tone correction on the image data after NR processing using the normalized tone correction characteristic represented by the tone curve 83. Since the normalized gradation correction characteristic is normalized with respect to the representative value (for example, x0) of the main subject, it is linear up to the representative value x0, but in general, from the representative value x0, It has the property of reducing the brightness of high brightness parts. As a result, over-exposure in the signal processing unit 16 at the subsequent stage is suppressed.

また、階調補正においては、主要被写体の代表値に対して正規化した階調補正特性が用いられる。これにより、ヒストグラム92とヒストグラム93に示されるように、主要被写体の明るさの範囲Eの幅を変えることなく、NR処理により広がった明るさの軸(画像信号のレベル幅)を狭めることができる。   In gradation correction, gradation correction characteristics normalized with respect to the representative value of the main subject are used. Thereby, as shown in the histogram 92 and the histogram 93, the brightness axis (level width of the image signal) spread by the NR process can be narrowed without changing the width of the brightness range E of the main subject. .

以上のように、画像信号処理部15においては、ゲイン処理部23とTM処理部26の2段階の明るさの階調補正処理により、DET処理部21が決定した階調補正特性に従って、画像データの明るさが補正される。   As described above, in the image signal processing unit 15, the image data is processed according to the gradation correction characteristics determined by the DET processing unit 21 by the two-step brightness gradation correction processing of the gain processing unit 23 and the TM processing unit 26. The brightness of is corrected.

すなわち、TM処理部26が、ゲイン処理部23と協調して動作することで、DET処理部21の決定(階調補正特性)に応じた画像データの明るさ補正が達成される。   That is, the TM processing unit 26 operates in cooperation with the gain processing unit 23, whereby the brightness correction of the image data according to the determination (tone correction characteristics) of the DET processing unit 21 is achieved.

なお、参考として、TM処理部26がない場合には、画像全体がゲイン処理部23による明るさ調整で明るく補正されたまま、後段の信号処理部16に入力されるため、白とびが起こり、広DR撮影の効果がでない恐れがある。   For reference, when the TM processing unit 26 is not provided, the entire image is input to the subsequent signal processing unit 16 while being brightly corrected by the brightness adjustment by the gain processing unit 23. Wide DR shooting may not be effective.

[デジタルカメラの動作]
次に、図7のフローチャートを参照して、デジタルカメラ1の広DR撮影処理について説明する。例えば、ユーザの操作によりデジタルカメラ1の電源が投入され、デジタルカメラ1の動作モードが広DR撮影モードに切り替えられたとき、図7の処理が開始される。
[Operation of digital camera]
Next, the wide DR shooting process of the digital camera 1 will be described with reference to the flowchart of FIG. For example, when the digital camera 1 is turned on by a user operation and the operation mode of the digital camera 1 is switched to the wide DR shooting mode, the process of FIG. 7 is started.

ステップS11において、露出制御コントローラ11と露光量調整部12は、露出の制御を行う。すなわち、露出制御コントローラ11は、デジタルカメラ1の撮影モードが広DR撮影モードであることを確認する。そして、露出制御コントローラ11は、例えば、図4を参照して上述したように、撮像素子13上での白とびを防ぎつつ、主要被写体の露光量が極端に少なくならないように露出を調整する方法を用い、露光調整量(露光量調整部12の制御値)を設定する。露光量調整部12は、露出制御コントローラ11からの制御値を用いて、撮像素子13の露光量を調整し、露光を行う。   In step S11, the exposure controller 11 and the exposure amount adjustment unit 12 perform exposure control. That is, the exposure controller 11 confirms that the shooting mode of the digital camera 1 is the wide DR shooting mode. Then, for example, as described above with reference to FIG. 4, the exposure controller 11 adjusts the exposure so that the exposure amount of the main subject is not extremely reduced while preventing overexposure on the image sensor 13. Is used to set the exposure adjustment amount (control value of the exposure amount adjustment unit 12). The exposure adjustment unit 12 adjusts the exposure of the image sensor 13 using the control value from the exposure controller 11, and performs exposure.

ステップS12において、撮像素子13は、露光量調整部12により調整された露光で、被写体を撮像する。すなわち、撮像素子13は、レンズなどからなる図示せぬ光学ブロックを通じて被写体などから入射された光を、アナログ信号に変換する。   In step S <b> 12, the image sensor 13 images the subject with the exposure adjusted by the exposure amount adjustment unit 12. That is, the image sensor 13 converts light incident from a subject or the like through an optical block (not shown) including a lens or the like into an analog signal.

露光された光は、撮像素子13によりアナログ信号に変換され、さらに、A/D変換部14により量子化されてデジタルの画像データになる。A/D変換部14からの画像データは、画像信号処理部15のDET処理部21およびゲイン処理部23に出力される。   The exposed light is converted into an analog signal by the image sensor 13 and further quantized by the A / D converter 14 into digital image data. Image data from the A / D conversion unit 14 is output to the DET processing unit 21 and the gain processing unit 23 of the image signal processing unit 15.

ステップS13において、DET処理部21は、A/D変換部14からの画像データを解析し、露出制御コントローラ11からの露出調整量を用いて、画像データの明るさを補正する階調補正特性、すなわち、階調補正特性を表す階調補正関数を決定する。階調補正関数は、図5を参照して上述したように、例えば、高輝度部分の白とびを抑え、かつ、主要被写体が明るくなるように決定される。DET処理部21により決定された階調補正関数は、振分処理部22の代表値検出部71および階調補正正規化部72に出力される。   In step S13, the DET processing unit 21 analyzes the image data from the A / D conversion unit 14, and uses the exposure adjustment amount from the exposure controller 11 to correct the brightness of the image data. That is, a gradation correction function representing gradation correction characteristics is determined. As described above with reference to FIG. 5, the gradation correction function is determined, for example, so as to suppress overexposure in a high-luminance portion and to brighten the main subject. The gradation correction function determined by the DET processing unit 21 is output to the representative value detection unit 71 and the gradation correction normalization unit 72 of the distribution processing unit 22.

ステップS14において、代表値検出部71は、DET処理部21が決めた階調補正関数から、階調補正代表値Gを検出する。図6を参照して上述したように、階調補正代表値Gは、例えば、階調補正特性が関数y=f(x)で表されるとき、その入出力比f(x)/xを用いて、式(1)から求められる。代表値検出部71により検出された階調補正代表値Gは、階調補正正規化部72、ゲイン処理部23、およびNR調整処理部24に出力される。   In step S <b> 14, the representative value detection unit 71 detects the gradation correction representative value G from the gradation correction function determined by the DET processing unit 21. As described above with reference to FIG. 6, for example, when the gradation correction characteristic is represented by the function y = f (x), the gradation correction representative value G is expressed by the input / output ratio f (x) / x. And obtained from equation (1). The gradation correction representative value G detected by the representative value detection unit 71 is output to the gradation correction normalization unit 72, the gain processing unit 23, and the NR adjustment processing unit 24.

ステップS15において、階調補正正規化部72は、DET処理部21が決めた階調補正関数から、代表値検出部71が検出した階調補正代表値Gを除いた残りの成分として、正規化階調補正特性を表す正規化階調補正関数f'(x)を求める。図6を参照して上述したように、正規化階調補正関数f'(x)は、例えば、階調補正特性が関数y=f(x)で表されるとき、代表値検出部71が検出した階調補正代表値Gを用いて、式(2)で求められる。   In step S15, the gradation correction normalization unit 72 normalizes the remaining components obtained by removing the gradation correction representative value G detected by the representative value detection unit 71 from the gradation correction function determined by the DET processing unit 21. A normalized gradation correction function f ′ (x) representing gradation correction characteristics is obtained. As described above with reference to FIG. 6, the normalized gradation correction function f ′ (x) is obtained by the representative value detection unit 71 when the gradation correction characteristic is represented by a function y = f (x), for example. Using the detected gradation correction representative value G, it is obtained by Expression (2).

階調補正正規化部72により求められた正規化階調補正関数f'(x)は、TM処理部26に出力される。   The normalized gradation correction function f ′ (x) obtained by the gradation correction normalization unit 72 is output to the TM processing unit 26.

ステップS16において、ゲイン処理部23は、代表値検出部71により決定された階調補正代表値Gを用いて、A/D変換部14からの画像データの画像全体の明るさを補正する。すなわち、ゲイン処理部23は、画像データに対して、ゲイン(階調補正代表値)Gを一律に印加する。これにより、主要被写体に合わせて画像データの画像全体の明るさが補正される。ゲイン処理部23により明るさが補正された画像データは、NR処理部25に出力される。   In step S <b> 16, the gain processing unit 23 corrects the brightness of the entire image of the image data from the A / D conversion unit 14 using the gradation correction representative value G determined by the representative value detection unit 71. That is, the gain processing unit 23 uniformly applies a gain (gradation correction representative value) G to the image data. Thereby, the brightness of the entire image of the image data is corrected according to the main subject. The image data whose brightness has been corrected by the gain processing unit 23 is output to the NR processing unit 25.

ステップS17において、NR調整処理部24は、代表値検出部71により検出された階調補正代表値Gを用いて、NR処理部25が使用するノイズモデルを設定する。例えば、NR処理部25が使用するノイズモデルは、特許文献1に記載される次の式(3)により定義される。   In step S <b> 17, the NR adjustment processing unit 24 sets a noise model used by the NR processing unit 25 using the gradation correction representative value G detected by the representative value detection unit 71. For example, the noise model used by the NR processing unit 25 is defined by the following equation (3) described in Patent Document 1.

Figure 0004645921
式(3)において、パラメータaは、入力レベルに略比例するノイズ成分を定義するものであり、パラメータbは、入力レベルの平方根に略比例するノイズ成分を定義するものであり、パラメータcは、入力レベルに依存しないノイズ成分を定義するものである。なお、σ(x)は、ノイズ信号の振幅の分散を表しており、物理的に計算される値である。
Figure 0004645921
In equation (3), parameter a defines a noise component that is approximately proportional to the input level, parameter b defines a noise component that is approximately proportional to the square root of the input level, and parameter c is It defines noise components that do not depend on the input level. Note that σ (x) represents the variance of the amplitude of the noise signal and is a physically calculated value.

この式(3)で表されるノイズモデルσ(x)で使用されるパラメータa,b,cは、それぞれ次の式(4)乃至(6)で定義できる。   The parameters a, b, and c used in the noise model σ (x) represented by the equation (3) can be defined by the following equations (4) to (6), respectively.

a ≡ Va 2 ・・・(4)
b ≡ gFD 2・gsig 2 ・・・(5)
c ≡ nri 2・gsig 2 ・・・(6)
a ≡ V a 2 (4)
b ≡ g FD 2・ g sig 2 (5)
c ≡ n ri 2・ g sig 2・ ・ ・ (6)

式(4)のパラメータVaは、撮像素子13における開口(感度)ムラの特性を示す値であり、撮像素子13の受光部に均一な光を入射させたときの画素ごとの出力の平均値のバラツキを割合として示したものである。より具体的には、受光部の均一な光を入射させたときの出力値の分散から、光学ショットノイズとフロアノイズの分散を減算した値の平方根として算出される。 Parameter V a of formula (4) is a value indicating the characteristics of the opening (sensitivity) unevenness in the image pickup device 13, the average value of the output of each pixel when is incident uniform light to the light receiving portion of the image pickup device 13 Is shown as a percentage. More specifically, it is calculated as the square root of the value obtained by subtracting the dispersion of the optical shot noise and the floor noise from the dispersion of the output value when the uniform light of the light receiving unit is incident.

パラメータbは、撮像素子13が発生する光学ショットノイズに対応している。式(5)のパラメータgFDは、撮像素子13の電荷量を電圧値に変換する際に生じるゲイン値を示す。 The parameter b corresponds to optical shot noise generated by the image sensor 13. A parameter g FD in Expression (5) indicates a gain value generated when the charge amount of the image sensor 13 is converted into a voltage value.

パラメータcは、入力レベルに依存したいフロアノイズに対応している。式(6)のパラメータnriは、熱雑音、ダークショットノイズ、ダークムラなどのフロアノイズをアナログ処理系入力部における信号レベルに換算した換算雑音値を示す。具体的には、撮像素子13の受光部への入射光を遮断したときに得られた画素ごとの出力値の分散の平方根として算出される。 The parameter c corresponds to the floor noise that wants to depend on the input level. The parameter n ri in Expression (6) indicates a converted noise value obtained by converting floor noise such as thermal noise, dark shot noise, dark unevenness, etc. into a signal level in the analog processing system input unit. Specifically, it is calculated as the square root of the variance of the output value for each pixel obtained when the incident light to the light receiving portion of the image sensor 13 is blocked.

式(5)および式(6)におけるパラメータgsigは、アナログ画像信号の伝送系とA/D変換系における総合ゲインを示す。このパラメータgsigは、次の式(7)によって表される。 The parameter g sig in the equations (5) and (6) indicates the total gain in the analog image signal transmission system and the A / D conversion system. This parameter g sig is expressed by the following equation (7).

Figure 0004645921
Figure 0004645921

ここで、パラメータgCDSは、図示せぬCDSにおいて生じるゲインを示す。パラメータgaは、A/D変換部14の前段に設けられる図示せぬアナログアンプにおいて生じるゲインをします。パラメータnbitsは、A/D変換部14の出力データの最大ビット数を示す。パラメータVfsは、A/D変換部14の入力電圧の許容最大値を示す。 Here, the parameter g CDS indicates a gain generated in a CDS (not shown). The parameter g a is the gain generated in the analog amplifier (not shown) provided in the previous stage of the A / D converter 14. The parameter n bits indicates the maximum number of bits of output data of the A / D conversion unit 14. The parameter V fs indicates an allowable maximum value of the input voltage of the A / D conversion unit 14.

パラメータgdは、A/D変換後の画像データに対して、その後の画像信号処理部15に設けられたゲイン処理部23で印加されるゲイン(階調補正代表値)Gを示す。 The parameter g d indicates a gain (gradation correction representative value) G applied to the image data after A / D conversion by the gain processing unit 23 provided in the subsequent image signal processing unit 15.

すなわち、NR調整処理部24は、式(7)に、ゲイン(階調補正代表値)Gを乗算して、パラメータを設定して、式(3)の関数の形状を求め、それをNR処理部25が使用するノイズモデルに設定する。これにより、ゲイン処理部23で印加されるゲイン(階調補正代表値)Gが式(7)のパラメータgdに対して与える影響を加味することができる。 That is, the NR adjustment processing unit 24 multiplies Expression (7) by a gain (gradation correction representative value) G, sets parameters, obtains the shape of the function of Expression (3), and performs NR processing on it. The noise model used by the unit 25 is set. Thereby, the influence which the gain (gradation correction representative value) G applied by the gain processing unit 23 has on the parameter g d of the equation (7) can be taken into consideration.

ステップS18において、NR処理部25は、ゲイン処理部23の後の画像データに対して、NR処理を行う。ステップS18の処理を具体的に説明すると、物理特性値算出部31は、ステップS16においてパラメータが設定されたノイズモデルを用いて、ゲイン処理部23からの画像データの輝度に依存する値であるノイズ量σ2を算出し、閾値決定部33に出力する。 In step S <b> 18, the NR processing unit 25 performs NR processing on the image data after the gain processing unit 23. The processing in step S18 will be specifically described. The physical characteristic value calculation unit 31 uses a noise model in which parameters are set in step S16, and is a noise that is a value depending on the luminance of the image data from the gain processing unit 23. The amount σ 2 is calculated and output to the threshold value determination unit 33.

視覚特性値算出部32は、ゲイン処理部23からの画像データが示す画像の色R,G,Bを判別し、図3を参照して上述した変換テーブルからなる視覚モデルを用いて、物理特性値を補正する係数である補正パラメータkを算出し、閾値決定部33に出力する。   The visual characteristic value calculation unit 32 determines the colors R, G, and B of the image indicated by the image data from the gain processing unit 23, and uses the visual model including the conversion table described above with reference to FIG. A correction parameter k, which is a coefficient for correcting the value, is calculated and output to the threshold value determination unit 33.

閾値決定部33は、物理特性値算出部31からのノイズ量σ2と、視覚特性値算出部32からの補正パラメータkとを乗算し、乗算した値であるkσ2をフィルタ閾値εとして、ノイズ除去部34に出力する。 The threshold value determination unit 33 multiplies the noise amount σ 2 from the physical characteristic value calculation unit 31 by the correction parameter k from the visual characteristic value calculation unit 32, and uses the multiplied value kσ 2 as the filter threshold value ε to generate noise. The data is output to the removal unit 34.

ノイズ除去部34は、ゲイン処理部23からの画像データに対して、閾値決定部33からのフィルタ閾値εを用いて、例えば、εフィルタによるノイズ除去を実行し、ノイズ除去処理が施された画像データを後段のTM処理部26に出力する。   The noise removing unit 34 performs, for example, noise removal using an ε filter on the image data from the gain processing unit 23 using the filter threshold value ε from the threshold value determining unit 33, and is subjected to the noise removal processing. The data is output to the TM processing unit 26 at the subsequent stage.

このように、NR処理部25においては、ノイズモデルからのノイズ量σ2と視覚モデルからの補正パラメータkとを乗算したフィルタ閾値εが決定される。したがって、入力される画像データがゲイン処理部23により明るさが調整されていることにより、視覚モデルが正しく動作し、主要被写体に対して、ノイズの物理特性と人間の視覚特性とを考慮した適切な閾値を用いたノイズ除去処理を行うことができる。 As described above, the NR processing unit 25 determines the filter threshold ε obtained by multiplying the noise amount σ 2 from the noise model and the correction parameter k from the visual model. Therefore, the brightness of the input image data is adjusted by the gain processing unit 23, so that the visual model operates correctly and the main subject is appropriately considered in consideration of physical characteristics of noise and human visual characteristics. It is possible to perform noise removal processing using a simple threshold.

ステップS19において、TM処理部26は、NR処理後の画像データに対して、例えば、図6を参照して上述したトーンカーブ83で表される正規化階調補正関数を用いて、階調補正処理として、トーンカーブ処理を行う。階調補正された画像データは、信号処理部16に出力される。   In step S19, the TM processing unit 26 performs tone correction on the image data after the NR processing using, for example, the normalized tone correction function represented by the tone curve 83 described above with reference to FIG. As processing, tone curve processing is performed. The tone-corrected image data is output to the signal processing unit 16.

ステップS20において、信号処理部16は、TM処理部26からの画像データに対して、後段の表示部17への表示や、記録部18における記録に適した画像データに変換する信号処理を行い、対応する表示部17や記録部18に出力する。   In step S <b> 20, the signal processing unit 16 performs signal processing for converting the image data from the TM processing unit 26 into image data suitable for display on the subsequent display unit 17 or recording in the recording unit 18, The data is output to the corresponding display unit 17 and recording unit 18.

例えば、表示部17への表示に適したカメラ信号処理が行われた画像データは、表示部17に表示される。記録部18における記録に適したカメラ信号処理が行われた画像データは、記録部18により図示せぬ光ディスクまたは磁気ディスクなどの記録媒体に記録される。   For example, image data that has undergone camera signal processing suitable for display on the display unit 17 is displayed on the display unit 17. Image data that has undergone camera signal processing suitable for recording in the recording unit 18 is recorded by a recording unit 18 on a recording medium such as an optical disk or a magnetic disk (not shown).

以上のように、代表値検出部71において、画像データに対して決定された階調補正関数から、階調補正代表値Gを検出し、ゲイン処理部23において、検出された階調補正代表値Gを用いて、画像データの画像全体の明るさを補正するようにした。これにより、主要被写体に対してNR処理を好適に行うことができる。すなわち、階調補正処理とノイズリダクション処理を併用した場合でも、ノイズが適切に抑制された画像を得ることができる。   As described above, the representative value detection unit 71 detects the gradation correction representative value G from the gradation correction function determined for the image data, and the gain processing unit 23 detects the detected gradation correction representative value. G is used to correct the brightness of the entire image data. Thereby, NR processing can be suitably performed on the main subject. That is, even when tone correction processing and noise reduction processing are used in combination, an image in which noise is appropriately suppressed can be obtained.

また、TM処理部26が、ゲイン処理部23と協調して動作することで、DET処理部21の決定(階調補正関数)に応じた画像データの明るさ補正が達成される。すなわち、TM処理部26において、一般的に輝度の高い部分の明るさを下げる性質を有する正規化階調補正特性を用いて階調補正が行われる。これにより、後段の信号処理部16における白とびを抑制し、広DR撮影の効果を有効にすることができる。   Further, the TM processing unit 26 operates in cooperation with the gain processing unit 23, whereby the brightness correction of the image data according to the determination (tone correction function) of the DET processing unit 21 is achieved. That is, in the TM processing unit 26, gradation correction is performed using a normalized gradation correction characteristic that generally has a property of reducing the brightness of a portion with high luminance. Thereby, overexposure in the signal processing unit 16 at the subsequent stage can be suppressed, and the effect of wide DR photography can be made effective.

さらに、階調補正正規化部72により階調補正特性が正規化され、TM処理部26により正規化階調補正関数を用いて階調補正が行われる。これにより、NR処理の性能を確保したまま、広DR撮影時の信号の連続性(レベル方向の変化の滑らかさ)の劣化を改善することができる。   Further, the gradation correction characteristic is normalized by the gradation correction normalization unit 72, and the gradation correction is performed by the TM processing unit 26 using the normalized gradation correction function. As a result, it is possible to improve the deterioration of signal continuity (smooth change in the level direction) during wide DR shooting while ensuring the performance of NR processing.

以上により、階調補正処理とノイズリダクション処理を併用した場合における処理の性能劣化を抑制することができる。   As described above, it is possible to suppress deterioration in processing performance when the tone correction processing and the noise reduction processing are used in combination.

[効果の説明]
上述した広DR撮影時の信号の連続性の劣化に対する改善効果について、図8乃至図10を参照して詳しく説明する。図8においては、標準撮影時の従来構成の各処理における信号の連続性を表すグラフ111乃至114が示されている。図9においては、広DR撮影時の従来構成の各処理における信号の連続性を表すグラフ121乃至124が示されている。図10においては、広DR撮影時の画像信号処理部15の各処理における信号の連続性を表すグラフ131乃至135が示されている。
[Description of effects]
With reference to FIGS. 8 to 10, a detailed description will be given of an improvement effect on the deterioration of the continuity of the signal during the wide DR shooting described above. FIG. 8 shows graphs 111 to 114 representing signal continuity in each process of the conventional configuration during standard imaging. FIG. 9 shows graphs 121 to 124 representing signal continuity in each process of the conventional configuration during wide DR shooting. FIG. 10 shows graphs 131 to 135 representing signal continuity in each process of the image signal processing unit 15 during wide DR shooting.

なお、図8および図9の従来構成として、先にNR処理を行い、次に階調補正処理を行う構成を考える。逆の構成(先に階調補正処理を行う構成)は、NR処理のノイズと原信号の弁別性を低下させるため、一般に用いることができないためである。また、図8乃至図10においては、0.5/0.5 NR処理 LPF(Low Pass Filter)係数に示されるように、NR処理として、説明の便宜上、2タップのεフィルタを用いることとする。   As a conventional configuration shown in FIGS. 8 and 9, a configuration in which NR processing is performed first and tone correction processing is performed next is considered. This is because the reverse configuration (the configuration in which gradation correction processing is performed first) is not generally used because it reduces the discrimination between the noise of the NR processing and the original signal. Further, in FIGS. 8 to 10, as shown in the 0.5 / 0.5 NR processing LPF (Low Pass Filter) coefficient, a 2-tap ε filter is used as the NR processing for convenience of explanation.

図8のグラフ111は、アナログ信号の画像データの画素位置におけるレベルを表している。図8のグラフ112は、A/D変換後の画像データの信号の連続性を表している。図8のグラフ113は、NR処理後の画像データの信号の連続性を表している。図8のグラフ114は、階調補正後の画像データの信号の連続性を表している。   A graph 111 in FIG. 8 represents the level at the pixel position of the image data of the analog signal. A graph 112 in FIG. 8 represents the continuity of the signal of the image data after A / D conversion. A graph 113 in FIG. 8 represents the continuity of the image data signal after the NR processing. A graph 114 in FIG. 8 represents the continuity of the signal of the image data after gradation correction.

図9のグラフ121は、アナログ信号の画像データの画素位置におけるレベルを表している。図9のグラフ122は、A/D変換後の画像データの信号の連続性を表している。図9のグラフ123は、NR処理後の画像データの信号の連続性を表している。図9のグラフ124は、階調補正後の画像データの信号の連続性を表している。   A graph 121 in FIG. 9 represents the level at the pixel position of the image data of the analog signal. A graph 122 in FIG. 9 represents the continuity of the signal of the image data after A / D conversion. A graph 123 in FIG. 9 represents the continuity of the image data signal after the NR processing. A graph 124 in FIG. 9 represents the continuity of the signal of the image data after the gradation correction.

図10のグラフ131は、アナログ信号の画像データの画素位置におけるレベルを表している。図10のグラフ132は、A/D変換後の画像データの信号の連続性を表している。図10のグラフ133は、ゲイン処理後の画像データの信号の連続性を表している。図10のグラフ134は、NR処理後の画像データの信号の連続性を表している。図10のグラフ135は、階調補正後の画像データの信号の連続性を表している。   A graph 131 in FIG. 10 represents the level at the pixel position of the image data of the analog signal. A graph 132 in FIG. 10 represents the continuity of the signal of the image data after A / D conversion. A graph 133 in FIG. 10 represents the continuity of the image data signal after the gain processing. A graph 134 in FIG. 10 represents the continuity of the signal of the image data after the NR processing. A graph 135 in FIG. 10 represents the continuity of the image data signal after gradation correction.

なお、図8のグラフ111、図9のグラフ121、および図10のグラフ131においては、横軸が画素位置を表しており、縦軸がレベルを表している。すなわち、図9のグラフ121および図10のグラフ131のレベルは、図8のグラフ111のレベルよりも、が低いことを示している。   In the graph 111 in FIG. 8, the graph 121 in FIG. 9, and the graph 131 in FIG. 10, the horizontal axis represents the pixel position, and the vertical axis represents the level. That is, the levels of the graph 121 of FIG. 9 and the graph 131 of FIG. 10 are lower than the level of the graph 111 of FIG.

また、図8のグラフ112乃至114、図9のグラフ122乃至124、および図10のグラフ132乃至135における点線で示される目盛は、量子化精度を表しており、その目盛を用いた各グラフの段差が緩やかなほど、量子化精度が細かく、信号が連続していることを表している。すなわち、図8のグラフ112乃至114、図9のグラフ122および123、並びに、図10のグラフ132、134、および135の目盛1つの段差は、図9のグラフ124および図10のグラフ133の目盛2つの段差より、緩やかであり、量子化精度が細かく、信号が連続していることを示している。   Further, the scales indicated by the dotted lines in the graphs 112 to 114 in FIG. 8, the graphs 122 to 124 in FIG. 9, and the graphs 132 to 135 in FIG. 10 represent the quantization accuracy. The gentler the step, the finer the quantization accuracy and the more continuous the signal. That is, one step of the scales of the graphs 112 to 114 of FIG. 8, the graphs 122 and 123 of FIG. 9, and the graphs 132, 134, and 135 of FIG. 10 is the scale of the graph 124 of FIG. 9 and the graph 133 of FIG. It is gentler than the two steps, the quantization accuracy is fine, and the signal is continuous.

これらのグラフを参照して、まず、従来構成における広DR撮影の場合について説明する。図8のグラフ111および図9のグラフ121に示されるように、従来構成における広DR撮影の場合、標準撮影の場合に比べて、レベルの低いアナログ信号に対してA/D変換が行われている。   With reference to these graphs, first, the case of wide DR imaging in the conventional configuration will be described. As shown in the graph 111 in FIG. 8 and the graph 121 in FIG. 9, in the case of wide DR shooting in the conventional configuration, A / D conversion is performed on an analog signal having a lower level than in the case of standard shooting. Yes.

そして、従来構成における広DR撮影の場合、A/D変換後、NR処理が行われた後に、階調補正が行われ、主要被写体の明るさが補正される。このとき、階調補正により主要被写体に割り当てる信号のレンジが広げられる。よって、従来の広DR撮影では、図9のグラフ124に示されるように、階調補正後には、図8のグラフ114に示される標準撮影時の画像データに較べ、信号の連続性が劣化した画像データが出力される。   In the case of wide DR shooting in the conventional configuration, after A / D conversion, after NR processing, tone correction is performed, and the brightness of the main subject is corrected. At this time, the signal range assigned to the main subject is expanded by the gradation correction. Therefore, in the conventional wide DR shooting, as shown in the graph 124 of FIG. 9, the continuity of the signal is deteriorated after the gradation correction as compared with the image data at the time of the standard shooting shown in the graph 114 of FIG. Image data is output.

一方、画像信号処理部15においては、図8のグラフ111および図10のグラフ131に示されるように、従来構成における広DR撮影の場合と同様に、標準撮影の場合に比べて、レベルの低いアナログ信号に対してA/D変換が行われている。   On the other hand, as shown in the graph 111 in FIG. 8 and the graph 131 in FIG. 10, the image signal processing unit 15 has a lower level than in the case of standard imaging, as in the case of wide DR imaging in the conventional configuration. A / D conversion is performed on the analog signal.

そして、画像信号処理部15においては、A/D変換後、図10のグラフ133に示されるように、ゲイン処理において、明るさの軸(横軸)がゲイン分だけ引き延ばされ、信号の連続性が劣化した画像データが生成される。すなわち、デジタル信号のゲインを上げることで、量子化誤差の影響が大きくなり、信号が飛び飛びの値しか持たなくなってしまう(変化量が大きくなり、連続性が悪化してしまう)。   Then, after the A / D conversion, the image signal processing unit 15 extends the brightness axis (horizontal axis) by the gain in the gain processing as shown in the graph 133 of FIG. Image data with degraded continuity is generated. That is, by increasing the gain of the digital signal, the influence of the quantization error increases, and the signal has only a jump value (the amount of change increases and the continuity deteriorates).

しかしながら、その画像データは、図10のグラフ134に示されるように、その後のNR処理の平滑化作用により信号の連続性が改善された画像データとなる。すなわち、通常、εフィルタの閾値εは、信号の精度(=レベル方向の分解能)よりも大きいので、NR処理の平滑化作用により、信号の連続性の改善効果を得ることができる。   However, the image data becomes image data in which the continuity of the signal is improved by the smoothing action of the subsequent NR process, as shown in the graph 134 of FIG. That is, since the threshold ε of the ε filter is usually larger than the accuracy of the signal (= resolution in the level direction), the effect of improving the continuity of the signal can be obtained by the smoothing action of the NR process.

さらに、階調補正においては、正規化した階調補正特性を用いることにより、図6のヒストグラム92とヒストグラム93を用いて上述したように、NR処理により引き延ばされた画像の信号のレベル幅を狭めるように動作する。したがって、図9のグラフ124で示される従来の階調補正後の画像データと異なり、階調補正で信号の連続性が悪化することは起こらない。結果として、図10のグラフ135に示されるように、画像信号処理部15の階調補正後の画像データは、図9のグラフ124で示される従来の階調補正後の画像データと比べて、NR処理の平滑化の効果だけ、信号の連続性に優れたものとなる。   Further, in the gradation correction, by using the normalized gradation correction characteristics, as described above using the histogram 92 and the histogram 93 in FIG. 6, the level width of the signal of the image stretched by the NR process Works to narrow. Therefore, unlike the conventional image data after gradation correction shown by the graph 124 in FIG. 9, the continuity of the signal does not deteriorate due to the gradation correction. As a result, as shown in the graph 135 of FIG. 10, the image data after the gradation correction of the image signal processing unit 15 is compared with the image data after the gradation correction shown in the graph 124 of FIG. Only the smoothing effect of NR processing is excellent in signal continuity.

以上のように、主要被写体に対して明るさが調整された状態でNR処理が行われることにより、NR処理のパラメータが最適化されて、NR処理と階調補正処理とを併用した場合でも、ノイズが適切に抑制された画像を得ることができる。   As described above, by performing NR processing with the brightness adjusted for the main subject, the parameters of NR processing are optimized, and even when NR processing and gradation correction processing are used together, An image in which noise is appropriately suppressed can be obtained.

また、ゲイン処理による信号の連続性の悪化が改善され、さらに、階調補正処理が信号の連続性を改善する方向に作用するため、全体として、信号の連続性に優れた画像を得ることができる。   In addition, the deterioration of signal continuity due to gain processing is improved, and furthermore, since tone correction processing acts in a direction to improve signal continuity, it is possible to obtain an image with excellent signal continuity as a whole. it can.

なお、上記説明においては、階調補正の例として、トーンカーブ処理を用いて説明したが、トーンカーブ処理に限らず、ダイナミックレンジ圧縮処理を用いることもできる。   In the above description, tone curve processing is used as an example of tone correction. However, not only tone curve processing but also dynamic range compression processing can be used.

ダイナミックレンジ圧縮処理とは、画像中の細部の見えを確保しながら、信号のレンジを圧縮する処理であり、技術的には、画像信号を空間的な特徴に基づいて分解、あるいは、抽出して、2つ以上の成分にわけ、それぞれの信号の強度を個別に調整する処理である。   Dynamic range compression processing is processing that compresses the range of a signal while ensuring the appearance of details in the image. Technically, the image signal is decomposed or extracted based on spatial characteristics. This is a process of dividing the intensity of each signal into two or more components.

例えば、特開2001−275015号公報(以下、特許文献4と称する)には、画像の低周波数帯域成分を抽出して、LUTによりレンジを圧縮するとともに、高周波数帯域成分を抽出して、強調するダイナミックレンジ圧縮処理が記載されている。また、特開2007−049540号公報(以下、特許文献5と称する)には、画像の低周波数成分を抽出してレンジを圧縮し、コントラスト補正により高周波数成分を選択的に強調するダイナミックレンジ圧縮処理が記載されている。   For example, Japanese Patent Laid-Open No. 2001-275015 (hereinafter referred to as Patent Document 4) extracts a low frequency band component of an image, compresses a range with an LUT, extracts a high frequency band component, and enhances it. A dynamic range compression process is described. Japanese Unexamined Patent Application Publication No. 2007-049540 (hereinafter referred to as Patent Document 5) extracts a low-frequency component of an image, compresses the range, and selectively enhances the high-frequency component by contrast correction. Processing is described.

すなわち、TM処理部26で階調補正として、特許文献4および5に示されるようなダイナミックレンジ圧縮処理が用いられる場合、例えば、低周波数成分のレンジ圧縮の際に、低周波成分に、正規化階調補正関数でトーンカーブ処理が行われる。   That is, when dynamic range compression processing as shown in Patent Documents 4 and 5 is used as gradation correction in the TM processing unit 26, for example, normalization is performed on the low-frequency component during range compression of the low-frequency component. Tone curve processing is performed with the tone correction function.

また、階調補正の例としては、さらに、画像の周辺部の明るさを上げるシェーディング処理を用いることもできる。次に、図11を参照して、TM処理部26で階調補正として、画像の周辺部の露光量を少なくする働きを有するレンズのシェーディングの補正処理であるシェーディング処理が用いられる場合について説明する。   Further, as an example of gradation correction, a shading process for increasing the brightness of the peripheral portion of the image can be used. Next, with reference to FIG. 11, a description will be given of a case where a shading process, which is a shading correction process for a lens having a function of reducing the exposure amount in the peripheral part of the image, is used as the gradation correction in the TM processing unit 26. .

[画像信号処理の説明]
図11は、階調補正として、シェーディング処理が用いられる場合の画像信号処理部15の処理の詳細を示す図である。図11の例において、DET処理部21およびTM処理部26が、それぞれ、DET処理部151およびTM処理部152に入れ替わったことが図6の例と異なっているだけであり、振分処理部22、ゲイン処理部23、およびNR処理部25は共通している。
[Description of image signal processing]
FIG. 11 is a diagram illustrating details of the processing of the image signal processing unit 15 when the shading processing is used as the gradation correction. 11 is different from the example of FIG. 6 in that the DET processing unit 21 and the TM processing unit 26 are replaced with the DET processing unit 151 and the TM processing unit 152, respectively. The gain processing unit 23 and the NR processing unit 25 are common.

図11の例においては、シェーディング補正用のゲインカーブ171乃至173の各グラフと、画像181乃至183が示されている。なお、画像181乃至183においては、主要被写体である人物の明るさの変化が表されていないが、実際には、人物の明るさは、それぞれの画像181乃至183の背景と同じように変化する。   In the example of FIG. 11, graphs of gain curves 171 to 173 for shading correction and images 181 to 183 are shown. In addition, in the images 181 to 183, the change in the brightness of the person who is the main subject is not shown, but in reality, the brightness of the person changes in the same way as the background of the respective images 181 to 183. .

また、ゲインカーブ171乃至173の各グラフにおいて、横軸は、画像181乃至183における像高(光軸の位置を原点とするピクセル位置)を表しており、像高0(図中左端)は、画面181の中央位置(光軸の位置)、像高x0は、主要被写体(画像181乃至183における人物)の像高を示している。縦軸はゲインを表している。   In each graph of the gain curves 171 to 173, the horizontal axis represents the image height (pixel position with the position of the optical axis as the origin) in the images 181 to 183, and the image height 0 (the left end in the figure) is The center position (position of the optical axis) of the screen 181 and the image height x0 indicate the image height of the main subject (the person in the images 181 to 183). The vertical axis represents the gain.

ゲインカーブ171は、DET処理部151により決定された階調補正特性を表しており、ゲインカーブ172は、代表値検出部71により検出された階調補正代表値Gを一律に印加するゲインカーブ(直線)を表している。ゲインカーブ173は、階調補正正規化部72により求められた正規化階調補正特性を表している。画像181乃至183は、それぞれ、ゲイン処理部23に入力される画像データ、ゲイン処理後の画像データ、および階調補正後の画像データに対応する画像である。   The gain curve 171 represents the gradation correction characteristic determined by the DET processing unit 151, and the gain curve 172 is a gain curve (1) that uniformly applies the gradation correction representative value G detected by the representative value detection unit 71. Straight line). The gain curve 173 represents the normalized gradation correction characteristic obtained by the gradation correction normalization unit 72. Images 181 to 183 are images corresponding to the image data input to the gain processing unit 23, the image data after gain processing, and the image data after gradation correction, respectively.

撮像により得られた画像データの画像181は、レンズの特性により画面の外側に行くほど暗くなってしまう。これは、シェーディングと呼ばれ、DET処理部151においては、主要被写体のcの明るさを好適にするシェーディング補正のための階調補正特性が決定される。   The image 181 of the image data obtained by imaging becomes darker as it goes to the outside of the screen due to the characteristics of the lens. This is called shading, and the DET processing unit 151 determines gradation correction characteristics for shading correction that makes the brightness of the main subject c suitable.

この場合、階調補正特性として、ゲインカーブ171で表されるような、主要被写体の像高x0のピクセル位置に応じたシェーディング補正ゲインが用いられる。DET処理部151から、例えば、ゲインカーブ171で表される階調補正特性のデータが、代表値検出部71および階調補正正規化部72に入力される。   In this case, a shading correction gain corresponding to the pixel position of the image height x0 of the main subject as represented by the gain curve 171 is used as the gradation correction characteristic. For example, data of gradation correction characteristics represented by a gain curve 171 is input from the DET processing unit 151 to the representative value detection unit 71 and the gradation correction normalization unit 72.

代表値検出部71は、図6の例の場合と同様に、式(1)を用いて、DET処理部151が決めた階調補正特性の補正量を代表する値である階調補正代表値Gを検出する。なお、階調補正として、ピクセル位置に応じたシェーディング補正ゲインが用いられる場合、階調補正代表値Gとしては、例えば、主要被写体のピクセル位置の範囲での補正ゲインの平均値あるいは最大値、または、単に補正ゲインの最大値を用いることもできる。この階調補正代表値Gの検出処理により、主要被写体の明るさを補正する要素が検出される。   Similar to the example of FIG. 6, the representative value detection unit 71 uses the expression (1) to represent the gradation correction representative value that is a value representing the correction amount of the gradation correction characteristic determined by the DET processing unit 151. G is detected. When the shading correction gain according to the pixel position is used as the gradation correction, the gradation correction representative value G is, for example, an average value or a maximum value of the correction gain in the range of the pixel position of the main subject, or It is also possible to simply use the maximum value of the correction gain. By this gradation correction representative value G detection process, an element for correcting the brightness of the main subject is detected.

階調補正正規化部72は、図6の例の場合と同様に、式(2)を用いて、DET処理部151が決めた階調補正特性から、代表値検出部71が検出した階調補正代表値Gを除いた残りの成分を求める。すなわち、階調補正正規化部72は、DET処理部151が決めた階調補正特性を、主要被写体に対して正規化し、新しい階調補正特性を求める。   Similar to the example of FIG. 6, the gradation correction normalization unit 72 uses the equation (2) to determine the gradation detected by the representative value detection unit 71 from the gradation correction characteristics determined by the DET processing unit 151. The remaining components excluding the corrected representative value G are obtained. That is, the tone correction normalization unit 72 normalizes the tone correction characteristics determined by the DET processing unit 151 with respect to the main subject, and obtains new tone correction characteristics.

以上のように、振分処理部22は、ゲインカーブ171で表される階調補正特性を、フレームに対して、ゲインカーブ172で表される一律のゲインGと、ゲインカーブ173で表される正規化階調補正特性に分解する。代表値検出部71により検出された階調補正代表値Gは、ゲイン処理部23に出力され、階調補正正規化部72により求められた正規化階調補正特性は、TM処理部152に出力される。   As described above, the distribution processing unit 22 represents the gradation correction characteristic represented by the gain curve 171 with the uniform gain G represented by the gain curve 172 and the gain curve 173 with respect to the frame. Decompose into normalized tone correction characteristics. The gradation correction representative value G detected by the representative value detection unit 71 is output to the gain processing unit 23, and the normalized gradation correction characteristic obtained by the gradation correction normalization unit 72 is output to the TM processing unit 152. Is done.

ゲイン処理部23は、入力される画像データに対して、ゲインカーブ172に示されるように、ゲイン(階調補正代表値)Gを一律に印加する。これにより、階調補正代表値Gの印加前には、画像181に示されるように暗かった背景および主要被写体の明るさは、画像182の背景に示されるのと同様に、主要被写体に合わせて明るく補正される。   The gain processing unit 23 uniformly applies a gain (gradation correction representative value) G to the input image data as indicated by the gain curve 172. Thus, before the application of the gradation correction representative value G, the brightness of the dark background and the main subject as shown in the image 181 matches the main subject as shown in the background of the image 182. Brightly corrected.

NR処理部25は、ゲイン処理部23の後の画像データに対して、NR処理を行う。このとき、画像データは、ゲイン処理部23により明るさが調整されているので、NR処理部25においては、主要被写体に対して好適なNR処理を行うことができる。   The NR processing unit 25 performs NR processing on the image data after the gain processing unit 23. At this time, since the brightness of the image data is adjusted by the gain processing unit 23, the NR processing unit 25 can perform suitable NR processing on the main subject.

TM処理部152は、NR処理後の画像データに対して、主要被写体の像高x0に対して正規化されたゲインカーブ173で表される正規化階調補正特性を用いて、階調補正としてのシェーディング補正を行う。これにより、シェーディング補正がなされた画像183を得ることができる。すなわち、画像183の背景に示されるように、画面の外側に行くほど明るく補正された画像183であって、画像の周辺部も、画像の中央部も、一律に補正された画像183を得ることができる。   The TM processing unit 152 performs gradation correction using the normalized gradation correction characteristic represented by the gain curve 173 normalized with respect to the image height x0 of the main subject with respect to the image data after NR processing. Perform shading correction. Thereby, an image 183 subjected to shading correction can be obtained. In other words, as shown in the background of the image 183, the image 183 is corrected so that it goes brighter toward the outside of the screen, and the image 183 is obtained by uniformly correcting the peripheral portion of the image and the central portion of the image. Can do.

以上のように、画像信号処理部15においては、ゲイン処理部23とTM処理部152の2段階の明るさの補正処理により、DET処理部151が決定した階調補正特性に従って、画像データのシェーディングを補正することもできる。   As described above, the image signal processing unit 15 performs shading of image data according to the tone correction characteristics determined by the DET processing unit 151 by the two-stage brightness correction processing of the gain processing unit 23 and the TM processing unit 152. Can also be corrected.

<2.第2の実施の形態>
[パーソナルコンピュータの構成例]
図12は、本発明を適用した画像信号処理装置としてのパーソナルコンピュータを含む画像信号処理システムの実施の形態の構成例を示すブロック図である。
<2. Second Embodiment>
[Configuration example of personal computer]
FIG. 12 is a block diagram showing a configuration example of an embodiment of an image signal processing system including a personal computer as an image signal processing apparatus to which the present invention is applied.

図12の例においては、画像信号処理システム201は、図1のデジタルカメラ1のA/D変換部14までの前段の各部を有する撮像装置211、および、デジタルカメラ1の画像信号処理部15以降の後段の各部を有するパーソナルコンピュータ212により構成される。なお、図12の例において、図1の例と対応する部分には対応する符号が付されており、その説明は繰り返しになるので適宜省略する。   In the example of FIG. 12, the image signal processing system 201 includes an imaging device 211 having each part of the preceding stage up to the A / D conversion unit 14 of the digital camera 1 of FIG. 1, and the image signal processing unit 15 and later of the digital camera 1. The personal computer 212 having the subsequent stages is configured. In the example of FIG. 12, portions corresponding to those of the example of FIG. 1 are denoted by the corresponding reference numerals, and the description thereof will be repeated, and will be omitted as appropriate.

すなわち、撮像装置211は、図1の露出制御コントローラ11、露光量調整部12、撮像素子13、およびA/D変換部14により構成される。撮像装置211は、撮像素子13により撮像され、A/D変換部14によりデジタルに変換された未現像の画像データ(RAW画像データ)を、図示せぬ記録媒体に記録する。このとき、撮像装置211は、露出制御コントローラ11により制御された撮像時の露出調整量も、RAM画像ファイル内のメタデータとして記録する。この露出調整量は、例えば、Exif(Exchangeable image file format)情報のタグExposureBiasValue(ID:37380)などに付加される。なお、使用タグは、一例であり、メーカ固有のタグなど、他のタグを用いることもできる。   That is, the imaging device 211 includes the exposure controller 11, the exposure amount adjustment unit 12, the imaging element 13, and the A / D conversion unit 14 in FIG. The imaging device 211 records undeveloped image data (RAW image data) captured by the imaging device 13 and digitally converted by the A / D conversion unit 14 on a recording medium (not shown). At this time, the imaging device 211 also records the exposure adjustment amount during imaging controlled by the exposure controller 11 as metadata in the RAM image file. This exposure adjustment amount is added to, for example, a tag ExposureBiasValue (ID: 37380) of Exif (Exchangeable image file format) information. Note that the use tag is an example, and other tags such as a manufacturer-specific tag can also be used.

撮像装置211は、記録媒体に記録されている、メタデータが付加されたRAW画像データを、例えば、USB(Universal Serial Bus)ケーブルや記録媒体そのもの、あるいは、ネットワークなどを介して、パーソナルコンピュータ212に受け渡す。   The imaging device 211 transfers RAW image data with metadata added to the personal computer 212 via, for example, a USB (Universal Serial Bus) cable, the recording medium itself, or a network. Deliver.

パーソナルコンピュータ212は、図1のDET処理部21、振分処理部22、ゲイン処理部23、NR調整処理部24、NR処理部25、およびTM処理部26からなる画像信号処理部15、信号処理部16、表示部17、並びに記録部18により構成される。   The personal computer 212 includes an image signal processing unit 15 including a DET processing unit 21, an allocation processing unit 22, a gain processing unit 23, an NR adjustment processing unit 24, an NR processing unit 25, and a TM processing unit 26 in FIG. The unit 16, the display unit 17, and the recording unit 18 are configured.

パーソナルコンピュータ212は、メタデータが付加されたRAW画像データを、撮像装置211から取得し、取得したメタデータが付加されたRAW画像データを画像信号処理部15に入力し、図6を参照して上述したNR処理と階調補正処理を実行させる。   The personal computer 212 acquires the RAW image data to which the metadata is added from the imaging device 211, inputs the acquired RAW image data to the image signal processing unit 15, and refers to FIG. The above-described NR process and gradation correction process are executed.

すなわち、RAW画像データと、そのRAW画像データに付加されたメタデータである露出調整量は、画像信号処理部15のDET処理部21に入力され、階調補正特性の決定に用いられる。RAW画像データは、画像信号処理部15のゲイン処理部23にも入力され、明るさが調整された後にNR処理部25に出力され、NR処理がなされた後にTM処理部26に出力され、階調補正処理が行われる。   That is, the RAW image data and the exposure adjustment amount, which is metadata added to the RAW image data, are input to the DET processing unit 21 of the image signal processing unit 15 and are used for determining gradation correction characteristics. The RAW image data is also input to the gain processing unit 23 of the image signal processing unit 15 and is output to the NR processing unit 25 after the brightness is adjusted, and is output to the TM processing unit 26 after the NR processing is performed. Tone correction processing is performed.

次に、図13のフローチャートを参照して、パーソナルコンピュータ212の画像信号処理について説明する。なお、図13のステップS112乃至S119の処理は、図7のステップS13乃至S20の処理と基本的に同様の処理を行うため、繰り返しになるので、その詳細な説明を適宜省略する。   Next, image signal processing of the personal computer 212 will be described with reference to the flowchart of FIG. Note that the processing in steps S112 to S119 in FIG. 13 is basically the same as the processing in steps S13 to S20 in FIG.

例えば、ユーザの操作により撮像装置211の電源が投入され、撮像装置211の動作モードが広DR撮影モードに切り替えられる。撮像装置211の露出制御コントローラ11は、撮影モードが広DR撮影モードであるので、撮像素子13上での白とびを防ぎつつ、主要被写体の露光量が極端に少なくならないよう、露出調整量(露光量調整部12の制御値)を設定する。露光量調整部12は、露出制御コントローラ11からの制御値を用いて、撮像素子13の露光量を調整し、露光を行う。撮像素子13は、露光量調整部12により調整された露光で、被写体を撮像する。 For example, the power of the imaging device 211 is turned on by a user operation, and the operation mode of the imaging device 211 is switched to the wide DR shooting mode. Since the exposure controller 11 of the image pickup apparatus 211 is in the wide DR shooting mode, the exposure adjustment amount (exposure) is set so that the exposure amount of the main subject is not extremely reduced while preventing overexposure on the image pickup device 13. Control value of the amount adjusting unit 12). The exposure adjustment unit 12 adjusts the exposure of the image sensor 13 using the control value from the exposure controller 11, and performs exposure. The imaging element 13 images the subject with the exposure adjusted by the exposure adjustment unit 12.

露光した光は、撮像素子13によりアナログ信号に変換され、さらに、A/D変換部14により量子化されてデジタルの画像データになる。A/D変換部14からの未現像の画像データ(RAW画像データ)は、露出制御コントローラ11からの露光調整量がメタデータとして付加されて、図示せぬ記録媒体に記録される。   The exposed light is converted into an analog signal by the image sensor 13 and further quantized by the A / D converter 14 to become digital image data. Undeveloped image data (RAW image data) from the A / D converter 14 is recorded on a recording medium (not shown) with the exposure adjustment amount from the exposure controller 11 added as metadata.

撮像装置211の記録媒体に記録されたRAW画像データは、ユーザの操作に応じて、例えば、USBケーブルなどを介して、パーソナルコンピュータ212に受け渡される。   The RAW image data recorded on the recording medium of the imaging device 211 is transferred to the personal computer 212 via a USB cable or the like, for example, according to a user operation.

ステップS111において、パーソナルコンピュータ212は、撮像装置211からのメタデータが付加されたRAW画像データを画像信号処理部15に入力する。RAW画像データは、DET処理部21およびゲイン処理部23に入力される。RAW画像データにメタデータとして付加されていた露出調整量は、DET処理部21に入力される。   In step S <b> 111, the personal computer 212 inputs the RAW image data to which the metadata from the imaging device 211 is added to the image signal processing unit 15. The RAW image data is input to the DET processing unit 21 and the gain processing unit 23. The exposure adjustment amount added as metadata to the RAW image data is input to the DET processing unit 21.

ステップS112において、DET処理部21は、撮像装置211からの画像データを解析し、露出制御コントローラ11からの露出調整量を用いて、画像データの明るさを補正する階調補正特性、すなわち、階調補正特性を表す階調補正関数を決定する。階調補正関数は、図5を参照して上述したように、例えば、高輝度部分の白とびを抑え、かつ、主要被写体が明るくなるように決定される。DET処理部21により決定された階調補正関数は、振分処理部22の代表値検出部71および階調補正正規化部72に出力される。   In step S112, the DET processing unit 21 analyzes the image data from the imaging device 211 and uses the exposure adjustment amount from the exposure controller 11 to correct the brightness of the image data, that is, the gradation correction characteristic. A gradation correction function representing a tone correction characteristic is determined. As described above with reference to FIG. 5, the gradation correction function is determined, for example, so as to suppress overexposure in a high-luminance portion and to brighten the main subject. The gradation correction function determined by the DET processing unit 21 is output to the representative value detection unit 71 and the gradation correction normalization unit 72 of the distribution processing unit 22.

ステップS113において、代表値検出部71は、DET処理部21が決めた階調補正関数から、階調補正代表値Gを検出する。図6を参照して上述したように、階調補正代表値Gは、例えば、階調補正特性が関数y=f(x)で表されるとき、その入出力比f(x)/xを用いて、式(1)から求められる。代表値検出部71により検出された階調補正代表値Gは、ゲイン処理部23およびNR調整処理部24に出力される。   In step S <b> 113, the representative value detection unit 71 detects the gradation correction representative value G from the gradation correction function determined by the DET processing unit 21. As described above with reference to FIG. 6, for example, when the gradation correction characteristic is represented by the function y = f (x), the gradation correction representative value G is expressed by the input / output ratio f (x) / x. And obtained from equation (1). The gradation correction representative value G detected by the representative value detection unit 71 is output to the gain processing unit 23 and the NR adjustment processing unit 24.

ステップS114において、階調補正正規化部72は、DET処理部21が決めた階調補正関数から、代表値検出部71が検出した階調補正代表値Gを除いた残りの成分として、正規化階調補正を表す正規化階調補正関数f'(x)を求める。図6を参照して上述したように、正規化階調補正関数f'(x)は、例えば、階調補正特性が関数y=f(x)で表されるとき、代表値検出部71が検出した階調補正代表値Gを用いて、式(2)で求められる。   In step S114, the gradation correction normalization unit 72 normalizes the remaining components obtained by removing the gradation correction representative value G detected by the representative value detection unit 71 from the gradation correction function determined by the DET processing unit 21. A normalized gradation correction function f ′ (x) representing gradation correction is obtained. As described above with reference to FIG. 6, the normalized gradation correction function f ′ (x) is obtained by the representative value detection unit 71 when the gradation correction characteristic is represented by a function y = f (x), for example. Using the detected gradation correction representative value G, it is obtained by Expression (2).

階調補正正規化部72により求められた正規化階調補正関数f'(x)は、TM処理部26に出力される。   The normalized gradation correction function f ′ (x) obtained by the gradation correction normalization unit 72 is output to the TM processing unit 26.

ステップS115において、ゲイン処理部23は、代表値検出部71により決定された階調補正代表値Gを用いて、撮像装置211からの画像データの画像全体の明るさを補正する。すなわち、ゲイン処理部23は、画像データに対して、ゲイン(階調補正代表値)Gを一律に印加する。これにより、主要被写体に合わせて画像データの画像全体の明るさが補正される。ゲイン処理部23により明るさが補正された画像データは、NR処理部25に出力される。   In step S <b> 115, the gain processing unit 23 corrects the brightness of the entire image of the image data from the imaging device 211 using the gradation correction representative value G determined by the representative value detection unit 71. That is, the gain processing unit 23 uniformly applies a gain (gradation correction representative value) G to the image data. Thereby, the brightness of the entire image of the image data is corrected according to the main subject. The image data whose brightness has been corrected by the gain processing unit 23 is output to the NR processing unit 25.

ステップS116において、NR調整処理部24は、代表値検出部71により検出された階調補正代表値Gを用いて、NR処理部25が使用するノイズモデルを設定する。すなわち、NR調整処理部24は、上述した式(7)に、ゲイン(階調補正代表値)Gを乗算して、パラメータを設定して、上述した式(3)の関数の形状を求め、それをNR処理部25が使用するノイズモデルに設定する。   In step S <b> 116, the NR adjustment processing unit 24 sets a noise model used by the NR processing unit 25 using the gradation correction representative value G detected by the representative value detection unit 71. That is, the NR adjustment processing unit 24 multiplies the above-described equation (7) by a gain (gradation correction representative value) G, sets parameters, and obtains the shape of the function of the above-described equation (3). It is set as a noise model used by the NR processing unit 25.

ステップS117において、NR処理部25は、ゲイン処理部23の後の画像データに対して、NR処理を行う。このとき、画像データは、ゲイン処理部23により明るさが調整されているので、NR処理部25においては、主要被写体に対して好適なNR処理を行うことができる。ノイズ除去処理が施された画像データは、後段のTM処理部26に出力される。   In step S117, the NR processing unit 25 performs NR processing on the image data after the gain processing unit 23. At this time, since the brightness of the image data is adjusted by the gain processing unit 23, the NR processing unit 25 can perform suitable NR processing on the main subject. The image data that has been subjected to noise removal processing is output to the TM processing unit 26 in the subsequent stage.

ステップS118において、TM処理部26は、NR処理後の画像データに対して、正規化階調補正特性を用いて、階調補正として、トーンカーブ処理を行う。階調補正された画像データは、信号処理部16に出力される。   In step S118, the TM processing unit 26 performs tone curve processing as gradation correction on the image data after NR processing using the normalized gradation correction characteristic. The tone-corrected image data is output to the signal processing unit 16.

ステップS119において、信号処理部16は、TM処理部26からの画像データに対して、後段の表示部17への表示や、記録部18における記録に適した画像データに変換する信号処理を行い、対応する表示部17や記録部18に出力する。   In step S119, the signal processing unit 16 performs signal processing for converting the image data from the TM processing unit 26 into image data suitable for display on the subsequent display unit 17 and recording in the recording unit 18, The data is output to the corresponding display unit 17 and recording unit 18.

例えば、表示部17への表示に適したカメラ信号処理が行われた画像データは、表示部17に表示される。記録部18における記録に適したカメラ信号処理が行われた画像データは、記録部18により図示せぬ光ディスクまたは磁気ディスクなどの記録媒体に記録される。   For example, image data that has undergone camera signal processing suitable for display on the display unit 17 is displayed on the display unit 17. Image data that has undergone camera signal processing suitable for recording in the recording unit 18 is recorded by a recording unit 18 on a recording medium such as an optical disk or a magnetic disk (not shown).

以上のように、主要被写体に対して明るさが調整された状態でNR処理が行われる。これにより、図12のパーソナルコンピュータ212においても、NR処理のパラメータが最適化されて、NR処理と階調補正処理とを併用した場合でも、ノイズが適切に抑制された画像を得ることができる。   As described above, the NR process is performed with the brightness adjusted for the main subject. Accordingly, in the personal computer 212 of FIG. 12, even when the NR processing parameters are optimized and the NR processing and the gradation correction processing are used together, an image in which noise is appropriately suppressed can be obtained.

なお、上記説明においては、視覚モデルを用いるブロック(視覚特性値算出部32)を有するNR処理部25の例を説明したが、本発明は、明示的にそのブロックを有しない構成のNR処理部にも適用することができる。   In the above description, the example of the NR processing unit 25 having the block (visual characteristic value calculating unit 32) using the visual model has been described. However, the present invention explicitly includes the NR processing unit having no block. It can also be applied to.

すなわち、明示的に視覚モデルを用いるブロックを持たないNR処理であっても、例えば、ピクセルのレベル毎にパラメータを変調する枠組みを有するものがあり、そのパラメータとノイズモデルとの間に差異がある場合には、そのパラメータに視覚モデルに相当する要素が含まれているものと考えられるので、本発明を適用することで、視覚モデルを用いるブロックを有するNR処理と同様に、NR処理の性能を改善することができる。   In other words, even NR processing that does not have a block that explicitly uses a visual model has, for example, a framework that modulates a parameter for each pixel level, and there is a difference between the parameter and the noise model. In this case, since it is considered that the parameter includes an element corresponding to the visual model, by applying the present invention, the performance of the NR processing is improved as in the case of the NR processing having a block using the visual model. Can be improved.

上述した一連の処理は、ハードウエアにより実行することもできるし、ソフトウエアにより実行することもできる。一連の処理をソフトウエアにより実行する場合には、そのソフトウエアを構成するプログラムが、専用のハードウエアに組み込まれているコンピュータ、または汎用のパーソナルコンピュータなどに、プログラム記録媒体からインストールされる。   The series of processes described above can be executed by hardware or can be executed by software. When a series of processing is executed by software, a program constituting the software is installed from a program recording medium into a computer incorporated in dedicated hardware or a general-purpose personal computer.

図14は、上述した一連の処理をプログラムにより実行するコンピュータのハードウエアの構成例を示すブロック図である。   FIG. 14 is a block diagram illustrating an example of a hardware configuration of a computer that executes the above-described series of processes using a program.

CPU(Central Processing Unit)301、ROM(Read Only Memory)302、RAM(Random Access Memory)303は、バス304により相互に接続されている。   A CPU (Central Processing Unit) 301, a ROM (Read Only Memory) 302, and a RAM (Random Access Memory) 303 are connected to each other via a bus 304.

バス304には、さらに、入出力インタフェース305が接続されている。入出力インタフェース305には、キーボード、マウスなどよりなる入力部306、ディスプレイ、スピーカなどよりなる出力部307が接続される。また、バス304には、ハードディスクや不揮発性のメモリなどよりなる記憶部308、ネットワークインタフェースなどよりなる通信部309、リムーバブルメディア311を駆動するドライブ310が接続される。   An input / output interface 305 is further connected to the bus 304. The input / output interface 305 is connected to an input unit 306 including a keyboard and a mouse, and an output unit 307 including a display and a speaker. In addition, a storage unit 308 including a hard disk and a nonvolatile memory, a communication unit 309 including a network interface, and a drive 310 that drives the removable medium 311 are connected to the bus 304.

以上のように構成されるコンピュータでは、CPU301が、例えば、記憶部308に記憶されているプログラムを入出力インタフェース305およびバス304を介してRAM303にロードして実行することにより、上述した一連の処理が行われる。   In the computer configured as described above, the CPU 301 loads the program stored in the storage unit 308 to the RAM 303 via the input / output interface 305 and the bus 304 and executes the program, for example. Is done.

CPU301が実行するプログラムは、例えばリムーバブルメディア311に記録して、あるいは、ローカルエリアネットワーク、インターネット、デジタル放送といった、有線または無線の伝送媒体を介して提供され、記憶部308にインストールされる。   The program executed by the CPU 301 is recorded in the removable medium 311 or provided via a wired or wireless transmission medium such as a local area network, the Internet, or digital broadcasting, and is installed in the storage unit 308.

なお、コンピュータが実行するプログラムは、本明細書で説明する順序に沿って時系列に処理が行われるプログラムであっても良いし、並列に、あるいは呼び出しが行われたとき等の必要なタイミングで処理が行われるプログラムであっても良い。   Note that the program executed by the computer may be a program that is processed in time series in the order described in this specification, or in parallel or at a necessary timing such as when a call is made. It may be a program for processing.

また、本明細書において、システムとは、複数の装置により構成される装置全体を表すものである。   Further, in this specification, the system represents the entire apparatus constituted by a plurality of apparatuses.

本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。   The embodiments of the present invention are not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the present invention.

本発明を適用したデジタルカメラの実施の形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of embodiment of the digital camera to which this invention is applied. 図1のNR処理部の構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration example of an NR processing unit in FIG. 1. 変換テーブルの例を示す図である。It is a figure which shows the example of a conversion table. 撮影モードで撮影された画像データの画像を示す図である。It is a figure which shows the image of the image data image | photographed in imaging | photography mode. 図4の画像データの階調補正特性の例を示す図である。FIG. 5 is a diagram illustrating an example of gradation correction characteristics of the image data in FIG. 4. 画像信号処理部の処理について説明する図である。It is a figure explaining the process of an image signal process part. 図1のデジタルカメラの広DR撮影処理を説明するフローチャートである。3 is a flowchart for explaining a wide DR shooting process of the digital camera of FIG. 1. 標準撮影時の従来構成の各処理における信号の連続性のグラフを示す図である。It is a figure which shows the graph of the continuity of the signal in each process of the conventional structure at the time of standard imaging | photography. 広DR撮影時の従来構成の各処理における信号の連続性のグラフを示す図である。It is a figure which shows the graph of the continuity of the signal in each process of the conventional structure at the time of wide DR imaging | photography. 広DR撮影時の画像信号処理部の各処理における信号の連続性のグラフを示す図である。It is a figure which shows the graph of the continuity of the signal in each process of the image signal process part at the time of wide DR imaging | photography. 階調補正としての、シェーディング処理を説明する図である。It is a figure explaining the shading process as gradation correction. 本発明を適用した画像信号処理システムの実施の形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of embodiment of the image signal processing system to which this invention is applied. 図12のパーソナルコンピュータの画像信号処理について説明するフローチャートである。13 is a flowchart for describing image signal processing of the personal computer in FIG. 12. コンピュータのハードウエアの構成例を示すブロック図である。It is a block diagram which shows the structural example of the hardware of a computer.

符号の説明Explanation of symbols

1 デジタルカメラ, 11 露出制御コントローラ, 15 画像信号処理部, 21 DET処理部, 22 振分処理部, 23 ゲイン処理部, 24 NR調整処理部, 25 NR処理部, 26 TM処理部, 31 物理特性値算出部, 32 視覚特性値算出部, 33 閾値決定部, 34 ノイズ除去部, 71 代表値検出部, 72 階調補正正規化部, 151 DET処理部, 152 TM処理部, 201 画像信号処理システム, 211 撮像装置, 212 パーソナルコンピュータ   DESCRIPTION OF SYMBOLS 1 Digital camera, 11 Exposure control controller, 15 Image signal processing part, 21 DET processing part, 22 Distribution processing part, 23 Gain processing part, 24 NR adjustment processing part, 25 NR processing part, 26 TM processing part, 31 Physical characteristic Value calculating unit, 32 visual characteristic value calculating unit, 33 threshold value determining unit, 34 noise removing unit, 71 representative value detecting unit, 72 gradation correction normalizing unit, 151 DET processing unit, 152 TM processing unit, 201 image signal processing system , 211 imaging device, 212 personal computer

Claims (9)

フレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性を決定する制御手段と、
前記制御手段により決定された前記階調補正特性を、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分ける振り分け手段と、
前記振り分け手段により振り分けられた前記階調補正代表値を、前記フレームに対して一律にゲインとして印加するゲイン処理手段と、
前記ゲイン処理手段により前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理を行うノイズリダクション処理手段と、
前記振り分け手段により振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理手段により前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理を行う階調補正処理手段と
を備える画像信号処理装置。
Control means for determining a gradation correction characteristic representing a conversion characteristic for correcting the brightness of the frame based on an exposure adjustment amount at the time of shooting the frame ;
The gradation correction characteristic determined by the control means includes a gradation correction representative value representing a correction amount with respect to a representative value of a main subject, and the remaining gradations obtained by removing the gradation correction representative value from the gradation correction characteristic. A distribution means for distributing the correction characteristics;
Gain processing means for applying the gradation correction representative value distributed by the distribution means uniformly as a gain to the frame;
Noise reduction processing means for performing noise reduction processing on the frame to which the gradation correction representative value is applied by the gain processing means;
Gradation correction processing means for performing gradation correction processing on the frame on which the noise reduction processing has been performed by the noise reduction processing means using the remaining gradation correction characteristics distributed by the distribution means; An image signal processing apparatus.
前記残りの階調補正特性は、前記主要被写体の代表値に対して前記階調補正特性を正規化した正規化階調補正関数である
請求項1に記載の画像信号処理装置。
The image signal processing apparatus according to claim 1, wherein the remaining gradation correction characteristics are normalized gradation correction functions obtained by normalizing the gradation correction characteristics with respect to representative values of the main subject.
前記階調補正処理手段は、前記階調補正処理として、トーンカーブ処理を行う
請求項2に記載の画像信号処理装置。
The image signal processing apparatus according to claim 2, wherein the tone correction processing unit performs tone curve processing as the tone correction processing.
前記階調補正処理手段は、前記階調補正処理として、ダイナミックレンジ圧縮処理を行う
請求項2に記載の画像信号処理装置。
The image signal processing apparatus according to claim 2, wherein the gradation correction processing unit performs dynamic range compression processing as the gradation correction processing.
前記階調補正処理手段は、前記階調補正処理として、シェーディング補正処理を行う
請求項2に記載の画像信号処理装置。
The image signal processing apparatus according to claim 2, wherein the gradation correction processing unit performs a shading correction process as the gradation correction process.
前記振り分け手段により振り分けられた前記階調補正代表値を用いて、前記ノイズリダクション処理のノイズモデルのパラメータを設定するパラメータ設定手段
をさらに備える請求項2に記載の画像信号処理装置。
The image signal processing apparatus according to claim 2, further comprising: a parameter setting unit that sets a noise model parameter for the noise reduction process using the gradation correction representative value distributed by the distribution unit.
画像信号処理装置が、
フレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性を決定し、
決定された前記階調補正特性を、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分け、
振り分けられた前記階調補正代表値を、前記フレームに対して一律にゲインとして印加し、
前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理を行い、
振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理を行うステップ
を含む画像信号処理方法。
The image signal processing device
Based on the exposure adjustment amount at the time of shooting the frame, to determine a gradation correction characteristic representing a conversion characteristic for correcting the brightness of the frame,
The determined gradation correction characteristics are converted into a gradation correction representative value representing a correction amount with respect to a representative value of a main subject, and a remaining gradation correction characteristic obtained by removing the gradation correction representative value from the gradation correction characteristic. Sorting,
The assigned gradation correction representative value is uniformly applied to the frame as a gain,
A noise reduction process is performed on the frame to which the gradation correction representative value is applied,
An image signal processing method including a step of performing gradation correction processing on the frame on which the noise reduction processing has been performed using the remaining gradation correction characteristics that have been distributed.
フレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性を決定し、
決定された前記階調補正特性を、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分け、
振り分けられた前記階調補正代表値を、前記フレームに対して一律にゲインとして印加し、
前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理を行い、
振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理を行うステップ
を含む処理をコンピュータに実行させるためのプログラム。
Based on the exposure adjustment amount at the time of shooting the frame, to determine a gradation correction characteristic representing a conversion characteristic for correcting the brightness of the frame,
The determined gradation correction characteristics are converted into a gradation correction representative value representing a correction amount with respect to a representative value of a main subject, and a remaining gradation correction characteristic obtained by removing the gradation correction representative value from the gradation correction characteristic. Sorting,
The assigned gradation correction representative value is uniformly applied to the frame as a gain,
A noise reduction process is performed on the frame to which the gradation correction representative value is applied,
A program for causing a computer to execute a process including a step of performing a gradation correction process on the frame subjected to the noise reduction process using the remaining gradation correction characteristics that have been distributed.
被写体を撮像する撮像手段と、
前記撮像手段により撮像された前記被写体に対応するフレームの撮影時の露出調整量に基づいて、前記フレームの明るさを補正する変換特性を表す階調補正特性を決定する制御手段と、
前記制御手段により決定された前記階調補正特性を、前記被写体のうち、主要被写体の代表値に対する補正量を表す階調補正代表値と、前記階調補正特性から前記階調補正代表値を除いた残りの階調補正特性とに振り分ける振り分け手段と、
前記振り分け手段により振り分けられた前記階調補正代表値を、前記フレームに対して一律にゲインとして印加するゲイン処理手段と、
前記ゲイン処理手段により前記階調補正代表値が印加された前記フレームに対してノイズリダクション処理を行うノイズリダクション処理手段と、
前記振り分け手段により振り分けられた前記残りの階調補正特性を用いて、前記ノイズリダクション処理手段により前記ノイズリダクション処理が行われた前記フレームに対して階調補正処理を行う階調補正処理手段と
を備える撮像装置。
Imaging means for imaging a subject;
Control means for determining a gradation correction characteristic representing a conversion characteristic for correcting the brightness of the frame based on an exposure adjustment amount at the time of shooting a frame corresponding to the subject imaged by the imaging means;
The gradation correction characteristic determined by the control means is a gradation correction representative value representing a correction amount for a representative value of a main subject of the subject, and the gradation correction representative value is excluded from the gradation correction characteristic. Distribution means for distributing the remaining gradation correction characteristics;
Gain processing means for applying the gradation correction representative value distributed by the distribution means uniformly as a gain to the frame;
Noise reduction processing means for performing noise reduction processing on the frame to which the gradation correction representative value is applied by the gain processing means;
Gradation correction processing means for performing gradation correction processing on the frame on which the noise reduction processing has been performed by the noise reduction processing means using the remaining gradation correction characteristics distributed by the distribution means; An imaging apparatus provided.
JP2008302340A 2008-11-27 2008-11-27 Image signal processing apparatus and method, program, and imaging apparatus Expired - Fee Related JP4645921B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2008302340A JP4645921B2 (en) 2008-11-27 2008-11-27 Image signal processing apparatus and method, program, and imaging apparatus
US12/590,099 US8564862B2 (en) 2008-11-27 2009-11-02 Apparatus, method and program for reducing deterioration of processing performance when graduation correction processing and noise reduction processing are performed
CN200910246354.3A CN101753797B (en) 2008-11-27 2009-11-27 Image signal processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008302340A JP4645921B2 (en) 2008-11-27 2008-11-27 Image signal processing apparatus and method, program, and imaging apparatus

Publications (2)

Publication Number Publication Date
JP2010130299A JP2010130299A (en) 2010-06-10
JP4645921B2 true JP4645921B2 (en) 2011-03-09

Family

ID=42195988

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008302340A Expired - Fee Related JP4645921B2 (en) 2008-11-27 2008-11-27 Image signal processing apparatus and method, program, and imaging apparatus

Country Status (3)

Country Link
US (1) US8564862B2 (en)
JP (1) JP4645921B2 (en)
CN (1) CN101753797B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011228807A (en) * 2010-04-15 2011-11-10 Nikon Corp Image processing program, image processing apparatus, and image processing method
JP2012019392A (en) * 2010-07-08 2012-01-26 Nikon Corp Image processing apparatus, electronic camera, and image processing program
US20120262503A1 (en) * 2011-03-18 2012-10-18 Hsin-Nan Lin Monitor and method of displaying pixels on displaying device
JP5948073B2 (en) * 2012-02-08 2016-07-06 株式会社 日立産業制御ソリューションズ Image signal processing apparatus and image signal processing method
JP6083959B2 (en) * 2012-06-15 2017-02-22 キヤノン株式会社 Transmission apparatus, control method thereof, and control program
US10199011B2 (en) * 2012-09-11 2019-02-05 Apple Inc Generation of tone mapping function for dynamic pixel and backlight control
JP5819897B2 (en) * 2013-09-10 2015-11-24 株式会社Screenホールディングス Imaging system and imaging method
JP6341672B2 (en) * 2014-01-23 2018-06-13 キヤノン株式会社 Image processing apparatus, image processing method, and program
CN104581098B (en) * 2014-12-01 2016-09-28 北京思比科微电子技术股份有限公司 A kind of adaptive processing method of lens shading
JP6581862B2 (en) * 2015-09-18 2019-09-25 日本放送協会 Video camera for HDR-SDR integrated production
JP6705237B2 (en) * 2016-03-18 2020-06-03 株式会社リコー Image compression apparatus, image forming apparatus, image compression method and program
US11100888B2 (en) 2017-06-28 2021-08-24 The University Of British Columbia Methods and apparatuses for tone mapping and inverse tone mapping
CN111447364B (en) * 2020-04-15 2021-11-26 上海华力集成电路制造有限公司 CDSEM image processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006319781A (en) * 2005-05-13 2006-11-24 Olympus Corp Image processor, and image processing program
JP2007174243A (en) * 2005-12-21 2007-07-05 Sharp Corp Image processor, image forming apparatus, image reader, image processing method, program, and recording medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3016652B2 (en) * 1992-02-07 2000-03-06 松下電器産業株式会社 Gain control circuit
EP0639023B1 (en) * 1993-08-13 1997-06-04 Agfa-Gevaert N.V. Method for producing frequency-modulated halftone images
US7440612B2 (en) * 1998-11-13 2008-10-21 Sony Corporation Image processing apparatus and method capable of correcting gradation of image data
JP4556276B2 (en) 2000-03-23 2010-10-06 ソニー株式会社 Image processing circuit and image processing method
CN1244075C (en) * 2002-06-20 2006-03-01 成都威斯达芯片有限责任公司 Programmable self-adapting image quality non-linear enhancement processing process
JP4279313B2 (en) * 2005-06-22 2009-06-17 三菱電機株式会社 Imaging apparatus and gradation conversion method in imaging apparatus
JP4687320B2 (en) * 2005-08-11 2011-05-25 ソニー株式会社 Image processing apparatus and method, recording medium, and program
JP4914651B2 (en) * 2006-06-12 2012-04-11 オリンパスイメージング株式会社 Electronic imaging apparatus and electronic imaging method
JP4395789B2 (en) 2006-10-30 2010-01-13 ソニー株式会社 Image processing apparatus, imaging apparatus, image processing method, and program
JP4797949B2 (en) 2006-11-24 2011-10-19 ソニー株式会社 Imaging apparatus, image processing apparatus, method, and program
JP2008148180A (en) 2006-12-13 2008-06-26 Sony Corp Imaging apparatus, image processing device and method, and computer program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006319781A (en) * 2005-05-13 2006-11-24 Olympus Corp Image processor, and image processing program
JP2007174243A (en) * 2005-12-21 2007-07-05 Sharp Corp Image processor, image forming apparatus, image reader, image processing method, program, and recording medium

Also Published As

Publication number Publication date
CN101753797A (en) 2010-06-23
US20100128332A1 (en) 2010-05-27
US8564862B2 (en) 2013-10-22
CN101753797B (en) 2012-07-18
JP2010130299A (en) 2010-06-10

Similar Documents

Publication Publication Date Title
JP4645921B2 (en) Image signal processing apparatus and method, program, and imaging apparatus
US8368779B2 (en) Image processing apparatus for performing gradation correction on subject image
US7791656B2 (en) Image sensing apparatus and image processing method
US7834915B2 (en) Image processing apparatus, imaging apparatus, imaging processing method, and computer program
JP5100565B2 (en) Image processing apparatus and image processing method
KR100990904B1 (en) The apparatus for enhancing image by generating and blending multiple image and method therefor
US20080239094A1 (en) Method of and apparatus for image denoising
JP4639037B2 (en) Image processing method and apparatus
JP5887303B2 (en) Image signal processing apparatus, imaging apparatus, and image processing program
JP4736939B2 (en) Imaging apparatus and image processing method
JP2007082181A (en) Imaging apparatus and image processing method
KR101754425B1 (en) Apparatus and method for auto adjusting brightness of image taking device
JP2015032966A (en) Image processing apparatus, imaging apparatus, control method, and program
JP6611543B2 (en) Image processing apparatus, image processing method, and program
JP2008124653A (en) Image signal processing apparatus, image signal processing program, and image signal processing method
JP5932392B2 (en) Image processing apparatus and image processing method
JPH08107519A (en) Image pickup device
JP2019029833A (en) Imaging apparatus
JP2008305122A (en) Image-processing apparatus, image processing method and program
JP4802333B2 (en) Method for determining exposure ratio in image composition
JP4125191B2 (en) Image processing apparatus and method
JP4679175B2 (en) Imaging system and control device
JP5225491B2 (en) Image processing apparatus and image processing method
JP2004235700A (en) Image processing apparatus, image processing method, and program therefor
JP5038190B2 (en) Image capturing apparatus and setting method thereof

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100819

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100916

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101022

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: 20101111

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: 20101124

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

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees