JP2839942B2 - Image data restoration method and apparatus - Google Patents

Image data restoration method and apparatus

Info

Publication number
JP2839942B2
JP2839942B2 JP21337890A JP21337890A JP2839942B2 JP 2839942 B2 JP2839942 B2 JP 2839942B2 JP 21337890 A JP21337890 A JP 21337890A JP 21337890 A JP21337890 A JP 21337890A JP 2839942 B2 JP2839942 B2 JP 2839942B2
Authority
JP
Japan
Prior art keywords
dct
coefficient
zero
coefficients
transform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP21337890A
Other languages
Japanese (ja)
Other versions
JPH0495468A (en
Inventor
昌弘 福田
嗣男 野田
広隆 千葉
君孝 村下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP21337890A priority Critical patent/JP2839942B2/en
Priority to EP91306971A priority patent/EP0469855B1/en
Priority to DE69131808T priority patent/DE69131808T2/en
Priority to US07/738,236 priority patent/US5416854A/en
Priority to KR1019910013213A priority patent/KR960003648B1/en
Priority to CA002048204A priority patent/CA2048204C/en
Publication of JPH0495468A publication Critical patent/JPH0495468A/en
Priority to US08/248,516 priority patent/US7142720B1/en
Priority to US08/828,562 priority patent/US5875266A/en
Priority to US08/834,769 priority patent/US5933538A/en
Priority to US08/832,962 priority patent/US5933533A/en
Application granted granted Critical
Publication of JP2839942B2 publication Critical patent/JP2839942B2/en
Priority to US09/246,966 priority patent/US6549667B1/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [概要] 原画像をそれぞれが複数の画素(N×N)からなる複
数のブロックに分割して得られる各ブロック毎に、ブロ
ック内の複数の画素の階調値を2次元離散コサイン変数
(ADCT)して得られた変換係数を量子化し、得られた量
子化係数を符号化した符号データから画像を復元する方
法及び装置に関し、 逆DCT変換による画像復元を高速化することを目的と
し、 復号された零のDCT係数に対して演算する必要が無い
ことを利用し、復号されたDCT係数が零であるか否かを
判定し、零の係数と非零の係数の分布を示すフラグを設
定し、フラグの設定値に従って逆DCT演算を行うDCT係数
の個数を制御するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Overview] For each block obtained by dividing an original image into a plurality of blocks each consisting of a plurality of pixels (N × N), a gradation value of a plurality of pixels in the block is calculated. A method and apparatus for quantizing transform coefficients obtained by two-dimensional discrete cosine variable (ADCT) and restoring an image from code data obtained by encoding the obtained quantized coefficients, which speeds up image restoration by inverse DCT transform. The purpose is to use the fact that it is not necessary to operate on the decoded zero DCT coefficient, determine whether the decoded DCT coefficient is zero, and determine the zero coefficient and the non-zero coefficient. Is set, and the number of DCT coefficients for performing the inverse DCT operation is controlled according to the set value of the flag.

[産業上の利用分野] 本発明は、データ圧縮された画像を復元する画像デー
タ復元方法及び装置に関し、特に、多値画像を複数の画
素からなるブロックに分割して、ブロック内の画素を直
交変換した後に符号化した多値画像の直交変換符号化デ
ータから画像を復元する画像データ復元方法及び装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data restoring method and apparatus for restoring a data compressed image, and in particular, divides a multi-valued image into blocks each including a plurality of pixels and orthogonally intersects the pixels in the blocks. The present invention relates to an image data restoration method and apparatus for restoring an image from orthogonally-transformed encoded data of a multi-valued image that has been encoded after conversion.

数値データに比べて情報量が桁違いに大きい画像デー
タ、特に、中間調画像やカラー画像のデータを蓄積し、
あるいは、高速,高品質で伝送するためには、画素毎の
階調値を高能率に符号化する必要がある。
Accumulates image data whose information amount is orders of magnitude larger than numerical data, especially data of halftone images and color images.
Alternatively, in order to transmit at high speed and with high quality, it is necessary to efficiently encode the gradation value for each pixel.

従来、画像データの高能率な圧縮方式として、例えば
適応離散コサイン変換符号化方式がある。
Conventionally, as an efficient compression method for image data, for example, there is an adaptive discrete cosine transform coding method.

適応離散コサイン変換符号化方式(Adaptive Discret
e Cosine Transform以下、略して「ADCT」と称する)に
ついて次に説明する。
Adaptive Discret Cosine Transform Coding (Adaptive Discret
e Cosine Transform (hereinafter abbreviated as “ADCT”) will be described below.

ADCTは、画像を8×8画素からなるブロックに分割
し、各ブロックの画信号を2次元離散コサイン変換(以
下、「DCT」と称する)により空間周波数分布の係数に
変換し、視覚に適応した閾値で量子化し、求めた量子化
係数を統計的に求めたハフマン・テーブルにより符号化
するものである。
The ADCT divides an image into blocks of 8 × 8 pixels, converts the image signal of each block into coefficients of a spatial frequency distribution by a two-dimensional discrete cosine transform (hereinafter, referred to as “DCT”), and adapts it to vision. Quantization is performed using a threshold, and the obtained quantization coefficient is encoded by a Huffman table that is statistically obtained.

第7図に示すADCTの基本構成図に従って、符号化動作
を詳細に説明する。
The encoding operation will be described in detail according to the basic configuration diagram of the ADCT shown in FIG.

まず画像を第11図に示す8×8画素からなるブロック
に分割し、端子23から2次元DCT変換部24に入力する。
2次元DCT変換部24では、入力された画信号をDCTによ
り、直交変換して、第12図に示す空間周波数分布の係数
に変換し、線形量子化部25に出力する。
First, the image is divided into blocks of 8 × 8 pixels shown in FIG.
In the two-dimensional DCT transform unit 24, the input image signal is orthogonally transformed by DCT, converted into spatial frequency distribution coefficients shown in FIG. 12, and output to the linear quantization unit 25.

具体的には、第8図に示すように、端子23より入力さ
れた画信号は1次元DCT変換部30で1次元DCT変換され、
転置部31でブロック内の係数の行と列を入れ換え(転
置)、1次元DCT変換部32に出力される。1次元DCT変換
部32では、1次元DCT変換部30と同様に1次元DCT変換さ
れ、転置部33に出力する。転置部33では、転置部31と同
様の転置処理を行い端子34に出力する。
Specifically, as shown in FIG. 8, the image signal input from the terminal 23 is subjected to one-dimensional DCT conversion by the one-dimensional DCT conversion unit 30,
The transposition unit 31 transposes (transposes) the rows and columns of the coefficients in the block and outputs the result to the one-dimensional DCT transformation unit 32. The one-dimensional DCT conversion unit 32 performs one-dimensional DCT conversion in the same manner as the one-dimensional DCT conversion unit 30 and outputs the result to the transposition unit 33. The transposition unit 33 performs the same transposition processing as the transposition unit 31, and outputs the result to the terminal.

このような処理を画像データの全ブロックについて行
うことでDCT係数に変換される。
By performing such processing for all blocks of the image data, it is converted into DCT coefficients.

再び第7図を参照するに、線形量子化部25は、入力し
たDCT係数を、視覚実験により決められた第13図に示す
閾値で構成する量子化マトリクス29により線形量子化
し、例えば第14図に示す量子化DCT係数が得られる。第1
4図に示すように量子化DCT係数は、閾値より小さい値の
DCT係数は0となり、DC成分とわずかのAC成分のみが値
をもつ量子化DCT係数が生成される。
Referring again to FIG. 7, the linear quantization unit 25 linearly quantizes the input DCT coefficients by using a quantization matrix 29 composed of the threshold values shown in FIG. 13 and determined by a visual experiment. Are obtained. First
As shown in Fig. 4, the quantized DCT coefficient has a value smaller than the threshold.
The DCT coefficient becomes 0, and a quantized DCT coefficient in which only the DC component and a few AC components have values is generated.

2次元的に配列された量子化DCT係数は、第15図に示
すジグザグスキャンと呼ばれる走査順序に従って1次元
に変換され、可変長符号化部26に入力される。可変長符
号化部26は、各ブロック先頭のDC成分と前ブロックのDC
成分との差分を可変長符号化する。AC成分については有
効係数(値が0でない係数)の値(以下、「インデック
ス」と称する)とそこまでの無効係数(値が0の係数)
のランの長さ(以下、「ラン」と称する)を、ブロック
毎に可変長符号化する。DC,AC各成分は、画像ごとの統
計量をもとに作成するハフマン・テーブルで構成する符
号表27を用いて符号化され、得られた符号データは順
次、端子28より出力される。
The two-dimensionally arranged quantized DCT coefficients are one-dimensionally converted according to a scanning order called a zigzag scan shown in FIG. The variable length coding unit 26 calculates the DC component at the head of each block and the DC component of the previous block.
The difference from the component is variable-length coded. For the AC component, the value of the effective coefficient (coefficient whose value is not 0) (hereinafter, referred to as “index”) and the invalid coefficient (coefficient whose value is 0) up to that value
(Hereinafter, referred to as “run”) is subjected to variable-length coding for each block. The DC and AC components are encoded using a code table 27 composed of a Huffman table created based on statistics for each image, and the obtained code data is sequentially output from a terminal 28.

一方、符号データは以下の方法により画像に復元され
る。
On the other hand, the code data is restored to an image by the following method.

第9図にADCTの復元回路の構成図を示し、第10図に2
次元逆DCT変換部の構成図を示す。
FIG. 9 shows a configuration diagram of the ADCT restoration circuit, and FIG.
FIG. 2 shows a configuration diagram of a dimensional inverse DCT transform unit.

第9図にて、端子40から入力された符号データは、可
変長復号部41に入力される。可変長復号部41では、第7
図の符号表27のハフマン・テーブルと逆のテーブルで構
成する復号表42により、入力された符号データをインデ
ックスとランの固定長データに復号し、逆量子化部43に
出力する。逆量子化部43は、量子化マトリクス29の各々
で乗算することにより、入力された量子化係数を逆量子
化してDCT係数を復元し、2次元逆DCT変換部44に出力す
る。
In FIG. 9, code data input from a terminal 40 is input to a variable length decoding unit 41. In the variable length decoding unit 41, the seventh
The decoding unit 42 decodes the input code data into fixed-length data of an index and a run by using a decoding table 42 formed by a table opposite to the Huffman table of the code table 27 shown in FIG. The inverse quantization unit 43 multiplies each of the quantization matrices 29 to inversely quantize the input quantization coefficient to restore the DCT coefficient, and outputs the DCT coefficient to the two-dimensional inverse DCT transformation unit 44.

2次元逆DCT変換部44は、入力されたDCT係数を逆DCT
変換により直交変換し、空間周波数分布の係数を画信号
に変換する。具体的には、第10図に示すように、端子50
より入力されたDCT係数は1次元逆DCT変換部51で1次元
逆DCT変換され、転置部52に出力される。転置部52は、
1ブロック内の係数の行と列を入れ換えて1次元逆DCT
変換部53に出力する。1次元逆DCT変換部53は、入力さ
れた転置後の係数を再び1次元逆DCT変換し、転置部54
に出力する。転置部54は、転置部52と同様に再度1ブロ
ック内の係数の行と列を入れ換え、得られた信号を端子
45から出力することにより、画像が復元される。
The two-dimensional inverse DCT transformer 44 converts the input DCT coefficient into an inverse DCT
The orthogonal transform is performed by the transform, and the coefficient of the spatial frequency distribution is converted into an image signal. Specifically, as shown in FIG.
The input DCT coefficient is subjected to one-dimensional inverse DCT transform by a one-dimensional inverse DCT transform unit 51 and output to a transpose unit 52. The transposition unit 52
One-dimensional inverse DCT by exchanging the rows and columns of coefficients in one block
Output to the converter 53. The one-dimensional inverse DCT transformer 53 performs one-dimensional inverse DCT on the input transposed coefficients again, and
Output to The transposition unit 54 exchanges the rows and columns of the coefficients in one block again as in the transposition unit 52, and
Outputting from 45 restores the image.

[従来の技術] 従来の1次元逆DCT変換部51,53は、1ブロックを8×
8画素構成とした場合、1列の8画素に対して、(式
1)〜(式9)に示すマトリクス演算で逆DCT演算を行
うことにより、1列の画像を復元している。尚、(式
1)〜(式9)において[X11]〜[X81]は1列のDCT
係数、[Y11]〜[Y81]は1列の復元画像信号、[A1
1]〜[A88]は変換定数である。
[Prior Art] Conventional one-dimensional inverse DCT transform units 51 and 53 convert one block into 8 ×
In the case of an eight-pixel configuration, an image in one column is restored by performing an inverse DCT operation on the eight pixels in one column by a matrix operation shown in (Equation 1) to (Equation 9). Note that in (Equation 1) to (Equation 9), [X11] to [X81] are DCT of one row
The coefficients [Y11] to [Y81] are the restored image signals in one column, [A1
[1] to [A88] are conversion constants.

Y11=A11*X11+A12*X21+A13*X31+A14*X41 +A15*X51+A16*X61+A17*X71+A18*X81 =F11+F12+F13+F14+F15+F16+F17+F18 (式2) Y21=A21*X11+A22*X21+A23*X31+A24*X41 +A25*X51+A26*X61+A27*X71+A28*X81 =F21+F22+F23+F24+F25+F26+F27+F28 (式3) Y31=A31*X11+A32*X21+A33*X31+A34*X41 +A35*X51+A36*X61+A37*X71+A38*X81 =F31+F32+F33+F34+F35+F36+F37+F38 (式4) Y41=A41*X11+A42*X21+A43*X31+A44*X41 +A45*X51+A46*X61+A47*X71+A48*X81 =F41+F42+F43+F44+F45+F46+F47+F48 (式5) Y51=A51*X11+A52*X21+A53*X31+A54*X41 +A55*X51+A56*X61+A57*X71+A58*X81 =F51+F52+F53+F54+F55+F56+F57+F58 (式6) Y61=A61*X11+A62*X21+A63*X31+A64*X41 +A65*X51+A66*X61+A67*X71+A68*X81 =F61+F62+F63+F64+F65+F66+F67+F68 (式7) Y71=A71*X11+A72*X21+A73*X31+A74*X41 +A75*X51+A76*X61+A77*X71+A78*X81 =F71+F72+F73+F74+F75+F76+F77+F78 (式8) Y81=A81*X11+A82*X21+A83*X31+A84*X41 +A85*X51+A86*X61+A87*X71+A88*X81 =F81+F82+F83+F84+F85+F86+F87+F88 (式9) [発明が解決しようとする問題点] しかしながら、このような従来の画像データ復元方法
及び装置においては、DCT係数を画像に復元する際、全
てのブロックの画素のDCT係数を逆DCT変換していため、
画像復元に時間がかかる問題があった。
Y11 = A11 * X11 + A12 * X21 + A13 * X31 + A14 * X41 + A15 * X51 + A16 * X61 + A17 * X71 + A18 * X81 = F11 + F12 + F13 + F14 + F15 + F16 + F17 + F18 (Equation 2) Y21 = A21 * X11 + A22 * X21 + A23 * X31 + A24 * X41 + A25 * X51 + A26 * X61 + A27 * X71 + A28 * X81 = F21 + F22 + F23 + F24 + F25 + F26 + F27 + F28 (formula 3) Y31 = A31 * X11 + A32 * X21 + A33 * X31 + A34 * X41 + A35 * X51 + A36 * X61 + A37 * X71 + A38 * X81 = F31 + F32 + F33 + F34 + F35 + F36 + F37 + F38 (equation 4) Y41 = A41 * X11 + A42 * X21 + A43 * X31 + A44 * X41 + A45 * X51 + A46 * X61 + A47 * X71 + A48 * X81 = F41 + F42 + F43 + F44 + F45 + F46 + F47 + F48 (Equation 5) Y51 = A51 * X11 + A52 * X21 + A53 * X31 + A54 * X41 + A55 * X51 + A56 * X61 + A57 * X71 + A58 * X81 = F51 + F52 + F53 + F54 + F55 + F56 + F57 + F58 (Equation 6) = F61 + F62 + F63 + F64 + F65 + F66 + F67 + F68 (Equation 7) Y71 = A71 * X11 + A72 X21 + A73 * X31 + A74 * X41 + A75 * X51 + A76 * X61 + A77 * X71 + A78 * X81 = F71 + F72 + F73 + F74 + F75 + F76 + F77 + F78 (Equation 8) Y81 = A81 * X11 + A82 * X21 + A83 * X31 + A84 * X41 + A85 * X51 + A86 * X61 + A87 * X71 + A88 * X81 = F81 + F82 + F83 + F84 + F85 + F86 + F87 + F88 (Equation 9) [invention moth resolution However, in such a conventional image data restoring method and apparatus, when restoring DCT coefficients into an image, the DCT coefficients of the pixels of all blocks are subjected to inverse DCT transformation.
There was a problem that it took time to restore the image.

即ち、1ブロックを8×8画素として場合、逆DCT変
換は8×8のマトリクス演算であり、1画素の変換に8
回の乗算と8回の加算を行うため、1ブロックの64画素
の変換には512回の乗算と512回の加算が必要となる。こ
のため、1画面の全てのブロックの画素を逆DCT変換し
た場合は、画像復元の高速化が困難であるという問題が
あった。
That is, when one block is composed of 8 × 8 pixels, the inverse DCT transform is an 8 × 8 matrix operation, and the transform of one pixel is 8 × 8.
Since one multiplication and eight additions are performed, the conversion of 64 pixels in one block requires 512 multiplications and 512 additions. For this reason, when the pixels of all the blocks of one screen are subjected to the inverse DCT transform, there is a problem that it is difficult to speed up image restoration.

本発明は、このような従来の問題点に鑑みてなされた
もので、逆DCT変換による画像復元を高速化できる画像
データの復元方法及び装置を提供するを目的とする。
The present invention has been made in view of such a conventional problem, and an object of the present invention is to provide a method and apparatus for restoring image data, which can speed up image restoration by inverse DCT.

[問題点が解決するための手段] 第1図は本発明の原理図であり、画像データ復元装置
を例にとっている。
[Means for Solving the Problems] FIG. 1 is a principle diagram of the present invention, taking an image data restoring device as an example.

まず本発明は、原画像をそれぞれが複数の画素(N×
N;但しNは正の整数)からなる複数のブロックに分割し
て得られる各ブロック毎に、該ブロック内の複数の画素
の階調値を2次元離散コサイン変換して得られた変換係
数を量子化し、得られた量子化係数を符号化した符号デ
ータから画像を復元する画像データ復元装置を対象とす
る。
First, according to the present invention, an original image is divided into a plurality of pixels (N ×
N; where N is a positive integer), and for each block obtained by dividing into a plurality of blocks consisting of: a conversion coefficient obtained by performing a two-dimensional discrete cosine transform on the tone values of a plurality of pixels in the block. The present invention is directed to an image data restoration apparatus that restores an image from code data obtained by quantizing the obtained quantized coefficients.

このような画像データ復元装置につき本発明にあって
は、 復号されたDCT係数を保持するDCT係数保持手段12と; 復号されたDCT係数が零か否かを判定する零検出手段1
3と; 零検出手段13の判定結果に基づき、N×N個のDCT係
数の中で値が零である係数と零でない非零係数の分布を
示すフラグを設定するフラグ設定手段14と; 入力されたDCT係数を逆DCT変換するための変換定数を
保持する変換定数保持手段16と; DCT係数保持手段12から読出されたDCT係数を逆DCT変
換して画像信号に復元する逆DCT変換手段17と; DCT係数保持手段12と変換定数保持手段16からの信号
の読出しを制御する読出制御手段15と; を具備したことを特徴とする。
According to the present invention, there is provided a DCT coefficient holding unit 12 for holding a decoded DCT coefficient; and a zero detecting unit 1 for determining whether or not the decoded DCT coefficient is zero.
3; a flag setting means 14 for setting a flag indicating a distribution of a coefficient having a value of zero and a non-zero coefficient among the N × N DCT coefficients based on the determination result of the zero detecting means 13; Conversion constant holding means 16 for holding a conversion constant for performing the inverse DCT conversion of the obtained DCT coefficient; and inverse DCT conversion means 17 for performing an inverse DCT conversion of the DCT coefficient read from the DCT coefficient holding means 12 and restoring the image signal. And reading control means 15 for controlling reading of signals from the DCT coefficient holding means 12 and the conversion constant holding means 16.

ここで零検出手段13は、DCT係数保持手段12と並行し
て動作する。
Here, the zero detecting means 13 operates in parallel with the DCT coefficient holding means 12.

またDCT係数保持手段12と逆DCT変換手段17を並行して
動作させるため、DCT係数保持手段12を2ブロック分のD
CT係数保持領域を備え、一方のDCT係数保持領域に1ブ
ロック分のDCT係数を書込むと同時に他方のDCT係数保持
領域から書込済みのDCT係数を読出す。
Further, in order to operate the DCT coefficient holding means 12 and the inverse DCT transform means 17 in parallel, the DCT coefficient holding means 12 is used for two blocks of D.
A DCT coefficient holding area is provided, and one block of DCT coefficients is written in one DCT coefficient holding area, and at the same time, a written DCT coefficient is read from the other DCT coefficient holding area.

更に読出制御手段15は、フラグ設定手段14の設定結果
に従って動作するもので、フラグ設定手段14は、1列の
N個のDCT係数が全て零か否かを示す第1のフラグを作
成する第1フラグ作成手段と、1列の後半のN/2個のDTC
係数が全て零か否かを示す第2フラグを作成する第2フ
ラグ作成手段と、更に、第1フラグと第2フラグを用い
て第3フラグを作成する第3フラグ作成手段を備える。
Further, the reading control means 15 operates according to the setting result of the flag setting means 14, and the flag setting means 14 generates a first flag indicating whether or not all the N DCT coefficients in one column are zero. One flag creation means and N / 2 DTCs in the latter half of one column
The apparatus further includes a second flag creation unit that creates a second flag indicating whether or not all coefficients are zero, and a third flag creation unit that creates a third flag using the first flag and the second flag.

その結果読出制御手段15は、N個のDCT係数が全て零
の場合は、DCT係数保持手段12に保持されている1列の
N個のDCT係数の読出しをスキップし、N/2個のDCT係数
が全て零の場合は、DCT係数保持手段12に保持されてい
る1列のN/2個のDCT係数の読出しをスキップし、同時に
変換定数保持手段16に保持されている変換定数の読出し
も制御する。一方、本発明の画像データ復元方法は前述
の装置構成の処理動作を時間的な処理ステップとして構
成したものであり、原画像をそれぞれが複数の画素(N
×N)からなる複数のブロックに分割して得られる各ブ
ロック毎に、該ブロック内の前記複数の画素の階調値を
2次元離散コサイン変換して得られた変換係数を量子化
し、得られた量子化係数を符号化した符号データから画
像を復元する画像データ復元方法に於いて、 復号されたN×N個のDCT係数を保持する第1過程
と; 前記N×N個のDCT係数の中で値が零である係数と零
でない非零係数の分布を示すフラグ情報を設定する第2
過程と; 入力されたDCT係数を逆DCT変換して画像信号に復元す
る第3過程と; を具備し、前記第2過程に設定された情報に従い、前記
第1過程に保持されているDCT係数の読出しを制御する
ことを特徴とする。
As a result, when the N DCT coefficients are all zero, the reading control means 15 skips reading of the N DCT coefficients in one column held in the DCT coefficient holding means 12, and reads N / 2 DCT coefficients. When the coefficients are all zero, the reading of the N / 2 DCT coefficients in one column held in the DCT coefficient holding means 12 is skipped, and the reading of the conversion constant held in the conversion constant holding means 16 is also performed simultaneously. Control. On the other hand, the image data restoring method according to the present invention is configured such that the processing operation of the above-described apparatus configuration is performed as a temporal processing step, and the original image is composed of a plurality of pixels (N
.Times.N), for each block obtained by dividing the block into a plurality of blocks, the transform coefficients obtained by two-dimensional discrete cosine transform of the tone values of the plurality of pixels in the block are quantized. In an image data restoring method for restoring an image from encoded data obtained by encoding the quantized coefficients, wherein a first step of holding the decoded N × N DCT coefficients; To set flag information indicating the distribution of a coefficient having a value of zero and a non-zero coefficient being a non-zero value.
And a third step of performing an inverse DCT transform on the input DCT coefficient to restore the image signal to an image signal, wherein the DCT coefficient stored in the first step is stored in accordance with the information set in the second step. Is controlled.

ここで、第1過程の復号されたDCT係数の保持と並行
してDCT係数が零か否かを判定する第4過程を備え、第
2過程は第4過程の判定結果に基づき、N×N個のDCT
係数の中で値が零である係数と零でない非零係数の分布
を示すフラグ情報を設定し、このフラグ情報に基づいた
読出し制御で第3過程の逆DCT変換を行うことを基本と
している。
Here, a fourth step of determining whether or not the DCT coefficient is zero is provided in parallel with the holding of the decoded DCT coefficient in the first step, and the second step is based on the determination result of the fourth step, and is based on N × N DCT
It is based on setting flag information indicating the distribution of a coefficient having a value of zero and a non-zero coefficient among the coefficients, and performing the inverse DCT transform of the third process by the readout control based on the flag information.

[作用] このような構成を備えた本発明の画像データ復元方法
及び装置によれば、復元されたDCT係数の値が零の場
合、この係数の逆DCT演算結果は零であり、零の係数に
対して演算する必要が無いことを利用し、復号されたDC
T係数が零であるか否かを判定し、零の係数と非零の係
数の分布を示すフラグを設定し、フラグの設定値に従っ
て、逆DCT演算を行うDCT係数の個数を制御することによ
り、逆DCT変換の演算回数を大幅に低減し、画像復元速
度を向上させることができる。
[Operation] According to the image data restoration method and apparatus of the present invention having such a configuration, when the value of the restored DCT coefficient is zero, the inverse DCT operation result of this coefficient is zero, and the coefficient of zero Using the fact that there is no need to operate on
By determining whether or not the T coefficient is zero, setting a flag indicating the distribution of the zero coefficient and the non-zero coefficient, and controlling the number of DCT coefficients for performing the inverse DCT operation according to the set value of the flag. In addition, the number of operations of the inverse DCT transform can be significantly reduced, and the image restoration speed can be improved.

[実施例] 第2図は本発明に係る逆DCT変換回路の実施例構成図
であ。
Embodiment FIG. 2 is a block diagram showing an embodiment of an inverse DCT conversion circuit according to the present invention.

即ち、本発明の画像データ復元装置は、第7,8図に示
したADCT方式の符号化装置で得られた符号データを復元
する第9,10図の復元回路で構成され、第9図に示す2次
元逆DCT変換部44が第2図の構成を備えることになる。
尚、本実施例で復元する1ブロックは8×8画素構成と
する。
That is, the image data restoration apparatus of the present invention is constituted by the restoration circuit shown in FIGS. 9 and 10 for restoring the code data obtained by the ADCT type encoding apparatus shown in FIGS. The two-dimensional inverse DCT transform unit 44 shown has the configuration shown in FIG.
Note that one block restored in this embodiment has an 8 × 8 pixel configuration.

まず第9図に示した可変長復号部41で復号され、続い
て逆量子化部43で逆量子化された第12図に示すような8
×8画素構成の1ブロック分のDCT係数は、端子61から
順次DCT係数保持部62に入力され保持される。また、端
子61からのDCT係数は同時に零検出器63にも入力され
る。零検出器63に入力されたDCT係数が零か否かを検出
し、検出結果をフラグ設定器64に出力する。
First, the variable length decoding unit 41 shown in FIG. 9 decodes the data and then inversely quantizes it in the inverse quantization unit 43, as shown in FIG.
The DCT coefficients for one block of the × 8 pixel configuration are sequentially input from the terminal 61 to the DCT coefficient holding unit 62 and held. The DCT coefficient from the terminal 61 is also input to the zero detector 63 at the same time. It detects whether or not the DCT coefficient input to the zero detector 63 is zero, and outputs the detection result to the flag setter 64.

フラグ設定器64には、零のDCT係数の分布を示すフラ
グとして、第3図に示す2種類の制御フラグA,Bを用意
する。
The flag setting unit 64 prepares two types of control flags A and B shown in FIG. 3 as flags indicating the distribution of zero DCT coefficients.

まず第3図(a)の制御フラグA(第1フラグ)は、
1ブロック内のn列目の8個のDCT係数が全て零か否か
を示す。ここで、n=1〜8は列番号である。即ち、列
を示すフラグNo.1〜8に対し1ビット構成のフラグデー
タが設けられ、フラグデータは、 ビット0;1列のDCT係数が全て零、 ビット1;1列のDCT係数が全て零でない、 を表わす。
First, the control flag A (first flag) in FIG.
Indicates whether all eight DCT coefficients in the n-th column in one block are zero or not. Here, n = 1 to 8 are column numbers. That is, flag data of 1 bit is provided for flag Nos. 1 to 8 indicating a column, and the flag data is bit 0; DCT coefficients of one column are all zero; bit 1; DCT coefficients of one column are all zero Is not.

また第3図(b)の制御フラグB(第2フラグ)は、
1ブロック内のn列目の8個のデータの後半4個が全て
零か否かを示す。即ち、列を示すフラグNo.1〜8に対し
1ビット構成のフラグデータが設けられ、フラグデーダ
は、 ビット0;1列後半の4個が全て零でない、 ビット1;1列後半の4個が全て零、 このフラグ設定器64によるフラグ設定動作は第4図の
動作フローに従って次のように行われる。
The control flag B (second flag) in FIG.
Indicates whether or not the latter four of the eight data in the n-th column in one block are all zero. That is, 1-bit flag data is provided for the flag Nos. 1 to 8 indicating the columns, and the flag data is as follows: bit 0; all four in the second half of the column are not zero; All zeros. The flag setting operation by the flag setting unit 64 is performed as follows in accordance with the operation flow of FIG.

まず、ステップS1(以下「ステップ」は省略)におい
て、1列のDCT係数が全て零であることを示す 制御フラグA=0,B=1 の状態に初期化する。
First, in step S1 (hereinafter "step" is omitted), the control flags A = 0 and B = 1 indicating that the DCT coefficients in one column are all zero are initialized.

次にS2に進んで最初に読込んだ第1列目の先頭のDCT
係数をDCT係数保持部62に保持し、次のS3で零検出器63
の検出結果が零か否か判定する。DCT係数が零であれ
ば、S4に進んで1列のDCT係数の数を示すカウンタiが
最後の8番目に達したか否か判定し、達していなければ
S5でカウンタiを1つインクリメントとし、S2で次のi
=1となる第2番目のDCT係数を読込み、DCT係数が零で
ある限り同じ処理を繰り返す。この場合、制御フラグA,
Bには初期値A=0,B=1がそのままセットされる。
Next, proceed to S2, and read the first DCT in the first column read first.
The coefficient is held in the DCT coefficient holding unit 62, and in the next S3, the zero detector 63
It is determined whether the detection result is zero. If the DCT coefficient is zero, the process proceeds to S4, where it is determined whether or not the counter i indicating the number of DCT coefficients in one column has reached the last eighth, and if not,
In S5, the counter i is incremented by one, and in S2, the next i is incremented.
The second DCT coefficient where = 1 is read, and the same processing is repeated as long as the DCT coefficient is zero. In this case, the control flags A,
In B, the initial values A = 0 and B = 1 are set as they are.

一方、S3でDCT係数が零でなかった場合には、S6に進
んで制御フラグAをDCT係数が全て零でないことを示す
A=1に変更し、S7でカウンタiが後半の4個を示す3
を越えているか否か判断する。カウンタiが3以下であ
れば、前半の4個のいずれかが零でないことから制御フ
ラグBを変更せずにS4,S5を介してS2に戻り、次のDCT係
数を読込む。S7でカウンタiが3を越えて後半の4個の
いずれかであった場合には、初期状態で後半4個が全て
零であることを示すB=1にセットしていた制御フラグ
BをS8でB=0に変更する。
On the other hand, if the DCT coefficient is not zero in S3, the process proceeds to S6, where the control flag A is changed to A = 1 indicating that the DCT coefficients are not all zero, and the counter i indicates the latter four in S7. 3
Is determined. If the counter i is 3 or less, the control returns to S2 via S4 and S5 without changing the control flag B because one of the first four is not zero, and reads the next DCT coefficient. If the counter i exceeds 3 and is one of the latter four at S7, the control flag B, which has been set to B = 1 indicating that the latter four are all zero in the initial state, is set to S8. To change B = 0.

以上の処理を1列(8個)毎、1ブロック分繰り返す
ことにより、1ブロック(8列)分のフラグが設定さ
れ、フラグの設定結果を読出制御部65に出力する。
By repeating the above process for one column (eight columns) for one block, a flag for one block (eight columns) is set, and the setting result of the flag is output to the read control unit 65.

即ち、読出制御部65に出力される列毎のフラグ設定結
果は、 A=0,B=1;1列が全て零 A=1,B=1;1列の後半が全て零 A=1,B=0;以外 のいずれかとなる。
That is, the flag setting results for each column output to the read control unit 65 are as follows: A = 0, B = 1; all columns are zero A = 1, B = 1; Any other than B = 0;

例えば、DCT係数保持部62に保持される1ブロック分
のDCT係数が第5図に示す状態にあったとすると、第4
図のフラグ設定動作により第6図に示す第1〜8列の制
御フラグA,Bが設定される。
For example, if the DCT coefficient for one block held in the DCT coefficient holding unit 62 is in the state shown in FIG.
The control flags A and B in the first to eighth columns shown in FIG. 6 are set by the flag setting operation shown in FIG.

読出制御部65は、入力されたフラグの設定値に従い、
DCT係数保持部62から該当するDCT係数を読み出して逆DC
T計算部67に出力すると共に、変換定数保持部66から計
算に必要な変換定数を逆DCT計算部67に出力する。
The read control unit 65, according to the set value of the input flag,
Read the corresponding DCT coefficient from the DCT coefficient holding unit 62 and
In addition to the output to the T calculation unit 67, the conversion constant required for the calculation is output from the conversion constant holding unit 66 to the inverse DCT calculation unit 67.

ここで、逆DCT計算部67は第10図に示したように、1
次元逆DCT変換部51、転値部52、1次元逆DCT変換部53及
び転置部54で構成される。
Here, as shown in FIG. 10, the inverse DCT calculation unit 67
It is composed of a dimensional inverse DCT transform unit 51, a transpose unit 52, a one-dimensional inverse DCT transform unit 53, and a transpose unit 54.

また、DCT係数保持部62は2ブロック分の格納領域を
備えており、一方の領域にDCT係数を格納すると同時に
他方の領域から前回格納した1ブロック分のDCT係数を
読出すことで、逆DCT変換部67により動作と並行して行
う。
The DCT coefficient holding unit 62 has a storage area for two blocks. The DCT coefficient for one block is stored in one area at the same time as the DCT coefficient for one block previously stored is read from the other area. The conversion is performed by the conversion unit 67 in parallel with the operation.

具体的に説明すると、第6図の制御フラグA,Bに基づ
き読出制御部65は第5図のDCT係数に対し、まず制御フ
ラグ (A B)=(1 0) となっている列、即ち、第1列、第7列について8要素
を読出して逆DCT計算部で演算する。また制御フラグが (A B)=(1 1) となっている列、即ち第2列及び第6列については、1
列8要素のうち前半の4要素のみを読み出して演算す
る。勿論、読出は第1〜8列の順番に行う。
More specifically, based on the control flags A and B in FIG. 6, the read control unit 65 first sets the column where the control flag (AB) = (10) with respect to the DCT coefficient in FIG. , The first column and the seventh column are read out, and are calculated by the inverse DCT calculator. Further, for the column in which the control flag is (AB) = (11), that is, for the second and sixth columns, 1
Only the first four elements of the eight elements in the column are read and operated. Of course, reading is performed in the order of the first to eighth columns.

この結果、第5図の例では、1ブロックの64個のDCT
係数の内、第1列の8個、第3列の4個、第6列の4
個、第7列の8個、合計24個のDCT係数のみを読み出し
て演算して端子68から出力すれば、1ブロック分の画像
信号が復元されることになる。
As a result, in the example of FIG. 5, one block of 64 DCTs
Of the coefficients, eight in the first column, four in the third column, four in the sixth column
If only 24 DCT coefficients, ie, 8 in the seventh column and a total of 24 DCT coefficients, are read, operated and output from the terminal 68, an image signal for one block is restored.

以上の処理を1ブロック毎、1画面分繰り返すことに
より、1画面分の画像が復元される。
By repeating the above process for each block and for one screen, an image for one screen is restored.

[発明の効果] 以上説明したように本発明によれば、復号されたDCT
係数の保持と並行して零検出を行い、1列のDCT係数の
中で値が零である係数と非零である係数の分布を示すフ
ラグを設定し、フラグの設定値に従って、逆DCT計算部
に出力するDCT係数の個数を制御することにより、逆DCT
演算の回数を大幅に削減することができ、画像の復元処
理の高速化を図ることができる。
[Effect of the Invention] As described above, according to the present invention, the decoded DCT
Zero detection is performed in parallel with the holding of the coefficient, and a flag indicating the distribution of the coefficient whose value is zero and the non-zero coefficient among the DCT coefficients in one column is set, and the inverse DCT calculation is performed according to the set value of the flag. By controlling the number of DCT coefficients output to the
The number of operations can be greatly reduced, and the speed of image restoration processing can be increased.

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

第1図は本発明の原理説明図; 第2図は本発明に係る逆DCT変換部の実施例構成図; 第3図は本発明の零DCT係数分布を示す制御フラグ説明
図; 第4図は本発明のフラグ設定動作フロー図; 第5図は本発明で処理する1ブロック分のDCT係数説明
図; 第6図は第5図から得られた制御ブラグA,Bの説明図; 第7図はADCT方式の符号化回路の構成図; 第8図は第7図の2次元DCT変換部の構成図; 第9図はADCT方式の復元回路の構成図; 第10図は第9図の2次元逆DCT変換部の構成図; 第11図は1ブロックの原画像信号説明図; 第12図は第11図の画像信号をDCT変換したときのDCT係数
説明図; 第13図は視覚に適応したDCT変換の閾値説明図; 第14図は第10図の閾値を用いて第12図のDCT係数を量子
化したときの量子化DCT係数説明図; 第15図は量子化DCT係数を量子化するための走査順序説
明図である。 図中、 12:DCT係数保持手段 13:零検出手段 14:フラグ設定手段 15:読出制御手段 16:変換定数保持手段 17:逆DCT変換手段 62:DCT係数保持部 63:零検出器 64:フラグ設定器 65:読出制御部 66:変換定数保持部 67:逆DCT計算部
FIG. 1 is a diagram illustrating the principle of the present invention; FIG. 2 is a diagram illustrating an embodiment of an inverse DCT transform unit according to the present invention; FIG. 3 is a diagram illustrating a control flag indicating a zero DCT coefficient distribution according to the present invention; FIG. 5 is a flowchart of a flag setting operation of the present invention; FIG. 5 is an explanatory diagram of DCT coefficients for one block processed by the present invention; FIG. 6 is an explanatory diagram of control plugs A and B obtained from FIG. FIG. 8 is a block diagram of an ADCT-type encoding circuit; FIG. 8 is a block diagram of a two-dimensional DCT converter shown in FIG. 7; FIG. 9 is a block diagram of an ADCT-type restoration circuit; FIG. 11 is an explanatory diagram of an original image signal of one block; FIG. 12 is an explanatory diagram of DCT coefficients when the image signal of FIG. 11 is subjected to DCT; FIG. FIG. 14 is an explanatory diagram of the threshold of the adaptive DCT transform; FIG. 14 is an explanatory diagram of the quantized DCT coefficient when the DCT coefficient of FIG. 12 is quantized using the threshold of FIG. 10; Conversion FIG. 4 is an explanatory diagram of a scanning order for performing In the figure, 12: DCT coefficient holding means 13: Zero detection means 14: Flag setting means 15: Read control means 16: Conversion constant holding means 17: Inverse DCT conversion means 62: DCT coefficient holding unit 63: Zero detector 64: Flag Setting unit 65: Read control unit 66: Conversion constant holding unit 67: Inverse DCT calculation unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 村下 君孝 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 平2−51978(JP,A) 特開 平2−154571(JP,A) 特開 昭60−247782(JP,A) 特公 昭56−32662(JP,B2) (58)調査した分野(Int.Cl.6,DB名) H04N 7/24 - 7/68 H04N 1/41 - 1/419──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Kimitaka Murashita 1015 Kamikodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Inside Fujitsu Limited (56) References JP-A-2-51978 (JP, A) JP-A-2 -154571 (JP, A) JP-A-60-247782 (JP, A) JP-B-56-32662 (JP, B2) (58) Fields investigated (Int. Cl. 6 , DB name) H04N 7/ 24- 7/68 H04N 1/41-1/419

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】原画像をそれぞれが複数画素(N×N)か
らなる複数のブロックに分割して得られる各ブロック毎
に、該ブロック内の前記複数画素の階調値を2次元離散
コサイン変換して得られた変換係数を量子化し、得られ
た量子化係数を符号化した符号データから画像を復元す
る画像データ復元方法に於いて、 復号されたN×N個のDCT係数を保持する第1課程と; 前記N×N個のDCT係数の中で値が零である係数と零で
ない非零係数の分布を示すフラグ情報を設定する第2課
程と; 前記第1課程から読出されたDCT係数を逆DCT変換して画
像信号に復元する第3課程と; 前記第2課程でN個からなる1列のDCT係数が全て零で
あることを示す第1のフラグ状態が設定された場合に
は、前記1列のDCT係数を前記第1過程から読出さない
ことを特徴とする画像データ復元方法。
1. For each block obtained by dividing an original image into a plurality of blocks each consisting of a plurality of pixels (N × N), two-dimensional discrete cosine transform is performed on the tone values of the plurality of pixels in the block. In the image data restoring method for quantizing the transform coefficients obtained as a result and restoring an image from code data obtained by encoding the obtained quantized coefficients, a method for holding the decoded N × N DCT coefficients A second step of setting flag information indicating a distribution of a coefficient having a value of zero and a non-zero coefficient among the N × N DCT coefficients; and a DCT read from the first step. A third process of inverse DCT transforming the coefficients into an image signal; and a second process in which a first flag state indicating that all DCT coefficients in one column of N are zero is set. Does not read the DCT coefficients of the one column from the first step. Image data restoration method.
【請求項2】原画像をそれぞれが複数の画素(N×N)
からなる複数のブロックに分割して得られる各ブロック
毎に、該ブロック内の前記複数の画素の階調値を2次元
離散コサイン変換して得られた変換係数を量子化し、得
られた量子化係数を符号化した符号データから画像を復
元する画像データ復元方法に於いて、 復号されたN×N個のDCT係数を保持する第1課程と; 前記N×N個のDCT係数の中で値が零である係数と零で
ない非零係数の分布を示すフラグ情報を設定する第2課
程と; 前記第1課程から読出されたDCT係数を逆DCT変換して画
像信号に復元する第3課程と; 前記第1課程の復号されたDCT係数の保持と並行して該D
CT係数が零か否かを判定する第4課程を備え、 前記第2課程は前記第4過程の判定結果に基づき1列の
DCT係数のうち後半のN/2個が全て零であることを検出し
たときは、前記第1課程に保持されている前記1列のDC
T係数のうち前半のN/2個のみを前記第3課程に読み出す
ことを特徴とする画像データ復元方法。
2. An original image is composed of a plurality of pixels (N × N).
For each of the blocks obtained by dividing into a plurality of blocks consisting of: a transform coefficient obtained by performing a two-dimensional discrete cosine transform on the tone values of the plurality of pixels in the block; An image data restoration method for restoring an image from code data obtained by encoding coefficients, a first step of holding decoded N × N DCT coefficients; and a value among the N × N DCT coefficients A second process for setting flag information indicating a distribution of a coefficient where is zero and a non-zero coefficient which is not zero; and a third process for performing an inverse DCT transform of the DCT coefficient read from the first process to restore the image signal. In parallel with the holding of the decoded DCT coefficients of the first course,
A fourth process for determining whether or not the CT coefficient is zero, wherein the second process is performed in one row based on the determination result of the fourth process.
When it is detected that the latter N / 2 of the DCT coefficients are all zero, the DCT coefficient of the one column held in the first process is
An image data restoration method, wherein only the first N / 2 of the T coefficients are read out in the third process.
【請求項3】請求項2記載の画像データ復元方法に於い
て、 前記第2過程における1列のDCT係数のうち後半のN/2個
が全て零である検出はN個からなる1列のDCT係数のう
ち、少なくとも1個がゼロでない場合に有効となること
を特徴とする画像データ復元方法。
3. The image data restoration method according to claim 2, wherein the latter half of the DCT coefficients in the second step is detected when all N / 2 of the latter half are zero. An image data restoration method, which is effective when at least one of the DCT coefficients is not zero.
【請求項4】原画像をそれぞれが複数の画素(N×N)
からなる複数のブロックに分割して得られる各ブロック
毎に、該ブロック内における前記複数画素の階調を2次
元離散コサイン変換して得られた変換係数を量子化し、
得られた量子化係数を符号化した符号データから画像を
復元する画像データ復元装置に於いて、 復号されたN×N個のDCT係数を保持するDCT係数保持手
段(12)と; 復号されたDCT係数が零か否かを判定する零検出手段(1
3)と; 該零検出手段(13)の検出結果に基づき、N×N個のDC
T係数の中で値が零である係数と零でない非零係数の分
布を示すフラグを設定するフラグ設定手段(14)と; 入力されたDCT係数を逆DCT変換するための変換定数を保
持する変換定数保持手段(16)と; 前記DCT係数保持手段(12)から読出されたDCT係数を逆
DCT変換して画像信号に復元する逆DCT変換手段(17)
と; 前記DCT係数保持手段(12)と前記変換定数保持手段(1
6)からの読出しを制御する読出制御手段(15)と; を備えてなり、 前記読出制御手段(15)は、前記フラグ設定手段(14)
でN個からなる1列のDCT係数が全て零であることを示
す第1のフラグ状態が設定された場合には、前記DCT係
数保持手段(12)から前記1列のDCT係数読出しを禁止
することを特徴とする画像データ復元装置。
4. An original image is composed of a plurality of pixels (N × N).
For each block obtained by dividing into a plurality of blocks consisting of: quantizing a transform coefficient obtained by performing a two-dimensional discrete cosine transform on the gradation of the plurality of pixels in the block;
In an image data restoration apparatus for restoring an image from code data obtained by encoding the obtained quantized coefficients, DCT coefficient holding means (12) for holding N × N decoded DCT coefficients; Zero detection means for determining whether the DCT coefficient is zero (1
3) and; N × N DCs based on the detection result of the zero detection means (13).
Flag setting means (14) for setting a flag indicating a distribution of a coefficient having a value of zero and a non-zero coefficient among the T coefficients; and holding a conversion constant for performing an inverse DCT conversion of the input DCT coefficient. Transform constant holding means (16); and invert the DCT coefficient read from the DCT coefficient holding means (12).
Inverse DCT transform means for DCT transform and restoration to image signal (17)
The DCT coefficient holding means (12) and the conversion constant holding means (1
Read control means (15) for controlling reading from (6); and the read control means (15) comprises: the flag setting means (14).
When the first flag state indicating that the DCT coefficients of the N columns in one column are all zero is set, the reading of the DCT coefficients in the one column from the DCT coefficient holding means (12) is prohibited. An image data restoration device characterized by the above-mentioned.
【請求項5】原画像をそれぞれが複数の画素(N×N)
からなる複数のブロックに分割して得られる各ブロック
毎に、該ブロック内における前記複数画素の階調を2次
元離散コサイン変換して得られた変換係数を量子化し、
得られた量子化係数を符号化した符号データから画像を
復元する画像データ復元装置に於いて、 復号されたN×N個のDCT係数を保持するDCT係数保持手
段(12)と; 復号されたDCT係数が零か否かを判定する零検出手段(1
3)と; 該零検出手段(13)の検出結果に基づき、N×N個のDC
T係数の中で値が零である係数と零でない非零係数の分
布を示すフラグを設定するフラグ設定手段(14)と; 入力されたDCT係数を逆DCT変換するための変換定数を保
持する変換定数保持手段(16)と; 前記DCT係数保持手段(12)から読出されたDCT係数を逆
DCT変換して画像信号に復元する逆DCT変換手段(17)
と; 前記DCT係数保持手段(12)と前記変換定数保持手段(1
6)からの読出しを制御する読出制御手段(15)と; を備えてなり、 前記フラグ設定手段(14)で1列のDCT係数のうち後半
のN/2個が全て零であることを検出したときは、前記DCT
係数保持手段(12)に保持されている前記1列のDCT係
数のうち前半のN/2個のみを前記逆DCT変換手段(17)に
読出すことを特徴とする画像データ復元装置。
5. An original image is composed of a plurality of pixels (N × N).
For each block obtained by dividing into a plurality of blocks consisting of: quantizing a transform coefficient obtained by performing a two-dimensional discrete cosine transform on the gradation of the plurality of pixels in the block;
In an image data restoration apparatus for restoring an image from code data obtained by encoding the obtained quantized coefficients, DCT coefficient holding means (12) for holding N × N decoded DCT coefficients; Zero detection means for determining whether the DCT coefficient is zero (1
3) and; N × N DCs based on the detection result of the zero detection means (13).
Flag setting means (14) for setting a flag indicating a distribution of a coefficient having a value of zero and a non-zero coefficient among the T coefficients; and holding a conversion constant for performing an inverse DCT conversion of the input DCT coefficient. Transform constant holding means (16); and invert the DCT coefficient read from the DCT coefficient holding means (12).
Inverse DCT transform means for DCT transform and restoration to image signal (17)
The DCT coefficient holding means (12) and the conversion constant holding means (1
Reading control means (15) for controlling reading from 6); and the flag setting means (14) detects that the latter N / 2 of the DCT coefficients in one column are all zero. The DCT
An image data restoration apparatus characterized in that only N / 2 first half DCT coefficients of said one column held in coefficient holding means (12) are read out to said inverse DCT transform means (17).
【請求項6】請求項5記載の画像データ復元装置に於い
て、 前記フラグ設定手段(14)におけるDCT係数の検出はN
個からなる1列のDCT係数のうち、少なくとも1個がゼ
ロでない場合に有効となることを特徴とする画像データ
復元装置。
6. The image data restoration apparatus according to claim 5, wherein the detection of the DCT coefficient in the flag setting means is N.
An image data restoration apparatus, which is effective when at least one of the DCT coefficients in one column is not zero.
【請求項7】請求項4から請求項6記載のいずれかの画
像データ復元装置に於いて、前記零検出手段(13)は、
前記DCT係数保持手段(12)と並行して動作することを
特徴とする画像データ復元装置。
7. The image data restoring device according to claim 4, wherein said zero detecting means (13) comprises:
An image data restoration device which operates in parallel with the DCT coefficient holding means (12).
【請求項8】請求項7記載の画像データ復元装置に於い
て、 前記DCT係数保持手段(12)は2ブロック分のDCT係数保
持領域を備え、一方のDCT係数保持領域に1ブロック分
のDCT係数を書込むと同時に他方のDCT係数保持領域から
書込み済みのDCT係数を読出すことでDCT係数保持手段
(12)と逆DCT変換手段(17)を並行して動作させるこ
とを特徴とする画像データ復元装置。
8. The image data restoration apparatus according to claim 7, wherein said DCT coefficient holding means has a DCT coefficient holding area for two blocks, and one DCT coefficient holding area in one DCT coefficient holding area. An image characterized in that the DCT coefficient holding means (12) and the inverse DCT transform means (17) are operated in parallel by reading the written DCT coefficients from the other DCT coefficient holding area while writing the coefficients. Data recovery device.
JP21337890A 1990-07-31 1990-08-10 Image data restoration method and apparatus Expired - Fee Related JP2839942B2 (en)

Priority Applications (11)

Application Number Priority Date Filing Date Title
JP21337890A JP2839942B2 (en) 1990-08-10 1990-08-10 Image data restoration method and apparatus
EP91306971A EP0469855B1 (en) 1990-07-31 1991-07-30 Image data processing method and apparatus
DE69131808T DE69131808T2 (en) 1990-07-31 1991-07-30 Process and device for image data processing
US07/738,236 US5416854A (en) 1990-07-31 1991-07-30 Image data processing method and apparatus
KR1019910013213A KR960003648B1 (en) 1990-07-31 1991-07-31 Devices and method of dealing picture data
CA002048204A CA2048204C (en) 1990-07-31 1991-07-31 Image data processing method and apparatus
US08/248,516 US7142720B1 (en) 1990-07-31 1994-05-24 Image data processing method and apparatus
US08/828,562 US5875266A (en) 1990-07-31 1997-03-31 Image data processing a method and apparatus
US08/834,769 US5933538A (en) 1990-07-31 1997-04-03 Image data processing method and apparatus
US08/832,962 US5933533A (en) 1990-07-31 1997-04-04 Image data processing method and apparatus
US09/246,966 US6549667B1 (en) 1990-07-31 1999-02-09 Image data encoding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21337890A JP2839942B2 (en) 1990-08-10 1990-08-10 Image data restoration method and apparatus

Publications (2)

Publication Number Publication Date
JPH0495468A JPH0495468A (en) 1992-03-27
JP2839942B2 true JP2839942B2 (en) 1998-12-24

Family

ID=16638205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21337890A Expired - Fee Related JP2839942B2 (en) 1990-07-31 1990-08-10 Image data restoration method and apparatus

Country Status (1)

Country Link
JP (1) JP2839942B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5632662A (en) * 1979-08-23 1981-04-02 Mitsubishi Electric Corp Cathode ray tube
JPS60247782A (en) * 1984-05-23 1985-12-07 Fujitsu Ltd Arithmetic processing system for sparse matrix
JPH0251978A (en) * 1988-08-15 1990-02-21 Fujitsu Ltd Image encoder
JPH02154571A (en) * 1988-12-06 1990-06-13 Nec Corp Still picture decoding system and its device

Also Published As

Publication number Publication date
JPH0495468A (en) 1992-03-27

Similar Documents

Publication Publication Date Title
KR100289591B1 (en) Image data compression apparatus and method thereof, image data decompression apparatus and method thereof, image data recording and reproducing apparatus
US6549667B1 (en) Image data encoding method and apparatus
US7548583B2 (en) Generation and use of masks in MPEG video encoding to indicate non-zero entries in transformed macroblocks
US5732157A (en) Image processing apparatus and method using lossless encoding of a difference between image blocks
JPH05316360A (en) Coding/decoding device for picture signal
US20160021396A1 (en) Systems and methods for digital media compression and recompression
KR100944928B1 (en) Apparatus and method for encoding and computing a discrete cosine transform using a butterfly processor
CA2449709A1 (en) Interframe encoding method and apparatus
US7142720B1 (en) Image data processing method and apparatus
JP2839942B2 (en) Image data restoration method and apparatus
JPH07143488A (en) Method and device for decoding image data
JP2592182B2 (en) Image data restoration device
US6912070B1 (en) Sub-optimal variable length coding
JPH04220081A (en) Method and device for picture data decoding
US6100933A (en) Process and apparatus for compressing and decompressing digital video signals using horizontally-based vector quantization
JPH0856358A (en) Image data encoding device
JP3258688B2 (en) Inverse orthogonal transformation method for orthogonally transformed image data
JP2887843B2 (en) Image data restoration method and apparatus
JP2571274B2 (en) Code data storage / readout method
JP2887842B2 (en) Image data restoration method and apparatus
JP3017334B2 (en) Image data encoding method and apparatus
JP2950559B2 (en) Image processing method and apparatus
JPH0487465A (en) Method and apparatus for converting picture data
JPH04220082A (en) Method and device for picture data decoding
JP3263100B2 (en) Image data encoding method and apparatus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees