JPH03224363A - Compressed data quantity control system - Google Patents

Compressed data quantity control system

Info

Publication number
JPH03224363A
JPH03224363A JP2018077A JP1807790A JPH03224363A JP H03224363 A JPH03224363 A JP H03224363A JP 2018077 A JP2018077 A JP 2018077A JP 1807790 A JP1807790 A JP 1807790A JP H03224363 A JPH03224363 A JP H03224363A
Authority
JP
Japan
Prior art keywords
data
amount
compression
quantization
value
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
JP2018077A
Other languages
Japanese (ja)
Inventor
Hirofumi Sakagami
弘文 阪上
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 JP2018077A priority Critical patent/JPH03224363A/en
Publication of JPH03224363A publication Critical patent/JPH03224363A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野] この発明は静止画像データを圧縮して伝送または記録す
る際に、圧縮後のデータ量が要求されるデータ量以下と
なるように圧縮率を制御するデータ量制御方式に関する
[Detailed Description of the Invention] [Industrial Application Field] This invention improves the compression ratio when compressing still image data and transmitting or recording it so that the amount of data after compression is less than or equal to the required amount of data. This invention relates to a method for controlling the amount of data to be controlled.

〔従来の技術〕[Conventional technology]

自然画符号化方式の標準化を図るために“’Ba5e−
1ine System″や’Extended Sy
stem″等の各種国際標準化方式が提案されている。
In order to standardize the natural image coding method, "'Ba5e-
1ine System'' or 'Extended Sy
Various international standardization methods such as "stem" have been proposed.

第4図は国際標準化方式のうちの“Ba5elineS
ys tem“°の処理手順を示す概略図である。この
システムは一枚の入力画像を1ブロック8×8画素の複
数ブロックに分割し、各ブロック毎に2次元の離散コサ
イン変換(D CT : Discrete Cosi
neTransform)を行い(処理PL)、得られ
るOCT係数に8×8個の閾値からなる量子化マトリク
スの各閾値を除算することにより量子化を行う(処理P
2)。第5図および第6図は輝度信号用および色差信号
用の量子化マトリクスの例である。
Figure 4 shows “Ba5elineS”, one of the international standardization methods.
This system divides one input image into multiple blocks of 8×8 pixels, and performs two-dimensional discrete cosine transformation (D CT: Discrete Cosi
neTransform) (processing PL), and quantization is performed by dividing the obtained OCT coefficients by each threshold of a quantization matrix consisting of 8 x 8 thresholds (processing PL).
2). FIGS. 5 and 6 are examples of quantization matrices for luminance signals and color difference signals.

量子化したDCT係数のうち直流(DC)成分は前のブ
ロックで量子化したDC成分との差分を取り、その差分
のビット数をハフマン符号化する。
The difference between the direct current (DC) component of the quantized DCT coefficient and the DC component quantized in the previous block is taken, and the number of bits of the difference is Huffman encoded.

交流(AC)成分はブロック内でジグザグスキャンを行
って一次元の数列に変換し、有効係数のビット数と連続
する零(無効係数)の個数とで2次元のハフマン符号化
を行う(処理P3およびP4)。
The alternating current (AC) component is converted into a one-dimensional sequence by performing zigzag scanning within the block, and then subjected to two-dimensional Huffman encoding using the number of bits of effective coefficients and the number of consecutive zeros (invalid coefficients) (Process P3 and P4).

第7図にジグザグスキャンのテーブルの一例を示す。FIG. 7 shows an example of a zigzag scan table.

なお、処理P2における量子化のときに、量子化マトリ
クスの各閾値に対しである係数(スケールファクタ)を
乗算したのちDCT係数の除算を行う。スケールファク
タは「2SJ  (S=0.±1゜±2.・・・)で表
現される値で、量子化マトリクスの各閾値にスケールフ
ァクタ2Sを乗算することば各閾値のディジタルデータ
をビットシフトすることに相当する。圧縮画像の画質お
よび圧縮率はこのスケールファクタによって調整する。
Note that during quantization in process P2, each threshold value of the quantization matrix is multiplied by a certain coefficient (scale factor), and then the DCT coefficient is divided. The scale factor is a value expressed as 2SJ (S=0.±1゜±2....), and each threshold value of the quantization matrix is multiplied by the scale factor 2S.The digital data of each threshold value is bit-shifted. The image quality and compression rate of the compressed image are adjusted by this scale factor.

