JPS6174486A - Encoding system of picture signal - Google Patents

Encoding system of picture signal

Info

Publication number
JPS6174486A
JPS6174486A JP59195849A JP19584984A JPS6174486A JP S6174486 A JPS6174486 A JP S6174486A JP 59195849 A JP59195849 A JP 59195849A JP 19584984 A JP19584984 A JP 19584984A JP S6174486 A JPS6174486 A JP S6174486A
Authority
JP
Japan
Prior art keywords
prediction
signal
prediction error
mode
encoded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP59195849A
Other languages
Japanese (ja)
Inventor
Shigeru Yoshida
茂 吉田
Yoshiyuki Okada
佳之 岡田
Toru Sato
透 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59195849A priority Critical patent/JPS6174486A/en
Publication of JPS6174486A publication Critical patent/JPS6174486A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make suitably data into a block in terms of data compression by encoding a prediction error with a high prediction hitting ratio in a lump by means of a identifying code. CONSTITUTION:With use of the prediction error of a picture element in the vicinity of an encoded picture element on a scan line having been encode, a signal M for estimating the height of a prediction hitting ratio is formed 7, and continuous sections supposed excellent in prediction hitting ratio are controlled by a detection circuit 8 as a prediction error. Then the coincidence of the prediction is detected 5, and when the prediction in the continuous section with a high prediction hitting ratio is coincident, the section is encoded by a identifying code. When the prediction is dissident, the identifying code and prediction error signal is encoded in terms of a variable length encoder 11. Thus prediction errors with high prediction hitting ratios are encoded in a lump by the identifying code.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、予測符号化方式により多値画像信号のデータ
圧縮を行う画像信号符号化方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image signal encoding method that performs data compression of a multivalued image signal using a predictive encoding method.

〔従来の技術〕[Conventional technology]

多値画像信号のデータ圧縮方式としては、予測符号化方
式が知られている。この予測符号化方式は、既に入力済
みの画像信号Sを参照画像信号とし、現在入力中の画像
信号Xを予測し、その予測誤差を符号化するものである
。D P CM (Diff−ere’ntial  
Pu1se  Code Modulation)方式
では、予測信号X“を参照画像信号Sの線形結合として
求めるものである。
A predictive coding method is known as a data compression method for multivalued image signals. This predictive encoding method uses an already input image signal S as a reference image signal, predicts the currently input image signal X, and encodes the prediction error. D P CM (Diff-ere'nential
In the Pulse Code Modulation (Pulse Code Modulation) method, a prediction signal X'' is obtained as a linear combination of reference image signals S.

例えば、第3図に示すように、符号化走査線上の符号化
する画素Xに隣接する画素aと、その直前走査線上の画
素d、b、cとについて、参照画像信号Sとして、a−
、b、  cの3画素を用いた時は、線形予測では、予
測信号X′は、 x’=に、a+kz b+に、c として求めるものである。ここで、k+、kz。
For example, as shown in FIG. 3, a pixel a adjacent to a pixel to be encoded
, b, and c, in linear prediction, the predicted signal X' is obtained as x'=, a+kz b+, and c. Here, k+, kz.

k□は係数であり、その大きさは各画素の予測信号X′
に対する相関の強さを示す。
k□ is a coefficient whose size is the predicted signal X' of each pixel
Indicates the strength of the correlation.

予測誤差信号eは、e=x−x“で求めるものであり、
この予測誤差信号eの発生確率P (e)は、第4図に
示すように、e=0が最大で、その0の周辺の小さい値
に集中する性質がある。そこで、第5図に示すように、
符号長L (e)として、0周辺の発生し易い予測誤差
程、短い符号を割当てることにより1.データ圧縮を行
うことができる。
The prediction error signal e is obtained by e=x−x”,
As shown in FIG. 4, the probability of occurrence P (e) of this prediction error signal e has a property that it is maximum at e=0 and concentrates on small values around 0. Therefore, as shown in Figure 5,
1. By assigning a shorter code to the code length L (e), the more likely the prediction error is to occur around 0. Data compression can be performed.

更にデータ圧縮率を高くする為に、(1)予測誤差を固
定長のブロックに分割して符号化する手段(中野、沖野
:“階調ファクシミリのデ・−夕圧縮”沖電気研究開発
、第109号、  Vol、  46.&2、昭和55
年3月参照)と、(2)予測誤差を可変長のブロックに
分割して符号化する手段(近江屋:“中間調画像の符号
化方式”昭和56年度画像電子学会全国大会予稿、階3
8参照)が提案されている。
In order to further increase the data compression rate, (1) a means of dividing the prediction error into fixed-length blocks and encoding them (Nakano, Okino: "Date Compression of Gradation Facsimile", Oki Electric Research and Development, Vol. No. 109, Vol, 46.&2, 1972
(Refer to March 2012), and (2) a means of dividing the prediction error into blocks of variable length and encoding them (Omiya: "Coding method for halftone images", Proceedings of the 1981 National Conference of the Institute of Image Electronics Engineers, Floor 3).
8) has been proposed.

前記mの手段は、予測誤差が0となる画素が集中するこ
とに着目し、走査線をm画素毎(mは固定価)のブロッ
クに分割し、ブロック内の予測誤差の状態に応じて次の
モード分類を行って符号化するものである。
The means for m focuses on the fact that pixels with a prediction error of 0 are concentrated, divides the scanning line into blocks of m pixels each (m is a fixed value), and then divides the scanning line into blocks of m pixels each (m is a fixed value), and calculates the It performs mode classification and encoding.

■1ブロック内の予測誤差が聡てOの時、そのブロック
は識別符号“0”だけで符号する(スキップ・モード)
■When the prediction error within one block is O, that block is encoded with only the identification code “0” (skip mode)
.

■1ブロック内に予測誤差O以外が含まれる時、まず識
別符号“1”を符号化し、次にブロック内m画素分の予
測誤差を可変長符号化する(非スキップ・モード)。
(2) When a prediction error other than O is included in one block, the identification code "1" is first encoded, and then the prediction errors for m pixels in the block are variable-length encoded (non-skip mode).

この(11の手段による符号化の一例を第6図に示すも
のであり、又は符号化する画像信号で、16階調の画素
の、階調を示している。又X“は予測信号、eは予測誤
差、BLはブロック、CDは圧縮符号を示す。ブロック
BL2に於いては、予測誤差eが聡てOであるア・ら、
圧縮符号CDは“0”となり、ブロックBLI、BL3
では、識別符号“1″と、予測誤差の0.1.−1.2
.−2゜・・・に対応した可変長符号ε。、ε1.ε−
1,ε2゜ε−2・・・の圧縮符号CDから構成される
ものである。
An example of encoding by means of (11) is shown in FIG. 6, or the image signal to be encoded indicates the gradation of 16 gradations of pixels. is a prediction error, BL is a block, and CD is a compression code.In block BL2, prediction error e is O, and A, et al.
Compression code CD becomes “0” and blocks BLI, BL3
Then, the identification code "1" and the prediction error 0.1. -1.2
.. Variable length code ε corresponding to -2°... , ε1. ε−
It is composed of compressed code CDs of 1, ε2° ε-2...

又前記(2)の手段は、中間調画像の走査線間の相関が
強いことに着目し、既に符号化が終了している直前の走
査線の同一濃度画素が連続する区間を1プロ・7りとし
、次のように符号化するものである。
In addition, the means (2) above focuses on the strong correlation between scanning lines of a halftone image, and divides the interval in which pixels of the same density continue in the immediately preceding scanning line, which has already been encoded, into 1 pro.7. and is encoded as follows.

■ブロック内で符号化走査線の画素濃度が総て直前の走
査線の画素濃度と同じである時、識別符号“0”だけで
符号化する(Aモード)。
(2) When the pixel densities of all encoded scanning lines within a block are the same as the pixel densities of the immediately preceding scanning line, encoding is performed using only the identification code "0" (A mode).

■ブロック内で符号化走査線の画素濃度に直前の走査線
と異なる濃度の画素が含まれる時、識別符号“1”と、
ブロック内の画素の予測誤差をそれぞれ可変長符号化す
る(Dモード)。
■When the pixel density of the encoded scanning line in a block includes a pixel with a density different from that of the immediately preceding scanning line, the identification code "1" is displayed.
Prediction errors of pixels within a block are each subjected to variable length coding (D mode).

この(2)の手段による符号化の一例を第7図に示すも
のであり、Xは符号化の直前の走査線の画像信号、Xは
符号化走査線の画像信号、Xoは予測信号、eは予測誤
差、BLはブロック、CDは圧縮符号を示し、ブロック
BL1.BL2では、■のAモードであるから、圧縮符
号は“0”となり、又ブロックBL3では、Dモードで
あるから、“1ε−1ε。ε。ε1 ”の圧縮符号とな
る。
An example of encoding by means of (2) is shown in FIG. 7, where X is the image signal of the scanning line immediately before encoding, X is the image signal of the encoded scanning line, Xo is the predicted signal, and e is a prediction error, BL is a block, CD is a compression code, and block BL1. In BL2, the compression code is "0" because it is in the A mode of (2), and in the block BL3, since it is in the D mode, the compression code is "1ε-1ε.ε.ε1".

(発明が解決しようとする問題点〕 前述の従来の(1)による符号化方式では、ブロックの
大きさが固定であるから、予測誤差が0である画素がm
個以上連続して、それらの画素がブロック内に含まれる
場合でないと、圧縮比の向上が望めない欠点があった。
(Problem to be solved by the invention) In the above-mentioned conventional encoding method (1), since the block size is fixed, the number of pixels with a prediction error of 0 is m
There is a drawback that an improvement in the compression ratio cannot be expected unless a block contains at least 1 or more consecutive pixels.

又前述の(2)による符号化方式では、プロ・ツクの大
きさが大きくなるに従ってAモードのプロ・ツクの発生
確率が低下することになり、この為に、プロソ、クサイ
ズが所定の値以上のAモードのプロ・ツクを、m画素毎
にサブブロックに分割して、このサブブロックを前述の
(1)による符号化方式で符号化する工夫がなされてい
た。このように、プロ・ノクサ〜ズを可変長とすること
になるが、直前走査線の同一濃度画素が、符号化走査線
の対応する同一濃度の画素より連続する長さが短い場合
は、Aモードとなり易いので、ブロック化が可能である
が、これは逆に、第7図のブロックBL3のように、直
前走査線の同一濃度画素が符号化走査線の同−濃度画素
より1画素でも長く連続していれば、Dモードとなって
しまう欠点があった。又中間調画像で、1画素毎に濃度
が変化する領域では、識別符号を多く必要とすることに
なるから、前述の(1)の符号化方式により符号量が多
くなる場合が生じる欠点があった。
Furthermore, in the encoding method according to (2) above, the probability of occurrence of an A-mode program decreases as the size of the program increases, and for this reason, when the program size exceeds a predetermined value, A contrivance has been made to divide the A-mode program into sub-blocks every m pixels, and to encode these sub-blocks using the encoding method according to (1) above. In this way, the length of the pro-noxes is made variable, but if the consecutive length of the same density pixels in the previous scanning line is shorter than the corresponding pixels of the same density in the encoding scanning line, then A However, as in block BL3 in Figure 7, the same-density pixel in the immediately preceding scanning line is even one pixel longer than the same-density pixel in the encoding scanning line. If they were continuous, there was a drawback that it would become D mode. In addition, in areas where the density changes for each pixel in a halftone image, a large number of identification codes are required, so the above-mentioned encoding method (1) has the disadvantage that the amount of codes may increase. Ta.

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

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

本発明の画像信号符号化方式は、多値画像信号を予測符
号化する符号化方式に於いて、符号化済み走査線上で符
号化画素近傍の画素の予測誤差を用いて予測的中率の高
低を推定する信号を形成する手段と、この手段により形
成された信号によって予測的中率が高いと推定される連
続の区間の予測誤差をブロックとしてまとめる手段と、
区間内の予測一致を検出する手段と、この区間内で予測
が一致している時に該区間を“0”の識別符号で符号化
し、該区間内で予測が一致していない時に該区間を、“
1”の識別符号と該区間の予測誤差を可変長符号化し、
前記予測的中率が低いと推定された区間は、予測誤差を
そのまま可変長符号化する可変長符号器及び切換手段と
を備えて、予測的中率の高い予測誤差をまとめて識別符
号により符号化するものである。
The image signal encoding method of the present invention is an encoding method that predictively encodes a multilevel image signal, and uses prediction errors of pixels near encoded pixels on an encoded scanning line to increase or decrease the prediction accuracy rate. means for forming a signal for estimating the prediction accuracy; and means for grouping into a block prediction errors in continuous sections in which the prediction accuracy is estimated to be high by the signal formed by the means;
means for detecting a prediction match within an interval, encoding the interval with an identification code of "0" when the predictions match within the interval, and encoding the interval when the predictions do not match within the interval; “
1” identification code and the prediction error of the section are variable-length encoded,
The section in which the prediction accuracy is estimated to be low is equipped with a variable length encoder and a switching means that directly encodes the prediction error into variable length code, and the prediction errors having a high prediction accuracy are collectively coded by an identification code. It is something that becomes.

〔作用〕[Effect]

予測的中率の高低を推定する信号を形成して、予測的中
率が高い連続区間を1ブロツクとし、その区間内に於い
て、予測一致を検出する手段により予測一致が検出され
ると、その区間を識別符号で符号化し、予測不一致が検
出されると、その区間を、識別符号と予測誤差信号を可
変長符号化とに変換し、予測的中率が低い区間は、予測
誤差をそのまま可変長符号化し、予測的中率の高低を推
定する信号を用いることにより、ブロック化を適切に行
うことができる。
A signal for estimating the level of prediction accuracy is formed, a continuous section with a high prediction accuracy is defined as one block, and when prediction coincidence is detected by means for detecting prediction coincidence within that section, The interval is encoded with an identification code, and when a prediction mismatch is detected, the identification code and prediction error signal are converted into variable length encoding for that interval, and in the interval where the prediction accuracy is low, the prediction error is used as is. Blocking can be appropriately performed by variable-length encoding and using a signal for estimating the level of prediction accuracy.

〔実施例〕〔Example〕

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

第1図は本発明の実施例のプロ・ツク図であり、■は画
像信号の入力端子、2は画像信号をシフトするシフトレ
ジスタ、3は予測器、4は減算器、5は予測−数構出回
路、6はシフトレジスタ、7はモード信号発生回路、8
はGモード連続検出回路、9はファースト・イン・ファ
ースト・アウトのメモリ (FIFO)、10はマルチ
プレクサ(MPX)、11は可変長符号器、12はマル
チプレクサ(MPX) 1..13は出力端子である。
FIG. 1 is a block diagram of an embodiment of the present invention, where ■ is an input terminal for an image signal, 2 is a shift register for shifting the image signal, 3 is a predictor, 4 is a subtracter, and 5 is a prediction number. Component circuit, 6 is a shift register, 7 is a mode signal generation circuit, 8
1 is a G-mode continuous detection circuit, 9 is a first-in-first-out memory (FIFO), 10 is a multiplexer (MPX), 11 is a variable length encoder, and 12 is a multiplexer (MPX). .. 13 is an output terminal.

入力画像信号を、0〜15の16階調を示す(4ビット
/画素)の多値画像信号とすると、この多値画像信号を
入力するシフトレジスタ2は、4X (g+2)ワード
の構成とするものであり、aはlラインの画素数である
。そして、シフトレジスタ2の出力信号の予測参照画素
信号a、  b、  cが予測器3に入力される。
Assuming that the input image signal is a multivalued image signal (4 bits/pixel) indicating 16 gradations from 0 to 15, the shift register 2 to which this multivalued image signal is input has a configuration of 4×(g+2) words. where a is the number of pixels in the l line. Then, the predicted reference pixel signals a, b, and c of the output signals of the shift register 2 are input to the predictor 3.

予測器3の出力の予測信号X′と、シフトレジスタ2の
出力の符号化画素信号Xとが減算器4に加えられ、予測
誤差信号eが出力される。この予測誤差信号eは、差分
りから16を法とした値として求められるものである。
The prediction signal X' output from the predictor 3 and the encoded pixel signal X output from the shift register 2 are added to a subtracter 4, and a prediction error signal e is output. This prediction error signal e is obtained from the difference as a value modulo 16.

即ち、 となる。この操作により、差分りは、+15〜−15の
33通りであったものが、第1表に示すように、0〜1
5の16通りとなり、予測誤差信号eを4ビツトで表す
ことができる。又予測誤差信号eに対応した可変長符号
の一例を示し、その符号長も示している。
That is, it becomes. With this operation, the difference went from 33 ways from +15 to -15 to 0 to 1 as shown in Table 1.
5, 16 ways, and the prediction error signal e can be expressed with 4 bits. An example of a variable length code corresponding to the prediction error signal e is also shown, and its code length is also shown.

第  1  表 予測−数構出回路5は、予測誤差信号eをチェックして
、この予測誤差信号eが0である時は、“0”の信号り
を出力し、予測誤差信号eがO以外であると、°1゛の
信号りを出力して、シフトレジスタ6とGモード連続検
出回路8とに加え、シフトレジスタ6には、予測誤差信
号eが0であるか否かを示す予測状態信号が蓄積される
ことになる。シフトレジスタ6は、1947分の予測状
態信号を蓄積できるように、(1ビツト)×l〔ワード
〕の構成を有するものである。
Table 1 The prediction-number construction circuit 5 checks the prediction error signal e and outputs a signal of "0" when the prediction error signal e is 0. , a signal of 1° is output, and in addition to the shift register 6 and the G mode continuous detection circuit 8, the shift register 6 is also provided with a prediction state indicating whether the prediction error signal e is 0 or not. Signals will be accumulated. The shift register 6 has a configuration of (1 bit)×1 (word) so that 1947 worth of predicted state signals can be stored.

又−モード信号発生回路7は、シフトレジスタ6から符
号化済みの走査線である直前走査線の画素d、b、cの
予測状態信号eb+  (+  edが人力されて、こ
れらの値が総て′0”である場合は、これをG (GO
OD)モードと称して“0”を出力し、それ以外である
場合は、これをB (BAD)モードと称して“1″を
出力する。この出力信号がモード信号Mであり、予測的
中率の高低を示す信号となる。このモード信号Mを用い
て予測誤差信号のブロック化を行うものである。
Furthermore, the mode signal generation circuit 7 inputs predicted state signals eb+(+ed) of the pixels d, b, and c of the immediately preceding scanning line, which is the encoded scanning line, from the shift register 6, and calculates all these values. '0'', convert it to G (GO
This is called the B (BAD) mode and outputs "0"; otherwise, it is called the B (BAD) mode and outputs "1". This output signal is the mode signal M, which is a signal indicating the level of the prediction accuracy. This mode signal M is used to block the prediction error signal.

Gモード連続検出回路8は、モード信号MがBモードを
示す場合に、制御信号iにより、マルチプレクサ10が
予測誤差信号eを出力するように切換制御し、且つマル
チプレクサ12が可変長符号器11の出力信号を選択出
力するように切換制御する。この場合は、予測誤差信号
eが可変長符号器11に入力されて符号化され、マルチ
プレクサ12を介して出力、端子13に出力される。
When the mode signal M indicates the B mode, the G mode continuous detection circuit 8 controls the multiplexer 10 to output the prediction error signal e using the control signal i, and also controls the multiplexer 12 to output the prediction error signal e when the mode signal M indicates the B mode. Switching control is performed to selectively output the output signal. In this case, the prediction error signal e is input to the variable length encoder 11, encoded, and output via the multiplexer 12 to the terminal 13.

又モード信号MがGモードを示す場合に、予測−数構出
回路5からの信号りにより、予測誤差信号eが0であっ
たか否かを識別する。モード信号MがBモードを示すま
で、これを繰り・返し行い、Bモードとなった時に、G
モードが連続した区間中に、予測誤差信号eが総てOで
あったならば、制御信号iによりマルチプレクサ12を
制御して、識別符号“0”を選択出力させ、信号jによ
りメモリ9に書込まれた予測誤差信号eをクリアさせる
。又Gモードが連続した区間中、予測誤差信号eに0以
外のものが含まれていたならば、制御信号iにより、マ
ルチプレクサ12を制御して、識別符号“1”を選択出
力させた後、可変長符号回路11の出力信号kを選択出
力させ、同時に、マルチプレクサ10を制御して、メモ
リ9の出力信号を選択出力させて、Gモード期間にメモ
リ9に蓄積された予測誤差信号eを、マルチプレクサ1
0を介して可変長符号器11に入力させ、変換された可
変長符号をマルチプレクサ12を介して出力させる。
Further, when the mode signal M indicates the G mode, it is determined whether the prediction error signal e is 0 or not based on the signal from the prediction/number construction circuit 5. This is repeated until the mode signal M indicates B mode, and when it becomes B mode, G
If the prediction error signals e are all O during the period in which the mode is continuous, the multiplexer 12 is controlled by the control signal i to selectively output the identification code "0", and it is written to the memory 9 by the signal j. The entered prediction error signal e is cleared. If the prediction error signal e contains something other than 0 during the continuous G mode, the multiplexer 12 is controlled by the control signal i to selectively output the identification code "1", and then The output signal k of the variable length code circuit 11 is selectively outputted, and at the same time, the multiplexer 10 is controlled to selectively output the output signal of the memory 9, so that the prediction error signal e accumulated in the memory 9 during the G mode period is Multiplexer 1
0 to the variable length encoder 11, and the converted variable length code is outputted via the multiplexer 12.

第2図は本発明の符号化方式の動作説明図であり、符号
化走査線の画像信号Xに対してその直前の走査線の画像
信号x−1と、更にその前の走査線の画像信号x−2と
を示し、X゛は直前走査線の画像信号を示す予測信号で
あって、各画素対応の数イ直は階調を示すものである。
FIG. 2 is an explanatory diagram of the operation of the encoding method of the present invention, in which the image signal x-2, where X' is a predicted signal indicating the image signal of the immediately preceding scanning line, and the numbers corresponding to each pixel indicate the gradation.

又eは予測誤差信号、e“は直前走査線の予測誤差信号
、Mはモード信号、BLはブロック、CDは圧縮符号を
示す。
Also, e is a prediction error signal, e'' is a prediction error signal of the previous scanning line, M is a mode signal, BL is a block, and CD is a compression code.

前述のように、予測用参照画素として、第3図に於ける
画素a、b、cを用いると共に、予測的中率を推定する
信号、即ちモード信号Mを形成する為に、直前走査線上
の画素す、c、dの予測誤差信号e°を用いるものであ
る。そして、画素す、  c、  dの予測誤差信号が
総て一致する時、モード信号Mを“0″として、これを
G (GOOD)モードとし、それ以外の時は、モード
信号Mを“1”として、これをB (BAD)モードと
するものである。従って、予測誤差信号e′が0でない
時の直下と、その両隣との画素の3画素についてBモー
ドとなる。例えば、ブロックBL3の予測誤差信号e“
が−1であるから、その直下と両隣とのブロックBL2
.BL3.BL4のモード信号Mが“1”となる。
As mentioned above, pixels a, b, and c in FIG. 3 are used as reference pixels for prediction, and in order to form a signal for estimating the prediction accuracy, that is, mode signal M, Prediction error signals e° of pixels S, C, and D are used. Then, when the prediction error signals of pixels S, C, and D all match, the mode signal M is set to "0", making this the G (GOOD) mode; otherwise, the mode signal M is set to "1". This is called B (BAD) mode. Therefore, when the prediction error signal e' is not 0, the three pixels immediately below and on both sides thereof are in B mode. For example, the prediction error signal e“ of block BL3
is -1, so the block BL2 immediately below it and on both sides
.. BL3. The mode signal M of BL4 becomes "1".

前述のように、モード信号Mが形成されると、次のよう
にブロック化して符号化する。
As described above, once the mode signal M is formed, it is divided into blocks and encoded as follows.

(alモード信信号が“O”の時、その“0”が連続す
る区間を1ブロツクとする。このブロック内の予測誤差
信号eが総て0の時は、そのブロックを識別符号“0”
で符号化し、若し、そのブロック内に予測誤差信号eに
Oでないものが含まれている時は、識別符号“1”と、
そのブロック内の予測誤差信号を可変長符号化する。
(When the al mode signal is “O”, the interval in which “0” continues is defined as one block. When the prediction error signal e in this block is all 0, the block is given the identification code “0”.
If the prediction error signal e that is not O is included in the block, the identification code is "1".
The prediction error signal within that block is variable-length coded.

(blモード信信号が“1″の時、1画素分を1ブロツ
クとして予測誤差信号を可変長符号化する。
(When the bl mode signal is "1", the prediction error signal is variable-length encoded with one pixel as one block.

例えば、第2図に於けるブロックBLIは、モード信号
Mが3画素分“0”の区間であり、予測誤差信号eが総
て0であるから、圧縮符号CDとしては、識別符号“0
”で符号化する。又次のブロックBL2.BL3.BL
4は、モード信号Mが“1”の区間であり、1画素分を
1ブロツクとし、予測誤差信号eをそのまま可変長符号
ε。。
For example, in the block BLI in FIG. 2, the mode signal M is an interval of "0" for 3 pixels, and the prediction error signal e is all 0, so the compression code CD is the identification code "0".
”. Also, the next block BL2.BL3.BL
4 is an interval in which the mode signal M is "1", one pixel is defined as one block, and the prediction error signal e is directly converted into a variable length code ε. .

ε。、ε−1に変換する。又ブロックBL5では、モー
ド信号Mが3画素分“0”の区間であり、その区間内で
予測誤差信号eが1つだけlであるから、識別符号“1
”と、可変長符号ε。、ε。。
ε. , ε-1. Furthermore, in block BL5, the mode signal M is in an interval of "0" for three pixels, and only one prediction error signal e is l in that interval, so the identification code is "1".
” and variable length codes ε., ε..

ε1とに変換する。ε1.

次に、第2図に示す画像信号が人力された時の第1図の
動作について説明する。シフトレジスタ2から予測器3
へ画像信号a、b、cが入力されて予測信号X“が出力
され、その予測信号X°と符号化走査線の画像信号Xと
力5、第2図のx I。
Next, the operation shown in FIG. 1 when the image signal shown in FIG. 2 is manually inputted will be explained. Shift register 2 to predictor 3
The image signals a, b, and c are inputted to the input terminal and a predicted signal X'' is outputted, and the predicted signal X°, the image signal X of the encoded scanning line, and the input signal 5, xI in FIG.

Xに示されている。予測誤差信号eは、第2図のeに示
すものとなり、又直前走査線の予測誤差信号e′が第2
図のe′に示されている。モード信号発生回路7には、
シフトレジスタ6から3画素分の予測誤差信号e°が入
力され、それらが総て“0”である時にGモード(“0
”)のモード信号Mが出力され、又予測−数構出回路5
では、予測誤差信号eが0であるか否か検出し、予測誤
差信号eが0である時、“0”の信号りを出力するので
、予測誤差信号e′のOが連続した後、ブロックBL3
に於けるように−1となった時、モード信号発生回路7
は、シフトレジスタ6のe、が“1′となるから、モー
ド信号MはBモードを示す“1”を出力する。そして、
シフトレジスタ6に於けるシフト動作に伴って“1”が
順次シフトされ、e6が“1”となった時もモード信号
Mは“l゛となり、第2図に於けるブロックBL2゜B
L3.BL4に対応するモード信号Mとなる。
It is shown in X. The prediction error signal e is as shown in e of FIG. 2, and the prediction error signal e' of the previous scanning line is the second
It is shown at e' in the figure. The mode signal generation circuit 7 includes
The prediction error signal e° for three pixels is input from the shift register 6, and when all of them are "0", the G mode ("0"
”) is output, and the prediction/number construction circuit 5
Then, it detects whether the prediction error signal e is 0 or not, and when the prediction error signal e is 0, it outputs a signal of "0", so after the prediction error signal e' continues to be O, the block BL3
When the value becomes -1 as in
Since e of the shift register 6 becomes "1'," the mode signal M outputs "1" indicating B mode.
With the shift operation in the shift register 6, "1" is sequentially shifted, and even when e6 becomes "1", the mode signal M becomes "l", and the block BL2°B in FIG.
L3. The mode signal M corresponds to BL4.

Gモード連続検出回路8では、モード信号Mが“0”の
連続区間を検出しているものであり、又予測−数構出回
路5からの信号りが“0”であるか否かを識別している
ものである。そして、モード信号Mが“0”から“1”
に変化した時、モード信号Mが“0”のGモード期間中
に、予測誤差信号eが総てOであったか否かを予測−数
構出回路5からの信号りにより識別し、総て0であった
場合は、Gモード連続検出回路8は、制御信号iにより
マルチプレクサ12を制御して、識別符号“0”を選択
出力させる。そして、メモリ9に書込まれている予測誤
差信号eを制御信号jによりクリアさせる。即ち、第2
図に於けるブロックB′L1に於けるように、圧縮符号
CDは“0”となる。
The G mode continuous detection circuit 8 detects a continuous section in which the mode signal M is "0", and also identifies whether the signal from the prediction/number construction circuit 5 is "0" or not. This is what we are doing. Then, the mode signal M changes from “0” to “1”
During the G mode period when the mode signal M is "0", it is determined whether or not the prediction error signals e are all O based on the signal from the prediction-number output circuit 5. If so, the G mode continuous detection circuit 8 controls the multiplexer 12 using the control signal i to selectively output the identification code "0". Then, the prediction error signal e written in the memory 9 is cleared by the control signal j. That is, the second
As in block B'L1 in the figure, the compression code CD becomes "0".

又モード信号Mが“1”となると、Gモード連続検出回
路8は、制御信号iによりマルチプレクサ10を制御し
て、予測誤差信号eを選択出力させ、その予測誤差信号
eを可変長符号器11に加えて可変長符号に変換し、又
Gモード連続検出回路8は、制御信号iによりマルチプ
レクサ12を制御して、可変長符号器11の出力信号k
を選択出力させるものである。即ち、ブロックBL2゜
BL3.BL4は、それぞれ予測誤差信号eを可変長符
号ε6+  O+  ε−1に変換したものとなε る。
When the mode signal M becomes "1", the G mode continuous detection circuit 8 controls the multiplexer 10 using the control signal i to selectively output the prediction error signal e, and sends the prediction error signal e to the variable length encoder 11. In addition, the G mode continuous detection circuit 8 controls the multiplexer 12 using the control signal i to convert the output signal k of the variable length encoder 11 into a variable length code.
This is to selectively output. That is, blocks BL2°BL3. BL4 is obtained by converting the prediction error signal e into a variable length code ε6+O+ε−1.

又モード信号Mが“0”連続から“1”に変化した時、
“0”の連続区間内で、信号りにより予測誤差信号eが
0以外であったものが含まれていることを識別すると、
Gモード連続検出回路8は、制御信号iによりマルチプ
レクサ12を制御して“1”を選択出力させた後、可変
長符号器11側に切換える。又制御信号iによりマルチ
プレクサ10を制御して、メモリ9側に切換えさせ、メ
モリ9に蓄積されていた予測誤差信号eを可変長符号器
11に加える。第2図に於いては、001の予測誤差信
号eが可変長符号器11に加えられることになり、ブロ
ックBL5の圧縮符号CDとしては、“1ε。ε。ε1
 ”がマルチプレクサ12を介して出力されることにな
る。
Also, when the mode signal M changes from continuous “0” to “1”,
When identifying that a continuous interval of “0” includes a prediction error signal e other than 0 due to signalling,
The G mode continuous detection circuit 8 controls the multiplexer 12 using the control signal i to selectively output "1", and then switches to the variable length encoder 11 side. Further, the multiplexer 10 is controlled by the control signal i to switch to the memory 9 side, and the prediction error signal e stored in the memory 9 is added to the variable length encoder 11. In FIG. 2, the prediction error signal e of 001 is applied to the variable length encoder 11, and the compressed code CD of block BL5 is "1ε.ε.ε1
” will be outputted via the multiplexer 12.

次のモード信号Mが“1”の区間では、それぞれ予測誤
差信号eが可変長符号器11により可変長符号化されて
、マルチプレクサ12を介して出力されることになる。
In the next section in which the mode signal M is "1", the prediction error signal e is variable-length encoded by the variable-length encoder 11 and outputted via the multiplexer 12.

可変長符号器11に於ける予測誤差信号eの可変長符号
化には、例えば、第1表に於ける符号を用いることがで
きる。
For variable length encoding of the prediction error signal e in the variable length encoder 11, for example, the codes in Table 1 can be used.

出力端子13からは、第2図の圧縮符号CDの欄に示す
圧縮符号が出力されることになる。この圧縮符号を受信
して、多値画像信号に復号することも容易であり、第1
図に示す構成による操作の逆の操作により復号すること
が可能である。
The output terminal 13 outputs the compressed code shown in the column of compressed code CD in FIG. It is easy to receive this compression code and decode it into a multivalued image signal, and the first
It is possible to decode by performing the reverse operation of the configuration shown in the figure.

又前述の実施例に於いては、線形予測を用いる場合につ
いて説明しているが、予測状態毎に最適な予測信号を記
憶しておいて予測する非線形予測を用いることも可能で
ある。又予測誤差として符号化画素の予測状態からみた
出現し易さの順位を用いる順位予測を用いることもでき
る。又モード ゛信号量を形成する時に、符号化走査線
の直前走査線上の画素の予測誤差を用いた場合を示して
いるが、直前走査線に限らず、符号済み走査線上の画素
ならば他の走査線上の画素を用いることも可能であるこ
とは明らかである。
Furthermore, in the above-mentioned embodiments, the case where linear prediction is used is explained, but it is also possible to use non-linear prediction in which the optimum prediction signal is stored for each prediction state and then predicted. Furthermore, it is also possible to use rank prediction using the rank of likelihood of appearance as seen from the predicted state of the encoded pixel as the prediction error. In addition, when forming the mode signal amount, the prediction error of the pixel on the scanning line immediately before the encoded scanning line is used. It is clear that it is also possible to use pixels on a scan line.

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

以上説明したように、本発明は、符号化済み走査線上で
符号化画素近傍の画素の予測誤差を用いて予測的中率の
高低を推定する信号即ちモード信号Mを形成するモード
信号発生回路7等の手段と、モード信号Mによる予測的
中率が高いと推定される連続の区間、即ち、モード信号
Mが“0”の連続区間を予測誤差をまとめる為のGモー
ド連続検出回路8等の手段と、予測一致検出回路5等の
予測一致を検出する手段と、予測的中率が高い連続区間
内で予測が一致している時に、・その区間を“0”等の
識別符号で符号化し、予測が一致していない時は、“1
”等の識別符号と予測誤差信号eを可変長符号化し、予
測的中率が低いと推定された区間、即ち、モード信号M
が“1”の区間は、予測誤差信号eを可変長符号化する
可変長符号器11.マルチプレクサ10.12等の手段
を備えて、予測的中率の高い予測誤差をまとめて識別符
号によって符号化するものであるから、符号化効率が良
く、大きい圧縮比を得ることができる利点がある。
As described above, the present invention provides a mode signal generation circuit 7 that forms a mode signal M, that is, a signal for estimating the level of prediction accuracy using prediction errors of pixels near encoded pixels on an encoded scanning line. and a G-mode continuous detection circuit 8 for summarizing prediction errors in continuous sections where the prediction accuracy rate based on the mode signal M is estimated to be high, that is, continuous sections where the mode signal M is "0". and a means for detecting a prediction match such as a prediction match detection circuit 5, when the predictions match within a continuous interval where the prediction accuracy is high, encode that interval with an identification code such as "0". , when the predictions do not match, “1”
”, etc. and the prediction error signal e are variable-length coded, and the section where the prediction accuracy is estimated to be low, that is, the mode signal M
is "1" in the variable length encoder 11. which performs variable length encoding on the prediction error signal e. Since it is equipped with means such as a multiplexer 10, 12, etc., and encodes prediction errors with a high prediction accuracy together using an identification code, it has the advantage of having good encoding efficiency and being able to obtain a large compression ratio. .

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

第1図は本発明の実施例のブロック図、第2図は本発明
の実施例の動作説明図、第3図は走査線上の画素の説明
図、第4図は予測誤差信号の発生確率曲線図、第5図は
予測誤差信号への符号長の   ′割当曲線図、第6図
及び第7図は従来例の動作説明図である。 1は画像信号の入力端子、2はシフトレジスタ、3.は
予測器、4は減算器、5は予測−数構出回路、6はシフ
トレジスタ、7はモード信号発生回路、8はGモード連
続検出回路、9はファースト・イン・ファースト・アウ
トのメモリ (FIFO)、10.12はマルチプレク
サ(MPX)、11は可変長符号器、13は出力端子で
ある。
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is an explanatory diagram of the operation of an embodiment of the present invention, Fig. 3 is an explanatory diagram of pixels on a scanning line, and Fig. 4 is a prediction error signal occurrence probability curve. 5 is a diagram of the assignment curve of the code length to the prediction error signal, and FIGS. 6 and 7 are diagrams for explaining the operation of the conventional example. 1 is an input terminal for image signals, 2 is a shift register, 3. is a predictor, 4 is a subtracter, 5 is a prediction-number construction circuit, 6 is a shift register, 7 is a mode signal generation circuit, 8 is a G mode continuous detection circuit, 9 is a first-in first-out memory ( 10.12 is a multiplexer (MPX), 11 is a variable length encoder, and 13 is an output terminal.

Claims (1)

【特許請求の範囲】[Claims] 多値画像信号を予測符号化する符号化方式に於いて、符
号化済み走査線上で符号化画素近傍の画素の予測誤差を
用いて予測的中率の高低を推定する信号を形成する手段
と、該手段により形成された信号によって予測的中率が
高いと推定される連続の区間の予測誤差をまとめる手段
と、該区間内の予測一致を検出する手段と、該区間内で
予測が一致している時に該区間を識別符号で符号化し、
該区間内で予測が一致していない時に該区間を、識別符
号と該区間の予測誤差を可変長符号化し、前記予測的中
率が低いと推定された区間は、予測誤差を可変長符号化
する可変長符号器及び切換手段とを備えて、予測的中率
の高い予測誤差をまとめて識別符号により符号化するこ
とを特徴とする画像信号符号化方式。
In a coding method for predictively coding a multivalued image signal, means for forming a signal for estimating the level of prediction accuracy using prediction errors of pixels in the vicinity of the coded pixel on the coded scanning line; means for summarizing prediction errors in consecutive intervals in which the prediction accuracy is estimated to be high based on the signal formed by the means; means for detecting prediction coincidence within the interval; and means for detecting prediction coincidence within the interval. encode the section with an identification code when
When the predictions do not match within the interval, the identification code and the prediction error of the interval are variable-length coded, and for the interval where the prediction accuracy is estimated to be low, the prediction error is variable-length coded. 1. An image signal encoding method comprising a variable length encoder and a switching means, and encoding prediction errors with a high prediction accuracy collectively using an identification code.
JP59195849A 1984-09-20 1984-09-20 Encoding system of picture signal Pending JPS6174486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59195849A JPS6174486A (en) 1984-09-20 1984-09-20 Encoding system of picture signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59195849A JPS6174486A (en) 1984-09-20 1984-09-20 Encoding system of picture signal

Publications (1)

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

Family

ID=16348029

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59195849A Pending JPS6174486A (en) 1984-09-20 1984-09-20 Encoding system of picture signal

Country Status (1)

Country Link
JP (1) JPS6174486A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990004307A1 (en) * 1988-10-13 1990-04-19 Matsushita Electric Industrial Co., Ltd. Tv signal processing device
JPH0621826A (en) * 1991-12-12 1994-01-28 Nippon Columbia Co Ltd Digital audio data compression system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990004307A1 (en) * 1988-10-13 1990-04-19 Matsushita Electric Industrial Co., Ltd. Tv signal processing device
JPH0621826A (en) * 1991-12-12 1994-01-28 Nippon Columbia Co Ltd Digital audio data compression system

Similar Documents

Publication Publication Date Title
US4546386A (en) Adaptive predictive coding system for television signals
KR100289899B1 (en) Inter-block interpolation predictive encoding apparatus and method, and decoding apparatus and method
US4766499A (en) Method and apparatus for encoding and decoding dither signals for reproduction of the halftone of a picture
JPS58197984A (en) Adaptive forecasting encoding device of television signal
JP2829954B2 (en) Apparatus and method for highly efficient encoding of image signal
JPH0137065B2 (en)
JPS6174486A (en) Encoding system of picture signal
JP3804745B2 (en) Frame structure / field structure switching type image coding apparatus
EP1465431A2 (en) Video coder providing implicit coefficient prediction and scan adaption for image coding and intra coding of video
JP4415651B2 (en) Image encoding apparatus and image decoding apparatus
JPS6165573A (en) Picture signal coding system
JP2634793B2 (en) Color image signal encoding device
JPH0750839A (en) Coding method for motion picture
KR100269882B1 (en) Image coding and decoding method and related apparatus
JPH0748859B2 (en) Predictive coding method for television signals
JP2809161B2 (en) Predictive coding device
JP3263218B2 (en) Image information data compression and playback device
JP2692899B2 (en) Image coding device
JPH02250581A (en) Highly efficient encoding method for video signal
JPH0313090A (en) High efficient coding method for video signal
JP2629315B2 (en) High-efficiency coding device for image signals
JPH04294685A (en) Method and device for encoding color image signal
JPS5915553B2 (en) Predictive coding device
JPS6174455A (en) Coding control system of binary picture signal
JPH06133287A (en) High efficiency coding device