JPH04220081A - Method and device for picture data decoding - Google Patents

Method and device for picture data decoding

Info

Publication number
JPH04220081A
JPH04220081A JP2404051A JP40405190A JPH04220081A JP H04220081 A JPH04220081 A JP H04220081A JP 2404051 A JP2404051 A JP 2404051A JP 40405190 A JP40405190 A JP 40405190A JP H04220081 A JPH04220081 A JP H04220081A
Authority
JP
Japan
Prior art keywords
block
coefficients
component
dct
zero
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
JP2404051A
Other languages
Japanese (ja)
Inventor
Masahiro Fukuda
福田昌弘
Tsuguo Noda
野田嗣男
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 JP2404051A priority Critical patent/JPH04220081A/en
Publication of JPH04220081A publication Critical patent/JPH04220081A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To quicken the processing of data without increasing the circuit scale by quantizing a transformation coefficient obtained through 2-dimension discrete cosine transformation (ADCT) to a gradation of plural picture elements in each of plural blocks each comprising plural picture elements (NXN) divided from an original picture and decoding a picture from a coding data resulting from coding the obtained quantization coefficient. CONSTITUTION:In the decoding process comprising a variable length decode means 11 for a coding data, an inverse quantization means 12 and an inverse DCT transformation means 13, when the distribution of a significant coefficient obtained from a DCT coefficient of one block subject to inverse quantization is only a DC component and the DC component is zero, the inverse DCT transformation processing is omitted and all zeros are outputted for picture signals of one block.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、画像の圧縮符号化デー
タから画像を復元する画像データ復元方法及び装置に関
し、特に、多値画像を複数の画素からなるブロックに分
割して、ブロック内の画素を直交変換した後に符号化し
た多値画像の直交変換符号化データから画像を復元する
画像データ符号化・復元方法及び装置に関する。
[Field of Industrial Application] The present invention relates to an image data restoration method and apparatus for restoring an image from compressed and encoded image data, and in particular, it divides a multivalued image into blocks each consisting of a plurality of pixels, and The present invention relates to an image data encoding/restoring method and apparatus for restoring an image from orthogonal transform encoded data of a multivalued image encoded after orthogonally transforming pixels.

【0002】数値デ―タに比べて情報量が桁違いに大き
い画像デ―タ、特に、中間調画像やカラ―画像のデ―タ
を蓄積し、あるいは、高速,高品質で伝送するためには
、画素毎の階調値を高能率に符号化する必要がある。 従来、画像デ―タの高能率な圧縮方式として、例えば適
応離散コサイン変換符号化方式がある。適応離散コサイ
ン変換符号化方式(Adaptive Discret
eCosineTransform  以下、略して「
ADCT」と称する)について次に説明する。
[0002] In order to store or transmit high-speed, high-quality image data, especially halftone and color image data, which has an order of magnitude larger amount of information than numerical data. requires highly efficient encoding of tone values for each pixel. Conventionally, as a highly efficient compression method for image data, there is, for example, an adaptive discrete cosine transform encoding method. Adaptive Discrete Cosine Transform Coding
eCosineTransform Hereinafter, abbreviated as “
(referred to as "ADCT") will be explained next.

【0003】ADCTは、画像を8×8画素からなるブ
ロックに分割し、各ブロックの画信号を2次元離散コサ
イン変換(以下、「DCT」と称する)により空間周波
数分布の係数に変換し、視覚に適応した閾値で量子化し
、求めた量子化係数を統計的に求めたハフマン・テ―ブ
ルにより符号化するものである。図5に示すADCTの
基本構成図に従って、符号化動作を詳細に説明する。
[0003] ADCT divides an image into blocks each consisting of 8×8 pixels, and converts the image signal of each block into coefficients of a spatial frequency distribution using two-dimensional discrete cosine transform (hereinafter referred to as "DCT"). Quantization is performed using a threshold value adapted to the quantization coefficient, and the obtained quantization coefficient is encoded using a statistically obtained Huffman table. The encoding operation will be explained in detail according to the basic configuration diagram of ADCT shown in FIG.

【0004】まず画像を図9に示す8×8画素からなる
ブロックに分割し、端子23から2次元DCT変換部2
4に入力する。2次元DCT変換部24では、入力され
た画信号をDCTにより直交変換して、図10に示す空
間周波数分布のDCT係数に変換し、線形量子化部25
に出力する。具体的には、図6に示すように、端子23
より入力された画信号は1次元DCT変換部30で1次
元DCT変換され、転置部31でブロック内の係数の行
と列を入れ換え(転置)、1次元DCT変換部32に出
力される。1次元DCT変換部32では、1次元DCT
変換部30と同様に1次元DCT変換され、転置部33
に出力する。転置部33では、転置部31と同様の転置
処理を行い端子34に出力する。
First, the image is divided into blocks each consisting of 8×8 pixels as shown in FIG.
Enter 4. The two-dimensional DCT transformation section 24 orthogonally transforms the input image signal using DCT to convert it into DCT coefficients having the spatial frequency distribution shown in FIG.
Output to. Specifically, as shown in FIG.
The input image signal is subjected to one-dimensional DCT transformation in a one-dimensional DCT transformation section 30, and the transposition section 31 transposes the rows and columns of coefficients in the block (transposition), and outputs it to a one-dimensional DCT transformation section 32. In the one-dimensional DCT conversion unit 32, one-dimensional DCT
One-dimensional DCT transformation is performed in the same way as in the transformation unit 30, and the transposition unit 33
Output to. The transposing unit 33 performs the same transposing process as the transposing unit 31 and outputs it to the terminal 34.

【0005】このような処理を画像デ―タの全ブロック
について行うことでDCT係数に変換される。再び図5
を参照するに、線形量子化部25は、入力したDCT係
数を、視覚実験により決められた図11に示す閾値で構
成する量子化マトリクス29により線形量子化し、例え
ば図12に示す量子化DCT係数(以下単に「量子化係
数」という)が得られる。図12に示すように量子化D
CT係数は、閾値より小さい値のDCT係数は0となり
、DC成分とわずかのAC成分のみが値をもつ量子化D
CT係数が生成される。
[0005] By performing such processing on all blocks of image data, it is converted into DCT coefficients. Figure 5 again
Referring to , the linear quantization unit 25 linearly quantizes the input DCT coefficients using a quantization matrix 29 configured with the threshold values shown in FIG. (hereinafter simply referred to as "quantization coefficient") is obtained. As shown in Figure 12, quantization D
CT coefficients are quantized D, in which DCT coefficients with values smaller than the threshold value are 0, and only DC components and a few AC components have values.
CT coefficients are generated.

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

【0007】一方、符号デ―タは以下の方法により画像
に復元される。図7にADCTの復元回路の構成図を示
し、図8に2次元逆DCT変換部の構成図を示す。図7
において、端子40から入力された符号デ―タは、可変
長復号部41に入力される。可変長復号部41では、図
5の符号表27のハフマン・テ―ブルと逆のテ―ブルで
構成する復号表42により、入力された符号デ―タをイ
ンデックスとランの固定長デ―タに復号し、逆量子化部
43に出力する。逆量子化部43は、量子化マトリクス
29の各々で乗算することにより、入力された量子化係
数を逆量子化してDCT係数を復元し、2次元逆DCT
変換部44に出力する。
On the other hand, encoded data is restored to an image by the following method. FIG. 7 shows a block diagram of an ADCT restoration circuit, and FIG. 8 shows a block diagram of a two-dimensional inverse DCT transform section. Figure 7
, code data input from the terminal 40 is input to the variable length decoding section 41. In the variable length decoding unit 41, the input code data is converted into fixed length data of index and run using a decoding table 42 which is an inverse table to the Huffman table of the code table 27 in FIG. It is decoded and output to the inverse quantization section 43. The dequantization unit 43 dequantizes the input quantization coefficients by multiplying them by each of the quantization matrices 29 to restore the DCT coefficients, and performs two-dimensional inverse DCT
It is output to the converter 44.

【0008】2次元逆DCT変換部44は、入力された
DCT係数を逆DCT変換により直交変換し、空間周波
数分布の係数を画信号に変換する。具体的には、第8図
に示すように、端子50より入力されたDCT係数は1
次元逆DCT変換部51で1次元逆DCT変換され、転
置部52に出力される。転置部52は、1ブロック内の
係数の行と列を入れ換えて1次元逆DCT変換部53に
出力する。
The two-dimensional inverse DCT transform section 44 orthogonally transforms the input DCT coefficients by inverse DCT transform, and transforms the coefficients of the spatial frequency distribution into an image signal. Specifically, as shown in FIG. 8, the DCT coefficient input from the terminal 50 is 1.
A one-dimensional inverse DCT transform unit 51 performs a one-dimensional inverse DCT transform, and the result is output to a transpose unit 52 . The transposing unit 52 transposes the rows and columns of coefficients within one block and outputs the result to the one-dimensional inverse DCT transform unit 53.

【0009】1次元逆DCT変換部53は、入力された
転置後の係数を再び1次元逆DCT変換し、転置部54
に出力する。転置部54は、転置部52と同様に再度1
ブロック内の係数の行と列を入れ換え、得られた信号を
端子45から出力することにより、画像が復元される。
The one-dimensional inverse DCT transform unit 53 again performs one-dimensional inverse DCT transform on the input transposed coefficients, and the transpose unit 54
Output to. The transposing unit 54 again performs 1 in the same way as the transposing unit 52.
The image is restored by interchanging the rows and columns of the coefficients within the block and outputting the obtained signal from the terminal 45.

【0010】0010

【従来の技術】図14に従来の画像データ復元装置の全
体的なブロック図を示す。図14において、可変長復号
部41、復号表42、逆量子化部43、量子化マトリク
ス29及び2次元逆DCT変換部44は図7と同じであ
り、2次逆DCT変換部44に続いて画像メモリ60が
設けられる。
2. Description of the Related Art FIG. 14 shows an overall block diagram of a conventional image data restoration device. In FIG. 14, the variable length decoding section 41, decoding table 42, inverse quantization section 43, quantization matrix 29, and two-dimensional inverse DCT transformation section 44 are the same as those in FIG. An image memory 60 is provided.

