JP2007194733A - Image data processor and processing method - Google Patents

Image data processor and processing method Download PDF

Info

Publication number
JP2007194733A
JP2007194733A JP2006009103A JP2006009103A JP2007194733A JP 2007194733 A JP2007194733 A JP 2007194733A JP 2006009103 A JP2006009103 A JP 2006009103A JP 2006009103 A JP2006009103 A JP 2006009103A JP 2007194733 A JP2007194733 A JP 2007194733A
Authority
JP
Japan
Prior art keywords
image data
pixel
interest
value
edge
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.)
Granted
Application number
JP2006009103A
Other languages
Japanese (ja)
Other versions
JP4611212B2 (en
Inventor
Yusuke Numata
裕介 沼田
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.)
Kyocera Corp
Original Assignee
Kyocera 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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP2006009103A priority Critical patent/JP4611212B2/en
Publication of JP2007194733A publication Critical patent/JP2007194733A/en
Application granted granted Critical
Publication of JP4611212B2 publication Critical patent/JP4611212B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technology of accurately detecting an edge (contour) of an image while excluding the effect of noise, and executing edge processing without making unnaturalness of the image data conspicuous even when the image data include many random noises and fixed pattern noises or digital zoom processing is implemented. <P>SOLUTION: When an average of calculated pixel values indicates a virtual edge and image data of the calculated pixel values include no noise, an image data processing method disclosed herein uses image data of a target pixel for the image data of the target pixel, and in other cases, the image data processing method uses a median value MD for the image data of the target pixel. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は画像処理技術に関するものであり、特に、ノイズの影響を排除しながら画像のエッジ(輪郭)を正確に検出する技術に関する。   The present invention relates to an image processing technique, and more particularly to a technique for accurately detecting an edge (contour) of an image while eliminating the influence of noise.

画像処理において、種々の方法でエッジを検出することが行われている(たとえば、特許文献1〜4)。
画像データにはノイズが重畳していることが多い。たとえば、夜間、暗場所などを撮像すると、撮像手段、たとえば、CCD、CMOSセンサの利得を高くする必要があり、ノイズを増加させる。また、データズーム処理を行ったときも、ノイズが拡大されて画像が劣化する場合がある。さらに、撮像装置の内部または撮像装置の外部から撮像信号に電気的なノイズが重畳することがある。さらに、CCD、CMOSセンサなどの撮像信号をディジタルに変換するときの、アナログ/ディジタル変換器の変換のバラツキによる誤差の影響を受けることもある。
したがって、エッジ検出に際して、ノイズの影響を排除することが必要となる。
In image processing, the edge is detected by various methods (for example, Patent Documents 1 to 4).
In many cases, noise is superimposed on image data. For example, when taking an image of a dark place at night, it is necessary to increase the gain of an imaging means, for example, a CCD or CMOS sensor, and noise is increased. Also, when data zoom processing is performed, noise may be magnified and the image may deteriorate. Furthermore, electrical noise may be superimposed on the imaging signal from the inside of the imaging device or from the outside of the imaging device. In addition, when an image pickup signal from a CCD, CMOS sensor or the like is converted to digital, it may be affected by errors due to variations in conversion of the analog / digital converter.
Therefore, it is necessary to eliminate the influence of noise in edge detection.

そのようなノイズ処理対策としては、メディアン・フィルタを使用することが提案されている。しかしながら、画像データ全体にメディアン・フィルタを適用すると、画像のエッジがぼけてしまい、解像度が低下する。   As a countermeasure against such noise processing, it has been proposed to use a median filter. However, when the median filter is applied to the entire image data, the edge of the image is blurred and the resolution is lowered.

特許文献5は、そのような問題を克服することを提案している。特許文献5に記載されている内容の概要を述べる。注目ピクセル(注目ピクセル)の画像データと、注目ピクセルの周囲の画像データの最大値からn番目までの値を求める。さらに、注目ピクセルの画像データと、注目ピクセルの周囲の画像データの最小値からm番目までの値を求める。最大値と最小値との差がしきい値より大きい時はエッジとし判断して、注目ピクセルの画像データとしてその注目ピクセルの画像データとする。他方、最大値と最小値との差がしきい値より小さい時はエッジではない判断して、注目ピクセルの画像データをメディアン値にする。
特開2005−149266号公報 特開2005−275681号公報 特開2004−159331号公報 特開2004−272885号公報 特開2004−16601号公報
Patent Document 5 proposes to overcome such a problem. An outline of the contents described in Patent Document 5 will be described. Values from the maximum value to the nth value of the image data of the pixel of interest (pixel of interest) and the image data around the pixel of interest are obtained. Further, the values from the minimum value to the m-th value of the image data of the pixel of interest and the image data around the pixel of interest are obtained. When the difference between the maximum value and the minimum value is larger than the threshold value, it is determined as an edge, and the image data of the target pixel is used as the image data of the target pixel. On the other hand, when the difference between the maximum value and the minimum value is smaller than the threshold value, it is determined that it is not an edge, and the image data of the pixel of interest is set as the median value.
JP 2005-149266 A JP 2005-275681 A JP 2004-159331 A JP 2004-272885 A JP 2004-16601 A

しかしながら、特許文献5に記載された方法では、下記に述べる問題に遭遇する。
注目ピクセルのメディアン・フィルタのオン・オフの判断を9ピクセルの画像データのみで行うため、ランダムノイズ、固定パターンのノイズの多い画像データでは、平坦箇所内のピクセルの画像データの処理結果の順序が、「メディアン値」、「メディアン値」、「元の画像データ」、「メディアン値」といったように、メディアン値の中に元の画像データがあるなど、不連続性か起き、画像の不自然さが目立つことがある。
特に、デジタル・ズーム処理を行った時に、画像の不自然さが目立つ。
However, the method described in Patent Document 5 encounters the problems described below.
Since the median filter of the pixel of interest is turned on / off only with the image data of 9 pixels, the order of the processing results of the image data of the pixels in the flat portion is random in the image data with a lot of random noise and fixed pattern. , “Median value”, “Median value”, “Original image data”, “Median value”, and so on. May stand out.
In particular, when digital zoom processing is performed, the unnaturalness of the image is noticeable.

また、特許文献1〜4に種々のエッジ処理技術が提案されているが、簡単な方法で、あるいは、簡単な装置構成で、迅速に、かつ、正確にエッジを検出したいという要望がある。   Further, various edge processing techniques have been proposed in Patent Documents 1 to 4, but there is a demand to detect edges quickly and accurately with a simple method or with a simple device configuration.

本発明によれば、2次元状に配置された複数のピクセルの各ピクセルについて、各ピクセルを中心とする周囲のピクセルについて平均値と、メディアン値を算出する工程と、
算出したピクセルの平均値が、仮想的なエッジであるか否かを判定する工程と、
算出したピクセルの画像データに、ノイズが含まれているか否かを判定する工程と、
上記判定した結果が、仮想的なエッジであり、かつ、ノイズが含まれていない場合は、注目ピクセルの画像データをその注目ピクセルの画像データとする工程と、
上記判定した結果が、仮想的なエッジでありノイズが含まれている場合、仮想的なエッジではなくノイズが含まれていない場合、または、仮想的なエッジではなくノイズが含まれている場合は、対応するメディアン値を注目ピクセルの画像データとする工程と
を含む、画像データ処理方法が提供される。
According to the present invention, for each of a plurality of pixels arranged two-dimensionally, calculating an average value and a median value for surrounding pixels centered on each pixel;
Determining whether the calculated average value of pixels is a virtual edge;
Determining whether the calculated pixel image data includes noise;
If the result of the determination is a virtual edge and no noise is included, the step of setting the image data of the pixel of interest as the image data of the pixel of interest;
If the result of the above judgment is a virtual edge that contains noise, if it is not a virtual edge and does not contain noise, or if it contains noise instead of a virtual edge And an image data processing method comprising: setting a corresponding median value as image data of a pixel of interest.

また本発明によれば、上記画像データ処理方法を実施する装置が提供される。
すなわち、本発明によれば、2次元状に配置された複数のピクセルの各ピクセルについて、各ピクセルを中心とする周囲のピクセルについて平均値と、メディアン値を算出する手段と、
算出したピクセルの平均値が、仮想的なエッジであるか否かを判定する手段と、
算出したピクセルの画像データに、ノイズが含まれているか否かを判定する手段と、
上記判定した結果が、仮想的なエッジであり、かつ、ノイズが含まれていない場合は、注目ピクセルの画像データをその注目ピクセルの画像データとする手段と、
上記判定した結果が、仮想的なエッジでありノイズが含まれている場合、仮想的なエッジではなくノイズが含まれていない場合、または、仮想的なエッジではなくノイズが含まれている場合は、対応するメディアン値を注目ピクセルの画像データとする手段と
を含む、画像データ処理装置が提供される。
According to the present invention, there is provided an apparatus for performing the image data processing method.
That is, according to the present invention, for each pixel of a plurality of pixels arranged two-dimensionally, means for calculating an average value and a median value for surrounding pixels centered on each pixel;
Means for determining whether or not the calculated average value of pixels is a virtual edge;
Means for determining whether noise is included in the calculated pixel image data;
If the result of the determination is a virtual edge and noise is not included, means for setting the image data of the pixel of interest as the image data of the pixel of interest;
If the result of the above judgment is a virtual edge that contains noise, if it is not a virtual edge and does not contain noise, or if it contains noise instead of a virtual edge And an image data processing device including means for setting the corresponding median value as image data of the pixel of interest.

本発明は、仮想的なエッジ判定とノイズ判定との結果に基づいて、最終的なエッジ判定処理を行う。そして、仮想的なエッジであり、かつ、ノイズが含まれていない場合は、注目ピクセルの画像データをその注目ピクセルの画像データとし、それ以外の場合は、対応するメディアン値を注目ピクセルPijの画像データとするので、ランダムノイズや、固定パターンノイズが多い場合でも、画像のエッジを保存したまま、ノイズ低減を行うことができる。 The present invention performs final edge determination processing based on the results of virtual edge determination and noise determination. If it is a virtual edge and no noise is included, the image data of the target pixel is set as the image data of the target pixel. Otherwise, the corresponding median value is set to the target pixel P ij . Since the image data is used, noise reduction can be performed while preserving the edge of the image even when there is a lot of random noise or fixed pattern noise.

本発明の画像データ処理方法は簡単であり、迅速に処理を行うことができる。
また本発明の画像データ処理装置の構成は簡単であり、迅速に処理を行うことができる。
The image data processing method of the present invention is simple and can be processed quickly.
Also, the configuration of the image data processing apparatus of the present invention is simple and can be processed quickly.

本発明の画像のエッジを検出する方法および画像のエッジを検出する装置の実施の形態を添付図面を参照して述べる。
図1は、本発明の実施の形態の画像のエッジを検出する部分を含む画像処理装置の構成図である。
図2は1フレーム分の画像データの配列の概要を図解した図である。
図3は図1に図解した画像のエッジを検出する装置における画像処理、特に、エッジ処理を説明するフローチャートである。
Embodiments of a method for detecting an edge of an image and an apparatus for detecting an edge of an image according to the present invention will be described with reference to the accompanying drawings.
FIG. 1 is a configuration diagram of an image processing apparatus including a portion for detecting an edge of an image according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating an outline of an arrangement of image data for one frame.
FIG. 3 is a flowchart for explaining image processing, particularly edge processing, in the apparatus for detecting the edge of the image illustrated in FIG.

画像処理装置の構成
本発明の実施の形態の画像処理装置1は、撮像手段10と、信号処理手段20と、フレームメモリ30と、表示装置50とを有する。
撮像手段10として、たとえば、CCD(チャージ・カップルド・デバイス)、C−MOSセンサなどの種々の撮像手段を用いることができる。以下、撮像手段10として、CCD100を用いた場合について述べる。
信号処理手段20は、以下に述べる画像信号処理を行う手段てあり、たとえば、コンピュータなどの信号処理プロセッサを用いることができる。以下、信号処理手段20として、信号処理プロセッサを用いた場合について例示する。
Configuration of Image Processing Device An image processing device 1 according to an embodiment of the present invention includes an imaging unit 10, a signal processing unit 20, a frame memory 30, and a display device 50.
As the image pickup means 10, various image pickup means such as a CCD (Charge Coupled Device), a C-MOS sensor and the like can be used. Hereinafter, a case where the CCD 100 is used as the imaging unit 10 will be described.
The signal processing means 20 is means for performing image signal processing described below. For example, a signal processing processor such as a computer can be used. Hereinafter, the case where a signal processor is used as the signal processing means 20 will be exemplified.

信号処理手段20の1例としての信号処理プロセッサ200は、図1に例示したように、中央演算処理ユニット(CPU)201、後述する処理を行うプログラム、固定データなどが格納されているROM202、RAM203、CCD100とのインターフェース(I/F)部204、アナログ/デジタル(A/D)変換部205、ワークメモリ206、表示装置50とのインターフェース(I/F)部207、および、バス208を有する。
これら、ROM202、RAM203、I/F部204、A/D変換部205、ワークメモリ206、I/F部207がバス208を介してCPU201に接続されている。
RAM203は、後述する信号処理におけるデータの一時的な保存などに使用する。
As illustrated in FIG. 1, the signal processor 200 as an example of the signal processing unit 20 includes a central processing unit (CPU) 201, a ROM 202 and a RAM 203 in which programs for performing processing to be described later, fixed data, and the like are stored. , An interface (I / F) unit 204 with the CCD 100, an analog / digital (A / D) conversion unit 205, a work memory 206, an interface (I / F) unit 207 with the display device 50, and a bus 208.
These ROM 202, RAM 203, I / F unit 204, A / D conversion unit 205, work memory 206, and I / F unit 207 are connected to the CPU 201 via a bus 208.
The RAM 203 is used for temporarily storing data in signal processing to be described later.

なお、CPU201、ワークメモリ206を含む信号処理プロセッサ200、および、フレームメモリ30が、本発明の画像データ処理装置の各手段を構成している。   The CPU 201, the signal processor 200 including the work memory 206, and the frame memory 30 constitute each unit of the image data processing apparatus of the present invention.

ワークメモリ206は、本実施の形態においては、各ピクセルごとの、画像平均値の保存、仮想的なエッジの有無の記憶、ノイズが含まれているか否か状態の記憶、最終的なエッジの有無の記憶などに使用する。
たとえば、仮想的なエッジであると判断された仮想的なエッジを示すピクセルの位置のワークメモリ206のメモリ部分には、論理「1」がセットされ、仮想的なエッジではないと判断された場合は、論理「0」がセットされる。
同様に、注目ピクセルPijの画像データにノイズが含まれている判断されたときは、ピクセルの位置のワークメモリ206の該当する部分には、論理「1」がセットされ、ノイズが含まれていないと判断された場合は、論理「0」がセットされる。
また、最終的にエッジが検出されたと判断されたエッジ検出を示すピクセルの位置のワークメモリ206のメモリ部分には、論理「1」がセットされ、最終的にエッジがないないと判断された場合は、論理「0」がセットされる。
このように、ワークメモリ206をみると、各ピクセルの状態が、たとえば、仮想的なエッジがあるか否か、ノイズが含まれていないか否か、あるいは、最終的にエッジが検出されたか否かを一覧できる。
本実施の形態においてはRAM203とワークメモリ206とを独立に設けた場合について述べたが、RAM203をワークメモリ206として使用することも可能である。
In this embodiment, the work memory 206 stores the average image value for each pixel, stores the presence / absence of virtual edges, stores the presence / absence of noise, and the presence / absence of final edges. Used for memory.
For example, when the logic “1” is set in the memory portion of the work memory 206 at the pixel position indicating the virtual edge determined to be a virtual edge, and it is determined that the edge is not a virtual edge Is set to logic "0".
Similarly, when it is determined that the image data of the pixel of interest P ij includes noise, a logic “1” is set in the corresponding portion of the work memory 206 at the pixel position, and noise is included. When it is determined that there is no logic, logic “0” is set.
When the memory portion of the work memory 206 at the pixel position indicating the edge detection where it is determined that the edge is finally detected is set to logic “1”, and it is finally determined that there is no edge. Is set to logic "0".
Thus, looking at the work memory 206, the state of each pixel is, for example, whether there is a virtual edge, whether noise is included, or whether an edge is finally detected. Can be listed.
Although the case where the RAM 203 and the work memory 206 are provided independently has been described in the present embodiment, the RAM 203 can be used as the work memory 206.

フレームメモリ30は、CCD100が撮像した画像を、1フレーム分記憶するメモリである。なお、1フレームは、図2に例示したように、(水平方向にm列)×(垂直方向にn行)のピクセルで構成されていると仮定している。
本実施の形態においては、フレームメモリ30には、各ピクセルごと、赤(R)、緑(G)、青(B)ごとの3種の信号を記憶される場合について述べる。以下の記述においては、CCD100から読み取った赤(R)、緑(G)、青(B)についてそれぞれエッジ処理を行う場合について述べる。
もちろん、フレームメモリ30には、赤(R)、緑(G)、青(B)の信号に代えて、輝度データと、2種の色差データを格納することもできる。その場合、エッジ処理は、輝度信号についてのみ行えばよい。
The frame memory 30 is a memory that stores an image captured by the CCD 100 for one frame. Note that, as illustrated in FIG. 2, one frame is assumed to be composed of (m columns in the horizontal direction) × (n rows in the vertical direction) pixels.
In the present embodiment, a case will be described in which the frame memory 30 stores three types of signals for each pixel: red (R), green (G), and blue (B). In the following description, a case where edge processing is performed for each of red (R), green (G), and blue (B) read from the CCD 100 will be described.
Of course, the frame memory 30 can store luminance data and two types of color difference data instead of the red (R), green (G), and blue (B) signals. In that case, the edge processing may be performed only for the luminance signal.

表示装置50は、信号処理プロセッサ200の処理結果を表示する表示装置、たとえば、LCDである。   The display device 50 is a display device that displays the processing result of the signal processor 200, for example, an LCD.

画像処理装置の概略処理内容
図3を参照して画像処理装置1の動作を述べる。
Outline of processing contents of image processing apparatus The operation of the image processing apparatus 1 will be described with reference to FIG.

ステップ1、撮像処理
CPU201は、I/F部204を介してCCD100を駆動する。
CPU201は、I/F部204を介して、CCD100の撮像結果を入力し、A/D変換部205でアナログの撮像信号をデジタル値に変換し、変換したデジタル撮像信号を順次、フレームメモリ30に記憶していく。
フレームメモリ30には、1フレーム分の画像データ、たとえば、RGB成分の3種の画像データをフレームメモリ30に格納する。
フレームメモリ30に格納される画像データは、たとえば、図2に例示したように、1フレーム分が水平方向と垂直方向の2次元的に(マトリクス状に)配列されている。1フレームの画像データは、RGB成分の3種の画像データごとにそれぞれ、水平方向にm個、垂直方向にn個の画素(ピクセル)で構成されている。
Step 1: The imaging processing CPU 201 drives the CCD 100 via the I / F unit 204.
The CPU 201 inputs the imaging result of the CCD 100 via the I / F unit 204, converts an analog imaging signal into a digital value by the A / D conversion unit 205, and sequentially converts the converted digital imaging signal to the frame memory 30. I will remember it.
The frame memory 30 stores image data for one frame, for example, three types of image data of RGB components in the frame memory 30.
For example, as illustrated in FIG. 2, the image data stored in the frame memory 30 is one-dimensionally arranged in a two-dimensional manner (matrix) in the horizontal direction and the vertical direction. One frame of image data is composed of m pixels in the horizontal direction and n pixels in the vertical direction for each of the three types of image data of the RGB components.

ステップ2、表示処理
CPU201は、フレームメモリ30に格納された画像データを、表示装置50の表示方式に応じて読みだして表示装置50に出力する。
これにより、表示装置50に、撮像手段10で撮像した画像が表示される。
Step 2, the display processing CPU 201 reads the image data stored in the frame memory 30 according to the display method of the display device 50 and outputs it to the display device 50.
As a result, the image captured by the imaging unit 10 is displayed on the display device 50.

ステップ3、エッジ判定の有無のチェック
CPU201は、エッジ判定処理が必要なタイミングか否かをチェックし、エッジ判定が必要な場合は、エッジ判定処理を行う。
エッジ判定処理は、撮像の度、たとえば、1秒に30回、毎回行うこともできるし、所定の周期、たとえば、1秒に一度、間欠的に行うこともできる。
あるいは、ユーザーあるいは他の装置から指示または要求があった場合など、デマンド的に行うこともできる。
Step 3 Check for Edge Determination The CPU 201 checks whether or not it is time to perform edge determination processing. If edge determination is necessary, the CPU 201 performs edge determination processing.
The edge determination process can be performed every time imaging is performed, for example, 30 times per second, or can be performed intermittently at a predetermined cycle, for example, once per second.
Alternatively, it can be performed on demand when there is an instruction or request from a user or another device.

ステップ4、エッジ判定処理
CPU201は、エッジ判定処理が必要な場合、図4(第1実施の形態)および図7(第2実施の形態)を参照して述べるエッジ判定処理を行う。
Step 4, Edge Determination Processing When the edge determination processing is necessary, the CPU 201 performs edge determination processing described with reference to FIG. 4 (first embodiment) and FIG. 7 (second embodiment).

エッジ判定処理、第1実施の形態
図4を参照して第1実施の形態のエッジ判定処理を述べる。
Edge determination processing, first embodiment The edge determination processing of the first embodiment will be described with reference to FIG.

ステップ11、平均画像データ値計算およびメディアン値計算
CPU201は、エッジ判定処理の前処理として、平均画像データ値AVと、メディアン値MDとを計算する。
フレームメモリ30に格納されている画像データは、たとえば、図2に例示したように、1フレーム分のRGB成分の画像データそれぞれが、水平方向にm個、垂直方向にn個の画素(ピクセル)で構成されている。以下、代表してR成分の画像データについて述べる。
Step 11: Average Image Data Value Calculation and Median Value Calculation The CPU 201 calculates the average image data value AV and the median value MD as preprocessing of the edge determination process.
The image data stored in the frame memory 30 is, for example, as illustrated in FIG. 2, each of the RGB component image data for one frame is m pixels in the horizontal direction and n pixels in the vertical direction. It consists of The R component image data will be described below as a representative.

平均画像データ値AVの計算
平均画像データ値AVは仮想的なエッジの判定に用いる。
本実施の形態において、図5(A)に図解したように、注目ピクセル(特定ピクセル、または特定画素)Pijを中心として、その周囲の1ピクセルの分、合計9ピクセルの画像データPi-1,j 〜Pi+1,j+1 について合計し、加算個数=9で割って注目ピクセルPijの平均画像データ値AVPijを求める。
これを1フレーム分の全てのピクセルの画像データについて計算する。
具体的には、CPU201は、注目ピクセルPijと、その周囲の8個のピクセルの画像データ、たとえば、R成分の画像データをフレームメモリ30から読み出し、RAM203に保存し、これら9個のピクセルの画像を加算し、9で割って注目ピクセルPijの平均値AVPijを求める。CPU201は、求めた平均値AVPijをワークメモリ206の対応するピクセルPijの平均画像データ値記憶部分に記憶する。
Calculation of average image data value AV The average image data value AV is used to determine a virtual edge.
In the present embodiment, as illustrated in FIG. 5A, the image data P i− of a total of 9 pixels, with one pixel around the pixel of interest (specific pixel or specific pixel) P ij as the center. 1, j total for ~P i + 1, j + 1 , obtaining an average image data values AVP ij of the target pixel P ij is divided by summing the number = 9.
This is calculated for the image data of all pixels for one frame.
Specifically, the CPU 201 reads out the image data of the pixel of interest P ij and the surrounding eight pixels, for example, the image data of the R component from the frame memory 30, stores it in the RAM 203, and stores these nine pixels. The images are added and divided by 9 to obtain the average value AVP ij of the pixel of interest P ij . The CPU 201 stores the obtained average value AVP ij in the average image data value storage portion of the corresponding pixel P ij in the work memory 206.

平均画像データ値AVPijの算出方法としては、上述した単純平均値のほか、重み係数を考慮して平均値を求めることもできる。たとえば、注目ピクセルPijの重み係数を2として、その周囲のピクセルの画素の重み係数を1として、重み係数を乗じた各ピクセルの画像データを合計し、加算結果を10で割って、重み付けした平均値AVPijを求めることもできる。CPU201は、このようにして求めた重み付けした平均値AVPijをワークメモリ206の注目ピクセルPijの平均画像データ値記憶部分に記憶する。 As a method for calculating the average image data value AVP ij , in addition to the above-described simple average value, an average value can be obtained in consideration of a weighting factor. For example, the weighting factor of the pixel of interest P ij is 2, the weighting factor of the surrounding pixels is 1, the image data of each pixel multiplied by the weighting factor is summed, and the addition result is divided by 10 and weighted An average value AVP ij can also be obtained. The CPU 201 stores the weighted average value AVP ij thus obtained in the average image data value storage portion of the target pixel P ij in the work memory 206.

なお、1フレームの周辺では、注目ピクセルの周囲に、1ピクセル分の画素データが存在しない。
そこで、CPU201は、4隅の注目ピクセルについては、たとえば、左隅の注目ピクセルについては、たとえば、図5(B)に図解したように、その周囲の3個のピクセルの画像データを用いて平均値を求める。上記同様、単純平均値を求めるか、重み付け平均値を求めるかは、適宜決定する。
CPU201は、このようにして求めた平均画像データ平均値AVPijをワークメモリ206の注目ピクセルPijの平均画像データ値記憶部分に記憶する。
なお、4隅の注目ピクセルについては、その外部にはエッジは存在しないから、CPU201は、これら4隅の注目ピクセルの外部のエッジ判定処理は行わない。
In the vicinity of one frame, there is no pixel data for one pixel around the pixel of interest.
Therefore, the CPU 201 uses, for example, the average value of the pixel of interest at the four corners, for example, for the pixel of interest at the left corner, as illustrated in FIG. 5B. Ask for. As described above, whether to obtain a simple average value or a weighted average value is appropriately determined.
The CPU 201 stores the average image data average value AVP ij obtained in this way in the average image data value storage portion of the pixel of interest P ij in the work memory 206.
Since there are no edges outside the pixel of interest at the four corners, the CPU 201 does not perform edge determination processing outside the pixel of interest at the four corners.

同様に、フレームメモリ30の周辺部分の注目ピクセルについては、たとえば、図5(C)に図解したように、たとえば、上辺のピクセルについては、その周囲の5個のピクセルの画像データとの平均画像データ平均値を求める。
CPU201は、このようにして求めた平均画像データ値AVPijをワークメモリ206の注目ピクセルPijの平均画像データ値記憶部分に記憶する。
この場合も、辺の外側にはエッジは存在しないから、CPU201は、これら辺のピクセルの外側のエッジ判定処理は行わない。
Similarly, with respect to the pixel of interest in the peripheral portion of the frame memory 30, for example, as illustrated in FIG. 5C, for example, with respect to the pixel on the upper side, the average image with the image data of the surrounding five pixels Obtain the data average.
The CPU 201 stores the average image data value AVP ij thus obtained in the average image data value storage portion of the pixel of interest P ij in the work memory 206.
Also in this case, since there is no edge outside the side, the CPU 201 does not perform the edge determination processing outside the pixels of these sides.

メディアン値の計算
メディアン値MDは最終的な注目ピクセルの値を決定するときに使用する。
CPU201は、上記平均画像データ値AVの計算と並行して、メディアン値MD、すなわち、中央値を求める。
メディアン値MDの求め方は、たとえば、上述した特許文献1〜5に記載のメディアン値の計算と同様である。
CPU201は、求めたメディアン値MDを、ワークメモリ206の各ピクセルPijのメディアン値記憶領域に記憶する。
Median value calculation The median value MD is used when determining the final value of the pixel of interest.
In parallel with the calculation of the average image data value AV, the CPU 201 obtains a median value MD, that is, a median value.
The method for obtaining the median value MD is the same as the median value calculation described in Patent Documents 1 to 5 described above, for example.
The CPU 201 stores the calculated median value MD in the median value storage area of each pixel P ij in the work memory 206.

ステップ12〜15、仮想的なエッジ判断処理
各ピクセルについて平均画像データ値が得られたら、CPU201は、各注目ピクセルについての平均画像データ値が、隣接するピクセルの画像データとの関係において、エッジであるか否かを仮想的に判断する。
仮想的なエッジとは、後述する最終的なエッジの判断に対して、この処理において、一時的にエッジとして判断されたことを言う。
Steps 12-15: Virtual Edge Determination Processing Once the average image data value is obtained for each pixel, the CPU 201 determines that the average image data value for each pixel of interest is the edge in relation to the image data of adjacent pixels. It is virtually determined whether or not there is.
The virtual edge means that it is temporarily determined as an edge in this process with respect to the final edge determination described later.

ステップ12、差分計算
第1実施の形態のエッジ判定処理は、注目ピクセルの平均画像データ値と、該注目ピクセルを中心とする周囲のピクセルの平均画像データ値とについて、マクリスク状に配置されたこれらのピクセルの斜め方向において、ほぼ左半分のピクセル領域の平均画像データ値の最大値と最小値との差を求め、ほぼ右半分のピクセル領域の平均画像データ値の最大値と最小値との差を求めて行う。
図6(A)は、注目ピクセルPijの画像データ、たとえば、R成分の平均画像データ値AVPijと、その周辺のピクセルの平均画像データ値AVを図解した図である。
CPU201は、図6(A)に図解した2次元状に配置された平均画像データ値AVを、図6(B)に図解したように、1列に並べて、たとえば、RAM203に記憶する。
CPU201は、注目ピクセルPijの平均画像データ値AVPijを基準として、その左側の差分Lδと、右側の差分Rδとを求める。
すなわち、CPU201は、左側の差分Lδとして、図6(B)における、5個の平均画像データ値AVPi-1,j-1 (A0 )〜AVPi,j (A4 )の最大値(MAX)と、最小値(MIN)との差を求める。
同様に、CPU201は、右側の差分Rδとして、図6(B)における、5個の平均画像データ値AVPi,j (A4 )〜AVPi+1,j+1 (A8 )の最大値(MAX)と、最小値(MIN)との差を求める。
Step 12, the edge calculation process in the first embodiment of the difference calculation is performed for the average image data value of the pixel of interest and the average image data value of surrounding pixels centered on the pixel of interest arranged in the form of a macro risk. Find the difference between the maximum and minimum average image data values in the left half pixel area in the diagonal direction of the pixel, and the difference between the maximum and minimum average image data values in the right half pixel area. To do that.
FIG. 6A is a diagram illustrating the image data of the pixel of interest P ij , for example, the average image data value AVP ij of the R component and the average image data value AV of the surrounding pixels.
The CPU 201 arranges the average image data values AV arranged in a two-dimensional shape illustrated in FIG. 6A in one column as illustrated in FIG. 6B and stores the average image data values AV in, for example, the RAM 203.
The CPU 201 obtains a difference Lδ on the left side and a difference Rδ on the right side based on the average image data value AVP ij of the pixel of interest P ij .
That is, the CPU 201 uses the maximum value of the five average image data values AVP i−1, j−1 (A 0 ) to AVP i, j (A 4 ) in FIG. MAX) and the difference between the minimum value (MIN).
Similarly, the CPU 201 sets the maximum value of the five average image data values AVP i, j (A 4 ) to AVP i + 1, j + 1 (A 8 ) in FIG. The difference between (MAX) and the minimum value (MIN) is obtained.

なお、図6(A)のデータ配列を図6(B)のようなデータ配列にすると、次の注目ピクセルPi+1,j について、左側の差分Lδと右側の差分Rδを求めるとき、RAM203内において、図6(B)のA0 〜A8 のデータを1個ずつ左にずらして、A0 を消去し、AVPi+1,j+1 (A8 )の次のピクセルの画像データをA8 の位置に挿入していくことで、上述した処理を簡単に行うことができるので、信号処理が簡単となる。
さらに、左側の差分Lδと右側の差分Rδの演算に使用するRAM203の使用メモリが9個ですむため、メモリ使用の削減の面で利点がある。
If the data array in FIG. 6A is changed to the data array as shown in FIG. 6B, the RAM 203 is used to determine the left difference Lδ and the right difference Rδ for the next pixel of interest P i + 1, j. In FIG. 6B, the data of A 0 to A 8 in FIG. 6B are shifted to the left one by one, A 0 is erased, and image data of the next pixel of AVP i + 1, j + 1 (A 8 ) Since the above-described processing can be easily performed by inserting A at the position of A 8 , signal processing is simplified.
Furthermore, since only nine RAMs 203 are used for the calculation of the left difference Lδ and the right difference Rδ, there is an advantage in terms of reduction in memory usage.

ステップ13〜15、仮想的なエッジの判定
CPU201は、左側の差分Lδが所定のしきい値以上の場合、または、右側の差分Rδが所定のしきい以上の場合、注目ピクセルPijが仮想的にエッジ部分であると仮定して、仮想エッジフラグEFLG=1とする。
他方、左側の差分Lδが所定のしきい値以下、かつ、右側の差分Rδが所定のしきい値以下の場合、CPU201は、注目ピクセルPijが仮想的にエッジ部分ではないと仮定して、仮想エッジフラグEFLG=0とする。
Steps 13-15: The virtual edge determination CPU 201 determines that the pixel of interest P ij is virtual when the left-side difference Lδ is greater than or equal to a predetermined threshold or when the right-side difference Rδ is greater than or equal to a predetermined threshold. Assuming that the edge portion is an edge portion, the virtual edge flag EFLG = 1 is set.
On the other hand, when the left-side difference Lδ is equal to or smaller than the predetermined threshold value and the right-side difference Rδ is equal to or smaller than the predetermined threshold value, the CPU 201 assumes that the pixel of interest P ij is not virtually an edge portion, The virtual edge flag EFLG = 0 is set.

ステップ16〜18、ノイズが含まれているか否かの判定
CPU201は、図5(A)に図解した、注目ピクセルPijの画像データと、その周辺のピクセルの画像データとの偏差を求める。
注目ピクセルPijの画像データとその周辺の画像データとは一般に連続しているから、瞬時的に大きなノイズが含まれている場合以外は、ある程度の偏差内にあると仮定してよい。
そこで、CPU201は、上記偏差の絶対値が所定のレベルを越えている場合、注目ピクセルPijの画像データにはノイズが含まれていると判定する。ノイズが含まれていると判定した場合、CPU201はノイズフラグNFLG=1として、ノイズが含まれていないと判定した場合、ノイズフラグNFLG=0とする。
Steps 16 to 18: Determination of whether or not noise is included The CPU 201 obtains a deviation between the image data of the pixel of interest P ij and the image data of surrounding pixels illustrated in FIG.
Since the image data of the pixel of interest P ij and the surrounding image data are generally continuous, it may be assumed that they are within a certain degree of deviation except when a large amount of noise is included instantaneously.
Therefore, the CPU 201 determines that noise is included in the image data of the pixel of interest P ij when the absolute value of the deviation exceeds a predetermined level. When it is determined that noise is included, the CPU 201 sets the noise flag NFLG = 1, and when it determines that noise is not included, the CPU 201 sets the noise flag NFLG = 0.

ステップ19〜25、最終的なエッジの判定
CPU201は、仮想エッジフラグEFLG=1、すなわち、注目ピクセルPijの画像データが仮想的なエッジであり、ノイズフラグNFLG=0、すなわち、注目ピクセルPijの画像データにはノイズが含まれていない場合、最終的にエッジであるとして、注目ピクセルPijの画像データをそのまま使用する。
このように、ノイズが含まれていず、エッジであると判定された場合は、注目ピクセルPijの本来の画像データを用いるので、エッジがぼけることはない。特に、ランダムノイズや、固定パターンノイズが多い場合でも、画像のエッジのデータを保存したまま、ノイズ低減を行うことができる。
その他の場合は全て、注目ピクセルPijの画像データとして、ワークメモリ206に記憶したメディアン値MDとする。
以上の処理を図2に図解した画像データの全てについて行う。
Steps 19 to 25, the final edge determination CPU 201 determines that the virtual edge flag EFLG = 1, that is, the image data of the pixel of interest P ij is a virtual edge, and the noise flag NFLG = 0, that is, the pixel of interest P ij If the image data does not contain noise, the image data of the pixel of interest P ij is used as it is, assuming that it is finally an edge.
As described above, when it is determined that an edge is not included in noise, the original image data of the pixel of interest P ij is used, so that the edge is not blurred. In particular, even when there is a lot of random noise or fixed pattern noise, it is possible to perform noise reduction while preserving image edge data.
In all other cases, the median value MD stored in the work memory 206 is used as the image data of the pixel of interest P ij .
The above processing is performed for all the image data illustrated in FIG.

第1実施の形態の変形態様
CPU201は、上述した仮想エッジフラグEFLGの値をワークメモリ206の注目ピクセルPijの仮想的なエッジを示すメモリ部分に記憶しておくことができる。また、CPU201は、ノイズフラグNFLGの値をワークメモリ206の注目ピクセルPijの対応するメモリ部分に記憶しておくことができる。これにより、1フレームの画像データについて、ワークメモリ206を観察すると、仮想的エッジの状態、および、ノイズが含まれているか否かの状態が一覧することができる。
The modification mode CPU 201 of the first embodiment can store the value of the virtual edge flag EFLG described above in a memory portion indicating the virtual edge of the pixel of interest P ij in the work memory 206. Further, the CPU 201 can store the value of the noise flag NFLG in the memory portion corresponding to the pixel of interest P ij in the work memory 206. As a result, when the work memory 206 is observed for one frame of image data, a list of virtual edge states and whether or not noise is included can be listed.

さらに、ワークメモリ206に記憶されている仮想エッジフラグEFLG=1かつノイズフラグNFLG=0のピクセルを、たとえば、表示装置50に表示すると、1フレームの画像データについて、どの部分が最終的にエッジとして判定されたかが一覧することができる。   Further, when the pixels of the virtual edge flag EFLG = 1 and the noise flag NFLG = 0 stored in the work memory 206 are displayed on the display device 50, for example, which portion of the image data of one frame is finally used as an edge It is possible to list whether the determination has been made.

さらに好ましくは、CPU201は、ワークメモリ206における最終的なエッジ結果の連続性をチェックする。
通常、1ピクセルだけ突出してエッジであることはない。エッジは通常、複数ピクセルに渡って連続している。したがって、CPU201は、ワークメモリ206内の最終エッジの結果の連続性をチェックして、複数のピクセルに渡ってエッジと判定された部分のみ、正式なエッジとしてワークメモリ206に記憶する。
More preferably, the CPU 201 checks the continuity of the final edge result in the work memory 206.
Usually, it does not protrude by one pixel and is not an edge. Edges are usually continuous across multiple pixels. Therefore, the CPU 201 checks the continuity of the result of the last edge in the work memory 206, and stores only a portion determined as an edge over a plurality of pixels in the work memory 206 as a formal edge.

上述した処理は、RGB成分のうち、たとえば、R成分についてのみ行った場合について述べたが、残りのGB成分それぞれについても上述した処理を行うことができる。
あるいは、処理の簡便化のため、映像にとって主要な成分、たとえば、G成分についてのみ処理を行えばよい場合には、そのような成分についてのみ上述した処理を行うことができる。
Although the above-described processing has been described for the case where only the R component is performed among the RGB components, for example, the above-described processing can also be performed for each of the remaining GB components.
Alternatively, in order to simplify the processing, when it is only necessary to perform processing on the main component of the video, for example, the G component, the above-described processing can be performed only on such a component.

もちろん、本発明の実施の形態においては、RGB成分ではなく、輝度成分と2種の色差成分の信号について、輝度信号成分についてのみ上述した処理を行うこともできる。   Of course, in the embodiment of the present invention, the above-described processing can be performed only for the luminance signal component, not for the RGB component, but for the luminance component and the two color difference component signals.

エッジ判定処理、第2実施の形態
図4を参照して述べたエッジ判定処理の第1実施の形態は、1度の処理でエッジ判定を行った場合について述べたが、図2に例示した画像データの配列に従って、水平方向と垂直方向とに分離して、エッジ判定を行うこともできる。
本発明の第2実施の形態のエッジ判定処理について、図7を参照して、そのような例を述べる。
Edge determination process, second embodiment In the first embodiment of the edge determination process described with reference to FIG. 4, the case where the edge determination is performed once is described, but the image illustrated in FIG. According to the data arrangement, the edge determination can be performed separately in the horizontal direction and the vertical direction.
Such an example will be described with reference to FIG. 7 regarding the edge determination processing according to the second embodiment of the present invention.

ステップ31、平均画像データ値計算およびメディアン値計算
CPU201は、エッジ処理の前処理として、平均画像データ値AVと、メディアン値MDとを計算する。
平均画像データ値AVの計算処理と、メディアン値MDの計算処理は、図4を参照して述べた、ステップ11の処理と同様である。
Step 31, average image data value calculation and median value calculation The CPU 201 calculates an average image data value AV and a median value MD as preprocessing of edge processing.
The calculation process of the average image data value AV and the calculation process of the median value MD are the same as the process of step 11 described with reference to FIG.

ステップ32〜34、ノイズが含まれているか否かの判定
CPU201は、第1実施の形態のステップ16〜18において述べたように、図5(A)に図解した、注目ピクセルPijの画像データと、その周辺のピクセルの画像データとの偏差を求める。
注目ピクセルPijの画像データとその周辺のピクセルの画像データとは一般に連続しているから、これらの画像データに瞬時的に過大なノイズが重畳された場合以外はある程度の偏差内にあると仮定してよい。
CPU201は、上記偏差の絶対値が所定のレベルを越えている場合、注目ピクセルPijの画像データにノイズが含まれていると判定する。
ノイズが含まれていると判定した場合、CPU201はノイズフラグNFLG=1として、ノイズが含まれていないと判定した場合、ノイズフラグNFLG=0とし、さらに注目ピクセルPijの画像データをメディアン値MDとする。
Steps 32 to 34, whether or not noise is included The CPU 201 determines the image data of the pixel of interest P ij illustrated in FIG. 5A as described in steps 16 to 18 of the first embodiment. And the deviation from the image data of the surrounding pixels.
Since the image data of the pixel of interest P ij and the image data of the surrounding pixels are generally continuous, it is assumed that they are within a certain degree of deviation except when excessive noise is instantaneously superimposed on these image data. You can do it.
When the absolute value of the deviation exceeds a predetermined level, the CPU 201 determines that the image data of the pixel of interest P ij includes noise.
If it is determined that noise is included, the CPU 201 sets the noise flag NFLG = 1, and if it determines that noise is not included, the CPU 201 sets the noise flag NFLG = 0 and further sets the image data of the pixel of interest P ij to the median value MD. And

図4のフローチャートに図解したように、仮想エッジフラグEFLG=1かつノイズフラグNFLG=0の場合のみ、最終的なエッジとして、注目ピクセルPijの画像データとして注目ピクセルPijの生の画像データを用いている。
したがって、第2実施の形態においても、ノイズフラグNFLG=0の場合のみ下記の処理を行い、ノイズフラグNFLG=1の場合は、注目ピクセルPijの画像データをメディアン値MDの値に置き換えて、以下の処理は行わない。
As illustrated in the flowchart of FIG. 4, only when the virtual edge flag EFLG = 1 and the noise flag NFLG = 0, the raw image data of the pixel of interest P ij is used as the image data of the pixel of interest P ij as the final edge. Used.
Therefore, also in the second embodiment, the following processing is performed only when the noise flag NFLG = 0, and when the noise flag NFLG = 1, the image data of the pixel of interest P ij is replaced with the value of the median value MD, The following processing is not performed.

ステップ35〜38、水平方向の仮想的なエッジの判定
CPU201は、ステップ35において、図6(A)に図解した注目ピクセルPijの水平方向の前後の平均画像データとの偏差を求める。
δ1H =AVPi-1,J 〜AVPi,J
δ2H =AVPi,J 〜AVPi+1,J
In steps 35 to 38, the horizontal virtual edge determination CPU 201 obtains a deviation from the average image data before and after the horizontal direction of the pixel of interest P ij illustrated in FIG.
δ1 H = AVP i−1, J to AVP i, J ,
δ2 H = AVP i, J to AVP i + 1, J

δ1H 、δ2H がともに、所定の判定レベル以内のとき、注目ピクセルPijは水平方向にエッジはないと判定し、CPU201は、水平方向の仮想エッジフラグEFLGH =0とする。この場合、CPU201は、注目ピクセルPijの画像データをその注目ピクセルPijの画像データとする。
他方、δ1H またはδ2H のいずれかが、所定の判定レベルを越えているときは、注目ピクセルPijは垂直方向にエッジがあると判定し、CPU201は、垂直方向の仮想エッジフラグEFLGH =1とする。この場合、CPU201は、注目ピクセルPijの画像データを対応するメディアン値MDとする。
When both δ1 H and δ2 H are within a predetermined determination level, it is determined that the pixel of interest P ij has no edge in the horizontal direction, and the CPU 201 sets the horizontal virtual edge flag EFLG H = 0. In this case, CPU 201 sets the image data of the target pixel P ij and the image data of the target pixel P ij.
On the other hand, when either δ1 H or δ2 H exceeds a predetermined determination level, it is determined that the pixel of interest P ij has an edge in the vertical direction, and the CPU 201 sets the virtual edge flag EFLG H in the vertical direction = Set to 1. In this case, the CPU 201 sets the image data of the pixel of interest P ij as the corresponding median value MD.

ステップ39〜43、垂直方向の仮想的なエッジの判定
CPU201は、ステップ39において、図6(A)に図解した注目ピクセルPijの垂直方向の前後の平均画像データとの偏差を求める。
δ1V =AVPi,J-1 〜AVPi,J
δ2V =AVPi,J 〜AVPi,J+1
Step 39-43, determination CPU201 vertical virtual edge, at step 39, a deviation of the vertical direction of the front and rear of the average image data of the target pixel P ij that illustrated in FIG. 6 (A).
δ1 V = AVP i, J-1 to AVP i, J ,
δ2 V = AVP i, J to AVP i , J + 1

δ1V 、δ2V がともに所定の判定レベル以内のとき、注目ピクセルPijは垂直方向にエッジはないと判定し、CPU201は、ステップ41において、垂直方向の仮想エッジフラグEFLGV =0とする。
さらにCPU201は、水平方向の仮想エッジフラグEFLGH =1の場合は水平方向にエッジがあると判定されている場合は、注目ピクセルPijの画像データをそのままそのピクセルの画像データとして保存しておく。
他方、水平方向の仮想エッジフラグEFLGH =0の場合は水平方向および垂直方向の両方向にエッジがないと判定されたので、注目ピクセルPijの画像データをメディアン値MDとする。
When both δ1 V and δ2 V are within a predetermined determination level, it is determined that the pixel of interest P ij has no edge in the vertical direction, and the CPU 201 sets the virtual edge flag EFLG V = 0 in the vertical direction in step 41.
Further, when it is determined that there is an edge in the horizontal direction when the horizontal virtual edge flag EFLG H = 1, the CPU 201 stores the image data of the pixel of interest P ij as it is as the image data of the pixel. .
On the other hand, when the virtual edge flag EFLG H in the horizontal direction is 0, it is determined that there is no edge in both the horizontal direction and the vertical direction, so the image data of the pixel of interest P ij is set as the median value MD.

δ1V またはδ2V のいずれかが所定の判定レベルを越えているときは、注目ピクセルPijは垂直方向にエッジがあると判定し、CPU201は、垂直方向の仮想エッジフラグEFLGV =1とする。さらに、CPU201は、注目ピクセルPijの画像データをそのままそのピクセルの画像データとして保存する。 When either δ1 V or δ2 V exceeds the predetermined determination level, it is determined that the pixel of interest P ij has an edge in the vertical direction, and the CPU 201 sets the virtual edge flag EFLG V = 1 in the vertical direction. . Further, the CPU 201 stores the image data of the pixel of interest P ij as it is as the image data of the pixel.

以上の処理を、図2に図解した画像データの全てについて行う。
以上により、注目ピクセルPijの水平方向および垂直方向にエッジがあるか否かが判定された。
CPU201は、水平方向の仮想エッジフラグEFLGH および垂直方向の仮想エッジフラグEFLGV をそれぞれ、ワークメモリ206内の対応する部分に記憶することができる。また上述したように、ワークメモリ206の対応する画像データ記憶部分には、注目ピクセルPijの画像データまたはメディアン値MDが記憶されている。
The above processing is performed for all the image data illustrated in FIG.
As described above, it is determined whether or not there is an edge in the horizontal direction and the vertical direction of the pixel of interest Pij .
The CPU 201 can store the horizontal virtual edge flag EFLG H and the vertical virtual edge flag EFLG V in corresponding portions in the work memory 206, respectively. Further, as described above, the corresponding image data storage portion of the work memory 206 stores the image data or median value MD of the pixel of interest P ij .

エッジ判定処理の第2実施の形態によっても、ノイズもなく水平方向、および/または、垂直方向においてエッジであると判定された場合は、注目ピクセルPijの本来の画像データを用いるので、エッジがぼけることはない。特に、ランダムノイズや、固定パターンノイズが多い場合でも、画像のエッジのデータを保存したまま、ノイズ低減を行うことができる。
その他の場合は全て、注目ピクセルPijの画像データとして、ワークメモリ206に記憶したメディアン値MDを用いる。これにより、ノイズが低減される。
第2実施の形態では、特に、水平方向、および/または、垂直方向の方向性を考慮したエッジが検出できる。
Also in the second embodiment of the edge determination process, when it is determined that the edge is in the horizontal direction and / or the vertical direction without noise, the original image data of the pixel of interest P ij is used, so that the edge is There is no blur. In particular, even when there is a lot of random noise or fixed pattern noise, it is possible to perform noise reduction while preserving image edge data.
In all other cases, the median value MD stored in the work memory 206 is used as the image data of the pixel of interest P ij . Thereby, noise is reduced.
In the second embodiment, in particular, an edge in consideration of the directionality in the horizontal direction and / or the vertical direction can be detected.

変形態様
さらに斜め方向のエッジを判定したい場合は、CPU201は、図6(A)における、注目ピクセルPijの対角方向の前後のピクセルの平均値画像データと、上述した水平方向および垂直方向の処理と同様の処理を行うことができる。
If you want to determine the edges of the variant further oblique direction, CPU 201 can, in FIG. 6 (A), the of the front and rear diagonal direction of the target pixel P ij pixel and the average value image data, horizontal and vertical as described above Processing similar to the processing can be performed.

第2実施の形態においても、ノイズ判定処理、エッジ判定処理の対象となる画像データは、輝度信号、または、RGBのいずれかを用いることができる。   Also in the second embodiment, either luminance signals or RGB can be used as image data to be subjected to noise determination processing and edge determination processing.

本発明の画像データ処理方法と装置の実施に際しては、上述した例示に限らず、種々の変形態様をとることができる。
たとえば、図5(A)を参照してノイズ処理に際して、注目ピクセルPijの外周1ピクセル分について、画像データの偏差を算出する例を述べたが、外周1ピクセル分に限らず、外周2ピクセル分まで拡大することもできる。もちろん、外周2ピクセルまでに限定されない。
同様に、図6(A)、(B)を参照して述べた仮想的なエッジ判定処理に際しても、注目ピクセルPijの平均画像データ値AVを中心とする9個のピクセルの平均画像データ値AVを用いる場合を例示したが、さらに外周2ピクセル分の平均画像データ値AVを参照して仮想的なエッジ判定を行うこともできる。もちろん、外周2ピクセルまでに限定されない。
The implementation of the image data processing method and apparatus of the present invention is not limited to the above-described examples, and various modifications can be made.
For example, in the noise processing with reference to FIG. 5 (A), the example in which the deviation of the image data is calculated for one pixel of the outer periphery of the pixel of interest P ij has been described. It can also be expanded to minutes. Of course, it is not limited to 2 pixels perimeter.
Similarly, in the virtual edge determination process described with reference to FIGS. 6A and 6B, the average image data value of nine pixels centered on the average image data value AV of the pixel of interest P ij. Although the case where AV is used has been exemplified, virtual edge determination can also be performed with reference to the average image data value AV for two outer peripheral pixels. Of course, it is not limited to 2 pixels perimeter.

上述した記述から、図1に図解した信号処理プロセッサ200(信号処理手段20)、特に、CPU201とワークメモリ206、および、フレームメモリ30が本発明の画像データ処理装置の種々の手段を構成していることが理解されよう。
同様に、図1に図解した信号処理プロセッサ200(信号処理手段20)、特に、CPU201とワークメモリ206、および、フレームメモリ30の動作処理が、本発明の画像データ処理方法の種々の工程の処理を実施していることが理解されよう。
From the above description, the signal processor 200 (signal processing means 20) illustrated in FIG. 1, in particular, the CPU 201, the work memory 206, and the frame memory 30 constitute various means of the image data processing apparatus of the present invention. It will be understood that
Similarly, the operation processing of the signal processor 200 (signal processing means 20) illustrated in FIG. 1, in particular, the CPU 201, the work memory 206, and the frame memory 30 is processed in various steps of the image data processing method of the present invention. It will be understood that this is implemented.

図1は、本発明の実施の形態の画像のエッジを検出する部分を含む画像処理装置の構成図である。FIG. 1 is a configuration diagram of an image processing apparatus including a portion for detecting an edge of an image according to an embodiment of the present invention. 図2は、1フレーム分の画像データの配列の概要を図解した図である。FIG. 2 is a diagram illustrating an outline of an arrangement of image data for one frame. 図3は、図1に図解した画像のエッジを検出する装置における画像処理、特に、エッジ処理を説明するフローチャートである。FIG. 3 is a flowchart for explaining image processing, particularly edge processing, in the apparatus for detecting the edge of the image illustrated in FIG. 図4は、エッジ判定方法の第1実施の形態のフローチャートである。FIG. 4 is a flowchart of the first embodiment of the edge determination method. 図5(A)〜(C)は、エッジ判定の前処理として、画像データの平均値を求めるための説明をする図である。FIGS. 5A to 5C are diagrams for describing an average value of image data as preprocessing for edge determination. 図6(A)、(B)は、注目ピクセルの画像データと、その周辺のピクセルの画像データの平均画像データ値を図解した図である。6A and 6B are diagrams illustrating the image data of the target pixel and the average image data value of the image data of the surrounding pixels. 図7は、エッジ判定方法の第2実施の形態のフローチャートである。FIG. 7 is a flowchart of the second embodiment of the edge determination method.

符号の説明Explanation of symbols

1…画像処理装置
10…撮像手段、
20…信号処理手段、
201…CPU、202…ROM、203…RAM、204…I/F部、
205…A/D変換部、206…ワークメモリ、207…I/F部、
208…バス、
30…フレームメモリ、
50…表示装置
DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus 10 ... Imaging means,
20 ... Signal processing means,
201 ... CPU, 202 ... ROM, 203 ... RAM, 204 ... I / F unit,
205 ... A / D conversion unit, 206 ... work memory, 207 ... I / F unit,
208 ... Bus
30: Frame memory,
50. Display device

Claims (6)

2次元状に配置された複数のピクセルの各ピクセルについて、各ピクセルを中心とする周囲のピクセルについて平均値と、メディアン値を算出する工程と、
算出したピクセルの平均値が、仮想的なエッジであるか否かを判定する工程と、
算出したピクセルの画像データに、ノイズが含まれているか否かを判定する工程と、
上記判定した結果が、仮想的なエッジであり、かつ、ノイズが含まれていない場合は、注目ピクセルの画像データをその注目ピクセルの画像データとする工程と、
上記判定した結果が、仮想的なエッジでありノイズが含まれている場合、仮想的なエッジではなくノイズが含まれていない場合、または、仮想的なエッジではなくノイズが含まれている場合は、対応するメディアン値を注目ピクセルの画像データとする工程と
を含む、画像データ処理方法。
For each pixel of a plurality of pixels arranged in a two-dimensional manner, calculating an average value and a median value for surrounding pixels centered on each pixel;
Determining whether the calculated average value of pixels is a virtual edge;
Determining whether the calculated pixel image data includes noise;
If the result of the determination is a virtual edge and no noise is included, the step of setting the image data of the pixel of interest as the image data of the pixel of interest;
If the result of the above judgment is a virtual edge that contains noise, if it is not a virtual edge and does not contain noise, or if it contains noise instead of a virtual edge An image data processing method comprising: setting a corresponding median value as image data of a pixel of interest.
前記仮想的なエッジを判定する工程において、
注目ピクセルの平均画像データ値と、該注目ピクセルを中心とする周囲のピクセルの平均画像データ値とについて、マクリスク状に配置されたこれらのピクセルの斜め方向において、ほぼ左半分のピクセル領域の平均画像データ値の最大値と最小値との差を求め、および、ほぼ右半分のピクセル領域の平均画像データ値の最大値と最小値との差を求め、
両者の差のいずれかが所定のしきい値を越えている場合、仮想的なエッジであると判定する、
請求項1に記載の画像データ処理方法。
In the step of determining the virtual edge,
With respect to the average image data value of the pixel of interest and the average image data value of surrounding pixels centering on the pixel of interest, the average image of the pixel region in the substantially left half in the diagonal direction of these pixels arranged in the form of a macro risk Find the difference between the maximum and minimum data values, and the difference between the maximum and minimum average image data values in the pixel area in the right half of the right,
When one of the differences between the two exceeds a predetermined threshold, it is determined as a virtual edge.
The image data processing method according to claim 1.
前記仮想的なエッジを判定する工程において、
注目ピクセルの平均画像データ値と、該注目ピクセルを中心とする周囲のピクセルの平均画像データ値とについて、
マクリスク状に配置されたこれらのピクセルの水平方向において、注目ピクセルの平均画像データ値と、該注目ピクセルの前後のピクセルの平均画像データ値との差が所定のしきい値を越えている場合、水平方向にエッジがあると判定し、
マクリスク状に配置されたこれらのピクセルの垂直方向において、注目ピクセルの平均画像データ値と、該注目ピクセルの前後のピクセルの平均画像データ値との差が所定のしきい値を越えている場合、垂直方向にエッジがあると判定する、
請求項1に記載の画像データ処理方法。
In the step of determining the virtual edge,
Regarding the average image data value of the pixel of interest and the average image data value of surrounding pixels centered on the pixel of interest,
If the difference between the average image data value of the pixel of interest and the average image data value of the pixels before and after the pixel of interest in the horizontal direction of these pixels arranged in a macrosquist, exceeds a predetermined threshold value, Judge that there is an edge in the horizontal direction,
When the difference between the average image data value of the pixel of interest and the average image data value of the pixels before and after the pixel of interest in the vertical direction of these pixels arranged in the form of a macro risk exceeds a predetermined threshold value, Determine that there is an edge in the vertical direction,
The image data processing method according to claim 1.
前記仮想的なエッジを判定する工程において、
注目ピクセルの平均画像データ値と、該注目ピクセルを中心とする周囲のピクセルの平均画像データ値とについて、
マクリスク状に配置されたこれらのピクセルの第1の対角方向において、注目ピクセルの平均画像データ値と、該注目ピクセルの前後のピクセルの平均画像データ値との差が所定のしきい値を越えている場合、第1の対角方向にエッジがあると判定し、
マクリスク状に配置されたこれらのピクセルの第2の対角方向において、注目ピクセルの平均画像データ値と、該注目ピクセルの前後のピクセルの平均画像データ値との差が所定のしきい値を越えている場合、第2の対角方向にエッジがあると判定する、
請求項3に記載の画像データ処理方法。
In the step of determining the virtual edge,
Regarding the average image data value of the pixel of interest and the average image data value of surrounding pixels centered on the pixel of interest,
The difference between the average image data value of the pixel of interest and the average image data values of the pixels before and after the pixel of interest exceeds a predetermined threshold in the first diagonal direction of these pixels arranged in the form of a macro risk. It is determined that there is an edge in the first diagonal direction,
The difference between the average image data value of the pixel of interest and the average image data values of the pixels before and after the pixel of interest in a second diagonal direction of these pixels arranged in a macroslice exceeds a predetermined threshold value. If it is determined that there is an edge in the second diagonal direction,
The image data processing method according to claim 3.
前記ノイズの判定工程において、
注目ピクセルの画像データと、該注目ピクセルの周囲の画像データとの差が所定のレベルを越えている場合、該注目ピクセルの画像データにノイズが含まれているとする、
請求項1〜4のいずれかに記載の画像データ処理方法。
In the noise determination step,
When the difference between the image data of the pixel of interest and the image data around the pixel of interest exceeds a predetermined level, it is assumed that the image data of the pixel of interest contains noise.
The image data processing method according to claim 1.
2次元状に配置された複数のピクセルの各ピクセルについて、各ピクセルを中心とする周囲のピクセルについて平均値と、メディアン値を算出する手段と、
算出したピクセルの平均値が、仮想的なエッジであるか否かを判定する手段と、
算出したピクセルの画像データに、ノイズが含まれているか否かを判定する手段と、
上記判定した結果が、仮想的なエッジであり、かつ、ノイズが含まれていない場合は、注目ピクセルの画像データをその注目ピクセルの画像データとする手段と、
上記判定した結果が、仮想的なエッジでありノイズが含まれている場合、仮想的なエッジではなくノイズが含まれていない場合、または、仮想的なエッジではなくノイズが含まれている場合は、対応するメディアン値を注目ピクセルの画像データとする手段と
を含む、画像データ処理装置。
Means for calculating an average value and a median value for surrounding pixels centered on each pixel, for each of a plurality of pixels arranged in a two-dimensional manner;
Means for determining whether or not the calculated average value of pixels is a virtual edge;
Means for determining whether noise is included in the calculated pixel image data;
If the result of the determination is a virtual edge and noise is not included, means for setting the image data of the pixel of interest as the image data of the pixel of interest;
If the result of the above judgment is a virtual edge that contains noise, if it is not a virtual edge and does not contain noise, or if it contains noise instead of a virtual edge And a means for setting the corresponding median value as image data of the pixel of interest.
JP2006009103A 2006-01-17 2006-01-17 Image data processing method and image data processing apparatus Expired - Fee Related JP4611212B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006009103A JP4611212B2 (en) 2006-01-17 2006-01-17 Image data processing method and image data processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006009103A JP4611212B2 (en) 2006-01-17 2006-01-17 Image data processing method and image data processing apparatus

Publications (2)

Publication Number Publication Date
JP2007194733A true JP2007194733A (en) 2007-08-02
JP4611212B2 JP4611212B2 (en) 2011-01-12

Family

ID=38450106

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006009103A Expired - Fee Related JP4611212B2 (en) 2006-01-17 2006-01-17 Image data processing method and image data processing apparatus

Country Status (1)

Country Link
JP (1) JP4611212B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011014061A (en) * 2009-07-06 2011-01-20 Nippon Ceramic Co Ltd Image processing method
US10419696B2 (en) 2015-05-21 2019-09-17 Fujifilm Corporation Infrared imaging device and signal correction method using infrared imaging device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05135171A (en) * 1991-11-13 1993-06-01 Fujitsu Ltd Processor for color image and border part detecting method
JPH05342352A (en) * 1992-06-08 1993-12-24 Dainippon Screen Mfg Co Ltd Edge extracting device for multi-gradation picture
JPH0668257A (en) * 1992-08-17 1994-03-11 Kawasaki Steel Corp Detecting method for edge of object in image and detecting method for distance between edges
JPH07225834A (en) * 1994-02-10 1995-08-22 Matsushita Electric Ind Co Ltd Picture noise detector
JP2004318356A (en) * 2003-04-15 2004-11-11 Olympus Corp Image processing device, image processing method, and its program
JP2005149266A (en) * 2003-11-18 2005-06-09 Olympus Corp Image processing apparatus, image processing method, and image processing program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05135171A (en) * 1991-11-13 1993-06-01 Fujitsu Ltd Processor for color image and border part detecting method
JPH05342352A (en) * 1992-06-08 1993-12-24 Dainippon Screen Mfg Co Ltd Edge extracting device for multi-gradation picture
JPH0668257A (en) * 1992-08-17 1994-03-11 Kawasaki Steel Corp Detecting method for edge of object in image and detecting method for distance between edges
JPH07225834A (en) * 1994-02-10 1995-08-22 Matsushita Electric Ind Co Ltd Picture noise detector
JP2004318356A (en) * 2003-04-15 2004-11-11 Olympus Corp Image processing device, image processing method, and its program
JP2005149266A (en) * 2003-11-18 2005-06-09 Olympus Corp Image processing apparatus, image processing method, and image processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011014061A (en) * 2009-07-06 2011-01-20 Nippon Ceramic Co Ltd Image processing method
US10419696B2 (en) 2015-05-21 2019-09-17 Fujifilm Corporation Infrared imaging device and signal correction method using infrared imaging device

Also Published As

Publication number Publication date
JP4611212B2 (en) 2011-01-12

Similar Documents

Publication Publication Date Title
JP5740465B2 (en) Imaging apparatus and defective pixel correction method
JP5031877B2 (en) Image processing apparatus and image processing method
JP5918915B2 (en) Method and device for creating an improved color image using a sensor having a color filter
KR20080078076A (en) Method and apparatus providing color interpolation in color filter arrays using edge detection and correction terms
JP2008512051A (en) Apparatus and method for processing images
JPWO2006134923A1 (en) Image processing apparatus, computer program product, and image processing method
JP5709131B2 (en) Image processing system
JP4386959B1 (en) Image processing device
JP2015136054A5 (en)
JP2003304548A5 (en)
CN107248147B (en) Method for eliminating dead pixel in RAW-RGB image
JP2016038554A5 (en) Imaging apparatus, control method therefor, and storage medium
EP2575350A2 (en) Method for brightness correction of defective pixels of digital monochrome image
JP2010016812A (en) Image processing apparatus and method, and computer-readable medium
JP4611212B2 (en) Image data processing method and image data processing apparatus
KR100690171B1 (en) Image correction circuit and image correction method
US8363135B2 (en) Method and device for reconstructing a color image
KR102015587B1 (en) Device and Method for detecting defect pixel and computer-implemented program thereof
JP5017567B2 (en) Image processing apparatus and surveillance camera
JP5256236B2 (en) Image processing apparatus and method, and image processing program
US8400534B2 (en) Noise reduction methods and systems for imaging devices
US8126284B2 (en) Method and apparatus for resolution improvement in digital capturing
JP2011155365A (en) Image processing apparatus and image processing method
JP6091807B2 (en) Defective pixel determination device and defective pixel determination method
JP2013038654A5 (en)

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080818

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100907

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

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

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

Free format text: PAYMENT UNTIL: 20131022

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees