JPH07283948A - Compressing device for gradation picture data - Google Patents

Compressing device for gradation picture data

Info

Publication number
JPH07283948A
JPH07283948A JP7067612A JP6761295A JPH07283948A JP H07283948 A JPH07283948 A JP H07283948A JP 7067612 A JP7067612 A JP 7067612A JP 6761295 A JP6761295 A JP 6761295A JP H07283948 A JPH07283948 A JP H07283948A
Authority
JP
Japan
Prior art keywords
block
coefficient
quantization width
image data
conversion coefficient
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
JP7067612A
Other languages
Japanese (ja)
Inventor
Hisashi Yonekawa
久 米川
Hiroshi Takeuchi
寛 竹内
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP7067612A priority Critical patent/JPH07283948A/en
Publication of JPH07283948A publication Critical patent/JPH07283948A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To obtain a restored picture of high picture quality with a high compression rate by using frequencies in occurrence of quantized conversion coefficient AC components as a parameter to classify blocks into several classes and using the quantization width adapted to each class to compress the class. CONSTITUTION:A reader 2 reads out picture data from a frame memory 1 in block units. With respect to read-out block data, a conversion coefficient of a one-block portion transformed by a two-dimensional discrete cosine transforming device 3 is obtained. Conversion coefficient AC components except one DC component out of conversion coefficients obtained in this manner are uniformly quantized with a fundamental quantization width by a quantizer 4, and a pair of a coefficient number as a fixed length code and a polarity number are obtained for each conversion coefficient. A classifying device 5 performs classification processing in accordance with the coefficient number of the one-block portion sent from the quantizer 4 and the compression rate parameter inputted from a terminal 52. An encoder 7 converts the fixed length code of the conversion coefficient AC component to a variable length code and outputs it.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はX線写真やCT画像など
の医用画像のような階調画像のデータを圧縮する階調画
像データの圧縮装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a gradation image data compression apparatus for compressing gradation image data such as medical images such as X-ray photographs and CT images.

【0002】[0002]

【発明の背景】デジタル技術の進歩にともない、階調画
像をデジタル化して保存、伝送したり、種々のデジタル
画像処理を施したりすることが頻繁に行なわれるように
なった。しかしながら、階調画像は2値画像に比べて情
報量が多く、従って階調画像をデジタル化したときのデ
ータ量の多さが問題となっている。特に医用画像では、
デジタル化するときの画素数および各画素に要するビッ
ト数が、たとえば胸部X線写真では400万画素、8〜
10ビットと膨大であり、データの保存や転送を行なう
上で効率が悪い。
BACKGROUND OF THE INVENTION With the progress of digital technology, it has become more frequent to digitize and store and transmit gradation images and to perform various digital image processing. However, the gradation image has a large amount of information as compared with the binary image, and therefore the amount of data when digitizing the gradation image is a problem. Especially in medical images,
The number of pixels for digitization and the number of bits required for each pixel are, for example, 4 million pixels for chest radiographs, 8 to 8
It is as large as 10 bits, which is inefficient in saving and transferring data.

【0003】そこで今日、医用画像を含む階調画像の膨
大なデータを圧縮してコンパクト化するデータ圧縮技術
が脚光を浴びている。
Therefore, today, a data compression technique for compressing enormous amount of data of a gradation image including a medical image to make it compact is in the limelight.

【0004】データ圧縮技術は大きく分けて可逆圧縮と
非可逆圧縮とに分類されるが、可逆圧縮では1/2〜1
/3程度の低い圧縮率しか望めないため、1/5以上の
高い圧縮率が得られる非可逆圧縮方式、特に変換符号化
方式が注目されている。
Data compression techniques are roughly classified into lossless compression and lossy compression.
Since only a compression rate as low as / 3 can be expected, an irreversible compression method that can obtain a compression rate as high as ⅕ or more, in particular, a conversion coding method is drawing attention.

【0005】変換符号化とは、画像全体を小さなブロッ
クに分割しブロック単位に直交変換を施し、これにより
得られた変換係数を量子化し、符号化する非可逆圧縮方
式の1つであり、階調画像を圧縮するのに最も適した圧
縮方法である。
Transform coding is one of the lossy compression schemes in which the entire image is divided into small blocks, orthogonal transformation is performed in block units, and the transform coefficients obtained thereby are quantized and coded. This is the most suitable compression method for compressing toned images.

【0006】変換符号化において、変換係数の交流成分
の分布は、ゼロにピークを持つガウス分布に近位される
ことが知られており、このような分布を持つ変換係数の
量子化を量子化判定レベルにゼロを含むMid−Ris
er型量子化と、量子化出力レベルにゼロを含むMid
−trace型量子化とに分類した場合、Mid−tr
ace型量子化の方がブロック内のランダムノイズが少
なくてより好ましいことが報告されている。しかしなが
ら、Mid−trace型の量子化器を用いた場合、圧
縮率を高くすると成分固有のパターン画像が出現すると
いう欠点があり、拡大、階調、周波数処理などの画像処
理をしたとき不自然な画像が現れて復元画像の忠実度が
低くなるという問題がある。
In transform coding, it is known that the distribution of the AC component of the transform coefficient is close to a Gaussian distribution having a peak at zero, and the quantization of the transform coefficient having such a distribution is quantized. Mid-Ris with judgment level including zero
er-type quantization and Mid including zero in the quantized output level
-Trace type quantization, Mid-tr
It has been reported that the ace type quantization is more preferable because it has less random noise in the block. However, when the Mid-trace type quantizer is used, there is a drawback that a pattern image peculiar to the component appears when the compression rate is increased, which is unnatural when image processing such as enlargement, gradation, and frequency processing is performed. There is a problem in that the image appears and the fidelity of the restored image is low.

【0007】ところで、Mid−trace型量子化を
行なう場合の復元画像の画質は、圧縮時の量子化段階で
ゼロに量子化された変換係数交流成分の個数と強い相互
関係があることがわかる。すなわち、復元画像の各ブロ
ックの画像は、量子化時にゼロ以外に量子化された変換
係数交流成分の成分固有のパターンの加重和となってい
るため、ゼロ以外に量子化される変換係数交流成分の個
数が少ない、言い換えると、ゼロに量子化される個数が
多い場合は成分固有のパターン画像が復元画像内に出現
する。そこで成分固有のパターン画像の出現を抑制する
には、量子化出力レベルがゼロとなる量子化判定レベル
の量子化幅を狭めてゼロに量子化される変換係数交流成
分の個数を少なくする。言い換えると、ゼロ以外に量子
化される個数を多くすればよいが、そうすると符号化時
の平均符号長が増加するため圧縮率が低下してしまう。
By the way, it is understood that the image quality of the restored image in the case of performing the mid-trace type quantization has a strong correlation with the number of transform coefficient AC components quantized to zero in the quantization step during compression. That is, since the image of each block of the restored image is the weighted sum of the pattern peculiar to the component of the conversion coefficient AC component quantized to other than zero at the time of quantization, the conversion coefficient AC component quantized to other than zero When the number of s is small, in other words, when the number quantized to zero is large, a component-specific pattern image appears in the restored image. Therefore, in order to suppress the appearance of the pattern image peculiar to the component, the number of transform coefficient AC components quantized to zero is reduced by narrowing the quantization width of the quantization determination level at which the quantized output level becomes zero. In other words, it is sufficient to increase the number of quantized values other than zero, but if this is done, the average code length at the time of encoding increases and the compression rate decreases.

【0008】従って、ゼロに量子化される変換係数交流
成分の発生頻度を各ブロックごとに調べる。ブロック内
の全体の変換係数交流成分の個数は決まっているので、
ゼロ以外の個数を調べることと同様である。これにより
成分固有のパターン画像が現れやすいブロックを検出
し、検出されたブロックのみ量子化幅をせばめることに
よりパターン画像の出現を抑制した復元画像を得ること
ができることに気がついた。
Therefore, the occurrence frequency of the transform coefficient AC component quantized to zero is examined for each block. Since the number of all conversion coefficient AC components in the block is fixed,
It is similar to checking the number other than zero. By doing so, it was found that a block in which the pattern image peculiar to the component is likely to appear is detected, and the quantization width is narrowed only in the detected block to obtain a restored image in which the appearance of the pattern image is suppressed.

【0009】[0009]

【発明の目的および構成】本発明は上記の点にかんがみ
てなされたもので、Mid−trace型の量子化を行
なう変換符号化方式を用いて医用画像を含む階調画像の
データを圧縮するに当たり、成分固有のパターン画像の
発生を防ぎ且つブロックを最適にクラス分けするクラス
分け手法を用いることにより、高圧縮率で高画質な復元
画像を得ることを目的とし、この目的を達成するため
に、Mid−trace型の量子化を行なったときブロ
ック内でゼロに量子化される変換係数交流成分の発生頻
度をパラメータとして、ブロックをいくつかのクラスに
分類し、各クラスごとに適した量子化幅を用いて圧縮を
行なうようにしたものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and in compressing data of a gradation image including a medical image by using a transform coding method for performing Mid-trace type quantization. , By using a classification method for preventing the occurrence of a pattern image peculiar to a component and optimally classifying blocks, in order to obtain a high-quality restored image with a high compression rate, in order to achieve this purpose, Blocks are classified into several classes with the frequency of occurrence of the transform coefficient AC component that is quantized to zero in the blocks when Mid-trace type quantization is performed as a parameter, and the quantization width suitable for each class Is used for compression.

【0010】[0010]

【実施例】以下本発明を図面に基づいて説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0011】図1は本発明による階調画像データ圧縮装
置の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a gradation image data compression apparatus according to the present invention.

【0012】図においてフレームメモリ1には、圧縮対
象となる階調画像データ(本例では、1画素当たりのビ
ット数を8ビットとする)が格納されており、まず読み
出し装置2がフレームメモリ1から画像データをブロッ
ク単位に読み出す(本例では、ブロックサイズをライン
方向、カラム方向にそれぞれ16画素とする)。読み出
されたブロックデータは、2次元ディスクリートコサイ
ン変換(2D−DCT)装置3によりコサイン変換され
た1ブロック分256個の変換係数を得る。
In the figure, a frame memory 1 stores gradation image data to be compressed (in this example, the number of bits per pixel is 8 bits). The image data is read in blocks from (in this example, the block size is 16 pixels in the line direction and 16 pixels in the column direction). From the read block data, 256 transform coefficients for one block, which are cosine transformed by the two-dimensional discrete cosine transform (2D-DCT) device 3, are obtained.

【0013】次に、こうして得られた256個の変換係
数のうち1個の直流成分を除く255個の変換係数交流
成分は、量子化装置4により基本量子化幅w0 で一様量
子化され、各変換係数ごとに固定長符号である係数番号
と極性番号のペアを得る。係数番号と極性番号のペア
は、ブロックバッファメモリ6に一時的に格納されると
ともに、係数番号はクラス分け装置5へ送られる。
Next, of the 256 transform coefficients thus obtained, the 255 transform coefficient AC components excluding one DC component are uniformly quantized by the quantizer 4 with the basic quantization width w 0. , A pair of a coefficient number and a polarity number which is a fixed length code is obtained for each transform coefficient. The pair of coefficient number and polarity number is temporarily stored in the block buffer memory 6 and the coefficient number is sent to the classifying device 5.

【0014】クラス分け装置5では、量子化装置4から
送られてくる1ブロック分の係数番号と、端子52から
入力される圧縮率パラメータによりクラス分け処理を行
ない、符号化装置7へクラス番号を出力する。符号化装
置7はクラス分け装置5から送られてくるクラス番号を
読み込むと、ブロックバッファメモリ6より1ブロック
分の係数番号と極性番号のペアを読み出し、変換係数交
流成分の固定長符号(番号)を可変長符号に変換して端
子8へ出力する。符号データは端子8から送信されるか
メモリへ格納される。
The classifying device 5 performs a classifying process on the basis of the coefficient number for one block sent from the quantizing device 4 and the compression ratio parameter input from the terminal 52, and assigns the class number to the encoding device 7. Output. When the coding device 7 reads the class number sent from the classifying device 5, it reads a pair of coefficient number and polarity number for one block from the block buffer memory 6, and a fixed length code (number) of the transform coefficient AC component. Is converted into a variable length code and output to the terminal 8. The code data is transmitted from the terminal 8 or stored in the memory.

【0015】図2は量子化装置4の一例である。FIG. 2 shows an example of the quantizer 4.

【0016】まず端子41から1ブロック分の変換係数
のうち直流成分を除く255個の変換係数交流成分が入
力される。255個の変換係数は、絶対値回路42によ
り絶対値がとられると同時に、極性判定回路43により
変換係数の正負の判定が行なわれる。極性判定回路43
は判定結果を極性番号として端子47に出力する。ここ
では、極性番号を1ビット符号で表し、変換係数が負の
場合は“1”、正の場合は“0”とする。
First, from the terminal 41, 255 conversion coefficient AC components excluding the DC component of the conversion coefficient for one block are input. The absolute values of the 255 conversion coefficients are taken by the absolute value circuit 42, and at the same time, the polarity judgment circuit 43 judges whether the conversion coefficients are positive or negative. Polarity determination circuit 43
Outputs the determination result to the terminal 47 as a polarity number. Here, the polarity number is represented by a 1-bit code, and is "1" when the conversion coefficient is negative and "0" when the conversion coefficient is positive.

【0017】一方、絶対値回路42から出力された変換
係数の絶対値は除算回路44により基本量子化幅w0
割り算される。割り算結果は切り捨て回路45によって
小数点以下の切り捨てが行なわれ(この結果を係数番号
と呼ぶ)、端子46および端子47に出力される。端子
46はクラス分け装置5に接続されており、端子47は
ブロックバッファメモリ6に接続されている。端子41
から入力された1つの変換係数に対して得られる極性番
号と係数番号は2つで1組のペアをなし、端子47より
ブロックバッファメモリ6へ一時的に格納される。
On the other hand, the absolute value of the transform coefficient output from the absolute value circuit 42 is divided by the basic quantization width w 0 by the division circuit 44. The division result is truncated by the truncation circuit 45 after the decimal point (this result is called a coefficient number), and is output to the terminals 46 and 47. The terminal 46 is connected to the classification device 5, and the terminal 47 is connected to the block buffer memory 6. Terminal 41
The polarity number and the coefficient number obtained for one transform coefficient input from the pair form a pair and are temporarily stored in the block buffer memory 6 from the terminal 47.

【0018】一方、各ブロックの直流成分は充分小さい
量子化幅wdcで一様量子化されるか、もしくは量子化を
行なわずに他の255個の変換係数交流成分と同様にブ
ロックバッファメモリ6へ一時的に格納される。
On the other hand, the DC component of each block is either uniformly quantized with a sufficiently small quantization width w dc , or is quantized without being quantized, and like the other 255 transform coefficient AC components, the block buffer memory 6 is used. Is temporarily stored in.

【0019】図3に直流成分を除いた変換係数交流成分
の量子化の様子を示す。
FIG. 3 shows the quantization of the conversion coefficient AC component excluding the DC component.

【0020】横軸が変換係数の値であり、縦軸は変換係
数の発生頻度である。図3(a)により示される番号列
は切り捨て回路45から出力される係数番号(k)列で
あり、図3(b)により示される番号列は極性判定回路
43から出力される極性番号(j)列である。
The horizontal axis represents the value of the conversion coefficient, and the vertical axis represents the frequency of occurrence of the conversion coefficient. The number sequence shown in FIG. 3A is the coefficient number (k) sequence output from the truncation circuit 45, and the number sequence shown in FIG. 3B is the polarity number (j) output from the polarity determination circuit 43. ) Column.

【0021】次に図4はクラス数を4とした場合のクラ
ス分け装置5の一例である。
Next, FIG. 4 shows an example of the classifying device 5 when the number of classes is four.

【0022】端子51は図2の端子46と接続されてお
り、量子化装置4から出力される係数番号画像がここか
ら入力される。ここで係数番号をk(k=0,1,2,
3,4…)で表わすと、端子51から入力された係数番
号kはカウンタ制御LUT53により4ビットの第1次
カウンタ制御コードCi (i=0,1,2,3)に変換
される。
The terminal 51 is connected to the terminal 46 in FIG. 2, and the coefficient number image output from the quantizer 4 is input from here. Here, the coefficient number is k (k = 0, 1, 2,
3, 4, ...), the coefficient number k input from the terminal 51 is converted into a 4-bit primary counter control code C i (i = 0, 1, 2, 3) by the counter control LUT 53.

【0023】この図4のクラス分け装置の例で、本発明
のパラメータ入力により各ブロックとその量子化幅の対
応付けを制御する一実施例を説明する。
An example of controlling the correspondence between each block and its quantization width by the parameter input of the present invention will be described using the example of the classification device of FIG.

【0024】図5(イ)にカウンタ制御LUT53の一
例を示す。
FIG. 5A shows an example of the counter control LUT 53.

【0025】一方、端子52からは、ユーザーが端末
(図示せず)から入力した圧縮率パラメータPが入力さ
れる。すなわち、クラス分け手段にパラメータPが与え
られる。本例の場合圧縮率は2通り用意されており(P
=0,1)、Pが大きいほど圧縮率が高くなることを意
味する。端子52から入力された圧縮率パラメータP
は、圧縮率制御LUT54により、4ビットの圧縮率制
御コードep に変換される。
On the other hand, the compression ratio parameter P input by the user from a terminal (not shown) is input from the terminal 52. That is, the parameter P is given to the classifying means. In this example, two compression ratios are prepared (P
= 0, 1), which means that the larger P is, the higher the compression rate is. The compression ratio parameter P input from the terminal 52
Is converted into a 4-bit compression rate control code e p by the compression rate control LUT 54.

【0026】図5(ロ)には圧縮率制御LUT54の一
例を示す。
FIG. 5B shows an example of the compression rate control LUT 54.

【0027】次にOR回路55は第1次カウンタ制御コ
ードci と圧縮率制御コードep とを取り込み、数1の
ように両者の論理和である4ビットの第2次カウンタ制
御コードdi を求める。
Next, the OR circuit 55 fetches the primary counter control code c i and the compression ratio control code e p, and the 4-bit secondary counter control code d i, which is the logical sum of the two, as in equation (1 ). Ask for.

【0028】[0028]

【数1】di ← ci ∪ ep 次にカウンタ制御回路56は第2次カウンタ制御コード
i を取り込み、カウンタ回路57内のカウンタ0から
カウンタ3までの4個のカウンタをdi の各ビットのo
n/off状態によって制御する。第2次カウンタ制御
コードdi の各ビットは下位ビットから順にカウンタ
0、カウンタ1、カウンタ2、カウンタ3に対応付けさ
れており、ビットがon(=1)の場合はカウンタ制御
回路56が対応するカウンタを+1カウントアップし、
ビットがoff(=0)の場合は対応するカウンタのカ
ウントアップを行なわない。
[Number 1] d i ← c i ∪ e p then the counter control circuit 56 takes in the secondary counter control code d i, the four counters from the counter 0 in the counter circuit 57 to the counter 3 of d i O for each bit
Controlled by n / off state. Each bit of the secondary counter control code d i is associated with the counter 0, the counter 1, the counter 2, and the counter 3 in order from the lower bit, and when the bit is on (= 1), the counter control circuit 56 corresponds. Increment the counter to
When the bit is off (= 0), the corresponding counter is not counted up.

【0029】図5(ハ)にdi の各ビットと各カウンタ
との対応関係を示す。なお、ci ,ep についても各カ
ウンタと同様の対応関係が成立する。
FIG. 5C shows the correspondence between each bit of d i and each counter. Note that the same correspondence relationship holds for each counter for c i and e p .

【0030】図6は、圧縮率パラメータPもしくは圧縮
率制御コードep と各カウンタの動作範囲の関係を示す
図である。
FIG. 6 is a diagram showing the relationship between the compression ratio parameter P or the compression ratio control code e p and the operating range of each counter.

【0031】各圧縮率パラメータP(各ep )に対し
て、各カウンタは図6の矢印で示される範囲の係数番号
kについてのみ動作する。ただし、本例では、カウンタ
3はPの値にかかわらず、すべての係数番号kに対して
動作するため、1ブロック分のクラス分け作業の終了を
カウンタ3により知ることができる。従って他にカウン
タ3と同様のカウンタを所有する場合はカウンタ3を省
略してもよい。
For each compression ratio parameter P (each e p ), each counter operates only for the coefficient number k in the range indicated by the arrow in FIG. However, in this example, the counter 3 operates for all coefficient numbers k regardless of the value of P, so that the counter 3 can know the end of the classification work for one block. Therefore, when the other counter similar to the counter 3 is owned, the counter 3 may be omitted.

【0032】次に、比較回路58の比較処理手順を図7
のフローチャートに示す。
Next, the comparison processing procedure of the comparison circuit 58 is shown in FIG.
It is shown in the flowchart.

【0033】比較回路58は常にカウンタ3のカウント
値をチェックしており(F−1)、カウント値が255
に満たないときは比較回路58は待機状態にある。カウ
ンタ3のカウント値が255になると、比較回路58は
カウント閾値LUT59から出力されるカウント閾値S
p を読み込む。
The comparison circuit 58 constantly checks the count value of the counter 3 (F-1), and the count value is 255.
If less than, the comparison circuit 58 is in a standby state. When the count value of the counter 3 reaches 255, the comparison circuit 58 outputs the count threshold value S output from the count threshold value LUT 59.
Read p .

【0034】図5(ニ)にカウント閾値LUT59の一
例を示す。
FIG. 5D shows an example of the count threshold LUT 59.

【0035】カウント閾値Sp とは、端子52から入力
される圧縮率パラメータPに対して発行される、カウン
ト値に対する閾値である。比較回路58がカウント閾値
pを読み込むと、このSp とカウンタ2のカウント値
の比較を行なう(F−2)。その結果、 (1) もし、カウント閾値Sp がカウンタ2のカウン
ト値以上であればクラス番号mを3にセットし(F−
3)、Sp がカウンタ2のカウント値より小さければS
p とカウンタ1のカウント値とを比較する(F−4)。 (2) カウント閾値Sp とカウンタ1のカウント値と
の比較において、Sp がカウンタ1のカウント値以上で
あればクラス番号mを2にセットし(F−5)、Sp
カウンタ1のカウント値より小さければSp とカウンタ
0のカウント値を比較する(F−6)。 (3) カウント閾値Sp とカウンタ0のカウント値と
の比較において、Sp がカウント値以上であればクラス
番号mを1にセットし(F−7)、Sp がカウンタ0の
カウント値より小さければクラス番号mを0にセットす
る(F−8)。 (4) クラス番号mがセットされると、端子510よ
りクラス番号mを出力して(F−9)、1ブロック分の
クラス分け作業を終了し、カウンタ0からカウンタ3ま
での各カウンタのカウント値をゼロクリアする(F−1
0)。比較回路58から出力されるクラス番号mは、符
号化時にランレングス符号化される変換係数の範囲を示
すパラメータとなっている。すなわち、クラス番号がm
であるブロックの255個の交流成分に対して、変換係
数の絶対値が0以上Am 以下の領域内に存在する変換係
数はランレングス符号化されることを意味する(図6参
照)。
The count threshold value S p is a threshold value for the count value issued for the compression rate parameter P input from the terminal 52. When the comparison circuit 58 reads the count threshold value S p , this S p is compared with the count value of the counter 2 (F-2). As a result, (1) If the count threshold value S p is greater than or equal to the count value of the counter 2, the class number m is set to 3 (F-
3) If S p is smaller than the count value of the counter 2, S p
p is compared with the count value of the counter 1 (F-4). (2) In the comparison between the count threshold value S p and the count value of the counter 1, if S p is equal to or larger than the count value of the counter 1, the class number m is set to 2 (F-5), and S p is the counter value of the counter 1. If it is smaller than the count value, S p is compared with the count value of the counter 0 (F-6). (3) In the comparison between the count threshold value S p and the count value of the counter 0, if S p is greater than or equal to the count value, the class number m is set to 1 (F-7), and S p is greater than the count value of the counter 0. If it is smaller, the class number m is set to 0 (F-8). (4) When the class number m is set, the class number m is output from the terminal 510 (F-9), the classification work for one block is completed, and the counters 0 to 3 are counted. Clear the value to zero (F-1
0). The class number m output from the comparison circuit 58 is a parameter that indicates the range of transform coefficients that are run-length encoded at the time of encoding. That is, the class number is m
It means that the transform coefficients existing in the region where the absolute value of the transform coefficient is 0 or more and Am or less are run-length encoded with respect to the 255 AC components of the block (see FIG. 6).

【0036】図8は符号化装置7の一例である。FIG. 8 shows an example of the encoding device 7.

【0037】クラス分け装置5が1ブロック分のクラス
分け作業を終了すると、符号化装置7は端子79(端子
79は図4の端子510と接続されている)からクラス
番号mを読み込み、量子化LUT73に格納されている
4つの量子化テーブルから量子化に用いるテーブルを1
つ選択すると同時にデータ読み出し回路72にブロック
バッファメモリ6からのデータ読み出し指令を送る。デ
ータ読み出し回路72はブロックバッファメモリ6と接
続されている端子71から直流成分データと、255組
の係数番号kと極性番号j(j=0or1)のペアとを読
み込む。読み込まれたデータが直流成分であれば、端子
78からデータを出力し、読み込まれたデータが係数番
号kと極性番号jのペアであればクラス番号mにより選
択された量子化LUT73内の量子化テーブルによって
係数番号kおよび極性番号jを符
When the classifying device 5 finishes the classifying work for one block, the coding device 7 reads the class number m from the terminal 79 (the terminal 79 is connected to the terminal 510 in FIG. 4) and quantizes it. One of the four quantization tables stored in the LUT 73 is used for quantization.
One of them is selected, and at the same time, a data read command from the block buffer memory 6 is sent to the data read circuit 72. The data read circuit 72 reads the DC component data and 255 pairs of coefficient number k and polarity number j (j = 0 or 1) from the terminal 71 connected to the block buffer memory 6. If the read data is a DC component, the data is output from the terminal 78, and if the read data is a pair of the coefficient number k and the polarity number j, the quantization in the quantization LUT 73 selected by the class number m. The coefficient number k and the polarity number j are marked by the table.

【0038】図9には量子化LUT73内の量子化テー
ブルの一例を示す。
FIG. 9 shows an example of the quantization table in the quantization LUT 73.

【0039】本例は最終的量子化状態が図10に示す一
様量子化となるように、係数番号kを均等に区分けした
例であるが、このほかに係数番号kを不均等に区分けす
ることも可能であり、基本量子化幅w0 の整数倍の最終
的量子化幅で一様でない量子化を行なうことができる。
This example is an example in which the coefficient number k is evenly divided so that the final quantization state becomes the uniform quantization shown in FIG. 10, but in addition to this, the coefficient number k is unevenly divided. It is also possible to perform non-uniform quantization with a final quantization width that is an integral multiple of the basic quantization width w 0 .

【0040】次に交流成分の符号化手順の一例を図11
のフローチャートに示す。
Next, an example of the encoding procedure of the AC component is shown in FIG.
It is shown in the flowchart.

【0041】 タ74aを有するゼロ判定回路74に送られる(P−
1)。符号通過カウンタ カウントアップした後(P−4)、符号通過カウント値
yが255になったかど を出力した後(P−7)符号通過カウント値yが255
になったかどうかを判定する(P−11)。もしゼロカ
ウント値zがゼロでなければゼロカウント値zを符号L
UT77によって可変長符号rz に変換し(P−8)、
ゼロカウント値zをゼロクリアした後(P−9)、rz
を端子78から出力し(P−10)、符号通過カウント
値yが255になったかどうかを判定する(P−1
1)。
[0041] Is sent to the zero decision circuit 74 having the data 74a (P-
1). Code passage counter After counting up (P-4), whether the code passage count value y becomes 255 Is output (P-7), the code passage count value y is 255.
It is determined whether or not (P-11). If the zero count value z is not zero, sign zero count value z
Converted to variable length code r z by UT77 (P-8),
After zero-clearing the zero count value z (P-9), r z
Is output from the terminal 78 (P-10), and it is determined whether the code passage count value y reaches 255 (P-1).
1).

【0042】符号通過カウント値yの判定において、も
しカウント値yが255でなければ 行なう。もし符号通過カウント値yが255であれば
(P−11)、ゼロカウント値zがゼロであるかどうか
を判定し(P−12)、ゼロであれば符号通過カウント
値yをゼロクリアして(P−13)、1ブロック分の変
換係数の符号化作業を終了する。ゼロカウント値zがゼ
ロでなければ符号変換ステップ(P−8)と、ゼロカウ
ント値zのゼロクリアステップ(P−9)と、端子78
への可変長符号rz 出力ステップ(P−10)を経た後
符号通過カウント値yをゼロクリアし(P−13)1ブ
ロック分の変換係数の符号化作業を終了する。
In the judgment of the code passing count value y, if the count value y is not 255 To do. If the code passage count value y is 255 (P-11), it is determined whether the zero count value z is zero (P-12). If it is zero, the code passage count value y is cleared to zero (P-12). P-13) The coding operation of the transform coefficient for one block is completed. If the zero count value z is not zero, a code conversion step (P-8), a zero clear step of the zero count value z (P-9), and a terminal 78
After passing through the variable length code r z output step (P-10) to 0, the code passage count value y is cleared to zero (P-13), and the coding operation of the transform coefficient for one block is completed.

【0043】図12(イ)は符号LUT76の一例を示
す。
FIG. 12A shows an example of the code LUT 76.

【0044】 により、よりシンプルな装置化が可能となる。[0044] This enables a simpler device.

【0045】図12(ロ)は符号LUT77の一例を示
す。
FIG. 12B shows an example of the code LUT 77.

【0046】本例はゼロカウント値zに対して割り当て
られるランレングス符号に各クラス共通のB1符号を用
いた例である。階調画像データを本方式で圧縮する場合
の各ゼロラン長の頻度分布はB1符号に適した指数関数
的分布となるため、B1符号を用いることにより高い圧
縮率を得ることが可能となる。
The present example is an example in which the run length code assigned to the zero count value z uses the B1 code common to each class. When the gradation image data is compressed by this method, the frequency distribution of each zero run length is an exponential distribution suitable for the B1 code, so that it is possible to obtain a high compression rate by using the B1 code.

【0047】なお、図12(イ)および(ロ)において
Cは0か1の値をとる1ビットの符号である。
In FIGS. 12A and 12B, C is a 1-bit code having a value of 0 or 1.

【0048】図13は、図8におけるデータ読み出し回
路72のデータ読み出し順序を示す。
FIG. 13 shows the data read order of the data read circuit 72 in FIG.

【0049】階調画像の変換係数は高周波成分ほど振幅
が小さくなる傾向が強いため、ゼロに量子化される成分
の発生する確率も高周波成分ほど高くなる。従って、図
13(イ)もしくは(ロ)に示すように、低周波側から
高周波方向に向かって符号化すれば長いゼロランが発生
する確率が高まり、有効なランレングス符号化を行なう
ことができる。
Since the conversion coefficient of the gradation image tends to have a smaller amplitude in the higher frequency component, the probability of occurrence of a component quantized to zero becomes higher in the higher frequency component. Therefore, as shown in FIG. 13A or 13B, if coding is performed from the low frequency side toward the high frequency direction, the probability that a long zero run will occur is increased, and effective run length coding can be performed.

【0050】図14に符号構成の一例を示す。FIG. 14 shows an example of the code structure.

【0051】図14(イ)は1フレームの画像全体を圧
縮した結果の符号例であり、ヘッダ部と、それに続く各
ブロックの符号と、データ終了符号とから成る。
FIG. 14A shows a code example as a result of compressing the entire image of one frame, which is composed of a header part, a code of each block following the header part, and a data end code.

【0052】図14(ロ)はヘッダ部構成の一例であ
り、ブロックサイズ(本例では16)、画像ライン方向
のブロック数、画像カラム方向のブロック数および圧縮
率パラメータPが格納されている。
FIG. 14B shows an example of the header structure, which stores the block size (16 in this example), the number of blocks in the image line direction, the number of blocks in the image column direction, and the compression ratio parameter P.

【0053】図14(ハ)は各ブロックの符号構成の一
例であり、クラス番号m(本例では2ビットの固定長符
号)、直流成分符号(固定長符号)、それに続く交流成
分符号列(可変長符号列)より成る。交流成分符号列は
図14(ニ)に示すような z )とが交互に並ぶ構成となる。
FIG. 14C shows an example of the code structure of each block. The class number m (2-bit fixed length code in this example), the DC component code (fixed length code), and the following AC component code string ( Variable length code string). The AC component code string is as shown in FIG. r z ) are arranged alternately.

【0054】以下に本実施例に用いた各種パラメータの
一例を示す。
An example of various parameters used in this embodiment is shown below.

【0055】基本量子化幅w0 =0.5 A0 =0.5, A1 =1.0 A2 =1.5, A3 =2.0 S0 =200, S1 =225 なお上記パラメータは原画像の画素当たりの情報量がn
ビット(本例ではn=8)でブロックサイズがN×N
(本例ではN=16)のとき、ブロック画像をf(x,
y)、変換係数行列をF(u,v)で表した2次元デス
クリートコサイン変換式(数2に示す)をフローティン
グポイントで計算した場合の値である。
Basic quantization width w 0 = 0.5 A 0 = 0.5, A 1 = 1.0 A 2 = 1.5, A 3 = 2.0 S 0 = 200, S 1 = 225 The parameter is the amount of information per pixel of the original image is n
The block size is N × N in bits (n = 8 in this example)
When (N = 16 in this example), the block image is f (x,
y) is a value when the two-dimensional discrete cosine transform formula (shown in Formula 2) in which the transform coefficient matrix is represented by F (u, v) is calculated at the floating point.

【0056】[0056]

【数2】 また本発明においては、2次元ディスクリートコサイン
変換装置3の代わりに、ほかの直交変換装置、たとえば
2次元でディスクリートなアダマール変換装置、スラン
ト変換装置などを用いてもよい。また本発明ではブロッ
クサイズを16×16のサイズに限定するものではな
く、8×8、32×32、64×64などのサイズでも
適応可能であり、また原画像の1画素当たりのビット数
も8ビットに限定するものではない。またクラス分け装
置5において、特定区間内の係数番号kをカウントする
際、特定区間を多数設けず、1つの特定区間内に存在す
る係数番号kの個数の大小に基づいてクラス分けを行な
うことも可能である。また、本発明におけるクラス分け
パラメータを他のクラス分けパラメータと組み合わせて
クラス分けを行なうことも可能である。
[Equation 2] In the present invention, instead of the two-dimensional discrete cosine transform device 3, another orthogonal transform device such as a two-dimensional discrete Hadamard transform device or slant transform device may be used. Further, in the present invention, the block size is not limited to the size of 16 × 16, and the size of 8 × 8, 32 × 32, 64 × 64, etc. can be applied, and the number of bits per pixel of the original image is also applicable. It is not limited to 8 bits. Further, in the classifying device 5, when counting the coefficient numbers k in a specific section, the classification may be performed based on the number of coefficient numbers k existing in one specific section without providing a large number of specific sections. It is possible. It is also possible to combine the classification parameters of the present invention with other classification parameters for classification.

【0057】[0057]

【発明の効果】以上説明したように、本発明において
は、クラス分けのパラメータの1つにゼロに量子化され
る変換係数交流成分の発生頻度(個数)を用いることに
より、復元画像の画質、特にMid−trace型量子
化の欠点である成分固有のパターン画像の発生度合に基
づいたクラス分けが可能となり、たとえば頻度の高いブ
ロックは頻度を低くするように量子化幅を決めることに
より、パターン画像の発生を抑制し、高画質の復元画像
を得ることができる。
As described above, in the present invention, by using the occurrence frequency (the number) of the conversion coefficient AC component quantized to zero as one of the classification parameters, the image quality of the restored image, In particular, classification based on the degree of occurrence of component-specific pattern images, which is a drawback of Mid-trace type quantization, becomes possible. For example, by determining the quantization width so that the frequency of a block with high frequency is low, the pattern image It is possible to suppress the occurrence of the above and obtain a high-quality restored image.

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

【図1】本発明による階調画像データ圧縮装置の一実施
例のブロック線図である。
FIG. 1 is a block diagram of an embodiment of a gradation image data compression device according to the present invention.

【図2】図1に示した量子化装置の一例のブロック線図
である。
FIG. 2 is a block diagram of an example of the quantization device shown in FIG.

【図3】変換係数交流成分を量子化して得られる係数番
号と極性番号とを変換係数の発生頻度との関係で示す図
である。
FIG. 3 is a diagram showing a relationship between a coefficient number and a polarity number obtained by quantizing a conversion coefficient AC component in relation to a conversion coefficient occurrence frequency.

【図4】図1に示したクラス分け装置の一例のブロック
線図である。
FIG. 4 is a block diagram of an example of the classification device shown in FIG.

【図5】(イ)はカウンタ制御LUT、(ロ)は圧縮率
制御LUT、(ハ)は第2次カウンタ制御コードと各カ
ウンタの対応関係、(ニ)はカウント閾値LUTをそれ
ぞれ示す図である。
5A is a diagram showing a counter control LUT, FIG. 5B is a compression ratio control LUT, FIG. 5C is a correspondence relation between secondary counter control codes and counters, and FIG. 5D is a count threshold LUT. is there.

【図6】(イ)および(ロ)はカウンタ回路内の各カウ
ンタの動作範囲を示す図である。
6A and 6B are diagrams showing the operation range of each counter in the counter circuit.

【図7】比較回路の比較手順を示すフローチャートであ
る。
FIG. 7 is a flowchart showing a comparison procedure of a comparison circuit.

【図8】図1に示した符号化装置の一例のブロック線図
である。
8 is a block diagram of an example of the encoding device shown in FIG.

【図9】図8に示した量子化LUTの一例である。9 is an example of the quantization LUT shown in FIG.

【図10】最終的量子化状態の一例である。FIG. 10 is an example of a final quantization state.

【図11】図1に示した符号化装置による交流成分符号
化手順を示すフローチャートである。
11 is a flowchart showing an AC component encoding procedure by the encoding device shown in FIG.

【図12】(イ)および(ロ)はそれぞれ図8の2つの
符号LUTの一例である。
12A and 12B are examples of the two code LUTs of FIG.

【図13】(イ)および(ロ)は図8のデータ読み出し
回路におけるデータ読み出し順序を示す図である。
13A and 13B are diagrams showing a data read order in the data read circuit of FIG.

【図14】(イ)、(ロ)、(ハ)、(ニ)、(ホ)は
符号構成の内容の一例を示す図である。
14 (a), (b), (c), (d), and (e) are diagrams showing an example of the contents of the code configuration.

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

1 フレームメモリ 2 読み出し装置 3 2次元ディスクリートコサイン変換装置 4 量子化装置 5 クラス分け装置 6 ブロックバッファメモリ 7 符号化装置 1 frame memory 2 read-out device 3 two-dimensional discrete cosine transform device 4 quantizer 5 classification device 6 block buffer memory 7 encoder

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 デジタル化された階調画像データをブロ
ック画像単位に順次読み出す読み出し手段と、 該読み出されたブロック画像に対して2次元直交変換を
行って変換係数データを得る2次元直交変換手段と、 該変換係数データの統計量をブロック単位に計算し、計
算結果の統計量に基づいて該ブロックを複数のクラスに
分類するクラス分け手段と、 前記分類結果に基づいて前記変換係数データを所定の量
子化幅で量子化し、符号化する符号化手段とを有し、 前記ブロックと前記ブロックに割当てられる量子化幅と
の対応付けが前記クラス分け手段に与えられるパラメー
タによって制御されることを特徴とする階調画像データ
の圧縮装置。
1. A reading means for sequentially reading digitized gradation image data in block image units, and a two-dimensional orthogonal transformation for obtaining transform coefficient data by performing two-dimensional orthogonal transformation on the read block image. Means, a classifying means for calculating a statistic of the transform coefficient data in block units, and classifying the block into a plurality of classes based on the statistic of the calculation result, and the transform coefficient data based on the classification result. Quantizing with a predetermined quantization width, and coding means for coding, and the correspondence between the block and the quantization width assigned to the block is controlled by a parameter given to the classification means. Characteristic gradation image data compression device.
【請求項2】 前記パラメータによって、前記クラス分
け手段に入力される一部もしくはすべてのデータの値を
修正することにより、少なくとも1つのブロックと、前
記クラス分け手段によって前記ブロックに割当てられる
量子化幅との間の対応付けが制御されることを特徴とす
る請求項1に記載の階調画像データの圧縮装置。
2. At least one block and a quantization width assigned to the block by the classifying unit by modifying the value of a part or all of the data input to the classifying unit by the parameter. The gradation image data compression apparatus according to claim 1, wherein the correspondence between the image data and the image data is controlled.
【請求項3】 前記パラメータによって、前記クラス分
け手段の統計量計算方法を修正することにより、少なく
とも1つのブロックと、前記クラス分け手段によって前
記ブロックに割当てられる量子化幅との間の対応付けが
制御されることを特徴とする請求項1に記載の階調画像
データの圧縮装置。
3. The correspondence between at least one block and the quantization width assigned to the block by the classifying unit is modified by modifying the statistic calculation method of the classifying unit with the parameter. The gradation image data compression device according to claim 1, wherein the compression device is controlled.
【請求項4】 前記2次元直交変換が2次元ディスクリ
ート変換であることを特徴とする請求項1に記載の階調
画像データの圧縮装置。
4. The gradation image data compression apparatus according to claim 1, wherein the two-dimensional orthogonal transformation is a two-dimensional discrete transformation.
【請求項5】 前記パラメータによって、前記クラス分
け手段が前記各ブロックに割当てるクラスと、該クラス
分け手段が各ブロックに割当てる量子化幅との間の対応
付けが修正されることにより、少なくとも1つのブロッ
クと、前記クラス分け手段によって前記ブロックに割当
てられる量子化幅との間の対応付けが制御されることを
特徴とする請求項1に記載の階調画像データの圧縮装
置。
5. The parameter corrects the correspondence between the class assigned to each of the blocks by the classifying unit and the quantization width assigned to each of the blocks by the classifying unit, whereby at least one of the blocks is corrected. The gradation image data compression apparatus according to claim 1, wherein the correspondence between a block and a quantization width assigned to the block is controlled by the classification unit.
JP7067612A 1995-03-27 1995-03-27 Compressing device for gradation picture data Pending JPH07283948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7067612A JPH07283948A (en) 1995-03-27 1995-03-27 Compressing device for gradation picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7067612A JPH07283948A (en) 1995-03-27 1995-03-27 Compressing device for gradation picture data

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP7977587A Division JP2811304B2 (en) 1987-04-02 1987-04-02 Method of compressing gradation image data

Publications (1)

Publication Number Publication Date
JPH07283948A true JPH07283948A (en) 1995-10-27

Family

ID=13349959

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7067612A Pending JPH07283948A (en) 1995-03-27 1995-03-27 Compressing device for gradation picture data

Country Status (1)

Country Link
JP (1) JPH07283948A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU714554B2 (en) * 1996-07-17 2000-01-06 Sony Corporation Image coding and decoding using mapping coefficients corresponding to class information of pixel blocks
KR100598754B1 (en) * 1996-07-17 2006-10-24 소니 가부시끼 가이샤 Device for coding original image data, device for decoding coded image data, method for coding original image data, method for decoding coded image data, method for transmitting image data, computer-readable storing media

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IEEE TRANSACTIONS ON COMMUNICATIONS=1977 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU714554B2 (en) * 1996-07-17 2000-01-06 Sony Corporation Image coding and decoding using mapping coefficients corresponding to class information of pixel blocks
KR100598754B1 (en) * 1996-07-17 2006-10-24 소니 가부시끼 가이샤 Device for coding original image data, device for decoding coded image data, method for coding original image data, method for decoding coded image data, method for transmitting image data, computer-readable storing media

Similar Documents

Publication Publication Date Title
US4922273A (en) Compression method of halftone image data
KR930009872B1 (en) Changing coding apparatus
JP4927888B2 (en) Lossless intraframe coding using Golomb-Rice
JP2800633B2 (en) Image coding device
JP2633793B2 (en) Method and apparatus for variable length encoding / decoding of video data
US7782960B2 (en) DCT compression using Golomb-Rice coding
JPH0258814B2 (en)
WO1997034375A1 (en) Method for reducing storage requirements for digital data
JPS61161871A (en) Apparatus for compression of data of binary bit indicating pixel of image dithered in digital picture processing process
JPH05316360A (en) Coding/decoding device for picture signal
JPH08116447A (en) Coder for image signal
JPH07123269A (en) Corder for picture signal
JP3163880B2 (en) Image compression coding device
JPH07283948A (en) Compressing device for gradation picture data
JP2841197B2 (en) Method of compressing gradation image data
JP3293362B2 (en) Image compression device and image decompression device
JP2811304B2 (en) Method of compressing gradation image data
JP2511669B2 (en) Compressor for gradation image data
JP2821496B2 (en) Method of compressing gradation image data
WO1998054841A1 (en) Data compressing device by permutation encoding and decompressing device
JP2874003B2 (en) High efficiency coding apparatus and coding method
JP3232160B2 (en) Encoding device and method
JP2950559B2 (en) Image processing method and apparatus
JP3347409B2 (en) Image coding apparatus and method
JPH0448310B2 (en)

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19960705