JPH05199416A - Method and device for picture processing - Google Patents

Method and device for picture processing

Info

Publication number
JPH05199416A
JPH05199416A JP4008152A JP815292A JPH05199416A JP H05199416 A JPH05199416 A JP H05199416A JP 4008152 A JP4008152 A JP 4008152A JP 815292 A JP815292 A JP 815292A JP H05199416 A JPH05199416 A JP H05199416A
Authority
JP
Japan
Prior art keywords
stage
segment
encoding
data
writing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4008152A
Other languages
Japanese (ja)
Other versions
JP3304998B2 (en
Inventor
Kazuhiro Saito
和浩 斎藤
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP00815292A priority Critical patent/JP3304998B2/en
Priority to US07/972,433 priority patent/US5838834A/en
Publication of JPH05199416A publication Critical patent/JPH05199416A/en
Application granted granted Critical
Publication of JP3304998B2 publication Critical patent/JP3304998B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Storing Facsimile Image Data (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To efficiently compress and store picture data by encoding input data by stages corresponding to frequencies and storing the correspondence between respective stages and storage areas. CONSTITUTION:A color conversion part 1 obtains Y, U, and V of picture data of RGB, and a subsampling part 2 subsamples Y, U, and V. A DCT part 3 obtains DCT coefficients by frequency conversion. A quantizing part 4 uses a table 5 to quantize DCT coefficients, and quantized coefficients are one- dimensionally transposed from the lower frequency component to the higher frequency component. In this progressive encoding of quantized coefficients, each component is divided into four stages and is encoded to Huffman codes by encoding parts 6 to 9. Data in each stage is written in a compression memory 13. A segment in the memory 13 is selected by a selector 11, and its information is held in a table 12. Thus, encoding to Huffman codes is performed by one scan, and the scan time is shortened and the large-capacity memory is reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、画像データを圧縮処理
する画像処理方法及び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus for compressing image data.

【0002】[0002]

【従来の技術】近年、多値画像の圧縮技術として、自然
画像を主な対象としたADCT(適応的離散余弦変換)
圧縮方式が提案されようとしている。この圧縮方式は、
3原色(RGB)信号をY,U,Vの3成分に変換し、
輝度であるY信号は、そのままの解像度で、色度成分の
U,V信号は場合によってはサブサンプリングにより、
解像度を落として圧縮する手順を用いている。圧縮のス
テップ1では、各成分に対して8×8ブロック毎にDC
Tされ、8×8の周波数空間に変換され、DCT係数が
得られる。ステップ2では、輝度成分(Y)と色度成分
(U,V)との2種類の量子化テーブルが用意され、D
CT係数は各成分ごとに8×8の量子化テーブルの各要
素に量子化ファクタを掛けた8×8量子化値で線形量子
化され(除算され)、量子化係数が得られる。ステップ
3では、この量子化係数を可変長符号化方式であるハフ
マン符号化方式を用いて、ハフマン符号化する。
2. Description of the Related Art In recent years, ADCT (Adaptive Discrete Cosine Transform) has been used mainly for natural images as a compression technique for multivalued images.
A compression method is about to be proposed. This compression method is
Converting the three primary color (RGB) signals into three components of Y, U, V,
The Y signal, which is the luminance, has the same resolution as it is, and the U and V signals of the chromaticity component are sometimes sub-sampled,
It uses a procedure that reduces the resolution and compresses. In the compression step 1, DC is calculated for each 8 × 8 block for each component.
Then, it is transformed into an 8 × 8 frequency space and DCT coefficients are obtained. In step 2, two kinds of quantization tables of the luminance component (Y) and the chromaticity component (U, V) are prepared, and D
The CT coefficient is linearly quantized (divided) by an 8 × 8 quantized value obtained by multiplying each element of the 8 × 8 quantization table by a quantization factor for each component, and a quantized coefficient is obtained. In step 3, this quantized coefficient is Huffman-encoded using the Huffman encoding method which is a variable length encoding method.

【0003】ハフマン符号化には、シーケンシャル符号
化とプログレッシブ符号化の2つの方式がある。シーケ
ンシャル符号化は、一つのブロックに対して量子化され
た64個の量子化係数を全て符号化し、この後に次のブ
ロックの量子化係数を符号化する方式である。この方式
では、一つの画像の全ての色成分あるいは一部の色成分
が一つのスキャンで符号化され、この符号化後の手順で
得られる復号画像は、副走査方向に上から順番に表示さ
れる。
There are two types of Huffman coding: sequential coding and progressive coding. Sequential coding is a method in which all 64 quantized coefficients quantized for one block are coded, and then the quantized coefficients of the next block are coded. In this method, all the color components or a part of the color components of one image are encoded by one scan, and the decoded images obtained by the procedure after this encoding are sequentially displayed from the top in the sub-scanning direction. It

【0004】また、プログレッシブ符号化は、一つのブ
ロックに対して量子化された64個の量子化係数を複数
の段階に分け、各段階ごとにスキャンして、符号化を行
う方式である。従って、量子化係数を例えば5段階に分
けらた場合には、5回のスキャンが必要となる。この復
号画像は、解像度及び階調性の低いおおまかな復号画像
が上から下まで表示された後に、順次解像度及び階調性
が向上されるように段階的に表示されるものである。
Further, the progressive coding is a method in which 64 quantized coefficients quantized for one block are divided into a plurality of stages, and scanning is performed for each stage to perform coding. Therefore, if the quantized coefficient is divided into, for example, 5 stages, 5 scans are required. This decoded image is displayed in a stepwise manner so that the resolution and gradation are successively improved after a rough decoded image having low resolution and gradation is displayed from top to bottom.

【0005】[0005]

【発明が解決しようしている課題】しかしながら、上記
従来例による圧縮方式で圧縮を行った場合、ハフマン符
号化方式は、可変長符号化方式であるため、符号化が終
了するまで圧縮データ量が判らず、目標の圧縮データ量
に制御することができないという欠点があった。
However, when compression is performed by the compression method according to the above-mentioned conventional example, the Huffman coding method is a variable length coding method, and therefore, the amount of compressed data remains until the coding is completed. There is a drawback that the target amount of compressed data cannot be controlled without knowing it.

【0006】また、ハフマン符号化方式において、プロ
グレッシブ符号化方式を用いた場合、スキャンを複数回
行うため、時間がかかるということや、復号時におい
て、各スキャンの画像データを保存する必要があるた
め、1画像分の大容量メモリを必要とする欠点があっ
た。
Further, in the Huffman coding method, when the progressive coding method is used, the scanning is performed a plurality of times, so that it takes time and it is necessary to save the image data of each scan at the time of decoding. However, there is a drawback that a large capacity memory for one image is required.

【0007】本発明は、上述した従来例の欠点に鑑みて
なされたものであり、その目的とするところは、効率良
く画像データの圧縮及び記憶を行うことができる画像処
理装置及び方法を提供する点にある。
The present invention has been made in view of the above-mentioned drawbacks of the prior art, and an object thereof is to provide an image processing apparatus and method capable of efficiently compressing and storing image data. There is a point.

【0008】[0008]

【課題を解決するための手段】上述した課題を解決し、
目的を達成するため、本発明に係る画像処理方法は、入
力された周波数変換データを周波数に応じた段階別に符
号化し、複数の記憶領域に符号化された各段階の周波数
変換データを独立して記憶し、前記各段階と前記記憶領
域との対応を記憶することを特徴とする。また好ましく
は、本発明に係る画像処理装置は、複数の記憶領域を有
する記憶手段と、入力された周波数変換データを周波数
に応じた量子化段階別に符号化する符号化手段と、前記
量子化段階別に前記複数の記憶領域に前記符号化手段で
得た符号化データを書き込む書き込み手段とを有し、前
記書き込み手段が前記複数の記憶領域の内、第1の記憶
領域に対する前記量子化段階の第1の段階を書き込み中
に、第2の記憶領域に対する前記量子化段階の第2の段
階の書き込みが終了している場合、更に前記複数の記憶
領域の空き記憶領域を前記第2の段階の残りの符号化デ
ータを書き込むことを特徴とする。
[Means for Solving the Problems]
In order to achieve the object, the image processing method according to the present invention encodes the input frequency conversion data in stages according to frequency, and independently encodes the frequency conversion data in each stage encoded in a plurality of storage areas. And storing the correspondence between each of the stages and the storage area. Further preferably, the image processing apparatus according to the present invention is a storage means having a plurality of storage areas, an encoding means for encoding the input frequency conversion data for each quantization step according to a frequency, and the quantization step. Writing means for writing the coded data obtained by the encoding means to the plurality of storage areas, wherein the writing means includes a first storage area of the first storage area of the plurality of storage areas. If the writing of the second step of the quantization step to the second storage area is completed during the writing of the first step, the free storage areas of the plurality of storage areas are further left over in the second step. It is characterized by writing the encoded data of.

【0009】[0009]

【作用】以上によれば、入力された周波数変換データを
周波数に応じた段階別に符号化し、複数の記憶領域に符
号化された各段階の周波数変換データを独立して記憶
し、前記各段階と前記記憶領域との対応を記憶すれば、
効率良く画像データの圧縮及び記憶を行える。
According to the above, the input frequency conversion data is encoded in stages according to the frequency, and the encoded frequency conversion data of each stage is independently stored in a plurality of storage areas. If you store the correspondence with the storage area,
Image data can be compressed and stored efficiently.

【0010】[0010]

【実施例】以下に、添付図面を参照して、本発明に係る
好適な実施例を詳細に説明する。 <第1の実施例>図1は本発明の第1の実施例による画
像処理装置の構成を示すブロツク図である。同図におい
て、1は色変換部、2はサンプリング部、3はDCT
(離散余弦変換)部、4は量子化部、5は量子化テーブ
ル、6〜9はハフマン符号部、10はハフマンテーブ
ル、11はセグメントセレクタ、12はセグメント情報
テーブル、13は圧縮メモリ、14は本装置全体の制御
を行うCPU、15はCPU14が動作するための図6
のフローチヤートに従うプログラム等のデータを格納し
たROM、16は各種プログラムのワークエリアとして
用いるRAMをそれぞれ示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described in detail below with reference to the accompanying drawings. <First Embodiment> FIG. 1 is a block diagram showing the arrangement of an image processing apparatus according to the first embodiment of the present invention. In the figure, 1 is a color conversion unit, 2 is a sampling unit, and 3 is a DCT.
(Discrete cosine transform) unit, 4 quantization unit, 5 quantization table, 6 to 9 Huffman coding unit, 10 Huffman table, 11 segment selector, 12 segment information table, 13 compression memory, 14 A CPU for controlling the entire apparatus, and 15 for operating the CPU 14 shown in FIG.
The ROM that stores data such as a program in accordance with the flow chart of the above, and 16 are RAMs used as work areas of various programs.

【0011】以上の構成による動作を説明する。The operation of the above configuration will be described.

【0012】図2は第1の実施例による量子化係数のジ
グザグスキャンを説明する図、図3は、第1の実施例に
おいて、プログレッシブ符号化の段階構成と量子化係数
とを説明する図、図4は第1の実施例による圧縮メモリ
の内容を説明する図、そして、図5は第1の実施例によ
るステージ別のセグメント情報テーブルを説明する図で
ある。
FIG. 2 is a diagram for explaining the zigzag scan of the quantized coefficient according to the first embodiment, and FIG. 3 is a diagram for explaining the progressive coding step structure and the quantized coefficient in the first embodiment. FIG. 4 is a diagram for explaining the contents of the compression memory according to the first embodiment, and FIG. 5 is a diagram for explaining the segment information table for each stage according to the first embodiment.

【0013】色変換部1では、RGBの画像データを下
式(1)で示される3×3線形行列変換によってY,
U,Vが求められる。すなわち、式(1)は、
The color conversion unit 1 converts the RGB image data into Y, Y by 3 × 3 linear matrix conversion expressed by the following equation (1).
U and V are required. That is, the formula (1) is

【0014】[0014]

【数1】 となる。[Equation 1] Becomes

【0015】Yは輝度成分を示し、U,Vは色度成分を
示している。サブサンプリング部2では、人間の目の感
度特性が色度成分U,Vより輝度成分Yの方が敏感であ
るということを利用して、Y,U,Vのサブサンプリン
グが行われる。この場合、Y:U:V=4:1:1、あ
るいは、4:2:2の比率による変換及びサンプリング
が行われる。次に、DCT部3では、Y,U,V各々に
対し、8×8ブロックごとにDCTされ、8×8ブロッ
クごとに周波数変換が行われる。以下、この変換された
係数をDCT係数と呼ぶ。
Y indicates a luminance component, and U and V indicate chromaticity components. The sub-sampling unit 2 performs sub-sampling of Y, U, and V by utilizing the fact that the sensitivity characteristics of the human eye are more sensitive to the luminance component Y than to the chromaticity components U and V. In this case, conversion and sampling are performed at a ratio of Y: U: V = 4: 1: 1 or 4: 2: 2. Next, the DCT unit 3 performs DCT for each 8 × 8 block for each of Y, U, and V, and frequency conversion is performed for each 8 × 8 block. Hereinafter, this transformed coefficient will be referred to as a DCT coefficient.

【0016】量子化部4において、上記DCT係数は、
8×8ブロックごとに量子化テーブル5を用いて量子化
される。以下、この量子化された係数を量子化係数と呼
ぶ。8×8の2次元の量子化係数は、図2に示されてい
るようにジグザグスキャンにより、低周波成分から高周
波成分へと1次元に並べ変えられる。プログレッシブ符
号化では、この1次元に並べられた量子化係数を、図5
で示されるように、低周波成分から高周波成分までを数
段階(ステージ(1)〜ステージ(4))に分割し、ス
テージ(1)はハフマン符号部6にて、ステージ(2)
はハフマン符号部7にて、ステージ(3)はハフマン符
号部8にて、そして、ステージ(4)はハフマン符号部
9にて、ハフマン符号化される。ただし、上記ハフマン
符号部6〜9は、全て同じハフマンテーブル10を用い
て、ハフマン符号化を行う。以下、ハフマン符号化して
得られたデータを符号化データと呼ぶ。
In the quantizer 4, the DCT coefficient is
Each 8 × 8 block is quantized using the quantization table 5. Hereinafter, this quantized coefficient is referred to as a quantized coefficient. The 8 × 8 two-dimensional quantized coefficients are rearranged one-dimensionally from low frequency components to high frequency components by zigzag scanning as shown in FIG. In the progressive coding, the quantized coefficients arranged in one dimension are shown in FIG.
, The low-frequency component to the high-frequency component is divided into several stages (stage (1) to stage (4)), and the stage (1) is processed by the Huffman encoder 6 in the stage (2).
Is Huffman coded by the Huffman code unit 7, stage (3) by the Huffman code unit 8 and stage (4) by the Huffman code unit 9. However, the Huffman coding units 6 to 9 all perform Huffman coding using the same Huffman table 10. Hereinafter, the data obtained by the Huffman coding will be referred to as coded data.

【0017】圧縮メモリ13は、図4で示されているよ
うに、セグメント(例えば、1セグメント=100k
B)がSー1〜S−Nまで区切られた構成を有してい
る。また、セグメント情報テーブル12は、図5に示さ
れるように、構成になっている。セグメント情報テーブ
ル12の1〜4行目は、それぞれステージ(1)〜
(4)に関する情報である。1列目は各ステージの符号
化データが書き込まれる圧縮メモリ13の選択されたセ
グメント番号(S−1〜S−N)を示し、左から右に進
むに従い、画像の先頭から終端に進むことを示す。ま
た、ENDは、各ステージに於ける符号化データが終了
したことを示す。
The compression memory 13, as shown in FIG. 4, is divided into segments (for example, 1 segment = 100k).
B) has a configuration in which S-1 to SN are separated. Further, the segment information table 12 has a structure as shown in FIG. The first to fourth rows of the segment information table 12 are respectively stages (1) to
This is information regarding (4). The first column shows the selected segment number (S-1 to SN) of the compression memory 13 to which the encoded data of each stage is written. As the process progresses from left to right, the sequence proceeds from the beginning to the end of the image. Show. Further, END indicates that the coded data in each stage is completed.

【0018】次に、ステージごとに符号化データを圧縮
メモリ13に書き込む場合の手順について説明する。
Next, the procedure for writing the encoded data in the compression memory 13 for each stage will be described.

【0019】図6は第1の実施例による圧縮処理を説明
するフローチヤートである。
FIG. 6 is a flow chart for explaining the compression processing according to the first embodiment.

【0020】本実施例では、可変長符号化方式であるハ
フマン符号化方式を用いているので、各ステージにおけ
る符号量も異なってくる。この符号量は、原画像データ
によって左右されるが、原画像として、自然画像を用い
た場合、一般的には、低周波成分にパワーが集中する。
従って、ステージ(1)〜(4)を比較した場合、ステ
ージ(1)の方が、ステージ(4)より出力される符号
量が多くなる。
In this embodiment, since the Huffman coding system which is a variable length coding system is used, the code amount in each stage also differs. The code amount depends on the original image data, but when a natural image is used as the original image, the power is generally concentrated on the low frequency component.
Therefore, when comparing the stages (1) to (4), the code amount output from the stage (4) is larger in the stage (1).

【0021】以上を踏まえて、以下に、図5を用いて図
6のフローチヤートを説明する。
Based on the above, the flow chart of FIG. 6 will be described below with reference to FIG.

【0022】図5の2列目(N0.2の欄)に示される
様に、各ステージで出力された符号化データは、それぞ
れセグメントS−1、S−2、S−3、S−4に書き込
まれる。そして、ステージ(1)は、低周波成分のデー
タが符号化されるので、他のステージに比べ、早くセグ
メントS−1が満たされるので、セグメントS−5に書
き込みが始まる。次に、ステージ(2),(3)におい
ては、各セグメントS−2、S−3への書き込みが満た
されたので、各セグメントS−5、S−6への書き込み
が開始される(ステツプS101)。
As shown in the second column (column N0.2) of FIG. 5, the encoded data output at each stage is segment S-1, S-2, S-3, S-4, respectively. Written in. Then, in the stage (1), since the data of the low frequency component is encoded, the segment S-1 is filled earlier than the other stages, so that the writing is started in the segment S-5. Next, in the stages (2) and (3), since writing to the segments S-2 and S-3 is satisfied, writing to the segments S-5 and S-6 is started (steps). S101).

