JPH0121668B2 - - Google Patents

Info

Publication number
JPH0121668B2
JPH0121668B2 JP55059761A JP5976180A JPH0121668B2 JP H0121668 B2 JPH0121668 B2 JP H0121668B2 JP 55059761 A JP55059761 A JP 55059761A JP 5976180 A JP5976180 A JP 5976180A JP H0121668 B2 JPH0121668 B2 JP H0121668B2
Authority
JP
Japan
Prior art keywords
pixels
predicted
sample
pixel
value
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
JP55059761A
Other languages
Japanese (ja)
Other versions
JPS56156073A (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 JP5976180A priority Critical patent/JPS56156073A/en
Publication of JPS56156073A publication Critical patent/JPS56156073A/en
Publication of JPH0121668B2 publication Critical patent/JPH0121668B2/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
    • H04N1/411Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures
    • H04N1/413Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information
    • H04N1/417Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information using predictive or differential encoding

Description

【発明の詳細な説明】 本発明は、新聞等に使用されている網点写真を
予測符号化し、伝送された符号を復号する際に用
いられる適応予測復号化装置に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an adaptive predictive decoding device used for predictively encoding halftone photographs used in newspapers and the like and decoding the transmitted code.

従来この種の適応予測符号化方式としては、例
えば特開昭55−41080号公報に示されている予測
手段のように、一定のブロツク単位で複数の予測
誤差信号の予測はずれの画素数を比較し、いずれ
か1つの予測誤差信号を選択する方法がある。こ
の方法はブロツクの途中で予測手段を変えた方が
良い場合には予測効果が十分でなくしかもどの予
測手段が選ばれたかを示すモード符号が必要なた
め、データ圧縮率が十分とれないという欠点があ
つた。
Conventionally, this type of adaptive predictive coding method compares the number of mispredicted pixels of multiple prediction error signals in a fixed block unit, such as the prediction method shown in Japanese Patent Application Laid-Open No. 55-41080. However, there is a method of selecting any one prediction error signal. This method has the disadvantage that the prediction effect is not sufficient if it is better to change the prediction method in the middle of a block, and the data compression rate is not sufficient because a mode code is required to indicate which prediction method was selected. It was hot.

本発明の目的は、上述の従来の予測手段の欠点
を除去することであり、予測効果の高いしかもモ
ード符号のいらない適応予測符号化方式を提供す
ることにある。
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 that is highly effective in prediction and does not require a mode code.

本発明の適応予測復号化装置は、網点写真上の
画素xの標本値Xに対する複数個の予測値P1
P2、………、Poを発生し、複数個の予測値より
1つの予測値Pxを選択し、予測値Pxと標本値X
より得られた予測誤差信号Yを符号化する適応予
測符号化装置で得られた符号を復号する際に、予
測誤差信号Yを復号化する手段と、前記予測誤差
信号Yと予測値Pxより復号画素xの標本値Xを
得る手段と、前記復号画素xの標本値Xを得る手
段と、前記復号画素xの標本値Xに対する複数個
の予測値P1、P2、………、Poを、前記画素xの
近傍画素と画像の2次元網目周期パターン上で前
期画素xと同一位相関係にある複数の画素y1
y2、………、ynおよび前記複数画素y1、y2、……
…、ynの近傍画素の標本値を用いて発生する手
段と、前記複数個の予測値P1、P2、………、Po
を発生するために用いた画素およびその近傍画素
の一部の標本値を用いて選択信号を発生する手段
と、前記選択信号に従つて前記複数個の予測値
P1、P2、………、Poより標本値Xに対する前記
予測値Pxを選択する手段とから構成されている。
The adaptive predictive decoding device of the present invention provides a plurality of predicted values P 1 for the sample value X of the pixel x on the halftone photograph,
P 2 , ......, P o is generated, one predicted value Px is selected from multiple predicted values, and the predicted value Px and sample value
When decoding the code obtained by the adaptive predictive coding device that encodes the prediction error signal Y obtained by means for obtaining a sample value X of a pixel x; a means for obtaining a sample value X of the decoded pixel x; and a plurality of predicted values P 1 , P 2 , P o for the sample value X of the decoded pixel x. , a plurality of pixels y 1 having the same phase relationship with the previous pixel x on the two-dimensional mesh periodic pattern of the image with neighboring pixels of the pixel x,
y 2 , ......, y n and the plurality of pixels y 1 , y 2 , ...
..., y n using sample values of neighboring pixels, and the plurality of predicted values P 1 , P 2 , ......, P o
means for generating a selection signal using some sample values of the pixel used to generate the pixel and its neighboring pixels; and means for generating the plurality of predicted values according to the selection signal.
and means for selecting the predicted value P x for the sample value X from P 1 , P 2 , . . . , P o .

本発明の適応予測復号化装置は、符号化装置側
で複数個の予測値P1、P2、………、Poを発生す
る手段を用い、その複数個の予測値P1、P2、…
……、Poを発生するために用いた画素およびそ
の近傍画素の標本値の組み合せによつて、標本値
Xに対する予測値Pxを選択するので予測誤差信
号に含まれる予測はずれの個数の少なく、しかも
どの予測値が選択されたかを示すモード符号がい
らないので全体として符号化後の情報量を減少さ
せる作用効果を有するものである。
The adaptive predictive decoding device of the present invention uses means for generating a plurality of predicted values P 1 , P 2 , P o on the encoding device side, and generates a plurality of predicted values P 1 , P 2 . ,…
..., the predicted value P x for the sample value Moreover, since there is no need for a mode code indicating which predicted value has been selected, this method has the effect of reducing the amount of information after encoding as a whole.

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

第1図は本発明の適応予測復号化装置に用いら
れる予測器の参照画素の一例を表わす図である。
なお、第1図は45゜の斜交網点画像を対象として
いる。第1図において距離D(ここではD=10)
は網点の周期を表わすものであり、画素xの標本
値Xと同一位相関係(画像の2次元網目周期パタ
ーン上で)にある画素は、y1、y2、………y5であ
る。図において、画素xの近傍画素a、b、c、
d、f、gの標本値A、B、C、D、F、Gと、
網点の周期だけ主走査方向に離れた画素y1の標本
値Y1およびその近傍画素b1、c1、d1、g1、h1の標
本値B1、C1、D1、G1、H1の組み合せは第2A図
の予測器3a1に用いられる参照画素の一例を示す
ものである。同様に画素xの近傍画素a、b、
c、d、f、gの標本値A、B、C、D、F、G
と、網点の周期だけ斜め方向に離れた画素y2の標
本値Y2およびその近傍画素b2、c2、d2、g2、h2
標本値B2、C2、D2、G2、H2の組み合せは第2A
図の予測器3a2に用いられる参照画素の一例を示
すものであり、画素xの標本値Xと同一位相関係
にある画素y3、y4、………、ynの標本値Y3、Y4
………、Ynを使つて第2A図の予測器3a3に用
いられる参照画素の一例が得られる。
FIG. 1 is a diagram showing an example of reference pixels of a predictor used in the adaptive predictive decoding device of the present invention.
Note that FIG. 1 is for a 45° diagonal halftone image. In Figure 1, distance D (here D=10)
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 y 1 , y 2 , ......y 5 . In the figure, neighboring pixels a, b, c,
Sample values A, B, C, D, F, G of d, f, g,
Sample value Y 1 of pixel y 1 separated in the main scanning direction by halftone dot period and sample values B 1 , C 1 , D 1 , G of its neighboring pixels b 1 , c 1 , d 1 , g 1 , h 1 1 and H 1 represents an example of reference pixels used in the predictor 3a 1 in FIG. 2A. Similarly, the neighboring pixels a, b,
Sample values A, B, C, D, F, G of c, d, f, g
and the sample value Y 2 of pixel y 2 diagonally separated by the period of the halftone dot, and the sample values B 2 , C 2 , D 2 of its neighboring pixels b 2 , c 2 , d 2 , g 2 , h 2 , The combination of G 2 and H 2 is the 2nd A
This shows an example of reference pixels used in the predictor 3a2 shown in the figure, and the sample values Y 3 , y 3 , y 4 , y n of pixels y 3 , y 4 , . Y4 ,
......, Y n can be used to obtain an example of a reference pixel used in the predictor 3a 3 in FIG. 2A.

第2A図は、本発明の復号化装置で復号される
符号を作り出す符号化装置の第1の実施例を示す
ブロツク図であり、第1図に示した参照画素を用
いた場合の構成例である。図において、端子1に
は標本化され2値化された画像信号が印加され
る。端子1に印加された標本値をXとすると、こ
の標本値Xは、ラインメモリ2a、予測器3a1
3a2,………,3aoおよび予測選択回路4に供給
される。ラインメモリ2aは信号を約1ライン遅
延させるもので、1ラインの遅延量をH(=8000
サンプル)とすればその出力端子には(H−6)
=7994サンプル遅延した信号が得られる。またラ
インメモリ2b1,2b2,………,2blは、それぞ
れ入力信号を1ライン遅延するものでそれぞれの
出力端子には、ラインメモリ2aの出力端子に比
べて1,2,………,lライン遅延した信号が得
られる。予測器3a1,3a2,………,3aoはシフ
トレジスタおよびリードオンリメモリ(ROM)
より構成されており、参照画素として第1図に示
された組み合せを用いて、それぞれ予測値P1
P2、………、Poを出力する。予測選択回路4は、
予測値P1、P2、………、Poを発生するために用
いた参照画素およびその近傍画素の1部の標本値
を用い、標本値Xを含んだ網点と最も類似度の高
い網点の標本値より得られる予測値Pxを選択す
る信号を出力する。マルチプレクサ5では、この
選択信号に従つて予測値Pxが画素単位で選択さ
れ、排他的論理和回路6で標本値Xと排他的論理
和がとられ、予測誤差信号Yが得られる。予測誤
差信号Yは次に符号器7(例えばランレングス符
号器等の従来から使用されている符号器)で符号
化され、出力端子8より出力される。
FIG. 2A is a block diagram showing a first embodiment of an encoding device that produces codes to be decoded by the decoding device of the present invention, and is an example of the configuration when the reference pixels shown in FIG. 1 are used. be. 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 2a, predictor 3a 1 ,
3a 2 , . . . , 3a o and the prediction selection circuit 4. The line memory 2a delays the signal by about one line, and the delay amount for one line is set to H (=8000
sample), its output terminal will have (H-6)
A signal delayed by =7994 samples is obtained. Also, the line memories 2b 1 , 2b 2 , ......, 2bl each delay the input signal by one line, and their respective output terminals have 1, 2, ......, A signal delayed by l lines is obtained. Predictors 3a 1 , 3a 2 , ......, 3a o are shift registers and read-only memory (ROM)
Using the combinations shown in FIG. 1 as reference pixels, the predicted values P 1 and
Output P 2 , ......, P o . The prediction selection circuit 4 is
Using the sample values of the reference pixel used to generate the predicted values P 1 , P 2 , ......, P o and some of its neighboring pixels, the halftone dot that has the highest similarity to the halftone dot containing the sample value X is A signal for selecting the predicted value Px obtained from the sample values of the halftone dots is output. The multiplexer 5 selects the predicted value Px pixel by pixel according to this selection signal, and the exclusive OR circuit 6 performs an exclusive OR with the sample value X to obtain a prediction error signal Y. The prediction error signal Y is then encoded by an encoder 7 (eg, a conventionally used encoder such as a run-length encoder) and outputted from an output terminal 8.

また符号器7の符号化において、予測誤差信号
の他に予測状態信号を併せて符号化する場合は、
第2B図に示された本発明に係る符号化装置の第
2の実施例において達成できる。
In addition, when encoding the prediction state signal in addition to the prediction error signal in the encoding of the encoder 7,
This can be achieved in a second embodiment of the encoding device according to the invention shown in FIG. 2B.

すなわち、前記予測状態信号は参照画素パター
ンのそれぞれに対して予測的中確率を予め統計的
に調べて、予測的中確率の大小に対して予測誤差
信号をグループ分けするために用いられる信号で
あり、例えば予測状態を2状態とする場合は予測
的中確率が0.95以上のパターンとそれ以外のパタ
ーンに分けられる。第2B図において予測状態信
号S1,S2,………,Soは、予測値P1、P2、……
…、Poと同様にシフトレジスタおよびROMより
構成される予測器3a′1,3a′2,………,3a′o
り出力される。マルチプレクサ4′は、予測値Px
に対応する予測誤差信号Sxを予測値Pxと同様に
選択し選択された予測状態信号Sxは符号器7′に
入力される。符号器7′では、予測状態信号Sx
用いて予測誤差信号を例えばランレングス符号化
する。このような予測誤差信号と予測状態信号を
用いたランレングス符号化法については、特開昭
55−41080号公報に記載されている。
That is, the prediction state signal is a signal used to statistically examine the prediction probability for each reference pixel pattern in advance and to group the prediction error signals according to the magnitude of the prediction probability. For example, when there are two predicted states, the patterns are divided into patterns with a predicted accuracy probability of 0.95 or more and patterns with other patterns. In FIG. 2B, the predicted state signals S 1 , S 2 , ......, So are the predicted values P 1 , P 2 , ...
..., P o are output from predictors 3a' 1 , 3a' 2 , . The multiplexer 4′ receives the predicted value P x
The prediction error signal S x corresponding to the predicted value P x is selected in the same way as the predicted value P x , and the selected prediction state signal S x is input to the encoder 7'. The encoder 7' performs, for example, run-length encoding of the prediction error signal using the prediction state signal S x . A run-length encoding method using such a prediction error signal and a prediction state signal is described in Japanese Patent Application Laid-Open No.
It is described in Publication No. 55-41080.

第3A図は、第2A図に用いられる予測器3a1
の実施例の一例を示すブロツク図である。端子1
0および11には現走査線および前走査線の信号
が印加される。端子10に印加された標本値をX
とするとシフトレジスタ12a,12bおよび1
2cで1〜2および9〜11サンプル時刻遅延さ
れ、第1図における画素f、g、h1、y1およびg1
の標本値F、G、H1、Y1およびG1が得られる。
端子11には、標本値Xが(H−6)=7794サン
プル時刻遅延した信号が印加されるがシフトレジ
スタ12dで更に4サンプル時刻遅延される。シ
フトレジスター12e,12fおよび12gで
は、1〜4および11〜13サンプル時刻遅延され、
第1図における画素d、c、b、a、d1、c1およ
びb1の標本値D、C、B、A、D1、C1およびB1
が得られる。このようにして得られた参照画素の
標本値A、B、C、D、F、G、B1、C1、D1
G1、H1およびY1はROM13にアドレスとして
印加され、その出力端子14に前述の予測値P1
を発生する。参照画素として画素xの近傍画素
a、b、c、d、f、gと、網点の周期だけ斜め
方向に離れた画素y2およびその近傍画素b2、c2
d2、g2、h2を用いた場合の予測器3a2もシフトレ
ジスタ、ROMを使つた回路構成で実施でき、以
下画素xと同一位相関係にある画素y3、y4、……
…、ynを使つた場合の予測器3a3,3a4,……
…,3aoも同様な回路構成で実施できる。
FIG. 3A shows a predictor 3a 1 used in FIG. 2A.
FIG. 2 is a block diagram showing an example of an embodiment of the invention. terminal 1
Signals of the current scanning line and the previous scanning line are applied to 0 and 11. The sample value applied to terminal 10 is
Then shift registers 12a, 12b and 1
2c, pixels f, g, h 1 , y 1 and g 1 in FIG.
Sample values F, G, H 1 , Y 1 and G 1 are obtained.
A signal in which the sample value X is delayed by (H-6)=7794 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 11 to 13 sample times are delayed,
Sample values D, C, B, A, D 1 , C 1 and B 1 of pixels d, c, b, a, d 1 , c 1 and b 1 in FIG .
is obtained. The sample values of the reference pixels obtained in this way A, B, C, D, F, G, B 1 , C 1 , D 1 ,
G 1 , H 1 and Y 1 are applied as addresses to the ROM 13, and the aforementioned predicted value P 1 is applied to its output terminal 14.
occurs. Neighboring pixels a, b, c, d, f, and g of pixel x are used as reference pixels, and pixel y 2 and its neighboring pixels b 2 , c 2 , which are diagonally separated by the halftone dot period, are used as reference pixels.
The predictor 3a 2 when using d 2 , g 2 , h 2 can also be implemented with a circuit configuration using a shift register and ROM, and the following pixels y 3 , y 4 , . . . which have the same phase relationship as the pixel x
Predictors 3a 3 , 3a 4 , ... when using ..., y n
..., 3a o can also be implemented with a similar circuit configuration.

以上予測器の参照画素として、画素xの同一位
相関係にある画素を1つだけ選んだ場合の実施例
について述べたが、参照画素として、画素xと同
一位相関係にある画素を複数個同時に利用でき
る。例えば参照画素として第1図に示されたxの
近傍画素b、c、gとxと同一位相関係にある
y1、y2、y3およびその近傍画素c1、g1、c2、g2
c3、g3の標本値B、C、G、Y1、C1、G1、Y2
C2、G2、Y3、C3、G3を用いた予測器等が含まれ
ることは勿論である。
Above, we have described an example in which only one pixel having the same phase relationship with pixel x is selected as the reference pixel of the predictor, but multiple pixels having the same phase relationship with pixel x are simultaneously used as reference pixels. can. For example, neighboring pixels b, c, and g of x shown in FIG. 1 as reference pixels have the same phase relationship with x.
y 1 , y 2 , y 3 and their neighboring pixels c 1 , g 1 , c 2 , g 2 ,
Sample values of c 3 , g 3 B, C, G, Y 1 , C 1 , G 1 , Y 2 ,
Of course, predictors using C 2 , G 2 , Y 3 , C 3 , G 3 and the like 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 diagram showing an example of an embodiment of a'1. 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 is the predicted value
Similar to P 1 , it is statistically determined in advance from several types of papers.

第4図は、第2A図および第2B図に用いられ
る予測選択回路4の第1の実施例を示すブロツク
図であり、予測に用いる網点としてy1、y2および
y3を中心とした3つの網点を使用した場合の一例
である。端子20,21,22および23にはそ
れぞれ現走査線、前走査線、5ラインおよび6ラ
イン前の走査線の信号が印加される。端子20に
印加された標本値をXとすると、シフトレジスタ
ー24aで1〜11サンプル時刻遅延された画素
g、y1およびg1の標本値G、Y1およびG1が得ら
れる。端子21,22,23に印加された標本値
は、同様にしてシフトレジスター24b,24c
および24dで1〜18サンプル時刻遅延され、画
素c、b、c1、y4、g4、y2、g2、c4およびc2の標
本値C、B、C1、Y4、G4、Y2、G2、C4およびC2
が得られる。このようにして得られた参照画素の
標本値B、C、G、C1、G1、Y1、C2、G2、Y2
C4、G4およびY4はROM25のアドレスとして印
加され、その出力端子には、予測値P1、P2、P3
のどの予測値を用いるべきかを示す選択信号が出
力される。ここで予測器選択信号の発生に用いる
参照画素としては予測信号発生に用いられている
参照画素の総和(この場合参照網点を3つとして
30画素)より少ない画素が用いられる。つまり、
少ない参照画素でどの予測器を選択すればよいか
を決定し、次に被予測画素と相関の最も強い予測
器で予測することにより、全体としてROMの容
量が減りしかも予測効果が劣化しない予測器が構
成できる。上記例で30画素を用いた予測を直接実
行するためには230≒109ビツトのROMが必要で
あるが本発明の構成では5×212=2×104ビツト
のROMで実施できる。
FIG. 4 is a block diagram showing a first embodiment of the prediction selection circuit 4 used in FIGS. 2A and 2B, in which halftone dots y 1 , y 2 and
This is an example of using three halftone dots centered on y3 . Signals of the current scanning line, the previous scanning line, the 5th line, and the 6th previous scanning line are applied to the terminals 20, 21, 22, and 23, respectively. Assuming that the sample value applied to the terminal 20 is X, sample values G, Y1 and G1 of pixels g, y1 and g1 are obtained which are delayed by 1 to 11 samples in the shift register 24a. The sample values applied to terminals 21, 22, 23 are similarly transferred to shift registers 24b, 24c.
and sample values C, B , C 1 , Y 4 , G of pixels c, b, c 1 , y 4 , g 4 , y 2 , g 2 , c 4 and c 2 4 , Y2 , G2 , C4 and C2
is obtained. The sample values of the reference pixels obtained in this way B, C, G, C 1 , G 1 , Y 1 , C 2 , G 2 , Y 2 ,
C 4 , G 4 and Y 4 are applied as addresses to the ROM 25, and the predicted values P 1 , P 2 , P 3 are applied to the output terminals.
A selection signal indicating which predicted value should be used is output. Here, the reference pixels used to generate the predictor selection signal are the sum of the reference pixels used to generate the prediction signal (in this case, three reference halftone dots are used).
30 pixels) are used. In other words,
A predictor that reduces the overall ROM capacity and does not deteriorate the prediction effect by determining which predictor to select with a small number of reference pixels and then predicting with the predictor that has the strongest correlation with the predicted pixel. can be configured. In the above example, in order to directly execute prediction using 30 pixels, a ROM of 2 30 ≈10 9 bits is required, but with the configuration of the present invention, it can be implemented with a ROM of 5×2 12 =2×10 4 bits.

