JPH10191332A - Block distortion reducing device and method - Google Patents

Block distortion reducing device and method

Info

Publication number
JPH10191332A
JPH10191332A JP34886596A JP34886596A JPH10191332A JP H10191332 A JPH10191332 A JP H10191332A JP 34886596 A JP34886596 A JP 34886596A JP 34886596 A JP34886596 A JP 34886596A JP H10191332 A JPH10191332 A JP H10191332A
Authority
JP
Japan
Prior art keywords
block
block distortion
correction
correction value
distortion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP34886596A
Other languages
Japanese (ja)
Other versions
JP4001962B2 (en
Inventor
Hiroshi Kobayashi
博 小林
Kyoko Fukuda
京子 福田
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP34886596A priority Critical patent/JP4001962B2/en
Publication of JPH10191332A publication Critical patent/JPH10191332A/en
Application granted granted Critical
Publication of JP4001962B2 publication Critical patent/JP4001962B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform effective block distortion correction even when block distortion in block DCT encoding, etc., is a small amplitude of about a quantization step. SOLUTION: A calculating circuit 21 calculates activity block stage difference of image data from a terminal 20 and sends it to a block distortion deciding circuit 22 and each pixel correction value calculating circuit 23. A pseudo- random signal generating circuit 27 sends a pseudo-random signal to the circuit 23, switches the correction value at random and sends it to a block distortion correcting circuit 24. The circuit 24 corrects image data from the terminal 20 by using the correction value from the circuit 23.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、静止画データや動
画データ等の入力データをブロック化してDCT符号化
等を施すようなブロック符号化におけるブロック歪を低
減するためのブロック歪低減装置及び方法に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a block distortion reduction apparatus and method for reducing block distortion in block coding in which input data such as still image data and moving image data is blocked and subjected to DCT coding or the like. It is about.

【0002】[0002]

【従来の技術】従来、静止画データや動画データ等を効
率よく圧縮符号化するための符号化方式として、ブロッ
クDCT(離散コサイン変換)符号化等のブロック符号
化が知られている。
2. Description of the Related Art Conventionally, block coding such as block DCT (discrete cosine transform) coding has been known as a coding method for efficiently compressing and coding still image data and moving image data.

【0003】このようなブロック符号化による画像デー
タ等の圧縮/伸張の際には、ブロック歪(ブロック雑
音)が発生することがあり、圧縮率が高くなるほど歪を
発生させ易い。このブロック歪は、DCT符号化等がブ
ロック内の閉じた空間で変換を行っており、ブロック境
界を越えた相関を考慮していないため、ブロック境界で
の連続性が保存できず、隣接ブロックとの境界部での再
生データ値のずれが雑音として知覚されるものである。
画像データをブロック符号化した場合に発生するブロッ
ク歪は、一種の規則性を有するため一般のランダム雑音
に比べて知覚され易く、画質劣化の大きな要因となって
いる。
In the compression / expansion of image data or the like by such block coding, block distortion (block noise) may occur, and the higher the compression ratio, the more likely the distortion is generated. This block distortion is transformed by DCT coding or the like in a closed space within the block and does not consider the correlation beyond the block boundary. The deviation of the reproduction data value at the boundary of is perceived as noise.
Block distortion that occurs when image data is block-coded has a kind of regularity, and is more easily perceived than general random noise, and is a major factor in image quality degradation.

【0004】このブロック歪を低減するために、例え
ば、「井田、駄竹,“MC−DCT符号化方式における
ノイズ除去フィルタ”,1990年電子情報学会春季全国大
会講演論文集,7-35」の文献においては、画像本来の情
報であるエッジを保存し、それらのノイズを除去するた
め、フィルタのon,offの決定に量子化ステップサイズを
用いたり、処理していく方向を変えて複数回処理を行う
技術が開示されている。また、「井澤,“画像のブロッ
ク符号化における適応形雑音除去フィルタの特性”,信
州大学工学部紀要 第74号、pp.89-100 」の文献にお
いては、周辺ブロックまで抜き出してDCT変換を行い
ノイズ周波数成分を除去する技術が開示されている。
[0004] In order to reduce the block distortion, see, for example, “Ida and Dadatake,“ Noise removal filter in MC-DCT coding method ”, Proc. Of the 1990 IEICE Spring Conference, 7-35”. In the literature, in order to preserve the edges that are the original information of the image and remove those noises, use a quantization step size to determine the on / off of the filter, or process multiple times by changing the processing direction A technique for performing the above is disclosed. Also, in the document of “Izawa,“ Characteristics of Adaptive Noise Removal Filter in Image Block Coding ”, Bulletin of the Faculty of Engineering, Shinshu University, No. 74, pp. 89-100, DCT transform is performed by extracting the surrounding blocks and noise A technique for removing a frequency component has been disclosed.

【0005】前者の方法では、処理が簡単な反面、画像
の高周波成分が欠落してしまうため、後者の方法のよう
な高周波成分の欠落のない補正が望まれている。
In the former method, although the processing is simple, the high-frequency component of the image is lost. Therefore, correction without loss of the high-frequency component as in the latter method is desired.

【0006】この他、ブロック境界でブロック歪が発生
しているか否かを判別して、ブロック歪が発生している
ときに、ブロック境界近傍の画素データを用いて補正を
行う方法も研究されている。
In addition, a method of determining whether or not block distortion has occurred at a block boundary and performing correction using pixel data near the block boundary when block distortion has occurred has been studied. I have.

【0007】[0007]

【発明が解決しようとする課題】ところで、ブロック境
界に生じるブロック歪の段差が復号後の量子化ステップ
に等しいか数ステップ程度の微小振幅であるときには、
ブロック歪の補正が有効に行えない場合がある。
By the way, when the step of the block distortion generated at the block boundary is equal to the quantization step after decoding or has a small amplitude of about several steps,
In some cases, block distortion cannot be effectively corrected.

【0008】すなわち、上述のようなブロック歪が微小
振幅であり、ブロック境界周辺の画像データのレベルが
平坦なときに、上記ブロック歪の補正を行った場合に
は、量子化の分解能の制限により、ブロック境界の隣接
部に疑似エッジが発生することがある。また、ブロック
歪の補正を行わないと、ブロック歪が除去されず、ブロ
ック境界での段差がそのまま残ってしまう。
That is, when the above-mentioned block distortion is minute amplitude and the level of the image data around the block boundary is flat and the above-mentioned block distortion is corrected, the resolution of quantization is limited. In some cases, a pseudo edge may be generated adjacent to a block boundary. If the block distortion is not corrected, the block distortion is not removed, and the step at the block boundary remains as it is.

【0009】このブロック歪の段差が量子化ステップ程
度であっても、ブロック境界周辺が平坦である場合に
は、歪がブロック境界に沿って縦あるいは横方向に並ん
で現れることにより、視覚的に目につき易い。
Even if the level difference of the block distortion is about the quantization step, if the periphery of the block boundary is flat, the distortion appears vertically or horizontally along the block boundary, and is visually recognized. Easy to see.

【0010】本発明は、このような実情に鑑みてなされ
たものであり、ブロック歪の段差が量子化ステップの1
〜数ステップ程度の微小振幅の場合でも、ブロック歪の
低減あるいは除去が効果的に行えるようなブロック歪低
減装置及び方法を提供することを目的とする。
The present invention has been made in view of such circumstances, and the step of block distortion is one of the quantization steps.
It is an object of the present invention to provide a block distortion reduction apparatus and method capable of effectively reducing or removing block distortion even in the case of a small amplitude of about several steps.

【0011】[0011]

【課題を解決するための手段】本発明によれば、ブロッ
ク歪か否かを判定し、ブロック歪を低減するための補正
値を求め、判定結果により補正値で歪を補正する際に、
この補正値を疑似ランダム信号に応じて変調することに
より、上述した課題を解決する。
According to the present invention, it is determined whether or not block distortion is present, a correction value for reducing block distortion is obtained, and when the distortion is corrected by the correction value based on the determination result,
The above-mentioned problem is solved by modulating the correction value according to the pseudo random signal.

【0012】上記補正値を疑似ランダム信号により変調
するとは、例えば、補正値をランダムに切り換えること
が挙げられ、ブロック境界からの距離に応じて上記補正
値の切換発生確率を制御することが挙げられる。
The modulation of the correction value by a pseudo-random signal includes, for example, randomly switching the correction value, and controlling the switching occurrence probability of the correction value according to the distance from the block boundary. .

【0013】取り扱う画像データは、輝度信号と色信号
とを含み、DCT(離散コサイン変換)等のブロック符
号化が施された符号化画像データについて、逆DCT等
のブロック復号処理した際に生じるブロック歪を、本発
明により低減する。
The image data to be handled includes a luminance signal and a chrominance signal, and blocks generated when block decoding processing such as inverse DCT is performed on coded image data that has been subjected to block coding such as DCT (discrete cosine transform). Distortion is reduced by the present invention.

【0014】このブロック歪の低減は、上記輝度信号に
対してのみ、上記色信号に対してのみ、あるいは上記輝
度信号及び色信号の双方に対して施すことが挙げられ
る。また、上記画像データの水平方向のみの処理によ
り、垂直方向のみの処理により、あるいは水平及び垂直
の両方向の処理により、ブロック歪低減を施すことが挙
げられる。
The block distortion can be reduced only for the luminance signal, only for the color signal, or for both the luminance signal and the color signal. In addition, block distortion reduction may be performed by processing the image data only in the horizontal direction, processing only in the vertical direction, or processing in both the horizontal and vertical directions.

【0015】このようなブロック歪低減を施すことによ
り、ブロック境界近傍の画像データがランダムに変調さ
れた補正値で補正される。特に、ブロック歪が復号後の
量子化ステップ程度の微小振幅の場合でも有効に歪低減
が行える。
By performing such block distortion reduction, image data near the block boundary is corrected with a randomly modulated correction value. In particular, the distortion can be effectively reduced even when the block distortion has a small amplitude on the order of the quantization step after decoding.

【0016】上記疑似ランダム信号は、画像の垂直同期
信号によりリセットすることが好ましく、これにより、
特に静止画像において動的なノイズが付加される悪影響
を防止できる。
Preferably, the pseudo random signal is reset by a vertical synchronizing signal of an image.
In particular, the adverse effect of adding dynamic noise to a still image can be prevented.

【0017】[0017]

【発明の実施の形態】以下、本発明に係る実施の形態に
ついて図面を参照しながら説明する。図1は、本発明の
実施の形態となるブロック歪低減装置の概略構成を示す
ブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram illustrating a schematic configuration of a block distortion reduction device according to an embodiment of the present invention.

【0018】この図1において、入力端子20には、ブ
ロック符号化を含む圧縮符号化が施された後に復号され
た画像データが供給される。このブロック符号化を用い
た画像データの圧縮符号化方式の具体例としては、いわ
ゆるMPEGの符号化規格が挙げられる。このMPEG
とは、ISO/IEC JTC1/SC29(Internatio
nal Organization for Standardization / Internation
al ElectrotechnicalCommission, Joint Technical Com
mittee 1 / Sub Committee 29:国際標準化機構/国際
電気標準会議 合同技術委員会1/専門部会29)の動
画像圧縮符号化の検討組織(Moving Picture Experts G
roup)の略称であり、MPEG1標準としてISO11172
が、MPEG2標準としてISO13818がある。これらの国
際標準において、マルチメディア多重化の項目でISO111
72-1及びISO13818-1が、映像の項目でISO11172-2及びIS
O13818-2が、また音声の項目でISO11172-3及びISO13818
-3がそれぞれ標準化されている。
In FIG. 1, an input terminal 20 is supplied with image data decoded after compression coding including block coding. As a specific example of the image data compression coding method using the block coding, there is a so-called MPEG coding standard. This MPEG
Is ISO / IEC JTC1 / SC29 (Internatio
nal Organization for Standardization / International
al ElectrotechnicalCommission, Joint Technical Com
mittee 1 / Sub Committee 29: Moving Picture Experts G, an organization for studying moving image compression and encoding by the International Standards Organization / International Electrotechnical Commission Joint Technical Committee 1 / Specialized Subcommittee 29)
roup), which is ISO11172 as the MPEG1 standard.
However, there is ISO13818 as the MPEG2 standard. In these international standards, ISO 111
72-1 and ISO13818-1 are ISO11172-2 and IS
O13818-2, and audio items ISO11172-3 and ISO13818
-3 are standardized respectively.