【0023】そして、次の段階では、ステージ(4)が
セグメントS−4への書き込みを終了する前に、ステー
ジ(1)がセグメントS−5への書き込みを終了してし
まったために、空いているセグメントS−8はステージ
(4)に割り当てられず、ステージ(1)に割り当てら
れる。これは、ステージ(1)で発生する符号量が、ス
テージ(4)より多いために起こる。以下同様に、各ス
テージにおいて、書き込んでいるセグメントが満たされ
たならば、空いているセグメントを選択して、そこに符
号化データを書き込むようにする(ステツプS102,
ステツプS103,ステツプS104)。
At the next stage, since the stage (1) has finished writing to the segment S-5 before the stage (4) has finished writing to the segment S-4, there is no space. The existing segment S-8 is not assigned to the stage (4) but is assigned to the stage (1). This occurs because the code amount generated in the stage (1) is larger than that in the stage (4). Similarly, at each stage, if the segment to be written is satisfied, the vacant segment is selected and the encoded data is written there (step S102,
Step S103, Step S104).

【0024】本実施例では、原画像を幾つかのステージ
に分けて符号化する方法を用いている。そこで、各ステ
ージの符号化データ量が目標の圧縮(符号)メモリ量よ
り小さい場合には、無効ステージは現れないが、符号化
している途中で、目標の圧縮(符号)メモリ量に達した
場合には、指示したステージを無効とし(図5ではステ
ージ(4))、そのステージ(4)に割り当てられたセ
グメントS−4、−11、S−15…に他のステージ
(1)〜(3)の符号化データを書き込む。この説明部
分に該当するのが図5の8〜11列目(No.8〜N
o.11)である。8列目のステージ(2)において、
セグメントS−Nが割り当てられたので、圧縮メモリ1
3にすべて割り当てられたことになり、圧縮メモリ13
の不足分を補うために、ステージ(4)を無効
(“0”)とし、9列目で示されている様に、ステージ
(4)で用いられていたセグメントS−4をステージ
(1)に用い、セグメントS−11をステージ(2)に
用いる。ステージ(2)は、セグメントS−11で符号
化が終了したので、以降、図5にはENDマークが付
く。またステージ(1)では、10列目のように、ステ
ージ(4)で用いられていたセグメント15が割り当て
られ、以後符号化が終了したので、ENDマークが付け
られる(ステツプS105)。
In the present embodiment, the method of dividing the original image into several stages and encoding is used. Therefore, when the encoded data amount of each stage is smaller than the target compression (code) memory amount, the invalid stage does not appear, but when the target compression (code) memory amount is reached during encoding. , The designated stage is invalidated (stage (4) in FIG. 5), and the segments S-4, -11, S-15, ... Assigned to the stage (4) have other stages (1) to (3). ) Coded data is written. The description corresponds to the 8th to 11th columns (No. 8 to N in FIG. 5).
o. 11). On stage (2) in the 8th row,
Since the segment SN has been allocated, the compression memory 1
Since all 3 are allocated, compressed memory 13
In order to make up for the shortage of the segment (4), the stage (4) is invalidated (“0”), and the segment S-4 used in the stage (4) is replaced with the stage (1) as shown in the ninth column. And segment S-11 is used for stage (2). Since the encoding of the stage (2) is completed in the segment S-11, the END mark is added to FIG. 5 thereafter. Further, in the stage (1), the segment 15 used in the stage (4) is allocated as in the tenth column, and since the encoding is completed thereafter, the END mark is added (step S105).

