JP2624900B2 - Image data restoration device - Google Patents

Image data restoration device

Info

Publication number
JP2624900B2
JP2624900B2 JP2733291A JP2733291A JP2624900B2 JP 2624900 B2 JP2624900 B2 JP 2624900B2 JP 2733291 A JP2733291 A JP 2733291A JP 2733291 A JP2733291 A JP 2733291A JP 2624900 B2 JP2624900 B2 JP 2624900B2
Authority
JP
Japan
Prior art keywords
image data
divided
dct
dct coefficients
inverse
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 - Lifetime
Application number
JP2733291A
Other languages
Japanese (ja)
Other versions
JPH04211574A (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 JP2733291A priority Critical patent/JP2624900B2/en
Publication of JPH04211574A publication Critical patent/JPH04211574A/en
Application granted granted Critical
Publication of JP2624900B2 publication Critical patent/JP2624900B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は多値画像を複数の画素か
らなるブロックに分割し、ブロック内の画素を直交変換
した後に符号化した符号データから画像を復元する画像
データ復元装置に関し、特に1ブロックの符号データを
分割して複数段階にわたり画像を階層復元する画像デー
タ復元装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data restoration apparatus which divides a multi-valued image into blocks each consisting of a plurality of pixels, and restores an image from encoded code data after orthogonally transforming the pixels in the blocks. The present invention relates to an image data restoration device that divides one block of code data and restores an image hierarchically over a plurality of stages.

【0002】数値データに比べて情報量が桁違いに大き
い画像データ、特に、中間調画像やカラ−画像のデータ
を蓄積し、あるいは、高速、高品質で伝送するために
は、画素毎の階調値を高能率に符号化する必要がある。
In order to store image data whose information amount is orders of magnitude larger than numerical data, in particular, data of halftone images and color images, or to transmit them at high speed and with high quality, it is necessary to use a pixel-by-pixel level. The key values need to be encoded efficiently.

【0003】画像データの高能率な圧縮方式としては、
例えば適応離散コサイン変換符号化方式(Adaptive Dis
crete Cosine Transform以下、略して「ADCT」と称
する)が知られている。
A highly efficient compression method for image data is as follows.
For example, adaptive discrete cosine transform coding (Adaptive Dis
The Crete Cosine Transform (hereinafter abbreviated as "ADCT") is known.

【0004】ADCT方式は、画像を8×8画素からな
るブロックに分割し、各ブロックの画信号を二次元離散
コサイン変換(以下、「DCT変換」と称する)により
空間周波数分布のDCT係数に変換し、視覚に適合した
閾値で量子化し、求まった量子化DCT係数を統計的に
求めたハフマン・テ−ブルにより符号化するものであ
る。
In the ADCT method, an image is divided into blocks each having 8 × 8 pixels, and an image signal of each block is converted into DCT coefficients of a spatial frequency distribution by a two-dimensional discrete cosine transform (hereinafter, referred to as “DCT transform”). Then, the quantized DCT coefficients are quantized by a threshold value suitable for the visual sense, and the obtained quantized DCT coefficients are encoded by a Huffman table statistically obtained.

【0005】[0005]

【従来の技術】図15は従来のADCT符号化回路のブ
ロック図である。図15において、画像を図17に示す
8×8画素からなるブロックに分割し、端子50から2
次元DCT変換部52に入力する。2次元DCT変換部
52では、入力された画信号をDCTにより直交変換し
て、図18に示す空間周波数分布のDCT係数に変換
し、線形量子化部54に出力する。具体的には、図16
に示すように、端子64より入力された画像信号は1次
元DCT変換部66で1次元DCT変換され、転置部6
8に出力される。転置部68は、1ブロック内の係数の
行と列を入れ替えて1次元DCT変換部70に出力す
る。1次元DCT変換部70は、入力された転置後の係
数を再び1次元DCT変換し、転置部72に出力する。
転置部72は、転置部68と同様に再度1ブロック内の
係数の行と列を入れ替えることにより得られる信号を端
子74から線形量子化部54に出力する。
2. Description of the Related Art FIG. 15 is a block diagram of a conventional ADCT encoding circuit. In FIG. 15, the image is divided into blocks of 8 × 8 pixels shown in FIG.
It is input to the dimensional DCT transform unit 52. In the two-dimensional DCT transform unit 52, the input image signal is orthogonally transformed by DCT, converted into DCT coefficients having a spatial frequency distribution shown in FIG. 18, and output to the linear quantization unit 54. Specifically, FIG.
As shown in (1), the image signal input from the terminal 64 is one-dimensionally DCT transformed by the one-dimensional DCT transformation part 66,
8 is output. The transpose unit 68 interchanges the rows and columns of the coefficients in one block and outputs the result to the one-dimensional DCT transform unit 70. One-dimensional DCT unit 70 performs one-dimensional DCT on the input transposed coefficients again, and outputs the resultant to transposed unit 72.
The transposition unit 72 outputs a signal obtained by exchanging the rows and columns of the coefficients in one block again to the linear quantization unit 54 from the terminal 74, similarly to the transposition unit 68.

【0006】再び、図15を参照するに、線形量子化部
54では、入力されたDCT係数を、視覚実験により決
まられた図19に示す閾値で構成する量子化マトリクス
56の各々に、量子化制御パラメ−タを乗算して量子化
閾値を求め、この量子化閾値によりDCT係数を除算し
て量子化DCT係数を求める線形量子化を行う。この量
子化の結果、図20に示すように、閾値以下のDCT係
数は零となり、DC成分とわずかなAC成分のみが値を
持つ量子化DCT係数が生成される。
Referring again to FIG. 15, in the linear quantization section 54, the input DCT coefficient is quantized to each of the quantization matrices 56 constituted by the threshold values shown in FIG. The control parameter is multiplied to obtain a quantization threshold, and a DCT coefficient is divided by the quantization threshold to perform a linear quantization for obtaining a quantized DCT coefficient. As a result of this quantization, as shown in FIG. 20, the DCT coefficient equal to or smaller than the threshold value becomes zero, and a quantized DCT coefficient having only the DC component and a small AC component has a value.

【0007】2次元的に配列された量子化DCT係数
は、図21に示すジグザグスキャンにより1次元に変換
され、可変長符号化部58に入力される。可変長符号化
部58は、各ブロック先頭のDC成分と前ブロックのD
C成分との差分を可変長符号化する。AC成分について
は零でない有効係数の値(以下、「インデックス」と称
す)と、インデックスまでの零となる無効係数のランの
長さ(以下、「ラン」と称す)を可変長符号化する。更
に、DC,AC各成分は、画像毎の統計量をもとに作成
するハフマン・テ−ブルを構成する符号表60を用いて
符号化され、得られた符号データは順次、端子62より
出力される。
[0007] The quantized DCT coefficients arranged two-dimensionally are converted into one dimension by zigzag scan shown in FIG. 21 and input to the variable length coding unit 58. The variable length coding unit 58 calculates the DC component at the head of each block and the D component of the previous block.
The difference from the C component is variable-length coded. For the AC component, a variable-length coding is performed on the value of a non-zero effective coefficient (hereinafter, referred to as an “index”) and the length of a run of an invalid coefficient that becomes zero up to the index (hereinafter, referred to as a “run”). Further, the DC and AC components are encoded using a code table 60 constituting a Huffman table created based on the statistics for each image, and the obtained code data is sequentially output from a terminal 62. Is done.

【0008】図22は従来のADCT復元回路のブロッ
ク図を示す。図22において、端子10から入力された
符号データは、可変長復号部12に入力される。可変長
復号部12では、図15における符号表60のハフマン
・テ−ブルと逆のテ−ブルで構成する復号表14によ
り、入力された符号データをインデックスとランの固定
長データに復号し、逆量子化部16に出力する。逆量子
化部16は、量子化マトリクス18の各々を量子化制御
パラメ−タで乗算した値(量子化閾値)で乗算すること
により、入力された量子化DCT係数を逆量子化してD
CT係数を復元し、2次元逆DCT変換部20に出力す
る。
FIG. 22 shows a block diagram of a conventional ADCT restoration circuit. In FIG. 22, code data input from a terminal 10 is input to a variable length decoding unit 12. The variable length decoding unit 12 decodes the input code data into fixed-length data of an index and a run by using a decoding table 14 composed of a table opposite to the Huffman table of the code table 60 in FIG. Output to the inverse quantization unit 16. The inverse quantization unit 16 inversely quantizes the input quantized DCT coefficients by multiplying each of the quantization matrices 18 by a value (quantization threshold value) multiplied by a quantization control parameter to obtain a D value.
The CT coefficients are restored and output to the two-dimensional inverse DCT transform unit 20.

【0009】2次元逆DCT変換部20は、入力された
DCT係数を逆DCT変換により直交変換し、空間周波
数分布のDCT係数を画信号に変換する。具体的には、
図23に示すように、端子78より入力されたDCT係
数は1次元逆DCT変換部80で1次元逆DCT変換さ
れ、転置部82に出力される。転置部82は、1ブロッ
ク内の係数の行と列を入れ替えて1次元逆DCT変換部
84に出力する。1次元逆DCT変換部84は、入力さ
れた転置後の係数を再び1次元逆DCT変換し、転置部
86に出力する。転置部86は、転置部82と同様に再
度1ブロック内の係数の行と列を入れ替えることにより
得られる信号を、端子88から出力することにより、画
像が復元される。
[0009] The two-dimensional inverse DCT transform unit 20 orthogonally transforms the input DCT coefficients by inverse DCT transform, and converts the DCT coefficients of the spatial frequency distribution into image signals. In particular,
As shown in FIG. 23, the DCT coefficient input from the terminal 78 is one-dimensional inverse DCT transformed by the one-dimensional inverse DCT transform unit 80 and output to the transposition unit 82. The transposition unit 82 interchanges the rows and columns of the coefficients in one block and outputs the result to the one-dimensional inverse DCT transform unit 84. One-dimensional inverse DCT unit 84 performs one-dimensional inverse DCT on the input transposed coefficients again and outputs the result to transposition unit 86. The transposition unit 86 outputs a signal obtained by exchanging the rows and columns of the coefficients in one block again from the terminal 88 in the same manner as the transposition unit 82, so that the image is restored.

【0010】ところで、階調画像やカラ−画像では高能
率に圧縮しても、1画面の画像データを転送するのにI
SDNで10秒程度かかる。このため、全画面がディス
プレイ装置に表示される迄に相当の時間を要し、不都合
であった。
By the way, even if a gradation image or a color image is compressed at a high efficiency, it is difficult to transfer image data of one screen.
It takes about 10 seconds with SDN. Therefore, it takes a considerable time until the entire screen is displayed on the display device, which is inconvenient.

【0011】そこで、符号データを複数の階層(ステ−
ジ)に分割し、階層毎に画像データを少しづつ復元出力
し、短い時間で大まかな全体の画像をディスプレイ装置
に表示させ、以後漸次詳細な画像データを復元して次第
に良質な画像をディスプレイ装置に描画する階層復元方
式が提案されている。
Therefore, the code data is stored in a plurality of layers (stages).
The image data is restored and output little by little for each layer, and a rough whole image is displayed on the display device in a short time, and thereafter, detailed image data is gradually restored to gradually display a high-quality image. Has been proposed.

【0012】図24は従来のADCT階層復元回路のブ
ロック図を示す。図24において、符号データは端子1
0より可変長復号部12に入力される。可変長復号部1
2では符号データを量子化されたDCT係数に復号す
る。復号された量子化DCT係数は逆量子化部20に出
力され、DCT係数に逆量子化する。DCT係数は並び
変えのために、一旦、DCT係数バッファに90に保持
される。
FIG. 24 shows a block diagram of a conventional ADCT hierarchy restoration circuit. In FIG. 24, the code data is
0 is input to the variable length decoding unit 12. Variable length decoding unit 1
In step 2, code data is decoded into quantized DCT coefficients. The decoded quantized DCT coefficients are output to the inverse quantization unit 20 and inversely quantized to DCT coefficients. The DCT coefficients are once stored at 90 in the DCT coefficient buffer for reordering.

【0013】ここで64個のDCT係数を走査順にX01,
X02,・・・・X64とすると、DCT係数バッファ90
は、まず第1項から第n1項(n1<64)までのデータ
を2次元DCT変換部20に出力し、画像データに逆変
換する。得られた画像データは画像メモリ92に保持さ
れ、端子36から出力される。
Here, 64 DCT coefficients are converted into X01,
X02,..., X64, the DCT coefficient buffer 90
Outputs the data from the first term to the n 1 -th term (n 1 <64) to the two-dimensional DCT transform unit 20, and inversely transforms the data into image data. The obtained image data is held in the image memory 92 and output from the terminal 36.

【0014】次に、DCT係数バッファ90は第n1
から第n2項(n1<n2≦64)までのデータを2次元
逆DCT変換部20に出力し、画像データに逆変換す
る。そして、得られた画像データを画像メモリ92に保
持し、端子36から出力する。
[0014] Next, DCT coefficient buffer 90 is outputted to the n 1 first n 2 paragraphs (n 1 <n 2 ≦ 64) until the data two-dimensional inverse DCT unit 20, inverse transform to the image data . Then, the obtained image data is stored in the image memory 92 and output from the terminal 36.

【0015】最終的にDCT係数バッファ90は第1項
から第64項までの全DCT係数を2次元逆DCT変換
部20に出力し、画像データに復元して画像メモリ92
に保持する。
Finally, the DCT coefficient buffer 90 outputs all the DCT coefficients from the first term to the sixty-fourth term to the two-dimensional inverse DCT transform unit 20, restores the data to image data, and
To hold.

【0016】このように、データを分割して転送し最後
に全てのデータを転送することで、1画面分の階層復元
が完了する。
As described above, by dividing the data and transferring the data, and finally transferring all the data, the hierarchical restoration for one screen is completed.

【0017】[0017]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のADCT階調復元にあっては、例えば、8ビ
ット(256階調)の画像データを用いた場合、逆量子
化後のDCT係数を保持する11ビットのDCT係数バ
ッファ90と8ビットの復元画像メモリ92を必要と
し、従って全体では19ビットもの画像メモリを持つ必
要があり、装置規模が大きくなり、またメモリアクセス
に処理時間を要するために階層復元の処理効率も低いと
いう問題があった。
However, in such conventional ADCT gradation restoration, for example, when 8-bit (256 gradation) image data is used, the DCT coefficient after inverse quantization is calculated. An 11-bit DCT coefficient buffer 90 to be held and an 8-bit restored image memory 92 are required. Therefore, it is necessary to have a 19-bit image memory as a whole, which increases the size of the apparatus and requires processing time for memory access. However, there is a problem that the processing efficiency of hierarchical restoration is low.

【0018】本発明は、このような従来の問題点に鑑み
てなされたもので、回路規模の増加を抑えて効率的な階
層復元ができる画像データ復元装置を提供することを目
的としている。
The present invention has been made in view of such conventional problems, and has as its object to provide an image data restoration apparatus capable of performing efficient hierarchical restoration while suppressing an increase in circuit scale.

【0019】[0019]

【課題を解決するための手段】図1は本発明の原理説明
図である。12は1ブロックを複数の階層に分割した分
割符号データを量子化DCT係数に復号する復号手段、
16は復号された量子化DCT係数を逆量子化してDC
T係数を求める逆量子化手段、20はDCT係数をマト
リクス演算により逆DCT変換してN+2ビットの分割
画像データを求める逆DCT変換手段、22は累積画像
データと逆DCT変換手段20からの画像データを加算
する加算手段、24は累積画像データを記憶する深さ方
向にN+1ビットの大きさを持つ画像メモリを使用した
画像データ保持手段である。
FIG. 1 is a diagram illustrating the principle of the present invention. 12 is a decoding means for decoding divided code data obtained by dividing one block into a plurality of layers into quantized DCT coefficients;
16 dequantizes the decoded quantized DCT coefficient to obtain a DC
Inverse quantization means for obtaining T coefficients; 20, inverse DCT conversion means for performing inverse DCT conversion of DCT coefficients by matrix operation to obtain N + 2 bit divided image data; 22, cumulative image data and image data from inverse DCT conversion means 20; Is an image data holding means using an image memory having a size of N + 1 bits in the depth direction for storing the accumulated image data.

【0020】30は逆DCT変換手段20で得られたN
+2ビットの分割画像データに2を(N−1)乗した数
値を加算してアンダ−フロ−のない分割画像データを発
生するレベルシフト手段、32は画像データ保持手段2
4に保持されている第(i−1)階層迄のN+1ビット
の累積画像データg(i−1)とレベルシフト手段30
から出力される第i階層の分割画像データf(i)′を
用いて、第i階層までの累積画像データg(i)を演算
する累積演算手段である。
Numeral 30 denotes N obtained by the inverse DCT transform means 20
Level shift means for generating a divided image data without underflow by adding a value obtained by raising 2 to the power of (N-1) to the +2 bit divided image data;
4 and the N + 1-bit accumulated image data g (i-1) up to the (i-1) th hierarchy and the level shift means 30
Is a cumulative calculation means for calculating the cumulative image data g (i) up to the i-th hierarchy by using the divided image data f (i) 'of the i-th hierarchy output from.

【0021】[0021]

【作用】1ブロックを複数の階層に分割した分割符号デ
ータを復号手段12に入力し、該復号手段で分割符号デ
ータを量子化DCT係数に復号し、逆量子化手段16に
おいて復号された量子化DCT係数を逆量子化してDC
T係数を発生し、逆DCT変換手段20においてDCT
係数をマトリクス演算により逆DCT変換してN+2ビ
ットの分割画像データを求める。加算手段22は画像デ
ータ保持手段24に保持されている第(i−1)階層ま
でのN+1ビットの累積画像データと逆DCT変換手段
20から出力される第i階層における分割画像データを
加算して第i階層までの累積画像データを求め、画像デ
ータ保持手段24に保持させる。
The divided code data obtained by dividing one block into a plurality of hierarchies is input to a decoding means, which decodes the divided code data into quantized DCT coefficients, and which is decoded by an inverse quantization means. DCT coefficient is inversely quantized to DC
A T coefficient is generated, and the DCT is
The coefficients are subjected to inverse DCT transform by matrix operation to obtain N + 2 bit divided image data. The adding means 22 adds the accumulated image data of N + 1 bits up to the (i-1) th hierarchy held in the image data holding means 24 and the divided image data in the ith hierarchy output from the inverse DCT transforming means 20. The accumulated image data up to the i-th layer is obtained and stored in the image data holding unit 24.

【0022】又、レベルシフト手段30において、逆D
CT変換手段20から出力される分割画像データf
(i)に2を(N−1)乗した数値を加算してアンダ−
フロ−を無くした分割画像データf(i)′を発生し、
累積演算手段32において、画像データ保持手段24に
保持されている第(i−1)階層迄の累積画像データg
(i−1)とレベルシフト手段30から出力される第i
階層の分割画像データf(i)′を用いて、次式 g(1)=g(0)+f(1)′ (但し、i=1の
場合)
In the level shift means 30, the inverse D
The divided image data f output from the CT conversion means 20
(I) is added with a value obtained by raising 2 to the power of (N-1), and
Generates divided image data f (i) 'with no flow,
In the accumulating operation means 32, the accumulated image data g up to the (i-1) th hierarchy held in the image data holding means 24
(I-1) and the i-th output from the level shift means 30
The following equation g (1) = g (0) + f (1) '(where i = 1) using the hierarchical divided image data f (i)'

【0023】[0023]

【数2】 (Equation 2)

【0024】により、第i階層までの累積画像データg
(i)を演算して画像データ保持手段24に格納する。
Thus, the accumulated image data g up to the i-th layer
(I) is calculated and stored in the image data holding means 24.

【0025】以上のように、1ブロックを複数の階層に
分割した分割符号データから順次分割画像データを復元
し、該分割画像データを累積加算して保持することによ
り画像を階層復元するように構成したから、従来方式で
必要なDCT係数バッファは不要になり装置規模を小さ
くでき、しかもメモリアクセスに要する時間を短縮で
き、階層復元の処理効率を向上できる。又、累積画像デ
ータを1ビット拡張して(N+1)ビットとしてアンダ
−フロ−も考慮するようにしたから精度の高い画像復元
ができる。更に、レベルシフトしてアンダ−フロ−をな
くし、その分オ−バ−フロ−を表現できるようにしたか
ら、(N+1)ビットでもオ−バ−フロ−、アンダ−フ
ロ−の両方を考慮でき高精度の画像復元ができる。
As described above, the divided image data is sequentially restored from the divided code data obtained by dividing one block into a plurality of hierarchies, and the divided image data is cumulatively added and held, whereby the image is hierarchically restored. Therefore, the DCT coefficient buffer required in the conventional method is not required, and the apparatus scale can be reduced, the time required for memory access can be reduced, and the processing efficiency of hierarchical restoration can be improved. Also, since the accumulated image data is extended by one bit and the underflow is taken into account as (N + 1) bits, a highly accurate image restoration can be performed. Further, since the underflow is eliminated by level shifting and the overflow can be expressed accordingly, both the overflow and the underflow can be considered even with (N + 1) bits. High-precision image restoration is possible.

【0026】[0026]

【実施例】図2は本発明の一実施例を示した実施例構成
図である。図2において、可変長復号部12、復号表1
4、線形逆量子化部16、量子化マトリクス18及び2
次元逆DCT変換部20は図24に示した従来装置と同
じである。しかし、本発明にあっては、二次元逆DCT
変換部20に続いて階層復元のため、加算器22及び少
なくとも深さ方向にN+1ビットを持つ画像データ保持
手段としての画像メモリ24を設けている。加算器22
は分割された符号データから復元された画像データを画
像メモリ24に格納する際に、既に画像メモリ24に格
納されている画像データを読出して加算して格納するよ
うになる。
FIG. 2 is a block diagram showing an embodiment of the present invention. In FIG. 2, the variable length decoding unit 12, the decoding table 1
4. Linear inverse quantization unit 16, quantization matrices 18 and 2
The dimensional inverse DCT transform unit 20 is the same as the conventional device shown in FIG. However, in the present invention, the two-dimensional inverse DCT
Following the conversion unit 20, an adder 22 and an image memory 24 as image data holding means having at least N + 1 bits in the depth direction are provided for hierarchical restoration. Adder 22
When the image data restored from the divided code data is stored in the image memory 24, the image data already stored in the image memory 24 is read, added and stored.

【0027】ここで、本発明が対象とする原画像の画素
の階調値はN=8ビットで表されていることから、画像
メモリ24はN+1=9ビット構成を持つことになる。
すなわち、N=8ビットに対応した階調値0〜256に
拡張1ビット分の階調値を加えた階調値0〜384を格
納することができる。
Here, since the gradation value of the pixel of the original image to which the present invention is applied is represented by N = 8 bits, the image memory 24 has a configuration of N + 1 = 9 bits.
That is, it is possible to store the gradation values 0 to 384 obtained by adding the gradation values for the extended 1 bit to the gradation values 0 to 256 corresponding to N = 8 bits.

【0028】比較部26は画像メモリ24から読出され
た画像データにビット制限を加えて端子28より表示装
置等に出力する。すなわち、画像メモリ24は1ビット
拡張したN+1=9ビットとしていることから、画像デ
ータの階調値が255を越えるオ−バ−フロ−について
は255に固定し、一方、階調値がマイナスの値を持つ
アンダ−フロ−については0に固定する。
The comparison unit 26 limits the bits of the image data read from the image memory 24 and outputs the image data from a terminal 28 to a display device or the like. That is, since the image memory 24 has N + 1 = 9 bits extended by 1 bit, the overflow of the image data whose gradation value exceeds 255 is fixed to 255, while the gradation value is negative. An underflow having a value is fixed to 0.

【0029】次に、図2の実施例による階層復元動作を
説明する。今、端子10より予め分割された第1階層
(ステ−ジ)の符号データD1(X01,X02,・・・・X
n1、但しn1<64)が入力され、この第1ステ−ジの符
号データD1は可変長復号部12において復号表14を
使用して復号され、線形逆量子化部16に与えられる。
線形逆量子化部16は入力したDCT係数に量子化マト
リクス18から求められた量子化閾値を乗算する逆量子
化演算を行ってDCT係数を復元する。線形逆量子化部
16で復元されたDCT係数は2次元逆DCT変換部2
0に与えられ、画像データに復元される。2次元逆DC
T変換部20で復元された第1ステ−ジの分割画像デー
タは加算器22に与えられ、画像メモリ24から読出さ
れた既に格納されている前段階までの累積画像データと
加算され、加算結果を画像メモリ24に出力する。画像
メモリ24では累積加算により入力された分割画像デー
タを保持し、比較部26でオ−バ−フロ−及びアンダ−
フロ−を除去した後、端子28から出力する。
Next, the hierarchical restoration operation according to the embodiment of FIG. 2 will be described. Now, the code data D1 (X01, X02,..., X) of the first hierarchy (stage) divided in advance from the terminal 10
n 1 , where n 1 <64, is input, and the code data D 1 of the first stage is decoded by the variable length decoding unit 12 using the decoding table 14, and is supplied to the linear inverse quantization unit 16.
The linear inverse quantization unit 16 performs an inverse quantization operation of multiplying the input DCT coefficient by a quantization threshold obtained from the quantization matrix 18 to restore the DCT coefficient. The DCT coefficient restored by the linear inverse quantization unit 16 is a two-dimensional inverse DCT transform unit 2
0 and restored to image data. 2D inverse DC
The divided image data of the first stage restored by the T conversion unit 20 is supplied to an adder 22 and added to the already stored accumulated image data read from the image memory 24 up to the previous stage. Is output to the image memory 24. The image memory 24 holds the divided image data input by the cumulative addition, and the comparing unit 26 performs the overflow and the underflow.
After removing the flow, the signal is output from the terminal 28.

【0030】次に、第2ステ−ジの符号データD2(Xn1
+1,・・・・Xn2、但し、n1<n2≦64)を第1ステ−
ジと同じ処理で画像データに復元し、加算器22で前段
階までの累積画像データと加算して画像メモリ24に保
持させる。
Next, the second stage code data D2 (Xn 1
+1... Xn 2 , where n 1 <n 2 ≦ 64)
The image data is restored by the same processing as the image data, added to the accumulated image data up to the previous stage by the adder 22, and stored in the image memory 24.

【0031】このようにして、最終ステ−ジにおける最
後の画像データX64までの処理を行うことで1画面分の
階層復元が完了する。
In this manner, by performing the processing up to the last image data X64 in the last stage, the hierarchical restoration for one screen is completed.

【0032】具体的には、図3に示す画像データのAD
CT符号化で得られた符号データから2段階の階層復元
で表示する場合、分割せずに復元した場合の図4に示す
DCT係数に対し2段階の階層復元にあっては、図5、
図6に示すように分割されたDCT係数が復元される。
もちろん、この分割はDCT係数について行うものでは
なく、図2に示したように端子10に対する符号データ
の分割により実現されるものである。
More specifically, the AD of the image data shown in FIG.
In the case where the code data obtained by the CT encoding is displayed by two-stage hierarchical restoration, the DCT coefficient shown in FIG.
The divided DCT coefficients are restored as shown in FIG.
Of course, this division is not performed on the DCT coefficients, but is realized by dividing the code data for the terminal 10 as shown in FIG.

【0033】図5に示す第1ステ−ジの分割DCT係数
は第3次までのDCT係数X01〜X03を持ち、図6の第2
ステ−ジの分割DCT係数は3次以降のX04〜X64を持
つ。図5の第1ステ−ジの分割DCT係数は逆DCT変
換により図7の分割画像データに復元されて画像メモリ
24に保持される。次に、図6に示す第2ステ−ジの分
割DCT係数が逆DCT変換され、得られた図8に示す
分割画像データが加算器22に与えられる。加算器22
では図7に示す分割画像データと図8に示す分割画像デ
ータを加算し、画像メモリ24に出力して格納するよう
になる。
The divided DCT coefficients of the first stage shown in FIG. 5 have DCT coefficients X01 to X03 up to the third order, and the second stage of FIG.
The divided DCT coefficients of the stage have the third and subsequent orders X04 to X64. The divided DCT coefficients in the first stage in FIG. 5 are restored to the divided image data in FIG. Next, the divided DCT coefficients of the second stage shown in FIG. 6 are subjected to inverse DCT transform, and the obtained divided image data shown in FIG. Adder 22
Then, the divided image data shown in FIG. 7 and the divided image data shown in FIG. 8 are added and output to the image memory 24 for storage.

【0034】尚、図7、図8の分割画像データにおい
て、網かけ部分はマイナスの値を持つアンダ−フロ−部
を示しており、このアンダ−フロ−部の値が画像メモリ
24を1ビット拡張してN+1=9ビットとしたことに
より格納可能となり、精度の高い画像復元が可能とな
る。勿論、最終分割段階に到る前の画像メモリ24にお
けるアンダ−フロ−部については、比較部26によりア
ンダ−フロ−部は全て階調値0に固定されて表示され
る。
In the divided image data shown in FIGS. 7 and 8, a shaded portion indicates an underflow portion having a negative value, and the value of the underflow portion indicates that the image memory 24 has 1 bit. By expanding the data to N + 1 = 9 bits, the data can be stored, and highly accurate image restoration can be performed. Of course, for the underflow portion in the image memory 24 before the final division stage, the underflow portion is fixed to the gradation value 0 by the comparing portion 26 and displayed.

【0035】また、図2の実施例にあっては、画像メモ
リ24としてN+1=9ビット構成を持つ1ビット拡張
した画像メモリを使用しているが、他の実施例として、
画像メモリ24として2ビット拡張したN+2=10ビ
ット構成のメモリを使用し、拡張2ビットを各々アンダ
−フロ−情報及びアンダ−フロ−情報に使用してもよ
い。すなわち、オ−バ−フロ−情報に拡張1ビットを使
用することでN=8ビットの階調0〜256が128増
えた0〜384階調となり、一方、アンダ−フロ−に拡
張した1ビットを割り当てることで0〜−128階調を
表現でき、結果として−128〜384の512階調範
囲に渡って格納することができる。
In the embodiment shown in FIG. 2, a 1-bit extended image memory having N + 1 = 9 bits is used as the image memory 24.
As the image memory 24, a memory having a configuration of N + 2 = 10 bits expanded by 2 bits may be used, and the expanded 2 bits may be used for underflow information and underflow information, respectively. That is, by using the extended 1 bit for the overflow information, the gray scale 0 to 256 of N = 8 bits becomes 128 to 0 to 384 gray scales. On the other hand, the 1 bit extended to the underflow is used. Is assigned, the gradation can be expressed in the range of 0 to -128, and as a result, the gradation can be stored over the range of -128 to 384 in the 512 gradation.

【0036】以上の第1の実施例では画像メモリ24を
N+2=10ビット構成とすれば、−128〜384の
512階調範囲に渡って画像データを格納でき、より高
精度の復元が可能となる。しかし、メモリ容量が比較的
大きくなる。
In the first embodiment described above, if the image memory 24 has a configuration of N + 2 = 10 bits, image data can be stored over a range of 512 tones from -128 to 384, and higher-precision restoration is possible. Become. However, the memory capacity becomes relatively large.

【0037】図9は画像メモリ24をN+1=9ビット
構成としても、−128〜384の512階調範囲に渡
って画像データを格納できる第2の実施例構成図であ
る。この実施例にあっては画像メモリ24を1ビット拡
張したN+1=9ビット構成とし、かつオフセットによ
りアンダ−フロ−をなくして画像デ−タの累積加算を行
うようにしている。
FIG. 9 is a block diagram of the second embodiment in which image data can be stored over a range of 512 tones from -128 to 384 even when the image memory 24 has an N + 1 = 9 bit configuration. In this embodiment, the image memory 24 has a configuration of N + 1 = 9 bits which is extended by 1 bit, and the underflow is eliminated by the offset so that the cumulative addition of the image data is performed.

【0038】図9において、可変長復号部12から2次
元逆DCT変換部20までの構成は図2の実施例と同じ
である。2次元逆DCT変換部20に続いてはレベルシ
フト部30が設けられ、2次元逆DCT変換部20から
得られた画像データに、2の(N−1)乗=128を加
算してアンダ−フロ−をなくすようにしている。
In FIG. 9, the configuration from the variable length decoding unit 12 to the two-dimensional inverse DCT transform unit 20 is the same as that of the embodiment of FIG. A level shift unit 30 is provided following the two-dimensional inverse DCT transform unit 20, and 2 (N-1) = 128 is added to the image data obtained from the two-dimensional inverse DCT transform unit 20 to under-run. I try to eliminate the flow.

【0039】レベルシフト部30でレベルシフトを受け
た画像データは累積演算部32に与えられ、累積演算部
32で画像メモリ24に格納された前段階までの累積画
像データとの累積演算を行う。累積演算部32は、後の
説明で明らかにするように減算器32a、切換回路32
b、加算器32cで構成される。累積演算部で累積演算
を行った累積画像データは画像メモリ24に格納され
る。画像メモリ24は1ビット拡張したN+1=9ビッ
ト構成を有している。画像メモリ24に続いては減算器
40が設けられ、減算器40において、レベルシフト部
30でレベルシフトした2の(N−1)乗=128を差
し引いてN=8ビットとして端子28に出力している。
The image data that has been level-shifted by the level shift unit 30 is supplied to an accumulation operation unit 32, and the accumulation operation unit 32 performs an accumulation operation with the accumulated image data up to the previous stage stored in the image memory 24. The accumulator 32 includes a subtractor 32a and a switching circuit 32, as will be described later.
b and an adder 32c. The accumulated image data on which the accumulation operation has been performed by the accumulation operation section is stored in the image memory 24. The image memory 24 has an N + 1 = 9 bit configuration extended by one bit. A subtractor 40 is provided following the image memory 24. In the subtractor 40, 2 (N-1) = 128, which has been level-shifted by the level shift unit 30, is subtracted and output to the terminal 28 as N = 8 bits. ing.

【0040】図10は画像メモリ24をN+1=9ビッ
トで構成する際の累積演算部32の演算原理を解析する
ためのモデル説明図である。図10において、まず、ブ
ロックA側を2次元逆DCT変換部20とレベルシフト
部30とし、ブロックB側を累積演算部32と画像メモ
リ24とする。又、各部の画像データf(i),f
(i)′及びg(i−1)は次のように定義される。
FIG. 10 is a model explanatory diagram for analyzing the operation principle of the accumulation operation unit 32 when the image memory 24 is composed of N + 1 = 9 bits. 10, first, the block A side is a two-dimensional inverse DCT transform unit 20 and a level shift unit 30, and the block B side is a cumulative operation unit 32 and an image memory 24. Also, the image data f (i), f
(I) 'and g (i-1) are defined as follows.

【0041】 f(i) :iステ−ジの逆DCT変換の結果 (−128≦f(i)≦383) f(i)′ :f(i)を正数化したデータ (0≦f(i)′≦511) g(i−1):i−1ステ−ジ後の画像メモリ内容(累積画像データ) (0≦g(i−1)≦511) また、各部のビットは2次元逆DCT変換部20につい
ては、オ−バ−フロ−及びアンダ−フロ−を含むことか
らN+2=10ビットであり、それ以外については全て
1ビット拡張したN+1=9ビットとなる。
F (i): result of inverse DCT transform of i stage (−128 ≦ f (i) ≦ 383) f (i) ′: data obtained by converting f (i) into a positive number (0 ≦ f ( i) '≤511) g (i-1): Contents of image memory after i-1 stage (cumulative image data) (0≤g (i-1) ≤511) Also, the bits of each part are two-dimensional inverse. The DCT transform unit 20 has N + 2 = 10 bits because it includes an overflow and an underflow, and all other bits have N + 1 = 9 bits extended by one bit.

【0042】今、i番目のステ−ジで2次元逆DCT変
換部20より画像データf(i)が得られたとすると、
レベルシフト部30によるレベルシフトでアンダ−フロ
−が除かれ、レベルシフト部30より f(i)′=f(i)+128 (1) となる画像データが出力される。このレベルシフトは図
11に示すようになる。
Now, assuming that image data f (i) is obtained from the two-dimensional inverse DCT transform unit 20 at the i-th stage.
Underflow is removed by the level shift by the level shift unit 30, and the level shift unit 30 outputs image data of f (i) '= f (i) +128 (1). This level shift is as shown in FIG.

【0043】図11において、N=8ビットは階調値0
〜256であり、2次元逆DCT変換部20からはアン
ダ−フロ−1ビット及びオ−バ−フロ−1ビットの合計
10ビットとなる階調値の画像データが出力される。こ
のオ−バ−フロ−及びアンダ−フロ−を含む画像データ
の階調値に対しレベルシフト部30で2の(N−1)乗
=128を加算することで、図11の右側に示すように
0〜511の階調値に正数化することができる。すなわ
ち、2次元逆DCT変換部20の出力値のうち−128
〜383は0〜511に正数化される。
In FIG. 11, N = 8 bits indicate a gradation value of 0.
The image data having a gradation value of a total of 10 bits of underflow-1 bit and overflow-1 bit is output from the two-dimensional inverse DCT transform unit 20. By adding 2 (N-1) = 128 to the gradation value of the image data including the overflow and the underflow by the level shift unit 30, as shown in the right side of FIG. Can be converted to a positive number to a gradation value of 0 to 511. That is, −128 of the output values of the two-dimensional inverse DCT
383 is converted to a positive number from 0 to 511.

【0044】ここで処理前、すなわち初期時画像メモリ
24からの読出データg(0)は g(0)=0 となっている。
Here, the data g (0) read from the image memory 24 before processing, that is, at the initial stage, is g (0) = 0.

【0045】この初期状態でi=1番目のステ−ジで2
次元逆DCT変換部20より画像データf(i)=f
(1)が得られたとすると、レベルシフト部30による
レベルシフトでf(i)′=f(1)′とされて累積演
算部32に与えられる。同時に画像メモリ24から前回
迄の累積画像データg(i−1)=g(0)が読出され
ていることから、累積演算部32の出力g(i)=g
(1)は、 となる。すなわち、第1ステ−ジではレベルシフトした
分割画像データをそのまま画像メモリ24に格納する。
In this initial state, i = 1 in the first stage.
Image data f (i) = f from the dimensional inverse DCT transform unit 20
Assuming that (1) is obtained, f (i) ′ = f (1) ′ by the level shift by the level shift unit 30 and is given to the accumulation operation unit 32. At the same time, since the accumulated image data g (i-1) = g (0) up to the previous time is read from the image memory 24, the output g (i) = g of the accumulation operation unit 32 is obtained.
(1) Becomes That is, in the first stage, the level-shifted divided image data is stored in the image memory 24 as it is.

【0046】第2ステ−ジ以降では、レベルシフト部3
0がないものとすると、第iステ−ジで累積演算部32
より出力される画像データg(i+1)は、 g(i+1)=g(i)+f(i+1) ・・・・(3) と表すことができる。しかし、レベルシフト部30が存
在するから、 f(i+1)′=f(i+1)+128 f(i+1)=f(i+1)′−128 ・・・・(4) となる。
After the second stage, the level shift unit 3
Assuming that there is no 0, the accumulator 32 in the i-th stage
The output image data g (i + 1) can be expressed as g (i + 1) = g (i) + f (i + 1) (3). However, since the level shift unit 30 exists, f (i + 1) '= f (i + 1) +128 f (i + 1) = f (i + 1)'-128 (4)

【0047】従って,第(4)式のf(i+1)を第(3)式
に代入すると、i(≧2)番目のステ−ジで得られる累
積演算部32からの累積画像データg(i+1)は、 g(i+1)=[g(i)+{f(i+1)′−128}] ・・(5) と表すことができる。この第(5)式が第2ステ−ジ以
降の任意のステ−ジにおける累積演算部32の累積演算
の内容を示している。従って図10に示す累積演算部3
2は図12(a)に示ように、レベルシフト部30から
の分割画像データf(i)′から128を減算する減算
器32aと、第1ステ−ジではレベルシフト部30から
の分割画像データを出力し、第2ステ−ジ以降では減算
器32aからの画像データを出力する切換回路32b
と、切換回路32aからの分割画像データと画像メモリ
24に格納されている累積画像データg(i−1)とを
加算する加算器32cで構成することができる。
Therefore, when f (i + 1) in the expression (4) is substituted into the expression (3), the accumulated image data g (i + 1) from the accumulation operation unit 32 obtained in the i (≧ 2) th stage can be obtained. ) Can be expressed as g (i + 1) = [g (i) + {f (i + 1) ′ − 128}] (5). Equation (5) shows the contents of the cumulative operation of the cumulative operation unit 32 in any stage after the second stage. Therefore, the cumulative operation unit 3 shown in FIG.
12 is a subtractor 32a for subtracting 128 from the divided image data f (i) 'from the level shift unit 30 as shown in FIG. 12A, and a divided image from the level shift unit 30 in the first stage. A switching circuit 32b for outputting data, and for outputting the image data from the subtractor 32a in the second stage and thereafter.
And the adder 32c for adding the divided image data from the switching circuit 32a and the accumulated image data g (i-1) stored in the image memory 24.

【0048】又、第(5)式を g(i+1)=[{g(i)−128}+f(i+1)′] ・・(6) と変形すれば、累積演算部32は図12(b)に示よう
に、画像メモリ24からの累積画像データg(i−1)
から128を減算する減算器32dと、第1ステ−ジで
は画像メモリ24からの累積画像データg(0)(=
0)を出力し、第2ステ−ジ以降では減算器32dから
の画像データを出力する切換回路32eと、切換回路3
2eからの累積画像データとレベルシフト部30からの
分割画像データf(i)′とを加算する加算器32fで
構成することもできる。
If the equation (5) is transformed into g (i + 1) = [{g (i) −128} + f (i + 1) ′] (6), the accumulative calculation unit 32 obtains the result shown in FIG. ), The accumulated image data g (i-1) from the image memory 24.
Subtractor 128d from the image memory 24 in the first stage.
0), and after the second stage, a switching circuit 32e for outputting image data from the subtractor 32d, and a switching circuit 3
An adder 32f for adding the accumulated image data from 2e and the divided image data f (i) 'from the level shift unit 30 can also be used.

【0049】図9について具体的に説明すると、原画像
データがN=8ビット(256階調)のとき2次元逆D
CT変換部20で逆DCT変換された分割画像データは
レベルシフト部30で2の(N−1)乗=27=128
が加算され、このレベルシフトにより図11に示すよう
に−128〜383の画像データが0〜511に正数化
され、アンダ−フロ−がなくなる。すなわち、N+1=
9ビットにより、−1〜−128迄のアンダ−フロ−と
256〜383迄のオ−バ−フロ−も表現でき、高精度
の画像復元が可能となる。
Referring specifically to FIG. 9, when the original image data is N = 8 bits (256 gradations), the two-dimensional inverse D
The divided image data subjected to the inverse DCT transformation by the CT transformation unit 20 is raised to the power of 2 (N−1) = 2 7 = 128 by the level shift unit 30.
Is added, and as a result of this level shift, the image data of -128 to 383 is converted to a positive number of 0 to 511 as shown in FIG. 11, and the underflow is eliminated. That is, N + 1 =
With 9 bits, underflows from -1 to -128 and overflows from 256 to 383 can be expressed, and high-precision image restoration becomes possible.

【0050】図13、図14は図7、図8に示した分割
画像データのそれぞれにレベルシフト部30で階調値1
28を加算した場合の分割画像データを示す。この階調
値128の加算により、図7、図8の網かけ部分で示し
たアンダ−フロ−部は全てなくなり、逆に図13の高次
側に同じくあみかけ部分で示すオ−バ−フロ−部のみと
することができる。このように、アンダ−フロ−部をな
くした分割画像データは第1ステ−ジで図13の分割画
像データが画像メモリ24に格納され、次の第2ステ−
ジで図14に示す分割画像データと累積演算部32にお
ける累積演算をもって画像メモリ24に格納される。
FIGS. 13 and 14 show the case where each of the divided image data shown in FIGS.
28 shows divided image data when 28 is added. As a result of the addition of the gradation value 128, all the underflow portions shown by the shaded portions in FIGS. 7 and 8 are eliminated, and conversely, the overflow portions also shown by the shaded portions on the higher order side in FIG. It can be only-part. As described above, the divided image data without the underflow portion is stored in the image memory 24 in the first stage in the first stage, and the next second stage is stored in the image memory 24 in the first stage.
The divided image data shown in FIG. 14 and the accumulation operation in the accumulation operation unit 32 are stored in the image memory 24.

