JPS6365149B2 - - Google Patents

Info

Publication number
JPS6365149B2
JPS6365149B2 JP58095125A JP9512583A JPS6365149B2 JP S6365149 B2 JPS6365149 B2 JP S6365149B2 JP 58095125 A JP58095125 A JP 58095125A JP 9512583 A JP9512583 A JP 9512583A JP S6365149 B2 JPS6365149 B2 JP S6365149B2
Authority
JP
Japan
Prior art keywords
pattern
sub
subpattern
patterns
character
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
JP58095125A
Other languages
Japanese (ja)
Other versions
JPS59222880A (en
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 filed Critical
Priority to JP58095125A priority Critical patent/JPS59222880A/en
Publication of JPS59222880A publication Critical patent/JPS59222880A/en
Publication of JPS6365149B2 publication Critical patent/JPS6365149B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

〔技術分野〕 本発明はドツト・マトリクスで表わされる文字
パターンを圧縮する技術に関する。 〔背景技術〕 コンピユータ・システムの端末装置としてドツ
ト式プリンタあるいはデイスプレイ装置が使用さ
れることが多いが、文字、特に漢字を明瞭に表現
するには少くとも16×16ドツト、好ましくは24×
24ドツトで表示する必要がある。1文字を24×24
ドツト・マトリクスで表わすと8000文字では576
キロバイトになり、大きなメモリ容量を占めるこ
とになる。パーソナル・コンピユータ、ワード・
プロセツサ等の小型コンピユータは内部メモリが
小さいばかりでなく、外部メモリとしてフロツピ
イ・デイスク等の比較的小容量のものを使用する
ため、文字パターンを圧縮符号化してメモリに記
憶し、使用する文字ごとにもとのドツト・マトリ
クスに復元することが提案されている。 漢字パターンをいくつかの画素に分割すると、
各画素の状態はその周囲の画素の状態に対して互
いに独立ではなく、上下左右の画素の間に極めて
強い相関関係がある。このような漢字パターンの
性質を利用した圧縮法が既に幾つか提案されてい
る。 特開昭55−39956号公報には、例えば24×24の
ドツト・マトリクスを2×2のサブマトリクスに
分割し、個々のサブマトリクスに対してその隣り
のサブマトリクスを条件とする出現頻度に基づい
てハフマンの符号化を行えば高い圧縮率が得られ
るが、ハフマン符号化法では1つの基準となるサ
ブパターンに対して16個の符号語からなる1組の
符号が得られるから全部で16通りの異なる符号が
得られ、各事象に与えられる符号は長さに規則性
のない符号となつてしまい、文字パターンの復元
が難しく非常に複雑な復元回路を要することが指
摘されている。 同公報のものは符号の長さに規則性を持たせる
ために、条件となる16通りのサブパターンに対し
て16個の出現頻度に応じた順位と等しい長さをも
つ可変長符号語を割当てることを提案している
が、圧縮率が比較的低いという欠点がある。 〔発明の概要〕 本発明は圧縮率が高く且つ復元の容易な文字パ
ターン圧縮方法を提供することを目的とする。本
発明によると文字パターンは1組の符号により圧
縮符号化され、対照表を参照して復元されるの
で、復元が簡単且つ迅速であり複雑な復元回路を
必要としない。 本発明によるとM行×N列のドツト・マトリク
スで表現される文字パターンをpドツトのサブパ
ターンに分割し、予定の規則で選択される左右又
は上下の1つ又は複数個のサブパターン(こうし
て求められたパターンをそれぞれ以下基準パター
ンと呼ぶ)を条件とする各サブパターンの出現頻
度を対象とする相当数の文字について求め、基準
パターンすべてにわたつて同順位の出現頻度を集
計しその出現頻度分布に基づいて各順位に可変長
符号を割当て、これと同時又は前後して前記基準
パターンのそれぞれを条件とするサブパターンと
前記順位との対照表を作り、前記文字パターンの
各サブパターンをその基準パターンを条件として
前記対照表により関係付けられる前記順位に割当
てられた可変長符号で表わすことにより文字パタ
ーンの圧縮が行なわれる。 すなわち、qを基準パターンのビツト数として
基準パターンをa(0)、a(1)、……a(2q−1)
で表わすと、各基準パターンごとにサブパターン
g(0)、g(1)、……g(2p−1)の出現頻度が得
られるが、これを全基準パターンにわたつて同順
位の出現頻度を集計して合計出現頻度のヒストグ
ラムS(k)を得る。その際、サブパターンの出現頻
度の順位は基準パターンごとに異なるから、基準
パターンaを条件とするサブパターンgと出現頻
度の順位kとの対照表g=T(a、k)を作る。
そして2p個の順位kを出現頻度の高いもの程短い
符号語が割当てられるように可変長符号化する。
圧縮すべきそれぞれの文字パターンの各サブパタ
ーンについて、基準パターンを条件として前記対
照表から出現頻度の順位kを見出し、そのサブパ
ターンをkに割当てられた可変長符号で置換す
る。こうして各文字パターンが圧縮データに変換
される。 このように本発明によると文字パターンは2p
(pはサブパターンのビツト数)の符号語からな
るただ1組の可変長符号で圧縮されるから復元が
簡単で複雑な復元回路を必要としない。また、本
発明によると圧縮はサブパターンの出現頻度の順
位及び出現頻度分布を利用して行なわれるから、
高い圧縮率が達成される。 ハフマン符号化法によるとサブパターンの出現
頻度分布が急な程、高い圧縮率が得られる。従来
のように基準パターンごとにハフマン符号化法を
適用すると全体として符号の長さに規則性がなく
なるほか、出現頻度分布の緩やかな基準パターン
については圧縮率が低くなり全体的な圧縮率が制
約されたが、本発明によるとこれらの問題が解消
する。 〔発明を実施するための最良の形態〕 M行×N列のドツト・パターンで表現される文
字パターンF(m、n)、m=0、1、2、……
M、n=0、1、2、……Nをコンピユータのメ
モリに記憶する場合、通常8個の画素を1バイト
として扱う。圧縮及び復元の処理時間を短くする
ため数ビツトを1組として処理するのが望ましい
が、情報がバイト単位で記憶されているのでその
半分の4ビツトを1単位として選ぶのがよい。 この場合、文字パターンは4ビツトを1サブパ
ターンとする行列G(m、j)、j=0、1、2、
……N/4−1とみなすことができる。例えば第
1図に示す24行と24列の576ビツトからなる漢字
パターンは144個のサブパターンとして扱われる。
注目するサブパターンをG(m、j)とすると、
その上のサブパターンはG(m−1、j)であり、
さらにその上のサブパターンはG(m−2、j)
である。サブパターンG(m、j)を圧縮する際
の基準パターンA(m、j)としてG(m−2、
j)、G(m−1、j)の連続でなる8ビツトを用
いると良好な圧縮率が得られることがわかつた。
A(m、j)のとりうるビツト・パターンは256種
類あり、これをa(0)、a(1)、……a(255)で表
わす。 処理対象である多数の文字について基準パター
ンaのそれぞれを条件とするサブパターンg
(0)、g(1)、……g(15)の出現頻度を求めてヒ
ストグラムH(a、g)を作る。基準パターンa
(i)を条件とするサブパターンg(k)の出現頻度
をαikで表わすとヒストグラムH(a、g)は次
の表1のように表わされる。a(256)は文字パタ
ーンの第1行を処理する際に使用する基準パター
ンであり、すべて1からなる8ビツトである。
[Technical Field] The present invention relates to a technique for compressing a character pattern represented by a dot matrix. [Background Art] Dot-type printers or display devices are often used as terminal devices for computer systems, but in order to clearly express characters, especially kanji, dots of at least 16 x 16 dots, preferably 24 x
Must be displayed in 24 dots. 24×24 for one character
When expressed as a dot matrix, 8000 characters are 576
It will be a kilobyte and will occupy a large amount of memory capacity. personal computer, word
Small computers such as processors not only have small internal memory, but also use relatively small-capacity external memory such as floppy disks, so character patterns are compressed and encoded and stored in memory, and each character is It is proposed to restore the original dot matrix. If you divide the kanji pattern into several pixels,
The state of each pixel is not independent of the states of surrounding pixels, and there is an extremely strong correlation between the pixels on the upper, lower, left, and right sides. Several compression methods have already been proposed that take advantage of the properties of kanji patterns. Japanese Patent Laid-Open No. 55-39956 discloses, for example, that a 24 x 24 dot matrix is divided into 2 x 2 sub-matrices, and each sub-matrix is calculated based on the frequency of appearance based on its neighboring sub-matrix. A high compression rate can be obtained if Huffman encoding is performed using Huffman encoding, but in Huffman encoding, one set of codes consisting of 16 code words is obtained for one reference subpattern, so there are 16 ways in total. It has been pointed out that different codes are obtained, and the code given to each event is a code with no regularity in length, making it difficult to restore the character pattern and requiring a very complicated restoration circuit. In order to maintain regularity in the length of the code, the one in the same publication assigns variable-length code words with lengths equal to the ranks according to the 16 occurrence frequencies to the 16 sub-patterns that serve as conditions. However, the disadvantage is that the compression ratio is relatively low. [Summary of the Invention] An object of the present invention is to provide a character pattern compression method with a high compression rate and easy restoration. According to the present invention, a character pattern is compressed and encoded using a set of codes and restored by referring to a comparison table, so that the restoration is simple and quick and does not require a complicated restoration circuit. According to the present invention, a character pattern expressed by a dot matrix of M rows and N columns is divided into p dot subpatterns, and one or more left and right or top and bottom subpatterns (thus The frequency of occurrence of each sub-pattern is determined for a considerable number of characters, subject to the conditions of each of the determined patterns (hereinafter referred to as reference patterns), and the frequency of occurrence of the same rank across all reference patterns is aggregated and its frequency of occurrence is calculated. A variable-length code is assigned to each rank based on the distribution, and at the same time or before and after this, a comparison table is created between sub-patterns and the ranks that are conditioned on each of the reference patterns, and each sub-pattern of the character pattern is The character pattern is compressed by representing it with a variable length code assigned to the rankings related by the comparison table using the reference pattern as a condition. That is, the reference pattern is a(0), a(1), ...a(2 q -1), where q is the number of bits of the reference pattern.
Expressing this as The frequencies are totaled to obtain a histogram S(k) of the total frequency of appearance. At this time, since the order of appearance frequency of subpatterns differs for each reference pattern, a comparison table g=T(a,k) is created between subpattern g and appearance frequency order k, with reference pattern a as a condition.
Then, the 2 p ranks k are variable-length coded so that shorter code words are assigned to the more frequently appearing words.
For each subpattern of each character pattern to be compressed, a rank k of appearance frequency is found from the comparison table using the reference pattern as a condition, and the subpattern is replaced with the variable length code assigned to k. In this way, each character pattern is converted into compressed data. In this way, according to the present invention, a character pattern is compressed using only one set of variable length codes consisting of 2p code words (p is the number of bits of a subpattern), so decompression is easy and does not require a complicated decompression circuit. do not. Furthermore, according to the present invention, compression is performed using the order of appearance frequency of subpatterns and the appearance frequency distribution.
High compression ratios are achieved. According to the Huffman encoding method, the steeper the frequency distribution of subpatterns, the higher the compression rate can be obtained. If Huffman encoding is applied to each standard pattern as in the past, there will be no regularity in the length of the code as a whole, and the compression rate will be low for standard patterns with a gentle appearance frequency distribution, which will limit the overall compression rate. However, according to the present invention, these problems are solved. [BEST MODE FOR CARRYING OUT THE INVENTION] A character pattern F(m, n) expressed by a dot pattern of M rows and N columns, m=0, 1, 2, . . .
When storing M, n=0, 1, 2, . . . N in a computer memory, eight pixels are usually treated as one byte. In order to shorten the processing time for compression and decompression, it is desirable to process several bits as one set, but since information is stored in bytes, it is better to select half of that, 4 bits, as one unit. In this case, the character pattern is a matrix G(m, j) with 4 bits as one subpattern, j=0, 1, 2,
...It can be considered as N/4-1. For example, the Kanji pattern shown in FIG. 1 consisting of 576 bits in 24 rows and 24 columns is treated as 144 sub-patterns.
Let G(m,j) be the sub-pattern of interest,
The subpattern above it is G(m-1,j),
Furthermore, the subpattern above it is G(m-2,j)
It is. G(m-2,
It has been found that a good compression ratio can be obtained by using 8 bits consisting of consecutive G(m-1, j).
There are 256 types of bit patterns that A(m,j) can take, and these are expressed as a(0), a(1), . . . a(255). A sub-pattern g that has each of the reference pattern a as a condition for a large number of characters to be processed.
A histogram H(a, g) is created by finding the frequency of appearance of (0), g(1), . . . g(15). Reference pattern a
If the appearance frequency of subpattern g(k) subject to condition (i) is expressed by αik, the histogram H(a, g) is expressed as shown in Table 1 below. a(256) is a reference pattern used when processing the first line of the character pattern, and is an 8-bit pattern consisting of all 1s.

【表】 文字パターンの最初の行を処理するとき条件と
すべき基準パターンが存在しない。仮にすべて0
ビツトで構成されるバイトを基準パターンとして
処理すると、最初の行のサブパターンの出現頻度
は実際にすべて0ビツトの基準パターンを条件と
するサブパターンの出現頻度に加算されることに
なり、ヒストグラムH(0、g)のエントロピイ
を増大させ圧縮率を低下させることになる。従つ
て、第1行についてはすべて1からなる8ビツト
を基準パターンとして処理することにする。これ
を表1においてヒストグラムH(256、g)で表わ
してある。第2行目の処理の際には第1行の上に
すべて1からなる行があるものとして処理する。 基準パターンa(0)乃至a(256)について得
られる257組のヒストグラムを同順位の出現頻度
ごとに集計して1組の合計ヒストグラムを作り、
これに基づいて1組の可変長符号を生成する。約
4000個の漢字について表1の出現頻度ヒストグラ
ムH(a、g)を求め出現頻度の大きい順k=0、
1、……15に並べると表2に示すようなヒストグ
ラムh(a、k)が得られる。元のヒストグラム
H(a、g)におけるgの位置と大きさ順ヒスト
グラムh(a、k)における順位kとの対照表g
=T(a、k)は表3のようになる。表3でgの
値はビツト・パターンを10進数で表示してある。
[Table] There is no standard pattern that should be used as a condition when processing the first line of a character pattern. Suppose all 0
If a byte consisting of bits is treated as a reference pattern, the frequency of occurrence of the subpattern in the first row is actually added to the frequency of occurrence of the subpattern conditional on the reference pattern of all 0 bits, and the histogram H This increases the entropy of (0, g) and reduces the compression ratio. Therefore, the first row will be processed using 8 bits consisting of all 1's as a reference pattern. This is represented by histogram H (256, g) in Table 1. When processing the second line, it is assumed that there is a line consisting of all 1's above the first line. 257 sets of histograms obtained for reference patterns a(0) to a(256) are aggregated for each appearance frequency of the same rank to create one set of total histograms,
Based on this, a set of variable length codes is generated. about
Calculate the appearance frequency histogram H(a, g) of Table 1 for 4000 kanji and calculate the order of appearance frequency, k=0,
1,...15, a histogram h(a,k) as shown in Table 2 is obtained. Comparison table g between the position of g in the original histogram H(a, g) and the rank k in the size-ordered histogram h(a, k)
=T(a,k) is as shown in Table 3. In Table 3, the value of g is expressed as a decimal bit pattern.

【表】【table】

【表】【table】

【表】 このように257組のヒストグラムのそれぞれを
大きさの順に配列した後、a(0)からa(256)
にわたつて同順位の出現頻度を足し合せて1つの
ヒストグラムS(k)を作る。S(k)においては出現頻
度を確率に変換して用いるのがよい。すなわち、
表2の各列を足し合わせ確率に変換するとS(k)が
得られる。このS(k)における確率分布に基づいて
k=0、1、……15にそれぞれ可変長符号を割当
てる。可変長符号法にはハフマン符号法及びその
改良ないし変形があるが、S(k)をハフマン符号法
により可変長符号を割当てると表4のようにな
る。
[Table] After arranging each of the 257 histograms in order of size, a(0) to a(256)
One histogram S(k) is created by adding up the frequencies of occurrence of the same rank over the period. In S(k), it is preferable to convert the appearance frequency into a probability and use it. That is,
S(k) is obtained by converting each column of Table 2 into a summation probability. Based on the probability distribution in S(k), variable length codes are assigned to k=0, 1, . . . , 15, respectively. Variable-length coding methods include the Huffman coding method and its improvements or modifications, and when a variable-length code is assigned to S(k) using the Huffman coding method, the results shown in Table 4 are obtained.

【表】【table】

【表】 こうして対照表g=T(a、k)及び表4の可
変長符号が準備された後、個々の文字パターン
は、注目するサブパターンに関しその基準パター
ンaを見出し、対照表g=T(a、k)またはそ
の反転表k=t(a、g)からkを見出し、表4
の可変長符号表からkに割当てられた符号を見出
し、該サブパターンをこの符号で表わすことによ
り圧縮データに変換される。圧縮データからもと
の文字パターンを復元するには、可変長符号を復
号してkを見出し、注目しているサブパターンの
上2つのサブパターンから基準パターンaを見出
し、対照表g=T(a、k)からサブパターンg
を得ればよい。 第1図の文字パターンの場合、最初の行の6個
のサブパターンgはすべて0であるので、6個の
サブパターンについて対照表のa(256)よりそれ
ぞれk=0を得る。表4の符号表によりk=0の
可変長符号は0なので、第1行の6個のサブパタ
ーンは“000000”の6ビツトで表わされる。同様
にして順次、次の行のサブパターンを可変長符号
化する。そう1つのサブパターンの例として17行
9列乃至12列のサブパターンをとると、その基準
パターンは11001100、すなわち10進数表示でa=
204であり、サブパターン1100は10進数表示でg
=12である。対照表のa(204)の行からk=0が
得られ、その可変長符号は0であるから、このサ
ブパターン0で表わされる。このようにして文字
パターンが圧縮データに変換される。この方法に
よると、8000の文字について約50%の圧縮率が得
られる。 以上、最良の実施形態を説明したが、本発明の
方法により文字パターンを圧縮した後、この圧縮
データに周知のランレングス圧縮法を適用するこ
とにより文字パターンを2段階に圧縮するとさら
に高い圧縮率が得られる。ランレングス圧縮法は
たとえば特開昭55−69842号公報に記載されてい
る。 第2図は本発明によつて圧縮された文字パター
ンを復元するための復元装置のブロツク図であ
る。圧縮データはフロツピイ・デイスク等の外部
記憶装置に記憶され、使用するときパーソナル・
コンピユータ又はワードプロセツサの内部メモリ
に読込まれる。また、圧縮データはパーソナル・
コンピユータ又はワードプロセツサ内の読取専用
メモリに記憶されていてもよい。第2図のメモリ
1はこのような圧縮データを記憶する内部メモリ
又は読取専用メモリである。漢字は2バイトの文
字コードで表わされるのが一般的である。文字コ
ードによつて同定される文字の圧縮データがメモ
リ1から読出される。圧縮データはハフマン符号
デコーダ3に1ビツトずつ順次送られ復号されて
kの値がデコーダ3の出力に得られる。kは0か
ら15の値であるから4ビツトで表わされる。 kは参照表5のインデツクス・レジスタ7に送
られ、基準パターンaを条件として参照表5から
対応するサブパターンgを得るのに使用される。
gは4ビツトの出力レジスタ9を経て12段の並列
4ビツトのシフトレジスタ11に送られ、また文
字パターン・メモリに送られて復元文字パターン
の一部分となる。シフトレジスタ11の6段目は
注目するサブパターンの直上のサブパターンを含
み、12段目はさらにその上のサブパターンを含
む。従つて、シフトレジスタ11の6段目の値及
び12段目の値が基準パターンaとしてレジスタ1
3を経てインデツクス・レジスタ7にインプツト
される。こうしてk及びaの値に基づいて参照表
g=T(a、k)よりサブパターンgが得られる。 圧縮データの最初の部分を復号するときは、シ
フトレジスタ11の各段をすべて1にセツトする
ことによりすべて1からなる基準パターンa
(256)がインデツクス・レジスタ7に印加される
ようにすればよい。復号が進むにつれてシフトレ
ジスタ11にサブパターンgが送り込まれ、レジ
スタ13で基準パターンaが形成される。
[Table] After the comparison table g=T(a,k) and the variable length code of Table 4 are prepared in this way, each character pattern finds its reference pattern a with respect to the sub-pattern of interest, and the comparison table g=T Find k from (a, k) or its inversion table k=t(a, g), Table 4
The code assigned to k is found from the variable length code table of , and the subpattern is expressed by this code, thereby converting it into compressed data. To restore the original character pattern from compressed data, decode the variable length code to find k, find the reference pattern a from the top two subpatterns of the subpattern of interest, and create a comparison table g=T( a, k) to subpattern g
All you have to do is get . In the case of the character pattern shown in FIG. 1, all six subpatterns g in the first row are 0, so k=0 is obtained for each of the six subpatterns from a(256) in the comparison table. According to the code table of Table 4, the variable length code for k=0 is 0, so the 6 subpatterns in the first row are represented by 6 bits of "000000". Similarly, the subpatterns in the next row are sequentially variable-length coded. So, if we take a subpattern of 17 rows and 9 columns to 12 columns as an example of one subpattern, the reference pattern is 11001100, that is, in decimal notation a=
204, and the subpattern 1100 is g in decimal notation.
=12. Since k=0 is obtained from row a (204) of the comparison table and its variable length code is 0, it is represented by this subpattern 0. In this way, the character pattern is converted into compressed data. This method yields a compression ratio of about 50% for 8000 characters. Although the best embodiment has been described above, if the character pattern is compressed by the method of the present invention and then compressed in two stages by applying a well-known run-length compression method to this compressed data, an even higher compression rate can be obtained. is obtained. The run-length compression method is described, for example, in Japanese Patent Laid-Open No. 55-69842. FIG. 2 is a block diagram of a restoring device for restoring compressed character patterns according to the present invention. The compressed data is stored on an external storage device such as a floppy disk, and when used it is stored on a personal computer.
read into the internal memory of a computer or word processor. In addition, compressed data is
It may be stored in read-only memory within a computer or word processor. Memory 1 in FIG. 2 is an internal memory or read-only memory for storing such compressed data. Kanji characters are generally represented by 2-byte character codes. Compressed data of the character identified by the character code is read from the memory 1. The compressed data is sequentially sent bit by bit to the Huffman code decoder 3 and decoded, so that the value of k is obtained at the output of the decoder 3. Since k has a value from 0 to 15, it is represented by 4 bits. k is sent to the index register 7 of the look-up table 5 and is used to obtain the corresponding sub-pattern g from the look-up table 5 subject to the reference pattern a.
g is sent through a 4-bit output register 9 to a 12-stage parallel 4-bit shift register 11, and is also sent to a character pattern memory where it becomes part of the restored character pattern. The 6th stage of the shift register 11 includes a subpattern immediately above the subpattern of interest, and the 12th stage further includes a subpattern above it. Therefore, the values of the 6th stage and the 12th stage of the shift register 11 are used as the reference pattern a in the register 1.
3 and input to index register 7. In this way, a subpattern g is obtained from the reference table g=T(a,k) based on the values of k and a. When decoding the first part of compressed data, by setting all stages of the shift register 11 to 1, a reference pattern a consisting of all 1s is created.
(256) may be applied to the index register 7. As decoding progresses, subpattern g is sent to shift register 11, and reference pattern a is formed in register 13.

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

第1図は圧縮すべき文字パターンの一例を示す
図、第2図は文字パターン復元装置のブロツク図
である。
FIG. 1 is a diagram showing an example of a character pattern to be compressed, and FIG. 2 is a block diagram of a character pattern restoring device.

Claims (1)

【特許請求の範囲】 1 M行N列のドツト・マトリクスで表わされる
文字パターンを圧縮するための方法であつて、対
象とする多数の文字について文字パターンを数ド
ツトごとのサブパターンに分割し、各サブパター
ンについて該サブパターンに隣接する1つ又は複
数個のサブパターンからなる基準パターンを条件
とする該サブパターンの出現頻度を求め、基準パ
ターンすべてにわたつて同順位の出現頻度を集計
しその出現頻度分布に基づいて各順位に可変長符
号を割当てるとともに前記基準パターンのそれぞ
れを条件とするサブパターンと前記順位との対照
表を作り、前記文字パターンの各サブパターンを
その基準パターンを条件として前記対照表により
関係付けられる前記順位に割当てられた可変長符
号で表わすことを特徴とする文字パターン圧縮方
法。 2 上記可変長符号はハフマン符号である特許請
求の範囲第1項の方法。 3 上記サブパターンは横又は縦に連続する4ド
ツトである特許請求の範囲第2項の方法。 4 上記基準パターンは注目するサブパターンの
真上のサブパターン及びさらにその上のサブパタ
ーンで構成する特許請求の範囲第3項の方法。
[Claims] 1. A method for compressing a character pattern represented by a dot matrix of M rows and N columns, which divides the character pattern into sub-patterns of several dots for a large number of target characters, For each sub-pattern, find the frequency of appearance of the sub-pattern subject to a reference pattern consisting of one or more sub-patterns adjacent to the sub-pattern, and calculate the frequency of appearance of the same rank across all reference patterns. A variable-length code is assigned to each rank based on the appearance frequency distribution, and a comparison table is created between the sub-patterns and the ranks, each of which is conditioned on each of the reference patterns, and each sub-pattern of the character pattern is determined with each of the reference patterns as a condition. A character pattern compression method characterized in that a character pattern is represented by a variable length code assigned to the rankings related by the comparison table. 2. The method of claim 1, wherein the variable length code is a Huffman code. 3. The method according to claim 2, wherein the sub-pattern is four dots that are continuous horizontally or vertically. 4. The method according to claim 3, wherein the reference pattern is composed of a subpattern directly above the subpattern of interest and a subpattern further above the subpattern.
JP58095125A 1983-05-31 1983-05-31 Character pattern compression Granted JPS59222880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58095125A JPS59222880A (en) 1983-05-31 1983-05-31 Character pattern compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58095125A JPS59222880A (en) 1983-05-31 1983-05-31 Character pattern compression

Publications (2)

Publication Number Publication Date
JPS59222880A JPS59222880A (en) 1984-12-14
JPS6365149B2 true JPS6365149B2 (en) 1988-12-14

Family

ID=14129103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58095125A Granted JPS59222880A (en) 1983-05-31 1983-05-31 Character pattern compression

Country Status (1)

Country Link
JP (1) JPS59222880A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0249260A (en) * 1988-08-10 1990-02-19 Matsushita Electric Ind Co Ltd Cassette loading device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0249260A (en) * 1988-08-10 1990-02-19 Matsushita Electric Ind Co Ltd Cassette loading device

Also Published As

Publication number Publication date
JPS59222880A (en) 1984-12-14

Similar Documents

Publication Publication Date Title
KR100289589B1 (en) Digital signal encoding method, encoding table generation method, encoding apparatus and encoding method
US7079698B2 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
US5801650A (en) Decoding apparatus and method
JP3181809B2 (en) Decompression circuit of compressed code for data compression
KR100287624B1 (en) Image data compression, decompression method and device
RU2154350C2 (en) Method and system of coding, method and system for decoding
US5832037A (en) Method of compressing and expanding data
KR100573527B1 (en) How to compress and restore graphic images
US4382286A (en) Method and apparatus for compressing and decompressing strings of electrical digital data bits
JPS6365149B2 (en)
JP3277425B2 (en) Digital signal encoding method, encoding table generation method, encoding apparatus, and encoding method
JPS6192073A (en) Picture data compression system
JP3673529B2 (en) Image data compression / decompression method and apparatus therefor
JP3127016B2 (en) Data compression and decompression method
US6987891B2 (en) Image display device
JPH11317673A (en) Run length encoding and decoding method therefor
JP2775790B2 (en) Information processing device
JPS6276931A (en) Data compressor
JP2003333339A (en) Image encoding apparatus and image encoding method
JP3442105B2 (en) Data compression and decompression methods
Joung et al. Lossless grayscale image coding by using higher order context modeling and bit-plane decomposition
JPS5946395B2 (en) Character pattern data compression method
JPS61131685A (en) Character pattern compressing method
JPH07255053A (en) Zigzag scanning circuit
JPH02218225A (en) Data compressing method