JPH08237658A - Picture processor - Google Patents
Picture processorInfo
- Publication number
- JPH08237658A JPH08237658A JP6172995A JP6172995A JPH08237658A JP H08237658 A JPH08237658 A JP H08237658A JP 6172995 A JP6172995 A JP 6172995A JP 6172995 A JP6172995 A JP 6172995A JP H08237658 A JPH08237658 A JP H08237658A
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- spatial frequency
- pixels
- block
- image
- 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.)
- Pending
Links
Landscapes
- Image Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は画像処理装置に係り、特
に1フレームまたは1フィールドを多数のブロックに分
け、各ブロック単位でDCT,アダマール変換等の直交
変換をしてフレーム内符号化をしたり、ブロックマッチ
ング法で動き検出して動き補償(MC)付予測によるフ
レーム(フィールド)間符号化をした際に生じるブロッ
ク歪を抑制できるようにした画像処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and in particular, one frame or one field is divided into a large number of blocks, and each block is subjected to orthogonal transform such as DCT or Hadamard transform for intra-frame coding. Also, the present invention relates to an image processing apparatus capable of suppressing block distortion that occurs when interframe (field) coding is performed by motion detection (MC) prediction using motion detection by a block matching method.
【0002】[0002]
【従来の技術】画像はそのままでは情報量が極めて大き
いことから情報量を圧縮して蓄積、伝送を行い、再生、
受信時に伸長して元の画像を得るようにしている。画像
を高能率で符号化し、データ量を圧縮する手法としてフ
レーム(フィールド)間符号化とフレーム(フィール
ド)内符号化の2種類がある。前者の代表的なものにフ
レーム(フィールド)間の同じ位置の画素値の差分を符
号化するフレーム(フィールド)間予測符号化がある。
後者の代表的なものに、DCT(離散コサイン変換)に
よる直交変換符号化がある。これは、1フレーム(1フ
ィールド)を多数のブロックに分割し、各ブロックをD
CT(離散コサイン変換)によりDCT係数に変換し、
符号化するものである。通常は、これら2種類の手法を
組み合わせたハイブリッド符号化を行い、フレーム(フ
ィールド)間予測符号化によって得られたフレーム(フ
ィールド)間の差分をDCT係数に変換し、符号化する
ことで高い圧縮率を得ている。2. Description of the Related Art Since an image has a very large amount of information as it is, the amount of information is compressed and stored, transmitted, and reproduced.
The original image is obtained by decompressing upon reception. There are two types of methods for encoding an image with high efficiency and compressing the amount of data: inter-frame (field) encoding and intra-frame (field) encoding. The former representative one is interframe (field) predictive coding which encodes the difference between pixel values at the same position between frames (fields).
Typical of the latter is orthogonal transform coding by DCT (discrete cosine transform). This divides one frame (one field) into many blocks, and each block is D
Converted to DCT coefficient by CT (Discrete Cosine Transform),
It is to be encoded. Normally, hybrid coding combining these two types of methods is performed, and a difference between frames (fields) obtained by interframe (field) predictive coding is converted into a DCT coefficient and coded to achieve high compression. Is getting the rate.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、DCT
などのブロック単位で符号化する手法では、復号後の画
像に、フレーム(フィールド)を多数のブロックに分割
して処理したことによるブロック歪が発生し、ブロック
が見えて画質が劣化するという問題があった。とくに、
フレーム(フィールド)間予測符号化においては動きの
大きいフレームでは情報量が増大して、ブロック歪が顕
著になるという問題があった。本発明は上記した従来技
術の問題に鑑み、解像度の劣化をなるべく回避しながら
ブロック歪を抑えることのできる画像処理装置を提供す
ることを目的とする。また、構成の比較的簡単な画像処
理装置を提供することを目的とする。However, the DCT
In the technique of encoding in block units such as, there is a problem that a block distortion occurs in a decoded image due to processing by dividing a frame (field) into a large number of blocks, the blocks are visible and the image quality is deteriorated. there were. Especially,
In the inter-frame (field) predictive coding, there is a problem that the amount of information increases in a frame having a large motion and block distortion becomes remarkable. The present invention has been made in view of the above problems of the prior art, and an object thereof is to provide an image processing apparatus capable of suppressing block distortion while avoiding deterioration of resolution as much as possible. Another object is to provide an image processing device having a relatively simple configuration.
【0004】[0004]
【課題を解決するための手段】本発明の画像処理装置で
は、フレームまたはフィールドを多数のブロックに分
け、各ブロック単位で符号化された画像を復号する復号
手段を備えた画像処理装置において、復号後の画像の
内、ブロック境界線近傍の画素を選別する選別手段と、
復号後の画像に対し、選別手段で選別されたブロック境
界線近傍の画素の高域空間周波数成分を除去し、他の画
素はそのままにする高域空間周波数成分除去手段を設け
たことを特徴としている。In the image processing apparatus of the present invention, a frame or field is divided into a large number of blocks, and the image processing apparatus is provided with a decoding means for decoding an image encoded in each block. Selection means for selecting pixels in the vicinity of the block boundary line in the subsequent image,
It is characterized in that a high spatial frequency component removing means for removing high spatial spatial frequency components of pixels near the block boundary line selected by the selective means and leaving other pixels as they are, is provided for the decoded image. There is.
【0005】本発明の他の画像処理装置では、復号後の
画像の内、フレームまたはフィールド間の変化が大きい
画素を検出する検出手段を設け、高域空間周波数成分除
去手段は、復号後の画像に対し、選別手段で選別された
ブロック境界線近傍の画素で、かつ、検出手段で検出さ
れたフレームまたはフィールド間の変化が大きい画素に
対し高域空間周波数成分を除去し、他の画素はそのまま
にするようにしたこと、を特徴としている。In another image processing apparatus of the present invention, a detecting means for detecting a pixel having a large change between frames or fields in the decoded image is provided, and the high spatial frequency component removing means is provided for the decoded image. On the other hand, the pixels in the vicinity of the block boundary line selected by the selection unit, and the high spatial frequency components are removed from the pixels detected by the detection unit that have a large change between frames or fields, and other pixels remain unchanged. The feature is that
【0006】本発明の更に他の画像処理装置では、高域
空間周波数成分除去手段による高域空間周波数成分の除
去は、復号後の画像中の着目画素周辺の画素を平均化
し、着目画素に置き換えて行うこと、を特徴としてい
る。In still another image processing apparatus of the present invention, the removal of high spatial frequency components by the high spatial frequency component removing means averages the pixels around the pixel of interest in the decoded image and replaces it with the pixel of interest. It is characterized by doing.
【0007】本発明の他の画像処理装置では、高域空間
周波数成分除去手段による高域空間周波数成分の除去
は、横のブロック境界線近傍の画素に対し水平方向の高
域空間周波数成分を除去し、縦のブロック境界線近傍の
画素に対し垂直方向の高域空間周波数成分を除去して行
うようにしたこと、を特徴としている。In another image processing apparatus of the present invention, the removal of high spatial frequency components by the high spatial frequency component removal means removes horizontal high spatial frequency components from pixels near the horizontal block boundary line. However, it is characterized in that the vertical high frequency spatial frequency components are removed from the pixels near the vertical block boundary line.
【0008】本発明の他の画像処理装置では、高域空間
周波数成分除去手段による水平方向の高域空間周波数成
分の除去は、復号後の画像中の着目画素周辺で水平方向
の画素を平均化し、着目画素に置き換えて行い、垂直方
向の高域空間周波数成分の除去は、復号後の画像中の着
目画素周辺で垂直方向の画素を平均化し、着目画素に置
き換えて行うこと、を特徴としている。In another image processing apparatus of the present invention, the removal of horizontal high frequency spatial frequency components by the high frequency spatial frequency component removing means averages horizontal pixels around the pixel of interest in the decoded image. , The removal of high frequency spatial frequency components in the vertical direction is performed by averaging the pixels in the vertical direction around the pixel of interest in the decoded image and replacing it with the pixel of interest. .
【0009】[0009]
【作用】本発明の画像処理装置によれば、復号後の画像
の内、ブロック境界線近傍の画素を選別し、復号後の画
像に対し、ブロック境界線近傍の画素の高域空間周波数
成分を除去し、他の画素はそのままにする。これによ
り、ブロック内の解像度の劣化を回避しながらブロック
境界線近傍でのブロック歪を目立たなくすることができ
る。According to the image processing apparatus of the present invention, the pixels near the block boundary line are selected from the decoded image, and the high spatial frequency components of the pixels near the block boundary line are selected from the decoded image. Remove and leave other pixels as they are. This makes it possible to make the block distortion in the vicinity of the block boundary line inconspicuous while avoiding the deterioration of the resolution in the block.
【0010】本発明の他の画像処理装置によれば、復号
後の画像の内、フレームまたはフィールド間の変化が大
きい画素を検出し、復号後の画像に対し、ブロック境界
線近傍の画素で、かつ、フレームまたはフィールド間の
変化が大きい画素に対し高域空間周波数成分を除去し、
他の画素はそのままにする。これにより、動きの大きな
フレームまたはフィールドについてブロック内の解像度
の劣化を回避しながらブロック境界線でのブロック歪を
目立たなくすることができ、動きがないか小さなフレー
ムまたはフィールドについてはフレームまたはフィール
ド全体にわたり良好な解像度を維持することができる。According to another image processing apparatus of the present invention, a pixel having a large change between frames or fields is detected in the image after decoding, and pixels near the block boundary line are detected in the image after decoding. And, the high spatial frequency component is removed for the pixel whose change between frames or fields is large,
The other pixels are left as they are. This allows block distortion at block boundaries to be less noticeable while avoiding intra-block resolution degradation for large motion frames or fields, and over the entire frame or field for static or small frames or fields. Good resolution can be maintained.
【0011】本発明の更に他の画像処理装置によれば、
高域空間周波数成分の除去は、復号された画像中の着目
画素周辺の画素を平均化し、着目画素に置き換えること
で行う。これにより、簡単な構成で高域空間周波数成分
を除去することができる。According to still another image processing apparatus of the present invention,
The removal of the high spatial frequency component is performed by averaging the pixels around the pixel of interest in the decoded image and replacing them with the pixel of interest. This makes it possible to remove high frequency spatial frequency components with a simple configuration.
【0012】本発明の他の画像処理装置によれば、縦の
ブロック境界線近傍の画素に対し水平方向の高域空間周
波数成分を除去し、横のブロック境界線近傍の画素に対
し垂直方向の高域空間周波数成分を除去して行う。これ
により、ブロック境界線近傍での解像度の劣化を最小限
に抑えながら、ブロック歪を目立たなくすることができ
る。According to another image processing apparatus of the present invention, the high frequency spatial frequency components in the horizontal direction are removed from the pixels near the vertical block boundary line, and the pixels in the vertical direction are removed from the pixels near the horizontal block boundary line. This is performed by removing the high spatial frequency component. This makes it possible to make the block distortion inconspicuous while minimizing the deterioration of resolution near the block boundary line.
【0013】本発明の他の画像処理装置によれば、水平
方向の高域空間周波数成分の除去は、復号後の画像中の
着目画素周辺で水平方向の画素を平均化し、着目画素に
置き換えて行い、垂直方向の高域空間周波数成分の除去
は、復号後の画像中の着目画素周辺で垂直方向の画素を
平均化し、着目画素に置き換えて行う。これにより、簡
単な構成で水平方向の高域空間周波数成分の除去と垂直
方向の高域空間周波数成分の除去をすることができる。According to another image processing apparatus of the present invention, in the removal of the high spatial frequency component in the horizontal direction, the pixels in the horizontal direction are averaged around the pixel of interest in the decoded image, and the pixel of interest is replaced. The removal of the high spatial frequency component in the vertical direction is performed by averaging the pixels in the vertical direction around the pixel of interest in the image after decoding and replacing them with the pixel of interest. This makes it possible to remove horizontal high frequency spatial frequency components and vertical high frequency spatial frequency components with a simple configuration.
【0014】[0014]
【実施例】図1は本発明の一実施例に係る画像処理装置
の回路図である。ここでは画像サイズが縦×横=352
×240のモノクロ画像を対象とし(図3(1)参
照)、各画素の画素値は0〜255の28 段階に量子化
されており、黒レベル=16、白レベル=235とす
る。1はフレーム間予測符号化によるフレーム間符号化
とDCT符号化によるフレーム内符号化を組み合わせた
ハイブリッド符号化により高能率符号化された画像デー
タを復号するデコーダであり、このデコーダ1は復号後
の画像をノンインタレース方式で走査したディジタル画
像信号PTを出力するとともに、ディジタル画像信号P
Tの出力に同期したピクセルクロックPCK、ラインク
ロックLCK、フレームクロックFCKを出力する。図
2に示す如く、ピクセルクロックPCKは画素のサンプ
リング周波数と同じ周期のクロック、ラインクロックL
CKは1ラインの開始タイミングからPCKのパルス幅
より少し長い期間Hレベルとなるクロック、フレームク
ロックFCKは1フレームの先頭ラインの開始タイミン
グから1/2ラインの間Hレベルとなるクロックであ
る。1 is a circuit diagram of an image processing apparatus according to an embodiment of the present invention. Here, the image size is vertical × horizontal = 352
A monochrome image of × 240 is targeted (see (1) of FIG. 3), and the pixel value of each pixel is quantized in 2 8 steps of 0 to 255, and black level = 16 and white level = 235. Reference numeral 1 denotes a decoder that decodes image data that is highly efficient coded by hybrid coding that is a combination of interframe coding by interframe predictive coding and intraframe coding by DCT coding. A digital image signal PT obtained by scanning an image in a non-interlaced system is output, and a digital image signal P is output.
A pixel clock PCK, a line clock LCK, and a frame clock FCK synchronized with the output of T are output. As shown in FIG. 2, the pixel clock PCK is a clock having the same cycle as the sampling frequency of the pixel, and the line clock L
CK is a clock that is at H level for a period slightly longer than the pulse width of PCK from the start timing of one line, and frame clock FCK is a clock that is at H level for 1/2 line from the start timing of the head line of one frame.
【0015】DCT符号化の手法を図3を参照して説明
する。図3(1)に示す如く、DCT符号化は1フレー
ムを縦×横=16×16の大きさのブロックに分け、ブ
ロック単位でDCT係数に変換し、符号化して行う。D
CT符号化された画像データを復号したままのディジタ
ル画像信号PTでは、ブロック歪によりブロックの境界
が見えてしまう。後述するように、本実施例では、ブロ
ック境界近傍の画素を選別して高域空間周波数成分を除
去(減衰)させることにより、ブロック内の解像度の劣
化を回避しながらブロック境界でのブロック歪を目立た
なくする。The DCT coding method will be described with reference to FIG. As shown in FIG. 3 (1), the DCT coding is performed by dividing one frame into blocks each having a size of length × width = 16 × 16, converting the DCT coefficients in block units, and coding the DCT coefficients. D
In the digital image signal PT in which the CT coded image data is still decoded, the block boundary is visible due to block distortion. As will be described later, in the present embodiment, by selecting pixels near the block boundary and removing (attenuating) the high spatial frequency component, the block distortion at the block boundary is avoided while avoiding the deterioration of the resolution within the block. Make it inconspicuous.
【0016】画素の座標とブロックの座標の関係を述べ
ておくと、1フレームの各画素(ピクセル)の座標をP
(x,y)〔x=0〜351、y=0〜239〕、ブロ
ックの座標をB(i,j)〔i=0〜21、j=0〜1
4〕として、図3(2)に示す如く、各ブロックB
(i,j)の境界線の直ぐ内側の画素のx,y座標は、 V1 の範囲・・x=16i,y=16j〜16j+15 V2 の範囲・・x=16i+15,y=16j〜16j+15 H1 の範囲・・x=16i〜16i+15,y=16j H2 の範囲・・x=16i〜16i+15,y=16j+15 である。The relation between the pixel coordinates and the block coordinates will be described. The coordinates of each pixel in one frame are P
(X, y) [x = 0 to 351, y = 0 to 239], and the block coordinates are B (i, j) [i = 0 to 21, j = 0 to 1
4] as shown in FIG. 3 (2), each block B
The x, y coordinates of the pixel immediately inside the boundary line of (i, j) are as follows: V 1 range: x = 16i, y = 16j to 16j + 15 V 2 range: x = 16i + 15, y = 16j to 16j + 15 range of H 1 ·· x = 16i~16i + 15 , y = range 16j H 2 ·· x = 16i~16i + 15, a y = 16j + 15.
【0017】図1に戻って、2はフレーム間で一定以上
の動き(一定以上の大きな変化)のあった画素を検出す
る動き検出回路であり、この内、3はデコーダ1から入
力されたディジタル画像信号PTを1フレーム分だけ遅
延させる1フレームディレイ回路、4はディジタル画像
信号から1フレームディレイ回路の出力を減算してフレ
ーム中の各画素につき、1フレーム前の同じ位置の画素
値から変化した値(差分)を求める減算器、5は減算器
で求めた差分の絶対値と20を比較し、20を超えたと
き画素値が大きく変化したことを示すHを出力し、20
以下のときLを出力する比較回路、6は比較回路5の出
力を1ライン分遅延させて第1セレクト信号Aとして出
力する1ラインディレイ回路である。Returning to FIG. 1, reference numeral 2 is a motion detection circuit for detecting a pixel having a certain amount of motion (a large change of a certain amount or more) between frames. Of these, 3 is a digital signal input from the decoder 1. The 1-frame delay circuit 4 for delaying the image signal PT by 1 frame subtracts the output of the 1-frame delay circuit from the digital image signal to change the pixel value at the same position one frame before for each pixel in the frame. The subtracter 5 for obtaining the value (difference) compares 20 with the absolute value of the difference obtained by the subtractor, and when it exceeds 20, it outputs H indicating that the pixel value has changed significantly,
A comparator circuit 6 outputs L in the following cases, and a 1-line delay circuit 6 delays the output of the comparator circuit 5 by one line and outputs it as the first select signal A.
【0018】10はディジタル画像信号PTの示す画像
中で、水平方向の位置がブロックの縦の境界線近傍とな
っている画素を選別するための水平方向選別回路であ
り、この内、11はカウンタで、ラインクロックLCK
がHの間にクリアされ、その後、ピクセルクロックPC
Kが入力される度に0から15までを巡回的に計数す
る。図3の画像において、画素のx座標がブロックB
(i,j)の左側の縦の境界線の直ぐ右側に相当する1
6i〔但し、i=0〜21〕のときカウンタ11の計数
値は0となり、x=16i+1のとき計数値=1、x=
16i+2のとき計数値=2、・・・、x=16i+1
4のとき計数値=14である。x座標がブロックの右側
の縦の境界の直ぐ左側に相当する16(i+1)+15
のときカウンタ11の計数値は15となる。12は比較
回路であり、カウンタ11の計数値が0または15と一
致するときHレベルを出力し、計数値が0または15と
一致しないときLレベルを出力する。13は比較回路1
2の出力を1ライン分遅延させて第2セレクト信号Bと
して出力する1ラインディレイ回路である。Reference numeral 10 is a horizontal direction selection circuit for selecting pixels in the image indicated by the digital image signal PT, the horizontal position of which is near the vertical boundary line of the block. Of these, 11 is a counter. Then the line clock LCK
Is cleared during H, then the pixel clock PC
Every time K is input, 0 to 15 are cyclically counted. In the image of FIG. 3, the x coordinate of the pixel is block B.
1 corresponding to the right side of the vertical boundary line on the left side of (i, j)
When 6i (however, i = 0 to 21), the count value of the counter 11 becomes 0, and when x = 16i + 1, the count value = 1, x =
When 16i + 2, count value = 2, ..., x = 16i + 1
When 4, the count value = 14. 16 (i + 1) +15, where the x-coordinate corresponds to the immediate left side of the right vertical boundary of the block
At this time, the count value of the counter 11 becomes 15. Reference numeral 12 is a comparison circuit, which outputs an H level when the count value of the counter 11 matches 0 or 15, and outputs an L level when the count value does not match 0 or 15. 13 is a comparison circuit 1
This is a 1-line delay circuit that delays the output of 2 by 1 line and outputs it as the second select signal B.
【0019】20はディジタル画像信号PTの示す画像
中で、垂直方向の位置がブロックの横の境界線近傍とな
っている画素を選別するための垂直方向選別回路であ
り、この内、21はカウンタで、フレームクロックFC
KがHの間にクリアされ、その後、ラインクロックLC
Kが入力される度に0から15までを巡回的に計数す
る。図3の画像において、画素のy座標がブロックB
(i,j)の上側の横の境界線の直ぐ下側に相当する1
6j〔但し、j=0〜14〕のときカウンタ21の計数
値は0となり、y=16j+1のとき計数値=1、y=
16j+2のとき計数値=2、・・・、y=16j+1
4のとき計数値=14である。y座標がブロックの下側
の横の境界線の直ぐ上側に相当する16(j+1)+1
5のときカウンタ21の計数値は15となる。22は比
較回路であり、カウンタ21の計数値が0または15と
一致するときHレベルを出力し、計数値が0または15
と一致しないときLレベルを出力する。23は比較回路
22の出力を1ライン分遅延させて第3セレクト信号C
として出力する1ラインディレイ回路である。水平方向
選別回路20と垂直方向選別回路30により、デコーダ
1で復号された画像の内、ブロック境界線近傍の画素の
選別がされる。Reference numeral 20 is a vertical direction selection circuit for selecting pixels in the image indicated by the digital image signal PT, the vertical position of which is near the horizontal boundary line of the block. Of these, 21 is a counter. Then, the frame clock FC
K is cleared while H, then line clock LC
Every time K is input, 0 to 15 are cyclically counted. In the image of FIG. 3, the y coordinate of the pixel is the block B.
1 corresponding to just below the upper horizontal boundary of (i, j)
When 6j [where j = 0 to 14], the count value of the counter 21 becomes 0, and when y = 16j + 1, the count value = 1, y =
When 16j + 2, count value = 2, ..., y = 16j + 1
When 4, the count value = 14. 16 (j + 1) +1 in which the y coordinate is immediately above the lower horizontal boundary line of the block
When it is 5, the count value of the counter 21 is 15. Reference numeral 22 is a comparison circuit, which outputs an H level when the count value of the counter 21 matches 0 or 15 and the count value is 0 or 15
When it does not match with, the L level is output. Reference numeral 23 delays the output of the comparison circuit 22 by one line to output the third select signal C.
Is a one-line delay circuit that outputs as. The horizontal direction selection circuit 20 and the vertical direction selection circuit 30 select pixels in the vicinity of the block boundary line in the image decoded by the decoder 1.
【0020】ディジタル映像信号PTの現在の画素位置
がP(x,y+1)とすると、動き検出回路2の1ライ
ンディレイ回路6の出力は画素位置がP(x,y)の画
素についての一定以上の動き(一定以上の大きな変化)
の有無を示し(1;動き有り、0;動き無し)、水平方
向選別回路10の1ラインディレイ回路13の出力は画
素位置がP(x,y)の画素についてブロックの縦の境
界線の直ぐ右側または左側の画素であるか否かを示し
(1;縦の境界線近傍、0;縦の境界線近傍以外)、垂
直方向選別回路20の1ラインディレイ回路23の出力
は画素位置がP(x,y)の画素についてブロックの横
の境界線の直ぐ下側または上側の画素であるか否かを示
す(1;横の境界線近傍、0;横の境界線近傍以外)。Assuming that the current pixel position of the digital video signal PT is P (x, y + 1), the output of the 1-line delay circuit 6 of the motion detection circuit 2 is above a certain level for the pixel of P (x, y). Movement (large change above a certain level)
(1; motion is present, 0: no motion is present), and the output of the 1-line delay circuit 13 of the horizontal direction selection circuit 10 is immediately after the vertical boundary line of the block for the pixel whose pixel position is P (x, y). Indicates whether the pixel is on the right side or the left side (1; near the vertical boundary line, 0; other than near the vertical boundary line), and the output of the 1-line delay circuit 23 of the vertical direction selection circuit 20 has a pixel position of P ( (x, y) indicates whether the pixel is a pixel immediately below or above the horizontal boundary line of the block (1; near the horizontal boundary line, 0; other than near the horizontal boundary line).
【0021】30は空間周波数フィルタであり、ディジ
タル映像信号PTを基に、水平方向及び垂直方向の高域
空間周波数成分を除去した信号、水平方向の高域空間周
波数成分を除去した信号、垂直方向の高域空間周波数成
分を除去した信号を出力する。また、ディジタル映像信
号PTを単に1ライン分遅延させた信号も出力する。空
間周波数フィルタ30の内、31は239画素分のディ
レイ回路、32と33は各々、1画素分のディレイ回
路、34は239画素分のディレイ回路である。35は
ディジタル映像信号PT及び各ディレイ回路31〜34
の出力を加算する加算器、36は加算器35の出力に1
/5を乗じる乗算器、37は各ディレイ回路31〜33
の出力を加算する加算器、38は加算器37の出力に1
/3を乗じる乗算器、39はディジタル映像信号PT及
びディレイ回路32,34の出力を加算する加算器、4
0は加算器39の出力に1/3を乗じる乗算器である。Reference numeral 30 denotes a spatial frequency filter, which is a signal from which high-frequency spatial frequency components in the horizontal and vertical directions are removed, a signal from which high-frequency spatial frequency components in the horizontal direction are removed, and a vertical direction based on the digital video signal PT. The signal from which the high spatial frequency component of is removed is output. Also, a signal obtained by simply delaying the digital video signal PT by one line is output. In the spatial frequency filter 30, 31 is a delay circuit for 239 pixels, 32 and 33 are delay circuits for 1 pixel each, and 34 is a delay circuit for 239 pixels. Reference numeral 35 is a digital video signal PT and delay circuits 31 to 34.
Adder 36 adds 1 to the output of adder 35
Multiplier by / 5, 37 is each delay circuit 31-33
Adder 38 adds 1 to the output of adder 37
A multiplier for multiplying by / 3, an adder 39 for adding the digital video signal PT and the outputs of the delay circuits 32, 34, 4
0 is a multiplier for multiplying the output of the adder 39 by 1/3.
【0022】ディジタル画像信号PTの或る時点の画素
がP(x,y+1)〔但し、x≠0,351〕とする
と、ディレイ回路31〜34の出力画素はそれぞれP
(x+1,y)、P(x,y)、P(x−1,y)、P
(x,y−1)であり、互いに隣接関係となる。よっ
て、乗算器36からは画素P(x,y)を中心にして水
平方向と垂直方向に隣接する5つの画素の平均値が画素
P(x,y)の値に代えて出力されることになる。5つ
の画素の平均を取ることで元のP(x,y)の画素に対
し水平方向と垂直方向の高域空間周波数成分が除去(減
衰)される。また、乗算器38からは画素P(x,y)
を中心にして水平方向に隣接する3つの画素の平均値が
画素P(x,y)の値に代えて出力されることになり、
水平方向の高域空間周波数成分が除去される。更に、乗
算器40からは画素P(x,y)を中心にして垂直方向
に隣接する3つの画素の平均値が画素P(x,y)の値
に代えて出力されることになり、垂直方向の高域空間周
波数成分が除去される。If the pixel at a certain point in the digital image signal PT is P (x, y + 1) [where x ≠ 0,351], the output pixels of the delay circuits 31 to 34 are P respectively.
(X + 1, y), P (x, y), P (x-1, y), P
(X, y-1), which are adjacent to each other. Therefore, the multiplier 36 outputs the average value of five pixels adjacent to each other in the horizontal direction and the vertical direction centering on the pixel P (x, y) instead of the value of the pixel P (x, y). Become. By taking the average of the five pixels, the high frequency spatial frequency components in the horizontal and vertical directions are removed (attenuated) from the original P (x, y) pixel. In addition, from the multiplier 38, the pixel P (x, y)
The average value of three pixels adjacent to each other in the horizontal direction with respect to is output instead of the value of the pixel P (x, y),
The high spatial frequency components in the horizontal direction are removed. Further, the multiplier 40 outputs the average value of three vertically adjacent pixels centered on the pixel P (x, y) instead of the value of the pixel P (x, y), and High spatial frequency components in the direction are removed.
【0023】50は空間周波数フィルタ30の各乗算器
36,38,40と、ディレイ回路32からの入力S1
〜S4 の中から択一的に1つを選択して出力するセレク
タであり、前述した動き検出回路2、水平方向選別回路
10、垂直方向選別回路20からの第1〜第3セレクト
信号A〜Cの組み合わせに応じた入力Sk を選択するこ
とで、ディジタル画像信号PTの表す画像の内、ブロッ
ク境界近傍の画素については周囲の画素との平均化によ
り高域空間周波数成分を除去し、ブロック近傍以外の画
素はそのままにしたディジタル画像信号PT´を出力す
る。第1〜第3セレクト信号A〜Cの組み合わせとセレ
クタ50の出力の対応関係は次の表1の通りである。Reference numeral 50 denotes an input S 1 from each of the multipliers 36, 38 and 40 of the spatial frequency filter 30 and the delay circuit 32.
Is a selector which selectively outputs one from among S 4 to S 4 and outputs the first to third select signals A from the above-described motion detection circuit 2, horizontal direction selection circuit 10 and vertical direction selection circuit 20. By selecting the input S k according to the combination of C to C, the pixels in the vicinity of the block boundary in the image represented by the digital image signal PT are averaged with the surrounding pixels to remove the high spatial frequency component, The pixels other than the vicinity of the block are output as they are, and the digital image signal PT ′ is output. The correspondence relationship between the combination of the first to third select signals A to C and the output of the selector 50 is as shown in Table 1 below.
【0024】[0024]
【表1】 [Table 1]
【0025】次に、上記した実施例の動作を図4を参照
して説明する。図4は空間周波数フィルタ30とセレク
タ50の動作説明図である。説明の都合上、デコーダ1
から出力されるディジタル画像信号PTの現在の画素を
P(x,y+1)とする。デコーダ1で復号されたディ
ジタル画像信号PTの画素位置がP(0,0)、P
(1,0)、P(2,0)、・・、P(231,0)、
P(0,1)、P(2,0)、・・、P(231,
1)、・・、P(x,y+1)と変わると、動き検出回
路2はディジタル画像信号PTより常に1ライン分遅れ
た画素P(x,y)の動きの有無を示す第1セレクト信
号Aを出力し、水平方向選別回路10はディジタル画像
信号PTの現在の画素P(x,y+1)より常に1ライ
ン分遅れた画素P(x,y)の位置がブロックの左側縦
の境界線の直ぐ右側または右側縦の境界線の直ぐ左側か
否かを示す第2セレクト信号Bを出力し、垂直方向選別
回路20はディジタル画像信号PTの画素P(x,y+
1)より常に1ライン分遅れた画素P(x,y)の位置
がブロックの上側横の境界線の直ぐ下側または下側横の
境界線の直ぐ上側か否かを示す第3セレクト信号Cを出
力する。Next, the operation of the above embodiment will be described with reference to FIG. FIG. 4 is an operation explanatory diagram of the spatial frequency filter 30 and the selector 50. For convenience of explanation, the decoder 1
Let the current pixel of the digital image signal PT output from P (x, y + 1). The pixel position of the digital image signal PT decoded by the decoder 1 is P (0,0), P
(1,0), P (2,0), ..., P (231,0),
P (0,1), P (2,0), ..., P (231,
1), ..., P (x, y + 1), the motion detection circuit 2 always selects the first select signal A indicating the presence or absence of motion of the pixel P (x, y) delayed by one line from the digital image signal PT. The horizontal direction selection circuit 10 outputs the pixel P (x, y) which is always delayed by one line from the current pixel P (x, y + 1) of the digital image signal PT immediately after the vertical boundary line on the left side of the block. A second select signal B indicating whether the right side or the right side of the vertical boundary line is immediately left is output, and the vertical direction selection circuit 20 outputs the pixel P (x, y +) of the digital image signal PT.
A third select signal C indicating whether or not the position of the pixel P (x, y) always delayed by one line from 1) is immediately below the upper horizontal boundary line or immediately above the lower horizontal boundary line. Is output.
【0026】一方、空間周波数フィルタ30のディレイ
回路32はディジタル画像信号PTより単に1ライン分
遅れた画素を出力し、ディジタル画像信号PTの現在の
画素がP(x,y+1)であるとき、ディレイ回路32
の出力は画素P(x,y)である。動き検出回路2か
ら、画素P(x,y)に動きが無いことを示すLレベル
の第1セレクト信号Aが出力されているとき、セレクタ
50はディレイ回路32から入力したS4 を選択して出
力するので、1フレーム全ての画素について動きがなか
った場合、セレクタ50からはディジタル画像信号PT
を1ライン分遅らしただけのディジタル画像信号PT´
が出力され、解像度が劣化することはない。On the other hand, the delay circuit 32 of the spatial frequency filter 30 outputs a pixel which is simply delayed by one line from the digital image signal PT, and delays when the current pixel of the digital image signal PT is P (x, y + 1). Circuit 32
Is the pixel P (x, y). When the motion detection circuit 2 outputs the L-level first select signal A indicating that the pixel P (x, y) has no motion, the selector 50 selects S 4 input from the delay circuit 32. Since there is no motion for all pixels in one frame, the selector 50 outputs the digital image signal PT.
Image signal PT 'which is delayed by one line
Is output and the resolution does not deteriorate.
【0027】動き検出回路2から、画素P(x,y)に
動きが有ることを示すHレベルの第1セレクト信号Aが
出力されているとき、セレクタ50は第2,第3セレク
ト信号B,Cの組み合わせに応じて表1に従い、乗算器
36,38,40から入力したS1 〜S3 から1つを選
択して出力する。図4に示す如く、画素P(x,y)が
ブロックB(i,j)の中に入っているものとすると、
画素P(x,y)のx座標がブロックB(i,j)の左
側縦の境界線の直ぐ右側となる16iまたは右側縦の境
界線の直ぐ左側となる16i+15のとき、水平方向選
別回路10はHレベルを出力し、16i+1〜16i+
14の間はLレベルを出力する。一方、画素P(x,
y)のy座標がブロックB(i,j)の上側横の境界線
の直ぐ下側となる16jまたは下側横の境界線の直ぐ上
側となる16j+15のとき、垂直方向選別回路20は
Hレベルを出力し、16j+1〜16j+14の間はL
レベルを出力する。When the H level first select signal A indicating that the pixel P (x, y) has a motion is output from the motion detecting circuit 2, the selector 50 outputs the second and third select signals B, According to the combination of C, one of S 1 to S 3 input from the multipliers 36, 38 and 40 is selected and output according to Table 1. As shown in FIG. 4, assuming that the pixel P (x, y) is contained in the block B (i, j),
When the x coordinate of the pixel P (x, y) is 16i, which is immediately to the right of the left vertical boundary of block B (i, j), or 16i + 15, which is immediately to the left of the right vertical boundary, horizontal selection circuit 10 Outputs H level, and 16i + 1 to 16i +
During 14 the L level is output. On the other hand, the pixel P (x,
When the y coordinate of y) is 16j which is immediately below the upper horizontal boundary line of block B (i, j) or 16j + 15 which is immediately above the lower horizontal boundary line, the vertical direction selection circuit 20 is at the H level. Is output, and L is output between 16j + 1 to 16j + 14.
Output level.
【0028】よって、P(x,y)がブロックB(i,
j)の隅となっているx=16i,y=16j、x=1
6i+15,y=16j、x=16i,y=16j+1
5、x=16i+15,y=16j+15のいずれかの
場合(図4のP1 〜P4 参照)、第2,第3セレクト信
号B,CがともにHレベルとなり、第1セレクト信号A
もHレベルであればセレクタ50は乗算器36からの入
力S1 を選択する。この結果、元のディジタル画像信号
PTの画素P(x,y)が着目画素P1 〜P4のいずれ
かのとき、これらの着目画素に一定以上の動きがあって
ブロック歪が目立つ可能性が有れば、着目画素と、該着
目画素を挟んで水平方向及び垂直方向に隣接する4つの
画素を含めた5つの画素値の平均値で着目画素を置き換
えた画素値が出力されるので、水平方向及び垂直方向の
高域空間周波数成分が除去され、ブロックの隅のブロッ
ク歪が目立たなくなる。Therefore, P (x, y) is the block B (i,
j) is the corner x = 16i, y = 16j, x = 1
6i + 15, y = 16j, x = 16i, y = 16j + 1
5, x = 16i + 15, y = 16j + 15 (see P 1 to P 4 in FIG. 4), the second and third select signals B and C both become H level, and the first select signal A
Is also at the H level, the selector 50 selects the input S 1 from the multiplier 36. As a result, when the pixel P (x, y) of the original digital image signal PT is any one of the target pixels P 1 to P 4 , there is a possibility that the target pixels have a certain amount of motion and block distortion is conspicuous. If so, the pixel value obtained by replacing the pixel of interest with the average value of five pixel values including the pixel of interest and four pixels adjacent to each other in the horizontal and vertical directions with the pixel of interest sandwiched is output. The high spatial frequency components in the vertical and vertical directions are removed, and the block distortion at the corners of the blocks becomes inconspicuous.
【0029】また、P(x,y)がP1 〜P4 以外でブ
ロックB(i,j)の左側縦の境界線の直ぐ右側または
右側縦の境界線の直ぐ左側となるx=16i,y=16
j+1〜16j+14、x=16i+15,y=16j
+1〜16j+14の場合(図4のP5 、P6 参照)、
第2セレクト信号BがHレベル、第3セレクト信号Cが
Lレベルとなり、第1セレクト信号AもHレベルであれ
ばセレクタ50は乗算器38からの入力S2 を選択す
る。この結果、元のディジタル画像信号PTの画素P
(x,y)が着目画素P5 (x=16i,y=16j+
1〜16j+14のいずれか)または着目画素P6 (x
=16i+15,y=16j+1〜16j+14)のと
き、これらの着目画素に一定以上の動きがあってブロッ
ク歪が目立つ可能性が有れば、着目画素と、該着目画素
を挟んで水平方向に隣接する2つの画素を含めた3つの
画素値の平均値で着目画素を置き換えた画素値が出力さ
れるので、ブロックB(i,j)の縦の境界線を横切る
水平方向の高域空間周波数成分が除去される。よって、
ブロックB(i,j)の縦の境界が目立たなくなる。Further, when P (x, y) is other than P 1 to P 4 , it is on the right side of the left vertical boundary line of the block B (i, j) or on the left side of the right vertical boundary line, x = 16i, y = 16
j + 1 to 16j + 14, x = 16i + 15, y = 16j
In the case of +1 to 16j + 14 (see P 5 and P 6 in FIG. 4),
If the second select signal B is at H level, the third select signal C is at L level, and the first select signal A is also at H level, the selector 50 selects the input S 2 from the multiplier 38. As a result, the pixel P of the original digital image signal PT
(X, y) is the pixel of interest P 5 (x = 16i, y = 16j +
1 to 16j + 14) or the target pixel P 6 (x
= 16i + 15, y = 16j + 1 to 16j + 14), if there is a possibility that block distortion is conspicuous due to a certain amount of movement of these target pixels, they are adjacent to the target pixel in the horizontal direction across the target pixel. Since the pixel value in which the pixel of interest is replaced with the average value of the three pixel values including two pixels is output, the horizontal high frequency spatial frequency component that crosses the vertical boundary line of the block B (i, j) is To be removed. Therefore,
The vertical boundary of the block B (i, j) becomes inconspicuous.
【0030】また、P(x,y)がP1 〜P4 以外でブ
ロックB(i,j)の上側の横の境界線の直ぐ下側また
は下側の横の境界線の直ぐ上側となるx=16i+1〜
16i+14,y=16j、x=16i+1〜16i+
14,y=16j+15の場合(図4のP7 、P8 参
照)、第2セレクト信号BがLレベル、第3セレクト信
号CがHレベルとなり、第1セレクト信号AもHレベル
であればセレクタ50は乗算器40からの入力S3 を選
択する。この結果、元のディジタル画像信号PTの画素
P(x,y)が着目画素P7 (x=16i+1〜16i
+14のいずれか,y=16j)または着目画素P
8 (x=16i+1〜16i+14のいずれか,y=1
6j+15)のとき、これらの着目画素に一定以上の動
きがあってブロック歪が目立つ可能性が有れば、着目画
素と、該着目画素を挟んで垂直方向に隣接する2つの画
素を含めた3つの画素値の平均値で着目画素を置き換え
た画素値が出力されるので、ブロックB(i,j)の横
の境界線を横切る垂直方向の高域空間周波数成分が除去
される。よって、ブロックB(i,j)の横の境界が目
立たなくなる。Further, P (x, y) is other than P 1 to P 4 and is immediately below the upper horizontal boundary line of the block B (i, j) or immediately above the lower horizontal boundary line. x = 16i + 1 to
16i + 14, y = 16j, x = 16i + 1 to 16i +
14, y = 16j + 15 (see P 7 and P 8 in FIG. 4), if the second select signal B is L level, the third select signal C is H level, and the first select signal A is also H level, the selector 50 selects the input S 3 from the multiplier 40. As a result, the pixel P (x, y) of the original digital image signal PT becomes the target pixel P 7 (x = 16i + 1 to 16i).
+14, y = 16j) or the target pixel P
8 (any of x = 16i + 1 to 16i + 14, y = 1
6j + 15), if there is a possibility that there is a certain amount of movement in these target pixels and block distortion is conspicuous, the target pixel and two pixels vertically adjacent to each other with the target pixel sandwiched are included. Since the pixel value obtained by replacing the pixel of interest with the average value of the two pixel values is output, the vertical high frequency spatial frequency component that crosses the horizontal boundary line of the block B (i, j) is removed. Therefore, the horizontal boundary of the block B (i, j) becomes inconspicuous.
【0031】ディジタル画像信号PTの画素P(x,
y)がブロックB(i,j)の境界近傍でなく内部に存
在し、x=16i+1〜16i+14、y=16j+1
〜16j+14の場合(着目画素P9 参照)、第2,第
3セレクト信号B,CはともにLレベルとなる。この場
合、第1セレクト信号Aのレベルに関わらず、セレクタ
50はディレイ回路32からの入力S4 を選択するの
で、ディジタル画像信号PTの画素P(x,y)がその
まま出力されることになり、ブロック内部の解像度が劣
化するのが回避される。なお、画素P(x,y)がブロ
ックB(i,j)の境界近傍にあって、第2セレクト信
号Bまたは第3セレクト信号Cのいずれかまたは両方が
Hレベルであっても、画素P(x,y)に動きがなく、
動き検出回路2から出力された第1セレクト信号AがL
レベルであれば、セレクタ50はディレイ回路32から
の入力S4 を選択するので、ディジタル画像信号PTの
画素P(x,y)がそのまま出力されることになり、ブ
ロック境界近傍の解像度が不必要に劣化するのが回避さ
れる。The pixel P (x, of the digital image signal PT
y) exists inside the block B (i, j) instead of near the boundary, and x = 16i + 1 to 16i + 14, y = 16j + 1.
In the case of ˜16j + 14 (see pixel P 9 of interest), both the second and third select signals B and C are at L level. In this case, since the selector 50 selects the input S 4 from the delay circuit 32 regardless of the level of the first select signal A, the pixel P (x, y) of the digital image signal PT is output as it is. , It is possible to avoid the deterioration of the resolution inside the block. Even if the pixel P (x, y) is near the boundary of the block B (i, j) and either or both of the second select signal B and the third select signal C are at the H level, the pixel P (x, y) There is no movement in (x, y),
The first select signal A output from the motion detection circuit 2 is L
If it is a level, the selector 50 selects the input S 4 from the delay circuit 32, so that the pixel P (x, y) of the digital image signal PT is output as it is, and the resolution near the block boundary is unnecessary. It is avoided that it deteriorates.
【0032】この実施例によれば、デコーダ1で復号後
のディジタル画像信号PTの表す画像の内、ブロック境
界近傍の画素を水平方向選別回路10と垂直方向選別回
路20により選別し、また、フレーム間で一定以上の変
化をしている画素を動き検出回路2により検出する。そ
して、空間周波数フィルタ30とセレクタ50とによ
り、復号後の画像に対し、ブロック境界近傍の画素で、
かつ、フレーム間の変化が大きい画素に対し高域空間周
波数成分を除去し、他の画素はそのままにした画像を作
成し、ディジタル画像信号PT´として出力する。これ
により、動きの大きなフレームでとくに目立つブロック
境界でのブロック歪に対し、ブロック内の解像度の劣化
を回避しながら抑制することができる。一方、動きがな
いか小さなフレームについてはフレーム全体にわたり良
好な解像度を維持することができ、フレームの一部の領
域だけに動きが有る場合、該領域についてブロック内の
解像度の劣化を回避しながらブロック境界でのブロック
歪を目立たなくすることができ、動きがないか小さい他
の領域は良好な解像度に保つことができる。According to this embodiment, in the image represented by the digital image signal PT after being decoded by the decoder 1, the pixels in the vicinity of the block boundary are selected by the horizontal direction selecting circuit 10 and the vertical direction selecting circuit 20, and the frame is also selected. Pixels that have changed by a certain amount or more between them are detected by the motion detection circuit 2. Then, by the spatial frequency filter 30 and the selector 50, with respect to the image after decoding, in the pixels near the block boundary,
In addition, a high spatial frequency component is removed from a pixel having a large change between frames, and an image in which other pixels are left unchanged is created and output as a digital image signal PT ′. As a result, it is possible to suppress block distortion at a block boundary, which is particularly noticeable in a frame with large motion, while avoiding deterioration of resolution within the block. On the other hand, a good resolution can be maintained over the entire frame for a frame with no motion or a small frame, and when there is motion in only a part of the frame, the block is blocked while avoiding deterioration of the resolution within the block for that region. The block distortion at the boundary can be made inconspicuous, and other areas with no motion or small motion can be kept at good resolution.
【0033】また、ブロックの隅を除くブロックの縦の
境界線近傍の画素についての高域空間周波数成分の除去
は、復号された画像中の着目画素及び水平方向に隣接す
る画素を平均化し、着目画素に置き換えて行うので、簡
単な構成で高域空間周波数成分を除去することができ、
また、ブロックの縦の境界線でのブロック歪の低減とは
無関係な垂直方向に隣接する画素を合わせた平均化(垂
直方向の高域空間周波数成分の除去)をしないので、ブ
ロックの縦の境界線近傍での垂直方向の解像度が劣化す
るのを回避できる。反対に、ブロックの隅を除くブロッ
クの横の境界線近傍の画素についての高域空間周波数成
分の除去は、復号された画像中の着目画素及び垂直方向
に隣接する画素を平均化し、着目画素に置き換えて行う
ので、簡単な構成で高域空間周波数成分を除去すること
ができ、また、横の境界線でのブロック歪の低減とは無
関係な水平方向に隣接する画素を合わせた平均化(水平
方向の高域空間周波数成分の除去)をしないので、ブロ
ックの横の境界線近傍での水平方向の解像度が劣化する
のを回避できる。Further, the removal of the high spatial frequency components of the pixels near the vertical boundary line of the block excluding the corners of the block is performed by averaging the pixel of interest in the decoded image and the pixels adjacent in the horizontal direction, Since it is replaced with pixels, it is possible to remove high frequency spatial frequency components with a simple configuration.
Also, since averaging (removal of high spatial frequency components in the vertical direction) of vertically adjacent pixels, which is unrelated to the reduction of block distortion at the vertical boundaries of blocks, is not performed, the vertical boundaries of blocks are It is possible to avoid deterioration of the resolution in the vertical direction near the line. On the contrary, the removal of the high spatial frequency components of the pixels in the vicinity of the horizontal boundary line of the block excluding the corners of the block is performed by averaging the pixel of interest and vertically adjacent pixels in the decoded image, and Since the replacement is performed, the high spatial frequency components can be removed with a simple structure, and the averaging (horizontal averaging) of horizontally adjacent pixels, which is unrelated to the reduction of block distortion at the horizontal boundary line, can be performed. Direction high frequency spatial frequency components are not removed), it is possible to avoid deterioration of the horizontal resolution near the horizontal boundary line of the block.
【0034】なお、上記した実施例では、ブロック境界
線近傍の画素の内、図4のP1 〜P4 だけ水平方向及び
垂直方向に隣接する画素との平均を取って高域周波数成
分の除去を行うようにしたが、P5 〜P8 の場合も、水
平方向及び垂直方向に隣接する画素との平均を取って高
域周波数成分の除去を行うようにしても良い。また、ブ
ロック境界線近傍の画素であってもフレーム間で一定以
上の大きさの変化がないものについては、高域空間周波
数成分の除去をしないようにしたが、フレーム間での画
素値の変化の有無に関わらず、ブロック境界線近傍の画
素であれば無条件に高域空間周波数成分を除去するよう
にしても良い。この場合、動き検出回路2を省略し、セ
レクタ50は第2,第3セレクト信号B,Cの組み合わ
せに応じて次の表2に従い、入力S1 〜S4 の中から1
つを選択して出力すれば良い。[0034] In the embodiment described above, among the pixels around the block boundary, the removal of the average high frequency components taking the P 1 to P 4 only pixels adjacent in the horizontal direction and the vertical direction in FIG. 4 However, even in the case of P 5 to P 8 , the high frequency components may be removed by averaging the pixels adjacent in the horizontal and vertical directions. Also, for pixels near the block boundary that do not change more than a certain amount between frames, the high spatial frequency component is not removed, but the pixel value changes between frames. Regardless of whether or not, the high spatial frequency component may be unconditionally removed as long as it is a pixel near the block boundary line. In this case, the motion detection circuit 2 is omitted, and the selector 50 selects one of the inputs S 1 to S 4 according to the following table 2 according to the combination of the second and third select signals B and C.
You can select one and output it.
【0035】[0035]
【表2】 [Table 2]
【0036】また、上記した実施例ではフレーム間での
予測符号化と、フレーム内でのDCT符号化を組み合わ
せてハイブリッド符号化された画像データを復号して得
た画像を対象にしてブロック歪を低減する場合を例に挙
げたが、本発明は何らこれに限定されず、フィールド間
での予測符号化と、フィールド内でのDCT符号化を組
み合わせてハイブリッド符号化された画像データを復号
して得た画像についても、図1中の1フレームディレイ
回路3を1フィールドディレイ回路に置き換え、フレー
ムクロックFCKをフィールドクロックに置き換えるな
どすれば、同様にブロック歪の除去を行うことができ
る。Further, in the above-described embodiment, the block distortion is applied to the image obtained by decoding the hybrid-encoded image data by combining the inter-frame predictive encoding and the intra-frame DCT encoding. Although the case of reducing is described as an example, the present invention is not limited to this, and predictive coding between fields and DCT coding within fields are combined to decode hybrid-coded image data. For the obtained image, block distortion can be similarly removed by replacing the 1-frame delay circuit 3 in FIG. 1 with a 1-field delay circuit and replacing the frame clock FCK with a field clock.
【0037】また、画像の符号化方式は、DCTによる
フレーム内符号化またはフィールド内符号化と、フレー
ム間予測符号化またはフィールド間予測符号化を組み合
わせたハイブリッド符号化に何ら限定されず、アダマー
ル変換等の他の直交変換符号化によるフレーム内符号化
またはフィールド内符号化と、ブロックマッチング法に
基づきフレームまたはフィールドをブロックに分割し、
ブロック単位で動き検出を行う動き補償(MC)付フレ
ーム予測符号化または動き補償(MC)付フィールド予
測符号化など、他の符号化方式を組み合わせたものであ
っても良い。また、DCT、アダマール変換等の直交変
換符号化によるフレーム内符号化またはフィールド内符
号化だけ行うもの、または、動き補償(MC)付フレー
ム予測符号化または動き補償(MC)付フィールド予測
符号化によるフレーム間符号化またはフィールド間符号
化だけ行うものであっても良く、要は、フレームまたは
フィールドをブロックに分割してブロック単位で符号化
処理したものであれば良く、デコーダにより符号化方式
に対応した復号化方式で復号した画像に対し、ブロック
歪を低減することができる。The image coding method is not limited to hybrid coding in which intraframe coding or intrafield coding by DCT and interframe predictive coding or interfield predictive coding are combined, and the Hadamard transform is performed. Intra-frame coding or intra-field coding by other orthogonal transform coding such as, and dividing the frame or field into blocks based on the block matching method,
It may be a combination of other coding methods such as frame prediction coding with motion compensation (MC) or motion prediction (MC) with field prediction coding for performing motion detection in block units. Also, only intraframe coding or intrafield coding by orthogonal transform coding such as DCT or Hadamard transform, or frame prediction coding with motion compensation (MC) or field prediction coding with motion compensation (MC) is performed. Only interframe coding or interfield coding may be performed. The point is that the frame or field is divided into blocks and the coding process is performed in block units. Block distortion can be reduced for an image decoded by the decoding method described above.
【0038】また、上記した実施例ではモノクロ画像を
例に挙げて説明したが、本発明は何らこれに限定される
ものではなく、例えば、カラー画像であってもR,G,
Bの別に上記した実施例と同様の処理を行うことで、ブ
ロック歪の低減を図ることができる。Further, although the above embodiment has been described by taking a monochrome image as an example, the present invention is not limited to this. For example, even if it is a color image, R, G,
Block distortion can be reduced by performing the same processing as in the above-described embodiment for each B.
【0039】[0039]
【発明の効果】本発明の画像処理装置によれば、復号後
の画像の内、ブロック境界線近傍の画素を選別し、復号
後の画像に対し、ブロック境界線近傍の画素の高域空間
周波数成分を除去し、他の画素はそのままにするように
したので、ブロック内の解像度の劣化を回避しながらブ
ロック境界でのブロック歪を目立たなくすることができ
る。According to the image processing apparatus of the present invention, the pixels near the block boundary line are selected from the decoded image, and the high spatial frequency of the pixel near the block boundary line is selected for the decoded image. Since the components are removed and the other pixels are left as they are, the block distortion at the block boundary can be made inconspicuous while avoiding the deterioration of the resolution within the block.
【0040】本発明の他の画像処理装置によれば、復号
後の画像の内、フレームまたはフィールド間の変化が大
きい画素を検出し、復号後の画像に対し、ブロック境界
線近傍の画素で、かつ、フレームまたはフィールド間の
変化が大きい画素に対し高域空間周波数成分を除去し、
他の画素はそのままにするようにしたので、動きの大き
なフレームまたはフィールドについてブロック内の解像
度の劣化を回避しながらブロック境界線でのブロック歪
を目立たなくすることができ、動きがないか小さなフレ
ームまたはフィールドについてはフレームまたはフィー
ルド全体にわたり良好な解像度を維持することができ
る。According to another image processing apparatus of the present invention, a pixel having a large change between frames or fields is detected in the image after decoding, and a pixel near the block boundary line is detected in the image after decoding. And, the high spatial frequency component is removed for the pixel whose change between frames or fields is large,
Since the other pixels are left as they are, it is possible to make the block distortion at the block boundary line inconspicuous while avoiding the deterioration of the resolution in the block for the frame or field with large motion. Or for the field, good resolution can be maintained over the entire frame or field.
【0041】本発明の更に他の画像処理装置によれば、
高域空間周波数成分の除去は、復号された画像中の着目
画素周辺の画素を平均化し、着目画素に置き換えること
で行うようにしたので、簡単な構成で高域空間周波数成
分を除去することができる。According to still another image processing apparatus of the present invention,
The removal of the high frequency spatial frequency component is performed by averaging the pixels around the pixel of interest in the decoded image and replacing it with the pixel of interest. Therefore, it is possible to remove the high frequency spatial frequency component with a simple configuration. it can.
【0042】本発明の他の画像処理装置によれば、縦の
ブロック境界線近傍の画素に対し水平方向の高域空間周
波数成分を除去し、横のブロック境界線近傍の画素に対
し垂直方向の高域空間周波数成分を除去して行うように
したので、ブロック境界線近傍での解像度の劣化を最小
限に抑えながら、ブロック歪を目立たなくすることがで
きる。According to another image processing apparatus of the present invention, the high frequency spatial frequency component in the horizontal direction is removed from the pixels near the vertical block boundary line, and the pixels in the vertical direction are removed from the pixels near the horizontal block boundary line. Since the high spatial frequency component is removed, the block distortion can be made inconspicuous while minimizing the deterioration of resolution near the block boundary line.
【0043】本発明の他の画像処理装置によれば、水平
方向の高域空間周波数成分の除去は、復号後の画像中の
着目画素周辺で水平方向の画素を平均化し、着目画素に
置き換えて行い、垂直方向の高域空間周波数成分の除去
は、復号後の画像中の着目画素周辺で垂直方向の画素を
平均化し、着目画素に置き換えて行うようにしたので、
簡単な構成で水平方向の高域空間周波数成分の除去と垂
直方向の高域空間周波数成分の除去をすることができ
る。According to another image processing apparatus of the present invention, the removal of high spatial frequency components in the horizontal direction is performed by averaging the pixels in the horizontal direction around the pixel of interest in the decoded image and replacing the pixel with the pixel of interest. The removal of the high frequency spatial frequency components in the vertical direction is performed by averaging the pixels in the vertical direction around the pixel of interest in the image after decoding and replacing them with the pixel of interest.
It is possible to remove horizontal high frequency spatial frequency components and vertical high frequency spatial frequency components with a simple configuration.
【図1】本発明の一実施例に係る画像処理装置の回路図
である。FIG. 1 is a circuit diagram of an image processing apparatus according to an embodiment of the present invention.
【図2】デコーダの出力するディジタル画像信号と各種
クロックの関係を示す線図である。FIG. 2 is a diagram showing a relationship between a digital image signal output from a decoder and various clocks.
【図3】フレーム中でのブロックの大きさと位置関係を
示す説明図である。FIG. 3 is an explanatory diagram showing a block size and a positional relationship in a frame.
【図4】空間周波数フィルタとセレクタの動作を示す説
明図である。FIG. 4 is an explanatory diagram showing operations of a spatial frequency filter and a selector.
1 デコーダ 2 動き検出回路 10 水平方向選別回路 20 垂直方向選
別回路 30 空間周波数フィルタ 50 セレクタ1 Decoder 2 Motion Detection Circuit 10 Horizontal Direction Selection Circuit 20 Vertical Direction Selection Circuit 30 Spatial Frequency Filter 50 Selector
Claims (5)
ックに分け、各ブロック単位で符号化された画像を復号
する復号手段を備えた画像処理装置において、 復号後の画像の内、ブロック境界線近傍の画素を選別す
る選別手段と、 復号後の画像に対し、選別手段で選別されたブロック境
界線近傍の画素の高域空間周波数成分を除去し、他の画
素はそのままにする高域空間周波数成分除去手段を設け
たこと、 を特徴とする画像処理装置。1. An image processing apparatus comprising a decoding means for dividing a frame or field into a large number of blocks and decoding an image coded in each block, wherein a pixel in the vicinity of a block boundary line in the decoded image. And a high-frequency spatial frequency component removing means for removing the high-frequency spatial frequency components of the pixels near the block boundary selected by the selection means from the decoded image and leaving the other pixels unchanged. An image processing apparatus characterized by being provided.
ィールド間での変化が大きい画素を検出する検出手段を
設け、 高域空間周波数成分除去手段は、復号後の画像に対し、
選別手段で選別されたブロック境界線近傍の画素で、か
つ、検出手段で検出されたフレームまたはフィールド間
の変化が大きい画素に対し高域空間周波数成分を除去
し、他の画素はそのままにするようにしたこと、 を特徴とする請求項1記載の画像処理装置。2. A detection means for detecting a pixel having a large change between frames or between fields in a decoded image is provided, and the high spatial frequency component removing means is
High spatial frequency components are removed from the pixels in the vicinity of the block boundary line that have been selected by the selection means and that have a large change between frames or fields detected by the detection means, and other pixels remain unchanged. The image processing apparatus according to claim 1, wherein:
空間周波数成分の除去は、復号後の画像中の着目画素周
辺の画素を平均化し、着目画素に置き換えて行うこと、 を特徴とする請求項1または2記載の画像処理装置。3. The removal of the high spatial frequency component by the high spatial frequency component removing means is performed by averaging pixels around the pixel of interest in the image after decoding and replacing them with the pixel of interest. The image processing device according to item 1 or 2.
空間周波数成分の除去は、縦のブロック境界線近傍の画
素に対し水平方向の高域空間周波数成分を除去し、横の
ブロック境界線近傍の画素に対し垂直方向の高域空間周
波数成分を除去して行うようにしたこと、 を特徴とする請求項1または2記載の画像処理装置。4. The removal of the high spatial frequency component by the high spatial frequency component removing means removes the high spatial frequency component in the horizontal direction from the pixels in the vicinity of the vertical block boundary, and removes the horizontal spatial frequency component in the vicinity of the horizontal block boundary. The image processing apparatus according to claim 1 or 2, wherein the high spatial frequency component in the vertical direction is removed from the pixel in (1).
方向の高域空間周波数成分の除去は、復号後の画像中の
着目画素周辺で水平方向の画素を平均化し、着目画素に
置き換えて行い、垂直方向の高域空間周波数成分の除去
は、復号後の画像中の着目画素周辺で垂直方向の画素を
平均化し、着目画素に置き換えて行うこと、 を特徴とする請求項4記載の画像処理装置。5. The removal of horizontal high frequency spatial frequency components by the high frequency spatial frequency component removing means is performed by averaging horizontal pixels around the pixel of interest in the image after decoding and replacing them with the pixel of interest. The image processing apparatus according to claim 4, wherein the removal of the high spatial frequency component in the vertical direction is performed by averaging the pixels in the vertical direction around the pixel of interest in the image after decoding and replacing the pixel with the pixel of interest. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6172995A JPH08237658A (en) | 1995-02-24 | 1995-02-24 | Picture processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6172995A JPH08237658A (en) | 1995-02-24 | 1995-02-24 | Picture processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH08237658A true JPH08237658A (en) | 1996-09-13 |
Family
ID=13179598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6172995A Pending JPH08237658A (en) | 1995-02-24 | 1995-02-24 | Picture processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH08237658A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1998054892A1 (en) * | 1997-05-28 | 1998-12-03 | Sony Corporation | Block distortion reduction method and device and encoding method and device |
-
1995
- 1995-02-24 JP JP6172995A patent/JPH08237658A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1998054892A1 (en) * | 1997-05-28 | 1998-12-03 | Sony Corporation | Block distortion reduction method and device and encoding method and device |
US6434275B1 (en) | 1997-05-28 | 2002-08-13 | Sony Corporation | Block distortion reduction method and device and encoding method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1596604B1 (en) | Apparatus for coding/decoding and filtering method for the reduction of artifacts in reconstructed images | |
US7068722B2 (en) | Content adaptive video processor using motion compensation | |
EP1506525B1 (en) | System for and method of sharpness enhancement for coded digital video | |
JPH08251422A (en) | Block distortion correction device and image signal expander | |
JP2002537735A (en) | Video decoding apparatus and method using filtering step to reduce block effect | |
WO2007132792A1 (en) | Image processing apparatus, method and integrated circuit | |
JP2004518337A (en) | Apparatus and method for providing a useful metric based on coded information for video enhancement | |
JPH114366A (en) | Deblocking filter | |
JPH08237658A (en) | Picture processor | |
JPH1056646A (en) | Video signal decoder | |
JPH06292179A (en) | Orthogonal transform encoder and orthogonal transform decoder | |
JP2985752B2 (en) | Video decoding device | |
JPH11220729A (en) | Video encoder, video decoder and distortion detecting apparatus | |
Basavaraju et al. | Modified pre and post processing methods for optimizing and improving the quality of VP8 video codec | |
KR0170682B1 (en) | Apparatus for decreasing encoding noise in image signal processor | |
JP2005312072A (en) | Video signal decoding apparatus | |
JPH05199512A (en) | Orthogonal transforming coder | |
JP2001145104A (en) | Method and device for decoding image | |
JPH0614312A (en) | Coding device | |
JPH04243389A (en) | Video signal coding decoding device | |
JPH11103426A (en) | Television receiver | |
JPH06141303A (en) | Decoder | |
JPH0787449A (en) | Coder for video signal | |
JPH1093976A (en) | Motion detector | |
JPH09163374A (en) | Noise reduction device |