【0051】画像メモリ24から読出された画像データ
の表示については、減算器40で2を(N−1)乗した
数値=128を減算して元の8ビットデータに戻して端
子28より出力するようになる。
Regarding the display of the image data read from the image memory 24, the subtractor 40 subtracts the value of 128 raised to the power of (N-1) = 128, returns the original 8-bit data, and outputs it from the terminal 28. Become like

【0052】以上、本発明を実施例により説明したが、
本発明は請求の範囲に記載した本発明の主旨に従い種々
の変形が可能であり、本発明はこれらを排除するもので
はない。
The present invention has been described with reference to the embodiments.
The present invention can be variously modified in accordance with the gist of the present invention described in the claims, and the present invention does not exclude these.

【0053】[0053]

【発明の効果】以上本発明によれば、1ブロックを複数
の階層に分割した分割符号データから順次分割画像デー
タを復元し、該分割画像データを累積加算して保持する
ことにより画像を階層復元するように構成したから、従
来方式で必要なDCT係数バッファは不要になり装置規
模を小さくでき、しかもメモリアクセスに要する時間を
短縮でき、階層復元の処理効率を向上できる。
As described above, according to the present invention, a divided image data is sequentially restored from divided code data obtained by dividing one block into a plurality of hierarchies, and the divided image data is cumulatively added and held, whereby the image is hierarchically restored. With such a configuration, the DCT coefficient buffer required in the conventional method is not required, so that the apparatus scale can be reduced, the time required for memory access can be reduced, and the processing efficiency of hierarchical restoration can be improved.

【0054】又、本発明によれば、累積画像メモリを
(N+1)ビットとしてアンダ−フロ−も考慮するよう
にしたから精度の高い画像復元ができる。更に、本発明
によれば、累積画像メモリを(N+2)ビットとすれば
アンダ−フロ−に加えてオ−バ−フロ−も考慮でき精度
の高い画像復元ができる。
Further, according to the present invention, since the accumulated image memory is (N + 1) bits and the underflow is also taken into account, a highly accurate image restoration can be performed. Further, according to the present invention, if the accumulated image memory is (N + 2) bits, the overflow can be considered in addition to the underflow, and the image can be restored with high accuracy.

【0055】又、DCT係数をレベルシフトしてアンダ
−フロ−をなくし、その分オ−バ−フロ−を表現するよ
うにしたから、画像メモリが(N+1)ビット構成でも
アンダ−フロ−に加えてオ−バ−フロ−も考慮でき、少
ないビット構成で精度の高い画像復元ができる。
Also, since the DCT coefficient is level-shifted to eliminate the underflow and express the overflow by that amount, even if the image memory has the (N + 1) -bit configuration, it can be added to the underflow. Thus, an overflow can be considered, and a highly accurate image can be restored with a small number of bits.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の第1の実施例構成図である。FIG. 2 is a configuration diagram of a first embodiment of the present invention.

【図3】本発明で復元する原画像データの説明図であ
る。
FIG. 3 is an explanatory diagram of original image data restored in the present invention.

【図4】本発明で復元するDCT係数の説明図である。FIG. 4 is an explanatory diagram of DCT coefficients restored in the present invention.

【図5】本発明の第1ステ−ジの分割DCT係数の説明
図である。
FIG. 5 is an explanatory diagram of a divided DCT coefficient of the first stage of the present invention.

【図6】本発明の第2ステ−ジの分割DCT係数の説明
図である。
FIG. 6 is an explanatory diagram of divided DCT coefficients of the second stage of the present invention.

【図7】図5のDCT係数を逆DCT変換した場合の分
割画像データの説明図である。
FIG. 7 is an explanatory diagram of divided image data when the DCT coefficients of FIG. 5 are subjected to inverse DCT transform.

【図8】図6のDCT係数を逆DCT変換した場合の分
割画像データ説明図である。
FIG. 8 is an explanatory diagram of divided image data when the DCT coefficients of FIG. 6 are subjected to inverse DCT transform.

【図9】本発明の第2の実施例構成図である。FIG. 9 is a configuration diagram of a second embodiment of the present invention.

【図10】図9のモデル説明図である。FIG. 10 is an explanatory diagram of the model of FIG. 9;