【0011】符号データは端子40より可変長復号部4
1に入力される。DCT係数の走査順序を図13のジグ
ザグ操作順序に従ってX01,X02,・・・X64 
とすると、可変長復号部41では、第1項X01 から
第64項X64 のDCT係数に対応する符号データを
量子化されたDCT係数に復号する。復号された量子化
係数は逆量子化部43に出力され、DCT係数に逆量子
化する。逆量子化されたDCT係数は、2次元逆DCT
変換部44で画像データに変換され、得られた画像デー
タは画像メモリ60に保持され、端子61から出力され
ることにより、1画面分の画像が復元される。
[0011] The code data is sent from the terminal 40 to the variable length decoding unit 4.
1 is input. The scanning order of the DCT coefficients is set as X01, X02,...X64 according to the zigzag operation order in Figure 13.
Then, the variable length decoding unit 41 decodes the code data corresponding to the DCT coefficients of the first term X01 to the 64th term X64 into quantized DCT coefficients. The decoded quantized coefficients are output to the dequantization section 43 and are dequantized into DCT coefficients. The inverse quantized DCT coefficients are converted into two-dimensional inverse DCT
The converted image data is converted into image data by the conversion unit 44, and the obtained image data is held in the image memory 60 and outputted from the terminal 61, thereby restoring an image for one screen.

【0012】0012

【発明が解決しようとする問題点】このような従来の画
像データ復元装置においては、DCT係数を画像に復元
する際に、全てのブロックの画素のDCT係数を逆DC
T変換している。しかし、逆DCT変換は、1ブロック
を8×8画素とした場合、8×8のマトリクス演算であ
り、1画素の変換に8回の乗算と8回の加算、即ち1ブ
ロックの64画素の変換には、512回の乗算と512
回の加算が必要となる。このため、1画面の全てのブロ
ックの画素を逆DCT変換した場合は、画像復元の高速
化が困難であるという問題があった。
[Problems to be Solved by the Invention] In such a conventional image data restoration device, when restoring DCT coefficients to an image, the DCT coefficients of pixels of all blocks are subjected to inverse DC conversion.
It is T-converted. However, inverse DCT transformation is an 8x8 matrix operation when one block is 8x8 pixels, and the conversion of one pixel requires eight multiplications and eight additions, that is, the conversion of 64 pixels of one block. requires 512 multiplications and 512
It is necessary to add times. For this reason, when the pixels of all blocks in one screen are subjected to inverse DCT transformation, there is a problem in that it is difficult to speed up image restoration.

【0013】また、データベース検索など高速検索が必
要な場合は、早い時点で画質は悪いが大まかな画像を復
元し、徐々にその画質を向上させる階層復元方法が用い
られる。このような階層復元において、特に画像の検索
に用いられる第一階層を、図15図に示すようにDC成
分のみで構成することにより符号量を少なくした場合で
も、DC成分のみの逆DCT変換によりDCT係数は第
1項から第64項の全てに逆DCT変換の係数が分布す
るため、画像を高速に復元できないという問題があった
[0013] When a high-speed search such as a database search is required, a hierarchical restoration method is used in which a rough image of poor quality is restored at an early stage and the image quality is gradually improved. In such hierarchical restoration, even if the amount of code is reduced by configuring the first layer used for image search only with DC components as shown in FIG. Since the inverse DCT coefficients are distributed in all of the 1st to 64th terms of the DCT coefficients, there is a problem that images cannot be restored at high speed.

【0014】本発明は、このような従来の問題点に鑑み
てなされたもので、回路規模を増加させることなく高速
化できる画像データ復元方法及び装置を提供することを
目的とする。
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 restoration method and apparatus that can increase the speed without increasing the circuit scale.

【0015】[0015]

【問題点を解決するための手段】図1は本発明の画像デ
ータ復元の原理説明図である。まず本発明は、原画像を
それぞれが複数の画素(N×N)からなる複数のブロッ
クに分割して得られる各ブロック毎に、該ブロック内の
前記複数の画素の階調値を2次元離散コサイン変換して
得られた変換係数を量子化し、得られた量子化係数を符
号化した符号データから画像を復元する画像データ復元
装置を対象とする。
[Means for Solving the Problems] FIG. 1 is an explanatory diagram of the principle of image data restoration according to the present invention. First, in the present invention, for each block obtained by dividing an original image into a plurality of blocks each consisting of a plurality of pixels (N x N), the tone values of the plurality of pixels in the block are divided into two-dimensional discrete The present invention is directed to an image data restoration device that quantizes transform coefficients obtained by cosine transformation and restores an image from encoded data obtained by encoding the obtained quantized coefficients.

