JPS6367968A - Redundancy suppression coding system - Google Patents

Redundancy suppression coding system

Info

Publication number
JPS6367968A
JPS6367968A JP61211771A JP21177186A JPS6367968A JP S6367968 A JPS6367968 A JP S6367968A JP 61211771 A JP61211771 A JP 61211771A JP 21177186 A JP21177186 A JP 21177186A JP S6367968 A JPS6367968 A JP S6367968A
Authority
JP
Japan
Prior art keywords
length
encoding
run
code
rows
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
JP61211771A
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 JP61211771A priority Critical patent/JPS6367968A/en
Publication of JPS6367968A publication Critical patent/JPS6367968A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To obtain a signal in which a redundancy is suppressed with a high efficiency by executing a run length coding to a zero block and converting to a prescribed signal code and compressing to a fixed length non-zero block. CONSTITUTION:A run length coding part 11CM suppresses the redundancy to the variable length zero block of four rows by the run length coding and a block coding part 8CM executes the coding such as assigning the signal code of the code length shorter than the fixed length of the block, for instance, to the respective blocks of one row and four columns with respect to the specific pattern of the non-zero block. In a synthesizing part 12CM, the run length code, the four block codes are arranged in a prescribed sequence and synthesized to output a picture data string 13CM.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は例えばカラー2進多値ディザ画像データのよう
な、複数行の2進多値化号の冗長度を抑圧する冗長度抑
圧符号化方式に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to redundancy suppression coding that suppresses the redundancy of a binary multilevel code of multiple lines, such as color binary multilevel dithered image data. It is related to the method.

[従来の技術] 2値画像データに代表される2値信号の冗長度抑圧符号
化方式においては、元の要素列よりも統計的性質の偏り
の大きな信号列を得る事と、そのようにして得られた信
号列を簡単な符号化によって、高い圧縮比を得ることが
大きな課題である。
[Prior Art] In a redundancy suppression coding method for binary signals such as binary image data, it is necessary to obtain a signal sequence with greater bias in statistical properties than the original element sequence, and to A major challenge is to obtain a high compression ratio by simply encoding the obtained signal sequence.

統計的性質の偏りの大きな信号列においては、同じ論理
値を持つ連続長がより長くなるから、例えはランレング
ス符号化を行えば、いわゆるエントロピーが減り、極め
て高い圧縮比が得られるからである。
In a signal sequence with large statistical bias, the length of consecutive sequences with the same logical value becomes longer, so if run-length encoding is performed, so-called entropy is reduced and an extremely high compression ratio can be obtained. .

ところが、画像通信、特にファクシミリ通信の分野での
符号化法、例えばCCITTが勧告するMH(モディフ
ァイド・ハフマン)符号化、及びMR(モディファイド
READ)符号化、MMR(モディファイド、モディフ
ァイドREAD)符号化等はファクシミリだけでなく、
電子ファイル等にも使用されているのは周知の事である
が、これらの符号化法は、文字等の文書情報には本質的
に°“白”ランが多い事に着目して、かかる画像データ
の伝送を前提としたものである。一方、一般の文書画像
に加え、写真等の中間調画像の2値画像については、例
えばディザ法等により2値化した疑似中間調画像が考え
られる。しかし、疑似中間調画像は面積階調法により階
調性を出すものである事から、その性質上印字ドツト(
゛黒°゛)は分散する事になる。即ち、疑似中間調画像
は、元の中間調画像よりも短い「ラン長」が増える事と
なり、このままでは符号化に不都合である。
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 document information such as characters inherently has many "white" runs, and are used to encode such images. This is based on the premise of data 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 pseudo-halftone images produce gradation using the area gradation method, due to their nature, printed dots (
゛Black°゛) will be dispersed. That is, the pseudo halftone image has an increased "run length" which is shorter than the original halftone image, which is inconvenient for encoding if left as is.

この事情を、2進多値デイザの一例として4値デイザに
ついて、第2図(a)〜(c)及び第3図(a)、(b
)を用いて説明する。第2図(a)及び(b)のマトリ
ックスは閾値マトリックス、特にドツト集中型のディザ
マトリックスを示す。同図(C)は、4値デイザにおけ
るドツト(画素)とデータ(2ビツトのパルス幅変調)
との関係を示している。第3図(a)の実線は第2図(
b)の第1行目の閾値変化を表わす。このような閾値に
対して図の点線のような中間調画像が人力すると、第3
図(b)に示されたような離散的な分布をもつ疑似中間
調画像データが得られる。このように゛白°゛゛黒゛°
がバラバラになると、ランレングス符号化では圧縮率が
低下するのに説明を要しないであろう。又、この様な疑
似中間調画像に対してMH符号化等を行うと、高能率な
抑圧が望めないばかりか、逆にデータ量が増加する場合
があった。
This situation is explained in Figure 2 (a) to (c) and Figure 3 (a), (b) for a four-value dither as an example of a binary multi-value dither.
). The matrices of FIGS. 2(a) and 2(b) represent threshold matrices, particularly dot-concentrated dither matrices. Figure (C) shows dots (pixels) and data (2-bit pulse width modulation) in a 4-value dither.
It shows the relationship between The solid line in Figure 3(a) is the same as in Figure 2(
The threshold change in the first row of b) is shown. When a halftone image as shown by the dotted line in the figure is created manually for such a threshold value, the third
Pseudo halftone image data having a discrete distribution as shown in Figure (b) is obtained. Like this ゛white°゛゛゛black゛°
It is self-explanatory that when the numbers become disjointed, the compression rate decreases in run-length encoding. Furthermore, if MH encoding or the like is performed on such a pseudo-halftone image, not only is highly efficient suppression not possible, but the amount of data may 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 multi-line pit patterns, or pixels with the same threshold are grouped and converted into multi-line bit patterns, and each Although MH encoding is performed on the bit pattern, significant efficiency improvements cannot be expected.

一方、上記白/黒画像に比べるとカラー画像の情報量は
3〜4倍と膨大なものであり、又、最近は商品化のため
、1画素当りの情報も2進多値化の傾向にある。従って
、この情報を伝送、又は記憶するには高能率な冗長度抑
圧符号化方式が必要となるのは白/黒画像の比ではない
。しかし、現在カラー画像情報に対する有効な冗長度抑
圧符号化方式が無く、前述の白/黒画像に対する従来方
式を組み合わせたもの、即ち各色の画像データに対して
ピットインタリープ、MH符号化等を行っているのが実
状であり、これではあまり高能率化は望めないものであ
った。
On the other hand, compared to the above-mentioned black and white images, the amount of information in color images is enormous, 3 to 4 times larger, and recently, due to commercialization, the information per pixel has also tended to become binary and multivalued. be. Therefore, it is not the white/black image ratio that requires a highly efficient redundancy reduction coding scheme to transmit or store this information. However, there is currently no effective redundancy suppression coding method for color image information, and a method that combines the conventional methods for black and white images described above, that is, pit interleaving, MH coding, etc., is used for image data of each color. This is the reality, and it is not possible to expect high efficiency.

[発明が解決しようとする問題点コ 上述の特にカラー画像データの問題はそれのみに留まら
ず、とりも直さず複数行で同時に発生する2進多値の要
素列にもあり得る問題である。
[Problems to be Solved by the Invention] The above-mentioned problems, especially those related to color image data, are not limited to only those problems, but can also occur with binary multi-valued element sequences that occur simultaneously in a plurality of rows.

そこで、本発明は上述従来例の欠点に鑑みなされたもの
でその目的は、複数行であって各行の要素が2進多値で
ある要素列の冗長度を、効率よく抑圧する冗長度抑圧符
号化方式を提案する事にある。
SUMMARY OF THE INVENTION The present invention has been devised in view of the drawbacks of the conventional examples described above, and its purpose is to provide a redundancy suppression code that efficiently suppresses the redundancy of an element string that has multiple rows and each row has binary multi-value elements. The objective is to propose a method for converting

[問題点を解決するための手段] 上記課題を達成するための本発明の1つの構成は、M行
の要素列であって各行の1要素が2N値の2進多値デー
タで表わされる要素列の中から、“°0°°でない要素
を少なくとも1つ含み固定長の長さをもつM×N行の固
定長非ゼロブロックと、°′“0”である要素のみを含
むM×N行の可変長ゼロブロックとを切出す切出し手段
と、前記M×N行の可変長ゼロブロックに対してはラン
レングス符号化によりランレングス符号に変換するラン
レングス符号化部と、前記M×N行の固定長非ゼロブロ
ックの各行に対して所定の符号化を行ってM×N個の符
号化コードを生成するブロック符号化部と、前記ランレ
ングス符号と前記所定の符号化コードとを所定の順序で
合成して出力する合成部とからなる。
[Means for Solving the Problems] One configuration of the present invention for achieving the above-mentioned object is an element string of M rows, in which one element in each row is represented by binary multivalued data of 2N values. From among the columns, M×N fixed-length non-zero blocks with a fixed length that include at least one element that is not “°0°°” and M×N that include only elements that are “0”. a cut-out means for cutting out variable-length zero blocks in rows; a run-length encoding unit for converting the M×N rows of variable-length zero blocks into run-length codes by run-length encoding; a block encoding unit that performs predetermined encoding on each row of a fixed-length non-zero block to generate M×N encoded codes; and a synthesis section that synthesizes and outputs the result in the order of .

他の本発明の構成によると、M行の要素列であって各行
の1要素が2N値の2進多値データで表わされるM×N
行の第1の要素列を、行毎に所定の周期のビットインタ
リーブにて並べ換えてM×N行の第2の要素列とし、更
に第2の要素列を、行毎に該第2の要素列の論理値の変
化及び非変化を新たな2値とするM×N行の第3の要素
列に変換する前処理部と、前記M×N行の第3の要素列
の中から、“0”でない要素を少なくとも1つ含み固定
長の長さをもつM×N行の固定長非ゼロブロックと、”
 o ”である要素のみを含むM×N行の可変長ゼロブ
ロックとを切出す切出し手段と、前記M×N行の可変長
ゼロブロックに対してはランレングス符号化によりラン
レングス符号に変換するランレングス符号化部と、前記
M×N行の固定長非セロブロックの各行に対して所定の
符号化を行ってM×N個の符号化コードを生成するブロ
ック符号化部と、前記ランレングス符号と前記所定の符
号化コートとを所定の順序で合成して出力する合成部と
からなる。
According to another configuration of the present invention, the element string is M rows, and one element in each row is represented by M×N binary multi-value data of 2N values.
The first element column of a row is rearranged by bit interleaving at a predetermined period for each row to form a second element column of M×N rows, and the second element column is further rearranged for each row by bit interleaving of a predetermined period. a preprocessing unit that converts changes and non-changes in the logical values of columns into new binary values into M×N rows of third element columns; a fixed-length non-zero block of M×N rows with a fixed length and including at least one non-zero element;
an extraction means for cutting out an M×N row variable-length zero block containing only elements that are “o”; and converting the M×N row variable-length zero block into a run-length code by run-length encoding. a run-length encoding unit; a block encoding unit that performs predetermined encoding on each row of the M×N fixed-length non-cell block to generate M×N encoded codes; It consists of a combining section that combines the code and the predetermined encoding code in a predetermined order and outputs the result.

[作用コ 上記本発明の1つの構成によると、M行の2N値の可変
長ゼロブロックはランレングス符号化によりビット長が
短くされ、固定長非ゼロブロックのM×N個のブロック
については、ブロック符号化によりビット長が短くなる
[Operations] According to one configuration of the present invention described above, variable length zero blocks of M rows of 2N values are shortened in bit length by run-length encoding, and for M×N blocks of fixed length non-zero blocks, Block encoding reduces bit length.

本発明の他の構成によると、前処理部によるビットイン
タリーブ処理と変化点抽出処理により、符号化処理され
る前のデータのラン長が長くなり、符号化による圧縮効
率が」二る。
According to another configuration of the present invention, the bit interleaving process and the change point extraction process performed by the preprocessing section increase the run length of data before being encoded, which reduces the compression efficiency of encoding.

[実施例コ 以下添付図面を参照しつつ本発明に係る実施例を詳細に
説明する。本発明を適用した実施例は、符号化の手法そ
のものに特徴がある実施例と、符号化を行う前段階であ
る前処理及び前記符号化との組合せに特徴がある実施例
等である。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. Embodiments to which the present invention is applied include embodiments characterized by the encoding method itself, and embodiments characterized by the combination of preprocessing, which is a step before encoding, and the encoding.

〈実施例の原理〉 そこで、本発明の概念の概略を簡単に把握するために、
前記前処理及び符号化を組合せたものを4値のカラー画
像データに適用した実施例について、第1図(a)、(
b)を用いて説明する。同図(a)と(b)の実施例の
相違は符号化の相違となって表われる。
<Principle of Examples> Therefore, in order to easily understand the outline of the concept of the present invention,
Regarding an example in which the combination of the preprocessing and encoding described above is applied to quaternary color image data, Fig. 1(a) and (
This will be explained using b). The difference between the embodiments shown in FIGS. 2A and 2B is a difference in encoding.

く第1実施例の概略)・・・第1図(a)先ず、第1図
(a)の実施例から説明する。本実施例に人力される要
素列は、−例としてカラー画像データであって、例えば
4X2 (=a)行のカラ−2値画像データ列(7cu
、 7 CL、  7 ML+。
(Outline of First Embodiment) FIG. 1(a) First, the embodiment of FIG. 1(a) will be explained. The element string manually entered in this embodiment is color image data, for example, a 4×2 (=a) row of color binary image data string (7 cu
, 7 CL, 7 ML+.

7 ML、 7 YU+ 7 YL、 7 KLI+ 
7 KL)である。ここで、Cはシアンを、Mはマゼン
タを、Yはイエローを、Kはブラックを表わし、又、U
は上位ビットを、Lは下位ビットを表わすものとする。
7 ML, 7 YU+ 7 YL, 7 KLI+
7 KL). Here, C represents cyan, M represents magenta, Y represents yellow, K represents black, and U
It is assumed that L represents the upper bit and L represents the lower bit.

一方、本実施例においては、1画素はCMYKの4要素
からなるのであるが、CとMの2つの画像データを1ま
とめにし、YとKの2つの画像データを1まとめにする
。又、1要素は上位(U)、下位(L)の2ビツトであ
り、全体として、4(CMYK)X2 (LIL)行の
要素列となる。又、列というときは主走査方向を言い、
行とは各要素の深さ方向及び各要素列の列に対する直角
方向を言うものとする。第1図(a)に示す符号化は前
記4行の2進画像データを上位、下位の各ビットづつ前
処理し、この前処理後のデータを更に符号化するもので
あるが、前述したように、CとM、YとKを夫々1まと
めにして(即ち、4行と4行)前処理し、更に符号化す
るのであるから、CとM、YとKは夫々処理としては同
じものであり、そのため以下の説明ではC,Mの組合せ
について説明する。
On the other hand, in this embodiment, one pixel consists of four elements of CMYK, and two image data of C and M are grouped into one, and two image data of Y and K are grouped into one. Furthermore, one element consists of two bits, upper (U) and lower (L), and the total is an element string of 4 (CMYK) x 2 (LIL) rows. Also, when I say column, I mean the main scanning direction.
A row refers to the depth direction of each element and the direction perpendicular to the column of each element column. The encoding shown in FIG. 1(a) preprocesses the upper and lower bits of the four rows of binary image data, and further encodes the data after this preprocessing. In this case, C and M, Y and K are preprocessed and encoded as one group (that is, 4 lines and 4 lines), so C and M, Y and K are processed in the same way. Therefore, in the following explanation, the combination of C and M will be explained.

さて、CとMの前処理部の構成は2×2の2進画像デー
タ(4cu、 4 cb、 4 Mll、 4 ML)
を各行毎に、所定周期のビットインタリーブにて並べ変
えるビットインタリーブ再構成部(3C,3M)と、更
にこの並べ変えられた2進画像データ(5CU+ 5 
cL、5MU、 5 ML)の夫々について、その論理
値の変化、非変化を新たな論理値とする2進画像データ
(7cu、 7 CL、 7 Mu、 7 ML)に変
換するための変化点抽出部(6C,6M)とからなる。
Now, the configuration of the C and M preprocessing sections is 2 x 2 binary image data (4 cu, 4 cb, 4 Mll, 4 ML)
A bit interleaving reconstruction unit (3C, 3M) rearranges the data for each row by bit interleaving at a predetermined period, and further the rearranged binary image data (5CU+5
Change point extraction for converting each of cL, 5MU, 5 ML) into binary image data (7 cu, 7 CL, 7 Mu, 7 ML) with changes or no changes in the logical value as new logical values. (6C, 6M).

このような構成によると、入力の2×2行の2進カラー
画像データ(4cu、  4CL、  4M11. 4
M+、)が例えば第3図(b)に示した如き中間調画像
をディザ法で面積変調したものであれば、先ずビットイ
ンタリーブ再構成部3C,3Mにより、白又は黒の偏り
の大きな4つの二進カラー画像データ(5CU+ ” 
CL+ 5ML1.” ML)が得られる。その理由は
、ディザマトリクスが例えば第2図(b)のような4x
4であれば、ディザ処理後の画像データには第3図(b
)のような周期性が含まれるので、主走査方向の4ビツ
ト毎のビットインタリーブにより、2つの二進信号列(
5cu、 5 CL+5 Mu、 5 ML)には0°
°又は1°°が偏在し、” o ”ラン長、及び゛1°
°ラン長が長くなるなるからである。
According to this configuration, input 2x2 rows of binary color image data (4cu, 4CL, 4M11.4
If M+, ) is obtained by area-modulating a halftone image using the dither method as shown in FIG. Binary color image data (5CU+”
CL+ 5ML1. ”ML) is obtained.The reason is that the dither matrix is 4x as shown in Fig. 2(b).
4, the image data after the dither processing has the image data shown in Figure 3 (b).
), so by bit interleaving every 4 bits in the main scanning direction, two binary signal sequences (
0° for 5 cu, 5 CL+5 Mu, 5 ML)
° or 1°° are unevenly distributed, “o” run length, and ゛1°
This is because the run length becomes longer.

更に変化点抽出部(6C,6M)により変化点抽出によ
る二値化、例えば信号列(5cu、 5 cl、。
Furthermore, the change point extractor (6C, 6M) performs binarization by extracting the change point, for example, the signal sequence (5 cu, 5 cl, etc.).

5 M11+ 5 ML)の論理値変化点を1°゛とし
、その他の無変化点を“°0°°とする二値化をすれば
、論理値” 1 ”は上記変化点のみとなる。そうする
と、゛0゛ランが更に増えるので、ランレングス符号化
部11CHによるランレングス符号化か効率的となり、
高いデータ圧縮率が得られる。
If the logical value change point of 5 M11 + 5 ML) is set to 1°, and the other no-change points are binarized to “°0°°,” the logical value “1” will be only at the above changing point. Then , '0' runs further increase, so run-length encoding by the run-length encoding unit 11CH becomes more efficient.
A high data compression rate can be obtained.

第1実施例に係る符号化の概略を更に説明する。符号下
部2CMについてはその構成は、2つの二進画像データ
列(7CLI+ 7 CL+ 7 MLI、 7 ML
)で表わされる要素列中で、いずれかが′1°°である
ピットを検出する0−1検出部9CMと、0→1検出部
9cMが°゛0°°→“°1゛の変化を検出した時点で
、それまでのゼロ要素のみを含む2X2 (=4行)の
可変長ゼロブロックを切出すランレングス符号化部11
CMと、前記4行の可変長ゼロブロックに続いて、4行
の2進化号列(7cυ+7CI−+7 yu、 7 M
L)について、所定の長さく例えば4列)の固定長非ゼ
ロブロック(4つの1行4列ブロック)を切出すブロッ
ク符号化部8CMとこれらの符号化コードを合成する合
成部12cMとからなる。
The outline of the encoding according to the first example will be further explained. The structure of the 2CM at the bottom of the code is two binary image data strings (7CLI+7CL+7MLI, 7ML
), the 0-1 detection unit 9CM detects a pit whose value is '1°°, and the 0→1 detection unit 9cM detects a change from °゛0°°→``°1゛. At the time of detection, a run-length encoding unit 11 cuts out a 2×2 (=4 rows) variable-length zero block containing only previous zero elements.
CM and the four rows of variable length zero blocks, followed by the four rows of binary code sequences (7cυ+7CI−+7yu, 7M
Regarding L), it consists of a block encoding unit 8CM that cuts out fixed-length non-zero blocks (four 1-row, 4-column blocks) of a predetermined length (for example, 4 columns), and a combining unit 12cM that combines these encoded codes. .

ランレングス符号化部11CMは、4行の可変長ゼロブ
ロックに対してランレングス符号化により冗長度を抑圧
し、前記ブロック符号化部8CMは夫々の切出された4
つの1行4列の固定長非ゼロブロックの夫々に所定の符
号化を施して、4つのブロック符号を得る。合成部12
CMではランレングス符号、4つのブロック符号を所定
の順て並ぺて合成し、画像データ列13c、を出力する
The run-length encoding unit 11CM suppresses redundancy by run-length encoding the four rows of variable-length zero blocks, and the block encoding unit 8CM encodes each extracted four-line zero block.
A predetermined encoding is applied to each of the fixed length non-zero blocks arranged in 1 row and 4 columns to obtain four block codes. Synthesizer 12
In the CM, a run-length code and four block codes are arranged and combined in a predetermined order, and an image data string 13c is output.

第1図(a)に示した実施例の構成によると、゛“0”
ランについてはランレングス符号化により高能率に圧縮
される。又、4つの二進カラー画像データ列(7C1,
7CL、  7 MU、 7 ML)の信号源の種類(
例えば、画像データであれば原画像の種類)によっては
、非ゼロブロックが特定のパターンを多く含む場合があ
る。このような特定パターンに対して、例えばブロック
の固定長より短い符号長の符号コードを各1行4列のブ
ロックに割当てるような符号化をブロック符号化部ac
iiで行えば、1°゛を含む画像データ列に対しても高
能率に圧縮できる。例えば第8図(a)には上記非ゼロ
ブロックが取得るパターンを示し、そのパターンをもつ
1行4列のブロックに対して行う符号化の例を示す。
According to the configuration of the embodiment shown in FIG. 1(a), “0”
Runs are compressed with high efficiency by run-length encoding. In addition, four binary color image data strings (7C1,
7CL, 7MU, 7ML) signal source type (
For example, in the case of image data, depending on the type of original image, non-zero blocks may include many specific patterns. For such a specific pattern, the block encoding unit ac performs encoding such as assigning a code with a code length shorter than the fixed length of the block to each block of 1 row and 4 columns.
ii, even an image data string containing 1° can be compressed with high efficiency. For example, FIG. 8(a) shows a pattern obtained by the non-zero block, and shows an example of encoding performed on a block in 1st row and 4th column having that pattern.

〈第2実施例の概略〉・・・第1図(b)第1図(b)
の実施例は前処理については同図(a)の実施例と同じ
であるので、その説明を省略する。符号化部2CMにつ
いては、前記4つの1行4列の非ゼロブロックのパター
ンを調べるパターン判別部17cMと、そのようなブロ
ックに対しては、そのようなパターンを有している事を
示すフラグを生成するフラグ生成部14cMを有してい
るところに、差異がある。
<Outline of the second embodiment>...Fig. 1(b) Fig. 1(b)
The preprocessing in this embodiment is the same as the embodiment shown in FIG. The encoding unit 2CM includes a pattern determining unit 17cM that examines the pattern of the four non-zero blocks arranged in the 1st row and 4th column, and a flag indicating that such a block has such a pattern. The difference lies in that it includes a flag generating section 14cM that generates the flag.

さて、第1実施例でのブロック符号化は、多く発生する
パターンに対して、そのブロック長よりも短い符号長の
符号にすることで、データ圧縮を達成するものであった
が、第2実施例では、そのような特定のパターンもった
ことを示すフラグをフラグ生成部14cMにて発生し、
符号化後の圧縮信号13cMにもたせることにより、更
なる圧縮を目指すものである。尚、フラグの例を第12
図(a)、(b)に示す。
Now, in the block encoding in the first embodiment, data compression was achieved by using a code with a code length shorter than the block length for frequently occurring patterns. In the example, the flag generation unit 14cM generates a flag indicating that such a specific pattern is present,
By adding this to the encoded compressed signal 13cM, further compression is aimed at. In addition, an example of the flag is shown in the 12th
Shown in Figures (a) and (b).

1  ソ 〈各構成部分の説明〉 以下順次図面に従って説明するものであるが、第1図(
a)、(b)にも示されているように、C信号とM信号
との組合せはY信号とに信号との組合せに同等である。
1. (Explanation of each component) The explanation will be given below in sequence according to the drawings.
As shown in a) and (b), the combination of the C signal and the M signal is equivalent to the combination of the Y signal and the signal.

そこでC信号とM信号との組合せで説明を行う。又、第
1図(a)、(b)に示した実施例の各構成要素は共通
部分を多くもつので、説明の重複を防ぐために、以下説
明する添付の図面は各1色又は2色に対する回路例等で
ある。
Therefore, the combination of the C signal and the M signal will be explained. Furthermore, since each component of the embodiment shown in FIGS. 1(a) and 1(b) has many common parts, in order to avoid duplication of explanation, the attached drawings described below are for each one color or two colors. Examples of circuits, etc.

前処理部は、信号Cについてみると、ビットインタリー
ブ再構成部3cと、変化点抽出部6cとからなる。又、
符号化部2CMは前述したように、符号化法の違いによ
りその内部構成を異にする(第10図(a)と第11図
)。先ず前処理部I CM+  I YKについて説明
しよう。
Regarding the signal C, the preprocessing section includes a bit interleave reconstruction section 3c and a change point extraction section 6c. or,
As described above, the encoding unit 2CM has different internal configurations depending on the encoding method (FIG. 10(a) and FIG. 11). First, let us explain the preprocessing section ICM+IYK.

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

第4図(a)は例えば第2図(a)又は(b)のディザ
マトリックスにより4値化されたC信号4 CU+ 4
 CL%及びM信号4MLI+4MLであって、主走査
方向(即ち、列方向)へ40画素分の大きさを持つもの
を示す。図に付された番号は主走査方向には画素の番号
を便宜上付したものである。このC信号4 CU+ 4
 CL及びM信号4MU+ 4MLは、夫々4ビツト周
期の周期性をもつ。前述したように、このようなディザ
画像は中間調を表現するにはすぐれるが、ラン長が短く
なってしまっているのは図をみても明らかである。
FIG. 4(a) shows, for example, a C signal 4 CU+ 4 which has been 4-valued using the dither matrix shown in FIG. 2(a) or (b).
CL% and M signals 4MLI+4ML, which have a size of 40 pixels in the main scanning direction (ie, column direction), are shown. The numbers given in the figure are the numbers of pixels in the main scanning direction for convenience. This C signal 4 CU+ 4
The CL and M signals 4MU+4ML each have a periodicity of 4 bits. As mentioned above, such a dithered image is excellent for expressing halftones, but it is clear from the figure that the run length is short.

この2進化号4 CU+ 4 CL及び4MU+  4
MLに対して夫々4ビツトのインタリーブを行うと、第
4図(a)の1.2,3,4.・・・の画素配列が第4
図(b)の如き1,5,9,13.17.・・・なる配
列となり、°゛白゛°ラン及び°゛黒゛′ラン長が増加
しているのがわかる。4ビツトとしたのは、閾値処理に
用いたディザマトリックスが4ビツトであるからである
が、上記ビットインタリーブはディザマトリックスと同
一の長さで行った。このようなビットインタリーブ長の
決定の他に、マトリックスの大きさの整数倍又は整数分
の1の大きさに設定する事もできれば、又は閾値マトリ
ックス内の近似した値をもつ閾値に対応した周期でグル
ープ化する手法もある。
This binary code 4 CU+ 4 CL and 4MU+ 4
If 4-bit interleaving is performed for each ML, 1.2, 3, 4. in FIG. 4(a). The pixel array of ... is the fourth
1, 5, 9, 13, 17 as shown in figure (b). ..., and it can be seen that the lengths of the ``white'' run and the ``black'' run 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図
(但し、C信号に対するもののみ)に示す。第6図のビ
ットインタリーブ再構成部3゜は、C信号4Cur 4
 CLの並べ換えのために2組のラインメモリ40.4
1を用いる。1組のラインメモリは不図示であるが、上
位ビット用と下位ビット用のラインメモリを有するもの
とする。2組用いるのはC信号4 CU、 4 CLの
入力と並べ換え動作と並べ換えられた画像データ列”C
U+5CLを読み出す動作とを同時に行うためである。
A circuit for performing such bit interleaving is shown in FIG. 6 (only for the C signal). The bit interleaving reconfiguring unit 3° in FIG.
Two sets of line memories 40.4 for CL reordering
1 is used. Although one set of line memories is not shown, it is assumed that the set includes line memories for upper bits and lower bits. Two sets of C signals are used: 4 CU and 4 CL input, rearrangement operation, and rearranged image data string "C".
This is to perform the operation of reading U+5CL at the same time.

即ち、1組のラインメモリに入力(書込み)するときは
、他方の組ラインメモリは出力(読み出し)に使われる
。1つのラインメモリが同時に書込みと読出しに使われ
るのを防ぐために、書込み用のアドレスカウンタ25と
、読み出し用のアドレスカウンタ26と、これらカウン
タ25,26の出力を各ラインメモリ40.41に振り
分けるセレクタ27.28,29.30,31.32及
び排他制御を行うラインメモリ制御部42等がある。ラ
インメモリ制御部42は1ライン毎に発生するBD信号
38に同期して第2ラインメモリ書込み信号36又は第
1ラインメモリ書込み信号37を交互に1°°とする。
That is, when inputting (writing) to one set of line memories, the other set of line memories is used for outputting (reading). In order 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 that distributes the outputs of these counters 25 and 26 to each line memory 40, 41 are provided. 27, 28, 29, 30, 31, 32, and a line memory control unit 42 that performs exclusive control. The line memory control unit 42 alternately sets the second line memory write signal 36 or the first line memory write signal 37 to 1° in synchronization with the BD signal 38 generated for each line.

又セレクタ27.28.31は、第2ラインメモリ書込
み信号36又は第1ラインメモリ書込み信号37の論理
値に応じて出力を選択するセレクタであり、一方、セレ
クタ29.30.32は同じく、第2ラインメモリ書込
み信号36又は第1ラインメモリ書込み信号37の論理
値に応じて入力を選択するものである。このようにする
と、第1ラインメモリ書込み信号37が°“1゛のとき
は、第2ラインメモリ書込み信号36は0″であり、セ
レクタ27は出力” o ”を、セレクタ29は入力“
“0”を、セレクタ31は出力“o ”を選ぶために2
進化号4CU+ 4 CL及び4MU+  4MLが第
1ラインメモリ40に書き込まれ、一方読み出しアドレ
スカウンタ26の出力はセレクタ28及びセレクタ30
により第2ラインメモリ41に入力し、セレクタ32は
第2ラインメモリ41を選ぶ。こうして書込みと読み出
しの同時処理が行え、高速化に寄与する。
Further, the selectors 27, 28, and 31 are selectors that select the output according to the logical value of the second line memory write signal 36 or the first line memory write signal 37, while the selectors 29, 30, and 32 similarly The input is selected according to the logical value of the 2-line memory write signal 36 or the 1st 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 "0", the selector 27 outputs "o", and the selector 29 outputs "o".
“0”, selector 31 selects 2 to select output “o”.
Evolution codes 4CU+4CL and 4MU+4ML are written to the first line memory 40, while the output of the read address counter 26 is written to the selector 28 and the selector 30.
is input to the second line memory 41, and the selector 32 selects the second line memory 41. In this way, writing and reading can be performed simultaneously, contributing to speeding up.

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

又、アドレスカウンタ25.26及びラインメモリ40
.41の駆動クロックは同期クロック35CMである。
In addition, address counters 25 and 26 and line memory 40
.. The driving clock 41 is a synchronous clock 35CM.

この同期クロック35cMは符号化部2CMで生成され
るもので、符号化部2CMでの符号化の際に、画像デー
タ列があるパターンのときは同期を取るために、強制的
に所定のコードを挿入する必要が生じ、その場合、その
強制挿入コードを合成部10が送出し終るまで、ビット
インタリーブ再構成部3c、3vの動作を停止するため
に用いられる(詳しくは後述する)。
This synchronization clock 35cM is generated by the encoding unit 2CM, and when the image data string has a certain pattern during encoding in the encoding unit 2CM, a predetermined code is forcibly applied to achieve synchronization. In that case, the forced insertion code is used to stop the operation of the bit interleaving reconfiguring units 3c and 3v until the combining unit 10 finishes sending out the forced insertion code (details will be described later).

以上述べたようなビットインタリーブ再構成部がカラー
信号の各色の各上位、下位ビットについてビットインタ
リーブを行う。ところで、第1図(a)等をみてもわか
るように、2進化号7c0゜7cL及び7ML++  
7MLとは同時に符号化部2 CM テ符号化される。
The bit interleaving reconfiguration unit as described above performs bit interleaving for each of the upper and lower bits of each color of the color signal. By the way, as you can see from Figure 1(a) etc., the binary code numbers 7c0°7cL and 7ML++
7ML is simultaneously encoded by the encoder 2 CM.

又、後述するように、ランレングス符号化部11cMで
はC信号とM信号をまとめてランレングス符号化する。
Further, as will be described later, the run-length encoding unit 11cM performs run-length encoding on the C signal and the M signal together.

又、°“ビ′を含む1行4列のブロックの符号化は所定
の長さ毎に行う。即ち、C信号とY信号のビットインタ
リーブ前処理は同期しており、従って第6図に示した構
成要素のうち、第1ラインメモリ4oと第2ラインメモ
リ41以外は共通化でき、この共通化により回路の小規
模化に寄与する。信号Yと信号にとの組合せについても
同様である。
In addition, the encoding of the block of 1 row and 4 columns including ``B'' is performed every predetermined length. That is, the bit interleaving preprocessing of the C signal and the Y signal is synchronized, and therefore, as shown in FIG. Among the components, the components other than the first line memory 4o and the second line memory 41 can be made common, and this common use contributes to downsizing of the circuit.The same applies to the combination of the signal Y and the signal Y.

〈変化点抽出〉 第7図(b)に2進化号7 CLl+ 7 CL、につ
ぃての変化点抽出のための回路の一例を、同図(a)に
その結果を示す。第7図(b)の変化点抽出部6cの一
例は信号Cの主走査方向に1画素隣接する画素同士の間
の変化点を抽出する場合である。
<Extraction of changing points> FIG. 7(b) shows an example of a circuit for extracting changing points for the binary code 7 CLl+ 7 CL, and FIG. 7(a) shows the results. An example of the change point extraction section 6c in FIG. 7(b) is a case where a change point between pixels adjacent to each other by one pixel in the main scanning direction of the signal C is extracted.

1つ隣接する画素を検出するためにフリップフロップ2
0u又は20Lを用い、変化点を検出するためEX−O
Rゲート(排他論理和ゲート)2tu  (又は21L
)を用いる。4ビツトインタリーブをかけられた2進化
号列5CLI15CLに対し、注目画素と同一走査線に
あるその直前の画素とEX−ORをとる。即ち、第2図
(a)の閾値DIJに2進化号列5 Cur 5 CL
の各画素を対応させれば、EX−ORゲート210  
(21L )(7)出力DXIJ (7CU、 7CL
)は D xlJ ” D lj  ■ D I−1,Jであ
る。第4図(b)と第7図(a)を比較してもわかるよ
うに、” o ”ラン(このような0°。
Flip-flop 2 to detect one adjacent pixel
EX-O to detect the change point using 0u or 20L
R gate (exclusive OR gate) 2tu (or 21L
) is used. The 4-bit interleaved binary code string 5CLI15CL is subjected to EX-OR with the pixel immediately preceding the pixel on the same scanning line as the pixel of interest. That is, the binary code sequence 5 Cur 5 CL is set to the threshold DIJ in FIG. 2(a).
If each pixel of
(21L) (7) Output DXIJ (7CU, 7CL
) is D xlJ ” D lj ■ D I-1,J. As can be seen by comparing FIG. 4(b) and FIG. 7(a), there is an "o" run (such 0°).

ランを゛白′°ランとも呼ぶ)が長くなっていて、ラン
レングス符号化に適する事が一目瞭然である。又、ビッ
トインタリーブされた画像データ列5 CLI+  5
CLは°゛白°゛ランと゛°黒°°ランのラン長が長い
。このような画像データ列5 Cur 5 CLから変
化点を抽出した画像データ列(7Cur 7CL)に表
われる特徴は次のようである。
It is obvious that the runs (also called white runs) are long and are suitable for run-length encoding. Also, bit interleaved image data string 5 CLI+ 5
In CL, the run lengths of the °゛white°゛ run and the ゛°black°° run are long. The characteristics appearing in the image data string (7Cur 7CL) obtained by extracting changing points from the image data string 5Cur 5CL are as follows.

■:論理値°゛1“′が前後を“0”に囲まれて孤立的
に偏在する(即ち、” o ”ランの後に“100“0
”が発生する)確率が高くなる。これは、°゛白°゛ラ
ン、゛°黒°゛ランが長ければ、それらの両端にのみ変
化点°゛1°゛が発生するからである。
■: The logical value °゛1"' is isolated and unevenly distributed, surrounded by "0" before and after (i.e. "100"0 after "o" run)
This is because if the °゛white゛ run and the ゛°black゛ run are long, the change point °゛1°'' will occur only at both ends of them.

■;一方、長い゛白°゛ラン中の孤立した゛°黒″°。■;On the other hand, an isolated 'black'° in a long 'white' run.

及び長い゛黒°゛ラン中の孤立した゛′白゛°はその変
化点を捕えると“’1100°“どなる。
And an isolated ``white'' in a long ``black'' run will roar out ``'1100'' when you catch that change point.

上記■及び■から、画像データ列(7cu。From the above ■ and ■, the image data string (7 cu.

7 Cut 7 MU、 7 ML)には” 1000
 ”と”110“0”か多く発生する事がわかる。この
事は第7図(a)をみれば自ずと明らかである。上記の
事実は、後述する符号化と大きく関わる。
7 Cut 7 MU, 7 ML) “1000
” and “110” and “0” occur frequently. This is obvious when looking at Figure 7(a). The above fact has a great deal to do with encoding, which will be described later.

以上、冗長度抑圧符号化のための前処理について説明し
た。そこで、次に、符号化部について、第1図(a)、
(b)に対応した実施例を2つ説明する。上記の前処理
部はある意味では、各2進画像データに対して独立して
処理するものであった。以下説明する符号化の実施例は
、2色の信号(例えば、信号Cと信号M)を1つの信号
として処理するものである。
The preprocessing for redundancy reduction coding has been described above. Therefore, next, regarding the encoding section, FIG. 1(a),
Two embodiments corresponding to (b) will be described. In a sense, the above preprocessing section processes each binary image data independently. The encoding embodiment described below processes two color signals (for example, signal C and signal M) as one signal.

〈第1実施例の符号化〉 第9図(a)に、第7図(a)の変化点抽出された画像
データ列(7CU、 7CL、 7MU、 7ML。
<Encoding of the first embodiment> FIG. 9(a) shows the image data string (7CU, 7CL, 7MU, 7ML) from which the change points of FIG. 7(a) have been extracted.

7 YLI、  7 YLI  7 KU+  7 K
L)が1ライン分示されていて、この画像データ列から
の可変長ゼロブロック(又は固定長非ゼロブロック)の
切出し方が示されている。図中、慣例に従い°0°′を
°“白°°、“ビを“黒″と称して表わす。桁数を表示
し易いからである。2進化号(7Cut 7 CL、 
7 MU、 7ML)に対しては、これらの信号中で同
時に0゛。
7 YLI, 7 YLI 7 KU+ 7 K
L) is shown for one line, and how to extract a variable length zero block (or fixed length non-zero block) from this image data string is shown. In the drawings, according to convention, °0°' is represented by °"white °°", and "bi" is represented by "black". This is because it is easier to display the number of digits. Binary evolution issue (7Cut 7 CL,
7MU, 7ML), 0゛ simultaneously in these signals.

のみしか含まないものを白(“’o”)ランとして切出
す。例えば“白6°°は4行の白のランが6個続くとい
う意味である。このような白(°°0″゛)ランに対し
て例えば14H符号化による圧縮を行う。
A run that contains only 100% is cut out as a white (“'o”) run. For example, “white 6°°” means six consecutive white runs of four lines. Such white (°°0″) runs are compressed by, for example, 14H encoding.

一方、いずれかの行に1つでも1°°が表われると、そ
こから4ビツト長で4つの1行4列の固定長非ゼロブロ
ックを切出す。このようなブロックは必ずどこかに1つ
以上の1′′を含むものであるが、1行全てが0′°で
あるものもあり得る。前述したような前処理を行うと、
各色毎に全体で“°O°゛ランが多くなるが、上記のよ
うな全色をまとめたブロックの切出しを行うと、1行全
てがo o o o’”であるにも関わらず非ブロック
に含まれてしまうものが多くなる。例えば、6個目のブ
ロック(Bo)にはゼロのみの1行4列のブロック(=
ooOO)が3つも含まれてしまう。
On the other hand, if even one 1°° appears in any row, four fixed-length non-zero blocks of 4-bit length arranged in 1st row and 4th column are cut out. Such a block always contains one or more 1'' somewhere, but it is also possible for one row to have all 0'°. If you perform the pretreatment as described above,
There will be more "°O°" runs overall for each color, but if you cut out a block that includes all colors as shown above, it will be a non-block even though the entire row is "o o o o'". There are many things that are included in For example, the 6th block (Bo) is a block of 1 row and 4 columns containing only zeros (=
ooOO) are included.

これは同一画素においては、C信号とM信号の確率過程
は独立であるから、色間で“0”°と1°。
This is because the stochastic processes of the C signal and M signal are independent in the same pixel, so the difference between colors is "0" and 1.

の発生がランダムであるためである。この°0000゛
°のパターンが多いという事は、更なる圧縮の可能性を
示唆している。これについては、別の実施例の説明に譲
る。
This is because the occurrence of is random. The fact that there are many patterns of °0000° suggests the possibility of further compression. This will be explained in another embodiment.

こうして得られた固定長非ゼロブロック内の発生し得る
パターンは第8図(a)に示した16種類のパターンの
組合せである。このような16種類のパターンに対して
便宜上B。−B+5の記号名称を付け、第9図(a)に
示す。この規約に従って、例えば第9図(a)中の最初
の固定長非ゼロブロックは(Bo 、B+ 、Ba 、
B9 )と表わせる。
The patterns that can be generated in the fixed length non-zero block obtained in this way are combinations of 16 types of patterns shown in FIG. 8(a). B for convenience for these 16 types of patterns. It is given the symbol name -B+5 and is shown in FIG. 9(a). According to this convention, for example, the first fixed length non-zero block in FIG. 9(a) is (Bo , B+ , Ba ,
B9).

尚、画像データによっては、第9図(a)のC信号の如
く、可変長ゼロブロックから始まらない場合がある。こ
のような場合、非ゼロブロック(本例では、Bo、B+
、Ba、B9のブロック)の前に強制的に1つの゛白0
”(MH符号では“’00110101°°)を挿入す
る。又、非ゼロのブロックが連続するような場合も同様
にする。可変長ゼロブロックと固定長非ゼロブロックと
が必ず交互に発生して、復号化の際に同期がとれるよう
にするためである。
Incidentally, depending on the image data, the signal may not start from a variable length zero block, as in the case of the C signal in FIG. 9(a). In such a case, non-zero blocks (in this example, Bo, B+
, Ba, B9 block).
” (in the MH code, “'00110101°°)” is inserted. Also, the same applies when non-zero blocks are consecutive. This is to ensure that variable-length zero blocks and fixed-length non-zero blocks always occur alternately to ensure synchronization during decoding.

ところで前述したように、前処理によりプロツり中には
’1000”及び“’ttoo”が多く発生する。又、
いずれか一方の色に°゛1°°が発生すると、そこをブ
ロックの一部としたから、0000°′も多い。そこで
、このように多数発生するパターンに注目して、所定の
符号化を行ってビット長をそのパターン長より短くすれ
ば、符号化による圧縮率は向上する。さて、前記例では
00oo”、  “”tooo”及び“”ttoooo
の3種類のパターンが多く発生する。第8図(a)の例
では、2ビツトの符号゛0“0”をB。=°“0000
”に、01°°をB3= ”t t o o”に割当て
るというものである。このようにして高圧縮化を達成す
る。
By the way, as mentioned above, many '1000' and 'ttoo' occur during programming due to pre-processing.
When °゛1°° occurs in one of the colors, it becomes part of the block, so there are 0000°'. Therefore, if we focus on patterns that occur in large numbers and perform predetermined encoding to make the bit length shorter than the pattern length, the compression rate by encoding will improve. Now, in the above example, 00oo”, “”tooo” and “”ttoooo
Three types of patterns often occur: In the example of FIG. 8(a), the 2-bit code "0" is set to B. =°“0000
", 01°° is assigned to B3="t to o". In this way, high compression is achieved.

又、第8図(a)中のいずれのコードも互いにユニーク
なものであって、混同は生じない組合せになっている。
Moreover, all the codes in FIG. 8(a) are unique to each other, and are a combination that will not cause confusion.

圧縮コード“10°°はB。、B3以外のパターンと判
別できなくなるから採用しない。このようにすると、多
く発生するパターン“’o o o o″及び“tto
o”が2ビツトに圧縮される。一方、“o o o o
 ”、” 1100 ”、゛1000°°以外のパター
ンが同一確率で多数発生するような画像にあっては、圧
縮符号コードを3ビツトとする。そうすると、“o o
 o ”、゛。
The compressed code "10°° is B." is not adopted because it cannot be distinguished from patterns other than B3. In this way, the frequently occurring patterns "'o o o o" and "tto
o” is compressed to 2 bits. On the other hand, “o o o o
For an image in which many patterns other than ",""1100", and "1000°° occur with the same probability, the compression code is set to 3 bits. Then, "o o
o”,゛.

011゛、”010” 、  ”011 ” (7)4
種類の圧縮コードが可能となる。個々の圧縮では2ビツ
トの例よりも圧縮率が悪化するが、全体の圧縮率は更に
向上する。第9図(b)は上記の規約に従って各信号の
圧縮パターンを表した図である。第9図(b)中、MH
とはMH符号化を表す。このような符号化を各ライン毎
に行う。第9図(b)をみれば本実施例の符号化が単な
るMH符号化よりもはるかに圧縮率を向上しているのが
わかる。
011゛, “010”, “011” (7)4
Various types of compression codes are possible. Although the individual compression results in a worse compression ratio than the 2-bit example, the overall compression ratio is further improved. FIG. 9(b) is a diagram showing the compression pattern of each signal according to the above convention. In Figure 9(b), MH
represents MH encoding. Such encoding is performed for each line. Looking at FIG. 9(b), it can be seen that the encoding of this embodiment has a much higher compression rate than simple MH encoding.

第10図(a)はかかる符号化のための回路(第1図(
a)の8CM)の−例である。図中、RL(ランレング
ス)カウンタ51.セレクタ52、°°白”MH符号化
ROM53等が゛0゛ラン、即ち可変長ゼロブロックを
、MH符号化により符号化してラッチ54に符号コード
をラッチする。検出回路50は第10図(b)にその詳
細図を示すように4つの信号列(7cu、 7 ct+
 7 MU+7 ML)のいずれかの変化(“0パ→“
0°°、“o ” →゛1°゛、” t ” →“0°
°、” 1 ”→” 1 ” )を検出する。RLカウ
ンタ51はCLKを駆動クロックとするカウンタで、そ
のEN(付勢)端子に1゛°が人力するとカウント可と
なり、CL(クリア)端子に1°゛が入力するとクリア
される。従って、RLカウンタ51は、信号列(7cu
、 7 CL、 7 MIJ+ 7 ML)全てが°0
°°である間はカウントし続け、そのカウント値に応じ
たMH符号コニドをラッチ54に人力する。2進化号列
(7CU+ 7 CL+ 7ML++ 7ML)のいず
れかが°゛0°°から1゛°に変化すれば、その時のカ
ウント値の符号コードが信号72を介してラッチ54に
ラッチされ、同時にカウンタ51はクリアされる。 一
方、4ビットシフトレジスタ6o、63.66.69は
夫々、信号列(7cu + 7 cい7 MU、 7 
ML)を4ビツト長の間保持する。ブロック符号化RO
M61,64,67.70は4ビツトシフトレジスタ6
0〜69の出力を夫々第8図(a)のような規則に従っ
た符号化を行う。一方、4ビツトカウンタ55は検出回
路5oが、信号列(7cu、 7 CL+ 7 MU+
 7 ML)の” o ”から1°゛への変化をとらえ
て、その変化から4ビツトタイム後に信号73を付勢す
る。このタイミングにブロック符号化ROMB1,64
,67.70の出力を夫々ラッチ62,65,68.7
1にラッチする。合成器74は、夫々符号化したコード
を合成してシフトレジスタ75に格納するためのもので
ある。、MH符号は可変長であるからこのような合成器
が必要となる。シフトレジスタ75はパラレル−シリア
ル変換を行う。
FIG. 10(a) shows a circuit for such encoding (FIG. 1(a)).
This is an example of a) 8CM). In the figure, an RL (run length) counter 51. The selector 52, the "°° white" MH encoding ROM 53, etc. encode a zero run, that is, a variable length zero block, by MH encoding and latch the encoded code in the latch 54.The detection circuit 50 is configured as shown in FIG. ), there are four signal trains (7cu, 7ct+
7 MU+7 ML) changes (“0 PA→“
0°°, “o” →゛1°゛, “t” →“0°
°, "1"→"1") is detected. The RL counter 51 is a counter using CLK as a driving clock, and becomes ready for counting when 1° is input manually to its EN (energizing) terminal, and is cleared when 1° is input to its CL (clear) terminal. Therefore, the RL counter 51 receives the signal string (7 cu
, 7 CL, 7 MIJ+ 7 ML) all at °0
It continues to count as long as °°, and manually inputs the MH code conid corresponding to the count value to the latch 54. When any of the binary code sequences (7CU+7CL+7ML++7ML) changes from 0° to 1°, the sign code of the count value at that time is latched into the latch 54 via the signal 72, and at the same time the counter 51 is cleared. On the other hand, the 4-bit shift registers 6o, 63, 66, and 69 have signal strings (7 cu + 7 c 7 MU, 7
ML) is held for a length of 4 bits. Block encoding RO
M61, 64, 67.70 are 4-bit shift register 6
The outputs 0 to 69 are each encoded according to the rules shown in FIG. 8(a). On the other hand, in the 4-bit counter 55, the detection circuit 5o receives the signal string (7 cu, 7 CL+ 7 MU+
7ML) changes from "o" to 1°, and energizes the signal 73 4 bit times after the change. At this timing, block encoding ROMB1, 64
, 67.70 are latched 62, 65, 68.7, respectively.
Latch to 1. The synthesizer 74 is for synthesizing the respective encoded codes and storing the synthesized code in the shift register 75. , MH code is of variable length, so such a combiner is necessary. Shift register 75 performs parallel-to-serial conversion.

ANDゲート76は非ゼロブロックがラインの先頭から
開始するときに、前述したように白” o ”に対応す
るMHコードを挿入するためにある。ANDゲート59
は、1つの非ゼロブロックに続いて゛°0″°ランが入
力せずに直ちに°゛1°′の信号が入力したとき(信号
列7 CLII 7 CL、7MU+7MLのいずれか
が“°1°°であり、かつ信号77が1°゛)に、白”
 o ”に対応するMHコードを挿入するためにある。
AND gate 76 is there to insert the MH code corresponding to white "o" as described above when a non-zero block starts at the beginning of the line. AND gate 59
, when a signal of °1°' is input immediately after one non-zero block without inputting a run of '0' and the signal 77 is 1°゛), white"
o” to insert the corresponding MH code.

白” o ”挿入部56はこの1つの“白゛°を挿入す
るためにあり、ANDゲート59.77のいずれかが開
くと、セレクタ52に” o ”を出力する。こうして
、白MH符号化RQM53は°゛0″に対応するMHコ
ード=”ooilololooを出力し、白゛“0”が
強制的に挿入される。尚、クロックコントロール57は
前述のビットインタリーブ再構成部3c、3Mの同期ク
ロック35cMを生成する回路であるが、上記強制挿入
のタイミングに、この°’00110101°。
The white "o" insertion section 56 is provided to insert this one "white", and when either of the AND gates 59 or 77 opens, it outputs "o" to the selector 52. In this way, white MH encoding is performed. The RQM 53 outputs the MH code = "ooilololooo" corresponding to °'0', and a white '0' is forcibly inserted.The clock control 57 is controlled by the synchronization clock of the bit interleaving reconfiguration unit 3c and 3M described above. This is a circuit that generates 35cM, but at the timing of the above-mentioned forced insertion, this °'00110101°.

がシフトレジスタ75から出力され終るまで、同期クロ
ック350Mの発生を止める。ラインメモリ40又は4
1への人力とシフトレジスタ75からの出力の同期取り
のためである。こうして、第4図(a)のC信号及びM
信号から圧縮率の高い圧縮データ13cMが得られる。
The generation of the synchronous clock 350M is stopped until the shift register 75 finishes outputting the synchronized clock 350M. Line memory 40 or 4
This is for synchronizing the output from the shift register 75 and the input from the shift register 75. In this way, the C signal and M signal in FIG.
Compressed data of 13 cM with a high compression rate is obtained from the signal.

尚、第10図(a)の回路ではMH符号化法が用いられ
たが、1次元符号化として、例えばWy1e符号等でも
よい。又、1次元符号化に限らず、MR記号、MMR記
号のような2次元符号処理にも簡単に応用できる事は明
らかであろう。基本的には符号化法を選ばないのである
。又更に、カラー画像について、R,G、Bにも適用可
能である。
Note that although the MH encoding method is used in the circuit of FIG. 10(a), for example, Wy1e encoding may be used as one-dimensional encoding. Furthermore, it is obvious that the present invention can be easily applied not only to one-dimensional encoding but also to two-dimensional encoding processing such as MR symbols and MMR symbols. Basically, there is no choice of encoding method. Furthermore, it is also applicable to R, G, and B for color images.

〈第2実施例の符号化〉 前述の実施例は、第8図(a)に示した圧縮規約に基す
き、ブロック中に多数発生する” o o 。
<Encoding of Second Embodiment> The above-mentioned embodiment is based on the compression rule shown in FIG. 8(a), and a large number of "o o"s occur in a block.

O°゛、1100°°を夫々コード”o o” 、  
”。
0°゛, 1100°° respectively code "o o",
”.

looに圧縮するものであった。本実施例は、この00
00°′を更に効率良く圧縮しようというものである。
It was intended to be compressed to loo. In this example, this 00
The purpose is to compress 00°' even more efficiently.

そのために、4つの1行4列の非ゼロブロックの切出し
については、前記実施例と同様に第9図(a)のように
行う。そして、1″゛を含む4つの1行4列のブロック
のいずれかの中に4ビツトの0000°′ (これを便
宜上、“′ゼロパターン°°と呼ぶ)があれば、それを
前記実施例のように00°°とコード化せずに、その代
りに“’o o o oooがあった事を示すフラグを
設け、そのフラグの値を°“Oooにする。1行4列中
に1つでも1°゛を含むもの(そのような1行4列のブ
ロックを便宜上、°゛非ゼロパターン°゛と呼ぶ)に対
応するフラグは1′°とする。このようなフラグな各列
に対して設ける。又、非ゼロパターンに対応するコード
は第8図(b)の如く行う。
For this purpose, four non-zero blocks arranged in the 1st row and 4th column are extracted as shown in FIG. 9(a) in the same manner as in the previous embodiment. Then, if there is a 4-bit 0000°' (for convenience, this is referred to as a "'zero pattern°°") in any of the four 1-row, 4-column blocks containing 1", it is used in the example described above. Instead of encoding it as 00°°, as in ``'o o o ooo'', a flag is provided, and the value of the flag is set to ``Ooo''. The flag corresponding to a block containing at least one 1° in the 1st row and 4th column (for convenience, such a block in the 1st row and 4th column is referred to as a non-zero pattern°) is set to 1'°. A flag is provided for each such flag column. Further, the code corresponding to the non-zero pattern is executed as shown in FIG. 8(b).

第11図(a)は圧縮後のフォーマットを示す。C信号
の上位ビットである信号7cUに対応する符号コードを
#1コード、下位ビットに対応する信号7CLに対する
符号コードを#2コード、M信号の上位ビットに対応す
る信号7+ituのそれを#3コード、下位ビットに対
応する信号7MLのそれを#4コードとし、これらの符
号コードに夫々対応するフラグを#IF、#2F、#3
F、#4Fとする。例えば、#IFが“′“0”であれ
ば、1行4列の信号7cuがゼロパターン=ooooで
あり、更に対応する#1コードは無い事を示す。
FIG. 11(a) shows the format after compression. The code code corresponding to the signal 7cU which is the upper bit of the C signal is the #1 code, the code code for the signal 7CL corresponding to the lower bit is the #2 code, and the code code of the signal 7+itu corresponding to the upper bit of the M signal is the #3 code. , the signal 7ML corresponding to the lower bit is set as code #4, and the flags corresponding to these code codes are #IF, #2F, #3, respectively.
F, #4F. For example, if #IF is "0", it indicates that the signal 7cu in the 1st row and 4th column has a zero pattern=oooo, and that there is no corresponding #1 code.

4行4列のブロックはいかなる組合せでも、必ずゼロパ
ターンと非ゼロパターンとの組合せであるから、そのフ
ラグの組合せは’1000°°。
Any combination of 4 rows and 4 columns of blocks is always a combination of a zero pattern and a non-zero pattern, so the combination of flags is '1000°.

“0100′’、”0010°’、”0001°゛。"0100'',"0010°',"0001°゛.

” 1100°°、“’1001°°、“1010°°
"1100°°,"'1001°°,"1010°°
.

”otot”、’“0011°°、“’0110”。``otot'', ``0011°°, ``0110''.

“1110”、’“1101°°、“1011 ” 。"1110",'"1101°°,"1011".

“0111°”、”1111’“015通りである。"0111°", "1111", "015".

第11図(b)に、フラグと符号コードをも含めたフォ
ーマット例を示す。
FIG. 11(b) shows an example of the format including flags and code.

データ圧縮をこのように行うと、ゼロパターンはコード
としては現われないので、復号化時に同期ずれが生ずる
恐れがある。しかし、先頭には必ずフラグがあり、その
長さは必ず4ビツトであり、そのフラグの論理値により
フラグに続<#1コード〜#4コードの長さくつまり、
4行4列のブロック内にいくつゼロパターンがあるかが
)がわかる。又第8図(b)をみてもわかるように、8
1〜BI5に対応する符号コードは全てユニークである
。従って、ゼロパターンを、それに対応するコードが無
いものとして変換しても、復号化に際し同期がずれる事
は全くない。
When data is compressed in this way, the zero pattern does not appear as a code, so there is a risk that synchronization may occur during decoding. However, there is always a flag at the beginning, and its length is always 4 bits, and depending on the logical value of that flag, the length of the code following the flag is <#1 code to #4 code.
You can see how many zero patterns there are in a block of 4 rows and 4 columns. Also, as can be seen from Figure 8(b), 8
The code codes corresponding to 1 to BI5 are all unique. Therefore, even if a zero pattern is converted as if there is no code corresponding to it, there will be no loss of synchronization during decoding.

第9図(a)に示したブロックの切出しを、本実施例の
圧縮化に従って圧縮化すると、第13図のようになる。
When the block cutout shown in FIG. 9(a) is compressed according to the compression of this embodiment, it becomes as shown in FIG. 13.

図中の例えばB。/B l /sa /B9はフラグ部
が°“0111”、#1コードは無く、#2コードは’
oo″′、#3コードが10001°°、#3コードが
°’11001°”である。
For example, B in the figure. /B l /sa The flag part of /B9 is ° “0111”, there is no #1 code, and the #2 code is '
oo″′, the #3 code is 10001°°, and the #3 code is “11001°”.

さてこのようなフラグによる符号化を行う回路の一例を
第12図に示す。即ち、前述の第1の実施例(第10図
(a)及び(b))と基本的構成を同等にし、ブロック
符号化ROM61,64゜67.70を第12図のよう
にして、その出力の一部にフラグ出力を追加するのであ
る。そして、例えばゼロパターンがこのブロック符号化
ROMに人力したら、レングスは“”1”(フラグの1
ビツトのみであるから)、フラグは“’o”、コードは
” o ”とする。ROMのレングス出力は合成器74
に入力され、合成するときの情報となる。即ち、合成器
74では’o o o o″′を” 1 ”としてしか
出力しない。こうして、o o o o ”を多く含む
ような画像信号に対しては更に効果的な圧縮が可能とな
る。
FIG. 12 shows an example of a circuit that performs such flag-based encoding. That is, the basic configuration is the same as that of the first embodiment described above (FIGS. 10(a) and (b)), and the block encoding ROMs 61, 64°67.70 are configured as shown in FIG. 12, and the output thereof is The flag output is added to a part of the . For example, if a zero pattern is manually entered into this block encoding ROM, the length will be "1" (1 of the flags).
(only bits), the flag is "'o" and the code is "o". The length output of the ROM is sent to the synthesizer 74.
This information is input into the , and becomes the information when compositing. That is, the synthesizer 74 only outputs 'o o o o''' as "1". In this way, even more effective compression is possible for an image signal containing many o o o o".

上記の実施例では、ブロック長を4ビツトとしたが、こ
れには何ら限定はなく、回路規模及び原画像データの種
類に応じて決定される。ちなみに、8ビツト長に設定す
ると多少効率が向上する。又更に、“0゛°ランに対す
るMH符号化も符号化のROMテーブルを多少変更する
ことにより効率が更に向上する。又、符号化法も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 0° run can be further improved by slightly changing the encoding ROM table.Also, the encoding method is not limited to the MH encoding method, but can also be applied to other one-dimensional encoding methods. It can also be applied to law.

又、2値のカラー信号C,M、Y、には周知のように不
図示のメモリに蓄えられているものを読み出すが、又は
リアルタイムで画像を読取って2値化処理したものであ
ってもよい。
Furthermore, as is well known, the binary color signals C, M, and Y may be read out from a memory (not shown), or may be obtained by reading an image in real time and performing binarization processing. good.

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

■:4値の2進表示のカラー画像データにピットインタ
リープ処理を施すので、白ラン及び黒ランがバラバラに
なったものであっても、ラン長が復元されて長くなる。
(2): Since the pit interleaving process is performed on the color image data in the binary representation of four values, even if the white run and black run are separated, the run length is restored and becomes longer.

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

■二ビットインタリーブ処理を施した画像データ列に対
して更に変化点抽出処理を施すので°°1°。
■°°1° since change point extraction processing is further performed on the image data string that has been subjected to 2-bit interleaving processing.

のラン調が短く、“′0゛のラン長が長くなり、そのた
め符号化処理の高圧縮化が期待できる。結果的には文書
画像を対象とした符号化アルゴリズムをそのまま使用し
つつ、疑似中間調画像を高能率で圧縮できる。
The run length of ``'0'' becomes shorter and the run length of ``'0゛'' becomes longer, so high compression of the encoding process can be expected.As a result, while using the encoding algorithm for document images as is, pseudo intermediate It is possible to compress tonal images with high efficiency.

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

■:前記■の変化点抽出により、所定のパターンをもっ
た画像データ列(ブロック)が多く発生する。そこで、
このブロック内のパターンを各行毎に短いビット長のコ
ードに符号化して、合成する。又、゛0°′ランに対し
ては従来通りMW符号化等の1次元符号化を適用して符
号化する。即ち、原画像データの種類によっては、変化
点抽出された画像データ列には0000”、”100“
0”又は’1100°°が多発するので、このようなブ
ロックを短いピットの符号化により圧縮率を高める事が
できると共に、2行以上の信号を一本化できる。
(2): Due to the change point extraction in (2) above, many image data strings (blocks) having a predetermined pattern are generated. Therefore,
The patterns in this block are encoded into short bit length codes for each row and then synthesized. Furthermore, the ``0°'' run is encoded by applying one-dimensional encoding such as MW encoding as before. In other words, depending on the type of original image data, the image data string from which changing points have been extracted may contain 0000" or 100".
Since 0'' or '1100°° occur frequently, the compression rate can be increased by encoding such blocks with short pits, and the signals of two or more rows can be combined into one signal.

■二更に°’o o o o”°なるゼロパターンを1
ビツトのフラグにおきかえる事によって、より高度の圧
縮化が可能となる。
■Secondly, create a zero pattern of °'o o o o”°.
By replacing it with a bit flag, more advanced compression becomes possible.

[以下余白] [発明の効果] 以上説明したように本発明によると、同時に発生するM
行の要素列であって、その要素列中の1要素は2Nの多
値である要素列について、列方向にNXM行の可変長ゼ
ロブロックと、いずれかに1°°を含むNXM行の固定
長非ゼロブロックとを切出して、ゼロブロックに対して
はランレングス符号化を行い、固定長非ゼロブロックに
対しては所定の符号コードに変換して圧縮する事により
高能率に冗長度を抑圧した信号が得られる。
[Margins below] [Effects of the invention] As explained above, according to the present invention, M
For an element string in a row, where one element in the element string is 2N multivalued, variable length zero blocks of NXM rows in the column direction and fixed NXM rows containing 1°° in either direction. Long non-zero blocks are extracted, zero blocks are run-length encoded, and fixed-length non-zero blocks are converted to a predetermined code and compressed to efficiently suppress redundancy. A signal is obtained.

本発明の他の構成によると、各行の要素列に対して、ビ
ットインタリーブによる並べ換えと変化点の抽出とによ
る゛“0”ラン長を長尺化に、更に上記符号化を加える
と、特定のバラツキをもつ2値化号に対して、更に高能
率の冗長度抑圧符号化方式が得られる。
According to another configuration of the present invention, when the element columns of each row are rearranged by bit interleaving and change points are extracted to lengthen the "0" run length, and the above-mentioned encoding is further added, a specific A more efficient redundancy suppression coding method can be obtained for binary codes having variations.

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

第1図(a)は第1実施例野原理構成図、第1図(b)
は第2実施例の原理構成図、第2図(a)、(b)は本
発明に係る実施例及び従来例に供されるディザマトリッ
クス図、第2図(C)は4値画像データのデータとピッ
トの対応を説明する図、 第3図(a)、(b)は従来例における中間調処理によ
るビット分散度が高くなる様子を説明する図、 第4図(a)、(b)は第1.2実施例に共通なビット
インタリーブの原理を説明する図、第5図(a)〜(C
)はビットインタリーブのアドレス生成の原理を説明す
る図、 第6図はビットインタリーブ再構成部の回路図、 第7図(a)、(b)は第1.2実施例に共通な変化点
抽出部の動作及び回路構成を説明する図、 第8図(a)第1実施例に係る符号化の符号コードの一
例を説明する図、 第8図(b)第2実施例に係る符号化の符号コードの一
例を説明する図、 第9図(a)は夫々実施例におけるブロック切出しの手
法を説明する図、 第9図(b)は第1実施例における符号化後のコード配
列を説明する図、 第10図(a)、(b)は第1.2実施例に共通な符号
化のための回路図、 第11図(a)、(b)は第2実施例における符号化の
フォーマットを説明する図、 第12図は第2実施例における符号化に供されるROM
の構成図、 第13図は第2実施例の符号化の一例を説明する図であ
る。 図中、 ICM+IYK・・・前処理部、2CM+  2YK・
・’符号化部、3 CM+  3 YK・・・ビットイ
ンタリーブ再構成部、4 CLI + 4 CLI 4
 Mtl+ 4 MLI 4 YLI+ 4 YL+ 
4 KU+4KL・・・4値力ラー2進画像データ、5
 CLII 5 CL。 5MU・ 5ML・ 5Yυ・ 5Yb・ 5にυ・ 
5にし・・・ビットインタリーブされた画像データ列%
 6 CM+  6 YK・・・変化点抽出部、7 c
u、 7 CLI 7 MLI、 7 Mい7YU+7
7い 7xu、7に、・・・変化点抽出された信号、8
 CM+ ” YK’・・ブロック符号化部、14CM
、  14YK・・・フラグ生成部、9 CM+ 9 
YK・・・0→1検出部、11CM、11YK・・・ラ
ンレングス符号化部、12cii。 12YK・・・合成部、13cM、13Yに・・・冗長
度抑圧された2値化号、17CM、  17YK・・・
パターン判別部である。 第2図(a) 第2 −  ロ ー  口 −ロ 図(c) (a)       (b) 第5 A 劇[と出しマトレ2ijウンク 1回目    2回目   3回目   4回目(c) 図 Q− ロコ]コ−81−−−11000 ロコ]コ一 82−−− 10100 田l]コー 83−−− 01 0コlコー 84−−− 10010 ロコIコー 85−−− 11010 口mlコ一 86−−− 10110 日mコー 87−−− 11110 第8図(0) 口]=コロ−−81−−−00 [匡[1−82−10100 国I=ロー 83−−− 01
Fig. 1(a) is a diagram of the principle configuration of the first embodiment, Fig. 1(b)
2 is a diagram of the principle configuration of the second embodiment, FIGS. 2(a) and 2(b) are dither matrix diagrams used in the embodiment according to the present invention and the conventional example, and FIG. 2(C) is a diagram of the quaternary image data. Figures illustrating the correspondence between data and pits. Figures 3 (a) and (b) are diagrams explaining how the degree of bit dispersion increases due to halftone processing in the conventional example. Figures 4 (a) and (b) Figures 5(a) to 5(C) are diagrams explaining the principle of bit interleaving common to Embodiment 1.2.
) is a diagram explaining the principle of bit interleaving address generation, Figure 6 is a circuit diagram of the bit interleaving reconfiguration unit, and Figures 7 (a) and (b) are extraction points of change common to the 1.2 embodiments. FIG. 8(a) is a diagram illustrating an example of the encoding code according to the first embodiment; FIG. 8(b) is a diagram illustrating an example of the encoding code according to the second embodiment. FIG. 9(a) is a diagram illustrating an example of a code code, FIG. 9(a) is a diagram illustrating a block extraction method in each embodiment, and FIG. 9(b) is a diagram illustrating a code arrangement after encoding in the first embodiment. Figures 10(a) and 10(b) are circuit diagrams for encoding common to the 1.2 embodiment. Figures 11(a) and 11(b) are encoding formats in the 2nd embodiment. FIG. 12 is a diagram explaining the ROM used for encoding in the second embodiment.
FIG. 13 is a diagram illustrating an example of encoding in the second embodiment. In the figure, ICM+IYK... pre-processing section, 2CM+ 2YK・
・'Encoding unit, 3 CM + 3 YK...Bit interleave reconstruction unit, 4 CLI + 4 CLI 4
Mtl+ 4 MLI 4 YLI+ 4 YL+
4 KU+4KL...4-value power color binary image data, 5
CLII 5 CL. 5MU・5ML・5Yυ・5Yb・5 to υ・
Set to 5...Bit interleaved image data string%
6 CM+ 6 YK...change point extraction section, 7 c
u, 7 CLI 7 MLI, 7 M7YU+7
7, 7xu, 7... Signal with change point extracted, 8
CM+ "YK'...Block encoding unit, 14CM
, 14YK...flag generation section, 9 CM+ 9
YK...0→1 detection unit, 11CM, 11YK...run length encoding unit, 12cii. 12YK...combining unit, 13cM, 13Y...redundancy suppressed binarization signal, 17CM, 17YK...
This is a pattern discrimination section. Figure 2 (a) 2nd - Low Mouth-Lo Figure (c) (a) (b) 5th A Drama [Todashi Matre 2ij Unku 1st 2nd 3rd 4th (c) Figure Q- Loco] -81---11000 Loco] Co1 82--- 10100 T1 Co 83--- 01 0 Col 84--- 10010 Loco I Co 85--- 11010 Mouth ml Co1 86--- 10110 Japan Mko 87---- 11110 Figure 8 (0) Mouth]=Koro--81--00 [Koh [1-82-10100 Country I=Ro 83---01

Claims (6)

【特許請求の範囲】[Claims] (1)M行の要素列であつて各行の1要素が2^N値の
2進多値データで表わされる要素列の中から、“0”で
ない要素を少なくとも1つ含み固定長の長さをもつM×
N行の固定長非ゼロブロックと、“0”である要素のみ
を含むM×N行の可変長ゼロブロックとを切出す切出し
手段と、 前記M×N行の可変長ゼロブロックに対してはランレン
グス符号化によりランレングス符号に変換するランレン
グス符号化部と、 前記M×N行の固定長非ゼロブロックの各行に対して所
定の符号化を行つてM×N個の符号化コードを生成する
ブロック符号化部と、 前記ランレングス符号と前記所定の符号化コードとを所
定の順序で合成して出力する合成部とを有する冗長度抑
圧符号化方式。
(1) An element string of M rows, in which one element in each row is a fixed length that includes at least one element that is not "0" from among the element strings represented by 2^N binary multivalued data. M× with
a cutting means for cutting out N rows of fixed length non-zero blocks and M×N rows of variable length zero blocks containing only elements that are “0”; and for the M×N rows of variable length zero blocks; a run-length encoding unit that converts into a run-length code by run-length encoding; and a run-length encoding unit that performs predetermined encoding on each row of the M×N fixed-length non-zero blocks to generate M×N encoded codes. A redundancy reduction encoding system, comprising: a block encoding unit that generates a block encoder; and a combining unit that combines the run-length code and the predetermined encoded code in a predetermined order and outputs the result.
(2)各要素はカラー画像データである事を特徴とする
特許請求の範囲第1項に記載の冗長度抑圧符号化方式。
(2) The redundancy suppression encoding method according to claim 1, wherein each element is color image data.
(3)ランレングス符号化部はM×N行の可変長ゼロブ
ロックの1行毎の又は複数行毎の要素数をランレングス
符号化する事を特徴とする特許請求の範囲第1項に記載
の冗長度抑圧符号化方式。
(3) The run-length encoding unit performs run-length encoding on the number of elements for each row or for each multiple rows of M×N variable-length zero blocks. redundancy reduction coding method.
(4)ブロック符号化部における符号コードの長さは、
少なくとも固定長非ゼロブロックの長さより短い符号コ
ードを一部に含む事を特徴とする特許請求の範囲第1項
に記載の冗長度抑圧符号化方式。
(4) The length of the encoded code in the block encoder is:
2. The redundancy reduction coding method according to claim 1, wherein a part of the code code is shorter than the length of at least a fixed-length non-zero block.
(5)M行の要素列であつて各行の1要素が2^N値の
2進多値データで表わされるM×N行の第1の要素列を
、行毎に所定の周期のビットインタリーブにて並べ換え
てM×N行の第2の要素列とし、更に第2の要素列を、
行毎に該第2の要素列の論理値の変化及び非変化を新た
な2値とするM×N行の第3の要素列に変換する前処理
部と、前記M×N行の第3の要素列の中から、“0”で
ない要素を少なくとも1つ含み固定長の長さをもつM×
N行の固定長非ゼロブロックと、“0”である要素のみ
を含むM×N行の可変長ゼロブロックとを切出す切出し
手段と、 前記M×N行の可変長ゼロブロックに対してはランレン
グス符号化によりランレングス符号に変換するランレン
グス符号化部と、 前記M×N行の固定長非ゼロブロックの各行に対して所
定の符号化を行つてM×N個の符号化コードを生成する
ブロック符号化部と、 前記ランレングス符号と前記所定の符号化コードとを所
定の順序で合成して出力する合成部とを有する冗長度抑
圧符号化方式。
(5) The first element string of M×N rows, in which one element of each row is represented by binary multivalued data of 2^N values, is bit-interleaved at a predetermined period for each row. The second element column is rearranged by M×N rows, and the second element column is
a preprocessing unit that converts changes and non-changes in logical values of the second element string into a third element string of M×N rows as new binary values for each row; and a third element string of the M×N rows. M× which has a fixed length and includes at least one non-zero element from among
a cutting means for cutting out N rows of fixed length non-zero blocks and M×N rows of variable length zero blocks containing only elements that are “0”; and for the M×N rows of variable length zero blocks; a run-length encoding unit that converts into a run-length code by run-length encoding; and a run-length encoding unit that performs predetermined encoding on each row of the M×N fixed-length non-zero blocks to generate M×N encoded codes. A redundancy reduction encoding system, comprising: a block encoding unit that generates a block encoder; and a combining unit that combines the run-length code and the predetermined encoded code in a predetermined order and outputs the result.
(6)第1の要素列は画像信号を閾値マトリックスで2
進多値化したカラー画像データ列である事を特徴とする
特許請求の範囲第5項に記載の冗長度抑圧符号化方式。
(6) The first element sequence divides the image signal into a threshold value matrix.
6. The redundancy suppression coding method according to claim 5, wherein the redundancy suppression coding method is a hex-multivalued color image data string.
JP61211771A 1986-09-10 1986-09-10 Redundancy suppression coding system Pending JPS6367968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61211771A JPS6367968A (en) 1986-09-10 1986-09-10 Redundancy suppression coding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61211771A JPS6367968A (en) 1986-09-10 1986-09-10 Redundancy suppression coding system

Publications (1)

Publication Number Publication Date
JPS6367968A true JPS6367968A (en) 1988-03-26

Family

ID=16611316

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61211771A Pending JPS6367968A (en) 1986-09-10 1986-09-10 Redundancy suppression coding system

Country Status (1)

Country Link
JP (1) JPS6367968A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100425613B1 (en) * 1996-11-07 2004-04-01 마쯔시다덴기산교 가부시키가이샤 Image encoding apparatus and image encoding method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100425613B1 (en) * 1996-11-07 2004-04-01 마쯔시다덴기산교 가부시키가이샤 Image encoding apparatus and image encoding method

Similar Documents

Publication Publication Date Title
JPS5932025B2 (en) How to reproduce coarse scan gray level picture elements
JPS5932026B2 (en) How to reproduce the scanned image
US6181825B1 (en) Methods for performing 2-dimensional maximum differences coding and decoding during real-time facsimile image compression and apparatus therefor
JPS6282723A (en) Redundancy suppression coding system
US6154569A (en) System and method for coding and/or decoding image including bit-map of different levels
JPH07264417A (en) Image coding method
JP3231800B2 (en) Image encoding apparatus and image encoding method
JPS6367968A (en) Redundancy suppression coding system
JPS62118642A (en) Redundancy suppression coding system
JPS6298919A (en) Redundancy suppression coding system
JPS6298921A (en) Redundancy suppression coding system
JPS6367969A (en) Redundancy suppression coding system
JPS6367967A (en) Redundancy suppression coding system
JPS6298920A (en) Redundancy suppression coding system
JPS6298922A (en) Redundancy suppression coding system
JPS62118643A (en) Redundancy suppression coding system
JP2713298B2 (en) Color image signal decoding device
JPH11317673A (en) Run length encoding and decoding method therefor
JPS6367966A (en) Redundancy suppression coding system
JPS6398283A (en) Redundancy suppressing coding system
JPS6315575A (en) Redundancy suppression coding system
JPS6315535A (en) Redundancy suppression coding system
JP2831954B2 (en) Image encoding / decoding device and image processing device
JPS6398284A (en) Redundancy suppressing encoding system
JP2925043B2 (en) Data decompression device