JPH11331844A - Fixed length block encoder and decoder - Google Patents

Fixed length block encoder and decoder

Info

Publication number
JPH11331844A
JPH11331844A JP12603298A JP12603298A JPH11331844A JP H11331844 A JPH11331844 A JP H11331844A JP 12603298 A JP12603298 A JP 12603298A JP 12603298 A JP12603298 A JP 12603298A JP H11331844 A JPH11331844 A JP H11331844A
Authority
JP
Japan
Prior art keywords
code
length
block
encoding
image
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
JP12603298A
Other languages
Japanese (ja)
Inventor
Yasuyuki Nomizu
泰之 野水
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP12603298A priority Critical patent/JPH11331844A/en
Publication of JPH11331844A publication Critical patent/JPH11331844A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve a picture quality without deteriorating encoding efficiency by controlling the code length of a coefficient value equivalent to one encoded block to be a fixed length. SOLUTION: A picture transformation part 302 applies two-dimensional discrete cosine transformation(DCT) to picture data xij by each rectangular block to transform to a 8×8 DCT coefficient value yuv. Then an encoding order deciding part 303 decides an order when a following successively encoding part 304 encodes the DCT coefficient value for each coefficient value yuv. The coefficient encoded by the part 304 based on this order grasps the inputted code length of each coefficient by a code length controlling part 305 to control the code length of each coefficient so that the whole of one block may be a code length fixed in advance. This part 305 adds coding order information, for example, to the head of the code string of one block, and transmits it to a decoding part. Consequently, a partial feature in a picture can be reflected on a code and the picture quality is improved without deteriorating encoding efficiency.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、多値画像データを
圧縮するための固定長ブロック符号化装置及び復号装置
に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a fixed-length block encoding device and a decoding device for compressing multilevel image data.

【0002】[0002]

【従来の技術】2次元の離散コサイン変換(DCT)を
使用して多値画像を符号化する方式としては、ITU−
TとISOにより標準化されたJPEG方式が知られて
いる。また、DCTを利用した符号化方式の他の従来例
としては、例えば特開平2−122767号公報に示す
ように1ブロックを縮小して係数値を処理する方法が提
案されている。
2. Description of the Related Art As a method of encoding a multi-valued image using a two-dimensional discrete cosine transform (DCT), ITU-
The JPEG system standardized by T and ISO is known. As another conventional example of an encoding method using DCT, there is proposed a method of processing a coefficient value by reducing one block as shown in, for example, Japanese Patent Application Laid-Open No. 2-122767.

【0003】また、従来のファクシミリ装置において行
われる符号化復号方式としては、2値画像を処理する場
合にMH、MR、MMR方式や算術符号を用いたJBI
G方式と、多値値画像を処理する場合に適応離散コサイ
ン変換(ADCT)を用いたJPEG方式が知られてい
る。図8はDCTを用いたJPEG方式の従来の符号化
部及び復号部を示している。符号化部では先ず、ブロッ
ク読み出し部201により画像を1ブロック=8×8画
素毎に読み出し、次いでDCT変換部202により次式
に基づいて8×8画素の画像データxijがブロック毎に
8×8のDCT係数値yuvに変換される。
[0003] As a coding / decoding system used in a conventional facsimile apparatus, when processing a binary image, a MH, MR, MMR system or a JBI using an arithmetic code is used.
There are known a G method and a JPEG method using adaptive discrete cosine transform (ADCT) when processing a multi-valued image. FIG. 8 shows a conventional encoding unit and decoding unit of the JPEG system using DCT. In the encoding unit, first, an image is read out by the block reading unit 201 for each block = 8 × 8 pixels, and then the image data xij of 8 × 8 pixels is converted to 8 × 8 pixels for each block by the DCT conversion unit 202 based on the following equation. Is converted to a DCT coefficient value yuv.

【0004】[0004]

【数1】 (Equation 1)

【0005】次いでこのDCT係数値yuvが量子化部2
03により、各係数yuv毎に大きさが異なる量子化ステ
ップサイズで線形量子化されて量子化係数に変換され
る。このとき、各係数yuvに対する量子化ステップサイ
ズは、量子化マトリクス記憶部206に予め記憶されて
いる量子化マトリクスに対して、スケールファクタ制御
部205により設定されるスケールファクタを乗算する
ことにより求められ、また、このスケールファクタの値
を変更することにより、符号化量と復号画像の品質を制
御することができる。次いでこの量子化係数はハフマン
符号化部204により、出現頻度の高い係数は短い符号
を割り当て、出現頻度の低い係数は長い符号を割り当て
ることにより、全体的に符号量が圧縮される。
Next, this DCT coefficient value yuv is
03, the coefficient is linearly quantized at a quantization step size having a different size for each coefficient yuv and is converted into a quantized coefficient. At this time, the quantization step size for each coefficient yuv is obtained by multiplying the quantization matrix stored in advance in the quantization matrix storage unit 206 by the scale factor set by the scale factor control unit 205. Also, by changing the value of the scale factor, it is possible to control the encoding amount and the quality of the decoded image. Next, the Huffman encoding unit 204 assigns a short code to a coefficient with a high appearance frequency and assigns a long code to a coefficient with a low appearance frequency, thereby compressing the code amount as a whole.

【0006】これに対し、復号部では先ず、この符号に
基づいてハフマン復号部207により、符号化部側の量
子化部203により量子化された係数が再生され、次い
でこの量子化係数が逆量子化部208によりDCT係数
値yuvに逆量子化される。この逆量子化における量子化
ステップサイズは、符号化部側と同様に量子化マトリク
ス記憶部に記憶されている量子化マトリクスに対して、
スケールファクタ制御部205により設定されるスケー
ルファクタを乗算することにより求められる。このDC
T係数値yuvは逆DCT変換部により1ブロック=8×
8画素の画像データxijに逆変換され、次いでこの画像
データxijはブロック書き込み部210により元の順番
に復元される。
On the other hand, in the decoding unit, first, the coefficient quantized by the quantization unit 203 on the encoding unit side is reproduced by the Huffman decoding unit 207 based on the code, and then the quantized coefficient is inversely quantized. The DCT coefficient value yuv is inversely quantized by the transform unit 208. The quantization step size in the inverse quantization is the same as the encoding unit side, with respect to the quantization matrix stored in the quantization matrix storage unit.
It is obtained by multiplying the scale factor set by the scale factor control unit 205. This DC
The T coefficient value yuv is 1 block = 8 × by the inverse DCT transform unit.
The image data xij is inversely transformed into 8-pixel image data xij, and then restored by the block writing unit 210 in the original order.

【0007】なお、この例では、量子化マトリクスは量
子化マトリクス記憶部206に予め記憶されているもの
を用いたが、符号化部側で用いたものを復号部側に伝え
ることにより、予め記憶する必要がなくなり、結果とし
て量子化マトリクス記憶部206を省略することができ
る。
In this example, the quantization matrix stored in the quantization matrix storage unit 206 is used in advance, but the one used in the encoding unit is transmitted to the decoding unit to store it in advance. Therefore, the quantization matrix storage unit 206 can be omitted as a result.

【0008】[0008]

【発明が解決しようとする課題】ところで、近年の複写
機、ファクシミリ、ファイリング装置等のデジタル画像
機器では、高画質化のために解像度を高くしたり、階調
数を多くする等の傾向がある。しかしながら、これらは
画質は向上する反面、画像の情報量が多くなり、、例え
ば2階調(白及び黒)の画像を256階調に増加すると
情報量は8倍になる。そして、その情報量のままメモリ
に記憶すると8倍のメモリ容量を必要としてコストが増
加するので、これを防止するためには多値画像データを
圧縮する必要がある。
In recent years, digital image devices such as copying machines, facsimile machines, filing devices and the like tend to increase the resolution or increase the number of gradations in order to improve image quality. . However, although the image quality is improved, the information amount of the image is increased. For example, when the image of two gradations (white and black) is increased to 256 gradations, the information amount becomes eight times. If the information amount is stored in the memory as it is, an eight-fold memory capacity is required and the cost increases. To prevent this, multi-valued image data must be compressed.

【0009】画像データの符号化方式としては、符号化
後の符号語長により分類すると可変長方式と固定長方式
に大別することができる。前者は後者と比べて、符号化
効率が高い点と可逆が可能な点の特徴があるのに対し、
後者は前者と比べて、符号の状態で符号化前の画像の位
置が特定することができるので任意の部分の画像のみを
再生することができるという特徴がある。したがって、
これらの特徴から、前者はファクシミリのような機器に
適しており、後者は複写機のように画像加工を行う機器
に適している。
[0009] Image data encoding methods can be broadly classified into a variable length method and a fixed length method when classified according to the codeword length after encoding. The former has the features of higher encoding efficiency and reversibility compared to the latter,
Compared to the former, the latter is characterized in that the position of the image before encoding can be specified in the state of the code, so that only an arbitrary part of the image can be reproduced. Therefore,
From these characteristics, the former is suitable for a device such as a facsimile, and the latter is suitable for a device such as a copying machine that performs image processing.

【0010】ここで、複写機等に適している固定長符号
化方式として最も簡単な方法は、1画素に割り当てる符
号語長を固定する方法であり、例えば1画素当たり8ビ
ットの画像に対して1画素当たり2ビットを割り当てる
方法である。しかしながら、この方法では、画像の持つ
部分的な特徴を符号に反映することができないという問
題点がある。言い換えれば、視覚的に重要である画像領
域とそうでない画像領域とを区別することができないの
で、画質的に劣った画像となる。また、画質を向上させ
るためには1画素に割り当てるビット数を多くしなけれ
ばならず、符号化効率が悪くなるという問題点がある。
Here, the simplest method as a fixed-length encoding method suitable for a copying machine or the like is a method of fixing a code word length assigned to one pixel. For example, for an image of 8 bits per pixel, This is a method of allocating 2 bits per pixel. However, this method has a problem that a partial characteristic of an image cannot be reflected on a code. In other words, it is not possible to distinguish an image region that is visually important from an image region that is not so important, so that the image is inferior in image quality. Further, in order to improve the image quality, the number of bits allocated to one pixel must be increased, and there is a problem that the coding efficiency is deteriorated.

【0011】本発明は上記従来例の問題点に鑑み、画像
を固定長方式で符号化する場合に、符号化効率が悪くな
ることなく画質を向上させることができる固定長ブロッ
ク符号化装置及び復号化装置を提供することを目的とす
る。
The present invention has been made in view of the above-mentioned problems of the prior art, and when encoding an image using a fixed-length method, a fixed-length block encoding apparatus and a decoding method capable of improving image quality without deteriorating encoding efficiency. It is an object to provide a chemical conversion device.

【0012】[0012]

【課題を解決するための手段】第1の手段は上記目的を
達成するために、多値の画像データを所定の矩形ブロッ
ク毎に分割する画像分割手段と、前記画像分割手段によ
り分割されたブロック内の画像データを2次元離散コサ
イン変換して係数値に変換する画像変換手段と、前記画
像変換手段により変換された係数値に基づいて重要な係
数から先に符号化を行うようにその符号化順序を決定す
る符号化順序決定手段と、前記画像変換手段により変換
された係数値を、前記符号化順序決定手段により決定さ
れた符号化順序に基づいて符号化する符号化手段と、前
記符号化手段により符号化された1ブロック分の係数値
の符号長が所定長になるように制御する符号長制御手段
とを備えたことを特徴とする。
In order to achieve the above object, a first means is an image dividing means for dividing multi-valued image data into predetermined rectangular blocks, and a block divided by the image dividing means. Image conversion means for converting the image data in the image data into coefficient values by two-dimensional discrete cosine conversion, and encoding the important coefficients based on the coefficient values converted by the image conversion means so as to perform encoding first from important coefficients. Coding order determining means for determining an order; coding means for coding the coefficient values converted by the image converting means based on the coding order determined by the coding order determining means; Code length control means for controlling the code length of the coefficient value for one block encoded by the means to be a predetermined length.

【0013】第2の手段は、第1の手段において前記符
号化順序決定手段が、予め設定された複数の符号化順序
の1つを前記画像変換手段により変換された係数値に基
づいて選択することを特徴とする。
The second means is the first means, wherein the coding order determining means selects one of a plurality of predetermined coding orders based on the coefficient value converted by the image converting means. It is characterized by the following.

【0014】第3の手段は、第1、第2の手段において
前記符号長制御手段が、前記符号化手段により符号化さ
れた係数値の符号長が前記所定長を越える場合に、その
越える符号を削除することを特徴とする。
A third means is that, when the code length of the coefficient value encoded by the encoding means exceeds the predetermined length, the code length control means in the first and second means, Is deleted.

【0015】第4の手段は、第1、第2の手段において
前記符号長制御手段が、前記符号化手段により符号化さ
れた係数値の符号長が前記所定長を越える場合に、その
越える符号を前記所定長内に納まるように変換してその
ブロック内に納めることを特徴とする。
A fourth means is that, in the first and second means, when the code length control means has a code length of the coefficient value coded by the coding means exceeding the predetermined length, the code length exceeds the predetermined length. Is converted to fit within the predetermined length and stored in the block.

【0016】第5の手段は、第1、第2の手段において
前記符号長制御手段が、前記符号化手段により符号化さ
れた係数値の符号長が前記所定長を越える場合に、その
越える符号を前記所定長内に納まるように変換し、変換
前と変換後の符号の差が所定値以上のときにはその越え
る符号を破棄し、所定値以下のときには変換後の符号を
そのブロック内に納めることを特徴とする。
A fifth means is that, in the first and second means, when the code length control means has a code length of a coefficient value coded by the coding means exceeding the predetermined length, the code length exceeds the predetermined length. Is converted to fit within the predetermined length, and when the difference between the code before and after conversion is equal to or more than a predetermined value, discard the code exceeding the predetermined value, and when the difference is equal to or less than the predetermined value, store the converted code in the block. It is characterized by.

【0017】第6の手段は、第1、第2の手段において
前記符号長制御手段が、前記符号化順序決定手段により
決定された符号化順序の情報をそのブロック内に納める
ことを特徴とする。
The sixth means is characterized in that in the first and second means, the code length control means stores the information of the coding order determined by the coding order determining means in the block. .

【0018】第7の手段は、第6の手段の固定長ブロッ
ク符号化装置により符号化された符号を復号する固定長
ブロック復号装置であって、前記前記符号化手段により
符号化された係数値を、前記符号化順序決定手段により
決定された符号化順序に基づいて復号する復号手段と、
前記復号手段により復号された係数値を前記ブロック毎
の画像データに逆変換する画像逆変換手段と、前記画像
逆変換手段により逆変換された前記ブロック毎の画像デ
ータを元の順番の画像データに再生する画像再生手段と
を備えたことを特徴とする。
The seventh means is a fixed-length block decoding device for decoding a code coded by the fixed-length block coding device of the sixth means, wherein the coefficient value coded by the coding means is provided. Decoding means for decoding based on the coding order determined by the coding order determining means,
Image inverse transform means for inversely transforming the coefficient value decoded by the decoding means into the image data for each block; and the image data for each block inversely transformed by the image inverse transform means to original order image data. Image reproducing means for reproducing.

【0019】[0019]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を説明する。図1は本発明に係る符号化装置及
び復号化装置の一実施形態が適用されたファクシミリ装
置を示すブロック図、図2は図1の符号化部を詳しく示
すブロック図、図3は図2の符号化順序決定部により決
定される符号化順序の他の例を示す説明図、図4は図2
の符号長制御部の符号長制御を示す説明図、図5は図2
の符号長制御部の符号長制御の他の例を示す説明図、図
6は図2の符号長制御部のフォーマット処理を示す説明
図、図7は図1の復号部を詳しく示すブロック図であ
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a facsimile apparatus to which an embodiment of an encoding apparatus and a decoding apparatus according to the present invention is applied, FIG. 2 is a block diagram showing an encoding unit of FIG. 1 in detail, and FIG. FIG. 4 is an explanatory diagram showing another example of the encoding order determined by the encoding order determination unit.
FIG. 5 is an explanatory diagram showing the code length control of the code length control unit of FIG.
FIG. 6 is an explanatory diagram showing another example of the code length control of the code length control unit, FIG. 6 is an explanatory diagram showing the format processing of the code length control unit in FIG. 2, and FIG. 7 is a block diagram showing the decoding unit in FIG. 1 in detail. is there.

【0020】図1において、送信側ファクシミリ装置で
は画像読み取り部101のCCDイメージセンサ等によ
り原稿が読み取られ、次いでこの読み取りデータが送信
データとして適するように画像処理部102により画像
処理される。そして、画像処理部102により画像処理
された画像データが符号化部103により符号化され、
この符号化データが伝送路100を介して受信側ファク
シミリ装置に送信される。受信側ファクシミリ装置では
復号部104により受信データが画像データに復号さ
れ、次いでこの画像データがプロッタ等の画像出力部1
06に適するように画像処理部105により画像処理さ
れ、次いで画像出力部106によりそのハードコピーが
出力される。なお、画像処理部102、106の処理例
としては、2値画像の場合に解像度変換、サイズ変換等
であり、カラーを含む多値画像の場合に色(色成分)変
換、解像度変換、サイズ変換等である。
Referring to FIG. 1, in the facsimile apparatus on the transmitting side, an original is read by a CCD image sensor or the like of an image reading unit 101, and then the read data is subjected to image processing by an image processing unit 102 so as to be suitable as transmission data. Then, the image data subjected to image processing by the image processing unit 102 is encoded by the encoding unit 103,
This encoded data is transmitted to the receiving facsimile machine via the transmission line 100. In the receiving-side facsimile apparatus, the decoding unit 104 decodes the received data into image data, and then this image data is sent to the image output unit 1 such as a plotter.
Image processing is performed by the image processing unit 105 so as to be suitable for the image processing unit 06, and then a hard copy is output by the image output unit 106. Examples of processing by the image processing units 102 and 106 include resolution conversion and size conversion for binary images, and color (color component) conversion, resolution conversion, and size conversion for multi-valued images containing colors. And so on.

【0021】次に図2を参照して本発明に係る符号化部
103について説明する。先ず、従来例と同様にブロッ
ク分割部301は画像データを例えば1ブロック当たり
8×8画素毎の矩形ブロックに分割し、次いで画像変換
部302はこの矩形ブロック毎に画像データxijを2次
元のDCTを行うことにより8×8のDCT係数値yuv
に変換する。そして、本発明では、符号化順序決定部3
03によりDCT係数値yuvの分布状態に基づいて、続
く順次符号化部304がDCT係数値yuvを符号化する
際の順序を係数値yuv毎に決定する。
Next, the encoding unit 103 according to the present invention will be described with reference to FIG. First, similarly to the conventional example, the block dividing unit 301 divides the image data into rectangular blocks of, for example, 8 × 8 pixels per block, and then the image converting unit 302 converts the image data xij into a two-dimensional DCT for each rectangular block. To obtain the 8 × 8 DCT coefficient value yuv
Convert to In the present invention, the encoding order determination unit 3
03, based on the distribution state of the DCT coefficient values yuv, the order in which the subsequent sequential encoding unit 304 encodes the DCT coefficient values yuv is determined for each coefficient value yuv.

【0022】このDCT係数値yuvの符号化順序を決定
する方法としては、係数値yuvにおけるAC係数のエネ
ルギの大きさやAC係数値の偏り等に基づいて、より重
要な係数から先に符号化を行う。この順序に基づいて順
次符号化部304により符号化された係数は符号長制御
部305に印加され、符号長制御部305では各係数の
入力符号長を把握して、1ブロック全体が予め定められ
た符号長になるように各係数の符号長が制御される。
As a method of determining the encoding order of the DCT coefficient value yuv, encoding of more important coefficients is performed first based on the magnitude of the energy of the AC coefficient in the coefficient value yuv, the deviation of the AC coefficient value, and the like. Do. Coefficients sequentially encoded by the encoding unit 304 based on this order are applied to the code length control unit 305. The code length control unit 305 grasps the input code length of each coefficient and determines one block as a whole. The code length of each coefficient is controlled so that the code length becomes the same.

【0023】したがって、このようにDCT係数値yuv
の分布状態に基づいてDCT係数値yuvを符号化する際
の順序を係数値yuv毎に決定して符号化し、次いで1ブ
ロック全体が予め定められた符号長になるように各係数
の符号長が制御するので、画像の持つ部分的な特徴を符
号に反映することができ、この結果、符号化効率が悪く
なることなく画質を向上させることができる。
Therefore, as described above, the DCT coefficient value yuv
The order in which the DCT coefficient values yuv are encoded is determined for each coefficient value yuv based on the distribution state, and then the encoding is performed. Then, the code length of each coefficient is set so that the entire code block has a predetermined code length. Since the control is performed, partial characteristics of the image can be reflected on the code, and as a result, the image quality can be improved without lowering the coding efficiency.

【0024】ところで、このような処理によれば、DC
T係数値yuvの分布状態に基づいて係数値yuv毎にその
符号化順序を決定するので、予め定められた符号長にお
いて最高の画質を得ることができるが、処理が複雑にな
り、処理速度が遅くなる。そこで、例えばDC成分から
高周波成分に向かって、図3(a)に示すように斜め方
向に、図3(b)に示すように垂直方向に、図3(c)
に示すように水平方向に行う3つの符号化順序方法から
1つを選択することにより、画質はやや劣るものの、符
号化順序の決定処理を簡単にして処理速度を早くするこ
とができる。
By the way, according to such processing, DC
Since the encoding order is determined for each coefficient value yuv based on the distribution state of the T coefficient value yuv, the highest image quality can be obtained at a predetermined code length, but the processing becomes complicated and the processing speed is reduced. Become slow. Therefore, for example, from the DC component to the high-frequency component, in the oblique direction as shown in FIG. 3A, and in the vertical direction as shown in FIG.
By selecting one of the three encoding order methods performed in the horizontal direction as shown in (1), the image quality is slightly inferior, but the encoding order determination process can be simplified and the processing speed can be increased.

【0025】また、1ブロック全体が予め定められた符
号長になるように各係数の符号長が制御する場合、図4
に示すように入力符号「9」が上記の所定長を越えると
きにはその入力符号を削除してその位置は意味がない符
号とすることにより、固定長符号化処理を簡単にするこ
とができる。また、図5に示すように入力符号「9」が
上記の所定長を越えるときには、納まるようにその入力
符号「9」を近似した符号「9a」に変換することによ
り、図4に示すように入力符号「9」を破棄する場合よ
り画質の劣化を防止することができる。また、このと
き、入力符号「9」とその近似符号「9a」の差分が所
定値以上の場合には図4に示すように破棄し、他方、所
定値以下の場合には図5に示すように近似符号「9a」
を採用することにより、更に画質の劣化を防止すること
ができる。
When the code length of each coefficient is controlled so that the entire block has a predetermined code length, FIG.
When the input code "9" exceeds the above-mentioned predetermined length, the input code is deleted and the position of the input code is meaningless, so that the fixed-length encoding process can be simplified. When the input code "9" exceeds the predetermined length as shown in FIG. 5, the input code "9" is converted into an approximate code "9a" so as to fit into the input code "9", as shown in FIG. The image quality can be prevented from deteriorating as compared with the case where the input code “9” is discarded. At this time, if the difference between the input code "9" and its approximate code "9a" is equal to or greater than a predetermined value, the difference is discarded as shown in FIG. 4; Approximate code "9a"
By adopting, it is possible to further prevent the image quality from deteriorating.

【0026】ここで、順次符号化部304が符号化順序
決定部303により決定された順序でDCT係数値yuv
を符号化するので、この順序を復号部104に伝える必
要がある。そこで、符号長制御部305はまた、例えば
図6に示すように1ブロックの符号列の先頭に符号化順
序情報を付加して復号部104に伝送する。
Here, the coding unit 304 sequentially converts the DCT coefficient values yuv in the order determined by the coding order determination unit 303.
Therefore, it is necessary to inform the decoding unit 104 of this order. Therefore, the code length control unit 305 also adds the coding order information to the head of the code string of one block as shown in FIG.

【0027】次に図7を参照して復号部104について
説明する。先ず、復号順序決定部801では、図6に示
すように1ブロックの符号列の先頭に付加されている符
号化順序情報に基づいて復号順序を決定すると共に、順
次復号部802では1ブロックの符号列を順次復号す
る。続く変換係数再生部803では、順次復号部802
により順次復号された符号列を、復号順序決定部801
により決定された復号順序に基づいて元の順序に並び変
え、また、足りない係数については任意の値で補間して
DCT係数値yuvを再生する。次いで係数変換手段80
4によりDCT係数値yuvを1ブロック当たり8×8画
素の画像データxijに変換し、次いで画像再生部805
によりこの画像データxijを元の順序に再生する。
Next, the decoding unit 104 will be described with reference to FIG. First, the decoding order determination unit 801 determines the decoding order based on the coding order information added to the head of the code string of one block as shown in FIG. Decode the columns sequentially. In the subsequent transform coefficient reproducing unit 803, the decoding unit 802
Are sequentially decoded by the decoding order determination unit 801
Is rearranged into the original order based on the decoding order determined by the above, and the DCT coefficient value yuv is reproduced by interpolating the missing coefficients with an arbitrary value. Next, coefficient conversion means 80
4 to convert the DCT coefficient value yuv into image data xij of 8.times.8 pixels per block.
Thus, the image data xij is reproduced in the original order.

【0028】[0028]

【発明の効果】以上説明したように請求項1記載の発明
によれば、2次元離散コサイン変換した係数値に基づい
て重要な係数から先に符号化を行うようにその符号化順
序を決定してその符号化順序に基づいて符号化し、1ブ
ロック分の係数値の符号長が所定長になるように制御す
るので、画像を固定長方式で符号化する場合に、符号化
効率が悪くなることなく画質を向上させることができ
る。
As described above, according to the first aspect of the present invention, the encoding order is determined based on the coefficient values subjected to the two-dimensional discrete cosine transform so that the important coefficients are encoded first. In this case, coding is performed based on the coding order, and control is performed so that the code length of the coefficient value for one block becomes a predetermined length. And the image quality can be improved.

【0029】請求項2記載の発明によれば、予め設定さ
れた複数の符号化順序の1つを選択するので、符号化順
序を決定する際の処理を簡略化することができる。
According to the second aspect of the present invention, one of a plurality of preset encoding orders is selected, so that the processing for determining the encoding order can be simplified.

【0030】請求項3記載の発明によれば、係数値の符
号長が所定長を越える場合に、その越える符号を削除す
るので、固定長符号化処理を簡略化することができる。
According to the third aspect of the present invention, when the code length of the coefficient value exceeds a predetermined length, the code exceeding the predetermined length is deleted, so that the fixed length coding processing can be simplified.

【0031】請求項4記載の発明によれば、係数値の符
号長が所定長を越える場合に、その越える符号を所定長
内に納まるように変換してそのブロック内に納めるの
で、固定長符号化処理による画像の劣化を防止すること
ができる。
According to the fourth aspect of the present invention, when the code length of the coefficient value exceeds a predetermined length, the code exceeding the predetermined length is converted so as to be within the predetermined length and stored in the block. It is possible to prevent the image from deteriorating due to the conversion process.

【0032】請求項5記載の発明によれば、係数値の符
号長が所定長を越える場合に、その越える符号を前記所
定長内に納まるように変換し、変換前と変換後の符号の
差が所定値以上のときにはその越える符号を破棄し、所
定値以下のときには変換後の符号をそのブロック内に納
めるので、固定長符号化処理による画像の劣化を防止す
ることができる。
According to the fifth aspect of the present invention, when the code length of the coefficient value exceeds a predetermined length, the code exceeding the predetermined length is converted so as to be within the predetermined length, and the difference between the code before the conversion and the code after the conversion is converted. Is larger than a predetermined value, the code exceeding the predetermined value is discarded, and if the value is smaller than the predetermined value, the converted code is stored in the block. Therefore, it is possible to prevent image deterioration due to the fixed length coding processing.

【0033】請求項6記載の発明によれば、符号化順序
の情報をそのブロック内に納めるので、復号装置が正常
な順番で復号することができる。
According to the sixth aspect of the present invention, since the information on the encoding order is stored in the block, the decoding device can decode in the normal order.

【0034】請求項7記載の発明によれば、画像を固定
長方式で符号化、復号する場合に、符号化効率が悪くな
ることなく画質を向上させることができる。
According to the seventh aspect of the present invention, when an image is encoded and decoded by the fixed length method, the image quality can be improved without lowering the encoding efficiency.

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

【図1】本発明に係る符号化装置及び復号化装置の一実
施形態が適用されたファクシミリ装置を示すブロック図
である。
FIG. 1 is a block diagram showing a facsimile apparatus to which an embodiment of an encoding apparatus and a decoding apparatus according to the present invention is applied.

【図2】図1の符号化部を詳しく示すブロック図であ
る。
FIG. 2 is a block diagram illustrating an encoding unit of FIG. 1 in detail.

【図3】図2の符号化順序決定部により決定される符号
化順序の他の例を示す説明図である。
FIG. 3 is an explanatory diagram showing another example of the encoding order determined by the encoding order determination unit in FIG. 2;

【図4】図2の符号長制御部の符号長制御を示す説明図
である。
FIG. 4 is an explanatory diagram showing code length control of a code length control unit in FIG. 2;

【図5】図2の符号長制御部の符号長制御の他の例を示
す説明図である。
FIG. 5 is an explanatory diagram showing another example of code length control of the code length control unit in FIG. 2;

【図6】図2の符号長制御部のフォーマット処理を示す
説明図である。
FIG. 6 is an explanatory diagram showing a format process of a code length control unit in FIG. 2;

【図7】図1の復号部を詳しく示すブロック図である。FIG. 7 is a block diagram illustrating a decoding unit of FIG. 1 in detail;

【図8】従来のファクシミリ装置の符号化部及び復号部
を示すブロック図である。
FIG. 8 is a block diagram showing an encoding unit and a decoding unit of a conventional facsimile apparatus.

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

301 ブロック分割部 302 画像変換部 303 符号化順序決定部 304 順次符号化部 305 符号長制御部 801 復号順序決定部 802 順次復号部 803 変換係数再生部 804 係数変換手段 805 画像再生部 301 Block division unit 302 Image conversion unit 303 Encoding order determination unit 304 Sequential encoding unit 305 Code length control unit 801 Decoding order determination unit 802 Sequential decoding unit 803 Transform coefficient reproduction unit 804 Coefficient conversion unit 805 Image reproduction unit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 多値の画像データを所定の矩形ブロック
毎に分割する画像分割手段と、 前記画像分割手段により分割されたブロック内の画像デ
ータを2次元離散コサイン変換して係数値に変換する画
像変換手段と、 前記画像変換手段により変換された係数値に基づいて重
要な係数から先に符号化を行うようにその符号化順序を
決定する符号化順序決定手段と、 前記画像変換手段により変換された係数値を、前記符号
化順序決定手段により決定された符号化順序に基づいて
符号化する符号化手段と、 前記符号化手段により符号化された1ブロック分の係数
値の符号長が所定長になるように制御する符号長制御手
段と、を備えた固定長ブロック符号化装置。
An image dividing unit that divides multi-valued image data into predetermined rectangular blocks; and a two-dimensional discrete cosine transform that converts image data in the blocks divided by the image dividing unit into coefficient values. Image conversion means, coding order determination means for determining the coding order so as to perform coding first from important coefficients based on the coefficient values converted by the image conversion means, and conversion by the image conversion means. Coding means for coding the calculated coefficient values based on the coding order determined by the coding order determination means; and a code length of one block of coefficient values coded by the coding means is predetermined. A fixed-length block encoding device comprising: a code length control unit that controls the length to be longer.
【請求項2】 前記符号化順序決定手段は、予め設定さ
れた複数の符号化順序の1つを前記画像変換手段により
変換された係数値に基づいて選択することを特徴とする
請求項1記載の固定長ブロック符号化装置。
2. The image processing apparatus according to claim 1, wherein the encoding order determining unit selects one of a plurality of preset encoding orders based on the coefficient value converted by the image converting unit. Fixed-length block encoding device.
【請求項3】 前記符号長制御手段は、前記符号化手段
により符号化された係数値の符号長が前記所定長を越え
る場合に、その越える符号を削除することを特徴とする
請求項1または2記載の固定長ブロック符号化装置。
3. The code length control unit according to claim 1, wherein, when the code length of the coefficient value encoded by the encoding unit exceeds the predetermined length, the code length control unit deletes the code exceeding the predetermined length. 3. The fixed-length block encoding device according to 2.
【請求項4】 前記符号長制御手段は、前記符号化手段
により符号化された係数値の符号長が前記所定長を越え
る場合に、その越える符号を前記所定長内に納まるよう
に変換してそのブロック内に納めることを特徴とする請
求項1または2記載の固定長ブロック符号化装置。
4. When the code length of the coefficient value encoded by the encoding means exceeds the predetermined length, the code length control means converts the code exceeding the predetermined length so as to be within the predetermined length. 3. The fixed-length block coding device according to claim 1, wherein the fixed-length block coding device is stored in the block.
【請求項5】 前記符号長制御手段は、前記符号化手段
により符号化された係数値の符号長が前記所定長を越え
る場合に、その越える符号を前記所定長内に納まるよう
に変換し、変換前と変換後の符号の差が所定値以上のと
きにはその越える符号を破棄し、所定値以下のときには
変換後の符号をそのブロック内に納めることを特徴とす
る請求項1または2記載の固定長ブロック符号化装置。
5. When the code length of the coefficient value encoded by the encoding means exceeds the predetermined length, the code length control means converts the code exceeding the predetermined length so as to be within the predetermined length, 3. The fixed code according to claim 1, wherein when the difference between the code before conversion and the code after conversion is equal to or more than a predetermined value, the code exceeding the predetermined value is discarded, and when the difference is equal to or less than the predetermined value, the code after conversion is stored in the block. Long block coding device.
【請求項6】 前記符号長制御手段は、前記符号化順序
決定手段により決定された符号化順序の情報をそのブロ
ック内に納めることを特徴とする請求項1ないし5のい
ずれか1に記載の固定長ブロック符号化装置。
6. The apparatus according to claim 1, wherein said code length control means stores the information on the coding order determined by said coding order determining means in the block. Fixed-length block coding device.
【請求項7】 請求項6記載の固定長ブロック符号化装
置により符号化された符号を復号する固定長ブロック復
号装置であって、 前記前記符号化手段により符号化された係数値を、前記
符号化順序決定手段により決定された符号化順序に基づ
いて復号する復号手段と、 前記復号手段により復号された係数値を前記ブロック毎
の画像データに逆変換する画像逆変換手段と、 前記画像逆変換手段により逆変換された前記ブロック毎
の画像データを元の順番の画像データに再生する画像再
生手段と、を備えた固定長ブロック復号装置。
7. A fixed-length block decoding device that decodes a code encoded by the fixed-length block encoding device according to claim 6, wherein the coefficient value encoded by the encoding unit is encoded by the code. Decoding means for decoding based on the encoding order determined by the coding order determining means; image inverse transform means for inversely transforming the coefficient values decoded by the decoding means into image data for each block; A fixed-length block decoding device, comprising: image reproducing means for reproducing the image data for each block inversely transformed by the means into image data in the original order.
JP12603298A 1998-05-08 1998-05-08 Fixed length block encoder and decoder Pending JPH11331844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12603298A JPH11331844A (en) 1998-05-08 1998-05-08 Fixed length block encoder and decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12603298A JPH11331844A (en) 1998-05-08 1998-05-08 Fixed length block encoder and decoder

Publications (1)

Publication Number Publication Date
JPH11331844A true JPH11331844A (en) 1999-11-30

Family

ID=14925008

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12603298A Pending JPH11331844A (en) 1998-05-08 1998-05-08 Fixed length block encoder and decoder

Country Status (1)

Country Link
JP (1) JPH11331844A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007043583A1 (en) * 2005-10-11 2007-04-19 Matsushita Electric Industrial Co., Ltd. Image encoding device, image decoding device, and method thereof
US7551796B2 (en) 2004-03-19 2009-06-23 Ricoh Company, Ltd. Image processing apparatus, image data generation and transmission method and image data generation and transmission program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7551796B2 (en) 2004-03-19 2009-06-23 Ricoh Company, Ltd. Image processing apparatus, image data generation and transmission method and image data generation and transmission program
WO2007043583A1 (en) * 2005-10-11 2007-04-19 Matsushita Electric Industrial Co., Ltd. Image encoding device, image decoding device, and method thereof

Similar Documents

Publication Publication Date Title
US7215707B2 (en) Optimal scanning method for transform coefficients in coding/decoding of image and video
US6847735B2 (en) Image processing system, image processing apparatus, image input apparatus, image output apparatus and method, and storage medium
US6560369B1 (en) Conversion of wavelet coded formats depending on input and output buffer capacities
EP1113672A2 (en) Quantization matrix for still and moving picture coding
JP5173990B2 (en) Encoding method, encoding apparatus, decoding method, and decoder
JP2921358B2 (en) Image coding device
US6462681B1 (en) Scalable coding by scanning selected parts of respective bit-streams
US7551788B2 (en) Digital image coding device and method for noise removal using wavelet transforms
US5764357A (en) Zero-run-length encoder with shift register
US6427029B1 (en) Image signal processing method and device, and storage medium
JPH04229382A (en) Method and device for resolution conversion of digital image data
JP3835273B2 (en) Image encoding / decoding device
JPH11331844A (en) Fixed length block encoder and decoder
JP3590648B2 (en) Method of compressing original image data and method of expanding original image data
JP3269186B2 (en) Image coding device
JPH0730889A (en) Picture data encoder
JP2003244443A (en) Image encoder and image decoder
JP3793357B2 (en) Image coding apparatus and method
KR100460947B1 (en) Device for processing image signal and method thereof
JP3032281B2 (en) Image encoding method and image decoding method
JPH10163880A (en) Data decoder
JPH06315143A (en) Image processor
Bhagyashree Image compression using AMBTC technique
JPH0435361A (en) Picture coding device and picture coding and decoding device
JPS62193380A (en) System and device for encoding and decoding picture signal

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041102

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041228

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050412