【0016】このような画像データ復元装置につき本発
明であっては、入力された符号データから量子化係数を
復号する可変長復号手段11と;可変長復号手段11で
復号された量子化係数をDCT係数に逆量子化する逆量
子化手段12と;逆量子化手段12で得られたDCT係
数を逆DCT変換して画像信号を復元する逆DCT変換
手段13と;逆量子化手段12において逆量子化された
1ブロックのDCT係数から有意係数の個数を判定し、
有意係数が1個でかつ直流成分であることを判定する直
流成分ブロック判定手段14と;直流成分ブロック判定
手段14において、ブロック内の有意係数が直流成分の
みと判定されたブロックに対して、直流成分が零か否か
を検出する直流成分零検出手段15と;を具備し、直流
成分零検出手段15においてブロック内の直流成分が零
と判定された場合には1ブロックの画素信号を全て零と
する無効ブロック信号を出力することを特徴とする。ま
た本発明による画像データの復元方法としては、入力さ
れた符号データから量子化係数を復号する第1過程と、
第1過程で復号された量子化係数をDCT係数に逆量子
化する第2過程と;第2過程で得られたDCT係数を逆
DCT変換して画像信号に復元する第3過程と;第2過
程で逆量子化された1ブロックのDCT係数から有意係
数の分布を検出する第4過程と;第4過程で検出された
有意係数の分布から直流成分のみである時に直流成分の
値が零か否かを検出する第5過程と;第5過程の検出結
果に従って第3過程による逆DCT変換の有無を選択す
る第6過程と;を有することを特徴とする。この第6過
程は、第4過程で有意係数が直流成分のみと判定され、
且つ前記第5過程で直流成分が零であるブロックと検出
された場合には、第3過程の逆DCT変換処理を省略し
、1ブロックの画像信号として全て零を出力するか、無
効ブロック信号を出力する。
In the present invention, such an image data restoring device includes variable length decoding means 11 for decoding quantized coefficients from input coded data; Inverse quantization means 12 that inversely quantizes DCT coefficients; Inverse DCT transformation means 13 that performs inverse DCT transformation on the DCT coefficients obtained by the inverse quantization means 12 to restore an image signal; Determine the number of significant coefficients from the quantized DCT coefficients of one block,
DC component block determining means 14 determines that the significant coefficient is one and is a DC component; DC component block determining means 14 determines that the significant coefficient in the block is only a DC component DC component zero detection means 15 for detecting whether or not the component is zero; When the DC component zero detection means 15 determines that the DC component in a block is zero, all pixel signals of one block are set to zero. It is characterized by outputting an invalid block signal. The method for restoring image data according to the present invention includes a first step of decoding quantized coefficients from input coded data;
a second process of inversely quantizing the quantized coefficients decoded in the first process into DCT coefficients; a third process of inversely DCT-transforming the DCT coefficients obtained in the second process and restoring them to image signals; A fourth step of detecting the distribution of significant coefficients from one block of DCT coefficients dequantized in the process; From the distribution of significant coefficients detected in the fourth step, it is determined whether the value of the DC component is zero when only the DC component exists and a sixth step of selecting whether or not to perform inverse DCT transformation in the third step according to the detection result of the fifth step. In this sixth process, it is determined that the significant coefficient is only a DC component in the fourth process,
In addition, if a block in which the DC component is zero is detected in the fifth step, the inverse DCT transform process in the third step is omitted and all zeros are output as one block image signal, or an invalid block signal is output. Output.

【0017】[0017]

【作用】このような構成を備えた本発明の画像データ復
元方法及び装置によれば、DCT係数が全て零のブロッ
クを逆DCT変換して得られた画像データは全て零であ
ることを利用して、復元された1ブロック分のDCT係
数の中の有意係数がDC成分のみで、かつDC成分の値
が零であるブロックに対しては、逆DCT変換処理をス
キップすることにより、1画面内の復元処理の演算回数
を大幅に低減でき、簡単な回路で平均的な画像復元速度
を向上させることができる。
[Operation] According to the image data restoration method and apparatus of the present invention having such a configuration, it is possible to utilize the fact that image data obtained by performing inverse DCT transformation of a block whose DCT coefficients are all zeros are all zeros. By skipping the inverse DCT transformation process for blocks where the only significant coefficient among the restored DCT coefficients is the DC component and the value of the DC component is zero, The number of calculations required for the restoration process can be significantly reduced, and the average image restoration speed can be improved with a simple circuit.

【0018】[0018]

【実施例】図2は本発明の一実施例を示した実施例構成
図である。尚、第1図の原理説明図の番号に100を加
えた番号で実施例との対応関係を示している。図2にお
いて、111は可変長復号部、112は逆量子化部、1
09は量子化マトリクス、113は2次元逆DCT変換
部、114はDCブロック判定部、115はDC零検出
器、116はアドレス発生部、117は画像メモリ制御
部、118は画像メモリである。また画像メモリ制御部
117は図3に示すように、ブロックアドレス発生カウ
ンタ121、ブロック内の64アドレスを発生する6ビ
ットカウンタ及びOR回路123を備える。
Embodiment FIG. 2 is a block diagram showing an embodiment of the present invention. Incidentally, the correspondence with the embodiments is indicated by the numbers obtained by adding 100 to the numbers in the principle explanatory diagram of FIG. In FIG. 2, 111 is a variable length decoding unit, 112 is an inverse quantization unit, 1
09 is a quantization matrix, 113 is a two-dimensional inverse DCT transform unit, 114 is a DC block determination unit, 115 is a DC zero detector, 116 is an address generation unit, 117 is an image memory control unit, and 118 is an image memory. The image memory control unit 117 also includes a block address generation counter 121, a 6-bit counter that generates 64 addresses in a block, and an OR circuit 123, as shown in FIG.

【0019】次に画像データを復元する処理動作を説明
する。端子110から入力された符号データは可変長復
号部111に入力される。可変長復号部111では、入
力された符号データをインデックスとランの固定長デー
タに復号し、逆量子化部112に出力する。逆量子化部
112は、入力された量子化係数を量子化マトリクス1
09の量子化閾値と乗算してDCT係数を復元し、2次
元逆DCT変換部113に出力すると共に、DCブロッ
ク判定部114に出力する。
Next, a processing operation for restoring image data will be explained. Code data input from terminal 110 is input to variable length decoding section 111 . The variable length decoding unit 111 decodes the input code data into fixed length data of index and run, and outputs it to the dequantization unit 112. The inverse quantization unit 112 converts the input quantization coefficients into a quantization matrix 1
The DCT coefficients are multiplied by a quantization threshold of 0.09 to restore the DCT coefficients, and are output to the two-dimensional inverse DCT transform unit 113 and also to the DC block determination unit 114.

【0020】DCブロック判定部114は入力された1
ブロックのDCT係数の有意係数の個数を判定する。こ
の判定結果に応じて、以下のように処理する。 (1)ブロック内の有意係数がDC成分のみと判定した
場合DCブロック判定部114は、DC成分信号と共に
、DC成分のみのブロックであることを示す信号DCM
をオンにしてDC零検出器115に出力する。DC零検
出器115は、DCM信号がオンの場合、入力されたD
C成分の値を判定する。その結果、DC成分の値が「零
」の場合は、ブロック内のデータが全て零であることを
示すDC零ブロック信号DCZをオンにし、アドレス発
生部116及び画像メモリ制御部117に出力する。
The DC block determination unit 114 receives the input 1
Determine the number of significant coefficients of the DCT coefficients of the block. Depending on this determination result, the following processing is performed. (1) When it is determined that the significant coefficient in the block is only a DC component, the DC block determination unit 114 sends a signal DCM indicating that the block has only a DC component together with a DC component signal.
is turned on and output to the DC zero detector 115. The DC zero detector 115 detects the input D when the DCM signal is on.
Determine the value of the C component. As a result, if the value of the DC component is "zero", a DC zero block signal DCZ indicating that all data in the block is zero is turned on and output to the address generation section 116 and the image memory control section 117.

【0021】画像メモリ制御部117は、DC零ブロッ
ク信号DCZがオンの場合、画像メモリ118へのアク
セスを行なわず、図3に示すように、OR回路86を経
由してDC零ブロック信号DCZによりブロックアドレ
ス発生カウンタ121の値を1だけ増加させるだけで、
このブロックの処理を終了する。一方、DC零検出器1
15の判定結果として値が「非零」の場合、入力された
DCT係数は2次元逆DCT変換部113において画像
データに復元され、画像メモリ制御部117から出力さ
れる書込み信号WRITEに従って、画像メモリ118
に書き込まれると共に、アドレス更新要求信号REQに
よりブロック内アドレスを発生する図3の6ビットカウ
ンタ122を1だけ増加させ、画像メモリ118への書
込みアドレスADRを更新する。ブロック内の全ての画
素の更新が終了すると、キャリー信号CARRYが6ビ
ットカウンタ122から出力され、OR回路123を経
由してブロックアドレス発生カウンタ121の値を1だ
け増加させ、このブロックの処理が終了する。 (2)ブロック内の有意係数がDC成分とAC成分であ
ると判定した場合DCブロック判定部114は、DC零
ブロック信号DCMをオフにする。その結果、入力され
たDCT係数は2次元逆DCT変換部113において画
像データに復元され、画像メモリ制御部117から出力
される書込み信号WRITEに従って画像メモリ118
に書込まれると共に、アドレス更新要求信号REQによ
りブロック内アドレスを発生する図3の6ビットカウン
タ122を1だけ増加させ、画像メモリ118への書込
みアドレスADRを更新する。
When the DC zero block signal DCZ is on, the image memory control unit 117 does not access the image memory 118, but uses the DC zero block signal DCZ via the OR circuit 86 as shown in FIG. By simply increasing the value of the block address generation counter 121 by 1,
Finish processing this block. On the other hand, DC zero detector 1
If the value is "non-zero" as a result of the determination in step 15, the input DCT coefficients are restored to image data in the two-dimensional inverse DCT transform unit 113, and are stored in the image memory according to the write signal WRITE output from the image memory control unit 117. 118
At the same time, the address update request signal REQ causes the 6-bit counter 122 in FIG. When all pixels in the block have been updated, a carry signal CARRY is output from the 6-bit counter 122, which increments the value of the block address generation counter 121 by 1 via the OR circuit 123, and the processing of this block ends. do. (2) If it is determined that the significant coefficients in the block are a DC component and an AC component, the DC block determination unit 114 turns off the DC zero block signal DCM. As a result, the input DCT coefficients are restored to image data in the two-dimensional inverse DCT transform section 113, and the image memory 118 is restored according to the write signal WRITE output from the image memory control section 117.
At the same time, the address update request signal REQ causes the 6-bit counter 122 in FIG.

【0022】ブロック内の全ての画素の更新が終了する
と、キャリー信号CARRYが6ビットカウンタ122
から出力され、OR回路123を経由してブロックアド
レス発生カウンタ121の値を1だけ増加させ、このブ
ロックの処理が終了する。以上の処理を全てのブロック
に対して繰り返すことにより、1画面の画像が復元され
る。
When all pixels in the block have been updated, the carry signal CARRY is sent to the 6-bit counter 122.
The value of the block address generation counter 121 is incremented by 1 via the OR circuit 123, and the processing of this block is completed. By repeating the above processing for all blocks, one screen of images is restored.

【0023】図4は図2の実施例の処理動作をフローチ
ャートで表わしたもので、この処理ステップS1〜S8
から本発明による画像データの復元方法が明らかである
。尚、本発明の実施例では、DC零検出器115でDC
成分が「非零」と判定された場合に、2次元逆DCT変
換部113で画像データを復元しているが、この2次元
逆DCT変換部113による逆変換を行わず、「非零」
と判別されたDC成分の値に基づき一義的にブロック内
の画像データを復元してもよい。
FIG. 4 is a flow chart showing the processing operation of the embodiment shown in FIG.
The method for restoring image data according to the present invention is clear from the following. In the embodiment of the present invention, the DC zero detector 115
When the component is determined to be "non-zero", the image data is restored by the two-dimensional inverse DCT transformer 113, but the two-dimensional inverse DCT transformer 113 does not perform the inverse transform and converts the image data to "non-zero".
The image data within the block may be uniquely restored based on the determined value of the DC component.

【0024】即ち、DCT係数がDC成分のみで且つD
C成分の値が「非零」の場合には、DC成分の値を3ビ
ットシフトした値をブロック内の全画素に割り当てたも
のが、2次逆DCT変換した結果に一致する。そこで、
DC零検出器115でDC成分が「非零」と判定された
場合に、DC成分の値を3ビットシフトした値を画素信
号としてブロック内の64アドレスに共通に割当てる処
理を行い、復元処理を高速化する。
That is, if the DCT coefficient has only a DC component and D
When the value of the C component is "non-zero", a value obtained by shifting the value of the DC component by 3 bits and assigning it to all pixels in the block matches the result of the secondary inverse DCT transformation. Therefore,
When the DC component is determined to be "non-zero" by the DC zero detector 115, a process is performed in which a value obtained by shifting the value of the DC component by 3 bits is commonly assigned to 64 addresses in the block as a pixel signal, and a restoration process is performed. Speed up.

【0025】また上記の実施例では、復元されるブロッ
ク内の有意係数がDC成分のみか否かの判定及びDC成
分の零検出を、逆量子化後にDCブロック判定部114
及びDC零検出器115で行なう場合を示したが、可変
長復号部111または逆量子化部112において行なっ
ても良い。
Furthermore, in the above embodiment, the DC block determination unit 114 performs the determination as to whether or not the significant coefficient in the block to be restored is only the DC component and the zero detection of the DC component after inverse quantization.
Although the case is shown in which the detection is performed by the DC zero detector 115, the variable length decoding section 111 or the inverse quantization section 112 may also perform the processing.

【0026】[0026]

【発明の効果】以上説明したように本発明によれば、ブ
ロック内の有意係数がDC成分のみであり、かつDC成
分が零である場合には、逆DCT変換を行なわずにブロ
ック内の画素信号を全て零とすることで、画像復元の高
速化を実現することができる。
As explained above, according to the present invention, when the significant coefficient in a block is only a DC component and the DC component is zero, pixels in the block are transformed without performing inverse DCT transformation. By setting all the signals to zero, it is possible to realize faster image restoration.

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

【図1】本発明の画像データ復元の原理説明図[Fig. 1] Diagram explaining the principle of image data restoration of the present invention

【図2】
本発明の画像データ復元装置の実施例構成図
[Figure 2]
Embodiment configuration diagram of an image data restoration device of the present invention

【図3】図
2の画像メモリ制御部の実施例構成図
[Fig. 3] Embodiment configuration diagram of the image memory control unit in Fig. 2.

【図4】図2の実
施例によるデータ復元処理を示したフローチャート
FIG. 4 is a flowchart showing data restoration processing according to the embodiment of FIG. 2;

【図5】従来のADCT方式の符号化回路のブロック図
[Figure 5] Block diagram of a conventional ADCT encoding circuit

【図6】図5の2次元DCT変換部のブロック図[Figure 6] Block diagram of the two-dimensional DCT transform unit in Figure 5

【図7
】従来のADCT方式の復元回路のブロック図
[Figure 7
]Block diagram of conventional ADCT method restoration circuit

【図8】
図7の2次元逆DCT変換部のブロック図
[Figure 8]
Block diagram of the two-dimensional inverse DCT transform unit in Figure 7

【図9】1ブ
ロック分の原画像信号の説明図
[Fig. 9] Explanatory diagram of the original image signal for one block

【図10】図9から得ら
れたDCT係数の説明図
[Fig. 10] Explanatory diagram of DCT coefficients obtained from Fig. 9

【図11】DCT係数の量子化
に使用する量子化閾値の説明図
[Fig. 11] Explanatory diagram of quantization threshold used for quantization of DCT coefficients

【図12】DCT係数を量子化閾値で量子化して得られ
量子化係数の説明図
[Figure 12] Explanatory diagram of quantized coefficients obtained by quantizing DCT coefficients using a quantization threshold

【図13】量子化係数の走査順序を示した説明図[Fig. 13] Explanatory diagram showing the scanning order of quantization coefficients

【図1
4】従来の画像データ復元装置のブロック図
[Figure 1
4] Block diagram of conventional image data restoration device

【図15】
階層復元における第1段階のDC成分のみのDCT係数
説明図
[Figure 15]
DCT coefficient explanatory diagram of only the DC component in the first stage in hierarchical restoration

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

11:可変長復号手段 12:逆量子化手段 13:逆DCT変換手段 14:直流成分ブロック判別手段 15:直流成分零検出手段 109:量子化マトリクス 111:可変長復号部 112:逆量子化部 113:2次元逆DCT変換部 114:DCブロック判定部 115:DC零検出器 116:アドレス発生器 117:画像メモリ制御部 118:画像メモリ 121:ブロックアドレス発生カウンタ122:6ビッ
トカウンタ 123:OR回路
11: Variable length decoding means 12: Inverse quantization means 13: Inverse DCT transformation means 14: DC component block discrimination means 15: DC component zero detection means 109: Quantization matrix 111: Variable length decoding section 112: Inverse quantization section 113 : Two-dimensional inverse DCT conversion section 114: DC block determination section 115: DC zero detector 116: Address generator 117: Image memory control section 118: Image memory 121: Block address generation counter 122: 6-bit counter 123: OR circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】原画像をそれぞれが複数の画素(N×N)
からなる複数のブロックに分割して得られる各ブロック
毎に、該ブロック内の前記複数の画素の階調値を2次元
離散コサイン変換して得られた変換係数を量子化し、得
られた量子化係数を符号化した符号データから画像を復
元する画像データ復元方法に於いて、入力された符号デ
ータから量子化係数を復号する第1過程と、前記第1過
程で復号された量子化係数をDCT係数に逆量子化する
第2過程と、前記第2過程で得られたDCT係数を逆D
CT変換して画像信号に復元する第3過程と、前記第2
過程で逆量子化された1ブロックのDCT係数から有意
係数の分布を検出する第4過程と、前記第4過程で検出
された有意係数の分布から直流成分のみである時に直流
成分の値が零か否かを検出する第5過程と、前記第5過
程の検出結果に従って前記第3過程による逆DCT変換
の有無を選択する第6過程と、を有することを特徴とす
る画像データ復元方法。
Claim 1: Each original image has a plurality of pixels (N×N)
For each block obtained by dividing the blocks into a plurality of blocks, the gradation values of the plurality of pixels in the block are subjected to two-dimensional discrete cosine transform, and the transform coefficients obtained are quantized, and the obtained quantization In an image data restoration method for restoring an image from coded data obtained by encoding coefficients, a first step is to decode quantized coefficients from input coded data, and a DCT is performed on the quantized coefficients decoded in the first step. A second process of inverse quantization into coefficients, and an inverse DCT coefficient of the DCT coefficients obtained in the second process.
a third step of performing CT conversion and restoring to an image signal; and the second step of
A fourth step of detecting the distribution of significant coefficients from one block of DCT coefficients dequantized in the process, and a step of detecting the distribution of significant coefficients from the distribution of significant coefficients detected in the fourth step, and detecting that the value of the DC component is zero when there is only a DC component. An image data restoring method comprising: a fifth step of detecting whether or not the above-mentioned is the case; and a sixth step of selecting whether or not to perform the inverse DCT transformation in the third step according to the detection result of the fifth step.
【請求項2】請求項1記載の画像データ復元方法に於い
て、前記第6過程は、前記第4過程で有意係数が直流成
分のみと判定され、且つ前記第5過程で直流成分が零で
あるブロックと検出された場合には、前記第3過程の逆
DCT変換処理を省略し、1ブロックの画像信号として
全て零を出力することを特徴とする画像データ復元方法
2. The image data restoration method according to claim 1, wherein in the sixth step, the significant coefficient is determined to be only a DC component in the fourth step, and the DC component is determined to be zero in the fifth step. An image data restoration method characterized in that when a certain block is detected, the third step of inverse DCT transformation processing is omitted and all zeros are output as an image signal of one block.
【請求項3】請求項1記載の画像データ復元方法に於い
て、前記第6過程は、前記第4過程で有意係数が直流成
分のみと判定され、且つ前記第5過程で直流成分が零で
あるブロックと検出された場合には、前記第3過程の逆
DCT変換を行なわず、前記第5過程より出力される無
効ブロック信号を選択することを特徴とする画像データ
復元方法。
3. The image data restoration method according to claim 1, wherein in the sixth step, the significant coefficient is determined to be only a DC component in the fourth step, and the DC component is determined to be zero in the fifth step. An image data restoring method characterized in that when a certain block is detected, the inverse DCT transform in the third step is not performed and an invalid block signal output from the fifth step is selected.
【請求項4】原画像をそれぞれが複数の画素(N×N)
からなる複数のブロックに分割して得られる各ブロック
毎に、該ブロック内の前記複数の画素の階調値を2次元
離散コサイン変換して得られた変換係数を量子化し、得
られた量子化係数を符号化した符号データから画像を復
元する画像データ復元装置であって、入力された符号デ
ータから量子化係数を復号する可変長復号手段(11)
と、前記可変長復号手段(11)で復号された量子化係
数をDCT係数に逆量子化する逆量子化手段(12)と
、前記逆量子化手段(12)で得られたDCT係数を逆
DCT変換して画像信号を復元する逆DCT変換手段(
13)と、前記逆量子化手段(12)において逆量子化
された1ブロックのDCT係数から有意係数の個数を判
定し、有意係数が1個でかつ直流成分であることを判定
する直流成分ブロック判定手段(14)と、前記直流成
分ブロック判定手段(14)において、ブロック内の有
意係数が直流成分のみと判定されたブロックに対して、
直流成分が零か否かを検出する直流成分零検出手段(1
5)と、を具備し、前記直流成分零検出手段(15)に
おいてブロック内の直流成分が零と判定された場合には
1ブロックの画素信号を全て零とする無効ブロック信号
を出力することを特徴とする画像データ復元装置。
Claim 4: Each original image has a plurality of pixels (N×N)
For each block obtained by dividing the blocks into a plurality of blocks, the gradation values of the plurality of pixels in the block are subjected to two-dimensional discrete cosine transform, and the transform coefficients obtained are quantized, and the obtained quantization An image data restoration device that restores an image from code data obtained by encoding coefficients, and variable length decoding means (11) that decodes quantized coefficients from input code data.
and an inverse quantization means (12) for inversely quantizing the quantized coefficients decoded by the variable length decoding means (11) into DCT coefficients; Inverse DCT transformation means (
13) and a DC component block that determines the number of significant coefficients from one block of DCT coefficients dequantized by the dequantization means (12), and determines that there is one significant coefficient and that it is a DC component. For a block in which the determining means (14) and the DC component block determining means (14) determine that the significant coefficient within the block is only a DC component,
DC component zero detection means (1) for detecting whether the DC component is zero or not
5), and when the DC component zero detection means (15) determines that the DC component in the block is zero, outputting an invalid block signal that makes all the pixel signals of one block zero. Characteristic image data restoration device.
JP2404051A 1990-12-20 1990-12-20 Method and device for picture data decoding Pending JPH04220081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2404051A JPH04220081A (en) 1990-12-20 1990-12-20 Method and device for picture data decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2404051A JPH04220081A (en) 1990-12-20 1990-12-20 Method and device for picture data decoding

Publications (1)

Publication Number Publication Date
JPH04220081A true JPH04220081A (en) 1992-08-11

Family

ID=18513745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2404051A Pending JPH04220081A (en) 1990-12-20 1990-12-20 Method and device for picture data decoding

Country Status (1)

Country Link
JP (1) JPH04220081A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0651353A1 (en) * 1993-10-28 1995-05-03 Nec Corporation Data processing system for picture coding processing
US5964824A (en) * 1996-02-02 1999-10-12 Nec Coporation Two-dimensional IDCT circuit with input adder out output shifter for reducing addition operations during rounding-up
WO2005062622A1 (en) * 2003-12-15 2005-07-07 Sony Corporation Image decoding device, image decoding method, and image decoding program
JP2007521740A (en) * 2003-06-27 2007-08-02 タンドベルク・テレコム・エイ・エス How to find zeros in the transformation domain early
US7813569B2 (en) 2002-11-29 2010-10-12 Samsung Electronics Co., Ltd. MPEG video decoding method and MPEG video decoder using results from analysis of motion-vector data and DCT coefficients
US8040951B2 (en) 2004-09-30 2011-10-18 Kabushiki Kaisha Toshiba Information processing apparatus and program for use in the same

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02224489A (en) * 1989-02-27 1990-09-06 Hitachi Ltd Encoding and decoding device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02224489A (en) * 1989-02-27 1990-09-06 Hitachi Ltd Encoding and decoding device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0651353A1 (en) * 1993-10-28 1995-05-03 Nec Corporation Data processing system for picture coding processing
US5555511A (en) * 1993-10-28 1996-09-10 Nec Corporation Data processing system for picture coding processing
US5964824A (en) * 1996-02-02 1999-10-12 Nec Coporation Two-dimensional IDCT circuit with input adder out output shifter for reducing addition operations during rounding-up
US7813569B2 (en) 2002-11-29 2010-10-12 Samsung Electronics Co., Ltd. MPEG video decoding method and MPEG video decoder using results from analysis of motion-vector data and DCT coefficients
US8326060B2 (en) 2002-11-29 2012-12-04 Samsung Electronics Co., Ltd. Video decoding method and video decoder based on motion-vector data and transform coefficients data
JP2007521740A (en) * 2003-06-27 2007-08-02 タンドベルク・テレコム・エイ・エス How to find zeros in the transformation domain early
WO2005062622A1 (en) * 2003-12-15 2005-07-07 Sony Corporation Image decoding device, image decoding method, and image decoding program
US8249147B2 (en) 2003-12-15 2012-08-21 Sony Corporation Image decoding device, image decoding method, and image decoding program
US8040951B2 (en) 2004-09-30 2011-10-18 Kabushiki Kaisha Toshiba Information processing apparatus and program for use in the same

Similar Documents

Publication Publication Date Title
JP3776920B2 (en) Image coding method
KR20030060172A (en) Optimal scanning method for transform coefficients in image and video coding/decoding
JPWO2003079692A1 (en) Hierarchical encoding apparatus and decoding apparatus
KR940009117B1 (en) Image data restoration method and device
JPH04229382A (en) Digital image data resolution exchange device
JPH04247770A (en) Picture data compression method, picture data compression device and picture data restoring device
JP2887843B2 (en) Image data restoration method and apparatus
JP2887842B2 (en) Image data restoration method and apparatus
JPH04220082A (en) Method and device for picture data decoding
JPH04215385A (en) Method and device for encoding/decoding image data
JP3230336B2 (en) Recompression device and recompression system
JP3392949B2 (en) Image compression device and image decompression device
JP2820807B2 (en) Image data encoding method
JP3176421B2 (en) Image data restoration device
JP3337699B2 (en) Image processing apparatus and method
JP2856268B2 (en) Image data restoration device
JP3216741B2 (en) Image coding method
JPH03238564A (en) Method and device for encoding and restoring picture data
KR0134359B1 (en) Coding and decoding system of variable scan region
JPH0449778A (en) Method of encoding picture
JPH03262381A (en) Method and apparatus for picture data coding
JPH0563992A (en) Image data encoder and image data restoring device
JPH06268988A (en) Quantization characteristic control method for picture signal and picture signal compression-encoding device
JPH03238563A (en) Method and device for encoding and restoring picture data
JPH04255169A (en) Layer decoding system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19960924