JPH02179072A - Compression method for binary picture data - Google Patents

Compression method for binary picture data

Info

Publication number
JPH02179072A
JPH02179072A JP63333840A JP33384088A JPH02179072A JP H02179072 A JPH02179072 A JP H02179072A JP 63333840 A JP63333840 A JP 63333840A JP 33384088 A JP33384088 A JP 33384088A JP H02179072 A JPH02179072 A JP H02179072A
Authority
JP
Japan
Prior art keywords
data
code
rearranged
image data
bit
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.)
Pending
Application number
JP63333840A
Other languages
Japanese (ja)
Inventor
Daisuke Nakatani
大輔 中谷
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP63333840A priority Critical patent/JPH02179072A/en
Publication of JPH02179072A publication Critical patent/JPH02179072A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain efficient and high speed compression by rearranging data for kinds of line drawing and dot drawing and coding the data by plural bits each when the binary picture data are rearranged in the unit of picture elements. CONSTITUTION:When the binary picture data are rearranged and coded in the unit of picture elements, a switching means 13 is provided before a coder 7, and if same logical values exist consecutively in the rearranged data code, the data is coded by using a code being the addition of a code based on a consecutive picture element number after the prescribed code. When the same logical value exists consecutively till the tail end of the rearranged data, the data is coded by using a code having the same bit as that of the prescribed code at its head. In the case of the other data, the data is coded by using a code added with a bit different from the head bit of the prescribed code to its head. A switching means 14 is provided after the coder 7 and the data is rearranged so that adjacent picture elements of the binary picture data are arranged.

Description

【発明の詳細な説明】 発明の目的: (産業上の利用分野) この発明は、二値画像データを効率良く高速に圧縮する
ための圧縮方法に関する。
DETAILED DESCRIPTION OF THE INVENTION Object of the Invention: (Industrial Application Field) The present invention relates to a compression method for efficiently and quickly compressing binary image data.

(従来の技術) 画像データは膨大であるため、そのままデータ転送した
りメモリに格納することは極めて効率が悪い。そこで、
例えばファクシミリによる中間調画像や新聞画像のデー
タ伝送では効率良くデータを伝送するために、二値デー
タで中間調を表わす擬似ハーフトーン画像の圧縮技術が
利用されている。従来の圧縮技術には、Mll法(1次
元圧縮法;Modified tluffman Co
ding)やMR法(2次元圧縮法: Modifie
d−READ)がある。
(Prior Art) Since image data is enormous, it is extremely inefficient to transfer the data as it is or store it in memory. Therefore,
For example, in data transmission of halftone images and newspaper images by facsimile, compression techniques for pseudo halftone images that represent halftones using binary data are used in order to efficiently transmit the data. Conventional compression techniques include the Mll method (one-dimensional compression method; Modified tluffman Co.
ding) and MR method (two-dimensional compression method: Modify
d-READ).

(発明が解決しようとする課題) 上述したMll法やMR法では二値画像データを主走査
方向に沿って圧縮するため、主走査方向と副走査方向と
で統計的性質(分解能等)の異なる二値画像データに対
しては圧縮効率か悪いという欠点があった。また、1ビ
ット単位の処理であることから符号化速度が遅く、高速
な圧縮を実現することか困難であった。
(Problems to be Solved by the Invention) In the above-mentioned Mll method and MR method, binary image data is compressed along the main scanning direction, so statistical properties (resolution, etc.) differ between the main scanning direction and the sub-scanning direction. This method has the disadvantage of poor compression efficiency for binary image data. Furthermore, since the processing is done in units of 1 bit, the encoding speed is slow, making it difficult to achieve high-speed compression.

この発明は上述のような事情から成されたものであり、
この発明の目的は、線画および線画等のどのような二値
画像データに対しても効率良く、かつ高速に圧縮するこ
とができる圧縮方法を提供することにある。発明の構成
; (課題を解決するための手段) この発明は、二値画像データを効率良く高速に圧縮する
ための圧縮方法に関するものであり、この発明の上記目
的は、二値画像データを画素単位で並べ換えて符号化す
る場合、前記並べ換えたデータに同一論理値が連続して
有るとぎは所定コードの後に当該連続画素数を基にした
コードを付加したコードで符号化し、前記同一輪理値が
前記並べ換えたデータの最後尾まで連続して有るときは
前記所定コートの先頭ビットと同一のビットを先頭に有
するコードで符号化し、上記以外のデータは前記所定コ
ードの先頭ビットと異なるビットを当該データの先頭に
付加したコードで符号化することによって、さらには前
記二値画像データを画素単位で並へ換える場合、前記二
値画像データの隣接画素が並ぶようにすることによって
達成される。
This invention was made due to the circumstances mentioned above,
An object of the present invention is to provide a compression method that can efficiently and quickly compress any binary image data such as line drawings and line drawings. Structure of the Invention; (Means for Solving the Problems) The present invention relates to a compression method for efficiently and quickly compressing binary image data. When rearranging and encoding in units, if the rearranged data has the same logical value consecutively, it is encoded with a code with a code based on the number of consecutive pixels added after the predetermined code, and the same logical value is If there are consecutively up to the end of the rearranged data, it is encoded with a code having the same bit at the beginning as the first bit of the predetermined code, and for data other than the above, bits different from the first bit of the predetermined code are encoded. This is achieved by encoding with a code added to the beginning of the data, and further, when rearranging the binary image data pixel by pixel, by aligning adjacent pixels of the binary image data.

(作用) この発明の二値画像データの圧縮方法は、二値画像デー
タを白ラン又は黒ランが比較的長く続くように並べ換え
、所定のビット数単位で区切って符号化するようにして
いるので効率良く、かつ高速に圧縮することかできる。
(Function) The binary image data compression method of the present invention rearranges the binary image data so that white runs or black runs continue for a relatively long time, and encodes the data by dividing it into units of a predetermined number of bits. It can be compressed efficiently and at high speed.

(実施例) 第1図は、この発明の二値画像データの圧縮方法を実現
する画像圧縮装置のブロック措成例を示している。
(Embodiment) FIG. 1 shows an example of a block configuration of an image compression apparatus that implements the binary image data compression method of the present invention.

この画像圧縮装置には主要部として並べ換え装置3と、
符号化装置7と、各部の制御を行なうC20等の外部袋
Ullとが設けられている。そして、人力される二値画
像データADは、上記並べ換え装置3及び符号化装置7
により画像圧縮される。
This image compression device includes a sorting device 3 as a main part,
An encoding device 7 and an external bag Ull such as C20 for controlling each part are provided. Then, the human-powered binary image data AD is processed by the rearranging device 3 and the encoding device 7.
The image is compressed by

並べ換え装置3の前段には、二値画像データ八〇を一時
的に格納する人力バッファ1及び2が設けられると共に
、スイッチSwl及びスイッチSW2から成り、入力さ
れる二値画像データADを所定のタイミングでスイッチ
SWIの接点PI又は接点P2を切換えることによって
、人力バッファ1又は2に一値画像データへ〇を書込む
と共に、二値画像データ八〇の書込みが終了した後、ス
イッチSW2の接点P3又は接点P4を切換えることに
よって並べ換え装置3に二値画像データ^Oを入力する
切換手段12が設けられている。又、符号化装置7の前
段には、並べ換えデータNOを一時的に格納するための
中間バッファ5及び6が設けられると共に、スイッチS
W3及びスイッチSW4から成り、並べ換え装置3で処
理された並べ換えデータNOを所定のタイミングでスイ
ッチSW3の接点P5又は接点P6を切換えることによ
って中間バッファ5又は6に書込み、並べ換えデータN
Dの書込みか終了した後、スイッチSW4の接点P7又
はP8を切換えて符号化装置7に並べ換えデータNDを
入力する切換手段13か設けられている。そして、符号
化装置7の後段には、圧縮画像データGOを一時的に格
納する出力バッファ8及び9が設けられると共に、スイ
ッチSW5及びスイッチSW6から成り、符号化装置7
で処理された圧縮画像データGOを所定のタイミングで
スイッチSWSの接点P9又は接点ptoを切換えて出
力バッファ8又は9に圧縮画像データGOを書込むと共
に、一方のバッファのすべてのメモリに圧縮画像データ
か書込まれた後、スイッチSW6の接点pH又は接点P
12を切換えて圧縮画像データGOを読出す切換手段1
4が設けられている。
At the front stage of the sorting device 3, there are provided manual buffers 1 and 2 for temporarily storing the binary image data 80, and the buffers are composed of a switch Swl and a switch SW2. By switching contact PI or contact P2 of switch SWI, 0 is written to the single-value image data in manual buffer 1 or 2, and after writing of binary image data 80 is completed, contact P3 or contact P2 of switch SW2 is changed. A switching means 12 is provided for inputting binary image data ^O to the sorting device 3 by switching the contact P4. In addition, intermediate buffers 5 and 6 for temporarily storing rearranged data NO are provided before the encoding device 7, and a switch S
The rearranged data NO processed by the rearrangement device 3 is written to the intermediate buffer 5 or 6 by switching the contact P5 or the contact P6 of the switch SW3 at a predetermined timing, and the rearranged data NO is written to the intermediate buffer 5 or 6.
A switching means 13 is provided for inputting rearranged data ND to the encoding device 7 by switching the contact P7 or P8 of the switch SW4 after the writing of data D is completed. Output buffers 8 and 9 for temporarily storing the compressed image data GO are provided downstream of the encoding device 7, and are composed of a switch SW5 and a switch SW6.
The compressed image data GO processed in is written to the output buffer 8 or 9 by switching contact P9 or contact PTO of switch SWS at a predetermined timing, and the compressed image data GO is written to all memories of one buffer. is written, the contact pH or contact P of switch SW6
Switching means 1 for reading compressed image data GO by switching 12
4 are provided.

第2図は、並べ換え装置3の一例を示すブロック図であ
り、人力バッファアトレス発生器31から出力されるア
ドレスに従って入力バッファl又は2から二値画像デー
タADが1サブブロック分読出第3図は、符号化装置7
の一例を示すブロック図であり、アドレス発生器71か
ら出力されるアドレスに従って中間バッファ5又は6か
ら並へ換えデータNDが4ビット単位で読出され、ラッ
チ回路72にラッチされるようになっている。ラッチさ
れた並べ換えデータNDは符号化回路シーケンサ73に
より8ピツ1〜に変換された後、データ判定され。
FIG. 2 is a block diagram showing an example of the sorting device 3, in which one sub-block of binary image data AD is read out from the input buffer 1 or 2 according to the address output from the manual buffer address generator 31. is the encoding device 7
This is a block diagram showing an example, in which rearranged data ND is read out in units of 4 bits from intermediate buffer 5 or 6 according to the address output from address generator 71, and is latched by latch circuit 72. . The latched rearranged data ND is converted into 8 bits 1 to 8 bits by the encoding circuit sequencer 73, and then data is determined.

この判定に従ってアドレス発生器71のアドレスの増減
が行なわれるようになっている。また、ラッチされた並
へ換えデータNOは、外部袋M 1. Iにより予め設
定されている変換デープル74に従って符号化され、又
、セレクタ75でセレクトされたアドレス発生器71か
らのアドレスに従って符号化されるようになっている。
According to this determination, the address of the address generator 71 is increased or decreased. Also, the latched exchange data NO is the external bag M1. The data is encoded according to the conversion daple 74 set in advance by I, and according to the address from the address generator 71 selected by the selector 75.

そして、符号化されたデータは、ビット詰め回路76に
より符号化回路シーケンサ73が発生するビット長単位
で詰められ、8ビット揃ったところで圧縮画像データG
Dとして出力バッファ8又は9に書込まれるようになっ
ている。符号化回路シーケンサ73には二値画像データ
の種類別にマイクロプログラムが記述されており、それ
ぞれの符号化が同じハードウェアで行なえるようになっ
ている。
Then, the encoded data is packed by the bit packing circuit 76 in bit length units generated by the coding circuit sequencer 73, and when 8 bits are complete, the compressed image data G
It is written to the output buffer 8 or 9 as D. Microprograms are written in the encoding circuit sequencer 73 for each type of binary image data, so that each type of encoding can be performed by the same hardware.

このような構成において、並べ換え装置3のデータ変換
テーブル33には例えば第5図に示す線画用のデータ又
は線画用のデータが外部装置11によって設定されてい
る。線画用のデータは二値画像データADの各桁のビッ
トをそれらの桁に関係無くまとめて表示(例えば二値画
像デーラダ’ 1010°。
In such a configuration, the data conversion table 33 of the sorting device 3 is set with line drawing data or line drawing data shown in FIG. 5, for example, by the external device 11. Data for line drawing is displayed by grouping the bits of each digit of the binary image data AD regardless of the digits (for example, binary image data ladder' 1010°).

は“0011”と表示)するようにしており、線画用の
データは二値画像データ八〇をそのまま表示するように
している。
is displayed as "0011"), and the line drawing data is displayed as binary image data 80 as is.

並へ換え装置3のアドレス変換テーブル35には例えば
第6図(八)又は((I)に示すデータが外部袋a 1
1によって設定されている。そして、アドレス変換テー
ブル35で変換されたアドレスの番号順(+、1.,2
.・・・・・・、99)に、そのアドレスに対応するデ
ータ変換テーブル33で変換された変換データをバイト
単位で並べ換えて並べ換えデータNDとする。
For example, the data shown in FIG.
It is set by 1. Then, in the numerical order of the addresses converted in the address conversion table 35 (+, 1., 2
.. . . . , 99), the converted data converted by the data conversion table 33 corresponding to the address is rearranged in units of bytes to obtain rearranged data ND.

符号化装置7の変換テーブル74には例えば第7図に示
すデータか外部装置11によって設定されている。4ビ
ットの並べ換えデータはその先頭にビット“0“を付加
した5ビットのコートで符号化し、oooooooo 
(又は+1111111)が連続する場合には1oo(
又は101)の後にその連続が終了した次のバイトカウ
ンタ値をn(後えば6)ビットで書込んで符号化し、残
りの画素全てがO(又は1)である場合にはエンドコー
ト100(又はill、)により符号化する。
For example, the data shown in FIG. 7 is set in the conversion table 74 of the encoding device 7 by the external device 11. The 4-bit rearranged data is encoded with a 5-bit code with a bit “0” added to the beginning, oooooooooo
(or +1111111) is consecutive, 1oo(
or 101), the next byte counter value at which the sequence ends is written and encoded with n (later 6) bits, and if all remaining pixels are O (or 1), the end code is 100 (or 1). ill, ).

上述した並べ換え及び符号化の具体的実施例を第8図及
び第9図に示す。
A concrete example of the above-mentioned rearrangement and encoding is shown in FIGS. 8 and 9.

第8図は第6図(A)に示すデータを、第9図は第6図
([l)に示すデータ?使用した場合について示すもの
であり、二値画像データ八〇が第6図(A)又は(B)
に示ず゛番号順にバイト単位で並べ換えデータNDに並
べ換えられ、第7図に示すデータに従って符号化されて
圧縮画像データGDに圧縮される。第6図(Δ)に示す
データによる並べ換えは通常の一走査方向による並べ換
えであるが、最終的な圧縮画像データを通常の画像デー
タの5割程度にまで圧縮することができる。また、第6
図(B)に示すデータによる並べ換えは画像の連続性を
考慮して隣接画素が並ぶようにした並べ換えであり、最
終的な圧縮画像データを通常の画像データの3割程度に
まで圧縮することができる。従って、このようなデータ
は第6図([1) に限定されるものではなく、例えば
第10図(A)〜(C) に示すようなデータとしても
良い。
Figure 8 shows the data shown in Figure 6 (A), and Figure 9 shows the data shown in Figure 6 ([l)? This shows the case where binary image data 80 is used as shown in Figure 6 (A) or (B).
The data is rearranged into data ND in byte units in numerical order (not shown), encoded in accordance with the data shown in FIG. 7, and compressed into compressed image data GD. The data sorting shown in FIG. 6 (Δ) is a normal sorting according to one scanning direction, but the final compressed image data can be compressed to about 50% of the normal image data. Also, the 6th
The data sorting shown in Figure (B) is a sorting in which adjacent pixels are aligned in consideration of image continuity, and the final compressed image data can be compressed to about 30% of normal image data. can. Therefore, such data is not limited to that shown in FIG. 6 ([1), but may be data as shown in FIGS. 10 (A) to (C), for example.

発明の効果; 以上のようにこの発明の二値画像データの圧縮方法によ
れば、線画用とu4画用との種類別に画像の連続性を考
慮して並べ換え、複数ビットずつまとめて符号化を行な
っているので、線画および線画等のどのような二値画像
データに対しても効率良く、かつ高速に圧縮を施すこと
が可能となる。
Effects of the invention: As described above, according to the method for compressing binary image data of the present invention, it is possible to rearrange images by type for line drawings and for U4 drawings, taking into account the continuity of the images, and to encode multiple bits at a time. Therefore, it is possible to efficiently and quickly compress any binary image data such as line drawings and line drawings.

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

第1図はこの発明の二値画像データの圧縮方法を実現す
る画像圧縮装置のブロック構成例を示す図、第2図及び
第3図はその主要部である並べ換え装置及び符号化装置
のブロック構成例を示す図、第4図は二値画像データに
おけるサブブロックの一例を示す図、第5図、第6図(
A) 、 (B)及び第1θ図(A) 、 C11) 
、 (C1はそれぞれ第2図に示す並べ換え装置の変換
テーブルに設定されるデータ例を示す図、第7図は第3
図に示す符号化装置の変換テーブルに設定されるデータ
例を示す図、第8図及び第9図はそれぞれこの発明方法
を実施した場合の具体例を示す図である。 1.2・・・人力ハッファ、3・・・並べ換え装置、5
.6・・・中間バッファ、7・・・符号化装置、8.9
・・・出カハッファ、11・・・外部装置、31・・・
人力バッファアトレス発生器、:12.72・・・ラッ
ヂ回路、33・・・データ変換テーブル、34・・・サ
ブブロックアドレス発生器、35・・・アドレス変換テ
ーブル、36・・・並べ換え回路シーケンサ、71・・
・アドレス発生器、73・・・符号化回路シーケンサ、
74・・・変換テーブル、75・・・セレクタ、76・
・・ビット詰め回路。 甚 回 甚 回 第 図 茶 図 羊 圀 (A) (,5) (C) 苓 t。 図 手続補正書 (方式) 1、事件の表示 昭和63年特許願第333840号 2、発明の名称 3、補正をする者 事件との関係
FIG. 1 is a diagram showing an example of the block configuration of an image compression device that implements the binary image data compression method of the present invention, and FIGS. 2 and 3 are block configurations of the rearranging device and encoding device, which are the main parts thereof. FIG. 4 is a diagram showing an example of a sub-block in binary image data, FIGS. 5 and 6 (
A), (B) and Fig. 1θ (A), C11)
, (C1 is a diagram showing an example of data set in the conversion table of the sorting device shown in FIG. 2, and FIG.
A diagram showing an example of data set in the conversion table of the encoding device shown in the figure, and FIGS. 8 and 9 are diagrams each showing a specific example when the method of the present invention is implemented. 1.2...Manual Huffer, 3...Sorting device, 5
.. 6... Intermediate buffer, 7... Encoding device, 8.9
...output huffer, 11...external device, 31...
Manual buffer address generator: 12.72... Ledge circuit, 33... Data conversion table, 34... Sub block address generator, 35... Address conversion table, 36... Reordering circuit sequencer , 71...
・Address generator, 73... encoding circuit sequencer,
74... Conversion table, 75... Selector, 76...
...Bit stuffing circuit.甚回甚甜曾涶子楀圀(A) (,5) (C) 蓓t. Drawing procedure amendment (method) 1. Indication of the case 1988 Patent Application No. 333840 2. Title of the invention 3. Person making the amendment Relationship with the case

Claims (1)

【特許請求の範囲】 1、二値画像データに対し1ビットあるいは複数ビット
まとめたデータを1つの画素とし、前記画素単位で並べ
換えて符号化する場合、前記並べ換えたデータに同一論
理値が連続して有るときは所定コードの後に当該連続画
素数を基にしたコードを付加したコードで符号化し、前
記同一論理値が前記並べ換えたデータの最後尾まで連続
して有るときは前記所定コードの先頭ビットと同一のビ
ットを先頭に有するコードで符号化し、上記以外のデー
タは前記所定コードの先頭ビットと異なるビットを当該
データの先頭に付加したコードで符号化するようにした
ことを特徴とする二値画像データの圧縮方法。 2、前記二値画像データを画素単位で並べ換える場合、
前記二値画像データの隣接画素が並ぶようにした請求項
1に記載の二値画像データの圧縮方法。
[Scope of Claims] 1. When one pixel is made up of one bit or a plurality of bits of binary image data, and the data is rearranged and encoded pixel by pixel, the rearranged data has the same logical value consecutively. If there is a code based on the number of continuous pixels after the predetermined code, it is encoded with a code that is added after the predetermined code, and when the same logical value is continuously present up to the end of the rearranged data, the first bit of the predetermined code is encoded. , and data other than the above is encoded with a code that has a bit different from the leading bit of the predetermined code added to the beginning of the data. Image data compression method. 2. When rearranging the binary image data pixel by pixel,
2. The method of compressing binary image data according to claim 1, wherein adjacent pixels of said binary image data are aligned.
JP63333840A 1988-12-28 1988-12-28 Compression method for binary picture data Pending JPH02179072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63333840A JPH02179072A (en) 1988-12-28 1988-12-28 Compression method for binary picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63333840A JPH02179072A (en) 1988-12-28 1988-12-28 Compression method for binary picture data

Publications (1)

Publication Number Publication Date
JPH02179072A true JPH02179072A (en) 1990-07-12

Family

ID=18270531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63333840A Pending JPH02179072A (en) 1988-12-28 1988-12-28 Compression method for binary picture data

Country Status (1)

Country Link
JP (1) JPH02179072A (en)

Similar Documents

Publication Publication Date Title
US4658430A (en) System for rotating binary images
US4316222A (en) Method and apparatus for compression and decompression of digital image data
JPS63208362A (en) Method of converting picture data
US4602383A (en) Image data compression system
JPH08275000A (en) Equipment and method for compressing digital picture data
US4399467A (en) Method and apparatus for image data compression and decompression
JPH0576171U (en) Data compression and data compression dissociation device
US5046122A (en) Image compression device
US7286264B2 (en) None-of-the-above digital halftone compression and decompression
KR930006750B1 (en) Coding appalatus of video data
JPH10271299A (en) Digital copying machine
JPS60154776A (en) Coding and decoding system
JPH02179072A (en) Compression method for binary picture data
JPS6282723A (en) Redundancy suppression coding system
US6556715B1 (en) Method for CCITT compression of image data
JP3011811B2 (en) Decoding device for variable length code of image data
JPS5840989A (en) Coding processing method and transmission controlling method of picture information
JP2800250B2 (en) Data compression method
JP2708253B2 (en) Image data compression method
KR900007566B1 (en) Picture data converting device
JPS6342472B2 (en)
JPH0370268A (en) Data compression system
JPS6188375A (en) Picture data converting device
JPH03236680A (en) Picture data compression system
JPH06225152A (en) Picture encoding system