JPH0132703B2 - - Google Patents

Info

Publication number
JPH0132703B2
JPH0132703B2 JP55104520A JP10452080A JPH0132703B2 JP H0132703 B2 JPH0132703 B2 JP H0132703B2 JP 55104520 A JP55104520 A JP 55104520A JP 10452080 A JP10452080 A JP 10452080A JP H0132703 B2 JPH0132703 B2 JP H0132703B2
Authority
JP
Japan
Prior art keywords
prediction
signal
selection
error signal
error
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
Application number
JP55104520A
Other languages
Japanese (ja)
Other versions
JPS5730464A (en
Inventor
Tooru Usubuchi
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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP10452080A priority Critical patent/JPS5730464A/en
Publication of JPS5730464A publication Critical patent/JPS5730464A/en
Publication of JPH0132703B2 publication Critical patent/JPH0132703B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 本発明は、画像信号を符号化する際に用いられ
る適応予測符号化装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an adaptive predictive encoding device used when encoding an image signal.

従来この種の適応予測符号化装置としては例え
ば特開昭55−41080号公報に示されているように
複数の予測手段を設け、一定のブロツク単位で複
数の予測誤差信号の予測はずれの画素数を比較
し、最も予測誤差の少ない予測誤差信号を選択す
る方法がある。この方法は、1ブロツクの中に例
えば網点写真および文字というように特徴の異な
る画像信号が混在している場合には予測効果が十
分でないという欠点があつた。
Conventionally, this type of adaptive predictive coding device has been provided with a plurality of prediction means, as shown in Japanese Patent Application Laid-Open No. 55-41080, and the number of pixels of which the prediction of a plurality of prediction error signals is incorrect is determined in a certain block unit. There is a method of comparing the prediction error signals and selecting the prediction error signal with the least prediction error. This method has the disadvantage that the prediction effect is not sufficient when image signals with different characteristics, such as halftone photographs and characters, coexist in one block.

本発明の目的は上述の従来の予測手段の欠点を
除去することであり、予測効果の高い適応予測符
号化装置を提供することにある。
An object of the present invention is to eliminate the drawbacks of the conventional prediction means described above, and to provide an adaptive predictive coding device with high prediction effects.

本発明の適応予測符号化装置は、現在の標本値
Xに対する予測値P1およびP2を過去の標本値を
用いて発生する手段と、前記予測値P1、P2およ
び標本値Xより予測誤差信号Y1,Y2を発生する
手段と、前記予測誤差信号Y1,Y2より予測選択
信号M1に従つて予測誤差信号Yを選択する手段
と、前記予測選択信号M1を少なくとも予測誤差
信号Y1,Y2と過去の予測選択信号を用いて予測
誤差信号Yが予測はずれのときは、前記予測選択
信号M1を変化させないという条件のもとに前記
予測選択信号M1を発生する手段と、前記予測誤
差信号Yと前記予測選択信号M1の変化を表わす
選択誤差信号Nとから誤差信号Eを発生する手段
と、前記誤差信号Eを符号化する手段とから構成
される。
The adaptive predictive coding device of the present invention includes means for generating predicted values P 1 and P 2 for the current sample value X using past sample values, and prediction from the predicted values P 1 and P 2 and the sample value X. means for generating error signals Y 1 and Y 2 ; means for selecting a prediction error signal Y from the prediction error signals Y 1 and Y 2 in accordance with a prediction selection signal M 1 ; and means for at least predicting the prediction selection signal M 1 . When the prediction error signal Y is a prediction error using the error signals Y 1 and Y 2 and the past prediction selection signal, the prediction selection signal M 1 is generated under the condition that the prediction selection signal M 1 is not changed. means for generating an error signal E from the prediction error signal Y and a selection error signal N representing a change in the prediction selection signal M1 ; and means for encoding the error signal E.

本発明の適応予測符号化装置は、例えば新聞フ
アクシミリのデータ圧縮符号化に適用されそれぞ
れ網点写真および文字の予測に適した2種類の予
測値P1、P2を発生する手段を用いその予測値P1
P2より得られる予測誤差信号Y1,Y2より予測誤
差が少なくなるように予測誤差信号Yを画素単位
で選択し、予測誤差信号Yとどの予測誤差信号を
選択したかに係る選択誤差信号Nの論理和である
誤差信号Eを符号化するので従来の予測符号化装
置に比べて予測効果の高い全体として符号化後の
情報量を減少させる作用効果を有するものであ
る。
The adaptive predictive encoding device of the present invention is applied to, for example, data compression encoding of newspaper facsimiles, and uses means for generating two types of predicted values P 1 and P 2 suitable for predicting halftone photographs and characters, respectively. value P 1 ,
The prediction error signal Y is selected pixel by pixel so that the prediction error is smaller than the prediction error signals Y 1 and Y 2 obtained from P 2 , and the prediction error signal Y and the selection error signal according to which prediction error signal is selected are Since the error signal E, which is the logical sum of N, is encoded, the present invention has the effect of reducing the amount of information after encoding, with a higher prediction effect than conventional predictive encoding devices.

次に図面を参照して本発明を詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1A図は、本発明の適応予測符号化装置に用
いられる網点写真用の予測器の参照画素の一例を
表わす図である。なお、第1A図は45゜の斜交網
点画像を対象としている。第1A図において距離
D(ここではD=10)は網点の周期を表わすもの
であり、画素xの標本値Xと同一位相関係(画像
の2次元網目周期パターン上で)にある画素は、
b0およびc0である。図において画素xの近傍画素
a1〜a6の標本値A1〜A6と網点の周期だけ主走査
方向に離れた画素b0の標本値B0およびその近傍
画素b1〜b5の標本値B1〜B5の組み合せは、第2
A図の予測器3a1に用いられる参照画素の一例を
示すものである。同様に画素xの近傍画素の標本
値A1〜A6と、網点の周期だけ斜め方向に離れた
画素c0の標本値C0およびその近傍画素c1〜c5の標
本値C1〜C5の組み合せも、第2A図の予測器3
a1に用いられる一例である。
FIG. 1A is a diagram showing an example of reference pixels of a halftone photo predictor used in the adaptive predictive coding apparatus of the present invention. Note that FIG. 1A is intended for a 45° diagonal halftone image. In FIG. 1A, the distance D (D=10 here) represents the period of the halftone dot, and the pixels that have the same phase relationship (on the two-dimensional mesh periodic pattern of the image) with the sample value X of the pixel x are:
b 0 and c 0 . In the figure, the neighboring pixels of pixel x
Sample values A 1 - A 6 of a 1 - a 6 , sample values B 0 of pixel b 0 separated in the main scanning direction by the period of the halftone dot, and sample values B 1 - B 5 of its neighboring pixels b 1 - b 5 The combination of
It shows an example of reference pixels used in the predictor 3a 1 in Figure A. Similarly, the sample values A 1 to A 6 of neighboring pixels of pixel x, the sample values C 0 of pixel c 0 diagonally separated by the period of the halftone dot, and the sample values C 1 to C 1 of its neighboring pixels c 1 to c 5 The combination of C 5 is also the predictor 3 in Figure 2A.
This is an example used for a 1 .

第1B図は、本発明の適応予測符号化装置に用
いられる文字用の予測器の参照画素の一例を表わ
す図である。図において画素xの標本値Xは、画
素xの近傍画素の標本値によつて予測される。画
素xの近傍画素a1〜a12の標本値A1〜A12の組み
合せは、第2A図の予測器3a2に用いられる一例
である。
FIG. 1B is a diagram showing an example of reference pixels of a character predictor used in the adaptive predictive encoding device of the present invention. In the figure, the sample value X of pixel x is predicted by the sample values of neighboring pixels of pixel x. The combination of sample values A 1 to A 12 of neighboring pixels a 1 to a 12 of pixel x is an example used in the predictor 3a 2 of FIG. 2A.

第2A図は、本発明の適応予測符号化装置の第
1の実施例を示すブロツク図であり、予測器とし
て第1A図の参照画素b0を中心とした場合と第1
B図を用いた場合の例である。図において、端子
1には標本化され、2値化された画像信号が印加
される。端子1に印加された標本値をXとする
と、この標本値Xはラインメモリ2、予測器3
a1,3a2に供給されるラインメモリ2は信号を約
1ライン遅延させるもので、1ラインの遅延量を
H(=8000サンプル)とすればその出力端子には
(H−6)=7994サンプル遅延した信号が得られ
る。予測器3a1,3a2はシフトレジスタおよびリ
ードオンリメモリ(ROM)より構成されてお
り、参照画素として第1A図および第1B図に示
された組み合せを用いて、それぞれ予測値P1
P2を出力する。予測値P1およびP2は排他的論理
和回路5a1および5a2で標本値Xと排他的論理和
がとられ、予測誤差信号Y1,Y2に変換されマル
チプレクサ6aに入力される。選択信号発生回路
4a(詳細は第4A図又は第4B図)は予測誤差
信号Y,Y1およびY2より予測選択信号M1および
誤差信号Eを発生し、誤差信号Eは符号器7に入
力される。マルチプレクサ6aでは、予測選択信
号M1に従い、予測誤差信号Yが画素単位で選択
される。誤差信号Eは次の符号器7(ランレング
ス符号器等の従来より使用されている符号器)で
符号化され出力端子8より出力される。
FIG. 2A is a block diagram showing a first embodiment of the adaptive predictive coding apparatus of the present invention, in which the predictor is centered on the reference pixel b0 in FIG.
This is an example using diagram B. In the figure, a sampled and binarized image signal is applied to terminal 1. Assuming that the sample value applied to terminal 1 is X, this sample value X is sent to line memory 2 and predictor 3.
The line memory 2 supplied to a 1 and 3a 2 delays the signal by about one line, and if the delay amount for one line is H (=8000 samples), its output terminal has (H-6) = 7994 A sample-delayed signal is obtained. The predictors 3a 1 and 3a 2 are composed of a shift register and a read-only memory (ROM), and use the combinations shown in FIGS. 1A and 1B as reference pixels to calculate the predicted values P 1 and 3a 2, respectively.
Output P 2 . The predicted values P 1 and P 2 are exclusive ORed with the sample value X in exclusive OR circuits 5a 1 and 5a 2 , converted into prediction error signals Y 1 and Y 2 , and input to the multiplexer 6a. The selection signal generation circuit 4a (see FIG. 4A or 4B for details) generates a prediction selection signal M1 and an error signal E from the prediction error signals Y, Y1 , and Y2 , and the error signal E is input to the encoder 7. be done. In the multiplexer 6a, the prediction error signal Y is selected pixel by pixel according to the prediction selection signal M1 . The error signal E is encoded by the next encoder 7 (a conventionally used encoder such as a run-length encoder) and outputted from an output terminal 8.

第2B図は本発明の第2の実施例を示すブロツ
ク図であり符号器7の符号化において誤差信号E
(予測誤差信号Yまたは選択誤差信号N)の他に
状態信号S(予測状態信号SYまたは選択状態信号
SN)を併せて符号化する場合の例を示すもので
ある。
FIG. 2B is a block diagram showing a second embodiment of the present invention.
(prediction error signal Y or selection error signal N), state signal S (prediction state signal S Y or selection state signal
This shows an example of a case where SN ) is encoded at the same time.

すなわち、予測状態信号SY(または選択状態信
号SN)は、参照画素パターンのそれぞれに対し
て予測誤差信号(選択誤差信号)の予測的中確率
を予め統計的に調べて予測的中確率の大小に対し
て予測誤差信号E(または選択誤差信号N)をグ
ループ分けするために用いられる信号であり、例
えば予測状態(選択状態)を2状態とする場合
は、予測的中確率がある値以上の参照画素パター
ンとそれ以外のパターンに分けられる。
That is, the predicted state signal S Y (or selected state signal S N ) is calculated by statistically examining the predicted hit probability of the prediction error signal (selection error signal) for each reference pixel pattern in advance. This is a signal used to group the prediction error signal E (or selection error signal N) according to size. For example, when there are two prediction states (selection states), the prediction probability is greater than or equal to a certain value. The reference pixel patterns are divided into reference pixel patterns and other patterns.

第2B図において、予測状態信号S1,S2および
選択状態信号SNは、予測値P1、P2と同様にシフ
トレジスタおよびROMより構成される予測器3
a′1,3a′2および標本値Xとラインメモリ2出力
信号から選択状態信号を得る選択状態信号発生回
路9より発生され、予測状態信号S1,S2はマルチ
プレクサ6a′1に選択状態信号SNはマルチプレク
サ6bに入力される。マルチプレクサ6a′1は、
予測選択信号M1に従い予測誤差信号Yおよび予
測状態信号SYを選択し、予測誤差信号Yを選択信
号発生回路4aに入力し、予測状態信号SYをマル
チプレクサ6bに入力する。マルチプレクサ6b
は、誤差選択信号M2に従い、誤差信号Eに対応
する状態信号Sを予測状態信号SYおよび選択状態
信号SNより、選択し、符号器7′に入力する。符
号器7′では、状態信号Sを用いて誤差信号Eを
ランレングス符号化する。このような誤差信号E
と状態信号Sを用いたランレングス符号化法につ
いては特開昭55−41080号公報に記載されている。
In FIG. 2B, the predicted state signals S 1 , S 2 and the selected state signal SN are sent to the predictor 3 which is composed of a shift register and a ROM in the same way as the predicted values P 1 , P 2 .
A ' 1 , 3a' 2 and a selection state signal generation circuit 9 which obtains a selection state signal from the sample value S N is input to multiplexer 6b. The multiplexer 6a′ 1 is
The prediction error signal Y and the prediction state signal S Y are selected in accordance with the prediction selection signal M 1 , the prediction error signal Y is input to the selection signal generation circuit 4a, and the prediction state signal S Y is input to the multiplexer 6b. multiplexer 6b
selects the state signal S corresponding to the error signal E from the predicted state signal S Y and the selected state signal S N according to the error selection signal M 2 and inputs it to the encoder 7'. The encoder 7' performs run-length encoding on the error signal E using the state signal S. Such an error signal E
A run-length encoding method using the state signal S and the state signal S is described in Japanese Patent Laid-Open No. 55-41080.

第3A図は第2A図に用いられる予測器3a1
一実施例を示すブロツク図であり、参照画素とし
て第1A図の主走査方向の網点を用いたものであ
る。端子10および11には現走査線および前走
査線の信号が印加される。端子10に印加された
標本値をXとすると、シフトレジスタ12a,1
2bおよび12cで1〜2および9〜11サンプル
時刻遅延され、第1A図における画素a1,a2,b0
〜b2の標本値A1,A2,B0〜B2が得られる。端子
11には、標本値Xが(H−5)=7995サンプル
時刻遅延した信号が印加されるがシフトレジスタ
12dで更に4サンプル時刻遅延される。シフト
レジスタ12e,12fおよび12gでは、1〜
4および12〜14サンプル時刻遅延され、第1A図
における画素a3〜a6およびb3〜b5の標本値A3
A6およびB3〜B5が得られる。このようにして得
られた参照画素の標本値A1〜A6、B1〜B5および
B0は、ROM13にアドレスとして印加されその
出力端子14に前述の予測値P1を発生する。参
照画素として第1B図に示された文字用の予測器
3a2の場合の実施例もシフトレジスタおよび
ROMを使つた回路構成で同様に実施できる。
FIG. 3A is a block diagram showing an embodiment of the predictor 3a1 used in FIG. 2A, in which halftone dots in the main scanning direction of FIG. 1A are used as reference pixels. Current scan line and previous scan line signals are applied to terminals 10 and 11. If the sample value applied to the terminal 10 is X, then the shift registers 12a, 1
2b and 12c, the pixels a 1 , a 2 , b 0 in FIG.
~ b2 sample values A1 , A2 , B0 ~ B2 are obtained. A signal in which the sample value X is delayed by (H-5)=7995 sample times is applied to the terminal 11, and is further delayed by 4 sample times by the shift register 12d. In shift registers 12e, 12f and 12g, 1 to
4 and 12 to 14 sample times delayed, and the sample values A 3 to A 3 of pixels a 3 to a 6 and b 3 to b 5 in FIG.
A 6 and B 3 to B 5 are obtained. The reference pixel sample values A 1 to A 6 , B 1 to B 5 and
B 0 is applied as an address to the ROM 13 and generates the aforementioned predicted value P 1 at its output terminal 14 . The embodiment in the case of the character predictor 3a2 shown in FIG. 1B as a reference pixel also uses a shift register and
It can be similarly implemented with a circuit configuration using ROM.

以上予測器の参照画素として画素xと同一位相
関係にある画素を1つだけ選んだ場合の実施例に
ついて述べたが、参照画素として画素xと同一位
相関係にある画素を複数個同時に利用できる。例
えば、参照画素として第1A図に示されたxの近
傍画素a1,a4〜a6と、xと同一位相関係にある
b0,c0およびその近傍画素b2,b4,b5,c2,c4
c5の標本値A1,A4〜A6,B0,B2,B4,B5,C0
C2,C4,C5を用いた予測器等が含まれることは
勿論である。
Although an embodiment has been described above in which only one pixel having the same phase relationship with pixel x is selected as the reference pixel of the predictor, a plurality of pixels having the same phase relationship with pixel x can be used simultaneously as the reference pixel. For example, pixels a 1 , a 4 to a 6 near x shown in FIG. 1A as reference pixels have the same phase relationship with x.
b 0 , c 0 and its neighboring pixels b 2 , b 4 , b 5 , c 2 , c 4 ,
Sample values of c 5 A 1 , A 4 to A 6 , B 0 , B 2 , B 4 , B 5 , C 0 ,
Of course, predictors using C 2 , C 4 , and C 5 are included.

第3B図は、第2B図に用いられる予測器3
a′1の一実施例を示すブロツク図である。図にお
いて第3A図の予測器3a1と異なる点は予測状態
信号S1を発生するROMが追加された点であり、
その他は全く等しい。予測状態信号S1は予測値
P1と同様にあらかじめ数種類の紙面より統計的
に求められる。
FIG. 3B shows the predictor 3 used in FIG. 2B.
FIG. 3 is a block diagram showing an embodiment of a'1 . The difference in the figure from the predictor 3a 1 in FIG. 3A is that a ROM for generating a prediction state signal S 1 is added.
Everything else is exactly the same. Predicted state signal S 1 is the predicted value
As with P 1 , it is statistically determined in advance from several types of papers.

第4A図は、第2A図および第2B図に用いら
れる選択信号発生回路4aの第1の実施例を示す
ブロツク図であり、第5A図に示す予測選択信号
M1および誤差信号Eを発生する回路である。な
お、第5A図は選択信号の関係を説明するための
図である。第4A図においてまず最初にレジスタ
24aは予測選択信号M1が走査線の始まりで予
測誤差信号Y1側を選択するようにリセツトされ
る。次に端子20および21より印加される予測
誤差信号Y1,Y2およびレジスタ24aの出力で
ある一画素前の予測選択信号M1に従つてROM2
3では、予測選択信号M1および誤差選択信号M2
が発生され、予測選択信号M1は端子27より誤
差選択信号M2は端子28より出力される。レジ
スタ24aでは、予測選択信号M1を一画素遅延
させ、排他的論理和回路25で予測選択信号M1
の変化点である選択誤差信号Nを発生し、マルチ
プレクサ26に入力する。マルチプレクサ26で
は誤差選択信号M2に従い予測誤差信号Yおよび
選択誤差信号Nより、誤差信号Eを選択し、端子
29より出力する。
FIG. 4A is a block diagram showing a first embodiment of the selection signal generation circuit 4a used in FIGS. 2A and 2B, and the predicted selection signal shown in FIG. 5A.
This is a circuit that generates M1 and an error signal E. Note that FIG. 5A is a diagram for explaining the relationship between selection signals. In FIG. 4A, the register 24a is first reset so that the prediction selection signal M1 selects the prediction error signal Y1 at the beginning of the scan line. Next, according to the prediction error signals Y 1 and Y 2 applied from the terminals 20 and 21 and the prediction selection signal M 1 of the previous pixel, which is the output of the register 24a, the ROM 2
3, the prediction selection signal M 1 and the error selection signal M 2
is generated, and the prediction selection signal M 1 is output from the terminal 27 and the error selection signal M 2 is output from the terminal 28 . The register 24a delays the prediction selection signal M1 by one pixel, and the exclusive OR circuit 25 outputs the prediction selection signal M1.
A selection error signal N, which is the change point of , is generated and input to the multiplexer 26 . The multiplexer 26 selects the error signal E from the prediction error signal Y and the selection error signal N according to the error selection signal M2 , and outputs it from the terminal 29.

次に第5A図を用いて、本発明の予測選択信
号、誤差選択信号M1,M2、予測誤差信号Y1
Y2選択誤差信号Nおよび誤差信号Eの関係につ
いて述べる。図において、誤差信号、Y1,Y2
YおよびNの斜線部即ちY1,Y2,YおよびN=
1は予測はずれを、その他即ちY1,Y2,Yおよ
びN=0は予測当たりを示す。選択信号M1また
はM2の斜線部即ちM1またはM2=1は予測誤差
信号Y2または選択誤差信号Nを選択することを、
その他即ちM1またはM2=0は予測誤差信号Y1
たは予測誤差信号Yを選択することを示す。ここ
で予測選択信号M1および誤差選択信号M2は、そ
れぞれ予測誤差信号Y1,Y2より予測誤差信号Y
を、予測誤差信号Y、選択誤差信号Nより誤差信
号Eを選択する信号であり、最終的に誤差信号E
の予測はずれの個数を減少させるように選ばれ
る。つまり、予測誤差信号Y1およびY2の予測は
ずれは、予測誤差信号Y1およびY2が写真および
文字のそれぞれに適した予測より得られる信号と
すれば、対応していない部分では第5A図の予測
誤差信号Y1およびY2のように予測はずれが連続
して起こる可能性が強い。このような場合には、
予測選択信号M1を用い予測誤差が少なくなるよ
うに予測誤差信号Y1およびY2を自動的に切り変
えれば、誤差信号Eの予測はずれの個数は減少
し、符号化後の情報量は減少する。
Next, using FIG. 5A, the prediction selection signal, error selection signal M 1 , M 2 , prediction error signal Y 1 ,
The relationship between the Y2 selection error signal N and the error signal E will be described. In the figure, the error signals, Y 1 , Y 2 ,
Shaded areas of Y and N, i.e. Y 1 , Y 2 , Y and N=
1 indicates an incorrect prediction; others, ie, Y 1 , Y 2 , Y, and N=0, indicate a correct prediction. The shaded part of the selection signal M 1 or M 2 , that is, M 1 or M 2 = 1, indicates that the prediction error signal Y 2 or the selection error signal N is selected.
Others, ie, M 1 or M 2 =0, indicates that the prediction error signal Y 1 or the prediction error signal Y is selected. Here, the prediction selection signal M 1 and the error selection signal M 2 are the prediction error signal Y from the prediction error signals Y 1 and Y 2 , respectively.
is a signal that selects the error signal E from the prediction error signal Y and the selection error signal N, and finally the error signal E
is chosen to reduce the number of mispredictions. In other words, if the prediction error signals Y 1 and Y 2 are signals obtained from predictions suitable for each of the photographs and characters, then the prediction error of the prediction error signals Y 1 and Y 2 is as shown in FIG. There is a strong possibility that prediction errors will occur continuously, such as in the prediction error signals Y 1 and Y 2 . In such a case,
If the prediction error signals Y 1 and Y 2 are automatically switched using the prediction selection signal M 1 to reduce the prediction error, the number of mispredictions of the error signal E will be reduced, and the amount of information after encoding will be reduced. do.

第5A図において予測選択信号M1および誤差
選択信号M2は、次のようにして求められる。予
測選択信号M1は予測誤差信号Yの予測はずれが
最小となるように決められる。つまり、予測誤差
信号Y1およびY2の両方が予測はずれの場合だけ
予測誤差信号Yを予測はずれとするように予測誤
差信号Yが選択される。そのための予測選択信号
M1の切り変えは一画素前に選ばれた予測誤差信
号側が予測はずれの時に行なわれる。この時誤差
選択信号M2は次のようにして求められる。誤差
選択信号M2は、予測誤差信号Y又は選択誤差信
号Nのどちらかの予測はずれ(両方同時に予測は
ずれとはならない)を選択するものであり、選択
誤差信号Nが予測はずれとなる可能性のある時、
即ちどちらか一方の予測誤差信号が予測はずれと
なる時、選択誤差信号Nを選ぶ。以上の論理を実
施するために用いた第4A図のROM23の内容
即ちテーブルを第6A図に、また予測選択信号
M1および誤差信号Eを論理式で表わした結果を
次式に示す。なお、は排他的論理和、+は論理
和、・は論理積、はXの反転を示す。
In FIG. 5A, the prediction selection signal M 1 and the error selection signal M 2 are obtained as follows. The prediction selection signal M1 is determined so that the prediction error of the prediction error signal Y is minimized. In other words, the prediction error signal Y is selected so that the prediction error signal Y is determined to be a misprediction only when both the prediction error signals Y 1 and Y 2 are mispredictions. Predicted selection signal for that
Switching of M1 is performed when the prediction error signal side selected one pixel before is predicted incorrectly. At this time, the error selection signal M2 is obtained as follows. The error selection signal M2 selects whether the prediction error signal Y or the selection error signal N is incorrect (both predictions cannot be incorrect at the same time), and the selection error signal N is used to select the possibility that the prediction error signal N is incorrect. One day,
That is, when either prediction error signal results in a prediction error, the selection error signal N is selected. The contents of the ROM 23 in FIG. 4A, that is, the table used to implement the above logic, are shown in FIG. 6A, and the prediction selection signal
The result of expressing M 1 and the error signal E in a logical formula is shown in the following formula. Note that "+" indicates exclusive OR, "+" indicates logical AND, and "X" indicates inversion.

M1=(P1P2)・M′11・P2・X +P12・ E=12・X+P1・P2・+M′1M1 第6A図においてM′1は一画素前の予測選択信
号M1を表わす。第6A図のテーブルを用い、第
5A図の予測誤差信号Y1およびY2を入力として、
予測選択信号M1、予測誤差信号Y、選択誤差信
号N、誤差選択信号M2、誤差信号Eを求めた結
果を第5A図の下の部分に示す。このようにして
求められた誤差信号Eの予測はずれの個数は8
で、元の予測誤差信号Y1,Y2の予測はずれの個
数10、12に比べて少なくなつている。第4B図
は、第2A図に用いられる予測選択信号発生回路
4aの第2の実施例を示すブロツク図であり、第
5B図に示す予測選択信号M1および誤差選択信
号M2を発生する回路である。なお、第5B図は
選択信号の関係を説明するための図である。第4
A図と第4B図の違いは、第4B図において、予
測選択信号M1および誤差選択信号M2を決定する
ROM23′の入力として、一画素遅れの予測誤
差信号Y1およびY2を用いている点である。第5
B図において、予測選択信号M1および誤差選択
信号M2は予測誤差信号の予測はずれが連続して
一方側だけ生じ易いことより次のようにして求め
られる。予測選択信号M1の切り変えは、一画素
前に選ばれた予測誤差信号側だけが予測はずれで
その前の予測誤差信号も予測はずれの時に行なわ
れる。この時誤差選択信号M2は、選択誤差信号
Nが予測はずれとなる可能性のある時、即ち予測
誤差信号Y1またはY2が連続して予測はずれとな
る時、選択誤差信号Nを選ぶ。以上の論理を実施
するために用いた第4B図のROM23′の内容
即ちテーブルを第6B図に示す。図において、
Y′1,Y′2,M′1はそれぞれ一画素前の予測誤差信
号Y1,Y2予測選択信号M1を表わす。第6B図の
テーブルを用い第5B図の予測誤差信号Y1およ
びY2を入力として、予測選択信号M1、予測誤差
信号Y、選択誤差信号N、誤差選択信号M2、誤
差信号Eを求めた結果を第5B図の下の部分に示
す。このときの誤差信号Eの予測はずれの個数は
8で、元の予測誤差信号Y1,Y2の予測はずれの
個数10、12に比べて少なくなつている。第5A図
と第5B図の違いは、標本値第7〜第11番目と標
本値第29〜第34番目に表われる。前者では予測誤
差信号Y1側だけが孤立した予測はずれの個数が
1つと少ないので第5B図側の誤差信号Eが少な
く、後者では、予測誤差信号Y2側だけが孤立し
た予測はずれは、3と2以上なので第5A図側の
誤差信号Eが少なくなる。
M 1 = (P 1 P 2 )・M′ 1 + 1・P 2・X +P 12・E= 12・X+P 1・P 2・+M′ 1 M 1In Figure 6A, M′ 1 is It represents the prediction selection signal M1 of one pixel before. Using the table in FIG. 6A and inputting the prediction error signals Y 1 and Y 2 in FIG. 5A,
The results of determining the prediction selection signal M 1 , prediction error signal Y, selection error signal N, error selection signal M 2 and error signal E are shown in the lower part of FIG. 5A. The number of prediction errors in the error signal E obtained in this way is 8.
Therefore, the number of prediction errors of the original prediction error signals Y 1 and Y 2 is smaller than 10 and 12. FIG. 4B is a block diagram showing a second embodiment of the prediction selection signal generation circuit 4a used in FIG. 2A, and a circuit for generating the prediction selection signal M1 and error selection signal M2 shown in FIG. 5B. It is. Note that FIG. 5B is a diagram for explaining the relationship between selection signals. Fourth
The difference between Figure A and Figure 4B is that in Figure 4B, the prediction selection signal M 1 and the error selection signal M 2 are determined.
The difference is that the prediction error signals Y 1 and Y 2 delayed by one pixel are used as inputs to the ROM 23'. Fifth
In Figure B, the prediction selection signal M 1 and the error selection signal M 2 are obtained as follows since prediction errors in the prediction error signal tend to occur continuously on only one side. The prediction selection signal M1 is switched when only the prediction error signal selected one pixel before is predicted incorrectly and the previous prediction error signal is also predicted incorrectly. At this time, the error selection signal M 2 selects the selection error signal N when there is a possibility that the selection error signal N will be unpredicted, that is, when the prediction error signal Y 1 or Y 2 will be unpredicted continuously. FIG. 6B shows the contents or table of the ROM 23' of FIG. 4B used to implement the above logic. In the figure,
Y′ 1 , Y′ 2 , and M′ 1 represent the prediction error signal Y 1 and Y 2 prediction selection signal M 1 of one pixel before, respectively. Using the table in FIG. 6B and inputting the prediction error signals Y 1 and Y 2 in FIG. 5B, the prediction selection signal M 1 , prediction error signal Y, selection error signal N, error selection signal M 2 , and error signal E are determined. The results are shown in the lower part of Figure 5B. The number of prediction errors in the error signal E at this time is 8, which is smaller than the 10 and 12 prediction errors in the original prediction error signals Y 1 and Y 2 . The difference between FIG. 5A and FIG. 5B appears in the 7th to 11th sample values and the 29th to 34th sample values. In the former case, the number of isolated prediction errors on the prediction error signal Y1 side is as small as one, so the error signal E on the side of Figure 5B is small; in the latter case, the number of isolated prediction errors on the prediction error signal Y2 side is 3. and 2 or more, the error signal E on the side of FIG. 5A decreases.

第7A図は、本発明の第1の実施例即ち第2A
図の適応予測符号化装置で符号化された符号を復
号する適応予測復号化装置に関するブロツク図で
ある。図において端子41に印加された符号は、
復号器42で誤差信号Eに復号される。誤差信号
Eは、選択信号発生回路4b(第7A図又は第7
B図)で、予測P1およびP2に従い、予測誤差信
号Yおよび予測選択信号M1に変換される。予測
誤差信号Yは排他的論理和回路5a1および5a2
予測器3a1および3a2より出力される予測値P1
よびP2と排他的論理和がとられ、復号信号X1
よびX2を生成する。次にマルチプレクサ6aで
は、予測選択信号M1に従い、復号信号X1および
X2よりXが選択される。それ以外のラインメモ
リ2、予測器3a1,3a2の部分は、本発明の適応
予測符号器の第1の実施例である第2A図と全く
同じ回路構成で同じ動作をする。
FIG. 7A shows the first embodiment of the invention, namely the second embodiment.
FIG. 2 is a block diagram of an adaptive predictive decoding device that decodes codes encoded by the adaptive predictive encoding device shown in the figure. In the figure, the symbol applied to the terminal 41 is
It is decoded into an error signal E by a decoder 42. The error signal E is generated by the selection signal generation circuit 4b (FIG. 7A or
In Figure B), the predictions P 1 and P 2 are converted into a prediction error signal Y and a prediction selection signal M 1 . The prediction error signal Y is exclusive-ORed with the predicted values P 1 and P 2 output from the predictors 3a 1 and 3a 2 in exclusive OR circuits 5a 1 and 5a 2 , and decoded signals X 1 and X 2 are obtained. generate. Next, in the multiplexer 6a, according to the prediction selection signal M1 , the decoded signals X1 and
X is selected from X 2 . The other parts, such as the line memory 2 and predictors 3a 1 and 3a 2 , have exactly the same circuit configuration and operate in the same way as in FIG. 2A, which is the first embodiment of the adaptive predictive encoder of the present invention.

第7B図は、本発明の第2の実施例即ち第2B
図の適応予測符号化装置で符号化された符号を復
号する適応予測復号化装置に関するブロツク図で
ある。第6A図の第1の実施例と異なる点は、復
号器42′が状態信号S(予測状態信号SYまたは選
択状態信号SN)を用いて誤差信号E(予測誤差信
号Yまたは選択誤差信号N)を復号する点と、第
2B図に示された符号器側と同様に、予測器3
a′1,3a′2が予測状態信号S1,S2を発生し、選択
状態信号発生回路9およびマルチプレクサ6bが
必要な点である。
FIG. 7B shows a second embodiment of the invention, namely FIG.
FIG. 2 is a block diagram of an adaptive predictive decoding device that decodes codes encoded by the adaptive predictive encoding device shown in the figure. The difference from the first embodiment shown in FIG. 6A is that the decoder 42' uses the state signal S (prediction state signal S Y or selection state signal S N ) to use the error signal E (prediction error signal Y or selection error signal N), and similarly to the encoder side shown in FIG. 2B, the predictor 3
a' 1 and 3a' 2 generate predicted state signals S 1 and S 2 , and a selection state signal generating circuit 9 and a multiplexer 6b are required.

次に第8A図および第8B図は、第7A図およ
び第7B図に用いられる選択信号発生回路46の
一実施例を示すブロツク図である。第8A図は、
第4A図の選択信号発生回路4aに対応する回路
4bである。即ち第5A図に示された誤差信号E
より予測誤差信号Yおよび予測選択信号M1を発
生する回路である。図において、端子50,5
1,52より印加された予測値P1,P2および誤
差信号EをアドレスとしてROM53は、予測誤
差信号Yおよび選択誤差信号Nを発生し、予測誤
差信号Yは端子56より出力する。選択誤差信号
Nは、レジスタ54および排他的論理和回路55
bで予測選択信号M1に変換され、端子57より
出力される。また、誤差選択信号M2は排他的論
理和回路55aで予測値P1、P2の排他的論理和
をとることによつて得られ、端子58より出力さ
れる。ここで用いられるROMの内容即ちテーブ
ルを第9A図にまた予測選択信号M1および復号
信号Xを論理式で表わした結果を次式に示す。
Next, FIGS. 8A and 8B are block diagrams showing one embodiment of the selection signal generating circuit 46 used in FIGS. 7A and 7B. Figure 8A shows
This circuit 4b corresponds to the selection signal generation circuit 4a of FIG. 4A. That is, the error signal E shown in FIG. 5A
This circuit generates a prediction error signal Y and a prediction selection signal M1 . In the figure, terminals 50, 5
The ROM 53 uses the predicted values P 1 and P 2 and the error signal E applied from the terminals 1 and 52 as addresses to generate a prediction error signal Y and a selection error signal N, and the prediction error signal Y is outputted from the terminal 56. The selection error signal N is sent to the register 54 and the exclusive OR circuit 55.
It is converted into a prediction selection signal M 1 at step b, and is output from the terminal 57. Further, the error selection signal M 2 is obtained by taking the exclusive OR of the predicted values P 1 and P 2 in the exclusive OR circuit 55a, and is output from the terminal 58. The contents of the ROM, that is, the table used here, are shown in FIG. 9A, and the result of expressing the prediction selection signal M1 and the decoded signal X by a logical equation is shown in the following equation.

M1=(P1P2)・E′1 X=12・E+P1・P2・+1 ・P2・(M′1E)+P12・(M′1) 第8B図は、第4B図の選択信号発生回路4a
に対応する回路4bである。
M 1 = (P 1 P 2 )・E′ 1 X= 12・E+P 1・P 2・+ 1・P 2・(M′ 1 E)+P 12・(M′ 1 ) Figure 8B is the selection signal generation circuit 4a of FIG. 4B.
This is a circuit 4b corresponding to.

即ち第5B図に示された誤差信号Eより予測誤
差信号Yおよび予測選択信号M1を発生する回路
である。図において端子51,52より印加され
た予測値P1,P2は、排他的論理和回路55b,
55cで端子59より印加された標本値Xと排他
的論理和がとられ予測誤差信号Y1,Y2を発生す
る。予測誤差信号Y1,Y2はレジスタ60で一画
素遅延され、予測値P1、P2、誤差信号Eと同様
にROM53′のアドレスとして印加され、予測
誤差信号Yおよび選択誤差信号Nを発生する。こ
こで用いられるROM53′の内容即ちテーブル
を第9B図に示す。
That is, this circuit generates a prediction error signal Y and a prediction selection signal M1 from the error signal E shown in FIG. 5B. In the figure, the predicted values P 1 and P 2 applied from the terminals 51 and 52 are connected to the exclusive OR circuit 55b,
At 55c, an exclusive OR is performed with the sample value X applied from the terminal 59 to generate prediction error signals Y 1 and Y 2 . The prediction error signals Y 1 and Y 2 are delayed by one pixel in the register 60, and are applied as addresses to the ROM 53' in the same way as the prediction values P 1 and P 2 and the error signal E, thereby generating the prediction error signal Y and the selection error signal N. do. The contents of the ROM 53', that is, the table used here, are shown in FIG. 9B.

以上本発明の適応予測符号化装置は、それぞれ
網点写真および文字の予測に適した2種類の予測
値を発生する予測器を用い、予測器より得られる
予測誤差信号Yを画素単位で選択し、更にどちら
の予測器を用いたかを示す選択誤差信号Nも同時
に符号化することによりモード符号のいらない、
つまり符号化後の情報量の少ない適応予測符号化
装置となつている。
As described above, the adaptive predictive encoding device of the present invention uses a predictor that generates two types of predicted values suitable for predicting halftone photographs and characters, respectively, and selects the prediction error signal Y obtained from the predictor on a pixel basis. , Furthermore, by simultaneously encoding the selection error signal N indicating which predictor is used, no mode code is required.
In other words, it is an adaptive predictive encoding device with a small amount of information after encoding.

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

第1A図および第1B図は、本発明に用いられ
る予測器の参照画素の一例を示す図、第2A図お
よび第2B図は、本発明の第1および第2の実施
例を示すブロツク図、第3A図および第3B図
は、本発明に用いられる予測器の一例を示すため
のブロツク図、第4A図および第4B図は本発明
の符号化装置の選択信号発生回路の一例を示すブ
ロツク図、第5A図および第5B図は、本発明の
選択信号の関係を説明するための図、第6A図お
よび第6B図は、本発明の符号化装置の選択信号
発先回路に用いられるROMの内容を示す図、第
7A図および第7B図は、本発明に係る適応予測
復号化装置の一実施例を示すブロツク図、第8A
図および第8B図は、本発明に係る復号化装置の
選択信号発生回路の一例を示すブロツク図、第9
A図および第9B図は、本発明の復号化装置の選
択信号発生回路に用いられるROMの内容を示す
図である。 図において参照数字2はラインメモリ、3a1
3a2,3a′1および3a′2は予測器、4aおよび4
bは選択信号発生回路、5a1,5a2,25,55
a,55bおよび55cは排他的論理和回路、6
a,6a′,6bおよび26はマルチプレクサ、7
および7′は符号器、9は選択状態信号発生回路、
12a,12b,12c,12d,12e,12
f,12g,24a,24bおよび60はシフト
レジスタ、13,13′,23,23′,53およ
び53′はROM、42および42′は復号器、5
4はカウンタを表わす。
1A and 1B are diagrams showing an example of reference pixels of a predictor used in the present invention; FIGS. 2A and 2B are block diagrams showing first and second embodiments of the present invention; FIGS. 3A and 3B are block diagrams showing an example of a predictor used in the present invention, and FIGS. 4A and 4B are block diagrams showing an example of a selection signal generation circuit of the encoding device of the present invention. , FIGS. 5A and 5B are diagrams for explaining the relationship between selection signals of the present invention, and FIGS. 6A and 6B are diagrams for explaining the relationship between selection signals of the encoding device of the present invention. 7A and 7B are block diagrams showing an embodiment of an adaptive predictive decoding device according to the present invention, and FIG.
9 and 8B are block diagrams showing an example of the selection signal generation circuit of the decoding device according to the present invention, and FIG.
FIG. A and FIG. 9B are diagrams showing the contents of the ROM used in the selection signal generation circuit of the decoding device of the present invention. In the figure, reference number 2 is line memory, 3a 1 ,
3a 2 , 3a' 1 and 3a' 2 are predictors, 4a and 4
b is a selection signal generation circuit, 5a 1 , 5a 2 , 25, 55
a, 55b and 55c are exclusive OR circuits, 6
a, 6a', 6b and 26 are multiplexers, 7
and 7' is an encoder; 9 is a selection state signal generation circuit;
12a, 12b, 12c, 12d, 12e, 12
f, 12g, 24a, 24b and 60 are shift registers; 13, 13', 23, 23', 53 and 53' are ROMs; 42 and 42' are decoders;
4 represents a counter.

Claims (1)

【特許請求の範囲】[Claims] 1 2値画像信号を符号化する適応予測符号化装
置において、現在の標本値Xに対する予測値P1
およびP2を過去の標本値を用いて発生する手段
と、前記予測値P1,P2および標本値Xより予測
誤差信号Y1,Y2を発生する手段と、前記予測誤
差信号Y1,Y2と過去の標本値に対する予測選択
信号M1′より予測選択信号M1を発生するととも
に、前記Y1,Y2の一方のみが予測外れとなる可
能性が高いことを示す誤差選択信号M2を発生す
る手段と、前記予測誤差信号Y1,Y2の1つを前
記予測選択信号M1にしたがつて予測誤差信号Y
として選択する手段と、前記予測選択信号M1
変化点を示す選択誤差信号Nを発生する手段と、
前記予測誤差信号Yおよび前記選択誤差信号Nの
一方を前記誤差選択信号M2にもとづいて誤差信
号Eとして選択する手段と、前記誤差信号Eを符
号化する手段とから構成されることを特徴とする
適応予測符号化装置。
1 In an adaptive predictive coding device that codes a binary image signal, the predicted value P 1 for the current sample value
and P 2 using past sample values; means for generating prediction error signals Y 1 and Y 2 from the predicted values P 1 and P 2 and the sample value X; A prediction selection signal M 1 is generated from Y 2 and a prediction selection signal M 1 ' for the past sample value, and an error selection signal M indicating that there is a high possibility that only one of Y 1 and Y 2 will be an incorrect prediction is generated. means for generating a prediction error signal Y in accordance with the prediction selection signal M 1 by making one of the prediction error signals Y 1 and Y 2 into the prediction selection signal M 1 ;
means for generating a selection error signal N indicating a change point of the predicted selection signal M1 ;
It is characterized by comprising means for selecting one of the prediction error signal Y and the selection error signal N as the error signal E based on the error selection signal M2 , and means for encoding the error signal E. adaptive predictive coding device.
JP10452080A 1980-07-30 1980-07-30 Adaptive forecasting and encoding device Granted JPS5730464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10452080A JPS5730464A (en) 1980-07-30 1980-07-30 Adaptive forecasting and encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10452080A JPS5730464A (en) 1980-07-30 1980-07-30 Adaptive forecasting and encoding device

Publications (2)

Publication Number Publication Date
JPS5730464A JPS5730464A (en) 1982-02-18
JPH0132703B2 true JPH0132703B2 (en) 1989-07-10

Family

ID=14382760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10452080A Granted JPS5730464A (en) 1980-07-30 1980-07-30 Adaptive forecasting and encoding device

Country Status (1)

Country Link
JP (1) JPS5730464A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6012865A (en) * 1983-07-01 1985-01-23 Canon Inc Highly efficient encoding system of picture data
JPS6052167A (en) * 1983-09-01 1985-03-25 Nec Corp Adaptive forecasting coder
US4559563A (en) * 1983-10-11 1985-12-17 Xerox Corporation Adaptive prediction for binary encoded documents containing a mixture of text, line drawings and halftones
JPS6229372A (en) * 1985-07-31 1987-02-07 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Compression of binary data

Also Published As

Publication number Publication date
JPS5730464A (en) 1982-02-18

Similar Documents

Publication Publication Date Title
US4633325A (en) Adaptive predictive encoding and/or decoding apparatus
JP2000115783A (en) Decoder and its method
JPH04270568A (en) Data compression system in picture processing unit
JPH06333035A (en) Image processor
JPS6145429B2 (en)
JPS60229573A (en) Encoding and transmitting system for half-tone picture information
JP3466058B2 (en) Image decoding apparatus and image decoding method
JPH0132703B2 (en)
JPH0132702B2 (en)
JPH04270564A (en) Serial picture data compression system having color information
JP2000217000A (en) Image processor, image processing method and recording medium
JPH0121667B2 (en)
JPS6360952B2 (en)
JPH06164413A (en) Method for constituting arithmetic sign encoding device and decoding device
JP3235510B2 (en) Encoding method and encoding device, decoding method and decoding device
JPH0121668B2 (en)
JP2000152226A (en) Image coder and method, image decoder and method and served medium
JPS5930366A (en) Device for encoding picture
JPH047871B2 (en)
JPH04178074A (en) Coding decoding system for picture signal and its device
JPH0142189B2 (en)
JP3227237B2 (en) Encoding device
JPS6358509B2 (en)
JPS63197172A (en) Prediction encoder
JPH1185979A (en) Device and method for pattern matching encoding and medium for recording control program for pattern matching encoder