【0025】これに対し、圧縮メモリ13に格納された
上記圧縮されたデータの伸張に関し、伸張の際には、有
効のステージ(1)〜(3)のみを用いて、画像データ
を復号する。ハフマン符号部6〜9には4つのハフマン
復号部、ハフマンテーブル10には同テーブルの符号化
に対する復号化のためのハフマン復号テーブル、量子化
部4には逆量子化部、量子化テーブル5には逆量子化テ
ーブル、そして、DCT部3には逆DCT部が、それぞ
れ対応するように設ければ良い。
On the other hand, regarding decompression of the compressed data stored in the compression memory 13, at the time of decompression, the image data is decoded using only the valid stages (1) to (3). The Huffman coding units 6 to 9 have four Huffman decoding units, the Huffman table 10 has a Huffman decoding table for decoding the tables, and the quantizing unit 4 has an inverse quantizing unit and a quantizing table 5. The inverse quantization table and the inverse DCT unit in the DCT unit 3 may be provided so as to correspond to each other.

【0026】この場合、セグメントセレクタ11は、セ
グメント情報テーブル12に従って、圧縮メモリ13か
ら、各々ステージの符号化データを上記4つのハフマン
復号部に転送する。この4つのハフマン復号部では、各
々のステージの符号化データを上記ハフマン復号テーブ
ルを用いて復号し、上記逆量子化部に転送する処理が行
われる。この逆量子化部では、有効な全てのステージの
復号データから、8×8ブロックごとの逆量子化が行わ
れる。上記逆DCT部では、上記逆量子化部のデータを
8×8ブロックごとに逆DCT変換する処理が行われ
る。伸張の場合のサブサンプリング部では、サブサンプ
リング比が 4:1:1のときは、Y1,Y2,Y3,
Y4,U1,V1…をY1,Y2,Y3,Y4,U1,
U1,U1,U1,V1,V1,V1,V1…とし、
4:2:2のときは、Y1,Y2,U1,V1…をY
1,Y2,U1,U1,V1,V1…となるように変換
が行われる。また伸張の場合の色変換部では、前記式
(1)の逆変換を行う処理が行われる。
In this case, the segment selector 11 transfers the encoded data of each stage from the compression memory 13 to the above four Huffman decoding units according to the segment information table 12. The four Huffman decoding units perform a process of decoding the encoded data of each stage using the Huffman decoding table and transferring the decoded data to the dequantization unit. In this dequantization unit, dequantization is performed for each 8 × 8 block from the decoded data of all valid stages. The inverse DCT unit performs an inverse DCT conversion on the data of the inverse quantization unit for each 8 × 8 block. When the sub-sampling ratio is 4: 1: 1, the sub-sampling unit in the case of expansion Y1, Y2, Y3,
Y4, U1, V1 ... to Y1, Y2, Y3, Y4, U1,
U1, U1, U1, V1, V1, V1, V1 ...
When 4: 2: 2, Y1, Y2, U1, V1 ...
The conversion is performed so as to be 1, Y2, U1, U1, V1, V1 ... Further, in the case of decompression, the color conversion unit performs the process of performing the inverse conversion of the equation (1).

