JP2002199403A - Block distortion detecting method, block distortion detector, block distortion eliminating method and block distortion eliminating device - Google Patents

Block distortion detecting method, block distortion detector, block distortion eliminating method and block distortion eliminating device

Info

Publication number
JP2002199403A
JP2002199403A JP2001319417A JP2001319417A JP2002199403A JP 2002199403 A JP2002199403 A JP 2002199403A JP 2001319417 A JP2001319417 A JP 2001319417A JP 2001319417 A JP2001319417 A JP 2001319417A JP 2002199403 A JP2002199403 A JP 2002199403A
Authority
JP
Japan
Prior art keywords
block distortion
block
boundary
value
motion compensation
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
Application number
JP2001319417A
Other languages
Japanese (ja)
Inventor
Toshiyuki Kondo
敏志 近藤
Tetsuya Itani
哲也 井谷
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001319417A priority Critical patent/JP2002199403A/en
Publication of JP2002199403A publication Critical patent/JP2002199403A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a block distortion eliminating device that detects block distortion with high accuracy in the case of decoding a compression coded image so as to eliminate the block distortion, while minimizing blurring of images. SOLUTION: A block distortion detector 109 uses image data after decoding and information of motion vector to specify a block border in which block distortion takes place. The block distortion eliminating device 108 applies filtering to pixels around the block border of the image after decoding, on the basis of the result of detection by the block distortion detector 109 and eliminates block distortion.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ブロック単位で圧
縮符号化された画像を復号化した際に生じるブロック歪
みを検出、除去するブロック歪み検出方法、ブロック歪
み検出装置、ブロック歪み除去方法およびブロック歪み
除去装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a block distortion detecting method, a block distortion detecting apparatus, a block distortion detecting method, and a block distortion detecting method for detecting and removing block distortion generated when an image compression-encoded in blocks is decoded. The present invention relates to a distortion removing device.

【0002】[0002]

【従来の技術】近年、放送、通信や蓄積の分野における
画像の高能率圧縮符号化方法として、MPEG(Moving
Picture Expert Group)方式、H.263方式等が広
く用いられている。MPEG方式やH.263方式で
は、画像から空間方向と時間方向の冗長度を取り除くこ
とにより符号化を行う。以下、MPEG方式の概要につ
いて説明する。
2. Description of the Related Art In recent years, MPEG (Moving) has been used as a highly efficient compression coding method for images in the fields of broadcasting, communication and storage.
Picture Expert Group) method. The H.263 system is widely used. MPEG format and H.264 In the H.263 system, encoding is performed by removing redundancy in the spatial direction and the temporal direction from an image. Hereinafter, an outline of the MPEG system will be described.

【0003】まず、画像情報に含まれる空間方向の冗長
度を取り除くためには、離散コサイン変換(Discrete C
osine Transform;以下、DCTと称す)と量子化処理
とが用いられる。すなわち、入力画像を8×8画素のブ
ロックと呼ばれる単位に分割した後、DCTによりブロ
ックを周波数領域の係数(DCT係数)に変換する。そ
して、DCT係数に対して量子化処理を行う。量子化処
理はDCT領域の各周波数に対応した値を有する量子化
マトリクスと量子化ステップとの両者を用いて、DCT
係数を除する処理である。この量子化処理により、DC
T係数値が小さい周波数成分が“0”になる。一般に画
像信号はエネルギーが低域に集中しているために、この
処理によって高周波数成分が削除される。しかしなが
ら、人間の視覚特性は高域になるほど識別力が低下する
ので、量子化処理で用いる量子化ステップが小さけれ
ば、量子化処理による画質劣化は目立ちにくい。
[0003] First, in order to remove spatial redundancy included in image information, a discrete cosine transform (Discrete C
osine transform (hereinafter referred to as DCT) and quantization processing. That is, after the input image is divided into units called blocks of 8 × 8 pixels, the blocks are converted into coefficients (DCT coefficients) in the frequency domain by DCT. Then, quantization processing is performed on the DCT coefficient. The quantization process is performed by using both a quantization matrix having a value corresponding to each frequency in the DCT domain and a quantization step.
This is the process of dividing the coefficient. By this quantization processing, DC
A frequency component having a small T coefficient value becomes “0”. Generally, since the energy of an image signal is concentrated in a low band, a high frequency component is deleted by this processing. However, the higher the frequency of human visual characteristics, the lower the discrimination power. Therefore, if the quantization step used in the quantization process is small, the image quality deterioration due to the quantization process is less noticeable.

【0004】また、時間方向の冗長度を取り除くために
は、動き補償が用いられる。動き補償では、16×16
画素のマクロブロックを動き補償単位として参照画像か
ら最も近い領域を選び出す。そしてその領域と参照画像
との差分値を符号化する。動きがそれ程速くない場合に
はこの差分値はほぼ“0”となるため、時間的冗長度を
削減することができる。
[0004] In order to remove temporal redundancy, motion compensation is used. In motion compensation, 16 × 16
A region closest to the reference image is selected using a macroblock of pixels as a motion compensation unit. Then, a difference value between the area and the reference image is encoded. When the movement is not so fast, the difference value is almost “0”, so that the temporal redundancy can be reduced.

【0005】通常ビットレートが高い、即ち、圧縮率が
小さい場合には、MPEG方式では画質劣化は非常に目
立ちにくい。しかしながら、ビットレートが低い、即
ち、圧縮率が高くなると画質劣化、すなわち符号化ノイ
ズが目立ち始める。MPEG方式における符号化ノイズ
の代表的なものとして、ブロック歪みがある。ブロック
歪みは、各ブロックの境界がはっきりとタイル状に見え
る現象である。これは、ブロック内の画像信号が低域周
波数成分しか持たず、かつ隣接するブロック間でブロッ
ク同士の低周波数成分の値が異なるために生じる。
In general, when the bit rate is high, that is, when the compression ratio is small, the image quality degradation is very inconspicuous in the MPEG system. However, when the bit rate is low, that is, when the compression ratio is high, image quality degradation, that is, coding noise starts to be noticeable. A typical example of the coding noise in the MPEG system is block distortion. Block distortion is a phenomenon in which the boundaries of each block appear to be clearly tiled. This occurs because the image signal in a block has only low-frequency components, and the value of the low-frequency component differs between adjacent blocks.

【0006】ブロック歪みは従来のアナログ系のノイズ
とは異なり、画質劣化として大きく目立つ。そこで、こ
れを除去する方法がいくつか提案されている。その方法
を開示した文献として、例えば特開平11−27558
4号公報がある。同公報では、注目するマクロブロック
の動きベクトルを1フレーム当たりの動きベクトルに変
換し、変換後の動きベクトルの大きさに応じて、復号化
後の画像に施すフィルタの特性を変化させる方法が開示
されている。
[0006] Unlike conventional analog noise, block distortion is greatly conspicuous as image quality degradation. Therefore, several methods for removing this have been proposed. Documents that disclose the method include, for example, JP-A-11-27558.
No. 4 publication. This publication discloses a method of converting a motion vector of a macroblock of interest into a motion vector per frame, and changing a characteristic of a filter applied to a decoded image according to the size of the converted motion vector. Have been.

【0007】[0007]

【発明が解決しようとする課題】上記従来の方法では、
動きベクトルの大きさに応じて低域通過フィルタの周波
数特性、即ち、遮断周波数を決定する。そして、決定し
たフィルタを用いて復号化画像に対してフィルタを施す
ことによりブロック歪みを除去する。その際には、動き
ベクトルが大きい程、遮断周波数が低くなるようにフィ
ルタ特性を決定する。しかしながら、たとえ動きベクト
ルが大きくても、高周波数成分を有する領域にフィルタ
を施すと、画質劣化が生じる。
In the above conventional method,
The frequency characteristic of the low-pass filter, that is, the cutoff frequency is determined according to the magnitude of the motion vector. Then, block distortion is removed by applying a filter to the decoded image using the determined filter. At this time, the filter characteristic is determined such that the cutoff frequency becomes lower as the motion vector becomes larger. However, even if the motion vector is large, applying a filter to a region having a high frequency component causes image quality degradation.

【0008】また、上記従来の方法では、ブロック歪み
の検出におけるブロック当たりの処理量は、解像度に依
存せず一定である。即ち、映像信号が低解像度であって
も高解像度であっても、処理量は同じである。このた
め、映像信号が高解像度となるほど、全体の処理量が増
えるという問題も生じていた。
In the above-mentioned conventional method, the amount of processing per block in detecting block distortion is constant independently of the resolution. That is, the processing amount is the same whether the video signal has a low resolution or a high resolution. For this reason, there has been a problem that the higher the resolution of the video signal, the greater the overall processing amount.

【0009】本発明は、上記のような従来のものの問題
点を解決するためになされたもので、ブロック歪み除去
を行う際に、誤検出による画質劣化を起こすことがない
ブロック歪み検出方法、ブロック歪み検出装置、ブロッ
ク歪み除去方法およびブロック歪み除去装置を提供する
ことを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems of the prior art, and a block distortion detecting method and a block distortion eliminating image quality deterioration due to erroneous detection when removing block distortion. It is an object to provide a distortion detection device, a block distortion removal method, and a block distortion removal device.

【0010】また、画素数に比例して処理量が増加する
ことがなく、映像信号が高解像度の場合であっても処理
量の増加を抑えることができるブロック歪み検出方法、
ブロック歪み検出装置、ブロック歪み除去方法およびブ
ロック歪み除去装置を提供することを目的とする。
Further, a block distortion detecting method which does not increase the processing amount in proportion to the number of pixels and can suppress an increase in the processing amount even when the video signal has a high resolution.
It is an object to provide a block distortion detecting device, a block distortion removing method, and a block distortion removing device.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するため
に、本願の請求項1の発明に係るブロック歪み除去方法
は、画像信号を複数の画素からなるブロックに分割した
後に符号化した符号列を復号化して得られる復号化画像
信号に対して、前記ブロック間境界にまたがる画素間の
第1の差分値と、前記ブロック間境界付近の前記ブロッ
ク内に属する画素間の第2の差分値とを求め、前記第1
の差分値と前記第2の差分値との値に応じて、前記ブロ
ック間境界付近の画素の画素値を補正する、ことを特徴
とする構成を有する。
According to a first aspect of the present invention, there is provided a method for removing a block distortion, comprising the steps of: dividing an image signal into blocks each including a plurality of pixels; For the decoded image signal obtained by decoding the first and second difference values between pixels belonging to the block near the inter-block boundary, And the first
And correcting the pixel value of the pixel near the boundary between the blocks in accordance with the difference between the second difference value and the second difference value.

【0012】また、本願の請求項2の発明に係るブロッ
ク歪み検出方法は、画像信号を複数の画素からなるブロ
ックに分割した後に符号化した符号列を復号化して得ら
れる復号化画像信号に対して、前記ブロック間境界にま
たがる画素間の第1の差分値と、前記ブロック間境界付
近の前記ブロック内に属する画素間の第2の差分値とを
求め、前記第1の差分値の絶対値が第1のしきい値より
も大きく、前記第2の差分値の絶対値が第2のしきい値
よりも小さい場合に、前記ブロック境界間にブロック歪
みが発生すると判定するとともに、前記第1および第2
のしきい値が小さいほど、前記ブロック境界間に強いブ
ロック歪みが発生すると判定する、ことを特徴とする構
成を有する。
A block distortion detecting method according to a second aspect of the present invention is directed to a method for detecting a decoded image signal obtained by decoding an encoded signal sequence after dividing the image signal into blocks each including a plurality of pixels. Calculating a first difference value between pixels spanning the inter-block boundary and a second difference value between pixels belonging to the block near the inter-block boundary, and calculating an absolute value of the first difference value Is larger than a first threshold value and when the absolute value of the second difference value is smaller than a second threshold value, it is determined that block distortion occurs between the block boundaries, and the first And the second
It is determined that the smaller the threshold value is, the stronger block distortion is generated between the block boundaries.

【0013】また、本願の請求項3の発明に係るブロッ
ク歪み検出方法は、画像信号を複数の画素からなるブロ
ックに分割した後に前記ブロックを少なくとも1つ含む
単位で動き補償を用いて符号化した符号列を復号化して
得られる復号化画像信号に対して、前記ブロック間境界
であり、かつ前記動き補償単位の境界である、ブロック
間・動き補償単位間境界にまたがる画素間の第1の差分
値と、前記ブロック間・動き補償単位間境界付近の前記
ブロック内に属する画素間の第2の差分値とを求め、前
記第1の差分値の絶対値が第1のしきい値よりも大き
く、前記第2の差分値の絶対値が第2のしきい値よりも
小さく、前記ブロック間・動き補償単位間境界にまたが
る動き補償単位での動き量が第3のしきい値よりも大き
い場合には、前記境界にブロック歪みが発生すると判定
するとともに、前記第1および第2のしきい値が小さい
とき、前記ブロック間・動き補償単位間境界にまたがる
動き補償単位での動き量が大きいとき、前記境界間に強
いブロック歪みが発生すると判定する、ことを特徴とす
る構成を有する。
In the block distortion detecting method according to the third aspect of the present invention, an image signal is divided into blocks each including a plurality of pixels and then encoded using motion compensation in a unit including at least one of the blocks. For a decoded image signal obtained by decoding a code string, a first difference between pixels that is the inter-block boundary and the inter-block / motion compensation unit boundary that is the motion compensation unit boundary. And a second difference value between pixels belonging to the block near the boundary between the blocks / motion compensation units, and the absolute value of the first difference value is larger than a first threshold value. When the absolute value of the second difference value is smaller than a second threshold value, and the motion amount in the motion compensation unit over the inter-block / motion compensation unit boundary is larger than the third threshold value. In the border When the first and second thresholds are small, and when the amount of motion in the motion compensation unit over the inter-block / motion compensation unit boundary is large, It is determined that strong block distortion is generated.

【0014】また、本願の請求項4の発明に係るブロッ
ク歪み検出方法は、請求項3記載のブロック歪み検出方
法において、前記動き量は、互いに隣接する前記動き補
償単位の各動き量中の最大値を用いる、ことを特徴とす
る構成を有する。
According to a fourth aspect of the present invention, there is provided the block distortion detecting method according to the third aspect, wherein the amount of motion is the maximum of the motion amounts of the adjacent motion compensation units. Value is used.

【0015】また、本願の請求項5の発明に係るブロッ
ク歪み検出方法は、画像信号を複数の画素からなるブロ
ックに分割した後に符号化した符号列を復号化して得ら
れる復号化画像信号に対して、前記ブロック間境界にま
たがる画素間の第1の差分値と、前記ブロック間境界付
近の前記ブロックに属する画素間の第2の差分値とを求
め、前記第1と第2の差分値とを用いて前記ブロック境
界間のブロック歪みを検出する際に、前記復号化画像信
号の解像度が大きいほど、処理量が減少する検出方法に
より前記ブロック歪みの検出を行う、ことを特徴とする
構成を有する。
Further, the block distortion detecting method according to the invention of claim 5 of the present application provides a method for detecting a decoded image signal obtained by decoding an encoded signal sequence after dividing the image signal into blocks each including a plurality of pixels. Calculating a first difference value between pixels spanning the inter-block boundary and a second difference value between pixels belonging to the block near the inter-block boundary, and calculating the first and second difference values. When detecting the block distortion between the block boundaries using, the detection of the block distortion is performed by a detection method in which the processing amount decreases as the resolution of the decoded image signal increases, Have.

【0016】また、本願の請求項6の発明に係るブロッ
ク歪み検出方法は、画像信号を複数の画素からなるブロ
ックに分割した後に前記ブロックを少なくとも1つ含む
単位で動き補償を用いて符号化した符号列を復号化して
得られる復号化画像信号に対して、前記ブロック間境界
であり、かつ前記動き補償単位の境界である、ブロック
間・動き補償単位間境界にまたがる画素間の第1の差分
値と、前記ブロック間・動き補償単位間境界付近の前記
ブロックに属する画素間の第2の差分値とを求め、前記
第1と第2の差分値と前記ブロック間・動き補償単位間
境界にまたがる動き補償単位での動き量とを用いて前記
ブロック間・動き補償単位間境界のブロック歪みを検出
する際に、前記復号化画像信号の解像度が大きいほど、
処理量が減少する検出方法により前記ブロック歪みの検
出を行う、ことを特徴とする構成を有する。
In the block distortion detecting method according to the invention of claim 6 of the present application, an image signal is divided into blocks each including a plurality of pixels and then encoded using motion compensation in a unit including at least one of the blocks. For a decoded image signal obtained by decoding a code string, a first difference between pixels that is the inter-block boundary and the inter-block / motion compensation unit boundary that is the motion compensation unit boundary. Value and a second difference value between pixels belonging to the block near the boundary between the blocks / motion compensation units, and the first and second difference values and the boundary between the blocks / motion compensation unit are calculated. When detecting block distortion at the boundary between the blocks and between the motion compensation units using the amount of motion in the straddling motion compensation unit, the larger the resolution of the decoded image signal,
The block distortion is detected by a detection method that reduces a processing amount.

【0017】また、本願の請求項7の発明に係るブロッ
ク歪み検出方法は、請求項5または請求項6記載のブロ
ック歪み検出方法において、前記処理量の減少は、前記
ブロック歪みの検出に用いる画素数を少なくすることに
より行う、ことを特徴とする構成を有する。
According to a seventh aspect of the present invention, there is provided a block distortion detecting method according to the fifth or sixth aspect, wherein the processing amount is reduced by a pixel used for detecting the block distortion. This is performed by reducing the number.

【0018】また、本願の請求項8の発明に係るブロッ
ク歪み検出方法は、請求項5または請求項6記載のブロ
ック歪み検出方法において、前記処理量の減少は、前記
ブロック歪みを検出する強度の段階数を少なくすること
により行う、ことを特徴とする構成を有する。
The block distortion detecting method according to the invention of claim 8 of the present application is the block distortion detecting method according to claim 5 or 6, wherein the decrease in the processing amount is based on the intensity of detecting the block distortion. This is performed by reducing the number of steps.

【0019】また、本願の請求項9の発明に係るブロッ
ク歪み除去方法は、請求項6記載のブロック歪み検出方
法において、前記処理量の減少は、前記解像度が高い場
合に、前記動き量によるブロック歪みの検出を実行しな
いことにより行う、ことを特徴とする構成を有する。
According to a ninth aspect of the present invention, in the block distortion detecting method according to the sixth aspect, the processing amount is reduced when the resolution is high. The distortion detection is performed by not performing the detection.

【0020】また、本願の請求項10の発明に係るブロ
ック歪み除去方法は、請求項2,請求項3,請求項5,
請求項6のいずれかに記載のブロック歪み検出方法によ
り検出されたブロック歪みを除去する方法であって、前
記ブロック歪みの判定結果に応じて、前記ブロック境界
付近の画素の画素値を補正する、ことを特徴とする構成
を有する。
The block distortion removing method according to the tenth aspect of the present invention is the second, third, fifth, and fifth aspects.
A method for removing block distortion detected by the block distortion detection method according to claim 6, wherein a pixel value of a pixel near the block boundary is corrected according to a result of the determination of the block distortion. It has the composition characterized by the above-mentioned.

【0021】また、本願の請求項11の発明に係るブロ
ック歪み除去方法は、請求項10記載のブロック歪み除
去方法において、前記画素値の補正は、前記ブロック歪
みの強度に応じて特性の異なるフィルタを用いて行う、
ことを特徴とする構成を有する。
According to a eleventh aspect of the present invention, there is provided the block distortion eliminating method according to the tenth aspect, wherein the pixel value is corrected by a filter having different characteristics depending on the intensity of the block distortion. Performed using
And a configuration characterized by the following.

【0022】また、本願の請求項12の発明に係るブロ
ック歪み除去方法は、請求項10記載のブロック歪み除
去方法において、前記画素値の補正は、所定のフィルタ
を前記境界付近の画素に対して施した後、前記ブロック
歪みの強さに応じて、前記復号化画像の画素と、前記フ
ィルタを施した画素の重み付け平均した画素値を用いる
ことにより行う、ことを特徴とする構成を有する。
According to a twelfth aspect of the present invention, in the block distortion elimination method of the tenth aspect, the pixel value is corrected by applying a predetermined filter to pixels near the boundary. After the application, the operation is performed by using the weighted average pixel value of the pixels of the decoded image and the filtered pixels in accordance with the strength of the block distortion.

【0023】また、本願の請求項13の発明に係るブロ
ック歪み検出装置は、画像信号を複数の画素からなるブ
ロックに分割した後に前記ブロックを少なくとも1つ含
む単位で動き補償を用いて符号化した符号列を入力と
し、前記符号列を復号化して復号化画像信号を生成し、
さらに前記復号化時に動き補償に用いた動きベクトルを
抽出する画像復号化器と、前記復号化画像信号を入力と
し、前記ブロック間境界にまたがる画素間の第1の差分
値と、前記ブロック間境界付近の前記ブロックに属する
画素間の第2の差分値とを求め、前記第1の差分値の絶
対値が第1のしきい値よりも大きく、前記第2の差分値
の絶対値が第2のしきい値よりも小さい場合に、前記ブ
ロック間境界にブロック歪みが発生すると判定し、かつ
前記第1と第2のしきい値が小さいほど、強いブロック
歪みが発生すると判定する画素値検査器とを備えた、こ
とを特徴とする構成を有する。
Further, the block distortion detecting apparatus according to the invention of claim 13 of the present application divides an image signal into blocks composed of a plurality of pixels and then encodes the blocks using motion compensation in a unit including at least one of the blocks. A code sequence is input, and the code sequence is decoded to generate a decoded image signal.
An image decoder for extracting a motion vector used for motion compensation at the time of the decoding; a first difference value between pixels, which receives the decoded image signal as input, and spans the inter-block boundary; A second difference value between pixels belonging to the neighboring block is obtained, and the absolute value of the first difference value is larger than a first threshold value, and the absolute value of the second difference value is set to a second value. A pixel value inspector that determines that block distortion occurs at the inter-block boundary when the threshold value is smaller than the threshold value, and determines that stronger block distortion occurs as the first and second threshold values are smaller. And a configuration characterized by comprising:

【0024】また、本願の請求項14の発明に係るブロ
ック歪み検出装置は、画像信号を複数の画素からなるブ
ロックに分割した後に前記ブロックを少なくとも1つ含
む単位で動き補償を用いて符号化した符号列を入力と
し、前記符号列を復号化して復号化画像信号を生成し、
さらに前記復号化時に動き補償に用いた動きベクトルを
抽出する画像復号化器と、前記復号化画像信号を入力と
し、前記ブロック間境界であり、かつ前記動き補償単位
の境界である、ブロック間・動き補償単位間境界にまた
がる画素間の第1の差分値と、前記ブロック間・動き補
償単位間境界付近の前記ブロックに属する画素間の第2
の差分値とを求め、前記第1の差分値の絶対値が第1の
しきい値よりも大きく、前記第2の差分値の絶対値が第
2のしきい値よりも小さい場合に、前記ブロック間・動
き補償単位間境界間にブロック歪みが発生すると判定す
る画素値検査器と、前記動きベクトルを入力とし、前記
ブロック間・動き補償単位間境界にまたがる動き補償単
位での動き量が第3のしきい値よりも大きい場合に、ブ
ロック歪みが発生すると判定する動きベクトル検査器
と、前記画素値検査器と前記動きベクトル検査器とのブ
ロック歪みの判定結果から、最終的なブロック歪みの発
生の有無を判定するブロック歪み判定器とを備えた、こ
とを特徴とする構成を有する。
Further, the block distortion detecting apparatus according to the invention of claim 14 of the present application divides an image signal into blocks composed of a plurality of pixels, and encodes the image signal using motion compensation in a unit including at least one of the blocks. A code string is input, and the code string is decoded to generate a decoded image signal.
Further, an image decoder for extracting a motion vector used for motion compensation during the decoding, and the decoded image signal as an input, the inter-block boundary, and the inter-block A first difference value between pixels spanning a boundary between motion compensation units, and a second difference value between pixels belonging to the block near the boundary between the blocks and between motion compensation units.
When the absolute value of the first difference value is larger than a first threshold value and the absolute value of the second difference value is smaller than a second threshold value, A pixel value tester that determines that block distortion occurs between boundaries between blocks and between motion compensation units, and a motion vector in the motion compensation unit that spans the boundary between blocks and between motion compensation units. When the threshold value is larger than the threshold value of 3, a motion vector tester that determines that block distortion is generated, and a final block distortion value based on the block distortion determination results of the pixel value inspector and the motion vector inspector. A block distortion determiner for determining whether or not occurrence has occurred.

【0025】また、本願の請求項15の発明に係るブロ
ック歪み検出装置は、請求項14記載のブロック歪み検
出装置において、前記画素値検査器は、前記第1と第2
のしきい値が小さいほど、強いブロック歪みが発生する
と判定し、前記動きベクトル検査器は、前記動き量が大
きいほど、強いブロック歪みが発生すると判定する、こ
とを特徴とする構成を有する。
According to a fifteenth aspect of the present invention, there is provided a block distortion detecting device according to the fourteenth aspect, wherein the pixel value inspector comprises the first and second pixel value inspectors.
Is smaller, the stronger the block distortion is determined to occur, and the motion vector tester determines that the stronger the amount of motion is, the stronger the block distortion is generated.

【0026】また、本願の請求項16の発明に係るブロ
ック歪み検出装置は、請求項15記載のブロック歪み検
出装置において、前記動き量は、互いに隣接する前記動
き補償単位の各動き量中の最大値を用いる、ことを特徴
とする構成を有する。
In the block distortion detecting apparatus according to the present invention, the motion amount is the maximum of the motion amounts of the adjacent motion compensation units. Using a value.

【0027】また、本願の請求項17の発明に係るブロ
ック歪み検出装置は、画像信号を複数の画素からなるブ
ロックに分割した後に前記ブロックを少なくとも1つ含
む単位で動き補償を用いて符号化した符号列を入力と
し、前記符号列を復号化して復号化画像信号を生成し、
さらに前記復号化時に動き補償に用いた動きベクトルと
前記復号化画像信号の解像度とを抽出する画像復号化器
と、前記復号化画像信号の解像度が、所定のどの範囲に
属するかを判定する解像度判定器と、前記復号化画像信
号を入力とし、前記ブロック間境界にまたがる画素間の
第1の差分値と、前記ブロック間境界付近の前記ブロッ
クに属する画素間の第2の差分値とを求め、前記第1の
差分値の絶対値が第1のしきい値よりも大きく、前記第
2の差分値の絶対値が第2のしきい値よりも小さい場合
に、前記ブロック間境界にブロック歪みが発生すると判
定する画素値検査器と、前記動きベクトルを入力とし、
前記ブロック間境界にまたがる動き補償単位での動き量
が第3のしきい値よりも大きい場合に、前記ブロック間
境界に強いブロック歪みが発生すると判定する動きベク
トル検査器と、前記画素値検査器と前記動きベクトル検
査器とのブロック歪みの判定結果から、最終的なブロッ
ク歪みの発生の有無を判定するブロック歪み判定器とを
備え、前記解像度判定器により判定された、前記復号化
画像信号の解像度が大きい程、前記画素値検査器および
前記動きベクトル検査器の少なくとも一方における処理
量を減少させる、ことを特徴とする構成を有する。
The block distortion detecting device according to the invention of claim 17 of the present application divides an image signal into blocks each including a plurality of pixels, and encodes the image signals using motion compensation in a unit including at least one of the blocks. A code string is input, and the code string is decoded to generate a decoded image signal.
An image decoder for extracting a motion vector used for motion compensation during the decoding and a resolution of the decoded image signal; and a resolution for determining to which predetermined range the resolution of the decoded image signal belongs. A decision unit, which receives the decoded image signal as input, and obtains a first difference value between pixels spanning the inter-block boundary and a second difference value between pixels belonging to the block near the inter-block boundary. When the absolute value of the first difference value is larger than a first threshold value and the absolute value of the second difference value is smaller than a second threshold value, A pixel value tester that determines that the
A motion vector inspector that determines that strong block distortion occurs at the inter-block boundary when a motion amount in a motion compensation unit over the inter-block boundary is larger than a third threshold value; And a block distortion determiner that determines the presence or absence of final block distortion from the block distortion determination result with the motion vector tester, wherein the resolution determiner determines the decoded image signal. The configuration is characterized in that as the resolution increases, the processing amount in at least one of the pixel value inspector and the motion vector inspector decreases.

【0028】また、本願の請求項18の発明に係るブロ
ック歪み検出装置は、画像信号を複数の画素からなるブ
ロックに分割した後に前記ブロックを少なくとも1つ含
む単位で動き補償を用いて符号化した符号列を入力と
し、前記符号列を復号化して復号化画像信号を生成し、
さらに前記復号化時に動き補償に用いた動きベクトルと
前記復号化画像信号の解像度とを抽出する画像復号化器
と、前記復号化画像信号の解像度が、所定のどの範囲に
属するかを判定する解像度判定器と、前記復号化画像信
号を入力とし、前記ブロック間境界であり、かつ前記動
き補償単位間の境界である、ブロック間・動き補償単位
間境界にまたがる画素間の第1の差分値と、前記ブロッ
ク間・動き補償単位間境界付近の前記ブロックに属する
画素間の第2の差分値とを求め、前記第1の差分値の絶
対値が第1のしきい値よりも大きく、前記第2の差分値
の絶対値が第2のしきい値よりも小さい場合に、前記ブ
ロック間・動き補償単位間境界間にブロック歪みが発生
すると判定する画素値検査器と、前記動きベクトルを入
力とし、前記ブロック間・動き補償単位間境界にまたが
る動き補償単位での動き量が第3のしきい値よりも大き
い場合に、ブロック歪みが発生すると判定する動きベク
トル検査器と、前記画素値検査器と前記動きベクトル検
査器とのブロック歪みの判定結果から、最終的なブロッ
ク歪みの発生の有無及び強さを判定するブロック歪み判
定器とを備え、前記解像度判定器により判定された、前
記復号化画像信号の解像度が大きい程、前記画素値検査
器および前記動きベクトル検査器の少なくとも一方にお
ける処理量を減少させる、ことを特徴とする構成を有す
る。
The block distortion detecting device according to the invention of claim 18 of the present application divides an image signal into blocks each including a plurality of pixels, and encodes the image signals using motion compensation in a unit including at least one of the blocks. A code sequence is input, and the code sequence is decoded to generate a decoded image signal.
An image decoder for extracting a motion vector used for motion compensation during the decoding and a resolution of the decoded image signal; and a resolution for determining to which predetermined range the resolution of the decoded image signal belongs. A decision unit, which receives the decoded image signal as input, is a boundary between the blocks, and is a boundary between the motion compensation units, and a first difference value between pixels spanning a boundary between blocks and between motion compensation units; Calculating a second difference value between pixels belonging to the block near the boundary between the blocks and between motion compensation units, wherein an absolute value of the first difference value is larger than a first threshold value; A pixel value checker that determines that block distortion occurs between boundaries between the blocks and between motion compensation units when the absolute value of the difference value of 2 is smaller than a second threshold value; , Said bro A motion vector inspector that determines that block distortion occurs when the amount of motion in a motion compensation unit that extends over a boundary between motion and motion compensation units is greater than a third threshold value; A block distortion determiner for determining the presence or absence and strength of final block distortion based on a determination result of block distortion with a motion vector tester, wherein the decoded image signal is determined by the resolution determiner. , The processing amount of at least one of the pixel value inspector and the motion vector inspector is reduced as the resolution is higher.

【0029】また、本願の請求項19の発明に係るブロ
ック歪み検出装置は、請求項17または18記載のブロ
ック歪み検出装置において、前記処理量の減少は、前記
ブロック歪みの検出に用いる画素数を少なくすることに
より行う、ことを特徴とする構成を有する。
In the block distortion detecting apparatus according to the nineteenth aspect of the present invention, in the block distortion detecting apparatus according to the seventeenth or eighteenth aspect, the reduction in the processing amount is based on the number of pixels used for detecting the block distortion. It has a configuration characterized by performing by reducing the number.

【0030】また、本願の請求項20の発明に係るブロ
ック歪み検出装置は、請求項17または18記載のブロ
ック歪み検出装置において、前記処理量の減少は、前記
ブロック歪みを検出する強度の段階数を少なくすること
により行う、ことを特徴とする構成を有する。
In the block distortion detecting apparatus according to the present invention, the decrease in the processing amount may be based on the number of steps of the intensity for detecting the block distortion. Is performed by reducing the number of times.

【0031】また、本願の請求項21の発明に係るブロ
ック歪み検出装置は、請求項17または18記載のブロ
ック歪み検出装置において、前記処理量の減少は、前記
解像度が高い場合には、前記動き量によるブロック歪み
の検出を実行しないことにより行う、ことを特徴とする
構成を有する。
[0031] In the block distortion detecting apparatus according to the present invention, the decrease in the processing amount may be such that the motion is reduced when the resolution is high. The detection is performed by not performing the detection of the block distortion based on the amount.

【0032】また、本願の請求項22の発明に係るブロ
ック歪み除去装置は、請求項13,請求項14,請求項
17,請求項18のいずれかに記載のブロック歪み検出
装置により検出されたブロック歪みを除去する装置であ
って、前記復号化映像信号と、前記ブロック歪みの判定
結果とを入力とし、前記ブロック歪みの判定結果に応じ
て、前記復号化映像信号の前記境界付近の画素の画素値
を補正するブロック歪み除去器を備えた、ことを特徴と
する構成を有する。
A block distortion removing apparatus according to a twenty-second aspect of the present invention provides a block distortion detecting apparatus according to any one of the thirteenth, fourteenth, seventeenth, and eighteenth aspects. An apparatus for removing distortion, wherein the decoded video signal and the determination result of the block distortion are input, and according to the determination result of the block distortion, a pixel of a pixel near the boundary of the decoded video signal is input. It has a configuration characterized by comprising a block distortion remover for correcting a value.

【0033】また、本願の請求項23の発明に係るブロ
ック歪み除去装置は、請求項22記載のブロック歪み除
去装置において、前記画素値の補正は、前記ブロック歪
みの強度に応じて特性の異なるフィルタを用いて行う、
ことを特徴とする構成を有する。
According to a twenty-third aspect of the present invention, in the block distortion elimination apparatus according to the twenty-second aspect, the correction of the pixel value is performed by a filter having different characteristics depending on the intensity of the block distortion. Performed using
And a configuration characterized by the following.

【0034】また、本願の請求項24の発明に係るブロ
ック歪み除去装置は、請求項22記載のブロック歪み除
去装置において、前記画素値の補正は、所定のフィルタ
を前記境界付近の画素に対して施した後、前記ブロック
歪みの強さに応じて、前記復号化画像の画素と、前記フ
ィルタを施した画素の重み付け平均した画素値を用いる
ことにより行う、ことを特徴とする構成を有する。
According to a twenty-fourth aspect of the present invention, in the block distortion elimination apparatus according to the twenty-second aspect, the pixel value is corrected by applying a predetermined filter to pixels near the boundary. After the application, the operation is performed by using the weighted average pixel value of the pixels of the decoded image and the filtered pixels in accordance with the strength of the block distortion.

【0035】[0035]

【発明の実施の形態】以下、図面を参照しながら本発明
の実施の形態について説明する。本実施の形態において
は、画像の圧縮符号列はMPEG−2方式により生成さ
れているとする。
Embodiments of the present invention will be described below with reference to the drawings. In the present embodiment, it is assumed that the compression code string of the image is generated by the MPEG-2 method.

【0036】(実施の形態1)この実施の形態1は請求
項1ないし4,10ないし16,22,23の発明に対
応するものである。図1は本発明の実施の形態1による
ブロック歪み検出方法,ブロック歪み除去方法を使用す
るブロック歪み検出装置,ブロック歪み除去装置を有す
るMPEG−2デコーダのブロック図である。図におい
て、102は可変長符号であるMPEG−2ビデオ符号
列を復号化する可変長復号化器、103は復号化された
可変長符号の逆量子化を行う逆量子化器、104は逆量
子化器103の出力に対し逆DCT処理を行う逆DCT
器、106は可変長復号化器102の出力に対し動き補
償を行う動き補償器、105は逆DCT器104の出力
と動き補償器106の出力との加算を行う加算器、10
7は復号済みの画像データを一時記憶する画像メモリで
あり、101はこれら可変長復号化器102、逆量子化
器103、逆DCT器104、加算器105、動き補償
器106及び画像メモリ107を有するMPEG−2ビ
デオ復号化器である。
(Embodiment 1) The embodiment 1 corresponds to the inventions of claims 1 to 4, 10 to 16, 22, and 23. FIG. 1 is a block diagram of a block distortion detecting method according to a first embodiment of the present invention, a block distortion detecting device using the block distortion removing method, and an MPEG-2 decoder having the block distortion removing device. In the figure, reference numeral 102 denotes a variable length decoder for decoding an MPEG-2 video code string which is a variable length code; 103, an inverse quantizer for performing inverse quantization of the decoded variable length code; DCT that performs inverse DCT processing on the output of the transformer 103
106, a motion compensator for performing motion compensation on the output of the variable length decoder 102; 105, an adder for adding the output of the inverse DCT unit 104 and the output of the motion compensator 106;
Reference numeral 7 denotes an image memory for temporarily storing decoded image data. Reference numeral 101 denotes a variable-length decoder 102, an inverse quantizer 103, an inverse DCT unit 104, an adder 105, a motion compensator 106, and an image memory 107. MPEG-2 video decoder.

【0037】109はこのMPEG−2ビデオ復号化器
101における画像メモリ107の出力および可変長復
号化器102の出力を用いてブロック歪みの有無を検出
するブロック歪み検出器、108はブロック歪み検出器
109の出力を用いてブロック歪みを除去するブロック
歪み除去器であり、ブロック歪み検出器109が本発明
のブロック歪み検出方法に基づいてブロック歪みを検出
するブロック歪み検出装置に対応し、ブロック歪み除去
器108が本発明のブロック歪み除去方法に基づいてブ
ロック歪みを除去するブロック歪み除去装置に対応す
る。
Reference numeral 109 denotes a block distortion detector for detecting the presence or absence of block distortion using the output of the image memory 107 and the output of the variable length decoder 102 in the MPEG-2 video decoder 101, and 108 denotes a block distortion detector A block distortion remover that removes block distortion using the output of the block 109. The block distortion detector 109 corresponds to a block distortion detector that detects block distortion based on the block distortion detection method of the present invention. The block 108 corresponds to a block distortion removing device that removes block distortion based on the block distortion removing method of the present invention.

【0038】次に動作について説明する。ここでは、フ
レーム間符号化されているデータを復号化する場合につ
いて説明する。MPEG−2ビデオ符号列は、まず可変
長復号化器102に入力される。可変長復号化器102
は、入力された符号列の可変長符号を復号化し、量子化
されたDCT係数および符号化の際に用いた動きベクト
ル、量子化スケール等のパラメータを抽出する。可変長
復号化器102で得られた量子化されたDCT係数はマ
クロブロック順に逆量子化器103に入力される。逆量
子化器103では、可変長復号化器102で得られた量
子化スケールと量子化マトリクスとを用いて、マクロブ
ロックに含まれるブロック毎に量子化されたDCT係数
の逆量子化を行い、DCT係数ブロックを得る。そして
DCT係数ブロックは逆DCT器104に入力される。
逆DCT器104では、DCT係数ブロックに対して逆
DCTを施して画素ブロックを得る。逆DCT器104
で得られた画素ブロックは、加算器105に入力され
る。
Next, the operation will be described. Here, a case will be described in which inter-frame encoded data is decoded. The MPEG-2 video code string is first input to the variable length decoder 102. Variable length decoder 102
Decodes a variable-length code of an input code string and extracts quantized DCT coefficients and parameters such as a motion vector and a quantization scale used in encoding. The quantized DCT coefficients obtained by the variable length decoder 102 are input to the inverse quantizer 103 in the order of the macroblock. The inverse quantizer 103 performs inverse quantization of the DCT coefficient quantized for each block included in the macroblock using the quantization scale and the quantization matrix obtained by the variable length decoder 102, Obtain a DCT coefficient block. Then, the DCT coefficient block is input to the inverse DCT unit 104.
The inverse DCT unit 104 performs inverse DCT on the DCT coefficient block to obtain a pixel block. Inverse DCT unit 104
Are input to the adder 105.

【0039】一方、動き補償器106には、可変長復号
化器102から動きベクトルが入力される。ここでMP
EG−2方式では、動き補償はマクロブロック単位で行
われる。そして動き補償器106は、画像メモリ107
から、動きベクトルを用いて求めた参照画像も取得す
る。ここで画像メモリ107には、すでに復号化が終了
したフレームの画像データが蓄積されているとする。こ
の参照画像は加算器105に出力される。よって加算器
105には、逆DCT器104から画素ブロックが、動
き補償器106から参照画像が、それぞれ入力される。
加算器105は、これらを加算し、その結果を復号され
た画像データとして画像メモリ107に蓄積する。ここ
までの動作は一般的なMPEG−2ビデオ復号化器の動
作と同様である。
On the other hand, a motion vector is input from the variable length decoder 102 to the motion compensator 106. Where MP
In the EG-2 system, motion compensation is performed on a macroblock basis. Then, the motion compensator 106 includes an image memory 107
, The reference image obtained using the motion vector is also obtained. Here, it is assumed that the image memory 107 stores image data of a frame that has already been decoded. This reference image is output to the adder 105. Therefore, the pixel block is input from the inverse DCT unit 104 and the reference image is input from the motion compensator 106 to the adder 105.
The adder 105 adds these, and stores the result in the image memory 107 as decoded image data. The operation so far is the same as the operation of a general MPEG-2 video decoder.

【0040】次に、本実施の形態1におけるブロック歪
み検出器109の動作について説明する。図2はブロッ
ク歪み検出器109の内部構成を示したブロック図であ
る。図2に示すようにブロック歪み検出器109は、画
素値を用いてブロック歪みが発生しているか否かを検査
する画素値検査器201、動きベクトルの大きさに基づ
きブロック歪みが発生しているか否かを検査する動きベ
クトル検査器202、これら2つの検査器の出力により
ブロック歪みが発生しているか否かを総合的に判定する
ブロック歪み判定器203、の3つの回路から構成され
る。このブロック歪み検出器109には、画像メモリ1
07から復号化後の画像データが、可変長復号化器10
2から動きベクトルが、それぞれ入力される。
Next, the operation of the block distortion detector 109 according to the first embodiment will be described. FIG. 2 is a block diagram showing the internal configuration of the block distortion detector 109. As shown in FIG. 2, the block distortion detector 109 is a pixel value inspector 201 for inspecting whether or not block distortion has occurred using pixel values. It comprises three circuits: a motion vector checker 202 for checking whether or not block noise is present, and a block distortion determiner 203 for comprehensively determining whether or not block distortion has occurred based on the outputs of these two checkers. This block distortion detector 109 includes an image memory 1
07 from the variable-length decoder 10
2, motion vectors are input.

【0041】画素値検査器201は、画像メモリ107
から画像データを受け取る。画素値検査器201では、
ブロック境界の周辺画素値を用いて、そのブロック境界
にブロック歪みが発生するか否かを判定し、かつブロッ
ク歪みが発生する場合にはその強度を決定する。画素値
を用いてブロック歪みを検出する方法としては、例えば
特許公報第2643636号に開示されているように、
ブロック境界を挟んで互いに隣接する2つの画素の差の
絶対値が、互いに隣接する2つのブロック内でブロック
境界に最も近い各2つの画素の差の絶対値よりもそれぞ
れ大きい場合にブロック歪みが発生する、と判定する方
法があるが、同公報がブロック歪みの有無のみを検出す
るのに対し、本実施の形態1ではブロック歪みの有無を
検出するのみならずその強度も検出する点で異なる。
The pixel value inspector 201 is provided in the image memory 107
Receives image data from. In the pixel value inspector 201,
Using the peripheral pixel values at the block boundary, it is determined whether or not block distortion occurs at the block boundary, and if block distortion occurs, its intensity is determined. As a method of detecting block distortion using pixel values, for example, as disclosed in Japanese Patent Publication No. 2643636,
Block distortion occurs when the absolute value of the difference between two pixels adjacent to each other across the block boundary is larger than the absolute value of the difference between each two pixels closest to the block boundary in two adjacent blocks. There is a method of determining whether or not to perform block distortion. However, this publication differs from the first embodiment in that the first embodiment detects not only the presence or absence of block distortion but also the intensity thereof.

【0042】この画素値検査器201の動作を図3を用
いて説明する。図3は、ある水平方向の画素の画素値を
示す模式図である。図3において、横軸は画素位置、縦
軸は画素値を示している。また、画素dと画素eとの間
がブロック境界であるとする。今、図3(a)におい
て、 条件1:画素dと画素eとに関して画素値の差分絶対値
が第1の所定値(しきい値)TH1よりも大きい 条件2:画素bと画素c、画素cと画素d、画素eと画
素f、画素fと画素gの画素値の差分絶対値が全て第2
の所定値(しきい値)TH2よりも小さいの2つの条件
を満たしていれば、画素dと画素eの間にブロック歪み
が発生していると判断する。所定値TH1はブロック境
界を挟む2画素の差分絶対値の下限であり、所定値TH
2はブロック内の互いに隣接する2画素の差分絶対値の
上限であるため、これら所定値TH1,TH2の間に
は、 TH1>TH2 の関係が成り立てば必ずブロック歪みが発生していると
正しく判断できるが、画素b,c,d,e,f,gの値
によっては必ずしもこの関係が成り立たなくても、上述
の条件1,2のみでブロック歪みが発生していると正し
く判断できる場合がある。図3(a)は上記条件1,2
を満たしているとする。
The operation of the pixel value inspector 201 will be described with reference to FIG. FIG. 3 is a schematic diagram illustrating pixel values of pixels in a certain horizontal direction. In FIG. 3, the horizontal axis represents a pixel position, and the vertical axis represents a pixel value. It is also assumed that a block boundary is between pixel d and pixel e. Now, in FIG. 3A, condition 1: the absolute value of the difference between the pixel values of pixel d and pixel e is greater than a first predetermined value (threshold) TH1 Condition 2: pixel b and pixel c, pixel c and the pixel d, the pixel e and the pixel f, and the pixel absolute value of the pixel f and the pixel absolute value of the pixel g are all the second.
If two conditions smaller than the predetermined value (threshold) TH2 are satisfied, it is determined that block distortion has occurred between the pixel d and the pixel e. The predetermined value TH1 is the lower limit of the absolute value of the difference between two pixels sandwiching the block boundary, and the predetermined value TH1
Since 2 is the upper limit of the absolute value of the difference between two pixels adjacent to each other in the block, it is correctly determined that block distortion always occurs between these predetermined values TH1 and TH2 if the relationship TH1> TH2 holds. Although it is possible, depending on the values of the pixels b, c, d, e, f, and g, even if this relationship does not always hold, it may be possible to correctly determine that block distortion has occurred only under the above conditions 1 and 2. . FIG. 3A shows the conditions 1 and 2 described above.
Is satisfied.

【0043】また、図3(b)は上記条件1、2を満た
さないが、所定値TH1、TH2をそれぞれTH1、T
H2よりも大きな値である第1、第2の所定値TH
1’、TH2’に変更すれば、上記条件1,2を満たす
ものとする。この場合、図3(b)の画素d’と画素
e’ との間にブロック歪みが発生していると判断す
る。
FIG. 3B does not satisfy the conditions 1 and 2, but sets the predetermined values TH1 and TH2 to TH1 and T2, respectively.
First and second predetermined values TH which are values larger than H2
By changing to 1 ′ and TH2 ′, the above conditions 1 and 2 are satisfied. In this case, it is determined that block distortion has occurred between the pixel d ′ and the pixel e ′ in FIG.

【0044】また、この場合には、図3(b)では弱い
ブロック歪みが発生していると判定し、図3(a)では
強いブロック歪みが発生している、と判定する。これ
は、図3(b)の場合、ブロック内の画素の画素値の差
が大きいため、ブロック歪みが発生したとしても目立ち
にくく、このような弱いブロック歪みが発生する場合、
ブロック内の画素の画素値の差分絶対値は大きい値とな
り、これを検出しようとすれば、所定値TH1、TH2
をより大きな値TH1’、TH2’に変更する必要があ
るためである。
In this case, it is determined in FIG. 3B that weak block distortion has occurred, and in FIG. 3A, it is determined that strong block distortion has occurred. This is because, in the case of FIG. 3B, the difference between the pixel values of the pixels in the block is large, so that even if block distortion occurs, it is hardly noticeable.
The absolute value of the difference between the pixel values of the pixels in the block becomes a large value.
Must be changed to larger values TH1 ′ and TH2 ′.

【0045】なお、これらTH1’、TH2’の間にも TH1’>TH2’ の関係が成り立つことが望ましい。画素値検査器201
では、この判定結果をブロック歪み判定器203に対し
て出力する。
It is desirable that the relationship of TH1 '>TH2' also holds between TH1 'and TH2'. Pixel value inspector 201
Then, this determination result is output to the block distortion determiner 203.

【0046】図4は以上に述べた画素値検査器201の
動作を示すフローチャートであり、ステップS101に
おいて、画像メモリ107からブロック歪み判定を行う
画像データを受け取り、ステップS102において、ブ
ロック境界を検出する。このブロック境界は画素を8つ
ずつカウントすることで、容易に検出できる。次に、ス
テップS103において、上述の条件1、即ち、画素d
と画素eの値の差分絶対値が所定値TH1よりも大きい
か否かを判定する。大きければステップS104におい
て、上述の条件2、即ち、画素bと画素c、画素cと画
素d、画素eと画素f、画素fと画素gの値の差分絶対
値が全て所定値TH2よりも小さいか否かを判定する。
小さければ、ステップS105において、ブロック歪み
判定器203に対し強いブロック歪みが発生している旨
を通知する。一方、ステップS103あるいはステップ
S104において判定結果が否であれば、ステップS1
06において、上述の所定値TH1よりも大きい所定値
TH1’より、画素dと画素eの値の差分絶対値が大き
いか否かを判定する。大きい場合、ステップS107に
おいて、上述の所定値TH2よりも大きい所定値TH
2’より、画素bと画素c、画素cと画素d、画素eと
画素f、画素fと画素gの画素値の差分絶対値が全て小
さいか否かを判定する。小さい場合、ステップS108
において、ブロック歪み判定器203に対し弱いブロッ
ク歪みが発生している旨を通知する。これに対し、ステ
ップS106あるいはステップS107において判定結
果が否であれば、ステップS109において、ブロック
歪み判定器203に対しブロック歪み発生が無い旨を通
知する。
FIG. 4 is a flowchart showing the operation of the pixel value inspector 201 described above. In step S101, image data for performing block distortion determination is received from the image memory 107, and in step S102, a block boundary is detected. . This block boundary can be easily detected by counting eight pixels at a time. Next, in step S103, the above-described condition 1, that is, the pixel d
It is determined whether or not the absolute value of the difference between the value of the pixel e and the value of the pixel e is greater than a predetermined value TH1. If it is larger, in step S104, the above-mentioned condition 2, that is, the absolute differences of the values of the pixels b and c, the pixels c and d, the pixels e and f, and the values of the pixels f and g are all smaller than the predetermined value TH2 It is determined whether or not.
If it is smaller, in step S105, it notifies the block distortion determiner 203 that strong block distortion has occurred. On the other hand, if the determination result is negative in step S103 or step S104, step S1
At 06, it is determined whether or not the absolute value of the difference between the value of the pixel d and the value of the pixel e is greater than a predetermined value TH1 'which is larger than the above-described predetermined value TH1. If it is larger, in step S107, the predetermined value TH that is larger than the above-described predetermined value TH2.
From 2 ′, it is determined whether or not the absolute values of the differences between the pixel values of the pixels b and c, the pixel c and the pixel d, the pixel e and the pixel f, and the pixel f and the pixel g are all small. If smaller, step S108
, The block distortion determination unit 203 is notified that weak block distortion has occurred. On the other hand, if the determination result is negative in step S106 or step S107, in step S109, the block distortion determination unit 203 is notified that no block distortion has occurred.

【0047】動きベクトル検査器202は、可変長復号
化器102から動きベクトルを受け取る。動きベクトル
検査器202では、動きベクトルの大きさに基づいて、
ブロック歪みの有無およびその強度を検出する。これは
例えば、第3の所定値(しきい値)TH3、TH4(た
だし、TH3>TH4とする)に対して、動きベクトル
の大きさが所定値TH3よりも大きければ、強いブロッ
ク歪みが発生していると判断し、所定値TH4以上でT
H3以下である場合には、弱いブロック歪みが発生して
いると判断し、所定値TH4以下であればブロック歪み
は発生していないと判断する。ここで判定に用いる動き
ベクトルとしては、或るマクロブロック境界のブロック
歪みを検出する場合、マクロブロック境界において隣接
する2つのマクロブロックの動きベクトルのいずれか一
方の最大値が上記条件を満たすかどうかにより判定すれ
ば良い。動きベクトル検査器202は、この判定結果を
ブロック歪み判定器203に対して出力する。
The motion vector checker 202 receives a motion vector from the variable length decoder 102. In the motion vector tester 202, based on the magnitude of the motion vector,
The presence and absence of block distortion are detected. For example, if the magnitude of the motion vector is larger than the third predetermined value (threshold) TH3, TH4 (though TH3> TH4), a strong block distortion occurs. Is determined, and when the predetermined value TH4 or more, T
If it is equal to or less than H3, it is determined that weak block distortion has occurred. If it is equal to or less than the predetermined value TH4, it is determined that no block distortion has occurred. Here, as a motion vector used for the determination, when detecting block distortion at a certain macroblock boundary, whether the maximum value of one of the motion vectors of two adjacent macroblocks at the macroblock boundary satisfies the above condition is satisfied. The determination may be made according to The motion vector inspector 202 outputs the result of the determination to the block distortion determiner 203.

【0048】図5は以上に述べた動きベクトル検査器2
02の動作を示すフローチャートであり、ステップS2
01において可変長復号化器102より動きベクトルを
入力する。次にステップS202において動きベクトル
が所定値TH3よりも大きいか否かを判定する。大きけ
ればブロック歪み判定器203に対し強いブロック歪み
が発生している旨を通知する。一方、ステップS201
において判定結果が否であれば、ステップS204にお
いて、動きベクトルが所定値TH4以上でTH3以下で
あるか否かを判定する。この条件を満たしていれば、ス
テップS205において、ブロック歪み判定器203に
対し弱いブロック歪みが発生している旨を通知する。こ
れに対し、ステップS204において判定結果が否であ
れば、ステップS206において、ブロック歪み判定器
203に対しブロック歪み発生が無い旨を通知する。
FIG. 5 shows the motion vector tester 2 described above.
02 is a flowchart showing the operation of Step S2.
At 01, a motion vector is input from the variable length decoder 102. Next, in step S202, it is determined whether the motion vector is larger than a predetermined value TH3. If it is larger, it notifies the block distortion determiner 203 that strong block distortion has occurred. On the other hand, step S201
If the determination result is NO in step S204, it is determined in step S204 whether the motion vector is equal to or more than the predetermined value TH4 and equal to or less than TH3. If this condition is satisfied, in step S205, the block distortion determination unit 203 is notified that weak block distortion has occurred. On the other hand, if the determination result is negative in step S204, in step S206, the block distortion determination unit 203 is notified that no block distortion has occurred.

【0049】ブロック歪み判定器203は、画素値検査
器201から画素値に基づいたブロック歪みの検出結果
と、動きベクトル検査器202から動きベクトルの大き
さに基づいたブロック歪みの検出結果とを入力として受
け取る。ブロック歪み判定器203では、この両者のブ
ロック歪みの検出結果から、最終的なブロック歪みの有
無およびその強度を決定する。この決定方法の一例を
(表1)に示す。(表1)は例えば、画素値検査器20
1の判定結果が「弱いブロック歪み」であり、動きベク
トル検査器202の判定結果が「強いブロック歪み」で
ある場合には、「強いブロック歪み」が発生していると
判断することを示している。ブロック歪み判定器203
はこの(表1)のテーブルサーチを実行することによ
り、最終的なブロック歪み判定を行う。
The block distortion determination unit 203 receives the detection result of the block distortion based on the pixel value from the pixel value inspection unit 201 and the detection result of the block distortion based on the magnitude of the motion vector from the motion vector inspection unit 202. Receive as. The block distortion determiner 203 determines the presence / absence of the final block distortion and the strength thereof based on the detection results of the two block distortions. An example of this determination method is shown in (Table 1). (Table 1) shows, for example, the pixel value inspector 20.
If the determination result of No. 1 is “weak block distortion” and the determination result of the motion vector tester 202 is “strong block distortion”, it indicates that it is determined that “strong block distortion” has occurred. I have. Block distortion determiner 203
Performs the final block distortion determination by executing the table search of (Table 1).

【0050】[0050]

【表1】 なお、この(表1)は動きベクトル検査器202よりも
画素値検査器201の判定結果を優先させているが、こ
れは、動きベクトルが本ブロック歪み判定器203の外
部、即ち符号化の段階で作成されるため、符号化方式に
よってはブロック歪みの判定に適さないものが送信され
ることがあるため、判定の信頼性を高めるために、本ブ
ロック歪み判定器203の内部で判定できる画素値検査
器201の判定結果を重視したためである。このように
判定の信頼度を向上することで、ブロック歪みを除去す
る際の画像補正の際に適切な補正を行うことができ、不
適切な補正を行うことで生じる画質劣化を抑えることが
できる。
[Table 1] In Table 1 above, the determination result of the pixel value inspector 201 is prioritized over the motion vector inspector 202. This is because the motion vector is outside the block distortion determiner 203, that is, at the encoding stage. Therefore, in order to enhance the reliability of the determination, a pixel value that can be determined inside the block distortion determiner 203 is transmitted, because a signal that is not suitable for the determination of the block distortion may be transmitted depending on the encoding method. This is because the judgment result of the inspection device 201 is emphasized. By improving the reliability of the determination in this way, it is possible to perform appropriate correction at the time of image correction when removing block distortion, and it is possible to suppress image quality degradation caused by performing inappropriate correction. .

【0051】このブロック歪み判定器203の判定結果
は、ブロック歪み除去器108に出力される。ブロック
歪み除去器108では、画像メモリ107から画像デー
タを、ブロック歪み検出器109からブロック歪みの検
出結果を入力として受け取る。ブロック歪み除去器10
8では、ブロック歪み検出器109の検出結果を基にし
て、画像メモリ107から入力された画素に低域通過フ
ィルタを施してブロック歪みを除去する。その動作例を
図6を用いて説明する。
The result of determination by the block distortion determiner 203 is output to the block distortion remover 108. The block distortion remover 108 receives the image data from the image memory 107 and the block distortion detection result from the block distortion detector 109 as inputs. Block distortion remover 10
In step 8, based on the detection result of the block distortion detector 109, a low-pass filter is applied to the pixels input from the image memory 107 to remove block distortion. An example of the operation will be described with reference to FIG.

【0052】図6(a)は、図3(a)と同じ画素を示
す模式図である。今、ブロック歪み検出器109によ
り、図6(a)のブロック境界において強いブロック歪
みが発生していると判断されたとする。この場合、ブロ
ック境界の2画素に対してフィルタを施すとする。すな
わち、図6(a)では、画素c、d、e、fに対してフ
ィルタを施すことになる。またフィルタの強度は、画素
d、eには強く作用し、画素c、fには弱く作用する、
などとしても良い。として低域通過型フィルタを用いる
場合、図7に示すように、フィルタの強度が強ければカ
ットオフ周波数が低く減衰量も大きい。これはタップ数
を多くすることで実現できる。図7における特性Aは強
いブロックノイズが生じている画素に対して施すフィル
タ強度が強いフィルタであり、例えば5タップのフィル
タを用いる。また、図7における特性Bは弱いブロック
ノイズが生じている画素に対して施すフィルタ強度が弱
いフィルタであり、例えば3タップのフィルタを用い
る。
FIG. 6A is a schematic diagram showing the same pixels as in FIG. 3A. Now, it is assumed that the block distortion detector 109 determines that strong block distortion has occurred at the block boundary in FIG. In this case, it is assumed that a filter is applied to two pixels at the block boundary. That is, in FIG. 6A, a filter is applied to the pixels c, d, e, and f. Also, the filter strength has a strong effect on pixels d and e and a weak effect on pixels c and f.
And so on. When a low-pass filter is used, as shown in FIG. 7, if the filter strength is high, the cutoff frequency is low and the attenuation is large. This can be realized by increasing the number of taps. The characteristic A in FIG. 7 is a filter having a strong filter strength applied to pixels having strong block noise. For example, a 5-tap filter is used. The characteristic B in FIG. 7 is a filter with a weak filter strength applied to pixels having weak block noise. For example, a three-tap filter is used.

【0053】図8はブロック歪み除去器108に含まれ
る低域通過型のフィルタの構成例を示し、図8(a)は
3タップのものを、図8(b)は5タップのものを、そ
れぞれ示している。また、図8(c)はスイッチを切り
替えることで、1つのフィルタでタップ数を切り替える
ことが可能なものである。
FIG. 8 shows an example of the configuration of a low-pass filter included in the block distortion remover 108. FIG. 8 (a) shows an example of a three-tap filter, FIG. Each is shown. FIG. 8C shows that the number of taps can be switched with one filter by switching a switch.

【0054】図8において、1081,1082,10
83,1084はそれぞれの入力信号に対し所定時間分
の遅延を行う遅延器、1085,1086,1087,
1088,1089はそれぞれの入力信号に対し所定の
フィルタ係数α1,α2,α3,α4,α5を乗算する
乗算器、1101は乗算器1085,1086,108
7の出力を加算する加算器、1102は乗算器108
5,1086,1087,1088,1089の出力を
加算する加算器、1090,1091,1092はスイ
ッチである。
In FIG. 8, 1081, 1082, 10
Reference numerals 83 and 1084 denote delay units for delaying the respective input signals by a predetermined time, 1085, 1086, 1087,
1088, 1089 are multipliers for multiplying the respective input signals by predetermined filter coefficients α1, α2, α3, α4, α5, 1101 are multipliers 1085, 1086, 108
7, an adder 1102 for adding the outputs of 7
Adders for adding the outputs of 5, 1086, 1087, 1088 and 1089 are switches 1090, 1091 and 1092.

【0055】スイッチ1090,1091はブロック歪
み検出器109が強いブロック歪みである旨を検出した
場合にオンとなって図8(c)の回路を5タップの低域
通過型フィルタとし、弱いブロック歪みである旨を検出
した場合にオフとなって、図8(c)の回路を3タップ
の低域通過型フィルタとする。また、スイッチ1092
はブロック境界付近以外の画素あるいはブロック歪みが
無い旨を検出した場合の画素に対しオンとなって、画像
メモリ107からの画像データに低域通過型フィルタが
かからないように図8(c)の回路をバイパスさせる。
The switches 1090 and 1091 are turned on when the block distortion detector 109 detects that the block distortion is strong, and the circuit of FIG. Is turned off when it is detected that this is the case, and the circuit of FIG. 8C is a 3-tap low-pass filter. Also, the switch 1092
8C is turned on for a pixel other than the vicinity of the block boundary or for a pixel when it is detected that there is no block distortion, so that the low-pass filter is not applied to the image data from the image memory 107. Is bypassed.

【0056】図6(a)は、画素dには5タップの低域
通過型フィルタを、画素cには3タップの低域通過型フ
ィルタを施す場合について示している。このような処理
を行うことにより、図6(b)のような画素値が得られ
る。
FIG. 6A shows a case where a low-pass filter with 5 taps is applied to the pixel d and a low-pass filter with 3 taps is applied to the pixel c. By performing such processing, a pixel value as shown in FIG. 6B is obtained.

【0057】図6(c)は、図3(b)と同じ画素を示
す模式図である。今、ブロック歪み検出器109によ
り、図6(c)のブロック境界において弱いブロック歪
みが発生していると判断されたとする。この場合、ブロ
ック境界の1画素に対してフィルタを施すとする。すな
わち、図6(c)では、画素d’、e’に対してフィル
タを施すことになる。図6(c)は、画素d’に3タッ
プの低域通過型フィルタを施す場合について示してい
る。このような処理を行うことにより、図6(d)のよ
うな画素値が得られる。ブロック歪み除去器108で処
理を施された画像データは出力画像として出力される。
FIG. 6C is a schematic diagram showing the same pixels as in FIG. 3B. Now, it is assumed that the block distortion detector 109 determines that weak block distortion has occurred at the block boundary in FIG. In this case, it is assumed that a filter is applied to one pixel at the block boundary. That is, in FIG. 6C, the filters are applied to the pixels d ′ and e ′. FIG. 6C shows a case where a low-pass filter of three taps is applied to the pixel d ′. By performing such processing, a pixel value as shown in FIG. 6D is obtained. The image data processed by the block distortion remover 108 is output as an output image.

【0058】以上のように、本実施の形態1によるブロ
ック歪み検出方法およびブロック歪み検出装置では、ま
ずブロック境界の画素値の差分値と、ブロック内部の画
素値の差分値とを所定値と比較し、その比較結果からブ
ロック歪みの有無とその強度とを検出する。次に、動き
ベクトルの大きさに基づいて、ブロック歪みの有無とそ
の強度とを検出する。そして、画素値に基づいたブロッ
ク歪みの検出結果と、動きベクトルの大きさに基づいた
ブロック歪みの検出結果とを合わせて、最終的なブロッ
ク歪みの有無とその強度とを検出する。
As described above, in the block distortion detecting method and the block distortion detecting apparatus according to the first embodiment, first, the difference value between the pixel values at the block boundary and the difference value between the pixel values inside the block are compared with the predetermined value. The presence or absence of block distortion and its strength are detected from the comparison result. Next, based on the magnitude of the motion vector, presence / absence of block distortion and its strength are detected. Then, by combining the detection result of the block distortion based on the pixel value and the detection result of the block distortion based on the magnitude of the motion vector, the presence / absence of the final block distortion and its strength are detected.

【0059】また、本実施の形態1によるブロック歪み
除去方法およびブロック歪み除去装置では、ブロック歪
みの有無とその強度を検出した後、その強度に応じたフ
ィルタを施すことにより、ブロック歪みの除去を行う。
In the method and the apparatus for removing block distortion according to the first embodiment, the presence or absence of the block distortion and its intensity are detected, and then a filter corresponding to the intensity is applied to remove the block distortion. Do.

【0060】このような動作により、本実施の形態1に
よるブロック歪み検出方法およびブロック歪み検出装置
は、画素値に基づいたブロック歪みの検出結果と、動き
ベクトルの大きさに基づいたブロック歪みの検出結果と
を合わせて、最終的なブロック歪みの有無とその強度と
を検出しているので、従来の画素値だけや動きベクトル
だけでは検出できなかったブロック歪みを検出すること
ができる。また逆に、画素値だけや動きベクトルだけの
検出結果ではブロック歪みであると判定していた誤検出
をなくすことができる。また、本実施の形態1によるブ
ロック歪み除去方法およびブロック歪み除去装置を用い
ることにより、ブロック歪みの強度に応じたノイズ除去
を施すことができるので、画像のボケを最小限に抑えな
がら確実にかつ誤検出することなく、ブロック歪みを除
去することが出来る。
By the above operation, the block distortion detecting method and the block distortion detecting apparatus according to the first embodiment detect the block distortion based on the pixel value and the block distortion based on the magnitude of the motion vector. Since the final presence / absence of block distortion and its strength are detected in combination with the result, it is possible to detect block distortion that could not be detected with conventional pixel values or motion vectors alone. Conversely, it is possible to eliminate the erroneous detection that has been determined to be block distortion based on the detection result of only the pixel value or the motion vector. In addition, by using the block distortion removing method and the block distortion removing device according to the first embodiment, it is possible to perform noise removal according to the intensity of the block distortion, so that blurring of an image is minimized and reliably. Block distortion can be removed without erroneous detection.

【0061】なお、本実施の形態1では、符号化方式と
してMPEG−2方式を用いた場合について説明した
が、動き補償を用いる符号化方式であれば、MPEG−
1,MPEG−4,H.261,H.263等、任意の
符号化方式であっても良い。但し、ブロックの大きさ、
および動き補償単位の大きさは、符号化方法に応じて異
なるものとする。
In the first embodiment, the case where the MPEG-2 system is used as the encoding system has been described. However, if the encoding system uses motion compensation, the MPEG-2 system is used.
1, MPEG-4, H .; 261, H .; 263, etc., may be used. However, the size of the block,
The size of the motion compensation unit differs depending on the encoding method.

【0062】また、本実施の形態1では、画素値検査器
201、動きベクトル検査器202において、ブロック
歪みの強度を弱または強の2段階で検出する場合につい
て説明したが、これは3段階以上の所要の複数段階であ
っても良い。
In the first embodiment, the case where the pixel value inspector 201 and the motion vector inspector 202 detect the intensity of block distortion in two stages of weak or strong has been described. May be required in a plurality of stages.

【0063】また、本実施の形態1では、画素値検査器
201において、画素b〜gを用いてブロックノイズの
有無と強度とを検出する場合について説明したが、これ
はさらに他の画素を用いて検出しても良い。またさらに
少ない画素を用いて検出しても良い。
Further, in the first embodiment, the case where the pixel value inspector 201 detects the presence or absence and the intensity of block noise using the pixels b to g is described. May be detected. Alternatively, the detection may be performed using a smaller number of pixels.

【0064】また、本実施の形態1では、動きベクトル
検査器202において、隣接する2マクロブロックの動
きベクトルのいずれか一方が所定値よりも大きければブ
ロック歪みが発生すると判定する場合について説明した
が、これは他の方法、例えば両者共に所定値よりも大き
ければブロック歪みが発生すると判定しても良い。
In the first embodiment, the case has been described where the motion vector tester 202 determines that block distortion occurs if any one of the motion vectors of two adjacent macroblocks is larger than a predetermined value. This may be determined by another method, for example, if both are larger than a predetermined value, block distortion occurs.

【0065】また、本実施の形態1では、ブロック歪み
判定器203では、(表1)を用いて最終的なブロック
歪みの判定を行うとして説明したが、最終的なブロック
歪みの判定方法は、(表1)の組み合わせに限るもので
はない。
Also, in the first embodiment, the block distortion determining unit 203 has been described as performing the final block distortion determination using (Table 1). However, the final block distortion determination method is as follows. It is not limited to the combination of (Table 1).

【0066】また、本実施の形態1では、ブロック歪み
除去器108で用いるフィルタが低域通過フィルタであ
る場合について説明したが、これはブロック歪みを除去
するフィルタであれば他のフィルタ、例えばメディアン
フィルタや非線形フィルタ等であっても良い。
Further, in the first embodiment, the case where the filter used in the block distortion remover 108 is a low-pass filter has been described. A filter or a non-linear filter may be used.

【0067】また、本実施の形態1では、フィルタの種
類が中程度のフィルタである場合にはブロック境界の4
画素にフィルタを施し、フィルタの種類が強いフィルタ
である場合にはブロック境界の6画素にフィルタを施す
場合について説明したが、フィルタをかける画素の範囲
は、本実施の形態1とは異なる範囲であっても良い。
Further, in the first embodiment, when the type of the filter is a medium filter, the block boundary
The case where the filter is applied to the pixel and the filter is applied to the six pixels at the block boundary when the type of the filter is a strong filter has been described. There may be.

【0068】また、本実施の形態1では、水平方向に隣
接するブロック境界のブロック歪みを検出、除去する場
合について説明したが、垂直方向に隣接するブロック境
界についても同様の処理を施すことができる。
Further, in the first embodiment, the case where the block distortion at the horizontally adjacent block boundary is detected and removed has been described. However, the same processing can be applied to the vertically adjacent block boundary. .

【0069】また、本実施の形態1では、画素値検査器
201において、フレーム間符号化が行われている場合
に、画素値を用いてブロック歪みを検出し、動きベクト
ル検査器202において、動きベクトルを用いてブロッ
ク歪みを検出する方法、装置について説明したが、これ
は画素値検査器201のみを用いてブロック歪みを検出
しても良い。特にフレーム内符号化を施されており、動
きベクトル情報がないような場合には、画素値検査器2
01のみを用いてブロック歪みを検出すれば良い。
In the first embodiment, when inter-frame encoding is performed in the pixel value inspector 201, block distortion is detected using pixel values, and the motion vector Although the method and apparatus for detecting block distortion using vectors have been described, the block distortion may be detected using only the pixel value inspector 201. In particular, when intra-frame encoding is performed and there is no motion vector information, the pixel value inspector 2
Block distortion may be detected using only 01.

【0070】(実施の形態2)この実施の形態2は請求
項12,24の発明に対応するものである。実施の形態
2では実施の形態1と比較して、ブロック歪み除去器1
08の動作が異なる。従って、ここではブロック歪み除
去器108の動作についてのみ説明する。
(Embodiment 2) Embodiment 2 corresponds to the twelfth and twenty-fourth aspects of the present invention. The second embodiment is different from the first embodiment in that the block distortion remover 1
08 is different. Therefore, only the operation of the block distortion remover 108 will be described here.

【0071】図9は、本実施の形態2におけるブロック
歪み除去器108の構成を示したものであり、ブロック
歪み除去器108はフィルタ器501と重み付け平均演
算器502とから構成される。
FIG. 9 shows the configuration of the block distortion remover 108 according to the second embodiment. The block distortion remover 108 includes a filter 501 and a weighted average calculator 502.

【0072】ブロック歪み除去器108には、画像メモ
リ107から画像データが、ブロック歪み検出器109
からブロック歪みの検出結果が、それぞれ入力される。
画像メモリ107から入力された画像データは、フィル
タ器501と重み付け平均演算器502とに入力され
る。フィルタ器501では、全てのブロック境界付近の
画素にフィルタを施す。これは例えば、ブロック境界に
隣接する画素に対しては、5タップの低域通過フィルタ
を施し、その隣の画素に対しては3タップの低域通過フ
ィルタを施すといった処理である。フィルタ器501の
出力は、重み付け平均演算器502に対して出力され
る。
The block distortion remover 108 receives the image data from the image memory 107 and the block distortion detector 109.
, The block distortion detection result is input.
The image data input from the image memory 107 is input to the filter 501 and the weighted average calculator 502. The filter 501 filters all the pixels near the block boundary. This is, for example, a process of applying a 5-tap low-pass filter to a pixel adjacent to a block boundary and applying a 3-tap low-pass filter to a pixel adjacent thereto. The output of the filter 501 is output to the weighted average calculator 502.

【0073】重み付け平均演算器502には、画像メモ
リ107から画像データが、フィルタ器501からブロ
ック境界の画素にフィルタを施された画像データが、ブ
ロック歪み検出器109からブロック歪みの検出結果
が、それぞれ入力される。重み付け平均演算器502
は、ブロック歪みの検出結果に従って、画像メモリ10
7から入力された画像データと、フィルタ器501から
入力された画像データとを重み付け平均して出力する。
その様子を図10を用いて説明する。
The weighted average calculator 502 receives the image data from the image memory 107, the image data obtained by filtering the pixels at the block boundaries from the filter 501, the detection result of the block distortion from the block distortion detector 109, Entered respectively. Weighted average calculator 502
Is calculated based on the block distortion detection result.
7 and the image data input from the filter 501 are weighted and averaged and output.
This will be described with reference to FIG.

【0074】図10は、ブロック境界付近の画素とその
画素値を示した模式図である。図10において、横軸は
画素位置を、縦軸は画素値を示している。図10(a)
は、画像メモリ107から入力された画像データであ
り、図10(b)は、フィルタ器501から入力された
画像データである。すなわち、図10(b)の画素c〜
fは、図10(a)の画素に対して低域通過フィルタを
施して生成された画素である。
FIG. 10 is a schematic diagram showing pixels near the block boundary and their pixel values. In FIG. 10, the horizontal axis indicates a pixel position, and the vertical axis indicates a pixel value. FIG. 10 (a)
Is the image data input from the image memory 107, and FIG. 10B is the image data input from the filter 501. That is, the pixels c to c in FIG.
f is a pixel generated by applying a low-pass filter to the pixel of FIG.

【0075】今、ブロック歪み検出器109では、ブロ
ック歪みの強度を「無」、「弱」、「強」のいずれか1
つの歪みとして決定するものと仮定する。ブロック歪み
検出器109において、このブロック境界のブロック歪
みが「無」として検出された場合には、重み付け平均演
算器502は、図10(a)の画像データ、すなわち画
像メモリ107から入力された画像データをそのまま出
力する。また、このブロック境界のブロック歪みが
「弱」として検出された場合には、重み付け平均演算器
502は、画素c〜fについて、図10(a)の画像デ
ータと図10(b)の画像データとを平均して出力す
る。すなわち画像メモリ107から入力された画像デー
タとフィルタ器501から入力された画像データとを重
み付け平均して出力する。この場合には、画像データは
図10(c)のようになる。また、このブロック境界の
ブロック歪みが「強」として検出された場合には、重み
付け平均演算器502は、図10(b)の画像データ、
すなわちフィルタ器501から入力された画像データを
そのまま出力する。
Now, the block distortion detector 109 sets the intensity of the block distortion to one of “none”, “weak”, and “strong”.
It is assumed that one distortion is determined. When the block distortion at the block boundary is detected as “absent” by the block distortion detector 109, the weighted average calculator 502 outputs the image data of FIG. Output the data as is. When the block distortion at the block boundary is detected as “weak”, the weighted average calculator 502 calculates the image data of FIG. 10A and the image data of FIG. Are averaged and output. That is, the image data input from the image memory 107 and the image data input from the filter 501 are weighted and averaged and output. In this case, the image data is as shown in FIG. When the block distortion at the block boundary is detected as “strong”, the weighted average calculator 502 outputs the image data shown in FIG.
That is, the image data input from the filter 501 is output as it is.

【0076】以上のように、本実施の形態2におけるブ
ロック歪み除去方法およびブロック歪み除去装置では、
検出されたブロック歪みの有無とその強度を入力とし、
入力画像の全てのブロック境界付近の画素にフィルタを
施し、入力画像と、フィルタを施された画像とをブロッ
ク歪みの強度に応じて重み付け平均して出力する。
As described above, the block distortion removing method and the block distortion removing apparatus according to the second embodiment
The presence or absence of the detected block distortion and its strength are input,
A filter is applied to all pixels near the block boundary of the input image, and the input image and the filtered image are weighted and averaged according to the strength of block distortion and output.

【0077】このような動作により、本実施の形態2の
ブロック歪み除去方法またはブロック歪み除去装置を用
いることにより、検出されたブロック歪みの強度に応じ
てフィルタの組み合わせを変更する必要がなく、一種類
のフィルタのみでブロック歪みの強度に応じた除去を行
うことができる。これにより、ハードウェア規模等の削
減を図ることができる。また、フィルタは1種類であり
ながら、ブロック歪みの強度に応じて、入力画像とフィ
ルタ画像との重みを変更することから、ブロック歪みの
強度に応じたノイズ除去を施すことができ、画像のボケ
を最小限に抑えながら確実にかつ誤検出することなく、
ブロック歪みを除去することが出来る。
With such an operation, by using the block distortion removing method or the block distortion removing apparatus according to the second embodiment, it is not necessary to change the combination of filters according to the strength of the detected block distortion. The removal according to the strength of the block distortion can be performed only by the kinds of filters. This makes it possible to reduce the hardware scale and the like. In addition, although there is only one type of filter, the weight between the input image and the filter image is changed in accordance with the strength of the block distortion. Reliable and without false detection while minimizing
Block distortion can be removed.

【0078】なお、本実施の形態2では、ブロック歪み
の強度が弱または強の2段階で検出されている場合につ
いて説明したが、これは3段階以上であっても良い。ま
た、この場合には、ブロックノイズの強度が強いほど、
フィルタ器501から入力された画像データに対する重
みを大きくすれば良い。
Although the second embodiment has been described with reference to the case where the strength of the block distortion is detected in two stages of weak or strong, the number of stages may be three or more. Also, in this case, the stronger the block noise,
The weight for the image data input from the filter 501 may be increased.

【0079】また、本実施の形態2では、フィルタ器5
01において、ブロック境界の4画素に対してフィルタ
を施す場合について説明したが、フィルタをかける画素
の範囲は実施の形態2とは異なる範囲であっても良い。
In the second embodiment, the filter 5
In FIG. 01, a case has been described where a filter is applied to four pixels at the block boundary. However, the range of pixels to be filtered may be different from that in the second embodiment.

【0080】また、本実施の形態2では、水平方向に隣
接するブロック境界のブロック歪みを検出、除去する場
合について説明したが、垂直方向に隣接するブロック境
界についても同様の処理を施すことができる。
In the second embodiment, the case where the block distortion at the horizontally adjacent block boundary is detected and removed has been described. However, the same processing can be applied to the vertically adjacent block boundary. .

【0081】(実施の形態3)この実施の形態3は、請
求項5ないし11および17ないし23の発明に対応す
るものである。図11は、本実施の形態3によるブロッ
ク歪み検出方法およびブロック歪み除去方法を実行する
ブロック歪み検出装置およびブロック歪み除去装置を有
するMPEG−2デコーダを示すブロック図である。図
において、可変長復号化器102、逆量子化器103、
逆DCT器104、加算器105、動き補償器106、
画像メモリ107は図1と同様のものである。
(Embodiment 3) Embodiment 3 corresponds to the inventions of claims 5 to 11 and 17 to 23. FIG. 11 is a block diagram showing an MPEG-2 decoder having a block distortion detecting device and a block distortion removing device that execute the block distortion detecting method and the block distortion removing method according to the third embodiment. In the figure, a variable length decoder 102, an inverse quantizer 103,
Inverse DCT unit 104, adder 105, motion compensator 106,
The image memory 107 is the same as in FIG.

【0082】本実施の形態3におけるブロック歪み検出
装置およびブロック歪み除去装置はこれにさらにブロッ
ク歪み除去器108、ブロック歪み検出器709、解像
度判定器710を追加したものである。この解像度判定
器710はMPEG−2符号列のデコード結果に含まれ
る解像度データを参照する等によりその解像度がどの範
囲に属するかを判定するものである。
The block distortion detecting device and the block distortion removing device according to the third embodiment further include a block distortion removing unit 108, a block distortion detecting unit 709, and a resolution judging unit 710. The resolution determiner 710 determines which range the resolution belongs to by referring to resolution data included in the decoding result of the MPEG-2 code string.

【0083】可変長復号化器102、逆量子化器10
3、逆DCT器104、加算器105、画像メモリ10
7の動作は、実施の形態1と同様であるので、説明は省
略する。ただし、実施の形態3では、可変長復号化器1
02において、入力符号列から得られる解像度、即ち画
素数、の情報を解像度判定器710に対して出力する機
能を有する点が、実施の形態1と異なる。
Variable length decoder 102, inverse quantizer 10
3. Inverse DCT unit 104, adder 105, image memory 10
The operation of 7 is the same as that of the first embodiment, and the description is omitted. However, in the third embodiment, the variable length decoder 1
02 is different from the first embodiment in that it has a function of outputting information on the resolution obtained from the input code string, that is, the number of pixels, to the resolution determiner 710.

【0084】解像度判定器710では、可変長復号化器
102から映像の解像度、即ち、画面の水平画素数と垂
直画素数が入力される。解像度判定器710では、解像
度が所定の解像度以上であるか否かを判定する。そし
て、その判定結果をブロック歪み検出器709に対して
出力する。
The resolution determiner 710 receives the video resolution from the variable length decoder 102, that is, the number of horizontal pixels and the number of vertical pixels of the screen. The resolution determiner 710 determines whether the resolution is equal to or higher than a predetermined resolution. Then, the determination result is output to the block distortion detector 709.

【0085】次にブロック歪み検出器709の動作につ
いて説明する。図12はブロック歪み検出器709の内
部構成を示したブロック図である。図12に示すように
ブロック歪み検出器709は、画素値検査器801、動
きベクトル検査器802、ブロック歪み判定器203か
ら構成される。ブロック歪み検出器709には、画像メ
モリ107から復号化後の画像データが、可変長復号化
器102から動きベクトルが、それぞれ入力され、さら
に、解像度判定結果が解像度判定器710から入力され
る。
Next, the operation of the block distortion detector 709 will be described. FIG. 12 is a block diagram showing the internal configuration of the block distortion detector 709. As shown in FIG. 12, the block distortion detector 709 includes a pixel value inspector 801, a motion vector inspector 802, and a block distortion determiner 203. The block distortion detector 709 receives the decoded image data from the image memory 107, the motion vector from the variable length decoder 102, and the resolution determination result from the resolution determiner 710.

【0086】画素値検査器801は、画像メモリ107
から復号化後の画像データを、解像度判定器710から
解像度判定結果を、それぞれ受け取る。画素値検査器8
01は、解像度判定器710により判定された解像度が
低い場合には、実施の形態1における画素値検査器20
1と同様の動作を行う。即ち、図3(a)において、画
素dと画素eとに関して画素値の差分絶対値が所定値T
H1よりも大きく、画素bと画素c、画素cと画素d、
画素eと画素f、画素fと画素gの画素値の差分絶対値
が全て所定値TH2よりも小さければ、画素dと画素e
の間にブロック歪みが発生していると判断する。
The pixel value inspector 801 is provided in the image memory 107
, And the resolution determination result from the resolution determiner 710, respectively. Pixel value inspection device 8
01 is the pixel value tester 20 according to the first embodiment when the resolution determined by the resolution determiner 710 is low.
The same operation as in 1 is performed. That is, in FIG. 3A, the difference absolute value of the pixel value between the pixel d and the pixel e is the predetermined value T.
Larger than H1, pixels b and c, pixels c and d,
If the absolute value of the difference between the pixel values of the pixel e and the pixel f and the pixel value of the pixel f and the pixel g is all smaller than the predetermined value TH2, the pixel d and the pixel e
It is determined that block distortion has occurred during.

【0087】また、解像度が高い場合には、実施の形態
1における画素値検査器201の動作よりも少ない処理
量で、ブロック歪みの検出を行う。ここで、処理量を少
なくする方法としては、例えばブロック歪みの検出に用
いる画素数を減らす方法や、ブロック歪みの検出強度の
段階数を減らす等の方法がある。ブロック歪みの検出に
用いる画素数を減らす場合には、例えば、実施の形態1
では、図3において、画素b〜gを用いて検出する場合
について説明したが、これを画素c〜fを用いて検出す
るようにすれば良い。また、ブロック歪みの検出強度の
段階数を減らす場合には、例えば、実施の形態1では画
素値を所定値TH1,TH2およびこれより大きい所定
値TH1’,TH2’と比較することでブロック歪みを
「無」、「弱」、「強」の3段階に分類するようにした
が、これをブロック歪み「有」,「無」の2段階に分類
するようにしてもよい。画素値検査器201では、この
判定結果をブロック歪み判定器203に対して出力す
る。
When the resolution is high, the block distortion is detected with a smaller processing amount than the operation of the pixel value inspector 201 in the first embodiment. Here, as a method of reducing the processing amount, for example, there are a method of reducing the number of pixels used for detecting block distortion, a method of reducing the number of steps of the detection intensity of block distortion, and the like. To reduce the number of pixels used for detecting block distortion, for example, the first embodiment
In FIG. 3, the case where the detection is performed using the pixels b to g is described. However, the detection may be performed using the pixels c to f. When the number of steps of the detection strength of the block distortion is reduced, for example, in the first embodiment, the pixel value is compared with the predetermined values TH1 and TH2 and the predetermined values TH1 ′ and TH2 ′ which are larger than the predetermined values TH1 and TH2 ′. Although the classification is made into three stages of "absence", "weak", and "strong", it may be classified into two stages of block distortion "presence" and "absence". The pixel value inspector 201 outputs this determination result to the block distortion determiner 203.

【0088】動きベクトル検査器802は、可変長復号
化器102から動きベクトルを、解像度判定器710か
ら解像度判定結果を、それぞれ受け取る。動きベクトル
検査器802では、解像度判定器710により判定され
た解像度が低い場合には、実施の形態1における動きベ
クトル検査器202と同様の動作をする。即ち、動きベ
クトル検査器802は、動きベクトルの大きさに基づい
て、ブロック歪みの有無およびその強度を検出する。こ
れは例えば、所定値TH3、TH4に対して、動きベク
トルの大きさが所定値TH3よりも大きければ、強いブ
ロック歪みが発生していると判断し、所定値TH4以上
でTH3以下である場合には、弱いブロック歪みが発生
していると判断し、所定値TH4以下であればブロック
歪みは発生していないと判断する。
The motion vector checker 802 receives a motion vector from the variable length decoder 102 and a resolution determination result from the resolution determiner 710, respectively. When the resolution determined by the resolution determiner 710 is low, the motion vector inspector 802 performs the same operation as the motion vector inspector 202 according to the first embodiment. That is, the motion vector tester 802 detects the presence / absence of block distortion and its strength based on the magnitude of the motion vector. For example, when the magnitude of the motion vector is larger than the predetermined value TH3 with respect to the predetermined values TH3 and TH4, it is determined that strong block distortion has occurred. Determines that weak block distortion has occurred, and determines that no block distortion has occurred if it is equal to or less than the predetermined value TH4.

【0089】また、解像度が高い場合には、実施の形態
1における動きベクトル検査器202の動作よりも少な
い処理量で、動きベクトルの検査を行う。ここで、処理
量を少なくする方法としては、動きベクトルのブロック
歪み検出の段階数を減らす、または動きベクトルによる
ブロック歪みの検出を行わないといった方法がある。
When the resolution is high, the motion vector is inspected with a smaller processing amount than the operation of the motion vector inspector 202 in the first embodiment. Here, as a method of reducing the processing amount, there is a method of reducing the number of stages of detecting the block distortion of the motion vector, or not detecting the block distortion by the motion vector.

【0090】ブロック歪み判定器203は、画素値検査
器801から画素値に基づいたブロック歪みの検出結果
と、動きベクトル検査器802から動きベクトルの大き
さに基づいたブロック歪みの検出結果とを入力として受
け取る。ブロック歪み判定器203では、この両者のブ
ロック歪みの検出結果から、最終的なブロック歪みの有
無およびその強度を決定する。この動作は、実施の形態
1と同様であるので、説明は省略する。ブロック歪み判
定器203の判定結果は、ブロック歪み除去器108に
対して出力される。
The block distortion judgment unit 203 receives the detection result of the block distortion based on the pixel value from the pixel value inspection unit 801 and the detection result of the block distortion based on the magnitude of the motion vector from the motion vector inspection unit 802. Receive as The block distortion determiner 203 determines the presence / absence of the final block distortion and the strength thereof based on the detection results of the two block distortions. This operation is the same as in the first embodiment, and a description thereof will not be repeated. The determination result of the block distortion determiner 203 is output to the block distortion remover 108.

【0091】ブロック歪み除去器108では、画像メモ
リ107から画像データを、ブロック歪み検出器709
からブロック歪みの検出結果を入力として受け取る。ブ
ロック歪み除去器108では、ブロック歪み検出器70
9の検出結果を基にして、ブロック歪みを除去する。そ
の動作は、実施の形態1または実施の形態2と同様であ
るので、説明は省略する。
The block distortion remover 108 converts the image data from the image memory 107 into a block distortion detector 709.
Receives the detection result of the block distortion as an input. In the block distortion remover 108, the block distortion detector 70
Based on the detection result of No. 9, block distortion is removed. The operation is the same as in the first embodiment or the second embodiment, and the description is omitted.

【0092】以上のように、本実施の形態3によるブロ
ック歪み検出方法およびブロック歪み検出装置では、ま
ずブロック境界の画素値の差分値と、ブロック内部の画
素値の差分値とを所定値と比較し、その比較結果からブ
ロック歪みの有無とその強度とを検出する。次に、動き
ベクトルの大きさに基づいて、ブロック歪みの有無とそ
の強度とを検出する。この際には、入力映像の解像度に
よって処理方法を変更し、解像度が高いほど少ない処理
量でブロック歪みを検出する。そして、画素値に基づい
たブロック歪みの検出結果と、動きベクトルの大きさに
基づいたブロック歪みの検出結果とを合わせて、最終的
なブロック歪みの有無とその強度とを検出する。
As described above, in the block distortion detecting method and the block distortion detecting apparatus according to the third embodiment, first, the difference between the pixel value at the block boundary and the difference between the pixel values inside the block are compared with the predetermined value. The presence or absence of block distortion and its strength are detected from the comparison result. Next, based on the magnitude of the motion vector, presence / absence of block distortion and its strength are detected. At this time, the processing method is changed according to the resolution of the input video, and the higher the resolution, the smaller the amount of processing to detect the block distortion. Then, by combining the detection result of the block distortion based on the pixel value and the detection result of the block distortion based on the magnitude of the motion vector, the presence / absence of the final block distortion and its strength are detected.

【0093】このような動作により、本実施の形態3の
ブロック歪み検出方法およびブロック歪み検出装置を用
いることにより、画素値に基づいたブロック歪みの検出
結果と、動きベクトルの大きさに基づいたブロック歪み
の検出結果とを合わせて、最終的なブロック歪みの有無
とその強度とを検出しているので、従来の画素値だけや
動きベクトルだけでは検出できなかったブロック歪みの
発生を検出することができる。また逆に、画素値だけや
動きベクトルだけではブロック歪みとして誤検出してい
たものをなくすことができる。
By using the block distortion detecting method and the block distortion detecting device according to the third embodiment, the detection result of the block distortion based on the pixel value and the block distortion based on the magnitude of the motion vector are obtained. Since the presence and intensity of the final block distortion are detected together with the distortion detection result, it is possible to detect the occurrence of block distortion that could not be detected with conventional pixel values or motion vectors alone. it can. Conversely, it is possible to eliminate the erroneously detected block distortion using only the pixel value or the motion vector.

【0094】また、本実施の形態3によるブロック歪み
除去方法およびブロック歪み除去装置を用いることによ
り、ブロック歪みの強度に応じたノイズ除去を施すの
で、画像のボケを最小限に抑えながら確実にかつ誤検出
することなく、ブロック歪みを除去することが出来る。
また、入力映像の解像度が高いほど少ない処理量でブロ
ック歪みを検出する。すなわち、解像度が低い場合に
は、復号化処理の処理量は少なく、ブロック歪みの除去
処理は多くなり、解像度が高い場合には、復号化処理の
処理量は多く、ブロック歪みの除去処理は少なくなり、
復号化処理とブロックノイズ除去処理との合計の処理量
を抑えることができる。
In addition, by using the block distortion removing method and the block distortion removing device according to the third embodiment, noise removal is performed in accordance with the strength of the block distortion. Block distortion can be removed without erroneous detection.
Also, the higher the resolution of the input video, the smaller the amount of processing to detect block distortion. That is, when the resolution is low, the processing amount of the decoding processing is small and the block distortion removal processing is large, and when the resolution is high, the decoding processing amount is large and the block distortion removal processing is small. Become
It is possible to suppress the total processing amount of the decoding processing and the block noise removal processing.

【0095】なお、本実施の形態3では、符号化方式と
してMPEG−2方式を用いた場合について説明した
が、動き補償を用いる符号化方式であれば、MPEG−
1,MPEG−4,H.261,H.263の他、任意
の符号化方式であっても良い。但し、ブロックの大き
さ、および動き補償単位の大きさは、符号化方法に応じ
て異なるものとする。
Although the third embodiment has been described with reference to the case where the MPEG-2 system is used as the encoding system, if the encoding system uses motion compensation, the MPEG-2 system is used.
1, MPEG-4, H .; 261, H .; In addition to H.263, any coding method may be used. However, the size of the block and the size of the motion compensation unit are different depending on the encoding method.

【0096】また、本実施の形態3では、入力映像の解
像度が高い場合には、画素値検査器801および動きベ
クトル検査器802の両方で処理量を少なくする場合に
ついて説明したが、これはいずれか一方の処理量のみを
少なくしても良い。
In the third embodiment, the case where the processing amount is reduced by both the pixel value inspector 801 and the motion vector inspector 802 when the resolution of the input image is high has been described. Only one of the processing amounts may be reduced.

【0097】また、本実施の形態3では、入力映像の解
像度が高い、または低いの2段階で、画素値検査器80
1および動きベクトル検査器802の処理量を切り替え
る場合について説明したが、この段階数は“2”以上で
あっても良い。
Further, according to the third embodiment, the pixel value inspector 80 is provided in two stages, that is, when the resolution of the input image is high or low.
Although the description has been given of the case of switching the processing amount of 1 and the motion vector inspector 802, the number of stages may be “2” or more.

【0098】また、本実施の形態3では、画素値検査器
801において、フレーム間符号化が行われている場合
に、画素値を用いてブロック歪みを検出し、動きベクト
ル検査器802において、動きベクトルを用いてブロッ
ク歪みを検出する方法、装置について説明したが、これ
は画素値検査器801のみを用いてブロック歪みを検出
しても良い。特にフレーム内符号化を施されており、動
きベクトル情報がないような場合には、画素値検査器8
01のみを用いてブロック歪みを検出すれば良い。
Further, in the third embodiment, when inter-frame encoding is performed in pixel value inspector 801, block distortion is detected using pixel values, and motion vector inspector 802 detects Although the method and apparatus for detecting block distortion using vectors have been described, the block distortion may be detected using only the pixel value inspector 801. In particular, when intra-frame encoding is performed and there is no motion vector information, the pixel value inspector 8
Block distortion may be detected using only 01.

【0099】さらに、上記実施の形態1ないし3では、
ブロック同士の境界におけるブロック歪みを検出,除去
するようにしたが、これはブロック同士の境界でありか
つ動き補償単位、即ちマクロブロック同士の境界でもあ
るブロック間・動き補償単位間境界におけるブロック歪
みを検出,除去するようにしても良く、これら実施の形
態と同様の効果が得られる。
Further, in the first to third embodiments,
The block distortion at the boundary between the blocks is detected and removed. However, the block distortion at the boundary between the blocks and the motion compensation unit, that is, the boundary between the blocks and the motion compensation unit which is also the boundary between the macroblocks is detected. Detection and removal may be performed, and the same effects as those of the embodiments can be obtained.

【0100】[0100]

【発明の効果】以上のように、本願の請求項1の発明に
係るブロック歪み除去方法によれば、画像信号を複数の
画素からなるブロックに分割した後に符号化した符号列
を復号化して得られる復号化画像信号に対して、前記ブ
ロック間境界にまたがる画素間の第1の差分値と、前記
ブロック間境界付近の前記ブロック内に属する画素間の
第2の差分値とを求め、前記第1の差分値と前記第2の
差分値との値に応じて、前記ブロック間境界付近の画素
の画素値を補正する、ようにしたので、ブロック歪みを
低減でき、画質劣化を抑えることができる効果がある。
As described above, according to the block distortion elimination method according to the first aspect of the present invention, an image signal obtained by dividing an image signal into blocks composed of a plurality of pixels and then decoding the coded code sequence is obtained. For the decoded image signal to be obtained, a first difference value between pixels spanning the inter-block boundary and a second difference value between pixels belonging to the block near the inter-block boundary are obtained. Since the pixel value of the pixel near the boundary between the blocks is corrected according to the difference value of 1 and the second difference value, block distortion can be reduced and image quality degradation can be suppressed. effective.

【0101】また、本願の請求項2の発明に係るブロッ
ク歪み検出方法によれば、画像信号を複数の画素からな
るブロックに分割した後に符号化した符号列を復号化し
て得られる復号化画像信号に対して、前記ブロック間境
界にまたがる画素間の第1の差分値と、前記ブロック間
境界付近の前記ブロック内に属する画素間の第2の差分
値とを求め、前記第1の差分値の絶対値が第1のしきい
値よりも大きく、前記第2の差分値の絶対値が第2のし
きい値よりも小さい場合に、前記ブロック境界間にブロ
ック歪みが発生すると判定するとともに、前記第1およ
び第2のしきい値が小さいほど、前記ブロック境界間に
強いブロック歪みが発生すると判定する、ようにしたの
で、ブロック歪みの有無のみならずその強度も検出で
き、この検出結果を用いてブロック歪み補正を行う際
に、より適切な補正を施すことが可能となる効果があ
る。
Further, according to the block distortion detecting method according to the second aspect of the present invention, a decoded image signal obtained by dividing an image signal into blocks composed of a plurality of pixels and then decoding a coded code sequence is obtained. And a second difference value between pixels belonging to the block near the inter-block boundary and a second difference value between pixels belonging to the block near the inter-block boundary are calculated. When the absolute value is larger than a first threshold value and the absolute value of the second difference value is smaller than a second threshold value, it is determined that block distortion occurs between the block boundaries, and As the first and second thresholds are smaller, it is determined that stronger block distortion occurs between the block boundaries, so that not only the presence or absence of block distortion but also its intensity can be detected. When performing block distortion correction have an effect of it becomes possible to perform more appropriate correction.

【0102】また、本願の請求項3の発明に係るブロッ
ク歪み検出方法によれば、画像信号を複数の画素からな
るブロックに分割した後に前記ブロックを少なくとも1
つ含む単位で動き補償を用いて符号化した符号列を復号
化して得られる復号化画像信号に対して、前記ブロック
間境界であり、かつ前記動き補償単位の境界である、ブ
ロック間・動き補償単位間境界にまたがる画素間の第1
の差分値と、前記ブロック間・動き補償単位間境界付近
の前記ブロック内に属する画素間の第2の差分値とを求
め、前記第1の差分値の絶対値が第1のしきい値よりも
大きく、前記第2の差分値の絶対値が第2のしきい値よ
りも小さく、前記ブロック間・動き補償単位間境界にま
たがる動き補償単位での動き量が第3のしきい値よりも
大きい場合には、前記境界間にブロック歪みが発生する
と判定するとともに、前記第1および第2のしきい値が
小さいとき、前記ブロック間・動き補償単位間境界間に
またがる動き補償単位での動き量が大きいとき、前記境
界間に強いブロック歪みが発生すると判定する、ように
したので、画素値に基づいたブロック歪みの検出結果
と、動きベクトルの大きさに基づいたブロック歪みの検
出結果とを合わせて、最終的なブロック歪みの有無とそ
の強度とを検出でき、画素値だけや動きベクトルだけで
は検出できなかったブロック歪みを検出することができ
る。また逆に、画素値だけや動きベクトルだけの検出結
果ではブロック歪みであると判定していた誤検出をなく
すことができる。また、この検出結果を用いてブロック
歪みを除去する際に、ブロック歪みの強度に応じたノイ
ズ除去を施すようにすることで、画像のボケを最小限に
抑えながら確実にかつ誤検出することなく、ブロック歪
みを除去することが可能となる効果がある。
Further, according to the block distortion detecting method according to the third aspect of the present invention, after the image signal is divided into blocks each including a plurality of pixels, at least one block is divided.
For a decoded image signal obtained by decoding a code sequence coded using motion compensation in a unit including two blocks, the inter-block boundary and the boundary of the motion compensation unit, the inter-block / motion compensation First between pixels across unit boundaries
And a second difference value between pixels belonging to the block near the inter-block / motion compensation unit boundary, and the absolute value of the first difference value is calculated from a first threshold value. And the absolute value of the second difference value is smaller than the second threshold value, and the motion amount in the motion compensation unit over the inter-block / motion compensation unit boundary is larger than the third threshold value. When it is larger, it is determined that block distortion occurs between the boundaries, and when the first and second thresholds are smaller, the motion in the motion compensation unit extending between the inter-block / motion compensation unit boundaries is determined. When the amount is large, it is determined that strong block distortion occurs between the boundaries, so that the detection result of the block distortion based on the pixel value and the detection result of the block distortion based on the magnitude of the motion vector Together It can detect the presence or absence of the final block distortion and its strength, just only and motion vector pixel value can be detected block distortion can not be detected. Conversely, it is possible to eliminate the erroneous detection that has been determined to be block distortion based on the detection result of only the pixel value or the motion vector. In addition, when removing block distortion using this detection result, by performing noise removal according to the intensity of block distortion, it is possible to reliably and erroneously detect the image while minimizing blurring of the image. This has the effect that the block distortion can be removed.

【0103】また、本願の請求項4の発明に係るブロッ
ク歪み検出方法によれば、請求項3記載のブロック歪み
検出方法において、前記動き量は、互いに隣接する前記
動き補償単位の各動き量中の最大値を用いる、ようにし
たので、画素値に基づいたブロック歪みの検出結果と、
動きベクトルの大きさに基づいたブロック歪みの検出結
果とを合わせて、最終的なブロック歪みの有無とその強
度とを検出でき、画素値だけや動きベクトルだけでは検
出できなかったブロック歪みを検出することができる。
また逆に、画素値だけや動きベクトルだけの検出結果で
はブロック歪みであると判定していた誤検出をなくすこ
とができる。また、この検出結果を用いてブロック歪み
を除去する際に、ブロック歪みの強度に応じたノイズ除
去を施すようにすることで、画像のボケを最小限に抑え
ながら確実にかつ誤検出することなく、ブロック歪みを
除去することができる効果がある。
According to the block distortion detecting method according to the fourth aspect of the present invention, in the block distortion detecting method according to the third aspect, the motion amount is calculated by calculating Since the maximum value of is used, the detection result of the block distortion based on the pixel value,
By combining the detection result of the block distortion based on the magnitude of the motion vector, the presence / absence of the final block distortion and its strength can be detected, and the block distortion that cannot be detected only by the pixel value or the motion vector alone is detected. be able to.
Conversely, it is possible to eliminate the erroneous detection that has been determined to be block distortion based on the detection result of only the pixel value or the motion vector. In addition, when removing block distortion using this detection result, by performing noise removal according to the intensity of block distortion, it is possible to reliably and erroneously detect the image while minimizing blurring of the image. This has the effect of removing block distortion.

【0104】また、本願の請求項5の発明に係るブロッ
ク歪み検出方法によれば、画像信号を複数の画素からな
るブロックに分割した後に符号化した符号列を復号化し
て得られる復号化画像信号に対して、前記ブロック間境
界にまたがる画素間の第1の差分値と、前記ブロック間
境界付近の前記ブロックに属する画素間の第2の差分値
とを求め、前記第1と第2の差分値とを用いて前記ブロ
ック境界間のブロック歪みを検出する際に、前記復号化
画像信号の解像度が大きいほど、処理量が減少する検出
方法により前記ブロック歪みの検出を行う、ようにした
ので、画素値のみを用いてブロック歪みの検出を行う際
に、検出処理量を対象となる画像の解像度に応じて変化
させることができ、画像サイズの増大に伴って処理量が
増加することなく、ブロック歪みを検出することが可能
となる効果がある。
According to the block distortion detecting method according to the fifth aspect of the present invention, a decoded image signal obtained by dividing an image signal into blocks composed of a plurality of pixels and then decoding an encoded code sequence is obtained. And a second difference value between pixels belonging to the block near the inter-block boundary and a second difference value between pixels belonging to the block in the vicinity of the inter-block boundary. When detecting the block distortion between the block boundaries using the value, the larger the resolution of the decoded image signal, the detection of the block distortion by a detection method that reduces the processing amount, so as to, When performing block distortion detection using only pixel values, the detection processing amount can be changed according to the resolution of the target image, and the processing amount does not increase as the image size increases. There is an effect that it is possible to detect the block distortion.

【0105】また、本願の請求項6の発明に係るブロッ
ク歪み検出方法によれば、画像信号を複数の画素からな
るブロックに分割した後に前記ブロックを少なくとも1
つ含む単位で動き補償を用いて符号化した符号列を復号
化して得られる復号化画像信号に対して、前記ブロック
間境界であり、かつ前記動き補償単位の境界である、ブ
ロック間・動き補償単位間境界にまたがる画素間の第1
の差分値と、前記ブロック間・動き補償単位間境界付近
の前記ブロックに属する画素間の第2の差分値とを求
め、前記第1と第2の差分値と前記ブロック間・動き補
償単位間境界にまたがる動き補償単位での動き量とを用
いて前記ブロック間・動き補償単位間境界のブロック歪
みを検出する際に、前記復号化画像信号の解像度が大き
いほど、処理量が減少する検出方法により前記ブロック
歪みの検出を行う、ようにしたので、画素値に基づいた
ブロック歪みの検出結果と、動きベクトルの大きさに基
づいたブロック歪みの検出結果とを合わせて、最終的な
ブロック歪みの有無とその強度とを検出でき、画素値だ
けや動きベクトルだけの判定では検出できなかったブロ
ック歪みを検出することができる。また逆に、画素値だ
けや動きベクトルだけの判定ではブロック歪みとして誤
検出していたものをなくすことができる。また、ブロッ
ク歪みの強度に応じたノイズ除去を施すので、画像のボ
ケを最小限に抑えながら確実にかつ誤検出することな
く、ブロック歪みを除去することができる。さらに、入
力映像の解像度が高いほど少ない処理量でブロック歪み
を検出することができ、解像度が低い場合には、復号化
処理の処理量は少なく、ブロック歪みの除去処理は多く
なり、解像度が高い場合には、復号化処理の処理量は多
く、ブロック歪みの除去処理は少なくなり、復号化処理
とブロックノイズ除去処理との合計の処理量を抑えるこ
とができる効果がある。
According to the block distortion detecting method according to the sixth aspect of the present invention, after dividing an image signal into blocks each including a plurality of pixels, the block is divided into at least one block.
For a decoded image signal obtained by decoding a code sequence coded using motion compensation in a unit including two blocks, the inter-block boundary and the boundary of the motion compensation unit, the inter-block / motion compensation First between pixels across unit boundaries
And a second difference value between pixels belonging to the block near the inter-block / motion-compensation-unit boundary, and calculating the first and second difference values and the inter-block / motion-compensation-unit When detecting block distortion at the boundary between blocks and between motion compensation units using the amount of motion in a motion compensation unit spanning a boundary, a detection method in which the processing amount decreases as the resolution of the decoded image signal increases. The detection of the block distortion is performed according to the following. Thus, the detection result of the block distortion based on the pixel value and the detection result of the block distortion based on the magnitude of the motion vector are combined to obtain the final block distortion. The presence / absence and its intensity can be detected, and block distortion that cannot be detected by the determination of only the pixel value or the motion vector can be detected. Conversely, in the determination of only the pixel value or only the motion vector, it is possible to eliminate an erroneously detected block distortion. In addition, since noise is removed in accordance with the strength of the block distortion, the block distortion can be removed reliably and without erroneous detection while minimizing blurring of the image. Furthermore, the higher the resolution of the input video, the smaller the amount of processing required to detect block distortion. If the resolution is low, the amount of processing for decoding processing is small, the amount of processing for removing block distortion is large, and the resolution is high. In such a case, the processing amount of the decoding process is large and the block distortion removal process is small, so that there is an effect that the total processing amount of the decoding process and the block noise removal process can be suppressed.

【0106】また、本願の請求項7の発明に係るブロッ
ク歪み検出方法によれば、請求項5または請求項6記載
のブロック歪み検出方法において、前記処理量の減少
は、前記ブロック歪みの検出に用いる画素数を少なくす
ることにより行う、ようにしたので、ブロック歪みの検
出を行う際に、ブロック歪みの検出に用いる画素数を対
象となる画像の解像度に応じて変化させて検出処理量を
変化させることができ、画像サイズの増大に伴って処理
量が増加することなく、ブロック歪みを検出することが
可能となる効果がある。
According to the block distortion detecting method of the present invention, in the block distortion detecting method of the fifth or sixth aspect, the decrease in the processing amount corresponds to the detection of the block distortion. Since the detection is performed by reducing the number of pixels used, when detecting block distortion, the number of pixels used for detection of block distortion is changed according to the resolution of the target image to change the detection processing amount. This makes it possible to detect block distortion without increasing the processing amount with an increase in the image size.

【0107】また、本願の請求項8の発明に係るブロッ
ク歪み検出方法によれば、請求項5または請求項6記載
のブロック歪み検出方法において、前記処理量の減少
は、前記ブロック歪みを検出する強度の段階数を少なく
することにより行う、ようにしたので、ブロック歪みの
検出を行う際に、ブロック歪みを検出する強度の段階を
対象となる画像の解像度に応じて変化させて検出処理量
を変化させることができ、画像サイズの増大に伴って処
理量が増加することなく、ブロック歪みを検出すること
が可能となる効果がある。
According to the block distortion detecting method according to the invention of claim 8 of the present application, in the block distortion detecting method according to claim 5 or 6, the decrease in the processing amount detects the block distortion. This is performed by reducing the number of intensity steps, so that when performing block distortion detection, the intensity level for detecting block distortion is changed according to the resolution of the target image to reduce the amount of detection processing. There is an effect that the block distortion can be detected without increasing the processing amount as the image size increases.

【0108】また、本願の請求項9の発明に係るブロッ
ク歪み除去方法によれば、請求項6記載のブロック歪み
検出方法において、前記処理量の減少は、前記解像度が
高い場合に、前記動き量によるブロック歪みの検出を実
行しないことにより行う、ようにしたので、ブロック歪
みの検出を行う際に、対象となる画像の解像度に応じて
変化させて検出処理量を変化させることができ、画像サ
イズの増大に伴って処理量が増加することなく、ブロッ
ク歪みを検出することが可能となる効果がある。
According to the block distortion removing method according to the ninth aspect of the present invention, in the block distortion detecting method according to the sixth aspect, the decrease in the processing amount is caused by the motion amount when the resolution is high. Is performed by not performing the detection of the block distortion by using the method. Therefore, when performing the detection of the block distortion, the detection processing amount can be changed by changing according to the resolution of the target image, and the image size can be changed. There is an effect that it is possible to detect block distortion without increasing the processing amount with the increase in.

【0109】また、本願の請求項10の発明に係るブロ
ック歪み除去方法によれば、請求項2,請求項3,請求
項5,請求項6のいずれかに記載のブロック歪み検出方
法により検出されたブロック歪みを除去する方法であっ
て、前記ブロック歪みの判定結果に応じて、前記ブロッ
ク境界付近の画素の画素値を補正する、ようにしたの
で、従来に比し向上したブロック歪みの検出精度によ
り、より適切なブロック歪み除去が可能となる効果があ
る。
According to the block distortion removing method according to the tenth aspect of the present invention, the block distortion is detected by the block distortion detecting method according to any one of the second, third, fifth and sixth aspects. A method for removing the block distortion, wherein the pixel value of a pixel near the block boundary is corrected in accordance with the result of the block distortion determination. Accordingly, there is an effect that more appropriate block distortion can be removed.

【0110】また、本願の請求項11の発明に係るブロ
ック歪み除去方法によれば、請求項10記載のブロック
歪み除去方法において、前記画素値の補正は、前記ブロ
ック歪みの強度に応じて特性の異なるフィルタを用いて
行う、ようにしたので、従来に比し向上したブロック歪
みの検出精度により、より適切なブロック歪み除去が可
能となる効果がある。
Further, according to the block distortion removing method of the present invention, in the block distortion removing method of the tenth aspect, the correction of the pixel value is performed according to the intensity of the block distortion. Since the filtering is performed using different filters, there is an effect that more appropriate block distortion can be removed with improved detection accuracy of the block distortion as compared with the related art.

【0111】また、本願の請求項12の発明に係るブロ
ック歪み除去方法によれば、請求項10記載のブロック
歪み除去方法において、前記画素値の補正は、所定のフ
ィルタを前記境界付近の画素に対して施した後、前記ブ
ロック歪みの強さに応じて、前記復号化画像の画素と、
前記フィルタを施した画素の重み付け平均した画素値を
用いることにより行う、ようにしたので、検出されたブ
ロック歪みの強度に応じてフィルタの組み合わせを変更
する必要が無く、一種類のフィルタのみでブロック歪み
の強度に応じた除去を行うことができる。これにより、
ハードウェア規模等の削減を図ることができる。また、
フィルタは一種類でありながら、ブロック歪みの強度に
応じて、入力画像とフィルタ画像との重みを変更するこ
とから、ブロック歪みの強度に応じたノイズ除去を施す
ことができ、画像のボケを最小限に抑えながら確実にか
つ誤検出することなく、ブロック歪みを除去することが
できる効果がある。
According to the block distortion removing method according to the twelfth aspect of the present invention, in the block distortion removing method according to the tenth aspect, the pixel value is corrected by applying a predetermined filter to pixels near the boundary. After applying to the pixels of the decoded image, depending on the strength of the block distortion,
By using a weighted average pixel value of the filtered pixels, it is not necessary to change the combination of filters according to the strength of the detected block distortion. Removal according to the strength of the distortion can be performed. This allows
Hardware scale and the like can be reduced. Also,
Although the type of filter is one, since the weight between the input image and the filter image is changed according to the intensity of block distortion, noise removal can be performed according to the intensity of block distortion, and image blurring can be minimized. There is an effect that the block distortion can be removed reliably and without erroneous detection while keeping the limit.

【0112】また、本願の請求項13の発明に係るブロ
ック歪み検出装置によれば、画像信号を複数の画素から
なるブロックに分割した後に前記ブロックを少なくとも
1つ含む単位で動き補償を用いて符号化した符号列を入
力とし、前記符号列を復号化して復号化画像信号を生成
し、さらに前記復号化時に動き補償に用いた動きベクト
ルを抽出する画像復号化器と、前記復号化画像信号を入
力とし、前記ブロック間境界にまたがる画素間の第1の
差分値と、前記ブロック間境界付近の前記ブロックに属
する画素間の第2の差分値とを求め、前記第1の差分値
の絶対値が第1のしきい値よりも大きく、前記第2の差
分値の絶対値が第2のしきい値よりも小さい場合に、前
記ブロック間境界にブロック歪みが発生すると判定し、
かつ前記第1と第2のしきい値が小さいほど、強いブロ
ック歪みが発生すると判定する画素値検査器とを備え
る、ようにしたので、ブロック歪みの有無のみならずそ
の強度も検出でき、この検出結果を用いてブロック歪み
補正を行う際に、より適切な補正を施すことが可能とな
る効果がある。
Further, according to the block distortion detecting apparatus of the present invention, the image signal is divided into blocks each including a plurality of pixels, and then the code is obtained by using motion compensation in a unit including at least one of the blocks. An image decoder that receives the converted code sequence as an input, decodes the code sequence to generate a decoded image signal, and further extracts a motion vector used for motion compensation during the decoding, and the decoded image signal As inputs, a first difference value between pixels spanning the inter-block boundary and a second difference value between pixels belonging to the block near the inter-block boundary are obtained, and the absolute value of the first difference value is obtained. Is larger than the first threshold value and when the absolute value of the second difference value is smaller than the second threshold value, it is determined that block distortion occurs at the inter-block boundary,
Also, a pixel value inspector that determines that strong block distortion occurs as the first and second threshold values are smaller is provided, so that not only the presence or absence of block distortion but also its intensity can be detected. When performing block distortion correction using the detection result, there is an effect that more appropriate correction can be performed.

【0113】また、本願の請求項14の発明に係るブロ
ック歪み検出装置によれば、画像信号を複数の画素から
なるブロックに分割した後に前記ブロックを少なくとも
1つ含む単位で動き補償を用いて符号化した符号列を入
力とし、前記符号列を復号化して復号化画像信号を生成
し、さらに前記復号化時に動き補償に用いた動きベクト
ルを抽出する画像復号化器と、前記復号化画像信号を入
力とし、前記ブロック間境界であり、かつ前記動き補償
単位の境界である、ブロック間・動き補償単位間境界に
またがる画素間の第1の差分値と、前記ブロック間・動
き補償単位間境界付近の前記ブロックに属する画素間の
第2の差分値とを求め、前記第1の差分値の絶対値が第
1のしきい値よりも大きく、前記第2の差分値の絶対値
が第2のしきい値よりも小さい場合に、前記ブロック間
・動き補償単位間境界間にブロック歪みが発生すると判
定する画素値検査器と、前記動きベクトルを入力とし、
前記ブロック間・動き補償単位間境界にまたがる動き補
償単位での動き量が第3のしきい値よりも大きい場合
に、ブロック歪みが発生すると判定する動きベクトル検
査器と、前記画素値検査器と前記動きベクトル検査器と
のブロック歪みの判定結果から、最終的なブロック歪み
の発生の有無を判定するブロック歪み判定器とを備える
ようにしたので、画素値に基づいたブロック歪みの検出
結果と、動きベクトルの大きさに基づいたブロック歪み
の検出結果とを合わせて、最終的なブロック歪みの有無
とその強度とを検出でき、画素値だけや動きベクトルだ
けでは検出できなかったブロック歪みを検出することが
できる。また逆に、画素値だけや動きベクトルだけの検
出結果ではブロック歪みであると判定していた誤検出を
なくすことができる。また、この検出結果を用いてブロ
ック歪みを除去する際に、ブロック歪みの強度に応じた
ノイズ除去を施すことができるので、画像のボケを最小
限に抑えながら確実にかつ誤検出することなく、ブロッ
ク歪みを除去することが可能となる効果がある。
Further, according to the block distortion detecting apparatus of the present invention, the image signal is divided into blocks each including a plurality of pixels, and then a code is generated by using motion compensation in a unit including at least one of the blocks. An image decoder that receives the converted code sequence as an input, decodes the code sequence to generate a decoded image signal, and further extracts a motion vector used for motion compensation during the decoding, and the decoded image signal A first difference value between pixels, which is an input, is the inter-block boundary, and is a boundary of the motion compensation unit, between pixels intersecting the inter-block / motion compensation unit boundary, and the vicinity of the inter-block / motion compensation unit boundary. And the second difference value between the pixels belonging to the block is obtained, the absolute value of the first difference value is larger than a first threshold value, and the absolute value of the second difference value is calculated as a second value. Threshold If remote small aforementioned and inter-block-motion compensation unit between judges pixel value inspector and between boundary block distortion occurs, and inputs the motion vector,
A motion vector tester that determines that block distortion occurs when a motion amount in a motion compensation unit that crosses the inter-block / motion compensation unit boundary is greater than a third threshold value; From the determination result of the block distortion with the motion vector tester, so as to include a block distortion determination unit that determines the presence or absence of the final block distortion, the detection result of the block distortion based on the pixel value, By combining the detection result of the block distortion based on the magnitude of the motion vector, the presence / absence of the final block distortion and its strength can be detected, and the block distortion that cannot be detected only by the pixel value or the motion vector alone is detected. be able to. Conversely, it is possible to eliminate the erroneous detection that has been determined to be block distortion based on the detection result of only the pixel value or the motion vector. In addition, when removing block distortion using this detection result, it is possible to perform noise removal according to the intensity of block distortion, so that blurring of the image is minimized without erroneous detection. There is an effect that the block distortion can be removed.

【0114】また、本願の請求項15の発明に係るブロ
ック歪み検出装置によれば、請求項14記載のブロック
歪み検出装置において、前記画素値検査器は、前記第1
と第2の所定値が小さいほど、強いブロック歪みが発生
すると判定し、前記動きベクトル検査器は、前記動き量
が大きいほど、強いブロック歪みが発生すると判定す
る、ようにしたので、画素値に基づいたブロック歪みの
検出結果と、動きベクトルの大きさに基づいたブロック
歪みの検出結果とを合わせて、最終的なブロック歪みの
有無とその強度とを検出でき、画素値だけや動きベクト
ルだけでは検出できなかったブロック歪みを検出するこ
とができる。また逆に、画素値だけや動きベクトルだけ
の検出結果ではブロック歪みであると判定していた誤検
出をなくすことができる。また、この検出結果を用いて
ブロック歪みを除去する際に、ブロック歪みの強度に応
じたノイズ除去を施すことができるので、画像のボケを
最小限に抑えながら確実にかつ誤検出することなく、ブ
ロック歪みを除去することが可能となる効果がある。
Further, according to the block distortion detecting device of the present invention, in the block distortion detecting device of the present invention, the pixel value inspector is provided with the first value.
And the second predetermined value is smaller, it is determined that stronger block distortion is generated, and the motion vector tester determines that stronger block distortion is generated as the motion amount is larger. By combining the block distortion detection result based on the block distortion detection result based on the magnitude of the motion vector, the presence or absence of the final block distortion and its strength can be detected. Block distortion that could not be detected can be detected. Conversely, it is possible to eliminate the erroneous detection that has been determined to be block distortion based on the detection result of only the pixel value or the motion vector. In addition, when removing block distortion using this detection result, it is possible to perform noise removal according to the intensity of block distortion, so that blurring of the image is minimized without erroneous detection. There is an effect that the block distortion can be removed.

【0115】また、本願の請求項16の発明に係るブロ
ック歪み検出装置によれば、請求項15記載のブロック
歪み検出装置において、前記動き量は、互いに隣接する
前記動き補償単位の各動き量中の最大値を用いる、よう
にしたので、画素値に基づいたブロック歪みの検出結果
と、動きベクトルの大きさに基づいたブロック歪みの検
出結果とを合わせて、最終的なブロック歪みの有無とそ
の強度とを検出でき、画素値だけや動きベクトルだけで
は検出できなかったブロック歪みを検出することができ
る。また逆に、画素値だけや動きベクトルだけの検出結
果ではブロック歪みであると判定していた誤検出をなく
すことができる。また、この検出結果を用いてブロック
歪みを除去する際に、ブロック歪みの強度に応じたノイ
ズ除去を施すことができるので、画像のボケを最小限に
抑えながら確実にかつ誤検出することなく、ブロック歪
みを除去することが可能となる効果がある。
Further, according to the block distortion detecting apparatus of the present invention, in the block distortion detecting apparatus according to the present invention, the amount of motion is defined by each motion amount of the adjacent motion compensation units. Is used, so that the detection result of the block distortion based on the pixel value and the detection result of the block distortion based on the magnitude of the motion vector are combined to determine whether or not there is a final block distortion. Intensity can be detected, and block distortion that cannot be detected only with pixel values or motion vectors can be detected. Conversely, it is possible to eliminate the erroneous detection that has been determined to be block distortion based on the detection result of only the pixel value or the motion vector. In addition, when removing block distortion using this detection result, it is possible to perform noise removal according to the intensity of block distortion, so that blurring of the image is minimized without erroneous detection. There is an effect that the block distortion can be removed.

【0116】また、本願の請求項17の発明に係るブロ
ック歪み検出装置によれば、画像信号を複数の画素から
なるブロックに分割した後に前記ブロックを少なくとも
1つ含む単位で動き補償を用いて符号化した符号列を入
力とし、前記符号列を復号化して復号化画像信号を生成
し、さらに前記復号化時に動き補償に用いた動きベクト
ルと前記復号化画像信号の解像度とを抽出する画像復号
化器と、前記復号化画像信号の解像度が、所定のどの範
囲に属するかを判定する解像度判定器と、前記復号化画
像信号を入力とし、前記ブロック間境界にまたがる画素
間の第1の差分値と、前記ブロック間境界付近の前記ブ
ロックに属する画素間の第2の差分値とを求め、前記第
1の差分値の絶対値が第1のしきい値よりも大きく、前
記第2の差分値の絶対値が第2のしきい値よりも小さい
場合に、前記ブロック間境界にブロック歪みが発生する
と判定する画素値検査器と、前記動きベクトルを入力と
し、前記ブロック間境界にまたがる動き補償単位での動
き量が第3のしきい値よりも大きい場合に、前記ブロッ
ク間境界に強いブロック歪みが発生すると判定する動き
ベクトル検査器と、前記画素値検査器と前記動きベクト
ル検査器とのブロック歪みの判定結果から、最終的なブ
ロック歪みの発生の有無を判定するブロック歪み判定器
とを備え、前記解像度判定器により判定された、前記復
号化画像信号の解像度が大きい程、前記画素値検査器お
よび前記動きベクトル検査器の少なくとも一方における
処理量を減少させる、ようにしたので、画素値と動き補
償量とを用いてブロック歪みの検出を行う際に、検出処
理量を対象となる画像の解像度に応じて変化させること
ができ、画像サイズの増大に伴って処理量が増加するこ
となく、ブロック歪みを検出することが可能となる効果
がある。
Further, according to the block distortion detecting apparatus of the present invention, the image signal is divided into blocks each composed of a plurality of pixels, and then the code is obtained by using motion compensation in a unit including at least one of the blocks. Image decoding which receives a decoded code sequence as input, decodes the code sequence to generate a decoded image signal, and further extracts a motion vector used for motion compensation during the decoding and a resolution of the decoded image signal. And a resolution determiner for determining which range the resolution of the decoded image signal belongs to, and a first difference value between pixels which takes the decoded image signal as input and straddles the inter-block boundary. And a second difference value between pixels belonging to the block near the boundary between the blocks, and the absolute value of the first difference value is larger than a first threshold value, and the second difference value of When the logarithmic value is smaller than a second threshold value, a pixel value inspector that determines that block distortion occurs at the inter-block boundary, and a motion compensation unit that receives the motion vector as an input and spans the inter-block boundary. A motion vector inspector that determines that strong block distortion occurs at the inter-block boundary when the amount of motion of the pixel is greater than a third threshold value; and a block distortion of the pixel value inspector and the motion vector inspector. And a block distortion determiner for determining whether or not a final block distortion has occurred from the determination result.The greater the resolution of the decoded image signal determined by the resolution determiner, the larger the pixel value inspector And the amount of processing in at least one of the motion vector testers is reduced, so that block distortion detection is performed using the pixel value and the amount of motion compensation. When performing, the detection processing amount can be changed according to the resolution of the target image, and the effect that the block distortion can be detected without increasing the processing amount as the image size increases. is there.

【0117】また、本願の請求項18の発明に係るブロ
ック歪み検出装置によれば、画像信号を複数の画素から
なるブロックに分割した後に前記ブロックを少なくとも
1つ含む単位で動き補償を用いて符号化した符号列を入
力とし、前記符号列を復号化して復号化画像信号を生成
し、さらに前記復号化時に動き補償に用いた動きベクト
ルと前記復号化画像信号の解像度とを抽出する画像復号
化器と、前記復号化画像信号の解像度が、所定のどの範
囲に属するかを判定する解像度判定器と、前記復号化画
像信号を入力とし、前記ブロック間境界であり、かつ前
記動き補償単位間の境界である、ブロック間・動き補償
単位間境界にまたがる画素間の第1の差分値と、前記ブ
ロック間・動き補償単位間境界付近の前記ブロックに属
する画素間の第2の差分値とを求め、前記第1の差分値
の絶対値が第1のしきい値よりも大きく、前記第2の差
分値の絶対値が第2のしきい値よりも小さい場合に、前
記ブロック間・動き補償単位間境界間にブロック歪みが
発生すると判定する画素値検査器と、前記動きベクトル
を入力とし、前記ブロック間・動き補償単位間境界にま
たがる動き補償単位での動き量が第3のしきい値よりも
大きい場合に、ブロック歪みが発生すると判定する動き
ベクトル検査器と、前記画素値検査器と前記動きベクト
ル検査器とのブロック歪みの判定結果から、最終的なブ
ロック歪みの発生の有無及び強さを判定するブロック歪
み判定器とを備え、前記解像度判定器により判定され
た、前記復号化画像信号の解像度が大きい程、前記画素
値検査器および前記動きベクトル検査器の少なくとも一
方における処理量を減少させる、ようにしたので、画素
値に基づいたブロック歪みの検出結果と、動きベクトル
の大きさに基づいたブロック歪みの検出結果とを合わせ
て、最終的なブロック歪みの有無とその強度とを検出し
ているので、従来の画素値だけや動きベクトルだけの判
定では検出できなかったブロック歪みを検出することが
できる。また逆に、画素値だけや動きベクトルだけの判
定ではブロック歪みとして誤検出していたものをなくす
ことができる効果がある。
Further, according to the block distortion detecting apparatus according to the invention of claim 18 of the present application, after dividing an image signal into blocks each including a plurality of pixels, a code is obtained by using motion compensation in a unit including at least one of the blocks. Image decoding for receiving a decoded code sequence as input, decoding the code sequence to generate a decoded image signal, and further extracting a motion vector used for motion compensation during the decoding and a resolution of the decoded image signal. Device, a resolution determiner for determining whether the resolution of the decoded image signal belongs to a predetermined range, and the decoded image signal as input, the boundary between the blocks, and between the motion compensation unit A first difference value between pixels that is a boundary, which is a boundary between blocks and between motion compensation units, and a second difference value between pixels belonging to the block near the boundary between blocks and between motion compensation units. A difference value, and when the absolute value of the first difference value is larger than a first threshold value and the absolute value of the second difference value is smaller than a second threshold value, A pixel value tester that determines that block distortion occurs between boundaries between inter-motion / motion compensation units, and a motion amount in a motion compensation unit that spans the inter-block / inter-motion compensation unit boundary when the motion vector is input. When the threshold value is larger than the threshold value, a motion vector tester that determines that block distortion is generated, and the final block distortion is generated based on the block distortion determination result of the pixel value tester and the motion vector tester. And a block distortion determiner for determining the presence and absence of the pixel value tester and the motion vector test, as the resolution of the decoded image signal determined by the resolution determiner increases. The amount of processing in at least one of the two is reduced, so that the detection result of the block distortion based on the pixel value and the detection result of the block distortion based on the magnitude of the motion vector are combined to obtain the final block distortion. Since the presence / absence and its strength are detected, it is possible to detect block distortion that could not be detected by the conventional determination using only pixel values or only motion vectors. Conversely, in the determination of only the pixel value or the motion vector, there is an effect that an erroneously detected block distortion can be eliminated.

【0118】また、本願の請求項19の発明に係るブロ
ック歪み検出装置によれば、請求項17または18記載
のブロック歪み検出装置において、前記処理量の減少
は、前記ブロック歪みの検出に用いる画素数を少なくす
ることにより行う、ようにしたので、ブロック歪みの検
出を行う際に、ブロック歪みの検出に用いる画素数を対
象となる画像の解像度に応じて変化させて検出処理量を
変化させることができ、画像サイズの増大に伴って処理
量が増加することなく、ブロック歪みを検出することが
可能となる効果がある。
According to the block distortion detecting apparatus of the present invention, the decrease in the processing amount is caused by the pixel used for detecting the block distortion. The number of pixels used for detecting block distortion is changed according to the resolution of the target image to change the amount of detection processing when performing block distortion detection. Thus, there is an effect that the block distortion can be detected without increasing the processing amount with the increase in the image size.

【0119】また、本願の請求項20の発明に係るブロ
ック歪み検出装置によれば、請求項17または18記載
のブロック歪み検出装置において、前記処理量の減少
は、前記ブロック歪みを検出する強度の段階数を少なく
することにより行う、ようにしたので、ブロック歪みの
検出を行う際に、ブロック歪みを検出する強度の段階を
対象となる画像の解像度に応じて変化させて検出処理量
を変化させることができ、画像サイズの増大に伴って処
理量が増加することなく、ブロック歪みを検出すること
が可能となる効果がある。
According to the block distortion detecting device of the present invention, the decrease in the processing amount is caused by the intensity of the block distortion detected. Since the number of stages is reduced, the amount of detection processing is changed by changing the intensity of the block distortion detection according to the resolution of the target image when detecting the block distortion. Thus, there is an effect that the block distortion can be detected without increasing the processing amount with the increase in the image size.

【0120】また、本願の請求項21の発明に係るブロ
ック歪み検出装置によれば、請求項17または18記載
のブロック歪み検出装置において、前記処理量の減少
は、前記解像度が高い場合には、前記動き量によるブロ
ック歪みの検出を実行しないことにより行う、ようにし
たので、ブロック歪みの検出を行う際に、対象となる画
像の解像度に応じて変化させて検出処理量を変化させる
ことができ、画像サイズの増大に伴って処理量が増加す
ることなく、ブロック歪みを検出することが可能となる
効果がある。
Further, according to the block distortion detecting device of the present invention, in the block distortion detecting device according to claim 17 or 18, the decrease in the processing amount is as follows when the resolution is high. Since the detection is performed by not performing the detection of the block distortion based on the motion amount, it is possible to change the detection processing amount by changing the detection according to the resolution of the target image when performing the detection of the block distortion. There is an effect that the block distortion can be detected without increasing the processing amount with the increase in the image size.

【0121】また、本願の請求項22の発明に係るブロ
ック歪み除去装置によれば、請求項13,請求項14,
請求項17,請求項18のいずれかに記載のブロック歪
み検出装置により検出されたブロック歪みを除去する装
置であって、前記復号化映像信号と、前記ブロック歪み
の判定結果とを入力とし、前記ブロック歪みの判定結果
に応じて、前記復号化映像信号の前記境界付近の画素の
画素値を補正するブロック歪み除去器を備える、ように
したので、従来に比し向上したブロック歪みの検出精度
により、より適切なブロック歪み除去が可能となる効果
がある。
Further, according to the block distortion elimination apparatus according to the invention of claim 22 of the present application, claim 13, claim 14,
19. A device for removing block distortion detected by the block distortion detection device according to claim 17, wherein the decoded video signal and the block distortion determination result are input, and A block distortion remover that corrects the pixel value of a pixel near the boundary of the decoded video signal in accordance with the determination result of the block distortion is provided, so that the detection accuracy of the block distortion is improved compared to the related art. This has the effect of enabling more appropriate block distortion removal.

【0122】また、本願の請求項23の発明に係るブロ
ック歪み除去装置によれば、請求項22記載のブロック
歪み除去装置において、前記画素値の補正は、前記ブロ
ック歪みの強度に応じて特性の異なるフィルタを用いて
行う、ようにしたので、従来に比し向上したブロック歪
みの検出精度により、より適切なブロック歪み除去が可
能となる効果がある。
Further, according to the block distortion removing device of the present invention, in the block distortion removing device according to the present invention, the correction of the pixel value is performed according to the intensity of the block distortion. Since the filtering is performed using different filters, there is an effect that it is possible to more appropriately remove the block distortion with improved detection accuracy of the block distortion as compared with the related art.

【0123】また、本願の請求項24の発明に係るブロ
ック歪み除去装置によれば、請求項22記載のブロック
歪み除去装置において、前記画素値の補正は、所定のフ
ィルタを前記境界付近の画素に対して施した後、前記ブ
ロック歪みの強さに応じて、前記復号化画像の画素と、
前記フィルタを施した画素の重み付け平均した画素値を
用いることにより行う、ようにしたので、検出されたブ
ロック歪みの強度に応じてフィルタの組み合わせを変更
する必要が無く、一種類のフィルタのみでブロック歪み
の強度に応じた除去を行うことができる。これにより、
ハードウェア規模等の削減を図ることができる。また、
フィルタは一種類でありながら、ブロック歪みの強度に
応じて、入力画像とフィルタ画像との重みを変更するこ
とから、ブロック歪みの強度に応じたノイズ除去を施す
ことができ、画像のボケを最小限に抑えながら確実にか
つ誤検出することなく、ブロック歪みを除去することが
できる効果がある。
Further, according to the block distortion removing apparatus of the present invention, in the block distortion removing apparatus of the present invention, the correction of the pixel value is performed by applying a predetermined filter to pixels near the boundary. After applying to the pixels of the decoded image, depending on the strength of the block distortion,
By using a weighted average pixel value of the filtered pixels, it is not necessary to change the combination of filters according to the strength of the detected block distortion. Removal according to the strength of the distortion can be performed. This allows
Hardware scale and the like can be reduced. Also,
Although the type of filter is one, since the weight between the input image and the filter image is changed according to the intensity of block distortion, noise removal can be performed according to the intensity of block distortion, and image blurring can be minimized. There is an effect that the block distortion can be removed reliably and without erroneous detection while keeping the limit.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態1を説明するためのブロッ
ク図
FIG. 1 is a block diagram for explaining Embodiment 1 of the present invention;

【図2】本発明の実施の形態1におけるブロック歪み検
出器を説明するためのブロック図
FIG. 2 is a block diagram for explaining a block distortion detector according to the first embodiment of the present invention.

【図3】ブロック歪みを説明するための模式図FIG. 3 is a schematic diagram for explaining block distortion.

【図4】本発明の実施の形態1における画素検査器の検
出動作を説明するためのフローチャートを示す図
FIG. 4 is a flowchart illustrating a detection operation of the pixel inspection device according to the first embodiment of the present invention;

【図5】本発明の実施の形態1における動きベクトル検
査器の検出動作を説明するためのフローチャートを示す
FIG. 5 is a flowchart illustrating a detection operation of the motion vector tester according to the first embodiment of the present invention.

【図6】本発明の実施の形態1におけるブロック歪みを
除去する動作を説明するための模式図
FIG. 6 is a schematic diagram for explaining an operation for removing block distortion according to the first embodiment of the present invention.

【図7】低域通過フィルタの特性を示すフィルタ特性図FIG. 7 is a filter characteristic diagram showing characteristics of a low-pass filter.

【図8】本発明の実施の形態1におけるブロック歪み除
去器を構成する3タップおよび5タップの低域通過フィ
ルタの構成例を示す図
FIG. 8 is a diagram showing a configuration example of a 3-tap and 5-tap low-pass filter constituting the block distortion remover according to the first embodiment of the present invention.

【図9】本発明の実施の形態2におけるブロック歪み除
去器の構成例を示すブロック図
FIG. 9 is a block diagram illustrating a configuration example of a block distortion remover according to a second embodiment of the present invention.

【図10】本発明の実施の形態2におけるブロック歪み
を除去する動作を説明するための模式図
FIG. 10 is a schematic diagram for explaining an operation for removing block distortion according to the second embodiment of the present invention.

【図11】本発明の実施の形態3を説明するためのブロ
ック図
FIG. 11 is a block diagram for explaining Embodiment 3 of the present invention;

【図12】本発明の実施の形態3におけるブロック歪み
検出器の構成例示すブロック図
FIG. 12 is a block diagram illustrating a configuration example of a block distortion detector according to a third embodiment of the present invention.

【符号の説明】[Explanation of symbols]

102 可変長復号化器 103 逆量子化器 104 逆DCT器 105 加算器 106 動き補償器 107 画像メモリ 108 ブロック歪み除去器 109 ブロック歪み検出器 201 画素値検査器 202 動きベクトル検査器 203 ブロック歪み判定器 501 フィルタ器 502 重み付け平均演算器 709 ブロック歪み判定器 710 解像度判定器 801 画素値検査器 802 動きベクトル検査器 1081 遅延器 1082 遅延器 1083 遅延器 1084 遅延器 1085 乗算器 1086 乗算器 1087 乗算器 1088 乗算器 1089 乗算器 1090 スイッチ 1091 スイッチ 1092 スイッチ 1101 加算器 1102 加算器 Reference Signs List 102 variable length decoder 103 inverse quantizer 104 inverse DCT unit 105 adder 106 motion compensator 107 image memory 108 block distortion remover 109 block distortion detector 201 pixel value inspector 202 motion vector inspector 203 block distortion determiner Reference Signs List 501 filter unit 502 weighted average calculator 709 block distortion determiner 710 resolution determiner 801 pixel value inspector 802 motion vector inspector 1081 delay unit 1082 delay unit 1083 delay unit 1084 delay unit 1085 multiplier 1086 multiplier 1087 multiplier 1088 multiplier Unit 1089 Multiplier 1090 Switch 1091 Switch 1092 Switch 1101 Adder 1102 Adder

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK03 KK11 MA00 MA23 MC11 MC38 ME01 PP04 PP25 TA69 TB08 TC02 TC33 TC42 TD05 TD12 UA02 UA05 UA12 UA33 ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5C059 KK03 KK11 MA00 MA23 MC11 MC38 ME01 PP04 PP25 TA69 TB08 TC02 TC33 TC42 TD05 TD12 UA02 UA05 UA12 UA33

Claims (24)

【特許請求の範囲】[Claims] 【請求項1】 画像信号を複数の画素からなるブロック
に分割した後に符号化した符号列を復号化して得られる
復号化画像信号に対して、前記ブロック間境界にまたが
る画素間の第1の差分値と、前記ブロック間境界付近の
前記ブロック内に属する画素間の第2の差分値とを求
め、 前記第1の差分値と前記第2の差分値との値に応じて、
前記ブロック間境界付近の画素の画素値を補正する、 ことを特徴とするブロック歪み除去方法。
1. A first difference between pixels over a boundary between blocks with respect to a decoded image signal obtained by decoding an encoded signal sequence after dividing an image signal into blocks each including a plurality of pixels. A value and a second difference value between pixels belonging to the block near the boundary between the blocks are obtained. According to the value of the first difference value and the second difference value,
Correcting a pixel value of a pixel near a boundary between the blocks.
【請求項2】 画像信号を複数の画素からなるブロック
に分割した後に符号化した符号列を復号化して得られる
復号化画像信号に対して、前記ブロック間境界にまたが
る画素間の第1の差分値と、前記ブロック間境界付近の
前記ブロック内に属する画素間の第2の差分値とを求
め、 前記第1の差分値の絶対値が第1のしきい値よりも大き
く、前記第2の差分値の絶対値が第2のしきい値よりも
小さい場合に、前記ブロック境界間にブロック歪みが発
生すると判定するとともに、前記第1および第2のしき
い値が小さいほど、前記ブロック境界間に強いブロック
歪みが発生すると判定する、 ことを特徴とするブロック歪み検出方法。
2. The method according to claim 1, wherein a first difference between pixels across the inter-block boundary is compared with a decoded image signal obtained by decoding an encoded signal sequence after dividing the image signal into blocks including a plurality of pixels. And a second difference value between pixels belonging to the block near the inter-block boundary, wherein the absolute value of the first difference value is greater than a first threshold value, and When the absolute value of the difference value is smaller than a second threshold value, it is determined that block distortion occurs between the block boundaries, and the smaller the first and second threshold values are, the more the block boundary is generated. A block distortion detection method characterized in that it is determined that strong block distortion occurs.
【請求項3】 画像信号を複数の画素からなるブロック
に分割した後に前記ブロックを少なくとも1つ含む単位
で動き補償を用いて符号化した符号列を復号化して得ら
れる復号化画像信号に対して、前記ブロック間境界であ
り、かつ前記動き補償単位の境界である、ブロック間・
動き補償単位間境界にまたがる画素間の第1の差分値
と、前記ブロック間・動き補償単位間境界付近の前記ブ
ロック内に属する画素間の第2の差分値とを求め、 前記第1の差分値の絶対値が第1のしきい値よりも大き
く、前記第2の差分値の絶対値が第2のしきい値よりも
小さく、前記ブロック間・動き補償単位間境界にまたが
る動き補償単位での動き量が第3のしきい値よりも大き
い場合には、前記境界間にブロック歪みが発生すると判
定するとともに、前記第1および第2のしきい値が小さ
いとき、前記ブロック間・動き補償単位間境界にまたが
る動き補償単位での動き量が大きいとき、前記境界間に
強いブロック歪みが発生すると判定する、 ことを特徴とするブロック歪み検出方法。
3. A decoded image signal obtained by dividing an image signal into blocks each including a plurality of pixels and then decoding a code string encoded using motion compensation in a unit including at least one of the blocks. , The boundary between the blocks, and the boundary between the motion compensation units.
Calculating a first difference value between pixels spanning a boundary between motion compensation units and a second difference value between pixels belonging to the block near the boundary between the blocks and between motion compensation units; The absolute value of the value is larger than the first threshold value, the absolute value of the second difference value is smaller than the second threshold value, and the motion compensation unit spans the inter-block / motion compensation unit boundary. If the amount of motion is larger than a third threshold value, it is determined that block distortion occurs between the boundaries. If the first and second threshold values are small, the inter-block / motion compensation is performed. When the amount of motion in a motion compensation unit spanning an inter-unit boundary is large, it is determined that strong block distortion occurs between the boundaries.
【請求項4】 請求項3記載のブロック歪み検出方法に
おいて、 前記動き量は、互いに隣接する前記動き補償単位の各動
き量中の最大値を用いる、 ことを特徴とするブロック歪み検出方法。
4. The block distortion detecting method according to claim 3, wherein the motion amount uses a maximum value among the motion amounts of the motion compensation units adjacent to each other.
【請求項5】 画像信号を複数の画素からなるブロック
に分割した後に符号化した符号列を復号化して得られる
復号化画像信号に対して、前記ブロック間境界にまたが
る画素間の第1の差分値と、前記ブロック間境界付近の
前記ブロックに属する画素間の第2の差分値とを求め、 前記第1と第2の差分値とを用いて前記ブロック境界間
のブロック歪みを検出する際に、前記復号化画像信号の
解像度が大きいほど、処理量が減少する検出方法により
前記ブロック歪みの検出を行う、 ことを特徴とするブロック歪み検出方法。
5. A first difference between pixels across a boundary between blocks with respect to a decoded image signal obtained by decoding an encoded signal sequence after dividing an image signal into blocks each including a plurality of pixels. Calculating a value and a second difference value between pixels belonging to the block near the inter-block boundary, and detecting block distortion between the block boundaries using the first and second difference values. Detecting the block distortion by a detection method in which the processing amount decreases as the resolution of the decoded image signal increases.
【請求項6】 画像信号を複数の画素からなるブロック
に分割した後に前記ブロックを少なくとも1つ含む単位
で動き補償を用いて符号化した符号列を復号化して得ら
れる復号化画像信号に対して、前記ブロック間境界であ
り、かつ前記動き補償単位の境界である、ブロック間・
動き補償単位間境界にまたがる画素間の第1の差分値
と、前記ブロック間・動き補償単位間境界付近の前記ブ
ロックに属する画素間の第2の差分値とを求め、 前記第1と第2の差分値と前記ブロック間・動き補償単
位間境界にまたがる動き補償単位での動き量とを用いて
前記ブロック間・動き補償単位間境界間のブロック歪み
を検出する際に、前記復号化画像信号の解像度が大きい
ほど、処理量が減少する検出方法により前記ブロック歪
みの検出を行う、 ことを特徴とするブロック歪み検出方法。
6. A decoded image signal obtained by dividing an image signal into blocks each including a plurality of pixels and then decoding a code string coded using motion compensation in a unit including at least one of the blocks. , The boundary between the blocks, and the boundary between the motion compensation units.
Calculating a first difference value between pixels over a boundary between motion compensation units and a second difference value between pixels belonging to the block near the boundary between blocks and between motion compensation units; When detecting block distortion between the inter-block and motion-compensation unit boundaries using the difference value and the amount of motion in the motion compensation unit spanning the inter-block / motion compensation unit boundary, the decoded image signal The block distortion is detected by a detection method in which the processing amount decreases as the resolution of the block distortion increases.
【請求項7】 請求項5または請求項6記載のブロック
歪み検出方法において、 前記処理量の減少は、前記ブロック歪みの検出に用いる
画素数を少なくすることにより行う、 ことを特徴とするブロック歪み検出方法。
7. The block distortion detection method according to claim 5, wherein the processing amount is reduced by reducing the number of pixels used for detecting the block distortion. Detection method.
【請求項8】 請求項5または請求項6記載のブロック
歪み検出方法において、 前記処理量の減少は、前記ブロック歪みを検出する強度
の段階数を少なくすることにより行う、 ことを特徴とするブロック歪み検出方法。
8. The block distortion detecting method according to claim 5, wherein the processing amount is reduced by reducing the number of steps of the intensity for detecting the block distortion. Distortion detection method.
【請求項9】 請求項6記載のブロック歪み検出方法に
おいて、 前記処理量の減少は、前記解像度が高い場合に、前記動
き量によるブロック歪みの検出を実行しないことにより
行う、 ことを特徴とするブロック歪み検出方法。
9. The block distortion detecting method according to claim 6, wherein the processing amount is reduced by not executing the block distortion detection based on the motion amount when the resolution is high. Block distortion detection method.
【請求項10】 請求項2,請求項3,請求項5,請求
項6のいずれかに記載のブロック歪み検出方法により検
出されたブロック歪みを除去する方法であって、 前記ブロック歪みの判定結果に応じて、前記ブロック境
界付近の画素の画素値を補正する、 ことを特徴とするブロック歪み除去方法。
10. A method for removing block distortion detected by the block distortion detection method according to claim 2, wherein the block distortion determination result is obtained. And correcting a pixel value of a pixel near the block boundary according to the following.
【請求項11】 請求項10記載のブロック歪み除去方
法において、 前記画素値の補正は、前記ブロック歪みの強度に応じて
特性の異なるフィルタを用いて行う、 ことを特徴とするブロック歪み除去方法。
11. The block distortion removing method according to claim 10, wherein the correction of the pixel value is performed using a filter having a characteristic different according to the intensity of the block distortion.
【請求項12】 請求項10記載のブロック歪み除去方
法において、 前記画素値の補正は、所定のフィルタを前記境界付近の
画素に対して施した後、前記ブロック歪みの強さに応じ
て、前記復号化画像の画素と、前記フィルタを施した画
素との重み付け平均した画素値を用いることにより行
う、 ことを特徴とするブロック歪み除去方法。
12. The block distortion removing method according to claim 10, wherein the correction of the pixel value is performed after a predetermined filter is applied to a pixel near the boundary, and the pixel value is corrected according to the strength of the block distortion. A method for removing block distortion, which is performed by using a weighted average pixel value of a pixel of a decoded image and a pixel subjected to the filter.
【請求項13】 画像信号を複数の画素からなるブロッ
クに分割した後に前記ブロックを少なくとも1つ含む単
位で動き補償を用いて符号化した符号列を入力とし、前
記符号列を復号化して復号化画像信号を生成し、さらに
前記復号化時に動き補償に用いた動きベクトルを抽出す
る画像復号化器と、 前記復号化画像信号を入力とし、前記ブロック間境界に
またがる画素間の第1の差分値と、前記ブロック間境界
付近の前記ブロックに属する画素間の第2の差分値とを
求め、前記第1の差分値の絶対値が第1のしきい値より
も大きく、前記第2の差分値の絶対値が第2のしきい値
よりも小さい場合に、前記ブロック間境界にブロック歪
みが発生すると判定し、かつ前記第1と第2のしきい値
が小さいほど、強いブロック歪みが発生すると判定する
画素値検査器とを備えた、 ことを特徴とするブロック歪み検出装置。
13. An image signal is divided into blocks each including a plurality of pixels, and a code string coded by using motion compensation in a unit including at least one of the blocks is input, and the code string is decoded and decoded. An image decoder that generates an image signal and further extracts a motion vector used for motion compensation during the decoding; a first difference value between pixels that receives the decoded image signal as input and that spans an inter-block boundary; And a second difference value between pixels belonging to the block near the boundary between the blocks, and the absolute value of the first difference value is larger than a first threshold value, and the second difference value When the absolute value of is smaller than a second threshold, it is determined that block distortion occurs at the boundary between the blocks, and when the first and second thresholds are smaller, stronger block distortion occurs. Judge And a pixel value inspector, block distortion detection apparatus characterized by.
【請求項14】 画像信号を複数の画素からなるブロッ
クに分割した後に前記ブロックを少なくとも1つ含む単
位で動き補償を用いて符号化した符号列を入力とし、前
記符号列を復号化して復号化画像信号を生成し、さらに
前記復号化時に動き補償に用いた動きベクトルを抽出す
る画像復号化器と、 前記復号化画像信号を入力とし、前記ブロック間境界で
あり、かつ前記動き補償単位の境界である、ブロック間
・動き補償単位間境界にまたがる画素間の第1の差分値
と、前記ブロック間・動き補償単位間境界付近の前記ブ
ロックに属する画素間の第2の差分値とを求め、前記第
1の差分値の絶対値が第1のしきい値よりも大きく、前
記第2の差分値の絶対値が第2のしきい値よりも小さい
場合に、前記ブロック間・動き補償単位間境界間にブロ
ック歪みが発生すると判定する画素値検査器と、 前記動きベクトルを入力とし、前記ブロック間・動き補
償単位間境界にまたがる動き補償単位での動き量が第3
のしきい値よりも大きい場合に、ブロック歪みが発生す
ると判定する動きベクトル検査器と、 前記画素値検査器と前記動きベクトル検査器とのブロッ
ク歪みの判定結果から、最終的なブロック歪みの発生の
有無を判定するブロック歪み判定器とを備えた、 ことを特徴とするブロック歪み検出装置。
14. After dividing an image signal into blocks each including a plurality of pixels, a code string coded using motion compensation in a unit including at least one of the blocks is input, and the code string is decoded and decoded. An image decoder that generates an image signal and further extracts a motion vector used for motion compensation at the time of the decoding; and an input of the decoded image signal, the inter-block boundary, and a boundary of the motion compensation unit. A first difference value between pixels spanning the boundary between blocks / motion compensation units and a second difference value between pixels belonging to the block near the boundary between blocks / motion compensation units are obtained, When the absolute value of the first difference value is larger than a first threshold value and the absolute value of the second difference value is smaller than a second threshold value, the inter-block / motion compensation unit Between boundaries Click and distortion occurs and determining the pixel value inspector, the inputs the motion vector, the motion amount in the motion compensation units spanning between interblock-motion compensation unit boundary is the third
A motion vector tester that determines that block distortion occurs when the threshold value is larger than the threshold value of the following. A block distortion detecting device comprising: a block distortion determining unit that determines the presence or absence of a block distortion.
【請求項15】 請求項14記載のブロック歪み検出装
置において、 前記画素値検査器は、前記第1と第2のしきい値が小さ
いほど、強いブロック歪みが発生すると判定し、 前記動きベクトル検査器は、前記動き量が大きいほど、
強いブロック歪みが発生すると判定する、 ことを特徴とするブロック歪み検出装置。
15. The block distortion detecting device according to claim 14, wherein the pixel value inspector determines that the smaller the first and second thresholds are, the stronger block distortion is generated, and the motion vector inspection is performed. The vessel, the larger the amount of movement,
A block distortion detecting device, which determines that strong block distortion occurs.
【請求項16】 請求項15記載のブロック歪み検出装
置において、 前記動き量は、互いに隣接する前記動き補償単位の各動
き量中の最大値を用いる、 ことを特徴とするブロック歪み検出装置。
16. The block distortion detecting apparatus according to claim 15, wherein the amount of motion uses a maximum value among the amounts of motion of the motion compensation units adjacent to each other.
【請求項17】 画像信号を複数の画素からなるブロッ
クに分割した後に前記ブロックを少なくとも1つ含む単
位で動き補償を用いて符号化した符号列を入力とし、前
記符号列を復号化して復号化画像信号を生成し、さらに
前記復号化時に動き補償に用いた動きベクトルと前記復
号化画像信号の解像度とを抽出する画像復号化器と、 前記復号化画像信号の解像度が、所定のどの範囲に属す
るかを判定する解像度判定器と、 前記復号化画像信号を入力とし、前記ブロック間境界に
またがる画素間の第1の差分値と、前記ブロック間境界
付近の前記ブロックに属する画素間の第2の差分値とを
求め、前記第1の差分値の絶対値が第1のしきい値より
も大きく、前記第2の差分値の絶対値が第2のしきい値
よりも小さい場合に、前記ブロック間境界にブロック歪
みが発生すると判定する画素値検査器と、 前記動きベクトルを入力とし、前記ブロック間境界にま
たがる動き補償単位での動き量が第3のしきい値よりも
大きい場合に、前記ブロック間境界に強いブロック歪み
が発生すると判定する動きベクトル検査器と、 前記画素値検査器と前記動きベクトル検査器とのブロッ
ク歪みの判定結果から、最終的なブロック歪みの発生の
有無を判定するブロック歪み判定器とを備え、 前記解像度判定器により判定された、前記復号化画像信
号の解像度が大きい程、前記画素値検査器および前記動
きベクトル検査器の少なくとも一方における処理量を減
少させる、 ことを特徴とするブロック歪み検出装置。
17. A method in which an image signal is divided into blocks each including a plurality of pixels, and a code string coded using motion compensation in a unit including at least one of the blocks is input, and the code string is decoded and decoded. An image decoder that generates an image signal, and further extracts a motion vector used for motion compensation during the decoding and a resolution of the decoded image signal, and a resolution of the decoded image signal is in a predetermined range. A resolution determiner for determining whether the pixel belongs to a first pixel, and a first difference value between pixels that spans the inter-block boundary, and a second difference between pixels belonging to the block near the inter-block boundary. When the absolute value of the first difference value is larger than a first threshold value and the absolute value of the second difference value is smaller than a second threshold value, Boundary between blocks A pixel value inspector that determines that block distortion occurs; and an input of the motion vector, wherein when the amount of motion in a motion compensation unit spanning the inter-block boundary is larger than a third threshold value, the inter-block boundary A motion vector inspector that determines that strong block distortion occurs; and a block distortion determination that determines whether or not a final block distortion has occurred based on the block distortion determination results of the pixel value inspector and the motion vector inspector. The resolution is determined by the resolution determiner, the larger the resolution of the decoded image signal, the less the amount of processing in at least one of the pixel value inspector and the motion vector inspector, characterized in that, Block distortion detection device.
【請求項18】 画像信号を複数の画素からなるブロッ
クに分割した後に前記ブロックを少なくとも1つ含む単
位で動き補償を用いて符号化した符号列を入力とし、前
記符号列を復号化して復号化画像信号を生成し、さらに
前記復号化時に動き補償に用いた動きベクトルと前記復
号化画像信号の解像度とを抽出する画像復号化器と、 前記復号化画像信号の解像度が、所定のどの範囲に属す
るかを判定する解像度判定器と、 前記復号化画像信号を入力とし、前記ブロック間境界で
あり、かつ前記動き補償単位間の境界である、ブロック
間・動き補償単位間境界にまたがる画素間の第1の差分
値と、前記ブロック間・動き補償単位間境界付近の前記
ブロックに属する画素間の第2の差分値とを求め、前記
第1の差分値の絶対値が第1のしきい値よりも大きく、
前記第2の差分値の絶対値が第2のしきい値よりも小さ
い場合に、前記ブロック間・動き補償単位間境界間にブ
ロック歪みが発生すると判定する画素値検査器と、 前記動きベクトルを入力とし、前記ブロック間・動き補
償単位間境界にまたがる動き補償単位での動き量が第3
のしきい値よりも大きい場合に、ブロック歪みが発生す
ると判定する動きベクトル検査器と、 前記画素値検査器と前記動きベクトル検査器とのブロッ
ク歪みの判定結果から、最終的なブロック歪みの発生の
有無及び強さを判定するブロック歪み判定器とを備え、 前記解像度判定器により判定された、前記復号化画像信
号の解像度が大きい程、前記画素値検査器および前記動
きベクトル検査器の少なくとも一方における処理量を減
少させる、 ことを特徴とするブロック歪み検出装置。
18. An image signal is divided into blocks each including a plurality of pixels, and a code string coded using motion compensation in a unit including at least one of the blocks is input, and the code string is decoded and decoded. An image decoder that generates an image signal, and further extracts a motion vector used for motion compensation during the decoding and a resolution of the decoded image signal, and a resolution of the decoded image signal is in a predetermined range. A resolution determiner that determines whether or not the pixel belongs to the input of the decoded image signal, the inter-block boundary, and the boundary between the motion compensation units, between pixels spanning the inter-block / motion compensation unit boundary. Calculating a first difference value and a second difference value between pixels belonging to the block near the inter-block / motion-compensation-unit-interval boundary, wherein the absolute value of the first difference value is a first threshold value Yo Larger,
When the absolute value of the second difference value is smaller than a second threshold value, a pixel value inspector that determines that block distortion occurs between boundaries between the blocks and between motion compensation units; As an input, the amount of motion in the motion compensation unit over the boundary between the blocks and between the motion compensation units is the third
A motion vector tester that determines that block distortion occurs when the threshold value is larger than the threshold value of the following. And a block distortion determiner for determining the presence and absence of the at least one of the pixel value tester and the motion vector tester as the resolution of the decoded image signal, determined by the resolution determiner, increases. A block distortion detection device, which reduces the processing amount in.
【請求項19】 請求項17または18記載のブロック
歪み検出装置において、 前記処理量の減少は、前記ブロック歪みの検出に用いる
画素数を少なくすることにより行う、 ことを特徴とするブロック歪み検出装置。
19. The block distortion detection device according to claim 17, wherein the processing amount is reduced by reducing the number of pixels used for detecting the block distortion. .
【請求項20】 請求項17または18記載のブロック
歪み検出装置において、 前記処理量の減少は、前記ブロック歪みを検出する強度
の段階数を少なくすることにより行う、 ことを特徴とするブロック歪み検出装置。
20. The block distortion detection device according to claim 17, wherein the processing amount is reduced by reducing the number of steps of the intensity for detecting the block distortion. apparatus.
【請求項21】 請求項17または18記載のブロック
歪み検出装置において、 前記処理量の減少は、前記解像度が高い場合には、前記
動き量によるブロック歪みの検出を実行しないことによ
り行う、 ことを特徴とするブロック歪み検出装置。
21. The block distortion detection device according to claim 17, wherein the processing amount is reduced by not detecting block distortion based on the motion amount when the resolution is high. Characteristic block distortion detecting device.
【請求項22】 請求項13,請求項14,請求項1
7,請求項18のいずれかに記載のブロック歪み検出装
置により検出されたブロック歪みを除去する装置であっ
て、 前記復号化映像信号と、前記ブロック歪みの判定結果と
を入力とし、前記ブロック歪みの判定結果に応じて、前
記復号化映像信号の前記境界付近の画素の画素値を補正
するブロック歪み除去器を備えた、 ことを特徴とするブロック歪み除去装置。
22. Claim 13, Claim 14, Claim 1
19. An apparatus for removing block distortion detected by the block distortion detection apparatus according to claim 18, wherein the block distortion is input by receiving the decoded video signal and the block distortion determination result. A block distortion remover that corrects a pixel value of a pixel near the boundary of the decoded video signal in accordance with the result of the determination.
【請求項23】 請求項22記載のブロック歪み除去装
置において、 前記画素値の補正は、前記ブロック歪みの強度に応じて
特性の異なるフィルタを用いて行う、 ことを特徴とするブロック歪み除去装置。
23. The block distortion removing device according to claim 22, wherein the correction of the pixel value is performed using a filter having different characteristics according to the intensity of the block distortion.
【請求項24】 請求項22記載のブロック歪み除去装
置において、 前記画素値の補正は、所定のフィルタを前記境界付近の
画素に対して施した後、前記ブロック歪みの強さに応じ
て、前記復号化画像の画素と、前記フィルタを施した画
素の重み付け平均した画素値を用いることにより行う、 ことを特徴とするブロック歪み除去装置。
24. The block distortion removing apparatus according to claim 22, wherein the correction of the pixel value is performed after a predetermined filter is applied to a pixel near the boundary, and the pixel value is corrected in accordance with the strength of the block distortion. A block distortion elimination apparatus, wherein the block distortion elimination is performed by using a weighted average pixel value of a pixel of a decoded image and a pixel subjected to the filter.
JP2001319417A 2000-10-20 2001-10-17 Block distortion detecting method, block distortion detector, block distortion eliminating method and block distortion eliminating device Pending JP2002199403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001319417A JP2002199403A (en) 2000-10-20 2001-10-17 Block distortion detecting method, block distortion detector, block distortion eliminating method and block distortion eliminating device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000-320595 2000-10-20
JP2000320595 2000-10-20
JP2001319417A JP2002199403A (en) 2000-10-20 2001-10-17 Block distortion detecting method, block distortion detector, block distortion eliminating method and block distortion eliminating device

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2006294850A Division JP4227160B2 (en) 2000-10-20 2006-10-30 Block distortion removal method
JP2008299912A Division JP2009044775A (en) 2000-10-20 2008-11-25 Block distortion removal method, and block distortion removal apparatus

Publications (1)

Publication Number Publication Date
JP2002199403A true JP2002199403A (en) 2002-07-12

Family

ID=26602476

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001319417A Pending JP2002199403A (en) 2000-10-20 2001-10-17 Block distortion detecting method, block distortion detector, block distortion eliminating method and block distortion eliminating device

Country Status (1)

Country Link
JP (1) JP2002199403A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007281542A (en) * 2006-04-03 2007-10-25 Hitachi Ltd Digital broadcasting receiving device
US8326064B2 (en) 2007-01-22 2012-12-04 Nec Corporation Image re-encoding method to decode image data which is orthogonally transformed per first block and encoded by a first encoding method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007281542A (en) * 2006-04-03 2007-10-25 Hitachi Ltd Digital broadcasting receiving device
US8326064B2 (en) 2007-01-22 2012-12-04 Nec Corporation Image re-encoding method to decode image data which is orthogonally transformed per first block and encoded by a first encoding method

Similar Documents

Publication Publication Date Title
US7031393B2 (en) Block distortion detection method, block distortion detection apparatus, block distortion removal method, and block distortion removal apparatus
US6748113B1 (en) Noise detecting method, noise detector and image decoding apparatus
JP5276170B2 (en) Method and apparatus for detecting banding artifacts
JP2003244702A (en) Filtering method and apparatus for removing blocking artifact
TW200535717A (en) Directional video filters for locally adaptive spatial noise reduction
WO2006041152A1 (en) Block noise reducing device and image display
WO2007040765A1 (en) Content adaptive noise reduction filtering for image signals
JP2001204029A (en) Noise detection method, noise detector and image recorder
WO2007125458A2 (en) Method and apparatus for encoding/transcoding and decoding
JP2007525902A (en) System and method for global indication of MPEG damage in compressed digital video
JP5247591B2 (en) Image processing apparatus and control method thereof
JP4266227B2 (en) Video signal processing device
JP3800435B2 (en) Video signal processing device
JP2005012641A (en) Block noise detecting device and block noise eliminating device using the same
JP4227160B2 (en) Block distortion removal method
JP2002199403A (en) Block distortion detecting method, block distortion detector, block distortion eliminating method and block distortion eliminating device
US20120133836A1 (en) Frame level quantization estimation
JP2002281508A (en) Skip area detection type moving image encoder and recording medium
JP4500112B2 (en) Image feature amount detection device, image quality improvement device, display device, and receiver
Coudoux et al. Reduction of color bleeding for 4: 1: 1 compressed video
KR100217148B1 (en) Method of reducing mosquito noise generated during decoding process of image data and device for decoding image data using the same
JP2001145104A (en) Method and device for decoding image
JP2004180344A (en) Moving image signal processing apparatus
JP2007538451A (en) Algorithms to reduce artifacts in decoded video
JP2002532028A (en) Signal processing apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040914

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060803

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060829

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061030

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071017

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071217

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080924