JPH0132702B2 - - Google Patents

Info

Publication number
JPH0132702B2
JPH0132702B2 JP55104519A JP10451980A JPH0132702B2 JP H0132702 B2 JPH0132702 B2 JP H0132702B2 JP 55104519 A JP55104519 A JP 55104519A JP 10451980 A JP10451980 A JP 10451980A JP H0132702 B2 JPH0132702 B2 JP H0132702B2
Authority
JP
Japan
Prior art keywords
signal
prediction
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
JP55104519A
Other languages
Japanese (ja)
Other versions
JPS5730463A (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 JP10451980A priority Critical patent/JPS5730463A/en
Publication of JPS5730463A publication Critical patent/JPS5730463A/en
Publication of JPH0132702B2 publication Critical patent/JPH0132702B2/ja
Granted legal-status Critical Current

Links

Classifications

    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41—Bandwidth 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 decoding device used when decoding codes encoded by an adaptive predictive encoding device that predictively encodes an image signal.

従来、この種の適応予測符号化方式としては、
例えば、特開昭55−41080号公報に示されている
予測手段を設け、一定のブロツク単位で複数の予
測誤差信号の予測はずれの画素数を比較し、いず
れか1つの予測誤差信号を選択する方法がある。
この方法は、1ブロツクの中に網点写真および文
字というように特徴の異なる画像信号が混在して
いる場合には、予測効果が十分でないという欠点
があつた。
Conventionally, this type of adaptive predictive coding method uses
For example, a prediction means disclosed in Japanese Patent Application Laid-open No. 55-41080 is provided, and the number of mispredicted pixels of a plurality of prediction error signals is compared in a certain block unit, and one of the prediction error signals is selected. There is a way.
This method has the disadvantage that the prediction effect is not sufficient when image signals with different characteristics, such as halftone photographs and characters, are mixed 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 method with high prediction effects.

本発明の適応予測復号化装置は、画素xの標本
値Xに対する予測値P1,P2を発生し、その予測
値P1,P2より得られる予測誤差信号Y1,Y2より
予測誤差信号Yを画素単位で選択し、予測誤差信
号Yとどの予測誤差信号を選択したかに係る予測
選択信号M1とから構成された誤差信号Eを符号
化する適応予測符号化装置で得られた符号を復号
する際に、誤差信号Eを復号化する手段と、すで
に復号ずみの標本値から予測値P1,P2を発生す
る手段と、予測選択信号の初期値を与える手段
と、少なくとも前記誤差信号Eと予測値P1,P2
および過去の予測選択信号とを用いて符号化の逆
の論理により標本値Xを得る手段とから構成され
る。
The adaptive predictive decoding device of the present invention generates predicted values P 1 and P 2 for the sample value X of pixel x, and calculates the prediction error from prediction error signals Y 1 and Y 2 obtained from the predicted values P 1 and P 2 . The signal Y is obtained by an adaptive predictive coding device that selects the signal Y pixel by pixel and encodes the error signal E composed of the predictive error signal Y and the predictive selection signal M1 corresponding to which predictive error signal is selected. When decoding the code, at least the above -mentioned means are provided. Error signal E and predicted values P 1 , P 2
and a means for obtaining a sample value X by the reverse logic of encoding using the past prediction selection signal and the past prediction selection signal.

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

次に図面を参照して本発明を詳細に説明する。
第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に用いられる一例である。
Next, the present invention will be explained in detail with reference to the drawings.
FIG. 1A is a diagram showing an example of reference pixels of a halftone photo predictor used in the adaptive predictive decoding device 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 decoding 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を中心とした場合と第1B図を用いた場合
の例である。図において端子1には、標本化され
2値化された画像信号が印加される。端子1に印
加された標本値をXとすると、この標本値Xはラ
インメモリ2、予測器3a1,3a2に供給される。
ラインメモリ2は信号を約1ライン遅延させるも
ので、1ラインの遅延量をH(=8000サンプル)
とすれば、その出力端子には(H−6)=7994サ
ンプル遅延した信号が得られる。
FIG. 2A is a block diagram showing a first embodiment of a coding device that produces a code to be decoded by the decoding device of the present invention, and when the reference pixel b 0 in FIG. 1A is used as a predictor. This is an example using FIG. 1B. In the figure, a sampled and binarized image signal is applied to terminal 1. Assuming that the sample value applied to the terminal 1 is X, this sample value X is supplied to the line memory 2 and the predictors 3a 1 and 3a 2 .
Line memory 2 delays the signal by about one line, and the delay amount for one line is set to H (=8000 samples).
Then, a signal delayed by (H-6)=7994 samples is obtained at its output terminal.

予測器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に入力
される。
The predictors 3a 1 and 3a 2 are composed of a shift register and read-only memory (ROM),
Using the combinations shown in FIG. 1A and FIG. 1B as reference pixels, predicted values P 1 and P 2 are output, respectively. 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 and converted into prediction error signals Y 1 and Y 2 , which are input to the multiplexer 6a. Selection signal generation circuit 4a
(Details in FIG. 4A or FIG. 4B) generate a prediction selection signal M 1 and an error signal E from the prediction error signals Y, Y 1 and Y 2 , and the error signal E is input to the encoder 7 .

マルチプレクサ6aでは、予測選択信号M1に
従い予測誤差信号Yが画素単位で選択される。
In the multiplexer 6a, the prediction error signal Y is selected pixel by pixel according to the prediction selection signal M1 .

誤差信号Eは次に符号器7(ランレングス符号
器等の従来より使用されている符号器)で符号化
され、出力端子8より出力される。第2B図に示
された本発明の復号化装置で復号される符号を作
り出す符号化装置の第2の実施例を示すブロツク
図であり、符号器7の符号化において誤差信号E
(予測誤差信号Y又は選択誤差信号N)の他に状
態信号S(予測状態信号SY又は選択状態信号SN)
を併せて符号化する場合の例を示すものである。
The error signal E is then encoded by an encoder 7 (a conventionally used encoder such as a run-length encoder) and output from an output terminal 8. 2B is a block diagram showing a second embodiment of an encoding device that produces a code to be decoded by the decoding device of the present invention shown in FIG.
In addition to (prediction error signal Y or selection error signal N), state signal S (prediction state signal S Y or selection state signal S N )
This shows an example of a case where both are encoded together.

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

第2B図において、予測状態信号S1,S2および
選択状態信号SNは、予測値P1,P2と同様にシフ
トレジスタおよびROMより構成される予測器3
a1′,3a2′および標本値Xとラインメモリ2出力
信号とから選択状態信号を得る選択状態信号発生
回路9より発生され、予測状態信号S1,S2はマル
チプレクサ6a1′に選択状態信号SNは、マルチプ
レクサ6bに入力される。マルチプレクサ6
a1′は、予測選択信号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 .
The selection state signal generation circuit 9 obtains a selection state signal from a 1 ′ , 3a 2 ′ , the sample value Signal S N is input to multiplexer 6b. multiplexer 6
a 1 ′ is the prediction error signal Y according to the prediction selection signal M 1
and prediction state signal S Y , and prediction error signal Y
is input to the selection signal generation circuit 4a, and the predicted state signal
S Y is input to multiplexer 6b. The multiplexer 6b selects the state signal S corresponding to the predicted signal E from the predicted state signal SY and the selected state signal SN according to the error selection signal M2 , and inputs the selected state signal S to the encoder 7'. The encoder 7' performs run-length encoding on the error signal E using the state signal S. A run-length encoding method using such an error signal E and status signal S is described in Japanese Patent Laid-Open No. 55-41080.

第3A図は、第2A図に用いられる予測器3a1
の一実施例を示すブロツク図であり、参照画素と
して第1A図の主走査方向の網点を用いたもので
ある。端子10および11には、現走査線および
前走査線の信号が印加される。端子10に印加さ
れた標本値をXとすると、シフトレジスタ12
a,12bおよび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が得られる。
FIG. 3A shows a predictor 3a 1 used in FIG. 2A.
1A is a block diagram showing an embodiment of the present invention, in which the halftone dots in the main scanning direction of FIG. 1A are used as reference pixels. Current 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 register 12
1-2 and 9-11 samples time delayed in a, 12b and 12c, pixels a 1 ,
Sample values A 1 , A 2 , B 0 -B 2 of a 2 - , b 0 -b 2 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 in the shift register 12d. Shift registers 12e, 12f and 12g
Then, sample values A 3 -A 6 and B 3 -B 5 of pixels a 3 -a 6 and b 3 -b 5 in FIG. 1A are obtained by delaying 1-4 and 12-14 sample times.

このようにして得られた参照画素の標本値A1
〜A6,B1〜B5およびB0はROM13にアドレス
として印加され、その出力端子14に前述の予測
値P1を発生する。参照画素として第1B図に示
された文字用の予測器3a2の場合の実施例もシフ
トレジスタおよびROMを使つた回路構成で同様
に実施できる。
The sample value A 1 of the reference pixel obtained in this way
~A 6 , B 1 ~B 5 and B 0 are applied as addresses to the ROM 13, which generates the aforementioned predicted value P 1 at its output terminal 14. The embodiment of the character predictor 3a2 shown in FIG. 1B as a reference pixel can be similarly implemented with a circuit configuration using a shift register and ROM.

以上予測器の参照画素として画素xと同一位相
関係にある画素を1つだけ選んだ場合の実施例に
ついて述べたが、参照画素として画素xと同一位
相関係にある画素を複数個同時に利用できる。
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.

例えば、参照画素として第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を用いた予測器等が含まれることは
勿論である。
For example, x shown in FIG. 1A as a reference pixel
The neighboring pixels a 1 , a 4 to a 6 and the neighboring pixels b 0 , c 0 and their neighboring pixels b 2 , b 4 , b 5 , c 2 , c 4 , which have the same phase relationship with x,
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
a1′の一実施例を示すブロツク図である。図にお
いて第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 a1 '. The difference in this figure from the predictor 3a 1 in FIG. 3A is that a ROM for generating a prediction state signal S 1 is added, and other aspects are exactly the same. The predicted state signal S 1 , like the predicted value P 1 , is statistically obtained in advance from several types of papers.

第4A図は、第2A図および第2B図に用いら
れる選択信号発生回路4aの第1の実施例を示す
ブロツク図であり、第5A図に示す予測選択信号
M1および誤差信号Eを発生する回路である。
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.

なお、第5A図は選択信号の関係を説明するた
めの図である。第4A図において、まず最初にレ
ジスタ24aは、予測選択信号M1が走査線の始
まりで予測誤差信号Y1側を選択するようにリセ
ツトされる。次に選択20および21より印加さ
れる予測誤差信号Y1,Y2およびレジスタ24a
の出力である一画素前の予測選択信号M1に従つ
てROM23では、予測選択信号M1および誤差選
択信号M2が発生され、予測選択信号M1は、選択
27より誤差選択信号M2は、端子28より出力
される。レジスタ24aでは、予測選択信号M1
を一画素遅延させ、排他的論理和回路25で予測
選択信号M1の変化点である選択誤差信号Nを発
生し、マルチプレクサ26に入力する。マルチプ
レクサ26では誤差選択信号M2に従い、予測誤
差信号Yおよび選択誤差信号Nより誤差信号Eを
選択し、端子29より出力する。
Note that FIG. 5A is a diagram for explaining the relationship between selection signals. In FIG. 4A, register 24a is first reset so that prediction selection signal M1 selects prediction error signal Y1 at the beginning of a scan line. Next, prediction error signals Y 1 and Y 2 applied from selections 20 and 21 and register 24a
The ROM 23 generates a prediction selection signal M 1 and an error selection signal M 2 according to the prediction selection signal M 1 of the previous pixel which is the output of , is output from the terminal 28. In the register 24a, the prediction selection signal M 1
is delayed by one pixel, and the exclusive OR circuit 25 generates a selection error signal N, which is the change point of the predicted selection signal M 1 , and inputs it 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 predicted selection signal of the present invention,
The relationship between the error selection signals M 1 , M 2 , the prediction error signals Y 1 , Y 2 , the selection error signal N, and the error signal E will be described. In the figure, the shaded parts of the error signals Y 1 , Y 2 , Y, and N, that is, Y 1 , Y 2 , Y, and N=1, indicate the misprediction, and their values, that is, Y 1 , Y 2 , Y, and N=0.
indicates the predicted accuracy. 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 ;
Alternatively, M 2 =0 indicates that the prediction error signal Y 1 or the prediction error signal Y is selected. Here the predicted selection signal
M 1 and error selection signal M 2 are signals for selecting the prediction error signal Y from the prediction error signals Y 1 and Y 2 and the error signal E from the prediction error signal Y selection error signal N, respectively, and finally the error signal E is chosen to reduce the number of mispredictions. In other words, the misprediction of the prediction error signals Y 1 and Y 2 is the prediction error signal
If Y 1 and Y 2 are signals obtained by predictions suitable for each of the photographs and characters, prediction errors will occur continuously in the non-corresponding parts, as shown in the prediction error signals Y 1 and Y 2 in Figure 5A. There is a strong possibility. In such a case, the prediction error signal Y 1 is changed using the prediction selection signal M 1 to reduce the prediction error.
If Y 2 and Y 2 are automatically switched, the error signal E
The number of mispredictions decreases, and the amount of information after encoding decreases.

第5A図において予測選択信号M1および誤差
選択信号M2は、次のようにして求められる。
In FIG. 5A, the prediction selection signal M 1 and the error selection signal M 2 are obtained as follows.

予測選択信号M1は、予測誤差信号Yの予測は
ずれが最小となるように決められる。つまり、予
測誤差信号Y1およびY2の両方が予測はずれの場
合だけ予測誤差信号Yを予測はずれとするように
予測誤差信号Yが選択される。そのための予測選
択信号M1の切り変えは、一画素前に選ばれた予
測誤差信号側が予測はずれの時に行なわれる。こ
の時誤差選択信号M2は、次のようにして求めら
れる。
The prediction selection signal M 1 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. For this purpose, the prediction selection signal M1 is switched when the prediction error signal side selected one pixel before is a prediction error. At this time, the error selection signal M2 is obtained as follows.

誤差選択信号M2は、予測誤差信号Y又は選択
誤差信号Nのどちらかの予測はずれ(両方同時に
予測はずれとはならない)を選択するものであ
り、選択誤差信号Nが、予測ばずれとなる可能性
のある時、即ち、どちらか一方の予測誤差信号が
予測はずれとなる時、選択誤差信号Nを選ぶ。
The error selection signal M2 is for selecting a prediction error of either the prediction error signal Y or the selection error signal N (both predictions cannot be wrong at the same time), and it is possible that the selection error signal N is a prediction error. When there is a prediction error signal, that is, when one of the prediction error signals results in an incorrect prediction, the selection error signal N is selected.

以上の論理を実施するために用いた第4A図の
ROM23の内容即ちテーブルを第6図に、また
予測選択信号M1および誤差信号Eを論理式で表
わした結果を次式に示す。なお、は排他的論理
和+は論理和、・は論理積、×は×の反転を示す。
Figure 4A used to implement the above logic.
The contents of the ROM 23, that is, the table, are shown in FIG. 6, and the result of expressing the prediction selection signal M1 and the error signal E in logical expressions is shown in the following equation. Note that "exclusive OR" + means "logical sum", "•" means "logical product", and "×" means the inversion of "×".

M1=(1 2)・M1′ +1・P2・×+P1・2・× E=1・2・×+P1・P2・×+M1′M1 図においてM1′は、一画素前の予測選択信号
M1を表わす。第6A図のテーブルを用い、第5
A図の予測誤差信号Y1およびY2を入力として、
予測選択信号M1、予測誤差信号Y、選択誤差信
号N、誤差選択信号M2、誤差信号Eを求めた結
果を第5A図の下の部分に示す。このようにして
求められた誤差信号Eの予測ばずれの個数は8
で、元の予測誤差信号Y1,Y2の予測はずれの個
数10、12に比べて少なくなつている。
M 1 = ( 1 2 )・M 1 ′ + 1・P 2・×+P 1・2・× E= 1・2・×+P 1・P 2・×+M 1 ′M 1 In figure 1, M 1 ′ is Prediction selection signal of one pixel before
Represents M 1 . Using the table in Figure 6A,
Using the prediction error signals Y 1 and Y 2 of figure A as input,
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 deviations of 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.

第4B図は、第2A図に用いられる予測選択信
号発生回路4aの第2の実施例を示すブロツク図
であり、第5B図に示す予測選択信号M1および
誤差選択信号M2を発生する回路である。
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.

なお、第5B図は選択信号の関係を説明するた
めの図である。第4A図と第4B図の違いは、第
4B図において、予測選択信号M1および誤差選
択信号M2を決定するROM23′の入力として、
一画素遅れの予測誤差信号Y1およびY2を用いて
いる点である。第5B図において予測選択信号
M1および誤差選択信号M2は、予測誤差信号の予
測はずれが連続して、一方側だけ生じ易いことよ
り次のようにして求められる。予測選択信号M1
の切り換えは、一画素前に選ばれた予測誤差信号
側だけが、予測はずれで、その前の予測誤差信号
も予測はずれの時に行なわれる。この時誤差選択
信号M2は、選択誤差信号Nが予測はずれとなる
可能性のある時即ち予測誤差信号Y1又はY2が連
続して予測はずれとなる時、選択誤差信号Nを選
ぶ。以上の論理を実施するために用いた第4B図
のROM23′の内容即ちテーブルを第6B図に
示す。
Note that FIG. 5B is a diagram for explaining the relationship between selection signals. The difference between FIG. 4A and FIG. 4B is that in FIG. 4B, as an input to the ROM 23' that determines the prediction selection signal M 1 and the error selection signal M 2 ;
The point is that prediction error signals Y 1 and Y 2 with a one-pixel delay are used. In FIG. 5B, 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 and only on one side. Prediction selection signal M 1
This switching is performed 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 incorrect in prediction, that is, when the prediction error signal Y 1 or Y 2 will be incorrect in prediction continuously. FIG. 6B shows the contents or table of the ROM 23' of FIG. 4B used to implement the above logic.

図において、Y1′,Y2′,M1′は、それぞれ一画
素前の予測誤差信号Y1,Y2予測選択信号M1を表
わす。第6B図のテーブルを用い、第5B図の予
測誤差信号Y1およびY2を入力として予測選択信
号M1、予測誤差信号Y、選択誤差信号N、誤差
選択信号M2、誤差信号Eを求めた結果を第5B
図の下の部分に示す。
In the figure, Y 1 ′, Y 2 ′, and M 1 ′ represent the prediction error signal Y 1 and the Y 2 prediction selection signal M 1 of the previous pixel, 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 Section 5B.
Shown in the bottom part of the figure.

このときの誤差信号Eの予測はずれの個数は8
で元の予測誤差信号Y1,Y2の予測はずれの個数
10、12に比べて少なくなつている。第5A図と第
5B図の違いは、標本値第7〜第11番目と標本値
第29〜第34番目に表われる。前者では予測誤差信
号Y1側だけが孤立した予測はずれの個数が1つ
と少ないので、第5B図側の誤差信号Eが少な
く、後者では、予測誤差信号Y2側だけが、孤立
した予測はずれは、3と2以上なので、第5A図
側の誤差信号Eが少なくなる。
The number of prediction errors in the error signal E at this time is 8
is the number of mispredictions of the original prediction error signals Y 1 , Y 2
It is less than 10 and 12. 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 only on the prediction error signal Y1 side is as small as one, so the error signal E on the side of FIG. 5B is small; in the latter case, only the prediction error signal Y2 side has isolated prediction errors , 3 and 2 or more, the error signal E on the side of FIG. 5A is reduced.

第7A図は、本発明の第1の実施例を示すブロ
ツク図である。図において端子41に印加された
符号は、復号器42で誤差信号Eに復号される。
誤差信号Eは、選択信号発生回路4b(第7A図
又は第7B図)で、予測値P1およびP2に従い予
測誤差信号Yおよび予測選択信号M1に変換され
る。予測誤差信号Yは、排他的論理和回路5a1お
よび5a2で予測器a1およびa2より出力される予測
値P1およびP2と排他的論理和がとられ、復号信
号X1およびX2を生成する。次にマルチプレクサ
6aでは、予測選択信号M1に従い、復号信号X1
およびX2よりXが選択される。それ以外のライ
ンメモリ2、予測器3a1,3a2の部分は、本発明
の適応予測符号器の第1の実施例である第2A図
と全く同じ回路構成で、同じ動作をする。
FIG. 7A is a block diagram showing a first embodiment of the present invention. In the figure, a code applied to a terminal 41 is decoded into an error signal E by a decoder 42.
The error signal E is converted by the selection signal generation circuit 4b (FIG. 7A or FIG. 7B) into a prediction error signal Y and a prediction selection signal M1 according to the predicted values P1 and P2 . The prediction error signal Y is exclusive ORed with the predicted values P 1 and P 2 output from the predictors a 1 and a 2 in the exclusive OR circuits 5a 1 and 5a 2 , and the prediction error signal Y is subjected to exclusive OR with the predicted values P 1 and P 2 output from the predictors a 1 and a 2. Generate 2 . Next, the multiplexer 6a outputs the decoded signal X1 according to the prediction selection signal M1 .
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の実施例を示すブロ
ツク図である。第6A図の第1の実施例と異なる
点は復号器42′が状態信号S(予測状態信号SY又
は選択状態信号SN)を用いて誤差信号E(予測誤
差信号Y又は選択誤差信号N)を復号する点と、
第2B図に示された符号器側と同様に、予測器3
a1′,3a2′が予測状態信号S1,S2を発生し、選択
状態信号発生回路9およびマルチプレクサ66が
必要な点である。
FIG. 7B is a block diagram showing a second embodiment of the present invention. The difference from the first embodiment shown in FIG. 6A is that a decoder 42' uses a state signal S (prediction state signal S Y or selection state signal S N ) to use an error signal E (prediction error signal Y or selection error signal N ), and
Similar to the encoder side shown in FIG. 2B, the predictor 3
a 1 ′, 3a 2 ′ generate predicted state signals S 1 , S 2 , and selection state signal generation circuit 9 and multiplexer 66 are required.

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

M1=(P1P2)・F1′ X=1・2・E+P1・P2・+P1・P2 ・(M1′E)+P1・2・(M1′) 第8B図は、第4B図の選択信号発生回路4a
に対応する回路4bである。即ち、第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図に示
す。
M 1 = ( P 1 P 2 ) ・ F 1 ′ _ is the selection signal generation circuit 4a of FIG. 4B.
This is a circuit 4b corresponding to. 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 terminals 51 and 52 are exclusive ORed with the sample value X applied from terminal 59 in exclusive OR circuits 55b and 55c, and a prediction error signal Y 1 is obtained. , Y 2 is generated. Prediction error signal
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 manner as the predicted values P 1 and P 2 and the error signal E to generate a predicted error signal Y and a selection error signal N. used here
The contents of the ROM 53', ie, the table, are shown in FIG. 9B.

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

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

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

Claims (1)

【特許請求の範囲】[Claims] 1 2値画像信号の現在の標本値Xに対する2つ
の予測値P1,P2を発生し、この予測値P1,P2と
現在の標本値Xから予測誤差信号Y1,Y2を発生
し、前記予測誤差信号Y1,Y2と過去の標本値に
対する予測選択信号M1′とから予測選択信号M1
を、前記Y1,Y2とからその一方のみが予測外れ
となる可能性が高いことを示す誤差選択信号M2
を発生し、前記予測誤差信号Y1,Y2の一方を前
記予測選択信号にもとづいて予測誤差信号Yとし
て選択し、前記予測選択信号M1の変化点を示す
選択誤差信号Nを発生し、前記予測誤差信号Yお
よび前記選択誤差信号Nの一方を前記誤差選択信
号M2にもとづいて誤差信号Eとして選択し、こ
の誤差信号Eを符号化することにより符号化され
た2値画像信号を復号化する適応予測復号化装置
であつて、前記誤差信号Eを復号化する手段と、
予測選択信号M1の初期値を与える手段と、すで
に復号化済の標本値より前記予測値P1,P2を再
生する手段と、前記予測値P1,P2を用いて前記
誤差信号Eより前記選択誤差信号Nと予測誤差信
号Yとを分離する手段と、前記選択誤差信号Nと
すでに復号化済の標本値に対する予測選択信号
M1′とを用いて前記予測選択信号M1を再生する
手段と、前記予測誤差信号Yと前記予測値P1,
P2とから仮復号値X1,X2を発生する手段と、こ
のX1,X2の一方を前記予測選択信号M1にもとづ
いて選択し復号値Xを得る手段とから構成される
ことを特徴とする適応予測復号化装置。
1 Generate two predicted values P 1 and P 2 for the current sample value X of the binary image signal, and generate prediction error signals Y 1 and Y 2 from the predicted values P 1 and P 2 and the current sample value X. Then, a prediction selection signal M 1 is obtained from the prediction error signals Y 1 , Y 2 and the prediction selection signal M 1 ' for past sample values.
is an error selection signal M 2 indicating that there is a high possibility that only one of Y 1 and Y 2 will be a misprediction.
, select one of the prediction error signals Y 1 and Y 2 as the prediction error signal Y based on the prediction selection signal, and generate a selection error signal N indicating a change point of the prediction selection signal M 1 ; One of the prediction error signal Y and the selection error signal N is selected as the error signal E based on the error selection signal M2 , and the encoded binary image signal is decoded by encoding this error signal E. an adaptive predictive decoding device for decoding the error signal E;
means for providing an initial value of the prediction selection signal M 1 ; means for reproducing the predicted values P 1 and P 2 from already decoded sample values; and means for reproducing the predicted values P 1 and P 2 from the already decoded sample values; means for separating the selection error signal N and the prediction error signal Y, and a prediction selection signal for the selection error signal N and already decoded sample values;
means for reproducing the prediction selection signal M 1 using the prediction error signal Y and the prediction value P 1 ,
P2 , and means for selecting one of these X1 and X2 based on the prediction selection signal M1 to obtain the decoded value X. An adaptive predictive decoding device characterized by:
JP10451980A 1980-07-30 1980-07-30 Adaptive forecasting and decoding device Granted JPS5730463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10451980A JPS5730463A (en) 1980-07-30 1980-07-30 Adaptive forecasting and decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10451980A JPS5730463A (en) 1980-07-30 1980-07-30 Adaptive forecasting and decoding device

Publications (2)

Publication Number Publication Date
JPS5730463A JPS5730463A (en) 1982-02-18
JPH0132702B2 true JPH0132702B2 (en) 1989-07-10

Family

ID=14382732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10451980A Granted JPS5730463A (en) 1980-07-30 1980-07-30 Adaptive forecasting and decoding device

Country Status (1)

Country Link
JP (1) JPS5730463A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020152732A1 (en) * 2019-01-21 2020-07-30 三菱電機株式会社 Attentiveness determination apparatus, attentiveness determination system, attentiveness determination method, and program

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59162842A (en) * 1983-03-08 1984-09-13 Kureha Chem Ind Co Ltd Food and drink and its preparation
JPS6052168A (en) * 1983-09-01 1985-03-25 Nec Corp Adaptive forecasting decoder
US4729034A (en) * 1985-06-27 1988-03-01 Netexpress Systems, Inc. Method and apparatus for selection of a coding reference line for two-dimensional coding of image data representing screened images

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020152732A1 (en) * 2019-01-21 2020-07-30 三菱電機株式会社 Attentiveness determination apparatus, attentiveness determination system, attentiveness determination method, and program

Also Published As

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

Similar Documents

Publication Publication Date Title
US4633325A (en) Adaptive predictive encoding and/or decoding apparatus
JPH0969951A (en) Encoding method and decoding method
JPS5816667B2 (en) Interline encoding method for facsimile signals
JPS6145429B2 (en)
JP3466058B2 (en) Image decoding apparatus and image decoding method
JPH0132703B2 (en)
JPH0121667B2 (en)
JP2713298B2 (en) Color image signal decoding device
US5151791A (en) Efficient encoding of picture signal
EP0929976B1 (en) Method and apparatus for motion estimation
JPH0142189B2 (en)
JPS639426B2 (en)
JPH1185979A (en) Patent application title: Pattern matching encoding device, pattern matching encoding method, and medium recording control program for pattern matching encoding device
JPH02288695A (en) Image encoding and decoding device
JPH04178074A (en) Coding decoding system for picture signal and its device
JPH0121668B2 (en)
JP2000152226A (en) Image encoding apparatus and method, image decoding apparatus and method, and providing medium
JPH047871B2 (en)
JPS63197172A (en) Predictive coding device
JPS5915553B2 (en) Predictive coding device
JPH0669145B2 (en) Predictive coding
JPS6358509B2 (en)
JPH041552B2 (en)
JPS61123276A (en) Picture data compression system
JPS59182671A (en) Coder of picture signal