【0027】このようにして、圧縮されたデータの伸張
を行えば良い。
In this way, the compressed data may be expanded.

【0028】以上のように、複数のセグメントで区切ら
れた圧縮メモリ13とそのセグメントを選択するセグメ
ントセレクタ11及び、その情報を保存するセグメント
情報テーブル12を用いて、1回のスキャンで、プログ
レッシブ符号化(ハフマン符号化)を行うことにより、
スキャン回数の減少によるスキャン時間の短縮、1画像
分の大容量メモリの削減、及び固定長圧縮を実現でき
る。 <第2の実施例>次に、第2の実施例について説明す
る。
As described above, using the compression memory 13 divided into a plurality of segments, the segment selector 11 for selecting the segment, and the segment information table 12 for storing the information, the progressive code is obtained by one scan. (Huffman coding)
It is possible to shorten the scan time by reducing the number of scans, reduce the large-capacity memory for one image, and achieve fixed-length compression. <Second Embodiment> Next, a second embodiment will be described.

【0029】図7は本発明の第2の実施例による画像処
理装置の構成を示すブロツク図である。同図において、
21は色変換部、22はサンプリング部、23はDCT
部、24は量子化部、25は量子化テーブル、34はバ
ンドハフマン符号部、30はハフマンテーブル、31は
セグメントセレクタ、32はセグメント情報テーブル、
33は圧縮メモリ、36は本装置全体の制御を行うCP
U、37はCPU36が動作するためのフローチヤート
に従う図8のプログラム等のデータを格納したROM、
38は各種プログラムのワークエリアとして用いるRA
Mをそれぞれ示している。尚、図1と同様の名称を有す
る回路は、図1と同様の機能を持つている。
FIG. 7 is a block diagram showing the structure of the image processing apparatus according to the second embodiment of the present invention. In the figure,
21 is a color conversion unit, 22 is a sampling unit, and 23 is a DCT
Section, 24 is a quantization section, 25 is a quantization table, 34 is a band Huffman coding section, 30 is a Huffman table, 31 is a segment selector, 32 is a segment information table,
33 is a compression memory, and 36 is a CP that controls the entire device.
U and 37 are ROMs storing data such as the program of FIG. 8 according to the flow chart for the CPU 36 to operate,
38 is an RA used as a work area for various programs
M is shown respectively. A circuit having the same name as in FIG. 1 has the same function as in FIG.

【0030】図7では、図1において、複数個のハフマ
ン符号化部を1つのバンドハフマン符号部34で実現す
ることにより、図1のプログレッシブ符号化の回路構成
を簡単にすることを目的とする。
In FIG. 7, a plurality of Huffman coding units in FIG. 1 are realized by one band Huffman coding unit 34, and an object thereof is to simplify the circuit structure of the progressive coding in FIG. ..

【0031】次に、ステージごとに符号化データを圧縮
メモリ33に書き込む場合の手順について説明する。
Next, the procedure for writing the encoded data in the compression memory 33 for each stage will be described.

【0032】量子化部24にて量子化された量子化係数
が、ジグザグスキャンにより低周波成分から順にバンド
ハフマン符号部34に入力される。バンドハフマン符号
部34では、低周波成分からハフマン符号化していく。
第1の実施例と同様にステージ(1)の領域の符号化が
終了したならば、セグメントセレクタ31によりセグメ
ントS−1が選択される。ハフマン符号化によって得ら
れた符号化データは、選択されたセグメントS−1に転
送され、そのセグメントS−1の番号S−1がセグメン
ト情報テーブル22に書き込まれる。
The quantized coefficients quantized by the quantizer 24 are input to the band Huffman encoder 34 in order from the low frequency component by zigzag scanning. The band Huffman coding unit 34 performs Huffman coding from low frequency components.
When the encoding of the area of the stage (1) is completed as in the first embodiment, the segment S-1 is selected by the segment selector 31. The encoded data obtained by the Huffman encoding is transferred to the selected segment S-1, and the number S-1 of the segment S-1 is written in the segment information table 22.

【0033】次に、ステージ(2)の領域の符号化が行
われ、セグメントセレクタ31によりセグメントS−2
が選択される。得られた符号化データはセグメントS−
2に転送され、そのセグメントS−2の番号S−3がセ
グメント情報テーブルに書き込まれる。そして、ステー
ジ(3)の領域の符号化が行われ、セグメントセレクタ
31によりセグメントS−3が選択される。得られた符
号化データはセグメントS−3に転送され、そのセグメ
ントS−3の番号S−3がセグメント情報テーブルに書
き込まれる。この様に、低周波成分から順次送られてく
る量子化係数は1つのバンドハフマン符号部34を用い
て、次から次に、ステージごとに、ハフマン符号化さ
れ、セグメントセレクタ31によりセグメントが選択さ
れて、そのセグメント番号がセグメント情報テーブル2
2に書き込まれる。
Next, the area of the stage (2) is coded, and the segment selector 31 selects the segment S-2.
Is selected. The obtained encoded data is the segment S-
2, and the number S-3 of the segment S-2 is written in the segment information table. Then, the region of the stage (3) is encoded, and the segment selector 31 selects the segment S-3. The obtained encoded data is transferred to the segment S-3, and the number S-3 of the segment S-3 is written in the segment information table. As described above, the quantized coefficients sequentially sent from the low-frequency components are Huffman-coded from one stage to the next stage by using one band Huffman coding unit 34, and the segment is selected by the segment selector 31. And the segment number is the segment information table 2
Written to 2.

【0034】このようにして、第1の実施例と同様のプ
ログレッシブル符号化を実現することができる。 <第3の実施例>次に、第3の実施例について説明す
る。
In this way, the same progressive coding as that of the first embodiment can be realized. <Third Embodiment> Next, a third embodiment will be described.

【0035】図8は本発明の第3の実施例による画像処
理装置の構成を示すブロツク図である。同図において、
41は色変換部、42はサブサンプリング部、43はD
CT部、55〜57は量子化部、58〜60は量子化部
55〜57にそれぞれ対応した量子化テーブル、61〜
63はハフマン符号部、50はハフマンテーブル、51
はセグメントセレクタ、52はセグメント情報テーブ
ル、53は圧縮メモリ、65は本装置全体の制御を行う
CPU、66はCPU65が動作するためのフローチヤ
ートに従う図10のプログラム等のデータを格納したR
OM、67は各種プログラムのワークエリアとして用い
るRAM、68は加算器をそれぞれ示している。また7
0は多段階量子化部・符号化部であり、量子化部55〜
57、量子化テーブル58〜60、ハフマン符号部61
〜63、そして、ハフマンテーブル50を有している。
FIG. 8 is a block diagram showing the construction of an image processing apparatus according to the third embodiment of the present invention. In the figure,
41 is a color conversion unit, 42 is a sub-sampling unit, and 43 is D
CT section, 55-57 are quantization sections, 58-60 are quantization tables corresponding to the quantization sections 55-57, 61-
63 is a Huffman code part, 50 is a Huffman table, 51
Is a segment selector, 52 is a segment information table, 53 is a compression memory, 65 is a CPU that controls the entire apparatus, and 66 is an R that stores data such as the program of FIG. 10 according to the flow chart for the CPU 65 to operate.
OM, 67 are RAMs used as work areas for various programs, and 68 is an adder. Again 7
Reference numeral 0 is a multi-stage quantizer / encoder, and the quantizers 55-55
57, quantization tables 58-60, Huffman coding unit 61
˜63, and a Huffman table 50.

【0036】尚、図1と同様の名称を有する回路は、図
1と同様の機能を持つている。
A circuit having the same name as in FIG. 1 has the same function as that in FIG.

【0037】次に、ステージごとに符号化データを圧縮
メモリ53に書き込む場合の手順について説明する。
Next, the procedure for writing the encoded data in the compression memory 53 for each stage will be described.

【0038】DCT部43にてDCT変換されたDCT
係数は、多段階量子化部・符号化部70に転送され、以
下に示されるように多段階に量子化,符号化される。
DCT converted by the DCT unit 43
The coefficient is transferred to the multi-stage quantizing / encoding unit 70, and is quantized and encoded in multi-stages as shown below.

【0039】第1段階において、DCT係数は、量子化
部55にて、各色成分(Y,U,V)に対しブロック毎
に、量子化テーブル58を用いて量子化される。その結
果は、量子化係数と呼ばれ、ハフマン符号部61にて符
号化される。その符号化データは、セグメントセレクタ
51により選択された圧縮メモリ53のセグメントS−
1に転送される。そして、そのセグメントS−1の番号
S−1は、セグメント情報テーブル52に書き込まれ
る。また、その際に発生する量子化誤差、即ち、剰余デ
ータAは、量子化部56に送られる。
In the first stage, the DCT coefficient is quantized by the quantizer 55 for each color component (Y, U, V) for each block using the quantization table 58. The result is called a quantized coefficient and is encoded by the Huffman encoder 61. The encoded data is the segment S- of the compression memory 53 selected by the segment selector 51.
Forwarded to 1. Then, the number S-1 of the segment S-1 is written in the segment information table 52. The quantization error generated at that time, that is, the residual data A is sent to the quantization unit 56.

【0040】次に、第2段階では、量子化部56にて、
量子化部55より送られてきた剰余データAが量子化テ
ーブル59を用いて量子化される。その結果得られた量
子化係数は、ハフマン符号部62で符号化される。その
符号化データは、セグメントセレクタ51により選択さ
れた圧縮メモリ53のセグメントS−2に転送される。
そして、そのセグメントS−2の番号S−2は、セグメ
ント情報テーブル52に書き込まれる。さらに、その際
に発生する量子化誤差、即ち、剰余データBは、量子化
部57に送られる。
Next, in the second stage, the quantizer 56
The residual data A sent from the quantization unit 55 is quantized using the quantization table 59. The quantized coefficient obtained as a result is encoded by the Huffman encoder 62. The encoded data is transferred to the segment S-2 of the compression memory 53 selected by the segment selector 51.
Then, the number S-2 of the segment S-2 is written in the segment information table 52. Further, the quantization error generated at that time, that is, the residual data B is sent to the quantization unit 57.

【0041】さらに、第3段階では、量子化部57に
て、量子化部56より送られてきた剰余データBが量子
化テーブル60を用いて量子化される。その結果得られ
た量子化係数は、ハフマン符号部63で符号化される。
その符号化データは、セグメントセレクタ51により選
択された圧縮メモリ53のセグメントS−3に転送され
る。そして、そのセグメントS−3の番号S−3は、セ
グメント情報テーブル52に書き込まれる。
Further, in the third stage, the quantizer 57 quantizes the residual data B sent from the quantizer 56 using the quantization table 60. The quantized coefficient obtained as a result is encoded by the Huffman encoding unit 63.
The encoded data is transferred to the segment S-3 of the compression memory 53 selected by the segment selector 51. Then, the number S-3 of the segment S-3 is written in the segment information table 52.

【0042】以下、各段階における符号化データを、前
述の第1の実施例と同じ手順で、複数のセグメントで区
切られた圧縮メモリ53と、そのセグメントを選択する
セグメントセレクタ51及び、その情報を保存するセグ
メント情報テーブル52を用いることにより、固定長圧
縮を実現することができる。
In the following, the encoded data in each stage is processed by the same procedure as in the first embodiment described above, and the compression memory 53 divided into a plurality of segments, the segment selector 51 for selecting the segment, and the information thereof. Fixed-length compression can be realized by using the saved segment information table 52.

【0043】ここで、従来の方式では、1段階しか量子
化を行わないので、量子化誤差による情報量の劣化が大
きくなったが、以上の第3の実施例ように、量子化を多
段階に行うことにより2段階,3段階で削除された情報
量が保存されるので、大幅に画質の劣化を防ぐことが出
来る。
Here, in the conventional method, since the quantization is performed in only one step, the deterioration of the information amount due to the quantization error becomes large. However, as in the third embodiment, the quantization is performed in multiple steps. By doing so, the amount of information deleted in the second and third steps is saved, so that the deterioration of the image quality can be largely prevented.

【0044】また、その各段階に於ける量子化は、例え
ば、第1段階では低周波数空間の情報量を保存するよう
な量子化テーブルを用い、第2段階では中間周波数空間
の情報量を保存するような量子化テーブルを、第3段階
では高周波数空間の情報量を保存するような量子化テー
ブル用いることにより、各段階における量子化の性質を
変えることが出来る。従って、中間周波数以下の空間を
おもに含むような画像に対しては、第2段階までを用い
るなど、目的により様々に適用することが可能である。
For the quantization in each stage, for example, a quantization table that preserves the information amount in the low frequency space is used in the first stage, and the information amount in the intermediate frequency space is preserved in the second stage. By using such a quantization table that preserves the amount of information in the high frequency space in the third stage, the property of quantization in each stage can be changed. Therefore, it is possible to apply variously to the image mainly including the space below the intermediate frequency depending on the purpose such as using up to the second stage.

【0045】さらに、各段階の量子化テーブルを変える
ことにより、各段階ごとの圧縮データ量を変えることが
でき、それにより、より正確な固定長圧縮を実現するこ
とが出来る。例えば、第1,2,3段階の圧縮データ量
を3:2:1となるように設定した場合、全圧縮データ
量が目標の圧縮データ量に対して、少ない場合は、全段
階の圧縮データを用いることができ、前記圧縮データ量
が目標の圧縮データ量に対して、1割程越えた場合は、
第3段階の圧縮データを削除することにより、目標の圧
縮データ量を実現することができる。
Furthermore, by changing the quantization table at each stage, the amount of compressed data at each stage can be changed, and thereby more accurate fixed length compression can be realized. For example, when the compressed data amount of the first, second, and third stages is set to be 3: 2: 1, when the total compressed data amount is smaller than the target compressed data amount, the compressed data amount of all stages is set. Can be used, and when the compressed data amount exceeds about 10% of the target compressed data amount,
The target compressed data amount can be realized by deleting the compressed data in the third stage.

【0046】圧縮データの伸張に関しては、ハフマン符
号部61〜63には3つのハフマン復号部、量子化部5
5〜57には3つの逆量子化部、そして、量子化テーブ
ル58〜60には3つの逆量子化テーブル、、DCT部
43には逆DCT部、加算器68には同様構成の加算器
が、それぞれ対応する様に設ければ良い。
Regarding decompression of compressed data, the Huffman coding units 61 to 63 include three Huffman decoding units and a quantizing unit 5.
5 to 57, three inverse quantization units, quantization tables 58 to 60, three inverse quantization tables, DCT unit 43, an inverse DCT unit, and adder 68, an adder having the same configuration. , They may be provided so as to correspond to each other.

【0047】この場合の動作を簡単に説明する。The operation in this case will be briefly described.

【0048】セグメントセレクタ51は、セグメント情
報テーブル52に従って、圧縮メモリ53から、各々の
符号化データを上記3つのハフマン復号部に転送する。
この3つのハフマン復号部では、各々符号化データを復
号し、上記3つの逆量子化部に転送する処理が行われ
る。またこの3つの逆量子化部では、各々得られた量子
化係数を逆量子化し、上記加算器に転送する。この加算
器では、各色成分に対し8×8ブロックにおける画素毎
に上記3つの逆量子化部の結果を加算し、上記逆DCT
部に転送する処理が行われる。以後は、前述の第3の実
施例と同じプロセスである。
The segment selector 51 transfers each encoded data from the compression memory 53 to the three Huffman decoding units according to the segment information table 52.
The three Huffman decoding units decode the encoded data and transfer the decoded data to the three inverse quantization units. The three dequantization units dequantize the obtained quantized coefficients and transfer the dequantized coefficients to the adder. In this adder, the results of the three inverse quantizers are added to each color component for each pixel in the 8 × 8 block, and the inverse DCT is performed.
The process of transferring to the department is performed. The subsequent process is the same as that of the third embodiment.

【0049】このように、圧縮データの伸張が可能であ
る。 <第4の実施例>前述の第1の実施例では、圧縮メモリ
が全て満たされた場合に無効とするステージを周波数成
分の高い符号化データから無効にして行ったが、本発明
はこれに限定されるものではなく、第4の実施例のよう
に、周波数成分の高い符号化データ、あるいは中間周波
数成分の符号化データなど、適応的に選択して無効にし
て行っても良い。 <第5の実施例>さて、上述した第1〜第4の実施例で
は、プログレッシブ符号化において、ステージを4つ設
けたが、本発明はこれに限定されるものではなく、本発
明の趣旨を逸脱しない範囲であれば、ステージを、2つ
または3つ、あるいは、5つ以上に設定しても良い。 <第6の実施例>第1〜第4の実施例では、セグメント
情報テーブルとして、図5で示されるタイプを用いた
が、本発明はこれに限定されるものではなく、本発明の
趣旨を逸脱しない範囲であれば、種々変形可能である。
In this way, compressed data can be expanded. <Fourth Embodiment> In the above-described first embodiment, the stage which is invalidated when all the compression memories are filled is invalidated from encoded data having a high frequency component, but the present invention is not limited to this. The present invention is not limited to this, and as in the fourth embodiment, coded data with a high frequency component or coded data with an intermediate frequency component may be adaptively selected and invalidated. <Fifth Embodiment> In the above-described first to fourth embodiments, four stages are provided in the progressive coding, but the present invention is not limited to this, and the gist of the present invention. The number of stages may be set to two or three, or five or more as long as it does not deviate from the above range. <Sixth Embodiment> In the first to fourth embodiments, the type shown in FIG. 5 is used as the segment information table, but the present invention is not limited to this, and the gist of the present invention is not limited to this. Various modifications can be made within the range that does not deviate.

