Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH07101919B2 - Dither image encoding device - Google Patents
[go: Go Back, main page]

JPH07101919B2 - Dither image encoding device - Google Patents

Dither image encoding device

Info

Publication number
JPH07101919B2
JPH07101919B2 JP61312350A JP31235086A JPH07101919B2 JP H07101919 B2 JPH07101919 B2 JP H07101919B2 JP 61312350 A JP61312350 A JP 61312350A JP 31235086 A JP31235086 A JP 31235086A JP H07101919 B2 JPH07101919 B2 JP H07101919B2
Authority
JP
Japan
Prior art keywords
pattern
image
signal
line
dither
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
JP61312350A
Other languages
Japanese (ja)
Other versions
JPS63164760A (en
Inventor
等 堀江
Original Assignee
松下電送株式会社
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 松下電送株式会社 filed Critical 松下電送株式会社
Priority to JP61312350A priority Critical patent/JPH07101919B2/en
Publication of JPS63164760A publication Critical patent/JPS63164760A/en
Publication of JPH07101919B2 publication Critical patent/JPH07101919B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ディザ法によって2値化された擬似中間調画
像(以下、ディザ画像という。)に対して符号化を行う
ディザ画像の符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dither image coding apparatus for coding a pseudo-halftone image binarized by a dither method (hereinafter referred to as a dither image). .

従来の技術 従来のディザ画像符号化装置は、例えば第7図に示すデ
ィザ画像符号化装置を適用して、第8図に示すように、
符号化ビット数が対応画素数より少なくなる領域(長い
ランの領域)ではランレングス符号化を行い、そうでな
い領域(短いランの領域)ではランレングス符号化を行
うことなく識別符号を挟んで直接画素列を非圧縮画像デ
ータとして伝送するといった手段によって実施されてい
た。
2. Description of the Related Art As a conventional dither image coding device, for example, by applying the dither image coding device shown in FIG. 7, as shown in FIG.
Run length coding is performed in areas where the number of coded bits is less than the corresponding number of pixels (long run areas), and in areas where the number of coded bits is less than the corresponding number of pixels (short run areas), identification codes are sandwiched directly without run length coding. It has been implemented by means such as transmitting a pixel row as uncompressed image data.

第7図を参照しながら、これを具体的に説明すると、先
ず入力ディザ画像信号1は遅延用シフトレジスタ2と、
符号化の対象となるライン内の変化点を検出する変化点
検出部3にそれぞれ入力される。
This will be described in detail with reference to FIG. 7. First, the input dither image signal 1 includes a delay shift register 2 and
It is input to each change point detection unit 3 that detects a change point in a line to be encoded.

前記検出部3において、変化点が検出されるとランレン
グスをカウントするカウンタ4が停止しランレングス符
号生成部5でカウンタ4から入力されたカウント値に対
応するランレングス符号を生成する。生成されたその符
号は、ランレングス符号生成部5内に一時記憶される。
When the change point is detected in the detecting unit 3, the counter 4 for counting the run length is stopped, and the run length code generating unit 5 generates the run length code corresponding to the count value input from the counter 4. The generated code is temporarily stored in the run length code generation unit 5.

ランレングス積算部6は、所定長の符号化が終了する
と、その終了したことをランレングス符号生成部5と識
別符号付可部7に通知する。その通知を受理したランレ
ングス符号生成部5は記憶している符号数を比較器8に
出力する。
When the encoding of the predetermined length is completed, the run-length accumulating unit 6 notifies the completion to the run-length code generating unit 5 and the identification code addition unit 7. The run-length code generation unit 5 that has received the notification outputs the stored code number to the comparator 8.

比較器8は、前記符号数(符号化ビット数)と対応画素
数とを比較しセレクタ9に選択信号を出力する。その信
号を受けたセレクタ9は、前記符号数の方が少ない場合
はランレングス符号生成部5からのランレングス符号を
選択し、対応画素数の方が少ない場合には前記識別符号
付加部7からの識別符号を選択し、これを符号化データ
(出力符号化信号)10として出力する。
The comparator 8 compares the code number (coded bit number) with the corresponding pixel number and outputs a selection signal to the selector 9. The selector 9 receiving the signal selects the run length code from the run length code generation unit 5 when the number of codes is smaller, and from the identification code addition unit 7 when the number of corresponding pixels is smaller. The identification code is selected, and this is output as encoded data (output encoded signal) 10.

このようにして、ディザ画像の符号化が行われていた。In this way, the dither image is encoded.

発明が解決しようとする問題点 しかし、かかる手段によれば、対象画像がランダムで細
かい画素配列(パターン)の多いディザ画像である場合
には、全符号数が全画素数を上回るという事態を避ける
ことができて有効であるが、例えば、パターンが周期的
に出現したり、あるいはパターンの出現頻度が片寄って
いたりするディザ画像の場合には、その特性を充分活か
しきっていないため、高い符号化効率を得ることができ
ないという問題があった。
However, according to such means, when the target image is a random and dither image with many fine pixel arrays (patterns), it is possible to avoid the situation where the total number of codes exceeds the total number of pixels. However, in the case of a dither image in which a pattern appears periodically or the appearance frequency of the pattern is deviated, it is not possible to fully utilize the characteristics of the dither image. There was a problem that efficiency could not be obtained.

そこで本発明の目的とするところは、そのような場合で
も高い符号化効率を得ることのできる、ディザ画像の符
号化装置を提供することにある。
Therefore, it is an object of the present invention to provide a dither image coding apparatus capable of obtaining high coding efficiency even in such a case.

問題点を解決するための手段 本発明は上述の課題を解決するため、ディザ法により2
値化された疑似中間調画像を入力する入力手段と、この
入力手段により入力された疑似中間調画像のM×N画素
のブロック毎に検出し、2(M × N)種類の画像パターンの
いずれかを認識する認識手段と、2(M × N)種類の画像パ
ターン毎にそのパターン配列をパターン平面として2(M
× N)種類作成記憶する作成記憶手段と、この作成記憶手
段で作成したパターン平面をその画像パターンの頻度に
応じて主走査方向に連結する連結手段と、この連結手段
で連結したパターン平面のライン数に対してNで除算
し、その余りに応じて同じ余りのラインが区分できるよ
うに入れ替える入替手段と、この入替手段で入れ替えら
れた画像に対して2次元符号化を行なう符号化手段とい
う構成を備えたものである。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention uses a dither method.
Input means for inputting a binarized pseudo-halftone image, and detection for each block of M × N pixels of the pseudo-halftone image input by this input means, and any of 2 (M × N) types of image patterns A recognition means for recognizing whether or not, and for each of the 2 (M × N) types of image patterns, the pattern array is used as a pattern plane for 2 (M × N).
× N) Type Creating and storing means for storing, connecting means for connecting the pattern planes created by this creating and storing means in the main scanning direction according to the frequency of the image pattern, and lines of the pattern planes connected by this connecting means The number of divisions is divided by N, and the replacement means is arranged so that the same remainder line can be divided according to the remainder, and the coding means for two-dimensionally coding the images replaced by this replacement means. Be prepared.

作用 本発明は上述の構成により、入力されたディザ法により
2値化された疑似中間調画像をM×Nのブロック毎に検
出し、2(M × N)種類の画像パターンのいずれかを認識
し、2(M × N)種類の画像パターン毎にそのパターン配列
をパターン平面として2(M × N)種類作成記憶し、パター
ン平面をその画像パターンの頻度に応じて主走査方向に
連結し、連結したパターン平面のライン数に対してNで
除算し、その余りに応じて同じ余りのラインが区分でき
るように入れ替え、入れ替えられた画像に対して2次元
符号化を行なうものである。
Operation The present invention has the above-described configuration, detects a pseudo-halftone image binarized by the input dither method for each M × N block, and recognizes any of 2 (M × N) types of image patterns. Then, for each 2 (M × N) types of image patterns, the pattern array is stored as a pattern plane and 2 (M × N) types are created and stored, and the pattern planes are connected in the main scanning direction according to the frequency of the image pattern, The number of lines on the connected pattern planes is divided by N, the lines are replaced so that the same line can be divided according to the remainder, and two-dimensional encoding is performed on the replaced image.

実施例 第1図は本発明を実施するに好適なディザ符号化装置の
一実施例を示す概略構成ブロック図であり、第2図は第
1図の符号化装置で符号化されたディザ画像の復号化装
置の一実施例を示す概略構成ブロック図である。尚、こ
の実施例では、MXNの領域(ブロック)に分割されたデ
ィザ画像として、第3図に示すように主走査方向に直列
に配置された1×4画素(4ビット)を単位ブロックと
するディザ画像を用いている。
Embodiment FIG. 1 is a schematic block diagram showing an embodiment of a dither coding apparatus suitable for implementing the present invention, and FIG. 2 is a dither image coded by the coding apparatus shown in FIG. It is a schematic block diagram which shows one Example of a decoding apparatus. In this embodiment, as the dither image divided into MXN areas (blocks), 1 × 4 pixels (4 bits) arranged in series in the main scanning direction are used as a unit block as shown in FIG. Dither image is used.

第4図は本発明方法の実施手順の概要を示す概念図であ
る。先ずN×Nのディザ・マトリックス11でディザ化さ
れたディザ画像12を例えばパターン平面0からパターン
面Fまでの16枚の、パターン平面13に分離する。
FIG. 4 is a conceptual diagram showing an outline of the procedure for carrying out the method of the present invention. First, the dither image 12 dithered by the N × N dither matrix 11 is divided into, for example, 16 pattern planes 13 from the pattern plane 0 to the pattern plane F.

次に、その16枚のパターン平面O〜Fを、それぞれの平
面(O〜F)についての各パターンの出現頻度数(下記
の「表」参照)の高い順に、主走査方向に並べ替えて、
パターン平面の連結画像(連結パターン平面)14を生成
する。第5図はその連結パターン平面14の全体像を示し
たものである。
Next, the 16 pattern planes O to F are rearranged in the main scanning direction in descending order of the frequency of appearance of each pattern on each plane (O to F) (see “Table” below),
A connected image (connected pattern plane) 14 of the pattern plane is generated. FIG. 5 shows an overall image of the connection pattern plane 14.

この表は、ある画像(ここでは第3図に示す1×4画素
を単位ブロックとするディザ画像)で求めた16枚のパタ
ーン平面O〜Fについての各パターン(4ビット並列パ
ターン)O〜F(第6図参照、尚、同図における各4ビ
ット並列パターン16中の斜線部分は黒画素を表してい
る)の出現頻度数(%)を示したもので、このデータを
基にして、前記連結パターン平面14が生成される。
This table shows each pattern (4-bit parallel pattern) OF of 16 pattern planes OF obtained by a certain image (here, a dither image having 1 × 4 pixels as a unit block shown in FIG. 3). (See FIG. 6, the shaded area in each 4-bit parallel pattern 16 in FIG. 6 represents a black pixel.) The frequency of occurrence (%) is shown. The connection pattern plane 14 is generated.

次に、その連結パターン平面14に対してその平面内の副
走査方向の2次元的相関が強くなるように周期的にライ
ンの入替え処理を行う。
Next, line replacement processing is periodically performed on the connection pattern plane 14 so that the two-dimensional correlation in the sub-scanning direction within the plane becomes strong.

ディザ・マトリックスのサイズを前記したようにN×N
とすると、副走査方向でNラインごとに原画像を2値化
するための閾値が同じになるため、2値化された画像
(ディザ画像)は、Nラインごとに強い2次元的相関を
持つことになる。
The size of the dither matrix is N × N as described above.
Then, the threshold value for binarizing the original image is the same for every N lines in the sub-scanning direction, so the binarized image (dither image) has a strong two-dimensional correlation for every N lines. It will be.

ラインにOから番号付けを行い、それをNで割った余り
がOとなるラインを順に並べたものを{O}ラインと表
す。{O}ラインから{N−1}ラインを順に並べたも
のが符号化の対象となるビット平面(ラインの入替え後
の連結パターン平面)15で、このビット平面15が2次元
符号化(冗長度抑圧符号化)される。
Lines are numbered from O, and the line obtained by dividing the line by N and the remainder being O is arranged in order is referred to as {O} line. A bit plane (a connection pattern plane after line replacement) 15 is a line in which {O} lines to {N-1} lines are arranged in order, and this bit plane 15 is two-dimensionally encoded (redundancy degree). Suppression coded).

そこで、第1図について説明するに、17は4ビット直列
の入力ディザ画像信号、18はその4ビット直列の入力デ
ィザ画像信号、18はその4ビット直列の入力ディザ画像
信号17を4ビット並列のディザ画像信号に変換するため
のシリアル/パラレル変換部、19は4ビット並列に変換
された1ブロック分の並列データ信号、20は1ブロック
のパターンが、パターンOからパターンFのいずれであ
るかを検出するためのパターン検出部、21はパターン検
出部20の16ビット並列の出力信号、22は16枚のパターン
平面用のメモリ部(パターンメモリ部)で、16個のパタ
ーンメモリO〜Fを有している。23はメモリ部22の出力
信号、24はメモリ部22の出力を選択するセレクタ、25は
セレクタ出力信号でありパターンメモリO〜Fのうち一
つが出力される。26は2次元符号化器の一つであるモデ
ィファイド・リード符号化器、27は符号化された出力デ
ータ(符号化データ信号)、28はパターンメモリO〜F
を制御するメモリ制御部、29は副走査方向のアドレスカ
ウンタ、30はアドレスカウンタ29の制御信号、31はアド
レスカウンタ29の出力で副走査方向のラインを識別す
る。32はパターンメモリO〜Fへの制御信号、33は主走
査方向のアドレスカウンタ、34はアドレスカウンタ33の
制御信号、35はアドレスカウンタ33の出力信号で主走査
方向の画素位置を識別する。36はパターンメモリO〜F
の出力信号23を選択するための制御信号、37は符号化の
開始、終了を指示する制御信号、38はメモリ制御部28の
制御タイミング信号である。
Therefore, referring to FIG. 1, reference numeral 17 is a 4-bit serial input dither image signal, 18 is a 4-bit serial input dither image signal, and 18 is a 4-bit serial input dither image signal 17 which is 4-bit parallel. A serial / parallel conversion unit for converting into a dither image signal, 19 is a parallel data signal for one block converted into 4 bits in parallel, and 20 is a pattern of one block, which is a pattern O to a pattern F. A pattern detection unit for detection, 21 is a 16-bit parallel output signal of the pattern detection unit 20, and 22 is a memory unit (pattern memory unit) for 16 pattern planes, which has 16 pattern memories OF. are doing. 23 is an output signal of the memory unit 22, 24 is a selector for selecting the output of the memory unit 22, and 25 is a selector output signal, and one of the pattern memories OF is output. 26 is a modified read encoder, which is one of the two-dimensional encoders, 27 is encoded output data (encoded data signal), and 28 is pattern memories OF.
A memory control unit for controlling the sub-scanning direction, 29 is an address counter in the sub-scanning direction, 30 is a control signal of the address counter 29, and 31 is an output of the address counter 29 for identifying a line in the sub-scanning direction. 32 is a control signal to the pattern memories 0 to F, 33 is an address counter in the main scanning direction, 34 is a control signal from the address counter 33, and 35 is an output signal from the address counter 33 to identify the pixel position in the main scanning direction. 36 is a pattern memory OF
Is a control signal for selecting the output signal 23, 37 is a control signal for instructing the start and end of encoding, and 38 is a control timing signal for the memory control unit 28.

