JP3825825B2 - Filter device - Google Patents

Filter device Download PDF

Info

Publication number
JP3825825B2
JP3825825B2 JP34389295A JP34389295A JP3825825B2 JP 3825825 B2 JP3825825 B2 JP 3825825B2 JP 34389295 A JP34389295 A JP 34389295A JP 34389295 A JP34389295 A JP 34389295A JP 3825825 B2 JP3825825 B2 JP 3825825B2
Authority
JP
Japan
Prior art keywords
pixel
value
input
filter
output
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
JP34389295A
Other languages
Japanese (ja)
Other versions
JPH09186993A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP34389295A priority Critical patent/JP3825825B2/en
Priority to US08/780,002 priority patent/US6463182B1/en
Priority to CN96121359A priority patent/CN1129868C/en
Publication of JPH09186993A publication Critical patent/JPH09186993A/en
Application granted granted Critical
Publication of JP3825825B2 publication Critical patent/JP3825825B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明はブロック化された画像データのノイズを除去するためのフィルタ装置に関するものである。
【0002】
【従来の技術】
画像信号を高能率に圧縮符号化する技術として、直交変換符号化方式が知られている。これは、画像信号を所定の画素数ごとにまとめてブロック化した後、離散コサイン変換(DCT)等の直交変換を行い、変換後の係数に対して量子化、エントロピー符号化等を行うものである。
【0003】
図3はブロック符号化の例として上記DCTを用いた符号化及び復号化装置を示すものである。
図3において、入力端子701より、ディジタル化された画像データが入力され、ブロック化回路702によりm×n画素単位でブロック化される。m×n画素単位でブロック化された画像データは、動き判定回路703、DCT回路704に出力される。動き判定回路703は、該当ブロックが動画領域のブロックか、静止画領域のブロックかを判定し、判定結果をブロックの動き情報としてDCT回路704に出力する。DCT回路704は、ブロック化された画像データをDCT係数に直交変換する。このときDCT回路704は、動き判定回路703からの動き情報によって適応的にDCTの処理を切り換えるようになっている。
【0004】
DCT係数に変換されたデータと該当ブロックの動き情報とは量子化回路705に入力され、DCT係数はブロック単位で量子化される。量子化はDCT係数を量子化係数で割ることによって行われる。
【0005】
量子化されたデータと動き情報、量子化パラメータとは、可変長符号化回路706でエントロピー符号化等の手法により符号化され、所望のデータ転送レートを得る。符号化されたデータは出力端子707により出力され、後段の回路で伝送路、あるいは記録媒体に適したフォーマット化がなされた後、伝送あるいは記録媒体に記録される。
【0006】
復号時は、伝送された、あるいは記録媒体から再生されたデータが入力端子708からECC回路709に入力され符号誤りの訂正が行われた後、可変長符号復号回路710で復号される。復号されたデータは量子化パラメータに基づき、逆量子化回路711で逆量子化され、DCT係数に変換される。このとき逆DCT回路712は、動き情報に基づく逆DCT処理を行い、DCT係数を画像データに変換してフレームメモリ713に書き込む。フレームメモリ713に書き込まれたディジタル画像データは、量子化回路704、逆量子化回路710で量子化、逆量子化の処理が行われているため、量子化誤差によるノイズを含む。このため、フィルタ回路714でノイズ軽減のためのフィルタリング処理を行い、ノイズ成分を減衰させた後、出力端子715から出力されてモニタ等に表示される。
上記量子化誤差によるノイズは、エッジ付近に現れるモスキートノイズとブロック境界に現れるブロック歪みとの2種類に大別される。
【0007】
図4はモスキートノイズ軽減を目的とするフィルタの構成例である。
再生されたディジタル画像信号は入力端子301からラスタ順に入力される。DL302、DL303、DL304、DL305は遅延素子であり、それぞれ1画素の遅延を行う。フィルタリングを行う注目画素はDL303に格納されており、入力端子301には画面上で注目画素の2画素右の画素が入力され、DL302には1画素右の画素、DL304には1画素左の画素、DL305には2画素左の画素が格納されており、水平5タップのフィルタとなっている。差分絶対値計算回路306〜309において、注目画素とその左右4画素との差分絶対値が計算され、その結果が比較器311〜314にそれぞれ入力される。入力端子310にはフィルタ画素選択のためのしきい値が入力され、比較器311〜314は、入力された差分絶対値がしきい値以下の場合は“1”を、そうでない場合は“0”を出力する。従って、カウンタ315には比較器311〜314の結果が入力され、“1”を出力した比較器の個数をカウントする。カウンタ315はフィルタリングに使用する画素の個数(注目画素を除く)を保持することになる。
【0008】
また、比較器311〜314の比較結果は選択スイッチ316〜319に入力されており、“1”が入力されている場合は#1側を選択し、“0”が入力されている場合は#0側を選択する。従って、選択スイッチ316〜319は#1側が選択されている場合は各画素の値を出力し、#0側が選択されている場合は“0”を出力する。
【0009】
加算器320には選択スイッチ316〜319の出力とDL303からの注目画素の画素値とが入力され、加算が行われる。除算器321にはカウンタ315からフィルタリングに使用する画素の個数(注目画素を除く)が入力され、加算器320の加算結果を最終的にフィルタリングで使用する画素の個数である(上記個数+1)で割って出力端子322に出力する。
以上の構成により、±th以下の低振幅のノイズが軽減され、モスキートノイズ軽減フィルタとして動作する。
【0010】
【発明が解決しようとする課題】
上記のようなフィルタ構成では、モスキートノイズ軽減効果はあるが、ブロック歪み軽減のためには別の手法のフィルタを用いる必要があり、回路規模が増大するという問題があった。
【0011】
本発明は上記のような問題を解決するためになられたもので、モスキートノイズ、ブロック歪み等の性質の異るノイズを回路規模を増大することなく軽減することのできるフィルタ装置及びそれを用いた復号化装置を得ることを目的としている。
【0012】
【課題を解決するための手段】
請求項1の発明においては、縦横それぞれ所定個数の画素ごとに分割ブロック化され直交変換符号化された画像データを復号化した、モスキートノイズ及びブロック歪みを含む画像データに於て、注目画素の画素値とその近傍の複数個の画素の各画素値との差分値をそれぞれ検出する差分値検出手段と、上記検出された各差分値と所定のしきい値とをそれぞれ比較する比較手段と、上記比較手段の比較結果が上記差分値が上記しきい値以下である場合に上記画素値を選択出力し、上記しきい値より大きい場合にはゼロを出力する選択手段とを備え、上記各選択手段の出力と上記注目画素の画素値とを加算し、その加算結果を上記選択手段が上記画素値を選択した個数に1を加えた値で除算し、フィルタ出力として出力する演算手段によりモスキートノイズを軽減するフィルタを構成し、上記注目画素が上記ブロックの境界にあるか否かを検出し、その検出結果に応じて上記注目画素がブロックの境界にあることが検出された場合には、上記しきい値が大きくなるように変更する変更手段により上記演算手段をブロック歪みを軽減するフィルタとして機能させるフィルタ装置を特徴とする。
【0016】
【作用】
本発明においては、通常ではモスキートノイズを軽減するフィルタ処理が行われ、注目画素がブロックの境界にあるときはしきい値が変更されてブロック歪みを軽減するフィルタ処理が行われる。
【0018】
【発明の実施の形態】
図1は本発明の実施の形態を示すブロック図である。図1において、図4と同一の番号301〜322を付した部分は図4における部分と実質的に同一部分である。101は入力端子301からの入力画素をカウントしてブロック境界か否かを判定する画素カウンタ、102は入力端子310から入力されたしきい値を2倍にするシフトレジスタ、103は画素カウンタ101の値に応じてしきい値を選択する選択スイッチである。
【0019】
次に動作について説明する。
再生されたディジタル画像信号は入力端子301からラスタ順に入力される。遅延素子DL302、DL303、DL304、DL305はそれぞれ1画素の遅延を行う。フィルタリングを行う注目画素はDL303に格納されており、入力端子301には画面上で注目画素の2画素右の画素が入力され、DL302には1画素右の画素、DL304には1画素左の画素、DL305には2画素左の画素が格納されており、水平5タップのフィルタとなっている。画素カウンタ101は入力端子301から入力される画素をカウントして、DL303に格納されている画素がブロック境界の画素かどうかを判定する。例えば入力画素の水平位置をカウントし、それがブロックの水平方向の境界上の画素かどうかを判定する。差分絶対値計算回路306〜309において、注目画素とその左右4画素との差分絶対値が計算され、その結果が比較器311〜314にそれぞれ入力される。
【0020】
入力端子310にはフィルタリングに使用する画素を選択するためのしきい値が入力される。選択スイッチ103には入力端子310からのしきい値データと、シフトレジスタ102を介して2倍にされたしきい値のデータとが入力される。選択スイッチ103は画素カウンタ101によって制御され、DL303に格納されている注目画素がブロック境界の画素である場合は#2側を、そうでない場合は#1側を選択する。
【0021】
比較器311〜314には選択スイッチ103からしきい値が入力され、入力された差分絶対値がしきい値以下の場合は“1”を、そうでない場合は“0”を出力する。カウンタ315には比較器311〜314の結果が入力され、“1”を出力した比較器の個数をカウントする。従って、カウンタ315はフィルタリングに使用する画素の個数(注目画素を除く)を保持することになる。
【0022】
また、比較器311〜314の比較結果は選択スイッチ316〜319に入力されており、“1”が入力されている場合は#1側を選択し、“0”が入力されている場合は#0側を選択する。従って、選択スイッチ316〜319は#1側が選択されている場合は各画素の値を出力し、#0側が選択されている場合は“0”を出力する。
【0023】
加算器320には選択スイッチ316〜319の出力とDL303からの注目画素の画素値とが入力され、加算が行われる。除算器321にはカウンタ315からフィルタリングに使用する画素の個数(注目画素を除く)が入力され、加算器320の加算結果を最終的にフィルタリングで使用する画素の個数である(上記個数+1)で割って出力端子322に出力する。
【0024】
以上の構成により、注目画素がブロック境界の画素である場合は、比較器311〜314が使用するしきい値が通常のモスキートノイズ除去時の2倍となり、このため、ブロック境界では強めのフィルタがかかり、モスキートノイズおよび水平方向のブロック歪みの両方を同時に軽減することができる。
【0025】
図2は本発明の第2の実施の形態を示す図である。本実施の形態は3×3の2次元フィルタの例である。
図において、201は再生データの入力端子、202〜209は遅延素子、210〜217はフィルタリングを行う注目画素と隣接画素との差分絶対値計算回路、218は入力画素をカウントしてブロック境界かどうかを判定する画素カウンタ、219は画素選択に用いるしきい値を格納しているしきい値テーブル、220〜227は差分絶対値をしきい値と比較する比較器、228はフィルタリングに使用する画素の個数をカウントするカウンタ、229〜236はフィルタリングに使用する画素値を選択する選択スイッチ、237は選択された画素値を加算する加算器、238は平均化を行う除算器、239は出力端子である。
【0026】
次に動作について説明する。
入力端子201には再生データがラスタ順に入力される。入力された画素値はDL202〜209で順次遅延される。DL205にフィルタリングを行う注目画素が格納されているとき、入力端子201には画面上で注目画素の右下の画素値が入力されており、DL202には1画素下の画素値が、DL203には左下の画素値が、DL204には1画素右の画素値が、DL206には1画素左の画素値が、DL207には右上の画素値が、DL208には1画素上の画素値が、DL209には左上の画素値がそれぞれ格納されるように各遅延素子の遅延時間は設定されている。NTSC方式の場合、DL207〜209には注目画素に対して同一フィールドの1ライン上の画素値が、入力端子201およびDL202、DL203には同一フィールドの1ライン下の画素が入力または格納されている。
【0027】
差分絶対値計算回路210〜217は、注目画素であるDL205の値とそれに隣接する8個の各画素の差分絶対値を計算する。
画素カウンタ218は入力端子201から入力される画素をカウントして、DL205に格納されている注目画素がブロック境界の画素かどうかを判定する。例えば入力画素の水平および垂直位置をカウントし、それがブロックの水平または垂直方向の境界上の画素かどうかを判定する。
【0028】
しきい値テーブル219にはブロック境界画素の場合に使用するしきい値と、通常使用するしきい値とが格納されており、画素カウンタ218の判定結果によって出力するしきい値を選択するようになっている。テーブルの内容は、例えばブロック境界画素用には通常使用するしきい値より大きな値を持つようなテーブルである。
【0029】
比較器220〜227にはしきい値テーブル219からしきい値が入力され、差分絶対値計算回路210〜217からそれぞれ差分絶対値が入力される。入力された差分絶対値がしきい値以下の場合は“1”を、そうでない場合は“0”をそれぞれ出力する。カウンタ228には比較器220〜227の結果が入力され、“1”を出力した比較器の個数をカウントする。従って、カウンタ228はフィルタリングに使用する画素の個数(注目画素を除く)を保持することになる。
【0030】
また、比較器220〜227の比較結果は選択スイッチ229〜236に入力されており、“1”が入力されている場合は#1側を選択し、“0”が入力されている場合は#0側を選択する。従って、選択スイッチ229〜236は#1側が選択されている場合は各画素の値を出力し、#0側が選択されている場合は“0”を出力する。
【0031】
加算器237には選択スイッチ229〜236の出力とDL205からの注目画素の画素値とが入力され、加算が行われる。除算器238にはカウンタ228からフィルタリングに使用する画素の個数(注目画素を除く)が入力され、加算器237の加算結果を最終的にフィルタリングで使用する画素の個数である(上記個数+1)で割って出力端子239に出力する。
【0032】
以上の構成により、注目画素がブロック境界の画素である場合は、ブロック境界画素用のしきい値がしきい値テーブルから選択されるため、ブロック境界では強めのフィルタがかかり、モスキートノイズおよび水平および垂直方向のブロック歪みの両方のノイズを同時に軽減することができる。
【0034】
【発明の効果】
本発明によれば、モスキートノイズ軽減用の回路をブロック歪み軽減用の回路と共有することができるので回路規模を増大することなく、両方のノイズを同時に軽減することができる。
【図面の簡単な説明】
【図1】本発明の実施の形態を示すブロック図である。
【図2】本発明の第2の実施の形態を示すブロック図である。
【図3】従来の符号化及び復号装置のブロック図である。
【図4】従来のフィルタリング回路のブロック図である。
【符号の説明】
301、201 再生データの入力端子
302〜305、202〜209 遅延素子
306〜309、210〜217 差分絶対値計算回路
310 画素選択しきい値の入力端子
311〜314、220〜227 比較器
315、228 カウンタ回路
316〜319、229〜236 選択スイッチ
320、237 加算器
321、238 除算器
101、218 画素カウンタ
102 シフトレジスタ
103 選択スイッチ
322、239 出力端子
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a filter device for removing noise from blocked image data.
[0002]
[Prior art]
An orthogonal transform coding method is known as a technique for compressing and coding an image signal with high efficiency. In this method, image signals are grouped into blocks for each predetermined number of pixels, and then orthogonal transform such as discrete cosine transform (DCT) is performed, and the converted coefficients are quantized and entropy encoded. is there.
[0003]
FIG. 3 shows an encoding and decoding apparatus using the DCT as an example of block encoding.
In FIG. 3, digitized image data is input from an input terminal 701, and is blocked in units of m × n pixels by a blocking circuit 702. The image data blocked in m × n pixel units is output to the motion determination circuit 703 and the DCT circuit 704. The motion determination circuit 703 determines whether the corresponding block is a moving image region block or a still image region block, and outputs the determination result to the DCT circuit 704 as block motion information. The DCT circuit 704 orthogonally transforms the blocked image data into DCT coefficients. At this time, the DCT circuit 704 adaptively switches the DCT processing according to the motion information from the motion determination circuit 703.
[0004]
The data converted into the DCT coefficient and the motion information of the corresponding block are input to the quantization circuit 705, and the DCT coefficient is quantized in units of blocks. Quantization is performed by dividing the DCT coefficient by the quantization coefficient.
[0005]
The quantized data, the motion information, and the quantization parameter are encoded by a technique such as entropy encoding in the variable length encoding circuit 706 to obtain a desired data transfer rate. The encoded data is output from the output terminal 707, formatted in a transmission path or a recording medium in a subsequent circuit, and then recorded on the transmission or recording medium.
[0006]
At the time of decoding, the data transmitted or reproduced from the recording medium is input from the input terminal 708 to the ECC circuit 709 and the code error is corrected, and then decoded by the variable length code decoding circuit 710. The decoded data is inversely quantized by the inverse quantization circuit 711 based on the quantization parameter, and converted into DCT coefficients. At this time, the inverse DCT circuit 712 performs inverse DCT processing based on the motion information, converts DCT coefficients into image data, and writes the image data in the frame memory 713. The digital image data written in the frame memory 713 includes noise due to quantization error because the quantization circuit 704 and the inverse quantization circuit 710 perform quantization and inverse quantization processing. Therefore, after filtering processing for noise reduction is performed by the filter circuit 714 and the noise component is attenuated, it is output from the output terminal 715 and displayed on a monitor or the like.
Noise due to the quantization error is roughly classified into two types: mosquito noise appearing near the edge and block distortion appearing at the block boundary.
[0007]
FIG. 4 is a configuration example of a filter for reducing mosquito noise.
The reproduced digital image signal is input from the input terminal 301 in raster order. DL302, DL303, DL304, and DL305 are delay elements, and each delays one pixel. The pixel of interest to be filtered is stored in the DL 303, and the pixel 2 pixels to the right of the pixel of interest on the screen is input to the input terminal 301, the pixel right one pixel in the DL 302, and the pixel left one pixel in the DL 304 , DL305 stores two pixels to the left, and is a horizontal 5-tap filter. The difference absolute value calculation circuits 306 to 309 calculate the difference absolute value between the pixel of interest and its four left and right pixels, and the results are input to the comparators 311 to 314, respectively. A threshold for filter pixel selection is input to the input terminal 310, and the comparators 311 to 314 indicate “1” when the input absolute difference value is equal to or smaller than the threshold, and “0” otherwise. "Is output. Accordingly, the results of the comparators 311 to 314 are input to the counter 315, and the number of comparators that output “1” is counted. The counter 315 holds the number of pixels used for filtering (excluding the target pixel).
[0008]
The comparison results of the comparators 311 to 314 are input to the selection switches 316 to 319. When “1” is input, the # 1 side is selected, and when “0” is input, # Select the 0 side. Accordingly, the selection switches 316 to 319 output the value of each pixel when the # 1 side is selected, and output “0” when the # 0 side is selected.
[0009]
The output of the selection switches 316 to 319 and the pixel value of the target pixel from the DL 303 are input to the adder 320, and addition is performed. The number of pixels used for filtering (excluding the target pixel) is input from the counter 315 to the divider 321, and the addition result of the adder 320 is finally the number of pixels used for filtering (the above number + 1). Divide and output to output terminal 322.
With the above configuration, noise with a low amplitude of ± th or less is reduced, and the filter operates as a mosquito noise reduction filter.
[0010]
[Problems to be solved by the invention]
Although the filter configuration as described above has an effect of reducing mosquito noise, it is necessary to use a filter of another method for reducing block distortion, and there is a problem that the circuit scale increases.
[0011]
The present invention has been made to solve the above problems, and a filter device capable of reducing noise having different properties such as mosquito noise and block distortion without increasing the circuit scale, and the use thereof. An object of the present invention is to obtain a decoding device.
[0012]
[Means for Solving the Problems]
According to the first aspect of the present invention, in the image data including the mosquito noise and the block distortion obtained by decoding the image data that is divided into blocks and orthogonally transformed and encoded for each predetermined number of pixels in the vertical and horizontal directions, the pixel of the target pixel A difference value detecting means for detecting a difference value between each value of the pixel and a plurality of neighboring pixels, a comparing means for comparing each detected difference value with a predetermined threshold value, and Selecting means for selecting and outputting the pixel value when the comparison result of the comparing means is less than or equal to the threshold value, and outputting zero when the difference value is greater than the threshold value. And the pixel value of the pixel of interest are added together, and the result of the addition is divided by the value obtained by adding 1 to the number of pixel values selected by the selection means, and output by the calculation means as a filter output. A filter that reduces the noise, detects whether the pixel of interest is at the boundary of the block, and if it is detected that the pixel of interest is at the boundary of the block according to the detection result, It is characterized by a filter device that causes the arithmetic means to function as a filter for reducing block distortion by changing means for changing the threshold value to be large.
[0016]
[Action]
In the present invention, filter processing for reducing mosquito noise is normally performed. When the pixel of interest is at a block boundary, the threshold value is changed to perform filter processing for reducing block distortion.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram showing an embodiment of the present invention. In FIG. 1, the parts denoted by the same reference numerals 301 to 322 as those in FIG. 4 are substantially the same as the parts in FIG. 101 is a pixel counter that counts the input pixels from the input terminal 301 to determine whether or not it is a block boundary, 102 is a shift register that doubles the threshold value input from the input terminal 310, and 103 is the pixel counter 101 It is a selection switch that selects a threshold value according to a value.
[0019]
Next, the operation will be described.
The reproduced digital image signal is input from the input terminal 301 in raster order. The delay elements DL302, DL303, DL304, and DL305 each delay one pixel. The pixel of interest to be filtered is stored in the DL 303, and the pixel 2 pixels to the right of the pixel of interest on the screen is input to the input terminal 301, the pixel right one pixel in the DL 302, and the pixel left one pixel in the DL 304 , DL305 stores two pixels to the left, and is a horizontal 5-tap filter. The pixel counter 101 counts the pixels input from the input terminal 301 and determines whether or not the pixel stored in the DL 303 is a pixel at the block boundary. For example, the horizontal position of the input pixel is counted, and it is determined whether it is a pixel on the horizontal boundary of the block. The difference absolute value calculation circuits 306 to 309 calculate the difference absolute value between the pixel of interest and its four left and right pixels, and the results are input to the comparators 311 to 314, respectively.
[0020]
A threshold for selecting a pixel used for filtering is input to the input terminal 310. The selection switch 103 receives threshold data from the input terminal 310 and threshold data that has been doubled through the shift register 102. The selection switch 103 is controlled by the pixel counter 101, and selects the # 2 side when the pixel of interest stored in the DL 303 is a pixel at the block boundary, and otherwise selects the # 1 side.
[0021]
The comparators 311 to 314 receive a threshold value from the selection switch 103 and output “1” if the input absolute difference value is equal to or smaller than the threshold value, and “0” otherwise. The counter 315 receives the results of the comparators 311 to 314 and counts the number of comparators that output “1”. Therefore, the counter 315 holds the number of pixels (excluding the target pixel) used for filtering.
[0022]
The comparison results of the comparators 311 to 314 are input to the selection switches 316 to 319. When “1” is input, the # 1 side is selected, and when “0” is input, # Select the 0 side. Accordingly, the selection switches 316 to 319 output the value of each pixel when the # 1 side is selected, and output “0” when the # 0 side is selected.
[0023]
The output of the selection switches 316 to 319 and the pixel value of the target pixel from the DL 303 are input to the adder 320, and addition is performed. The number of pixels used for filtering (excluding the target pixel) is input from the counter 315 to the divider 321, and the addition result of the adder 320 is finally the number of pixels used for filtering (the above number + 1). Divide and output to output terminal 322.
[0024]
With the above configuration, when the target pixel is a pixel at the block boundary, the threshold value used by the comparators 311 to 314 is twice that at the time of normal mosquito noise removal. Therefore, a stronger filter is used at the block boundary. Both mosquito noise and horizontal block distortion can be reduced simultaneously.
[0025]
FIG. 2 is a diagram showing a second embodiment of the present invention. This embodiment is an example of a 3 × 3 two-dimensional filter.
In the figure, 201 is an input terminal for reproduction data, 202 to 209 are delay elements, 210 to 217 are circuits for calculating the absolute difference between the target pixel to be filtered and adjacent pixels, and 218 is a block boundary by counting the input pixels. 219 is a threshold value table that stores threshold values used for pixel selection, 220 to 227 are comparators that compare the difference absolute values with threshold values, and 228 is a pixel value that is used for filtering. Counter for counting the number, selection switches 229 to 236 for selecting pixel values used for filtering, 237 for an adder for adding the selected pixel values, 238 for a divider for averaging, and 239 for an output terminal .
[0026]
Next, the operation will be described.
Playback data is input to the input terminal 201 in raster order. The input pixel values are sequentially delayed by DL 202 to 209. When the pixel of interest to be filtered is stored in the DL 205, the pixel value at the lower right of the pixel of interest on the screen is input to the input terminal 201, the pixel value one pixel below is input to the DL 202, The lower left pixel value is DL204, the right pixel value is one pixel, DL206 is the left pixel value, DL207 is the upper right pixel value, DL208 is the upper pixel value, and DL209 is the upper pixel value. The delay time of each delay element is set so that the upper left pixel value is stored. In the case of the NTSC system, pixel values on one line in the same field with respect to the target pixel are input or stored in DL207 to 209, and pixels on one line in the same field are input or stored in input terminals 201 and DL202 and DL203. .
[0027]
The difference absolute value calculation circuits 210 to 217 calculate the value of the DL 205 that is the target pixel and the difference absolute value of each of the eight adjacent pixels.
The pixel counter 218 counts the pixels input from the input terminal 201 and determines whether or not the target pixel stored in the DL 205 is a pixel at the block boundary. For example, the horizontal and vertical positions of the input pixel are counted to determine whether it is a pixel on the horizontal or vertical boundary of the block.
[0028]
The threshold value table 219 stores a threshold value used in the case of a block boundary pixel and a normally used threshold value, and selects a threshold value to be output based on the determination result of the pixel counter 218. It has become. The content of the table is, for example, a table having a value larger than a normally used threshold value for block boundary pixels.
[0029]
The comparators 220 to 227 are input with threshold values from the threshold value table 219, and are input with absolute difference values from the absolute difference calculation circuits 210 to 217, respectively. If the input difference absolute value is less than or equal to the threshold value, “1” is output, otherwise “0” is output. The counter 228 receives the results of the comparators 220 to 227 and counts the number of comparators that output “1”. Therefore, the counter 228 holds the number of pixels (excluding the target pixel) used for filtering.
[0030]
The comparison results of the comparators 220 to 227 are input to the selection switches 229 to 236. When “1” is input, the # 1 side is selected, and when “0” is input, # Select the 0 side. Accordingly, the selection switches 229 to 236 output the value of each pixel when the # 1 side is selected, and output “0” when the # 0 side is selected.
[0031]
The adder 237 receives the outputs of the selection switches 229 to 236 and the pixel value of the target pixel from the DL 205, and performs addition. The number of pixels used for filtering (excluding the target pixel) is input from the counter 228 to the divider 238, and the addition result of the adder 237 is finally the number of pixels used for filtering (the above number + 1). Divide and output to output terminal 239.
[0032]
With the above configuration, when the target pixel is a pixel at the block boundary, the threshold for the block boundary pixel is selected from the threshold table, so that a stronger filter is applied at the block boundary, and mosquito noise, horizontal and horizontal Both noises in vertical block distortion can be reduced simultaneously.
[0034]
【The invention's effect】
According to the present invention, since the circuit for reducing mosquito noise can be shared with the circuit for reducing block distortion, both noises can be reduced simultaneously without increasing the circuit scale.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of the present invention.
FIG. 2 is a block diagram showing a second embodiment of the present invention.
FIG. 3 is a block diagram of a conventional encoding and decoding apparatus.
FIG. 4 is a block diagram of a conventional filtering circuit.
[Explanation of symbols]
301, 201 Playback data input terminals 302 to 305, 202 to 209 Delay elements 306 to 309, 210 to 217 Difference absolute value calculation circuit 310 Pixel selection threshold input terminals 311 to 314, 220 to 227 Comparators 315, 228 Counter circuits 316 to 319, 229 to 236 Select switches 320, 237 Adders 321, 238 Dividers 101, 218 Pixel counter 102 Shift register 103 Select switches 322, 239 Output terminals

Claims (1)

縦横それぞれ所定個数の画素ごとに分割ブロック化され直交変換符号化された画像データを復号化した、モスキートノイズ及びブロック歪みを含む画像データに於て、注目画素の画素値とその近傍の複数個の画素の各画素値との差分値をそれぞれ検出する差分値検出手段と、
上記検出された各差分値と所定のしきい値とをそれぞれ比較する比較手段と、
上記比較手段の比較結果が上記差分値が上記しきい値以下である場合に上記画素値を選択出力し、上記しきい値より大きい場合にはゼロを出力する選択手段とを備え、
上記各選択手段の出力と上記注目画素の画素値とを加算し、その加算結果を上記選択手段が上記画素値を選択した個数に1を加えた値で除算し、フィルタ出力として出力する演算手段によりモスキートノイズを軽減するフィルタを構成し、
上記注目画素が上記ブロックの境界にあるか否かを検出し、その検出結果に応じて上記注目画素がブロックの境界にあることが検出された場合には、上記しきい値が大きくなるように変更する変更手段により上記演算手段をブロック歪みを軽減するフィルタとして機能させることを特徴とするフィルタ装置。
In image data including mosquito noise and block distortion obtained by decoding image data that has been divided into blocks and orthogonally transformed and encoded for each predetermined number of pixels in the vertical and horizontal directions. Difference value detecting means for detecting a difference value between each pixel value and each pixel value;
Comparison means for comparing each detected difference value with a predetermined threshold value;
Selection means for selecting and outputting the pixel value when the comparison result of the comparison means is less than or equal to the threshold value, and for outputting zero when the difference value is greater than the threshold value;
An arithmetic means for adding the output of each selection means and the pixel value of the pixel of interest, dividing the addition result by the value obtained by adding 1 to the number of pixel values selected by the selection means, and outputting the result as a filter output To configure a filter that reduces mosquito noise,
Whether or not the pixel of interest is at the boundary of the block is detected, and when it is detected that the pixel of interest is at the block boundary according to the detection result, the threshold value is increased. A filter device characterized by causing the arithmetic means to function as a filter for reducing block distortion by changing means for changing.
JP34389295A 1995-12-28 1995-12-28 Filter device Expired - Fee Related JP3825825B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP34389295A JP3825825B2 (en) 1995-12-28 1995-12-28 Filter device
US08/780,002 US6463182B1 (en) 1995-12-28 1996-12-23 Image processing apparatus and method for removing noise near an edge of an image
CN96121359A CN1129868C (en) 1995-12-28 1996-12-27 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34389295A JP3825825B2 (en) 1995-12-28 1995-12-28 Filter device

Publications (2)

Publication Number Publication Date
JPH09186993A JPH09186993A (en) 1997-07-15
JP3825825B2 true JP3825825B2 (en) 2006-09-27

Family

ID=18365051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34389295A Expired - Fee Related JP3825825B2 (en) 1995-12-28 1995-12-28 Filter device

Country Status (1)

Country Link
JP (1) JP3825825B2 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6188799B1 (en) 1997-02-07 2001-02-13 Matsushita Electric Industrial Co., Ltd. Method and apparatus for removing noise in still and moving pictures
JP4641704B2 (en) * 2000-09-12 2011-03-02 パナソニック株式会社 Noise reduction method, noise reduction device, recording medium, and program
WO2005004489A1 (en) * 2003-07-02 2005-01-13 Sony Corporation Block distortion detection device, block distortion detection method, and video signal processing device
US7636493B2 (en) * 2003-08-27 2009-12-22 Panasonic Corporation Filter device, filtering method and filtering program product
JP4558409B2 (en) * 2003-08-27 2010-10-06 パナソニック株式会社 Filter device, filtering method, and filtering program
JP4457346B2 (en) 2004-11-12 2010-04-28 ノーリツ鋼機株式会社 Image noise removal method
JP4857933B2 (en) * 2006-06-14 2012-01-18 ソニー株式会社 Noise reduction method, program, apparatus, and imaging apparatus
JP4527750B2 (en) * 2007-05-30 2010-08-18 三菱電機株式会社 Image processing apparatus and method, and image display apparatus
JP5102122B2 (en) 2008-06-11 2012-12-19 キヤノン株式会社 Decoding device and decoding method
US8554006B2 (en) 2008-11-04 2013-10-08 Canon Kabushiki Kaisha Image processing apparatus, filter device, methods of controlling same and computer programs therefor
JPWO2010061436A1 (en) * 2008-11-25 2012-04-19 パイオニア株式会社 Video processing circuit, information reproducing apparatus, and video processing method
JP5488048B2 (en) * 2010-02-26 2014-05-14 国立大学法人 名古屋工業大学 Image processing apparatus and image processing program
JP5561086B2 (en) * 2010-10-14 2014-07-30 パナソニック株式会社 Noise removal device

Also Published As

Publication number Publication date
JPH09186993A (en) 1997-07-15

Similar Documents

Publication Publication Date Title
US6327391B1 (en) Protecting image quality from occurrence of uncorrectable errors
JP3825825B2 (en) Filter device
EP1039760B1 (en) Apparatus and method of block noise detection
JP4060362B2 (en) Block distortion removing method and apparatus
KR100754154B1 (en) Method and device for identifying block artifacts in digital video pictures
US6463182B1 (en) Image processing apparatus and method for removing noise near an edge of an image
US20080037893A1 (en) Block noise removal device
JPH08214309A (en) Image signal encoder
JPH05308623A (en) Image signal decoder
JPH11146399A (en) Image decoder
JP2919986B2 (en) Image signal decoding device
JP4495881B2 (en) Block distortion remover
JP3363541B2 (en) Image signal reproducing device and image processing device
JP2005012641A (en) Block noise detecting device and block noise eliminating device using the same
KR20050013621A (en) Method of detecting blocking artefacts
JP2831139B2 (en) Image signal decoding device
JP2900808B2 (en) Method for reducing mosquito noise generated when decoding image data and image data decoding apparatus
US5526135A (en) Video signal recording and/or reproducing apparatus operable in normal and differential speed playback modes
JPH11298898A (en) Block distortion reduction circuit
JPH09187006A (en) Filter and decoder using it
JP3232747B2 (en) Recording and playback device
JP3639624B2 (en) Encoding apparatus and method thereof
KR0170682B1 (en) Apparatus for decreasing encoding noise in image signal processor
JP2861298B2 (en) Data receiving device and receiving method
JP4250229B2 (en) Image processing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050208

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050411

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051122

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060117

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060703

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100707

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100707

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110707

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120707

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120707

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130707

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees