JPS6281880A - Data compression system - Google Patents
Data compression systemInfo
- Publication number
- JPS6281880A JPS6281880A JP60221201A JP22120185A JPS6281880A JP S6281880 A JPS6281880 A JP S6281880A JP 60221201 A JP60221201 A JP 60221201A JP 22120185 A JP22120185 A JP 22120185A JP S6281880 A JPS6281880 A JP S6281880A
- Authority
- JP
- Japan
- Prior art keywords
- code
- encoding mode
- frequency
- scanning line
- encoding
- 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
Links
Abstract
Description
【発明の詳細な説明】
〔概要]
二次元符号化方式によって画像データを圧縮して送受信
するファクシミリ装置に用いられるデータ圧縮方式であ
って、所定ライン数たとえば1ラインの画像データ毎に
、符号化モートの出現頻度の高い順に短、い符号語を使
用することによって5伝送速度の短縮化を図ったもの。[Detailed Description of the Invention] [Summary] A data compression method used in facsimile machines that compress and transmit/receive image data using a two-dimensional encoding method, which encodes every predetermined number of lines, for example, one line of image data. This method aims to shorten the transmission speed by using short and long code words in the order of mote appearance frequency.
本発明はファクシミリ装置に設けられるデータ圧縮方式
に関するものである。The present invention relates to a data compression method provided in a facsimile machine.
ファクシミリ装置は、二次元旧法がりのある画像を、た
とえば走査によって画素単位に読み取って電気信号に変
換して送受する装置であるが1文書のように黒画素と白
画素とから構成される画像の場合には、走査によって得
られる電気信号は2値信号であり2通常、黒画素または
白画素とくに白画素が連続することが多い。A facsimile machine is a device that reads two-dimensional images pixel by pixel by scanning, converts them into electrical signals, and sends and receives them. In this case, the electrical signal obtained by scanning is a binary signal, and usually black pixels or white pixels, especially white pixels, are often continuous.
このように同し種類の連続する画素の長さくランレング
ス)を符号に置き換えれば、送受するデータ量を大幅に
減少できるわけであり、したがってファクシミリ装置で
は、このような考え方にもとづいて原画像データを符号
化によって圧縮して送受している。In this way, by replacing the length (run length) of consecutive pixels of the same type with a code, the amount of data to be sent and received can be significantly reduced. is compressed by encoding and sent and received.
符号化方式については、1本の走査線に注目して行う一
次元圧縮方式と複数本の走査線長に注目して行う二次元
圧縮方式とがあり、当初は製造者毎に符号化や通信の手
順が異なっていたが、最近ではCCITTの標準の符号
化方式や通信手順を採用するようになり、′!A造者の
異なるファクシミリ装置間での相互通信もできるように
なった。Regarding encoding methods, there are one-dimensional compression methods that focus on a single scanning line, and two-dimensional compression methods that focus on the length of multiple scanning lines. Initially, each manufacturer had different encoding and communication methods. The procedures for '! It has also become possible to communicate with each other between facsimile machines made by different manufacturers.
この際、ファクシミリ装置間の通信速度を更に短縮でき
ることが望まれている。At this time, it is desired that the communication speed between facsimile devices can be further reduced.
従来の二次元符号化方式たとえばCCITTによる標準
の二次元符号化方式は1表1に示すように。Conventional two-dimensional encoding methods, such as the standard two-dimensional encoding method by CCITT, are shown in Table 1.
原画像データの画素間の二次元的関係から2表1に示す
ような9種類の符号化モードを定め、それぞれの符号化
モードに対し常に表示のような符号語を割り当てるもの
である。Nine types of encoding modes as shown in Table 1 are defined based on the two-dimensional relationship between pixels of original image data, and a code word such as "display" is always assigned to each encoding mode.
表1
符号化モード 符号語
パスCP ) 0001
水平(H) 001
垂直(V (01) 1
垂直(VR(11) Oll
垂直(VR(21) 000011垂直(VR(3
1) 0000011垂直(VL(11) 0
10
垂直(VL(2)) 000010垂直CVL(3
1) 0000010〔発明が解決しようとする問
題点〕
前記従来例は、黒画素と白画素との分布が標準的な様相
を示す1ペ一ジ分の画像を読み取った場合の各符号化モ
ードの出現頻度を計数し、各符号化モードに対し出現頻
度が高い順に短いピッI−長の符号語を割り当てたもの
である。Table 1 Encoding mode Code word path CP ) 0001 Horizontal (H) 001 Vertical (V (01) 1 Vertical (VR (11) Oll Vertical (VR (21) 000011 Vertical (VR (3)
1) 0000011 vertical (VL(11) 0
10 Vertical (VL(2)) 000010 Vertical CVL(3
1) 0000010 [Problem to be Solved by the Invention] The conventional example described above has problems in each encoding mode when reading one page of an image in which the distribution of black pixels and white pixels is in a standard manner. The frequency of appearance is counted, and codewords with shorter pitch I-lengths are assigned to each encoding mode in descending order of frequency of appearance.
しかし、走査線単位の出現頻度は必ずしもこの順序どお
りは限らない。例えば、全部が白画素の走査線の符号化
モードは、その直前に全部が白画素ではない走査線があ
る場合には、 p、p、p、・・・・■(0)となって
バスモード(P)が最も多い。However, the appearance frequency of each scanning line is not necessarily in this order. For example, the encoding mode for a scan line with all white pixels is p, p, p, ... ■ (0) if there is a scan line with not all white pixels immediately before it, and the bus is Mode (P) is the most common.
このため、横書き文章等の画像の場合には必ずしも高い
圧縮効率か得られないという問題点があった。For this reason, there is a problem in that high compression efficiency cannot necessarily be obtained for images such as horizontally written text.
すなわち本発明は、データ圧縮効率を従来例以上に高め
、伝送時間を短縮するこ土を目的とするものである。That is, an object of the present invention is to improve data compression efficiency more than the conventional example and to shorten transmission time.
第1図は本発明の原理図であり。 FIG. 1 is a diagram showing the principle of the present invention.
1は走査によって用紙上の画像の読取りをおこなう読取
り部。Reference numeral 1 denotes a reading unit that reads images on paper by scanning.
2は、読取り部1によって得られた原画像データから、
二次元符号化方式による符号化モードを検出する検出部
。2 is from the original image data obtained by the reading unit 1,
A detection unit that detects an encoding mode using a two-dimensional encoding method.
3は、検出部2によって検出される符号化モードの所定
走査線数毎の出現頻度を計数し符号化モードの出現頻度
順の順列によって類別される類型を識別する頻度計数部
。Reference numeral 3 denotes a frequency counting unit that counts the appearance frequency of each predetermined number of scanning lines of the encoding mode detected by the detection unit 2 and identifies the types classified by the permutation of the appearance frequency of the encoding mode.
4は、前記類型毎に、各符号化モードの出現頻度の多い
順にビットaの短い符号語を対応づけた類型別の符号表
を予め作成して記憶する符号表記憶部。Reference numeral 4 denotes a code table storage unit that creates and stores in advance a code table for each type, in which code words with short bits a are associated with each encoding mode in descending order of appearance frequency.
5は、頻度計数部3によって識別された類型に対応する
符号表を符号表記憶部4から選択する符号表選択部。5 is a code table selection unit that selects a code table corresponding to the type identified by the frequency counting unit 3 from the code table storage unit 4;
6は、検出部2において得られた各符号化モードを、符
号表記憶部4に記)、なする符号表のうち。6 is a code table in which each encoding mode obtained in the detection unit 2 is recorded in the code table storage unit 4).
符号表選択部5によって選択された符号表によって符号
化する符号器である。This is an encoder that performs encoding using the code table selected by the code table selection unit 5.
すなわち、所定走査線数たとえば1本の走査線中に含ま
れる符号化モードの出現頻度によって。That is, depending on the frequency of occurrence of encoding modes included in a predetermined number of scan lines, for example, one scan line.
出現頻度の高い符号化モードはど短いビット匡の符号語
が割り当てるられるように符号化し、所定走査線数毎に
圧縮率を最大とすることによって画信号の送信速度の短
縮を図るものである。In the coding mode that appears frequently, coding is performed so that a code word with a short bit size is assigned, and the compression rate is maximized for each predetermined number of scanning lines, thereby reducing the transmission speed of the image signal.
1走査線中の各符号化モードの出現頻度が、たとえば1
表2の(bl Ijに示す値であったとすると。If the appearance frequency of each encoding mode in one scanning line is, for example, 1
Assuming that the values are shown in (bl Ij) in Table 2.
従来例では(C)欄の符号語を使用するため、符号化さ
れた画信号のビット長は775ビツトである。In the conventional example, the code word in column (C) is used, so the bit length of the encoded image signal is 775 bits.
表2
(a) (bl (cl (d)
符号化モード 出現頻度 従来例 本発明パスCP
) 10 0001 0000010
水平(H〕15 001 000010垂直C
VfO)) 25 1 011垂直〔V
L(t)) 30 010 1垂直〔vL
(2)〕’ 10 000010 00000
11垂直(VL(31) 25 000001
0 010垂直(Vl)) 15 011
000011垂直(VI?(2)) 20
000011 0001これに対して本発明の場合に
は、(d)欄の符号語を使用するので、符号化された画
信号のピッI−fjは655ビツトとなり16%以上の
短縮ができる。Table 2 (a) (bl (cl (d)
Encoding mode Appearance frequency Conventional example Invention path CP
) 10 0001 0000010
Horizontal (H) 15 001 000010 Vertical C
VfO)) 25 1 011 Vertical [V
L(t)) 30 010 1 vertical [vL
(2)]' 10 000010 00000
11 vertical (VL(31) 25 000001
0 010 Vertical (Vl)) 15 011
000011 Vertical (VI?(2)) 20
000011 0001 On the other hand, in the case of the present invention, since the code word in column (d) is used, the pitch I-fj of the encoded image signal becomes 655 bits, which can be reduced by more than 16%.
第2図は、ファクシミリ装置に適用した場合の実施例の
構成図であり、第1図原理図と共通する符号のほか。FIG. 2 is a block diagram of an embodiment when applied to a facsimile machine, and includes the same reference numerals as the principle diagram of FIG. 1.
7は、検出部2によって得られた1走査線ふんの符号化
モードを一時記憶するバッファ。A buffer 7 temporarily stores the encoding mode of one scanning line obtained by the detection unit 2.
8は9通信制御その他1各部の制御をおこなう制御部。Reference numeral 8 denotes a control unit that controls communication control of 9 and other parts of 1.
9は変復調装置(MODEM) 。9 is a modem device (MODEM).
10は網制御回路(NCU) 。10 is a network control circuit (NCU).
11は、相手局から送信されてきた画信号の符号化に使
用した符号表の類型を一時記憶するバッファ。Reference numeral 11 denotes a buffer that temporarily stores the type of code table used to encode the image signal transmitted from the partner station.
12は、相手局から送信されたれ画信号を、符号表記憶
部4に記憶する符号表のうち、バッファ11に記憶する
類型に対応する符号表によって復号する復号器。Reference numeral 12 denotes a decoder that decodes the image signal transmitted from the partner station using a code table corresponding to the type stored in the buffer 11 among the code tables stored in the code table storage section 4.
13は復号された画像データを画像として出力するプリ
ンタ。A printer 13 outputs the decoded image data as an image.
14は、送信の際の符号化あるいは受信の際の復号に応
じて、符号表指定部5またはバッファ11のいずれかに
切り換える切換え回路。Reference numeral 14 denotes a switching circuit that switches to either the code table specifying unit 5 or the buffer 11 depending on encoding during transmission or decoding during reception.
また15は、二次元符号化において使用するランレング
スコードを記憶するランレングスコード記憶部である。Further, 15 is a run-length code storage unit that stores run-length codes used in two-dimensional encoding.
送信の際には、読取り部1は原稿上の画像を走査し、検
出部2は得られた原画像データから二次元符号化方式に
よる符号化モードを検出し、検出された符号化モードを
1走査線毎に順序にバッファ7に記憶する。At the time of transmission, the reading unit 1 scans the image on the document, the detection unit 2 detects the encoding mode based on the two-dimensional encoding method from the obtained original image data, and converts the detected encoding mode into 1. The data is stored in the buffer 7 in order for each scanning line.
この間に、頻度計数部3は1走査線毎の画像データから
検出された各符号化モードの出現頻度を計数して類型を
識別し、符号表指定部5は頻度計数部3によて得られた
類型に対応する符号表を符号表記憶部4から選択する。During this time, the frequency counting section 3 counts the appearance frequency of each encoding mode detected from the image data for each scanning line and identifies the type, and the code table specifying section 5 A code table corresponding to the selected type is selected from the code table storage unit 4.
符号器6は、バッファ7に記憶しである符号化モードを
、符号表記憶部4に記憶する符号表のうち、符号表選択
部5によって選択された符号表によって符号化し、符号
化された画信号は第3図のようなデータ形式によって、
1走査線毎に類型の符号を付されて相手側に送信される
。The encoder 6 encodes the encoding mode stored in the buffer 7 using the codebook selected by the codebook selection unit 5 from among the codebooks stored in the codebook storage unit 4, and converts the encoded image into a coded image. The signal is in the data format shown in Figure 3.
Each scanning line is assigned a type code and transmitted to the other party.
受信の際には、同様に1走査線毎に類型の符号を付され
た画信号が相手局から送信されるので。During reception, an image signal with a type code attached to each scanning line is similarly transmitted from the other station.
復号器12は対応する符号表によって符号化画信号を復
号し、復号された画像データはプリンタ13によって出
力される。The decoder 12 decodes the encoded image signal using a corresponding code table, and the decoded image data is output by the printer 13.
第1表に示すように、符号化モードの種類は9種類で符
号語のビット長の種類は5種類である。As shown in Table 1, there are nine types of encoding modes and five types of code word bit lengths.
すなわち、走査線毎に与えられる類型の踵類は全部で、
9個の異なるものの中から5個ずつ取るj1列の数、す
なわち15120種類であり14ビツトの符号によって
表される。In other words, the total number of types of heels given for each scanning line is
The number of j1 columns in which 5 items are selected from each of 9 different items is 15,120 types, and is represented by a 14-bit code.
このため9本発明によると、場合によっては圧縮率が逆
に悪くなることかあり、また符号表記憶部4として大き
な記憶容量を必要とする。しかし。Therefore, according to the present invention, the compression ratio may deteriorate in some cases, and the code table storage unit 4 requires a large storage capacity. but.
符号化モードの中のvl、(3) ・VR(31・VL
(2)およびV R(2+ 。vl in encoding mode, (3) ・VR(31・VL
(2) and V R (2+.
特にVL(3)よびVR(3)の出現頻度は非常に少な
いので。In particular, VL(3) and VR(3) appear very rarely.
これらの符号化モードが含まれる走査線の類型を統合す
る等の方法によって、類型の数を420種類を20種類
に減少することができる。By integrating the scanning line types including these encoding modes, the number of types can be reduced from 420 types to 20 types.
以上説明したように1本発明によればデータ圧縮効率を
従来例以上に高め、伝送時間を短縮することができる。As explained above, according to the present invention, the data compression efficiency can be increased more than the conventional example, and the transmission time can be shortened.
第1図は本発明の原理図。 第2図は実施例の構成図。 第3図は実施例の説明図である。 図中。 1は読取り部、 2は検出部。 3は頻度計数部、 4は符号表記憶部。 FIG. 1 is a diagram showing the principle of the present invention. FIG. 2 is a configuration diagram of the embodiment. FIG. 3 is an explanatory diagram of the embodiment. In the figure. 1 is the reading section, 2 is the detection section. 3 is a frequency counting section, and 4 is a code table storage section.
Claims (1)
よる符号化モードと符号語とを使用して圧縮するデータ
圧縮方式であって、 画像データから検出される符号化モードの所定走査線数
毎の出現頻度を計数し符号化モードの出現頻度順の順列
によって類別される類型を識別する頻度計数部(3)と
、 前記類型毎に各符号化モードの出現頻度の多い順にビッ
ト長の短い符号語を対応づけた類型別の符号表を予め作
成して記憶する符号表記憶部(4)とを備えることを特
徴とするデータ圧縮方式。[Claims] A data compression method that compresses image data obtained by scanning using a two-dimensional encoding method and a code word, the method comprising: a frequency counting unit (3) that counts the appearance frequency for each predetermined number of scanning lines and identifies types categorized by the permutation of the appearance frequency of the coding modes; A data compression method characterized by comprising a code table storage unit (4) that creates and stores in advance a code table for each type in which code words with short bit lengths are associated with each other.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60221201A JPH06101793B2 (en) | 1985-10-04 | 1985-10-04 | Data encoder |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60221201A JPH06101793B2 (en) | 1985-10-04 | 1985-10-04 | Data encoder |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6281880A true JPS6281880A (en) | 1987-04-15 |
| JPH06101793B2 JPH06101793B2 (en) | 1994-12-12 |
Family
ID=16763053
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60221201A Expired - Fee Related JPH06101793B2 (en) | 1985-10-04 | 1985-10-04 | Data encoder |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06101793B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008535319A (en) * | 2005-03-24 | 2008-08-28 | ザクセル システムズ インク | Method and apparatus for lossless data conversion preprocessed by improvements through improved adaptive data compression, multidimensional prediction, and multiple code decoding |
-
1985
- 1985-10-04 JP JP60221201A patent/JPH06101793B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008535319A (en) * | 2005-03-24 | 2008-08-28 | ザクセル システムズ インク | Method and apparatus for lossless data conversion preprocessed by improvements through improved adaptive data compression, multidimensional prediction, and multiple code decoding |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH06101793B2 (en) | 1994-12-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6072906A (en) | Image data processing apparatus | |
| US6052205A (en) | Image data encoding/decoding method and apparatus configured to compress both natural gray scale images and binary images | |
| US4811113A (en) | Image signal encoding method and system | |
| CN1240090A (en) | Data Efficient Quantization Tables for Digital Image Signal Processors | |
| JPH07264417A (en) | Image coding method | |
| US6154568A (en) | Image processing apparatus for processing a bi-level image and method therefor | |
| US4972497A (en) | Image coding system | |
| JPH04270564A (en) | Serial picture data compression system having color information | |
| JPS6281880A (en) | Data compression system | |
| US5185820A (en) | System for compressing image data having blank lines | |
| JP2812064B2 (en) | Image processing device | |
| JPS63279686A (en) | Variable length coding transmission device | |
| US6272256B1 (en) | Fast compression of periodic halftoned bitonal images | |
| JP2925043B2 (en) | Data decompression device | |
| JP3247754B2 (en) | Image transmission device | |
| JPS59117845A (en) | Facsimile storage exchange | |
| JPH05183755A (en) | Data compressing device and data expanding device | |
| JPH03144864A (en) | Medical picture data compression device | |
| JPH044673A (en) | Image data encoding method | |
| JPS59144274A (en) | White line skip type facsimile equipment | |
| JPH041552B2 (en) | ||
| JPS59210769A (en) | encoding device | |
| JPS62108675A (en) | Image data encoding device | |
| JPS63108870A (en) | Facsimile transmission system | |
| JPH09130595A (en) | Facsimile transmission control method and resolution conversion method for mh coding data |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |