JPS6126745B2 - - Google Patents

Info

Publication number
JPS6126745B2
JPS6126745B2 JP5249678A JP5249678A JPS6126745B2 JP S6126745 B2 JPS6126745 B2 JP S6126745B2 JP 5249678 A JP5249678 A JP 5249678A JP 5249678 A JP5249678 A JP 5249678A JP S6126745 B2 JPS6126745 B2 JP S6126745B2
Authority
JP
Japan
Prior art keywords
block
black
white
change
blocks
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
Application number
JP5249678A
Other languages
Japanese (ja)
Other versions
JPS54144125A (en
Inventor
Masumi Yoshida
Kyoshi Iwata
Eiichiro Yamamoto
Takeshi Masui
Shinichi Shimizu
Yukikazu Kaburayama
Toshio Matsura
Shigemi Osada
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 JP5249678A priority Critical patent/JPS54144125A/en
Publication of JPS54144125A publication Critical patent/JPS54144125A/en
Publication of JPS6126745B2 publication Critical patent/JPS6126745B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Reduction Or Emphasis Of Bandwidth Of Signals (AREA)

Description

【発明の詳細な説明】 本発明は、圧縮度が大なるようにした2値図形
データの圧縮方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a compression method for binary graphic data with a high degree of compression.

フアクシミリなどで2値図形(文字)データを
伝送するに際しては伝送情報量を少なくするため
データ圧縮が行なわれるが、従来の圧縮方式では
1行または2行における各画素の相関をとるに過
ぎず、従つて圧縮度にも限度があつた。本発明は
3行を一括して圧縮し、データ圧縮率を向上させ
て高密度符号化を実現しようとするものである。
When transmitting binary graphic (character) data by facsimile, etc., data compression is performed to reduce the amount of information to be transmitted, but conventional compression methods only correlate each pixel in one or two rows. Therefore, there was a limit to the degree of compression. The present invention aims to compress three lines at once, improve the data compression rate, and realize high-density encoding.

本発明のデータ圧縮方式は2値図形データを3
行ずつ取り出しかつその3行の図形データを予め
用意した特定パターンの図形データ群の1つに対
応するように区分してブロツク化し、そのブロツ
クを、ブロツク識別符号と、ブロツク内各行の2
値情報変化が生じるまでの長さの符号と、ブロツ
クの白黒を示すラベル符号と、白黒順の変更を示
す白黒順変更符号で代表させて符号化することを
特徴とするが、次に図面を参照しながらこれを詳
細に説明する。
The data compression method of the present invention converts binary graphic data into 3
The graphic data of the three rows are extracted row by row and divided into blocks so as to correspond to one of the graphic data groups of a specific pattern prepared in advance.
The feature is that the code is represented by a code indicating the length until a change in value information occurs, a label code indicating black and white of the block, and a black and white order change code indicating a change in the black and white order. This will be explained in detail with reference to.

第1図はデータ伝送すべき文字などの図形デー
タをブロツクに区切る条件を示す流れ図、第2図
は本発明で用いる特定パターンの図形データブロ
ツクの種類を示す図である。本発明では図形デー
タを3行ずつ取出し、更にそれを区切つて得たブ
ロツクが第2図の0〜10の11種類のいずれかに
なるようにする。こゝで第2図0は3行n列の画
素または図形データがすべて白である白ブロツ
ク、第2図1,2,3は各々3行を持ち、そして
第1行、第2行、第3行のi〜n列、j〜n列、
k〜n列が黒で残りは白であるブロツクである。
なおこゝでは2値画像情報を白,黒としている
が、これは任意の色でもよい。また第2図4,
5,6はやはり3行を持ち、そして第1行,第2
行,第3行の1〜i列、1〜j列、1〜k列が黒
で残りは白であるブロツク、そして第2図7,
8,9,10はやはり3行を持ち、そして第1行
のi〜n列および第2行のj〜n列が黒、第2行
のj〜n列および第3行のi〜n列が黒、第1行
のj〜n列および第2行のi〜n列が黒、そして
第2行のi〜n列および第3行のj〜n列が黒で
残りの白の各ブロツクである。こゝでn,i,
j,kは整数でありかつ図面から明らかなように
n>k>j>iである。3行n列の図形データブ
ロツクは第2図に示すこれらの11種類のブロツク
のいずれかとすることができ、そのブロツク化の
要領を第1図を参照しながら次に説明する。
FIG. 1 is a flowchart showing the conditions for dividing graphic data such as characters to be transmitted into blocks, and FIG. 2 is a diagram showing the types of graphic data blocks of specific patterns used in the present invention. In the present invention, graphic data is extracted in three rows at a time, and the data is further divided into blocks of 11 types from 0 to 10 shown in FIG. Here, FIG. 2 0 is a white block in which the pixels or figure data in 3 rows and n columns are all white, and FIG. 2 1, 2, and 3 each have 3 rows, and the first, second, and 3 rows, columns i to n, columns j to n,
It is a block in which columns k to n are black and the rest are white.
Note that although the binary image information is white and black here, it may be any color. Also, Figure 2 4,
5 and 6 still have 3 rows, and the 1st row, 2nd row
A block in which columns 1 to i, columns 1 to j, and columns 1 to k of the third row are black and the rest is white;
8, 9, 10 also have three rows, and columns i-n of the first row and columns j-n of the second row are black, columns j-n of the second row and columns i-n of the third row. is black, columns j to n of the first row and columns i to n of the second row are black, columns i to n of the second row and columns j to n of the third row are black, and the remaining blocks are white. It is. Here n, i,
j and k are integers, and as is clear from the drawing, n>k>j>i. The graphic data block of 3 rows and n columns can be any of the 11 types of blocks shown in FIG. 2, and the procedure for forming the block will be explained below with reference to FIG. 1.

フアクシミリなどが出力する図形データはメモ
リ等から3行ずつ取出し、そして第i列の3行と
その隣りのi+1列の3行とを比べ、3行のうち
1行でも2値情報変化(白黒反転)があつたらそ
の前までの長さaを記憶する。そして「ブロツク
内で同一行で2回目の情報変化が生じたか」とい
う境界判定条件1を調べ、YESであればブロツ
ク変化あり、つまりそこまでを1ブロツクとす
る。NOのときは次の「ブロツク内で情報変化が
生じたのが2行以上になつたか」という境界判定
条件2を調べ、NOならばブロツク変化なし即ち
前記変化はブロツク内変化であるとする。YES
ならば「1行のみ変化し、異パターンへの変化の
行が隣り合つているか」という単調判定を行な
い、YESならブロツク変化なしとしてそこまで
の長さbを記憶し、NOならブロツク変化ありと
する。こゝで異パターンへの変化とは第2図7,
8の矢印F1方向の変化をいゝ、その逆方向の変
化ではない。ブロツク変化ありではそこまでの長
さcを記憶するが、第2図から明らかなようにb
がなく、又はaがなく直接cになる場合もある。
The graphic data output by a facsimile machine is retrieved three rows at a time from memory, etc., and the three rows of the i-th column are compared with the three rows of the adjacent i+1 column. ), memorize the length a up to that point. Then, the boundary judgment condition 1, ``Has a second information change occurred in the same line within the block?'' is checked, and if YES, there is a block change, that is, the area up to that point is considered to be one block. If NO, the next boundary judgment condition 2, ``Has an information change occurred in two or more lines within the block?'' is checked, and if NO, it is determined that there is no change in the block, that is, the change is an intra-block change. YES
If so, a monotonous judgment is made as to whether only one line changes and the lines that change to a different pattern are adjacent to each other. If YES, it is assumed that there is no block change and the length b up to that point is memorized, and if NO, it is assumed that there is a block change. do. Here, the change to a different pattern is shown in Figure 2, 7.
Arrow F in 8 refers to a change in one direction, not a change in the opposite direction. When there is a block change, the length c up to that point is memorized, but as is clear from Figure 2, the length b
There are also cases where there is no , or there is no a and it becomes c directly.

このような処理を行なうと任意の2値図形を第
2図0〜10のいずれかに分割することができ
る。例えば第2図1に点線で示す黒部分が付加さ
れたブロツクは判定2にによりブロツク変化あり
と判定されn列までが1ブロツク、次が黒ブロツ
クとなる。なお第2図には黒ブロツクは示されて
いないが、白黒を反転したブロツクも当然存在
し、これはラベルで識別する。また第3図に示す
如きパターンは左から第n列まで来たとき第2行
において情報変化が2度生じるので判定1により
ブロツク変化ありとされ、次の列は次のブロツク
の第1列目となる。この列では白ブロツクの次に
また白ブロツクが続くので後述のように第2図1
1に示す白黒順変更符号がつけられる。第2図の
「ブロツク内数」はそのブロツク内で幾つに切れ
るかを示している。かゝる図形情報を伝送する信
号は例えば第2図7のそれは「ブロツク識別符
号」+「ブロツク内aの長さの符号」+「ブロツク内
bの長さの符号」+「ブロツク内cの長さの符号」
の4種の符号、およびブロツクの白黒を示すラベ
ルの符号で構成できる。
By performing such processing, any binary figure can be divided into any one of 0 to 10 in FIG. 2. For example, a block to which a black portion shown by a dotted line in FIG. 2 is added is judged to have a block change in judgment 2, and up to the nth column becomes one block, and the next block becomes a black block. Although black blocks are not shown in FIG. 2, there are also blocks whose black and white are reversed, and these are identified by labels. Furthermore, in the pattern shown in Fig. 3, when the nth column from the left is reached, the information changes twice in the second row, so it is determined that there is a block change based on judgment 1, and the next column is the first column of the next block. becomes. In this row, a white block is followed by another white block, so please refer to Figure 2 1 as described below.
The black and white order change code shown in 1 is attached. The "number within a block" in FIG. 2 indicates how many parts the block is divided into. The signal for transmitting such graphic information is, for example, the one shown in FIG. "Length sign"
It can be composed of four types of codes, and a label code indicating whether the block is black or white.

ラベルは、ブロツクの先頭の3行を見て白黒の
うち2行を占める方をそのブロツクの色(ラベ
ル)とする。ラベルはブロツクの先頭につけ、そ
して本発明では画面を白黒順反転部で区切る関係
上、白ブロツクの次は黒ブロツク、その次は白ブ
ロツクと、白黒ブロツクが交互に並ぶのが普通で
あるから、その順番がくずれたブロツクの先頭に
第2図11に示す白黒順変更符号を付けるように
すれば、各ブロツクの先頭に白黒識別符号を付け
なくてもよい。
For the label, look at the first three lines of a block and choose the color (label) that occupies two of the black and white lines. The label is attached to the beginning of the block, and in the present invention, the screen is divided by black-and-white order reversal parts, so it is normal for black and white blocks to be lined up alternately, with a black block following a white block, and a white block after that. If the black-and-white order change code shown in FIG. 2 is attached to the head of the block whose order has been disrupted, it is not necessary to attach the black-white identification code to the head of each block.

復号はブロツクコードを識別したのちブロツク
内数の数だけ長さを復号する。第4図に符号化回
路、第5図に復号化回路のブロツク図を示す。こ
れらの図で11は列変化検出回路でi,i+1,
i+2各行の白黒変化を検出し、カウンタ
CTR1,CTR2,CTR3は前述の長さa,b,cを
検出する。12はブロツク変化検出回路であり、
第1図のフローによりブロツク変化を検出する。
13は符号化回路であり、ブロツク符号を符号化
し、また長さa,b,cを符号化し、これらをデ
ータ圧縮符号D,C,Cとして送出する。復号化
回路ではこの符号DCCを受けてブロツク識別回
路14でブロツクの種類を知り、距離符号終端検
出回路15で長さa,b,c等の復号を行ない、
i,i+1,i+2各行の復元を行なう。
In decoding, after identifying the block code, the lengths are decoded as many times as the number in the block. FIG. 4 shows a block diagram of the encoding circuit, and FIG. 5 shows a block diagram of the decoding circuit. In these figures, 11 is a column change detection circuit, i, i+1,
i+2 Detects black and white changes in each line and uses a counter
CTR 1 , CTR 2 , and CTR 3 detect the aforementioned lengths a, b, and c. 12 is a block change detection circuit;
Block changes are detected according to the flow shown in FIG.
13 is an encoding circuit which encodes the block code, encodes the lengths a, b, and c, and sends them out as data compression codes D, C, and C. In the decoding circuit, upon receiving this code DCC, the block identification circuit 14 learns the type of block, and the distance code end detection circuit 15 decodes the lengths a, b, c, etc.
Restore each row of i, i+1, and i+2.

以上の説明から明らかなように、本発明ではフ
アクシミリなどでの文字画像情報の伝送に際し、
画面を3行毎に区切り、かつその3行を所定の条
件で更に行方向で細分して特定のパターンのブロ
ツクにし、該ブロツクのコードと白黒反転部まで
の長さのコードとで該ブロツクの圧縮符号とする
ので、大きな情報圧縮度が得られる。例えば空白
部などは第2図0に示した白ブロツク1つで表わ
すことができ、圧縮度を極めて大にすることがで
きる。また連続するブロツクの特徴を利用すれば
白・黒ラベル情報など付属情報も省略でき、伝送
情報量の減少を図ることができる。
As is clear from the above explanation, in the present invention, when transmitting character image information by facsimile etc.
The screen is divided into three lines, and the three lines are further subdivided in the line direction according to predetermined conditions to create a block with a specific pattern. Since it is a compression code, a high degree of information compression can be obtained. For example, a blank area can be represented by a single white block as shown in FIG. 2, and the degree of compression can be extremely high. Further, by utilizing the feature of continuous blocks, additional information such as white and black label information can be omitted, and the amount of transmitted information can be reduced.

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

第1図はブロツク化の要領を示す流れ図、第2
図はブロツクの種類を示す説明図、第3図はブロ
ツク化の例を示す説明図、第4図は符号化回路の
ブロツク図、第5図は復号化回路のブロツク図で
ある。 図面で第2図の0〜10は特定パターンの図形
データブロツクを示す。
Figure 1 is a flowchart showing the procedure for creating blocks, Figure 2
FIG. 3 is an explanatory diagram showing the types of blocks, FIG. 3 is an explanatory diagram showing an example of blocking, FIG. 4 is a block diagram of an encoding circuit, and FIG. 5 is a block diagram of a decoding circuit. In the drawings, 0 to 10 in FIG. 2 indicate graphic data blocks of a specific pattern.

Claims (1)

【特許請求の範囲】[Claims] 1 2値図形データを3行ずつ取り出しかつその
3行の図形データを予め用意した特定パターンの
図形データ群の1つに対応するように区分してブ
ロツク化し、そのブロツクを、ブロツク識別符号
と、ブロツク内各行の2値情報変化が生じるまで
の長さの符号と、ブロツクの白黒を示すラベル符
号と、白黒順の変更を示す白黒順変更符号で代表
させて符号化することを特徴としたデータの圧縮
方式。
1. Extract the binary graphic data in three rows at a time, divide the three rows of graphic data into blocks corresponding to one of the graphic data groups of a specific pattern prepared in advance, and divide the blocks into blocks using a block identification code, Data characterized in that it is represented and encoded by a code indicating the length until a binary information change occurs in each line in a block, a label code indicating black and white of the block, and a black and white order change code indicating a change in the black and white order. compression method.
JP5249678A 1978-05-01 1978-05-01 Data compression system Granted JPS54144125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5249678A JPS54144125A (en) 1978-05-01 1978-05-01 Data compression system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5249678A JPS54144125A (en) 1978-05-01 1978-05-01 Data compression system

Publications (2)

Publication Number Publication Date
JPS54144125A JPS54144125A (en) 1979-11-10
JPS6126745B2 true JPS6126745B2 (en) 1986-06-21

Family

ID=12916319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5249678A Granted JPS54144125A (en) 1978-05-01 1978-05-01 Data compression system

Country Status (1)

Country Link
JP (1) JPS54144125A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH044934U (en) * 1990-04-21 1992-01-17

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH044934U (en) * 1990-04-21 1992-01-17

Also Published As

Publication number Publication date
JPS54144125A (en) 1979-11-10

Similar Documents

Publication Publication Date Title
US4750209A (en) System for processing an image having both letter and photographic information
US4546385A (en) Data compression method for graphics images
US4566128A (en) Method for data compression for two-value picture image
KR930012137B1 (en) Reading apparatus of dynamically variable machine readable binary code and deciding apparatus of size and density of binary code
US4135214A (en) Method and apparatus for compressing facsimile transmission data
EP0050338B1 (en) Picture information processing and storing device
US4319331A (en) Curve follower
JPS60254871A (en) Encoding method of facsimile image
CA1306296C (en) Image processing apparatus
US4623936A (en) Error processing technique for modified read code
JPH04270564A (en) Serial picture data compression system having color information
JPS6282723A (en) Image encoding method
JPH1117959A (en) Run length coding method for binary image and recording medium storing run length coding program
JPS5580188A (en) Linear pattern coding unit
JPH0210472B2 (en)
JPH0357507B2 (en)
JPS6063679A (en) Filing system for drawing information
JPS63109582A (en) Void character graphic forming system
JPS5992674A (en) Encoding circuit
JPS61153756A (en) Document processing method
JPS6298921A (en) encoding device
JPS6349982A (en) Coding processing system for three adjacent picture elements
JPS5816666B2 (en) Redundancy reduction coding transmission method
JPS6298922A (en) Redundancy reduction coding method
JPS61134792A (en) Binary image trimming apparatus