JPS6174455A - Coding control system of binary picture signal - Google Patents

Coding control system of binary picture signal

Info

Publication number
JPS6174455A
JPS6174455A JP59195848A JP19584884A JPS6174455A JP S6174455 A JPS6174455 A JP S6174455A JP 59195848 A JP59195848 A JP 59195848A JP 19584884 A JP19584884 A JP 19584884A JP S6174455 A JPS6174455 A JP S6174455A
Authority
JP
Japan
Prior art keywords
signal
pattern
picture
dither
gradation
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
JP59195848A
Other languages
Japanese (ja)
Inventor
Shigeru Yoshida
茂 吉田
Yoshiyuki Okada
佳之 岡田
Toru Sato
透 佐藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59195848A priority Critical patent/JPS6174455A/en
Publication of JPS6174455A publication Critical patent/JPS6174455A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To code a binary dither picture by using a pattern of a dither matrix period so as to attain forecasting and switching a document picture and an intermediate tone picture so as to increase the compression rate even to a picture where the document and intermediate tone picture exist in mixture. CONSTITUTION:A dither picture signal (a) mixed with the document and intermediate picture from an input terminal 3 of a dither picture signal of a coding control system of a binary picture signal is fed to a ROM 6 via shift registers 4, 5. Further, a line number from an input terminal 12 of a line number and a history signal (h) from a register 7 are fed to the ROM 6 as an address. The ROM 6 and a register 7 detect whether a specific pattern appearing easily in the pattern comprising plural picture elements appears in the signal (a) or not. Further, the output of the register 4 is fed to a variable length coder 8 and an MH coder 9, and forecast coding is applied by the gradation given to the pattern by the coder 8. Outputs of the register 7 and the coders 8, 9 are fed to a multiplexer 10 to switch the document and intermediate tone pictures thereby applying coding to the binary dither picture.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、中間調画像と文書等との混在した画像信号を
、符号化して帯域圧縮する2値画像信号の符号化制御方
式に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a binary image signal encoding control method for encoding and band-compressing an image signal containing a mixture of a halftone image and a document, etc. be.

〔従来の技術〕[Conventional technology]

中間調画像を白黒2値で表現する方法として、組織的デ
ィザ法が知られている。このディザ法は、第8図に示す
ように、多値画像信号rxyを、画素毎に闇値が変化す
るディザ信号Dxyと比較回路1で比較して、2値ディ
ザ画像信号Pxyとするものであり、この2値ディザ画
像信号Pxyは符号化回路2に於いてデータ圧縮される
ものである。
A systematic dither method is known as a method for expressing a halftone image in black and white binary values. In this dither method, as shown in FIG. 8, a multilevel image signal rxy is compared with a dither signal Dxy whose darkness value changes for each pixel in a comparator circuit 1 to generate a binary dither image signal Pxy. This binary dither image signal Pxy is data compressed in the encoding circuit 2.

組織的ディザ法は、ディザ信号Dxyが画素位置x、 
 yによって定まっており、16階調の場合は、第9図
に示すマトリクスで与えられる。同図の(a)はベイヤ
型、(b)は網点型、(C1は渦巻型と称されるもので
ある。このディザマトリクスは、画面全体にわたって同
じものが繰り返し使用されるものであり、多値画像信号
から比較回路1によって白黒2値のディザ画像信号が形
成されることになる。
In the systematic dither method, the dither signal Dxy is set at pixel position x,
y, and in the case of 16 gradations, it is given by the matrix shown in FIG. In the figure, (a) is the Bayer type, (b) is the halftone type, and (C1 is called the spiral type. This dither matrix is the same one that is used repeatedly over the entire screen, A binary black and white dithered image signal is formed from the multivalued image signal by the comparator circuit 1.

ディジタル・ファクシミリ方式は、通常、白黒2値の文
書画像の伝送に用いられるが、中間調画像を伝送する場
合、前述のディザ画像に変換して伝送すれば良いことに
なる。又ディジタル・ファクシミリ方式では、伝送時間
を短縮する為に、データ圧縮処理を行っている。このデ
ータ圧縮方式として、国際標準のMH方式(Modif
ied Huff−man方式)と、MR方式(Mod
ified RE A D方式)とが提案されている。
The digital facsimile method is normally used to transmit black and white binary document images, but when transmitting halftone images, it is sufficient to convert them into the dithered images described above and transmit them. Furthermore, in the digital facsimile system, data compression processing is performed to shorten transmission time. The international standard MH method (Modif) is used as this data compression method.
ied Huff-man method) and MR method (Mod
IFID READ method) has been proposed.

しかし、これらの方式は、隣接画素間の相関を利用して
データ圧縮を行うもので、文書を対象としているもので
あるから、隣接画素間の相関が小さくなるディザ画像に
対しては、効率の良いデータ圧縮を行うことができない
ものであった。
However, these methods perform data compression using the correlation between adjacent pixels, and because they are targeted at documents, they are not efficient for dithered images where the correlation between adjacent pixels is small. It was impossible to perform good data compression.

その為に、MH方式と適合性の良い方式として、従来、
例えば、(1)特開昭57−181270号公報、又は
(2)特開昭58−194465号公報(又は、電子通
信学会技術性告 IE82−45゜「ディザ画像のMH
符号化」)の方式が提案されている。
For this reason, conventionally, as a method that is compatible with the MH method,
For example, (1) JP-A-57-181270, or (2) JP-A-58-194465 (or Institute of Electronics and Communication Engineers technical report IE82-45° "MH of dithered images").
A method of "encoding") has been proposed.

前述の(1)の方式は、ヘイヤ型ディザ画像に於いて、
(黒3.白l)、 (白3.黒1)、(白1゜黒1)の
パターンが発生し易いことに着目したものであり、これ
らのパターンに対して、第10図に示すように、符号を
割当て、これらのパターンの連続する個数を符号化する
ものである。即ち、(黒3.白1)又は(白3.黒1)
のパターンに対して“01”を割当て、(黒1.白3)
又は(白1.黒3)のパターンに対して“00″を割当
て、(黒1.白1)又は(白1.黒1)のパターンに、
対して“10”を割当て、この符号化の終了は“110
”、ランレングス符号化に対しては、“111”を割当
てるものである。
In the method (1) mentioned above, in a Heyer type dithered image,
This study focused on the fact that the following patterns (black 3. white l), (white 3. black 1), and (white 1° black 1) tend to occur, and for these patterns, as shown in Figure 10. , and the number of consecutive patterns is encoded. That is, (black 3. white 1) or (white 3. black 1)
Assign "01" to the pattern, (black 1. white 3)
Or, assign "00" to the pattern of (white 1. black 3), and assign "00" to the pattern of (black 1. white 1) or (white 1. black 1),
"10" is assigned to "10", and the end of this encoding is "110".
”, and “111” is assigned to run-length encoding.

第11図は、前述の方式に於ける一例を示すものであり
、(a)は画像信号、(b)は符号化信号、RLはラン
レングスによるMH符号化期間、PLはパターンレング
ス符号化期間を示し、識別符号rDにより符号系の切換
えを示すものである。MH符号化期間RLに於ける白4
の画素はPL4、黒2の画素はPL2で示している。又
第10図に示すパターンが所定個数連続すると、識別符
号IDによりパターンレングス符号化に切換えるもので
あり、白3.黒1のパターンをPLI、2個連続してい
る白1.黒1のパターンをPL3、白3.黒lのパター
ンをPLIで示している。そして、第10図に示すパタ
ーンが所定個数連続しなくなると、識別符号■Dとして
、第1O図に示す終了符号を用い、MH符号に切換える
ものである。
FIG. 11 shows an example of the above-mentioned method, where (a) is an image signal, (b) is a coded signal, RL is a run-length MH encoding period, and PL is a pattern-length encoding period. The identification code rD indicates switching of the code system. White 4 in MH encoding period RL
The pixel is shown as PL4, and the pixel of black 2 is shown as PL2. Furthermore, when a predetermined number of patterns shown in FIG. 10 are consecutive, the pattern length encoding is switched to by the identification code ID, and white 3. PLI the pattern of black 1, two consecutive white 1. Black 1 pattern is PL3, white 3. The black l pattern is shown in PLI. When a predetermined number of patterns shown in FIG. 10 are no longer consecutive, the end code shown in FIG. 1O is used as the identification code ■D, and the code is switched to the MH code.

又前述の(2)の方式は、予測変換をMH方弐の前処理
として用いるものであり、前記(1)の方式と同様に、
符号化走査線上だけの画像情報を用いることにすると、
符号化画素と同じ闇値となると共に相関が強い4画素前
の画素を参照画素とし、これを予測信号として用いるこ
とになる。
In addition, the method (2) described above uses predictive transformation as preprocessing for the MH method, and similarly to the method (1) described above,
If we decide to use image information only on the encoded scan line,
A pixel 4 pixels before, which has the same darkness value as the encoded pixel and has a strong correlation, is set as a reference pixel, and this is used as a prediction signal.

第12図は、この方式の動作説明図であり、ディザ画像
信号Xと、これより4画素ずらした予測信号X′との間
で、排他的論理和をとって予測誤差信号eを形成し、更
にこの予測誤差信号eから予測外れが生じる毎に白黒反
転するようにして平滑化予測誤差信号e“を形成する。
FIG. 12 is an explanatory diagram of the operation of this method, in which a prediction error signal e is formed by performing an exclusive OR between the dither image signal X and a prediction signal X' shifted by 4 pixels from the dither image signal Furthermore, a smoothed prediction error signal e'' is formed from this prediction error signal e by inverting black and white each time a prediction error occurs.

この平滑化予測誤着信−号e゛について矢印で示すよう
に、ランレングス符号化するもので、PL2.PL2.
PL12.PL4.PL3の符号化が行われることにな
る。この平滑化予測誤差信号e“は、ランレングスが比
較的長くなる為、MH方弐で効率の良い圧縮ができる。
This smoothed predicted erroneous arrival signal e' is run-length encoded as shown by the arrow, and PL2. PL2.
PL12. PL4. PL3 encoding will be performed. Since this smoothed prediction error signal e'' has a relatively long run length, it can be efficiently compressed using the MH method.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

前述の(1)の方式″は、文書画像と中間調画像とを含
む混在画像に対して符号系の切換えにより符号化するも
のであるから、比較的効率の良いデータ圧縮が可能とな
るが、ディザ画像に於いて特定のパターンの連続する個
数を符号化する為、濃度変化が大きいことにより、パタ
ーンの変化が激しい画像領域に対しては、符号量が多く
なる欠点がある。又、静電式記録装置には解像度の高い
ヘイヤ型が適し、感熱記録装置やレーザプリンタにはド
ツトの潰れによる階調特性の劣化を補償できる網点型又
は渦巻型が通しているが、この従来の(1)の方式では
、ベイヤ型についてのものであり、記録装置に最適なデ
ィザの型を選択することができない欠点があった。
The above-mentioned method (1)" encodes a mixed image including a document image and a halftone image by switching the coding system, and therefore enables relatively efficient data compression. Since the number of consecutive specific patterns in a dithered image is encoded, there is a drawback that the amount of code increases for image areas where the pattern changes rapidly due to large density changes. The Heyer type, which has a high resolution, is suitable for type recording devices, and the halftone type or spiral type, which can compensate for the deterioration of gradation characteristics due to dot collapse, is used for thermal recording devices and laser printers. ) is a Bayer type method, and has the drawback that it is not possible to select the dither type most suitable for the recording apparatus.

