JP4599279B2 - Noise reduction device and noise reduction method - Google Patents
Noise reduction device and noise reduction method Download PDFInfo
- Publication number
- JP4599279B2 JP4599279B2 JP2005338937A JP2005338937A JP4599279B2 JP 4599279 B2 JP4599279 B2 JP 4599279B2 JP 2005338937 A JP2005338937 A JP 2005338937A JP 2005338937 A JP2005338937 A JP 2005338937A JP 4599279 B2 JP4599279 B2 JP 4599279B2
- Authority
- JP
- Japan
- Prior art keywords
- area
- pixel data
- noise reduction
- noise
- component
- 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
Links
Images
Landscapes
- Picture Signal Circuits (AREA)
- Processing Of Color Television Signals (AREA)
- Studio Devices (AREA)
Description
本発明は、固体撮像素子から出力されたRAW画像データのノイズリダクション(NR)処理を行うノイズリダクション装置に関する。 The present invention relates to a noise reduction device that performs noise reduction (NR) processing on RAW image data output from a solid-state imaging device.
従来、固体撮像素子から出力される信号は、低感度撮影等を行った際等にS/Nが悪化するため、十分満足な画質が得られなかった。又、このような場合においては、通常のノイズに加え、低周波成分を含むノイズに起因するような偽色及び色ノイズが問題となっており、これは特に低輝度となる暗部でより顕著であった。従来、NR処理を行う手法として様々なものが提案されている(特許文献1〜4参照)。
Conventionally, a signal output from a solid-state imaging device has a poor S / N when performing low-sensitivity imaging or the like, so that a sufficiently satisfactory image quality cannot be obtained. In such a case, in addition to normal noise, false color and color noise caused by noise including low-frequency components are a problem, and this is particularly noticeable in dark areas where the luminance is low. there were. Conventionally, various methods for performing NR processing have been proposed (see
画像の低輝度部分に含まれるノイズを効果的に除去するには、NR処理の対象となる画素データを、その周辺の広い範囲内にある画素データを用いてNR処理するのが有効である。しかし、広い範囲の画素データを用いてNR処理を行うと低輝度部分での画質は改善されるが、その他の部分の画質が劣化してしまう可能性がある。 In order to effectively remove noise included in a low-luminance portion of an image, it is effective to perform NR processing on pixel data to be subjected to NR processing using pixel data within a wide range around it. However, when NR processing is performed using a wide range of pixel data, the image quality in the low-luminance part is improved, but the image quality in other parts may be deteriorated.
本発明は、上記事情に鑑みてなされたものであり、ノイズを効果的に除去して画質を向上させることが可能なノイズリダクション装置を提供することを目的とする。 The present invention has been made in view of the above circumstances, and an object thereof is to provide a noise reduction device capable of effectively removing noise and improving image quality.
本発明のノイズリダクション装置は、固体撮像素子から得られるRAW画像データのノイズリダクションを行うノイズリダクション装置であって、前記RAW画像データの注目画素データを含む、サイズの大きい大エリアと、前記大エリアよりもサイズの小さい小エリアとを少なくとも含む複数のエリア毎に、前記エリアに含まれる前記注目画素データと同一色成分の画素データ(以下、エリア同色画素データという)の平均値を算出する平均値算出手段と、前記平均値に基づいて、前記複数のエリア毎に、前記エリア同色画素データの分散を算出する分散算出手段と、前記注目画素データに含まれるノイズ量を推定するノイズ量推定手段と、前記複数のエリア毎の前記分散に基づいて、前記複数のエリアのうち、前記注目画素データのノイズリダクション処理に利用するのに最適なエリアである最適エリアを判定する最適エリア判定手段と、前記最適エリアについて算出された前記平均値に、前記推定されたノイズ量に応じて前記注目画素データを近づける処理を行って、前記注目画素データのノイズリダクション処理を行うノイズリダクション処理手段とを備える。 A noise reduction device according to the present invention is a noise reduction device that performs noise reduction of RAW image data obtained from a solid-state imaging device, and includes a large area having a large size including pixel-of-interest data of the RAW image data, and the large area An average value for calculating an average value of pixel data having the same color component as the target pixel data included in the area (hereinafter referred to as area same color pixel data) for each of a plurality of areas including at least a small area having a smaller size than A calculation unit; a variance calculation unit that calculates a variance of the same color pixel data for each of the plurality of areas based on the average value; and a noise amount estimation unit that estimates a noise amount included in the target pixel data; Based on the variance for each of the plurality of areas, the noise of the pixel-of-interest data is selected from the plurality of areas. Optimal area determination means for determining an optimal area that is the optimal area to be used for the reduction process, and the target pixel data is brought close to the average value calculated for the optimal area according to the estimated noise amount. Noise reduction processing means for performing processing and performing noise reduction processing of the pixel-of-interest data.
本発明のノイズリダクション装置は、前記最適エリアを判定するための判定基準となる閾値であって、前記ノイズ量に応じて決まる閾値を第一の閾値とし、前記最適エリア判定手段は、前記複数のエリア毎の前記分散と、前記複数のエリア毎の前記平均値と、前記第一の閾値とを用いて、前記最適エリアを判定する。 The noise reduction device according to the present invention is a threshold value that is a determination criterion for determining the optimum area, and a threshold value that is determined according to the amount of noise is a first threshold value. The optimum area is determined using the variance for each area, the average value for each of the plurality of areas, and the first threshold value.
本発明のノイズリダクション装置は、前記最適エリアを利用して前記注目画素データにノイズリダクション処理を行うべきか否かを判定するための判定基準となる閾値であって、前記ノイズ量に応じて決まる閾値を第二の閾値とし、前記最適エリアについて算出された前記分散と前記第二の閾値とを用いて、前記最適エリアを利用して前記注目画素データにノイズリダクションを行うべきか否かを判定するノイズリダクション実施判定手段と、前記ノイズリダクション実施判定手段による判定結果に応じて、前記注目画素データ及び前記ノイズリダクション処理後の注目画素データのいずれかを出力する出力手段とを備える。 The noise reduction device according to the present invention is a threshold value serving as a determination criterion for determining whether noise reduction processing should be performed on the pixel-of-interest data using the optimal area, and is determined according to the noise amount. Determine whether or not noise reduction should be performed on the pixel-of-interest data using the optimum area using the variance calculated for the optimum area and the second threshold as a second threshold. Noise reduction execution determining means, and output means for outputting either the target pixel data or the target pixel data after the noise reduction processing according to a determination result by the noise reduction execution determination means.
本発明のノイズリダクション装置は、前記RAW画像データが、赤色(R)成分と緑色(G)成分と青色(B)成分の画素データを含み、前記注目画素データが前記R成分又は前記B成分であった場合、前記最適エリア判定手段は、前記大エリアに含まれる前記R成分又は前記B成分の画素データの分散と前記第一の閾値とに基づいて、前記大エリアが前記最適エリアであるか否かを判定し、前記大エリアが前記最適エリアでないと判定した場合に、前記小エリアに含まれる前記R成分又は前記B成分の画素データの分散と前記第一の閾値とに基づいて、前記小エリアが前記最適エリアであるか否かを判定し、前記ノイズリダクション実施判定手段は、前記大エリア又は前記小エリアが前記最適エリアと判定された場合には、前記注目画素データにノイズリダクションを行うべきと判定し、前記小エリアが前記最適エリアでないと判定された場合には、前記注目画素データにノイズリダクションを行うべきでないと判定する。 In the noise reduction device of the present invention, the RAW image data includes pixel data of a red (R) component, a green (G) component, and a blue (B) component, and the target pixel data is the R component or the B component. If there is, the optimum area determination means determines whether the large area is the optimum area based on the dispersion of the R component or B component pixel data included in the large area and the first threshold value. If the large area is not the optimal area, based on the dispersion of the R component or B component pixel data included in the small area and the first threshold, It is determined whether or not a small area is the optimal area, and the noise reduction execution determining means determines that the target pixel data is determined when the large area or the small area is determined as the optimal area. It determines that it should be performing the noise reduction capacitor, wherein when the small area is determined not to be the optimal area, determines not to make any noise reduction on the target pixel data.
本発明のノイズリダクション装置は、前記ノイズ量推定手段が、階調チャートを前記固体撮像素子により撮像して得られるRAW画像データによって予め求められた、各階調の画素データに含まれるノイズ量に相当するデータに基づいて、前記注目画素データに含まれるノイズ量を推定する。 In the noise reduction device according to the present invention, the noise amount estimation unit corresponds to a noise amount included in pixel data of each gradation obtained in advance by RAW image data obtained by imaging a gradation chart with the solid-state imaging device. The amount of noise included in the target pixel data is estimated based on the data to be processed.
本発明のノイズリダクション方法は、固体撮像素子から得られるRAW画像データのノイズリダクションを行うノイズリダクション方法であって、前記RAW画像データの注目画素データを含む、サイズの大きい大エリアと、前記大エリアよりもサイズの小さい小エリアとを少なくとも含む複数のエリア毎に、前記エリアに含まれる前記注目画素データと同一色成分の画素データ(以下、エリア同色画素データという)の平均値を算出する平均値算出ステップと、前記平均値に基づいて、前記複数のエリア毎に、前記エリア同色画素データの分散を算出する分散算出ステップと、前記注目画素データに含まれるノイズ量を推定するノイズ量推定ステップと、前記複数のエリア毎の前記分散に基づいて、前記複数のエリアのうち、前記注目画素データのノイズリダクション処理に利用するのに最適なエリアである最適エリアを判定する最適エリア判定ステップと、前記最適エリアについて算出された前記平均値に、前記推定されたノイズ量に応じて前記注目画素データを近づける処理を行って、前記注目画素データのノイズリダクション処理を行うノイズリダクション処理ステップとを含む。 The noise reduction method of the present invention is a noise reduction method for performing noise reduction of RAW image data obtained from a solid-state imaging device, and includes a large area having a large size including target pixel data of the RAW image data, and the large area An average value for calculating an average value of pixel data having the same color component as the target pixel data included in the area (hereinafter referred to as area same color pixel data) for each of a plurality of areas including at least a small area having a smaller size than A calculation step; a variance calculation step for calculating a variance of the same color pixel data for each of the plurality of areas based on the average value; and a noise amount estimation step for estimating a noise amount included in the target pixel data; , The pixel of interest among the plurality of areas based on the variance for each of the plurality of areas An optimal area determination step of determining an optimal area that is an optimal area to be used for the noise reduction processing of the data, and the average value calculated for the optimal area according to the estimated noise amount And a noise reduction processing step of performing a process of bringing the pixel data closer to perform a noise reduction process of the target pixel data.
本発明によれば、ノイズを効果的に除去して画質を向上させることが可能なノイズリダクション装置を提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the noise reduction apparatus which can remove a noise effectively and can improve an image quality can be provided.
以下、本発明の実施形態について図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.
図1は、本発明の実施形態を説明するためのデジタルカメラの要部概略構成を示す図である。
図1に示すデジタルカメラは、固体撮像素子1と、A/D変換部2と、バッファ3と、前処理回路4と、タイミングジェネレータ(TG)5と、画素データ保持部6と、ノイズリダクション(NR)装置7と、信号処理部8とを備える。
FIG. 1 is a diagram showing a schematic configuration of a main part of a digital camera for explaining an embodiment of the present invention.
A digital camera shown in FIG. 1 includes a solid-
固体撮像素子1は、半導体基板上の行方向及びこれに直交する列方向に配列された多数の光電変換素子を有するCCD型やMOS型のカラー固体撮像素子である。固体撮像素子1は、図2(a)に示すように、多数の光電変換素子10が半導体基板上の行方向(X方向)とこれに直交する列方向(Y方向)に正方格子状に配列されたものや、図2(b)に示すように、多数の光電変換素子10が特開平10−136391号公報に記載されたようないわゆるハニカム状に配列されたもの等を用いることができる。以下の説明では、固体撮像素子1に含まれる多数の光電変換素子はハニカム状に配列されているものとする。又、本実施形態では、1つの光電変換素子から出力される撮像信号をデジタル化したデータのことを画素データと定義する。
The solid-
固体撮像素子1は原色系のカラーフィルタを有しており、多数の光電変換素子には、例えば赤色(R)を検出する光電変換素子と、緑色(G)を検出する光電変換素子と、青色(B)を検出する光電変換素子とが含まれる。尚、カラーフィルタは補色系のものであっても良い。又、カラーフィルタの配列は規則配列(一意にRGBの相対位置を定めた配列)であれば特に限定されない。
The solid-
A/D変換部2は、固体撮像素子1から出力された多数の画素データをデジタル変換する。ここでデジタル変換された多数の画素データは、いわゆるRAW画像データとなる。RAW画像データは、固体撮像素子1から出力された点順次の撮像信号をそのままデジタル化したデータであり、このデータのままでは、1撮像点に1つの色成分の画素データしか存在していないため、カラー画像を生成することはできない形式のデータである。
The A / D converter 2 digitally converts a large number of pixel data output from the solid-
バッファ3は、固体撮像素子1と信号処理部8との駆動速度差を吸収するものであり、一般的なFIFO等によって構成される。
The
前処理回路4は、バッファ3から供給されるRAW画像データに対し、OB補正、ゲイン調整、スミア補正、シェーディング補正、及びガンマ補正等の各種信号処理を行う。
The preprocessing circuit 4 performs various signal processing such as OB correction, gain adjustment, smear correction, shading correction, and gamma correction on the RAW image data supplied from the
画素データ保持部6は、前処理回路4から出力された多数の画素データを保持し、NR装置7に画素データを供給するものであり、N−1個のラインメモリ61と、N個の遅延素子62とを備える。
The pixel data holding unit 6 holds a large number of pixel data output from the preprocessing circuit 4 and supplies the pixel data to the NR device 7. The pixel data holding unit 6 has N−1
NR装置7は、画素データ保持部6から出力される画素データに対し、後述する処理アルゴリズムによってNR処理を行う。 The NR device 7 performs NR processing on the pixel data output from the pixel data holding unit 6 by a processing algorithm described later.
信号処理部8は、NR処理後の多数の画素データから、1撮像点にR(赤色),G(緑色),B(青色)の画素データを持たせる同時化処理やYC変換処理等を行う。これらの処理により、カラー画像を再生することが可能となる。 The signal processing unit 8 performs a synchronization process, a YC conversion process, and the like in which a single imaging point has pixel data of R (red), G (green), and B (blue) from a large number of pixel data after NR processing. . Through these processes, a color image can be reproduced.
尚、前処理回路4、画素データ保持部6、NR装置7、及び信号処理部8のいずれにおいてもパイプライン処理がなされているものとし、これによって画素データの高速逐次処理が可能となる。又、前処理回路4は、RAW画像データに対して信号処理を行うことができれば良いため、図3に示すように、NR装置7と信号処理部8との間に設けておいても良い。 It is assumed that pipeline processing is performed in any of the preprocessing circuit 4, the pixel data holding unit 6, the NR device 7, and the signal processing unit 8, thereby enabling high-speed sequential processing of pixel data. The preprocessing circuit 4 may be provided between the NR device 7 and the signal processing unit 8 as shown in FIG. 3 as long as it can perform signal processing on the RAW image data.
NR装置7では、画素データ保持部6から供給される多数の画素データに対して、NR処理を行う対象となる注目画素データを含む複数のエリアを設定し、この複数のエリアから注目画素データのノイズリダクション処理に利用するのに最適なエリアである最適エリアを判定し、この最適エリアに含まれる画素データを利用して、注目画素データに対するNR処理を行う。 In the NR device 7, a plurality of areas including target pixel data to be subjected to NR processing are set for a large number of pixel data supplied from the pixel data holding unit 6, and the target pixel data is determined from the plurality of areas. An optimum area, which is an optimum area for use in noise reduction processing, is determined, and NR processing is performed on target pixel data using pixel data included in the optimum area.
図4は、図1に示す画素データ保持部6からNR装置7に供給される画素データを二次元状に配置したイメージ図である。
NR装置7では、例えば図4に示すように、注目画素データを含むサイズの大きい大エリアLと、注目画素データを含むサイズの小さい小エリアSと、注目画素データを含む横長の横エリアHと、注目画素データを含む縦長の縦エリアVとを設定する。エリアS,H,VはエリアLの内側に設定される。
FIG. 4 is an image diagram in which the pixel data supplied from the pixel data holding unit 6 shown in FIG. 1 to the NR device 7 is two-dimensionally arranged.
In the NR device 7, for example, as shown in FIG. 4, a large area L having a large size including target pixel data, a small area S having a small size including target pixel data, and a horizontally long horizontal area H including target pixel data, A vertically long vertical area V including the target pixel data is set. Areas S, H, and V are set inside area L.
図5は、図1に示すNR装置7の概略構成を示すブロック図である。
NR装置7は、平均算出部71と、二乗平均算出部72と、判別回路73と、メモリ74と、NR処理部75と、出力部76とを備える。
FIG. 5 is a block diagram showing a schematic configuration of the NR device 7 shown in FIG.
The NR device 7 includes an
NR装置7では、注目画素データに含まれると推定されるノイズ量をメモリ74に予め記憶しておくことで、ノイズ量の推定に要する回路規模の削減を実現している。例えば、平坦な256階調のグレースケールチャートを用意し、これを固体撮像素子1によって低感度から高感度までの各撮影感度で撮影する。そして、グレースケールチャートの各階調画像を撮影して得られた画素データに含まれる各色成分の画素データの偏差の平均を求める。そして、図6に示すように、0〜255までの各階調毎の前記偏差の平均を示す偏差ヒストグラムをメモリ74に記憶しておく。メモリ74には、図6に示すような偏差ヒストグラムが、R成分、G成分、及びB成分のそれぞれについて、各撮影感度毎に記憶されている。ある階調の画像を撮影して得られた画素データに含まれる各色成分の画素データの偏差の平均は、その階調の画像に含まれる各色成分のノイズ量に相当する。つまり、図6に示す偏差ヒストグラムを用いることで、撮影して得られた画素データに含まれるノイズ量を推定することができる。
In the NR device 7, the noise amount estimated to be included in the pixel-of-interest data is stored in the
尚、図6に示す破線のように、画措置を複数の画素値のブロックに区切り、各々のブロックで最も近い一次直線を繋ぎ合わせたものを用いれば、メモリ74をよりコンパクトにすることができる。どちらの構成にするかは、自由度とハードウェア量とのトレードオフ次第である。
Note that the
平均算出部71は、各エリア毎に、エリアに含まれる注目画素データと同一色成分の画素データ(以下、エリア同色画素データという)の平均を算出して判別回路73に出力する。
The
二乗平均算出部72は、各エリア毎に、エリア同色画素データの二乗平均を算出して判別回路73に出力する。エリア同色画素データをvalとすると、エリア同色画素データの二乗平均は、
The mean
で求まる。尚、各エリアは、重複する部分があるため、画像データの積算経路を工夫することで、効率の良い回路を実現することができる。
図7は、小エリアSを5行×5列、大エリアLを13行×13列とし、注目画素データがG成分であるときのG成分の画素データの積算経路の一例を示す図である。
図7に示す符号71a、71d、及び71fは、それぞれ遅延素子である。図7に示す符号71b、71c、71e、71g、71h、及び71iは、それぞれ積算器である。図7に示すように、小エリアSでの積算結果を大エリアLでの積算結果に積算することで、重複演算を避けることができ、効率の良い演算が可能となる。
It is obtained by Since each area has an overlapping portion, an efficient circuit can be realized by devising an integration path of image data.
FIG. 7 is a diagram illustrating an example of an accumulation path of G component pixel data when the small area S is 5 rows × 5 columns, the large area L is 13 rows × 13 columns, and the target pixel data is the G component. .
判別回路73には、分散算出部77と、最適エリア判定部78と、NR実施判定部79と、ノイズ量推定部80とが含まれる。
The discriminating
分散算出部77は、各エリア毎に、エリア同色画素データの分散を算出する。エリア同色画素データの分散は、エリア同色画素データをvalとし、エリア同色画素データの平均をaveとしたとき、以下の式1で算出することができるが、本実施形態では、より計算に向いた式2の近似式を用いて分散を算出するものとする。もちろん、式1を用いて分散を算出しても良い。式2の右辺第一項は二乗平均であり、右辺第二項は平均の二乗であるため、分散算出部77は、平均算出部71及び二乗平均算出部72から供給されたデータに基づいて、エリア同色画素データの分散を算出することができる。
The
ノイズ量推定部80は、メモリ74に記憶されている偏差ヒストグラムから、注目画素データの画素値に対応する偏差を取得し、取得した偏差を、注目画素データに含まれるノイズ量として推定する。尚、ノイズ量の推定方法としては、公知の手法を用いても良い。
The noise
最適エリア判定部78は、各エリアの分散に基づいて、各エリアのうち、注目画素データのノイズリダクション処理に利用するのに最適なエリアである最適エリアを判定する。判定のアルゴリズムは後述する。
Based on the variance of each area, the optimal
NR実施判定部79は、注目画素データに対してNR処理を行うべきか否かを判定し、判定結果をNR処理部75と出力部76に通知する。
The NR
NR処理部75は、NR実施判定部79からNR処理を行うべき旨の通知を受けたときに、注目画素データに含まれるノイズを低減するNR処理を行い、NR処理後の注目画素データを出力部76に出力する。本実施形態では、最適エリアの分散が小さくなれば、注目画素データのノイズが低減されるということに着目して、NR処理を行う。最適エリアの分散を小さくするためには、最適エリアに含まれるエリア同色画素データの偏差を小さくすれば良い。
When the
図8は、最適エリアの分散を小さくする処理のイメージを示す図である。図8の実線は、最適エリア内のエリア同色画素データの偏差の分布を示しており、図8の破線は、分散を小さくした後の最適エリア内のエリア同色画素データの偏差の分布を示している。図8の実線の分布を破線の分布にする処理を行うことで、画質を劣化させることなく、最適エリアの分散を小さくすることができる。 FIG. 8 is a diagram showing an image of processing for reducing the variance of the optimum area. The solid line in FIG. 8 shows the distribution of deviation of the same color pixel data in the optimum area, and the broken line in FIG. 8 shows the distribution of deviation of the same color pixel data in the optimum area after the variance is reduced. Yes. By performing the process of changing the distribution of the solid line in FIG. 8 to the distribution of the broken line, it is possible to reduce the variance of the optimum area without degrading the image quality.
図8の破線のような分布を得るためには、次の式3で示されるような係数ratioを、最適エリアについて算出された平均値と各エリア同色画素データとの差分に乗じて、この差分を小さくする処理を行えば良い。
In order to obtain the distribution shown by the broken line in FIG. 8, the difference between the average value calculated for the optimum area and the pixel data of the same color for each area is multiplied by the coefficient ratio as shown in the following
式3:係数ratio=f+{(f−g)/(sigma×h)}×|valc−aves|
ここで、f,g,hは所定の係数であり、sigmaは注目画素データに対応する偏差であり、valcは注目画素データの画素値であり、avesは最適エリアについて算出された平均値である。
Equation 3: Coefficient ratio = f + {(f−g) / (sigma × h)} × | valc-aves |
Here, f, g, and h are predetermined coefficients, sigma is a deviation corresponding to the target pixel data, valc is a pixel value of the target pixel data, and aves is an average value calculated for the optimum area. .
注目画素データのNR処理は、注目画素データに含まれると推定されるノイズ量に応じて行う必要があるため、係数ratioは、注目画素データに対応する偏差sigmaに応じて変化する値となっている。 Since the NR processing of the target pixel data needs to be performed according to the amount of noise estimated to be included in the target pixel data, the coefficient ratio becomes a value that changes according to the deviation sigma corresponding to the target pixel data. Yes.
実際には、注目画素データに含まれるノイズを低減することが目的であるため、最適エリアについて算出された平均値と各エリア同色画素データとの差分に係数ratioを乗じ、この差分を小さくする処理は、注目画素データについてのみ行えば良い。つまり、実際の動作では、NR処理部75は、注目画素データに対応する偏差(sigma)に基づいて係数ratioを算出し、この係数ratioを用いた以下の式4により、最適エリアについて算出された平均値と注目画素データとの差分を小さくする処理(最適エリアについて算出された平均値に、推定されたノイズ量に応じて注目画素データを近づける処理と同義)を行って、注目画素データのノイズリダクション処理を行う。
Actually, the purpose is to reduce the noise contained in the pixel data of interest, so the process of reducing the difference by multiplying the difference between the average value calculated for the optimal area and the same color pixel data of each area by the coefficient ratio May be performed only for the target pixel data. That is, in the actual operation, the
式4:NR処理後の注目画素データval_new=aves+(valc−aves)×ratio Expression 4: Remarked pixel data after NR processing val_new = aves + (valc-aves) × ratio
画像の低輝度部分での偽色及び色ノイズは、広い範囲の画像を利用することで効果的に減らすことができる。つまり、画像の低輝度部分での偽色及び色ノイズの低減には、大エリアLを最適エリアとすることが効果的である。ただし、大エリアLだけを用いてNR処理を行うと、画質は維持できない。そこで、本実施形態では、大エリアL以外に、小エリアS,横エリアH,縦エリアVを設定し、これらのエリアを画像に応じて選択的に利用することで、画質の向上を実現している。 False color and color noise in the low-luminance portion of the image can be effectively reduced by using a wide range of images. That is, it is effective to set the large area L as the optimum area in order to reduce the false color and the color noise in the low luminance part of the image. However, if NR processing is performed using only the large area L, the image quality cannot be maintained. Therefore, in the present embodiment, in addition to the large area L, a small area S, a horizontal area H, and a vertical area V are set, and these areas are selectively used according to the image, thereby improving the image quality. ing.
出力部76は、NR実施判定部79の判定結果に応じて、NR処理部75でNR処理後の注目画素データと、NR処理が施されていない注目画素データとのいずれかを、信号処理部8に出力する。出力部76には、判別回路73を介して注目画素データが供給される。
Based on the determination result of the NR
次に、ノイズリダクション装置7の動作を説明する。
図9は、注目画素データがG成分であるときの、図5に示したノイズリダクション装置の動作フローを示す図である。尚、注目画素データがR成分又はG成分であるときの動作も図9と同様である。図9では、大エリアL、小エリアS、横エリアH、及び縦エリアVの各々の符号を省略している。
撮像が行われ、RAW画像データが入力されると、平均算出部71、二乗平均算出部72、及び分散算出部77によって、大エリアL、小エリアS、横エリアH、及び縦エリアVの各々の平均と分散が算出される(S10)。
Next, the operation of the noise reduction device 7 will be described.
FIG. 9 is a diagram illustrating an operation flow of the noise reduction device illustrated in FIG. 5 when the target pixel data is the G component. The operation when the pixel-of-interest data is the R component or the G component is the same as that in FIG. In FIG. 9, symbols for the large area L, the small area S, the horizontal area H, and the vertical area V are omitted.
When imaging is performed and RAW image data is input, each of the large area L, the small area S, the horizontal area H, and the vertical area V is obtained by the
次に、ノイズ量推定部80は、入力されたRAW画像データを得るために行った撮影の撮影感度と、注目画素データの色成分とに対応する偏差ヒストグラムから、注目画素データの画素値に対応する偏差sigmaを取得する(S20)。
Next, the noise
次に、最適エリア判定部78は、偏差sigmaから、最適エリアを判定するための判定基準となる第一の閾値である閾値A及び閾値Bと、最適エリアを利用して注目画素データにNR処理を行うべきか否かを判定するための判定基準となる第二の閾値である閾値Cとを生成する(S30)。閾値Aは、偏差sigmaに所定の係数aを乗じた値である。閾値Bは、偏差sigmaに所定の係数bを乗じた値を二乗した値である。閾値Cは、偏差sigmaに所定の係数cを乗じた値を二乗した値である。
Next, the optimal
次に、最適エリア判定部78は、大エリアLと小エリアSの分散と平均をそれぞれ比較する(S40)。大エリアLと小エリアSの分散を比較するのは、分散が小さいエリアの方が、画像に変化が少ないと考えられることから、大エリアLと小エリアSのどちらがNR処理を行うために適しているかを判定するためである。
又、仮に大エリアLの分散より小エリアSの分散が小さい場合でも、大エリアLと小エリアSの平均にあまり差がないような場合には、大エリアL内の画像と小エリアS内の画像にあまり差がないと考えられる。低輝度部分の偽色や色ノイズは画質に大きな影響を与えるため、このような場合には、大エリアLを優先的に利用するのが望ましい。このような理由から、最適エリア判定部78は、大エリアLと小エリアSの平均も比較することで、大エリアLと小エリアSのどちらがNR処理を行うために適しているかを判定する。
Next, the optimum
Even if the variance of the small area S is smaller than the variance of the large area L, if the average of the large area L and the small area S is not so different, the image in the large area L and the small area S It seems that there is not much difference in the images. Since the false color and color noise in the low-luminance part have a great influence on the image quality, it is desirable to use the large area L preferentially in such a case. For this reason, the optimum
S40での比較の結果、大エリアLの分散よりも小エリアSの分散の方が大きかったり、大エリアLと小エリアSの平均の差が閾値Aの所定%未満であったりした場合(S40:N)、最適エリア判定部78は、大エリアLを最適エリアとして判定する(S41)。ただし、ここで判定された最適エリアは、4つのエリアの中で最適であると判定されただけであり、大エリアL内の画像が変化の少ないものであるかどうかははっきりしていない。大エリアL内の画像が変化の少ないものであれば、NR処理を行うことで、良好な画像を得ることができる。しかし、大エリアL内の画像が網目等の変化の多いものであった場合、NR処理を行ってしまうと、エッジが丸まってしまい、解像感が低下してしまう。そこで、ノイズリダクション装置7では、大エリアLが最適エリアとして判定された後、NR実施判定部79が、大エリアLの分散と閾値Cを比較し、大エリアLにNR処理を行うべきか否かを最終的に判定する(S42)。
As a result of the comparison in S40, the variance of the small area S is greater than the variance of the large area L, or the average difference between the large area L and the small area S is less than a predetermined percentage of the threshold A (S40). : N), the optimal
大エリアLの分散が閾値Cよりも大きかった場合(S42:Y)、大エリアL内の画像は変化の多いものであると考えられるため、NR実施判定部79は、注目画素データにNR処理をすべきではないと判定し(S42Y)、その旨をNR処理部75と出力部76に通知する。一方、大エリアLの分散が閾値C以下だった場合(S42:N)、大エリアL内の画像は変化の少ないものであると考えられるため、NR実施判定部79は、注目画素データにNR処理をすべきと判定し、その旨をNR処理部75と出力部76に通知する。NR処理部75は、注目画素データにNR処理をすべき旨の通知があったときに、最適エリア判定部78によって判定された最適エリアの平均と、偏差sigmaと、注目画素データとを用いてNR処理を行う(S60)。出力部76は、NR実施判定部79からの通知にしたがって、注目画素データ又はNR処理後の注目画素データを出力する。
When the variance of the large area L is larger than the threshold value C (S42: Y), since the image in the large area L is considered to have many changes, the NR
S40での比較の結果、大エリアLの分散よりも小エリアSの分散の方が小さく、且つ、大エリアLと小エリアSの平均の差が閾値Aの所定%以上であった場合(S40:Y)、最適エリア判定部78は、大エリアLを非最適エリアとして判定する。
As a result of the comparison in S40, the variance in the small area S is smaller than the variance in the large area L, and the average difference between the large area L and the small area S is equal to or greater than a predetermined percentage of the threshold A (S40). : Y), the optimal
次に、最適エリア判定部78は、縦エリアVの分散と横エリアHの分散の差が閾値Bの所定%以上か否かを判定する。縦エリアVの分散と横エリアHの分散との差が閾値Bの所定%未満であった場合(S43:N)は、小エリアS内の画像に縦と横で変化が少ないと考えられることから、このような場合、最適エリア判定部78は、小エリアSを最適エリアとして判定する(S44)。
Next, the optimum
小エリアSが最適エリアとして判定された後、NR実施判定部79が、小エリアSの分散と閾値Cを比較し、小エリアSにNR処理を行うべきか否かを最終的に判定する(S45)。小エリアSの分散が閾値Cよりも大きかった場合(S45:Y)、NR実施判定部79は、注目画素データにNR処理をすべきではないと判定し(S45Y)、その旨をNR処理部75と出力部76に通知する。一方、小エリアSの分散が閾値C以下だった場合(S45:N)、NR実施判定部79は、注目画素データにNR処理をすべきと判定し、その旨をNR処理部75と出力部76に通知する。以後はS60へと処理が移行する。
After the small area S is determined as the optimum area, the NR
一方、S43において、縦エリアVの分散と横エリアHの分散との差が閾値Bの所定%以上であった場合(S43:Y)は、小エリアS内の画像に縦と横で変化が大きいと考えられることから、このような場合、最適エリア判定部78は、小エリアSを非最適エリアとして判定する。
On the other hand, in S43, when the difference between the variance of the vertical area V and the variance of the horizontal area H is equal to or greater than a predetermined percentage of the threshold value B (S43: Y), the image in the small area S changes vertically and horizontally. Since it is considered to be large, in such a case, the optimum
次に、最適エリア判定部78は、横エリアHと縦エリアVの分散を比較する(S46)。横エリアHの分散の方が大きかった場合(S46:Y)、最適エリア判定部78は、縦エリアVを最適エリアとして判定する(S47)。縦エリアVが最適エリアとして判定された後、NR実施判定部79が、縦エリアVの分散と閾値Cを比較し、縦エリアVにNR処理を行うべきか否かを最終的に判定する(S48)。縦エリアVの分散が閾値Cよりも大きかった場合(S48:Y)、NR実施判定部79は、注目画素データにNR処理をすべきではないと判定し(S48Y)、その旨をNR処理部75と出力部76に通知する。一方、縦エリアVの分散が閾値C以下だった場合(S48:N)、NR実施判定部79は、注目画素データにNR処理をすべきと判定し、その旨をNR処理部75と出力部76に通知する。以後はS60へと処理が移行する。
Next, the optimum
S46において、縦エリアVの分散の方が大きかった場合(S46:N)、最適エリア判定部78は、横エリアHを最適エリアとして判定する(S49)。横エリアHが最適エリアとして判定された後、NR実施判定部79が、横エリアHの分散と閾値Cを比較し、横エリアHにNR処理を行うべきか否かを最終的に判定する(S50)。横エリアHの分散が閾値Cよりも大きかった場合(S50:Y)、NR実施判定部79は、注目画素データにNR処理をすべきではないと判定し(S50Y)、その旨をNR処理部75と出力部76に通知する。一方、横エリアHの分散が閾値C以下だった場合(S50:N)、NR実施判定部79は、注目画素データにNR処理をすべきと判定し、その旨をNR処理部75と出力部76に通知する。以後はS60へと処理が移行する。
In S46, when the variance of the vertical area V is larger (S46: N), the optimal
図10は、図5に示すノイズリダクション装置の動作時のイメージを示す図である。図10中に示す破線は大エリア及び小エリアを示している。図10に示すイメージは、上述した縦エリア及び横エリアについては考慮していないときのものである。
エリアが(A),(C),(D),(E)のような位置に設定された場合には、大エリアLと小エリアSの分散及び平均に差があまりないため、大エリアLが最適エリアとして判定される。又、エリアが(B)や(F)のような位置に設定された場合には、大エリアLの分散よりも小エリアSの分散が小さく、且つ、大エリアLと小エリアSの平均に差が大きく、且つ、横エリアHと縦エリアVに差があまりないため、小エリアSが最適エリアとして判定される。最適エリアと判定されても、その最適エリア内に境界や網目等が存在している(C)や(D)のような場合には、解像感を低下させないために、NR処理は行われない。
FIG. 10 is a diagram illustrating an image during operation of the noise reduction device illustrated in FIG. 5. Broken lines shown in FIG. 10 indicate a large area and a small area. The image shown in FIG. 10 is obtained when the above-described vertical area and horizontal area are not considered.
When the area is set to a position such as (A), (C), (D), (E), there is not much difference in the variance and average of the large area L and the small area S. Is determined as the optimum area. Further, when the area is set at a position such as (B) or (F), the dispersion of the small area S is smaller than the dispersion of the large area L, and the average of the large area L and the small area S is obtained. Since the difference is large and there is not much difference between the horizontal area H and the vertical area V, the small area S is determined as the optimum area. Even if the area is determined to be the optimum area, in the case of (C) or (D) where boundaries or meshes exist in the optimum area, NR processing is performed in order not to reduce the resolution. Absent.
以上のように、ノイズリダクション装置7によれば、複数のエリアを設定し、各エリア内に入っている画像に応じて、エリアを選択的に利用してNR処理を行っているため、画質を向上させることができる。又、各エリアの分散を比較して最適エリアの判定を行うため、簡単なアルゴリズムで画像の判別を行うことができる。又、予め求めておいた偏差ヒストグラムからノイズ量を推定し、このノイズ量をも考慮して画像の判別を行っているため、高い判別精度を実現することができる。 As described above, according to the noise reduction device 7, since a plurality of areas are set and NR processing is performed selectively using the areas in accordance with the images contained in each area, the image quality is improved. Can be improved. In addition, since the optimum area is determined by comparing the variance of each area, the image can be determined with a simple algorithm. Further, since the noise amount is estimated from the deviation histogram obtained in advance and the image is discriminated in consideration of this noise amount, high discrimination accuracy can be realized.
又、ノイズリダクション装置7によれば、画像の判別を行って最適エリアを判定した後に、ノイズ量を考慮した閾値Cを用いて、NR処理を行うべきか否かを判定するため、変化の多い画像に対してNR処理を行ってしまうことで発生する解像感の低下を抑制することができる。尚、解像感の低下を無視すれば、NR実施判定部79による判定処理は省略しても構わない。この場合は、図9において、S41、S44、S47、及びS49の処理の後、すぐにNR処理部75によってNR処理を開始するようにすれば良い。
Further, according to the noise reduction device 7, after determining the optimum area by determining the image, it is determined whether the NR processing should be performed using the threshold value C in consideration of the amount of noise. It is possible to suppress a decrease in resolution that occurs due to performing NR processing on an image. Note that the determination processing by the NR
又、ノイズリダクション装置7によれば、ノイズ量の推定を行う回路等を持つ必要がないため、従来に比べ、回路規模を削減することができる。 Further, according to the noise reduction device 7, since it is not necessary to have a circuit for estimating the amount of noise, the circuit scale can be reduced as compared with the prior art.
又、ノイズリダクション装置7は、最適エリアの分散を小さくするという考えを用いて、注目画素データのNR処理を行っている。最適エリアにフィルタリング等のNR処理を行うと、複数のエリアの切り替わりで不自然な輪郭ができてしまう可能性があるが、本実施形態のように、分散という統計的な数値を小さくするという考えを用いることで、不自然な輪郭の発生を防ぐことができる。とはいえ、大エリアLと小エリアSのサイズに差があり過ぎた場合には、大エリアLと小エリアSの分散の差が大きくなってしまうため、エリアの境界部付近で不連続感のある画像となってしまう。したがって、大エリアLのサイズは、小エリアSのサイズの2倍程度に止めておくことが望ましい。又は、大エリアLと小エリアSの間に中間サイズのエリアを追加する等の措置をとることが望ましい。 Further, the noise reduction device 7 performs the NR processing of the pixel data of interest using the idea of reducing the variance of the optimum area. When NR processing such as filtering is performed on the optimal area, there is a possibility that an unnatural contour may be formed due to switching of a plurality of areas. However, as in this embodiment, the idea of reducing the statistical value of variance is reduced. By using, the generation of an unnatural contour can be prevented. However, if there is too much difference between the size of the large area L and the small area S, the difference in dispersion between the large area L and the small area S becomes large. It becomes an image with. Therefore, it is desirable to keep the size of the large area L to about twice the size of the small area S. Alternatively, it is desirable to take measures such as adding an intermediate size area between the large area L and the small area S.
尚、以上の説明では、最適エリアの判定精度を上げるために、図9のS40において大エリアLと小エリアSの平均の差と閾値Aとを比較しているが、この比較は省略しても良い。この場合は、S40において、大エリアLと小エリアSの分散のみを比較し、大エリアLの方が大きい場合はS41へ、小エリアSの方が大きい場合はS43へ処理を移行すれば良い。 In the above description, the average difference between the large area L and the small area S is compared with the threshold A in S40 of FIG. 9 in order to increase the determination accuracy of the optimum area, but this comparison is omitted. Also good. In this case, in S40, only the dispersion of the large area L and the small area S is compared. If the large area L is larger, the process proceeds to S41. If the small area S is larger, the process proceeds to S43. .
又、以上の説明では、エリアを4つ設定するものとしたが、設定するエリアは、大エリアLと小エリアSの少なくとも2つあれば良い。本実施形態のように横エリアHと縦エリアVを設定することで、画像の判別を細かく行うことができ、高精度のNR処理が可能となる。横エリアHと縦エリアVを設定いない場合の動作フローは、図9のS40の判断がYESであったときにS44に処理を移行する形となる。 In the above description, four areas are set. However, the area to be set may be at least two of the large area L and the small area S. By setting the horizontal area H and the vertical area V as in the present embodiment, it is possible to finely discriminate an image and to perform highly accurate NR processing. When the horizontal area H and the vertical area V are not set, the operation flow is such that the process proceeds to S44 when the determination in S40 of FIG. 9 is YES.
尚、以上の説明では、注目画素データがR成分、G成分、B成分のいずれである場合でも、ノイズリダクション装置7で同一の処理を行うものとしたが、注目画素データがR成分又はB成分である場合には、ノイズリダクション装置7をより簡単なアルゴリズムで動作させても問題はない。以下、この簡単なアルゴリズムについて説明する。 In the above description, the same processing is performed by the noise reduction device 7 regardless of whether the target pixel data is the R component, the G component, or the B component. However, the target pixel data is the R component or the B component. In this case, there is no problem even if the noise reduction device 7 is operated with a simpler algorithm. Hereinafter, this simple algorithm will be described.
図11は、注目画素データがR成分又はB成分である場合のノイズリダクション装置7の動作フローを示す図である。図11では、大エリアL及び小エリアSの各々の符号を省略している。又、図11では、R成分又はB成分のことを、R/Bとして表記している。
撮像が行われ、RAW画像データが入力されると、平均算出部71、二乗平均算出部72、及び分散算出部77によって、大エリアLと小エリアSのそれぞれに含まれるR成分又はB成分の平均及び分散と、大エリアLと小エリアSのそれぞれに含まれるG成分の分散とが算出される(S70)。
FIG. 11 is a diagram illustrating an operation flow of the noise reduction device 7 when the target pixel data is an R component or a B component. In FIG. 11, the symbols for the large area L and the small area S are omitted. In FIG. 11, the R component or the B component is expressed as R / B.
When imaging is performed and RAW image data is input, the
次に、ノイズ量推定部80は、入力されたRAW画像データを得るために行った撮影の撮影感度と、注目画素データとに対応する偏差ヒストグラムから、注目画素データの画素値に対応する偏差sigma(R/B)を取得し、入力されたRAW画像データを得るために行った撮影の撮影感度とG成分とに対応する偏差ヒストグラムから、注目画素データに隣接するG成分の画素データのいずれかに対応する偏差sigma(G)を取得する(S80)。
Next, the noise
最適エリア判定部78は、偏差sigma(R/B)から、最適エリアを判定するための判定基準となる第一の閾値である閾値Dを生成し、偏差sigma(G)から、最適エリアを判定するための判定基準となる第一の閾値である閾値Eを生成する(S90)。閾値Dは、偏差sigma(R/B)に所定の係数dを乗じた値を二乗した値である。閾値Eは、偏差sigma(G)に所定の係数eを乗じた値を二乗した値である。
The optimal
次に、最適エリア判定部78は、大エリアLに含まれるR成分又はB成分の分散と閾値Dとを比較し、大エリアLに含まれるG成分の分散と閾値Eとを比較する(S100)。ここで、G成分の分散と閾値Eとを比較している理由は、R成分又はB成分だけでは、輝度に対するセンシビリティが弱く、画像の判別がしづらいためである。大エリアLに含まれるR成分又はB成分の分散と、大エリアLに含まれるG成分の分散とのいずれもが閾値D,E未満であった場合(S100:N)、この場合は、大エリアL内の画像に変化が少ないと考えられるため、最適エリア判定部78は、大エリアLを最適エリアとして判定する(S100N)。
Next, the optimum
一方、大エリアLに含まれるR成分又はB成分の分散と、大エリアLに含まれるG成分の分散とのいずれかが閾値D,E以上であった場合(S100:Y)、この場合は、大エリアL内の画像に変化が多いと考えられるため、最適エリア判定部78は、大エリアLを非最適エリアとして判定し、小エリアSに含まれるR成分又はB成分の分散と閾値Dとを比較し、小エリアSに含まれるG成分の分散と閾値Eとを比較する(S120)。
On the other hand, when either the dispersion of the R component or B component included in the large area L or the dispersion of the G component included in the large area L is equal to or greater than the thresholds D and E (S100: Y), Since the image in the large area L is considered to have many changes, the optimal
小エリアSに含まれるR成分又はB成分の分散と、小エリアSに含まれるG成分の分散とのいずれもが閾値D,E未満であった場合(S120:N)、この場合は、小エリアS内の画像に変化が少ないと考えられるため、最適エリア判定部78は、小エリアSを最適エリアとして判定する(S120N)。
When both the dispersion of the R component or B component included in the small area S and the dispersion of the G component included in the small area S are less than the threshold values D and E (S120: N), Since it is considered that there is little change in the image in the area S, the optimal
注目画素データがG成分であるときの動作では、NR実施判定部79が、S100NやS120Nにおいて最適エリアが判定された後、NR処理を実施すべきか否かの判定を行っている。しかし、低輝度部分での偽色・色ノイズは大部分がR成分及びB成分に起因しているため、又、G成分とのバランスをとるため、できうる限りNR処理を行った方が良い。又、R成分又はB成分がG成分ほど解像に寄与しないため、NR処理による画質劣化もそれほど大きくない。このような理由から、NR実施判定部79は、S100NやS120Nにおいて最適エリアが判定された後は、NR処理をすべきと判定する。これにより、最適エリアの決定後はNR処理が必ず行われ(S60)、出力部76からはNR処理後の注目画素データが出力される。
In the operation when the pixel-of-interest data is the G component, the NR
S120において、小エリアSに含まれるR成分又はB成分の分散と、小エリアSに含まれるG成分の分散とのいずれかが閾値D,E以上であった場合(S120:Y)、この場合は、小エリアS内の画像に変化が多いと考えられるため、最適エリア判定部78は、小エリアSを非最適エリアとして判定する。小エリアSが非最適エリアとして判定された場合、NR実施判定部79は、注目画素データにNR処理をすべきでないと判定し、その旨をNR処理部75及び出力部76に通知する(S120Y)。これにより、出力部76からは、NR処理されていない注目画素データが出力される。R成分又はB成分はG成分ほど解像に寄与せず、S120Y以降に最適エリアの判定を行わなくとも画質を維持することが可能である。このため、注目画素データがR成分又はB成分であるときは、図11に示すような簡単な処理で十分である。
In S120, when either the dispersion of the R component or B component included in the small area S or the dispersion of the G component included in the small area S is equal to or greater than the thresholds D and E (S120: Y), in this case Since it is considered that there are many changes in the image in the small area S, the optimal
図11に示したような処理によれば、大エリアLが最適エリアであるかどうかの判定を優先して行っているため、低輝度部分での偽色及び色ノイズの除去を優先的に行うことができ、画質向上につながる。又、注目画素データがG成分であるときよりもアルゴリズムを簡単にすることができる。 According to the processing as shown in FIG. 11, since the determination as to whether or not the large area L is the optimum area is prioritized, false color and color noise are preferentially removed from the low-luminance portion. Can lead to improved image quality. Further, the algorithm can be simplified as compared with the case where the target pixel data is the G component.
尚、図11のS100及びS120において、G成分の分散と閾値Eとを比較するのは、上述したように、画像の判別をよりしやすくするためであるため、必ずしも必須ではない。G成分の分散と閾値Eとを比較を行わない場合は、図11のS100において、大エリアLのR成分又はB成分の分散が閾値D未満のときにS100Nに処理を移行し、大エリアLのR成分又はB成分の分散が閾値D以上のときにS120に処理を移行すれば良い。又、図11のS120において、小エリアSのR成分又はB成分の分散が閾値D未満のときにS120Nに処理を移行し、小エリアSのR成分又はB成分の分散が閾値D以上のときにS120Yに処理を移行すれば良い。 In S100 and S120 of FIG. 11, the comparison of the variance of the G component and the threshold value E is not necessarily indispensable, as described above, in order to facilitate image discrimination. When the comparison of the variance of the G component and the threshold E is not performed, the process proceeds to S100N when the variance of the R component or the B component of the large area L is less than the threshold D in S100 of FIG. When the variance of the R component or B component is equal to or greater than the threshold value D, the process may be shifted to S120. In S120 of FIG. 11, when the dispersion of the R component or B component in the small area S is less than the threshold D, the process proceeds to S120N, and when the dispersion of the R component or B component in the small area S is greater than or equal to the threshold D. The process may be shifted to S120Y.
1 固体撮像素子
2 A/D変換部
3 バッファ
4 前処理回路
5 TG
6 画素データ保持部
7 ノイズリダクション装置
8 信号処理部
71 平均算出部
72 二乗平均算出部
73 判別回路
74 メモリ
75 ノイズリダクション処理部
76 出力部
77 分散算出部
78 最適エリア判定部
79 ノイズリダクション実施判定部
80 ノイズ量推定部
DESCRIPTION OF
6 Pixel data holding unit 7 Noise reduction device 8
Claims (6)
前記RAW画像データの注目画素データを含む、サイズの大きい大エリアと、前記大エリアよりもサイズの小さい小エリアとを少なくとも含む複数のエリア毎に、前記エリアに含まれる前記注目画素データと同一色成分の画素データ(以下、エリア同色画素データという)の平均値を算出する平均値算出手段と、
前記平均値に基づいて、前記複数のエリア毎に、前記エリア同色画素データの分散を算出する分散算出手段と、
前記注目画素データに含まれるノイズ量を推定するノイズ量推定手段と、
前記複数のエリア毎の前記分散に基づいて、前記複数のエリアのうち、前記注目画素データのノイズリダクション処理に利用するのに最適なエリアである最適エリアを判定する最適エリア判定手段と、
前記最適エリアについて算出された前記平均値に、前記推定されたノイズ量に応じて前記注目画素データを近づける処理を行って、前記注目画素データのノイズリダクション処理を行うノイズリダクション処理手段とを備えるノイズリダクション装置。 A noise reduction device that performs noise reduction of RAW image data obtained from a solid-state imaging device,
The same color as the target pixel data included in the area for each of a plurality of areas including at least a large area having a large size and a small area having a size smaller than the large area, including the target pixel data of the RAW image data Average value calculating means for calculating an average value of component pixel data (hereinafter referred to as area same color pixel data);
Based on the average value, for each of the plurality of areas, a variance calculation unit that calculates a variance of the area same color pixel data;
A noise amount estimating means for estimating a noise amount included in the target pixel data;
Based on the variance for each of the plurality of areas, an optimal area determination unit that determines an optimal area that is optimal for use in noise reduction processing of the pixel-of-interest data among the plurality of areas;
Noise comprising noise reduction processing means for performing a process of bringing the target pixel data closer to the average value calculated for the optimum area in accordance with the estimated noise amount and performing a noise reduction process on the target pixel data Reduction device.
前記最適エリアを判定するための判定基準となる閾値であって、前記ノイズ量に応じて決まる閾値を第一の閾値とし、
前記最適エリア判定手段は、前記複数のエリア毎の前記分散と、前記複数のエリア毎の前記平均値と、前記第一の閾値とを用いて、前記最適エリアを判定するノイズリダクション装置。 The noise reduction device according to claim 1,
It is a threshold value that is a determination criterion for determining the optimum area, and a threshold value that is determined according to the amount of noise is a first threshold value,
The optimal area determination unit is a noise reduction device that determines the optimal area using the variance for each of the plurality of areas, the average value for each of the plurality of areas, and the first threshold value.
前記最適エリアを利用して前記注目画素データにノイズリダクション処理を行うべきか否かを判定するための判定基準となる閾値であって、前記ノイズ量に応じて決まる閾値を第二の閾値とし、
前記最適エリアについて算出された前記分散と前記第二の閾値とを用いて、前記最適エリアを利用して前記注目画素データにノイズリダクションを行うべきか否かを判定するノイズリダクション実施判定手段と、
前記ノイズリダクション実施判定手段による判定結果に応じて、前記注目画素データ及び前記ノイズリダクション処理後の注目画素データのいずれかを出力する出力手段とを備えるノイズリダクション装置。 The noise reduction device according to claim 1 or 2,
A threshold value used as a criterion for determining whether or not to perform noise reduction processing on the pixel-of-interest data using the optimum area, and a threshold value determined according to the amount of noise is a second threshold value,
Using the variance calculated for the optimal area and the second threshold, noise reduction execution determining means for determining whether to perform noise reduction on the pixel-of-interest data using the optimal area;
A noise reduction device comprising: output means for outputting either the target pixel data or the target pixel data after the noise reduction process according to a determination result by the noise reduction execution determination means.
前記RAW画像データが、赤色(R)成分と緑色(G)成分と青色(B)成分の画素データを含み、
前記注目画素データが前記R成分又は前記B成分であった場合、
前記最適エリア判定手段は、前記大エリアに含まれる前記R成分又は前記B成分の画素データの分散と前記第一の閾値とに基づいて、前記大エリアが前記最適エリアであるか否かを判定し、前記大エリアが前記最適エリアでないと判定した場合に、前記小エリアに含まれる前記R成分又は前記B成分の画素データの分散と前記第一の閾値とに基づいて、前記小エリアが前記最適エリアであるか否かを判定し、
前記ノイズリダクション実施判定手段は、前記大エリア又は前記小エリアが前記最適エリアと判定された場合には、前記注目画素データにノイズリダクションを行うべきと判定し、前記小エリアが前記最適エリアでないと判定された場合には、前記注目画素データにノイズリダクションを行うべきでないと判定するノイズリダクション装置。 The noise reduction device according to claim 3,
The raw image data includes pixel data of a red (R) component, a green (G) component, and a blue (B) component,
When the target pixel data is the R component or the B component,
The optimum area determining means determines whether or not the large area is the optimum area based on a dispersion of pixel data of the R component or the B component included in the large area and the first threshold value. When it is determined that the large area is not the optimum area, the small area is determined based on the dispersion of the R component or B component pixel data included in the small area and the first threshold value. Determine whether it is the optimal area,
The noise reduction execution determination unit determines that noise reduction should be performed on the target pixel data when the large area or the small area is determined as the optimal area, and the small area is not the optimal area. A noise reduction device that, when determined, determines that noise reduction should not be performed on the pixel-of-interest data.
前記ノイズ量推定手段は、階調チャートを前記固体撮像素子により撮像して得られるRAW画像データによって予め求められた、各階調の画素データに含まれるノイズ量に相当するデータに基づいて、前記注目画素データに含まれるノイズ量を推定するノイズリダクション装置。 The noise reduction device according to any one of claims 1 to 4,
The noise amount estimation means is based on data corresponding to a noise amount included in pixel data of each gradation, which is obtained in advance from RAW image data obtained by imaging a gradation chart with the solid-state imaging device. A noise reduction device that estimates the amount of noise contained in pixel data.
前記RAW画像データの注目画素データを含む、サイズの大きい大エリアと、前記大エリアよりもサイズの小さい小エリアとを少なくとも含む複数のエリア毎に、前記エリアに含まれる前記注目画素データと同一色成分の画素データ(以下、エリア同色画素データという)の平均値を算出する平均値算出ステップと、
前記平均値に基づいて、前記複数のエリア毎に、前記エリア同色画素データの分散を算出する分散算出ステップと、
前記注目画素データに含まれるノイズ量を推定するノイズ量推定ステップと、
前記複数のエリア毎の前記分散に基づいて、前記複数のエリアのうち、前記注目画素データのノイズリダクション処理に利用するのに最適なエリアである最適エリアを判定する最適エリア判定ステップと、
前記最適エリアについて算出された前記平均値に、前記推定されたノイズ量に応じて前記注目画素データを近づける処理を行って、前記注目画素データのノイズリダクション処理を行うノイズリダクション処理ステップとを含むノイズリダクション方法。 A noise reduction method for performing noise reduction of RAW image data obtained from a solid-state imaging device,
The same color as the target pixel data included in the area for each of a plurality of areas including at least a large area having a large size and a small area having a size smaller than the large area, including the target pixel data of the RAW image data An average value calculating step for calculating an average value of component pixel data (hereinafter referred to as area same color pixel data);
A variance calculating step for calculating a variance of the same color pixel data for each of the plurality of areas based on the average value;
A noise amount estimating step for estimating a noise amount included in the target pixel data;
Based on the variance for each of the plurality of areas, an optimal area determination step of determining an optimal area that is the most suitable area to use for noise reduction processing of the pixel-of-interest data among the plurality of areas;
A noise reduction processing step of performing a process of bringing the target pixel data closer to the average value calculated for the optimal area according to the estimated noise amount, and performing a noise reduction process of the target pixel data Reduction method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005338937A JP4599279B2 (en) | 2005-11-24 | 2005-11-24 | Noise reduction device and noise reduction method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005338937A JP4599279B2 (en) | 2005-11-24 | 2005-11-24 | Noise reduction device and noise reduction method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007150441A JP2007150441A (en) | 2007-06-14 |
JP4599279B2 true JP4599279B2 (en) | 2010-12-15 |
Family
ID=38211350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005338937A Expired - Fee Related JP4599279B2 (en) | 2005-11-24 | 2005-11-24 | Noise reduction device and noise reduction method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4599279B2 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5251637B2 (en) | 2009-03-16 | 2013-07-31 | 株式会社リコー | Noise reduction device, noise reduction method, noise reduction program, recording medium |
JP5832095B2 (en) * | 2011-01-28 | 2015-12-16 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
JP5885490B2 (en) * | 2011-12-15 | 2016-03-15 | 三菱電機株式会社 | Image processing apparatus, image processing method, imaging apparatus, computer program, and computer-readable recording medium |
JP6671943B2 (en) * | 2015-03-03 | 2020-03-25 | キヤノン株式会社 | Image processing apparatus, image processing method, and program |
KR102615125B1 (en) * | 2019-07-05 | 2023-12-19 | 한국전기연구원 | System and method for denoising image, and a recording medium having computer readable program for executing the method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000175046A (en) * | 1998-09-30 | 2000-06-23 | Fuji Photo Film Co Ltd | Image processing method and image processor |
JP2000232384A (en) * | 1999-02-09 | 2000-08-22 | Sony Corp | Data processor and data processing method |
JP2002135623A (en) * | 2000-10-18 | 2002-05-10 | Yamaha Corp | Device/method for removing noise and computer-readable recording medium |
JP2003150956A (en) * | 2001-10-31 | 2003-05-23 | Eastman Kodak Co | Method for spatial filtering digital image for noise elimination, noise estimation or digital image highlighting |
JP2004214756A (en) * | 2002-12-27 | 2004-07-29 | Seiko Epson Corp | Image noise reduction |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3700798B2 (en) * | 1996-08-19 | 2005-09-28 | 富士写真フイルム株式会社 | Image processing method and apparatus |
-
2005
- 2005-11-24 JP JP2005338937A patent/JP4599279B2/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000175046A (en) * | 1998-09-30 | 2000-06-23 | Fuji Photo Film Co Ltd | Image processing method and image processor |
JP2000232384A (en) * | 1999-02-09 | 2000-08-22 | Sony Corp | Data processor and data processing method |
JP2002135623A (en) * | 2000-10-18 | 2002-05-10 | Yamaha Corp | Device/method for removing noise and computer-readable recording medium |
JP2003150956A (en) * | 2001-10-31 | 2003-05-23 | Eastman Kodak Co | Method for spatial filtering digital image for noise elimination, noise estimation or digital image highlighting |
JP2004214756A (en) * | 2002-12-27 | 2004-07-29 | Seiko Epson Corp | Image noise reduction |
Also Published As
Publication number | Publication date |
---|---|
JP2007150441A (en) | 2007-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8081224B2 (en) | Method and apparatus for image stabilization using multiple image captures | |
JP4768448B2 (en) | Imaging device | |
US8300977B2 (en) | Imaging device and image processing program for estimating fixed pattern noise from partial noise output of available pixel area | |
JP4742652B2 (en) | Imaging device | |
JP4610930B2 (en) | Image processing apparatus and image processing program | |
JP5123756B2 (en) | Imaging system, image processing method, and image processing program | |
JP4925198B2 (en) | Signal processing apparatus and method, noise reduction apparatus and method, and program | |
US20090161756A1 (en) | Method and apparatus for motion adaptive pre-filtering | |
JP2008085753A (en) | Noise processing method and noise processing apparatus of image data, and imaging apparatus | |
JP4599279B2 (en) | Noise reduction device and noise reduction method | |
EP1394742A1 (en) | Method for filtering the noise of a digital image sequence | |
US7239758B2 (en) | Signal processing device for reducing noise of image signal, signal processing program, and signal processing method | |
JP4367910B2 (en) | Solid-state imaging device | |
US7489822B2 (en) | Image processing apparatus and method for detecting a direction of an edge in the vicinity of a pixel of interest and generating all color signals for each pixel by interpolation using color signals of a pixel of interest and its neighbor pixels, and a recording medium having a program recorded thereon for causing the apparatus to perform the method | |
JP4980131B2 (en) | Noise reduction apparatus and method, and program | |
JP2010068329A (en) | Imaging apparatus | |
JP4380399B2 (en) | Imaging apparatus, noise reduction apparatus, noise reduction method, and program | |
US8400534B2 (en) | Noise reduction methods and systems for imaging devices | |
JP2013207427A (en) | Image pickup device and image pickup method | |
JP2011250249A (en) | Video signal processing apparatus and video signal processing method | |
JP2011114473A (en) | Pixel defect correction device | |
JP2010056817A (en) | Imaging apparatus | |
JP2006191454A (en) | Noise detection circuit, signal processing apparatus provided with the circuit, imaging apparatus provided with the apparatus, and noise elimination method | |
JP2021005775A (en) | Image processing system, image processing method, and program | |
JP4137663B2 (en) | Video generation apparatus and video generation program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20071109 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20071116 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20071126 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080710 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100824 |
|
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: 20100831 |
|
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: 20100927 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131001 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |