JP4482773B2 - Noise reduction method for digital camera, noise reduction device, and medium on which noise reduction processing control program is recorded - Google Patents

Noise reduction method for digital camera, noise reduction device, and medium on which noise reduction processing control program is recorded Download PDF

Info

Publication number
JP4482773B2
JP4482773B2 JP32014399A JP32014399A JP4482773B2 JP 4482773 B2 JP4482773 B2 JP 4482773B2 JP 32014399 A JP32014399 A JP 32014399A JP 32014399 A JP32014399 A JP 32014399A JP 4482773 B2 JP4482773 B2 JP 4482773B2
Authority
JP
Japan
Prior art keywords
pixel
reference pixel
noise reduction
filter
contour
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
JP32014399A
Other languages
Japanese (ja)
Other versions
JP2001144996A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP32014399A priority Critical patent/JP4482773B2/en
Publication of JP2001144996A publication Critical patent/JP2001144996A/en
Application granted granted Critical
Publication of JP4482773B2 publication Critical patent/JP4482773B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、被写体の低彩度・暗部において広範囲にわたって生じる色むら、カラー補間時に生じる偽色などの、デジタルカメラの画質に大きな影響を及ぼすノイズを低減させるための方法、ノイズ低減装置およびノイズ低減処理制御プログラムを記録した媒体に関する。
【0002】
【従来の技術】
コンピュータなどを用いて高品質の画像データを取り扱う画像処理装置として、CCD等の撮像手段により光を電気信号に変換し、その電気信号をデジタルデータに変換してフラッシュメモリ等の記録媒体に記録するデジタルカメラが知られている。デジタルカメラを用いると、パーソナルコンピュータ等を用いて画像データの保存や様々な加工を個人で手軽に行えるほか、プリンタに画像データを出力することによりフィルムの現像をすることなく写真を印刷することができる。
【0003】
【発明が解決しようとする課題】
しかし、従来のデジタルカメラにおいては、デジタルカメラの画質に大きな影響を及ぼす種々のノイズが生じる。例えば、低彩度領域に生じる色むら、カラー補間フィルタのアルゴリズムに起因して生じる偽色(主に、白画素との境界に生じる偽色)、暗部輝度ノイズなどがあげられる。これらのノイズは、非常に目立つため観察者の印象を非常に悪くする。これらのノイズのうち前記色むらおよび前記偽色に関しては、色差信号をぼかすことによって目立たなくすることができる。ところが、色むらおよび偽色はともに広範囲にわたって生じるため、平滑化フィルタ処理を行う場合、一般的に大きなサイズのフィルタを使用しなければならない。一方、フィルタサイズを大きくすると、色輪郭付近のにじみ、彩度低下といった新たな問題が生じる。色輪郭付近のにじみはメジアンフィルタを用いて低減され、彩度低下は平滑化の際の除算係数を小さくすることによって低減される。
【0004】
しかしながら、メジアンフィルタを使用すると、中央値を求めるための並び替えに長時間を要しフィルタサイズが大きくなればなる程、指数関数的に増加して処理時間が激増してしまう。
【0005】
本発明は、上記問題点を解決するためになされたもので、デジタルカメラのノイズを高速で低減させることのできる方法、ノイズ低減装置および当該ノイズ低減処理制御プログラムを記録している媒体を提供することを課題とする。
【0006】
【課題を解決するための手段】
上記課題に鑑み、請求項1に記載の発明は、デジタルカメラの画像データ中のノイズを低減させるための方法であって、フィルタの画素エリアの中から参照画素を選択する参照画素選択工程を備え、当該参照画素選択工程によって選択された参照画素に対してメジアンフィルタを適用するように構成される。
【0007】
以上のように構成されたデジタルカメラの画像データ中のノイズを低減させるための方法によれば、参照画素選択工程によってフィルタの画素エリアの中から参照画素が選択され、当該参照画素選択工程によって選択された参照画素に対してメジアンフィルタが適用される。
【0008】
また、請求項2に記載の発明は、請求項1に記載のノイズ低減方法であって、参照画素選択工程において選択された参照画素の中に輪郭画素が存在するか否かを判定する輪郭画素判定工程をさらに備え、前記選択された参照画素の中に輪郭画素が存在する場合に、メジアンフィルタを適用するように構成される。
【0009】
さらに、請求項3に記載の発明は、請求項2に記載のノイズ低減方法であって、注目画素と参照画素との色差が所定の閾値よりも大きい場合に、前記輪郭画素判定工程において、選択された参照画素の中に輪郭画素が存在すると判定するように構成される。
【0010】
また、請求項4に記載の発明は、請求項2または3に記載のノイズ低減方法であって、前記選択された参照画素の中に輪郭画素が存在する場合に、平滑化フィルタを適用するように構成される。
【0011】
さらに、請求項5に記載の発明は、請求項4に記載のノイズ低減方法であって、前記平滑化フィルタの除算係数によって彩度を調節することのできるように構成される。
【0012】
また、請求項6に記載の発明は、請求項1乃至5のいづれか一項に記載のノイズ低減方法であって、注目画素からの距離が増加するに従って、平均参照画素数を増加させるように構成される。
【0013】
さらに、請求項7に記載の発明は、請求項1乃至6のいづれか一項に記載のノイズ低減方法であって、ノイズ発生量の多い輝度領域において、フィルタ処理後、輝度値に応じて色差値を減少させるように構成される。
【0014】
上記課題に鑑み、請求項8に記載の発明は、デジタルカメラの画像データ中のノイズを低減させるための装置であって、フィルタの画素エリアの中から参照画素を選択する参照画素選択手段を備え、当該参照画素選択手段によって選択された参照画素に対してメジアンフィルタを適用するように構成される。
【0015】
以上のように構成されたデジタルカメラの画像データ中のノイズを低減させるための装置によれば、参照画素選択手段によって、フィルタの画素エリアの中から参照画素が選択され、当該参照画素選択手段によって選択された参照画素に対してメジアンフィルタが適用される。
【0016】
上記課題に鑑み、請求項9に記載の発明は、デジタルカメラの画像データ中のノイズを低減させるための処理をコンピュータに実行させるためのプログラムを記録したコンピュータによって読取可能な記録媒体であって、フィルタの画素エリアの中から参照画素を選択する参照画素選択処理と、当該参照画素選択処理によって選択された参照画素に対してメジアンフィルタを適用するメジアンフィルタ適用処理と、をコンピュータに実行させるためのプログラムを記録してコンピュータによって読取可能に構成される。
【0017】
以上のように構成されたコンピュータによって読取可能な記録媒体によれば、デジタルカメラの画像データ中のノイズを低減させるための処理をコンピュータに実行させるためのプログラムが記録されている。当該プログラムの実行により、参照画素選択処理によって、フィルタの画素エリアの中から参照画素が選択され、メジアンフィルタ適用処理によって、前記参照画素選択処理によって選択された参照画素に対してメジアンフィルタが適用される。
【0018】
【発明の実施の形態】
以下、図面を参照して本発明の好適な実施の形態を説明する。
【0019】
図1は、本発明の一実施の形態にかかるノイズ低減処理装置30を構成するコンピュータの概略ブロック図である。
【0020】
当該コンピュータは、CPU31のバス32に対してRAM33と、ROM34と、入力部35と、ハードディスク36と、I/O37と、メディア読取装置38とが接続されている。さらに、コンピュータ30には、I/O37を介してデジタルカメラ20及びプリンタ、ディスプレイ等の出力装置40が接続されている。また、ROM34には、演算プログラムや制御プログラムなどの基本プログラムが書き込まれており、CPU31はRAM33をワークエリアとして使用しながら前記基本プログラムを実行する。ハードディスク36は、主に撮像した画像データを蓄えるようなバッファとして使用したり、逐次更新されるプログラムなどを保存する。そして、CPU31が所望のプログラムを適宜ハードディスク36から読み出して所望の処理を実行するように構成されている。さらに、ハードディスク36には、実写画像データに対して最適なノイズ低減処理を施すためのプログラムが記録されている。なお、ハードディスク36を使用しなくても、ハードディスクによる処理をすべてRAM33上において行うこともできる。
【0021】
この他、入力部35は、キーボード、マウスなどで構成され、当該入力部によって各種データが入力される。そして、CPU31は、バス32を介して当該入力部35の操作状況を監視または表示可能にしている。
【0022】
なお、上記実写画像データに対して最適なノイズ低減処理を施すための画像処理制御プログラムは、通常、コンピュータが読取可能な形態でフロッピーディスク、CD−ROMなどの記録媒体DKに記録されて流通する。そして、当該ノイズ低減処理制御用プログラムは、メディア読取装置38を用いて読み取ることによって前記ハードディスク36にインストールされる。
【0023】
図2に、本発明によるノイズ低減処理装置30の機能ブロック図を示す。
【0024】
図2に示すように、コンピュータによって構成されるノイズ低減処理装置30は、RGB画像データをYCC画像データに変換するための第1画像データ変換部30aと、画素エリア内に輪郭画素が存在するか否かを判定する輪郭画素判定部30bと、当該輪郭画素判定部30bの判定結果に基づき、フィルタを選択するフィルタ選択部30cと、所望の画像処理を施す平滑化フィルタ30dまたはメジアンフィルタ30eと、当該フィルタ処理後に彩度値を補正する彩度補正部30fと、当該彩度補正部30fによって彩度補正が施されたYCC画像データをR'G'B'データに変換するための第2画像データ変換部30gと、を備えて構成される。
【0025】
次に、図3を参照して、本発明によるノイズ低減処理装置30の動作を説明する。当該ノイズ低減処理装置30は、第1画像データ変換部30aにおいて、デジタルカメラのRGB画像データをYCC画像データに変換する(ステップ42)。すなわち、RGB信号から輝度・色差信号への変換処理が行われる。当該変換は、以下の3式:
Y=0.3R+0.59G+0.11B
Cr=R−Y
Cb=B−Y
によって行われる。
【0026】
次に、本発明によるノイズ低減処理装置30は、輪郭画素判定部30bにおいて、注目画素を含むN×N個の画素エリアに輪郭画素が含まれているか否かを判定する(ステップ44)。
【0027】
図4に、当該一実施形態において使用する9×9画素フィルタを示す。以下で詳細に説明するメジアンフィルタ30eを使用すると一般的に処理時間が増加してしまう。これは、メジアンフィルタにおいて使用される中央値を求めるための並べ替え処理に時間を要するからである。当該処理時間はフィルタサイズが大きくなればなる程、指数関数的に増加してしまい、9×9=81画素のソートを行うと実用的な処理速度を確保することが困難となる。そこで、当該実施の形態においては、9×9画素のフィルタを使用するが、計算対象として参照する画素は1ラインおきに5×5画素とする。このように参照画素を1ラインおきにすることによって、注目画素からの距離が増加するに従って平均参照画素数が増加するので、広範囲の画素を参照しつつ計算量を低減させることができ、ノイズ低減の効果を維持したまま、大幅な処理速度の短縮を図ることができる。
【0028】
なお、図4において、Aが注目画素であり、Bが参照画素である。また、画素フィルタの横軸をi軸とし、縦軸をj軸とする。
【0029】
輪郭画素判定部30bは、注目画素とエリア内の参照画素との色差が閾値ThEよりも大きい画素が1画素でも存在すれば輪郭画素を含むエリアと判定する(ステップ44、Yes)。輪郭画素を含むエリアと判定される場合(ステップ44、Yes)には、フィルタ選択部30cによってメジアンフィルタ30eが選択され、メジアンフィルタ30eによる処理が行われる(ステップ48)。一方、輪郭画素を含むエリアと判定されない場合(ステップ44、No)には、フィルタ選択部30cによって平滑化フィルタ30dが選択され、平滑化フィルタ30dによる処理が行われる(ステップ46)。
【0030】
図5に、ステップ44における処理の一例を示す。図5(a)は、Crに対する輪郭画素判定処理であり、図5(b)は、Cbに対する輪郭画素判定処理である。図5(a)において、まず輪郭画素判定部30bは、各参照画素Bと注目画素Aとの色差
△Crij=|CrA−CrB|
を全てのi,jに対して計算する(ステップ54)。全てのi,jに対して△Crijを計算すると(ステップ55、Yes)、次に輪郭画素判定部30bは、参照画素25個の中でThEよりも大きな△Crijが一つでも存在するか否かを判定する(ステップ56)。そして、ThEよりも大きな△Crijが一つでも存在する場合(ステップ56、Yes)、Crに対してメジアンフィルタ30eによる処理が行われ(ステップ48)、存在しない場合(ステップ56、No)にはCrに対して平滑化フィルタによる処理が行われる(ステップ46)。
【0031】
図5(b)において、輪郭画素判定部30bは、各参照画素Bと注目画素Aとの色差
△Cbij=|CbA−CbB|
を全てのi,jに対して計算する(ステップ57、58)。全てのi,jに対して△Cbijを計算すると(ステップ58、Yes)、次に輪郭画素判定部30bは、参照画素25個の中でThEよりも大きな△Cbijが一つでも存在するか否かを判定する(ステップ59)。そして、ThEよりも大きな△Cbijが一つでも存在する場合(ステップ59、Yes)にはCbに対してメジアンフィルタ30eによる処理が行われ(ステップ48)、存在しない場合(ステップ58、No)にはCbに対して平滑化フィルタによる処理が行われる(ステップ46)。
【0032】
図6に、ステップ44における処理の他の一例を示す。当該他の例では、上記色差の代わりに輝度差を用いて輪郭画素か否かの判定を行う。
【0033】
輪郭画素判定部30bは、各参照画素Bと注目画素Aとの輝度差
△Yij=|YA−YB|
を全てのi,jに対して計算する(ステップ60、62)。全てのi,jに対して△Yijを計算すると(ステップ62、Yes)、次に輪郭画素判定部30bは、参照画素25個の中でThEよりも大きな△Yijが一つでも存在するか否かを判定する(ステップ64)。そして、ThEよりも大きな△Yijが一つでも存在する場合(ステップ64、Yes)にはCrおよびCbの双方に対してメジアンフィルタ30eによる処理が行われ(ステップ48)、存在しない場合(ステップ58、No)にはCrおよびCbの双方に対して平滑化フィルタによる処理が行われる(ステップ46)。
【0034】
次に、平滑化フィルタ処理(ステップ46)に関して説明する。
【0035】
平滑化フィルタ処理においては、N×N点の参照画素の色差平均値を注目画素の色差値Cr’とする。具体的には、
【0036】
【数1】

Figure 0004482773
【0037】
によって計算される。注目画素Cb’に関しても同様に計算される。
【0038】
このように平滑化フィルタを使用すると彩度が低下する。彩度の低下は、フィルタサイズNが大きくなるとさらに顕著になる。そこで、意図的に除算係数を小さくすることで彩度低下を防ぐことができる。当該実施の形態に係る9×9画素フィルタの場合、除算係数を画素数と等しい値(25(5×5))とするのではなく、これよりも小さな値、例えば24とする。このように、色差値平滑化の際の除算係数を小さくすることによって、処理時間を増大させることなく、彩度を強調させることができる。
【0039】
次に、メジアンフィルタ処理(ステップ48)に関して説明する。
N×N点の参照画素を並べ替え、中央値(メジアン)を注目画素の色差値Cr’およびCb’とする。
【0040】
ステップ46における平滑化フィルタ処理および/またはステップ48におけるメジアンフィルタ処理の後、彩度補正部30fによる彩度補正処理がなされる(ステップ50)。ステップ46または48によって得られた色差信号に対して輝度に応じた彩度補正係数をかける。
【0041】
一般的に暗部においては定量的にノイズが多く存在して、所定の実験結果によれば、輝度値64付近での色ノイズ発生量が大きいことがわかる。そこで、当該実施の形態では、輝度値64を中心としてさらに色差値を低減させる。具体的には、32<Y<96の範囲においては、輝度値Yに応じて色差値を、彩度補正前の値の少なくとも3/4まで減少させる。このため、
【0042】
【数2】
Figure 0004482773
【0043】
とする。当該彩度補正処理は、単なる一例であり、デジタルカメラ毎に個別的に設定する必要がある。
【0044】
最後に、本発明の一実施形態に係るノイズ低減処理装置30は、第2画像データ変換部30gにおいて、YCC画像データをR'G'B'画像データに変換して(ステップ52)、ノイズ低減処理を終了する。当該変換は、以下の3式:
R'=Y+Cr"
G'=Y−(30Cr"+11Cb")/59
B'=Y+Cb"
によって行われる。
【0045】
なお、デジタルカメラ内部において生データがYUVで処理されている場合には、第1および第2の画像データ変換処理部30aおよび30bが不要となる。同様に、ステップ42および52も不要となる。
【0046】
図7に、マクベスチャートを用いた色ノイズ測定結果を示す。この結果より、本発明によるノイズ低減処理後においては、オリジナル画像と比較して、ノイズが40〜70パーセント減少することが明らかになる。
【0047】
【発明の効果】
請求項1に記載のノイズ低減方法、請求項8に記載のノイズ低減装置、または請求項9に記載の記録媒体に記録されているプログラムの実行によれば、フィルタの画素エリアの中から参照画素が選択され、当該選択された参照画素に対してメジアンフィルタが適用されるので、画素エリア中の全ての画素に対してメジアンフィルタを適用した場合と比較して、大幅に処理時間を短縮することができる。
【0048】
請求項5に記載のノイズ低減方法によれば、平滑化フィルタの除算係数によって彩度を調節することのできるので、意図的に除算係数を小さくすることで彩度低下を防ぐことができる。
【0049】
請求項6に記載のノイズ低減方法によれば、注目画素からの距離が増加するに従って平均参照画素数を増加させるので、広範囲の画素を参照しつつ計算量を低減させることができ、ノイズ低減の効果を維持したまま、大幅な処理速度の短縮を図ることができる。
【図面の簡単な説明】
【図1】本発明の一実施の形態にかかるノイズ低減処理装置30を構成するコンピュータの概略ブロック図である。
【図2】本発明によるノイズ低減処理装置30の機能ブロック図である。
【図3】本発明によるノイズ低減処理装置30の動作を説明するためのフローチャートである。
【図4】本発明の一実施形態において使用する9×9画素フィルタを示す図である。
【図5】ステップ44における処理の一例を示すフローチャートであり、(a)はCrに対する輪郭画素判定処理であり、図5(b)はCbに対する輪郭画素判定処理である。
【図6】ステップ44における処理の他の例を示すフローチャートである。
【図7】マクベスチャートを用いた色ノイズ測定結果を示すグラフ図である。
【符号の説明】
20 デジタルカメラ
30 コンピュータ
30a 第1画像データ変換部
30b 輪郭画素判定部
30c フィルタ選択部
30d 平滑化フィルタ
30e メジアンフィルタ
30f 彩度補正部
30g 第2画像データ変換部
31 CPU
32 バス
33 RAM
34 ROM
35 入力部
36 ハードディスク
37 I/O
38 メディア読取装置
40 出力装置[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a method, a noise reduction apparatus, and a noise reduction method for reducing noise that greatly affects the image quality of a digital camera, such as color unevenness that occurs over a wide range in a low saturation / dark part of a subject and false colors that occur during color interpolation. The present invention relates to a medium on which a processing control program is recorded.
[0002]
[Prior art]
As an image processing apparatus that handles high-quality image data using a computer or the like, light is converted into an electrical signal by an imaging means such as a CCD, and the electrical signal is converted into digital data and recorded on a recording medium such as a flash memory. Digital cameras are known. Using a digital camera, you can easily save image data and perform various processing by using a personal computer, and print images without developing the film by outputting the image data to a printer. it can.
[0003]
[Problems to be solved by the invention]
However, in a conventional digital camera, various noises that greatly affect the image quality of the digital camera occur. For example, color unevenness that occurs in the low saturation region, false color that occurs due to the algorithm of the color interpolation filter (mainly, false color that occurs at the boundary with the white pixel), dark portion luminance noise, and the like. These noises are so conspicuous that they make the viewer's impression very bad. Among these noises, the color unevenness and the false color can be made inconspicuous by blurring the color difference signal. However, since both color unevenness and false color occur over a wide range, a large size filter must generally be used when performing the smoothing filter process. On the other hand, when the filter size is increased, new problems such as blurring near the color contour and saturation reduction occur. Blur in the vicinity of the color contour is reduced by using a median filter, and saturation reduction is reduced by reducing the division coefficient during smoothing.
[0004]
However, when a median filter is used, it takes a long time for rearrangement for obtaining the median value, and the larger the filter size, the exponentially increases and the processing time increases drastically.
[0005]
The present invention has been made to solve the above problems, and provides a method capable of reducing noise of a digital camera at high speed, a noise reduction device, and a medium on which the noise reduction processing control program is recorded. This is the issue.
[0006]
[Means for Solving the Problems]
In view of the above problems, the invention described in claim 1 is a method for reducing noise in image data of a digital camera, comprising a reference pixel selection step of selecting a reference pixel from a pixel area of a filter. The median filter is applied to the reference pixel selected by the reference pixel selection step.
[0007]
According to the method for reducing noise in the image data of the digital camera configured as described above, a reference pixel is selected from the pixel area of the filter by the reference pixel selection step, and is selected by the reference pixel selection step. A median filter is applied to the reference pixels.
[0008]
The invention according to claim 2 is the noise reduction method according to claim 1, wherein the contour pixel determines whether or not the contour pixel is present in the reference pixel selected in the reference pixel selection step. The method further includes a determination step, and is configured to apply a median filter when a contour pixel exists in the selected reference pixel.
[0009]
Furthermore, the invention according to claim 3 is the noise reduction method according to claim 2, wherein the color pixel difference between the target pixel and the reference pixel is larger than a predetermined threshold value, and is selected in the contour pixel determination step. It is configured to determine that a contour pixel is present in the reference pixels that have been set.
[0010]
The invention according to claim 4 is the noise reduction method according to claim 2 or 3, wherein a smoothing filter is applied when a contour pixel is present in the selected reference pixel. Configured.
[0011]
Furthermore, the invention according to claim 5 is the noise reduction method according to claim 4, wherein the saturation can be adjusted by the division coefficient of the smoothing filter.
[0012]
The invention according to claim 6 is the noise reduction method according to any one of claims 1 to 5, wherein the average number of reference pixels is increased as the distance from the pixel of interest increases. Is done.
[0013]
Furthermore, the invention according to claim 7 is the noise reduction method according to any one of claims 1 to 6, wherein in the luminance region where the amount of noise is large, the color difference value according to the luminance value after filtering is performed. Configured to reduce
[0014]
In view of the above problems, an invention according to claim 8 is an apparatus for reducing noise in image data of a digital camera, comprising reference pixel selection means for selecting a reference pixel from a pixel area of a filter. The median filter is applied to the reference pixel selected by the reference pixel selection means.
[0015]
According to the apparatus for reducing noise in the image data of the digital camera configured as described above, the reference pixel is selected from the pixel area of the filter by the reference pixel selection means, and the reference pixel selection means A median filter is applied to the selected reference pixel.
[0016]
In view of the above problems, the invention described in claim 9 is a computer-readable recording medium that records a program for causing a computer to execute processing for reducing noise in image data of a digital camera. A reference pixel selection process for selecting a reference pixel from a pixel area of a filter, and a median filter application process for applying a median filter to a reference pixel selected by the reference pixel selection process. The program is recorded and can be read by a computer.
[0017]
According to the computer-readable recording medium configured as described above, a program for causing a computer to execute processing for reducing noise in image data of a digital camera is recorded. By executing the program, the reference pixel is selected from the pixel area of the filter by the reference pixel selection process, and the median filter is applied to the reference pixel selected by the reference pixel selection process by the median filter application process. The
[0018]
DETAILED DESCRIPTION OF THE INVENTION
Preferred embodiments of the present invention will be described below with reference to the drawings.
[0019]
FIG. 1 is a schematic block diagram of a computer constituting a noise reduction processing device 30 according to an embodiment of the present invention.
[0020]
In the computer, a RAM 33, a ROM 34, an input unit 35, a hard disk 36, an I / O 37, and a media reading device 38 are connected to the bus 32 of the CPU 31. Further, the digital camera 20 and an output device 40 such as a printer and a display are connected to the computer 30 via the I / O 37. The ROM 34 stores basic programs such as a calculation program and a control program, and the CPU 31 executes the basic programs while using the RAM 33 as a work area. The hard disk 36 is used as a buffer that mainly stores captured image data, and stores programs that are sequentially updated. Then, the CPU 31 is configured to read out a desired program from the hard disk 36 as appropriate and execute a desired process. Further, the hard disk 36 is recorded with a program for performing an optimum noise reduction process on the actual image data. Even if the hard disk 36 is not used, all the processing by the hard disk can be performed on the RAM 33.
[0021]
In addition, the input unit 35 includes a keyboard, a mouse, and the like, and various data are input by the input unit. The CPU 31 can monitor or display the operation status of the input unit 35 via the bus 32.
[0022]
Note that an image processing control program for performing optimum noise reduction processing on the photographed image data is normally recorded and distributed on a recording medium DK such as a floppy disk or a CD-ROM in a computer-readable form. . The noise reduction processing control program is installed in the hard disk 36 by being read using the media reader 38.
[0023]
FIG. 2 is a functional block diagram of the noise reduction processing device 30 according to the present invention.
[0024]
As shown in FIG. 2, the noise reduction processing device 30 configured by a computer includes a first image data conversion unit 30 a for converting RGB image data into YCC image data, and whether there are contour pixels in the pixel area. A contour pixel determination unit 30b that determines whether or not, a filter selection unit 30c that selects a filter based on a determination result of the contour pixel determination unit 30b, a smoothing filter 30d or a median filter 30e that performs desired image processing, A saturation correction unit 30f that corrects the saturation value after the filter processing, and a second image for converting the YCC image data subjected to the saturation correction by the saturation correction unit 30f into R′G′B ′ data And a data conversion unit 30g.
[0025]
Next, the operation of the noise reduction processing apparatus 30 according to the present invention will be described with reference to FIG. The noise reduction processing device 30 converts the RGB image data of the digital camera into YCC image data in the first image data conversion unit 30a (step 42). That is, conversion processing from RGB signals to luminance / color difference signals is performed. The conversion involves the following three formulas:
Y = 0.3R + 0.59G + 0.11B
Cr = R−Y
Cb = BY
Is done by.
[0026]
Next, the noise reduction processing device 30 according to the present invention determines whether or not the contour pixel is included in the N × N pixel areas including the target pixel in the contour pixel determination unit 30b (step 44).
[0027]
FIG. 4 shows a 9 × 9 pixel filter used in the embodiment. If the median filter 30e described in detail below is used, the processing time generally increases. This is because time is required for the rearrangement process for obtaining the median value used in the median filter. The processing time increases exponentially as the filter size increases, and it becomes difficult to ensure a practical processing speed when 9 × 9 = 81 pixels are sorted. Therefore, in this embodiment, a 9 × 9 pixel filter is used, but the pixels to be referred to as calculation targets are 5 × 5 pixels every other line. By setting the reference pixels every other line in this way, the average number of reference pixels increases as the distance from the target pixel increases, so the amount of calculation can be reduced while referring to a wide range of pixels, and noise reduction is achieved. The processing speed can be greatly shortened while maintaining the above effect.
[0028]
In FIG. 4, A is the target pixel and B is the reference pixel. Also, the horizontal axis of the pixel filter is the i axis, and the vertical axis is the j axis.
[0029]
The contour pixel determination unit 30b determines that the area includes the contour pixel if there is at least one pixel whose color difference between the target pixel and the reference pixel in the area is larger than the threshold value ThE (step 44, Yes). When it is determined that the area includes the contour pixel (step 44, Yes), the median filter 30e is selected by the filter selection unit 30c, and processing by the median filter 30e is performed (step 48). On the other hand, when it is not determined that the area includes the contour pixel (step 44, No), the smoothing filter 30d is selected by the filter selection unit 30c, and the processing by the smoothing filter 30d is performed (step 46).
[0030]
FIG. 5 shows an example of processing in step 44. FIG. 5A shows a contour pixel determination process for Cr, and FIG. 5B shows a contour pixel determination process for Cb. In FIG. 5A, first, the contour pixel determination unit 30b has a color difference ΔCr ij = | Cr A −Cr B | between each reference pixel B and the target pixel A.
Is calculated for all i and j (step 54). When ΔCr ij is calculated for all i and j (step 55, Yes), the contour pixel determining unit 30b then has at least one ΔCr ij larger than ThE among the 25 reference pixels. Is determined (step 56). If there is even one ΔCr ij larger than ThE (step 56, Yes), processing by the median filter 30e is performed on Cr (step 48), and when there is no (step 56, No). Is processed with a smoothing filter for Cr (step 46).
[0031]
In FIG. 5B, the contour pixel determining unit 30 b determines the color difference ΔCb ij = | Cb A −Cb B | between each reference pixel B and the target pixel A.
Are calculated for all i, j (steps 57, 58). When ΔCb ij is calculated for all i, j (step 58, Yes), the contour pixel determining unit 30b then has at least one ΔCb ij larger than ThE among the 25 reference pixels. Whether or not (step 59). If even one ΔCb ij larger than ThE exists (step 59, Yes), the processing by the median filter 30e is performed on Cb (step 48), and when there is not (step 58, No). Is processed with a smoothing filter for Cb (step 46).
[0032]
FIG. 6 shows another example of processing in step 44. In this other example, it is determined whether or not the pixel is a contour pixel using a luminance difference instead of the color difference.
[0033]
The contour pixel determination unit 30b determines the luminance difference ΔY ij = | Y A −Y B | between each reference pixel B and the target pixel A.
Is calculated for all i, j (steps 60, 62). When ΔY ij is calculated for all i, j (step 62, Yes), the contour pixel determination unit 30b then has at least one ΔY ij larger than ThE among the 25 reference pixels. Whether or not (step 64). If even one ΔY ij larger than ThE exists (step 64, Yes), the processing by the median filter 30e is performed on both Cr and Cb (step 48), and when there is no (step 48) 58, No), a process using a smoothing filter is performed on both Cr and Cb (step 46).
[0034]
Next, the smoothing filter process (step 46) will be described.
[0035]
In the smoothing filter process, the color difference average value of N × N reference pixels is set as the color difference value Cr ′ of the target pixel. In particular,
[0036]
[Expression 1]
Figure 0004482773
[0037]
Calculated by The same calculation is performed for the target pixel Cb ′.
[0038]
If the smoothing filter is used in this way, the saturation is lowered. The decrease in saturation becomes more prominent as the filter size N increases. Therefore, it is possible to prevent a decrease in saturation by intentionally reducing the division coefficient. In the case of the 9 × 9 pixel filter according to this embodiment, the division coefficient is not set to a value equal to the number of pixels (25 (5 × 5)), but is set to a smaller value, for example, 24. As described above, by reducing the division coefficient in the color difference value smoothing, it is possible to enhance the saturation without increasing the processing time.
[0039]
Next, the median filter process (step 48) will be described.
The N × N reference pixels are rearranged, and the median (median) is set as the color difference values Cr ′ and Cb ′ of the target pixel.
[0040]
After the smoothing filter process in step 46 and / or the median filter process in step 48, the saturation correction process by the saturation correction unit 30f is performed (step 50). A saturation correction coefficient corresponding to the luminance is applied to the color difference signal obtained in step 46 or 48.
[0041]
In general, there is a lot of noise quantitatively in the dark part, and according to a predetermined experimental result, it can be seen that the amount of color noise generated near the luminance value 64 is large. Therefore, in this embodiment, the color difference value is further reduced with the luminance value 64 as the center. Specifically, in the range of 32 <Y <96, the color difference value is reduced according to the luminance value Y to at least 3/4 of the value before saturation correction. For this reason,
[0042]
[Expression 2]
Figure 0004482773
[0043]
And The saturation correction process is merely an example, and needs to be individually set for each digital camera.
[0044]
Finally, the noise reduction processing device 30 according to the embodiment of the present invention converts the YCC image data into R′G′B ′ image data in the second image data conversion unit 30g (step 52), and reduces noise. The process ends. The conversion involves the following three formulas:
R '= Y + Cr "
G ′ = Y− (30Cr ″ + 11Cb ″) / 59
B '= Y + Cb "
Is done by.
[0045]
If the raw data is processed with YUV inside the digital camera, the first and second image data conversion processing units 30a and 30b are not necessary. Similarly, steps 42 and 52 are not required.
[0046]
FIG. 7 shows the color noise measurement results using the Macbeth chart. From this result, it is apparent that after the noise reduction processing according to the present invention, the noise is reduced by 40 to 70 percent as compared with the original image.
[0047]
【The invention's effect】
According to the noise reduction method according to claim 1, the noise reduction device according to claim 8, or the program recorded in the recording medium according to claim 9, the reference pixel is selected from the pixel area of the filter. Since the median filter is applied to the selected reference pixel, the processing time is significantly shortened compared to the case where the median filter is applied to all the pixels in the pixel area. Can do.
[0048]
According to the noise reduction method of the fifth aspect, since the saturation can be adjusted by the division coefficient of the smoothing filter, it is possible to prevent a decrease in saturation by intentionally reducing the division coefficient.
[0049]
According to the noise reduction method of the sixth aspect, since the average number of reference pixels is increased as the distance from the target pixel increases, the amount of calculation can be reduced while referring to a wide range of pixels, and noise reduction can be achieved. The processing speed can be greatly shortened while maintaining the effect.
[Brief description of the drawings]
FIG. 1 is a schematic block diagram of a computer constituting a noise reduction processing device 30 according to an embodiment of the present invention.
FIG. 2 is a functional block diagram of a noise reduction processing device 30 according to the present invention.
FIG. 3 is a flowchart for explaining the operation of the noise reduction processing apparatus 30 according to the present invention.
FIG. 4 is a diagram illustrating a 9 × 9 pixel filter used in an embodiment of the present invention.
FIG. 5 is a flowchart illustrating an example of processing in step 44, in which (a) is a contour pixel determination process for Cr, and (b) is a contour pixel determination process for Cb.
FIG. 6 is a flowchart showing another example of processing in step 44;
FIG. 7 is a graph showing the result of color noise measurement using a Macbeth chart.
[Explanation of symbols]
20 Digital Camera 30 Computer 30a First Image Data Conversion Unit 30b Outline Pixel Determination Unit 30c Filter Selection Unit 30d Smoothing Filter 30e Median Filter 30f Saturation Correction Unit 30g Second Image Data Conversion Unit 31 CPU
32 bus 33 RAM
34 ROM
35 Input unit 36 Hard disk 37 I / O
38 Media reader 40 Output device

Claims (7)

デジタルカメラの画像データ中のノイズを低減させるための方法であって、
フィルタの画素エリアの中から参照画素を選択する参照画素選択工程を備え、
前期参照画素選択工程において選択された参照画素の中に輪郭画素が存在するか否かを判定する輪郭画素判定工程をさらに備え、
前記選択された参照画素の中に輪郭画素が存在する場合に、当該参照画素選択工程によって選択された参照画素に対してメジアンフィルタを適用し、
前記選択された参照画素の中に輪郭画素が存在しない場合に、当該参照画素選択工程によって選択された参照画素に対して平滑化フィルタを適用し、
前記平滑化フィルタの除算係数によって彩度を調節し、
前記平滑化フィルタの除算係数は、前記平滑化フィルタの画素数よりも小さい値とするノイズ低減方法。
A method for reducing noise in image data of a digital camera,
A reference pixel selection step of selecting a reference pixel from the pixel area of the filter;
A contour pixel determination step for determining whether or not a contour pixel exists in the reference pixels selected in the previous reference pixel selection step;
When a contour pixel is present in the selected reference pixel, a median filter is applied to the reference pixel selected by the reference pixel selection step;
When no contour pixel exists in the selected reference pixel, a smoothing filter is applied to the reference pixel selected by the reference pixel selection step,
Adjusting the saturation by the division coefficient of the smoothing filter;
A noise reduction method in which a division coefficient of the smoothing filter is set to a value smaller than the number of pixels of the smoothing filter.
請求項1に記載のノイズ低減方法であって、
注目画素と参照画素との色差が所定の閾値よりも大きい場合に、前記輪郭画素判定工程において、選択された参照画素の中に輪郭画素が存在すると判定するノイズ低減方法。
The noise reduction method according to claim 1,
A noise reduction method for determining that a contour pixel exists in a selected reference pixel in the contour pixel determination step when a color difference between a target pixel and a reference pixel is larger than a predetermined threshold.
請求項1に記載のノイズ低減方法であって、
前記平滑化フィルタのサイズが大きいほど、前記平滑化フィルタの画素数より小さくする割合を増やすノイズ低減方法。
The noise reduction method according to claim 1,
The noise reduction method which increases the ratio made smaller than the pixel number of the said smoothing filter, so that the size of the said smoothing filter is large.
請求項1乃至3のいづれか一項に記載のノイズ低減方法であって、
注目画素からの距離が増加するに従って、平均参照画素数を増加させるノイズ低減方法。
The noise reduction method according to any one of claims 1 to 3,
A noise reduction method for increasing the average number of reference pixels as the distance from a target pixel increases.
請求項1乃至4のいづれか一項に記載のノイズ低減方法であって、
ノイズ発生量の多い輝度領域において、フィルタ処理後、輝度値に応じて色差値を減少させるノイズ低減方法。
A noise reduction method according to any one of claims 1 to 4,
A noise reduction method for reducing a color difference value according to a luminance value after filtering in a luminance region where a large amount of noise is generated.
デジタルカメラの画像データ中のノイズを低減させるための装置であって、
フィルタの画素エリアの中から参照画素を選択する参照画素選択手段を備え、
前期参照画素選択手段において選択された参照画素の中に輪郭画素が存在するか否かを判定する輪郭画素判定手段をさらに備え、
前記選択された参照画素の中に輪郭画素が存在する場合に、当該参照画素選択手段によって選択された参照画素に対してメジアンフィルタを適用し、
前記選択された参照画素の中に輪郭画素が存在しない場合に、当該参照画素選択手段によって選択された参照画素に対して平滑化フィルタを適用し、
前記平滑化フィルタの除算係数によって彩度を調節し、
前記平滑化フィルタの除算係数は、前記平滑化フィルタの画素数よりも小さい値とするノイズ低減装置。
An apparatus for reducing noise in image data of a digital camera,
Reference pixel selection means for selecting a reference pixel from the pixel area of the filter,
Contour pixel determining means for determining whether or not a contour pixel exists in the reference pixels selected by the previous reference pixel selecting means;
When a contour pixel is present in the selected reference pixel, a median filter is applied to the reference pixel selected by the reference pixel selection unit;
Applying a smoothing filter to the reference pixel selected by the reference pixel selection means when no contour pixel is present in the selected reference pixel;
Adjusting the saturation by the division coefficient of the smoothing filter;
The noise reduction apparatus which makes the division coefficient of the said smoothing filter a value smaller than the pixel number of the said smoothing filter.
デジタルカメラの画像データ中のノイズを低減させるための処理をコンピュータに実行させるためのプログラムを記録したコンピュータによって読取可能な記録媒体であって、
フィルタの画素エリアの中から参照画素を選択する参照画素選択処理と、
前期参照画素選択処理において選択された参照画素の中に輪郭画素が存在するか否かを判定する輪郭画素判定処理をさらに備え、
前記選択された参照画素の中に輪郭画素が存在する場合に、当該参照画素選択処理によって選択された参照画素に対してメジアンフィルタを適用し、
前記選択された参照画素の中に輪郭画素が存在しない場合に、平滑化フィルタを適用し、
前記平滑化フィルタの除算係数によって彩度を調節し、
前記平滑化フィルタの除算係数は、前記平滑化フィルタの画素数よりも小さい値とする
コンピュータに実行させるためのプログラムを記録したコンピュータによって読取可能な記録媒体。
A computer-readable recording medium recording a program for causing a computer to execute processing for reducing noise in image data of a digital camera,
A reference pixel selection process for selecting a reference pixel from the pixel area of the filter;
A contour pixel determination process for determining whether or not a contour pixel exists in the reference pixels selected in the previous reference pixel selection process;
When a contour pixel is present in the selected reference pixel, a median filter is applied to the reference pixel selected by the reference pixel selection process;
Applying a smoothing filter if no contour pixel is present in the selected reference pixel;
Adjusting the saturation by the division coefficient of the smoothing filter;
The division coefficient of the smoothing filter is set to a value smaller than the number of pixels of the smoothing filter. A computer-readable recording medium on which a program for causing a computer to execute is recorded.
JP32014399A 1999-11-10 1999-11-10 Noise reduction method for digital camera, noise reduction device, and medium on which noise reduction processing control program is recorded Expired - Fee Related JP4482773B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32014399A JP4482773B2 (en) 1999-11-10 1999-11-10 Noise reduction method for digital camera, noise reduction device, and medium on which noise reduction processing control program is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32014399A JP4482773B2 (en) 1999-11-10 1999-11-10 Noise reduction method for digital camera, noise reduction device, and medium on which noise reduction processing control program is recorded

Publications (2)

Publication Number Publication Date
JP2001144996A JP2001144996A (en) 2001-05-25
JP4482773B2 true JP4482773B2 (en) 2010-06-16

Family

ID=18118200

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32014399A Expired - Fee Related JP4482773B2 (en) 1999-11-10 1999-11-10 Noise reduction method for digital camera, noise reduction device, and medium on which noise reduction processing control program is recorded

Country Status (1)

Country Link
JP (1) JP4482773B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4406195B2 (en) 2001-10-09 2010-01-27 セイコーエプソン株式会社 Output image adjustment of image data
JP5110289B2 (en) 2008-03-24 2012-12-26 株式会社メガチップス Noise reduction device and digital camera

Also Published As

Publication number Publication date
JP2001144996A (en) 2001-05-25

Similar Documents

Publication Publication Date Title
JP3668014B2 (en) Image processing method and apparatus
US7536036B2 (en) Method and apparatus for red-eye detection in an acquired digital image
JP4042563B2 (en) Image noise reduction
JP4526445B2 (en) Imaging device
US20060093238A1 (en) Method and apparatus for red-eye detection in an acquired digital image using face recognition
US20100053384A1 (en) Image processing apparatus for performing gradation correction on subject image
JP2005026962A (en) Signal processing apparatus, signal processing program, and electronic camera
JP2001061157A (en) Image processing method, machine-readable recording medium with image processing program recorded therein and image processor
JP4109001B2 (en) Image quality correction method
JP2005039460A (en) Image processing method and apparatus
JP3689607B2 (en) Image processing method, apparatus, and storage medium
US20030231856A1 (en) Image processor, host unit for image processing, image processing method, and computer products
JP4356376B2 (en) Signal processing apparatus, signal processing program, and electronic camera
JP4482773B2 (en) Noise reduction method for digital camera, noise reduction device, and medium on which noise reduction processing control program is recorded
JP2006114006A (en) Gradation conversion apparatus, program, electronic camera, and method therefor
JP2003219180A (en) Image processing method, image processing device, recording medium capable of reading computer and computer program
JP2000092337A (en) Image processing method, its device and recording medium
JP2003274180A (en) Image processor, image processing method, printer driver, computer readable storage medium and computer program
JP2005235238A (en) Method and apparatus of image processing and storage medium
JP2004260835A (en) Image processor, image processing method, and medium recording image processing control program
JP3937710B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
JP2023063871A (en) Image forming apparatus and method for controlling the same
JP2004326493A (en) Device, method, recording medium and program for signal processing
JPH11289468A (en) Picture processing method and picture processor
JP4230392B2 (en) Image processing method, apparatus, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061106

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20061106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090204

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090212

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090409

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100204

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

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

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130402

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140402

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees