JPS6282724A - Redundancy suppression coding system - Google Patents

Redundancy suppression coding system

Info

Publication number
JPS6282724A
JPS6282724A JP22177485A JP22177485A JPS6282724A JP S6282724 A JPS6282724 A JP S6282724A JP 22177485 A JP22177485 A JP 22177485A JP 22177485 A JP22177485 A JP 22177485A JP S6282724 A JPS6282724 A JP S6282724A
Authority
JP
Japan
Prior art keywords
run
encoding
binary
binary signal
run length
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
JP22177485A
Other languages
Japanese (ja)
Inventor
Masafumi Wataya
雅文 綿谷
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP22177485A priority Critical patent/JPS6282724A/en
Publication of JPS6282724A publication Critical patent/JPS6282724A/en
Pending legal-status Critical Current

Links

Landscapes

  • Error Detection And Correction (AREA)

Abstract

PURPOSE:To suppress the redundancy of a binary signal with high efficiency by combining the rearrangement depending on bit interleave and the extended run length depending on the extraction of a changing point. CONSTITUTION:The pre-processing section 1 for a run length coding section 2 applying, e.g., the MH coding consists of a bit interleave reconstitution section 3 rearranging a binary picture data 4 by a prescribed period of bit interleave and obtaining a binary signal string 5 and a change point extracting section 6 converting the logical change and no-change of the binary signal string 5 rearranged further as a new binary value into a binary signal string 13. The run length coding section 2 uses a '0' run '1' run sharing section 7 so as to share the binary signal string 13 into '0' run and '1' run and run length coding sections 8, 9 apply run length coding to them respectively. Thus, the '1' run length is shortened and the '0' run length is lengthened to give expectation to high compression of the coding processing.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は例えばz値化された画像信号の如き2値信萼の
冗長度を抑圧する冗長度抑圧符号化方式%式% [従来の技術] z値画像信号に代表される2値信号の冗長度抑圧符号化
方式においては、元の2値信号列よりも統計的性質の偏
りの大きな信号列を得る事と、そのようにして得られた
信号列を簡単な符号化によって、高い圧縮比を得ること
が大きな課題である。統計的性質の偏りの大きな信号列
においては、同じ論理値を持つ連続長がより長くなるか
ら、例えばランレングス符号化を行えば、いわゆるエン
トロピーが減り、極めて高い圧縮比が得られるからであ
る。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a redundancy suppression coding method for suppressing the redundancy of a binary signal such as a z-valued image signal [Prior art] ] In the redundancy suppression coding method for binary signals such as z-value image signals, it is necessary to obtain a signal sequence with greater bias in statistical properties than the original binary signal sequence, and to A major challenge is to obtain a high compression ratio by simply encoding the signal sequence. This is because in a signal sequence with large statistical bias, the length of consecutive sequences having the same logical value becomes longer, so if run-length encoding is performed, for example, so-called entropy is reduced and an extremely high compression ratio can be obtained.

ところが、画像通信、特にファクシミリ通信の分野での
符号化法、例えばCCITTが勧告するMH(モディフ
ァイド・ハフマン)符号化、及びMR(モディファイド
READ)符号化、MMR(モディファイド、モディフ
ァイドREAD)符号化等はファクシミリだけでなく、
電子ファイル等にも使用されているのは周知の事である
が、これらの符号化法は、文字等の文書情報には木質的
に“白″ランが多い事に着目して、かかる画像信号の伝
送を前提としたものである。一方、一般の文書画像に加
え、写真等の中間調画像の2値画像については、例えば
ディザ法等により2値化した疑似中間調画像が考えられ
る。しかし、疑似中間調画像は面積階調法により階調性
を出すものである事から、その性質上印字ドツト(“黒
”)は分散する事になる。即ち、疑似中間長両像は、元
の中間調画像よりも短いrラン長」が増える事となり、
このままでは符号化に不都合である。
However, encoding methods in the field of image communications, especially facsimile communications, such as MH (Modified Huffman) encoding, MR (Modified READ) encoding, and MMR (Modified, Modified READ) encoding recommended by CCITT, are Not only facsimile,
It is well known that these encoding methods are also used for electronic files, etc., but these encoding methods focus on the fact that there are many "white" runs in document information such as characters, and are used to encode such image signals. This is based on the premise of transmission. On the other hand, in addition to general document images, binary images such as halftone images such as photographs may be pseudo halftone images that are binarized using a dither method or the like. However, since the pseudo-halftone image produces gradation using the area gradation method, the printed dots ("black") will be dispersed due to its nature. In other words, the pseudo-intermediate-length image has an increased r-run length, which is shorter than the original halftone image.
This is inconvenient for encoding.

この事情を第2図(a)、(b)及び第3図(a)、(
b)を用いて説明する。第2図(a)及び(b)のマト
リックスは閾値マトリックス、特にドツト集中型のディ
ザマトリックスを示す。
This situation is illustrated in Figure 2 (a), (b) and Figure 3 (a), (
This will be explained using b). The matrices of FIGS. 2(a) and 2(b) represent threshold matrices, particularly dot-concentrated dither matrices.

第3図(5L)の実線は第2図(b)の第1列目の閾値
変化を表わす、このような閾値に対して図の点線のよう
な中間調画像が入力すると、第3図(b)に示されたよ
うな離散的な分布をもつ疑似中間調画像信号が得られる
。このように“白″゛黒”がバラバラになると、ランレ
ングス符号化では圧縮率が低下するのに説明を要しない
であろう、又、この様な疑似中間調画像に対してMH符
号化等を行うと、高能率な抑圧が望めないばかりか、逆
にデータ量が増加する場合があった。
The solid line in FIG. 3 (5L) represents the threshold change in the first column in FIG. A pseudo-halftone image signal having a discrete distribution as shown in b) is obtained. If "white" and "black" become disjointed in this way, the compression rate will decrease in run-length encoding, so no explanation is needed. Not only is it not possible to achieve highly efficient suppression, but the amount of data may actually increase.

従来、上記問題を解消する手段として、ビットインタリ
ーブ法が知られている。ビットインタリーブ法では、互
いに近接した閾値に対応する画素をグループ化し、複数
系列のビットパターンへ変換し、或いは同一の閾値のも
の同志をグループ化して複数系列のビットパターンへ変
換し、それぞれのビットパターンに対しMH符号化を行
っているが、大幅な効率化は望めないものであった。
Conventionally, a bit interleaving method has been known as a means to solve the above problem. In the bit interleaving method, pixels corresponding to threshold values that are close to each other are grouped and converted into multiple series of bit patterns, or pixels with the same threshold are grouped and converted to multiple series of bit patterns, and each bit pattern is MH encoding has been applied to the data, but it has not been possible to expect a significant increase in efficiency.

[発明の目的] 本発明は上述従来例の欠点に鑑みなされたものでその目
的は、高い効率で2値信号の冗長度を抑圧する冗長度抑
圧符号化方式を提案する事にある。
[Object of the Invention] The present invention was made in view of the drawbacks of the above-mentioned conventional examples, and its purpose is to propose a redundancy suppression coding method that suppresses the redundancy of a binary signal with high efficiency.

E問題点を解決するための手段] 上記問題点を解決するために、2値信号の一例である2
値画像データの冗長度を抑圧するのに適用されたところ
の第1図に示す実施例の冗長度抑圧符号化方式は、例え
ばMH符号化を行うランレングス符号化部2のための前
処理として、z値画像データ4を所定の周期のビットイ
ンタリーブにて並べ換えて2値信号列5を得るビットイ
ンターリーブ再構成部3と、更にこの並べ換えられた2
値信号列5の論理値の変化及び非変化を新たなz値とす
る2値信号列13に変換するための変化点抽出部6とか
らなる前処理部1を有す。
Means for Solving Problem E] In order to solve the above problem, 2, which is an example of a binary signal,
The redundancy reduction encoding method of the embodiment shown in FIG. 1, which is applied to suppress the redundancy of value image data, can be used as preprocessing for the run-length encoding unit 2 that performs MH encoding, for example. , a bit interleave reconstruction unit 3 which rearranges the z-value image data 4 by bit interleaving at a predetermined period to obtain a binary signal sequence 5,
The preprocessing unit 1 includes a change point extracting unit 6 for converting a value signal sequence 5 into a binary signal sequence 13 in which changes and non-changes in logical values are used as new z values.

[作用] 上記の構成の下で、入力の2値画像データ4が例えば第
3図(b)の示した如き中間調画像をディザ法で面積変
調したものであれば、先ずビットインタリーブ再構成部
3により、白又は黒の偏りの大きな2値信号列5が得ら
れる。その理由は、ディザマトリクスが例えば第2図(
b)のような4×4であれば、ディザ処理後の画像デー
タには第3図(b)のような周期性が含まれるので、4
ビツト毎のビットインタリーブにより2値信号列5には
白又は黒が偏在し、白ラン長、及び黒ラン長が長くなる
なるからである。
[Operation] Under the above configuration, if the input binary image data 4 is a halftone image area-modulated by the dither method as shown in FIG. 3, a binary signal sequence 5 with a large white or black bias is obtained. The reason for this is that the dither matrix is, for example, shown in Figure 2 (
If the image data is 4×4 as shown in b), the image data after dither processing will include periodicity as shown in Figure 3(b), so
This is because white or black is unevenly distributed in the binary signal string 5 due to bit-by-bit interleaving, and the white run length and black run length become long.

更に変化点抽出部6により、変化点抽出によるz値化、
例えば、信号列5の論理値変化点を“l”とし、その他
の無変化点を“O11とするz値化をすれば、論理値“
l”は上記変化点のみとなる。そうすると、“0”ラン
が更に増えるので、ランレングス符号化部2によるラン
レングス符号化が効率的となり、高いデータ圧縮率が得
られる。ランレングス符号化部2では例えば、2値信号
列13を“O”ラン“1”ラン振り分は部7により0”
ランと“1”ランとに振り分け、夫々をランレングス符
号化部8,9によりランレングス符号化する。
Furthermore, the changing point extracting unit 6 performs z-value conversion by extracting changing points,
For example, if the logic value change point of signal string 5 is set to "l" and the other no-change points are converted to z value as "O11", the logic value "
l" will be only the above-mentioned change points. Then, the number of "0" runs will further increase, so run-length encoding by the run-length encoding unit 2 will be efficient, and a high data compression rate can be obtained.Run-length encoding unit 2, for example, the binary signal string 13 is assigned an "O" run and a "1" run is set to 0 by the unit 7.
They are divided into runs and "1" runs, and run-length encoded by run-length encoders 8 and 9, respectively.

[実施例] 以下添付図面を参照しながら本発明に係る実施例を更に
詳細に説明する。実施例は前述の如く、前処理部1と、
符号化部2との組合せからなる。
[Examples] Examples according to the present invention will be described in further detail below with reference to the accompanying drawings. As mentioned above, the embodiment includes the preprocessing section 1,
It consists of a combination with an encoding section 2.

前処理部lはビットインタリーブ再構成部3と、変化点
抽出部6からなる。又符号化部2は後述する符号化法の
違いによりその内部構成を異にする(第9図と第11図
)。先ず前処理部1について説明しよう。
The preprocessing section 1 consists of a bit interleave reconstruction section 3 and a change point extraction section 6. Furthermore, the internal configuration of the encoding unit 2 differs depending on the encoding method described later (FIGS. 9 and 11). First, let us explain the preprocessing section 1.

くビットインタリーブ再構成部〉 第4図(a)及び(b)更に第5図(a)〜(C)、第
6図を用いて、ビットインタリーブの手法を説明する。
Bit Interleaving Reconfiguration Unit> The bit interleaving method will be described with reference to FIGS. 4(a) and 4(b), FIGS. 5(a) to 5(C), and FIG. 6.

第4図(a)は例えば第2図(a)又は(b)のディザ
マトリックスにより2値化された原画像データ4であっ
て、主走査方向へ400画素副走査方向へ4画素分の大
きさを持つものを示す0図に付された番号は主走査方向
には画素の番号を、副走査方向にラインの番号を便宜上
付したものである。この画像データ4は4ビツト周期の
周期性をもつ、前述したように、このようなディザ画像
は中間調を表現するにはすぐれるが、ラン長が短くなっ
てしまっているのは図をみても明らかである。この画像
データ4に対して4ビツトのインタリーブを行うと、第
4図(a)の1.2,3,4.・・・の画素配列が第4
図(b)の如き1,5,9,13,17.・・・なる配
列となり、“白”ラン及び“黒”ラン長が増加している
のがわかる。4ビツトとしたのは、閾値処理に用いたデ
ィザマトリックスが4ビツトであるからであるが、上記
ビットインタリーブはディザマトリックスと同一の長さ
で行った。このようなビットインタリーブ長の決定の他
に、マトリックスの大きさの整数倍又は整数分の1の大
きさに設定する事もできれば、又は閾値マトリックス内
の近似した値をもつ閾値に対応した周期でグループ化す
る手法もある。
FIG. 4(a) shows original image data 4 that has been binarized using the dither matrix shown in FIG. For convenience, the numbers attached to the 0 diagrams indicating those having the same characteristics are the pixel numbers in the main scanning direction and the line numbers in the sub-scanning direction. This image data 4 has a periodicity of 4 bits.As mentioned above, such a dithered image is excellent for expressing halftones, but as shown in the figure, the run length is short. is also clear. When 4-bit interleaving is performed on this image data 4, 1.2, 3, 4. The pixel array of ... is the fourth
1, 5, 9, 13, 17 as shown in figure (b). ..., and it can be seen that the "white" run length and "black" run length are increasing. The reason for using 4 bits is that the dither matrix used for threshold processing is 4 bits, but the above bit interleaving was performed with the same length as the dither matrix. In addition to determining the bit interleaving length in this way, it can also be set to an integer multiple or fraction of the size of the matrix, or with a period corresponding to a threshold with an approximate value in the threshold matrix. There is also a method of grouping.

さてこのようなビットインタリーブを行う回路を第6図
に示す、第6図のビットインタリーブ再構成部3は、2
値画像データ4の並べ換えるために2つのラインメモリ
40.41を用いる。2つ用いるのは2値画像データ4
の入力と並べ換え動作と並べ換えられた信号列5を読み
出す動作とを同時に行うためである0則ち、1つのライ
ンメモリに入力(書込み)するときは、他方のラインメ
モリは出力(読み出し)に使われる。1つのラインメモ
リが同時に書込みと読出しに使われるのを防ぐために、
書込み用のアドレスカウンタ25と、読み出し用のアド
レスカウンタ26と、これらカウンタ25.26の出力
を各ラインメモリ40.41に振り分けるセレクタ27
,28,29.30,31.32及び排他制御を行うラ
インメモリ制御部42等がある。ラインメモリ制御部4
2は1ライン毎に発生するBD信号38に同期して第2
ラインメモリ書込み信号36又は第1ラインメモリ書込
み信号37を交互に“°1”とする、又セレクタ27,
28.31は、第2ラインメモリ書込み信号36又は第
1ラインメモリ書込み信号37の論理値に応じて出力を
選択するセレクタであり、一方、セレクタ29,30.
32は同じく、第2ラインメモリ書込み信号36又は第
1ラインメモリ書込み信号37の論理値に応じて入力を
選択するものである。このようにすると、第1ラインメ
モリ書込み信号37が“1”のどきは、第2ラインメモ
リ書込み信号36は“O”であり、セレクタ27は出力
“0”を、セレクタ29は入力“ONを、セレクタ31
は出力“θ″を選ぶために2値画像データ4が第1ライ
ンメモリ40に書き込まれ、一方読み出しアドレスカウ
ンタ26の出力はセレクタ28及びセレクタ30により
第2ラインメモリ41に入力し、セレクタ32は第2ラ
インメモリ41を選ぶ。こうして書込みと読み出しの同
時処理が行え、高速化に寄与する。
Now, a circuit for performing such bit interleaving is shown in FIG. 6. The bit interleaving reconfiguring unit 3 in FIG.
Two line memories 40 and 41 are used to rearrange the value image data 4. The two used are binary image data 4
In other words, when inputting (writing) to one line memory, the other line memory is used for outputting (reading). be exposed. To prevent one line memory from being used for writing and reading at the same time,
An address counter 25 for writing, an address counter 26 for reading, and a selector 27 that distributes the outputs of these counters 25.26 to each line memory 40.41.
, 28, 29, 30, 31, 32, and a line memory control unit 42 that performs exclusive control. Line memory control unit 4
2 is a second signal in synchronization with the BD signal 38 generated for each line.
The line memory write signal 36 or the first line memory write signal 37 is set to "°1" alternately, and the selector 27,
28, 31 are selectors that select an output according to the logical value of the second line memory write signal 36 or the first line memory write signal 37; on the other hand, selectors 29, 30 .
32 similarly selects an input according to the logical value of the second line memory write signal 36 or the first line memory write signal 37. In this way, when the first line memory write signal 37 is "1", the second line memory write signal 36 is "O", the selector 27 outputs "0", and the selector 29 inputs "ON". , selector 31
In order to select the output "θ", binary image data 4 is written to the first line memory 40, while the output of the read address counter 26 is input to the second line memory 41 by the selector 28 and the selector 30, and the selector 32 Select the second line memory 41. In this way, simultaneous writing and reading processing can be performed, contributing to increased speed.

各アドレスカウンタ25.26のアドレス発生方法を第
5図に示す、ラインメモリの容量を例えば第5図(a)
に示す如<000〜FFFとする。書込みアドレスカウ
ンタ25は第5図(b)の如く、OOOからFFFまで
のシーケンシャルに昇順に増やせばよい、又、読み出し
アドレスカウンタ26は第5図(C)のようにする。読
み出しカウンタ26のこのようなアドレス発生回路は、
例えば書込みアドレスカウンタ25と同一なカウンタと
、オフセット用の“1 ”〜″4″の出力のカウンタと
、加算器とを用いれば容易に構成できる。尚1本実施例
のBD信号38は本冗長度抑圧符号化方式を例えばレー
ザビームプリンタ等に適用すればビームデテクト信号を
用い、ファクシミリ等に適用すれば水平同期信号を用い
るものである。
The address generation method for each address counter 25 and 26 is shown in FIG. 5. The capacity of the line memory is shown in FIG. 5(a), for example.
As shown in <000 to FFF. The write address counter 25 may be incremented sequentially in ascending order from OOO to FFF as shown in FIG. 5(b), and the read address counter 26 may be increased as shown in FIG. 5(C). Such an address generation circuit of the read counter 26 is as follows.
For example, it can be easily configured by using a counter identical to the write address counter 25, a counter with an output of "1" to "4" for offset, and an adder. The BD signal 38 of this embodiment uses a beam detect signal if the present redundancy suppression encoding method is applied to, for example, a laser beam printer, or uses a horizontal synchronization signal if applied to a facsimile or the like.

又、アドレスカウンタ25.26及びラインメモリ40
.41の駆動クロックは同期クロック35である。この
同期クロック35は符号化部2で生成されるもので、符
号化部2での符号化の際に、信号列があるパターンのと
きは強制的に所定のコードを挿入する必要が生じ、その
場合、その強制挿入コードを合成部10が送出し終るま
で、ピットインタリーグ再構成部3の動作を停止するた
めに用いられる(詳しくは後述する)。
In addition, address counters 25 and 26 and line memory 40
.. The driving clock 41 is the synchronous clock 35. This synchronized clock 35 is generated by the encoding unit 2. When encoding in the encoding unit 2, if the signal sequence has a certain pattern, it becomes necessary to forcibly insert a predetermined code. In this case, it is used to stop the operation of the pit interleague reconstruction unit 3 until the synthesis unit 10 finishes sending out the forced insertion code (details will be described later).

く変化点抽出〉 第7図(b)に変化点抽出のための回路の一例□を、同
図(a)にその結果を示す、第7図(b)の変化点抽出
部6の一例は主走査方向に1画素隣接する画素同士の間
の変化点を抽出する場合である。1つ隣接する画素を検
出するためにフリップフロップ2を用い、変化点を検出
するためEX−ORゲート(排他論理和ゲート)21を
用いる。
Figure 7 (b) shows an example of a circuit for extracting a change point, and Figure 7 (a) shows the result. This is a case of extracting a change point between pixels adjacent to each other by one pixel in the main scanning direction. A flip-flop 2 is used to detect one adjacent pixel, and an EX-OR gate (exclusive OR gate) 21 is used to detect a change point.

4ビツトインタリーブをかけた信号列5に対し、注目画
素と同一走査線にあるその直前の画素とEX−ORをと
る。即ち、第2図(a)の閾値Dijに画素を対応させ
れば、 D xij = D ij  ■ I)1−+*jであ
る。第4図(b)と第7図(a)を比較してもわかるよ
うに、“O“ラン(このような°゛O”ランを°白”ラ
ンということもある)が長くなっていて、ランレングス
符号化に適する事が一目瞭然である。
The 4-bit interleaved signal string 5 is subjected to EX-OR with the pixel immediately preceding the pixel on the same scanning line as the pixel of interest. That is, if pixels are made to correspond to the threshold value Dij shown in FIG. 2(a), D xij = D ij ■ I)1-+*j. As can be seen by comparing Figure 4 (b) and Figure 7 (a), the "O" run (such °゛O" run is also called °white run) is longer. , it is obvious that it is suitable for run-length encoding.

以上、冗長度抑圧符号化のための前処理について説明し
た。そこで、次に、符号化部2について、実施例を2つ
説明する。その2つとは、第8図(a)、(b)及び第
11図に示されたところの、各“l”ランと“Onラン
毎に1次元符号化によるランレングス符号化処理を行う
実施例と、第10図(L)〜(C)及び第9図に示され
たブロック切出しを行ってランレングス符号化を行う実
施例である。
The preprocessing for redundancy reduction coding has been described above. Next, two embodiments of the encoding unit 2 will be described. The two are implementations that perform run-length encoding processing using one-dimensional encoding for each "l" run and each "on" run, as shown in FIGS. 8(a), (b) and 11. This is an embodiment in which run-length encoding is performed by cutting out blocks shown in FIGS. 10(L) to 10(C) and FIG. 9.

(ランレングス符号化〉・・・1次元符号化による実施
例 第8図(a)に、第7図(a)の変化点抽出された信号
列13における、40′ランと1”ランとの注目のし方
を示す。尚、図中慣例に従い110 ITを°゛白″“
1″を“黒”と称して表わす。桁数を表示し易いからで
ある。このようなランを例えばMH符号化によって符号
化すると、第8図(b)の如くなる。第8図(a)の第
2ラインは°゛黒“から始まっている。MH符号化法に
おいては、゛白″ランから始める事としている。
(Run-length encoding) Example of one-dimensional encoding FIG. 8(a) shows the difference between the 40' run and the 1'' run in the signal sequence 13 from which the change points in FIG. 7(a) have been extracted. Indicates how to draw attention.Furthermore, according to the convention in the diagram, 110 IT is
1" is expressed as "black" because it is easy to display the number of digits. If such a run is encoded by MH encoding, for example, the result will be as shown in FIG. 8(b). FIG. 8(a) )'s second line starts with ``Black''. The MH encoding method starts with a "white" run.

従って、このような場合“黒”の前に強制的に1つの°
“白′°を挿入する。
Therefore, in such a case, one ° is forced before “black”.
“Insert white ´°.

第9図はかかるランレングス符号化のための回路の一例
である8図中、RL(ランレングス)カウンタ51.セ
レクタ52.”白”MH符号化ROM53等が“O°゛
 (“白パ)ランを符号化して、ラッチ54に符号コー
ドをラッチする。又、RLカウ7タ72 、”黒”M)
(符号化ROM73等が“l°′ (“黒″)ランを符
号化して、ラッチ61に符号コードをラッチする。振り
分は回路71は信号列13の変化(“0°′→″OIt
、′O″→“1”、“1”→“O”、“l”→“1”)
を検出する。RLカウンタ51,72はCLKを駆動ク
ロックとするカウンタで、そのEN(付勢)端子に“1
”が入力すると、カウント可となり、CL(クリア)端
子に“1”が入力するとクリアされる。従って、例えば
RLカウンタ51は、信号列13が“Onである間はカ
ウントし続け、そのカウント値に応じたMH符号コード
をラッチ54に入力する。信号列13が“O”から“l
”に変化すれば、その時のカウント値の符号コードがラ
ッチ54にラッチされ、同時にカウンタ51はクリアさ
れる0合成器62は、“白”符号コードと黒符号コード
を合成してシフトレジスタ63に格納するためのもので
ある。MH符号は可変長であるからこのような合成器が
必要となる。シフトレジスタ63はパラレル−シリアル
変換を行う。
FIG. 9 shows an example of a circuit for such run length encoding. In FIG. 8, the RL (run length) counter 51. Selector 52. The "white" MH encoding ROM 53 etc. encodes the "O°"("whitepar") run, and the latch 54 latches the encoded code. Also, RL cow 7ta 72, "black" M)
(The encoding ROM 73 etc. encodes the "l°'("black") run, and the code is latched in the latch 61. As for distribution, the circuit 71 changes the signal sequence 13 ("0°'→"OIt
,'O''→“1”, “1”→“O”, “l”→“1”)
Detect. The RL counters 51 and 72 are counters that use CLK as a driving clock, and have "1" at their EN (energization) terminals.
” is input, counting becomes possible, and when “1” is input to the CL (clear) terminal, it is cleared. Therefore, for example, the RL counter 51 continues counting while the signal string 13 is “On”, and the count value is A corresponding MH code is input to the latch 54. Signal train 13 changes from “O” to “l”
”, the sign code of the count value at that time is latched in the latch 54, and at the same time the counter 51 is cleared. The 0 synthesizer 62 synthesizes the “white” code and the black code and stores it in the shift register 63. This is for storage.Since the MH code has a variable length, such a synthesizer is necessary.The shift register 63 performs parallel-to-serial conversion.

白“OII挿入部55は、前述したように、各ラインの
先頭(BD信号38が“l”)が“l′′(黒)のとき
に1つの“白”を挿入するためである。このために、A
NDゲート70が開くと、白″O”挿入部55はセレク
タ52に“0”を出力する。こうして、自MH符号化R
OM53は“0”に対するMHコード=“001101
01”を出力する。こうして、白“0”が強制的に挿入
される。尚、クロックコントロール58は前述のビット
インタリーブ部の同期クロック35を生成する回路であ
るが、上記強制挿入のタイミングに、この’00110
101”がシフトレジスタ63から出力され終るまで、
同期クロック35の発生を止める。ラインメモリ40又
は41への入力とシフトレジスタ63からの出力の同期
取りのためである。こうして、第4図(a)の原画像デ
ータ4から、圧縮率の高い圧縮データ12が得られる。
As described above, the white "OII insertion section 55 is for inserting one "white" when the beginning of each line (the BD signal 38 is "l") is "l'' (black). For this purpose, A
When the ND gate 70 opens, the white "O" insertion section 55 outputs "0" to the selector 52. In this way, own MH encoding R
OM53 has MH code for “0” = “001101
01". In this way, white "0" is forcibly inserted. Note that the clock control 58 is a circuit that generates the synchronization clock 35 of the bit interleaving section described above, and at the timing of the above-mentioned forced insertion, This '00110
101'' is output from the shift register 63.
The generation of the synchronous clock 35 is stopped. This is for synchronizing the input to the line memory 40 or 41 and the output from the shift register 63. In this way, compressed data 12 with a high compression ratio is obtained from the original image data 4 shown in FIG. 4(a).

尚、第9図の回路ではMH符号化法が用いられたが、1
次元符号化として、例えばWyle符号等でもよい、又
、1次元符号化に限らず、MR記号、MMR記号のよう
な2次元符号処理にも簡単に応用できる事は明らかであ
ろう、基本的には符号化法を選ばないのである。又更に
、カラー画像について、R,G、B又はY、M、C,B
の夫々に適用可能である。
Note that the MH encoding method was used in the circuit shown in FIG.
For example, Wyle code may be used as the dimensional encoding, and it is obvious that it can be easily applied not only to one-dimensional encoding but also to two-dimensional encoding processing such as MR symbols and MMR symbols. does not choose the encoding method. Furthermore, for color images, R, G, B or Y, M, C, B
It is applicable to each of the following.

次に、符号化処理の他の実施例について説明する。Next, another embodiment of the encoding process will be described.

くランレングス符号化〉・・・ブロック切り出しによる
実施例 本実施例のブロック切出しの手法は次のような事実に基
づく0則ち、信号列5は“白”ランと“黒°”ランのラ
ン長が長い、このような信号列5から変化点を抽出した
信号列13に表われる特徴は次のようである。
Run-length encoding〉... Example using block extraction The block extraction method of this embodiment is based on the following facts. The characteristics appearing in the signal sequence 13 obtained by extracting changing points from such a long signal sequence 5 are as follows.

■:論理値“l”が前後を“O゛に囲まれて孤立的に偏
在する(則ち、“1000 ”となる)確率が高くなる
。これは、′白”ラン、′黒”ランが長ければ、それら
の両端にのみ変化点“1”が発生するからである。
■: There is a high probability that the logical value “l” will be isolated and unevenly distributed surrounded by “O゛” (in other words, it will be “1000”). This is because the “white” run and the “black” run are This is because if the length is long, the change point "1" will occur only at both ends.

■ニ一方、長い“白”ラン中の孤立した“黒”。■ On the other hand, an isolated "black" in a long "white" run.

及び長い黒”ラン中の孤立した°゛白″その変化点を捕
えると、“1100”となる。
And if we catch the change point of the isolated "white" in the long black run, we get "1100".

上記■及び■から、信号列13には“1000”と“1
100”が多く発生する事がわかる。
From ■ and ■ above, signal string 13 has "1000" and "1".
It can be seen that 100" occurs frequently.

この事は第7図(a)をみれば自のずと明らかである。This is obvious when looking at Figure 7(a).

そこで、このように多数発生するパターンに注目して、
所定の符号化を行ってビット長をそのパターン長より短
くすれば、符号化による圧縮率は向上する。
Therefore, we focused on the patterns that occur frequently like this,
If a predetermined encoding is performed to make the bit length shorter than the pattern length, the compression rate by encoding will improve.

本実施例では、この所定の符号化を゛0″ラン中に“l
”が発生すると、その“1”から所定の長さのブロック
を切出して、例えば第10図(b)の例では4ビツト長
のブロックを切出して、前述の“1ooo”、”110
0”に対してそれぞれ、2ビツトの符号゛00”、”o
i”を割当てるというものである。一方、“O+tシラ
ン対してはMH符号化を行う事とする。
In this embodiment, this predetermined encoding is performed during the “0” run.
” occurs, a block of a predetermined length is cut out from that “1”. For example, in the example of FIG. 10(b), a block of 4 bits long is cut out, and
0”, 2-bit codes “00” and “o” respectively.
On the other hand, MH encoding is performed for "O+t silane."

第1θ図(a)はそのブロック切出しの概念を説明する
図である。切出し方法は、14 Q ITシランら新た
に゛lパが発生すると、そこから4ビツトのブロックを
切出すというものである。従って。
FIG. 1.theta.(a) is a diagram explaining the concept of block extraction. The cutting method is to cut out a 4-bit block when a new buffer such as a 14 Q IT silane is generated. Therefore.

その4ビツトパターンは第10図(b)の16通りしか
ない、そこで、第10図(b)の如く、各ブロックパタ
ーンに対して、名称CB+・・・B16)及び割付は符
号を割当てる。ここで、“Onランと上記のブロックが
交互に並ぶようにするために、ブロックの次にすぐブロ
ックが発生するような場合(第1ラインの11番目と1
5番目の間、及び第4ラインの34番目と38番目“の
画素の間)は、強制的に1つの“OIfを挿入する。こ
の“0”はMH符号化されると“00110101″と
なる。更に各ラインの先頭がブロックで始まる場合(第
2ライン)も、同様に1つの°°0”を挿入する。第1
0図(C)は第io図(a)の信号列を第10図(b)
の規則の基づいて符号化した場合を示す、尚、前述の実
施例と同様に第10図(C)中、慣例にならい°゛0”
を“白”と称して示す。
There are only 16 4-bit patterns as shown in FIG. 10(b), so a name CB+...B16) and a code are assigned to each block pattern as shown in FIG. 10(b). Here, in order to make the "On run" and the above blocks line up alternately, if a block occurs immediately after the block (the 11th and 1st line of the 1st line),
between the 5th and 34th and 38th pixels of the fourth line), one OIf is forcibly inserted. When this "0" is MH encoded, it becomes "00110101". Furthermore, when the beginning of each line starts with a block (second line), one °°0" is inserted in the same way.The first
Figure 0 (C) shows the signal train of Figure io (a) in Figure 10 (b).
10(C) shows the case of encoding based on the rules of
is referred to as "white".

第11図にこのような実施例の回路構成図を示す0図中
、第9図に示された実施例の構成要素と実質的に同一で
あるものには同一番号を付す、主な相違点は4ビツトの
ブロック切出し及びブロックの符号化の為の回路である
。4ビツトシフトレジスタ59は信号列13を4ビツト
長保持する。
FIG. 11 shows a circuit configuration diagram of such an embodiment. In FIG. 1, components that are substantially the same as those of the embodiment shown in FIG. 9 are given the same numbers, and major differences are indicated. is a circuit for extracting a 4-bit block and encoding the block. A 4-bit shift register 59 holds the signal string 13 with a length of 4 bits.

4ビツトシフトレジスタ59の出力をブロック符号化R
OM60は第1O図(b)のような規則に従った符号化
を行う、一方、4ビツトカウンタ56は検出器50が、
信号列13の“Q Ifから“l”への変化をとらえて
、その変化から4ビツトタイム後に信号65を付勢する
。このタイミングにブロック符号化ROM60の出力を
ラッチ61にラッチする。
The output of the 4-bit shift register 59 is block encoded R.
The OM 60 performs encoding according to the rules as shown in FIG.
A change in the signal string 13 from "Q If" to "L" is detected, and the signal 65 is activated 4 bit times after the change. At this timing, the output of the block encoding ROM 60 is latched into the latch 61.

ANDゲート57は1つのブロックに続いて、It O
IIプラン入力せずに直ちに“l”の信号が入力したと
き(信号列13が“1′°であり、かつ信号64が°”
 t ” )に、1つの“白パを挿入するためにある。
AND gate 57 follows one block, It O
When the "l" signal is input immediately without inputting the II plan (signal string 13 is "1'°, and signal 64 is "°")
This is to insert one "white pad" into "t").

白°“O”挿入部55、クロックコントロール部58、
ゲート70め役割等は第9図の場合と同様である。こう
して、所定のパターンが発生するとブロック切り出しに
より符号化を行うので、高圧縮化か達成できる。
White “O” insertion part 55, clock control part 58,
The role of gate 70, etc. is the same as in the case of FIG. In this way, when a predetermined pattern occurs, encoding is performed by cutting out blocks, so that high compression can be achieved.

上記の実施例では、ブロック長を4ビツトとしたが、こ
れには何ら限定はなく、回路規模及び原画像データの種
類に応じて決定される。ちなみに、8ビツト長に設定す
ると多少効率が向上する。又更に、′O″ランに対する
MH符号化も符号化のROMテーブルを多少変更するこ
とにより効率が更に向上する。又第9図の実施例と同様
、カラー画像にも適用できれば、符号化法もMH符号化
法に限らず、他の1次元符号化法にも適用できる。
In the above embodiment, the block length is 4 bits, but there is no limitation to this, and it is determined depending on the circuit scale and the type of original image data. Incidentally, setting the length to 8 bits improves efficiency somewhat. Furthermore, the efficiency of MH encoding for the 'O'' run can be further improved by slightly changing the encoding ROM table.Also, if it can be applied to color images as well as the embodiment shown in FIG. It is applicable not only to the MH encoding method but also to other one-dimensional encoding methods.

(実施例の効果〉 以上説明した種々の実施例の効果をまとめると以下のよ
うになる。
(Effects of Examples) The effects of the various examples described above are summarized as follows.

■:2値画像データにビットインタリーブ処理を施すの
で、白ラン及び黒ランがバラバラになったものであって
も、ラン長が復元されて長くなる。
(2): Bit interleaving processing is applied to the binary image data, so even if the white run and black run are separated, the run length is restored and becomes longer.

特に閾値マトリックスによって中間調処理した画像デー
タに有効である。
This is particularly effective for image data that has been subjected to halftone processing using a threshold matrix.

■:ビットインタリーブ処理を施した信号列に対して更
に変化点抽出処理を施すので、”1”のラン調が短く、
“Otlのラン長が長くなり、そのため符号化処理の高
圧縮化が期待できる。結果的には文書画像を対象とした
符号化アルゴリズムをそのまま使用しつつ、疑似中間調
画像を高能率で圧縮できる。
■: Since change point extraction processing is further applied to the signal sequence that has been subjected to bit interleaving processing, the run tone of "1" is short,
“The run length of OTL is longer, so we can expect higher compression in the encoding process.As a result, pseudo-halftone images can be compressed with high efficiency while using the encoding algorithm for document images as is. .

特に、MH符号化等の既存の符号化を行えば従来の回路
にわずかの変更を加えるだけで、高圧縮率の冗長度抑圧
方式が得られる。
In particular, if existing encoding such as MH encoding is used, a redundancy suppression method with a high compression ratio can be obtained with only slight changes to the conventional circuit.

■:前記■の変化点抽出により、所定のパターンをもっ
た信号列(ブロック)が多く発生する。そこで、このパ
ターンを短いビット長のコードに符号化する。又、′0
”ランに対しては従来通りMH符号化等の1次元符号化
を適用して符号化する0則ち、原画像データの種類によ
っては、変化点抽出された信号列には“lO・・・”又
は“1100・・・”が多発するので、このようなブロ
ックを短いビットの符号化により圧縮率を高める事がで
きる。
(2): Due to the change point extraction in (2) above, many signal sequences (blocks) having a predetermined pattern are generated. Therefore, this pattern is encoded into a code with a short bit length. Also, '0
The run is encoded by applying one-dimensional encoding such as MH encoding as before.In other words, depending on the type of original image data, the signal sequence from which the change points are extracted may be encoded by applying one-dimensional encoding such as MH encoding. " or "1100..." occur frequently, so the compression rate can be increased by encoding such blocks with short bits.

[発明の効果] 以上説明したように本発明によると、ビットインタリー
ブによる並べ換えと、変化点の抽出によりラン長を長く
する事との組合せにより、高能率の冗長度抑圧符号化方
式が得られる。
[Effects of the Invention] As described above, according to the present invention, a highly efficient redundancy suppression coding method can be obtained by combining rearrangement by bit interleaving and lengthening the run length by extracting changing points.

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

第1図は本発明に係る実施例の原理構成図、第2図(a
)、(b)は本発明に係る実施例及び従来例に供される
ディザマトリックス図、第3図(a)、(b)は従来例
における中間調処理によるビット分散度が高くなる様子
を説明する図、 第4図(a)、(b)はビットインタリーブの原理を説
明する図。 第5図(a)〜(C)はビットインタリーブのアドレス
生成の原理を説明する図。 第6図はビットインタリーブ再構成部の回路図、 第7図(a)、(b)は変化点抽出部の動作及び回路構
成を説明する図、 第8図(a)、(b)は本発明に係る1実施例の符号化
法の原理を説明する図、 第9図は第8図(a)、(b)に示された動作を実現す
る実施例の回路図、 第10図(1iL)〜(C)は本発明に係る1実施例の
符号化法の原理を説明する図、 第11図は第10図(a)〜(C)に示された動作を実
現する実施例の回路図である。 図中、 1・・・前処理部、2・・・符号化部、3・・・ビット
インタリーブ再構成部、4・・・2値画像データ、5・
・・ビットインタリーブされた信号列、6・・・変化点
抽出部、7・・・0”ラン゛′″1″ラン振り分は部、
8.9・・・ランレングス符号化部、lO・・・合成部
、12・・・冗長度抑圧された2個性号である。 第 (G’)(b) 5図 1−  MJB   5−  瘤σ 二:二   aoq    −σA    tlN3θ
(IQ          (IIと        
 aap(C)
Figure 1 is a principle configuration diagram of an embodiment according to the present invention, and Figure 2 (a
) and (b) are dither matrix diagrams provided for the embodiment according to the present invention and the conventional example, and FIGS. 3 (a) and (b) explain how the degree of bit dispersion increases due to halftone processing in the conventional example. FIGS. 4(a) and 4(b) are diagrams explaining the principle of bit interleaving. FIGS. 5A to 5C are diagrams explaining the principle of bit interleaving address generation. Figure 6 is a circuit diagram of the bit interleave reconfiguration unit, Figures 7 (a) and (b) are diagrams explaining the operation and circuit configuration of the change point extraction unit, and Figures 8 (a) and (b) are the main FIG. 9 is a circuit diagram of an embodiment that realizes the operations shown in FIGS. 8(a) and (b); FIG. 10 (1iL ) to (C) are diagrams explaining the principle of the encoding method of one embodiment of the present invention, and FIG. 11 is a circuit of the embodiment that realizes the operations shown in FIGS. 10(a) to (C). It is a diagram. In the figure, 1... preprocessing unit, 2... encoding unit, 3... bit interleave reconstruction unit, 4... binary image data, 5...
...Bit interleaved signal sequence, 6. Change point extraction section, 7. 0" run, 1" run allocation section,
8.9... Run-length encoding unit, lO... Combining unit, 12... Two-individual code with redundancy suppressed. No. (G') (b) 5Figure 1- MJB 5- Lumpy σ 2:2 aoq -σA tlN3θ
(IQ (II and
aap(C)

Claims (4)

【特許請求の範囲】[Claims] (1)第1の2値信号列を前処理して符号化を行う冗長
度抑圧符号化方式において、該前処理は、前記第1の2
値信号列を所定の周期のビットインタリーブにて並べ換
えて第2の2値信号列とし、更に第2の2値信号列を、
該第2の2値信号列の論理値の変化及び非変化を新たな
2値とする第3の2値信号列に変換する事を特徴とする
冗長度抑圧符号化方式。
(1) In a redundancy reduction coding method in which a first binary signal sequence is preprocessed and encoded, the preprocessing is performed by
The value signal string is rearranged by bit interleaving with a predetermined period to obtain a second binary signal string, and the second binary signal string is
A redundancy suppression coding method characterized by converting changes and non-changes in logical values of the second binary signal string into a third binary signal string as new binary values.
(2)第1の2値信号列は画像信号を閾値マトリックス
で2値化した2値画像信号列である事を特徴とする特許
請求の範囲第1項に記載の冗長度抑圧符号化方式。
(2) The redundancy suppression coding method according to claim 1, wherein the first binary signal sequence is a binary image signal sequence obtained by binarizing an image signal using a threshold matrix.
(3)論理値の変化を、第2の2値信号列の隣接する2
つの2値信号の排他論理和により検出する事を特徴とす
る特許請求の範囲第1項に記載の冗長度抑圧符号化方式
(3) Changes in logical values are calculated by
2. The redundancy suppression coding method according to claim 1, wherein the redundancy reduction coding method is characterized in that detection is performed by exclusive OR of two binary signals.
(4)符号化は1次元符号化である事を特徴とする特許
請求の範囲第1項に記載の冗長度抑圧符号化方式。
(4) The redundancy reduction coding method according to claim 1, wherein the coding is one-dimensional coding.
JP22177485A 1985-10-07 1985-10-07 Redundancy suppression coding system Pending JPS6282724A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22177485A JPS6282724A (en) 1985-10-07 1985-10-07 Redundancy suppression coding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22177485A JPS6282724A (en) 1985-10-07 1985-10-07 Redundancy suppression coding system

Publications (1)

Publication Number Publication Date
JPS6282724A true JPS6282724A (en) 1987-04-16

Family

ID=16771988

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22177485A Pending JPS6282724A (en) 1985-10-07 1985-10-07 Redundancy suppression coding system

Country Status (1)

Country Link
JP (1) JPS6282724A (en)

Similar Documents

Publication Publication Date Title
KR890004438B1 (en) Code of screen information transmission system
JPH0424907B2 (en)
JPS6282723A (en) Redundancy suppression coding system
JP3231800B2 (en) Image encoding apparatus and image encoding method
JPS6149873B2 (en)
JPS6282724A (en) Redundancy suppression coding system
JPS62118642A (en) Redundancy suppression coding system
JPH0789621B2 (en) Encoder
JPH05151349A (en) Image data compressing method and encoding circuit
JPH0789619B2 (en) Encoder
JPS6315575A (en) Redundancy suppression coding system
JP2713298B2 (en) Color image signal decoding device
JPS6367967A (en) Redundancy suppression coding system
JPS6367966A (en) Redundancy suppression coding system
JP2800250B2 (en) Data compression method
JPS6298922A (en) Redundancy suppression coding system
JPS6315535A (en) Redundancy suppression coding system
JPS6367968A (en) Redundancy suppression coding system
JPS6398283A (en) Redundancy suppressing coding system
JP3128874B2 (en) Halftone image encoding method
JPS61136378A (en) Encoding system
JPS6298920A (en) Redundancy suppression coding system
JPS6367969A (en) Redundancy suppression coding system
JPS63123271A (en) Image processing system
JP2800230B2 (en) Data compression method