JPH0756589B2 - Character image data processor - Google Patents

Character image data processor

Info

Publication number
JPH0756589B2
JPH0756589B2 JP59262858A JP26285884A JPH0756589B2 JP H0756589 B2 JPH0756589 B2 JP H0756589B2 JP 59262858 A JP59262858 A JP 59262858A JP 26285884 A JP26285884 A JP 26285884A JP H0756589 B2 JPH0756589 B2 JP H0756589B2
Authority
JP
Japan
Prior art keywords
data
pattern
holding unit
pattern detection
held
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 - Lifetime
Application number
JP59262858A
Other languages
Japanese (ja)
Other versions
JPS61141481A (en
Inventor
佐藤  誠
健実 唐沢
通 高沢
安彦 中田
Original Assignee
株式会社写研
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 株式会社写研 filed Critical 株式会社写研
Priority to JP59262858A priority Critical patent/JPH0756589B2/en
Publication of JPS61141481A publication Critical patent/JPS61141481A/en
Publication of JPH0756589B2 publication Critical patent/JPH0756589B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimiles In General (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は文字画像データの処理装置に関し、特にデー
タの圧縮技術に係るものである。
The present invention relates to a character image data processing device, and more particularly to a data compression technique.

〔従来の技術〕[Conventional technology]

陰極線管上に文字、記号などを映し出し、その映像をレ
ンズを介して感材に投影して写真植字を行なう自動写植
機が、近年、提案されている。
In recent years, an automatic typesetting machine has been proposed in which characters, symbols, etc. are projected on a cathode ray tube and the image is projected onto a photosensitive material through a lens to perform phototypesetting.

そこで用いる文字信号発生技術として、文字を多くの画
素に分解し、各画素における画像の有無をディジタル的
な「1」、「0」に対応付けて出力するようにしたもの
がある。
As a character signal generation technique used there, there is a technique in which a character is decomposed into many pixels and the presence or absence of an image in each pixel is output in association with digital "1" or "0".

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記した従来の文字信号発生技術では、漢字のように複
雑な文字の場合、各文字を例えば少なくとも250画素×2
50画素程度に分解するする必要がある。
In the conventional character signal generation technology described above, in the case of a complicated character such as Kanji, each character is, for example, at least 250 pixels x 2
It is necessary to decompose it into about 50 pixels.

従って1文字につき62,500のビットの記憶容量が必要に
なり、記憶装置が高価で実用性に乏しいものとなってし
まう。
Therefore, a storage capacity of 62,500 bits is required for each character, which makes the storage device expensive and impractical.

これに対し、データを圧縮することによって記憶容量を
減少する文字画像データの処理装置について種々の技術
が提案されている。
On the other hand, various techniques have been proposed for a character image data processing device that reduces storage capacity by compressing data.

例えば、第5図(a)に示すように、異なるパターンデ
ータPA、PB、PCから成るパターン列1に対して、各パタ
ーンデータPA、PB、PC、及び、これら各パターンデータ
の繰り返し回数を一対に記憶してパターン列2を得るリ
ピート圧縮技術がある。
For example, as shown in FIG. 5 (a), each pattern data P A , P B , P C , and each of these patterns is applied to a pattern sequence 1 composed of different pattern data P A , P B , P C. There is a repeat compression technique in which a pattern sequence 2 is obtained by storing the number of times data is repeated as a pair.

しかしこの技術では、第5図(b)に示すように、異な
ったパターンデータPA、PB、PCが次々と隣接して出現す
るパターン列3に対しては、各パターンデータ毎に繰り
返し数「1」が付随したパターン列4となってしまい、
却って記憶すべきデータ量が増加し、データ圧縮ができ
ない結果となる。
However, in this technique, as shown in FIG. 5 (b), with respect to the pattern sequence 3 in which different pattern data P A , P B , and P C appear adjacently one after another, it is repeated for each pattern data. The pattern sequence 4 is accompanied by the number "1",
On the contrary, the amount of data to be stored increases, resulting in the inability to compress data.

本発明はこのような従来の問題点に着目してなされたも
のであり、同一のパターンデータが繰り返す場合には、
十分圧縮したパターン列に変換し、異なるパターンデー
タが隣接して出現する場合には、そのままパターン列化
して記憶するようにした文字画像データ処理装置を提供
する。
The present invention has been made focusing on such a conventional problem, and when the same pattern data is repeated,
(EN) Provided is a character image data processing device which is converted into a sufficiently compressed pattern string and, when different pattern data appear adjacently, are converted into a pattern string and stored as it is.

本発明になる装置の説明では、入力されるパターンの順
番を明確に表現する必要がある。
In the description of the device according to the present invention, it is necessary to clearly express the order of input patterns.

そこで以下の説明では、m番目に入力されたパターンを
パターンPmと表現する。
Therefore, in the following description, the m-th input pattern is expressed as a pattern Pm.

又、パターンPmの内容に着目している場合、即ち、各パ
ターンを構成している所定nビットのデータそのものに
着目している場合は、パターンデータPm、又は単に、Pm
と表現する。
Further, when paying attention to the contents of the pattern Pm, that is, when paying attention to the predetermined n-bit data itself forming each pattern, the pattern data Pm, or simply Pm
Express.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の文字画像データ処理装置にあっては、現時点で
入力したパターンPmの1つ前のパターンデータPm−1を
データ保持部に保持させておくと共に、パターンデータ
PmとPm−1をデータコンパレータで比較する。そしてこ
れら両データが一致するとき、リピートカウンタを歩進
させると共に、同一パターン検出保持部に一致信号を保
持させる。
In the character image data processing device of the present invention, the pattern data Pm-1 immediately before the currently input pattern Pm is held in the data holding unit, and
The data comparator compares Pm and Pm-1. When the two data match, the repeat counter is incremented and the same pattern detection / holding unit holds the matching signal.

尚、この同一パターン検出保持部は、次のパターンPm+
1が入力されたとき前記保持したPm=Pm−1の一致信号
を出力する。即ち、第1図のように、パターンPmが入力
された時点に着目すれば、Pm−1=Pm−2の一致信号を
出力する。
In addition, this same pattern detection holding unit is used for the next pattern Pm +
When 1 is input, the held coincidence signal of Pm = Pm-1 is output. That is, as shown in FIG. 1, paying attention to the time when the pattern Pm is input, the coincidence signal of Pm-1 = Pm-2 is output.

次に、パターンデータPmとPm−1とが一致しなくなり、
しかも、上記同一パターン検出保持部から一致信号が出
ているときは、前記データ保持部に記憶されたパターン
データPm−1と、リピートカウンタのカウント値Rcとに
基づいて、[Pm−1、Pm−1、Rc]から成る一連のデー
タによって構成した圧縮データを圧縮データ発生部から
出力させる。
Next, the pattern data Pm and Pm-1 do not match,
Moreover, when the coincidence signal is output from the same pattern detection holding unit, based on the pattern data Pm-1 stored in the data holding unit and the count value Rc of the repeat counter, [Pm-1, Pm -1, Rc], the compressed data generating section outputs the compressed data.

逆に、パターンデータPmとPm−1とが一致しなくなり、
しかも、上記同一パターン検出保持部から一致信号が出
ていないときは、このパターンデータPm−1のみを圧縮
データ発生部から出力させる構成としたものである。
On the contrary, the pattern data Pm and Pm-1 do not match,
Moreover, when the coincidence signal is not output from the same pattern detection holding unit, only the pattern data Pm-1 is output from the compressed data generating unit.

〔作用〕[Action]

文字画像のパターンPmが入力されると、データコンパレ
ータは、このパターンデータPmとデータ保持部のパター
ンデータPm−1とを比較し、Pm=Pm−1となったとき、
制御部を介してリピートカウンタを歩進すると共に、同
一パターン検出保持部にその一致したことを保持する。
When the pattern Pm of the character image is input, the data comparator compares this pattern data Pm with the pattern data Pm-1 of the data holding unit, and when Pm = Pm-1,
The repeat counter is incremented by way of the control unit and the coincidence is held in the same pattern detection holding unit.

また、Pm≠Pm−1となったときは、前記同一パターン検
出保持部の記憶内容がPm−1=Pm−2を差し示している
か否かを判別し、Pm−1=Pm−2を差し示している場合
は、データ保持部に記憶されたパターンデータPm−1
と、リピートカウンタに累積したカウント値Rcと、を圧
縮データ発生部に送り、この圧縮データ発生部によって
[Pm−1、Pm−1、Rc]から成る一連のデータで構成し
た圧縮データを出力させる。
Further, when Pm ≠ Pm-1, it is determined whether or not the stored content of the same pattern detection holding unit indicates Pm-1 = Pm-2, and Pm-1 = Pm-2 is inserted. In the case shown, the pattern data Pm-1 stored in the data holding unit
And the count value Rc accumulated in the repeat counter are sent to the compressed data generation section, and the compressed data generation section outputs compressed data composed of a series of data consisting of [Pm-1, Pm-1, Rc]. .

また、前記同一パターン検出部の記憶内容の判別結果
が、Pm−1≠Pm−2を差し示している場合、つまり同一
のパターンデータが連続していないときは、データ保持
部に記憶されたPm−1のパターンデータをそのまま圧縮
データ発生部に送り、圧縮データ発生部によってPm−1
のパターンデータを発生させる。こうすれば、大幅な記
憶容量の減少を図ることが出来る。
Further, when the determination result of the storage content of the same pattern detection section indicates that Pm-1 ≠ Pm-2, that is, when the same pattern data is not continuous, the Pm stored in the data holding section is stored. -1 pattern data is sent to the compressed data generation unit as it is, and the compressed data generation unit outputs Pm-1.
Pattern data is generated. This makes it possible to significantly reduce the storage capacity.

〔発明の実施例〕Example of Invention

第1図はこの発明の文字画像データ処理装置の一実施例
を示すブロック接続図であり、カッコ内には、m番目の
パターンPmが入力されたとき各部より出力されるパター
ン又は信号を示す。
FIG. 1 is a block connection diagram showing an embodiment of the character image data processing apparatus of the present invention. In parentheses, the patterns or signals output from the respective parts when the m-th pattern Pm is input are shown.

同図において、30は1つ前のパターンデータPm−1を予
め取り込んで保持するデータ保持部であり、31は現在入
力されているパターンデータPmと、前記データ保持部30
に保持したパターンデータPm−1とを比較し、Pm=Pm−
1のとき、一致している旨の信号(以下単に一致信号と
云う)を出力するデータコンパレータである。
In the figure, reference numeral 30 is a data holding unit which previously fetches and holds the immediately preceding pattern data Pm-1, and 31 is the currently input pattern data Pm and the data holding unit 30.
Is compared with the pattern data Pm−1 held in Pm = Pm−
When it is 1, it is a data comparator that outputs a signal indicating that they match (hereinafter simply referred to as a match signal).

32は後に個々の動作に関連して詳しく述べる各種の制御
を行なう制御部であり、33は同一のパターンデータが連
続して繰り返される回数Rcを計数するリピートカウンタ
(初期値Rc=1)である。
Reference numeral 32 is a control unit for performing various controls which will be described later in detail in relation to each operation, and 33 is a repeat counter (initial value Rc = 1) for counting the number Rc of times when the same pattern data is continuously repeated. .

34は前回のパターンデータの入力のときに、即ち、パタ
ーンデータPm−1がデータ保持部30へ入力されていると
きにデータコンパレータ31が出力する一致信号を保持す
ることにって、前2つのパターンデータPm−1、Pm−2
が同一であったことを記憶し、同一である旨を示す同一
パターン検出信号を出力する同一パターン検出保持部、
35は圧縮データ発生部である。
34 holds the match signal output from the data comparator 31 when the previous pattern data is input, that is, when the pattern data Pm-1 is input to the data holding unit 30, and Pattern data Pm-1, Pm-2
The same pattern detection holding unit that stores that the two are the same, and outputs the same pattern detection signal indicating that they are the same,
Reference numeral 35 is a compressed data generator.

次に、このブロック図に基づいて文字画像データ処理装
置の動作について述べる。
Next, the operation of the character image data processing device will be described based on this block diagram.

パターンデータPmが入力されると、データコンパレー
タ31は、データ保持部30に既に記憶されている1つ前の
パターンデータPm−1と、このパターンデータPmとを比
較する。
When the pattern data Pm is input, the data comparator 31 compares the previous pattern data Pm-1 already stored in the data holding unit 30 with this pattern data Pm.

データコンパレータ31において、Pm=Pm−1と判定さ
れたときは、この判定結果を示す一致信号が制御部32に
供給され、制御部32はこの一致信号に基づいてリピート
カウンタ33を「1」だけ歩進させる。
When the data comparator 31 determines that Pm = Pm−1, a match signal indicating the determination result is supplied to the control unit 32, and the control unit 32 sets the repeat counter 33 to “1” based on the match signal. Step forward.

またこのとき、前記一致信号は、同一パターン検出保持
部34にも供給され、一致していること(Pm=Pm−1)を
保持させる。
Further, at this time, the coincidence signal is also supplied to the same pattern detection / holding unit 34 to hold that they are in agreement (Pm = Pm−1).

Pm≠Pm−1となり、データコンパレータ31からの一致
信号が無くなったとき、即ち、1つ前のパターンデータ
と異なるパターンデータが入力されたとき、制御部32は
同一パターン検出保持部34から供給される同一パターン
検出信号の有無にもとづいて、パターンデータがPm−1
=Pm−2であるか否かを判定する。
When Pm ≠ Pm−1 and the match signal from the data comparator 31 disappears, that is, when pattern data different from the previous pattern data is input, the control unit 32 is supplied from the same pattern detection holding unit 34. Based on the presence / absence of the same pattern detection signal, Pm-1
= Pm-2 is determined.

そして、Pm−1=Pm−2と判定したときには、データ保
持部30に記憶されているパターンデータPm−1と、リピ
ートカウンタ33に累積されたカウント値Rc(≧2)とを
圧縮データ発生部35に供給する。
When it is determined that Pm-1 = Pm-2, the pattern data Pm-1 stored in the data holding unit 30 and the count value Rc (≧ 2) accumulated in the repeat counter 33 are used as the compressed data generation unit. Supply to 35.

圧縮データ発生部35は、前記項によって供給された
データに基づいて、[Pm−1、Pm−1、Rc(≧2)]の
データ列を構成し、それを圧縮データとして出力する。
The compressed data generation unit 35 forms a data string of [Pm-1, Pm-1, Rc (≧ 2)] based on the data supplied by the above term and outputs it as compressed data.

第2図(a)は、上記パターンデータの処理を説明する
パターン列を示し、ここでは第1図に示す入力のパター
ンデータをPAとした場合におけるパターン列41として示
してある。
FIG. 2A shows a pattern string for explaining the processing of the above pattern data, and here it is shown as a pattern string 41 when the input pattern data shown in FIG. 1 is P A.

次に、Pm≠Pm−1で、しかも同一パターン検出保持部
34からの同一パターン検出信号(Pm−1≠Pm−2)がな
いと制御部32が判断した場合には、同一パターンデータ
が繰り返されないのであるから、圧縮データ発生部35は
データ保持部30に記憶されたパターンデータPm−1をそ
のまま出力する。
Next, if Pm ≠ Pm−1, and the same pattern detection holding unit
When the control unit 32 determines that the same pattern detection signal (Pm-1 ≠ Pm-2) from the 34 does not exist, the same pattern data is not repeated, so the compressed data generation unit 35 uses the data holding unit 30. The pattern data Pm-1 stored in is output as it is.

第2図(b)はこのときのパターン列を示し、ここでは
入力のパターンデータをPB、PC、PDとした場合における
パターン列42として示してある。
FIG. 2B shows the pattern string at this time, and here, it is shown as the pattern string 42 when the input pattern data is P B , P C , and P D.

つまり、毎回異なるパターンデータが連続するときは、
これをそのまま並列したパターン列を表記するようにし
ている。
In other words, when different pattern data continues every time,
This is written as it is as a parallel pattern string.

第3図は他の発明の実施例を示すブロック接続図であ
る。
FIG. 3 is a block connection diagram showing another embodiment of the invention.

この実施例において、36は入力されたパターンデータPm
が0であるか否かを判別する0パターン検出部であり、
37は1つ前のパターンデータPm−1が0であったことを
記憶する0パターン検出保持部である。
In this embodiment, 36 is the input pattern data Pm
Is a 0 pattern detection unit that determines whether or not
Reference numeral 37 is a 0 pattern detection holding unit which stores that the pattern data Pm-1 immediately before is 0.

なお、第1図と同一の構成部分には同一符号を付してあ
る。
The same components as those in FIG. 1 are designated by the same reference numerals.

次に、このブロック図について他の発明になる文字画像
データの処理装置の動作を述べる。
Next, the operation of the character image data processing apparatus according to another invention will be described with reference to this block diagram.

パターンデータPmが入力されると、0パターン検出部
36はそれが0か否かを判別する。
When the pattern data Pm is input, the 0 pattern detection unit
36 determines if it is zero.

ここで、Pm=0であれば、0パターン検出保持部37に0
パターン検出信号を送り、0パターン検出保持部37は0
パターンである旨を保持する。
Here, if Pm = 0, 0 is stored in the 0 pattern detection and holding unit 37.
The pattern detection signal is sent, and the 0 pattern detection holding unit 37 sets 0.
Holds that it is a pattern.

データコンパレータ31は、入力されたパターンデータ
Pmとデータ保持部30に記憶されたパターンデータPm−1
との比較を行なう。
The data comparator 31 receives the input pattern data.
Pm and the pattern data Pm-1 stored in the data holding unit 30
Compare with.

Pm=Pm−1のとき、データコンパレータ31からの一致
信号により、制御部32はリピートカウンタ33を「1」歩
進させる。
When Pm = Pm−1, the control unit 32 advances the repeat counter 33 by “1” by the coincidence signal from the data comparator 31.

一方、Pm≠Pm−1となったときには、制御部32は同一
パターン検出保持部34と0パターン検出保持部37の検出
信号を判別し、同一パターン検出保持部34の一致信号
(Pm−1=Pm−2)と、0パターン検出保持部37からの
検出信号(Pm−1=0)が共に出力されているとき、デ
ータ保持部30に記憶されたパターンデータPm−1(=
0)と、リピートカウンタ33のカウンタ値Rc(≧2)を
圧縮データ発生部35に送る。
On the other hand, when Pm ≠ Pm−1, the control unit 32 discriminates the detection signals of the same pattern detection holding unit 34 and the 0 pattern detection holding unit 37, and the coincidence signal of the same pattern detection holding unit 34 (Pm−1 = Pm-2) and the detection signal (Pm-1 = 0) from the 0 pattern detection holding unit 37 are both output, the pattern data Pm-1 (=
0) and the counter value Rc (≧ 2) of the repeat counter 33 are sent to the compressed data generator 35.

圧縮データ発生部35は、[「0」、Rc(≧2)]の圧
縮データを出力する。この圧縮データは第2図(c)の
パターン列43のようになる。
The compressed data generator 35 outputs the compressed data of [“0”, Rc (≧ 2)]. This compressed data becomes like the pattern string 43 in FIG. 2 (c).

また、同一パターン発生部34の一致信号(Pm−1=Pm
−2)が検出されず、0パターン検出保持部37からの検
出信号(Pm−1=0)が出力されているとき、データ保
持部30に記憶されたパターンデータPm−1(=0)と、
これまでのリピートカウンタ33のカウント値Rc(=1)
を圧縮データ発生部35に出力する。
Further, the coincidence signal (Pm-1 = Pm of the same pattern generation unit 34
-2) is not detected and the detection signal (Pm-1 = 0) from the 0 pattern detection holding unit 37 is output, the pattern data Pm-1 (= 0) stored in the data holding unit 30 ,
Count value Rc (= 1) of the repeat counter 33 so far
To the compressed data generation unit 35.

圧縮データ発生部35はこのとき、[「0」、Rc(=
1)]の圧縮データを出力する。
At this time, the compressed data generator 35 [[0], Rc (=
1)] compressed data is output.

一方、0パターン検出部36で0パターンが検出されな
い場合には、第1図で述べた場合と同様の動作を行な
う。
On the other hand, when the 0 pattern is not detected by the 0 pattern detector 36, the same operation as that described in FIG. 1 is performed.

このように他の発明の実施例においては、「0」のパタ
ーンデータが連続してRc回繰り返されるとき、
[「0」、Rc]とデータ圧縮を行なうので、圧縮された
データ列に対して「0」、「0」と連続する圧縮データ
は存在しない。
As described above, in another embodiment of the present invention, when the pattern data of "0" is continuously repeated Rc times,
Since data compression is performed with [“0”, Rc], there is no compressed data that continues with “0” or “0” in the compressed data string.

従って、[「0」、「0」]なる一連の情報をファンク
ションコードとして設定することにより、圧縮データを
元のデータに復元(デコード)する際の制御符号として
使用することが出来るようになる。
Therefore, by setting a series of information "[0", "0"] as the function code, the compressed data can be used as a control code when decompressing (decoding) the original data.

第4図は、第1図又は第3図のブロック図に例示した本
発明を用いてデータ圧縮を行う場合の具体例を示すもの
である。
FIG. 4 shows a specific example in the case of performing data compression using the present invention illustrated in the block diagram of FIG. 1 or FIG.

図において、50はデータ圧縮の対象となる文字画像の全
体像の一例である。
In the figure, reference numeral 50 is an example of an overall image of a character image to be data-compressed.

51は文字画像50の一部を抽出した部分画像であり、例え
ば、左端にビット位置0〜7として示した8ビットから
なるデータが、前記パターンデータとして順次データ保
持部30に供給される。
Reference numeral 51 is a partial image obtained by extracting a part of the character image 50. For example, 8-bit data shown as bit positions 0 to 7 at the left end is sequentially supplied to the data holding unit 30 as the pattern data.

図の下方に示した(a)、(b)、(c)は、データ圧
縮前のパターンデータ、或いはデータ圧縮後のパターン
列を16進数で表現した符号列であり、例えば符号列
(a)は、部分画像51のビット位置4(最下位)〜7
(最上位)から成る4ビット、及び、同じくビット位置
0(最下位)〜3(最上位)から成る4ビットを、交互
に16進数で表現している。
(A), (b) and (c) shown in the lower part of the figure are code strings in which the pattern data before data compression or the pattern string after data compression is expressed in hexadecimal, for example, the code string (a) Is the bit position 4 (least significant) to 7 of the partial image 51.
4 bits consisting of (most significant) and 4 bits consisting of bit positions 0 (least significant) to 3 (most significant) are alternately expressed in hexadecimal.

そこで、無圧縮のパターン列では第4図(a)のように
なるのに対し、第1図の実施例によるデータ圧縮を行な
ったときのパターン列は、第4図(b)のようになり、
更に、第3図の実施例によるデータ圧縮を行なったとき
のパターン列は第4図(c)のようになる。つまり、記
憶容量を大幅に減少できることが判る。
Therefore, while the uncompressed pattern sequence is as shown in FIG. 4 (a), the pattern sequence when the data compression according to the embodiment of FIG. 1 is performed is as shown in FIG. 4 (b). ,
Further, the pattern sequence when the data compression according to the embodiment of FIG. 3 is performed is as shown in FIG. 4 (c). That is, it can be seen that the storage capacity can be significantly reduced.

〔発明の効果〕〔The invention's effect〕

以上説明してきたように、本発明の装置によれば、次の
ような効果が得られる。
As described above, according to the device of the present invention, the following effects can be obtained.

パターンデータPmと同一のデータがRc回連続するとき
は、[Pm、Pm、Rc]と表記し、それ以外についてはその
まま表記することにより、高いデータ圧縮率を得ること
ができる。
When the same data as the pattern data Pm continues Rc times, it is described as [Pm, Pm, Rc] and the other data is described as it is, so that a high data compression rate can be obtained.

[Pm、Pm、Rc]のように、連続して繰り返されるパタ
ーンデータPmを2回表記することにより、連続であるこ
とを示す特別なコードを必要としない。
By writing the pattern data Pm that is continuously repeated twice like [Pm, Pm, Rc], a special code indicating that the data is continuous is not required.

特別なコードを設けないので、例えば、nビットのパ
ターンPmのすべてのビットを用いてパターンデータを表
現することが出来る。
Since no special code is provided, for example, the pattern data can be expressed using all bits of the n-bit pattern Pm.

Pm=0のパターンデータが連続してRc回繰り返される
とき、[「0」、Rc]と表記することにより、更に高い
データ圧縮率が得られ、[「0」、「0」]のデータパ
ターン列を、ファンクションコードとして用いることが
出来る。
When the pattern data of Pm = 0 is repeated Rc times consecutively, a higher data compression rate can be obtained by notating [“0”, Rc], and the data pattern of [“0”, “0”] The column can be used as a function code.

文字画像を構成する全画素毎の記憶用セグメントを設
ける必要が無くなり、回路も簡単であり、記憶装置全体
の小型化、ローコスト化が図れると共に、データの処理
速度が向上し、データ転送時間も少なくて済む。
There is no need to provide a memory segment for every pixel that makes up a character image, the circuit is simple, and the overall size and cost of the memory device can be reduced, and the data processing speed is improved and the data transfer time is reduced. Complete.

この結果、容量が小さな記憶装置でも、高品位の文字画
像を得ることが出来る効果がある。
As a result, a high-quality character image can be obtained even with a storage device having a small capacity.

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

第1図は本発明にかかる画像データ処理装置の一実施例
を示すブロック接続図、第2図は本発明により圧縮した
パターン列を示す説明図、第3図は他の発明の実施例を
示すブロック接続図、第4図は文字画像のデータ圧縮を
実例で示した説明図、第5図は従来の圧縮したパターン
列を示す説明図である。 30……データ保持部 31……データコンパレータ 32……制御部 33……リピートカウンタ 34……同一パターン検出保持部 35……圧縮データ発生部
FIG. 1 is a block connection diagram showing an embodiment of an image data processing apparatus according to the present invention, FIG. 2 is an explanatory view showing a pattern sequence compressed by the present invention, and FIG. 3 shows an embodiment of another invention. FIG. 4 is a block connection diagram, FIG. 4 is an explanatory diagram showing an example of data compression of a character image, and FIG. 5 is an explanatory diagram showing a conventional compressed pattern sequence. 30 …… Data holding unit 31 …… Data comparator 32 …… Control unit 33 …… Repeat counter 34 …… Same pattern detection holding unit 35 …… Compressed data generation unit

───────────────────────────────────────────────────── フロントページの続き 審判の合議体 審判長 酒井 雅英 審判官 柿沢 恵子 審判官 井関 守三 (56)参考文献 特開 昭50−16420(JP,A) 特開 昭58−173791(JP,A) ─────────────────────────────────────────────────── ───Continuation of the front page Judgment panel Judge General Masahide Sakai Judge Keiko Kakizawa Judge Morinzo Iseki (56) References JP 50-16420 (JP, A) JP 58-173791 (JP, A) )

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】nビットから成るパターンデータに分割し
た文字画像データを順次入力しながらデータ圧縮を行な
う文字画像データ圧縮装置であって、 m番目に入力したパターンデータをPmとして、 パターンデータPm−1を保持するデータ保持部30と、 現在入力されているパターンデータPmと、前記データ保
持部30に保持したパターンデータPm−1とを比較し、Pm
=Pm−1のとき一致信号を出力するデータコンパレータ
31と、 同一のパターンデータが連続して繰り返される回数Rcを
計数するリピートカウンタ33と、 パターンデータPm−1が前記データ保持部30へ入力され
ているときに前記データコンパレータ31が出力した一致
信号を保持することによって、前2つのパターンデータ
Pm−1、Pm−2が同一であったことを保持し、同一パタ
ーン検出信号を出力する同一パターン検出保持部34と、 前記データコンパレータ31が出力する一致信号に基づい
て前記リピートカウンタ33を「1」ずつ歩進させると共
に、 前記データコンパレータ31からの一致信号が無くなった
とき、前記同一パターン検出保持部34が出力する同一パ
ターン検出信号の有無に基づいて、下記の第1組又は第
2組のデータの何れかを圧縮データ作成用のデータとし
て出力する制御部32と、 a.データ保持部30に保持されているパターンデータPm−
1と、リピートカウンタ33に累積されたカウント値Rcと
からなる第1組のデータ。 b.データ保持部30に保持されているパターンデータPm−
1のみからなる第2組のデータ。 制御部32から前記第1組のデータが供給された場合には
[Pm−1、Pm−1、Rc]のデータ列を構成しそれを圧縮
データとして出力し、制御部32から前記第2組のデータ
が供給された場合にはPm−1のデータのみを圧縮データ
として出力する圧縮データ発生部35と、 からなる文字画像データ処理装置。
1. A character image data compression apparatus for compressing data while successively inputting character image data divided into n-bit pattern data, wherein the pattern data Pm- is the pattern data Pm- 1 is compared with the pattern data Pm currently input and the pattern data Pm-1 held in the data holding unit 30 are compared, and Pm
Data comparator that outputs a coincidence signal when = Pm-1
31, a repeat counter 33 that counts the number Rc of times when the same pattern data is continuously repeated, and a match signal output from the data comparator 31 when the pattern data Pm-1 is input to the data holding unit 30. By holding the two previous pattern data
The same pattern detection holding unit 34 that holds that Pm-1 and Pm-2 are the same and outputs the same pattern detection signal, and the repeat counter 33 based on the coincidence signal output from the data comparator 31 1 "step by step, and when the coincidence signal from the data comparator 31 disappears, based on the presence / absence of the same pattern detection signal output by the same pattern detection holding unit 34, the following first set or second set Of the pattern data Pm− held in the data holding unit 30 and the control unit 32 that outputs any of the data of the above as compressed data creation data.
The first set of data consisting of 1 and the count value Rc accumulated in the repeat counter 33. b. Pattern data Pm− held in the data holding unit 30
A second set of data consisting of only ones. When the first set of data is supplied from the control unit 32, a data string of [Pm-1, Pm-1, Rc] is formed and output as compressed data, and the second set is output from the control unit 32. And a compressed data generation unit 35 that outputs only Pm-1 data as compressed data, the character image data processing device.
【請求項2】nビットから成るパターンデータに分割し
た文字画像データを順次入力しながらデータ圧縮を行な
う文字画像データ圧縮装置であって、 m番目に入力したパターンデータをPmとして、 パターンデータPm−1を保持するデータ保持部30と、 現在入力されているパターンデータPmと、前記データ保
持部30に保持したパターンデータPm−1とを比較し、Pm
=Pm−1のとき一致信号を出力するデータコンパレータ
31と、 同一のパターンデータが連続して繰り返される回数Rcを
計数するリピートカウンタ33と、 パターンデータPm−1が前記データ保持部30へ入力され
ているときに前記データコンパレータ31が出力した一致
信号を保持することによって、前2つのパターンデータ
Pm−1、Pm−2が同一であったことを保持し、同一パタ
ーン検出信号を出力する同一パターン検出保持部34と、 入力されたパターンデータPmが0であるか否かを判別
し、Pm=0であれば、0パターン検出信号を出力する0
パターン検出部36と、 前記0パターン検出信号を入力することにより、1つ前
のパターンデータPm−1が0であったことを保持する0
パターン検出保持部37と、 前記データコンパレータ31が出力する一致信号に基づい
て前記リピートカウンタ33を「1」ずつ歩進させると共
に、 前記データコンパレータ31からの一致信号が無くなった
とき、前記同一パターン検出保持部34が出力する同一パ
ターン検出信号の有無、並びに、0パターン検出保持部
37が出力する0パターン検出信号の有無、に基づいて、
下記の第1組乃至第4組のデータの何れかを圧縮データ
作成用のデータとして出力する制御部32と、 a.データ保持部30に保持されているパターンデータPm−
1(=0)と、リピートカウンタ33に累積されたカウン
タ値Rc(≧2)とからなる第1組のデータ。 b.データ保持部30に保持されているパターンデータPm−
1(=0)と、リピートカウンタ33に累積されたカウン
タ値Rc(=1)とからなる第2組のデータ。 c.データ保持部30に保持されているパターンデータPm−
1(≠0)と、リピートカウンタ33に累積されたカウン
ト値Rc(≧2)とからなる第3組のデータ。 d.データ保持部30に保持されているパターンデータPm−
1(≠0)のみからなる第4組のデータ。 制御部32から前記第1組のデータが供給された場合には
[「0」、Rc(≧2)]のデータ列を構成し、制御部32
から前記第2組のデータが供給された場合には
[「0」、Rc(=1)]のデータ列を構成し、更に制御
部32から前記第3組のデータが供給された場合には[Pm
−1、Pm−1、Rc(≧2)]のデータ列を構成し、これ
ら構成したデータ列を圧縮データとし、制御部32から前
記第4組のデータが供給された場合にはPm−1のデータ
のみを圧縮データとして出力する圧縮データ発生部35
と、 からなる文字画像データ処理装置。
2. A character image data compression device for compressing data while sequentially inputting character image data divided into pattern data consisting of n bits, wherein pattern data Pm- 1 is compared with the pattern data Pm currently input and the pattern data Pm-1 held in the data holding unit 30 are compared, and Pm
Data comparator that outputs a coincidence signal when = Pm-1
31, a repeat counter 33 that counts the number Rc of times when the same pattern data is continuously repeated, and a match signal output from the data comparator 31 when the pattern data Pm-1 is input to the data holding unit 30. By holding the two previous pattern data
The same pattern detection holding unit 34, which holds that Pm-1 and Pm-2 are the same and outputs the same pattern detection signal, is discriminated whether or not the input pattern data Pm is 0. If = 0, 0 for outputting 0 pattern detection signal
By inputting the pattern detection unit 36 and the 0-pattern detection signal, the pattern data Pm-1 immediately before is held at 0.
Based on the match signal output from the pattern detection holding unit 37 and the data comparator 31, the repeat counter 33 is incremented by "1", and when the match signal from the data comparator 31 disappears, the same pattern detection is performed. Presence / absence of the same pattern detection signal output by the holding unit 34, and 0 pattern detection holding unit
Based on the presence / absence of 0 pattern detection signal output from 37,
A control unit 32 for outputting any of the following first to fourth sets of data as data for creating compressed data, and a. Pattern data Pm− held in the data holding unit 30.
A first set of data consisting of 1 (= 0) and a counter value Rc (≧ 2) accumulated in the repeat counter 33. b. Pattern data Pm− held in the data holding unit 30
A second set of data consisting of 1 (= 0) and the counter value Rc (= 1) accumulated in the repeat counter 33. c. Pattern data Pm− held in the data holding unit 30
A third set of data consisting of 1 (≠ 0) and the count value Rc (≧ 2) accumulated in the repeat counter 33. d. Pattern data Pm- held in the data holding unit 30
A fourth set of data consisting of only 1 (≠ 0). When the first set of data is supplied from the control unit 32, a data string of [“0”, Rc (≧ 2)] is formed, and the control unit 32
When the second set of data is supplied from [1], a data string of [“0”, Rc (= 1)] is formed, and when the third set of data is supplied from the control unit 32, [Pm
-1, Pm-1, Rc (≧ 2)], and these constructed data strings are used as compressed data. If the fourth set of data is supplied from the control unit 32, Pm-1 Compressed data generator 35 that outputs only the data of
And a character image data processing device.
JP59262858A 1984-12-14 1984-12-14 Character image data processor Expired - Lifetime JPH0756589B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59262858A JPH0756589B2 (en) 1984-12-14 1984-12-14 Character image data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59262858A JPH0756589B2 (en) 1984-12-14 1984-12-14 Character image data processor

Publications (2)

Publication Number Publication Date
JPS61141481A JPS61141481A (en) 1986-06-28
JPH0756589B2 true JPH0756589B2 (en) 1995-06-14

Family

ID=17381605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59262858A Expired - Lifetime JPH0756589B2 (en) 1984-12-14 1984-12-14 Character image data processor

Country Status (1)

Country Link
JP (1) JPH0756589B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5016420A (en) * 1973-06-08 1975-02-21

Also Published As

Publication number Publication date
JPS61141481A (en) 1986-06-28

Similar Documents

Publication Publication Date Title
US5838964A (en) Dynamic numeric compression methods
US4441208A (en) Picture information processing and storing device
JPS6035867B2 (en) How to combine variable information and background information
US3686631A (en) Compressed coding of digitized quantities
US3921135A (en) Apparatus and method for memorizing dot patterns in a memory system
JPS5970368A (en) Gray scale image data filter unit
US4139898A (en) Microfilm searching reader
US4972497A (en) Image coding system
JPH0756589B2 (en) Character image data processor
JPH09121170A (en) Method and device for performing compression and restorationof digital picture signal
JPH0818790A (en) Compression system for half tone image
US3970991A (en) Character recognition system
GB1570785A (en) Method for coding facsimile signal
JPH0695727B2 (en) Image data compression device
US6333996B1 (en) Handwriting code processing device enabling reduction in load on processing of handwriting input device and processing method thereof
JPH0974485A (en) Device and method for compression and decoding of binary image having multi-tone
JPS5918229B2 (en) Print control storage device
JP2687926B2 (en) Code decoder
JP2911109B2 (en) Error correction device for digital video equipment using 1-bit erase signal
JP3029863B2 (en) Compressed data decoding device
KR900005901B1 (en) Data processes method for character picture
JPS6132867B2 (en)
KR100279594B1 (en) How to enlarge and reduce binary image
JP2502869B2 (en) Character font data encoding processing method
JPH0411907B2 (en)