JPH05284360A - Picture compression method and picture compressor - Google Patents

Picture compression method and picture compressor

Info

Publication number
JPH05284360A
JPH05284360A JP4076506A JP7650692A JPH05284360A JP H05284360 A JPH05284360 A JP H05284360A JP 4076506 A JP4076506 A JP 4076506A JP 7650692 A JP7650692 A JP 7650692A JP H05284360 A JPH05284360 A JP H05284360A
Authority
JP
Japan
Prior art keywords
quantization
compression
unit
data
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.)
Withdrawn
Application number
JP4076506A
Other languages
Japanese (ja)
Inventor
Masanari Toda
雅成 戸田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP4076506A priority Critical patent/JPH05284360A/en
Publication of JPH05284360A publication Critical patent/JPH05284360A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Color Television Systems (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To set data quantity after compression within a specified value even when a natural picture and a color character or the like are in existence in mixture, to prevent deterioration in picture quality due to inadequate response to a compression table and to make data quantity after compression constant with less deterioration in picture quality. CONSTITUTION:Color picture data are converted into a spatial frequency component by an image area separation section 6, a characteristic of a color picture is identified based on the converted spatial frequency component, a quantization table 10 corresponding to the identified characteristic is selected, data quantity at compression is predicted by using the selected table and the picture is compressed by using a value of the quantization filter adjusted so that the predicted value is a specified value or below.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は入力画像の特性に適応し
た圧縮方法を用いて、多値画像を規定されたデータ量以
内に圧縮し、画質向上させるための圧縮を行う画像処理
方法及び画像圧縮装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention uses an image compression method adapted to the characteristics of an input image to compress a multi-valued image within a prescribed data amount, and an image processing method and image for performing compression for improving the image quality. The present invention relates to a compression device.

【0002】[0002]

【従来の技術】多値画像の圧縮技術として、従来より自
然画像を主な対象としたADCT(適応的離散余弦変
換)圧縮方式が提案されている。この圧縮方式は、3原
色(RGB)信号をY,U,Vの3成分に変換し、輝度
であるY信号はそのままの解像度で、色度成分のU,V
信号は必要に応じてサブサンプリングにより解像度を落
として圧縮する。
2. Description of the Related Art As a multivalued image compression technique, an ADCT (Adaptive Discrete Cosine Transform) compression method has been proposed so far mainly for natural images. In this compression method, a three-primary-color (RGB) signal is converted into three components of Y, U, and V, and a Y signal that is luminance has the same resolution and U, V of chromaticity components
The signal is compressed by reducing the resolution by sub-sampling as needed.

【0003】この従来の圧縮方法を以下に説明する。先
ずステツプS1において、Y,U,Vの各成分に対し
て、1ブロツク8×8ピクセルのブロツク毎にDCTし
8×8の周波数空間に変換されてDCT係数が得られ
る。続くステツプS2で輝度成分(Y)及び色度成分
(U,V)2種類の量子化テーブルが用意され、ステツ
プS1で求めたDCT係数は、各成分ごとに8×8の量
子化テーブルの各要素に量子化フアクタを掛けた8×8
の量子化値で線形量子化され(除算され)、量子化係数
が算出される。そして、ステツプS3でステツプS2で
得た量子化係数をハフマン符号化する。
This conventional compression method will be described below. First, in step S1, for each component of Y, U and V, DCT is performed for each block of 8 × 8 pixels and converted into an 8 × 8 frequency space to obtain DCT coefficients. In the subsequent step S2, two kinds of quantization tables of the luminance component (Y) and the chromaticity component (U, V) are prepared, and the DCT coefficient obtained in step S1 is 8 × 8 quantization table for each component. 8 × 8, which is the element multiplied by the quantization factor
Is linearly quantized (divided) by the quantized value of, and the quantized coefficient is calculated. Then, in step S3, the quantized coefficient obtained in step S2 is Huffman-encoded.

【0004】[0004]

【発明が解決しようとしている課題】しかしながら、従
来の圧縮方式で、自然画像、色文字画像、CG画像が混
在する画像に対して圧縮処理を行つた場合、ADCT圧
縮法のハフマン符号化部が可変長圧縮方式であるため
に、圧縮されたデータ量を予測できない。このため、保
存用メモリを大きく用意する必要がある。
However, in the conventional compression method, when the compression processing is performed on the image in which the natural image, the color character image and the CG image are mixed, the Huffman coding unit of the ADCT compression method is variable. Since it is a long compression method, the amount of compressed data cannot be predicted. Therefore, it is necessary to prepare a large storage memory.

【0005】しかし、多値カラー画像用のメモリを大き
く取ると、コストが大きくかかるという欠点がある。ま
た、メモリ量を規定値以内にするために圧縮データ量を
小さくすると、画質が大きく劣化するという欠点があ
る。
However, if the memory for the multi-valued color image is taken large, there is a drawback that the cost is high. Further, if the amount of compressed data is reduced in order to keep the memory amount within the specified value, there is a drawback that the image quality deteriorates significantly.

【0006】[0006]

【課題を解決するための手段】本発明は上述の課題を解
決することを目的としてなされたもので、上述の課題を
解決する一手段として以下の構成を備える。即ち、カラ
ー画像データを空間周波数成分に変換する変換手段と、
該変換手段によつて変換された空間周波数成分に基づい
て前記カラー画像の特徴を識別する特徴識別手段と、該
特徴識別手段によつて識別された結果に基づいてそれぞ
れの量子化テーブルを識別する量子化テーブル識別手段
と、該量子化テーブル識別手段で識別した量子化テーブ
ルを用いて圧縮したデータ量を規定値以内に納めるよう
に量子化フアクタを予め選択する量子化フアクタ選択手
段とを備える。
The present invention has been made for the purpose of solving the above-mentioned problems, and has the following constitution as one means for solving the above-mentioned problems. That is, conversion means for converting color image data into spatial frequency components,
Feature identifying means for identifying features of the color image based on the spatial frequency components transformed by the transforming means, and respective quantization tables based on the results identified by the feature identifying means. Quantization table identifying means, and quantization factor selecting means for selecting a quantization factor in advance so that the amount of data compressed using the quantization table identified by the quantization table identifying means falls within a specified value.

【0007】[0007]

【作用】以上の構成において、まず圧縮を行う前に例え
ばプリスキヤンを行ない、所定ブロツク例えば8×8ブ
ロツクごとの周波数特性の違いを用いて、数種類の量子
化テーブルからそれぞれに適応した量子化テーブルを選
び、それぞれの量子化テーブルを使用した時の圧縮後の
全体のデータ量の期待値を予測し、この期待値が定めら
れたデータ量になるように、量子化フアクタの値を決定
することができる。
In the above construction, first, for example, prescan is performed before compression, and a quantization table adapted to each of several types of quantization tables is created by using a difference in frequency characteristic for each predetermined block, for example, 8 × 8 blocks. It is possible to predict the expected value of the total amount of data after compression when using each quantization table and determine the value of the quantization factor so that this expected value will be the specified amount of data. it can.

【0008】従つて、以上の構成により量子化フアクタ
の値を決定してその後に本スキヤンを行えば、自然画
像、色文字等が混在した場合も圧縮後のデータ量を規定
値内に納め、かつ圧縮テーブル不適応による画質劣化を
防ぐことができ、画質劣化が少ない状態で圧縮後のデー
タ量を一定にすることができる。
Therefore, if the value of the quantization factor is determined by the above configuration and then this scanning is performed, the data amount after compression is kept within the specified value even when a natural image, a color character, etc. are mixed. In addition, it is possible to prevent image quality deterioration due to incompatibility of the compression table, and it is possible to make the amount of data after compression constant in a state where the image quality deterioration is small.

【0009】[0009]

【実施例】以下、図面を参照して本発明に係る一実施例
を詳細に説明する。 [第1実施例]以下に説明する実施例は、自然画像、色
文字画像等のさまざまな周波数特性が混在した画像を圧
縮するときに、圧縮データを一定の大きさに納め、かつ
画質劣化の少ない画像を作ることを特徴とする。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described in detail below with reference to the drawings. [First Embodiment] In the embodiment described below, when compressing an image in which various frequency characteristics such as a natural image and a color character image are mixed, the compressed data is stored in a certain size, and the image quality is not deteriorated. Characterized by making few images.

【0010】図1は本発明に係る一実施例の構成を示す
ブロツク構成図である。図1において、1は色変換部、
2はサブサンプリング部、3はDCT部、4は量子化
部、5はハフマン符号化部、6は像域分離部、7はテー
ブル切り換えスイツチ、8は量子化フアクタ、9は量子
化フアクタ計算部、10は量子化テーブルであり、本実
施例では1から16までの合計16の夫々特性の異なる
テーブルを備えている。また、11は符号部、16はス
イツチである。
FIG. 1 is a block diagram showing the configuration of an embodiment according to the present invention. In FIG. 1, 1 is a color conversion unit,
2 is a sub-sampling unit, 3 is a DCT unit, 4 is a quantization unit, 5 is a Huffman coding unit, 6 is an image area separation unit, 7 is a table switching switch, 8 is a quantization factor, and 9 is a quantization factor calculation unit. Reference numeral 10 is a quantization table, and in this embodiment, a total of 16 tables 1 to 16 having different characteristics are provided. Further, 11 is a code part, and 16 is a switch.

【0011】以上の構成を備える本実施例の画像データ
の圧縮処理を以下に説明する。まず、量子フアクタを設
定するために実際の原稿読み取り動作に先立つプリスキ
ヤン動作を行う。そして各量子化に要するフアクタ等を
決定し、その後に原稿符号化のための本スキヤンを行な
うことになる。プリスキャン、本スキャンは、例えば、
CCDセンサにより構成されるイメージスキャナによっ
て行う。プリスキヤン時、スイツチ16は量子化フアク
タ計算部9側に接続されており、像域分離部6よりの信
号は量子化フアクタ計算部9に送られる。また量子化部
4は活性化されておらず、DCT部3からの信号は像域
分離部6に送られ、ここで処理されることになる。
Image data compression processing of this embodiment having the above configuration will be described below. First, a prescan operation is performed prior to the actual document reading operation in order to set the quantum factor. Then, the factors etc. required for each quantization are determined, and then the main scan for encoding the original is performed. The pre-scan and main scan are, for example,
The image scanner is composed of a CCD sensor. At the time of prescan, the switch 16 is connected to the quantization factor calculator 9 side, and the signal from the image area separation unit 6 is sent to the quantization factor calculator 9. Further, the quantizing unit 4 is not activated, and the signal from the DCT unit 3 is sent to the image area separating unit 6 and is processed there.

【0012】不図示のイメージスキヤナで読み取られた
RGBの画像データは、色変換部1に入力される。色変
換部1では、このRGBの画像データを以下に式1で示
すの3×3線形行列変換に従つて対応するYUV信号に
変換する。 色変換部1により変換されたYUV信号において、Yは
輝度成分を、U,Vは色度成分を表わす。
RGB image data read by an image scanner (not shown) is input to the color conversion section 1. The color conversion unit 1 converts the RGB image data into a corresponding YUV signal according to the 3 × 3 linear matrix conversion shown in Expression 1 below. In the YUV signal converted by the color conversion unit 1, Y represents a luminance component and U and V represent chromaticity components.

【0013】サブサンプリング部2においては、人間の
目の感度特性が色度成分(U,V)より輝度成分(Y)
の方が敏感であるということを利用して、サブサンプリ
ングする。具体的には、Y:U:V=4:1:1、ある
いは、Y:U:V=4:2:2に変換される。次に、D
CT部3において、Y,U,Vの各々の信号に対して8
×8ブロツクごとにDCT(離散余弦変換)し、8×8
ブロツクごとに周波数変換する。この周波数変換された
係数をDCT係数と呼ぶ。
In the sub-sampling unit 2, the sensitivity characteristic of the human eye is a luminance component (Y) rather than a chromaticity component (U, V).
Taking advantage of the fact that is more sensitive, subsampling is performed. Specifically, it is converted into Y: U: V = 4: 1: 1 or Y: U: V = 4: 2: 2. Then D
In the CT unit 3, 8 for each signal of Y, U and V
DCT (discrete cosine transform) for each × 8 block, 8 × 8
Frequency conversion is performed for each block. This frequency-converted coefficient is called a DCT coefficient.

【0014】像域分離部6では、8×8ブロツクごと
に、Y、U、V、3種類のDCT係数の周波数特性を調
べ、各ブロツクにおける画像属性を特定し、量子化フア
クタ8の各テーブル1〜16の内、特定した8×8ブロ
ツクごとの周波数特性を保存するような、テーブルを選
択する。例えば、画像属性が文字部であると判断した場
合には、当該文字部には高周波成分が多く含まれるた
め、高周波成分の情報をなくさないようなテーブルを選
ぶ、等の選択をする。
The image area separation unit 6 examines the frequency characteristics of Y, U, V, and three types of DCT coefficients for each 8 × 8 block, identifies the image attribute in each block, and determines each table of the quantization factor 8. From 1 to 16, a table is selected so as to save the frequency characteristic for each specified 8 × 8 block. For example, when it is determined that the image attribute is a character portion, the character portion contains a large amount of high frequency components, and therefore a selection is made such as selecting a table in which the information of the high frequency components is not lost.

【0015】量子化フアクタ計算部9には、量子化フア
クタを基準値にセツトした時の量子化テーブル10の1
〜16の各テーブル毎の8×8ブロツクを圧縮したデー
タ量の期待値(An)が登録されている。このため、像
域分離部6で選択した量子化テーブル10におけるテー
ブルナンバーの回数(In)から以下に示す式2を用い
て、全体を圧縮した時のデータ量の期待値Sを求める。
The quantizer factor calculation unit 9 sets 1 in the quantizer table 10 when the quantizer factor is set to a reference value.
The expected value (An) of the amount of data obtained by compressing 8 × 8 blocks is registered for each of the tables (16). Therefore, the expected value S of the data amount when the whole is compressed is obtained from the number (In) of the table numbers in the quantization table 10 selected by the image area separation unit 6 using the following Expression 2.

【0016】 S=Σ(In×An) (式2) 但し、Inはテーブルnを使用した個数、Anは8×8
ブロツクをテーブルnによつて圧縮したときのデータ量
の期待値、Sは、量子化フアクタが1のときに予想され
る圧縮された画像全体のデータ量の期待値式2により求
めた全体を圧縮した時のデータ量の期待値Sは、量子化
フアクタが基準値のときの値である。そこでSがデータ
規定値以内に納まるように、経験的に量子化フアクタを
設定し直す。
S = Σ (In × An) (Equation 2) where In is the number using the table n and An is 8 × 8
Expected value of the amount of data when the block is compressed by the table n, S is the expected value of the amount of data of the entire compressed image expected when the quantization factor is 1, The expected value S of the data amount at the time of performing is the value when the quantization factor is the reference value. Therefore, the quantization factor is empirically reset so that S is within the specified value of data.

【0017】なおこの量子化フアクタは、圧縮するとき
には一定値を保ち、大きさを変えて圧縮率を変えること
はしない。このため、本実施例においては、必ず期待値
Sが規定値以内に納まるように次式3に示す様に余裕の
あるフアクタに決める。 データ期待値≧S (式3) このようにして、プリスキヤンにおいて、量子化テーブ
ル10における量子化に用いるテーブルを特定すると共
に量子化フアクタの設定等を行なう。
This quantization factor keeps a constant value during compression and does not change the compression rate by changing the size. Therefore, in this embodiment, a factor having a margin is determined as shown in the following expression 3 so that the expected value S is always within the specified value. Data expected value ≧ S (Equation 3) In this way, in the prescan, the table used for quantization in the quantization table 10 is specified, and the quantization factor is set.

【0018】以上のプリスキヤン動作における像域分離
部9、量子化フアクタ計算部9等の機能は、本スキヤン
時とは多少異なり、その機能をブロツク構成として示す
と図2に示すブロツク構成となる。即ち、図2に示す様
に、像域分離部6によるY、U、V、3種類のDCT係
数の周波数特性を調べる機能は、周波数特性解析部13
として表すことができ、各ブロツクにおける画像属性を
特定する機能、即ち、像域分離を行なうパラーメータを
特定する機能は像域分離パラメータ算出部14として表
すことができる。
The functions of the image area separation unit 9, the quantization factor calculation unit 9 and the like in the above-described prescan operation are slightly different from those in the present scan, and when the functions are shown as a block structure, the block structure shown in FIG. 2 is obtained. That is, as shown in FIG. 2, the function of examining the frequency characteristics of the three types of DCT coefficients of Y, U, V by the image area separating unit 6 is the frequency characteristic analyzing unit 13
The function of specifying the image attribute in each block, that is, the function of specifying the parameter for performing the image area separation can be expressed by the image area separation parameter calculation unit 14.

【0019】更に、量子化フアクタ計算部9による量子
化テーブル10における量子化に用いるテーブルを特定
する機能は量子化テーブル算出部15として表すことが
できる。なお、以上の機能を本スキヤン時に達成する機
能とは切り離した独立した機能として備え、プリスキヤ
ン時には図2に示す構成とし、本スキヤン時には図1に
示す構成としてDCT部3よりの出力を量子化部4等に
出力する様にしても良い。
Further, the function for specifying the table used for quantization in the quantization table 10 by the quantization factor calculator 9 can be represented by the quantization table calculator 15. It should be noted that the above-described functions are provided as independent functions separated from the functions achieved during the main scanning, and the configuration shown in FIG. 2 is used during the pre-scanning, and the output from the DCT unit 3 is configured using the configuration shown in FIG. 1 during the main scanning. You may make it output to 4 etc.

【0020】続く本スキヤンにおいては、量子化部4を
活性化し、スイツチ16をテーブル切り換えスイツチ7
側に切り換え、像域分離部6よりのセレクト信号をテー
ブル切り換えスイツチ7に送る様に制御する。そして、
プリスキヤンの時と同様の原稿読み取り工程を行なう。
原稿より読み取られたRGBの画像データは、色変換部
1で対応するYUV信号に変換され、サブサンプリング
部2でサブサBPUリングされてDCT部3に送られ
る。そしてDCT部3でDCTされ、像域分離部6及び
量子化部4に送られる。
In the subsequent scanning, the quantizer 4 is activated and the switch 16 is switched to the table 7
The control signal is switched to the side and the select signal from the image area separation unit 6 is controlled to be sent to the table switching switch 7. And
Perform the same document reading process as in the case of prescan.
The RGB image data read from the original is converted into a corresponding YUV signal by the color conversion unit 1, subjected to sub-BPU ring by the sub-sampling unit 2, and sent to the DCT unit 3. Then, DCT is performed by the DCT unit 3 and sent to the image area separation unit 6 and the quantization unit 4.

【0021】量子化部4では、テーブル切り換えスイツ
チ7により、セレクトされた量子化テーブルとプリスキ
ヤンで求めた量子化フアクタを用いて、Y,U,V各々
の信号に対し、8×8ブロツクごとに量子化する。量子
化部4により量子化された量子化係数は、ハフマン符号
部5でハフマン符号化され、圧縮データとして伸長側に
送られる。
The quantizing unit 4 uses the selected quantizing table and the quantizing factor obtained by the prescanning by the table switching switch 7 for each of Y, U, and V signals at every 8 × 8 blocks. Quantize. The quantized coefficient quantized by the quantizer 4 is Huffman-encoded by the Huffman encoder 5 and sent to the decompression side as compressed data.

【0022】なお、像域分離部6よりの、量子化テーブ
ル10中の選択されたテーブルを示すセレクト信号(4
ビツト)は、符号化部11にも送られる。そして、この
セレクト信号は符号化部11にて符号化され、圧縮され
たテーブルデータとして伸長側に受け渡す。また、量子
化フアクタ8、量子化テーブル10のテーブル列データ
もテーブル切り換えスイツチ7を介して符号化部11に
送られ、これらのデータも符号化(圧縮)されて伸長側
に受け渡される。
It should be noted that the image area separation unit 6 selects a signal (4
The bit) is also sent to the encoding unit 11. Then, this select signal is encoded by the encoding unit 11 and is delivered to the decompression side as compressed table data. Further, the table row data of the quantization factor 8 and the quantization table 10 are also sent to the encoding unit 11 via the table switching switch 7, and these data are also encoded (compressed) and passed to the decompression side.

【0023】この符号化部11による符号化は、例えば
MH符号化、MR符号化、MMR符号化等、任意の符号
化方法を採ることができる。これにより、周波数特性の
異なる各々のブロツクに適する、量子化テーブルを設定
できる。以上の様にして圧縮処理された圧縮データの伸
長に関しては、像域分離部6、量子化フアクタ計算部9
を取り外し、信号の流れをまつたく逆にすればよい。た
だし、ハフマン符号部5はハフマン復号部に変え、量子
化部4は逆量子化部に、DCT部3は逆DCT部に、そ
して、符号化部11は復号部になる。
The coding by the coding unit 11 can be performed by any coding method such as MH coding, MR coding, MMR coding and the like. As a result, a quantization table suitable for blocks having different frequency characteristics can be set. Regarding the expansion of the compressed data compressed as described above, the image area separation unit 6 and the quantization factor calculation unit 9
You can remove it and reverse the signal flow. However, the Huffman coding unit 5 is replaced by a Huffman decoding unit, the quantizing unit 4 becomes an inverse quantizing unit, the DCT unit 3 becomes an inverse DCT unit, and the encoding unit 11 becomes a decoding unit.

【0024】また、サブサンプリング部2では、サブサ
ンプリング比が4:1:1のときはY1,Y2,Y3,
Y4,U1,V1…をY1,Y2,Y3,Y4,U1,
U1,U1,U1,V1,V1,V1,V1…となるよ
うに変換する。一方、サブサンプリング部2では、サブ
サンプリング比が4:2:2のときはY1,Y2,U
1,V1…をY1,Y2,U1,U1,V1,V1…と
なるように変換する。
In the sub-sampling unit 2, when the sub-sampling ratio is 4: 1: 1, Y1, Y2, Y3.
Y4, U1, V1 ... to Y1, Y2, Y3, Y4, U1,
Convert to U1, U1, U1, V1, V1, V1, V1 ... On the other hand, in the sub-sampling unit 2, when the sub-sampling ratio is 4: 2: 2, Y1, Y2, U
, 1, V1, ... Are converted to Y1, Y2, U1, U1, V1, V1.

【0025】色変換部1は、(式1)の逆変換を行えば
よい。量子化テーブル、量子化フアクタは、圧縮側から
受け渡されたものを用いる。送られてきたテーブルデー
タは復号部にて復号し、これをセレクト信号としてテー
ブル切り換えスイツチ7にて圧縮時のテーブルに対応す
るテーブルを選択する。そして、逆量子化は該選択され
たテーブルよりのデータに基づいて行われる。
The color conversion section 1 may perform the inverse conversion of (Equation 1). As the quantization table and the quantization factor, those passed from the compression side are used. The transmitted table data is decoded by the decoding unit, and the table switching switch 7 selects the table corresponding to the table at the time of compression by using this as a select signal. Dequantization is then performed based on the data from the selected table.

【0026】以上説明した様に本実施例によれば、まず
圧縮を行う前にプレスキヤンを行ない、所定ブロツク例
えば8×8ブロツクごとの周波数特性の違いを用いて、
数種類の量子化テーブルからそれぞれに適応した量子化
テーブルを選び、それぞれの量子化テーブルを使用した
時の圧縮後の全体のデータ量の期待値を予測し、この期
待値が定められたデータ量になるように、量子化フアク
タの値を決定することができる。このようにして量子化
フアクタの値を決定した後に本スキヤンを行えば、自然
画像、色文字等が混在した場合も圧縮後のデータ量を規
定値内に納め、かつ圧縮テーブル不適応による画質劣化
を防ぐことができ、画質劣化が少ない状態で圧縮後のデ
ータ量を一定にすることができる。
As described above, according to the present embodiment, first, the press scan is performed before the compression, and the difference in the frequency characteristic for each predetermined block, for example, 8 × 8 blocks is used.
Select a quantization table suitable for each of several types of quantization tables, predict the expected value of the total amount of data after compression when using each quantization table, and set this expected value to the specified amount of data. The value of the quantization factor can be determined so that If this scanning is performed after determining the value of the quantization factor in this way, the amount of data after compression is kept within the specified value even if natural images, color characters, etc. are mixed, and image quality deterioration due to compression table inadequacy Can be prevented, and the amount of data after compression can be made constant with little deterioration in image quality.

【0027】[他の実施例]以上の説明は、プリスキヤ
ンで得たセレクト信号を符号部11で圧縮して伸長側に
送る構成について説明した。しかし、本発明は以上の例
に限定されるものではなく、プリスキヤンで得たセレク
ト信号をストツクしておくためのテーブルバツフアを備
える構成であつても良い。プリスキヤンで得たセレクト
信号をストツクしておくためのテーブルバツフアを備え
る、本発明に係る第2実施例を図3に示す。図3におい
て、上述した図1に示す第1実施例と同様構成には同一
番号を付し詳細説明を省略する。
[Other Embodiments] The above description has explained the configuration in which the select signal obtained by the prescan is compressed by the encoding unit 11 and sent to the decompression side. However, the present invention is not limited to the above example, and may have a configuration including a table buffer for storing the select signal obtained by the prescan. FIG. 3 shows a second embodiment according to the present invention, which is provided with a table buffer for storing the select signal obtained by the prescan. In FIG. 3, the same components as those in the first embodiment shown in FIG. 1 described above are designated by the same reference numerals and detailed description thereof will be omitted.

【0028】第2実施例においては、図1の像域分離部
16とテーブル切り換えスイツチ7の間にテーブルバツ
フア12を備える構成とし、テーブルバツフア12にD
CT部3よりの同期信号を入力する構成としたものであ
る。そして、像域分離部6と量子化フアクタ計算部9は
プリスキヤン時のみ動作させる様に制御する。即ち、本
スキヤンでは、像域分離部6は使用せずに、テーブルバ
ツフア12にストックされているセレクト信号を、DC
T部3からの同期信号に合わせてテーブル切り換えスイ
ツチ7に送る。
In the second embodiment, a table buffer 12 is provided between the image area separating section 16 and the table switching switch 7 of FIG.
The configuration is such that the synchronization signal from the CT unit 3 is input. Then, the image area separation unit 6 and the quantization factor calculation unit 9 are controlled to operate only during prescan. That is, in this scanning, the image area separation unit 6 is not used, and the select signal stocked in the table buffer 12 is set to DC.
It is sent to the table switching switch 7 in synchronization with the synchronization signal from the T section 3.

【0029】以上の構成を備える第2実施例によれば、
像域分離部6で処理時間がかかるような装置のときに、
本スキヤン時の実行時間を短くできる。以上のように、
像域を分離し、適応的に、量子化テーブルを選ぶことに
より、文字や自然画像などが混在した画像の劣化を防ぐ
ことができ、また量子化フアクタを調整することで、圧
縮後のデータの大きさを調節することができる。
According to the second embodiment having the above construction,
When the image area separation unit 6 requires a long processing time,
The execution time at the time of this scan can be shortened. As mentioned above,
By separating the image area and adaptively selecting the quantization table, it is possible to prevent the deterioration of the image in which characters and natural images are mixed, and by adjusting the quantization factor, the compressed data The size can be adjusted.

【0030】また以上説明した実施例では、量子化テー
ブル10は1〜16の16種類備える構成であつたが、
17種類等他の数でも良い。また、セレクト信号は、符
号部11で符号化されているが、符号化せず直接テーブ
ルデータとして伸長部に渡してもよい。また、以上の実
施例では、全体を圧縮した時のデータ量の期待値Sを求
めるのに、量子化フアクタが基準値とした時のテーブル
毎の8×8ブロツクの圧縮データ量の期待値Anを用い
て、(式3)により求める例について説明した。しか
し、本発明は以上の例に限定されるものではなく、予め
N個の量子化テーブルとQ個の量子化フアクタの組み合
わせに対する、8×8ブロツク毎の圧縮データの期待値
An(q)を登録しておく構成であつても良い。そし
て、像域分離を基にしてブロツク毎に量子化テーブルを
決めていき、量子化フアクタを変えた時の画像全体の圧
縮データ期待値S(q)を次式(4)から計算し、この
S(q)が目的の規定値以下であり、かつ最大になる量
子化フアクタを用いて本スキヤンを行なう構成であつて
も良い。
In the embodiment described above, the quantization table 10 has 16 types of 1 to 16, but
Other numbers such as 17 types may be used. Although the select signal is encoded by the encoding unit 11, it may be directly passed to the decompression unit as table data without being encoded. Further, in the above embodiment, in order to obtain the expected value S of the data amount when the whole is compressed, the expected value An of the compressed data amount of 8 × 8 blocks for each table when the quantization factor is used as the reference value An. The example of obtaining by (Equation 3) has been described using. However, the present invention is not limited to the above example, and the expected value An (q) of the compressed data for each 8 × 8 block is previously set for the combination of N quantization tables and Q quantization factors. It may be configured to be registered. Then, the quantization table is determined for each block based on the image area separation, and the compressed data expected value S (q) of the entire image when the quantization factor is changed is calculated from the following equation (4), A configuration may be used in which the scanning is performed by using a quantization factor in which S (q) is equal to or less than a target specified value and is maximum.

【0031】 S(q)=Σ(In×An(q)) (式4) 但し、An(q)は(量子化テーブル番号n)及び(量
子化フアクタ番号q)を使つて8×8ブロツクを圧縮し
たデータ量の期待値である。以上のように、像域を分離
し、適応的に、量子化テーブルを選ぶことにより、文字
や自然画像などが混在した画像の劣化を防ぐことがで
き、また量子化フアクタを調整することで、圧縮後のデ
ータの大きさを調節することができる。
S (q) = Σ (In × An (q)) (Equation 4) where An (q) is an 8 × 8 block using (quantization table number n) and (quantization factor number q). Is the expected value of the compressed data amount. As described above, by separating the image area and adaptively selecting the quantization table, it is possible to prevent deterioration of the image in which characters and natural images are mixed, and by adjusting the quantization factor, The size of the compressed data can be adjusted.

【0032】[0032]

【発明の効果】以上説明した様に本発明によれば、まず
圧縮を行う前に例えばプレスキヤンを行ない、所定ブロ
ツクごとの周波数特性の違いを用いて、数種類の量子化
テーブルからそれぞれに適応した量子化テーブルを選
び、それぞれの量子化テーブルを使用した時の圧縮後の
全体のデータ量の期待値を予測し、この期待値が定めら
れたデータ量になるように、量子化フアクタの値を決定
することができる。
As described above, according to the present invention, first, for example, pre-scan is performed before compression, and by applying the difference in the frequency characteristic for each predetermined block, it is adapted to each of several kinds of quantization tables. Select a quantization table, predict the expected value of the total data amount after compression when using each quantization table, and set the value of the quantization factor so that this expected value will be the specified data amount. You can decide.

【0033】従つて、以上の構成により量子化フアクタ
の値を決定してその後に本スキヤンを行えば、自然画
像、色文字等が混在した場合も圧縮後のデータ量を規定
値内に納め、かつ圧縮テーブル不適応による画質劣化を
防ぐことができ、画質劣化が少ない状態で圧縮後のデー
タ量を一定にすることができる。
Therefore, if the value of the quantization factor is determined by the above-mentioned configuration and then this scanning is performed, the data amount after compression is kept within the specified value even when a natural image, a color character, etc. are mixed. In addition, it is possible to prevent image quality deterioration due to incompatibility of the compression table, and it is possible to make the amount of data after compression constant in a state where the image quality deterioration is small.

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

【図1】本発明に係る一実施例の構成を示すブロツク図
である。
FIG. 1 is a block diagram showing the configuration of an embodiment according to the present invention.

【図2】本実施例におけるプリスキヤンデータによる画
像分離パラメータ、および、量子化テーブル算出のため
のブロツク図である。
FIG. 2 is a block diagram for calculating an image separation parameter based on prescan data and a quantization table in the present embodiment.

【図3】本発明に係る他の実施例の構成を示すブロツク
図である。
FIG. 3 is a block diagram showing the configuration of another embodiment according to the present invention.

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

1 色変換部 2 サブサンプリング部 3 DCT部 4 量子化部 5 ハフマン符号化部 6 像域分離部 7 テーブル切り換えスイツチ 8 量子化フアクタ 9 量子化フアクタ計算部 10 量子化テーブル(no.1〜no.16) 11 符号部 12 テーブルバツフア 13 周波数特性解析部 14 像域分離パラメータ 15 量子化テーブル算出部 16 スイツチ 1 Color conversion unit 2 Sub-sampling unit 3 DCT unit 4 Quantization unit 5 Huffman coding unit 6 Image area separation unit 7 Table switching switch 8 Quantization factor 9 Quantization factor calculation unit 10 Quantization table (no. 1 to no. 16) 11 coding unit 12 table buffer 13 frequency characteristic analysis unit 14 image area separation parameter 15 quantization table calculation unit 16 switch

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 カラー画像データを空間周波数成分に変
換し、変換された空間周波数成分に基づいて前記カラー
画像の特徴を識別し、識別した特徴に対応する量子化テ
ーブルを用いて圧縮した時のデータ量を予め予測し、予
測値が規定以下になるように量子化フイルタを調節した
値を用いて画像圧縮を行うことを特徴とする画像圧縮方
法。
1. Color image data is converted into spatial frequency components, features of the color image are identified based on the transformed spatial frequency components, and compression is performed using a quantization table corresponding to the identified features. An image compression method characterized in that the amount of data is predicted in advance, and the image is compressed using a value obtained by adjusting the quantization filter so that the predicted value becomes equal to or less than a specified value.
【請求項2】 カラー画像データを空間周波数成分に変
換する変換手段と、該変換手段によつて変換された空間
周波数成分に基づいて前記カラー画像の特徴を識別する
特徴識別手段と、該特徴識別手段によつて識別された結
果に基づいてそれぞれの量子化テーブルを識別する量子
化テーブル識別手段と、該量子化テーブル識別手段で識
別した量子化テーブルを用いて圧縮したデータ量を規定
値以内に納めるように量子化フアクタを予め選択する量
子化フアクタ選択手段とを有することを特徴とする画像
圧縮装置。
2. A conversion unit for converting color image data into a spatial frequency component, a characteristic identification unit for identifying a characteristic of the color image based on the spatial frequency component converted by the conversion unit, and the characteristic identification. A quantization table identifying means for identifying each quantization table based on the result identified by the means, and a data amount compressed using the quantization table identified by the quantization table identifying means within a specified value. An image compression apparatus comprising: a quantization factor selecting means for selecting a quantization factor in advance so as to be stored.
JP4076506A 1992-03-31 1992-03-31 Picture compression method and picture compressor Withdrawn JPH05284360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4076506A JPH05284360A (en) 1992-03-31 1992-03-31 Picture compression method and picture compressor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4076506A JPH05284360A (en) 1992-03-31 1992-03-31 Picture compression method and picture compressor

Publications (1)

Publication Number Publication Date
JPH05284360A true JPH05284360A (en) 1993-10-29

Family

ID=13607133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4076506A Withdrawn JPH05284360A (en) 1992-03-31 1992-03-31 Picture compression method and picture compressor

Country Status (1)

Country Link
JP (1) JPH05284360A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006279741A (en) * 2005-03-30 2006-10-12 Seiko Epson Corp Method, apparatus and program for image compression, and image reading apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006279741A (en) * 2005-03-30 2006-10-12 Seiko Epson Corp Method, apparatus and program for image compression, and image reading apparatus

Similar Documents

Publication Publication Date Title
EP0510933B1 (en) Image processing apparatus and method
US7483581B2 (en) Apparatus and method for encoding digital image data in a lossless manner
US9369733B2 (en) Method and apparatus for encoding and decoding image
WO2010004726A1 (en) Image coding method, image decoding method, image coding device, image decoding device, program, and integrated circuit
US7630563B2 (en) System and method for decoding digital image and audio data in a lossless manner
JPH07154798A (en) Method and device for picture encoding
JP3067628B2 (en) Image coding device
US6047089A (en) Image compression and expansion device
JP3105906B2 (en) Image processing device
JPH05284360A (en) Picture compression method and picture compressor
KR0132895B1 (en) Image compression and expansion method and apparatus for adaptable function
JP2002247373A (en) Image reading/outputting method and apparatus
JPH04315371A (en) Picture processing method and device
KR100189523B1 (en) Image compression apparatus and method and decoding method by using image separation and arithmatic coding
JPH05227441A (en) Digital picture signal compression device
JPH05207440A (en) Code quantity controller
KR950030695A (en) Image processing system and method
JPH0488750A (en) Picture processor
JPH05344348A (en) Image encoding control method and its device
JPH05130413A (en) Coder and decoder for picture data and coding method and decoding method
JPH11331844A (en) Fixed length block encoder and decoder
JPH0487470A (en) Picture processing unit
JPH0884258A (en) Color facsimile equipment
JPH04323962A (en) Picture processing method and device
JPH08255251A (en) Image information processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990608