JPH0332280A - Dot image compressing system - Google Patents

Dot image compressing system

Info

Publication number
JPH0332280A
JPH0332280A JP1167640A JP16764089A JPH0332280A JP H0332280 A JPH0332280 A JP H0332280A JP 1167640 A JP1167640 A JP 1167640A JP 16764089 A JP16764089 A JP 16764089A JP H0332280 A JPH0332280 A JP H0332280A
Authority
JP
Japan
Prior art keywords
length
run
sequence
storage means
run length
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.)
Granted
Application number
JP1167640A
Other languages
Japanese (ja)
Other versions
JP2614320B2 (en
Inventor
Shigeru Yoshida
茂 吉田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1167640A priority Critical patent/JP2614320B2/en
Publication of JPH0332280A publication Critical patent/JPH0332280A/en
Application granted granted Critical
Publication of JP2614320B2 publication Critical patent/JP2614320B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently compress a dot image with the compact configuration of a hardware by adding a dissident run length to a maximum length sequence, registering it as the new sequence to a pattern accumulating means, compressing the code of this sequence and outputting it. CONSTITUTION:Partial columns in a pattern memory 4 are read and the almost coincident partial column with the maximum length is checked by a maximum length coincidence detecting part 11. The index (namely, registration order) of the partial column with the maximum length calculated in such a way in the pattern memory 4 and the dissident run length, which is corrected by an accumulating circuit error SIGMADELTALi, are outputted to an encoding part 12 and according to the combination of them, the compressed code is constituted and outputted. Thus, since compression and encoding can be executed to the similar run length pattern in a state as long as possible even when there is dissidence in a range set by a threshold value circuit 9 beforehand, dot image data can be efficiently compressed.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術(第5図〜第6図) 発明が解決しようとする課題 課題を解決するための手段(第1図) 作用 実施例(第・2図、第3図、第4図〉 発明の効果 〔概要〕 網点画像圧縮方式に係り、 小型のハード構成により網点画像を効率よく圧縮できる
ようにしたことを目的とし、 2値の網点画像データを圧縮する圧縮方式において、白
画素または黒画素の連続する長さであるランレングスを
作成するランレングス作成手段と、このランレングスを
一時記憶する記憶手段と、ランレングスの相異なる系列
を蓄積するパターン蓄積手段と、前記記憶手段から読み
出されたランレングスと、前記パターン蓄積手段から読
み出されたランレングスの差異を演算する第1演算手段
と、2つのランレングス系列の差異の総和を演算する累
算手段と、前記第1演算手段または前記累算手段のそれ
ぞれの出力がそれぞれの閾値と比較し、いずれか一方が
越えたことを出力する閾値手段と、前記記憶手段のラン
レングス系列を前記パターン蓄積手段のランレングス系
列で近似したときのランレングス系列全体のずれ情報で
補正する調整手段と、前記閾値手段より2つの差異の何
れかが閾値を越えるまでまたは前記パターン蓄積手段中
のランレングス系列データ長の終わりまでを1つの系列
とし、この系列のうちの最大長のものを検出し、その系
列の前記パターン蓄積手段中の最大長系列を指定する情
報を出力する最大長−@検出手段と、この最大長一致検
出手段から出力された前記記憶手段の最大長系列指定情
報と不一致ランレングスを符号化する符号化手段を具備
し、この最大長系列に不一致となったランレングスを付
加し前記パターン蓄積手段に新たな系列として登録し、
またこれを圧縮符号化出力するようにしたことを特徴と
する。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Prior art (Figures 5 to 6) Problems to be solved by the invention Means for solving the problems (Figure 1) Working examples (Figures 2, 3, and 4) Effects of the invention [Summary] The present invention relates to a halftone image compression method, and aims to efficiently compress halftone images using a small hardware configuration. In a compression method for compressing value halftone image data, a run length creation means for creating a run length that is a continuous length of white pixels or black pixels, a storage means for temporarily storing this run length, and a run length creation means for creating a run length that is a continuous length of white pixels or black pixels; a pattern storage means for storing different series; a first calculation means for calculating a difference between a run length read from the storage means and a run length read from the pattern storage means; and two run length series. an accumulating means for calculating the sum of the differences between the first arithmetic means and the accumulating means; a threshold means for comparing the respective outputs of the first arithmetic means or the accumulating means with respective threshold values and outputting that either one exceeds the threshold; adjusting means for correcting the run-length series using the deviation information of the entire run-length series when the run-length series of the means is approximated by the run-length series of the pattern storage means; A sequence up to the end of the run-length sequence data length in the pattern storage means is regarded as one sequence, the maximum length of this sequence is detected, and information specifying the maximum length sequence in the pattern storage means for that sequence is outputted. and encoding means for encoding the maximum length sequence designation information of the storage means outputted from the maximum length coincidence detection means and the mismatch run length, add the new run length and register it as a new series in the pattern storage means,
It is also characterized in that it is compressed and encoded and output.

〔産業上の利用分野〕[Industrial application field]

本発明は網点画像圧縮方式に係り、特にユニバーサル符
号を用いた圧縮方式に関する。
The present invention relates to a halftone image compression method, and particularly to a compression method using a universal code.

近年、オフィス・オートメーションが発展し、文書情報
として文字の外に階調画像が取扱われるようになってい
る。文書は通常、白と黒の2値で表わされるため、階調
画像を表わすために、複数の画素で構成される網点のう
ち、黒画素の数を階調に応して定めるという面積変調を
用いて表わすことが一般的である。文書情報をディジタ
ルデータとして利用するとき、階調画像のデータ量は文
字画像に比べて非常に大で、IO数倍〜数10倍となる
。したがって、蓄積や伝送等で階調画像を効率良く取扱
うには、効率的なデータ圧縮を加えることでデータ量を
減らすことが必要となる。
In recent years, with the development of office automation, gradation images have come to be handled in addition to text as document information. Since documents are usually represented in binary values of white and black, in order to represent a gradation image, area modulation is used to determine the number of black pixels among halftone dots made up of multiple pixels according to the gradation. It is common to express using . When document information is used as digital data, the amount of data for a gradation image is much larger than that for a character image, ranging from several times to several ten times as much as the IO. Therefore, in order to efficiently handle gradation images in storage, transmission, etc., it is necessary to reduce the amount of data by applying efficient data compression.

〔従来の技術〕[Conventional technology]

従来の2値画像の国際標準圧縮方式としてモデファイト
・リード(MR)方式がある。このMR方式は、主走査
方向に見ていって白から黒、または黒から白に変化する
画素を変化点と呼び、隣接する走査線間で変化点の表す
白黒パターン境界のずれが少ないという変化点の接続関
係に着目してデータ圧縮するものである。
A modified read (MR) method is a conventional international standard compression method for binary images. In this MR method, a pixel that changes from white to black or from black to white when viewed in the main scanning direction is called a change point, and the change is such that there is little deviation of the black and white pattern boundary represented by the change point between adjacent scanning lines. This method compresses data by focusing on the connection relationships between points.

しかし網点となった階調画像は、画面全体に分散された
網点により生しる変化点は膨大な数となるため、MR方
式では有効に圧縮することができなかった。
However, the gradation image formed by halftone dots cannot be effectively compressed using the MR method because the number of changing points caused by the halftone dots distributed over the entire screen is enormous.

このため網点画像をデータ圧縮する方法としては、前記
標準方式であるMR方弐とは別に、予測符号化方式が用
いられていた。
For this reason, as a method for data compressing halftone images, a predictive coding method has been used in addition to the standard MR method.

この方式は、第5図に示す如く、注目画素d。In this method, as shown in FIG. 5, the pixel of interest d.

の周辺と、網点の周則剛1れた位置に参照画素r (1
を取って注目画素dOの白、黒を予測し、予測誤差を符
号化する方式を使用していた。しかし、ファクシミリの
ように、文告をスキャナで読め取らせ”(データ圧縮す
る場合、網点の種類は様々−ζ網点周期が予め分からな
いことの方が多い。そこで、従来では、種々の網点周期
を参照画素とする予測器を複数並べ、予測外れ回数の最
も少ない予測器を選択して、この選択した予測器に従っ
て符号化するという適応予測符号化方式を使用していた
The reference pixel r (1
A method was used in which the black and white color of the pixel of interest dO is predicted by taking the data, and the prediction error is encoded. However, when compressing data by reading the notice with a scanner like in a facsimile, there are many types of halftone dots - the ζ halftone period is often unknown in advance. An adaptive predictive coding method was used in which a plurality of predictors using point periods as reference pixels are arranged, the predictor with the least number of mispredictions is selected, and coding is performed according to the selected predictor.

第6図に示す如く、伝達された網点画像信号をラインメ
モリ50に入力し、その出力をそれぞれ異なる網点周期
をもつ第1予測器51と第2予11111器52に入力
してそれぞれ予測値を求めるとともに、排他的論理和回
路53.54によりこれらの予測値が実際の網点画像信
号と一致するか否かを検出し、それぞれの不一致の回数
を第1予測はずれカウンタ55、第2予測はずれカウン
タ56で計数する。この引数結果を人力網点画像信号が
一定の個数毎に比較回路57で比較して、次の区間では
外れの少ない予測器をマルチプレクサ58で選択し、予
測外れの少なかった方の予測器からの予測誤差信号を符
号器59で圧縮符号化していた。
As shown in FIG. 6, the transmitted halftone image signal is input to the line memory 50, and its output is input to a first predictor 51 and a second predictor 52, each having a different halftone period, for prediction. In addition to determining the values, the exclusive OR circuits 53 and 54 detect whether these predicted values match the actual halftone image signal, and the number of mismatches is counted by the first prediction error counter 55 and the second prediction value. The prediction error is counted by a counter 56. The comparison circuit 57 compares the argument results for each fixed number of human dot image signals, and in the next section, the multiplexer 58 selects the predictor with fewer prediction errors, and the predictor with fewer prediction errors is selected. The prediction error signal was compressed and encoded by an encoder 59.

したがって、選択された予測器における予測が入力した
網点画像信号と一致すれば、マルチプレクサ58から出
力される予測誤差信号には「0」が多く在在し、「1」
が少ないので符号器59にお番」る圧縮効率が向上する
。この従来技術の適応予測符号化方式は、例えば電子通
信学会技術研究報告IE80−12 r新聞網点写真の
適応予測符号化」に詳述されている。
Therefore, if the prediction by the selected predictor matches the input halftone image signal, the prediction error signal output from the multiplexer 58 contains many "0"s and "1"s.
Since the number of bits is small, the compression efficiency of the encoder 59 is improved. This prior art adaptive predictive coding method is detailed in, for example, the Institute of Electronics and Communications Engineers Technical Research Report IE80-12r "Adaptive predictive coding of newspaper halftone photographs".

〔発明が解決しようとする諜顯〕[The problem that the invention attempts to solve]

しかしながら、前記のような従来の網点画像のデータ圧
縮方式では、網点画像の統計的な性質を予想して予測器
を構成しておくために、用意した予測器の網点周期が実
際の画像の網点周期と一致するときには有効なデータ圧
縮ができるが、合わないときにはデータ圧縮の効率が著
しく劣化してしまうという問題点があった。
However, in the conventional data compression method for halftone dot images as described above, in order to configure a predictor by predicting the statistical properties of the halftone image, the halftone period of the prepared predictor is There has been a problem in that when the dot period matches the halftone period of the image, effective data compression is possible, but when it does not match, the efficiency of data compression deteriorates significantly.

このような適応予測符号化方式を採用することで、網点
周期の不整合に起因するデータ圧縮の効率低下の問題は
ある程度改善できるものの、一方でこの改善を大きなも
のにしようとすると、予測器の個数を増やすことが必要
となるので、回路規模が大きくなるという問題がある。
By adopting such an adaptive predictive coding method, the problem of reduced data compression efficiency due to mismatched halftone dot periods can be improved to some extent, but if this improvement is to be made large, the predictor Since it is necessary to increase the number of circuits, there is a problem that the circuit scale increases.

したがって本発明の目的は、このような問題を改善する
ため、小さな回路規模でもって種にの周期に適切に整合
してデータ圧縮できるようにした網点画像データ圧縮方
式を提(Jtすることである。
Therefore, an object of the present invention is to provide a halftone image data compression method that can compress data while suitably matching the specific period with a small circuit scale in order to improve such problems. be.

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

前記の目的を達成するため、本発明の圧縮方式では、第
1図に示す如く、ランレングス作成部1、ハソファメモ
リ3、パターンメモリ4、第1アドレス制御部5、第2
アドレス制御部6、第1減算回路7、累算回路8、閾値
回路9、第2減算回路10、最大長一致検出部11、符
号化部12等をFJttし、荊記バソファメモリ3、パ
ターンメモリ4、第1アドレス制御部5、第2アドレス
制徊部1〕 6等によりユニバーサル符号器2を構成する。
In order to achieve the above object, the compression method of the present invention, as shown in FIG.
The address control section 6, the first subtraction circuit 7, the accumulation circuit 8, the threshold circuit 9, the second subtraction circuit 10, the maximum length match detection section 11, the encoding section 12, etc. A universal encoder 2 is composed of a memory 4, a first address control section 5, a second address control section 1]6, and the like.

入力端子T1より入力される網点画像信号は、ランレン
グス作成部1により白ドツト、黒ドツトの交互のランレ
ングスが作成され、これらのランレングスがバッファメ
モリ3に保持される。
For the halftone image signal inputted from the input terminal T1, a run length creating section 1 creates alternate run lengths of white dots and black dots, and these run lengths are held in a buffer memory 3.

パターンメモリ4には、後述する実施例の項において詳
記するように、増分分解型ジブーレンペル符号を用いる
ときには、既成分列が記入される。
In the pattern memory 4, as will be described in detail in the embodiment section to be described later, when the incremental decomposition type Jibou-Lempel code is used, the existing component sequence is written.

符号化部12は、後述詳記するように、増分分解型ジブ
ーレンペル符号を用いる場合は、パターンメモリ4内に
おいて概略一致する符号化パターン成分のインデソクス
と次のシンボルを圧縮符号として出力する。
As will be described in detail later, when using the incremental decomposition type Gibou-Lempel code, the encoding unit 12 outputs the index of the approximately matching encoded pattern component and the next symbol in the pattern memory 4 as a compressed code.

網点画像信号が入力端子T1より伝達されると、ランレ
ングス作成部1が連続する白ドソト数、黒トソト数を示
すランレングスを作成し、これを第1アドレス制御部5
によりバッファメモリ3に記入する。
When the halftone image signal is transmitted from the input terminal T1, the run length creation section 1 creates a run length indicating the number of consecutive white dots and the number of black dots, and this is sent to the first address control section 5.
The data is written into the buffer memory 3 by the following.

今ランレングスが白、黒交互に−La、、Lb、L c
、 、 i−a−であるとする。第1アドレス制御部0 5ばまずランレングスLaを第1減算回路7!こ出力す
る。また第2アドレス制御部6はパターンメモリ4より
その記入されている部分系列を先頭より順次読み出し、
第1減算回路7に出力する。閾値回路9は第1減算回路
7からの出力に対する閾値Th、と累算回路8の出力に
対する閾値”rl+ 2を有する。
Now the run length is white and black alternately -La,,Lb,L c
, , ia-. First address control unit 0 5 first subtract the run length La from the first subtraction circuit 7! Output this. Further, the second address control unit 6 sequentially reads out the written partial series from the pattern memory 4 from the beginning,
It is output to the first subtraction circuit 7. The threshold circuit 9 has a threshold Th for the output from the first subtraction circuit 7 and a threshold "rl+2" for the output from the accumulation circuit 8.

従って、前記ランレングス(−aに対して第2アドレス
制御部6がパターンメモリ4より最初の部分系列の先頭
のランレングスLaを第1減算回路7に出力したとき、
その差11、a−LΔ1が閾値Th、以上のとき不一致
として不一致信号を出力する。これにより第2アドレス
制御部6は次の部分系列のランレングスを出力する。こ
のようにして、いまパターンメモリ4から読み出したラ
ンレングスLa’が前記L aと概略一致(その差が閾
値Thxより小のとき)とすると、閾値回路9は一致信
号を第1メモリ制御部5及び第2メモリ制御部6に出ノ
ノする。これにより今度は第1アドレス;νUl11部
5がハソファメモリ3より次のランレンゲスLbを出力
し、また第2アドレス制御部6がパターンメモリ4から
前記ランレングスLaの次の部分よりLb’を出力する
。このとき第1減算回路6は演算結果の(La−1−a
’)を累算回路8に出力し、累算処理が行われる。した
がって初めのときは、この(La−1,、a’)が正負
の符号とともに保持されることになる。
Therefore, when the second address control unit 6 outputs the head run length La of the first partial sequence from the pattern memory 4 to the first subtraction circuit 7 for the run length (-a),
When the difference 11, a-LΔ1, is greater than or equal to the threshold Th, a mismatch signal is output as a mismatch. As a result, the second address control unit 6 outputs the run length of the next partial sequence. In this way, if the run length La' read out from the pattern memory 4 is approximately the same as the above-mentioned La (when the difference is smaller than the threshold Thx), the threshold circuit 9 sends the match signal to the first memory controller 5. and output to the second memory control unit 6. As a result, the first address; νUl11 unit 5 outputs the next run length Lb from the hash sofa memory 3, and the second address control unit 6 outputs Lb' from the next part of the run length La from the pattern memory 4. do. At this time, the first subtraction circuit 6 calculates the calculation result (La-1-a
') is output to the accumulation circuit 8, and accumulation processing is performed. Therefore, at the beginning, this (La-1,, a') is held together with its positive and negative signs.

このようにして読み出されたLbとLb’の比較が第1
減算回路7で行われ、その演算結果の(Lb−Lb’)
が累算回路9に出力され前記(La−La ’)と累算
される。この(La−La’)+(Lb−Lb’)が前
記間(1! T h 2より小さく、また(Lb−Lb
’)が前記間(iTh+より小さいとき、閾値回路9は
一致信号を第1アドレス制御部5、第2アドレス制御部
6に出力し、前記と同様にハソファメモリ3から次のラ
ンレングスLaを、パターンメ:[:す4から次の部分
列Lc’を出力させ第1減算回路7で比較する。これに
より(Lc−Lc′)が前記閾値Thtより大きいとき
閾(1を回路9ば不一致信号を出力する。これにより第
2減算回路10はバッファメモリ3より出力されたLc
と前記累積回路誤差ΣΔL ’ = (1−aLa ’
) 十(Lb−Lb ’)との差(Lc−ΣΔLi)を
不一致ランレングスとし、これと前記L a TとLb
’の部分列の記入されたパターンメモリ4内のインデッ
クスと、一致したランレングス長La+Lbを最大長一
致検出部11で保持しておく。なお、前記不一致信号出
力時に第1減算回路7、累算回路8ばリセソトされる。
The comparison between Lb and Lb' read in this way is the first
It is performed in the subtraction circuit 7, and the calculation result (Lb-Lb')
is output to the accumulation circuit 9 and accumulated with the above (La-La'). This (La-La') + (Lb-Lb') is smaller than the above-mentioned interval (1! T h 2, and (Lb-Lb
') is smaller than the above-mentioned interval (iTh+), the threshold circuit 9 outputs a coincidence signal to the first address control section 5 and the second address control section 6, and similarly to the above, the next run length La is obtained from the hash sofa memory 3. , pattern me:[:S4 outputs the next partial sequence Lc' and compares it in the first subtraction circuit 7.As a result, when (Lc-Lc') is larger than the threshold Tht, the threshold (1) is determined as a mismatch by the circuit 9. The second subtraction circuit 10 outputs the Lc signal output from the buffer memory 3.
and the cumulative circuit error ΣΔL' = (1-aLa'
) The difference (Lc - ΣΔLi) from 10 (Lb - Lb') is taken as the mismatch run length, and this and the above-mentioned L a T and Lb
The index in the pattern memory 4 in which the subsequence of ' has been written and the matched run length La+Lb are held in the maximum length match detecting section 11. It should be noted that when the disagreement signal is output, the first subtraction circuit 7 and the accumulation circuit 8 are reset.

そして再びパターンメモリ4を読み出して、前記Lc’
の次の部分列のランレングスL cIIを読み出し、L
c−Lc”及び(La−La’)→−(Lb−Lb ’
) + (Lc−Lc ″)がそれぞれ閾値Tht、T
h2以上か否かをチェソクする。
Then, the pattern memory 4 is read out again, and the Lc'
Read the run length L cII of the next subsequence of L
c-Lc'' and (La-La')→-(Lb-Lb'
) + (Lc-Lc'') are the thresholds Tht and T, respectively.
Check whether it is h2 or more.

このようにしてパターンメモリ4内における部分列を読
み出して、概略一致する部分列の最大長のものを最大長
一致検出部】1でチェソクし、かくして得られた最大長
の部分列のパターンメモリ4内のインデックス(すなわ
ち登録順位)と前記累積回路誤差ΣΔL1で修正された
不一致うンレ9 ングスとを符号化部12に出力し、この組合わせで圧縮
符号を構成して出力する。
In this way, the subsequences in the pattern memory 4 are read out, and the maximal length of the subsequences that roughly match is checked by the maximum length match detection section]1, and the pattern memory 4 of the subsequences with the maximum length thus obtained is The index (that is, the registration rank) within 9 and the mismatch length corrected by the cumulative circuit error ΣΔL1 are output to the encoding unit 12, and this combination constitutes a compressed code and outputs it.

〔作用〕[Effect]

予め閾値回路で設定した範囲内の不一致があっても類似
しているランレングスパターンをなるべく長い状態で圧
縮符号化することができるので、網点画像データを効率
よく圧縮することができる。
Even if there is a discrepancy within the range preset by the threshold circuit, similar run length patterns can be compressed and encoded as long as possible, so halftone image data can be efficiently compressed.

即ち、人力R1−系列をパターンメモリ中の概略一致が
最も長いRL系列、即ち、許容閾値内で最もRLの個数
が多くとれるRL系列で近似するようにする。こうする
ことで、できるだけ多くのRLが許容誤差内で近似符号
化できるようになる。
That is, the human R1-sequence is approximated by the RL sequence with the longest approximate match in the pattern memory, that is, the RL sequence with the largest number of RLs within the allowable threshold. By doing so, as many RLs as possible can be approximately encoded within the tolerance.

〔実施例〕〔Example〕

従来の網点画像のデータ圧縮方式では、前記第5図、第
6図について説明したように、画像の統計的な性質を予
想して、予想したサンプル画像より予測器を構成してい
るため、予想した範囲外の画像の場合は圧縮効率が悪く
なる。
In the conventional halftone image data compression method, as explained with reference to FIGS. 5 and 6, the statistical properties of the image are predicted and a predictor is constructed from the predicted sample images. If the image is outside the expected range, the compression efficiency will be poor.

4 しかし網点周期性、網点形状の同一性から、ランレング
ス(隣接する変化点間の画素数)を複数個まとめてみる
と、大域的な規則性をもつので、ユニバーサル符号を適
用することにより、この規則性のもつ冗長性を削減し、
有効な圧縮ができるようにしたものである。
4 However, due to the periodicity of the halftone dots and the sameness of the halftone dot shapes, when multiple run lengths (the number of pixels between adjacent change points) are grouped together, there is a global regularity, so it is necessary to apply a universal code. By reducing the redundancy of this regularity,
This allows for effective compression.

元来、ユニバーサル符号は情報保存型のデータ圧縮方式
であり、データ圧縮時に情報源の統計的な性質を予め仮
定しないため、種々のタイプ(文字コード、オブジェク
トコード等)のデータに適用することができる。
Originally, universal codes are information-preserving data compression methods, and because they do not assume the statistical properties of the information source in advance when compressing data, they can be applied to various types of data (character codes, object codes, etc.). can.

本発明では入力した画像を圧縮する過程で画像の統計的
性質を学習しながら符号の最良化を図るユニバーサル符
号の手法を適用し、種々の網点画像において効率の良い
圧縮を行うものである。
In the present invention, in the process of compressing an input image, a universal code method is applied that optimizes the code while learning the statistical properties of the image, and performs efficient compression on various halftone images.

本発明を一実施例にもとづき詳述するに先立ち、ユニバ
ーサル符号について簡単に説明する(詳しくは、例えば
、宗像(Z jv−Lempelのデータ圧縮法」、情
報処理、 Vol、 26 、No、1.1985年を
参照のこと)。ユニバーサル符号の内では増分5 分解型(I ncremental parsjn++
)のZiv−Lempe1符号が計算がアルゴリズムが
シンプルで、計算も容易である。増分分解型Z iv 
−L empel符号では、人力シンボルの系列Xを、 x=aabababaa とすると、成分系列X=XOXIX2 への増分分解は次のようにする。
Before describing the present invention in detail based on one embodiment, a brief explanation of the universal code will be given (for details, see, for example, Munakata (Zjv-Lempel's Data Compression Method), Information Processing, Vol. 26, No. 1. 1985).Within the universal code there is an incremental 5 decomposition type (I incremental parsjn++).
) Ziv-Lempe1 code has a simple algorithm and is easy to calculate. Incremental decomposition type Z iv
-L In the empel code, if the sequence X of human symbols is x=aabababaa, then the incremental decomposition into the component sequence X=XOXIX2 is as follows.

いま人力シンボルの既成分に次シンボルを組み合わせた
最長の列で入力シンボルの系列Xを書き直すと次のよう
になる。
If we rewrite the input symbol series X using the longest sequence of the existing components of the human symbols and the next symbol, we get the following.

x = a −a b −a b a−b−a a−−
−−−−(llこの(1)式において初めのraJはそ
の前にaがないので全列にaを付加したもの、次の「a
bJはraJが既成分として存在したのでこれに次シン
ボルrbJを付加したもの、3番目のl”aba」は「
abJが既成分として存在するのでこれに次シンボルr
aJを付加したものである。このようにしてXjを既成
分の右端のシンボルを取り除いた最長の列とすると、成
分系列は次のように表現される。
x = a -a b -a b a-b-a a--
-----(ll) In this formula (1), the first raJ has no a in front of it, so a is added to all columns, and the next "a
Since raJ existed as an existing component in bJ, the next symbol rbJ was added to it, and the third l"aba" was "
Since abJ exists as an existing component, the next symbol r
aJ is added. In this way, if Xj is the longest string from which the rightmost symbol of the existing components is removed, the component series is expressed as follows.

Xo−λ(全列)、X3=X2a、X5=X+b。Xo-λ (all columns), X3=X2a, X5=X+b.

X5=Xpa、  X 4 =Xob、  X5=Xs
aとなる。例えば(11式のrabJはraJがrX。
X5=Xpa, X4=Xob, X5=Xs
It becomes a. For example, (in rabJ of formula 11, raJ is rX.

a」で表わされるのでX5=X+bとなる。なおXjの
jは成分のインデックスを表すものであり、このインデ
ックスは各成分の出現した順番を示す。
a'', so X5=X+b. Note that j in Xj represents a component index, and this index indicates the order in which each component appears.

そして第3図に示す如<、成分のインデックスと次のシ
ンボルの組で符号化する。従って前記X3はX3=X2
aであるので、「2a」の形で符号化される。このよう
に増分分解型アルゴリズムは符号化パターンについて過
去に分解した部分列のうちから最大長一致するものを求
め、過去に分解した部分列の複製として符号化するもの
である。
Then, as shown in FIG. 3, encoding is performed using a set of the component index and the next symbol. Therefore, the above X3 is X3=X2
a, so it is encoded in the form of "2a". In this way, the incremental decomposition type algorithm searches for a maximum length match among the previously decomposed subsequences of the encoding pattern, and encodes it as a copy of the previously decomposed subsequence.

ところでこのような符号化方式を使用するとき、長い部
分列で一致するものが存在する程圧縮率が向上する。本
発明の基本的な考えは、部分列の一致を求めるとき、わ
ずかな差異にとられれずになるべく長い部分列で概略一
致するものを検出することである。
By the way, when such an encoding method is used, the compression rate improves as long subsequences match. The basic idea of the present invention is to detect roughly matching subsequences that are as long as possible without being concerned about slight differences when searching for matches between subsequences.

即ち、既に網点化された画像をディジタル的に読み取っ
た場合、読み取り時に画素毎に量子化ノイズが入るので
、同一の階調が続いたとしても正確に同一の網点として
再現されることはない。したがって1画素レベルでの画
像品位への重要度は薄れ、画素の密度として階調を表す
ようになるので、必ずしも情報保存型符号化で表す必要
はなく、かえって画像品位に影響を与えない範囲で情報
非保存型により圧縮率を高めることが重要になる。
In other words, when an image that has already been halftone-dotted is read digitally, quantization noise is introduced for each pixel during reading, so even if the same gradation continues, it will not be accurately reproduced as the same halftone dot. do not have. Therefore, the importance of image quality at the single pixel level becomes less important, and gradation is expressed as pixel density, so it is not necessarily necessary to express it using information-preserving encoding, and it is better to do so as long as it does not affect image quality. It is important to increase the compression rate due to the non-information storage type.

本発明はこの点を鑑み、ランレングスの系列を増分分解
するようにし、既成分系列と符号化すべき系列の一致を
とる際に、各成分のランレングスの差異が所定の閾値以
下であり、かつ各ランレングスの差異の和が所定の閾値
以下のときは同一の系列とみて一致と同様に扱い、不一
致の程度が前記閾値を越えたとき初めて不一致と見なし
て異なる部分列として分解する。そして次のシンボル(
ランレングス)に差異の和を惑した値を用いランレング
スのずれを調整するものである。
In view of this point, the present invention incrementally decomposes a run length sequence, and when matching an existing component sequence with a sequence to be encoded, the difference in run length of each component is less than or equal to a predetermined threshold, and When the sum of the differences in each run length is less than a predetermined threshold, they are treated as the same sequence and treated as a match, and only when the degree of mismatch exceeds the threshold, it is considered a mismatch and decomposed into different subsequences. and the next symbol (
The difference in run length is adjusted using a value obtained by calculating the sum of the differences in the run length (run length).

以下本発明の一実施例を第2図および第3図にもとづき
説明する。
An embodiment of the present invention will be described below with reference to FIGS. 2 and 3.

第2図は本発明の一実施例構成図、第3図(A)は符号
化状態説明図、第3図(B)は閾値回路の動作状態説明
図である。
FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3(A) is an explanatory diagram of the encoding state, and FIG. 3(B) is an explanatory diagram of the operating state of the threshold circuit.

第2図において第1図と同記号部分ば同一部分を示す。In FIG. 2, the same symbols as those in FIG. 1 indicate the same parts.

ランレングス作成部1ば入力端子Tlから順次人力され
る網点画像データの白ビソト長、黒ビソト長のランレン
グスを交互に作成するものであり、レジスタ21.22
、排他的論理和回路23、インバータ24、ランレング
ス・カウンタ25等を具備している。レジスタ21.2
2にし、12値化された人力データが順次セ・7[・さ
れ、tJ1他的論的論理和回路23較される。従って「
1」または[−〇」が連続的に入力されるとき、排他的
論理和回路23は「0」を出力し、インバータ24ば「
1」を出力するので、ランレングス・カウンタ25はこ
のインバータ24の出力rlJをカラン1〜アンプする
。しかし人力画像データの白または黒が途切れるところ
にくると2つのレジスタ21.22には異なる2値化デ
ータが格納され、tJl°他的9 論理和回路23はリセソト信号「1」を出力し、ランレ
ングス・カウンタ25はそれまでの計数値をハノファメ
モリ3に送出し、また次の計数処理に入るため、それま
での計数値はクリアされる。
The run-length creation unit 1 alternately creates run lengths of white bisoto length and black bisoto length of the halftone image data that are manually inputted sequentially from the input terminal Tl, and registers 21 and 22.
, an exclusive OR circuit 23, an inverter 24, a run length counter 25, and the like. Register 21.2
2 and the 12-valued manual data is sequentially set and compared with the tJ1 transitive logical OR circuit 23. Therefore, “
When "1" or "-〇" is input continuously, the exclusive OR circuit 23 outputs "0" and the inverter 24 outputs "0".
1", the run-length counter 25 amplifies the output rlJ of the inverter 24 by a range of 1 to 1. However, when the white or black of the human image data comes to a point where it is interrupted, different binary data are stored in the two registers 21 and 22, and the logical sum circuit 23 outputs a reset signal "1". The run-length counter 25 sends the count value up to that point to the Hanofa memory 3 and starts the next counting process, so the count value up to that point is cleared.

このようにして網点画像中の白または黒の連続する長さ
を示すランレングスが順次ハソファメモリ3に送出され
る。
In this way, run lengths indicating the continuous length of white or black in the halftone dot image are sequentially sent to the hash sofa memory 3.

第1アドレス制御部5は、ハソファメモリ3に刻して前
記ランレングス作成部1から出力されたランレングスを
書き込んだり、あるいは書き込んであるランレングスを
読み出すための制御を行うものである。
The first address control section 5 performs control for writing the run lengths inscribed in the sofa memory 3 and output from the run length creation section 1, or for reading out the written run lengths.

第2ア)・レス制御部6ば、パターンメモリ4に対して
前記ハソファメモリ3から出力されたランレングスを書
き込んだり、あるいは書き込んであるランレングスを読
み出すための制御を行うものである。即ち、第2アlレ
ス制御部6は、最大系列に不一致となった次のデータを
付加し、蓄積手段に新たな系列として登録する機能を有
する。
Second a) The response control unit 6 performs control to write the run length outputted from the pattern memory 3 into the pattern memory 4, or to read out the written run length. That is, the second address control unit 6 has a function of adding the next data that does not match to the largest sequence and registering it as a new sequence in the storage means.

第1 M算回路7はハソファメモリ3から出力さ0 れたランレングスとパターンメモリ4から出力されたラ
ンレングスを減算し、その差を出力するものである。
The first M arithmetic circuit 7 subtracts the run length output from the pattern memory 4 and the run length output from the pattern memory 4, and outputs the difference.

累算回路8は前記第1減算回路7の出力を累算するもの
である。
The accumulation circuit 8 accumulates the output of the first subtraction circuit 7.

閾値回路9は第1閾値回a3iと第2閾埴回路32を具
備し、第1閾値回路31は前記第1減算回路7の出力が
閾(Ii!Th+を越えるか否かをチェソクし、第2閾
値回路32ば前記累算口iS8の出力が閾値T l12
を越えるか否かをチェソクするものである。
The threshold circuit 9 includes a first threshold circuit a3i and a second threshold circuit 32, and the first threshold circuit 31 checks whether or not the output of the first subtraction circuit 7 exceeds the threshold (Ii!Th+). 2 threshold value circuit 32, the output of the accumulation port iS8 is the threshold value T112.
This is to check whether or not it exceeds the limit.

第2減算回路10ば閾値回路9より不一致信号が出力さ
れるとき、その不一致とされたランレングスLjと、こ
のランレングスLjO前までの累算回路8からの出力で
ある誤差累算値ΣΔL1により (Lj−ΣΔLi)を
演算し、ランレングス■−jをこの(■、j−ΣΔLi
)に置き換えて最大長一致部11に出力するものである
。このような置き換え処理により画像データの全体の長
さを調整することができる。
When a mismatch signal is output from the second subtraction circuit 10 and the threshold circuit 9, it is calculated based on the run length Lj that is determined to be a mismatch and the accumulated error value ΣΔL1 that is the output from the accumulation circuit 8 up to this run length LjO. (Lj − ΣΔLi), and calculate the run length ■−j by this (■, j−ΣΔLi
) and output to the maximum length matching unit 11. Through such replacement processing, the entire length of image data can be adjusted.

1 次にこの理由を第3図(B)により簡単に説明する。1 Next, the reason for this will be briefly explained with reference to FIG. 3(B).

ハソファメモリ3から出力されるランレングスがLa、
Lb、jc−であり、パターンメモリ4から出力された
ランレングスLa’、Lb’、LC′−と比較するとき
、例えば前記閾値T h l=4、Thx=5の例につ
いて説明する。
The run length output from Hasofa memory 3 is La,
Lb, jc-, and when comparing them with the run lengths La', Lb', LC'- output from the pattern memory 4, an example will be described in which the threshold values T h l = 4 and Thx = 5, for example.

まず、第1減算回路7でLa′とT−aの差を演算の結
果 La  −La−3−−−−−(A) であり、次に■、b′とL bの差を演算の結果L b
 ’ −L b = 2−−−−−− (B)であり、
さらにLc’とLcの差を演算の結果L c ’ −L
 c = 6−−−−− (C)の場合を考える。
First, the first subtraction circuit 7 calculates the difference between La' and Ta, resulting in the result La -La-3-----(A), and then calculates the difference between b' and Lb. Result L b
' −L b = 2−−−−−− (B),
Furthermore, the result of calculating the difference between Lc' and Lc is L c ' - L
Consider the case of c = 6 (C).

したがって、第3図(B)におけるΔ1は前記(A)式
より得られた3であり Δ1−3 となる。このとき3はTh+より小さいので閾値回路9
より不一致信号は出力されない。これに続2 いて(B)式の演算が行われるので、第3図(B)にお
けるΔ2は(A) +(B)となり、Δ2 = −3+
2−−−1 となる。このとき(B)式の2とΔ2の(−川)は、そ
れぞれ前記Th+、Thpより小ざいので、これまた閾
値回路9より不一致信号は出力されない。これに続いて
(C)弐の演算が行われるが、(C)式の6はTh+を
越えるので、 Δ3−Δ2 + 6 = −14−6= 5となって、
このΔ3もT h 2以上になるのを検出するまでもな
く、閾値回路31より不一致信号が出力され、これによ
り閾値回路9より不一致信刃が出力される。これにより
第2減算回路1oばこのときパンツアメモリ3より出力
された、不一致となったランレングス系列に前記Δ2−
−1を減算した LC(−1,)=Lc4−1=Lc″ をLcに置換え、最大長−Pi検出部11に送出する。
Therefore, Δ1 in FIG. 3(B) is 3 obtained from the above formula (A), and becomes Δ1-3. At this time, since 3 is smaller than Th+, the threshold circuit 9
Therefore, no mismatch signal is output. Subsequently, the calculation of equation (B) is performed, so Δ2 in Fig. 3 (B) becomes (A) + (B), and Δ2 = -3+
2---1. At this time, since the (-river) of 2 and Δ2 in equation (B) are smaller than the Th+ and Thp, respectively, no mismatch signal is output from the threshold circuit 9. Following this, operation (C) 2 is performed, but since 6 in equation (C) exceeds Th+, Δ3-Δ2 + 6 = -14-6= 5,
There is no need to detect that this Δ3 is equal to or greater than T h 2, and the threshold circuit 31 outputs a mismatch signal, thereby causing the threshold circuit 9 to output a mismatch signal. As a result, when the second subtraction circuit 1o outputs the mismatched run length series from the panzer memory 3, the Δ2−
-1 is subtracted from LC(-1,)=Lc4-1=Lc'', which is replaced with Lc and sent to the maximum length -Pi detection unit 11.

これにより La’+Lb’+Lc〃−La+Lb+Lcとすること
ができる。
This makes it possible to obtain La'+Lb'+Lc - La+Lb+Lc.

次に第2図に示す本発明の一実施例の動作を説明する。Next, the operation of the embodiment of the present invention shown in FIG. 2 will be described.

(1)2値化された網点画像信号は入力端子T1から順
次人力され、連続して接続されているそれぞれ1ヒソト
の2つのレジスタ21.22に順次48納される。排他
的論理和回路23は、これらの2つのレジスタ21.2
2に格納される。排他的論理和回路23はこの2つのレ
ジスタ21.22に格納された2値化データが両方とも
「1」 (黒〉あるいは「0」 (白〉のとき、インバ
ータ24は「1」を出力し、ランレングス・カウンタ2
5に対しカウントアンプ信号を加える。このようにして
ランレングス・カウンタ25は画像データ中の「1」あ
るいは「0」が続く長さ(ランレングス)を計数する。
(1) Binarized halftone image signals are inputted sequentially from the input terminal T1 and are sequentially stored in two registers 21 and 22 of one register each connected in series. The exclusive OR circuit 23 connects these two registers 21.2
2. When the binary data stored in these two registers 21 and 22 are both "1" (black) or "0" (white), the exclusive OR circuit 23 outputs "1" from the inverter 24. , run length counter 2
Add a count amplifier signal to 5. In this way, the run-length counter 25 counts the length (run length) in which "1" or "0" continues in the image data.

そして「1」または「0」の途切れるところで、2つの
レジスタ21.22には異なる2値化データが格納され
るので、排他的論理和回路23は「1」を出力し、ラン
レングス・カウンタ25に対してリセント信号「1」を
出力する。
Then, at the point where "1" or "0" ends, different binary data are stored in the two registers 21 and 22, so the exclusive OR circuit 23 outputs "1" and the run length counter 25 A recent signal "1" is output to the

3 このリセソI−信号「1」を受信すると、ランレングス
・カウンタ25はそれまでの計数値をユニバーサル符号
器2のパンツアメモリ3に伝達し、次の計数処理に入る
ためそれまでの計数値をクリヤする。このようにして網
点画像中の1−1」あるいは「0」のランレングスが順
次パンツアメモリ3に蓄積されることになる。
3 Upon receiving this reset I-signal "1", the run-length counter 25 transmits the count value up to that point to the panzer memory 3 of the universal encoder 2, and in order to start the next counting process, the run length counter 25 transfers the count value up to that point to the panzer memory 3 of the universal encoder 2. Clear. In this way, run lengths of 1-1'' or 0 in the halftone image are sequentially stored in the panzer memory 3.

(2)今、パンツアメモリ3に「0」またはrlJのラ
ンレングス系列、、LB、、LC,、LD= LEガ格
納されているとき、第1アドレス制御部5はまずランレ
ングス系列を読み出して第1減算回路7に送出し、また
第2アドレス制御部6ばパターンメモリ4から登録され
ているランレングス系列についてその系列の先頭のラン
レングスを読み出してこれを前記第1減算回路7に送出
し、減算する。この減算値が前記閾値Th+より大きけ
れば不一致として、次のランレングス系列の照合に移る
。このようにしてLAがパターンメモリ4内のすべての
ランレングス系列との照合によるも不一致のとき、第2
アドレス制御部6ば最大長一致検5 4 山部11に登録順序を示すインデソクスを送出し、また
第2減算回路10はこのL Aのランレングスを最大長
一致検出部11に送出する。最大長一致検出部11はこ
れらを符号化部12に伝達するので、符号化部12はこ
れを例えば可変長符号化し、圧縮符号として出力する。
(2) When the run length series of "0" or rlJ, LB, LC, LD=LE is currently stored in the panzer memory 3, the first address control unit 5 first reads out the run length series. The second address control unit 6 reads out the first run length of the registered run length series from the pattern memory 4 and sends it to the first subtraction circuit 7. and subtract. If this subtraction value is larger than the threshold Th+, it is determined that there is no match, and the process moves on to the next run-length series comparison. In this way, when LA is matched with all run length sequences in the pattern memory 4 and still does not match, the second
The address control section 6 sends an index indicating the registration order to the maximum length match detection section 54 and the peak section 11, and the second subtraction circuit 10 sends the run length of LA to the maximum length match detection section 11. The maximum length coincidence detection section 11 transmits these to the encoding section 12, so the encoding section 12 performs variable length encoding on this, for example, and outputs it as a compressed code.

このようにしてランレングスL Aが符号化部I2で符
号化された後に第2アドレス制御部6によりパターンメ
モリ4に新らしくランレングス系列として登録され、ま
た第1アドレス制御部5によりバ・7フアメモリ3より
このL Aが捨てられ新しく次のランレングスがへソフ
ァメモリ3に記入される。
After the run length LA is encoded by the encoder I2 in this way, the second address control unit 6 registers it in the pattern memory 4 as a new run length sequence, and the first address control unit 5 This LA is discarded from the front memory 3 and a new next run length is written in the front memory 3.

(3)次に第1アドレス制御部5は、パンツアメモリ3
よりランレングス系列を読み出し、第1減算回路7に送
出する。また第2アドレス制御部6も、前記と同様にパ
ターンメモリ4から登録されている先頭ランレングスよ
り順に読み出す。これにより先頭ランレングス系列’と
概略一致(相違が閾(i!Th1、Th2以内のとき)
するとき、この場合はLB’−LB−ΔLBがΔL≦T
hI、ΔL6 越えれば、パターンメモリ中の第1番目のRLまで一致
する。それ以」二長いR1一系列との比較は不要となる
(3) Next, the first address control unit 5 controls the Panzer memory 3
The run length series is then read out and sent to the first subtraction circuit 7. Further, the second address control unit 6 also sequentially reads out the registered head run lengths from the pattern memory 4 in the same manner as described above. This roughly matches the leading run length sequence' (when the difference is within the threshold (i!Th1, Th2))
In this case, LB'-LB-ΔLB is ΔL≦T
If it exceeds hI, ΔL6, it matches up to the first RL in the pattern memory. From then on, comparison with the longer R1 series is no longer necessary.

酸分のインデソクスは付表1のようにパターンメモリを
構成する場合、メモリの゛アドレスになるので登録する
必要はない。この構成とは別にRL系列の最後尾のRL
とインデソクスとをパターンメモリに登録する構成をと
っても良く、この場合は、RL系列をパターンメモリに
登録する位置は順に並べて取らなくても良くなる。
When configuring a pattern memory as shown in Appendix 1, the acid index does not need to be registered as it becomes the address of the memory. Apart from this configuration, the last RL of the RL series
It is also possible to adopt a configuration in which the RL sequences and indexes are registered in the pattern memory. In this case, the positions where the RL sequences are registered in the pattern memory do not need to be arranged in order.

なお、前記説明では、ジブーレンペル(ZivLemp
el)符号の増分分解アルゴリズムを用いたが、本発明
は勿論これに限定されるものではなく、他のユニバーサ
ル符号の方式でもよい。例えばLZW符号(T 、 A
 Welch、“A Tecllnique for 
HighPerformance Data Comp
resion”、Computre、June、198
4年を参照のこと)を使用すれば、圧縮符号の情幸侵は
インデソクスだけとなり、よりシンブルなる。
In addition, in the above explanation, ZivLemp
el) Although the code incremental decomposition algorithm is used, the present invention is of course not limited to this, and other universal code systems may be used. For example, LZW code (T, A
Welch, “A Technique for
HighPerformance Data Comp
”Computer, June, 198
4), the compression code is only affected by the index, making it simpler.

1 〔発明の効果〕 本発明によれば種々の周期の網点画像を、網点周期の不
整合なしに効率よく圧縮でき、従来方式のように網点周
期毎に回路が増えることがなく、小さい回路規模で実現
することができる。また周期性を考慮した情報非保存型
符号化により、画質劣化を目立たせないで高圧縮率が得
られる。
1 [Effects of the Invention] According to the present invention, halftone dot images of various periods can be efficiently compressed without mismatching the halftone dot periods, and unlike conventional methods, the number of circuits does not increase for each halftone period. It can be realized with a small circuit scale. Also, by using non-information-preserving encoding that takes periodicity into account, a high compression rate can be obtained without noticeable deterioration in image quality.

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

第1図は本発明の原理図、 第2図は本発明の一実施例構成図、 第3図(A)は符号状態説明図、(B)は閾値回路の動
作状態説明図、 第4図はパターンメモリ説明図、 第5図は従来の予測符号化方式説明図、第6図は従来の
予測符号復元方式説明図である。 1−ランレングス作成部 2−ユニバーサル符号器 3−ハソファメモリ 2 パターンメモリ 第1アドレス制御部 第2アドレス制御部 第1減算回路 閾値回路 最大長一致検出部 符号化部 8−累算回路 1(L−−一第2減算回路
Fig. 1 is a diagram of the principle of the present invention, Fig. 2 is a configuration diagram of an embodiment of the present invention, Fig. 3 (A) is a diagram explaining the code state, (B) is a diagram explaining the operating state of the threshold circuit, Fig. 4 5 is an explanatory diagram of a pattern memory, FIG. 5 is an explanatory diagram of a conventional predictive encoding method, and FIG. 6 is an explanatory diagram of a conventional predictive code restoration method. 1-Run length creation section 2-Universal encoder 3-Hasophor memory 2 Pattern memory First address control section Second address control section First subtraction circuit Threshold circuit Maximum length match detection section Encoding section 8-Accumulation circuit 1 ( L--1 second subtraction circuit

Claims (1)

【特許請求の範囲】 2値の網点画像データを圧縮する圧縮方式において、 白画素または黒画素の連続する長さであるランレングス
を作成するランレングス作成手段(1)と、 このランレングスを一時記憶する記憶手段(3)と、 ランレングスの相異なる系列を蓄積するパターン蓄積手
段(4)と、 前記記憶手段(3)から読み出されたランレングスと、
前記パターン蓄積手段(4)から読み出されたランレン
グスの差異を演算する第1演算手段(7)と、 2つのランレングス系列の差異の総和を演算する累算手
段(8)と、 前記第1演算手段(7)または前記累算手段(8)のそ
れぞれの出力がそれぞれの閾値と比較し、いずれか一方
が越えたことを出力する閾値手段(10)と、 前記記憶手段(3)のランレングス系列を前記パターン
蓄積手段のランレングス系列で近似したときのランレン
グス系列全体のずれ情報で補正する調整手段(10)と
、 前記閾値手段(9)より2つの差異の何れかが閾値を越
えるまでまたは前記パターン蓄積手段(4)中のランレ
ングス系列データ長の終わりまでを1つの系列とし、こ
の系列のうちの最大長のものを検出し、その系列の前記
パターン蓄積手段(4)中の最大長系列を指定する情報
を出力する最大長一致検出手段(11)と、 この最大長一致検出手段(11)から出力された前記記
憶手段(3)の最大長系列指定情報と不一致ランレング
スを符号化する符号化手段(24)を具備し、 この最大長系列に不一致となったランレングスを付加し
前記パターン蓄積手段(4)に新たな系列として登録し
、またこれを圧縮符号化出力するようにしたことを特徴
とする網点画像圧縮方式。
[Claims] A compression method for compressing binary halftone image data, comprising: run length creation means (1) for creating a run length that is a continuous length of white pixels or black pixels; a storage means (3) for temporarily storing; a pattern storage means (4) for storing different series of run lengths; and a run length read from the storage means (3);
a first calculating means (7) for calculating the difference between the run lengths read from the pattern storage means (4); an accumulating means (8) for calculating the sum of the differences between the two run length series; 1 arithmetic means (7) or the accumulation means (8), each output is compared with a respective threshold value, and a threshold value means (10) outputs that either one has been exceeded; and the storage means (3). adjustment means (10) for correcting the run-length series using deviation information of the entire run-length series when the run-length series is approximated by the run-length series of the pattern storage means; The length of the run-length sequence data in the pattern storage means (4) is defined as one sequence, and the maximum length of this sequence is detected, and the length of the run-length sequence data in the pattern storage means (4) is a maximum length match detection means (11) for outputting information specifying a maximum length sequence of the maximum length sequence of the storage means (3) outputted from the maximum length match detection means (11); The apparatus is equipped with an encoding means (24) for encoding the maximum length sequence, adds the run length that has become inconsistent to this maximum length sequence, registers it as a new sequence in the pattern storage means (4), and compresses and encodes this as an output. A halftone image compression method characterized by:
JP1167640A 1989-06-29 1989-06-29 Halftone dot image compression method Expired - Fee Related JP2614320B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1167640A JP2614320B2 (en) 1989-06-29 1989-06-29 Halftone dot image compression method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1167640A JP2614320B2 (en) 1989-06-29 1989-06-29 Halftone dot image compression method

Publications (2)

Publication Number Publication Date
JPH0332280A true JPH0332280A (en) 1991-02-12
JP2614320B2 JP2614320B2 (en) 1997-05-28

Family

ID=15853522

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1167640A Expired - Fee Related JP2614320B2 (en) 1989-06-29 1989-06-29 Halftone dot image compression method

Country Status (1)

Country Link
JP (1) JP2614320B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010012203A (en) * 2008-07-07 2010-01-21 Keiji Nagao Care bed with crane

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010012203A (en) * 2008-07-07 2010-01-21 Keiji Nagao Care bed with crane

Also Published As

Publication number Publication date
JP2614320B2 (en) 1997-05-28

Similar Documents

Publication Publication Date Title
KR100340828B1 (en) Adaptive probability estimation method and adaptive coding method and adaptive decoding method
US5861922A (en) Image data coding and restoring method and apparatus for coding and restoring the same
US6654419B1 (en) Block-based, adaptive, lossless video coder
US6456658B2 (en) Brightness-variation compensation method and coding/decoding apparatus for moving pictures
JP4493215B2 (en) Image compression using directional prediction coding method of wavelet coefficients
JP2672382B2 (en) Synchronous method for the transmission of a sequence of images encoded by a variable length code on an asynchronous channel, and an apparatus for the implementation of this method
EP0493130A2 (en) Image encoding apparatus optimizing the amount of generated code
JPH0258814B2 (en)
US5177622A (en) Method and apparatus for detecting run length of two successive pixels and subjecting run length to universal coding
EP0369682B1 (en) Efficient coding method and its decoding method
JP2938412B2 (en) Method for compensating luminance change of moving image, moving image encoding device, moving image decoding device, recording medium recording moving image encoding or decoding program, and recording medium recording moving image encoded data
RU2313174C2 (en) Adaptive method and system for transforming values of parameters into indexes of code words
JPWO2009050766A1 (en) Video compression encoding / restoration device, video compression encoding / restoration program, and video generation / output device
CN110191341B (en) Depth data coding method and decoding method
JP2000036960A (en) Method for coding and decoding a series of image and its device
JPH0332280A (en) Dot image compressing system
JPS63190473A (en) Method and apparatus for compressing quantity of information on multi-gradation picture data
JP3557225B2 (en) Digital image signal receiving / reproducing device
JPH0324863A (en) Dot picture data compressing system
KR0153997B1 (en) Apparatus for transmitting bitplane compressed by means of data codebook
JP2708252B2 (en) Image data compression method
JP2612343B2 (en) Data compression method
JP2615215B2 (en) Image data compression method
JP2798767B2 (en) Image data compression method
JP3105330B2 (en) Image data compression / decompression method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees