JPH03262382A - Method and apparatus for picture data coding and decoding - Google Patents

Method and apparatus for picture data coding and decoding

Info

Publication number
JPH03262382A
JPH03262382A JP2062291A JP6229190A JPH03262382A JP H03262382 A JPH03262382 A JP H03262382A JP 2062291 A JP2062291 A JP 2062291A JP 6229190 A JP6229190 A JP 6229190A JP H03262382 A JPH03262382 A JP H03262382A
Authority
JP
Japan
Prior art keywords
coefficients
dct coefficients
zero
effective order
order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2062291A
Other languages
Japanese (ja)
Inventor
Kimitaka Murashita
君孝 村下
Tsuguo Noda
嗣男 野田
Masahiro Fukuda
昌弘 福田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2062291A priority Critical patent/JPH03262382A/en
Publication of JPH03262382A publication Critical patent/JPH03262382A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain high speed quantization and inverse quantization processing by obtaining an effective order of non-null coefficient as to each block and giving zero to a coefficient in excess of the effective order. CONSTITUTION:A proper effective order is estimated in most blocks by obtaining an effective order as OR processing of a highest order of non-null coefficient of 1st row (and/or column) and an 8th row (and/or column). When the 1st and 8th columns and rows of the DCT coefficient are scanned, the highest order of row scanning is 4th and the highest order of the column scanning is 5th, the effective order is 4th for the row and 5th for the column and the quantization calculation of the DCT coefficient after the effective order shown in hatched lines is omitted and zero is set as the quantization DCT coefficient. That is, the part shown in hatched lines is masked zero. Then the quantization calculation of the part is skipped and high speed processing is attained.

Description

【発明の詳細な説明】 [概要] 多値画像を複数の画素からなるブロックに分割して得ら
れるブロック内の画素を2次元離散コサイン変換して得
たDCT係数を量子化した野ちに符号化し、更に符号化
データを逆変換して画像を復元する画像データ符号化及
び復元方法並びに装置に関し、 符号化及び復元処理を高速化することを目的とし、 ブロック内のいくつかの行及び又は列を走査し、その零
でない非零係数の内の最高次数の論理和から有効次数を
求めて非零係数の分布する領域を推定し、有効次数以降
の係数を量子化及び逆量子化時に全て零とすることによ
り、量子化及び逆量子化の演算処理を省略して高速化を
図るように構成する。
[Detailed Description of the Invention] [Summary] A field code that is obtained by quantizing DCT coefficients obtained by performing two-dimensional discrete cosine transform on the pixels in the blocks obtained by dividing a multivalued image into blocks each consisting of a plurality of pixels. Regarding an image data encoding and restoring method and device for converting the encoded data into inverse transforms and restoring the image, the purpose of this is to speed up the encoding and restoring process. The area where the non-zero coefficients are distributed is estimated by calculating the effective order from the logical sum of the highest order among the non-zero coefficients, and the coefficients after the effective order are all zero during quantization and dequantization. By doing so, the calculation processing of quantization and inverse quantization is omitted to increase the speed.

[産業上の利用分野コ 本発明は、多値画像を複数の画素からなるブロックに分
割して得られるブロック内の画素を2次元離散コサイン
変換して得たDCT係数を量子化した野ちに符号化し、
更に符号化データを逆変換して画像を復元する画像デー
タ符号化及び復元方法並びに装置に関する。
[Industrial Application Fields] The present invention is a method for dividing a multivalued image into blocks each consisting of a plurality of pixels, and then performing a two-dimensional discrete cosine transform on the pixels in each block, and then quantizing the DCT coefficients. encode,
The present invention further relates to an image data encoding and restoring method and apparatus for inversely transforming encoded data to restore an image.

多値画像を複数の画素からなるブロックに分割して、ブ
ロック内の画素を直交変換した画像データの高圧縮する
方式として例えば適応離散コサイン変換符号化方式(A
daptive Discrete CCo51neT
ransfor  以下、略してrADCT方式」と称
する)がある。
For example, the adaptive discrete cosine transform coding method (A
adaptive Discrete CCo51neT
(hereinafter abbreviated as "rADCT method").

ADCT方式は、画像を例えば8×8画素からなるブロ
ックに分割し、各ブロックの画信号を2次元離散コサイ
ン変換(以下、rDcTJと・称する)により空間周波
数分布の係数に変換し、視覚に適応した閾値で量子化し
、求めた量子化DCT係数を統計的に求めたハフマン・
テーブルにより符号化するものである。
The ADCT method divides an image into blocks consisting of, for example, 8 x 8 pixels, and converts the image signal of each block into coefficients of a spatial frequency distribution using two-dimensional discrete cosine transformation (hereinafter referred to as rDcTJ), which is adapted to visual perception. The Huffman coefficient was quantized using a threshold value, and the obtained quantized DCT coefficients were statistically obtained.
It is encoded using a table.

第15図に示すADCT方式のブロック図に従って、符
号化動作を説明する。
The encoding operation will be explained according to the block diagram of the ADCT method shown in FIG.

まず画像を第17図に示す8×8画素からなるブロック
に分割し、端子10からDCT変換部12に入力する。
First, an image is divided into blocks each consisting of 8×8 pixels as shown in FIG.

DCT変換部12では、入力された画信号をDCTによ
り直交変換して、第18図に示す空間周波数分布のDC
T係数に変換し、線形量子化部14に出力する。
The DCT transform unit 12 orthogonally transforms the input image signal by DCT to obtain a DC signal with a spatial frequency distribution shown in FIG.
It is converted into T coefficients and output to the linear quantization section 14.

具体的には、第16図に示すように、端子+10より入
力された画信号は1次元DCT変換部112で1次元D
CT変換され、転置部114でブロック内の係数の行と
列を入れ換え(転置)、1次元DCT変換部116に出
力される。1次元DCT変換部1165では、1次元D
CT変換部112と同様に1次元DCT変換され、転置
部+18に出力する。転置部11gでは、転置部+14
と同様の転置処理を行ない端子+2[1に出力する。
Specifically, as shown in FIG.
The block is CT-transformed, the rows and columns of the coefficients within the block are transposed (transposed) by the transposition unit 114, and the result is output to the one-dimensional DCT transformation unit 116. In the one-dimensional DCT conversion unit 1165, one-dimensional D
It is subjected to one-dimensional DCT transformation in the same manner as the CT transformation unit 112 and output to the transposition unit +18. In the transposing section 11g, transposing section +14
Performs the same transposition process and outputs to terminal +2[1.

このように、画像データの全ブロックについて2次元D
CT変換処理を行なうことでDCT係数に変換される。
In this way, for all blocks of image data, the two-dimensional D
It is converted into DCT coefficients by performing CT conversion processing.

線形量子化部14では、入力されたDCT係数を、視覚
実験により決められた第19図に示す閾値で構成する量
子化マトリクス16により線形量子化して量子化DCT
係数を求める。第18図のDCT係数から求めた量子化
DCT係数を第20図に示す。
The linear quantization unit 14 linearly quantizes the input DCT coefficients using a quantization matrix 16 configured with threshold values shown in FIG.
Find the coefficient. FIG. 20 shows the quantized DCT coefficients obtained from the DCT coefficients in FIG. 18.

第20図に示すように、閾値より小さい値のDCT係数
は0となり、DCFfc分とわずかのAC成分のみが値
を持つ量子化DCT係数が生成される。
As shown in FIG. 20, DCT coefficients with values smaller than the threshold value become 0, and quantized DCT coefficients having values only for DCFfc and a small AC component are generated.

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

第16図はADCT方式の復元回路のブロック図を示し
たもので、符号データは以下の方法により画像に復元さ
れる。
FIG. 16 shows a block diagram of a restoration circuit using the ADCT method, and encoded data is restored to an image by the following method.

まず端子54から入力された符号データは、可変長符号
部56に入力される。可変長複号部56では、第15図
の符号表20のハフマン・テーブルと逆のテーブルで構
成する復号表58により、入力された符号データをイン
デックスとランの固定長データに復号し、逆量子化部6
0に出力する。
First, code data input from the terminal 54 is input to the variable length code section 56. The variable length decoding unit 56 decodes the input code data into fixed length data of indexes and runs using a decoding table 58 that is an inverse table to the Huffman table of the code table 20 in FIG. conversion part 6
Output to 0.

逆量子化部60は、量子化マトリクス62の各々で乗算
することにより、入力された量子化DCT係数を逆量子
化してDCT係数を復元し、2次元逆DCT変換部64
に出力する。2次元逆DCT変換部64は、入力された
DCT係数を逆DCT変換により直交変換し、空間周波
数分布の係数を画信号に変換する。
The inverse quantization section 60 dequantizes the input quantized DCT coefficients by multiplying them by each of the quantization matrices 62 to restore the DCT coefficients, and the two-dimensional inverse DCT transformation section 64
Output to. The two-dimensional inverse DCT transform unit 64 orthogonally transforms the input DCT coefficients by inverse DCT transform, and transforms the coefficients of the spatial frequency distribution into an image signal.

具体的には、第23図に示すように、端子122より入
力されたDCT係数は1次元逆DCT変換部124で1
次元逆DCT変換され、転置部126に出力される。転
置部126は、1ブロツク内の係数の行と列を入れ換え
て1次元逆DCT変換部128に出力する。1次元逆D
CT変換部+28は、入力された転置後の係数を再び1
次元逆DCT変換し、転置部130に出力する。転置部
+30は、転置部126と同様に再度1ブロツク内の係
数の行と列を入れ換えることにより得られる信号を端子
132から出力し、これにより画像が復元される。
Specifically, as shown in FIG. 23, the DCT coefficients input from the terminal 122 are converted into 1
The dimensional inverse DCT transform is performed and output to the transposing unit 126. The transposing unit 126 transposes the rows and columns of the coefficients within one block and outputs the result to the one-dimensional inverse DCT transform unit 128. one-dimensional inverted D
The CT conversion unit +28 converts the input transposed coefficients to 1 again.
The dimensional inverse DCT transform is performed and output to the transposing unit 130. Similar to the transposing unit 126, the transposing unit +30 outputs from the terminal 132 a signal obtained by transposing the rows and columns of the coefficients within one block again, thereby restoring the image.

[従来の技術」 従来のADCT方式において、符号化時の量子化DCT
係数は、DCT係数を量子化閾値で除算する量子化演算
により求まる。第24図に従来の線形量子化回路のブロ
ック図を示す。
[Conventional technology] In the conventional ADCT method, quantization DCT at the time of encoding
The coefficients are determined by a quantization operation that divides the DCT coefficients by a quantization threshold. FIG. 24 shows a block diagram of a conventional linear quantization circuit.

第24図において、端子26より人力されるOCT係数
は、DCT係数係数保持部上8持される。
In FIG. 24, the OCT coefficients inputted manually from the terminal 26 are stored on the DCT coefficient holding section.

DCT係数係数保持部上8タイミング制御部40からの
データ読出し信号REDに従って、入力されたDCT係
数を1画素毎、順次量子化部としての除算部36に出力
する。また、量子化閾値保持部32は同様に、タイミン
グ制御部40からのデータ続出し信号REDに従って、
保持している各画素に対応した量子化閾値を順次除算部
36に出力する。除算部36は、入力された各画素のD
CT係数を量子化閾値で除算することで量子化し、結果
を量子化DCT係数(QUD)としてラッチ部44に出
力する。タイミング制御部40は、除算部36アクセス
時間を計算して、ラッチ部44にデータのラッチ信号L
ATを発生する。このラッチ信号LATにより、ラッチ
部44に量子化OCT係数がラッチされ、可変長符号化
部18に出力される。
In accordance with the data read signal RED from the DCT coefficient coefficient holding section 8 timing control section 40, the input DCT coefficients are sequentially output pixel by pixel to the division section 36 as a quantization section. Further, the quantization threshold holding unit 32 similarly follows the data succession signal RED from the timing control unit 40.
The quantization threshold corresponding to each pixel held is sequentially output to the division unit 36. The division unit 36 divides D of each input pixel.
The CT coefficient is quantized by dividing it by a quantization threshold, and the result is output to the latch unit 44 as a quantized DCT coefficient (QUD). The timing control unit 40 calculates the access time of the division unit 36 and supplies the data latch signal L to the latch unit 44.
Generate AT. By this latch signal LAT, the quantized OCT coefficient is latched in the latch section 44 and output to the variable length encoding section 18.

1画素分の係数の量子化が終了したら、タイミング制御
部40は、DCT係数係数保持部上8子化閾値保持部3
2に次の画素のDCT係数と量子化閾値の読出しを指示
し、次の画素の係数の量子化演算を行なう。このように
、DCT係数係数保持部上8持されているDCT係数を
1画素単位で読出し、量子化閾値保持部32に保持され
ている量子化閾値で除算し、その結果を対象画素の量子
化DCT係数として出力する処理を1画素毎、ブロック
単位に1画面分繰り返すことにより、1画面分のDCT
係数が量子化される。
When the quantization of the coefficients for one pixel is completed, the timing control unit 40 controls the DCT coefficient coefficient holding unit upper octetization threshold holding unit 3.
2 to read out the DCT coefficient and quantization threshold of the next pixel, and performs a quantization operation on the coefficient of the next pixel. In this way, the DCT coefficients held in the DCT coefficient coefficient holding section are read out in units of one pixel, divided by the quantization threshold held in the quantization threshold holding section 32, and the result is used to quantize the target pixel. By repeating the process of outputting DCT coefficients for each pixel and block for one screen, the DCT coefficient for one screen is
The coefficients are quantized.

一方、復元時のDCT係数は、符号データから復号され
た量子化DCT係数に量子化閾値を乗算する逆量子化に
より求められる。第25図に従来の線形逆量子化回路の
ブロック図を示す。
On the other hand, the DCT coefficients at the time of restoration are obtained by inverse quantization in which the quantized DCT coefficients decoded from the encoded data are multiplied by a quantization threshold. FIG. 25 shows a block diagram of a conventional linear inverse quantization circuit.

第25図において、可変長復号部56で符号データから
復号された量子化DCT係数は端子75から量子化係数
保持部70に入力される。量子化係数保持部70はタイ
ミング制御部80からのデータ読出し信号REDに従っ
て、入力保持された量子化DCT係数を1個ずつ、順次
逆量子化部としての乗算部78に出力する。また、量子
化閾値保持部74は同様に、保持している各DCT係数
に対応した量子化閾値を順次乗算部78に出力する。乗
算部78は、入力された各画素の量子化DCT係数に量
子化閾値を乗算してDCT係数を求める逆量子化演算を
行う。タイミング制御部80は、乗算部78のアクセス
時間を計算して、ラッチ部86にデータのラッチ信号L
ATを発生する。
In FIG. 25, the quantized DCT coefficients decoded from code data by the variable length decoding section 56 are inputted to the quantized coefficient holding section 70 from a terminal 75. The quantized coefficient holding section 70 sequentially outputs the input and held quantized DCT coefficients one by one to the multiplication section 78 as an inverse quantization section in accordance with the data read signal RED from the timing control section 80. Similarly, the quantization threshold holding unit 74 sequentially outputs the quantization threshold corresponding to each held DCT coefficient to the multiplication unit 78. The multiplier 78 performs an inverse quantization operation to obtain a DCT coefficient by multiplying the input quantized DCT coefficient of each pixel by a quantization threshold. The timing control section 80 calculates the access time of the multiplication section 78 and supplies the data latch signal L to the latch section 86.
Generate AT.

このラッチ信号LATにより、ラッチ部86にDCT係
数がラッチされ、端子85から出力される。
This latch signal LAT causes the latch section 86 to latch the DCT coefficients, and output them from the terminal 85.

1個分の量子化係数の逆量子化が終了したら、タイミン
グ制御部80は、量子化係数保持部70と量子化閾値保
持部74に次の量子化DCT係数と量子化閾値の読出し
を指示し、次の量子化DCT係数の逆量子化演算を行な
う。このように、量子化係数保持部70に保持されてい
る量子化DCT係数を1側車位で読出し、量子化閾値保
持部2に保持されている量子化閾値で逆量子化して出力
する処理をブロック単位に1画面分繰り返すことにより
、1画面分の量子化DCT係数が逆量子化される。逆量
子化により得られたDCT係数は第22.23図に示し
たように2次元逆DCT変換され、これにより画像デー
タに復元される。
When the inverse quantization of one quantization coefficient is completed, the timing control section 80 instructs the quantization coefficient holding section 70 and the quantization threshold holding section 74 to read out the next quantized DCT coefficient and quantization threshold. , performs an inverse quantization operation on the next quantized DCT coefficient. In this way, the process of reading out the quantized DCT coefficients held in the quantization coefficient holding unit 70 at the first side vehicle position, inversely quantizing them using the quantization threshold held in the quantization threshold holding unit 2, and outputting them is blocked. By repeating one screen per unit, the quantized DCT coefficients for one screen are dequantized. The DCT coefficients obtained by inverse quantization are subjected to two-dimensional inverse DCT transformation as shown in FIGS. 22 and 23, and thereby restored to image data.

[発明が解決しようとする問題点コ このようにADCT方式を用いた従来の画像データ符号
化および復元方式にあっては、符号化時にDCT係数を
量子化する場合、全ての画素のDCT係数を量子化閾値
で除算しており、処理に時間がかかる問題があった。即
ち、量子化を行う除算器のアクセス速度は一般に遅く、
また、高速化のために除算器をROM等のメモリで構成
した場合でも、除算に必要な信号のビット数が多いため
メモリの容量が大きく、メモリのアクセス速度で量子化
速度が決定されるため、高速化が困難であるという問題
があった。
[Problems to be solved by the invention] As described above, in the conventional image data encoding and restoration method using the ADCT method, when DCT coefficients are quantized during encoding, the DCT coefficients of all pixels are There was a problem that it took a long time to process because it was divided by the quantization threshold. In other words, the access speed of a divider that performs quantization is generally slow;
Furthermore, even if the divider is configured with memory such as ROM to increase speed, the memory capacity is large because the number of signal bits required for division is large, and the quantization speed is determined by the memory access speed. However, there was a problem in that it was difficult to increase the speed.

同様に、復元時の逆量子化においても、全ての量子化D
CT係数を量子化閾値で乗算していたため、処理に時間
がかかり、高速化が困難であった。
Similarly, in inverse quantization during restoration, all quantization D
Since the CT coefficients were multiplied by the quantization threshold, the processing took time and was difficult to speed up.

本発明は、このような従来の問題点に鑑みてなされたも
ので、回路規模を増大させることなく符号化及び復元処
理を高速化のできる画像データ符号化及び復元方法並び
に装置を提供することを目的とする。
The present invention has been made in view of these conventional problems, and it is an object of the present invention to provide an image data encoding and restoring method and apparatus that can speed up encoding and restoring processing without increasing the circuit scale. purpose.

[課題を解決するための手段] 第1A図は本発明の原理説明図である。[Means to solve the problem] FIG. 1A is a diagram explaining the principle of the present invention.

まず本発明は、原画像をそれぞれが複数の画素からなる
複数のブロックに分割して得られる各ブロック毎に、ブ
ロック内の複数の画素の階調値を2次元離散コサイン変
換して得られたDCT係数を量子化し、該量子化DC丁
係数を符号化し、更に符号データの逆変換により画像を
復元する符号化及び復元方法並びに装置を対象とする。
First, the present invention divides an original image into a plurality of blocks each consisting of a plurality of pixels, and for each block, the gradation values of a plurality of pixels in the block are obtained by two-dimensional discrete cosine transformation. The present invention is directed to an encoding and restoring method and apparatus for quantizing DCT coefficients, encoding the quantized DC coefficients, and restoring an image by inversely transforming the encoded data.

このような符号化及び復元方法並びに装置につき、本発
明にあっては例えば装置を例にとると次のように構成す
る。
Regarding such an encoding and decompression method and apparatus, the apparatus according to the present invention is configured as follows, for example.

まず符号化においては、第1A図(a)に示すように、
DCT変換後のDCT係数を入力し一時的に保持するD
CT係数保持手段200と、DCT係数保持手段200
に保持されたDCT係数のブロックの内のn個(nは1
以上の正の整数)の行(及び又は列)を走査し、非零係
数の最高次数を検出する非零係数検出手段300と、非
零係数検出手段300で検出した非零係数の最高次数の
論理和から有効次数を求める有効次数検出手段400と
、DCT係数を量子化する順次アドレスを保持する量子
化アドレス保持手段500と、有効係数検出手段400
の有効次数アドレスと量子化アドレス保持手段のアドレ
スとを比較し、量子化アドレスが有効次数以上であった
場合、零を選択する零選択手段600とを具備し、有効
次数のアドレスと量子化アドレスを比較して有効次数を
越える量子化DCT係数に零を選択することによって量
子化を行ない、零となるDCT係数の量子化演算(除算
)を省略して高速化を図る。
First, in encoding, as shown in Figure 1A (a),
D to input and temporarily hold the DCT coefficients after DCT transformation
CT coefficient holding means 200 and DCT coefficient holding means 200
n of the blocks of DCT coefficients held in (n is 1
A non-zero coefficient detection means 300 that scans the rows (and/or columns) of the positive integer above and detects the highest order of non-zero coefficients; Effective order detection means 400 that calculates an effective order from a logical sum, quantization address holding means 500 that holds sequential addresses for quantizing DCT coefficients, and effective coefficient detection means 400
a zero selection means 600 that compares the effective order address of the quantization address with the address of the quantization address holding means and selects zero when the quantization address is equal to or higher than the effective order; quantization is performed by comparing the values and selecting zero for the quantized DCT coefficients exceeding the effective order, and speeding up is achieved by omitting the quantization operation (division) for the DCT coefficients that become zero.

一方、復元においては、第1A図(b)に示すように、
符号データから復号された量子化DCT係数を一時的に
保持する量子化閾値保持手段210と、量子化閾値保持
手段210に保持された量子化DCT係数のブロックの
内のn個の(nは1以上の正の整数)の行(及び又は列
)を走査し、非零係数の内の最高次数を検出する最高次
数検出手段310と、最高次数検出手段3111を検出
した非零係数の最高次数の論理和から有効次数を求める
有効次数算出手段410と、有効次数算出手段410で
得られた有効次数を越える次数のDCT係数に零を選択
する零係数選択手段610とを具備し、逆量子化処理時
に有効次数を越えるDCT係数に零を選択することによ
り、逆量子化演算(乗算)を省略して高速化を図る。
On the other hand, in restoration, as shown in Figure 1A (b),
Quantization threshold holding means 210 temporarily holds the quantized DCT coefficients decoded from encoded data, and n (n is 1) of the quantized DCT coefficient blocks held in the quantization threshold holding means 210 The highest order detection means 310 scans the rows (and/or columns) of positive integers) and detects the highest order among the non-zero coefficients, and the highest order detection means 3111 scans the rows (and/or columns) of the non-zero coefficients. It includes an effective order calculation means 410 that calculates an effective order from a logical sum, and a zero coefficient selection means 610 that selects zero for DCT coefficients of orders exceeding the effective order obtained by the effective order calculation means 410, and performs inverse quantization processing. By selecting zero for DCT coefficients that sometimes exceed the effective order, dequantization operations (multiplications) are omitted to increase speed.

更に符号化時に求められた有効次数以降を有効次数情報
として量子化DCT係数に付加して符号化し、復元時に
符号データから分離した有効上次数情報から有効次数を
検出して同様に処理し、復元時の量子化DCT係数の走
査による有効係数の検出を省略するように構成する。
Further, the effective order obtained during encoding is added to the quantized DCT coefficient as effective order information and encoded, and during restoration, the effective order is detected from the effective upper order information separated from the encoded data and processed in the same manner. The configuration is such that detection of effective coefficients by scanning quantized DCT coefficients at the time is omitted.

[作用] このような構成を備えた本発明の画像データ符号化及び
復元方法並び装置によれば次の作用が得られる。
[Operations] According to the image data encoding and restoration method and apparatus of the present invention having such a configuration, the following effects can be obtained.

まず本発明にあっては、DCT係数は低次にかたまって
集中する傾向があるという事実に基づき、ブロック内の
DCT係数をいくつかの行(及び又は列)を走査し、そ
の最高次数の論理和から求めた有効次数により非零係数
の分布する領域を推定し、有効次数以降の領域について
は量子化演算及び逆量子化演算を行わずに、結果を全て
零に設定し、この量子化、逆量子化演算のスキップによ
り符号化及び復元処理の高速化を図ることができる。
First, in the present invention, based on the fact that DCT coefficients tend to be concentrated in low orders, the DCT coefficients in a block are scanned over several rows (and/or columns), and the highest order logic The area where non-zero coefficients are distributed is estimated by the effective order obtained from the sum, and the results are set to zero without performing quantization and inverse quantization for the area after the effective order, and this quantization, By skipping the dequantization operation, it is possible to speed up the encoding and restoration processing.

例えば、8×8のDCT係数のブロックにおいて、階調
が緩やかに変化するようなブロックではDCとその周辺
のわずかなACに非零係数が集中する。また、エツジ部
など階調変化の激しい部分では高次のAC部に非零係数
が集中するため、第1B図に示すように、第1番目の行
(及び又は列)と、第8番目の行(及び又は列)の非零
係数の最高次数の論理和として有効次数を求めることで
、大部分のブロックにおいて、適切な有効次数の推定を
行なうことができる。
For example, in a block of 8×8 DCT coefficients in which the gradation changes gradually, non-zero coefficients are concentrated in DC and a few AC around it. In addition, in areas with sharp gradation changes such as edge areas, non-zero coefficients are concentrated in high-order AC areas, so as shown in Figure 1B, the 1st row (and/or column) and the 8th By finding the effective order as the logical sum of the highest orders of the non-zero coefficients of the rows (and/or columns), it is possible to appropriately estimate the effective order in most blocks.

勿論、全ての行(及び又は列)を検索することで、確実
に有効次数を求めることもできる。
Of course, the effective order can also be reliably determined by searching all rows (and/or columns).

第1B図においてDCT係数の第1番目と第8番目の列
及び行を走査した場合、行走査の最高次数は4次であり
、また列走査の最高次数は5次となり、従って有効次数
は行で4次、列で5次となり、網掛けで示す有効次数以
降の領域のDCT係数の量子化演算を省略して全て量子
化DCT係数として零を設定する。
When scanning the first and eighth columns and rows of DCT coefficients in Figure 1B, the highest order of row scanning is 4th order, and the highest order of column scanning is 5th order, so the effective order is The quantization operation for the DCT coefficients in the area after the effective order shown by the shaded area is omitted, and all quantized DCT coefficients are set to zero.

即ち、図中の網掛は部分が零にマスクされる。That is, the shaded portions in the figure are masked to zero.

この領域は全体の46.7%(30個/64個)であり
、この部分の量子化演算をスキップして高速化できる。
This region is 46.7% (30/64) of the total, and the quantization operation for this portion can be skipped to speed up the processing.

[実施例] 第2図は本発明の画像データ符号化装置の一実施例を示
した実施例構成図である。
[Embodiment] FIG. 2 is a block diagram showing an embodiment of the image data encoding device of the present invention.

第2図において、例えば第5図に示す8×8ブロツクに
分割された画信号(エツジ等の階調変化の激しい画信号
)は端子10からDCT変換部12に入力される。DC
T変換部12は人力された画信号をDCTにより直交変
換して第6図に示す空間周波数分布のDCT係数に変換
し、線形量子化部14に出力する。
In FIG. 2, for example, an image signal divided into 8×8 blocks as shown in FIG. D.C.
The T-transformer 12 orthogonally transforms the manually input image signal using DCT to convert it into DCT coefficients having a spatial frequency distribution shown in FIG. 6, and outputs the DCT coefficients to the linear quantizer 14.

線形量子化部14では、入力されたDCT係数を、視覚
実験により決められた第19図に示した閾値で構成する
量子化マトリクス16により線形量子化(除算)して量
子化DCT係数を求める。
The linear quantization unit 14 linearly quantizes (divides) the input DCT coefficients using a quantization matrix 16 configured with the threshold values shown in FIG. 19 determined through visual experiments to obtain quantized DCT coefficients.

線形量子化部14の量子化演算により2次元的に配列さ
れた量子化DCT係数は、第21図に示したジグザグス
キャンと呼ばれる走査順序に従って1次元に変換され、
可変長符号化部18に入力される。可変長符号化部18
は、各ブロック先頭のDC成分と前ブロックのDC成分
との差分を可変長符号化する。AC成分についてはイン
デックスとランをブロック毎に可変長符号化する。更に
DC,AC各成分は、画像ごとの統計量をもとに作成す
るハフマン・テーブルで構成する符号表20を用いて符
号化され、得られた符号データは順次、端子22より出
力される。
The quantized DCT coefficients arranged two-dimensionally by the quantization operation of the linear quantizer 14 are converted into one-dimensional one according to the scanning order called zigzag scan shown in FIG.
The signal is input to the variable length encoder 18. Variable length encoding unit 18
variable-length encodes the difference between the DC component at the beginning of each block and the DC component of the previous block. As for the AC component, the index and run are variable-length coded for each block. Further, each of the DC and AC components is encoded using a code table 20 consisting of a Huffman table created based on statistics for each image, and the obtained code data is sequentially output from a terminal 22.

このような構成は従来装置と同じであるが、本発明にあ
っては有効次数検出部24を新たに設けており、線形量
子化部14における有効次数以降のDCT係数を量子化
するための量子化演算を省略できるようにしている。
Such a configuration is the same as the conventional device, but in the present invention, an effective order detection section 24 is newly provided. This allows the conversion operation to be omitted.

第3図は第2図に示した本発明の有効次数検出部24の
一実施例を線形量子化部14のDCT係数係数保持部長
8に示した実施例構成図であるる第3図において、端子
26より入力されたDCT係数はまずDCT係数係数保
持部長8持される。
FIG. 3 is a block diagram of an embodiment of the effective order detection section 24 of the present invention shown in FIG. 2 in the DCT coefficient coefficient holding section 8 of the linear quantization section 14. The DCT coefficient input from the terminal 26 is first held in the DCT coefficient holding section 8.

この実施例で有効次数検出部24は、DCT係数係数保
持部長8持された1ブロツク内のDCT係数の第1行目
と第8行目を走査して零でない係数、即ち非零係数の最
高次数を検出し、各最高次数の論理和から有効次数を求
めるものとする。このため有効次数検出部24には、1
番目最高次数検索部46と、8番目最高次数検出部48
が設けられる。
In this embodiment, the effective order detection section 24 scans the first and eighth rows of the DCT coefficients in one block held by the DCT coefficient coefficient holding section 8 to find the non-zero coefficient, that is, the highest non-zero coefficient. The order is detected and the effective order is determined from the logical sum of each highest order. Therefore, the effective order detection section 24 has 1
th highest degree search unit 46 and eighth highest degree detection unit 48
is provided.

例えばDCT係数係数保持部長8持された第6図のDC
T係数の行及び行を走査して最高次数を検出するものと
すると、まず1行目と8行目を走査し、次の結果を得る
For example, the DC of FIG. 6 has 8 DCT coefficient coefficient holding sections.
Assuming that the highest order is detected by scanning rows and rows of T coefficients, the first and eighth rows are first scanned to obtain the following results.

1行目最高次数=4次 8行目最高次数−〇次 続いて1列目と8列目を走査して次の結果を得る。1st row highest degree = 4th order 8th line highest degree - 〇 degree Next, the first and eighth columns are scanned to obtain the following results.

1列目最高次数=5次 8列目最高次数=0次 これらの結果は論理和算出部50に与えられ、1番目と
8番目の最高次数の論理和として有効次数が求められる
。この場合、行の有効次数は4次、列の有効次数は5次
となる。論理和算出部6で求めた行及び列の各有効次数
は有効アドレス決定部52に出力される。有効アドレス
決定部52では、有効次数を判別するための有効アドレ
スを設定し、量子化演算時の量子化アドレスに同期して
比較演算のため線形量子化部14に出力される。
1st column highest degree = 5th column 8th column highest degree = 0th degree These results are given to the logical sum calculating section 50, and the effective degree is determined as the logical sum of the first and eighth highest degrees. In this case, the effective order of rows is 4th and the effective order of columns is 5th. Each effective order of the row and column determined by the logical sum calculation section 6 is outputted to the effective address determination section 52. The effective address determination section 52 sets an effective address for determining the effective order, and outputs it to the linear quantization section 14 for a comparison operation in synchronization with the quantization address during the quantization operation.

第4図は第2図における線形量子化部14を有効次数検
出部24と共に示した実施例構成図である。
FIG. 4 is a block diagram of an embodiment showing the linear quantization section 14 in FIG. 2 together with the effective order detection section 24.

第4図において、1ブロツクのDCT係数の量子化に先
立ち、有効次数検出部24は第3図に示したようにDC
T係数係数保持部長8力されたDCT係数を走査し、有
効次数(有効アドレス)を決定する。量子化アドレス発
生部10はタイミング制御部40からのデータ読出し信
号REDに従って量子化アドレスをDCT係数係数保持
部長8比較器32に出力する。同時に有効次数検出部8
は、タイミング制御部40からのデータ読み出し信号R
EDに従って決定した有効アドレスを比較器32に出力
する。比較器32は入力された量子化アドレスと有効ア
ドレスを比較し、両以下アドレスが有効アドレスを越え
たか否かの比較結果CMPをタイミング制御部40に出
力する。比較結果CMPに従ってタイミング制御部40
はマルチプレクサ38に選択信号SELを出力する。こ
こで、量子化アドレスが有効アドレスを越えている比較
結果CMPが得られた場合、選択信号SELを出力して
マルチプレクサ38は零発生器38の出力に切替え、零
発生器42の零信号を選択してラッチ部44に出力する
In FIG. 4, prior to the quantization of one block of DCT coefficients, the effective order detection unit 24 performs a DC
T coefficient coefficient holding section 8 scans the input DCT coefficients and determines the effective order (effective address). The quantization address generation section 10 outputs the quantization address to the DCT coefficient coefficient holding section 8 comparator 32 in accordance with the data read signal RED from the timing control section 40 . At the same time, effective order detection unit 8
is the data read signal R from the timing control section 40
The effective address determined according to ED is output to comparator 32. The comparator 32 compares the input quantized address and the effective address, and outputs a comparison result CMP to the timing control unit 40 to determine whether both lower addresses exceed the effective address. Timing control unit 40 according to comparison result CMP
outputs a selection signal SEL to the multiplexer 38. Here, if a comparison result CMP in which the quantization address exceeds the effective address is obtained, the selection signal SEL is output, the multiplexer 38 switches to the output of the zero generator 38, and selects the zero signal of the zero generator 42. and outputs it to the latch section 44.

一方、量子化アドレスが有効アドレス以内との比較結果
CMPが得られた場合、量子化演算を行う除算部36に
DCT係数係数保持部長8量子化アドレスに従って読出
されたDCT係数を入力すると同時に、量子化閾値保持
部32から量子化閾値が入力され、量子化演算が行なわ
れる。この演算結果は量子化DCT係数QUDとしてマ
ルチプレクサ38に出力され、マルチプレクサ38はタ
イミング制御部40からの選択信号SELに従って量子
化DCT係数QUDをラッチ部44に出力する。そして
、タイミング制御部40はラッチ部44にデータのラッ
チ信号LATを出力し、ラッチ部44に量子化DCT係
数QUDがラッチされ、次段の可変長符号化部18に出
力される。
On the other hand, when a comparison result CMP is obtained in which the quantization address is within the effective address, the DCT coefficient read out according to the quantization address of the DCT coefficient coefficient holding section 8 is input to the division section 36 that performs the quantization operation, and at the same time A quantization threshold is input from the quantization threshold holding unit 32, and a quantization operation is performed. This calculation result is output as a quantized DCT coefficient QUD to the multiplexer 38, and the multiplexer 38 outputs the quantized DCT coefficient QUD to the latch section 44 in accordance with the selection signal SEL from the timing control section 40. Then, the timing control section 40 outputs a data latch signal LAT to the latch section 44, the quantized DCT coefficient QUD is latched by the latch section 44, and is output to the variable length encoding section 18 at the next stage.

1画素分の係数の量子化が終了すると、タイミング制御
部40は、DCT係数係数保持部上8子化閾値保持部3
2に次の画素のDCT係数と量子化閾値の読出しを指示
し、次の画素の係数の量子化演算を行なう。
When the quantization of the coefficients for one pixel is completed, the timing control section 40 controls the DCT coefficient coefficient holding section upper octetization threshold holding section 3.
2 to read out the DCT coefficient and quantization threshold of the next pixel, and performs a quantization operation on the coefficient of the next pixel.

このように、量子化処理を1画素分、1ブロック単位に
1画面分繰り返すことにより、■画面針のDCT係数が
量子化される。
In this way, by repeating the quantization process for each pixel and each block for one screen, the DCT coefficients of the (1) screen needle are quantized.

第6図のDCT係数の量子化の場合、網掛けで示した領
域は、マルチプレクサ38による零発生器42からの零
信号の選択で量子化DCT係数が求められ、除算器36
による量子化演算は不要とでき、零領域は46.7%に
も及ぶことから、量子化演算の高速化に大きく寄与でき
る。
In the case of quantization of DCT coefficients in FIG.
Since the quantization operation according to the method is not necessary, and the zero region reaches as much as 46.7%, it can greatly contribute to speeding up the quantization operation.

第7図は第2図の画像データ符号化装置に対応した本発
明の画像データ復元復号装置の実施例構成図である。
FIG. 7 is a block diagram of an embodiment of an image data restoration/decoding apparatus of the present invention corresponding to the image data encoding apparatus of FIG. 2.

第7図において、まず端子54から入力された符号デー
タは、可変長符号部56に人力される。
In FIG. 7, coded data input from the terminal 54 is manually inputted to the variable length coder 56.

可変長復号部56では、第2図の符号表20のノ)フマ
ン・テーブルと逆のテーブルで構成する復号表58によ
り、入力された符号データをインデックスとランの固定
長データに復号し、線形逆量子化部60に出力する。線
形逆量子化部60は、量子化DCT係数の各々を量子化
マトリクス62の閾値の各々で乗算することにより、量
子化DCT係数を逆量子化してDCT係数を復元し、2
次元逆DCT変換部64に出力する。2次元逆DCT変
換部64は、入力されたDCT係数を逆DCT変換によ
り直交変換し、空間周波数分布の係数を画信号として端
子66から出力する。
In the variable length decoding unit 56, the input code data is decoded into fixed length data of index and run using a decoding table 58 which is an inverse table to the human table in the code table 20 of FIG. It is output to the inverse quantization section 60. The linear dequantization unit 60 dequantizes the quantized DCT coefficients by multiplying each of the quantized DCT coefficients by each of the threshold values of the quantization matrix 62 to restore the DCT coefficients, and
It is output to the dimensional inverse DCT transform unit 64. The two-dimensional inverse DCT transform unit 64 orthogonally transforms the input DCT coefficients by inverse DCT transform, and outputs the coefficients of the spatial frequency distribution from a terminal 66 as an image signal.

このような構成は従来と同じであるが、これに加えて本
発明にあっては、新たに有効次数検出部68が設けられ
る。
Although such a configuration is the same as the conventional one, in addition to this, in the present invention, an effective order detection section 68 is newly provided.

この有効次数検出部68は第3図の有効次数検出部24
と同じ構成をもつが、有効次数を検出するための走査対
象が符号化の場合のDCT係数と異なり、符号データか
ら復号された量子化DCT係数となる。
This effective order detecting section 68 is the effective order detecting section 24 of FIG.
However, unlike the DCT coefficient when the scanning target for detecting the effective order is encoding, it is a quantized DCT coefficient decoded from encoded data.

第8図は第7図の画像データ復元装置における線形逆量
子化部60の一実施例を有効次数検出部68と共に示し
た実施例構成図である。
FIG. 8 is a block diagram showing an embodiment of the linear inverse quantization section 60 in the image data restoration apparatus of FIG. 7 together with the effective order detection section 68.

第8図において、まず逆量子化に先立ち、端子75から
入力されて量子化係数保持部70に保持された量子化D
CT係数を、有効次数検出部68で走査して有効次数を
求め、有効アドレスを決定する。
In FIG. 8, first, prior to dequantization, the quantized D input from the terminal 75 and held in the quantization coefficient holding unit 70
The CT coefficients are scanned by the effective order detection unit 68 to obtain the effective order and determine the effective address.

続いてタイミング制御部80からの読出し信号REDに
より逆量子化アドレス発生部72で発生した逆量子化ア
ドレスが量子化係数保持部70、比較器76及び量子化
閾値保持部74に与えられる。同時に有効次数検出部6
8にタイミング制御部80から読出し信号REDが与え
られ、既に決定された有効アドレスが比較器76にセッ
トされる。比較器76は有効次数検出部68からの有効
アドレスと、逆量子化アドレス発生部72で発生した逆
量子化アドレスを比較する。比較器76のの比較結果C
MPに従ってタイミング制御部80はマルチプレクサ8
2に選択信号SELを出力する。逆量子化アドレスが有
効アドレスを越える場合、マルチプレクサ82は零発生
器84で発生した零信号を選択し、ラッチ部86に出力
する。
Subsequently, the inverse quantization address generated by the inverse quantization address generation section 72 is given to the quantization coefficient holding section 70, the comparator 76, and the quantization threshold holding section 74 in response to the readout signal RED from the timing control section 80. At the same time, the effective order detection unit 6
8 is supplied with a read signal RED from the timing control section 80, and the already determined effective address is set in the comparator 76. A comparator 76 compares the effective address from the effective order detector 68 with the dequantized address generated by the dequantized address generator 72. Comparison result C of comparator 76
According to MP, the timing control unit 80 controls the multiplexer 8
A selection signal SEL is output to the terminal 2. If the dequantized address exceeds the effective address, multiplexer 82 selects the zero signal generated by zero generator 84 and outputs it to latch section 86 .

方、逆量子化アドレスが有効アドレス以内であった場合
、逆量子化部としての乗算部78で量子化DCT係数に
量子化閾値を乗算してDCT係数を求める逆量子化演算
が行なわれ、マルチプレクサ82は演算結果としてのD
CT係数をラッチ部86に出力する。そして、タイミン
グ制御部80はラッチ部86にデータのラッチ信号LA
Tを出力してDCT係数をラッチさせ、次段の2次元逆
DCT変換部64に出力する。1画素分の量子化DCT
係数の逆量子化が終了したら、タイミング制側部80は
、量子化係数保持部70と量子化閾値保持部74に次の
画素の量子化DCT係数と量子化閾値の読み出しを指示
し、次の画素の量子化DCT係数の逆量子化を行なう。
On the other hand, if the dequantization address is within the effective address, the multiplier 78 serving as the dequantization section performs dequantization operation to obtain the DCT coefficient by multiplying the quantized DCT coefficient by the quantization threshold, and the multiplexer 82 is D as the calculation result
The CT coefficient is output to the latch section 86. Then, the timing control section 80 sends the data latch signal LA to the latch section 86.
T is output to latch the DCT coefficients and output to the next stage two-dimensional inverse DCT transform section 64. Quantization DCT for one pixel
When the inverse quantization of the coefficients is completed, the timing-based side unit 80 instructs the quantization coefficient holding unit 70 and the quantization threshold holding unit 74 to read out the quantized DCT coefficient and quantization threshold of the next pixel, and Perform inverse quantization of the quantized DCT coefficients of pixels.

このように逆量子化処理を1画素ずつ1ブロック単位に
1画面分繰り返すことにより、1画面分の量子化DCT
係数が逆量子化される。
By repeating the dequantization process pixel by block for one screen in this way, the quantized DCT for one screen is
The coefficients are dequantized.

第9図は符号化された符号データに有効次数情報を付加
する場合の画像データ符号化装置の実施例を示したもの
で、この画像データ符号化装置に対応する画像データ復
元装置の実施例を第10図に示す。
FIG. 9 shows an embodiment of an image data encoding device for adding effective order information to encoded code data, and shows an embodiment of an image data restoring device corresponding to this image data encoding device. It is shown in FIG.

第9図において、線形量子化部14の構成は有効次数検
出部20で求められた有効次数情報を保持する有効次数
保持部88を新たに設けた点以外は第4図の実施例と同
じである。また可変長符号化部18側には、入力段に量
子化係数保持部90が設けられ、また出力段にマルチプ
レクサ92を設けている点が第2図の実施例と異なる。
In FIG. 9, the configuration of the linear quantization unit 14 is the same as the embodiment shown in FIG. be. Further, this embodiment differs from the embodiment shown in FIG. 2 in that, on the variable length encoding section 18 side, a quantization coefficient holding section 90 is provided at the input stage, and a multiplexer 92 is provided at the output stage.

符号データに有効次数情報付加する処理は、まず有効次
数検出部20で検出した有効次数情報を有効次数保持部
88に保持し、ブロック毎に有効次数情報をマルチプレ
クサ92に出力する。マルチプレクサ92は1画素の可
変長符号化部18からの符号データを出力すると有効次
数保持部88側に切替わって有効次数情報を出力する動
作をブロック毎に繰り返す。
In the process of adding effective order information to code data, first, the effective order information detected by the effective order detector 20 is held in the effective order holding section 88, and the effective order information is output to the multiplexer 92 for each block. When the multiplexer 92 outputs code data from the variable length encoder 18 for one pixel, it switches to the effective order holding section 88 side and repeats the operation of outputting effective order information for each block.

第10図の画像データ復元装置にあっては、デマルチプ
レクサ94が可変長復号部56の前段に設けられる。デ
マルチプレクサ94で端子54から入力した符号データ
を有効次数情報と画像データとに分離し、画像データは
可変長復号部56で復号され、一方、有効閾値情報は有
効次数情報保持部96に保持される。有効次数情報保持
部96はタイミング制御部80からの読出し信号RED
を受けて有効次数情報から生成した有効アドレスを比較
器76にセットする。これ以降は、第8FI!Jの復元
装置と同様の処理を行なうことにより、DCT係数に逆
変換される。
In the image data restoration device shown in FIG. 10, a demultiplexer 94 is provided upstream of the variable length decoding section 56. The demultiplexer 94 separates the code data input from the terminal 54 into effective order information and image data, and the image data is decoded by the variable length decoding section 56, while the effective threshold information is held in the effective order information holding section 96. Ru. The effective order information holding section 96 receives the read signal RED from the timing control section 80.
In response to this, an effective address generated from the effective order information is set in the comparator 76. From now on, the 8th FI! By performing the same processing as the restoring device of J, it is inversely transformed into DCT coefficients.

第11.12図は有効次数情報を符号データに付加する
他の実施例としてのADCT符号化回路の回路ブロック
図を示す。
Figures 11 and 12 show circuit block diagrams of ADCT encoding circuits as another embodiment for adding effective order information to encoded data.

ここで第11図は1画素毎に有効次数情報をそのまま符
号データに加えた場合の実施例であり、第12図は画像
全体の有効次数情報をまとめて符号化した場合の実施例
例である。
Here, FIG. 11 shows an example in which the effective order information for each pixel is directly added to the encoded data, and FIG. 12 shows an example in which the effective order information for the entire image is encoded all at once. .

まず第1112図のいずれにおいても次の符号化動作が
行なわれる。端子10から入力されたが信号は2次元D
CT変換部12でDCT変換される。有効次数検出部2
4は第3図に示したようにDCT係数を走査して有効次
数を決定し、有効次数情報保持部88に保持させる。線
形量子化部14は有効次数検出部24で得られた有効次
数情報に従ってDCT係数を線形量子化する。即ち、量
子化アドレスが有効次数に基づく有効アドレス以内であ
れば、DCT係数を量子化閾値で除算する量子化演算に
より量子化DCT係数を求め、量子化アドレスが有効ア
ドレス以降であれば量子化演算を行わずに零信号を設定
する。
First, the following encoding operation is performed in both of FIGS. Although input from terminal 10, the signal is two-dimensional D
A CT conversion unit 12 performs DCT conversion. Effective order detection unit 2
4 scans the DCT coefficients to determine the effective order as shown in FIG. The linear quantization unit 14 linearly quantizes the DCT coefficients according to the effective order information obtained by the effective order detection unit 24. That is, if the quantized address is within the effective address based on the effective order, the quantized DCT coefficient is calculated by dividing the DCT coefficient by the quantization threshold, and if the quantized address is after the effective address, the quantized DCT coefficient is calculated. Set the zero signal without performing.

線形量子化部14から出力された量子化DCT係数は可
変長符号化部18で可変長符号化され、可変長符号保持
部98に保持された後にマルチプレクサ92に出力され
る。
The quantized DCT coefficients output from the linear quantization unit 14 are variable-length encoded by the variable-length encoding unit 18, held in the variable-length code holding unit 98, and then output to the multiplexer 92.

一方、有効次数情報保持部88に保持された有効次数情
報は第11図の場合は直接にマルチプレクサ92に出力
され、第12図の場合は可変長符号部100で符号化さ
れてマルチプレクサ92にに出力される。マルチプレク
サ92は入力された2つのデータを加えて、端子95よ
り符号として出力する。
On the other hand, the effective order information held in the effective order information holding unit 88 is directly output to the multiplexer 92 in the case of FIG. Output. The multiplexer 92 adds the two input data and outputs the result from a terminal 95 as a code.

ここで、符号データをH1有効次数情報をYとし、可変
長符号保持部98をバッファAで構威し、有効次数情報
保持部88をバッファBで構成したとすると、第11図
の端子95より出力される符号は以下の種類が考えられ
る。
Here, if the code data is H1 effective order information is Y, the variable length code holding section 98 is configured with buffer A, and the effective order information holding section 88 is configured with buffer B, then from terminal 95 in FIG. The following types of codes can be considered to be output.

■バッファA、Bが無い場合; HY、HY、HY・・・ ■バッファAが無い場合; HHH・・・ YYY・・・ ■バッファBが無い場合; YYY・・・  HHH・・・ また、第12図の端子からは、同様にして次のパターン
で出力される。
■If there are no buffers A and B; HY, HY, HY... ■If there is no buffer A; HHH... YYY... ■If there is no buffer B; YYY... HHH... Similarly, the terminal shown in FIG. 12 outputs the following pattern.

■バッファAがある場合; YYY・・・ HHH・・・ ■バッファAが無い場合; HHH・・・ YYY・・・ 即ち、上記のでは画素単位で符号データHと有効次数情
報Yを出力し、上記■〜■では画面単位で符号データH
と有効次数情報Yを出力する。
■If buffer A exists; YYY... HHH... ■If buffer A does not exist; HHH... YYY... In other words, in the above, code data H and effective order information Y are output in pixel units, In the above ■~■, the code data H is displayed in units of screens.
and outputs effective order information Y.

第13図は第11図のADCT符号化回路に対応したA
DCT復元回路の実施例を示し、また第14図は第12
図のADCT符号化回路に対応したADCT復元回路の
実施例を示す。
Figure 13 shows A corresponding to the ADCT encoding circuit in Figure 11.
An embodiment of the DCT restoration circuit is shown, and FIG.
An embodiment of an ADCT restoration circuit corresponding to the ADCT encoding circuit shown in the figure is shown.

即ち、第13図は、有効次数情報をそのまま符号データ
に加えた場合の符号を復元するものであり、また第14
図は画像全体の有効次数情報をまとめて符号化した場合
の符号を復元するものである。
That is, FIG. 13 shows a method for restoring a code when effective order information is directly added to code data, and FIG.
The figure shows a method for restoring a code when the effective order information of the entire image is encoded all at once.

第13.14図において、端子54より入力された符号
はデマルチプレクサ94により符号データと有効次数情
報に分離される。符号データは可変長復号部56に入力
され、量子化DCT係数を復号する。一方、有効次数情
報は第13図の場合は直接に有効次数保持部96に入力
し、また第14図の場合は可変長復号部102により有
効次数情報に復号され、有効次数保持部96に入力され
る。
In FIGS. 13 and 14, the code input from the terminal 54 is separated into code data and effective order information by a demultiplexer 94. The code data is input to the variable length decoding section 56, and the quantized DCT coefficients are decoded. On the other hand, in the case of FIG. 13, the effective order information is directly input to the effective order holding unit 96, and in the case of FIG. be done.

以降の動作は第13.14図とも同じであり、線形逆量
子化部60は有効次数検出部96からの有効アドレスに
従って、量子化DCT係数を逆量子化してDCT逆T逆
変換4に出力する。即ち、有効アドレス以前であれば、
量子化DCT係数に量子化閾値を乗算する逆量子化演算
を行ない、有効アドレス以降であれば逆量子化演算を行
わずにDCT係数に零信号を設定する。2次元DCT逆
変換部64は入力されたDCT係数をDCT逆変換し、
画信号を復元する。このようにして、1画面の画像デー
タが復元される。
The subsequent operations are the same as in FIGS. 13 and 14, and the linear inverse quantization section 60 inversely quantizes the quantized DCT coefficients according to the effective address from the effective order detection section 96 and outputs it to the DCT inverse T inverse transform 4. . In other words, if it is before the valid address,
An inverse quantization operation is performed in which the quantized DCT coefficient is multiplied by a quantization threshold, and if the address is after the effective address, a zero signal is set in the DCT coefficient without performing the inverse quantization operation. The two-dimensional DCT inverse transform unit 64 performs DCT inverse transform on the input DCT coefficients,
Restore the image signal. In this way, one screen of image data is restored.

尚、上記の実施例にあっては、符号化及び復元のいずれ
においても、階調変化が激しい場合を想定してブロック
内の行及び列の1番目と最後の8番目を走査して有効次
数を決定する場合を例にとるものであったが、ブロック
内の1以上の正の整数となるn個の行または列を走査し
て値が零でな非零係数の最高次数の論理和として有効次
数を求め、この有効次数から有効アドレスを設定して量
子化及び逆量子化を行うようにしてもよい。
In the above embodiment, in both encoding and restoration, the first and last eighth rows and columns in a block are scanned to determine the effective order, assuming that the gradation changes are large. In this example, we scan n rows or columns that are positive integers greater than or equal to 1 in a block, and then calculate Alternatively, the effective order may be determined, and the effective address may be set from this effective order to perform quantization and inverse quantization.

[発明の効果コ 以上説明したように本発明によれば、量子化処理および
逆量子化処理において、各ブロックについて非零係数の
有効次数を求め、有効次数を越える係数に零を与えるこ
とで量子化演算及び逆量子化の演算量を大幅に低減し、
高速に量子化、逆量子化処理を行なうことができる。
[Effects of the Invention] As explained above, according to the present invention, in quantization processing and inverse quantization processing, the effective order of non-zero coefficients is determined for each block, and the coefficients exceeding the effective order are given zero. Significantly reduces the amount of calculations and inverse quantization operations,
Quantization and inverse quantization processing can be performed at high speed.

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

第1A図は本発明の原理説明図: 第1B図は本発明の作用説明図; 第2図は本発明の画像データ符号化装置の実施例構成図
; 第3図は第2図における有効次数検出部の実施測成例; 第4図は第2図における線形量子化部の実施例回路図; 第5図は本発明で符号化する画像データの説明図;第6
図は第5図の画像データから得られたDCT係数の説明
図; 第7図は本発明の画像データ復元装置の実施例構成図; 第8図は第7図における線形逆量子化部の実施例回路図
; 第9図は有効次数情報を符号データに加えられた場合の
画像データ符号化装置の実施例構成図;第10図は第9
図の画像データネ声羽化装置のの符号を復元する画像デ
ータ復元装置の実施例構成図; 第11図は有効次数情報をそのまま符号データに付加し
たばあの本発明によるADCT符号化回路の回路ブロッ
ク図; 第12図は有効次数情報を符号化して符号データに付加
した場合の本発明によるADCT符号化回路の回路ブロ
ック図; 第13図は第11図のADCT符号化回路に対応したA
DCT復号回路のブロック図; 第14図は第12図のADCT符号化回路に対応したA
DCT復号回路のブロック図; 第15図は従来のADCT方式の符号化回路のブロック
図; 第16図は第15図の2次元DCT変換部のブロック図
; 第17図は1ブロツクの原画像信号の説明図;第18図
は第8図の画像信号をDCT変換としたときのDCT係
数説明図; 第19図は視覚に適応した量子化閾値説明図;第20図
は第19図の量子化量値を用いて第18図のDCT係数
を量子化したときの量子化DCT係数説明図; 第2115!ffはDCT係数を量子化するための走査
順序説明図; 第22図は従来のADCT方式の復元回路のブロック図
; 第23図は第22図2次元逆DCT変換部のブロック図
; 第24図は従来の線形量子化回路のブロック図;第25
図は線形逆量子化回路のブロック図である。 図中、 12:2次DCT変換部 14:線形量子化部 16.62:量子化マトリクス 18:可変長符号化部 20:符号表 24.68:有効次数検出部 28:DCT係数保持部 30:量子化アドレス発生部 32.74:量子化閾値保持部 34.76:比較器 36:除算部(量子化部) 38.82.92:マルチプレクサ 40.80:タイミング制御部 42.84:零発生器 44.86:ラッチ部 46:1番目最高次数検索部 48:8番目最高次数検索部 50:論理和算出部 52:有効アドレス決定部 56:可変長符号化部 58:復号表 60:線形逆量子化部 64:2次元逆DCT変換部 70:量子化係数保持部 72:逆量子化アドレス発生部 78:乗算部(逆量子化部) 88:有効次数保持部 94:デマルチプレクサ 98:可変長符号保持部 100:可変長符号部(有効次数情報用)102:可変
長復号部(有効次数情報用)キ笈た (b) 奎発明の層、這碇明囮 第1A図 /$4!明の11用轟光団日 第1B図 糸2(8)の釦幻沫頷搾工訃の叉柁伊開戚因第3図 JP12団171彫り呼量÷1し訃の夾廼1デ1回玲に
第4図 本R明におけるII倣データのLtllFl 日第5図 第6図 1アロツ7(7’1lll[W像信号♂光明面第17図 DCT係数課+’FII!!1 第18図 第19図 量子化DCT gAe alFIII 第加図 量子化gA数の走査順序隣明縮 従来の噛形量子化回路のブロック図 第洩図
Fig. 1A is an explanatory diagram of the principle of the present invention; Fig. 1B is an explanatory diagram of the operation of the present invention; Fig. 2 is a configuration diagram of an embodiment of the image data encoding device of the present invention; Fig. 3 is an effective order in Fig. 2. An example of actual measurement of the detection section; FIG. 4 is a circuit diagram of an embodiment of the linear quantization section in FIG. 2; FIG. 5 is an explanatory diagram of image data encoded by the present invention;
The figure is an explanatory diagram of DCT coefficients obtained from the image data in Figure 5; Figure 7 is a configuration diagram of an embodiment of the image data restoration device of the present invention; Figure 8 is an implementation of the linear inverse quantization section in Figure 7. Example circuit diagram; Figure 9 is an example configuration diagram of an image data encoding device when effective order information is added to encoded data;
A block diagram of an embodiment of an image data restoring device for restoring the code of the image data voice conversion device shown in the figure; Fig. 11 is a circuit block diagram of an ADCT encoding circuit according to the present invention in which effective order information is added as is to the code data. ; Figure 12 is a circuit block diagram of an ADCT encoding circuit according to the present invention when effective order information is encoded and added to encoded data; Figure 13 is a circuit block diagram of an ADCT encoding circuit corresponding to the ADCT encoding circuit of Figure 11;
A block diagram of the DCT decoding circuit; Figure 14 is a block diagram of the ADCT encoding circuit shown in Figure 12.
A block diagram of a DCT decoding circuit; FIG. 15 is a block diagram of a conventional ADCT encoding circuit; FIG. 16 is a block diagram of a two-dimensional DCT transform unit in FIG. 15; FIG. 17 is a block diagram of one block of original image signal Figure 18 is an illustration of the DCT coefficient when the image signal in Figure 8 is subjected to DCT transformation; Figure 19 is an illustration of the quantization threshold adapted to visual perception; Figure 20 is the quantization of Figure 19 An explanatory diagram of quantized DCT coefficients when the DCT coefficients of FIG. 18 are quantized using quantity values; 2115th! ff is a diagram explaining the scanning order for quantizing DCT coefficients; Fig. 22 is a block diagram of a conventional ADCT method restoration circuit; Fig. 23 is a block diagram of the two-dimensional inverse DCT transform unit shown in Fig. 22; Fig. 24 is a block diagram of a conventional linear quantization circuit; No. 25
The figure is a block diagram of a linear inverse quantization circuit. In the figure, 12: Quadratic DCT transform unit 14: Linear quantization unit 16.62: Quantization matrix 18: Variable length encoding unit 20: Code table 24.68: Effective order detection unit 28: DCT coefficient holding unit 30: Quantization address generation section 32.74: Quantization threshold holding section 34.76: Comparator 36: Division section (quantization section) 38.82.92: Multiplexer 40.80: Timing control section 42.84: Zero generator 44.86: Latch section 46: 1st highest degree search section 48: 8th highest degree search section 50: OR calculation section 52: Effective address determination section 56: Variable length encoding section 58: Decoding table 60: Linear inverse quantum Converting unit 64: Two-dimensional inverse DCT transform unit 70: Quantization coefficient holding unit 72: Inverse quantization address generation unit 78: Multiplication unit (inverse quantization unit) 88: Effective order holding unit 94: Demultiplexer 98: Variable length code Holding section 100: Variable-length code section (for effective order information) 102: Variable-length decoding section (for effective order information) (b) Layer of the invention, Hi-Ikari Ming Decoy Figure 1A/$4! Ming Dynasty 11th Roaring Light Group Day 1B Figure Thread 2 (8) Button Illusion Nod Pressing Work Death's Crossfire Ikai Relationship Figure 3 JP 12 Group 171 Engraving Call Volume ÷ 1 and Death's Containment 1 De 1 Figure 4 LtllFl of II imitation data in this R light Figure 5 Figure 6 Figure 1 Arotu 7 (7'1lll [W image signal ♂ light surface Figure 17 DCT coefficient division +'FII!!1 18th Figure 19: Quantization DCT gAe alFIII Figure 19 Scanning order of quantization gA number Adjacent brightness reduction Block diagram of a conventional tooth-shaped quantization circuit Figure 19

Claims (14)

【特許請求の範囲】[Claims] (1)原画像をそれぞれが複数の画素からなる複数のブ
ロックに分割して得られる各ブロック毎に、該ブロック
内の前記複数の画素の階調値を2次元離散コサイン変換
して得られたDCT係数を量子化し、該量子化DCT係
数を2次元可変長符号化し、更に符号化された符号デー
タの逆変換により画像を復元する画像データ符号化及び
復元方法に於いて、 符号化時には、前記DCT係数の各ブロック内のn個の
行及び又は列を走査して値が零でない非零係数の内の最
高次数の論理和により有効次数を求め、量子化時に有効
次数以降の行及び又は列の量子化DCT係数を全て零に
設定し、 復元時には、復号された量子化DCT係数の各ブロック
内のn個の行及び又は列を走査して値が零でない非零係
数の内の最高次数の論理和から有効次数を求め、量子化
DCT係数の逆量子化時に有効次数以降の行及び又は列
のDCT係数を全て零に設定することを特徴とする画像
データ符号化及び復元方法。
(1) For each block obtained by dividing the original image into a plurality of blocks each consisting of a plurality of pixels, the tone values of the plurality of pixels in the block are obtained by two-dimensional discrete cosine transformation. In an image data encoding and restoring method that quantizes DCT coefficients, performs two-dimensional variable-length encoding on the quantized DCT coefficients, and restores an image by inversely transforming the encoded coded data, the method includes: Scan the n rows and/or columns in each block of DCT coefficients, calculate the effective order by ORing the highest order among the non-zero coefficients whose value is not zero, and then calculate the effective order by scanning the n rows and/or columns in each block of DCT coefficients. All quantized DCT coefficients are set to zero, and during restoration, n rows and/or columns in each block of decoded quantized DCT coefficients are scanned and the highest order among the non-zero coefficients whose value is not zero is found. An image data encoding and restoring method characterized in that an effective order is determined from the logical sum of the quantized DCT coefficients, and all DCT coefficients in rows and/or columns after the effective order are set to zero during inverse quantization of quantized DCT coefficients.
(2)原画像をそれぞれが複数の画素からなる複数のブ
ロックに分割して得られる各ブロック毎に、該ブロック
内の前記複数の画素の階調値を2次元離散コサイン変換
して得られたDCT係数を量子化し、該量子化DCT係
数を2次元可変長符号化し、更に符号化した符号データ
を逆変換して画像を復元する画像データ符号化及び復元
方法であって、 符号化時には、前記DCT係数の内のn個の行及び又は
列を走査して値が零でない非零係数の内の最高次数の論
理和から有効次数を求め、量子化時に有効次数以降の行
及び又は列の量子化DCT係数を全て零に設定し、更に
符号化された量子化DCT係数に前記有効次数の情報を
付加して符号データを形成し、 復元時には、前記符号データから有効次数情報を分離し
て有効次数を検出し、量子化DCT係数の逆量子化時に
有効次数以降の行及び又は列のDCT係数を全て零に設
定することを特徴とする画像データ符号化及び復元方法
(2) For each block obtained by dividing the original image into a plurality of blocks each consisting of a plurality of pixels, the tone values of the plurality of pixels in the block are obtained by two-dimensional discrete cosine transformation. An image data encoding and restoring method that quantizes DCT coefficients, performs two-dimensional variable length encoding on the quantized DCT coefficients, and further transforms the encoded coded data inversely to restore an image, the method comprising: Scan n rows and/or columns of the DCT coefficients, find the effective order from the logical sum of the highest order among the non-zero coefficients whose value is not zero, and calculate the quanta in the rows and/or columns after the effective order at the time of quantization. The quantized DCT coefficients are all set to zero, and the information on the effective order is added to the coded quantized DCT coefficients to form coded data, and when restoring, the effective order information is separated from the coded data and made effective. An image data encoding and restoring method characterized by detecting an order and setting all DCT coefficients in rows and/or columns after the effective order to zero during dequantization of quantized DCT coefficients.
(3)原画像をそれぞれが複数の画素からなる複数のブ
ロックに分割して得られる各ブロック毎に、該ブロック
内の前記複数の画素の階調値を2次元離散コサイン変換
して得られたDCT係数を量子化し、該量子化DCT係
数を2次元可変長符号化する画像データ符号化方法に於
いて、 DCT変換後のDCT係数を一時的に保持する第1過程
と; 前記第1過程で保持されたDCT係数のブロックの内の
n個の行及び又は列を走査し、非零係数の内の最高次数
を検出する第2過程と; 前記第2過程で検出した非零係数の最高次数の論理和か
ら有効次数を求める第3過程と; 前記第3過程で得られた有効次数を越える量子化DCT
係数に零を選択する第4過程と; を有し、前記第3過程で得られた有効次数を越える量子
化DCT係数に零を選択してDCT係数の量子化演算を
省略することを特徴とする画像データ符号化方法。
(3) For each block obtained by dividing the original image into a plurality of blocks each consisting of a plurality of pixels, the tone values of the plurality of pixels in the block are obtained by two-dimensional discrete cosine transformation. In an image data encoding method for quantizing DCT coefficients and performing two-dimensional variable length encoding on the quantized DCT coefficients, a first step of temporarily holding the DCT coefficients after DCT transformation; a second step of scanning n rows and/or columns of the block of retained DCT coefficients and detecting the highest order among the non-zero coefficients; the highest order of the non-zero coefficients detected in said second step; a third step of determining the effective order from the logical sum of; quantization DCT exceeding the effective order obtained in the third step;
a fourth step of selecting zero for the coefficient; and selecting zero for the quantized DCT coefficient exceeding the effective order obtained in the third step and omitting the quantization operation of the DCT coefficient. Image data encoding method.
(4)請求項3記載の画像データ符号化方法に於いて、 前記第2過程では、ブロック内の第1番目の行及び又は
列と最終の行および又は列を走査して有効次数を求める
ことを特徴とする画像データ符号化方法。
(4) In the image data encoding method according to claim 3, in the second step, the first row and/or column and the last row and/or column in the block are scanned to obtain the effective order. An image data encoding method characterized by:
(5)請求項3記載の画像データ符号化方法に於いて、 前記第3過程で得られた有効次数を有効次数情報として
符号化された量子化DCT係数に付加して符号データを
形成することを特徴とする画像データ符号化方法。
(5) In the image data encoding method according to claim 3, the effective order obtained in the third step is added to the encoded quantized DCT coefficient as effective order information to form code data. An image data encoding method characterized by:
(6)原画像をそれぞれが複数の画素からなる複数のブ
ロックに分割して得られる各ブロック毎に、該ブロック
内の前記複数の画素の階調値を2次元離散コサイン変換
して得られたDCT係数を量子化し、該量子化DCT係
数を2次元可変長符号化する画像データ符号化装置に於
いて、 DCT変換後のDCT係数を一時的に保持するDCT係
数保持手段(200)と; 前記DCT係数保持手段(200)に保持されたDCT
係数のブロックの内のn個の行および又は列を走査し、
非零係数の内の最高次数を検出する最高次数検出手段(
300)と; 前記最高次数検出手段(300)で検出した非零係数の
最高次数の論理和から有効次数を求める有効次数検出手
段(400)と; DCT係数を量子化する順序アドレスを保持する量子化
アドレス保持手段(500)と; 前記有効次数検出手段(400)の有効次数と前記量子
化アドレス保持手段(500)のアドレスを比較し、量
子化アドレスが有効次数以降であった場合に零を選択す
る零選択手段(600)と;を具備し、前記有効次数以
降の量子化DCT係数に零を選択してDCT係数の量子
化演算を省略することを特徴とする画像データ符号化装
置。
(6) For each block obtained by dividing the original image into a plurality of blocks each consisting of a plurality of pixels, the tone values of the plurality of pixels in the block are obtained by two-dimensional discrete cosine transformation. In an image data encoding device that quantizes DCT coefficients and performs two-dimensional variable length encoding of the quantized DCT coefficients, the DCT coefficient holding means (200) temporarily holds the DCT coefficients after DCT transformation; DCT held in the DCT coefficient holding means (200)
scan n rows and/or columns of the block of coefficients;
Highest order detection means for detecting the highest order among non-zero coefficients (
300); effective order detection means (400) for determining an effective order from the logical sum of the highest order of the non-zero coefficients detected by the highest order detection means (300); quantization address holding means (500); Compares the effective order of the effective order detection means (400) with the address of the quantization address holding means (500), and sets it to zero if the quantization address is equal to or higher than the effective order. An image data encoding device, comprising: a zero selecting means (600) for selecting; and selecting zero for quantized DCT coefficients of the effective order or later to omit a quantization operation of the DCT coefficients.
(7)請求項6記載の画像データ符号化装置に於いて、 前記最高次数検出手段(300)は、ブロック内の第1
番目の行及び又は列と最終の行及び又は列を走査して最
高次数を求めることを特徴とする画像データ符号化装置
(7) In the image data encoding device according to claim 6, the highest order detecting means (300) is configured to detect the first order in the block.
An image data encoding device characterized in that the highest order is determined by scanning the th row and/or column and the last row and/or column.
(8)請求項6記載画像データ符号化装置に於いて、 前記有効次数検出手段(400)で得られた有効次数を
有効次数情報として符号化された量子化DCT係数に付
加して符号データを形成することを特徴とする画像デー
タ符号化装置。
(8) In the image data encoding device according to claim 6, the effective order obtained by the effective order detecting means (400) is added to the encoded quantized DCT coefficient as effective order information to generate code data. An image data encoding device characterized in that:
(9)原画像をそれぞれが複数の画素からなる複数のブ
ロックに分割して得られる各ブロック毎に、該ブロック
内の前記複数の画素の階調値を2次元離散コサイン変換
して得られたDCT係数を量子化し、該量子化DCT係
数を符号化した符号データの逆変換により画像を復元す
る画像データ復元方法に於いて、 復号された量子化DCT係数を一時的に保持する第1過
程と; 前記第1過程に保持された量子化DCT係数のブロック
の内のn個の行及び又は列を走査し、非零係数の内の最
高次数を検出する第2過程と;前記第2過程で検出した
最高次数の論理和から有効次数を求める第3過程と; 前記第3過程で得られた有効次数を越えるDCT係数に
零を選択する第4過程と; を有し、有効次数以上のDCT係数に零を選択して量子
化DCT係数の逆量子化演算を省略したことを特徴とす
る画像データ復元方法。
(9) For each block obtained by dividing the original image into a plurality of blocks each consisting of a plurality of pixels, the tone values of the plurality of pixels in the block are obtained by two-dimensional discrete cosine transformation. In an image data restoration method that quantizes DCT coefficients and restores an image by inverse transformation of encoded data obtained by encoding the quantized DCT coefficients, a first step of temporarily holding the decoded quantized DCT coefficients; a second step of scanning n rows and/or columns of the block of quantized DCT coefficients retained in the first step to detect the highest order among the non-zero coefficients; a third step of calculating an effective order from the logical sum of the detected highest orders; a fourth step of selecting zero for DCT coefficients exceeding the effective order obtained in the third step; An image data restoring method characterized in that zero is selected for the coefficients and inverse quantization calculation of quantized DCT coefficients is omitted.
(10)請求項9記載の画像データ復元方法に於いて、 前記第2過程は、第1番目の行及び又は列と最終の行及
び又は列を走査して最高次数を求めることを特徴とする
画像データ復元方法。
(10) In the image data restoration method according to claim 9, the second step is characterized in that the first row and/or column and the last row and/or column are scanned to find the highest order. How to restore image data.
(11)原画像をそれぞれが複数の画素からなる複数の
ブロックに分割して得られる各ブロック毎に、該ブロッ
ク内の前記複数の画素の階調値を2次元離散コサイン変
換して得られたDCT係数を量子化し、該量子化DCT
係数を符号化した符号データの逆変換により画像を復元
する画像データ復元方法に於いて、 符号データから復号された量子化DCT係数を一時的に
保持する第1過程と; 符号データから有効次数情報を分離して有効次数を検出
する第2過程と; 量子化DCT係数から逆量子化されたDCT係数として
零を発生する第3過程と; を有し、前記第2過程で得られた有効次数以降の次数の
DCT係数として前記第3過程で発生した零を選択して
量子化DCT係数の逆量子化演算を省略したことを特徴
とする画像データ復元方法。
(11) For each block obtained by dividing the original image into a plurality of blocks each consisting of a plurality of pixels, the tone values of the plurality of pixels in the block are obtained by two-dimensional discrete cosine transformation. Quantize the DCT coefficients and apply the quantized DCT
In an image data restoration method of restoring an image by inverse transformation of coded data in which coefficients are encoded, the first step is to temporarily hold the quantized DCT coefficients decoded from the coded data; and extract effective order information from the coded data. a second step of separating and detecting the effective order; a third step of generating zero as a dequantized DCT coefficient from the quantized DCT coefficient; and the effective order obtained in the second step. An image data restoring method, characterized in that zeros generated in the third step are selected as DCT coefficients of subsequent orders, and inverse quantization of the quantized DCT coefficients is omitted.
(12)原画像をそれぞれが複数の画素からなる複数の
ブロックに分割して得られる各ブロック毎に、該ブロッ
ク内の前記複数の画素の階調値を2次元離散コサイン変
換して得られたDCT係数を量子化し、該量子化DCT
係数を符号化した符号データの逆変換により画像を復元
する画像データ復元装置に於いて、 復号された量子化DCT係数を一時的に保持する量子化
係数保持手段(210)と、 前記量子化係数保持手段(210)に保持された量子化
DCT係数のブロックの内のn個の行及び又は列を走査
し、非零係数の内の最高次数を検出する最高次数検出手
段(310)と; 前記最高次数検出手段(310)で検出した最高次数の
論理和から有効次数を求める有効次数検出手段(410
)と; 量子化DCT係数を逆量子化する順序アドレスを保持す
る逆量子化アドレス保持手段(510)と;前記有効次
数検出手段(410)の最高次数と前記逆量子化アドレ
ス保持手段(510)のアドレスとを比較し、逆量子化
アドレスが有効次数以降であった場合、DCT係数に零
を選択する零係数選択手段(610)と; を具備し、前記有効次数を越えるDCT係数に零を選択
して量子化DCT係数の逆量子化演算を省略したことを
特徴とする画像データ復元装置。
(12) For each block obtained by dividing the original image into a plurality of blocks each consisting of a plurality of pixels, the tone values of the plurality of pixels in the block are obtained by two-dimensional discrete cosine transformation. Quantize the DCT coefficients and apply the quantized DCT
An image data restoration device that restores an image by inverse transformation of encoded coefficient data includes: a quantized coefficient holding means (210) that temporarily holds decoded quantized DCT coefficients; and the quantized coefficients. highest order detection means (310) for scanning n rows and/or columns of the block of quantized DCT coefficients held in the holding means (210) and detecting the highest order among the non-zero coefficients; effective order detection means (410) that calculates an effective order from the logical sum of the highest orders detected by the highest order detection means (310);
); dequantization address holding means (510) for holding an order address for dequantizing the quantized DCT coefficient; and the highest order of the effective order detection means (410) and the dequantization address holding means (510). and zero coefficient selection means (610) for selecting zero for the DCT coefficient when the dequantization address is equal to or higher than the effective order; and zero for the DCT coefficient exceeding the effective order. An image data restoring device characterized in that an inverse quantization operation of quantized DCT coefficients is selectively omitted.
(13)請求項1記載の画像データ復元装置に於いて、 前記最高次数検出手段(310)は、第1番目の行及び
又は列と最終の行及び又は列を走査して有効次数を求め
ることを特徴とする画像データ復元装置。
(13) In the image data restoration device according to claim 1, the highest order detecting means (310) scans the first row and/or column and the last row and/or column to find the effective order. An image data restoration device characterized by:
(14)原画像をそれぞれが複数の画素からなる複数の
ブロックに分割して得られる各ブロック毎に、該ブロッ
ク内の前記複数の画素の階調値を2次元離散コサイン変
換して得られたDCT係数を量子化し、該量子化DCT
係数を符号化した符号データを逆変換して画像を復元す
る画像データ復元装置に於いて、 復号された量子化DCT係数を一時的に保持する量子化
係数保持手段と; 符号データから有効次数情報を分離して有効次数を検出
する有効次数情報分離手段と; 量子化DCT係数を逆量子化する順序アドレスを保持す
る逆量子化アドレス保持手段と; 前記有効係数と逆量子化アドレスとを比較して逆量子化
アドレスが有効次数以上であった場合、DCT係数に零
を選択する零係数選択手段と;を具備し、前記有効次数
以上のDCT係数に零を選択して量子化DCT係数の逆
量子化演算を省略したことを特徴とする画像データ復元
装置。
(14) For each block obtained by dividing the original image into a plurality of blocks each consisting of a plurality of pixels, the tone values of the plurality of pixels in the block are obtained by two-dimensional discrete cosine transformation. Quantize the DCT coefficients and apply the quantized DCT
In an image data restoration device that restores an image by inversely transforming code data obtained by encoding coefficients, the apparatus comprises: a quantized coefficient holding means for temporarily holding decoded quantized DCT coefficients; and effective order information from the coded data. effective order information separating means for separating and detecting an effective order; dequantization address holding means for holding an order address for dequantizing the quantized DCT coefficient; comparing the effective coefficient and the dequantization address; and a zero coefficient selection means for selecting zero for the DCT coefficient when the inverse quantization address is equal to or greater than the effective order; An image data restoration device characterized by omitting quantization operations.
JP2062291A 1990-03-13 1990-03-13 Method and apparatus for picture data coding and decoding Pending JPH03262382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2062291A JPH03262382A (en) 1990-03-13 1990-03-13 Method and apparatus for picture data coding and decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2062291A JPH03262382A (en) 1990-03-13 1990-03-13 Method and apparatus for picture data coding and decoding

Publications (1)

Publication Number Publication Date
JPH03262382A true JPH03262382A (en) 1991-11-22

Family

ID=13195869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2062291A Pending JPH03262382A (en) 1990-03-13 1990-03-13 Method and apparatus for picture data coding and decoding

Country Status (1)

Country Link
JP (1) JPH03262382A (en)

Similar Documents

Publication Publication Date Title
US7079698B2 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
JPH06237386A (en) Picture processing unit
JPH07123269A (en) Corder for picture signal
JP2839943B2 (en) Image data restoration method and apparatus
JPH0487460A (en) Picture processor
JPH04220081A (en) Method and device for picture data decoding
JP2001145106A (en) Device and method for compressing image
JPH04247770A (en) Picture data compression method, picture data compression device and picture data restoring device
JPH0556271A (en) Reverse quantizing method and image data restoring device
JPH03262382A (en) Method and apparatus for picture data coding and decoding
JP3279324B2 (en) Data field image compression method
JP3392949B2 (en) Image compression device and image decompression device
JP3132171B2 (en) Decoded image decoding device
JP2887843B2 (en) Image data restoration method and apparatus
JPH0310486A (en) Moving picture encoder
JPH04215385A (en) Method and device for encoding/decoding image data
JPH04271664A (en) Picture data compressor and picture data decoder
JP3032281B2 (en) Image encoding method and image decoding method
JPH03262381A (en) Method and apparatus for picture data coding
JP3216741B2 (en) Image coding method
JP2001128176A (en) Image compressing and expanding device
JPH04220082A (en) Method and device for picture data decoding
JP2802136B2 (en) Image data encoding method and apparatus
JPH0583562A (en) Image data encoder
JPH03238564A (en) Method and device for encoding and restoring picture data