【図11】本発明のビット構成及び階調レベル説明図で
ある。
FIG. 11 is an explanatory diagram of a bit configuration and a gradation level according to the present invention.

【図12】図10のモデルに基づく累積演算部の第1、
第2の構成図である。
FIG. 12 is a diagram illustrating a first example of the accumulation operation unit based on the model of FIG.
It is a 2nd block diagram.

【図13】図7の分割画像データに128を加算してア
ンダ−フロ−をなくした場合の画像データ説明図であ
る。
FIG. 13 is an explanatory diagram of image data in a case where 128 is added to the divided image data of FIG. 7 to eliminate underflow.

【図14】図8の分割画像データに128を加算してア
ンダ−フロ−をなくした場合の画像データ説明図であ
る。
FIG. 14 is an explanatory diagram of image data in a case where 128 is added to the divided image data of FIG. 8 to eliminate underflow.

【図15】従来のADCT符号化回路のブロック図であ
る。
FIG. 15 is a block diagram of a conventional ADCT encoding circuit.

【図16】図15の2次元DCT変換部のブロック図で
ある。
FIG. 16 is a block diagram of the two-dimensional DCT transform unit of FIG.

【図17】原画信号説明図である。FIG. 17 is an explanatory diagram of an original image signal.

【図18】DCT係数の説明図である。FIG. 18 is an explanatory diagram of DCT coefficients.

【図19】DCT係数に対する閾値説明図である。FIG. 19 is an explanatory diagram of a threshold value for a DCT coefficient.

【図20】量子化DCT係数説明図である。FIG. 20 is an explanatory diagram of quantized DCT coefficients.

【図21】量子化時の走査順序説明図である。FIG. 21 is an explanatory diagram of a scanning order at the time of quantization.

【図22】従来のADCT復元回路のブロック図であ
る。
FIG. 22 is a block diagram of a conventional ADCT restoration circuit.

【図23】図22の2次元逆DCT変換部のブロック図
である。
FIG. 23 is a block diagram of a two-dimensional inverse DCT transform unit of FIG. 22;

【図24】従来のADCT階層復元回路の構成図であ
る。
FIG. 24 is a configuration diagram of a conventional ADCT hierarchy restoration circuit.

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

12・・復号手段 16・・逆量子化手段 20・・逆DCT変換手段 22・・加算手段 24・・画像データ保持手段 30・・レベルシフト手段 32・・累積演算手段 12 decoding means 16 inverse quantization means 20 inverse DCT transform means 22 addition means 24 image data holding means 30 level shift means 32 cumulative operation means

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 原画像をそれぞれNビットの階調値をも
つ複数の画素からなる複数のブロックに分割して得られ
る各ブロック毎に、該ブロック内の前記複数の画素の階
調値を2次元離散コサイン変換して得られたDCT係数
を量子化し、得られた量子化DCT係数を符号化した符
号データから画像を復元する画像データ復元装置におい
て、1ブロックを分割した分割符号データを量子化DC
T係数に復号する復号手段(12)と、前記復号手段
(12)で復号された量子化DCT係数を逆量子化して
DCT係数を求める逆量子化手段(16)と、前記逆量
子化手段(16)から得られたDCT係数をマトリクス
演算により逆DCT変換して分割画像データを求める逆
DCT変換手段(20)と、前記逆DCT変換手段(2
0)からの画像データを保持する少なくとも深さ方向に
N+1ビットの大きさを持つ画像メモリを使用した画像
データ保持手段(24)と、前記画像データ保持手段
(24)に前記逆DCT変換手段(20)からの画像デ
ータを入力する際に、既に画像データ保持手段(24)
に保持されている画像データを読出して前記逆DCT変
換手段(20)からの画像データを加算して保持させる
加算手段(22)を具備し、分割された符号データから
順次復元される分割画像データを累積加算して保持する
ことにより画像を階層復元することを特徴とする画像デ
ータ復元装置。
1. For each block obtained by dividing an original image into a plurality of blocks each having a plurality of pixels having N-bit gradation values, the gradation values of the plurality of pixels in the block are set to 2 In an image data restoration apparatus that quantizes DCT coefficients obtained by performing a dimensional discrete cosine transform and restores an image from code data obtained by encoding the obtained quantized DCT coefficients, the divided code data obtained by dividing one block is quantized. DC
Decoding means (12) for decoding into T coefficients, inverse quantization means (16) for inversely quantizing the quantized DCT coefficients decoded by said decoding means (12) to obtain DCT coefficients, and said inverse quantization means ( Inverse DCT conversion means (20) for obtaining divided image data by performing inverse DCT transformation on the DCT coefficients obtained from 16) by matrix operation, and the inverse DCT transformation means (2)
Image data holding means (24) using an image memory having a size of at least N + 1 bits in the depth direction for holding the image data from 0) and the inverse DCT transform means (24) in the image data holding means (24). When inputting the image data from (20), the image data holding means (24)
And an adding means (22) for reading out the image data stored in the memory and adding and storing the image data from the inverse DCT transforming means (20). The divided image data sequentially restored from the divided code data is provided. An image data restoring apparatus characterized in that an image is hierarchically restored by accumulatively adding and holding.
【請求項2】 請求項1記載の画像データ復元装置にお
いて、前記画像データ保持手段(24)は深さ方向に2
ビット拡張したN+2ビットの大きさを持つメモリを使
用し、拡張分2ビットの各々に画像データのアンダ−フ
ロ−情報及びオ−バ−フロ−情報を格納することを特徴
とする画像データ復元装置。
2. The image data restoring device according to claim 1, wherein said image data holding means (24) has a depth of 2 mm.
An image data restoring apparatus characterized in that a memory having a size of N + 2 bits obtained by bit expansion is used, and underflow information and overflow information of image data are stored in each of the expanded 2 bits. .
【請求項3】 原画像をそれぞれNビットの階調値をも
つ複数の画素からなる複数のブロックに分割して得られ
る各ブロック毎に、該ブロック内の前記複数の画素の階
調値を2次元離散コサイン変換して得られたDCT係数
を量子化し、得られた量子化DCT係数を符号化した符
号データから画像を復元する画像データ復元装置におい
て、1ブロック分の符号データを複数の階層に分割し、
各階層の符号データを量子化DCT係数に復号する復号
手段(12)と、前記復号手段(12)で復号された量
子化DCT係数を逆量子化してDCT係数を求める逆量
子化手段(16)と、前記逆量子化手段(16)から得
られたDCT係数をマトリクス演算により逆DCT変換
して第i階層の分割画像データf(i)を求める逆DC
T変換手段(20)と、前記逆DCT変換手段(20)
で得られた第i階層の分割画像データに、2を(N−
1)乗した数値を加算してアンダ−フロ−をなくした分
割画像データを発生するレベルシフト手段(30)と、
各階層の分割画像データを累積して得られる累積画像デ
ータを保持する深さ方向にN+1ビットの大きさを持つ
画像データ保持手段(24)と、画像データ保持手段に
保持されている第(i−1)階層迄の累積画像データを
g(i−1)、レベルシフト手段から出力される第i階
層の分割画像データをf(i)′とすれば、第i階層ま
での累積画像データg(i)を g(1)=g(0)+f(1)′ (但し、i=1の
場合) 【数1】 に基づいて演算して画像データ保持手段(24)に格納
する累積演算手段(32)を具備し、分割された各階層
の符号データから順次復元される分割画像データを累積
加算して保持することにより画像を階層復元することを
特徴とする画像データ復元装置。
3. For each block obtained by dividing the original image into a plurality of blocks each having a plurality of pixels having N-bit gradation values, the gradation values of the plurality of pixels in the block are set to 2 In an image data restoration apparatus for quantizing DCT coefficients obtained by performing a dimensional discrete cosine transform and restoring an image from code data obtained by coding the obtained quantized DCT coefficients, one block of code data is divided into a plurality of layers. Split,
Decoding means (12) for decoding the code data of each layer into quantized DCT coefficients; and inverse quantization means (16) for inversely quantizing the quantized DCT coefficients decoded by said decoding means (12) to obtain DCT coefficients And inverse DCT transforming the DCT coefficient obtained from the inverse quantization means (16) by matrix operation to obtain the divided image data f (i) of the ith layer
T transform means (20) and the inverse DCT transform means (20)
Is added to the divided image data of the i-th layer obtained by
1) a level shift means (30) for adding divided values to generate divided image data without underflow;
An image data holding unit (24) having a size of N + 1 bits in the depth direction for holding the accumulated image data obtained by accumulating the divided image data of each hierarchy, and the (i) held in the image data holding unit. -1) Assuming that the accumulated image data up to the hierarchy is g (i-1) and the divided image data of the i-th hierarchy output from the level shift means is f (i) ', the accumulated image data g up to the i-th hierarchy G (1) = g (0) + f (1) ′ (where i = 1) And accumulating the divided image data sequentially restored from the divided code data of each layer and storing the divided image data. An image data restoring apparatus characterized in that an image is hierarchically restored by the following method.
【請求項4】 請求項3記載の画像データ復元装置にお
いて、前記累積演算手段(32)は、前記レベルシフト
手段(30)からの画像データから、2を(N−1)乗
した数値を減算する減算手段(32a)と、第1階層の
分割画像データについてはレベルシフト手段(30)か
らの分割画像データを出力し、第2階層以降の分割画像
データについては前記減算手段(32a)からの分割画
像データを出力する分割画像データ切換手段(32b)
と、前記分割画像データ切換手段(32b)からの分割
画像データと前記画像データ保持手段(24)に格納さ
れている累積画像データとを加算する加算手段(32
c)を有することを特徴とする画像データ復元装置。
4. The image data restoration device according to claim 3, wherein said accumulating means subtracts a value obtained by raising 2 to the power of (N-1) from the image data from said level shift means. Subtracting means (32a) for outputting divided image data from the level shift means (30) for the divided image data of the first hierarchy, and outputting the divided image data for the divided image data of the second hierarchy and thereafter from the subtracting means (32a). Divided image data switching means (32b) for outputting divided image data
Adding means (32) for adding the divided image data from the divided image data switching means (32b) and the accumulated image data stored in the image data holding means (24).
An image data restoring device characterized by having c).
【請求項5】 請求項3記載の画像データ復元装置にお
いて、前記累積演算手段(32)は、画像データ保持手
段(24)からの累積画像データから2を(N−1)乗
した数値を減算する減算手段(32d)と、第1階層で
は画像データ保持手段(24)からの累積画像データを
出力し、第2階層以降では減算手段(32d)からの画
像データを出力する切換回路(32e)と、切換回路
(32e)からの累積画像データとレベルシフト手段
(30)からの分割画像データとを加算する加算手段
(32f)を有することを特徴とする画像データ復元装
置。
5. The image data restoring device according to claim 3, wherein said accumulation operation means subtracts a value obtained by raising 2 to the power of (N-1) from the accumulated image data from the image data holding means. And a switching circuit (32e) for outputting the accumulated image data from the image data holding means (24) in the first hierarchy and outputting the image data from the subtraction means (32d) in the second and subsequent hierarchies. And an adding means (32f) for adding the accumulated image data from the switching circuit (32e) and the divided image data from the level shift means (30).
JP2733291A 1990-03-16 1991-02-21 Image data restoration device Expired - Lifetime JP2624900B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2733291A JP2624900B2 (en) 1990-03-16 1991-02-21 Image data restoration device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6630290 1990-03-16
JP2-66302 1990-03-16
JP2733291A JP2624900B2 (en) 1990-03-16 1991-02-21 Image data restoration device

Publications (2)

Publication Number Publication Date
JPH04211574A JPH04211574A (en) 1992-08-03
JP2624900B2 true JP2624900B2 (en) 1997-06-25

Family

ID=26365253

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2733291A Expired - Lifetime JP2624900B2 (en) 1990-03-16 1991-02-21 Image data restoration device

Country Status (1)

Country Link
JP (1) JP2624900B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2962722B2 (en) * 1988-02-22 1999-10-12 キヤノン株式会社 Decryption device

Also Published As

Publication number Publication date
JPH04211574A (en) 1992-08-03

Similar Documents

Publication Publication Date Title
JP2891772B2 (en) Digital image coding method using random scanning of image frames
JP3224926B2 (en) Quantization / inverse quantization circuit
JP3069455B2 (en) Quantization and dequantization circuits in image data compression and decompression equipment
JP3356663B2 (en) Image encoding device, image encoding method, and recording medium recording image encoding program
JP5073004B2 (en) Image coding apparatus, image coding method, image decoding apparatus, and image decoding method
EP1250010A1 (en) An image data processing system
JPH04229382A (en) Method and device for resolution conversion of digital image data
JP2624900B2 (en) Image data restoration device
JP2768260B2 (en) Image coding control method
JPH04220081A (en) Method and device for picture data decoding
JPS61123280A (en) Image data compressing device
JP3392949B2 (en) Image compression device and image decompression device
JP2820807B2 (en) Image data encoding method
JP2887843B2 (en) Image data restoration method and apparatus
JP2614325B2 (en) Image data encoding method and code data read processing method
JP3230336B2 (en) Recompression device and recompression system
JPH05292326A (en) Picture data coder
KR0186113B1 (en) Variable-length coding data recording method of digital vcr
JPH0310486A (en) Moving picture encoder
JPH0775066A (en) Picture signal converter
JP2887842B2 (en) Image data restoration method and apparatus
JP2856268B2 (en) Image data restoration device
JP3199786B2 (en) Image processing device
JP3337699B2 (en) Image processing apparatus and method
JPH04220082A (en) Method and device for picture data decoding

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970218