JPH0789621B2 - Encoder - Google Patents

Encoder

Info

Publication number
JPH0789621B2
JPH0789621B2 JP60237721A JP23772185A JPH0789621B2 JP H0789621 B2 JPH0789621 B2 JP H0789621B2 JP 60237721 A JP60237721 A JP 60237721A JP 23772185 A JP23772185 A JP 23772185A JP H0789621 B2 JPH0789621 B2 JP H0789621B2
Authority
JP
Japan
Prior art keywords
signal
encoding
run
code
coding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP60237721A
Other languages
Japanese (ja)
Other versions
JPS6298919A (en
Inventor
雅文 綿谷
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 JP60237721A priority Critical patent/JPH0789621B2/en
Publication of JPS6298919A publication Critical patent/JPS6298919A/en
Publication of JPH0789621B2 publication Critical patent/JPH0789621B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、複数の色成分の画像データを符号化する符号
化装置に関する。
The present invention relates to an encoding device that encodes image data of a plurality of color components.

[従来の技術] 2値画像信号に代表される2値信号の冗長度抑圧符号化
方式においては、元の2値信号列よりも統計的性質の偏
りの大きな信号列を得る事と、そのようにして得られた
信号列を簡単な符号化によつて、高い圧縮比を得ること
が大きな課題である。統計的性質の偏りの大きな信号列
においては、同じ論理値を持つ連続長がより長くなるか
ら、例えばランレングス符号化を行えば、いわゆるエン
トロピーが減り、極めて高い圧縮比が得られるからであ
る。
[Prior Art] In a redundancy suppression coding method for a binary signal represented by a binary image signal, a signal sequence having a statistical bias larger than that of the original binary signal sequence is obtained. A major problem is to obtain a high compression ratio by simply encoding the signal sequence obtained in step (1). This is because, in a signal sequence having a large bias of statistical properties, a continuous length having the same logical value becomes longer, so that, for example, run-length encoding reduces so-called entropy and an extremely high compression ratio can be obtained.

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

この事情を第2図(a),(b)及び第3図(a),
(b)を用いて説明する。第2図(a)及び(b)のマ
トリツクスは閾値マトリツクス、特にドット集中型のデ
イザマトリツクスを示す。第3図(a)の実線は第2図
(b)の第1列目の閾値変化を表わす。このような閾値
に対して図の点線のような中間調画像が入力すると、第
3図(b)に示されたような離散的な分布をもつ疑似中
間調画像信号が得られる。このように“白”“黒”がバ
ラバラになると、ランレングス符号化では圧縮率が低下
するのに説明を要しないであろう。又、この様な疑似中
間調画像に対してMH符号化等を行うと、高能率な抑圧が
望めないばかりか、逆にデータ量が増加する場合があつ
た。
This situation is shown in FIGS. 2 (a), (b) and FIG. 3 (a),
An explanation will be given using (b). The matrix in FIGS. 2 (a) and 2 (b) shows a threshold matrix, in particular, a dot concentration type dither matrix. The solid line in FIG. 3 (a) represents the threshold change in the first column in FIG. 2 (b). When a halftone image like the dotted line in the figure is input to such a threshold value, a pseudo halftone image signal having a discrete distribution as shown in FIG. 3B is obtained. When the “white” and “black” are thus separated, the compression ratio is lowered in the run-length coding, and it will not be necessary to explain. When MH coding or the like is performed on such a pseudo-halftone image, not only efficient suppression can not be expected but, on the contrary, the data amount may increase.

従来、上記問題を解消する手段として、ビツトインタリ
ーブ法が知られている。ビツトインタリーブ法では、互
いに近接した閾値に対応する画素をグループ化し、複数
系列のビツトパターンへ変換し、或いは同一の閾値のも
の同志をグループ化して複数系列のビツトパターンへ変
換し、それぞれのビツトパターンに対しMH符号化を行つ
ているが、大幅な効率化は望めないものであつた。
Conventionally, a bit interleave method has been known as a means for solving 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 bit patterns, or groups of pixels with the same threshold value are grouped and converted into multiple series bit patterns, and each bit pattern is converted. However, MH encoding was performed, but it was not possible to expect significant efficiency improvement.

一方、上記白/黒画像に比べるとカラー画像の情報量は
3〜4倍と膨大なものである。従って、この情報を伝
送、又は記憶するには高能率な冗長度抑圧符号化方式が
必要となのは白/黒画像の比ではない。しかし、現在カ
ラー画像情報に対する有効な冗長度抑圧符号化方式が無
く、前述の白/黒画像に対する従来方式を組み合わせた
もの、即ち各色の画像信号に対してビットインタリー
ブ、MH符号化等を行っているのが実状であり、これでは
あまり高能率化は望めないものであつた。
On the other hand, the information amount of the color image is as large as 3 to 4 times that of the white / black image. Therefore, it is not the ratio of white / black images that requires a highly efficient redundancy suppression coding scheme to transmit or store this information. However, there is currently no effective redundancy suppression coding method for color image information, and a combination of the above-mentioned conventional methods for white / black images, that is, bit interleaving, MH coding, etc. are performed for each color image signal. The actual situation is that it was not possible to expect high efficiency.

[発明の目的] 本発明はかかる事情に鑑みてなされたものであり、複数
の色成分の画像データの特徴を適切に抽出することによ
り、効率の良い符号化を行なうことができる符号化装置
を提供することを目的とする。
[Object of the Invention] The present invention has been made in view of the above circumstances, and provides an encoding device capable of performing efficient encoding by appropriately extracting the characteristics of image data of a plurality of color components. The purpose is to provide.

[問題点を解決するための手段及び作用] 上記問題点を解決するための、本発明の符号化装置は、 複数の色成分の画像データを入力する入力手段と、 前記入力手段により入力された画像データに対して、色
成分毎に所定の画素数のブロック単位で配列変換処理を
施す変換手段と、 前記変換手段により夫々配列変換された複数の色成分の
画像データの変化点情報を抽出する抽出手段と、 前記抽出手段により夫々抽出された複数の色成分の変化
点情報をライン単位に並行して符号化する符号化手段と
を有し、 前記符号化手段は、前記抽出手段により抽出された夫々
の色成分の変化点情報から、複数の色成分が全て“0"と
なる“0"ランブロックを可変長の符号化方法により符号
化することを特徴とする。
[Means and Actions for Solving Problems] An encoding device of the present invention for solving the above problems includes an input unit for inputting image data of a plurality of color components, and an input unit for inputting the image data. A conversion unit that performs an array conversion process on the image data for each color component in block units of a predetermined number of pixels, and extracts change point information of the image data of the plurality of color components that are array-converted by the conversion unit. And an encoding unit that encodes the change point information of the plurality of color components respectively extracted by the extracting unit in parallel in line units, and the encoding unit is extracted by the extracting unit. It is characterized in that a "0" run block in which a plurality of color components are all "0" is encoded by a variable length encoding method from the change point information of each color component.

[実施例] 上記問題点を解決するために、一例としてカラー2値画
像データC,M信号の冗長度を抑圧するのに本発明を適用
したところの第1図に示す実施例の構成は、例えば4列
のカラー2値画像信号列(7C,7M,7Y,7K)(Cはシアン
を、Mはマゼンタを、Yはイエローを、Kはブラツクを
表わす)の中からこれらの各信号の“0"から“1"への変
化等を検出する0→1検出部9CMと、信号列7C,7Mの“0"
ランをまとめてランレングス符号化する“0"ラン符号化
部11CMと、信号列7Cについては、信号列7C内に所定のパ
ターンがある事を判別する判別部17Cと、所定のパター
ンの存在を示すフラグを生成するフラグ生成部14Cと、
前記所定のパターン以外のパターンをもつ1列のブロッ
クを所定のコードに変換するブロック符号化部15Cと、
信号列7Mについても同様に判別部17C,フラグ生成部1
4C,ブロック符号化部15Cと、更に前記ランレングス符
号とフラグと符号コードとを合成する合成部12CMとを有
する。他の色(Y,K)についても同様である。
[Embodiment] In order to solve the above problems, as an example, the configuration of the embodiment shown in FIG. 1 in which the present invention is applied to suppress the redundancy of color binary image data C, M signals is as follows. For example, from among four color binary image signal sequences (7 C , 7 M , 7 Y , 7 K ) (C is cyan, M is magenta, Y is yellow and K is black), 0 → 1 detection unit 9 CM that detects the change of each signal from “0” to “1”, etc., and “0” of signal sequence 7 C , 7 M
And run-length encoding for reduction "0" run coded portion 11 CM collectively run, for the signal sequence 7 C, and the determination unit 17 C to determine that there is a predetermined pattern in the signal sequence 7 in C, predetermined a flag generator 14 C for generating a flag indicating the existence of a pattern,
A block encoding unit 15 C to convert the blocks of one column in a predetermined code having a pattern other than the predetermined pattern,
Similarly for the signal sequence 7 M , the determination unit 17 C and the flag generation unit 1
4 C , a block coding unit 15 C, and a synthesizing unit 12 CM that synthesizes the run-length code, the flag, and the code code. The same applies to the other colors (Y, K).

又、本発明の更に他の実施例の構成は上記構成に加え
て、信号列7Cがビットインタリーブ再構成部3Cと変化点
抽出部6Cとからなる前処理部1Cにより前処理される構成
を有する。他の信号(7M,7Y,7K)についても同様であ
る。
In addition, in the configuration of still another embodiment of the present invention, in addition to the above configuration, the signal sequence 7 C is preprocessed by a preprocessing unit 1 C including a bit interleave reconstruction unit 3 C and a change point extraction unit 6 C. Has a configuration. The same applies to the other signals (7 M , 7 Y , 7 K ).

上記構成の下で、0→1検出部9CMが2値信号列の0→
1変化をとらえる事により、“0"ラン符号化部11CMは2
列にわたって“0"信号のみしか含まない“0"ランブロッ
ク16CMを切出して、この“0"ランブロック16CMにランレ
ングス符号化を行う。一方、0→1検出部9CMが前記
“0"ランブロック16CMに続いて信号列7C又は7Mのいずれ
かに“1"を検出すると、所定の長さ(例えば4ビット
長)を持つブロックを各信号列7C,7M毎に検出する。更
に信号列7Cについては、判別部17Cが信号列7C中に所定
パターンの存在を検出すると、その1列のブロックを第
12図(a),(b)に示したようなフラグ#1Fをフラグ
生成部が“1"とし、前記所定のパターン以外のパターン
の存在を判別部17Cが検出すると、フラグ生成部14Cはフ
ラグ#1Fを“0"にし、ブロック符号化部15Cはそのパタ
ーンを所定の符号コードに変換して出力する。信号列7M
については、フラグ#2Fを設け、信号列7Cの場合と同様
にする。こうして得られたランレングス符号とフラグ#
1F,#2Fそして符号コードとを合成器12CMにより合成し
て、圧縮された1列の信号列13CMを得る。
Under the above configuration, the 0 → 1 detection unit 9 CM changes the binary signal sequence from 0 → 1
By capturing 1 change, the "0" run coding unit 11 CM becomes 2
A "0" run block 16 CM containing only a "0" signal is cut out across the column, and run length coding is performed on this "0" run block 16 CM . On the other hand, when the 0 → 1 detection unit 9 CM detects “1” in either the signal sequence 7 C or 7 M following the “0” run block 16 CM , a predetermined length (for example, 4 bit length) is obtained. The possessed block is detected for each signal sequence 7 C , 7 M. Further, for the signal train 7 C , when the discriminator 17 C detects the presence of a predetermined pattern in the signal train 7 C , the block of that one train is determined as the first
12 view (a), the flag generating unit flags # 1F as shown in (b) is set to "1", the discriminator 17 C the presence of a pattern other than the predetermined pattern is detected, the flag generating part 14 C the flags # 1F to "0", the block coding unit 15 C is converts the pattern to a predetermined code code. Signal train 7 M
For, a flag # 2F is provided and in the same manner as in the signal sequence 7 C. Run length code and flag # thus obtained
1F, # 2F and the code are combined by a combiner 12 CM to obtain a compressed signal string 13 CM .

更に第1図に示した他の構成によると、符号化部に入力
するカラー2値画像データが例えば第3図(b)に示し
た如き中間調画像をデイザ法で面積変調したものであれ
ば、そのようなカラー2値画像信号(4C,4M,4Y,4K)を
先ず前処理部(1C,1M,1Y,1K)のビットインタリーブ再
構成部(3C,3M,3Y,3K)に通して、白又は黒の偏りの大
きな2値信号列(5C,5M,5Y,5K)が得られる。その理由
は、デイザマトリクスが例えば第2図(b)のような4
×4であれば、デイザ処理後の画像データには第3図
(b)のような周期性が含まれるので、4ビット毎のビ
ットインタリーブにより2値信号列(5C,5M,5Y,5K)に
は白又は黒が偏在し、白ラン長、及び黒ラン長が長くな
るなるからである。
Further, according to another configuration shown in FIG. 1, if the color binary image data input to the encoding unit is, for example, the halftone image as shown in FIG. 3B, which is area-modulated by the dither method. , Such a color binary image signal (4 C , 4 M , 4 Y , 4 K ) is first subjected to a bit interleave reconstruction unit (3 C , 1 C , 1 M , 1 Y , 1 K ) 3 M, 3 Y, 3 K) to through, the white or black bias large binary signal sequence (5 C, 5 M, 5 Y, 5 K) is obtained. The reason is that the dither matrix is 4 as shown in FIG. 2 (b).
If it is × 4, the image data after dither processing includes the periodicity as shown in FIG. 3 (b), so that the binary signal sequence (5 C , 5 M , 5 Y , 5 K ) is unevenly distributed in white or black, and the white run length and the black run length become long.

更に変化点抽出部(6C,6M,6Y,6K)により、変化点抽出
による2値化、例えば、信号列(5C,5M,5Y,5K)の論理
値変化点を“1"とし、その他の無変化点を“0"とする2
値化をすれば、論理値“1"は上記変化点のみとなる。そ
うすると、新たな2値信号列(7C,7M,7Y,7K)には“0"
ランのラン長が更に長くなり、“0"ラン符号化部11CM,1
1YKによる符号化が効率的となる。又、信号列(7C,7M,7
Y,7K)には特定のビットパターン、例えば“0000",“10
00",“1100"等が多く発生する。そして、例えば1ビッ
トのフラグ#1F又は#2Fを設け、このような特定パター
ンのうち、一番多く発生する特定パターンが検出される
と、そのフラグを“1"とする。フラグのビット数を増や
せば特定パターンが多くある場合でもフラグ化により効
率的に圧縮できる。
Further, the change point extraction unit (6 C , 6 M , 6 Y , 6 K ) performs binarization by change point extraction, for example, the logical value change point of the signal sequence (5 C , 5 M , 5 Y , 5 K ). Is set to “1” and other unchanged points are set to “0” 2
When the value is converted, the logical value "1" becomes only the above change point. Then, the new binary signal sequence (7 C , 7 M , 7 Y , 7 K ) has “0”.
The run length of the run becomes longer, and the "0" run coding unit 11 CM , 1
1 YK encoding becomes efficient. In addition, the signal train (7 C , 7 M , 7
Y , 7 K ) has a specific bit pattern, such as "0000", "10
Many "00", "1100", etc. are generated. For example, if a 1-bit flag # 1F or # 2F is provided and the most frequent specific pattern is detected, the flag is detected. Is set to 1. If the number of bits of the flag is increased, even if there are many specific patterns, it can be compressed efficiently by flagging.

以下添付図面を参照しながら本発明に係る実施例を更に
詳細に説明する。実施例は前述の如く、前処理部(1C,1
M,1Y,1K)と、符号化部(2CM,2YK)との組合せからな
り、2値のカラー信号C,M,Y,Kを処理して、圧縮された
画像信号列13CM,13YKを得るものである。先ず、前処理
部(1C,1M)はカラー画像信号(4C,4M)に前処理を加え
る、符号化部2CMは前処理された信号列(7C,7M)に所定
の符号化を行い、更に合成部12CMにより1列の信号列13
CMに変換する。カラー信号のY,Kに対しても同様の処理
が加えられる。以下順次図面に従って説明するものであ
るが、第1図にも示されているように、C信号とM信号
との組合せはY信号とK信号との組合せに同等である。
そこで、C信号とM信号との組合せで説明を行う。又、
第1図に示した実施例の各構成要素は共通部分を多くも
つので、説明の重複を防ぐために、以下説明する添付の
図面は各1色又は2色に対する回路例等である。
Hereinafter, embodiments according to the present invention will be described in more detail with reference to the accompanying drawings. In the embodiment, as described above, the pretreatment unit (1 C , 1
M , 1 Y , 1 K ) and an encoding unit (2 CM , 2 YK ) and processes a binary color signal C, M, Y, K to obtain a compressed image signal sequence 13 You get CM , 13 YK . First, the pre-processing unit (1 C , 1 M ) applies pre-processing to the color image signal (4 C , 4 M ), and the coding unit 2 CM specifies the pre-processed signal sequence (7 C , 7 M ). Encoding is performed, and the synthesizing unit 12 CM further causes one signal sequence 13
Convert to CM . Similar processing is applied to Y and K of color signals. As will be described below sequentially with reference to the drawings, as shown in FIG. 1, the combination of the C signal and the M signal is equivalent to the combination of the Y signal and the K signal.
Therefore, a description will be given using a combination of the C signal and the M signal. or,
Since each constituent element of the embodiment shown in FIG. 1 has many common parts, in order to prevent the description from being duplicated, the accompanying drawings described below show a circuit example or the like for each one or two colors.

前処理部は、信号Cについてみると、ビットインタリー
ブ再構成部3Cと、変化点抽出部6Cからなる。又符号化部
2CMは後述する符号化法の違いによりその内部構成を異
にする(第10図(a)と第11図)。先ず前処理部1Cにつ
いて説明しよう。
Preprocessing section, looking at the signal C, a bit interleaving reconstruction unit 3 C, consisting change point extraction unit 6 C. Also encoding unit
2 CM has a different internal structure due to the difference in encoding method described later (Fig. 10 (a) and Fig. 11). First, let us explain the preprocessing unit 1 C.

〈ビットインタリーブ再構成部〉 第4図(a)及び(b)更に第5図(a)〜(c),第
6図を用いて、ビットインタリーブの手法を説明する。
第4図(a)は例えば第2図(a)又は(b)のデイザ
マトリツクスにより2値化されたC信号4Cであつて、主
走査方向へ40画素、副走査方向へ4画素分の大きさを持
つものを示す。図に付された番号は主走査方向には画素
の番号を、副走査方向にラインの番号を便宜上付したも
のである。このC信号4Cは略4ビット周期の周期性をも
つ。前述したように、このようなテイザ画像は中間調を
表現するにはすぐれるが、ラン長が短くなってしまって
いるのは図をみても明らかである。このC信号4Cに対し
て4ビットのインタリーブを行うと、第4図(a)の1,
2,3,4,…の画素配列が第4図(b)の如き1,5,9,13,17,
…なる配列となり、“白”ラン及び“黒”ラン長が増加
しているのがわかる。4ビットとしたのは、閾値処理に
用いたデイザマトリツクスが4ビットであるからである
が、上記ビットインタリーブはデイザマトリツクスと同
一の長さで行った。このようなビットインタリーブ長の
決定の他に、マトリツクスの大きさの整数倍又は整数分
の1の大きさに設定する事もできれば、又は閾値マトリ
ツクス内の近似した値をもつ閾値に対応した周期でグル
ープ化する手法もある。
<Bit Interleave Reconstruction Unit> A bit interleave method will be described with reference to FIGS. 4A and 4B, and FIGS. 5A to 5C and 6.
Figure 4 (a) is, for example, FIG. 2 (a) or (b) of the dither Matrigel try the binarized C signal 4 C der connexion, 40 pixels in the main scanning direction, 4 pixels in the sub-scanning direction Shows the size of minutes. The numbers given in the drawing are numbers of pixels in the main scanning direction and line numbers in the sub-scanning direction for convenience. This C signal 4 C has a periodicity of about 4 bit periods. As described above, such a taser image is excellent for expressing a halftone, but it is clear from the figure that the run length is shortened. When 4-bit interleaving is performed on this C signal 4 C , 1 in FIG.
The pixel array of 2,3,4, ... is 1,5,9,13,17, as shown in FIG.
It can be seen that the array becomes, and the "white" and "black" run lengths are increasing. 4 bits are used because the dither matrix used for the threshold processing is 4 bits, but the bit interleaving was performed with the same length as the dither matrix. In addition to such determination of the bit interleave length, it can be set to an integer multiple of the size of the matrix or a size of an integer, or at a cycle corresponding to the threshold value having an approximate value in the threshold matrix. There is also a method of grouping.

さてこのようなビットインタリーブを行う回路を第6図
に示す。第6図のビットインタリーブ再構成部3Cは、C
信号4Cの並べ換えのために2つのラインメモリ40,41を
用いる。2つ用いるのはC信号4Cの入力と並べ換え動作
と並べ換えられた信号列5Cを読み出す動作とを同時に行
うためである。即ち、1つのラインメモリに入力(書込
み)するときは、他方のラインメモリは出力(読み出
し)に使われる。1つのラインメモリが同時に書込みと
読出しに使われるのを防ぐために、書込み用のアドレス
カウンタ25と、読み出し用のアドレスカウンタ26と、こ
れらカウンタ25,26の出力を各ラインメモリ40,41に振り
分けるセレクタ27,28,29,30,31,32及び排他制御を行う
ラインメモリ制御部42等がある。ラインメモリ制御部42
は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は“0"であり、セレクタ27は出
力“0"を、セレクタ29は入力“0"を、セレクタ31は出力
“0"を選ぶためにC信号4Cが第1ラインメモリ40に書き
込まれ、一方読み出しアドレスカウンタ26の出力はセレ
クタ28及びセレクタ30により第2ラインメモリ41に入力
し、セレクタ32は第2ラインメモリ41を選ぶ。こうして
書込みと読み出しの同時処理が行え、高速化に寄与す
る。
A circuit for performing such bit interleaving is shown in FIG. The bit interleave reconstruction unit 3 C of FIG.
Two line memories 40, 41 are used for the rearrangement of the signal 4 C. Two of them are used in order to simultaneously perform the input of the C signal 4 C , the rearrangement operation, and the operation of reading out the rearranged signal train 5 C. That is, when inputting (writing) to one line memory, the other line memory is used for output (reading). To prevent one line memory from being used for writing and reading at the same time, a write address counter 25, a read address counter 26, and a selector that distributes the outputs of these counters 25, 26 to each line memory 40, 41. 27, 28, 29, 30, 31, 32 and a line memory control unit 42 for performing exclusive control. Line memory controller 42
Is the second line memory write signal 36 or the first line memory write signal 37 in synchronization with the BD signal 38 generated for each line.
Are alternately set to "1". Further, the selectors 27, 28 and 31 are arranged to output the second line memory write signal 36 or the first line memory write signal.
A selector that selects an output according to the logical value of 37, while selectors 29, 30, and 32 similarly select an input according to the logical value of the second line memory write signal 36 or the first line memory write signal 37. To do. 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 “0”, the selector 29 inputs “0”, and the selector 31 outputs The C signal 4 C is written to the first line memory 40 to select the output “0”, 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 is set to the second line memory 41. Select the line memory 41. Thus, simultaneous writing and reading can be performed, which contributes to speeding up.

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

又、アドレスカウンタ25,26及びラインメモリ40,41の駆
動クロツクは同期クロツク35CMである。この同期クロッ
ク35CMは符号化部2CMで生成されるもので、符号化部2CM
での符号化の際に、信号列があるパターンのときは強制
的に所定のコードを挿入する必要が生じ、その場合、そ
の強制挿入コードを合成部10が送出し終るまで、ビット
インタリーブ再構成部3Cの動作を停止するために用いら
れる(詳しくは後述する)。
The driving clocks of the address counters 25 and 26 and the line memories 40 and 41 are the synchronous clocks 35 CM . The synchronous clock 35 CM is intended to be generated by the encoding unit 2 CM, the encoding unit 2 CM
At the time of encoding in, when a signal string has a certain pattern, it is necessary to forcibly insert a predetermined code, and in that case, the bit interleaved reconstruction is performed until the composing unit 10 finishes sending the forced insertion code. It is used to stop the operation of part 3 C (details will be described later).

以上述べたようなビットインタリーブ再構成部がカラー
信号の各色についてビットインタリーブを行う。ところ
で、第1図をみてもわかるように、C信号4CとM信号4M
とは同時に符号化部2CMで符号化される。又、後述する
ように、“0"ラン符号化部11CMではC信号とM信号をま
とめてランレングス符号化する。又、“1"を含むブロッ
クの符号化は所定の長さ毎に行う。即ち、C信号とY信
号のビットインタリーブ前処理は同期しており、従って
第6図に示した構成要素のうち、第1ラインメモリ40と
第2ラインメモリ41以外は共通化でき、この共通化によ
り回路の小規模化に寄与する。信号Yと信号Kとの組合
せについても同様である。
The bit interleave reconstructing unit as described above performs bit interleaving for each color of the color signal. By the way, as you can see in Figure 1, C signal 4 C and M signal 4 M
And are simultaneously encoded by the encoding unit 2 CM . Also, as will be described later, the "0" run coding unit 11 CM collectively performs the run length coding on the C signal and the M signal. Further, the coding of the block including "1" is performed for each predetermined length. That is, the bit interleaving preprocessing of the C signal and the Y signal is synchronized, and therefore, of the constituent elements shown in FIG. 6, all but the first line memory 40 and the second line memory 41 can be shared. Contributes to miniaturization of the circuit. The same applies to the combination of the signal Y and the signal K.

〈変化点抽出〉 第7図(b)に変化点抽出のための回路の一例を、同図
(a)にその結果を示す。第7図(b)の変化点抽出部
6Cの一例は信号Cの主走査方向に1画素隣接する画素同
士の間の変化点を抽出する場合である。1つ隣接する画
素を検出するためにフリップフロップ20を用い、変化点
を検出するためEX-ORゲート(排他論理和ゲート)21を
用いる。4ビツトインタリーブをかけられた2値信号列
5Cに対し、注目画素と同一走査線にあるその直前の画素
とEX-ORをとる。即ち、第2図(a)の閾値Dijに2値信
号列5Cの各画素を対応させれば、EX-ORゲート21の出力D
xij7Cは Dxij=Dij Di-1,j である。第4図(b)と第7図(a)を比較してもわか
るように、“0"ラン(このような“0"ランを“白”ラン
とも呼ぶ)が長くなっていて、ランレングス符号化に適
する事が一目瞭然である。又、ビットインタリーブされ
た信号列5Cは“白”ランと“黒”ランのラン長が長い。
このような信号列5Cから変化点を抽出した信号列7Cに表
われる特徴は次のようである。
<Extraction of Change Point> FIG. 7B shows an example of a circuit for extracting the change point, and FIG. 7A shows the result. Change point extraction unit in FIG. 7 (b)
An example of 6 C is a case where a change point between pixels adjacent to one pixel in the main scanning direction of the signal C is extracted. A flip-flop 20 is used to detect one adjacent pixel, and an EX-OR gate (exclusive OR gate) 21 is used to detect a change point. Binary signal sequence with 4-bit interleaving
For 5 C , EX-OR is performed with the pixel immediately before that on the same scan line as the pixel of interest. That is, if each pixel of the binary signal sequence 5 C is made to correspond to the threshold value D ij in FIG. 2A, the output D of the EX-OR gate 21
xij 7 C is D xij = D ij D i-1, j . As can be seen by comparing FIG. 4 (b) and FIG. 7 (a), the “0” run (such a “0” run is also called a “white” run) is longer, and the run length is longer. It is obvious that it is suitable for encoding. Further, the bit-interleaved signal train 5 C has long run lengths of “white” runs and “black” runs.
The characteristics appearing in the signal train 7 C obtained by extracting the change points from the signal train 5 C are as follows.

:論理値“1"が前後を“0"に囲まれて孤立的に偏在す
る(即ち、“0"ランの後に“1000"が発生する)確率が
高くなる。これは、“白”ラン,“黒”ランが長けれ
ば、それらの両端にのみ変化点“1"が発生するからであ
る。
: There is a high probability that the logical value “1” is unevenly distributed surrounded by “0” before and after (ie, “1000” occurs after “0” run). This is because if the “white” run and the “black” run are long, the change point “1” occurs only at both ends thereof.

:一方、長い“白”ラン中の孤立した“黒”、及び長
い“黒”ラン中の孤立した“白”はその変化点を捕える
と“1100"となる。
: On the other hand, the isolated “black” in a long “white” run and the isolated “white” in a long “black” run have a change point of “1100”.

上記及びから、信号列13には“1000"と“1100"が多
く発生する事がわかる。この事は第7図(a)をみれば
自ずと明らかである。上記の事実は、後述する符号化と
大きく関わる。
From the above and above, it can be seen that "1000" and "1100" are frequently generated in the signal train 13. This is obvious by looking at FIG. 7 (a). The above facts have a lot to do with the encoding described below.

以上、冗長度抑圧符号化のための前処理について説明し
た。そこで、次に、符号化部について、実施例を2つ説
明する。上記の前処理部はある意味では各色の信号に対
して独立して処理するものであった。以下説明する符号
化の実施例は、2色の信号(例えば、信号Cと信号M)
1つの信号として処理するものである。
The preprocessing for redundancy suppression coding has been described above. Therefore, two embodiments of the encoding unit will be described next. In a sense, the pre-processing unit described above independently processes the signals of the respective colors. The encoding embodiment described below has two color signals (for example, the signal C and the signal M).
It is processed as one signal.

〈第1の符号化の実施例〉 第9図(a)に、第7図(a)に変化点抽出された信号
列7Cにおける、ブロックの切出し方を示す。尚図中、
(C1,M1)は1ライン目のシアン,1ライン目のマゼンタ
を、(C2,M2)は2ライン目のシアン,2ライン目のマゼ
ンタを表わす。又、図中慣例に従い“0"を“白”、“1"
を“黒”と称して表わす。桁数を表示し易いからであ
る。先ず、1ライン目のシアン(信号C),マゼンタ
(信号M)に対しては、2系列の信号中で同時に“0"の
みしか含まないものを白(“0")ランとして切出す。例
えば1ライン目の“白34"は白のランが34個続くという
意味である。このような白(“0")ランに対して例えば
MH符号化による圧縮を行う。
<First encoding embodiment of> FIG. 9 (a), in the signal sequence 7 C extracted change point in FIG. 7 (a), shows a cut-out how block. In the figure,
(C1, M1) represents cyan on the first line and magenta on the first line, and (C2, M2) represents cyan on the second line and magenta on the second line. Also, "0" is changed to "white" and "1" according to the convention in the figure.
Is referred to as “black”. This is because it is easy to display the number of digits. First, for cyan (signal C) and magenta (signal M) on the first line, two series signals that include only “0” at the same time are cut out as white (“0”) runs. For example, "white 34" on the first line means that 34 white runs continue. For such a white (“0”) run, for example
Performs compression by MH encoding.

一方、いずれかの列に1つでも“1"が表われると、そこ
から4ビット長で4行2列のブロックを切出す。このよ
うなブロックは必ずどこかに1つ以上の“1"を含むもの
であるが、1列全てが“0"であるものもあり得る。前述
したような前処理を行うと、各色毎に全体で“0"ランが
多くなるが、上記のような全色をまとめたブロックの切
出しを行うと、1列全てが“0000"であるにも関わらず
非ブロックに含まれてしまうものが多くなる。これは、
同一画素においては、C信号とM信号の確率過程は独立
であるから、色間で“0"と“1"の発生がランダムである
ためである。この“0000"のパターンが多いという事
は、更なる圧縮の可能性を示唆している。これについて
は、別の実施例の説明に譲る。
On the other hand, if even one "1" appears in any column, a block of 4 rows and 2 columns having a length of 4 bits is cut out from that. Such a block always contains one or more "1" s somewhere, but it is possible that one column contains "0" s. When the pre-processing as described above is performed, the number of "0" runs increases for each color as a whole. However, when cutting out a block that collects all the colors as described above, one column has "0000". Despite that, many items are included in non-blocks. this is,
This is because, in the same pixel, the stochastic processes of the C signal and the M signal are independent, so that the occurrence of "0" and "1" between the colors is random. The fact that there are many "0000" patterns suggests the possibility of further compression. This will be described in another embodiment.

こうして得られたブロック内の発生し得るパターンは第
8図(a)に示した16種類のパターンの組合せである。
このような16種類のパターンに対して便宜上B0〜B15
記号名称を付け、第9図(a)に示す。例えば、第2ラ
インの最初のブロックは、(B8,B9)と表わせる。とこ
ろで、第9図(a)の第2ラインは“0"ランでないブロ
ックから始まっている。このような場合、非ゼロである
ブロックの前に強制的に1つの“白0"(MH符号では“00
110101")を挿入する。又、非ゼロのブロックが連続す
るような場合も同様にする。“0"ランとブロックが必ず
交互に発生するようにするためである。
The patterns that can be generated in the block thus obtained are combinations of 16 types of patterns shown in FIG.
For convenience sake, symbol names B 0 to B 15 are given to such 16 types of patterns and shown in FIG. 9 (a). For example, the first block of the second line, and (B 8, B 9) expressed. By the way, the second line in FIG. 9 (a) starts from a block that is not a "0" run. In such a case, one "white 0" (MH code "00" is forced before the non-zero block.
110101 ") is inserted, and the same applies when non-zero blocks are consecutive, so that" 0 "runs and blocks are always generated alternately.

ところで前述したように、前処理によりブロック中には
“1000"及び“1100"が多く発生する。又、いずれか一方
の色に“1"が発生すると、そこをブロックの一部とした
から、“0000"も多い。そこで、このように多数発生す
るパターンに注目して、所定の符号化を行ってビット長
をそのパターン長より短くすれば、符号化による圧縮率
は向上する。さて、前記例では“0000",“1000"及び“1
100"の3種類のパターンが多く発生する。第8図(a)
の実施例では、2ビットの符号“00"をB0=“0000"に、
“01"をB3=“1100"に割当てるというものである。この
ようにして圧縮化を達成する。又、第8図(a)中のい
ずれのコードも互いにユニークなものであって、混同は
生じない組合せになつている。圧縮コード“10"はB0,B3
以外のパターンと判別できなくなるから採用しない。こ
のようにすると、多く発生するパターン“0000"及び“1
100"が2ビットに圧縮される。一方、“0000"、“110
0"、“1000"以外のパターンが同一確率で多数発生する
ような画像にあっては、圧縮符号コードを3ビットとす
る。そうすると、“000"、“001"、“010"、“011"の4
種類の圧縮コードが可能となる。個々の圧縮では2ビッ
トの例よりも圧縮率が悪化するが、全体の圧縮率は更に
向上する。第9図(b)は上記の規約に従って、各信号
の圧縮パターンを表した図である。第9図(b)中、MH
とはMH符号化を表す。第9図(b)をみれば単なるMH符
号化よりもはるかに圧縮率が向上しているのがわかる。
By the way, as described above, a lot of "1000" and "1100" are generated in the block due to the preprocessing. Further, when "1" occurs in one of the colors, it becomes a part of the block, and therefore "0000" is also large. Therefore, if attention is paid to such a large number of generated patterns and predetermined coding is performed to make the bit length shorter than the pattern length, the compression rate by coding is improved. Now, in the above example, "0000", "1000" and "1"
Three types of patterns of 100 "occur frequently. Fig. 8 (a)
In the embodiment, the 2-bit code “00” is set to B 0 = “0000”,
"01" is that the B 3 = assigned to "1100". In this way compression is achieved. Further, all the codes in FIG. 8 (a) are unique to each other, and are a combination that does not cause confusion. Compressed code “10” is B 0 , B 3
Not adopted because it cannot be distinguished from other patterns. In this way, the patterns "0000" and "1"
100 "is compressed to 2 bits, while" 0000 "and" 110 "
For an image in which many patterns other than 0 "and" 1000 "occur with the same probability, the compression code is set to 3 bits. Then," 000 "," 001 "," 010 "," 011 " Of 4
Different types of compressed code are possible. The compression ratio is worse in the individual compression than in the 2-bit example, but the overall compression ratio is further improved. FIG. 9B is a diagram showing a compression pattern of each signal in accordance with the above rules. MH in Fig. 9 (b)
Represents MH encoding. It can be seen from FIG. 9 (b) that the compression ratio is much higher than that of simple MH coding.

第10図(a)はかかる符号化のための回路の一例であ
る。図中、RL(ランレングス)カウンタ51,セレクタ52,
“白"MH符号化ROM53等が“0"(“白”)ランを符号化し
て、ラッチ54に符号コードをラッチする。又検出回路50
は、第10図(b)にその詳細図を示すように、信号列
5C,5Mの変化(“0"→“0"、“0"→“1"、“1"→“0"、
“1"→“1")を検出する。RLカウンタ51はCLKを駆動ク
ロツクとするカウンタで、そのEN(付勢)端子に“1"が
入力すると、カウント可となり、CL(クリア)端子に
“1"が入力するとクリアされる。従って、RLカウンタ51
は、信号列5C及び5M両者が“0"である間はカウントし続
け、そのカウント値に応じたMH符号コードをラッチ54に
入力する。信号列5C又は5Mのいずれかが“0"から“1"に
変化すれば、その時のカウント値の符号コードが信号70
を介してラッチ54にラッチされ、同時にカウンタ51はク
リアされる。
FIG. 10 (a) is an example of a circuit for such encoding. In the figure, RL (run length) counter 51, selector 52,
The "white" MH encoding ROM 53 or the like encodes the "0"("white") run and latches the code code in the latch 54. Also detection circuit 50
As shown in the detailed diagram in Fig. 10 (b),
Change of 5 C , 5 M (“0” → “0”, “0” → “1”, “1” → “0”,
"1" → "1") is detected. The RL counter 51 is a counter that uses CLK as a driving clock. When "1" is input to its EN (energization) terminal, counting is enabled, and it is cleared when "1" is input to the CL (clear) terminal. Therefore, the RL counter 51
Keeps counting while both signal sequences 5 C and 5 M are “0”, and inputs the MH code code corresponding to the count value to the latch 54. If either the signal sequence 5 C or 5 M changes from “0” to “1”, the sign code of the count value at that time is signal 70.
Is latched by the latch 54 via the, and the counter 51 is cleared at the same time.

一方、4ビットシフトレジスタ61は信号列5Cを、4ビッ
トシフトレジスタ62は信号5Mを夫々、4ビット長の間保
持する。ブロック符号化ROM63,64は4ビットシフトレジ
スタ61,62の出力を夫々第8図(a)のような規則に従
った符号化を行う。一方、4ビットカウンタ55は検出回
路50が、信号列5C,5Mの“0"から“1"への変化をとらえ
て、その変化から4ビットタイム後に信号71を付勢す
る。このタイミングにブロック符号化ROM63,64の出力を
夫々ラッチ65,66にラッチする。合成器67は、夫々符号
化したコードを合成してシフトレジスタ63に格納するた
めのものである。MH符号は可変長であるからこのような
合成器が必要となる。シフトレジスタ63はパラレル−シ
リアル変換を行う。
On the other hand, the 4-bit shift register 61 holds the signal train 5 C and the 4-bit shift register 62 holds the signal 5 M for a 4-bit length. The block coding ROMs 63 and 64 respectively code the outputs of the 4-bit shift registers 61 and 62 according to the rules shown in FIG. On the other hand, in the 4-bit counter 55, the detection circuit 50 detects the change of the signal train 5 C , 5 M from “0” to “1”, and activates the signal 71 4 bit time after the change. At this timing, the outputs of the block coding ROMs 63 and 64 are latched in the latches 65 and 66, respectively. The synthesizer 67 is for synthesizing the encoded codes and storing them in the shift register 63. Since the MH code has a variable length, such a combiner is required. The shift register 63 performs parallel-serial conversion.

ANDゲート60はブロックがラインの先頭から開始すると
きに、前述したように白“0"に対応するMHコードを挿入
するためにある。ANDゲート59は1つのブロックに続い
て、“0"ランが入力せずに直ちに“1"の信号が入力した
とき(信号列5C又は5Mのいずれかが“1"であり、かつ信
号72が“1")に、白“0"に対応するMHコードを挿入する
ためにある。白“0"挿入部56はこの1つの“白”を挿入
するためにあり、ANDゲート59,60のいずれかが開くと、
セレクタ52に“0"を出力する。こうして、白MH符号化RO
M53は“0"に対応するMHコード=“00110101"を出力し、
白“0"が強制的に挿入される。尚、クロツクコントロー
ル57は前述のビットインタリーブ部の同期クロツク35CM
を生成する回路であるが、上記強制挿入のタイミング
に、この“00110101"がシフトレジスタ68から出力され
終るまで、同期クロツク35CMの発生を止める。ラインメ
モリ40又は41への入力とシフトレジスタ68からの出力の
同期取りのためである。こうして、第4図(a)のC信
号4C及びM信号4Mから圧縮率の高い圧縮データ12CMが得
られる。
The AND gate 60 is for inserting the MH code corresponding to the white "0" as described above when the block starts from the beginning of the line. The AND gate 59 is connected to one block, and when a "1" signal is immediately input without inputting a "0" run (either the signal sequence 5 C or 5 M is "1", and the signal is 72 is for inserting the MH code corresponding to white “0” in “1”). The white "0" insertion part 56 is for inserting this one "white". When either AND gate 59, 60 is opened,
Output “0” to the selector 52. Thus, white MH encoded RO
M53 outputs the MH code corresponding to “0” = “00110101”,
White “0” is inserted forcibly. The clock control 57 is a 35 CM synchronous clock of the bit interleave section described above.
However, the generation of the synchronous clock 35 CM is stopped until "00110101" is output from the shift register 68 at the timing of the forced insertion. This is for synchronizing the input to the line memory 40 or 41 and the output from the shift register 68. In this way, compressed data 12 CM having a high compression rate can be obtained from the C signal 4 C and the M signal 4 M of FIG. 4 (a).

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

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

〈第2の符号化の実施例〉 前述の実施例は、ブロック中に多数発生する“0000"を
コード“00"に圧縮するものであった。本実施例は、こ
の“0000"を更に効率良く圧縮しようというものであ
る。そのためには、ブロックの切出しについては、前記
実施例と同様に第9図(a)のように行う。そして、
“1"を含む4行2列のブロックを4行1列の2つのブロ
ックとみて、その中に4ビットの“0000"(これを便宜
上、ゼロパターンと呼ぶ)があれば、それを前記実施例
のように“00"とコード化せずに、その代りに“0000"を
圧縮した事を示すフラグを設け、そのフラグの値を“0"
にする。1列中に1つでも“1"があれば、その4行1列
のブロック(そのような1列のブロックを便宜上、非ゼ
ロパターンと呼ぶ)に対応するフラグは“1"とする。こ
のようなフラグを各列に対して設ける。又、非ゼロパタ
ーンに対応するコードは第8図(b)の如く設ける。第
12図(a)はそのフォーマットを示す。C信号に対する
符号コードを#1コード、M信号に対する符号コードを
#2コードとし、これらの符号コードに夫々対応するフ
ラグを#1F,#2Fとする。
<Second Encoding Example> In the above-described example, "0000" generated in large numbers in a block is compressed into a code "00". In this embodiment, this "0000" is compressed more efficiently. For that purpose, the cutting out of the block is performed as shown in FIG. 9 (a) as in the above-mentioned embodiment. And
Consider a block of 4 rows and 2 columns containing "1" as two blocks of 4 rows and 1 column, and if there is a 4-bit "0000" (this is called a zero pattern for convenience), execute it as described above. As in the example, instead of encoding as "00", a flag indicating that "0000" is compressed is provided and the value of that flag is set to "0".
To If even one "1" exists in one column, the flag corresponding to the block of 4 rows and 1 column (such a block of 1 column is called a non-zero pattern for convenience) is set to "1". Such a flag is provided for each column. The code corresponding to the non-zero pattern is provided as shown in FIG. 8 (b). First
Figure 12 (a) shows the format. The code code for the C signal is # 1 code, the code code for the M signal is # 2 code, and the flags corresponding to these code codes are # 1F and # 2F, respectively.

4行2列のブロックはいかなる組合せでも、必ずゼロパ
ターンと非ゼロパターンとの組合せであるから、第12図
(b)に示したいずれか1つのパターンになる。データ
圧縮をこのように行うと、ゼロパターンはコードとして
は現れないので、復号化時に同期ずれが生ずる恐れがあ
る。しかし、復合すべきデータ中には必ずフラグがあ
り、その長さは必ず4ビットであり、そのフラグの論理
値によりフラグに続く#1コード〜#2コードの長さ
(つまり、ブロック内にいくつゼロパターンがあっった
かが)がわかる。又第8図(b)をみてもわかるよう
に、B1〜B15に対応する符号コードは全てユニークであ
る。従って、ゼロパターンをコードが無しと変換して
も、復号化に際し同期ずれが起こる事はない。
Any combination of blocks of 4 rows and 2 columns is always a combination of a zero pattern and a non-zero pattern, so that any one of the patterns shown in FIG. 12 (b) is obtained. When the data compression is performed in this way, the zero pattern does not appear as a code, so that there is a possibility that a synchronization shift may occur during decoding. However, there is always a flag in the data to be reconstituted, the length of which is always 4 bits, and the length of the # 1 code to # 2 code following the flag depends on the logical value of the flag (that is, how many bits are in a block). You can see if there was a zero pattern). Also as can be seen from FIG. 8 (b), reference numeral code corresponding to the B 1 .about.B 15 are all unique. Therefore, even if the zero pattern is converted to have no code, the synchronization will not be lost during decoding.

第9図(a),(b)に示したブロックの切出しを、本
実施例の圧縮化に従って圧縮化すると第14図(c)のよ
うになる。図中の例えばB0/B1はフラグ部が“01",#1
コードは無く、#2コードは“00"である。
When the block cutouts shown in FIGS. 9 (a) and 9 (b) are compressed according to the compression of this embodiment, the result is as shown in FIG. 14 (c). For example, B 0 / B 1 in the figure has a flag portion of “01”, # 1
There is no code, and the # 2 code is "00".

さてこのような符号化を行う回路の一例を第11図に示
す。即ち、前述の第1の実施例(第10図(a)及び
(b))と基本的構成を同等にし、ブロック符号化ROM6
3,64を第11図のようにして、その出力の一部にフラグ出
力を追加するのである。そして、例えばゼロパターンが
このブロック符号化ROMに入力したら、レングスは“1"
(フラグの1ビットのみであるから)、フラグは“0"、
コードは“0"とする。ROMのレングス出力は合成器67に
入力され、合成するときの情報となる。即ち、合成器67
では“0000"を“1"としてしか出力しない。こうして、
“0000"を多く含むような画像信号に対しては更に効果
的な圧縮が可能となる。
Now, FIG. 11 shows an example of a circuit for performing such encoding. That is, the block coding ROM 6 has the same basic configuration as that of the first embodiment (FIGS. 10A and 10B).
The flag output is added to a part of the output of 3,64 as shown in FIG. Then, for example, if a zero pattern is input to this block coding ROM, the length is "1".
(Because there is only 1 bit of the flag), the flag is "0",
The code is "0". The ROM length output is input to the combiner 67 and becomes information when combining. That is, the synthesizer 67
Will only output "0000" as "1". Thus
More effective compression is possible for an image signal containing many “0000”.

上記の実施例では、ブロック長を4ビットとしたが、こ
れには何ら限定はなく、回路規模及び原画像データの種
類に応じて決定される。ちなみに、8ビット長に設定す
ると多少効率が向上する。又更に、“0"ランに対するMH
符号化も符号化のROMテーブルを多少変更することによ
り効率が更に向上する。又、符号化法もMH符号化法に限
らず、他の1次元符号化法にも適用できる。
In the above embodiment, the block length is set to 4 bits, but there is no limitation to this and it is determined according to the circuit scale and the type of original image data. By the way, if it is set to a length of 8 bits, the efficiency will be slightly improved. Furthermore, MH for “0” run
The coding efficiency is further improved by changing the coding ROM table to some extent. Also, the coding method is not limited to the MH coding method, and can be applied to other one-dimensional coding methods.

又、2値のカラー信号C,M,Y,Kは周知のように不図示の
メモリに蓄えられているものを読み出すか、又はリアル
タイムで画像を読取つて2値化処理したものであつても
よい。
As for the binary color signals C, M, Y, K, as is well known, the one stored in a memory (not shown) is read out, or the image is read in real time and binarized. Good.

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

:2値のカラー画像データにビットインタリーブ処理を
施すので、白ラン及び黒ランがバラバラになつたもので
あっても、ラン長が復元されて長くなる。特に閾値マト
リツクスによって中間調処理したカラー画像データに有
効である。
: Since bit interleave processing is applied to binary color image data, the run length is restored and lengthened even if the white run and the black run are scattered. This is particularly effective for color image data that has undergone halftone processing using a threshold matrix.

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

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

:前記の変化点抽出により、所定のパターンをもっ
た信号列(ブロック)が多く発生する。そこでこのブロ
ック内のパターンを各色毎に短いビット長のコードに符
号化して、合成する。又、“0"ランに対しては従来通り
MH符号化等の1次元符号化を適用して符号化する。即
ち、原画像データの種類によっては、変化点抽出された
信号列には“0000",“1000"又は“1100"が多発するの
で、このようなブロックを短いビットの符号化により圧
縮率を高める事ができると共に、2列以上の信号を一本
化できる。
: A large number of signal trains (blocks) having a predetermined pattern are generated by the change point extraction. Therefore, the pattern in this block is encoded into a code having a short bit length for each color and then combined. Also, for "0" runs, it is the same as before.
Encoding is performed by applying one-dimensional encoding such as MH encoding. That is, depending on the type of original image data, "0000", "1000" or "1100" occurs frequently in the signal sequence from which the change points are extracted, so that the compression rate is increased by encoding such blocks with short bits. In addition to being able to do so, it is possible to unify signals from two or more columns.

:更に“0000"なるゼロパターンを1ビットのフラグ
におきかえる事によって、より高度の圧縮化が可能とな
る。
: Furthermore, by replacing the zero pattern of "0000" with a 1-bit flag, a higher degree of compression becomes possible.

[発明の効果] 以上説明したように本発明によれば、色成分毎の配列変
換及び変化点抽出を適切に行なうこおとができ、しかも
抽出された変化点情報を、ライン単位に並行して符号化
する際に複数の色成分が全て“0"となる“0"ランブロッ
クを可変長の符号化方法により符号化することにより、
複数の色成分の画像データの効率の良い符号化を行なう
ことができる。
[Effects of the Invention] As described above, according to the present invention, it is possible to appropriately perform the array conversion and the change point extraction for each color component, and the extracted change point information is paralleled in line units. By encoding the "0" run block in which all of the color components are "0" when encoding with the variable length encoding method,
It is possible to efficiently encode image data of a plurality of color components.

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

第1図は本発明に係る実施例の原理構成図、 第2図(a),(b)は本発明に係る実施例及び従来例
に供されるデイザマトリツクス図、 第3図(a),(b)は従来例における中間調処理によ
るビット分散度が高くなる様子を説明する図、 第4図(a),(b)はビットインタリーブ処理の動作
を説明する図、 第5図(a)〜(c)はビットインタリーブのアドレス
生成の原理を説明する図、 第6図はビットインタリーブ再構成部の回路図、 第7図(a),(b)は変化点抽出部の動作及び回路構
成を説明する図、 第8図(a),(b)は本発明に係る実施例の符号化の
符号コードの一例を説明する図、 第9図(a),(b)は夫々実施例におけるブロック切
出しの手法及び符号化後のコード配列を説明する図、 第10図(a),(b)及び第9図(a)及び(b)に示
された動作を実現する実施例の回路図、 第11図は他の実施例における符号化に供されるROMの構
成図、 第12図(a)〜(c)は他の実施例の符号化法の原理を
説明する図、 図中、 1C,1M,1Y,1K……前処理部、2CM,2YK……符号化部、3C,3
M,3Y,3K……ビットインタリーブ再構成部、4C,4M,4Y,4K
……カラー2値画像データ、5C,5M,5Y,5K……ビットイ
ンタリーブされた信号列、6C,6M,6Y,6K……変化点抽出
部、7C,7M,7Y,7K……変化点抽出された信号、14C,14M,1
4Y,14K……フラグ生成部、15C,15Y,15M,15K……ブロッ
ク符号化部、9CM,9YK……0→1検出部、11CM,11YK……
“0"ラン符号化部、12CM,12YK……合成部、13CM,13YK
…冗長度抑圧された2値信号、16CM……“0"ランブロッ
ク、17C,17M,17Y,17K……判別部である。
FIG. 1 is a principle configuration diagram of an embodiment according to the present invention, and FIGS. 2 (a) and 2 (b) are Diesama matrix diagrams used in the embodiment according to the present invention and a conventional example, and FIG. ) And (b) are diagrams for explaining how the degree of bit dispersion is increased by the halftone process in the conventional example, FIGS. 4 (a) and 4 (b) are diagrams for explaining the operation of the bit interleaving process, and FIG. a) to (c) are diagrams for explaining the principle of bit interleave address generation, FIG. 6 is a circuit diagram of the bit interleave reconstruction unit, and FIGS. 7 (a) and 7 (b) are the operation of the change point extraction unit and 8A and 8B are views for explaining a circuit configuration, FIGS. 8A and 8B are views for explaining an example of a code code of an embodiment of the present invention, and FIGS. 9A and 9B are respectively implementations. FIGS. 10 (a) and 10 (b) for explaining the block cutout method and the code array after encoding in the example. And a circuit diagram of an embodiment for realizing the operation shown in FIGS. 9A and 9B, FIG. 11 is a configuration diagram of a ROM used for encoding in another embodiment, and FIG. ) To (c) are diagrams for explaining the principle of the encoding method of another embodiment, in which 1 C , 1 M , 1 Y , 1 K ... preprocessing unit, 2 CM , 2 YK ... encoding Part, 3 C , 3
M , 3 Y , 3 K ... Bit interleaved reconstruction unit, 4 C , 4 M , 4 Y , 4 K
...... Color binary image data, 5 C , 5 M , 5 Y , 5 K ...... Bit-interleaved signal sequence, 6 C , 6 M , 6 Y , 6 K ...... Change point extractor, 7 C , 7 M , 7 Y , 7 K ...... Change point extracted signal, 14 C , 14 M , 1
4 Y , 14 K …… Flag generator, 15 C , 15 Y , 15 M , 15 K …… Block encoder, 9 CM , 9 YK …… 0 → 1 detector, 11 CM , 11 YK ……
"0" Run coding unit, 12 CM , 12 YK …… Synthesis unit, 13 CM , 13 YK
--- Redundancy suppressed binary signal, 16 CM --- "0" run block, 17 C , 17 M , 17 Y , 17 K --- Discrimination unit.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭59−58972(JP,A) 特開 昭60−77576(JP,A) 特開 昭60−85856(JP,A) 特開 昭53−108217(JP,A) 特開 昭62−82723(JP,A) 特開 昭62−118642(JP,A) 特開 昭62−98921(JP,A) 実開 昭59−17669(JP,U) 特公 昭49−28762(JP,B1) 特公 昭54−13332(JP,B2) 特公 昭54−33886(JP,B2) 特公 昭57−31703(JP,B2) 特公 平5−8621(JP,B2) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP 59-58972 (JP, A) JP 60-77576 (JP, A) JP 60-85856 (JP, A) JP 53- 108217 (JP, A) JP 62-82723 (JP, A) JP 62-118642 (JP, A) JP 62-98921 (JP, A) Actual development Sho 59-17669 (JP, U) JP-B-49-28762 (JP, B1) JP-B-54-13332 (JP, B2) JP-B-54-33886 (JP, B2) JP-B 57-31703 (JP, B2) JP-B 5-8621 (JP, B2)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の色成分の画像データを入力する入力
手段と、 前記入力手段により入力された画像データに対して、色
成分毎に所定の画素数のブロック単位で配列変換処理を
施す変換手段と、 前記変換手段により夫々配列変換された複数の色成分の
画像データの変化点情報を抽出する抽出手段と、 前記抽出手段により夫々抽出された複数の色成分の変化
点情報をライン単位に並行して符号化する符号化手段と
を有し、 前記符号化手段は、前記抽出手段により抽出された夫々
の色成分の変化点情報から、複数の色成分が全て“0"と
なる“0"ランブロックを可変長の符号化方法により符号
化することを特徴とする符号化装置。
1. Input means for inputting image data of a plurality of color components, and conversion for performing array conversion processing on the image data input by the input means in block units of a predetermined number of pixels for each color component. Means, extraction means for extracting change point information of image data of a plurality of color components respectively array-converted by the converting means, and change point information of a plurality of color components respectively extracted by the extracting means in line units Coding means for coding in parallel, wherein the coding means is configured such that all the plurality of color components are “0” from the change point information of each color component extracted by the extraction means. An encoding device characterized in that a run block is encoded by a variable length encoding method.
JP60237721A 1985-10-25 1985-10-25 Encoder Expired - Fee Related JPH0789621B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60237721A JPH0789621B2 (en) 1985-10-25 1985-10-25 Encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60237721A JPH0789621B2 (en) 1985-10-25 1985-10-25 Encoder

Publications (2)

Publication Number Publication Date
JPS6298919A JPS6298919A (en) 1987-05-08
JPH0789621B2 true JPH0789621B2 (en) 1995-09-27

Family

ID=17019508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60237721A Expired - Fee Related JPH0789621B2 (en) 1985-10-25 1985-10-25 Encoder

Country Status (1)

Country Link
JP (1) JPH0789621B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08204577A (en) * 1995-01-26 1996-08-09 Sega Enterp Ltd DATA ENCODING DEVICE, DATA DECODING DEVICE, DATA ENCODING METHOD, AND DATA DECODING METHOD
TW358165B (en) * 1997-03-24 1999-05-11 Advantest Corp Compression of data patterns and decompression method, the compression and decompression device
US6661839B1 (en) 1998-03-24 2003-12-09 Advantest Corporation Method and device for compressing and expanding data pattern

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1403883A (en) * 1971-09-15 1975-08-28 Koch Light Lab Ltd Polymeric morpholine derivatives for gel permeation chromato graphy
JPS5413332A (en) * 1977-07-01 1979-01-31 Olympus Optical Co Ltd Display device of focal point of camera
JPS5731703A (en) * 1980-08-02 1982-02-20 Miura Kogyo Kk Shell and tube through boiler
JPS5958972A (en) * 1982-09-28 1984-04-04 Toshiba Corp Data compressor

Also Published As

Publication number Publication date
JPS6298919A (en) 1987-05-08

Similar Documents

Publication Publication Date Title
EP0030437B1 (en) Method and apparatus for compression and decompression of digital image data
US4399467A (en) Method and apparatus for image data compression and decompression
JPH08125868A (en) Image processing apparatus and method
WO1996017469A1 (en) Methods performing 2-dimensional maximum differences coding and decoding during real-time facsimile image compression and apparatus
JPH0789618B2 (en) Image coding method
JP3231800B2 (en) Image encoding apparatus and image encoding method
JPH0789621B2 (en) Encoder
JPH07105730B2 (en) Encoder
US7286264B2 (en) None-of-the-above digital halftone compression and decompression
JPH0789619B2 (en) Encoder
JPS6298922A (en) Redundancy reduction coding method
JP2634793B2 (en) Color image signal encoding device
JP2713298B2 (en) Color image signal decoding device
JPS6367967A (en) Redundancy suppression coding system
US6272256B1 (en) Fast compression of periodic halftoned bitonal images
JPS6282724A (en) Redundancy reduction coding method
JPS6367968A (en) Redundancy reduction coding method
JPS6298920A (en) Redundancy reduction coding method
JPS62118643A (en) Redundancy reduction coding method
JPS6315575A (en) Redundancy suppression coding system
JPS6367966A (en) Redundancy reduction coding method
JPS6398283A (en) Redundancy reduction coding method
JPS6367969A (en) Redundancy reduction coding method
JPS6315535A (en) Redundancy reduction coding method
JPS6398284A (en) Redundancy reduction coding method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees