[go: up one dir, main page]

JP3205028B2 - Image compression apparatus and method - Google Patents

Image compression apparatus and method

Info

Publication number
JP3205028B2
JP3205028B2 JP2026392A JP2026392A JP3205028B2 JP 3205028 B2 JP3205028 B2 JP 3205028B2 JP 2026392 A JP2026392 A JP 2026392A JP 2026392 A JP2026392 A JP 2026392A JP 3205028 B2 JP3205028 B2 JP 3205028B2
Authority
JP
Japan
Prior art keywords
dct
image
block
circuit
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.)
Expired - Fee Related
Application number
JP2026392A
Other languages
Japanese (ja)
Other versions
JPH0595484A (en
Inventor
信孝 三宅
忠義 中山
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 JP2026392A priority Critical patent/JP3205028B2/en
Publication of JPH0595484A publication Critical patent/JPH0595484A/en
Application granted granted Critical
Publication of JP3205028B2 publication Critical patent/JP3205028B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像圧縮装置に関し、例
えば直交変換機能を有する画像圧縮装置及びその方法に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression apparatus, for example, an image compression apparatus having an orthogonal transformation function and a method thereof.

【0002】[0002]

【従来の技術】写真等の中間調画像(以下、「イメー
ジ」という)をメモリに記憶するのに必要なメモリ容量
は、(画素数)×(階調ビツト数)で算出されるため、
高品位なカラー画像を記憶するためには膨大なメモリ容
量が必要であつた。このため、各種の情報量圧縮方式が
提案されている。例えば、情報量を圧縮した後、メモリ
に記憶することにより、メモリ容量の削減が図られてい
る。
2. Description of the Related Art The memory capacity required for storing a halftone image (hereinafter, referred to as an "image") such as a photograph in a memory is calculated by (number of pixels) .times. (Number of gradation bits).
An enormous memory capacity was required to store high-quality color images. For this reason, various information amount compression methods have been proposed. For example, the amount of information is compressed and then stored in a memory to reduce the memory capacity.

【0003】図19は、カラー静止画符号化の国際標準
化方式として、JPEG(Joint Photographic Experts
Group)において提案されているベースラインシステム
(基本方式)の符号化方式(安田:「カラー静止画符号
化国際標準化」、画像電子学会誌、第18巻、第6号p
p.398-409,1989 )の構成を示すブロツク図である。
FIG. 19 shows JPEG (Joint Photographic Experts) as an international standardized method of color still image coding.
Group), the coding method of the baseline system (basic method) proposed by Yasuda: "International Standardization of Color Still Image Coding", Journal of the Institute of Image Electronics Engineers of Japan, Vol. 18, No. 6, p.
pp. 398-409, 1989).

【0004】同図において、入力端子1より入力された
イメージ画素データは、ブロツク化回路2において、8
×8画素のブロツク状に切出され、離散コサイン変換
(以下、「DCT」という)回路17によってコサイン
変換され、この変換で得た変換係数が量子化器(以下、
「Q」という)40に供給される。Q40では、量子化
テーブル41により印加される量子化ステツプ情報に従
つて、変換係数の線形量子化が行われる。量子化された
変換係数のうち、DC係数は予測符号化回路(以下、
「DPCM」という)42によって、前ブロツクのDC
成分との差分(予測誤差)をとられ、この差分が1次元
ハフマン符号化回路43に供給される。図20はDPC
M42の構成を詳細に示すブロツク図である。Q40に
より量子化されたDC係数は遅延回路53及び減算器5
4に印加される。遅延回路53は離散コサイン変換回路
が1ブロツク、即ち8×8画素分の演算に必要な時間分
だけ遅延させる回路である。従つて遅延回路53からは
前ブロツクのDC係数が減算器54に供給される。よつ
て、減算器54から現ブロツクと前ブロツクとのDC係
数の差分(予測誤差)が出力される。本予測符号化では
予測値として前ブロツク値を用いているため、予測器は
前述のごとく遅延回路によって構成される。
In FIG. 1, image pixel data inputted from an input terminal 1 is supplied to a
It is cut out in a block shape of × 8 pixels, cosine-transformed by a discrete cosine transform (hereinafter, referred to as “DCT”) circuit 17, and a transform coefficient obtained by this transform is quantized (hereinafter, referred to as a quantizer).
(Referred to as “Q”) 40. In Q40, the linear quantization of the transform coefficient is performed according to the quantization step information applied by the quantization table 41. Among the quantized transform coefficients, the DC coefficient is a predictive coding circuit (hereinafter, referred to as a predictive coding circuit)
"DPCM") 42, the DC of the previous block
The difference (prediction error) from the component is obtained, and this difference is supplied to the one-dimensional Huffman encoding circuit 43. FIG. 20 shows the DPC
It is a block diagram which shows the structure of M42 in detail. The DC coefficient quantized by Q40 is supplied to a delay circuit 53 and a subtractor 5
4 is applied. The delay circuit 53 is a circuit for delaying the discrete cosine transform circuit by one block, that is, the time required for the operation of 8 × 8 pixels. Accordingly, the DC coefficient of the previous block is supplied from the delay circuit 53 to the subtractor 54. Accordingly, the difference (prediction error) of the DC coefficient between the current block and the previous block is output from the subtractor 54. In the present prediction coding, since the previous block value is used as the prediction value, the predictor is constituted by the delay circuit as described above.

【0005】1次元ハフマン符号化回路43は、DPC
M42より供給された予測誤差信号をDCハフマンコー
ドテーブル44に従つて可変長符号化し、この可変長符
号化したデータ、即ち、DCハフマンコードを多重化回
路51に供給する。
[0005] The one-dimensional Huffman encoding circuit 43 uses a DPC
The prediction error signal supplied from M42 is subjected to variable length encoding according to the DC Huffman code table 44, and the variable length encoded data, that is, the DC Huffman code is supplied to the multiplexing circuit 51.

【0006】一方、Q40によって量子化されたAC係
数(DC係数以外の係数)は、スキヤン変換回路45に
て図21に示すように低次の係数より順にジグザグスキ
ヤンされ、有意係数検出回路46に供給される。有意係
数検出回路46では、量子化されたAC係数が“0”か
どうかを判定し、“0”の係数の場合はラン長カウンタ
47にカウントアツプ信号を供給し、カウンタの値を+
1増加させる。一方、“1”の係数の場合は、リセツト
信号をラン長カウンタに供給し、カウンタの値をリセツ
トすると共に、係数をグループ化回路48によって図2
2に示されるようにグループ番号SSSSと付加ビツト
とに分割し、グループ番号SSSSを2次元ハフマン符
号化回路49に、付加ビツトを多重化回路51に各々供
給する。ラン長カウンタ47は、“0”のラン長をカウ
ントする回路で“0”以外の有意係数間に連続する
“0”の数NNNNを2次元ハフマン符号化回路49に
供給する。ハフマン符号化回路49は、供給された
“0”のラン長NNNNと有意係数のグループ番号SS
SSをACハフマンコードテーブル50に従つて可変長
符号化し、この可変長符号化したデータ、即ち、ACハ
フマンコードを多重化回路51に供給する。
On the other hand, AC coefficients (coefficients other than DC coefficients) quantized by Q 40 are zigzag-scanned in order from a lower-order coefficient by a scan conversion circuit 45 as shown in FIG. Supplied. The significant coefficient detection circuit 46 determines whether or not the quantized AC coefficient is "0". If the quantized AC coefficient is "0", a count-up signal is supplied to the run length counter 47, and the value of the counter is incremented by +.
Increase by one. On the other hand, when the coefficient is "1", a reset signal is supplied to the run length counter to reset the value of the counter, and the coefficient is grouped by the grouping circuit 48 in FIG.
As shown in FIG. 2, the data is divided into a group number SSSS and additional bits, and the group number SSSS is supplied to a two-dimensional Huffman encoding circuit 49 and the additional bits are supplied to a multiplexing circuit 51. The run length counter 47 counts the run length of “0” and supplies the two-dimensional Huffman encoding circuit 49 with the number NNNN of “0” that continues between significant coefficients other than “0”. The Huffman encoding circuit 49 supplies the run length NNNN of “0” and the group number SS of the significant coefficient.
The SS is variable-length coded according to the AC Huffman code table 50, and the variable-length coded data, that is, the AC Huffman code is supplied to the multiplexing circuit 51.

【0007】多重化回路51では、1ブロツク(8×8
の入力画素)分のDCハフマンコード、ACハフマンコ
ード及び付加ビツトを多重化し、出力端子52から、こ
の多重化したデータ、即ち、圧縮された画像データが出
力される。従つて、出力端子52より出力される圧縮デ
ータをメモリに記憶し、読出し時に逆操作によつて伸長
することにより、メモリ容量を削減することができる。
In the multiplexing circuit 51, one block (8 × 8)
DC Huffman code, AC Huffman code and additional bits for the input pixels are multiplexed, and the multiplexed data, that is, compressed image data is output from an output terminal 52. Therefore, the memory capacity can be reduced by storing the compressed data output from the output terminal 52 in a memory and decompressing the data by a reverse operation at the time of reading.

【0008】[0008]

【発明が解決しようとしている課題】しかしながら、上
記従来例には、以下に示す欠点がある。上記従来例を例
えば画像出力装置に応用したと考える。一般的に画像出
力装置はホストコンピユータ、イメージスキヤナ等の画
像入力装置に接続されて、システムの一部として動作さ
せることが多い。この場合、画像出力装置にはホストコ
ンピユータ上で作成したCG(コンピユータグラフイツ
ク)画像や、イメージスキヤナにより入力した画像な
ど、様々な画像が送信される。
However, the above-mentioned prior art has the following drawbacks. It is assumed that the above conventional example is applied to, for example, an image output device. Generally, an image output device is connected to an image input device such as a host computer or an image scanner, and is often operated as a part of a system. In this case, various images such as a CG (Computer Graphic) image created on the host computer and an image input by an image scanner are transmitted to the image output device.

【0009】上記従来例は、写真等のイメージをイメー
ジスキヤナによりデイジタル化した画像の様に、直交変
換上の低域に変換係数が集中する様な画像においては、
画像劣化を抑えるが、CG画像、フオント画像、CAD
(Computer Aided Design )画像などの人工的な線画に
おいては、圧縮、伸長した画像が非常に劣化してしまう
という欠点があつた。
In the above conventional example, in an image in which conversion coefficients are concentrated in a low frequency band in orthogonal transformation, such as an image obtained by digitizing an image such as a photograph by an image scanner,
Although image degradation is suppressed, CG images, font images, CAD
(Computer Aided Design) In artificial line drawings such as images, there is a disadvantage that the compressed and decompressed images are greatly deteriorated.

【0010】また、従来より変換係数の値に応じて適応
的に量子化条件を切換える技術がU.S.S.N(米国
特許出願番号)第738,562号において、本出願人
により提案されているが、それには以下の欠点がある。
即ち、入力源として標本化されたイメージが対象となつ
ていた為、変換係数で検知した部分が、そのイメージ内
のエツジ部か平坦部かを見分ける様な構成になつてい
た。イメージスキヤナ等の機器で入力された入力源、即
ち、標本化された画像は元のオリジナルがいくらエツジ
部だとしても、イメージスキヤナのMTF(変調伝達関
数)特性により、エツジ部が劣化した出力画像となる。
その為、ブロツク内の高周波成分を少しくらいは粗い量
子化を施しても画質にはさほど影響しなかつた。しか
し、前述の人工的に作成した画像は、イメージスキヤナ
等の機器で入力した画像、即ち、普通の中低解像度の画
像のエツジ部には発生しない様な高周波の成分に強いA
C電力を含むことが多い。これらの画像を従来の様な粗
い量子化をしてしまうと、人工的に造つた細線が途切れ
たり、細線近傍の平坦部にリンギング等のノイズが発生
する様に、悪影響が大きくなる。また、変換係数により
量子化条件の切換の条件においても、簡便かつ、タイム
ロスの少ない方式は提案されていなかつた。
Conventionally, a technique for adaptively switching a quantization condition according to a value of a transform coefficient is disclosed in U.S. Pat. S. S. No. 738,562, proposed by the applicant, has the following disadvantages:
That is, since an image sampled as an input source is a target, a portion detected by a transform coefficient is configured to be distinguished from an edge portion or a flat portion in the image. No matter how much the original source of the input source input by the device such as the image scanner, that is, the sampled image, the edge portion is deteriorated due to the MTF (modulation transfer function) characteristic of the image scanner. Output image.
Therefore, even if the high-frequency component in the block is slightly coarsely quantized, the image quality is not significantly affected. However, the above-described artificially created image is an image input by a device such as an image scanner, that is, A is strong against a high-frequency component that does not occur in the edge portion of a normal medium-low resolution image.
Often includes C power. If these images are coarsely quantized as in the prior art, the adverse effect increases such that artificially formed fine lines are interrupted or noise such as ringing occurs in a flat portion near the fine lines. Further, even under the condition of switching the quantization condition by the transform coefficient, a simple and low-time-loss method has not been proposed.

【0011】また前記従来例には、以下のような欠点が
ある。
The conventional example has the following disadvantages.

【0012】通常、写真等の原稿をイメージスキヤナ等
の機器で入力したハーフトーンイメージは、直交変換し
たブロツク内の低域に係数が集中しやすく、したがつて
割と低次のうちに有意係数の発生が集中してしまい、そ
こから高次は全て“0”が連続するということが多い。
Normally, in a halftone image in which an original such as a photograph is input by a device such as an image scanner or the like, coefficients tend to concentrate in a low frequency band in an orthogonally transformed block. In many cases, the generation of coefficients concentrates, and from there, "0" is often continuous in all higher orders.

【0013】この場合、“0”ランが16以上続いた場
合には図22で示した様に“R16”という符号が割り
当てられ、この符号を送信した後“、0”ランのカウン
タをリセツトして、再び“0”のラン長をカウントす
る。その後、0”以外の有意係数が発生した時に、この
有意係数とその係数の直前まで連続した“0”のラン長
とで、2次元のハフマン符号化を施す。
In this case, if the "0" run continues for 16 or more, the code "R16" is assigned as shown in FIG. 22, and after transmitting this code, the counter of the "0" run is reset. Then, the run length of "0" is counted again. Thereafter, when a significant coefficient other than "0" is generated, two-dimensional Huffman coding is performed using the significant coefficient and a run length of "0" that continues immediately before the significant coefficient.

【0014】その為、図21に示した様な低次の係数か
ら順に走査していくジクザクスキヤンでは、途中で有意
係数の発生が終了しても、その後の高次の係数におい
て、有意係数が発生しているか否かは未知の為、1係数
ごとに“0”の数をカウントして、“R16”の符号化
の準備をしなくてはならない。すなわち、低次の係数か
ら順のジグザグスキヤンでは、どこ迄“0”以外の有意
係数が発生しているのか、つまり言い換えると、どこ迄
符号化して良いのかは、一度最高次の係数迄スキヤンし
てみないと判明できない。最高次の係数がもし、“0”
以外の有意係数だとした場合、それまでに蓄積した
“0”のラン長に基づき、“0”ランが16以上であれ
ばR16の符号化、及びそれ以降の“0”ランの符号化
をしなおさなくてはならない。もし、最高次係数も
“0”であつた場合には、それ迄蓄積した“0”ランを
リセツトして“EOB(End Of Block)”
の符号(図22に示す)を発生させなくてはならない。
すなわち、最後になつてブロツク内の符号化にかかる時
間が変わつてくる場合もある。言い換えると、毎回、一
定時間で符号化できないという欠点があつた。
For this reason, in the zigzag scan in which scanning is performed in order from the low-order coefficient as shown in FIG. 21, even if the generation of the significant coefficient is terminated on the way, the significant coefficient is not changed in the subsequent high-order coefficient. Since it is unknown whether or not this has occurred, the number of “0” must be counted for each coefficient to prepare for the encoding of “R16”. That is, in the zigzag scan in order from the low-order coefficient, it is determined to what extent significant coefficients other than “0” have occurred, in other words, to what extent the coding can be performed. You can't find it without trying. If the highest order coefficient is “0”
If the significant coefficient is other than 0, based on the run length of “0” accumulated so far, if “0” runs are 16 or more, the encoding of R16 and the encoding of subsequent “0” runs are performed. I have to do it again. If the highest order coefficient is also “0”, the “0” runs accumulated so far are reset and “EOB (End Of Block)” is executed.
(Shown in FIG. 22) must be generated.
That is, the time required for encoding in the block may be different at the end. In other words, there is a disadvantage that encoding cannot be performed in a fixed time every time.

【0015】本発明は、上述した従来例の欠点に鑑みて
なされたものであり、その目的とするところは、人工的
に作成した文字、フオント、線画等のエツジが良好に出
力することができ、且つ、いかなる入力源から受け取っ
た画像でも適正な量子化を簡単な構成で実現できる画像
圧縮装置を提供する点にある。
The present invention has been made in view of the above-described drawbacks of the conventional example, and has as its object to output edges such as characters, fonts, and line drawings which have been artificially created. Another object of the present invention is to provide an image compression apparatus which can realize appropriate quantization of an image received from any input source with a simple configuration.

【0016】また本発明の他の目的は、ブロツク内がど
の様な情報であっても、所定時間内に符号化を行うこと
ができると共に、回路構成を安価、且つ、簡単にできる
画像圧縮装置を提供する点にある。
Another object of the present invention is to provide an image compression apparatus capable of performing encoding within a predetermined time regardless of what kind of information is in a block, and having a low-cost and simple circuit configuration. The point is to provide.

【0017】[0017]

【課題を解決するための手段】上述した課題を解決し、
目的を達成するため、本発明に係る画像圧縮装置は、所
定のブロックに分割された画像データを入力する入力手
段と、前記画像データを前記ブロック毎に直交変換係数
データに変換する変換手段と、前記ブロック内の所定エ
リアにおける直交変換係数データの絶対値に所定値以上
の値が存在するか否かを判断して当該ブロックの画像タ
イプを識別する識別手段と、前記識別手段の識別結果に
応じて前記ブロック内の直交変換係数データを量子化す
る量子化手段と、を有することを特徴とする。また、本
発明に係る画像圧縮方法は、所定のブロックに分割され
た画像データを入力し、前記画像データを前記ブロック
毎に直交変換係数データに変換し、前記ブロック内の所
定エリアにおける直交変換係数データの絶対値に所定値
以上の値が存在するか否かを判断して当該ブロックの画
像タイプを識別し、前記識別手段の識別結果に応じて前
記ブロック内の直交変換係数データを量子化することを
特徴とする。
Means for Solving the Problems The above-mentioned problems are solved,
In order to achieve the object, an image compression device according to the present invention includes an input unit that inputs image data divided into predetermined blocks, a conversion unit that converts the image data into orthogonal transform coefficient data for each of the blocks, An identification means for determining whether or not an absolute value of orthogonal transform coefficient data in a predetermined area in the block has a value equal to or greater than a predetermined value, and identifying an image type of the block; And quantizing means for quantizing orthogonal transform coefficient data in the block. Further, in the image compression method according to the present invention, image data divided into predetermined blocks is input, the image data is converted into orthogonal transform coefficient data for each block, and orthogonal transform coefficients in a predetermined area in the block are input. It is determined whether or not the absolute value of the data has a value equal to or greater than a predetermined value, and the image type of the block is identified, and the orthogonal transform coefficient data in the block is quantized according to the identification result of the identification unit. It is characterized by the following.

【0018】[0018]

【0019】[0019]

【実施例】以下、本発明の実施例を添付図面に基づいて
説明する。 <第1の実施例>図1は本発明に係る画像圧縮装置の第
1の実施例の要部を示すブロツク図、図2は第1の実施
例による主要な動作手順を説明するフローチヤート、図
3はDCT係数の逆スキヤン順序を示す図、図4はDC
T係数の順スキヤン順序を示す図、図5はイメージスキ
ヤナ入力の入力データとDCT係数との関係を例示する
図、そして、図6はコンピュータにより人工的に作成し
た入力データとDCT係数と関係を例示する図である。
Embodiments of the present invention will be described below with reference to the accompanying drawings. <First Embodiment> FIG. 1 is a block diagram showing a main part of a first embodiment of an image compression apparatus according to the present invention, and FIG. 2 is a flow chart for explaining main operation procedures according to the first embodiment. FIG. 3 is a diagram showing the inverse scan order of DCT coefficients, and FIG.
FIG. 5 is a diagram showing the order of T coefficient scan order, FIG. 5 is a diagram illustrating the relationship between input data of an image scanner input and DCT coefficients, and FIG. 6 is a diagram showing the relationship between input data artificially created by a computer and DCT coefficients. FIG.

【0020】図1において、100はイメージスキヤナ
入力の多値画像データやコンピュータにより人工的に作
成された多値画像データを入力する入力端子、101は
DCT回路、102,103,111はスイツチ、10
4は逆スキヤンアドレス発生器、105は順スキヤンア
ドレス発生器、106は絶対値回路、107は比較器、
108はカウンタ判定回路、109,110は互いに異
なる量子化特性の量子化テーブル、112はDC成分用
の出力端子、113はAC成分用の出力端子、114は
Qを示している。
In FIG. 1, reference numeral 100 denotes an input terminal for inputting multi-valued image data input by an image scanner or multi-valued image data artificially created by a computer; 101, a DCT circuit; 102, 103, 111, switches; 10
4 is a reverse scan address generator, 105 is a forward scan address generator, 106 is an absolute value circuit, 107 is a comparator,
Reference numeral 108 denotes a counter determination circuit, 109 and 110 denote quantization tables having different quantization characteristics, 112 denotes an output terminal for DC components, 113 denotes an output terminal for AC components, and 114 denotes Q.

【0021】Thは所定の閾値であり、不図示の操作部
においてマニュアル選択される。選択されたThは、不
図示のCPUによって所定のレジスタにセットされる。
Th is a predetermined threshold, and is manually selected by an operation unit (not shown). The selected Th is set in a predetermined register by a CPU (not shown).

【0022】上記構成による動作を図2を用いて説明す
る。
The operation of the above configuration will be described with reference to FIG.

【0023】入力端子100より入力されたイメージ対
応の多値画像信号は、既に、不図示のブロツク化回路に
よって、8×8画素のブロツク状に切出され、DCT回
路101に送られ、DCTが施される(S1)。本実施
例では、直交変換に8×8のDCTを用いて説明してい
るが、例えば、アダマール変換等の他の直交変換方式で
あつても8×8以外のブロツクサイズであつても良いこ
とは勿論である。
The multi-valued image signal corresponding to the image input from the input terminal 100 is already cut out into a block of 8.times.8 pixels by a block forming circuit (not shown), sent to the DCT circuit 101, and subjected to DCT. (S1). Although the present embodiment is described using an 8 × 8 DCT for the orthogonal transform, for example, other orthogonal transform schemes such as Hadamard transform or block sizes other than 8 × 8 may be used. Of course.

【0024】DCT変換された係数は、図4に示した様
に、低次の係数から高次の係数に向けて、ジグザグ状に
1次元に並び直される。1次元に配列されたDCT係数
を今後“DCT[n](n=0〜63)”という配列の
形で定義する。DCT[0]は、DC成分の係数、DC
T[1]〜DCT[63]はAC成分の係数を示し、n
の小さいものほど低次の係数となる。
As shown in FIG. 4, the DCT-transformed coefficients are rearranged in a one-dimensional manner in a zigzag manner from low-order coefficients to high-order coefficients. The DCT coefficients arranged one-dimensionally will be defined in the form of an array called “DCT [n] (n = 0 to 63)”. DCT [0] is a coefficient of DC component, DC
T [1] to DCT [63] indicate AC component coefficients, and n
The smaller the value, the lower the coefficient.

【0025】ここで、図1中のスイツチ102、スイツ
チ103は、8×8画素ブロツクごとの初期化により、
それぞれa,cの端子に接続される。逆スキヤンアドレ
ス発生器104は、図3の矢印に示されている様に、最
も高次の変換係数から低次の変換係数へスキヤンするア
ドレスを与える回路である。一方、順スキヤンアドレス
発生器105は図4の矢印に示されている様に最も低次
の変換係数から高次の変換係数へとスキヤンするアドレ
スを与える回路である。さらに詳述すれば、DC成分を
DCT[0]、AC成分の低次からDCT[1],
[2],…,DCT[63]となる様に配列する。すな
わち、DCT[n]はアドレスnの変換係数を示す。
Here, the switches 102 and 103 in FIG. 1 are initialized by every 8 × 8 pixel block.
They are connected to terminals a and c, respectively. The inverse scan address generator 104 is a circuit for giving an address for scanning from the highest-order transform coefficient to the lower-order transform coefficient, as indicated by the arrow in FIG. On the other hand, the forward scan address generator 105 is a circuit for giving an address for scanning from the lowest-order transform coefficient to the higher-order transform coefficient as shown by the arrow in FIG. More specifically, the DC component is DCT [0], and the DCT [1],
[2],..., DCT [63]. That is, DCT [n] indicates a conversion coefficient of address n.

【0026】逆スキヤンアドレス発生器104により、
まずDCT[63−i]がロードされ、絶対値回路10
6により絶対値化され(ABS(DCT[63−i])
とする)、比較器107へ送られる。比較器107で
は、入力したABS(DCT[63−i])と予め用意
された閾値(Th)とを比較し、AC電力が閾値以上存
在するか否か判断される(S2)。もし、“ABS(D
CT[63−i])≧Th”が否ならば、S3におい
て、カウンタ判定回路108によってiが予め設定した
アドレスまで達したか否かを判断する。このアドレスは
高域成分のみを取りうる様な値で予め設定される。例え
ばDCT[45]〜DCT[63]迄とするならば、ア
ドレス=19とする。
The inverse scan address generator 104
First, DCT [63-i] is loaded, and the absolute value circuit 10
6 (ABS (DCT [63-i])
), And sent to the comparator 107. The comparator 107 compares the input ABS (DCT [63-i]) with a threshold value (Th) prepared in advance, and determines whether the AC power is equal to or greater than the threshold value (S2). If "ABS (D
If CT [63-i] ≧ Th ″ is not satisfied, in S3, it is determined whether or not i has reached a preset address by the counter determination circuit 108. This address can take only high-frequency components. For example, if DCT [45] to DCT [63] are set, the address is set to 19.

【0027】S3において、i<アドレスであれば、S
4でi=i+1の処理を行ない(カウンタ判定回路10
8)、次のDCT変換係数を走査して同様の操作を繰り
返す。Th,アドレスの値の設定の方法については後述
する。
In S3, if i <address, S
4, the processing of i = i + 1 is performed (counter determination circuit 10
8) Scan the next DCT transform coefficient and repeat the same operation. The method of setting the Th and address values will be described later.

【0028】カウンタ108では、スイッチ102、ス
イッチ103の端子の切換えも行っていて、S2の条件
が正、すなわち“ABS(DCT[63−i])≧Th”
の時、又はS3の条件が否、すなわち“i≧アドレス”
の時に、スイッチ102、スイッチ103の端子がそれ
ぞれb,dに切換わる。S2の条件が正ならコンピュー
タ画像用の量子化テーブル110が選択され(S5)、
S3の条件が否なら自然画像用の量子化テーブル109
が選択される(S6)。実際には、量子化テーブル10
9は初期化(デフォルト)のときに選択される。つまり
スイッチ111は常にeの端子に初期接続される。また
設計上、比較器107からの出力(S2が正という信
号)に応じて切換えてロードするようにしても良い。
In the counter 108, the terminals of the switches 102 and 103 are also switched, and the condition of S2 is positive, that is, "ABS (DCT [63-i]) ≧ Th".
Or the condition of S3 is not satisfied, ie, “i ≧ address”
At this time, the terminals of the switch 102 and the switch 103 are switched to b and d, respectively. If the condition of S2 is positive, the quantization table 110 for the computer image is selected (S5),
If the condition of S3 is not satisfied, the quantization table 109 for natural images is used.
Is selected (S6). In practice, the quantization table 10
9 is selected at initialization (default). That is, the switch 111 is always initially connected to the terminal e. Further, in design, switching may be performed in accordance with the output from the comparator 107 (a signal indicating that S2 is positive), and loading may be performed.

【0029】さて、量子化テーブルがひとつ選択される
と、今度は順スキヤンアドレス発生器105及びQ11
4により図4に示した順スキヤンの矢印に従つて、まず
DCT[0]であるDC成分の量子化、続いてDCT
[1],DCT[2],…,DCT[63]であるAC
成分の量子化が行なわれる(図2のS7)。図1におい
て、DC成分は出力端子112へ、AC成分は出力端子
113へ出力される。尚、量子化後は関連技術で述べた
方式を採用しても良い。
Now, when one quantization table is selected, this time the forward scan address generator 105 and Q11
4 in accordance with the forward scan arrow shown in FIG. 4, first, the quantization of the DC component which is DCT [0], and then the DCT
AC that is [1], DCT [2], ..., DCT [63]
The components are quantized (S7 in FIG. 2). In FIG. 1, a DC component is output to an output terminal 112, and an AC component is output to an output terminal 113. After quantization, the method described in the related art may be adopted.

【0030】さて、S8において、j<63か否かの判
断により、1ブロツクの符号化が終了したか否かを判定
し、まだ1ブロツクの符号化が未終了ならばS9におい
てj=j+1の処理を施し、量子化を繰り返す。一ブロ
ツク内において、スイツチ102,103によって、
b,dの端子が一旦選択されたら、その選択状態をブロ
ツクの符号化が終了する迄、保持する。
Now, in S8, it is determined whether or not j <63 by judging whether or not j <63. If the encoding of one block has not yet been completed, it is determined in S9 that j = j + 1. Perform processing and repeat quantization. In one block, switches 102 and 103
Once the terminals b and d are selected, the selected state is held until the encoding of the block is completed.

【0031】本実施例の構成、制御は、以上に述べた様
な簡単、単純であるが、前述したTh,アドレス,量子
化テーブル109,110の設定が予め必要である。
Although the configuration and control of this embodiment are simple and simple as described above, the above-mentioned settings of Th, address, and quantization tables 109 and 110 are required in advance.

【0032】図5(a)には自然画(中間調画像のイメ
ージ)をイメージスキヤナにより標本化した画像データ
が示されている。この画像データは8ビツトで、エツジ
部を8×8のブロツク状にしたものである。急峻なエツ
ジ部でも、イメージスキヤナのMTFによりなまつてし
まつている点と、自然画においては原稿の写真等のMT
Fにより急峻なエツジにはなりにくい点がある。
FIG. 5A shows image data obtained by sampling a natural image (an image of a halftone image) using an image scanner. This image data is 8 bits, and the edge portion is formed in an 8 × 8 block shape. The steep edges are controlled by the MTF of the image scanner.
There is a point in which a sharp edge hardly occurs due to F.

【0033】図5(a)の画像をDCT変換した変換係
数を図5(b)に示す。これは11ビツトで−1024
〜+1023迄の値をとりうる(DC成分はAC成分と
ダイナミツクレンジを同一にする為に、図5(a)の各
画素から127だけ減算してからDCT変換してい
る)。この様に、自然画中のエツジ部であつても、DC
T変換係数は低域に大きな値が発生し、高域では大きな
値が発生してもAC電力は少なくなる。
FIG. 5B shows transform coefficients obtained by subjecting the image shown in FIG. 5A to DCT. This is 11 bits and -1024
The DC component can take values up to +1023 (in order to make the dynamic range the same as the AC component, 127 is subtracted from each pixel in FIG. 5A and then DCT-transformed). Thus, even in the edge portion of a natural image, the DC
As for the T-transform coefficient, a large value occurs in the low band, and the AC power decreases even if a large value occurs in the high band.

【0034】図6(a)のコンピユータ上で人工的に作
成した信号を示す。この信号は図5(a)と同様に8ビ
ツトである。この信号をDCT変換した変換係数を図6
(b)に示す。図5(a)と全体のAC電力が異なつて
いるので、一概な比較は出来ないが、低域だけではなく
高域にもかなり大きな値が発生している。図6に示した
例はほんの一例であるが、人工的に作成したエツジ部で
は低域よりも高域の方がAC電力が大きくなるパターン
も作成できる。すなわち、イメージスキヤナ等で画像入
力した情報では、得られないAC電力が高域成分に発生
する。そこで、システムで考えた場合、通常接続してい
る画像入力装置等の機器によるMTF特性によるなまり
を予め実験的、経験的に求めておいて、前述のアドレ
ス,Thを定めておく。例えば、今回アドレスをDCT
[28]〜DCT[63]迄の36(アドレス=36)
とし、Thを50(Th=50)に設定する。人工的に
作成したエツジ部は、ところどころの成分にDCT係数
の絶対値が50を越えるところがあるが、イメージスキ
ヤナで読み込んだものはエツジ部が発生していないとす
る。すなわち、設定した高域成分に、ある閾値以上の成
分が1成分でもあると、それは人工的に作成したエツジ
部、線画等と見なす。人工的に作成した画像でもエツジ
部ではない平坦部は抽出されない様にする。
FIG. 6A shows a signal artificially created on the computer of FIG. This signal is 8 bits as in FIG. 5 (a). The transform coefficient obtained by DCT transforming this signal is shown in FIG.
(B). Since the total AC power is different from that in FIG. 5A, a general comparison cannot be made, but a considerably large value occurs not only in the low band but also in the high band. Although the example shown in FIG. 6 is only an example, a pattern in which the AC power is larger in the high frequency band than in the low frequency band can be created in the edge portion created artificially. That is, in the information input by the image scanner or the like, AC power that cannot be obtained is generated in the high frequency component. Therefore, when considering the system, it is necessary to experimentally and empirically determine the roundness due to the MTF characteristic of a normally connected device such as an image input device, and to determine the above-mentioned address and Th. For example, this time the address is DCT
36 from [28] to DCT [63] (address = 36)
And set Th to 50 (Th = 50). In an artificially created edge portion, it is assumed that there are some components where the absolute value of the DCT coefficient exceeds 50, but no edge portion is generated in an image read by an image scanner. That is, if at least one of the set high-frequency components is equal to or greater than a certain threshold value, it is regarded as an artificially created edge portion, line drawing, or the like. Even in an artificially created image, a flat portion that is not an edge portion is not extracted.

【0035】図7(a),(b)は、それぞれ前述の量
子化テーブル109,110の一例を示す図である。図
7(a)は従来例で説明したJPEGの標準化テーブル
とされている輝度成分Yのテーブルを示す図である。こ
れはステツプ幅を示し、これに基づき、線形量子化され
る。当然、値の大きい方が粗い量子化となる。
FIGS. 7A and 7B show examples of the above-described quantization tables 109 and 110, respectively. FIG. 7A is a diagram showing a luminance component Y table which is a JPEG standardization table described in the conventional example. This indicates the step width, on which linear quantization is performed. Naturally, the larger the value, the coarser the quantization.

【0036】図7(b)は、量子化テーブル110の例
を示す。量子化テーブル110によれば、低域も高域も
ほぼ同じ値にしている。DC成分は異なる値にしてある
が、これも同値であつても良い。すなわち、人工的に作
成したエツジ部が抽出されなかつたブロツク内の低域で
のある成分のステツプ幅をS low、高域でのある成分の
ステツプ幅をS high 、人工的に作成したエツジ部であ
ると判断されたブロツクでの低域及び高域でのある成分
のステツプ幅をそれぞれS’low ,S’highとすると、
Slow /Shigh<S’low /S’high≧1となる様に設
定する。言い換えると、低域から高域までを示すf特性
の傾きを量子化テーブル109から量子化テーブル11
0にすることにより、より滑らかにするものである。
FIG. 7B shows an example of the quantization table 110. According to the quantization table 110, the low band and the high band have substantially the same value. Although the DC components have different values, they may have the same value. That is, the step width of a certain component in the low band in the block from which the artificially created edge portion has not been extracted is S low, the step width of the certain component in the high band is S high, and the edge portion of the artificially created edge portion is If the step widths of certain components in the low and high frequencies in the block determined to be S'low and S'high, respectively,
Set so that Slow / Shigh <S'low / S'high ≧ 1. In other words, the slope of the f-characteristic indicating the range from the low band to the high band is calculated from the quantization table 109 to the quantization table 11.
By setting it to 0, it is possible to make it smoother.

【0037】以上の様にして、入力した画像をブロツク
ごと、人工的に作成されたエツジ部か否かを容易な手法
で判断し、量子化条件を切換える。
As described above, it is determined by a simple method whether or not the input image is an edge portion created artificially for each block, and the quantization condition is switched.

【0038】以上説明したように、第1の実施例によれ
ば、単純、容易な構成で、人工的に作成した線画、例え
ばコンピユータ上で作成した線画、フオント等の画像の
エツジ部を検出し、適切な量子化を行なうことにより、
いかなる入力源でも良好に出力画像を形成できる。
As described above, according to the first embodiment, an edge portion of an image such as a line drawing created on a computer, for example, a line drawing created on a computer, or a font, is detected with a simple and easy configuration. , By performing appropriate quantization,
An output image can be formed well with any input source.

【0039】また、第1の実施例によれば、汎用性があ
って、高速かつ、画質劣化の少ない画像圧縮を行うこと
ができる。 <第2の実施例>図8は本発明に係る画像圧縮装置の第
2の実施例の要部を示すブロツク図、そして、図9は第
2の実施例による量子化テーブル110〜113の一例
を示す図である。
Further, according to the first embodiment, it is possible to perform image compression that is versatile, high-speed, and with little deterioration in image quality. <Second Embodiment> FIG. 8 is a block diagram showing a main part of an image compression apparatus according to a second embodiment of the present invention, and FIG. 9 is an example of quantization tables 110 to 113 according to the second embodiment. FIG.

【0040】本実施例は図1に示される第1の実施例に
比べ、より多くの量子化テーブルの切換えを実現するも
のであり、図1と同一部分には同一番号を付して説明す
る。異なる構成として、801,814はスイツチ、8
02は2乗回路、803は低域電力加算器、804はカ
ウンタ判定回路、805は高域電力加算器、810,8
11,812,813は量子化テーブルをそれぞれ示し
ている。
This embodiment realizes a larger number of switching of the quantization tables than the first embodiment shown in FIG. 1, and the same parts as those in FIG. 1 are denoted by the same reference numerals. . As different configurations, 801 and 814 are switches, 8
02 is a squaring circuit, 803 is a low-frequency power adder, 804 is a counter determination circuit, 805 is a high-frequency power adder, and 810 and 8
Numerals 11, 812, and 813 indicate quantization tables, respectively.

【0041】図8において、DCTの終了した変換係数
を順スキヤン方向(図4の矢印方向:但し、DC成分は
用いない)に従つて走査していく。まず、最も低次のA
C変換係数DCT[1]を読み出す。スイツチ103及
びスイツチ801はそれぞれ初期化によりc,hに接続
されている。DCT[1]は、2乗回路802により2
乗され、低域電力加算器803に送られる。低域電力加
算器803は低域の変換係数の2乗を累積加算する手段
を示す。例えば低域をDCT[1]〜DCT[27]ま
での27成分、高域をDCT[28]〜DCT[63]
までの36成分とした場合、カウンタ判定回路804は
27成分までをカウントしてスイツチ801をhからg
の端子に切換える。高域電力加算器805は、
In FIG. 8, the transform coefficients after the DCT are scanned in the forward scan direction (the direction of the arrow in FIG. 4; however, no DC component is used). First, the lowest A
Read the C transform coefficient DCT [1]. The switch 103 and the switch 801 are respectively connected to c and h by initialization. DCT [1] is calculated by squaring circuit 802 into 2
, And sent to the low-frequency power adder 803. The low-frequency power adder 803 indicates a means for cumulatively adding the square of the low-frequency transform coefficient. For example, the low band has 27 components from DCT [1] to DCT [27], and the high band is DCT [28] to DCT [63].
If there are 36 components, the counter determination circuit 804 counts up to 27 components and switches the switch 801 from h to g.
Switch to the terminal. The high-frequency power adder 805 is

【0042】[0042]

【数1】 の値を求め、保持する。高域成分においては、前述した
第1の実施例と同様、比較器107によって予め設定し
た閾値(Th)を用意する。本実施例では、変換係数を
絶対値ではなく、2乗している為、閾値も2乗した値が
必要となる。カウンタ判定回路804は、DCT[1]
〜DCT[63]迄の走査が終了した時点で、比較器1
07、高域電力加算器805、低域電力加算器803か
ら信号を受けて、スイツチ806に信号を送り、量子化
テーブル810,811,812,813の切換えを行
なう。
(Equation 1) Find the value of and hold. For the high-frequency component, a threshold value (Th) preset by the comparator 107 is prepared, as in the first embodiment described above. In this embodiment, since the conversion coefficient is not an absolute value but is squared, the threshold value also needs to be squared. The counter determination circuit 804 uses DCT [1]
When the scanning up to DCT [63] is completed, the comparator 1
07, receives signals from the high-band power adder 805 and the low-band power adder 803, sends a signal to the switch 806, and switches the quantization tables 810, 811, 812, and 813.

【0043】カウンタ判定回路804では、1成分あた
りの変位器高域電力Phigh と1成分あたりの平均低域
電力P lowを求める。例えば、前述した様に低域をDC
T[1]〜DCT[27]、高域をDCT[28]〜D
CT[63]とした場合、
The counter determination circuit 804 obtains the displacement unit high band power P high per component and the average low band power P low per component. For example, as described above,
T [1] to DCT [27], high frequencies from DCT [28] to D
If CT [63],

【0044】[0044]

【数2】 (Equation 2)

【0045】[0045]

【数3】 となる。そして、カウンタ判定回路804は、電力比
(P high /P low)を求め、この電力比と比較器10
7の比較結果とに従い、量子化テーブルが例えば以下の
ように切換わる。すなわち、Th以上あり、かつ、Phi
gh /P low≧0.8の時には、量子化テーブル11
0、Th以上あり、かつ、P high /P low<0.8の
時には、量子化テーブル111、Th以上無く、かつ、
P high /P low≧0.8の時には、量子化テーブル1
12、Th以上無く、かつ、P high /P low<0.8
の時には、量子化テーブル113となる。一例として、
図9に示す。
(Equation 3) Becomes Then, the counter determination circuit 804 obtains the power ratio (P high / P low), and compares this power ratio with the comparator 10
According to the comparison result of No. 7, the quantization table is switched, for example, as follows. That is, there is more than Th and Phi
When gh / P low ≧ 0.8, the quantization table 11
When there is 0 or more than Th and P high / P low <0.8, the quantization table 111 does not have more than Th and
When P high / P low ≧ 0.8, quantization table 1
12. No Th or more, and P high / P low <0.8
In this case, the quantization table 113 is used. As an example,
As shown in FIG.

【0046】すなわち、電力比Phigh/Plow の値が大
きければ、前述の実施例の量子化テーブルのステツプ幅
の比、Slow /Shighを“1”に近づける様な量子化テ
ーブルを選択する。以上の選択は、スイツチ814が行
い、その指示は、カウンタ判定回路804から受け取
る。
That is, if the value of the power ratio Phigh / Plow is large, a quantization table is selected such that the ratio of the step width, Slow / Shigh, of the quantization table of the above-described embodiment approaches "1". The above selection is performed by the switch 814, and the instruction is received from the counter determination circuit 804.

【0047】量子化テーブルの切換えが終了すると、順
スキヤンアドレス発生器105は再び先頭のアドレスに
戻つて今度はDC成分からDCT[0]〜DCT[6
3]の読み出しを行なう。また、スイツチ103はcか
らdに接続され、Q(Q)114により量子化され、D
C成分は112端子へ、AC成分は113端子へ出力さ
れる。
When the switching of the quantization table is completed, the forward scan address generator 105 returns to the head address again, and this time from the DC component, DCT [0] to DCT [6].
3] is performed. The switch 103 is connected from c to d, quantized by Q (Q) 114, and D
The C component is output to terminal 112 and the AC component is output to terminal 113.

【0048】以上、図8を基に説明したが、DC成分の
量子化ステツプがどの量子化テーブルにおいても同一の
場合は、時間短縮の為、量子化テーブルの選択動作の最
中に、パイプライン処理で符号化を行つても良い。即
ち、テーブル選択動作と符号化動作とを異なるブロツク
に対して同時に行わせても良い。
As described above with reference to FIG. 8, when the quantization step of the DC component is the same in any quantization table, the pipeline is selected during the operation of selecting the quantization table in order to reduce the time. The encoding may be performed in the processing. That is, the table selection operation and the encoding operation may be performed simultaneously for different blocks.

【0049】また、本実施例は量子化テーブルを4種に
より説明したが、これ以上でも以下でも構わない。 <第3の実施例>また、上述の第2の実施例では、高域
と低域で2乗和をとる電力の総和として比較したが、本
発明は、簡略化の為に高域と低域のそれぞれ絶対値和に
しても良い。
In this embodiment, four quantization tables have been described. However, more or less quantization tables may be used. <Third Embodiment> In the above-described second embodiment, a comparison was made as the sum of the powers that take the sum of the squares in the high band and the low band. The sum of the absolute values of the ranges may be used.

【0050】図10は本発明に係る画像圧縮装置の第3
の実施例の要部を示すブロツク図である。本実施例は第
1の実施例と一部異なる為、同一部分には同一番号を付
して異なる点のみ説明する。
FIG. 10 shows a third example of the image compression apparatus according to the present invention.
It is a block diagram which shows the principal part of Example of this. Since the present embodiment is partially different from the first embodiment, the same portions are denoted by the same reference numerals and only different points will be described.

【0051】図10において、1001は絶対値和加算
器を示し、入力した高域の変換係数の絶対値和をとる。
絶対値和加算器1001は、高域成分の絶対値を第1の
実施例で述べた閾値と比較をするばかりでなく、高域の
絶対値和がどの程度なのかを調べる。つまり、高域にひ
とつの成分だけ飛び出している場合と、全体的に大きな
値となつている場合とで量子化条件を切換える。
In FIG. 10, reference numeral 1001 denotes an absolute value sum adder, which takes the absolute value sum of the input high-frequency transform coefficients.
The absolute value sum adder 1001 not only compares the absolute value of the high frequency component with the threshold value described in the first embodiment, but also checks the absolute value sum of the high frequency component. That is, the quantization condition is switched between a case where only one component protrudes into the high frequency range and a case where the overall value is large.

【0052】量子化テーブル(109,110)の切換
えは、第1の実施例で述べた様に、高域の変換係数の絶
対値にThよりも大きいものがあるか否かで、人工的な
エツジ部か否かを判断して、スイツチ111で行う。
As described in the first embodiment, the switching of the quantization tables (109, 110) is performed artificially depending on whether or not there is an absolute value of a high-frequency transform coefficient larger than Th. It is determined by the switch 111 whether or not it is an edge portion.

【0053】図11は第3の実施例による量子化テーブ
ルの一例を示す図である。
FIG. 11 is a diagram showing an example of the quantization table according to the third embodiment.

【0054】イメージスキヤナ等で入力された画像と判
断されたブロツクの場合には、図11(a)のテーブ
ル、人工的なエツジ部と判断されたブロツクは図11
(b)のテーブルを選択する。図11において、量子化
テーブル109の例ではAC成分のみが示され、量子化
テーブル110の例であるDC成分は別に固定で保持し
た方が良い。量子化テーブル110を選択した場合に限
り、絶対値和加算1001の出力を基に、乗算器100
2に量子化テーブルの各係数に乗ずるいわゆるスケーリ
ングフアクター(Sフアクター)を設定する。すなわ
ち、高域での絶対値和が大きい場合には、Sフアクター
を大きめに設定し、小さい場合にはある成分だけ突出し
て閾値を越えたと判断して、小さめに設定する。人工的
なエツジ部では、人工画のエツジ部とは異なって、高域
の成分の重要度が大きいので、なるべく高域の全ての成
分を生かすしかし、毎回小さめのSフアクターを設定す
ると画像は良好になるが、符号量が増えてしまう為、上
述の処理が有効となる。 <第4の実施例>図12は本発明に係る画像圧縮装置の
第4の実施例の構成を示すブロツク図であり、図13及
び図14は第4の実施例による主要な動作手順を説明す
るフローチヤートである。
In the case of a block determined to be an image input by an image scanner or the like, the table shown in FIG.
Select the table in (b). In FIG. 11, only the AC component is shown in the example of the quantization table 109, and the DC component, which is an example of the quantization table 110, should be held separately and fixed. Only when the quantization table 110 is selected, the multiplier 100
A so-called scaling factor (S factor) for multiplying each coefficient of the quantization table by 2 is set. That is, when the sum of absolute values in the high frequency range is large, the S factor is set large, and when the sum is small, it is determined that a certain component protrudes and exceeds the threshold value, and is set small. In the artificial edge part, unlike the edge part of the artificial image, the importance of the high frequency components is large, so all the high frequency components are used as much as possible, but the image is good if a small S factor is set every time. However, since the code amount increases, the above-described processing is effective. <Fourth Embodiment> FIG. 12 is a block diagram showing the configuration of a fourth embodiment of the image compression apparatus according to the present invention. FIGS. 13 and 14 illustrate the main operation procedure according to the fourth embodiment. It is a flow chart.

【0055】図12において、1100は図1の入力端
子100同様の多値画像信号を入力する入力端子、11
01はDCT回路、1102はスキヤン変換回路、11
03はバツフア、1104はQテーブル、1105は
Q、1106はDPCM、1107は1次元ハフマン符
号化回路、1108は逆スキヤンアドレス発生回路、1
109は順スキヤンアドレス発生回路、1110はスイ
ツチ、1111は有意係数検出回路、1112,111
3はカウンタ、1114はラン長カウンタ、1115は
グループ化回路、1116は2次元ハフマン符号化回
路、1117はDCハフマンテーブル、1118は多重
化回路、1119は出力端子をそれぞれ示している。
In FIG. 12, reference numeral 1100 denotes an input terminal for inputting a multi-level image signal similar to the input terminal 100 of FIG.
01 is a DCT circuit, 1102 is a scan conversion circuit, 11
03 is a buffer, 1104 is a Q table, 1105 is Q, 1106 is DPCM, 1107 is a one-dimensional Huffman coding circuit, 1108 is an inverse scan address generation circuit, 1
109 is a forward scan address generation circuit, 1110 is a switch, 1111 is a significant coefficient detection circuit, 1112 and 111
3 is a counter, 1114 is a run length counter, 1115 is a grouping circuit, 1116 is a two-dimensional Huffman coding circuit, 1117 is a DC Huffman table, 1118 is a multiplexing circuit, and 1119 is an output terminal.

【0056】続いて、上記構成による動作を図13及び
図14を参照して説明する。
Next, the operation of the above configuration will be described with reference to FIGS.

【0057】入力端子1100より入力された多値画像
信号は、前段で不図示のブロツク化回路において、8×
8画素のブロツク状に切出されており、DCT回路11
01に送られ、DCTが施される(S101)。本実施
例では、直交変換に8×8のDCTを用いて説明してい
るが、他の直交変換方式であつても、8×8以外のブロ
ツクサイズであつても良いことは勿論である。
The multi-valued image signal input from the input terminal 1100 is supplied to a block circuit (not shown) at the preceding stage, where the multi-valued image signal is 8 ×
The DCT circuit 11 is cut out into blocks of 8 pixels.
01 and subjected to DCT (S101). In the present embodiment, an explanation is given using 8 × 8 DCT for the orthogonal transform. However, it is a matter of course that other orthogonal transform methods or block sizes other than 8 × 8 may be used.

【0058】配列化したDCT係数は、一時、バツフア
1103に格納される。そして、DC成分(DCT
[0])は従来例と同様、Qテーブル1104により印
加される量子化ステツプ情報に従つて、Q1105にお
いて線形量子化されて、量子化後の変換係数はDPCM
1106にて前ブロツクのDC成分との差分をとつて、
1次元ハフマン符号化回路1107にて符号が生成され
る。本実施例では、AC成分の符号化の動作手順に特徴
を有している。逆スキヤンアドレス発生器1108,順
スキヤンアドレス発生器1109は共にバツフア110
3からの読出しのアドレスを送信し、それぞれバツフア
1103内の逆方向からの読出し(DCT[n]におい
て、nの数値の大きな方からの読出しのことで逆スキヤ
ンと定義する)と、バツフア1103内の順方向の読出
し(DCT[n]において、nの数値の小さい方からの
読出しのことで順スキヤンと定義する)とを行う。
The arranged DCT coefficients are temporarily stored in the buffer 1103. Then, the DC component (DCT
[0]) is linearly quantized in Q1105 in accordance with the quantization step information applied by the Q table 1104 as in the conventional example, and the transform coefficient after quantization is DPCM.
At 1106, the difference from the DC component of the previous block is calculated, and
A one-dimensional Huffman coding circuit 1107 generates a code. The present embodiment is characterized in the operation procedure of encoding the AC component. The reverse scan address generator 1108 and the forward scan address generator 1109 are both buffer 110
3 is read, and reading is performed in the reverse direction in buffer 1103 (in DCT [n], reading from the larger value of n is defined as reverse scanning). In the forward direction (in DCT [n], reading from the smaller value of n is defined as a forward scan).

【0059】ブロツク内のAC成分の読出しは、まず予
め逆スキヤンがスイツチ1110で選択されている。
For reading the AC component in the block, first, an inverse scan is previously selected by the switch 1110.

【0060】続いて、S102において、読出されたD
CT係数(DCT[63−i]:iは初期化で“0”が
代入されている)は、Q1105においてDC成分と同
様に線形量子化される。量子化後のDCT係数を一般的
にDCT’[n]”と定義する。S102において、生
成されたDCT’[63−i]をS103において、
“0”であるか否かを判断する(有意係数検出回路11
11)。もし、DCT’[63−i]=0であつた場合
には、1112に示したカウンタiを“+1”だけカウ
ントアツプする(S104)と同時に、スイツチ111
0に再び逆スキヤンを選択する信号を送信する。そし
て、新たに、また逆スキヤンによりバツフア内の配列の
1つ若い番号(1つ低次の)DCT係数1成分だけをみ
出し、DCT’[63−i]≠0になる迄同様の操作を
繰り返す。つまり、ブロツク内の最高次の量子化された
DCT係数(DCT’[63])からカウントして有意
係数が発生したアドレスまでの“0”の続いた数をカウ
ンタ1112が数えることになる。
Subsequently, in S102, the read D
The CT coefficient (DCT [63-i]: i is assigned “0” in initialization) is linearly quantized in Q1105 in the same manner as the DC component. The quantized DCT coefficient is generally defined as DCT ′ [n] ″. In S102, the generated DCT ′ [63-i] is determined in S103.
It is determined whether it is “0” (significant coefficient detection circuit 11
11). If DCT '[63-i] = 0, the counter i shown in 1112 is incremented by "+1" (S104), and at the same time, the switch 111 is turned on.
A signal for selecting the reverse scan is transmitted to 0 again. Then, only one DCT coefficient component of one lower number (one lower order) of the array in the buffer is newly obtained by the inverse scan, and the same operation is performed until DCT ′ [63-i] ≠ 0. repeat. That is, the counter 1112 counts the number of consecutive "0" s from the highest-order quantized DCT coefficient (DCT '[63]) in the block to the address where the significant coefficient has occurred.

【0061】さて、S103において、DCT’[63
−i]≠0となつた場合、有意係数検出回路1111は
スイツチ1110に対して今度は順スキヤン読出しを選
択する信号を送信する。
In step S103, DCT '[63
−i] If ≠ 0, the significant coefficient detection circuit 1111 transmits a signal for selecting the forward scan reading to the switch 1110.

【0062】順スキヤン読出しでは、バツフア1103
内の配列の1番若い番号のDCT係数を読出して、量子
化を行う(S105)。S105において、jの初期化
は“1”となつている為、DCT[0]はDC成分であ
り、AC成分の最も低次はDCT[1]になる)まず、
初めにDCT[1]を量子化してDCT’[1]を生成
する。
In the forward scan reading, a buffer 1103 is used.
The DCT coefficient with the lowest number in the array in the table is read and quantized (S105). In S105, since the initialization of j is “1”, DCT [0] is a DC component, and the lowest order of the AC component is DCT [1].
First, DCT [1] is quantized to generate DCT ′ [1].

【0063】続いて、S106において、有意検出回路
1111によって、量子化されたDCT’[j]が
“0”か否かを判断する。もし、S106において、D
CT’[j]=0となつた場合には、カウンタ1113
を“+1”だけカウントアツプすると同時に、従来例と
同様のラン長カウンタ1114のカウンタ値NNNNを
“+1”だけカウントアツプする(S107)。S10
6において、DCT’[j]≠0となつた場合には、そ
れ迄に蓄積したNNNNの数が15を越えてあるかどう
かを判断して(S108)、もし15を越えていたなら
ば従来例で説明した“R16”を送信し、NNNNの値
から16を減じる(S109)。もし、NNNNの数が
15以下の場合、グループ化回路1115では、関連技
術と同様、“0”以外の発生した係数DCT’[j]を
グルーピングしてSSSSとして発生し(S110)、
グループ番号SSSSと“0”のラン長NNNNとの2
次元ハフマン符号化(2次元ハフマン符号化回路111
6)により符号を発生させ、付加ビツトを多重化する
(S111)。続いて、S112において、カウンタ1
112とカウンタ1113の各値を加算して“63”に
なついてるか否かを判断し、i+j=63になつていれ
ば、EOB(End Of Block)を出力して(S113)、
1ブロツクの符号化が終了する。また、i+j<63の
場合には、カウンタ1113を“+1”だけカウントア
ツプすると同時に、ラン長カウンタNNNNの値をリセ
ツト(“0”を代入)して繰り返し操作する(S11
4)。
Subsequently, in S106, the significance detection circuit 1111 determines whether or not the quantized DCT '[j] is "0". If in S106, D
When CT ′ [j] = 0, the counter 1113
Is incremented by "+1", and at the same time, the count value NNNN of the run length counter 1114 is incremented by "+1" as in the conventional example (S107). S10
In step 6, if DCT '[j] ≠ 0, it is determined whether the number of NNNNs stored so far is more than 15 (S108). “R16” described in the example is transmitted, and 16 is subtracted from the value of NNNN (S109). If the number of NNNN is 15 or less, the grouping circuit 1115 groups generated coefficients DCT ′ [j] other than “0” and generates them as SSSS, as in the related art (S110).
2 of the group number SSSS and the run length NNNN of “0”
Dimensional Huffman coding (two-dimensional Huffman coding circuit 111
A code is generated according to 6), and the additional bits are multiplexed (S111). Subsequently, in S112, the counter 1
The value of the counter 112 is added to the value of the counter 112 to determine whether or not the number is 63. If i + j = 63, an EOB (End Of Block) is output (S113).
The encoding of one block is completed. If i + j <63, the counter 1113 is incremented by "+1", and at the same time, the value of the run length counter NNNN is reset (by substituting "0") and the operation is repeated (S11).
4).

【0064】以上述べた様な構成にすることにより、い
かなる符号が発生した場合においても、毎ブロツク所定
時間内でスムーズに符号化することができる。また回路
の構成が安価、単純で実現が容易である。 <第5の実施例>図15は本発明に係る画像圧縮装置の
第5の実施例の構成を示すブロツク図である。尚、逆ス
キヤンにおけるDCT係数のスキヤン順序の説明は図3
を用いて、順スキヤンにおけるDCT係数のスキヤン順
序の説明は図4を用いて説明する。図15に示される画
像圧縮装置は、図12に示した構成と若干異なり、図1
2と同一ブロツクには同一番号を付して説明する。
With the above-described configuration, even if any code is generated, it is possible to perform smooth coding within a predetermined time for each block. Further, the circuit configuration is inexpensive, simple, and easy to realize. <Fifth Embodiment> FIG. 15 is a block diagram showing the structure of a fifth embodiment of the image compression apparatus according to the present invention. The explanation of the scan order of the DCT coefficients in the inverse scan is shown in FIG.
The description of the scan order of the DCT coefficients in the forward scan will be described with reference to FIG. The image compression apparatus shown in FIG. 15 is slightly different from the configuration shown in FIG.
The same blocks as in FIG. 2 are described with the same numbers.

【0065】本実施例では、DCTが施された後、図1
2に示した第4の実施例の様にジグザグスキヤンにして
1次元に並び換え、この後にバツフアに格納するという
構成を設けずに、DCT回路1101でDCTを行つた
後のDCT係数の読み出し方向を切り換える構成をと
る。
In this embodiment, after DCT has been performed, FIG.
As in the fourth embodiment shown in FIG. 2, the DCT circuit 1101 does not provide a configuration in which the data is zigzag-scanned and rearranged one-dimensionally and then stored in a buffer. Is switched.

【0066】図15中、1301,1302はDCT係
数の読み出しを行なうジグザグ逆スキヤン回路,ジグザ
グ順スキヤン回路で、それぞれジグザグスキヤンを逆方
向から(図3に示す)読み出すジグザグ逆スキヤンと、
ジグザグスキヤンを順方向から(図4に示す)読み出す
ジグザグ順スキヤンを行う。1303は1301,13
02を切換えるスイツチを示し、初期設定ではジグザグ
逆スキヤンが選択されている。前述の第4の実施例と同
様、量子化してから“0”以外の有意係数か否かを検出
し、有意係数が発生するまでは、ジグザグ逆スキヤンが
選択されている。有意係数が発生した時にはじめてスイ
ツチ1303によってジグザグ順スキヤンが選択され
る。そこで、まず図4に示した最も先頭にあたるDC成
分(前述の第4の実施例ではDCT[0])を読み込
み、量子化した後にDPCM、1次元ハフマン符号化が
施される。次に、AC成分の低次の成分から最後に有意
係数が発生する成分迄を順次量子化、符号化を繰り返し
ていく。
In FIG. 15, reference numerals 1301 and 1302 denote a zigzag inverse scan circuit and a zigzag forward scan circuit for reading out DCT coefficients, respectively.
A zigzag scan is performed to read the zigzag scan from the forward direction (shown in FIG. 4). 1303 is 1301, 13
02 indicates a switch for switching, and in the initial setting, zigzag reverse scan is selected. As in the fourth embodiment, the zigzag inverse scan is selected after the quantization to detect whether the coefficient is a significant coefficient other than "0" and generate a significant coefficient. The switch 1303 selects the zigzag order scan only when a significant coefficient occurs. Therefore, first, the foremost DC component (DCT [0] in the above-described fourth embodiment) shown in FIG. 4 is read, quantized, and then subjected to DPCM and one-dimensional Huffman coding. Next, quantization and coding are sequentially repeated from a low-order component of the AC component to a component at which a significant coefficient finally occurs.

【0067】本実施例においても、カウンタ1112と
カウンタ1113の構成は、前述の第4の実施例と同様
である。DC成分もAC成分と同様な読み出しの為、カ
ウンタ1113の初期化はj=0としておく必要がある
が、i+j=63に達した時点で1ブロツクの符号化が
終了するとができる。
In this embodiment, the configuration of the counters 1112 and 1113 is the same as that of the fourth embodiment. Since the DC component is read in the same manner as the AC component, it is necessary to initialize the counter 1113 to j = 0. However, when i + j = 63, the encoding of one block can be completed.

【0068】さらに具体的な例を挙げて説明する。A more specific example will be described.

【0069】図16はDCTを施した後のあるブロツク
内の係数の発生状況を説明する図、図17は図16を逆
スキヤンした状態を示す図、そして、図18は図16を
順スキヤンした状態を示す図である。
FIG. 16 is a diagram for explaining the state of occurrence of coefficients in a certain block after DCT has been performed, FIG. 17 is a diagram showing a state in which FIG. 16 is inversely scanned, and FIG. It is a figure showing a state.

【0070】図16において、斜線をひいた部分はなん
らかの有意係数が発生した成分を示し、空白の部分の周
波数成分が“0”であつたとする。今回、説明を容易に
する為に、量子化によつて有意係数の成分が“0”に変
換されるものは無いとする。まず、逆スキヤンにより、
DCT[63]から矢印で示した方向にジグザグ状にQ
を施しながら有意係数が発生しているアドレスを探す。
図16に示した様に、有意係数の発生は低域(ブロツク
左上)に集中している為、初めて有意係数がDCT’
[8]で発生する(図17)。(DCT’[n]は図1
2の実施例で示した様にDCT[n]を量子化したもの
をDCT’[n]とおく。)この時、カウンタ1112
は、i=55となる。そして今度は、DCT[0]と順
方向にスキヤンをはじめ、j=8に達した時、すなわち
DCT’[8]迄符号化が達した時に1ブロツクの符号
化を終了する(図18)。
In FIG. 16, the hatched portion indicates a component where some significant coefficient has occurred, and it is assumed that the frequency component in the blank portion is "0". In this case, for the sake of simplicity, it is assumed that no significant coefficient component is converted to "0" by quantization. First, by reverse scan,
From DCT [63], the Q is zigzag in the direction indicated by the arrow.
To find an address where a significant coefficient occurs.
As shown in FIG. 16, since the generation of the significant coefficients is concentrated in the low band (the upper left of the block), the significant coefficients are not DCT 'for the first time.
This occurs at [8] (FIG. 17). (DCT '[n] is shown in FIG.
The value obtained by quantizing DCT [n] as shown in the second embodiment is referred to as DCT ′ [n]. At this time, the counter 1112
Becomes i = 55. Then, this time, the scan is started in the forward direction with DCT [0], and when j = 8, that is, when the encoding reaches DCT '[8], the encoding of one block is completed (FIG. 18).

【0071】こうすることによつて、所定時間(例えば
n×mのブロツクにおいては、カウンタ1112、カウ
ンタ1113が、i+j=n×m−1になる時間、つま
り1成分の読み出し、符号化を1クロツクとすると、i
=0,j=0の時間も含め、(n×m+1)クロツクの
時間)で1ブロツクの符号化が可能である。
By doing so, the counter 1112 and the counter 1113 perform the predetermined time (for example, in the case of the block of n × m, the time when i + j = n × m−1), that is, the reading and encoding of one component are performed by one. Assuming the clock, i
= 0, j = 0, including (n × m + 1) clock times), it is possible to encode one block.

【0072】[0072]

【発明の効果】以上説明したように本発明によれば、ブ
ロック内の所定エリアにおける直交変換係数データの絶
対値に所定値以上の値が存在するか否かを判断して当該
ブロックの画像タイプを識別し、その識別結果に応じて
ブロック内の直交変換係数データを適応的に量子化する
ので、符号化処理速度を低下させることなく、しかも非
常に簡単な構成で符号化効率及び画質の向上を図ること
ができる。
As described above, according to the present invention, it is determined whether or not the absolute value of the orthogonal transform coefficient data in a predetermined area in a block has a value greater than a predetermined value, and the image type of the block is determined. , And the orthogonal transform coefficient data in the block is adaptively quantized according to the result of the identification, so that the encoding efficiency and image quality can be improved with a very simple configuration without lowering the encoding processing speed. Can be achieved.

【0073】また本発明によれば、ブロツク内がどの様
な情報であっても、所定時間内に符号化を行うことがで
きると共に、回路構成を安価、且つ、簡単にすることが
できる。
Further, according to the present invention, encoding can be performed within a predetermined time regardless of what kind of information is in the block, and the circuit configuration can be reduced in cost and simplified.

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

【図1】本発明に係る画像圧縮装置の第1の実施例の要
部を示すブロツク図である。
FIG. 1 is a block diagram showing a main part of a first embodiment of an image compression apparatus according to the present invention.

【図2】第1の実施例による主要な動作手順を説明する
フローチヤートである。
FIG. 2 is a flowchart illustrating a main operation procedure according to the first embodiment.

【図3】DCT係数の逆スキヤン順序を示す図である。FIG. 3 is a diagram showing an inverse scan order of DCT coefficients.

【図4】DCT係数の順スキヤン順序を示す図である。FIG. 4 is a diagram showing a forward scan order of DCT coefficients.

【図5】イメージスキヤナ入力の入力データとDCT係
数との関係を例示する図である。
FIG. 5 is a diagram illustrating a relationship between input data of an image scanner input and DCT coefficients;

【図6】人工的に作成した入力データとDCT係数と関
係を例示する図である。
FIG. 6 is a diagram illustrating a relationship between input data artificially created and DCT coefficients;

【図7】量子化テーブル109,110の一例を示す図
である。
FIG. 7 is a diagram illustrating an example of quantization tables 109 and 110.

【図8】本発明に係る画像圧縮装置の第2の実施例の要
部を示すブロツク図である。
FIG. 8 is a block diagram showing a main part of a second embodiment of the image compression apparatus according to the present invention.

【図9】第2の実施例による量子化テーブル110〜1
13の一例を示す図である。
FIG. 9 shows quantization tables 110-1 according to the second embodiment.
FIG. 13 is a diagram illustrating an example of a thirteenth embodiment.

【図10】本発明に係る画像圧縮装置の第3の実施例の
要部を示すブロツク図である。
FIG. 10 is a block diagram showing a main part of a third embodiment of the image compression apparatus according to the present invention.

【図11】第3の実施例による量子化テーブルの一例を
示す図である。
FIG. 11 is a diagram illustrating an example of a quantization table according to the third embodiment.

【図12】本発明に係る画像圧縮装置の第4の実施例の
構成を示すブロツク図である。
FIG. 12 is a block diagram showing the configuration of a fourth embodiment of the image compression apparatus according to the present invention.

【図13】第4の実施例による主要な動作手順を説明す
るフローチヤートである。
FIG. 13 is a flowchart illustrating a main operation procedure according to a fourth embodiment.

【図14】第4の実施例による主要な動作手順を説明す
るフローチヤートである。
FIG. 14 is a flowchart illustrating a main operation procedure according to a fourth embodiment.

【図15】本発明に係る画像圧縮装置の第5の実施例の
構成を示すブロツク図である。
FIG. 15 is a block diagram showing the configuration of a fifth embodiment of the image compression apparatus according to the present invention.

【図16】DCTを施した後のあるブロツク内の係数の
発生状況を説明する図である。
FIG. 16 is a diagram for explaining a state of occurrence of coefficients in a certain block after performing DCT.

【図17】図16を逆スキヤンした状態を示す図であ
る。
FIG. 17 is a diagram showing a state in which FIG. 16 is reversely scanned.

【図18】図16を順スキヤンした状態を示す図であ
る。
FIG. 18 is a diagram showing a state in which FIG. 16 is sequentially scanned.

【図19】従来例による画像圧縮装置の構成を示すブロ
ツク図である。
FIG. 19 is a block diagram showing the configuration of a conventional image compression apparatus.

【図20】従来例による予測符号化回路の詳細な構成を
示すブロツク図である。
FIG. 20 is a block diagram showing a detailed configuration of a prediction encoding circuit according to a conventional example.

【図21】DCT係数のスキヤン順序を示す図である。FIG. 21 is a diagram showing a scan order of DCT coefficients.

【図22】AC係数とグループ番号SSSSとの関係を
説明する図である。
FIG. 22 is a diagram illustrating a relationship between AC coefficients and group numbers SSSS.

【符号の説明】 1,100 入力端子 2 ブロツク化回路 17,101 DCT回路 40,114 Q 41,109,110,810,811,812,81
3 量子化テーブル 42 DPCM 43 1次元ハフマン符号化回路 44 DCハフマンコードテーブル 45 スキヤン変換回路 46 有意係数検出回路 47 ラン長カウンタ 48 グループ化回路 49 2次元ハフマン符号化回路 50 ACハフマン符号化回路 51 多重化回路 52,112,113 出力端子 53 遅延回路 54 減算器 102,103,111,801 スイツチ 104 逆スキヤンアドレス発生器 105 順スキヤンアドレス発生器 106 絶対値回路 107 比較器 108,804 カウンタ判定回路 802 2乗回路 803 低域電力加算器 805 高域電力加算器 1001 絶対値和加算器 1002 乗算器
[Explanation of Signs] 1,100 Input terminal 2 Blocking circuit 17, 101 DCT circuit 40, 114 Q 41, 109, 110, 810, 811, 812, 81
3 Quantization table 42 DPCM 43 One-dimensional Huffman coding circuit 44 DC Huffman code table 45 Scan conversion circuit 46 Significant coefficient detection circuit 47 Run length counter 48 Grouping circuit 49 Two-dimensional Huffman coding circuit 50 AC Huffman coding circuit 51 Multiplexing Circuit 52, 112, 113 output terminal 53 delay circuit 54 subtractor 102, 103, 111, 801 switch 104 reverse scan address generator 105 forward scan address generator 106 absolute value circuit 107 comparator 108, 804 counter determination circuit 802 2 Multiplying circuit 803 Low band power adder 805 High band power adder 1001 Absolute value sum adder 1002 Multiplier

フロントページの続き (56)参考文献 特開 平3−283989(JP,A) 特開 平2−305272(JP,A) 特開 平4−49778(JP,A) 特開 平2−202271(JP,A) 特開 平4−207582(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 H04N 7/30 Continuation of the front page (56) References JP-A-3-283989 (JP, A) JP-A-2-305272 (JP, A) JP-A-4-49778 (JP, A) JP-A-2-202271 (JP , A) JP-A-4-207582 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 1/41-1/419 H04N 7/30

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所定のブロックに分割された画像データ
を入力する入力手段と、 前記画像データを前記ブロック毎に直交変換係数データ
に変換する変換手段と、 前記ブロック内の所定エリアにおける直交変換係数デー
タの絶対値に所定値以上の値が存在するか否かを判断し
て当該ブロックの画像タイプを識別する識別手段と、 前記識別手段の識別結果に応じて前記ブロック内の直交
変換係数データを量子化する量子化手段と、 を有することを特徴とする画像圧縮装置。
An input unit configured to input image data divided into predetermined blocks; a conversion unit configured to convert the image data into orthogonal transform coefficient data for each block; and an orthogonal transform coefficient in a predetermined area in the block. Identification means for determining whether the absolute value of the data has a value equal to or greater than a predetermined value to identify the image type of the block, and orthogonal transform coefficient data in the block according to the identification result of the identification means. An image compression apparatus comprising: a quantization unit that performs quantization.
【請求項2】 所定のブロックに分割された画像データ
を入力し、 前記画像データを前記ブロック毎に直交変換係数データ
に変換し、 前記ブロック内の所定エリアにおける直交変換係数デー
タの絶対値に所定値以 上の値が存在するか否かを判断して当該ブロックの画像
タイプを識別し、 前記識別手段の識別結果に応じて前記ブロック内の直交
変換係数データを量子化することを特徴とする画像圧縮
方法。
2. An image data divided into a predetermined block is input, the image data is converted into orthogonal transform coefficient data for each block, and an absolute value of the orthogonal transform coefficient data in a predetermined area in the block is determined. Determining whether there is a value equal to or greater than the value, identifying the image type of the block, and quantizing the orthogonal transform coefficient data in the block according to the identification result of the identification means. Image compression method.
JP2026392A 1991-02-05 1992-02-05 Image compression apparatus and method Expired - Fee Related JP3205028B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2026392A JP3205028B2 (en) 1991-02-05 1992-02-05 Image compression apparatus and method

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP3-14547 1991-02-05
JP3-14546 1991-02-05
JP1454791 1991-02-05
JP1454691 1991-02-05
JP2026392A JP3205028B2 (en) 1991-02-05 1992-02-05 Image compression apparatus and method

Publications (2)

Publication Number Publication Date
JPH0595484A JPH0595484A (en) 1993-04-16
JP3205028B2 true JP3205028B2 (en) 2001-09-04

Family

ID=27280686

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2026392A Expired - Fee Related JP3205028B2 (en) 1991-02-05 1992-02-05 Image compression apparatus and method

Country Status (1)

Country Link
JP (1) JP3205028B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4515994B2 (en) * 2002-04-19 2010-08-04 パナソニック株式会社 Variable length coding method, variable length coding apparatus and program
JP4090862B2 (en) 2002-04-26 2008-05-28 松下電器産業株式会社 Variable length encoding method and variable length decoding method
JP4368575B2 (en) 2002-04-19 2009-11-18 パナソニック株式会社 Variable length decoding method, variable length decoding apparatus and program

Also Published As

Publication number Publication date
JPH0595484A (en) 1993-04-16

Similar Documents

Publication Publication Date Title
US6909811B1 (en) Image processing apparatus and method and storage medium storing steps realizing such method
JP3109854B2 (en) Image coding method and apparatus
US7079698B2 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
JP4128238B2 (en) Image compression method
US7835582B2 (en) Image encoding apparatus and control method thereof
US7916954B2 (en) Image encoding apparatus and control method thereof
JP2000069292A (en) Image processing unit, its method and storage medium
JPH08116447A (en) Coder for image signal
US6968088B2 (en) Modification of detected quantization step size from the encoded bitstream based on a region of interest (ROI) bitmask
US6546145B1 (en) Image compression using selection of quantization method
JP3067628B2 (en) Image coding device
JPH08116430A (en) Image processing system and image processor and its method
JPH0832037B2 (en) Image data compression device
EP0659023B1 (en) Method and apparatus for compression-coding image data
EP0989518A2 (en) A method for adaptively compressing and decompressing digital data having text
JP3205028B2 (en) Image compression apparatus and method
JPH0487460A (en) Picture processor
Messaoudi DCT-based compression algorithm using reduced adaptive block scanning for color image
JP2841197B2 (en) Method of compressing gradation image data
JP3199786B2 (en) Image processing device
JP3232160B2 (en) Encoding device and method
JP3347409B2 (en) Image coding apparatus and method
JPH02104180A (en) Compression processing method for image data compressor
US20060222245A1 (en) Image encoding apparatus
JP3200073B2 (en) Image processing device

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010604

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080629

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090629

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090629

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100629

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110629

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees