JPH03208469A - Picture data compression system - Google Patents

Picture data compression system

Info

Publication number
JPH03208469A
JPH03208469A JP317090A JP317090A JPH03208469A JP H03208469 A JPH03208469 A JP H03208469A JP 317090 A JP317090 A JP 317090A JP 317090 A JP317090 A JP 317090A JP H03208469 A JPH03208469 A JP H03208469A
Authority
JP
Japan
Prior art keywords
encoding
encoded
contour line
line
data compression
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
JP317090A
Other languages
Japanese (ja)
Other versions
JP2708252B2 (en
Inventor
Shigeru Yoshida
茂 吉田
Yasuhiko Nakano
泰彦 中野
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 JP317090A priority Critical patent/JP2708252B2/en
Priority to DE69024130T priority patent/DE69024130T2/en
Priority to EP90308746A priority patent/EP0412809B1/en
Priority to US07/565,679 priority patent/US5138673A/en
Publication of JPH03208469A publication Critical patent/JPH03208469A/en
Application granted granted Critical
Publication of JP2708252B2 publication Critical patent/JP2708252B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To attain valid data compression independently of the kind of picture by coding the data while studying the regularity such as a linearity or way of bent of a contour line in matching with an object picture. CONSTITUTION:An inputted picture is converted into a data with a 1st coding means 10 where the relation of connection of a contour line is traced and a rearrangement means 12 rearranges the data into the relation of connection along with the contour line and optimization is applied while studying the statistic property of the linearity or way of bent of the contour line with a 2nd coding means (universal coding) 16 and the relation of connection along the contour line is divided into a group of start point information only and a group of connection point information and end point information, they are rearranged respectively to be arranged and sets of information of different property are studied in the lump to enhance the effect of study thereby improving the compression rate.

Description

【発明の詳細な説明】 [概要コ 読取ライン走査で得られた2値画像データを圧縮する画
像データ圧縮方式に関し、 効率的にデータ圧縮してデータ量を減らすことを目的と
し、 隣接する走査線間の変化画素の接続関係をMM構威して
いるため、予想した範囲外の画像の場ぞは圧縮効率が悪
くなる。
[Detailed Description of the Invention] [Summary] Regarding an image data compression method for compressing binary image data obtained by reading line scanning, the purpose is to reduce the amount of data by efficiently compressing the data, and to Since the connection relationship of the pixels that change between the two is MM configured, the compression efficiency deteriorates for images outside the expected range.

これに対して本発明にあっては第2図(a)j;示すよ
うに、まず入力した画像を輪郭線の接続川係の追跡した
データに変換し、次に同図(b) aように輪郭線に沿
った接続関係に並び替え、輪馴線のま直線性や曲り具合
等の統計的性質をユニノ・一サル符号化により学習しな
がら最適化できるようにし、更に、同図(C)に示すよ
うに、輪郭刺に沿った接続関係を、 始点情報のみのグループ; 接続点情報と終点情報のグループ; とに分け、それぞれまとめるように並べ替え、巽なる性
質の情報をまとめて学習させることにより学習の効果を
高めて圧縮率を向上させるものである。ここで、始点と
は輪郭線が初めて現れた位置のことであり、終点は輪郭
線が終了する位置であり、接続点は始点と終点の間の輪
郭線が接続している部分を指すことにする。
In contrast, in the present invention, as shown in FIG. 2(a)j, the input image is first converted into data traced by the contour line connection, and then the data is converted to data traced by the contour line connection, as shown in FIG. 2(b)a. The lines are rearranged into connection relationships along the contour lines, and the statistical properties such as straightness and curvature of the loop lines can be optimized while learning by unino-monkey encoding. ), the connection relationships along the contour spines are divided into a group containing only the start point information; a group containing the connection point information and the end point information; and they are rearranged so that they are grouped together, and information with a unique nature is learned together. By doing so, the learning effect is enhanced and the compression ratio is improved. Here, the start point is the position where the contour line first appears, the end point is the position where the contour line ends, and the connection point is the part where the contour lines connect between the start point and the end point. do.

元来、ユニバーサル符号は、情報保存型のデー夕圧縮方
法であり、データ圧縮時に情報源の統計的な性質を予め
仮定しないため、種々のタイプ(文字コード,オブジェ
クトコードなと)のデータに適用することができる。文
書画像では、文字の文字線の直線性や曲り具合には類似
性がある。
Universal codes are originally an information-preserving data compression method that does not assume statistical properties of the information source in advance when compressing data, so it can be applied to various types of data (character codes, object codes, etc.) can do. In document images, there are similarities in the linearity and curvature of character lines.

また、網点画像は、画像全体が網点分散するため膨大な
数の変化点が出現するが、網点周期性、網点形状の同一
性から輪郭線の接続関係は類似している。この類似性の
もつ冗長性をユニバーサル符号化により削減し、有効な
圧縮を行うことができる。
Furthermore, in a halftone image, a huge number of changing points appear because the halftone dots are dispersed throughout the image, but the connections between the contour lines are similar due to the periodicity of the halftone dots and the same shape of the halftone dots. The redundancy caused by this similarity can be reduced by universal encoding and effective compression can be performed.

本発明では、輪郭線の接続関係を求めるため、MMR方
式を変化画素のモードの検出を前処理として用い、ライ
ンごとの変化画素の接続関係を輪郭線自体の接続関係に
直し、このデータにユニバーサル符号化(Xi▼−Le
a+pel符号化)を適用し、輪郭線の直線性や曲がり
具合の大域的性質をユニバーサル符号のインデックスで
表すようにする。
In the present invention, in order to find the connection relationship of contour lines, the MMR method is used to detect the mode of changing pixels as a preprocessing, and the connection relationship of changing pixels for each line is corrected to the connection relationship of the contour line itself, and this data is universally used. Encoding (Xi▼-Le
a+pel encoding) is applied, and the global properties of the straightness and curvature of the contour are expressed by the index of the universal code.

ここで、ユバーサル符号化方式について簡単に説明する
。ユニバーサル符号化方式の代表的なものとして、zi
▼−Lempel符号がある(詳しくは、例えば宗像r
Xi▼−Lempelのデータ圧縮法」、情報処理、V
ol. 26. No. 1,夏985年を参照のこと
)。
Here, the universal encoding method will be briefly explained. As a representative universal encoding method, zi
▼-There is a Lempel code (for details, for example, Munakata r
"Xi▼-Lempel's Data Compression Method", Information Processing, V
ol. 26. No. 1, Summer 985).

Xiw−Lempel符号化方式には ■ユニバーサル型と、 ■増分分解型(Incremeajsl ptrsin
g)の2つのアルゴリズムが提案されている。ここで、
この2つのアルゴリズムについて述べる。
There are two types of Xiw-Lempel encoding methods: ■Universal type and ■Incremental decomposition type (Incremeajsl ptrsin)
Two algorithms have been proposed: g). here,
These two algorithms will be described.

[ユニバーサル型のアルゴリズム] このアルゴリズムは、演算量は多いが、高圧縮率が得ら
れる。符号化データを、過去のデータ系列の任意の位置
から一致する最大長の系列に区切り(部分列)、過去の
系列の複製として符号化する方法である。
[Universal Algorithm] Although this algorithm requires a large amount of calculation, it provides a high compression ratio. This is a method in which encoded data is divided into sequences (subsequences) of maximum length that match each other from an arbitrary position in a past data sequence, and encoded as a copy of the past sequence.

第3図にユニバーサル型H▼−Lempel符号の符号
器の原理を示す。
FIG. 3 shows the principle of a universal H▼-Lempel code encoder.

第3図において、Pバッファには符号化済みの入力デー
タが格納されており、Qバッファにはこれから符号化す
るデータが入力されている。Qバッファの系列は、Pバ
ッファの系列をサーチし、Pバッファ中で一致する最大
長の部分列をもとめる。そして、Pバッファ中でこの最
大長部分列を指定するため下記の情報の組を符号化する
In FIG. 3, encoded input data is stored in the P buffer, and data to be encoded is input to the Q buffer. The Q-buffer sequence is searched through the P-buffer sequence to find a matching sub-sequence of maximum length in the P-buffer. The following set of information is then encoded to specify this maximum length subsequence in the P buffer.

次にQバッファ内の符号化した系列をPバッフ7に移し
て、新たなデータを得る。以下、同様の操作を繰り返し
、データを部分列に分解して、符号化する。
Next, the encoded sequence in the Q buffer is transferred to the P buffer 7 to obtain new data. Thereafter, similar operations are repeated to decompose the data into subsequences and encode them.

更に、ユニバーサル型アルゴリズムの改良として、LZ
SS符号がある(T. C. Bell, ’ Bet
目t OPM/L Text Compression
’, IEEE Trsat.on Commu+,,
 Vof.COM−34, No. 12, Dec.
 1986参照)。LZSS符号化では、Pバッファ中
の最大一致系列の開始位置、一致する長さの組と、次の
シンボルとをフラグで区別し、符号量の少ない方で符号
化する。
Furthermore, as an improvement of the universal algorithm, LZ
There is an SS code (T.C. Bell, ' Bet
目 t OPM/L Text Compression
', IEEE Trsat. on Commu+,,
Vof. COM-34, No. 12, Dec.
(see 1986). In LZSS encoding, the start position of the maximum matching sequence in the P buffer, the matching length set, and the next symbol are distinguished by flags, and the one with the smaller amount of code is encoded.

[増分分解型アルゴリズム] このアルゴリズムは、圧縮率はユニバーサル型より劣る
が、シンプルで、計算も容易であることが知られている
[Incremental decomposition type algorithm] This algorithm has a lower compression rate than the universal type, but is known to be simple and easy to calculate.

増分分解型2iv−Lempel符号では、入力シンボ
ルの系列を X=aabababaa * * ● とすると、成分系列x=Xo XI X2 ・・・への
増分分解は次のようにする。
In the incremental decomposition type 2iv-Lempel code, if the input symbol sequence is X=aabababaa * * ●, then the incremental decomposition into the component sequence x=Xo XI X2 . . . is performed as follows.

Xjを既存分の右端のシンボルを取り除いた最長の列と
し、 X=a1tabIIabaIIbIIaaII●●とな
る。
Let Xj be the longest string from which the rightmost symbol of the existing part is removed, and X=a1tabIIabaIIbIIaaII●●.

従って、Xo=λ(空列) , XI =XO a,X
2 =XI b,    X3 =X2 a,X4 =
XO b,X5 =XI a,− − −と分解できる
。増分分解した各威分系列は既成分系列を用いて次のよ
うな組で符号化する。
Therefore, Xo = λ (empty row), XI = XO a,X
2 =XI b, X3 =X2 a, X4 =
It can be decomposed as XO b,X5 =XI a, - - -. Each incrementally decomposed dynamic sequence is encoded as the following set using the existing component sequence.

即ち、増分分解型アルゴリズムは、符号化パターンにつ
いて、過去に分解した部分列の内、最大長一致するもの
を求め、過去に分解した部分列の複製として符号化する
ものである。
That is, in the incremental decomposition type algorithm, for a coding pattern, among the subsequences decomposed in the past, the maximum length match is found and encoded as a copy of the subsequence decomposed in the past.

さらに、増分分解型アルゴリズムの改良としては、LZ
W符号化がある(T. A. Welch, ’ A 
Technique for High−Perfor
mance Data Compression’,C
omputer, Jone 1984参照)。LzW
符号化では、次のシンボルを次の部分列に組み込むよう
にして、インデックスのみで符号化できるよにしている
Furthermore, as an improvement of the incremental decomposition type algorithm, LZ
There is a W encoding (T. A. Welch, 'A
Technique for High-Perform
mance Data Compression',C
computer, John 1984). LzW
In encoding, the next symbol is incorporated into the next subsequence, so that it can be encoded using only the index.

即ち、輪郭線の大域的な接続関係を既に符号化した成分
の部分列、或いは、成分のインデックスとして、固定長
の符号で表し、次のシンボルをMR符号で表す。
That is, the global connectivity of the contours is represented by a fixed-length code as a subsequence of already encoded components or a component index, and the next symbol is represented by an MR code.

このようなユニバーサル符号化により、文字のもつ直線
性や曲がり具合、また、網点を構成する輪郭線の傾向を
パターンとして捉えて符号化することができ、有効な圧
縮ができる。またユニバーサル符号化で学習により作成
する辞書は、ユニバーサル型のPバッファ、増分分解型
の辞書とも最近出現した過去の系列を参照するので、異
なる性質の成分を含む系列は、成分ごとにまとめて学習
させれば効率が良くなる。
With such universal encoding, the linearity and curvature of characters, as well as the tendency of outlines forming halftone dots, can be captured and encoded as patterns, and effective compression can be achieved. In addition, the dictionary created by learning in universal coding refers to past sequences that have recently appeared in both the universal type P-buffer and the incremental decomposition type dictionary, so sequences containing components with different properties are learned individually for each component. Efficiency will improve if you do so.

[実施例コ 第4図に本発明の画像データ圧縮の手順を示す。[Example code] FIG. 4 shows the procedure of image data compression according to the present invention.

第4図において、まずステップSL(以下「ステップ」
は省略)で入力した画像データを第8図に示すMMRを
変形した符号化方式により、固定長のモード符号と、固
定長のRL符号(ランレングス符号)とに変換する。こ
れらの固定長符号は、1バイト単位とし、第5図(a)
のように並べられる。尚、第5図は第6図の画素配置を
対象としている。
In FIG. 4, first step SL (hereinafter referred to as "step")
(omitted) is converted into a fixed-length mode code and a fixed-length RL code (run-length code) using an encoding method modified from MMR shown in FIG. These fixed length codes are in units of 1 byte, as shown in Figure 5(a).
are arranged like this. Incidentally, FIG. 5 is directed to the pixel arrangement shown in FIG. 6.

次に82に進んで固定長符号をライン単位から、輪郭線
ごとに並べ替え、第5図(b)に示す配列とする。
Next, the process proceeds to step 82, where the fixed length codes are rearranged line by line and contour by contour, resulting in the arrangement shown in FIG. 5(b).

次に33に進んで、始点情報のみのグループと、と接続
点及び終点情報のグループとに分けてまとめ、第5図(
C)の配列のように並べ替える。
Next, proceed to step 33, divide the group into a group containing only the starting point information, and a group containing the connecting point and ending point information, and summarize them in Figure 5 (
Arrange it like the array in C).

そして最終的に84で第5図(c)の配列をもつ接続関
係をユニバーサル符号化の手法により、符号化するもの
である。
Finally, in step 84, the connection relationships having the arrangement shown in FIG. 5(c) are encoded using the universal encoding method.

次に第4図の81〜S4の処理を詳細に説明する。Next, the processing from 81 to S4 in FIG. 4 will be explained in detail.

[変形MMR符号化] : 第8図の変形MMR符号化方式が第15図に示した標準
方式と異なる点は、第8図の810で32<1)1 が不成立のときS11に進んで垂直モードとすることで
ある。即ち、輪郭線が接続している場合は、垂直モード
で表されることになる。輪郭線は次のようなモードを遷
移を辿ることになる。
[Modified MMR encoding]: The modified MMR encoding method shown in FIG. 8 is different from the standard method shown in FIG. It is to make it a mode. That is, if the contour lines are connected, they will be represented in vertical mode. The contour line will follow the following mode transitions.

水平モード →垂直モード →パスモード(始点)  
 (接続点)   (終点)第6図は、このようなモー
ド遷移を辿って表わされた加増データの始点、接続点、
終点の配置状態の一例を示している。
Horizontal mode → Vertical mode → Path mode (starting point)
(Connection point) (End point) Figure 6 shows the starting point, connection point, and
An example of the arrangement of end points is shown.

変形MMR符号化における変化画素の各モード、および
ランレングス(Run Lengtb)への固定長符号
の割り付けは、各符号が識別できるように、例えば第7
図の表のようにバイト単位で表す。
Fixed-length codes are assigned to each mode of changed pixels and run length (Run Lengtb) in modified MMR encoding, so that each code can be identified.
Expressed in bytes as shown in the table in the figure.

[輪郭線に沿った並び替え及びまとめ]第9図に、本発
明で用いる輪郭線に沿うようにする固定長符号の並べ替
えの処理フローを示す。
[Rearrangement and grouping along the contour line] FIG. 9 shows a processing flow for rearranging fixed length codes along the contour line used in the present invention.

この処理フローに従った並べ替えの様子を第10図に示
す。
FIG. 10 shows the sorting according to this processing flow.

第10図(a)は、第8図の変形MMR方式により求め
た固定長符号がメモリに格納されている様子を示し、 H;水平モード(始点) V;垂直モード(接続点) P:パスモード(終点) を示している。
Figure 10(a) shows how fixed-length codes obtained by the modified MMR method in Figure 8 are stored in memory, H: Horizontal mode (starting point) V: Vertical mode (connection point) P: Path Indicates the mode (end point).

また第10図(b)は、実際の画像における輪郭線の接
続状態を同図(0につき矢印で示している。
Further, FIG. 10(b) shows the connection state of contour lines in an actual image (0 is indicated by an arrow).

変形MMR符号化方式ではライン単位に変化画素の接続
を求めているため、各ラインのi番目に出現する変化画
素が常に同じ輪郭線に属するわけではない。
In the modified MMR encoding method, connection of change pixels is determined line by line, so the change pixel that appears i-th in each line does not always belong to the same contour line.

第10図(c)の配列B (1,  k)は、配列中の
k番目の変化画素が各ラインで同じ輪郭線に属するよう
に並べ替えたものである。この配列Bの桁は、第10図
(a)の画像を上のラインから下のラインへと走査し、
変化画素が出てくる順に取る。例えば第10図(b)か
ら明らかなよ引ヒ、ラインNo,1の走査で、5つの変
化画素が出てくることから、桁1〜5を取る。またライ
ンNo.3の走査ではH2., H2,として新たに変
化画素が2つ出てくることから、桁を2つ増して1〜7
を取る。
The array B (1, k) in FIG. 10(c) is rearranged so that the k-th changed pixel in the array belongs to the same contour in each line. The digits of this array B are obtained by scanning the image of FIG. 10(a) from the upper line to the lower line,
Take the changing pixels in the order they appear. For example, it is clear from FIG. 10(b) that when scanning line No. 1, five changed pixels appear, so digits 1 to 5 are taken. Also line no. 3 scan, H2. , H2, and two new pixels appear, so add two digits to 1 to 7.
I take the.

ラインNo.3のように水平モードH2., H2,に
より新たに変化画素が現われた時ときは、変化画素を並
べる順番がずれることになるが、このときの順番の管理
を対10図(d)に示す配列CNにより行う。
Line No. Horizontal mode H2. , H2, when a new changed pixel appears, the order in which the changed pixels are arranged is shifted, but the order at this time is managed by the array CN shown in FIG. 10 (d).

即ち、配列CN(m)は、変化画素の出現順mにより実
際に、その変化画素が属する輪郭線が格納されている配
列B (1,  k)の桁kが得られように割り付ける
。具体的に説明すると、第10図(b)のラインNo,
3の走査においては、桁1,2については第10図(C
)の桁1,2と一致している。しかし、第10図(b)
の桁3.4には新たに水平モードH20,H23による
変化画素が現われたため、輪郭線の数が2本追加され、
既に1〜5の輪郭線の並べ替えが行われていることから
、新たな輪郭線は第10図(C)の桁6.7に納められ
。従って配列CNはP=3.4につきCN (P)=6
.7として両者を対応付けする。
That is, the array CN(m) is allocated so that the appearance order m of the changed pixel actually yields the digit k of the array B (1, k) in which the contour line to which the changed pixel belongs is stored. To explain specifically, line No. in FIG. 10(b),
3 scan, for digits 1 and 2, see Figure 10 (C
) matches digits 1 and 2. However, Fig. 10(b)
In digit 3.4, pixels newly changed due to horizontal modes H20 and H23 appear, so two contour lines are added,
Since the contour lines 1 to 5 have already been rearranged, the new contour line is placed in column 6.7 in FIG. 10(C). Therefore, the array CN is CN (P)=6 for P=3.4
.. 7, the two are associated with each other.

更にライン走査においてパスモードPが出た時は、パス
モードPが出た以降のラインの桁kの一には、その変化
画素が消滅した旨を示す信号empgを格納して識別す
る。
Further, when pass mode P is issued in line scanning, a signal empg indicating that the changed pixel has disappeared is stored in the first digit k of the line after pass mode P is issued for identification.

次に第9図の固定長符号のnライン分の輪郭線に沿った
並べ替え処理を説明する。
Next, a description will be given of the rearrangement process along the contour line of n lines of the fixed length code shown in FIG.

まず、S1,S2で前回のnライン分を並べ替えたとき
に求めた最終ラインの変化画素数mlを輪郭線数を表す
変数mにロードする。画像の一番最初のnライン分の場
合、mlの初期値は1である。次に、S3で配列CNに
は、輪郭線を配列Bに格納する桁の位置として1からm
1の位置に、それぞれ1からm1をセットする。続いて
、84〜S11により変化画素の固定長符号を一つずつ
読んで、配列Bの適当な位置に移し替えるようにする。
First, the number ml of changed pixels of the final line obtained when the previous n lines were rearranged in S1 and S2 is loaded into the variable m representing the number of contour lines. For the first n lines of the image, the initial value of ml is 1. Next, in S3, array CN contains 1 to m as the digit positions for storing the contour line in array B.
Set 1 to m1 in the 1 position, respectively. Subsequently, in steps 84 to S11, the fixed length codes of the changed pixels are read one by one and transferred to an appropriate position in array B.

もし、配列Bの対応する位置、即ち、ライン1、変化画
素順番iのB (1, CN(i) ) $::emp
ty信号が入っていることを811で判別したならば、
810でiをインクリメントしてから、再度、S11で
配列Bを調ヘル。もし、B (1. CN(i) )に
empty信号がなければ、S12以降に進んで固定長
符号の符号化モードを調べる。
If the corresponding position of array B, i.e. line 1, change pixel order i, B (1, CN(i) ) $::emp
If 811 determines that the ty signal is input,
After incrementing i in step 810, array B is adjusted again in step S11. If there is no empty signal in B(1.CN(i)), the process proceeds to S12 and subsequent steps to check the encoding mode of the fixed length code.

812で垂直モード■が判別されると、S13に進んで
B (1, CN(i) )に読み込んだ固定長符号を
格納する。
When the vertical mode ■ is determined in step 812, the process proceeds to S13, where the read fixed length code is stored in B(1, CN(i)).

また814で水平モードH判定されると、新たに変化画
素が出てきたことになるので、s15に進んでCN(I
)をm+1に設定し、S16で新たな変化画素の固定長
符号を格納する。また815では同時に元のC N (
i)からCN(m)までのBの桁の格納場所を元のCN
 (i+1)以降に1つずつずらす。
Also, if the horizontal mode H is determined in 814, it means that a new pixel has appeared, so the process advances to s15 and the CN(I)
) is set to m+1, and the fixed length code of the new changed pixel is stored in S16. Also, in 815, the original C N (
The storage location of B digits from i) to CN(m) is set to the original CN.
Shift by one after (i+1).

更に符号化モードがパスモードPならば、輪郭線は消滅
することになるので、S17に進んでB(1. CN(
i) )とB (1, CN (i+1) )の以降の
ラインにemp ty信号を格納する。
Furthermore, if the encoding mode is pass mode P, the contour line will disappear, so proceed to S17 and convert B(1. CN(
i) ) and the subsequent lines of B (1, CN (i+1) ).

以上の処理を繰り返し、nライン分を並べ替えて固定長
符号を配列Bに格納したら、S6からS19〜S31の
処理の進み、同一のCN (Dに沿ってnライン分ごと
配列Bから固定長符号を読み出すことで、固定長符号が
輪郭線に沿って出力されることになる。
After repeating the above process, sorting n lines and storing the fixed length code in array B, proceeding from S6 to S19 to S31, the same CN (fixed length code from array B every n lines along D) By reading the code, a fixed length code is output along the contour line.

固定長符号を読み出すときに、水平モードについては、
第11図(a)に示すように、何ライン(Y)の何画素
(X)目に出現したかが分かるように、ライン番号と画
素番号を始点情報のメモリ領域Aに集める。また、垂直
モードは接続点情報とし、さらにパスモードは終点情報
としてメモリ領域Bに集めて格納する。
For horizontal mode when reading fixed length codes,
As shown in FIG. 11(a), line numbers and pixel numbers are collected in the memory area A of the starting point information so that it can be known in which line (Y) and in which pixel (X) it has appeared. Further, the vertical mode is stored as connection point information, and the path mode is collected and stored in memory area B as end point information.

全ての輪郭線の固定長符号を格納した後、始点情報につ
いては第11図(b)に示すように、輪郭線数Nと、ラ
イン番号の相対値ΔY及び画素番号の相対値ΔXとを求
め、この順で固定長で読み出す。次に、第11図(a)
のメモリ領域Bに格納した接続点情報と終点情報を、輪
郭線ごとに順に読み出す。
After storing the fixed length codes of all contour lines, as for the starting point information, calculate the number N of contour lines, the relative value ΔY of the line number, and the relative value ΔX of the pixel number, as shown in FIG. 11(b). , read out in this order with a fixed length. Next, Fig. 11(a)
The connection point information and end point information stored in memory area B of are read out in sequence for each contour.

このようにして読み出された情報は、ユニバーサル符号
化の手法によりデータ圧縮して出力する。
The information read out in this way is compressed using a universal encoding method and output.

以上の実施例は符号化について述べてきたが、画像デー
タの復元(復号化)は、第4図に示した手順を逆に行え
ば良い。すなわち、輪郭線に沿った固定長符号を復号し
た後、固定長符号をライン単位に並べ替えて、変形MM
R符号化式の手法により復号する。
Although encoding has been described in the above embodiments, the restoration (decoding) of image data can be accomplished by performing the procedure shown in FIG. 4 in reverse. That is, after decoding the fixed-length code along the contour line, the fixed-length code is rearranged line by line, and the modified MM
Decode using the R encoding method.

また本発明の実施例の説明では、固定長符号の並べ替え
において複数ラインごとに左ある輪郭線から順に出力す
るようにしたが、これは、上ラインにある輪郭線ほど優
先し、ライン内では左にあるほど優先して出力するよう
にしても良い。
In addition, in the explanation of the embodiment of the present invention, when rearranging fixed-length codes, output is performed sequentially starting from the left contour line for each plurality of lines. It is also possible to give priority to the output as it is further to the left.

[効果] 以上説明したように本発明によれば、輪郭線の直線性、
曲がり具合の規則性を対象画像に合わせて学習しながら
符号化するため、画像の種類によらず、有効なデータ圧
縮ができる。
[Effect] As explained above, according to the present invention, the linearity of the contour line,
Since encoding is performed while learning the regularity of the degree of curvature according to the target image, effective data compression can be achieved regardless of the type of image.

また輪郭線は始点情報と接続点情報、終点情報と輪郭線
を表現する異なる情報ごとにまとめられるので、輪郭線
の規則について効率の良い学習ができ、高い圧縮率が得
られる。
Furthermore, since contour lines are grouped into starting point information, connecting point information, end point information, and different information representing the contour line, efficient learning of contour line rules is possible and a high compression rate can be obtained.

更に、輪郭線の規則性は、符号化済の輪郭線の規則性か
らの複製として指定されるため、解像度が上がった場合
でも、規則性をひとまとまりとして促えられ、符号量が
解像度に比例して増加することはなく、高能率の符号化
が行なえる。
Furthermore, the regularity of the contour line is specified as a copy of the regularity of the encoded contour line, so even when the resolution increases, the regularity can be promoted as a group, and the amount of code is proportional to the resolution. There is no increase in the amount of data, and highly efficient encoding can be performed.

更にまた、符号化は輪郭線を追跡するため、画像全体を
対象にする必要がなく、MMR方式の手法を用いて複数
ラインごとに処理することができるため、大容量の画像
メモリも不要で、ライン単位のシリアル処理により高速
処理を行うことができる。
Furthermore, since the encoding tracks the contour line, there is no need to target the entire image, and it can be processed for each line using the MMR method, so there is no need for a large capacity image memory. High-speed processing can be performed by serial processing on a line-by-line basis.

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

第1図は本発明の原理説明図; 第2図は本発明の作用説明図; 第3図は本発明で用いるユニバーサル符号化の説明図; 第4図は本発明の画像データ圧縮手順の説明図;第5図
は本発明の手順に従ったデータ配列の変化説明図; 第6図は画像データの始点、接続点、終点の配置図; 第7図は本発明で元いるMMR変形符号化方式の固定長
符号割当て説明図; 第8図は本発明の変形MMR方式の符号化処理フロー図
; 第9図は本発明の輪郭線に沿った固定長符号並び替え処
理フロー図; 第10図は第9図の並び替え処理の説明図;第11図は
本発明のユニバーサル符号化時の表現形式変換説明図; 第12図は従来のMMR符号化方式の説明例;第13図
はMMR符号化のモード定義説明図:第14図はMMR
符号化の固定長符号割当て説明図; 第15図はMMR方式の符号化処理フロー図:第16図
は予測符号化の説明図; 第17図は適応予測符号化の回路構成図である。 図中、 10:第1符号化手段 12:並べ替え手段 14:整理手段 16:第2符号化手段
Fig. 1 is an explanatory diagram of the principle of the present invention; Fig. 2 is an explanatory diagram of the operation of the present invention; Fig. 3 is an explanatory diagram of universal encoding used in the present invention; Fig. 4 is an explanatory diagram of the image data compression procedure of the present invention. Figure; Figure 5 is an explanatory diagram of changes in the data arrangement according to the procedure of the present invention; Figure 6 is a diagram of the arrangement of the start point, connection point, and end point of image data; Figure 7 is the original MMR deformed encoding according to the present invention. An explanatory diagram of fixed-length code allocation of the method; FIG. 8 is a flowchart of encoding processing of the modified MMR method of the present invention; FIG. 9 is a flowchart of fixed-length code rearrangement processing along the outline of the present invention; FIG. 10 is an explanatory diagram of the sorting process in FIG. 9; FIG. 11 is an explanatory diagram of expression format conversion during universal encoding of the present invention; FIG. 12 is an explanatory example of the conventional MMR encoding method; FIG. 13 is an MMR code Explanation diagram of mode definition of conversion: Figure 14 is MMR
An explanatory diagram of fixed-length code allocation for encoding; FIG. 15 is a flowchart of encoding processing in the MMR method; FIG. 16 is an explanatory diagram of predictive encoding; FIG. 17 is a circuit configuration diagram of adaptive predictive encoding. In the figure, 10: first encoding means 12: sorting means 14: organizing means 16: second encoding means

Claims (3)

【特許請求の範囲】[Claims] (1)読取ライン走査で得られた2値画像データを圧縮
する画像データ圧縮方式に於いて、 前記2値画像データの隣接する走査線間の変化画素の接
続関係を走査線単位に求める第1符号化手段(10)と
; 該第1符号化手段により符号化されたデータを、画像の
輪郭線に沿った変化画素の接続関係に並べ替える並び替
え手段(12)と; 該並び替え手段(12)で輪郭線に沿って並べ替えられ
た変化画素の接続関係を、始点画素情報のみみと接続画
素情報及び終点画素情報とに分けてまとめる整理手段(
14)と;該整理手段(14)で整理された接続関係を
、既に符号化済みの接続関係からの複製として符号化す
る第2符号化手段(16)と; を備えたことを特徴とする加増データ圧縮方式。
(1) In an image data compression method that compresses binary image data obtained by scanning a reading line, a first step is performed to determine the connection relationship of changing pixels between adjacent scanning lines of the binary image data for each scanning line. an encoding means (10); a rearranging means (12) for rearranging the data encoded by the first encoding means into a connection relationship of changing pixels along the contour line of the image; and a rearranging means (12); Organizing means (12) that divides and summarizes the connection relationships of changing pixels sorted along the contour line into starting point pixel information, connected pixel information, and end point pixel information.
14); and second encoding means (16) for encoding the connection relationships organized by the organization means (14) as copies of connection relationships that have already been encoded. Additive data compression method.
(2)前記第2符号化手段(16)は、現時点で符号化
すべき接続関係を、既に符号化済みの接続関係の複製位
置及び複製の長さを指定した情報として符号化すること
を特徴とする請求項1記載の加増データ圧縮方式。
(2) The second encoding means (16) encodes the connection relationship to be encoded at the present time as information specifying a copy position and a copy length of the already encoded connection relationship. 2. The incremental data compression method according to claim 1.
(3)前記第2符合化手段(16)は、現時点で符号化
すべき接続関係を、既に符号化済みの接続関係を異なる
部分列に分けたときの該部分列の番号で指定した情報と
して符号化することを特徴とする請求項1記載の画像デ
ータ圧縮方式。
(3) The second encoding means (16) encodes the connection relationship to be encoded at the present time as information specified by the number of the subsequence when the already encoded connection relationship is divided into different subsequences. 2. The image data compression method according to claim 1, wherein the image data compression method comprises:
JP317090A 1989-08-09 1990-01-10 Image data compression method Expired - Lifetime JP2708252B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP317090A JP2708252B2 (en) 1990-01-10 1990-01-10 Image data compression method
DE69024130T DE69024130T2 (en) 1989-08-09 1990-08-08 Data compression system
EP90308746A EP0412809B1 (en) 1989-08-09 1990-08-08 Data compression system
US07/565,679 US5138673A (en) 1989-08-09 1990-08-09 Data compression system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP317090A JP2708252B2 (en) 1990-01-10 1990-01-10 Image data compression method

Publications (2)

Publication Number Publication Date
JPH03208469A true JPH03208469A (en) 1991-09-11
JP2708252B2 JP2708252B2 (en) 1998-02-04

Family

ID=11549907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP317090A Expired - Lifetime JP2708252B2 (en) 1989-08-09 1990-01-10 Image data compression method

Country Status (1)

Country Link
JP (1) JP2708252B2 (en)

Also Published As

Publication number Publication date
JP2708252B2 (en) 1998-02-04

Similar Documents

Publication Publication Date Title
JPH0564007A (en) Method and device for encoding and decoding
US6327383B2 (en) Multi-color image encoding apparatus and method, multi-color image decoding apparatus and method
US6728412B1 (en) Method and apparatus for on-the-fly image coding
CN107770553B (en) Data compression method and device adopting multiple types of matching parameters and parameter storage addresses
EP0349677B1 (en) Image coding system
JPH03208469A (en) Picture data compression system
JPH08130652A (en) Compression and expansion system for two-dimension image data
JPH1042144A (en) Method and device for encoding gray scale picture
CN106941610B (en) Binary ROI mask coding method based on improved block coding
CN107770543B (en) Data compression method and device for sequentially increasing cutoff values in multiple types of matching parameters
JP2755464B2 (en) Image data compression method
JP2615215B2 (en) Image data compression method
JPH05151349A (en) Image data compressing method and encoding circuit
US6219445B1 (en) Multi-color image encoding and/or decoding apparatus containing color order table and the method thereof
JP2798767B2 (en) Image data compression method
JP2708253B2 (en) Image data compression method
JPH0723238A (en) Picture data compression and decoding device
JP2612343B2 (en) Data compression method
CN111263155B (en) Compression method and system for equal-resolution CR image
JPH0884260A (en) Compression system and expansion system for two-dimension image data
JP4034385B2 (en) Multi-color image encoding apparatus and method, and multi-color image decoding apparatus and method
SKARBEK et al. Compression of dithered binary images using Hilbert scan
JP2755463B2 (en) Image data compression method
JP2614318B2 (en) Halftone image data compression method
JP2708254B2 (en) Image data compression method