又前述の(2)の方式は、予測信号として、4画素前の
画素を用いることになるから、第9図の(al〜+c+
に示す総ての4×4デイザマトリクスで作成してディザ
画像を圧縮することができ、記録装置に合わせたディザ
の型の選択が可能であるが、参照画素が符号化画素から
離れている為、隣接画素間の相関が大きい文書画像に対
しては、圧縮比か低下する欠点があった。
Also, in the method (2) mentioned above, since the pixel 4 pixels before is used as the prediction signal, (al~+c+
It is possible to compress the dithered image by creating it with all the 4×4 dither matrices shown in Figure 2, and it is possible to select the type of dithering that matches the recording device, but the reference pixel is far from the encoded pixel. Therefore, for document images in which there is a large correlation between adjacent pixels, there is a drawback that the compression ratio decreases.

本発明は、前述の従来の欠点を改善することを目的とす
るものである。
The present invention aims to improve the above-mentioned conventional drawbacks.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の2値画像信号の符号化制御方式は、ディザマト
リクス周期の複数画素からなるパターンの中の出現し易
い特定パターンが人力画像信号中に出現したか否かを検
出する手段と、前記パターンに与えた階調によって符号
化すべき画素のパターンを予測符号化する手段と、特定
パターンの組合せの連続出現を検知して、ランレングス
符号化から前記予測符号化に切換える手段とを備えて、
2値ディザ画像を符号化するものである。
The encoding control method for a binary image signal of the present invention includes means for detecting whether a specific pattern that is likely to appear among patterns consisting of a plurality of pixels with a dither matrix period has appeared in a human image signal; means for predictively encoding a pixel pattern to be encoded using a gradation given to the gradation; and means for detecting continuous appearance of a combination of specific patterns and switching from run-length encoding to the predictive encoding;
It encodes a binary dither image.

[作用] ディザマトリクス周期のパターンの出現を検出して、混
在画像の文書画像であるか中間調画像であるかを識別し
、それによって予測符号化とランレングス符号化との切
換えを行い、中間調画像に対しては、ディザ画像中の各
パターンに疑似的な階調値を割付けて、予測符号化を行
い、文書画像に対しては、ランレングス符号化を行うも
のである。
[Operation] The appearance of a dither matrix periodic pattern is detected to identify whether the mixed image is a document image or a halftone image, and based on this, switching between predictive coding and run-length coding is performed. For tone images, pseudo tone values are assigned to each pattern in the dithered image and predictive encoding is performed, and for document images, run length encoding is performed.

〔実施例〕〔Example〕

以下図面を参照して、本発明の実施例について詳細に説
明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の実施例の要部ブロック図であり、3は
ディザ画像信号の入力端子、4,5はシフトレジスタ、
6はリードオンリメモリ (ROM)、7はレジスタ、
8は可変長符号器、9はMH符号器、10はマルチプレ
クサ(MPX) 、11は出力端子、12はライン番号
信号の入力端子である。文書と中間調画像の混在画像の
ディザ画像信号aの4画素分が入力端子3に加えられて
、シフトレジスタ4に順次シフトされると、前にシフト
レジスタ4にシフトされていた4画素分のデータbはシ
フトレジスタ5にシフトされる。これらのシフトレジス
タ4.5の並列出力信号c、dは符号化パターンと参照
パターンの画素信号であり、リードオンリメモリ6にア
ドレス信号の一部として入力される。又ライン番号信号
eと、レジスタ7からの履歴信号りとがリードオンリメ
モリ6にアドレス信号の一部として入力される。
FIG. 1 is a block diagram of main parts of an embodiment of the present invention, in which 3 is an input terminal for a dither image signal, 4 and 5 are shift registers,
6 is read-only memory (ROM), 7 is register,
8 is a variable length encoder, 9 is an MH encoder, 10 is a multiplexer (MPX), 11 is an output terminal, and 12 is an input terminal for a line number signal. When 4 pixels of the dithered image signal a of a mixed image of a document and a halftone image are added to the input terminal 3 and sequentially shifted to the shift register 4, the 4 pixels that were previously shifted to the shift register 4 are Data b is shifted to shift register 5. The parallel output signals c and d of these shift registers 4.5 are pixel signals of the encoded pattern and the reference pattern, and are input to the read-only memory 6 as part of the address signal. Also, the line number signal e and the history signal ri from the register 7 are input to the read-only memory 6 as part of the address signal.

ライン番号信号eは、画像の走査線のカウント出力信号
の下位2ビツトの信号を用いて、4ラインの内のライン
番号を指定するものである。又履歴信号りは、オール白
又はオール黒を除く階調パターンの連続個数を示す信号
である。
The line number signal e specifies the line number among the four lines using the lower two bits of the count output signal of the scanning line of the image. The history signal is a signal indicating the number of consecutive gradation patterns other than all white or all black.

リードオンリメモリ6は、前述の人力信号をアドレス信
号として、符号化パターンの出現順位。
The read-only memory 6 uses the above-mentioned human input signal as an address signal to record the appearance order of the encoded patterns.

非階調パターン、終了の何れかを示す信号fと、本発明
で用いる予測符号系かランレングス符号系かを指定する
信号gと、履歴信号りとが読出されてレジスタ7にセッ
トされる。
A signal f indicating either a non-grayscale pattern or an end, a signal g specifying whether a predictive coding system or a run-length coding system is used in the present invention, and a history signal are read out and set in the register 7.

又可変長符号器8には、画像信号すとレジスタ7にセッ
トされた信号fとが入力され、画像信号すの予測符号化
を行うものであり、その出力信号iはマルチプレクサ1
0に加えられる。又MH符号器9は画像信号すが入力さ
れ、MH符号化を行うものであり、出力信号jはマルチ
プレクサ10に加えられる。このマルチプレクサ10は
レジスタ7にセットされた信号gにより切換制御され、
出力端子11に圧縮符号信号kを出力するものである。
The variable length encoder 8 receives the image signal and the signal f set in the register 7, and performs predictive encoding of the image signal.The output signal i is sent to the multiplexer 1.
Added to 0. The MH encoder 9 receives the image signal j and performs MH encoding, and the output signal j is applied to the multiplexer 10. This multiplexer 10 is switched and controlled by the signal g set in the register 7.
A compressed code signal k is output to the output terminal 11.

符号化パターンがオール白又はオール黒以外の階調パタ
ーンの場合に、リードオンリメモリ6から、人力履歴信
号りに+1した履歴信号りが読出され、特定パターンの
連続個数を3とすると、人力履歴信号りが3となった時
は、同じ3の履歴信号りが読出される。又符号化パター
ンがオール白、オール黒或いは階調パターン以外の場合
に、人力履歴信号りに−1した履歴信号りが読出され、
入力履歴信号h 7>< oであると、同じ0が読出さ
れる。このように、履歴信号りは符号化パターンの履歴
を示すものである。又MH符与器9及びマルチプレクサ
IOは、オール白又はオール黒以外の階調パターンが3
個以上連続して、履歴信号りが3を示した時、信号gに
よりM)(方式の符号系から予測符号系の切換制御■が
行われる。
When the encoded pattern is a gradation pattern other than all white or all black, a history signal that is +1 to the human history signal is read from the read-only memory 6, and if the number of consecutive specific patterns is 3, the human history signal is read out from the read-only memory 6. When the signal number becomes 3, the same history signal number of 3 is read out. Also, when the encoded pattern is all white, all black, or other than a gradation pattern, a history signal minus 1 from the human history signal is read out,
If the input history signal h7><o, the same 0 is read out. In this way, the history signal indicates the history of the encoding pattern. Furthermore, the MH encoder 9 and the multiplexer IO have three gradation patterns other than all white or all black.
When the history signal 1 indicates 3 or more consecutively, the switching control (2) from the code system of the M)(system to the predictive code system is performed by the signal g.

MH符号器9は、信号gにより予測符号系に切換えるよ
うに指示されると、画像信号すに変化点があったことに
して、MH符号を出力すると共に、非圧縮モードに入る
ことを示す信号jを出力する。
When the MH encoder 9 is instructed to switch to the predictive coding system by the signal g, it assumes that there is a change point in the image signal and outputs the MH code, and also outputs a signal indicating that it will enter the non-compression mode. Output j.

又履歴信号りがOになった時、信号fにより可変長符号
器8から第5図に示す終了符号“00000001T”
を出力させると共に、MH符号器9による符号化が行わ
れるように制御され、MH方式の符号系と予測符号化の
符号系との切換制御が行われることなる。
When the history signal becomes O, the variable length encoder 8 outputs the termination code "00000001T" shown in FIG. 5 by the signal f.
At the same time, the MH encoder 9 is controlled to perform encoding, and switching control between the MH system encoding system and the predictive encoding encoding system is performed.

次に、ベイヤ型のディザ画像信号を用いた場合について
説明する。
Next, a case will be described in which a Bayer type dither image signal is used.

第2図はベイヤ型ディザ画像の階調パターンを示すもの
であり、4×4のパターンで0〜16の17階調の表現
ができるものである。又各ラインL1〜L4についてみ
ると、第3図に示すパターンが出現することが判る。例
えば、ラインL1については、階調0が0、階調1.2
が1、階調3〜8が2、階調9,10が3、階調11〜
16が4となる。又ラインL4については、階調O〜5
が0、階調6,7が1、階調8〜13が3、階調14.
15が3、階調16が4となる。従って、1×4のパタ
ーンについても階調を割付けることができる。 この1
×4パターンの階調を用いて、符号化パターンの直前の
パターンを参照パターンとし、この参照パターンを予測
値として予測符号化を行うものである。
FIG. 2 shows a gradation pattern of a Bayer type dithered image, which can express 17 gradations from 0 to 16 with a 4×4 pattern. Moreover, when looking at each line L1 to L4, it can be seen that the pattern shown in FIG. 3 appears. For example, for line L1, gradation 0 is 0, gradation 1.2
is 1, gradations 3-8 are 2, gradations 9 and 10 are 3, gradations 11-
16 becomes 4. Also, for line L4, gradation levels O to 5
is 0, gradations 6 and 7 are 1, gradations 8 to 13 are 3, gradation 14.
15 becomes 3, and gradation 16 becomes 4. Therefore, gradations can also be assigned to a 1×4 pattern. This one
Using the x4 pattern of gradation, the pattern immediately before the encoding pattern is used as a reference pattern, and predictive encoding is performed using this reference pattern as a predicted value.

ディザ画像では、階調パターン以外のパターンも出現す
るが、これらの非階調パターンについては、例えば、第
4図に示すように、各パターンの画素を闇値の高い順に
並べると、階調パターンは、ラインL1〜L4に関係な
(、階調0〜4の欄で示す5個の階調パターンとなる。
In a dithered image, patterns other than gradation patterns also appear, but for these non-gradation patterns, for example, if the pixels of each pattern are arranged in descending order of darkness value, as shown in FIG. are five gradation patterns (shown in the gradation 0 to 4 columns) related to lines L1 to L4.

これに対して非階調パターンは11個となり、それらを
5個の階調パターンに近似させて、この非階調パターン
を符号化した後では、近似させた階調パターンを次の参
照パターンとして用いるものである。
On the other hand, there are 11 non-gradation patterns, and after approximating them to 5 gradation patterns and encoding these non-gradation patterns, the approximated gradation patterns are used as the next reference pattern. It is used.

参照パターンが成る階調パターンである時に、符号化パ
ターンの階調は、同じ階調が最も出現し易いものである
。このような出現し易さの順位(予測順位)を用いて符
号化するものである。次の第1表は、参照パターンの階
調と、符号化パターンの階調の出現し易さの順位を示す
ものである。
When the reference pattern is a tone pattern, the same tone is most likely to appear in the encoded pattern. Encoding is performed using such rankings of likelihood of appearance (predicted rankings). Table 1 below shows the ranking of the gradations of the reference pattern and the gradations of the encoded pattern in terms of their likelihood of appearing.

第1表 この第1表に於いて、Rは参照パターンの階調を示し、
Aは符号化パターンの出現順位を示す。
Table 1 In this Table 1, R indicates the gradation of the reference pattern,
A indicates the order of appearance of the encoding pattern.

例えば、参照パターンの階調Rが1の場合、符号化パタ
ーンの階調lの出現順位Aが1であり、階調2の出現順
位Aは2、階調Oの出現順位Aは3、階調3の出現順位
Aは4、階調4の出現順位Aは5となり、又参照パター
ンの階調Rが4の場合は、符号化パターンの出現順位A
の1〜5は、符号化パターンの階R)514.3,2,
1.Oの順序となる。
For example, when the reference pattern's gradation R is 1, the appearance order A of the gradation l of the encoding pattern is 1, the appearance order A of the gradation 2 is 2, the appearance order A of the gradation O is 3, and the appearance order A of the gradation 2 is 2. The appearance order A of tone 3 is 4, the appearance order A of tone 4 is 5, and if the tone R of the reference pattern is 4, the appearance order A of the encoded pattern is
1 to 5 are the ranks of the encoding pattern R) 514.3, 2,
1. The order is O.

このような1〜5の出現順位Aについて、第5図に示す
符号化が行われるものである。同図に於いて、××××
は、非階調パターンの原データを示し、又Tは次のラン
の色を示すもので、”1“は黒、“0”は白を示す。こ
の第5図に示すように、出現順位の最も高い符号化パタ
ーンに最も短い符号“1”を割付け、出現順位の最も低
い符号化パターンには長い符号“000011“を割付
け、非階調パターンについては、非階調パターンの原デ
ータ××××をそのまま挿入した符号“000010x
xxxl″とするものである。又開始符号は非圧縮モー
ドに入る符号であり、終了符号は非圧縮モードから出る
符号である。又非階調パターンについて前述の符号化を
行うと共に、次の符号化に用いる参照パターンとしては
、第4図に示す近似化を行った階調パターンを用いるも
のである。
The encoding shown in FIG. 5 is performed for the appearance order A of 1 to 5. In the same figure, ××××
indicates the original data of the non-gradation pattern, and T indicates the color of the next run, where "1" indicates black and "0" indicates white. As shown in Fig. 5, the shortest code "1" is assigned to the coding pattern with the highest appearance order, the long code "000011" is assigned to the coding pattern with the lowest appearance order, and the non-grayscale pattern is assigned the shortest code "1". is the code “000010x” in which the original data ×××× of the non-gradation pattern is inserted as is.
xxxl''.The start code is the code that enters the non-compressed mode, and the end code is the code that exits the non-compressed mode.The above-mentioned encoding is performed for the non-gradation pattern, and the next code is As the reference pattern used for the calculation, the approximated gradation pattern shown in FIG. 4 is used.

第6図は本発明の実施例の符号化回路の詳細なブロック
図であり、21はディザ画像信号の入力端子、22〜2
5はそれぞれ4ビツトのシフトレジスタ、26はライン
カウンタ、27は画像判定用のり一ドオンリメモリ (
ROM) 、29は予測変換用のり一ドオンリメモリ 
(ROM) 、28゜30はレジスタ、31はMH符号
器、32は可変長符号器、33はマルチプレクサ(MP
X) 、34は出力端子である。
FIG. 6 is a detailed block diagram of the encoding circuit according to the embodiment of the present invention, in which 21 is an input terminal for a dither image signal;
5 is a 4-bit shift register, 26 is a line counter, and 27 is a glue-only memory for image judgment (
ROM), 29 is a glue-only memory for predictive conversion.
(ROM), 28° 30 is a register, 31 is an MH encoder, 32 is a variable length encoder, 33 is a multiplexer (MP
X), 34 is an output terminal.

文書と中間調画像との混在画像のディザ画像信号21a
が入力端子21に加えられ、それぞれ4ビツトのシフト
レジスタ22〜25に順次シフトされる。又ラインカウ
ンタ26は、混在画像の走査線数をカウントして、その
下位2ビツトでラインL1〜L4の何れであるかを示す
ライン番号信号26aを出力するものであり、このライ
ン番号信号26aは、リードオンリメモリ27.29に
アドレス信号の一部として加えられる。
Dithered image signal 21a of mixed image of document and halftone image
are applied to input terminal 21 and sequentially shifted to 4-bit shift registers 22-25, respectively. The line counter 26 counts the number of scanning lines of the mixed image and outputs a line number signal 26a indicating which of lines L1 to L4 the lower two bits are. , are added to the read-only memory 27, 29 as part of the address signal.

又リードオンリメモリ27には、ラインカウンタ26か
らの2ビツトのライン番号信号26aと、シフトレジス
タ22からの4ビツトの画像信号22aと、レジスタ2
8にセットされた3ビツトの履歴信号28bとが、アド
レス信号として加えられ、レジスタ28にセットされる
信号28a。
The read-only memory 27 also contains a 2-bit line number signal 26a from the line counter 26, a 4-bit image signal 22a from the shift register 22, and a 4-bit image signal 22a from the register 22.
A 3-bit history signal 28b set to 8 is added as an address signal, and a signal 28a is set in the register 28.

28bが読出されるものである。そして、階調パターン
が例えば3回連続して入力されたか否か履歴信号28b
を用いた遷移により判定され、その履歴信号28bが3
を示す時、信号28aがマルチプレクサ33に画像判定
切換制御信号として加えられ、予測符号化に切換えられ
る。
28b is what is read out. A history signal 28b determines whether the gradation pattern has been input three times in a row, for example.
The history signal 28b is determined by the transition using 3
When , the signal 28a is applied to the multiplexer 33 as an image judgment switching control signal to switch to predictive coding.

又リードオンリメモリ29には、前述のライン番号信号
26aと、シフトレジスタ24からの4ビツトの画像信
号24aと、シフトレジスタ25からの4ビツトの画像
信号25aとが、アドレス信号として加えられ、レジス
タ30にセントされる信号30a、30bが読出される
。シフトレジスタ24からの4ビツトの画像信号24a
は符号化パターンを示し、シフトレジスタ25からの4
ビツトの画像信号25aは参照パターンを示すものであ
る。このリードオンリメモリ29から読出されてレジス
タ30にセントされた信号30a。
Further, the above-mentioned line number signal 26a, the 4-bit image signal 24a from the shift register 24, and the 4-bit image signal 25a from the shift register 25 are added to the read-only memory 29 as address signals, and the register Signals 30a, 30b, which are centered at 30, are read out. 4-bit image signal 24a from shift register 24
indicates the encoding pattern, and 4 from shift register 25
The bit image signal 25a indicates a reference pattern. A signal 30a is read from the read-only memory 29 and sent to the register 30.

30bは可変長符号器32に入力されて、可変長符号器
32からパターン予測符号32aが出力される。又信号
30aは非階調パターンの切換制御信号としてマルチプ
レクサ33に加えられる。
30b is input to a variable length encoder 32, and a pattern prediction code 32a is output from the variable length encoder 32. Further, the signal 30a is applied to the multiplexer 33 as a non-gradation pattern switching control signal.

MH符号器31にはシフトレジスタ25からの画像信号
25aが加えられて、MH符号信号31aが出力される
。従って、マルチプレクサ33には、MH符号器31か
らのMH符号信号31aと、可変長符号器32からのパ
ターン予測符号信号32aと、シフトレジスタ24から
の画像信号の原データ24aとが加えられ、信号28a
、30aにより切換制御されて、圧縮符号信号が出力端
子34に出力されるものであり、文官画像の場合は、履
歴信号28bが0となるから、MH符号信号31aが選
択出力され、中間調画像の場合は、階調パターンが連続
して履歴信号28bが3となるので、予測符号信号32
a又は原データ24aが選択出力されるもので、非階調
パターンの場合に、第5図の非階調パターンの符号とし
て示すように、原データ××××をそのまま挿入した符
号として、マルチプレクサ33から出力され、階調パタ
ーンの場合は、パターン予測符号信号32aが選択出力
されることになる。
The image signal 25a from the shift register 25 is applied to the MH encoder 31, and an MH code signal 31a is output. Therefore, the MH code signal 31a from the MH encoder 31, the pattern prediction code signal 32a from the variable length encoder 32, and the original data 24a of the image signal from the shift register 24 are applied to the multiplexer 33, and the signal 28a
, 30a, and the compressed code signal is output to the output terminal 34. In the case of a civilian image, since the history signal 28b is 0, the MH code signal 31a is selectively output, and the halftone image is output. In this case, the gradation pattern is continuous and the history signal 28b is 3, so the predicted code signal 32
a or the original data 24a is selectively output, and in the case of a non-gradation pattern, as shown in the code of the non-gradation pattern in FIG. 33, and in the case of a gradation pattern, the pattern prediction code signal 32a is selectively output.

第7図は本発明の実施例の復号回路のブロック図であり
、41は圧縮符号の入力端子、42はデマルチプレクサ
(DMPX) 、43は固定長復号器、44はMH復号
器、45はラインカウンタ、46は予測逆変換用のり一
ドオンリメモリ (ROM)47はシフトレジスタ、4
8はマルチプレクサ(MPX)、49は復号されたディ
ザ画像信号の出力端子である。デマルチプレクサ42を
介して圧縮符号信号が固定長復号器43.MH復号器4
4及びマルチプレクサ48に加えられる。
FIG. 7 is a block diagram of a decoding circuit according to an embodiment of the present invention, in which 41 is an input terminal of a compression code, 42 is a demultiplexer (DMPX), 43 is a fixed length decoder, 44 is an MH decoder, and 45 is a line 46 is a memory (ROM) for predictive inverse conversion; 47 is a shift register; 4
8 is a multiplexer (MPX), and 49 is an output terminal for the decoded dither image signal. The compressed code signal is passed through a demultiplexer 42 to a fixed length decoder 43. MH decoder 4
4 and multiplexer 48.

固定長復号器43は、パターン予測符号が入力されて、
階調バクーンであるか非階調パターンであるかを識別し
て、非階調パターンの場合に、原データを選択出力して
マルチプレクサ48に加えるように制御する制御信号を
出力して、デマルチプレクサ42及びマルチプレクサ4
8に加え、又予測誤差信号を出力してリードオンリメモ
リ46に加える。
The fixed length decoder 43 receives the pattern prediction code, and
It identifies whether it is a gradation pattern or a non-gradation pattern, and in the case of a non-gradation pattern, outputs a control signal to selectively output the original data and add it to the multiplexer 48, and outputs a control signal to control the demultiplexer 48. 42 and multiplexer 4
8, a prediction error signal is also output and added to the read-only memory 46.

リードオンリメモリ46には、前述の予測誤差信号と、
ラインカウンタ45で画像の走査線をカウントしたカウ
ント内容の下位2ビツトのライン番号信号と、シフトレ
ジスタ47からの4ビツトの参照パターンのデータとが
、アドレス信号として入力され、予測逆変換データが読
出されて、シフトレジスタ47に加えられる。
The read-only memory 46 stores the above-mentioned prediction error signal,
The line number signal of the lower 2 bits of the count obtained by counting the scanning lines of the image by the line counter 45 and the 4-bit reference pattern data from the shift register 47 are input as address signals, and the predicted inverse conversion data is read out. and added to the shift register 47.

又M H復号器44には、MH符号信号が加えられて復
号され、又非圧縮モードか圧縮モードかの検出信号が、
デマルチプレクサ42とマルチプレクサ48とに加えら
れ、デマルチプレクサ42は、圧縮モードの場合の検出
信号によりMH復号器44に入力圧縮符号信号を選択出
力し、非圧縮モードの場合の検出信号により固定長復号
器43に入力圧縮符号信号を選択出力する。
The MH decoder 44 also receives an MH code signal and decodes it, and also receives a detection signal indicating whether it is in an uncompressed mode or a compressed mode.
In addition to the demultiplexer 42 and the multiplexer 48, the demultiplexer 42 selectively outputs the input compressed code signal to the MH decoder 44 according to the detection signal in the case of compressed mode, and performs fixed length decoding according to the detection signal in the case of uncompressed mode. The input compressed code signal is selectively outputted to the unit 43.

又マルチプレクサ48は、圧縮モードの検出信号により
MH復号器44の復号出力信号を選択出力し、非圧縮モ
ードで且つ階調パターンの場合には、シフトレジスタ4
7の出力信号を選択出力し、非圧縮モードで且つ非階調
パターンの場合には、原データを選択出力することにな
る。従って、出力端子49には、ディザ画像信号が復号
されて出力されることになり、第6図に示す符号化回路
により符号化された圧縮符号を復号することができるも
のである。
Further, the multiplexer 48 selectively outputs the decoded output signal of the MH decoder 44 according to the detection signal of the compressed mode, and in the case of the non-compressed mode and the gradation pattern, the multiplexer 48 selects and outputs the decoded output signal of the MH decoder 44 according to the detection signal of the compressed mode.
7 output signals are selectively output, and in the case of non-compression mode and non-gradation pattern, the original data is selectively output. Therefore, the dither image signal is decoded and outputted to the output terminal 49, and the compressed code encoded by the encoding circuit shown in FIG. 6 can be decoded.

前述の実施例に於いては、1×4のパターンの出現し易
いパターンとして、5個の階調パターンを用いているが
、回路構成上は、2の幕乗個とすることが好適の場合が
多いので、出現し易い8個のパターンを用いることがで
きるものである。又ヘイヤ型ディザの場合について説明
しているが、他の型のディザの場合にも同様に適用でき
るものである。又予測符号化に於いて可変長符号を用い
る場合について説明しているが、非階調パターンを含む
予測順位信号(予測誤差信号)は、第1順位が集中して
出現する性質があるから、符号化に従来の手段を適用し
て圧縮比を向上させることもできる。又予測順位をm個
毎にまとめて、m個総てが第1順位のときに、符号“0
”の1ビツトでこのm個を符号化し、m個中に第1順位
以外の順位のものがある時は、識別符号“1”1ビツト
とm個の前述の可変長符号を用いて符号化することも可
能である。
In the above embodiment, five gradation patterns are used as patterns in which a 1×4 pattern is likely to appear, but in terms of the circuit configuration, it is preferable to use 2 to the power of 2. Since there are many patterns, eight patterns that are likely to appear can be used. Further, although the case of Heyer type dither is described, it can be similarly applied to cases of other types of dither. Furthermore, although the case where a variable length code is used in predictive encoding is explained, since the prediction rank signal (prediction error signal) including a non-grayscale pattern has the property that the first rank appears concentratedly, Conventional means can also be applied to the encoding to improve the compression ratio. Also, if the prediction rankings are grouped into m units, and all m predictions are in the first ranking, the code "0" is given.
”, and if there is a rank other than the first rank among the m, it is encoded using a 1-bit identification code “1” and the m variable length codes mentioned above. It is also possible to do so.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、ディザマトリク
ス周期のパターンを用いて予測を行い、文書画像と中間
調画像との切換えを行うもので、種々の型のディザを使
用できると共に、文書画像と中間調画像とが混在する画
像に対しても大きい圧縮比が得られる利点がある。又−
次元ランレングス符号化としてMH方式を用いれば、国
際標準のデータ圧縮方式と適合させることができるもの
である。
As explained above, according to the present invention, prediction is performed using a dither matrix cycle pattern to switch between a document image and a halftone image. This has the advantage that a large compression ratio can be obtained even for images containing a mixture of grayscale images and halftone images. Again-
If the MH method is used as dimensional run-length encoding, it can be made compatible with international standard data compression methods.

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

第1図は本発明の実施例の要部ブロック図、第2図はヘ
イヤ型ディザの階調パターンの説明図、第3図はベイヤ
型ディザの各ラインの階調パターンの説明図、第4図は
階調パターンと階調に近似する非階調パターンの説明図
、第5図は予測符号化の符号割付説明図、第6図は本発
明の実施例の詳細なブロック図、第7図は本発明の実施
例の復号回路のブロック図、第8図はディザ画像信号の
形成説明用ブロック図、第9図(a)〜(C1はディザ
マトリクス説明図、第10図は従来例の符号化説明図、
第11図及び第12図はそれぞれ従来例の符号化動作の
一例の説明図である。 3はディザ画像信号の入力端子、4,5はシフトレジス
タ、6はリードオンリメモリ (ROM)、7はレジス
タ、8は可変長符号器、9はMH符号器、10はマルチ
プレクサ(MPX) 、11は圧縮符号の出力端子、1
2はライン番号信号の入力端子、21はディザ画像信号
の入力端子、22〜25は4ビツトのシフトレジスタ、
26はラインカウンタ、27は画像判定用リードオンリ
メモリ (ROM) 、29は予測変換用リードオンリ
メモlJ  (ROM) 、28.30はレジスタ、3
1はMH符号器、32は可変長符号器、33はマルチプ
レクサ(MPX) 、34は出力端子である。
FIG. 1 is a block diagram of the main part of an embodiment of the present invention, FIG. 2 is an explanatory diagram of the gradation pattern of the Heyer dither, FIG. 3 is an explanatory diagram of the gradation pattern of each line of the Bayer dither, and FIG. The figure is an explanatory diagram of a gradation pattern and a non-gradation pattern that approximates the gradation, FIG. 5 is an explanatory diagram of code assignment for predictive coding, FIG. 6 is a detailed block diagram of an embodiment of the present invention, and FIG. is a block diagram of a decoding circuit according to an embodiment of the present invention, FIG. 8 is a block diagram for explaining the formation of a dithered image signal, FIGS. diagram,
FIGS. 11 and 12 are explanatory diagrams of an example of a conventional encoding operation, respectively. 3 is an input terminal for dithered image signals, 4 and 5 are shift registers, 6 is a read-only memory (ROM), 7 is a register, 8 is a variable length encoder, 9 is an MH encoder, 10 is a multiplexer (MPX), 11 is the output terminal of the compression code, 1
2 is an input terminal for a line number signal, 21 is an input terminal for a dither image signal, 22 to 25 are 4-bit shift registers,
26 is a line counter, 27 is a read-only memory (ROM) for image judgment, 29 is a read-only memory (ROM) for predictive conversion, 28.30 is a register, 3
1 is an MH encoder, 32 is a variable length encoder, 33 is a multiplexer (MPX), and 34 is an output terminal.

Claims (1)

【特許請求の範囲】[Claims] ディザマトリクス周期の複数画素からなるパターンの中
の出現し易い特定パターンが入力画像信号中に出現した
か否かを検出する手段と、前記パターンに与えた階調に
よって符号化すべき画素のパターンを予測符号化する手
段と、前記特定パターンの組合せの連続出現を検知して
、ランレングス符号化から前記予測符号化に切換える手
段とを設け、2値ディザ画像信号に前記特定パターンが
含まれている時に前記予測符号化により符号化すること
を特徴とする2値画像信号の符号化制御方式。
Means for detecting whether a specific pattern that is likely to appear among patterns consisting of a plurality of pixels with a dither matrix period has appeared in an input image signal, and predicting a pixel pattern to be encoded based on the gradation given to the pattern. and means for detecting continuous appearance of the combination of the specific patterns and switching from run-length coding to the predictive coding, when the specific pattern is included in the binary dither image signal. An encoding control method for a binary image signal, characterized in that encoding is performed using the predictive encoding described above.
JP59195848A 1984-09-20 1984-09-20 Coding control system of binary picture signal Pending JPS6174455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59195848A JPS6174455A (en) 1984-09-20 1984-09-20 Coding control system of binary picture signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59195848A JPS6174455A (en) 1984-09-20 1984-09-20 Coding control system of binary picture signal

Publications (1)

Publication Number Publication Date
JPS6174455A true JPS6174455A (en) 1986-04-16

Family

ID=16348013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59195848A Pending JPS6174455A (en) 1984-09-20 1984-09-20 Coding control system of binary picture signal

Country Status (1)

Country Link
JP (1) JPS6174455A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5359438A (en) * 1987-04-28 1994-10-25 Canon Kabushiki Kaisha Encoding apparatus for color image data
US5542008A (en) * 1990-02-28 1996-07-30 Victor Company Of Japan, Ltd. Method of and apparatus for compressing image representing signals

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5359438A (en) * 1987-04-28 1994-10-25 Canon Kabushiki Kaisha Encoding apparatus for color image data
US5542008A (en) * 1990-02-28 1996-07-30 Victor Company Of Japan, Ltd. Method of and apparatus for compressing image representing signals
US5644658A (en) * 1990-02-28 1997-07-01 Victor Company Of Japan, Ltd. Method of and apparatus for compressing image representing signals
US5719962A (en) * 1990-02-28 1998-02-17 Victor Company Of Japan, Ltd. Method of and apparatus for compressing image representing signals

Similar Documents

Publication Publication Date Title
US4688100A (en) Video data encoding/decoding apparatus
JPH04270568A (en) Data compression system in picture processing unit
JPS6333351B2 (en)
US4215375A (en) Digital facsimile transmission system for screened pictures
US3804975A (en) Video signal data signal compression system
US4918540A (en) System for encoding or decoding analog video signals
US5198898A (en) Data compressing system for compressing serial image data with color information
JPS6174455A (en) Coding control system of binary picture signal
JP2634793B2 (en) Color image signal encoding device
JP2713298B2 (en) Color image signal decoding device
US5185820A (en) System for compressing image data having blank lines
JPS5947916B2 (en) Color image encoding processing method
JPS5894274A (en) Picture signal encoding system
JPH041552B2 (en)
JPS63197172A (en) Predictive coding device
JPS5821985A (en) Transmitting and displaying system of picture information
JPH0241232B2 (en)
JPS61123277A (en) Picture data compression system
JPS6358425B2 (en)
JPH036066Y2 (en)
JPS62180676A (en) Control system for encoding of binary picture signal
JPS6374269A (en) Pseudo halftone image signal decoding device
JPS61123276A (en) Picture data compression system
JPS63132572A (en) Halftone image encoding circuit
JPS6150426B2 (en)