こうして圧縮したデータは、処理PL−P4とは逆の処
理によって伸張する。すなわち、処理P5におけるハフ
マン復号化、処理P6におけるDC成分およびAC成分
の復号化、処理P7における逆量子化および処理P8に
おける逆DCT (IDCT)である。
The data compressed in this way is decompressed by a process opposite to process PL-P4. That is, Huffman decoding in process P5, decoding of DC and AC components in process P6, inverse quantization in process P7, and inverse DCT (IDCT) in process P8.

ところで、このシステムでは可変長符号であるハフマン
符号を用いてデータ圧縮を行っているため、圧縮後の全
データ量は圧縮工程(処理P1〜P4)が終了するまで
知ることが出来ない。このため、予め設定したデータ量
の範囲内で符号化する必要がある場合は、何らかのデー
タ量の制御が必要となる。従来は複数種類のスケールフ
ァクタで圧縮を行い、それぞれの場合の圧縮後のデータ
量を測定してスケールファクタと圧縮後のデータ量との
関係を求め、圧縮後のデータ量に対応するスケールファ
クタを類推してこの類推したスケールファクタによって
データ圧縮を行うようにしている。
By the way, since this system performs data compression using a Huffman code, which is a variable length code, the total amount of data after compression cannot be known until the compression process (processes P1 to P4) is completed. Therefore, if it is necessary to encode within a preset data amount range, some kind of data amount control is required. Conventionally, compression was performed using multiple types of scale factors, the amount of data after compression was measured in each case, the relationship between the scale factor and the amount of data after compression was found, and the scale factor corresponding to the amount of data after compression was calculated. By analogy, data compression is performed using this analogous scale factor.

圧縮後のデータ量とスケールファクタとの関係は多くの
画像の測定結果から次のような関係にあることが石育認
されている。
It has been recognized from the measurement results of many images that the relationship between the amount of data after compression and the scale factor is as follows.

[データ量]=Alog[スケールファクタ]+B・・
・・■ (A、、B:測定点によって決まる定数)従って、測定
結果からA、Bを求め、必要とする圧縮後のデータ量に
対するスケールファクタを推定することが出来る。8画
像の実験結果では、要求されるデータ量に対して±5%
以下の誤差で制御できることが報告されている(198
9年電子情報通信学会秋季全国大会論文集D−45)。
[Data amount] = Alog [scale factor] + B...
...■ (A, , B: constants determined by measurement points) Therefore, it is possible to obtain A and B from the measurement results and estimate the scale factor for the required amount of data after compression. In the experimental results of 8 images, ±5% of the required data amount
It has been reported that it can be controlled with the following error (198
Proceedings of the 9th IEICE Autumn National Conference D-45).

(発明が解決しようとする課題〕 ところで、前述のデータ量制御方式によると、圧縮した
データを記録媒体に記録する際に、すでに記録されてい
る一枚分の画像データを消去してその領域に記録する場
合、推定したスケールファクタにプラスの誤差が生して
いると記録する圧縮データがその領域に入り切らないと
いう不都合がある。
(Problem to be Solved by the Invention) By the way, according to the data amount control method described above, when recording compressed data on a recording medium, the image data for one sheet that has already been recorded is erased and the data is used in that area. When recording, there is a problem that if there is a positive error in the estimated scale factor, the compressed data to be recorded will not fit into that area.

また、前述の処理手順ではスケールファクタを実数とし
て扱っており、スケールファクタを2sの形で用いると
2倍または172倍の変化幅で量子化ステップ幅を制御
することになるため、データ量の誤差がさらに大きくな
ることが予想される。
In addition, in the above processing procedure, the scale factor is treated as a real number, and if the scale factor is used in the form of 2s, the quantization step width will be controlled with a change width of 2 times or 172 times, so the error in the amount of data will be is expected to grow even larger.

この発明は圧縮後のデータ量を確実に要求されるデータ
量以下とするようにする圧縮データ量制御方式を提供す
ることを目的とする。
An object of the present invention is to provide a compressed data amount control method that ensures that the amount of data after compression is less than or equal to the required amount of data.

〔課題を解決するための手段〕[Means to solve the problem]

この発明は、−枚のディジタル画像を、lブロックn×
n画素からなる複数のブロックに分割し、各ブロック毎
に離散コサイン変換を行い、変換して得られるn×n個
の変換係数を、それぞれ所定の係数2s (S=0.±
1.±2.・・・)が乗算されたn×n個の閾値からな
る量子化マトリクスの各閾値で除算して量子化を行い、
量子化後のデータを可変長符号化する画像データ圧縮方
式であって、係数2sの巾Sに第1および第2の値S1
およびS2をそれぞれ設定して量子化および符号化を行
い、得られる圧縮後のデータ量■1および■2から圧縮
後のデータ量が所望の設定値■3となる巾Sの値S3を
推定し、巾Sをこの推定値Saに設定して量子化および
符号化を行い、圧縮後のデータ量が設定値V3を超える
場合は巾Sに「1」を加えて量子化ステップ幅を大きく
した後、再び量子化および符号化を行い、圧縮後のデー
タ量が設定値V3以下となるまでこれらの処理を繰り返
し、圧縮後のデータ量が設定値V8以下となるようにす
る。
In this invention, - digital images are divided into l blocks n×
Divide into a plurality of blocks each consisting of n pixels, perform discrete cosine transformation for each block, and convert the n×n transform coefficients obtained by the transform into predetermined coefficients 2s (S=0.±).
1. ±2. ...) is multiplied by each threshold value of a quantization matrix consisting of n×n threshold values to perform quantization,
An image data compression method in which quantized data is variable-length coded, and the width S of the coefficient 2s has first and second values S1.
and S2 respectively, perform quantization and encoding, and estimate the value S3 of the width S at which the data amount after compression becomes the desired setting value ■3 from the resulting compressed data amounts ■1 and ■2. , perform quantization and encoding by setting the width S to this estimated value Sa, and if the amount of data after compression exceeds the set value V3, add "1" to the width S to increase the quantization step width. , performs quantization and encoding again, and repeats these processes until the amount of data after compression becomes less than or equal to the set value V3, so that the amount of data after compression becomes less than or equal to the set value V8.

[作 用] この発明は、離散コサイン変換して得られる変換係数に
量子化マトリクスの各閾値を除算して量子化し、この量
子化した変換係数にハフマン符号化のような可変長符号
化を施してデータ圧縮する際に、量子化マトリクスの各
閾値に所定の係数2Sを乗算し、巾Sの値を変化させる
ことによって量子化ステップ幅を変化させ、圧縮後のデ
ータ量が所望の設定値となるように調整するもので、ま
ず、特定の値S1を係数2sの巾Sとして設定し、前述
の量子化および符号化を行い、得られる圧縮後のデータ
量を■1とする。次いで、他の特定の値S2を係数2s
の巾Sとして設定し、同様に量子化および符号化を行い
、得られる圧縮後のデータ量を■2とする。
[Operation] This invention quantizes the transform coefficients obtained by discrete cosine transform by dividing each threshold value of a quantization matrix, and performs variable length encoding such as Huffman encoding on the quantized transform coefficients. When compressing data, each threshold value of the quantization matrix is multiplied by a predetermined coefficient 2S, and the quantization step width is changed by changing the value of width S, so that the amount of data after compression matches the desired setting value. First, a specific value S1 is set as the width S of the coefficient 2s, the above-mentioned quantization and encoding are performed, and the resulting compressed data amount is set to 1. Then, another specific value S2 is set to the coefficient 2s
The width of S is set as S, quantization and encoding are performed in the same way, and the amount of data after compression obtained is 2.

圧縮後のデータ量とスケールファクタとは特定の関係に
あるので、ケールファクク2Sの巾Sの値St 、S2
とデータ量v1.v2とから所望のデータ量■8に対す
る巾Sの値S3を推定し、この推定値S8で量子化およ
び符号化を行い、得られる圧縮後のデータ量が要求され
るデータ量V3であれば処理を終了する。
Since there is a specific relationship between the amount of data after compression and the scale factor, the value St of the width S of Kale Fakku 2S, S2
and data amount v1. Estimate the value S3 of the width S for the desired data amount ■8 from v2, perform quantization and encoding using this estimated value S8, and process if the resulting compressed data amount is the required data amount V3. end.

もし、圧縮後のデータ量がデータ量■3を超えていれば
巾Sに「l」を加えて量子化ステップ幅を大きくし、再
びデータ圧縮を行う。それでもまだ要求されるデータ量
Vaを超えていれば、さらに巾Sに「1」を加えてデー
タ圧縮する。これら一連の処理は圧縮後のデータ量が必
要とされるデータ量■3以下となるまで繰り返され、圧
縮後のデータ量が要求されるデータ量V8以下となった
ところで処理を終了する。
If the data amount after compression exceeds the data amount ■3, "l" is added to the width S to increase the quantization step width, and data compression is performed again. If the amount of data still exceeds the required data amount Va, "1" is further added to the width S to compress the data. These series of processes are repeated until the amount of data after compression becomes less than or equal to the required amount of data (2)3, and the processing is terminated when the amount of data after compression becomes less than or equal to the required amount of data, V8.

このようにすれば、圧縮後のデータ量は確実に所望のデ
ータ量以下となり、すでに記録されている一枚分の画像
データを消去してその領域に新たな圧縮データを記録す
る場合でも、記録する圧縮データがそめ領域に入り切ら
ないという不都合は生じない。
In this way, the amount of data after compression will definitely be less than the desired amount of data, and even if you erase one image's worth of image data that has already been recorded and record new compressed data in that area, you will be able to There is no problem that the compressed data cannot fit into the area.

(実施例) 第1図はこの発明による圧縮データ量制御方式の処理手
順の一実施例を示す概略図で、第4図と同一部分には同
一符号を付して説明する。
(Embodiment) FIG. 1 is a schematic diagram showing an embodiment of the processing procedure of the compressed data amount control system according to the present invention, and the same parts as in FIG. 4 are given the same reference numerals and will be described.

まず、入力画像データを、水平および垂直方向にn×n
画素、例えば8×8画素からなる複数のブロックに分割
し、各ブロック毎に2次元の離散コサイン変換(DCT
)を施す(処理Pi)。
First, the input image data is divided into n×n pixels in the horizontal and vertical directions.
Pixels are divided into multiple blocks of, for example, 8×8 pixels, and each block is subjected to two-dimensional discrete cosine transformation (DCT).
) is applied (processing Pi).

DCTは周波数領域における直交変換の一種であり、変
換係数をF(u、v) 、1ブロック分の入力画像デー
タをf (i、j)とすると、但し、C(w)=i/J
2  (w=o)−1(W≠0) と定義され、得られる変換係数F (u、v)は1ブロ
ック分の入力画像データを空間周波数に分解した成分を
示している。
DCT is a type of orthogonal transformation in the frequency domain. Let F(u, v) be the transform coefficient, and f (i, j) be the input image data for one block. However, C(w)=i/J
2 (w=o)-1 (W≠0), and the obtained transformation coefficient F (u, v) indicates a component obtained by decomposing one block of input image data into spatial frequencies.

変換係数F(0,0)は入力画像データf (i、j)
のn×n画素の平均値に比例した値(DC成分)を示し
ており、F(u、v)において、u、vが大きくなるに
つれて空間周波数の高い成分(AC成分)を示す。
The conversion coefficient F (0, 0) is the input image data f (i, j)
It shows a value (DC component) proportional to the average value of n×n pixels of F(u,v), and as u and v become larger, a component (AC component) of higher spatial frequency shows.

このようにして得られる2次元DCT係数に対し、n×
n個の閾値からなる量子化マトリクスの各閾値にそれぞ
れスケールファクタ2sを乗算した値を除算して量子化
を行う(処理P2)。スケールファクタ2sによる量子
化マトリクスの各閾値に対する乗算処理は、前述したよ
うに量子化マトリクスの各閾値をビットシフトすること
に相当し、圧縮後のデータ量の増減はこのスケールファ
クタによって調整できる。
For the two-dimensional DCT coefficients obtained in this way, n×
Quantization is performed by dividing a value obtained by multiplying each threshold value of a quantization matrix consisting of n threshold values by a scale factor 2s (processing P2). The multiplication process for each threshold value of the quantization matrix by the scale factor 2s corresponds to bit-shifting each threshold value of the quantization matrix as described above, and the increase or decrease in the amount of data after compression can be adjusted by this scale factor.

次に、量子化した変換係数F’(u、ν)に対し、DC
成分については前のブロックで量子化したDC成分と差
分を取り(処理P3)、差分のビット数をハフマン符号
化する(処理P4)。AC成分については、第7図に示
す順序でジグザグスキャンを行い一次元の数列に変換し
た後、連続する零データの個数を圧縮するランレングス
符号化を行い(処理P3)、さらにランレングス符号化
した連続する零データの個数データと有効係数のピッ1
−敗データとで2次元のハフマン符号化を行う(処理P
4)。
Next, for the quantized transform coefficient F'(u, ν), DC
For the component, a difference is taken from the DC component quantized in the previous block (processing P3), and the number of bits of the difference is Huffman encoded (processing P4). For the AC component, zigzag scanning is performed in the order shown in Figure 7 to convert it into a one-dimensional number sequence, and then run-length encoding is performed to compress the number of consecutive zero data (processing P3), and further run-length encoding is performed. Number of consecutive zero data and effective coefficient Pip1
- Perform two-dimensional Huffman encoding with loss data (processing P
4).

ハフマン符号化はDC成分およびAC成分共に量子化し
た係数値そのものを使用せず、その値を表現するのに必
要なビット数をハフマン符号化する。そしてハフマン符
号とは別にそのビット数の値を付加情報として付は加え
る。例えば、量子化した係数が2(10進数)とした場
合、2進数で表現すると“000・・・010″°とな
るが、これを表現するのに必要なビット数2をこの値を
代表する値としてハフマン符号化し、2ビツトのデータ
゛10°゛を付加ビットとして付加する。
Huffman encoding does not use the quantized coefficient values themselves for both DC and AC components, but performs Huffman encoding on the number of bits necessary to express the values. In addition to the Huffman code, the value of the number of bits is added as additional information. For example, if the quantized coefficient is 2 (decimal number), it will be expressed in binary as "000...010"°, but the number of bits required to express this, 2, will represent this value. Huffman encoding is performed as a value, and 2-bit data "10°" is added as an additional bit.

他方、量子化した係数が負の場合は付加ビットから1を
引いたデータを付加する。例えば、量子化した係数が−
2(10進数)であるとすると、2進数(2の補数表示
)で表現すると“111・・・110°゛となり、下2
ビットが付加ビットとなるが、“10゛から「1」を引
いた′01°°を付加ビットとして付加する。こうする
ことにより、量子化した係数が正のときは付加ビットは
1で始まり、負であればOで始まることになり、正負の
判別が容易に行える。
On the other hand, if the quantized coefficient is negative, data obtained by subtracting 1 from the additional bit is added. For example, if the quantized coefficient is −
2 (decimal number), when expressed in binary number (2's complement representation), it becomes "111...110°", and the lower 2
The bit becomes an additional bit, and '01°°, which is "10" minus "1", is added as an additional bit. By doing so, when the quantized coefficient is positive, the additional bit starts with 1, and when it is negative, it starts with O, making it easy to determine whether it is positive or negative.

次いで、圧縮後のデータ量を測定し、全データ量が要求
されるデータ量を超えている場合は、スケールファクタ
2Sの巾Sを調整して処理P2における量子化ステップ
幅を大きくし、圧縮後のデータ量を減少させる(処理P
IO)。
Next, the amount of data after compression is measured, and if the total amount of data exceeds the required amount of data, the width S of the scale factor 2S is adjusted to increase the quantization step width in processing P2, and the amount of data after compression is (Processing P
IO).

第2図のフローチャートを参照して動作を説明すると、
まずスケールファクタ2Sの巾Sの値を特定の値S1に
設定しくステップT1)、処理P2〜P4におけるデー
タ圧縮処理を行い(ステップT2)、得られる圧縮後の
データ量を■1とする(ステップT3)。
The operation will be explained with reference to the flowchart in Figure 2.
First, set the value of the width S of the scale factor 2S to a specific value S1 (step T1), perform data compression processing in processes P2 to P4 (step T2), and set the obtained data amount after compression to 1 (step T3).

次いで、スケールファクタ2Sの巾Sの値を他の特定の
値S2  (St≠32)に設定しくステラツボ4)、
処理P2〜P4におけるデータ圧縮処理を行い(ステッ
プT5)、得られる圧縮後のデータ量を■2とする(ス
テップT6)。
Next, set the value of the width S of the scale factor 2S to another specific value S2 (St≠32).
Data compression processing in processes P2 to P4 is performed (step T5), and the resulting compressed data amount is set to 2 (step T6).

圧縮後のデータ量とスケールファクタとは前述の式■の
関係にあるので、この式に値S i q V iおよび
値S2.V2を代入して値A、Bを求め、要求されるデ
ータ量■3に対応するスケールファクタ2sの巾Sの値
を式■から求め、推定値Saとする(ステップT7)。
Since the amount of data after compression and the scale factor are in the relationship shown in the above equation (2), the values S i q V i and the value S2. V2 is substituted to obtain the values A and B, and the value of the width S of the scale factor 2s corresponding to the required data amount (3) is found from the equation (2) and set as the estimated value Sa (step T7).

値S1〜Saとデータ11tVt〜■3とは、第3図に
示すような関係になる。
The values S1 to Sa and the data 11tVt to ■3 have a relationship as shown in FIG.

次いで、推定値S3をスケールファクタ2Sの1113
としくステップT8)、処理P2〜P4におけるデータ
圧縮処理を行い(ステップT9)、得られる圧縮後のデ
ータ量が要求されるデータ量V3以下となるか否か判断
しくステップT10)、データ量■3以下であれば処理
を終了する。
Next, the estimated value S3 is scaled by 1113 with a scale factor of 2S.
Then, in step T8), data compression processing in processes P2 to P4 is performed (step T9), and it is determined whether the resulting compressed data amount is less than or equal to the required data amount V3.Step T10), the data amount ■ If the number is 3 or less, the process ends.

圧縮後のデータ量がデータ量■3を超える場合は、巾S
 (Ss )に「1」を加え(ステップT11)、再び
処理P2〜P4におけるデータ圧縮処理を行い(ステッ
プT9)、圧縮したデータ量が所定のデータ量■3以下
となるか否かを再び判断する(ステ・ンブT10)。こ
うしてステ・ンブT9〜TIOの処理を繰り返し、圧縮
後のデータ量が要求されるデータ量■3以下となると処
理を終了する。
If the amount of data after compression exceeds 3, the width S
Add "1" to (Ss) (step T11), perform the data compression process in processes P2 to P4 again (step T9), and judge again whether the compressed data amount is less than the predetermined data amount ■3 (Stephenbu T10). In this way, the processing of steps T9 to TIO is repeated, and when the amount of data after compression becomes less than the required data amount (3), the processing is terminated.

〔発明の効果] この発明によれば、2つのスケールファクタでデータ圧
縮して圧縮後のデータ量を測定し、この測定結果から要
求される圧縮後のデータ量に対応するスケールファクタ
を推定し、この推定値によってデータ圧縮を行い、圧縮
後のデータ量が要求されるデータ量以下になるまで推定
したスケールファクタの値を順次増加させて圧縮処理を
繰り返し、圧縮後のデータ量が要求されたデータ量以下
となるとデータ圧縮を終了するようにしたので、圧縮後
のデータ量を確実に要求されるデータ量以下にすること
が出来る。
[Effects of the Invention] According to the present invention, data is compressed using two scale factors, the amount of data after compression is measured, and a scale factor corresponding to the required amount of data after compression is estimated from the measurement result, Data is compressed based on this estimated value, and the compression process is repeated by sequentially increasing the estimated scale factor value until the amount of data after compression becomes less than or equal to the requested amount of data. Since data compression is terminated when the amount is less than the required amount, it is possible to ensure that the amount of data after compression is less than the required amount of data.

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

第1図はこの発明による圧縮データ量制御方式の処理手
順を示す図、 第2図は第1図の動作を説明するためのフローチャート
、 第3図はスケールファクタと圧縮後のデータ量との関係
を示す表、 第4図は従来の圧縮・伸張処理の処理手順を示す図、 第5図は輝度信号の量子化マトリクスを示す表、第6図
は色差信号の量子化マトリクスを示す表、第7図はジグ
ザグスキャンのテーブルを示す表である。 フローチャート 第2図
Fig. 1 is a diagram showing the processing procedure of the compressed data amount control method according to the present invention, Fig. 2 is a flowchart for explaining the operation of Fig. 1, and Fig. 3 is the relationship between the scale factor and the amount of data after compression. 4 is a diagram showing the processing procedure of conventional compression/expansion processing. FIG. 5 is a table showing the quantization matrix of the luminance signal. FIG. 6 is a table showing the quantization matrix of the color difference signal. FIG. 7 is a table showing a zigzag scan table. Flowchart Figure 2

Claims (1)

【特許請求の範囲】 一枚のディジタル画像を、1ブロックn×n画素からな
る複数のブロックに分割し、各ブロック毎に離散コサイ
ン変換を行い、変換して得られるn×n個の変換係数を
、それぞれ所定の係数2^S(S=0、±1、±2、・
・・)が乗算されたn×n個の閾値からなる量子化マト
リクスの各閾値で除算して量子化を行い、量子化後のデ
ータを可変長符号化する画像データ圧縮方式であって、 上記係数2^Sの巾Sに第1および第2の値S_1およ
びS_2をそれぞれ設定して上記量子化および符号化を
行い、得られる圧縮後のデータ量V_1およびV_2か
ら圧縮後のデータ量が所望の設定値V_3となる上記巾
Sの値S_3を推定し、上記巾Sをこの推定値S_3に
設定して上記量子化および符号化を行い、圧縮後のデー
タ量が上記設定値V_3を超える場合は上記巾Sに「1
」を加えて量子化ステップ幅を大きくした後、再び上記
量子化および符号化を行い、圧縮後のデータ量が上記設
定値V_3以下となるまでこれらの処理を繰り返し、圧
縮後のデータ量が上記設定値V_3以下となるようにす
ることを特徴とする圧縮データ量制御方式。
[Claims] One digital image is divided into a plurality of blocks each consisting of n×n pixels, and discrete cosine transform is performed for each block, resulting in n×n transform coefficients. , respectively with a predetermined coefficient 2^S (S=0, ±1, ±2, ・
An image data compression method that performs quantization by dividing by each threshold of a quantization matrix consisting of n×n thresholds multiplied by . The width S of the coefficient 2^S is set to the first and second values S_1 and S_2, and the above quantization and encoding are performed, and the desired amount of data after compression is determined from the resulting amounts of compressed data V_1 and V_2. If the value S_3 of the width S is estimated to be the set value V_3, the width S is set to this estimated value S_3, the quantization and encoding are performed, and the amount of data after compression exceeds the set value V_3. is "1" in the width S above.
'' to increase the quantization step width, perform the above quantization and encoding again, and repeat these processes until the amount of data after compression becomes less than or equal to the set value V_3, and the amount of data after compression becomes equal to or less than the above setting value V_3. A compressed data amount control method characterized by controlling the amount of compressed data to a set value V_3 or less.
JP2018077A 1990-01-30 1990-01-30 Compressed data quantity control system Pending JPH03224363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018077A JPH03224363A (en) 1990-01-30 1990-01-30 Compressed data quantity control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018077A JPH03224363A (en) 1990-01-30 1990-01-30 Compressed data quantity control system

Publications (1)

Publication Number Publication Date
JPH03224363A true JPH03224363A (en) 1991-10-03

Family

ID=11961591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018077A Pending JPH03224363A (en) 1990-01-30 1990-01-30 Compressed data quantity control system

Country Status (1)

Country Link
JP (1) JPH03224363A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2769161A1 (en) * 1997-10-01 1999-04-02 Univ Neuchatel Compression factor control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2769161A1 (en) * 1997-10-01 1999-04-02 Univ Neuchatel Compression factor control method
WO1999018734A1 (en) * 1997-10-01 1999-04-15 Asulab S.A. Method for controlling the compression rate of digital images
US6668089B1 (en) 1997-10-01 2003-12-23 Asulab S.A. Process for controlling the compression ratio of digital images

Similar Documents

Publication Publication Date Title
JPH0491587A (en) Orthogonal transformation encoder
JPH08242378A (en) Method for efficiently and repeatedly decompressing standardadct compressed image
JPH0418857A (en) Picture data compression system
JPH03224363A (en) Compressed data quantity control system
JP3017510B2 (en) Compressed data amount control method
JP2843396B2 (en) Compressed data amount control method
JP2843397B2 (en) Compressed data amount control method
JP2935334B2 (en) Code amount control method
JP3230336B2 (en) Recompression device and recompression system
JPH02311085A (en) Picture signal compression coding device
JP3016805B2 (en) Image data compression method
JPH03256452A (en) Picture data processing system
JP3344720B2 (en) Image data recording apparatus and method
JP2887843B2 (en) Image data restoration method and apparatus
JP2836636B2 (en) Encoding device and encoding method
JPH03250865A (en) Compression data quantity control system
JPH03213059A (en) Image data compression method
JPH03216075A (en) Transform encoding method
JPH03256454A (en) Image data processing method
JPH03256453A (en) Compressed data amount control system
JP2887842B2 (en) Image data restoration method and apparatus
JPH07222152A (en) Image processing apparatus and compressed data control method therefor
JP2820807B2 (en) Image data encoding method
JPH04144489A (en) Image data recording method
JPH03243066A (en) Image coding system