【0050】以下に、図5以外のセグメント情報テーブ
ルの一例を説明する。
An example of the segment information table other than that shown in FIG. 5 will be described below.

【0051】図9は第6の実施例によるセグメント情報
テーブルを説明する図である。
FIG. 9 is a diagram for explaining the segment information table according to the sixth embodiment.

【0052】尚、装置全体の構成については、一例とし
て、図1と同様とする。
The configuration of the entire apparatus is the same as that shown in FIG. 1 as an example.

【0053】図9において、実線で囲まれた枠は、圧縮
メモリ13の各セグメントに対応し、その枠内の括弧で
囲まれた番号はセグメント番号を示す。また枠内を点線
で2分した左側の領域にステージ番号、右側の領域に各
ステージの選択されたセグメント番号の順番を示す。
In FIG. 9, a frame surrounded by a solid line corresponds to each segment of the compression memory 13, and a number in parentheses in the frame indicates a segment number. In addition, the stage number is shown in the left side region of the frame divided into two by the dotted line, and the order of the selected segment number of each stage is shown in the right side region.

【0054】そこで、セグメントS−1は、ステージ
(1)の1番に選択されたセグメント、セグメントS−
2は、ステージ(2)の1番目に選択されたセグメン
ト、セグメントS−3は、ステージ(3)の1番に選択
されたセグメント、セグメントS−3は、ステージ
(3)の1番に選択されたセグメント、セグメントS−
5は、ステージ(1)の2番に選択されたセグメントと
なり、以後同様にしてセグメントが選択されたならば、
それを選択したステージ番号とそのステージが選択した
セグメントとの順番を書き込む。
Therefore, the segment S-1 is the segment selected as the first segment of the stage (1), segment S-.
2 is the first selected segment of stage (2), segment S-3 is the first selected segment of stage (3), and segment S-3 is the first selected segment of stage (3) Segment, segment S-
5 is the segment selected in the second stage of the stage (1), and if a segment is similarly selected thereafter,
The order of the selected stage number and the segment selected by that stage is written.

【0055】そして、N番目(最後)のセグメントが選
択され、符号化が終了していない場合には、周波数成分
の最も高いステージ(4)を無効にし、ステージ(4)
の符号化データが書き込まれているセグメントS−4、
S−11、S−15に、他のステージの符号化データを
書き込む。従って、セグメントS−4のテーブルは、ス
テージ(4)と選択されたセグメント番号の順番(1)
がステージ(1)と選択されたセグメント番号の順番
(a+1)に、セグメントS−11のテーブルは、ステ
ージ(4)と選択されたセグメント番号の順番(2)が
ステージ(2)と選択されたセグメント番号の順番(a
+1)に、セグメントS−15のテーブルは、ステージ
(4)と選択されたセグメント番号の順番(3)がステ
ージ(1)と選択されたセグメント番号の順番(a+
2)に、それぞれ書き換えられる。
When the Nth (last) segment is selected and the coding is not completed, the stage (4) having the highest frequency component is invalidated, and the stage (4)
Segment S-4 in which the encoded data of
The encoded data of the other stages are written in S-11 and S-15. Therefore, the table of the segment S-4 has the stage (4) and the order of the selected segment numbers (1).
Is the stage (1) and the segment number order (a + 1) selected, and in the table of the segment S-11, the stage (4) and the segment number order (2) selected is the stage (2). Segment number order (a
+1), in the table of the segment S-15, the stage (4) and the selected segment number order (3) are the stage (1) and the selected segment number order (a +
2) can be rewritten respectively.

【0056】図5と図9のセグメント情報テーブルの違
いは、図9の方が図5よりもテーブルに必要なメモリ量
が少なくて済む。これは、図5の場合においては、符号
化が終了したステージに付けるENDマークと、無効と
なったステージに最初に割り当てられたセグメント番号
を書き込むメモリ分、圧縮メモリに記憶するデータ量が
多くなるためである。
The difference between the segment information tables of FIG. 5 and FIG. 9 is that FIG. 9 requires less memory than the table of FIG. In the case of FIG. 5, this is because the END mark attached to the stage where encoding has been completed and the memory for writing the segment number initially assigned to the invalid stage increase the amount of data stored in the compression memory. This is because.

【0057】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0058】以上説明した様に、本発明の実施例によれ
ば、プログレッシブ符号化において、スキャン回数の減
少によるスキャン時間の短縮、1画像分の大容量メモリ
の削除、及び固定長圧縮を実現できる。
As described above, according to the embodiment of the present invention, in the progressive coding, it is possible to realize the reduction of the scan time by the reduction of the number of scans, the deletion of the large capacity memory for one image, and the fixed length compression. ..

【0059】[0059]

【発明の効果】以上の様に、本発明によれば、効率良く
画像データの圧縮、記憶を行うことができる。
As described above, according to the present invention, image data can be efficiently compressed and stored.

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

【図1】本発明の第1の実施例による画像処理装置の構
成を示すブロツク図である。
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to a first embodiment of the present invention.

【図2】第1の実施例による量子化係数のジグザグスキ
ャンを説明する図である。
FIG. 2 is a diagram illustrating zigzag scanning of quantized coefficients according to the first embodiment.

【図3】第1の実施例において、プログレッシブ符号化
の段階構成と量子化係数とを説明する図である。
FIG. 3 is a diagram illustrating a progressive encoding step configuration and a quantized coefficient in the first embodiment.

【図4】第1の実施例による圧縮メモリの内容を説明す
る図である。
FIG. 4 is a diagram illustrating the contents of a compression memory according to the first embodiment.

【図5】第1の実施例によるステージ別のセグメント情
報テーブルを説明する図である。
FIG. 5 is a diagram illustrating a segment information table for each stage according to the first embodiment.

【図6】第1の実施例による圧縮処理を説明するフロー
チヤートである。
FIG. 6 is a flow chart illustrating a compression process according to the first embodiment.

【図7】本発明の第2の実施例による画像処理装置の構
成を示すブロツク図である。
FIG. 7 is a block diagram showing a configuration of an image processing apparatus according to a second embodiment of the present invention.

【図8】本発明の第3の実施例による画像処理装置の構
成を示すブロツク図である。
FIG. 8 is a block diagram showing a configuration of an image processing apparatus according to a third embodiment of the present invention.

【図9】第6の実施例によるセグメント情報テーブルを
説明する図である。
FIG. 9 is a diagram illustrating a segment information table according to a sixth embodiment.

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

1,21,41 色変換部 2,22,42 サブサンプリング部 3,23,43 DCT部 4,24,55〜57 量子化部 5,25,58〜60 量子化部テーブル 6,7,8,9,61〜63 ハフマン符号部 10,50 ハフマンテーブル 11,31,51 セグメントセレクタ 12,32,52 セグメント情報テーブル 13,33,53 圧縮メモリ 14,36,65 CPU 15,37,66 ROM 16,38,67 RAM 34 バンドハフマン符号部 1, 21, 41 Color conversion section 2, 22, 42 Sub-sampling section 3, 23, 43 DCT section 4, 24, 55-57 Quantization section 5, 25, 58-60 Quantization section table 6, 7, 8, 9,61-63 Huffman code part 10,50 Huffman table 11,31,51 Segment selector 12,32,52 Segment information table 13,33,53 Compression memory 14,36,65 CPU 15,37,66 ROM 16,38 , 67 RAM 34 band Huffman encoder

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】入力された周波数変換データを周波数に応
じた段階別に符号化し、複数の記憶領域に符号化された
各段階の周波数変換データを独立して記憶し、前記各段
階と前記記憶領域との対応を記憶することを特徴とする
画像処理方法。
1. The input frequency conversion data is encoded for each stage according to the frequency, and the encoded frequency conversion data of each stage is independently stored in a plurality of storage areas, and each stage and the storage area are stored. An image processing method, characterized in that the correspondence with is stored.
【請求項2】複数の記憶領域を有する記憶手段と、 入力された周波数変換データを周波数に応じた量子化段
階別に符号化する符号化手段と、 前記量子化段階別に前記複数の記憶領域に前記符号化手
段で得た符号化データを書き込む書き込み手段とを有
し、 前記書き込み手段が前記複数の記憶領域の内、第1の記
憶領域に対する前記量子化段階の第1の段階を書き込み
中に、第2の記憶領域に対する前記量子化段階の第2の
段階の書き込みが終了している場合、更に前記複数の記
憶領域の空き記憶領域を前記第2の段階の残りの符号化
データを書き込むことを特徴とする画像処理装置。
2. Storage means having a plurality of storage areas, encoding means for encoding input frequency conversion data for each quantization step according to frequency, and said storage means for each of said quantization steps in said plurality of storage areas. Writing means for writing the encoded data obtained by the encoding means, wherein the writing means is writing the first step of the quantization step for the first storage area among the plurality of storage areas, When the writing of the second step of the quantization step to the second storage area is completed, it is possible to write the remaining encoded data of the second step to the empty storage areas of the plurality of storage areas. Characteristic image processing device.
【請求項3】前記符号化手段はハフマン符号化を行うこ
とを特徴とする請求項2記載の画像処理装置。
3. The image processing apparatus according to claim 2, wherein the encoding means performs Huffman encoding.
【請求項4】前記符号化手段で得られた符号化データの
全データ量が前記記憶手段の記憶容量を超える場合及び
周波数成分の最も高い段階の場合に、前記量子化段階の
一段階を無効にすることを特徴とする請求項2記載の画
像処理装置。
4. One step of the quantization step is invalidated when the total amount of encoded data obtained by the encoding means exceeds the storage capacity of the storage means and when the frequency component is the highest step. The image processing apparatus according to claim 2, wherein
【請求項5】前記書き込み手段は書き込み結果をテーブ
ル化して管理する管理手段を含むことを特徴とする請求
項2記載の画像処理装置。
5. The image processing apparatus according to claim 2, wherein the writing unit includes a management unit that manages a writing result in a table.
JP00815292A 1991-11-07 1992-01-21 Image processing method and apparatus Expired - Fee Related JP3304998B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP00815292A JP3304998B2 (en) 1992-01-21 1992-01-21 Image processing method and apparatus
US07/972,433 US5838834A (en) 1991-11-07 1992-11-05 Image processing apparatus and method for quantizing image data and quantization errors using single quantizing unit and pluralities of quantization tables

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00815292A JP3304998B2 (en) 1992-01-21 1992-01-21 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH05199416A true JPH05199416A (en) 1993-08-06
JP3304998B2 JP3304998B2 (en) 2002-07-22

Family

ID=11685350

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00815292A Expired - Fee Related JP3304998B2 (en) 1991-11-07 1992-01-21 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3304998B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003165B2 (en) 2000-09-08 2006-02-21 Matsushita Electric Industrial Co., Ltd. Image processor and image processing method for decompressing progressive-coded compressed image data
JP2012515498A (en) * 2009-01-19 2012-07-05 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Image processing
CN107547904A (en) * 2017-09-05 2018-01-05 郑州云海信息技术有限公司 Yuv data 8x8block conversion methods and device in a kind of video compress based on FPGA

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003165B2 (en) 2000-09-08 2006-02-21 Matsushita Electric Industrial Co., Ltd. Image processor and image processing method for decompressing progressive-coded compressed image data
JP2012515498A (en) * 2009-01-19 2012-07-05 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Image processing
CN107547904A (en) * 2017-09-05 2018-01-05 郑州云海信息技术有限公司 Yuv data 8x8block conversion methods and device in a kind of video compress based on FPGA

Also Published As

Publication number Publication date
JP3304998B2 (en) 2002-07-22

Similar Documents

Publication Publication Date Title
US5301242A (en) Apparatus and method for motion video encoding employing an adaptive quantizer
JP5990790B2 (en) Decoding method, computer readable medium storing instructions for decoding, decoding system and decoder
US5838834A (en) Image processing apparatus and method for quantizing image data and quantization errors using single quantizing unit and pluralities of quantization tables
US5831559A (en) Encoding/decoding video signals using multiple run-val mapping tables
KR20000064840A (en) Quantization Matrix for Still Image and Video Coding
JPH07184057A (en) Adct compression of minimum compression ratio
US5959872A (en) Apparatus and method for bidirectional scanning of video coefficients
US6011499A (en) Encoding/decoding video signals using multiple run-val mapping tables
KR100549208B1 (en) Overhead data processor in a memory efficient image processing system
JP3105906B2 (en) Image processing device
JP3304998B2 (en) Image processing method and apparatus
JP2993212B2 (en) How to combine images
KR100375313B1 (en) Method for compression and extract layered using DPCM
JP2698034B2 (en) Code conversion method, code conversion system, and digital data signal processing method
JPH05252535A (en) Picture data compressing device and method thereof
JP3175324B2 (en) Image compression device
JPH06113142A (en) Method and device for processing picture
JPH05130418A (en) Picture processor
EP1887804A2 (en) Video coder providing implicit coefficient predication and scan adaption for image coding and intra coding of video
JP2000092332A (en) Image encoding device and image encoding method
JPH05284360A (en) Picture compression method and picture compressor
JPH11331844A (en) Fixed length block encoder and decoder
JPH0819002A (en) Image processing unit and its method
JPH0884341A (en) Information converter
JPH04323962A (en) Picture processing method and device

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020408

LAPS Cancellation because of no payment of annual fees