また、第2図において、39は入力符号化データ信号、40
はモディファイド・リード復号化器、41は復号データ、
42は16枚のパターン平面用のメモリ部(パターンメモリ
部)で、16個のパターンメモリO〜Fを有している。43
はパターンメモリ部42の出力信号、44はパターンメモリ
部42の出力信号43からディザ画像のブロックを再生する
パターン再生部、45はパターン再生部44の4ビット並列
信号、46は4ビット並列信号45を直列信号に変換するパ
ラレル/シリアル変換部、47は復元されたシリアル信号
(復号ディザ画像信号)である。48は符号化の開始を指
示する制御信号、49はパターンメモリO〜Fのリード,
ライトの制御を行うメモリ制御部、50は主走査方向のア
ドレスカウンタ、51はアドレスカウンタ50の制御信号、
52は主走査アドレスカウンタ出力で、主走査方向の画素
位置を識別する。53は副走査方向のアドレスカウンタ、
54はアドレスカウンタ53の制御信号、55は副走査アドレ
スカウンタ出力で、副走査方向のラインを識別する。56
はパターンメモリO〜Fへの制御信号である。
Further, in FIG. 2, 39 is an input encoded data signal, and 40 is
Is the modified read decoder, 41 is the decoded data,
Reference numeral 42 is a memory unit (pattern memory unit) for 16 pattern planes, which has 16 pattern memories OF. 43
Is an output signal of the pattern memory unit 42, 44 is a pattern reproducing unit for reproducing a block of a dither image from the output signal 43 of the pattern memory unit 42, 45 is a 4-bit parallel signal of the pattern reproducing unit 44, and 46 is a 4-bit parallel signal 45. Is a parallel / serial conversion unit for converting a serial signal into a serial signal, and 47 is a restored serial signal (decoded dither image signal). 48 is a control signal for instructing the start of encoding, 49 is a read of the pattern memories O to F,
A memory control unit for controlling writing, 50 is an address counter in the main scanning direction, 51 is a control signal of the address counter 50,
A main scanning address counter output 52 identifies a pixel position in the main scanning direction. 53 is an address counter in the sub-scanning direction,
Reference numeral 54 is a control signal for the address counter 53, and 55 is a sub-scanning address counter output, which identifies a line in the sub-scanning direction. 56
Is a control signal to the pattern memories OF.

次に第1図及び第2図を参照しながら、本発明方法につ
いての動作を説明する。
Next, the operation of the method of the present invention will be described with reference to FIGS. 1 and 2.

先ず、符号化側(第1図参照)では入力ディザ画像信号
17は、シリアル/パラレル変換部18で4ビット並列の単
位ブロックに変換され、パターン検出部20に入力され
る。パターン検出部20では4ビットの単位ブロックが第
6図で示すパターンのいずれかであるかを検出し、同時
にメモリ制御部28に対して制御タイミング信号38を出力
する。
First, on the encoding side (see FIG. 1), the input dither image signal
The serial / parallel conversion unit 18 converts 17 into a 4-bit parallel unit block, which is input to the pattern detection unit 20. The pattern detection section 20 detects whether the 4-bit unit block is one of the patterns shown in FIG. 6, and at the same time outputs the control timing signal 38 to the memory control section 28.

パターン検出部20の出力信号21は16ビットの並列信号で
ある。例えば、パターン検出の結果が、パターンOであ
れば出力信号21として、(1,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0)が並列に出力される。ここで“1"はパターン0
が検出されたことを示す。
The output signal 21 of the pattern detection unit 20 is a 16-bit parallel signal. For example, if the pattern detection result is the pattern O, the output signal 21 is (1,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0) are output in parallel. Here, "1" is pattern 0
Is detected.

パターン検出部20からメモリ制御部28への制御タイミン
グ信号38によって、主走査アドレスカウンタ33,副走査
アドレスカウンタ29が制御信号34,30によって起動さ
れ、パターン検出部出力信号21をどのアドレス(主走査
・副走査)に書き込むかが、主走査アドレスカウンタ出
力35,副走査アドレスカウンタ出力31によって制御・決
定され、メモリ制御信号32によって、その決定されたア
ドレスに、パターン検出部20の出力信号21が書き込まれ
る。
The main scanning address counter 33 and the sub-scanning address counter 29 are activated by the control signals 34 and 30 by the control timing signal 38 from the pattern detection unit 20 to the memory control unit 28, and the pattern detection unit output signal 21 is set to which address (main scanning). Whether to write in the sub-scan) is controlled / determined by the main scanning address counter output 35 and the sub-scanning address counter output 31, and the output signal 21 of the pattern detection unit 20 is output to the determined address by the memory control signal 32. Written.

以上の動作が入力ディザ画像信号17の第1ラインの最終
単位ブロックまで繰返される。これによりパターンメモ
リO〜パターンメモリFには各々のパターン平面の第1
ラインが書き込まれる。
The above operation is repeated until the final unit block of the first line of the input dither image signal 17. As a result, the pattern memories O to F have the first patterns of the respective pattern planes.
The line is written.

入力ディザ画像信号17の最終ラインまで前記動作が繰返
されることにより、2値画像のパターン平面2(MXN)
(この実施例では16枚)生成される。
By repeating the above operation until the final line of the input dither image signal 17, pattern plane 2 (MXN) sheets (16 sheets in this embodiment ) of the binary image are generated.

以上の処理によってパターンの連続がパターン平面内で
は画素の連続に変わり、あるパターンが連続して現われ
ると対応するパターン平面上では黒画素(信号“1")が
連続することになる。このようにして1ページ分の処理
が終了し、16枚のパターン平面が生成されると、メモリ
制御部28はセレクタ24に対して制御信号36を出力する。
By the above processing, the continuity of the pattern is changed to the continuity of pixels in the pattern plane, and when a certain pattern appears continuously, black pixels (signal “1”) are continuous on the corresponding pattern plane. In this way, when the processing for one page is completed and 16 pattern planes are generated, the memory control unit 28 outputs the control signal 36 to the selector 24.

セレクタ24は、その制御信号36によってパターンメモリ
部22の2次元符号化すべきパターンメモリの一つを選択
する。つまり、前掲の表よりパターン0〜Fをその出現
頻度数の高い順に配列すると、次のようになる。
The selector 24 selects one of the pattern memories of the pattern memory unit 22 to be two-dimensionally encoded by the control signal 36. In other words, when the patterns 0 to F are arranged in the descending order of the frequency of appearance from the above table, it becomes as follows.

A,F,5,0,1,7,D,4,8,B,E,2,C,3,9,6 ……(1) メモリ制御部28は、上記(1)の順にセレクタ24を介し
てパターンメモリ部22より2次元符号化すべきパターン
メモリを一つずつ選択していく。
A, F, 5,0,1,7, D, 4,8, B, E, 2, C, 3,9,6 (1) The memory control unit 28 is the selector 24 in the order of (1) above. The pattern memories 22 are used to select the pattern memories to be two-dimensionally encoded one by one.

選択された符号化すべきパターンメモリの信号は、セレ
クタ24よりセレクタ出力信号25としてモディファイド・
リード符号化器26へ出力される。
The signal of the selected pattern memory to be encoded is modified by the selector 24 as the selector output signal 25.
It is output to the read encoder 26.

モディファイド・リード符号化器26は、そのセレクタ出
力信号25を2次元符号化して、これを符号化データ信号
27として出力する。尚、符号化器26の起動・停止は制御
信号37によって制御される。
The modified read encoder 26 two-dimensionally encodes the selector output signal 25 and outputs this as an encoded data signal.
Output as 27. The start / stop of the encoder 26 is controlled by the control signal 37.

ここで、前記符号化器26の処理動作をより具体的に説明
する。
Here, the processing operation of the encoder 26 will be described more specifically.

先ず、ラインの最初を示す同期信号が入力されると、次
いで前記(1)で示した順に各パターン平面の第0ライ
ンが符号化される。つまり前記(1)より出現頻度数の
最も高いパターンは“A"であるから、メモリ制御部28は
セレクタ24を介してパターンメモリAを選択し、その第
0ラインが符号化器26に送られる。パターンメモリAの
第0ラインのデータを符号化器26に送り終ると、メモリ
制御部28は、次にパターンメモリFを選択し、そのデー
タを符号化器26に送る。このようにして前記(1)で示
した順序で各パターン平面の第0ラインを連結してこれ
を符号化する。
First, when a synchronization signal indicating the beginning of a line is input, then the 0th line of each pattern plane is encoded in the order shown in (1) above. That is, since the pattern having the highest appearance frequency than that in (1) is "A", the memory control unit 28 selects the pattern memory A via the selector 24, and the 0th line is sent to the encoder 26. . When the data of the 0th line of the pattern memory A has been sent to the encoder 26, the memory control unit 28 next selects the pattern memory F and sends the data to the encoder 26. In this way, the 0th line of each pattern plane is connected and encoded in the order shown in (1) above.

第0ラインの符号化の後は各パターン平面の第4ライン
が第0ラインを参照して前記(1)の順に連結されこれ
が符号化される。同様にして次に第8ラインが第4ライ
ンを参照して符号化される。
After the coding of the 0th line, the 4th line of each pattern plane is connected in the order of (1) above with reference to the 0th line, and this is coded. Similarly, the eighth line is then encoded with reference to the fourth line.

パターン平面内のラインに第0ラインから順に第mライ
ンまで(mは最終ライン)ライン番号付け(符号化)し
たとすると、この処理は次のように表現できる。
Assuming that the lines in the pattern plane are line numbered (encoded) from the 0th line to the mth line (m is the last line) in sequence, this process can be expressed as follows.

即ち、ライン番号をNで割った余りが0となるラインを
1グループにしてこれを{0}ラインと定義して表わ
す。同様にして{1}ラインから{N−1}ラインまで
この定義処理を施す。例えばNを4とすると、{0}ラ
イン内は、各パターン平面の第0ライン,第4ライン,
第8ライン等、ライン番号が4×n(nは0,1,2…)で
表わされるラインが順に並ぶことになる。同様に{1}
ライン内は、ライン番号が4×n+1(n=0,1,2…)
で表わされるラインが順に並ぶことになり、以下、
{2},{3},…{N−1}ラインについても同様で
ある。
That is, a line in which the remainder obtained by dividing the line number by N is 0 is defined as one group and defined as a {0} line. Similarly, this definition processing is performed from the {1} line to the {N-1} line. For example, if N is 4, the {0} line includes the 0th line, the 4th line of each pattern plane,
Lines whose line numbers are 4 × n (n is 0, 1, 2 ...) Such as the 8th line are arranged in order. Similarly, {1}
Within the line, the line number is 4 × n + 1 (n = 0,1,2 ...)
The lines represented by will be arranged in order, and
The same applies to the {2}, {3}, ... {N-1} lines.

以上のライン入替えの処理は、メモリ制御部28で副走査
アドレスカウンタ29を制御することによって実現する。
The above line replacement process is realized by controlling the sub-scanning address counter 29 by the memory control unit 28.

また、符号化器26における符号化は、先ず前記{0}ラ
インとして分類されたラインを前記(1)で示したパタ
ーン平面の順に全て符号化し、これが終了すると次に
{1}ラインについて同様の符号化を行い、{3}ライ
ンまで順次符号化する。これにより1ページの符号化が
終了する。
In addition, the encoding in the encoder 26 first encodes all the lines classified as the {0} lines in the order of the pattern plane shown in (1) above, and when this is completed, the same applies to the {1} lines. Encoding is performed, and the {3} line is sequentially encoded. This completes the encoding of one page.

次に復号化側(第2図参照)では、入力符号化データ信
号39は、モディファイド・リード復号化器40で復号化さ
れる。メモリ制御のタイミングは制御信号48によってメ
モリ制御部49に伝えられる。
Next, on the decoding side (see FIG. 2), the input coded data signal 39 is decoded by the modified read decoder 40. The timing of memory control is transmitted to the memory controller 49 by the control signal 48.

入力符号化データ信号39は前記(1)で示したパターン
平面の順にラインが連結されて送られてくるので、復号
データ41はこの順序に従ってパターンメモリ部42の各パ
ターンメモリに書き込まれる。この制御はメモリ制御部
49からの制御信号56によって行われる。
Since the input coded data signal 39 is sent with lines connected in the order of the pattern plane shown in (1) above, the decoded data 41 is written in each pattern memory of the pattern memory unit 42 in this order. This control is performed by the memory controller
Control signal 56 from 49 is used.

連結パターン平面内のデータは、{0}ライン,{1}
ライン,{2}ライン,{3}ラインの順に送られてく
るので、復号データ41をどのアドレス(主走査,副走
査)に書くかは、主走査アドレスカウンタ50,副走査ア
ドレスカウンタ53の出力信号52,55によって制御、決定
される。
Data in the connection pattern plane is {0} line, {1}
Lines, {2} lines, and {3} lines are sent in this order, so the address (main scanning, sub-scanning) to which the decoded data 41 is written is output from the main-scanning address counter 50 and the sub-scanning address counter 53. Controlled and determined by signals 52 and 55.

{0}ラインから{3}ラインまでのラインを全て復号
化するとパターンメモリ部42内に全てのパター平面が復
元される。
When all the lines from the {0} line to the {3} line are decoded, all the pattern planes are restored in the pattern memory unit 42.

この処理が終了するとパターン再生部44は第6図に示す
4ビット並列のパターン0〜Fを発生する。例えばパタ
ーン再生部44の入力信号43が(1,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0)であるとすると、パターン再生部44の出力
信号45は、4ビット並列の(0,0,0,0)信号となる。こ
れをパラレル/シリアル変換部46で直列データに変換す
ると、第1図の入力ディザ画像信号17と同一の信号が復
号ディザ画像信号47として得られる。
When this process ends, the pattern reproducing section 44 generates 4-bit parallel patterns 0 to F shown in FIG. For example, if the input signal 43 of the pattern reproducing unit 44 is (1,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0), the output signal 45 of the pattern reproducing unit 44 becomes a 4-bit parallel (0,0,0,0) signal. When this is converted into serial data by the parallel / serial converter 46, the same signal as the input dither image signal 17 of FIG. 1 is obtained as the decoded dither image signal 47.

発明の効果 以上の説明から明らかなように、本発明はディザ法によ
り2値化された疑似中間調画像をM×Nのブロック毎に
検出し、2(M × N)種類の画像パターンのいずれかを認識
し、2(M × N)種類の画像パターン毎にその画素配列をパ
ターン平面として2(M × N)種類作成し、パターン平面を
その画像パターンの頻度に応じて主走査方向に連結し、
連結したパターン平面のライン数に対してNで除算し、
その余りに応じて同じ余りのラインが区分できるように
入れ替え、入れ替えられた画像に対して2次元符号化を
行なうようにしたため、あるパターンが連続して現われ
ると、対応するパターン平面上では黒画素が続き、更に
ディザ画像の周期N毎にラインが入替えられるため副走
査方向に対しても2次元的相関が強くなり2次元符号化
との整合性が高まり、どのようなディザ画像についても
高圧縮率の符号化を効率良く実現することができる。
EFFECTS OF THE INVENTION As is apparent from the above description, the present invention detects a binary halftone image binarized by the dither method for each block of M × N, and selects any of 2 (M × N) types of image patterns. 2 (M × N) types of image patterns are created for each 2 (M × N) type image pattern as a pattern plane, and the pattern planes are connected in the main scanning direction according to the frequency of the image pattern. Then
Divide by N the number of lines on the connected pattern planes,
Since the remaining lines are interchanged so that they can be divided according to the remainder and the two-dimensional encoding is performed on the interchanged images, when a certain pattern appears continuously, black pixels appear on the corresponding pattern plane. Subsequently, since the lines are switched every cycle N of the dither image, the two-dimensional correlation becomes strong also in the sub-scanning direction and the consistency with the two-dimensional encoding is enhanced, and the high compression rate is obtained for any dither image. Can be efficiently realized.

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

第1図は本発明を実施するためのディザ画像符号化装置
の一実施例を示す概略構成ブロック図、第2図は第1図
の装置に対応するディザ画像の復号化装置の一実施例を
示す概略構成ブロック図、第3図は本発明の実施例で用
いるディザ画像の画素ブロック(領域)の大きさの一例
を示す画素配置図、第4図は本発明の実施手順の概要を
示す概念図、第5図は連結パターン平面の全体像を示す
概念図、第6図は本発明の実施例で用いるパターンの説
明用概念図、第7図は従来のディザ画像符号化装置の概
略構成ブロック図、第8図は従来の装置を説明するため
の画素配置図である。 11……NXNサイズのディザ・マトリックス、12……ディ
ザ画像、13……パターン平面、14……連結パターン平
面、15……ラインの入替え後の連結パターン平面(ビッ
ト平面)、16……4ビット並列パターン、17……入力デ
ィザ画像信号、18……シリアル/パラレル変換部、20…
…パターン検出部、22……パターンメモリ部、24……セ
レクタ、26……モディファイド・リード符号化器、28…
…メモリ制御部、29……副走査アドレスカウンタ、33…
…主走査アドレスカウンタ、39……符号化データ信号、
40……モディファイド・リード復号化器、42……パター
ンメモリ部、44……パターン再生部、46……パラレル/
シリアル変換部、47……復号ディザ画像信号、49……メ
モリ制御部、50……主走査アドレスカウンタ、53……副
走査アドレスカウンタ。
FIG. 1 is a schematic block diagram showing an embodiment of a dither image coding apparatus for carrying out the present invention, and FIG. 2 is an embodiment of a dither image decoding apparatus corresponding to the apparatus of FIG. FIG. 3 is a schematic block diagram showing the configuration, FIG. 3 is a pixel arrangement diagram showing an example of the size of a pixel block (region) of a dither image used in the embodiment of the present invention, and FIG. 4 is a concept showing an outline of the implementation procedure of the present invention. 5 and 5 are conceptual diagrams showing an overall image of a concatenated pattern plane, FIG. 6 is a conceptual diagram for explaining patterns used in the embodiments of the present invention, and FIG. 7 is a schematic block diagram of a conventional dither image encoding device. FIG. 8 is a pixel layout diagram for explaining a conventional device. 11 …… NXN size dither matrix, 12 …… Dither image, 13 …… Pattern plane, 14 …… Concatenation pattern plane, 15 …… Concatenation pattern plane (bit plane) after line replacement, 16 …… 4 bits Parallel pattern, 17 ... Input dither image signal, 18 ... Serial / parallel converter, 20 ...
... Pattern detection section, 22 ... Pattern memory section, 24 ... Selector, 26 ... Modified read encoder, 28 ...
... Memory controller, 29 ... Sub-scanning address counter, 33 ...
... Main scanning address counter, 39 ... Encoded data signal,
40 …… Modified read decoder, 42 …… Pattern memory block, 44 …… Pattern playback block, 46 …… Parallel /
Serial conversion unit, 47 ... Decoded dither image signal, 49 ... Memory control unit, 50 ... Main scanning address counter, 53 ... Sub scanning address counter.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ディザ法により2値化された疑似中間調画
像を入力する入力手段と、この入力手段により入力され
た疑似中間調画像をM×N画素のブロック毎に検出し、
2(M × N)種類の画像パターンのいずれかを認識する認識
手段と、2(M × N)種類の画像パターン毎にそのパターン
配列をパターン平面として2(M × N)種類作成記憶する作
成記憶手段と、この作成記憶手段で作成したパターン平
面をその画像パターンの頻度に応じて主走査方向に連結
する連結手段と、この連結手段で連結したパターン平面
のライン数に対してNで除算し、その余りに応じて同じ
余りのラインが区分できるように入れ替える入替手段
と、この入替手段で入れ替えられた画像に対して2次元
符号化を行なう符号化手段とを具備するディザ画像の符
号化装置。
1. Input means for inputting a pseudo-halftone image binarized by the dither method, and a pseudo-halftone image input by this input means is detected for each block of M × N pixels,
2 recognition means for recognizing one of (M × N) kinds of image patterns, created to 2 (M × N) kinds of 2 (M × N) kinds create stores the pattern arrangement in the image pattern each as a pattern plan The storage means, a connecting means for connecting the pattern planes created by the creating and storing means in the main scanning direction according to the frequency of the image pattern, and the number of lines of the pattern planes connected by the connecting means are divided by N. A dither image coding apparatus comprising a replacement unit that replaces the remaining lines so that the same remaining line can be divided according to the remainder, and a coding unit that performs two-dimensional encoding on the image replaced by the replacement unit.
JP61312350A 1986-12-26 1986-12-26 Dither image encoding device Expired - Fee Related JPH07101919B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61312350A JPH07101919B2 (en) 1986-12-26 1986-12-26 Dither image encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61312350A JPH07101919B2 (en) 1986-12-26 1986-12-26 Dither image encoding device

Publications (2)

Publication Number Publication Date
JPS63164760A JPS63164760A (en) 1988-07-08
JPH07101919B2 true JPH07101919B2 (en) 1995-11-01

Family

ID=18028186

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61312350A Expired - Fee Related JPH07101919B2 (en) 1986-12-26 1986-12-26 Dither image encoding device

Country Status (1)

Country Link
JP (1) JPH07101919B2 (en)

Also Published As

Publication number Publication date
JPS63164760A (en) 1988-07-08

Similar Documents

Publication Publication Date Title
US4215374A (en) Encoding device comprising predictors for thinned and unthinned patterns
EP0103773B1 (en) Method of processing picture signal to increase average run length and apparatus therefor
WO1999044368A1 (en) Image data processing device and processing method
JPH07101919B2 (en) Dither image encoding device
JPS6282723A (en) Image encoding method
JPS5929020B2 (en) 2D block encoding method
JPH05151349A (en) Image data compression method and encoding circuit
JP2634793B2 (en) Color image signal encoding device
JPH0779426B2 (en) Dither image coding device
JPS6394781A (en) Encoding method for dither image
JP2615215B2 (en) Image data compression method
JPH0723238A (en) Image data compression and decompression device
JPH01216674A (en) Encoding system for picture signal and its apparatus
JPH0767140B2 (en) Equipment
JP2800250B2 (en) Data compression method
JPS62203479A (en) Dither picture encoding method
JP2755463B2 (en) Image data compression method
JPH036066Y2 (en)
JPS62199171A (en) Dither picture encoding method
JP2800252B2 (en) Data compression method
JPS6233793B2 (en)
JPS62203481A (en) Dither picture encoding method
JPS63232574A (en) Picture signal coder
JPS61251275A (en) Processing circuit for picture signal
JPS62203480A (en) Dither picture encoding method

Legal Events

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