次にこの選択信号がどのように決められるかを
説明する。ここでは予測器を選ぶ参照画素として
12画素用いているので212通りの組み合せが考え
られ、それぞれに対して選択信号を求める必要が
ある。まず始めに予測器3a1,3a2および3a3
使用した時の予測値を予測器のすべての参照画素
の組み合せについて求める。予測値は、ある参照
画素の組み合せに対して、黒である確率が0.5以
上であれば黒、それ以外は白というように総計的
データによつて求める。次に予測器を選ぶ参照画
素として選ばれたすべての画素の組み合せに対し
て、予測器3a1,3a2および3a3を用いて予測し
た場合(予測値としては、前述の予測値が用いら
れる)のそれぞれの予測はずれの個数又は2次元
マルコフエントロピーを求める。その中で値の最
も小さい予測器を選択する信号をROMに書き込
む。これ等の値は、あらかじめ数種類の紙面の平
均という形で求められており、固定的なものであ
る。
Next, how this selection signal is determined will be explained. Here, as the reference pixel for selecting the predictor,
Since 12 pixels are used, 212 combinations are possible, and a selection signal must be found for each. First, predicted values when using the predictors 3a 1 , 3a 2 and 3a 3 are obtained for all combinations of reference pixels of the predictors. The predicted value is determined based on total data such that for a certain combination of reference pixels, if the probability of black is 0.5 or more, the color is black, otherwise it is white. Next, select a predictor. When predicting using predictors 3a 1 , 3a 2 , and 3a 3 for all combinations of pixels selected as reference pixels (the above-mentioned predicted value is used as the predicted value) ) is determined by the number of prediction errors or two-dimensional Markov entropy. A signal for selecting the predictor with the smallest value among them is written to the ROM. These values are determined in advance as an average of several types of paper, and are fixed.

第5図は、第2A図および第2B図に用いられ
る予測選択回路4の第2の実施例を示すブロツク
図であり、第4図と同様に予測に用いる網点とし
てy1、y2およびy3を中心とした3つの網点を使用
した場合の一例である。端子20,21,22お
よび23にはそれぞれ現走査線、前走査線、5ラ
インおよび6ライン前の走査線の信号が印加され
る。端子20に印加された標本値をXとすると、
シフトレジスタ24a′で1〜12サンプル時刻遅延
され画素g、f、g1およびf1の標本値G、F、G1
およびF1が得られる。端子21,22および2
3に印加された標本値は、同様にしてシフトレジ
スター24b′、24c′および24d′で1〜19サン
プル時刻遅延され、画素d、c、b、a、d1
c1、b1、a1、g4、f4、g2、f2、d4、c4、b4、a4
d2、c2、b2およびa2の標本値D、C、B、A、
D1、C1、B1、A1、G4、F4、G2、F2、D4、C4
B4、A4、D2、C2、B2およびA2が得られる。標本
値Xの近傍画素の標本値A、B、C、D、F、G
は、排他的論理和回路27a,27bおよび27
cで、標本値Xと網点の周期だけ離れた画素の標
本値Y1、Y2、Y3の近傍画素の標本値A1、B1
C1、D1、F1、G1とA2、B2、C2、D2、F2、G2
よびA3、B3、C3、D3、F3、G3とそれぞれ対応す
る標本値毎に排他的論理和がとられ、その結果が
出力される。ROM28a,28bおよび28c
では排他的論理和の結果に従つて、類似度を計算
し、比較器29の入力とする。比較器29では、
ROM28a,28bおよび28cの結果を比較
し、標本値Xの近傍画素と最も似ている近傍画素
をもつ画素の標本値Yiを選ぶ選択信号が出力さ
れる。ここで利用されるROMの一例としては、
排他的論理和回路の出力のはずれの個数をそのま
ま数えるものとか、それぞれの出力の加重和をと
つたもの例えばA、F、Dの標本値に関しては
1、B、C、Gの標本値に関しては2の重みを掛
けたものとかが考えられる。
FIG. 5 is a block diagram showing a second embodiment of the prediction selection circuit 4 used in FIGS. 2A and 2B, and similarly to FIG. 4, halftone dots y 1 , y 2 and This is an example of using three halftone dots centered on y3 . Signals of the current scanning line, the previous scanning line, the 5th line, and the 6th previous scanning line are applied to the terminals 20, 21, 22, and 23, respectively. Letting the sample value applied to the terminal 20 be X,
The sample values G, F, G 1 of pixels g, f, g 1 and f 1 are delayed by 1 to 12 samples in the shift register 24a'.
and F 1 is obtained. Terminals 21, 22 and 2
Similarly, the sample values applied to pixels d, c, b, a, d 1 ,
c 1 , b 1 , a 1 , g 4 , f 4 , g 2 , f 2 , d 4 , c 4 , b 4 , a 4 ,
Sample values D, C, B, A of d 2 , c 2 , b 2 and a 2 ,
D 1 , C 1 , B 1 , A 1 , G 4 , F 4 , G 2 , F 2 , D 4 , C 4 ,
B 4 , A 4 , D 2 , C 2 , B 2 and A 2 are obtained. Sample values A, B, C, D, F, G of neighboring pixels of sample value X
are exclusive OR circuits 27a, 27b and 27
c, the sample values A 1 , B 1 , B 1 , sample values Y 1 , Y 2 , Y 3 of the pixels that are separated from the sample value X by the period of the halftone dot, and the sample values A 1 , B 1 ,
Corresponds to C 1 , D 1 , F 1 , G 1 and A 2 , B 2 , C 2 , D 2 , F 2 , G 2 and A 3 , B 3 , C 3 , D 3 , F 3 , G 3 respectively Exclusive OR is performed for each sample value, and the result is output. ROM28a, 28b and 28c
Then, the degree of similarity is calculated according to the result of the exclusive OR and is input to the comparator 29. In the comparator 29,
The results of the ROMs 28a, 28b, and 28c are compared, and a selection signal is output for selecting the sample value Yi of the pixel whose neighboring pixel is most similar to the neighboring pixel of the sample value X. An example of the ROM used here is:
One that directly counts the number of outliers in the output of the exclusive OR circuit, or one that calculates the weighted sum of each output.For example, for the sample values of A, F, and D, it is 1, and for the sample values of B, C, and G, You can think of something like multiplying the weight by 2.

以上本発明の予測選択回路の実施例について述
べたが、これ等は本発明に関して何ら制限を付け
加えるものではないことは勿論であり網点の類似
度をはかる尺度として他の方法が使えることは勿
論である。
Although the embodiments of the prediction selection circuit of the present invention have been described above, it goes without saying that these do not add any limitations to the present invention, and it goes without saying that other methods can be used as a measure for measuring the similarity of halftone dots. It is.

第6A図は、本発明の適応予測復号化装置の第
1の実施例を示すものであり第2A図の適応予測
符号化装置で符号化された符号を復号する。図に
おいて端子31に印加される符号は、復号器32
で予測誤差信号Yに復号される。予測誤差信号Y
は、排他的論理和回路6で、マルチプレクサ5よ
り出力される予測値Pxと排他的論理和がとられ
復号信号Xを生成する。それ以外のラインメモリ
2a,2b1,2b2,………,2bn、予測器3a1
3a2,………3ao、予測選択回路4、マルチプレ
クサ5の部分は、本発明の適応予測符号器の第1
の実施例である第2A図と全く回路構成で同じ動
作をする。また、本発明の予測器3a1,3a2,…
……,3aoとしては、第3A図に示された予測器
が用いられる。
FIG. 6A shows a first embodiment of the adaptive predictive decoding device of the present invention, which decodes the code encoded by the adaptive predictive coding device of FIG. 2A. In the figure, the code applied to the terminal 31 is the code applied to the decoder 32.
is decoded into a prediction error signal Y. Prediction error signal Y
An exclusive OR circuit 6 performs an exclusive OR with the predicted value Px output from the multiplexer 5 to generate a decoded signal X. Other line memories 2a, 2b 1 , 2b 2 , ......, 2b n , predictor 3a 1 ,
3a 2 , ...3a o , the prediction selection circuit 4 and the multiplexer 5 are the first part of the adaptive predictive encoder of the present invention.
The circuit configuration is exactly the same as that of the embodiment shown in FIG. 2A, and the operation is the same. Moreover, the predictors 3a 1 , 3a 2 ,... of the present invention
..., 3a o , the predictor shown in FIG. 3A is used.

第6B図は、本発明の適応予測復号化装置の第
2の実施例を示すものであり、第2B図の適応予
測符号化装置で符号化された符号を復号する。図
において第6A図と異なる点は、復号器32′が
予測状態信号を用いて予測誤差信号をランレング
ス復号化する点と、予測器3a′1,3a′2,………,
3a′oとして第3B図に示されたように予測誤差
信号および予測状態信号を発生するものを用いた
点である。
FIG. 6B shows a second embodiment of the adaptive predictive decoding device of the present invention, which decodes the code encoded by the adaptive predictive coding device of FIG. 2B. The difference between the figure and FIG. 6A is that the decoder 32' performs run-length decoding of the prediction error signal using the prediction state signal, and the predictors 3a' 1 , 3a' 2 , .
3a'o is used to generate a prediction error signal and a prediction state signal as shown in FIG. 3B.

以上のように本発明は複数の予測器を用い、そ
の予測器より得られる予測値を、予測器に用いた
画素およびその近傍画素の一部の標本値を用いて
選べるので従来の予測方式と比べて予測効果の大
きい適応予測符号化装置となつている。
As described above, the present invention uses a plurality of predictors, and the predicted value obtained from the predictors can be selected using sample values of the pixel used in the predictor and some of its neighboring pixels, so it is different from the conventional prediction method. It is an adaptive predictive coding device with a large prediction effect compared to the previous model.

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

第1図は、本発明に用いられる予測器の参照画
素の一例を示す図、第2A図および第2B図は本
発明に係る適応予測符号化装置の第1および第2
の実施例を示すブロツク図、第3A図および第3
B図は、本発明に用いられる予測器の第1および
第2の例を示すブロツク図、第4図および第5図
は、本発明に用いられる予測選択回路の第1およ
び第2の例を示すブロツク図、第6A図および第
6B図は本発明の第1および第2の実施例を示す
ブロツク図である。 図において、参照数字2a,2b1,2b2,……
…,2bn-1、および2bnはラインメモリ、参照数
字3a,3a2,………,3ao,3a′1,3a′2,…
……,3a′o-1および3a′oは予測器、参照数字4
は予測選択回路、参照数字5および5′はマルチ
プレクサ、参照数字6は排他的論理和回路、参照
数字7および7′は符号器、参照数字12a,1
2b,12c,12d,12e,12f,12
g,24a,24b,24c,24d,24a′,
24b′,24c′、および24d′はシフトレジスタ、
参照数字13,13′,25,28a,28bお
よび28cはROM、参照数字27a,27bお
よび27cは排他的論理和回路、参照数字29は
比較器、参照数字32は復号器を表わす。
FIG. 1 is a diagram 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.
FIG. 3A and FIG.
FIG. B is a block diagram showing first and second examples of a predictor used in the present invention, and FIGS. 4 and 5 are block diagrams showing first and second examples of a prediction selection circuit used in the present invention. 6A and 6B are block diagrams showing first and second embodiments of the present invention. In the figure, reference numbers 2a, 2b 1 , 2b 2 ,...
..., 2b n-1 and 2b n are line memories, reference numbers 3a, 3a 2 , ......, 3a o , 3a' 1 , 3a' 2 , ...
..., 3a′ o-1 and 3a′ o are predictors, reference numeral 4
is a prediction selection circuit; reference numerals 5 and 5' are multiplexers; reference numeral 6 is an exclusive OR circuit; reference numerals 7 and 7' are encoders; reference numerals 12a, 1 are
2b, 12c, 12d, 12e, 12f, 12
g, 24a, 24b, 24c, 24d, 24a',
24b', 24c', and 24d' are shift registers;
Reference numerals 13, 13', 25, 28a, 28b and 28c represent ROM, reference numerals 27a, 27b and 27c represent exclusive OR circuits, reference numeral 29 represents a comparator, and reference numeral 32 represents a decoder.

Claims (1)

【特許請求の範囲】[Claims] 1 網点写真上の画素xの標本値Xに対する複数
個の予測値P1、P2、………、Poを発生し、前記
複数個の予測値より1つの予測値Pxを選択し、
前記予測値Pxと標本値Xより得られた予測誤差
信号Yを符号化する適応予測符号化装置で得られ
た符号を復号化する適応予測符号化装置におい
て、前記予測誤差信号Yを復号化する手段と、前
記予測誤差信号Yと予測値Pxより復号画素xの
標本値Xを得る手段と、前記復号画素xの標本値
Xに対する複数個の予測値P1、P2、………、Po
を、前記画素xの近傍画素と画像の2次元網目周
期パターン上で、前記画素xと同一位相関係にあ
る複数の画素y1、y2、………、ynおよび前記複数
画素y1、y2、………、ynの近傍画素の標本値を用
いて発生する手段と、前記複数個の予測値P1
P2、………、Poを発生するために用いた画素お
よびその近傍画素の一部の標本値を用いて選択信
号を発生する手段と、前記選択信号に従つて前記
複数個の予測値P1、P2、………、Poより標本値
Xに対する前記予測値Pxを選択する手段とから
構成されることを特徴とする適応予測復号化装
置。
1 Generate a plurality of predicted values P 1 , P 2 , ......, P o for the sample value X of pixel x on the halftone photograph, select one predicted value Px from the plurality of predicted values,
In an adaptive predictive coding device that decodes a code obtained by an adaptive predictive coding device that codes a prediction error signal Y obtained from the predicted value P x and the sample value X, the prediction error signal Y is decoded. means for obtaining a sample value X of the decoded pixel x from the prediction error signal Y and the predicted value Px, and a plurality of predicted values P 1 , P 2 , . . . for the sample value X of the decoded pixel x. Po
, a plurality of pixels y 1 , y 2 , . means for generating using sample values of neighboring pixels of y 2 , ......, y n ; and the plurality of predicted values P 1 ,
P 2 , ......, means for generating a selection signal using some sample values of the pixel used to generate P o and its neighboring pixels; and means for generating the plurality of predicted values according to the selection signal. An adaptive predictive decoding device comprising means for selecting the predicted value P x for the sample value X from P 1 , P 2 , P o .
JP5976180A 1980-05-06 1980-05-06 Adaptation predictive decoding device Granted JPS56156073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5976180A JPS56156073A (en) 1980-05-06 1980-05-06 Adaptation predictive decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5976180A JPS56156073A (en) 1980-05-06 1980-05-06 Adaptation predictive decoding device

Publications (2)

Publication Number Publication Date
JPS56156073A JPS56156073A (en) 1981-12-02
JPH0121668B2 true JPH0121668B2 (en) 1989-04-21

Family

ID=13122566

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5976180A Granted JPS56156073A (en) 1980-05-06 1980-05-06 Adaptation predictive decoding device

Country Status (1)

Country Link
JP (1) JPS56156073A (en)

Also Published As

Publication number Publication date
JPS56156073A (en) 1981-12-02

Similar Documents

Publication Publication Date Title
US4633325A (en) Adaptive predictive encoding and/or decoding apparatus
US4125861A (en) Video signal encoding
US6014095A (en) Variable length encoding system
JPS60229573A (en) Encoding and transmitting system for half-tone picture information
JPH0121667B2 (en)
JPH0121668B2 (en)
JPH0132703B2 (en)
JPH0132702B2 (en)
KR20010032315A (en) Encoding device and method, and decoding device and method
KR100281328B1 (en) Context-based Arithmetic Coding / Decoding Method and Apparatus
JP3622042B2 (en) Encoder, decoder and encoder / decoder
JP2713298B2 (en) Color image signal decoding device
JP2809161B2 (en) Predictive coding device
JPS6052167A (en) Adaptive forecasting coder
JPS5915553B2 (en) Predictive coding device
JPH0368597B2 (en)
JPH02913B2 (en)
JPS6174455A (en) Coding control system of binary picture signal
JP3855376B2 (en) Image encoding device
JPH04270569A (en) Data compression system for picture processor
JPS6358508B2 (en)
JP2530093Y2 (en) Dither image signal coding device
JPS6052168A (en) Adaptive forecasting decoder
JPH0142189B2 (en)
JPH047871B2 (en)