【0019】ここで、画像圧縮符号化規格としてのISO1
1172-2又はISO13818-2においては、画像信号を、ピクチ
ャ(フレーム又はフィールド)単位で、画像の時間及び
空間方向の相関を利用して、圧縮符号化を行っており、
空間方向の相関の利用は、ブロックDCT符号化を用い
ることで実現している。
Here, ISO1 as an image compression coding standard is used.
In 1172-2 or ISO13818-2, an image signal is compression-encoded on a picture (frame or field) basis using the correlation in the temporal and spatial directions of the image.
The use of the spatial correlation is realized by using block DCT coding.

【0020】このように、例えばブロックDCT符号化
を含む圧縮符号化が施されて、シリアル伝送されたり記
録再生された後に、デコーダ側で逆DCTされたデータ
が、図1の入力端子20に供給される。
As described above, after being subjected to compression coding including block DCT coding and serially transmitted or recorded / reproduced, the data which has been subjected to inverse DCT at the decoder side is supplied to the input terminal 20 in FIG. Is done.

【0021】図1のアクティビティ及びブロック段差計
算回路21では、後述するように、ブロック境界近傍で
の隣接画素間の差分の平均値であるアクティビティact
と、ブロック境界部での隣接画素間の差分であるブロッ
ク段差δb とが計算され、これらがブロック歪判定回路
22に送られる。
In the activity and block level difference calculation circuit 21 shown in FIG. 1, an activity act which is an average value of a difference between adjacent pixels near a block boundary is described later.
And a block difference δb, which is a difference between adjacent pixels at a block boundary portion, are calculated and sent to the block distortion determination circuit 22.

【0022】ブロック歪判定回路22では、上記アクテ
ィビティact とブロック段差δb とを用いて、後述する
条件判別を行って、ブロック歪であるか否かの判定を行
なう。ブロック歪でないと判定された場合、このブロッ
ク歪判定回路22からの制御信号により、ブロック歪補
正回路24は端子20から入力されたデータを処理せず
に、そのまま端子25を介して出力する。ブロック歪で
あると判定された場合には、ブロック歪補正回路24で
補正処理を行って端子25を介して出力する。
The block distortion determination circuit 22 performs a condition determination, which will be described later, using the activity act and the block level difference δb to determine whether or not block distortion is present. When it is determined that there is no block distortion, the block distortion correction circuit 24 outputs the data input from the terminal 20 via the terminal 25 without processing the data input from the terminal 20 in accordance with the control signal from the block distortion determination circuit 22. If it is determined that the distortion is a block distortion, the block distortion correction circuit 24 performs a correction process and outputs the result via a terminal 25.

【0023】ここで、各画素の補正値計算回路23で
は、後述するように、まず補正値αを求め、次にブロッ
ク境界に隣接する画素及びその近隣の画素に対応する各
補正値を求める。
Here, the correction value calculation circuit 23 for each pixel first obtains a correction value α, and then obtains a correction value corresponding to a pixel adjacent to the block boundary and a pixel adjacent thereto, as described later.

【0024】これらのアクティビティact や各画素に対
応する補正値を計算する際、小数点以下の語長を制限せ
ずに、M(最大長周期)系列発生器等を用いた疑似ラン
ダム信号発生回路27からの疑似ランダム信号を用いて
丸め処理を行い、ブロック境界からの距離に応じてブロ
ック段差を補正する確率を制御している。これは、補正
値を疑似ランダム信号に応じて変調すること、あるいは
補正値をランダムに切り換えることに相当し、後述する
ように、ブロック境界での疑似エッジの発生を抑え、ブ
ロック段差を視覚上なめらかにつながったようにするた
めである。
When calculating the correction values corresponding to these activities act and each pixel, a pseudo random signal generation circuit 27 using an M (maximum long period) sequence generator or the like without limiting the word length after the decimal point. The rounding process is performed using the pseudo-random signal from the block, and the probability of correcting the block step is controlled according to the distance from the block boundary. This is equivalent to modulating the correction value according to a pseudo random signal or switching the correction value at random.As described later, the occurrence of a pseudo edge at a block boundary is suppressed, and the block step is visually smoothed. In order to be connected to

【0025】端子28からは、いわゆるマイコン等の制
御回路より制御信号が送られ、ブロック歪補正回路24
においてブロック歪除去オン/オフの制御がなされる。
また、疑似ランダム信号発生回路27においては、端子
26からのVD(垂直同期信号)によるリセットのオン
/オフの制御がなされる。例えば、静止画像が入力され
た場合、VDによるリセットをオンとする。このVDで
疑似ランダム信号発生回路27をリセットすることによ
り、画面間におけるM系列の発生パターンは同一とな
る。つまり、ある画素に着目した時、その画素に対する
補正値は時間的に変化しないので、補正後の画像に動的
なノイズが付加されるような不具合を防止することがで
きる。
From a terminal 28, a control signal is sent from a control circuit such as a so-called microcomputer, and the block distortion correction circuit 24
, Control of block distortion removal on / off is performed.
In the pseudo-random signal generation circuit 27, on / off of reset is controlled by VD (vertical synchronization signal) from the terminal 26. For example, when a still image is input, reset by VD is turned on. By resetting the pseudo-random signal generation circuit 27 with this VD, the M-sequence generation pattern between screens becomes the same. That is, when attention is paid to a certain pixel, the correction value for that pixel does not change with time, so that a problem that dynamic noise is added to the corrected image can be prevented.

【0026】図2は、上記図1の各画素の補正値計算回
路23の内部構成の一例を示している。端子30には図
1のアクティビティ、ブロック段差計算回路21からの
アクティビティact や、ブロック段差δb が入力され、
補正値α計算回路32により上記補正値αが計算され、
回路33で各画素毎にウェイティングが施され、加算器
34で端子31からの疑似ランダム信号と加算されて、
端子35より取り出され、図1のブロック歪補正回路2
4に送られる。この構成の詳細な動作については後述す
る。
FIG. 2 shows an example of the internal configuration of the correction value calculation circuit 23 for each pixel in FIG. The activity of FIG. 1, the activity act from the block level difference calculation circuit 21 and the block level difference δb are input to the terminal 30.
The correction value α is calculated by the correction value α calculation circuit 32,
The circuit 33 performs weighting for each pixel, and the adder 34 adds the weight to the pseudo-random signal from the terminal 31.
It is taken out from the terminal 35, and the block distortion correction circuit 2 shown in FIG.
4 The detailed operation of this configuration will be described later.

【0027】ここで、説明を簡略化するために、上記図
1の構成における疑似ランダム信号による補正値のラン
ダム切換を省いた図3の構成の場合のブロック歪低減の
動作原理について、図3〜図7を参照しながら説明す
る。
Here, in order to simplify the explanation, the operation principle of the block distortion reduction in the case of the configuration of FIG. 3 in which the random switching of the correction value by the pseudo random signal in the configuration of FIG. This will be described with reference to FIG.

【0028】先ず、図3のアクティビティ及びブロック
段差計算回路21においては、端子20に供給された映
像信号の画素データpより、ブロック境界近傍での隣接
画素間の差分の平均値であるアクティビティact と、ブ
ロック境界部での隣接画素間の差分であるブロック段差
δb とを求める。ここで、図4に示すように、DCTブ
ロック境界の近傍の画素、すなわちブロック境界に隣接
する画素及びその近隣の画素を、 p[i+4] p[i+5] p[i+6] p[i+7]|p[i+8] p[i+9] p
[i+10] p[i+11] ただし、|はブロック境界を表す。
First, in the activity and block level difference calculating circuit 21 shown in FIG. 3, the activity act and the average value of the difference between adjacent pixels near the block boundary are calculated from the pixel data p of the video signal supplied to the terminal 20. , A block difference Δb, which is the difference between adjacent pixels at the block boundary. Here, as shown in FIG. 4, a pixel near the DCT block boundary, that is, a pixel adjacent to the block boundary and its neighboring pixels are represented by p [i + 4] p [i + 5] p [i + 6] p [i + 7] | p [i + 8] p [i + 9] p
[i + 10] p [i + 11] where | represents a block boundary.

【0029】とするとき、アクティビティact は、 act =(|p[i+6] - p[i+5]|+|p[i+7] - p[i+6]| +|p[i+9] - p[i+8]|+|p[i+10] - p[i+9]|)/4 … (1) により計算され、ブロック段差δb は、 δb = p[i+8] - p[i+7] … (2) により計算される。Let the activity act be: act = (| p [i + 6] -p [i + 5] | + | p [i + 7] -p [i + 6] | + | p [i +9] -p [i + 8] | + | p [i + 10] -p [i + 9] |) / 4 (1), and the block step difference δb is given by δb = p [i + 8 ]-p [i + 7]… calculated by (2).

【0030】次に、ブロック歪判定回路22は、これら
のアクティビティact とブロック段差δb とを用いて、 act < δb < Th … (3) の条件を満足するとき、ブロック歪であると判定する。
この条件式(3) 中のThは、所定の閾値(スレッショル
ド値)である。
Next, the block distortion determination circuit 22 determines that block distortion is present when the condition of act <δb <Th (3) is satisfied using the activity act and the block level difference δb.
Th in the conditional expression (3) is a predetermined threshold value (threshold value).

【0031】ブロック歪でないと判定されたときには、
ブロック歪判定回路22からの制御信号により、ブロッ
ク歪補正回路24は端子20から入力されたデータを処
理せずにそのまま出力する。
When it is determined that there is no block distortion,
In response to the control signal from the block distortion determination circuit 22, the block distortion correction circuit 24 outputs the data input from the terminal 20 without processing.

【0032】これに対して、ブロック歪であると判定さ
れたときは、各画素の補正値計算回路23において、先
ず補正値αを次の式(4) あるいは(5) により求める。
On the other hand, when it is determined that the distortion is a block distortion, the correction value α of each pixel is first obtained by the following equation (4) or (5).

【0033】 α = δb − act : δb > 0 … (4) α = δb + act : δb ≦ 0 … (5) 次に、上記ブロック境界近傍の各画素について、 p'[i+4] = p[i+4] + α/16 … (6) p'[i+5] = p[i+5] + α/8 … (7) p'[i+6] = p[i+6] + α/4 … (8) p'[i+7] = p[i+7] + α/2 … (9) p'[i+8] = p[i+8] − α/2 … (10) p'[i+9] = p[i+9] − α/4 … (11) p'[i+10]= p[i+10]− α/8 … (12) p'[i+11]= p[i+11]− α/16 … (13) の式(6)〜(13) により求める。Α = δb−act: δb> 0 (4) α = δb + act: δb ≦ 0 (5) Next, for each pixel near the block boundary, p ′ [i + 4] = p [i + 4] + α / 16 ... (6) p '[i + 5] = p [i + 5] + α / 8 ... (7) p' [i + 6] = p [i + 6] + α / 4… (8) p '[i + 7] = p [i + 7] + α / 2… (9) p' [i + 8] = p [i + 8] − α / 2… (10 ) p '[i + 9] = p [i + 9]-α / 4 ... (11) p' [i + 10] = p [i + 10]-α / 8 ... (12) p '[i + 11] = p [i + 11] −α / 16 (13) It is obtained by equations (6) to (13).

【0034】ブロック歪補正回路24では、ブロック境
界に隣接する画素及びその近隣の画素に対して式(6)〜
(13) に従って補正を行ない、ブロック歪を除去する。
その結果、補正後のブロック境界の段差 p'[i+8]−p'[i
+7] は下式(14)に示すように、上記アクティビティact
の値と等しくなる。
In the block distortion correction circuit 24, equations (6) to (6) are applied to a pixel adjacent to a block boundary and a pixel adjacent thereto.
Correction is performed according to (13) to remove block distortion.
As a result, the step p ′ [i + 8] −p ′ [i
+7] indicates that the activity act
Is equal to the value of

【0035】 p'[i+8] - p'[i+7] =(p[i+8] - α/2 )−(p[i+7] + α/2 ) =(p[i+8] - p[i+7])− α = δb −(δb − act) = act … (14) このときのブロック境界の段差の一例を、図5に示す。
この図5の(A)が、上記補正前の状態を、また(B)
が上記補正後の状態をそれぞれ示している。図5の縦軸
は振幅すなわち画素データ値を、また横軸はH(水平)
方向あるいはV(垂直)方向の画素位置を示し、図5の
(A)のブロック境界の段差δb が、図5の(B)のブ
ロック境界の段差act に補正されている。
P ′ [i + 8] −p ′ [i + 7] = (p [i + 8] −α / 2) − (p [i + 7] + α / 2) = (p [i + 8] -p [i + 7])-[alpha] = [delta] b-([delta] b-act) = act (14) FIG. 5 shows an example of the step at the block boundary at this time.
FIG. 5A shows the state before the correction, and FIG.
Shows the state after the correction. The vertical axis in FIG. 5 represents the amplitude, that is, the pixel data value, and the horizontal axis represents H (horizontal).
5A indicates the pixel position in the vertical direction or the V (vertical) direction, and the step δb at the block boundary in FIG. 5A is corrected to the step act at the block boundary in FIG. 5B.

【0036】ところで、上記図3に示すような構成にお
いて、ブロック歪の段差が図6で示されるように、復号
後の量子化ステップに等しい、つまり歪の段差の大きさ
が1でブロック境界周辺が平坦な時の補正について考え
てみる。
By the way, in the configuration shown in FIG. 3, as shown in FIG. 6, the step of the block distortion is equal to the quantization step after decoding. Consider the correction when is flat.

【0037】このような歪段差が量子化ステップに等し
い場合に、ブロック歪であると判定し補正を行なうと、
量子化の分解能上、図7のように、ブロック境界の隣接
部に疑似エッジPEが発生してしまう。
When such a distortion step is equal to the quantization step, it is determined that the distortion is a block distortion and correction is performed.
Due to the resolution of the quantization, a pseudo edge PE is generated in the vicinity of the block boundary as shown in FIG.

【0038】また、ブロック歪でないと判定されると、
ブロック歪が除去されず、段差がそのまま残ってしま
う。ブロック歪の段差はわずかに1ではあるが、ブロッ
ク境界周辺が平坦であることと、歪が縦あるいは横に並
ぶことにより、視覚上目につく。
If it is determined that the distortion is not block distortion,
The block distortion is not removed, and the step remains as it is. Although the step of the block distortion is only 1, it is visually noticeable because the periphery of the block boundary is flat and the distortion is arranged vertically or horizontally.

【0039】具体例を挙げて説明する。図6に示す信号
が入力された場合、 act = 0 δb = −1 であり、上記スレッショルド値(閾値)Th を例えば3
2とすると、 act < δb < 32 が成立し、ブロック歪であると判定される。このときの
補正値αを上記式(5) より求めると、 α = −1 + 0 = −1 となる。よって、上述したブロック境界近傍の各画素デ
ータの値を、上記式(6)〜(13)を用いて小数点以下第1
位で丸め処理を行なって計算すると、下記式(15)〜(22)
のようになる。
A specific example will be described. When the signal shown in FIG. 6 is input, act = 0 δb = −1, and the threshold value (threshold) Th is set to, for example, 3
If 2 is established, act <δb <32 holds, and it is determined that block distortion occurs. When the correction value α at this time is obtained from the above equation (5), α = −1 + 0 = −1. Therefore, the value of each pixel data in the vicinity of the above-described block boundary is calculated by using the above-described equations (6) to (13).
Equations (15) to (22)
become that way.

【0040】[0040]

【数1】 (Equation 1)

【0041】これらの式(15)〜(22)から、図7に示した
ように、p[i+7]、p[i+8]の画素のところで疑似エッジが
発生する。
From these equations (15) to (22), a pseudo edge is generated at the pixel of p [i + 7] and p [i + 8] as shown in FIG.

【0042】以上の説明のように、上記図3の構成に限
らず、通常のブロック歪補正によっては、ブロック歪の
段差が1の時はブロック歪の補正を効果的に行なうこと
ができなかった。
As described above, the correction of the block distortion cannot be performed effectively when the level difference of the block distortion is 1, not limited to the configuration of FIG. .

【0043】これに対して、本実施の形態においては、
上記図1の構成のように疑似ランダム信号発生回路27
を設け、上記アクティビティact や各画素に対応する補
正値を計算回路23で計算する際に、小数点以下の語長
を制限せずに、M(最大長周期)系列発生器等を用いた
疑似ランダム信号発生回路27からの疑似ランダム信号
を用いて丸め処理を行なうことにより、ブロック境界か
らの距離に応じてブロック段差を補正する確率を制御し
ている。その結果、ブロック段差は視覚上なめらかにつ
ながったように見える。
On the other hand, in the present embodiment,
As shown in FIG. 1, the pseudo random signal generation circuit 27
When calculating the activity act and the correction value corresponding to each pixel by the calculation circuit 23, a pseudo random number using an M (maximum long period) sequence generator or the like is used without limiting the word length after the decimal point. By performing the rounding process using the pseudo random signal from the signal generation circuit 27, the probability of correcting the block step according to the distance from the block boundary is controlled. As a result, the block steps appear visually connected smoothly.

【0044】各画素の補正値計算回路23の内部は、例
えば上記図2のように構成されており、この図2の補正
値計算回路32で補正値αを計算する。その後、ウェイ
ティング回路33で各画素毎にウェイティングを施す。
このウェイティングの具体例とは、補正値αを各画素に
対応してビットシフトし、 α/16、α/8、α/4、α/2な
る値を得るような処理である。
The inside of the correction value calculation circuit 23 of each pixel is configured, for example, as shown in FIG. 2, and the correction value α is calculated by the correction value calculation circuit 32 of FIG. Thereafter, the weighting circuit 33 performs weighting for each pixel.
A specific example of the weighting is a process of bit-shifting the correction value α corresponding to each pixel to obtain values α / 16, α / 8, α / 4, and α / 2.

【0045】例えば、上記図6で示される信号が入力さ
れた場合には、α=−1となるので、α/16、α/8、α/
4、α/2 はそれぞれ下記(23)〜(26)に示した値となる。
なお、2進数で小数点以下の値も併せて示した。
For example, when the signal shown in FIG. 6 is input, α = −1, so that α / 16, α / 8, α /
4, α / 2 are the values shown in the following (23) to (26), respectively.
The value after the decimal point in binary is also shown.

【0046】[0046]

【数2】 (Equation 2)

【0047】また、図2の端子31からは、例えば(27)
〜(34)に示した3ビットのM系列信号等の疑似ランダム
信号が入力される。この疑似ランダム信号の発生順序
は、図1の疑似ランダム信号発生回路27による。な
お、10進数表示は、上記各画素における補正値と桁合
わせをしている。
From the terminal 31 of FIG. 2, for example, (27)
A pseudo random signal such as a 3-bit M-sequence signal shown in (34) is input. The order of generation of the pseudo-random signals is based on the pseudo-random signal generation circuit 27 of FIG. In the decimal notation, digits are aligned with the correction value of each pixel.

【0048】[0048]

【数3】 (Equation 3)

【0049】図2の加算器34では、各画素の補正値と
M系列等の疑似ランダム信号の加算が行なわれる。各画
素ごとに具体的に説明する。
The adder 34 shown in FIG. 2 adds the correction value of each pixel and a pseudo random signal such as an M sequence. A specific description will be given for each pixel.

【0050】上記画素のp[i+7]及びp[i+8]はα/2の補正
がなされるが、上記疑似ランダム信号の(31)〜(34)と加
算される場合に桁上がりし、補正値は1となる。つま
り、補正される確率は50%である。上記画素のp[i+6]
及びp[i+9]はα/4の補正がなされるが、上記疑似ランダ
ム信号の(33)、(34)と加算される場合に桁上がりし、補
正値は1となる。つまり、補正される確率は25%であ
る。上記画素のp[i+5]及びp[i+10]はα/8の補正がなさ
れるが、上記疑似ランダム信号の(34)と加算される場合
に桁上がりし、補正値は1となる。つまり、補正される
確率は12.5%である。上記画素のp[i+4]及びp[i+1
1]はα/16の補正がなされるが、桁上がりをすることは
ないので、補正される確率は0%である。
The pixels p [i + 7] and p [i + 8] are corrected by α / 2, but carry over when added to the pseudo random signals (31) to (34). Then, the correction value becomes 1. That is, the correction probability is 50%. P [i + 6] of the above pixel
And p [i + 9] are corrected by α / 4, but when they are added to the pseudo random signals (33) and (34), the carry is increased and the correction value becomes 1. That is, the correction probability is 25%. The pixels p [i + 5] and p [i + 10] are corrected by α / 8, but when added to (34) of the pseudo random signal, carry up, and the correction value is 1 Become. That is, the probability of correction is 12.5%. P [i + 4] and p [i + 1]
1] is corrected by α / 16, but does not carry over, so the probability of correction is 0%.

【0051】これらの補正の様子を図8に示す。この図
中で○印内にAと記した点が平均的なレベルである。す
なわち、上記各補正される確率に上記補正値1を掛けた
ものが、統計的に見て期待される補正値であり、この期
待される補正値で補正した結果を上記平均的なレベルと
して示している。この図8から明らかなように、ブロッ
ク境界の画素p[i+7]、p[i+8]では、補正される確率が5
0%で、統計的に見た補正期待値は0.5であるが、ブ
ロック境界から離れるに従って補正される確率が小さく
なって、画素のp[i+4]、p[i+11]では補正なしとなって
いる。
FIG. 8 shows how these corrections are made. In this figure, the point marked with A in the circle is the average level. That is, the value obtained by multiplying each of the correction probabilities by the correction value 1 is a statistically expected correction value, and the result corrected with the expected correction value is shown as the average level. ing. As is clear from FIG. 8, the probability of correction is 5 for the pixels p [i + 7] and p [i + 8] at the block boundary.
At 0%, the statistically expected correction value is 0.5, but the probability of correction decreases as the distance from the block boundary increases, and the pixel p [i + 4] and p [i + 11] There is no correction.

【0052】以上のようにして、ブロック境界からの距
離に応じて生成された補正値は、端子35から出力され
る。
The correction value generated according to the distance from the block boundary as described above is output from the terminal 35.

【0053】なお、本実施の形態では、ブロック段差の
大きさが1の時について説明したが、前述のブロック歪
判定及び補正アルゴリズムによれば、ブロック段差の大
きさが1、あるいは復号後の量子化ステップに近いかど
うかを特に区別せずに、ブロック歪補正を行なうことが
できる。また、本実施の形態における映像信号とは、輝
度信号、色信号ともに適用可能であることは言うまでも
ない。
In this embodiment, the case where the size of the block step is 1 has been described. However, according to the above-described block distortion determination and correction algorithm, the size of the block step is 1 or the quantum level after decoding. Block distortion correction can be performed without particularly discriminating whether or not it is close to the conversion step. Further, it goes without saying that the video signal in the present embodiment can be applied to both a luminance signal and a chrominance signal.

【0054】図9は、この発明に係る実施の形態となる
ブロック歪低減回路を適用できるビデオCDプレーヤー
の概略的な構成を示す。
FIG. 9 shows a schematic configuration of a video CD player to which a block distortion reduction circuit according to an embodiment of the present invention can be applied.

【0055】この図9において、ビデオCDやCD−R
OM等のディスク101から、光ピックアップ102に
より読み出されたRF信号は、RFアンプ103に入力
される。ここで増幅されたRF信号は、EFM(8−1
4変調)復調回路104で復調され、シリアルデータと
して、ディスク記録フォーマットのデコーダである例え
ばCD−ROMデコーダ105に入る。
In FIG. 9, a video CD or a CD-R
An RF signal read by an optical pickup 102 from a disk 101 such as an OM is input to an RF amplifier 103. The RF signal amplified here is referred to as EFM (8-1
4) The signal is demodulated by a demodulation circuit 104, and enters as a serial data into a disk recording format decoder, for example, a CD-ROM decoder 105.

【0056】CD−ROMデコーダ105では、シリア
ルデータから例えばMPEGビットストリーム信号に変
換し、MPEGデコーダ106に送る。このMPEG
は、上述したように、画像の時間及び空間方向の相関を
利用して圧縮符号化を行うものであり、空間方向の相関
性を利用するためにブロックDCT符号を採用してい
る。MPEGデコーダ6では、例えばMPEG1フォー
マットに従い復号を行っており、この復号の際に、逆量
子化器161による逆量子化処理後に逆DCT回路16
2による逆DCT処理を施す。さらに、必要に応じて補
間などの処理を行なった後出力する。
The CD-ROM decoder 105 converts the serial data into, for example, an MPEG bit stream signal and sends the signal to the MPEG decoder 106. This MPEG
As described above, compression encoding is performed by using the correlation in the time and space directions of an image, and a block DCT code is used to utilize the correlation in the space direction. The MPEG decoder 6 performs decoding in accordance with, for example, the MPEG1 format. At the time of this decoding, the inverse DCT circuit 16
2 performs an inverse DCT process. Further, after performing processing such as interpolation as necessary, the output is performed.

【0057】MPEGデコーダ106から出力された映
像信号は、ノイズリデューサとしてのブロック歪低減回
路107に入力されるが、ここでの信号はMPEG1で
の圧縮/伸張によるノイズが含まれているので、ブロッ
ク歪低減回路107でこれらのノイズ除去を行なう。こ
のブロック歪低減回路107として、上述した図1に示
すような本発明の実施の形態が適用される。
The video signal output from the MPEG decoder 106 is input to a block distortion reduction circuit 107 as a noise reducer. Since the signal here includes noise due to compression / expansion in MPEG1, the block The distortion reduction circuit 107 removes these noises. As the block distortion reduction circuit 107, the embodiment of the present invention as shown in FIG. 1 described above is applied.

【0058】ブロック歪低減回路107での処理後、N
TSCエンコーダ108で同期信号の付加、色信号の変
調などを行ないNTSC映像信号を生成する。このNT
SC映像信号がD/A変換器109を介して出力端子1
10に出力される。
After processing by the block distortion reduction circuit 107, N
The TSC encoder 108 performs addition of a synchronization signal, modulation of a color signal, and the like to generate an NTSC video signal. This NT
The SC video signal is output to the output terminal 1 via the D / A converter 109.
It is output to 10.

【0059】ブロック歪低減回路107と関連して、マ
イクロコンピュータ等を用いた制御回路111が設けら
れ、制御回路111に対しては操作部112からの制御
信号が供給される。操作部112には、ノイズリダクシ
ョン、例えばブロック歪低減の制御スイッチが設けられ
ており、ブロック歪低減のオン/オフの切り替えがなさ
れる。
A control circuit 111 using a microcomputer or the like is provided in connection with the block distortion reduction circuit 107, and a control signal from an operation unit 112 is supplied to the control circuit 111. The operation unit 112 is provided with a control switch for noise reduction, for example, block distortion reduction, and switches on / off of block distortion reduction.

【0060】また、制御回路111は、M(最大長周
期)系列発生器のような上記図1の疑似ランダム信号発
生回路27についての上記VD(垂直同期信号)による
リセットを制御する。これは、例えば静止画像が入力さ
れた場合、VDによるリセットをオンとして、VDで疑
似ランダム信号発生回路27をリセットすることによ
り、画面間における疑似ランダム信号の発生パターンを
同一とすることができ、これによって、ある画素に着目
した時、その画素に対する補正値は時間的に変化しない
ので、補正後の画像に動的なノイズが付加されるような
不具合を防止することができる。
The control circuit 111 controls the reset by the VD (vertical synchronization signal) of the pseudo random signal generation circuit 27 of FIG. 1 such as an M (maximum long cycle) sequence generator. This is because, for example, when a still image is input, by turning on reset by VD and resetting the pseudo random signal generation circuit 27 by VD, it is possible to make the generation pattern of the pseudo random signal between screens the same, Thus, when focusing on a certain pixel, the correction value for that pixel does not change with time, so that a problem that dynamic noise is added to the corrected image can be prevented.

【0061】ここで、上述した本発明の実施の形態の変
形例について説明する。
Here, a modification of the above-described embodiment of the present invention will be described.

【0062】この変形例においては、上記式(6)〜(13)
で示した補正式を、下記の式(35)〜(40)に変更する。
In this modification, the above equations (6) to (13)
Is changed to the following equations (35) to (40).

【0063】 p'[i+5] = p[i+5] + α/8 … (35) p'[i+6] = p[i+6] + α/4 … (36) p'[i+7] = p[i+7] + 3α/8 … (37) p'[i+8] = p[i+8] − 3α/8 … (38) p'[i+9] = p[i+9] − α/4 … (39) p'[i+10]= p[i+10]− α/8 … (40) この変形例で、上記図6で示す信号が入力された場合、
α/8、α/4、3α/8 はそれぞれ(41)〜(43)に示した値に
なる。
P ′ [i + 5] = p [i + 5] + α / 8 (35) p ′ [i + 6] = p [i + 6] + α / 4 (36) p ′ [ i + 7] = p [i + 7] + 3α / 8 ... (37) p '[i + 8] = p [i + 8]-3α / 8 ... (38) p' [i + 9] = p [i + 9] −α / 4 (39) p ′ [i + 10] = p [i + 10] −α / 8 (40) In this modification, the signal shown in FIG. 6 was input. If
α / 8, α / 4, and 3α / 8 take the values shown in (41) to (43), respectively.

【0064】[0064]

【数4】 (Equation 4)

【0065】上記図4に示す各画素p[i+7]及びp[i+8]
は、3α/8 の補正がなされるが、上記式(32)〜(34)の疑
似ランダム信号と加算される場合に桁上がりし、補正値
は1となる。すなわち、補正される確率は37.5%で
ある。
Each pixel p [i + 7] and p [i + 8] shown in FIG.
Is corrected by 3α / 8, but when it is added to the pseudo-random signals of the above equations (32) to (34), the carry increases, and the correction value becomes 1. That is, the correction probability is 37.5%.

【0066】このような変形例による補正を行う場合に
は、図10で示すような補正結果が得られ、前述の図8
よりもなめらかにブロック段差が補正される。
In the case of performing the correction according to such a modification, a correction result as shown in FIG.
The block step is corrected more smoothly.

【0067】次に、本発明の他の実施の形態について、
図11及び図12を参照しながら説明する。ブロック歪
の補正には、例えば図11及び図12に示すような構成
を用いても本発明を適用することが可能である。図11
は図9におけるブロック歪低減回路107の要部を示
し、図12は図11におけるブロック歪補正回路40の
具体例を示す。
Next, another embodiment of the present invention will be described.
This will be described with reference to FIGS. The present invention can be applied to the correction of the block distortion even if, for example, a configuration as shown in FIGS. 11 and 12 is used. FIG.
Shows a main part of the block distortion reduction circuit 107 in FIG. 9, and FIG. 12 shows a specific example of the block distortion correction circuit 40 in FIG.

【0068】これらの図11及び図12に示す実施の形
態の補正方法について説明する。ブロック歪判定回路2
2において、ブロック歪であると判定された場合、ブロ
ック歪補正回路40は、上記図4の各画素p[i+5]、p[i+
6]、p[i+7]、p[i+8]、p[i+9]、p[i+10] に対してLPF
(ローパスフィルタ)の処理を施し、端子25に出力す
る。ブロック歪でないと判定された場合は、端子20か
ら入力されたデータを処理せずに、そのまま端子25に
出力する。
The correction method of the embodiment shown in FIGS. 11 and 12 will be described. Block distortion judgment circuit 2
In 2, when it is determined that there is block distortion, the block distortion correction circuit 40 outputs the pixels p [i + 5] and p [i +
6], p [i + 7], p [i + 8], p [i + 9], p [i + 10] for LPF
(Low-pass filter) processing and outputs to the terminal 25. If it is determined that there is no block distortion, the data input from the terminal 20 is output to the terminal 25 without processing.

【0069】ブロック歪補正回路40の内部の具体例を
図12を用いて説明する。端子43から入力される制御
信号がH(ノイズリダクションオン)で、かつ端子42
からのブロック歪判定信号もH(ブロック歪であると判
定)となる各信号が入力された時、切換スイッチ47
は、以下の処理が施された信号を選択し、端子48に出
力する。端子20から供給される映像信号は、例えば下
記の式(44)の伝達特性をもつLPFの処理が施される。
A specific example of the inside of the block distortion correction circuit 40 will be described with reference to FIG. When the control signal input from the terminal 43 is H (noise reduction on) and the terminal 42
When each of the signals for which the block distortion determination signal is also H (determined as block distortion) is input, the changeover switch 47
Selects a signal on which the following processing has been performed and outputs the signal to a terminal 48. The video signal supplied from the terminal 20 is subjected to, for example, an LPF process having a transfer characteristic represented by the following equation (44).

【0070】 H(z) =(2+3z-1+6z-2+3z-3+2z-4)/16 … (44) z-1 は単位遅延演算子である。H (z) = (2 + 3z− 1 + 6z− 2 + 3z− 3 + 2z− 4 ) / 16 (44) z− 1 is a unit delay operator.

【0071】このLPFに図6で示す信号が入力された
とき、各画素p[i+5]、p[i+6]、p[i+7]、p[i+8]、p[i+
9]、p[i+10]の応答は、以下の(45)〜(50)の値となる。
ただし、p[i+7]=m+1、p[i+8]=m と置く。
When the signal shown in FIG. 6 is input to the LPF, each pixel p [i + 5], p [i + 6], p [i + 7], p [i + 8], p [i +
9] and p [i + 10] have the following values (45) to (50).
Note that p [i + 7] = m + 1 and p [i + 8] = m.

【0072】 p'[i+5] =(2p[i+3]+3p[i+4]+6p[i+5]+3p[i+6]+2p[i+7])/16 = (2+3+6+3+2)(m+1)/16 = m + 1 … (45) p'[i+6] =(2p[i+4]+3p[i+5]+6p[i+6]+3p[i+7]+2p[i+8])/16 = { (2+3+6+3)(m+1)+2m }/16 = m + 0.875 … (46) p'[i+7] =(2p[i+5]+3p[i+6]+6p[i+7]+3p[i+8]+2p[i+9])/16 = { (2+3+6)(m+1)+(3+2)m }/16 = m + 0.6875 … (47) p'[i+8] =(2p[i+6]+3p[i+7]+6p[i+8]+3p[i+9]+2p[i+10])/16 = { (2+3)(m+1)+(6+3+2)m }/16 = m + 0.3125 … (48) p'[i+9] =(2p[i+7]+3p[i+8]+6p[i+9]+3p[i+10]+2p[i+11])/16 = { 2(m+1)+(3+6+3+2)m }/16 = m + 0.125 … (49) p'[i+10]=(2p[i+8]+3p[i+9]+6p[i+10]+3p[i+11]+2p[i+12])/16 = (2+3+6+3+2)m/16 = m … (50) また、端子41からは、例えば(51)〜(66)に示した4ビ
ットの疑似ランダム信号が入力される。なお、10進表
示は、上記各画素の応答値と桁合わせをしている。
P ′ [i + 5] = (2p [i + 3] + 3p [i + 4] + 6p [i + 5] + 3p [i + 6] + 2p [i + 7]) / 16 = (2 + 3 + 6 + 3 + 2) (m + 1) / 16 = m + 1 ... (45) p '[i + 6] = (2p [i + 4] + 3p [i + 5] + 6p [i + 6] + 3p [ i + 7] + 2p [i + 8]) / 16 = {(2 + 3 + 6 + 3) (m + 1) + 2m} /16=m+0.875 (46) p '[i + 7] = (2p [i + 5 ] + 3p [i + 6] + 6p [i + 7] + 3p [i + 8] + 2p [i + 9]) / 16 = {(2 + 3 + 6) (m + 1) + (3 + 2) m} / 16 = M + 0.6875 ... (47) p '[i + 8] = (2p [i + 6] + 3p [i + 7] + 6p [i + 8] + 3p [i + 9] + 2p [i + 10 ]) / 16 = {(2 + 3) (m + 1) + (6 + 3 + 2) m} /16=m+0.3125 ... (48) p '[i + 9] = (2p [i + 7] + 3p [i + 8] + 6p [i + 9] + 3p [i + 10] + 2p [i + 11]) / 16 = {2 (m + 1) + (3 + 6 + 3 + 2) m} /16=m+0.125… (49) p '[i + 10] = (2p [i + 8] + 3p [i + 9] + 6p [i + 10] + 3p [i + 11] + 2p [i + 12]) / 16 = (2 + 3 + 6 + 3 + 2) m / 16 = m (50) The terminal 41 receives, for example, the 4-bit pseudo random signal shown in (51) to (66). In the decimal display, the digit is aligned with the response value of each pixel.

【0073】[0073]

【数5】 (Equation 5)

【0074】加算器46では、LPF処理された値と4
ビットの疑似ランダム信号の加算が行なわれる。各画素
ごとに具体的に説明する。
In the adder 46, the value subjected to the LPF processing and
Bit pseudo-random signal addition is performed. A specific description will be given for each pixel.

【0075】上記図4の画素p[i+6]は、上記(53)〜(66)
の疑似ランダム信号と加算される場合に桁上がりする。
すなわち、丸め処理された結果がm+1 になる確率は8
7.5%である。上記画素p[i+7]は、(56)〜(66)の疑似
ランダム信号と加算される場合に桁上がりし、丸め処理
された結果がm+1 になる確率は68.75%である。上
記画素p[i+8]は、(62)〜(66)の疑似ランダム信号と加算
される場合に桁上がりし、丸め処理された結果がm+1 に
なる確率は31.25%である。上記画素p[i+9]は、(6
5)〜(66)の疑似ランダム信号と加算される場合に桁上が
りし、丸め処理された結果がm+1 になる確率は12.5
%である。
The pixel p [i + 6] in FIG. 4 corresponds to the above (53) to (66)
Carry up when added to the pseudo-random signal of
That is, the probability that the rounded result is m + 1 is 8
7.5%. When the pixel p [i + 7] is added to the pseudo random signal of (56) to (66), the carry is carried out, and the probability of the rounded result being m + 1 is 68.75%. . When the pixel p [i + 8] is added to the pseudo-random signals of (62) to (66), the carry is increased, and the probability of the rounded result being m + 1 is 31.25%. . The pixel p [i + 9] is (6
5) The probability that when the signal is added to the pseudorandom signal of (66) and the result of rounding becomes m + 1 is 12.5
%.

【0076】これらの補正の様子を図13に示す。図中
の丸印内にAと記した点が平均的なレベルである。以上
のようにしてブロック段差はなめらかに補正される。
FIG. 13 shows how these corrections are made. The point indicated by A in the circle in the figure is the average level. As described above, the block step is corrected smoothly.

【0077】なお、本発明は上述した実施の形態に限定
されるものではなく、例えば、上記実施の形態において
は、水平(H)方向の処理について述べたが、垂直
(V)方向についても同様に適用可能である。また、V
D(垂直同期信号)による疑似ランダム信号発生器のリ
セットは静止画像が入力されたときに限らず、動画像が
入力された場合にも適用可能である。さらに、補正値α
は上記実施の形態のみに限定されず、種々の方法により
補正値を求めることができ、例えばブロック段差あるい
はブロック歪そのものを補正値としてもよい。
The present invention is not limited to the above embodiment. For example, in the above embodiment, the processing in the horizontal (H) direction has been described, but the same applies to the vertical (V) direction. Applicable to Also, V
The resetting of the pseudo-random signal generator by D (vertical synchronization signal) is not limited to the case where a still image is input, and is applicable to the case where a moving image is input. Further, the correction value α
The correction value is not limited to the above embodiment, and the correction value can be obtained by various methods. For example, a block level difference or block distortion itself may be used as the correction value.

【0078】[0078]

【発明の効果】本発明によれば、ブロック歪判定結果に
よりブロック歪補正値で歪を補正する際に、この補正値
を疑似ランダム信号に応じて変調しているため、ブロッ
ク境界近傍の画像データがランダムに変調された補正値
で補正され、ブロック境界での疑似エッジの発生が防止
され、ブロック段差が視覚的に滑らかにつながったよう
になる。
According to the present invention, when the distortion is corrected by the block distortion correction value based on the block distortion determination result, the correction value is modulated according to the pseudo random signal. Is corrected with a randomly modulated correction value, the occurrence of a pseudo edge at the block boundary is prevented, and the block steps are visually connected smoothly.

【0079】上記補正値を疑似ランダム信号により変調
するとは、例えば、補正値をランダムに切り換えること
が挙げられ、ブロック境界からの距離に応じて上記補正
値の切換発生確率を制御することが挙げられる。これに
より、簡単な処理で、ブロック段差が隣接画素近傍も含
めて滑らかにつながるように補正できる。
Modulating the correction value with a pseudo random signal includes, for example, switching the correction value at random, and controlling the switching occurrence probability of the correction value according to the distance from the block boundary. . Thus, with simple processing, it is possible to perform correction so that the block step is smoothly connected including the vicinity of the adjacent pixel.

【0080】従って、本発明によれば、ブロックDCT
符号化などを用いて画像圧縮/伸張した際に発生するブ
ロック歪を除去する装置において、簡易な回路あるいは
方法で復号後の量子化ステップと同等程度の微小振幅の
ブロック歪を効果的に除去することができる。
Therefore, according to the present invention, the block DCT
In a device for removing block distortion generated when an image is compressed / expanded using encoding or the like, a simple circuit or method effectively removes block distortion having a small amplitude equivalent to that of a quantization step after decoding. be able to.

【0081】また、疑似ランダム信号発生をVD(垂直
同期信号)でリセットすることにより、特に静止画像に
おいて動的なノイズが付加される悪影響を防止できる。
Further, by resetting the pseudo-random signal generation by VD (vertical synchronization signal), it is possible to prevent the adverse effect of adding dynamic noise especially in a still image.

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

【図1】本発明に係る実施の形態となる画像データのブ
ロック歪低減装置の概略構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an apparatus for reducing block distortion of image data according to an embodiment of the present invention.

【図2】実施の形態のブロック歪低減装置に用いられる
各画素の補正値計算回路の具体的な構成例を示すブロッ
ク図である。
FIG. 2 is a block diagram illustrating a specific configuration example of a correction value calculation circuit for each pixel used in the block distortion reduction device according to the embodiment;

【図3】本発明の実施の形態の前提となるブロック歪低
減装置の概略構成を示すブロック図である。
FIG. 3 is a block diagram illustrating a schematic configuration of a block distortion reduction device which is a premise of the embodiment of the present invention.

【図4】ブロック歪補正のためのブロック境界近傍の画
素を示す図である。
FIG. 4 is a diagram showing pixels near a block boundary for correcting block distortion.

【図5】ブロック境界の段差の補正動作を説明するため
の図である。
FIG. 5 is a diagram illustrating an operation of correcting a step at a block boundary.

【図6】ブロック境界の段差が1量子化ステップのとき
の画素データの一例を示す図である。
FIG. 6 is a diagram illustrating an example of pixel data when a step at a block boundary is one quantization step.

【図7】ブロック境界の段差が1量子化ステップのとき
の補正後の画素データの一例を示す図である。
FIG. 7 is a diagram illustrating an example of pixel data after correction when a step at a block boundary is one quantization step.

【図8】本発明に係る実施の形態によるブロック歪低減
が施されたときのブロック境界の画素データの一例を示
す図である。
FIG. 8 is a diagram showing an example of pixel data at a block boundary when block distortion reduction is performed according to the embodiment of the present invention.

【図9】本発明に係る実施の形態となる画像データのブ
ロック歪低減装置が用いられたデコーダシステムの概略
構成を示すブロック図である。
FIG. 9 is a block diagram showing a schematic configuration of a decoder system using the apparatus for reducing block distortion of image data according to the embodiment of the present invention.

【図10】本発明に係る実施の形態の変形例によるブロ
ック歪低減が施されたときのブロック境界の画素データ
の一例を示す図である。
FIG. 10 is a diagram showing an example of pixel data at a block boundary when block distortion reduction is performed according to a modification of the embodiment of the present invention.

【図11】本発明に係る他の実施の形態となる画像デー
タのブロック歪低減装置の概略構成を示すブロック図で
ある。
FIG. 11 is a block diagram showing a schematic configuration of an image data block distortion reduction apparatus according to another embodiment of the present invention.

【図12】図11の実施の形態のブロック歪低減装置に
用いられるブロック歪補正回路の具体的な構成例を示す
ブロック図である。
12 is a block diagram illustrating a specific configuration example of a block distortion correction circuit used in the block distortion reduction device according to the embodiment of FIG. 11;

【図13】図11の実施の形態によるブロック歪低減が
施されたときのブロック境界の画素データの一例を示す
図である。
13 is a diagram illustrating an example of pixel data at a block boundary when block distortion reduction is performed according to the embodiment of FIG. 11;

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

21 アクティビティ・ブロック段差計算回路、 22
ブロック歪判定回路、 23 各画素の補正値計算回
路、 24 ブロック歪補正回路、 27 疑似ランダ
ム信号発生回路
21 Activity block level difference calculation circuit, 22
Block distortion determination circuit, 23 correction value calculation circuit for each pixel, 24 block distortion correction circuit, 27 pseudo random signal generation circuit

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 画像データのブロック符号化におけるブ
ロック歪を低減するためのブロック歪低減装置におい
て、 ブロック歪か否かを判定する判定手段と、 上記ブロック歪を低減するための補正値を求める補正値
算出手段と、 上記判定手段による判定結果により上記補正値で歪を補
正する補正手段と、 疑似ランダム信号発生手段とを有し、 上記補正値算出手段は、上記補正値を上記疑似ランダム
信号発生手段からの疑似ランダム信号に応じて変調する
手段を有してなることを特徴とするブロック歪低減装
置。
1. A block distortion reduction apparatus for reducing block distortion in block encoding of image data, comprising: a determination unit for determining whether or not block distortion is present; and a correction for obtaining a correction value for reducing the block distortion. Value correction means, correction means for correcting distortion with the correction value based on the determination result by the determination means, and pseudo-random signal generation means, wherein the correction value calculation means generates the pseudo-random signal from the correction value. A block distortion reducing device comprising means for modulating according to a pseudo random signal from the means.
【請求項2】 上記補正値算出手段は、ブロック境界か
らの距離に応じて上記補正値による補正の確率を制御す
ることを特徴とする請求項1記載のブロック歪低減装
置。
2. The block distortion reduction device according to claim 1, wherein said correction value calculation means controls a probability of correction by said correction value according to a distance from a block boundary.
【請求項3】 入力される画像データが輝度信号及び色
信号からなり、上記輝度信号及び上記色信号の少なくと
も一方に対して上記歪低減のための補正を施すことを特
徴とする請求項1記載のブロック歪低減装置。
3. The apparatus according to claim 1, wherein the input image data comprises a luminance signal and a chrominance signal, and said at least one of said luminance signal and said chrominance signal is corrected for said distortion reduction. Block distortion reduction device.
【請求項4】 画像データの水平方向及び垂直方向の少
なくとも一方に対して上記歪低減のための補正を施すこ
とを特徴とする請求項1記載のブロック歪低減装置。
4. The block distortion reduction device according to claim 1, wherein the correction for reducing the distortion is performed on at least one of the horizontal direction and the vertical direction of the image data.
【請求項5】 上記疑似ランダム信号発生手段は、画像
データの垂直同期信号によりリセットされることを特徴
とする請求項1記載のブロック歪低減装置。
5. The apparatus according to claim 1, wherein said pseudo-random signal generating means is reset by a vertical synchronizing signal of image data.
【請求項6】 画像データのブロック符号化におけるブ
ロック歪を低減するためのブロック歪低減方法におい
て、 ブロック歪であるかどうかを判定する判定工程と、 上記ブロック歪を低減するための補正値を求める補正値
算出工程と、 上記判定工程での判定結果により上記補正値で歪を補正
する補正工程と、 疑似ランダム信号を発生する工程とを有し、 上記補正値算出工程は、上記補正値を上記発生された疑
似ランダム信号に応じて変調することを特徴とするブロ
ック歪低減方法。
6. A block distortion reduction method for reducing block distortion in block coding of image data, comprising: a determination step of determining whether block distortion is present; and a correction value for reducing the block distortion. A correction value calculation step, a correction step of correcting distortion with the correction value based on the determination result in the determination step, and a step of generating a pseudo random signal. A block distortion reduction method characterized by modulating according to a generated pseudo random signal.
【請求項7】 上記補正値算出工程は、ブロック境界か
らの距離に応じて上記補正値による補正の確率を制御す
ることを特徴とする請求項6記載のブロック歪低減方
法。
7. The block distortion reduction method according to claim 6, wherein said correction value calculating step controls a probability of correction by said correction value according to a distance from a block boundary.
【請求項8】 入力される画像データが輝度信号及び色
信号からなり、上記輝度信号及び上記色信号の少なくと
も一方に対して上記歪低減のための補正を施すことを特
徴とする請求項6記載のブロック歪低減方法。
8. The apparatus according to claim 6, wherein the input image data comprises a luminance signal and a chrominance signal, and at least one of said luminance signal and said chrominance signal is corrected for said distortion reduction. Block distortion reduction method.
【請求項9】 画像データの水平方向及び垂直方向の少
なくとも一方に対して上記歪低減のための補正を施すこ
とを特徴とする請求項6記載のブロック歪低減方法。
9. The method according to claim 6, wherein the correction for reducing the distortion is performed on at least one of the horizontal direction and the vertical direction of the image data.
【請求項10】 上記疑似ランダム信号発生工程は、画
像データの垂直同期信号によりリセットされることを特
徴とする請求項6記載のブロック歪低減方法。
10. The method according to claim 6, wherein said pseudo random signal generating step is reset by a vertical synchronization signal of image data.
JP34886596A 1996-12-26 1996-12-26 Block distortion reducing apparatus and method Expired - Fee Related JP4001962B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34886596A JP4001962B2 (en) 1996-12-26 1996-12-26 Block distortion reducing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34886596A JP4001962B2 (en) 1996-12-26 1996-12-26 Block distortion reducing apparatus and method

Publications (2)

Publication Number Publication Date
JPH10191332A true JPH10191332A (en) 1998-07-21
JP4001962B2 JP4001962B2 (en) 2007-10-31

Family

ID=18399915

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34886596A Expired - Fee Related JP4001962B2 (en) 1996-12-26 1996-12-26 Block distortion reducing apparatus and method

Country Status (1)

Country Link
JP (1) JP4001962B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007300350A (en) * 2006-04-28 2007-11-15 Fuji Xerox Co Ltd Decoding device, decoding method, and program
JP2009278666A (en) * 2009-08-25 2009-11-26 Sharp Corp Moving picture decoding apparatus and method of decoding
US7689063B2 (en) 2005-03-28 2010-03-30 Kabushiki Kaisha Toshiba Information processing apparatus and image processing method
US7916967B2 (en) 2006-07-20 2011-03-29 Panasonic Corporation Image processing apparatus and image processing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689063B2 (en) 2005-03-28 2010-03-30 Kabushiki Kaisha Toshiba Information processing apparatus and image processing method
JP2007300350A (en) * 2006-04-28 2007-11-15 Fuji Xerox Co Ltd Decoding device, decoding method, and program
US7916967B2 (en) 2006-07-20 2011-03-29 Panasonic Corporation Image processing apparatus and image processing method
JP2009278666A (en) * 2009-08-25 2009-11-26 Sharp Corp Moving picture decoding apparatus and method of decoding

Also Published As

Publication number Publication date
JP4001962B2 (en) 2007-10-31

Similar Documents

Publication Publication Date Title
JP3800704B2 (en) Video signal processing apparatus and method
JP3943333B2 (en) Image encoding method, image encoding / decoding method, image encoding apparatus, and image recording / reproducing apparatus
US5136371A (en) Digital image coding using random scanning
US5237410A (en) Video signal encoding apparatus utilizing control of quantization step size for improved picture quality
JPH08237669A (en) Picture signal processor, picture signal processing method and picture signal decoder
KR100823371B1 (en) Video data processing apparatus and method thereof
JP3540855B2 (en) Block distortion corrector
JP3961600B2 (en) Block distortion reduction method and apparatus
JP3750128B2 (en) Image decoding apparatus and image decoding method, and image processing apparatus and image processing method
JPH10191332A (en) Block distortion reducing device and method
JP2723867B2 (en) Image signal decoding device
JPH11205792A (en) Block distortion reducing method and its device
JPH0738762A (en) Control system for post-processing filter for video codec
EP0886972B1 (en) Improved post-processing for removing blocking effects in decoded image signal
JP4590751B2 (en) Image noise removal device
JPH10276433A (en) Block noise eliminating device
JP3896635B2 (en) Image data conversion apparatus and method, prediction coefficient generation apparatus and method
JP2002171530A (en) Re-encoder provided with superimpose function and its method
JP3225667B2 (en) Digital signal quantizer
JP3627256B2 (en) Apparatus and method for receiving / reproducing digital image signal
JP3104384B2 (en) Decoding device and decoding method for block transform code
JP3991800B2 (en) INFORMATION SIGNAL PROCESSING DEVICE, INFORMATION SIGNAL PROCESSING METHOD, IMAGE SIGNAL PROCESSING DEVICE AND IMAGE DISPLAY DEVICE, CORRECTION DATA GENERATION DEVICE AND GENERATION METHOD USED FOR THE SAME, PROGRAM FOR EXECUTING each METHOD, AND COMPUTER READABLE RECORDING THE PROGRAM Medium
JP3716842B2 (en) Data encoding apparatus, data encoding method, and program
JP2001045334A (en) Signal processor and signal processing method
JP2001069507A (en) Image data processing device and method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040316

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040413

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040611

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050124

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050607

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050802

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20050811

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20050930

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070706

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070816

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

Free format text: PAYMENT UNTIL: 20100824

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100824

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110824

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120824

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees