JPH0244819A - Prediction encoder - Google Patents

Prediction encoder

Info

Publication number
JPH0244819A
JPH0244819A JP19500188A JP19500188A JPH0244819A JP H0244819 A JPH0244819 A JP H0244819A JP 19500188 A JP19500188 A JP 19500188A JP 19500188 A JP19500188 A JP 19500188A JP H0244819 A JPH0244819 A JP H0244819A
Authority
JP
Japan
Prior art keywords
code
predictor
prediction result
identification code
prediction
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
JP19500188A
Other languages
Japanese (ja)
Inventor
Kenji Kaga
謙二 加賀
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP19500188A priority Critical patent/JPH0244819A/en
Publication of JPH0244819A publication Critical patent/JPH0244819A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To set the division of a '0' code in the run length code of a prediction result at minimum by adding the identification code of a predictor to the prediction result, adding the identification code concerned only when the predictor has changed and adding '0' except for said case. CONSTITUTION:When the number of the predictors 101A, 101B... to be integrated is increased, several bits of the identification codes 108 are required. When the identification codes are added in the forms as they are, the prediction result, namely, the '0' code of the run length code is divided, and that an encoding efficiency is deteriorated comes into question. Thus, the identification code concerned 108 is added only when the predictors 101A and 101B... have changed, and '0' is added except for said case. Thus, the division of the '0' code in the run length code can be held at minimum and the encoding efficiency as a whole can be improved.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、適応予測方式を利用する画像情報の予測符号
化装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a predictive encoding device for image information that uses an adaptive prediction method.

従来の技術 最近、適応予測方式を用いる2値画像の高能率符号化方
式が、高い符号′圧縮率を必要とする新聞紙面電送等の
分野で高速ファクシミリ用基幹技術として利用されるよ
うになってきた。この適応子2 ・・ 副符号化方式は、例えば、特開昭56−27565号公
報の「網点信号の処理装置」に記載されている。
BACKGROUND OF THE INVENTION Recently, high-efficiency encoding methods for binary images using adaptive prediction methods have come to be used as a core technology for high-speed facsimile in fields such as newspaper transmission, which require high code compression rates. Ta. This adaptive element 2... sub-encoding system is described, for example, in ``Dot Signal Processing Apparatus'' of Japanese Patent Laid-Open No. 56-27565.

適応予測符号化方式は、符号化画素の周辺の複数の画素
を参照画素として用い、この参照画素の値(白黒の色の
組合せ)から符号化画素の値(色)を予測し、予測結果
をランレングス符号化するものである。
Adaptive predictive coding uses multiple pixels surrounding the coded pixel as reference pixels, predicts the value (color) of the coded pixel from the value of this reference pixel (a combination of black and white colors), and calculates the prediction result. This is run-length encoding.

第3図に従来の予測器を用いた適応予測符号化方式の回
路ブロック図を示す。原稿読取装置1で主走査、副走査
を行って読み取られた信号は、2値化器2によってサン
プリングと量子化が行われ、デジタル画像信号となる。
FIG. 3 shows a circuit block diagram of an adaptive predictive coding method using a conventional predictor. Signals read by the original reading device 1 through main scanning and sub-scanning are sampled and quantized by the binarizer 2 and become digital image signals.

これはメモリ3に一時蓄えられる。メモリ3から読み出
された2〜12個の参照画素は、予測器4で符号化画素
の値を予測するのに用いられる。予測器4からの予測結
果は、符号器5においてランレングス符号化される。
This is temporarily stored in memory 3. The 2 to 12 reference pixels read out from the memory 3 are used by the predictor 4 to predict the value of the encoded pixel. The prediction result from the predictor 4 is run-length encoded in the encoder 5.

新聞紙面等のように文字の部分や各種メソシュ数の網点
写真が混在する紙面の場合には、符号化効率を向上させ
るために各画像の性質に適した参照画素を有する予測器
4を複数個持ち、それらを3  /=−。
In the case of a paper surface such as a newspaper page in which text parts and halftone photographs of various mesh numbers are mixed, a plurality of predictors 4 having reference pixels suitable for the properties of each image are used to improve encoding efficiency. Individually, they are 3 /=-.

一定画素数単位で適応的に切り換えて予測処理を行い、
その予測結果を符号化する技術が広く用いられている。
Prediction processing is performed by adaptively switching in units of a fixed number of pixels,
Techniques for encoding the prediction results are widely used.

発明が解決しようとする課題 しかしながら、予測器を複数個用いて一定画素数単位で
予測を行った場合には、どの予測器を選択したかを表す
識別信号を付加する必要があり、識別符号を付加する方
法として、前記予測結果をランレングス符号化した後の
符号に付加する方式が知られている。しかし、前述の方
式においては一定画素数単位を小さくして予測器を適応
的に切り換える効果を図った場合には、識別符号の符号
量が多くなり符号化効率が低下する欠点がある。
Problems to be Solved by the Invention However, when prediction is performed in units of a fixed number of pixels using multiple predictors, it is necessary to add an identification signal indicating which predictor has been selected. As a method of adding, a method is known in which the prediction result is added to a code after run-length encoding. However, in the above-mentioned method, if the effect of adaptively switching the predictor by reducing the unit of a fixed number of pixels is achieved, the code amount of the identification code increases and the coding efficiency decreases.

本発明は上記課題に鑑み、符号化効率の向上を可能とす
るものである。
In view of the above problems, the present invention makes it possible to improve encoding efficiency.

課題を解決するだめの手段 本発明は、複数個の予測器のうちどの予測器を選択した
かの識別符号を予測結果に付加し符号化する符号化手段
と、前記予測器が変化したときのみ該当識別符号を付加
する符号付加手段とを設けることにより上記目的を達成
するものである。
Means for Solving the Problems The present invention provides encoding means for adding and encoding an identification code indicating which predictor has been selected among a plurality of predictors to a prediction result, and only when the predictor changes. The above object is achieved by providing a code adding means for adding a corresponding identification code.

作用 本発明は上記構成により、複数の予測器のうちからどの
予測器を選択したかを示す識別符号を付加することによ
シ識別符号も予測結果としてランレングス符号とする。
Effect of the Invention With the above configuration, the present invention adds an identification code indicating which predictor has been selected from a plurality of predictors, thereby making the identification code a run-length code as a prediction result.

ここでランレングス符号器は予測結果の継続するII 
OIT符号の数と1個のパ1″符号の合計の長さであり
、It OI+符号が継続すればするほど符号化された
後(例えば、従来例で述べた符号器の出力)の符号数は
少なくなり符号化効率は向上する。
Here, the run-length encoder uses the continuation II of the prediction result.
It is the total length of the number of OIT codes and one Par1'' code, and the longer the It OI + code continues, the more the number of codes after being encoded (for example, the output of the encoder described in the conventional example). is reduced, and encoding efficiency is improved.

しかし、組み込む予測器の数が多くなると、前記識別符
号が数ビツト必要になりそのままの形で付加したのでは
予測結果すなわちランレングス符号のII OI+符号
を分断することになり符号化効率が低下する問題がある
。そのだめに、前記予測器が変化した時のみ該当識別符
号を付加し、それ以外は“O″を付加することにより前
記ランレングス符号の°′0″′符号の分断を最小限に
とどめ、全体としての符号化効率の向上を図るものであ
る。
However, as the number of predictors to be incorporated increases, the identification code requires several bits, and if it is added as is, the prediction result, that is, the run-length code II OI + code, will be divided, resulting in a decrease in coding efficiency. There's a problem. To avoid this, the corresponding identification code is added only when the predictor changes, and “O” is added at other times, thereby minimizing the division of the °′0″′ code of the run-length code and improving the overall The aim is to improve the encoding efficiency.

5 ・−7 実施例 以下、図面を参照しながら、本発明の一実施例結果への
識別符号の付加方法とその内容を示すものである。
5.-7 Example Hereinafter, a method for adding an identification code to the results of an example of the present invention and its contents will be described with reference to the drawings.

第1図において、入力画素信号100は、予測器101
A、101 B、 101 C,101Dによって予測
が行われ予測結果に変換されそれぞれの予測結果は最小
予測誤差選択回路102とバッファメモ!J 103A
、103B、103 C,103Dに出力される。
In FIG. 1, an input pixel signal 100 is input to a predictor 101.
A, 101B, 101C, and 101D make predictions and convert them into prediction results, and each prediction result is sent to the minimum prediction error selection circuit 102 and the buffer memo! J103A
, 103B, 103C, and 103D.

最小予測誤差選択回路102では、それぞれの予測結果
の予測誤りをカウントし予測誤差の少ない予測器101
A〜101 Dの予測結果を選択するだめの識別符号1
08を、データセレクタ104及び付加回路105へ出
力する。このとき識別符号108は、次光の予測器選択
付加パターンが参照され付加される。例えば、画素単位
t−1において予測器1を選択し、画素単位tにおいて
予測器2を選択した場合には、識別符号として”11”
が付加され、6 ・−7 予測器1を選択した場合には、識別符号として” oo
 ”が付加される。すなわち識別符号に1″の符号が出
現するのは、予測器の選択が変化した場合のみである。
The minimum prediction error selection circuit 102 counts the prediction errors of each prediction result and selects a predictor 101 with a small prediction error.
Identification code 1 for selecting prediction results from A to 101 D
08 is output to the data selector 104 and the additional circuit 105. At this time, the identification code 108 is added by referring to the predictor selection addition pattern of the next light. For example, if predictor 1 is selected in pixel unit t-1 and predictor 2 is selected in pixel unit t, the identification code is "11".
is added, and if 6・-7 predictor 1 is selected, "oo" is added as an identification code.
" is added. That is, the code 1" appears in the identification code only when the selection of the predictor changes.

次にデータセレクタ104は、識別符号108によって
選択された予測結果を、バッファメモ!J 1037 
・・−2 A〜103Dから読み出し、付加回路105へ出力する
。付加回路105は、前記選択された予測結果に識別符
号108を付加し、前記一定画素数単位の予測結果10
9を、符号器106へ出力する。予測結果109は、符
号器106において符号化され、符号出力107となっ
て出力される。
Next, the data selector 104 stores the prediction result selected by the identification code 108 in the buffer memo! J1037
...-2 Read from A to 103D and output to the additional circuit 105. The addition circuit 105 adds an identification code 108 to the selected prediction result, and adds the prediction result 10 in units of the fixed number of pixels.
9 to the encoder 106. The prediction result 109 is encoded by the encoder 106 and output as a code output 107.

この場合の予測結果109の符号形式の例を第2図に示
す。ここで予測結果20OA、200Bは、前記一定画
素数単位の予測結果を示す。予測結果200Aにおいて
、識別符号201°Aは’ oo ”であり、予測器の
切り換えが行なわれない事を示している。
An example of the code format of the prediction result 109 in this case is shown in FIG. Here, the prediction results 20OA and 200B indicate the prediction results in units of the constant number of pixels. In the prediction result 200A, the identification code 201°A is 'oo', indicating that the predictor is not switched.

すなわち予測結果200A以前の画素単位で使用した予
測器が再び使用される事を示している。
In other words, this indicates that the predictor used for each pixel before the prediction result 200A is used again.

予測結果201Aにおいて、識別符号201Bは” 1
1 ”であり、予測器が切り換わる事を示している。こ
のとき予測結果20OAにおいて予測器3を使用してい
た場合には、予測結果201Aにおいては、前人に示す
ように予測器4が使用される事を示している。
In the prediction result 201A, the identification code 201B is "1"
1'', indicating that the predictor is switched.At this time, if predictor 3 was used in prediction result 20OA, predictor 4 was used in prediction result 201A as shown in the previous article. Indicates that it will be used.

なお、本実施例では4つの予測器を用いているから識別
符号は、”00”  ”01”  ’NO”および”1
1”のビットパターンで表わされる。そして本実施例に
おいて予測器を5個以」二とした場合にも同様の構成が
可能であることは勿論である。
In addition, since four predictors are used in this embodiment, the identification codes are "00", "01", "NO" and "1".
It is expressed by a bit pattern of 1''.It goes without saying that a similar configuration is also possible when the number of predictors is five or more in this embodiment.

発明の効果 以上のように本発明は、予測結果に予測器の識別符号を
付加するとともに、予測器が変化した時のみ該当識別符
号を付加し、それ以外は” o ”を付加することによ
り、予測結果のランレングス符号のtt On符号の分
断を最小限にとどめられるだめ、全体の符号化効率の向
上に効果が大きい。
Effects of the Invention As described above, the present invention adds the identification code of the predictor to the prediction result, adds the corresponding identification code only when the predictor changes, and adds "o" otherwise. Since division of the tt-on code of the run-length code of the prediction result can be minimized, the overall coding efficiency is greatly improved.

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

第1図は本発明の一実施例における予測符号化装置のブ
ロック結線図、第2図は同装置による予測結果を示す図
、第3図は従来の予測符号化装置のブロック結線図であ
る。 101A〜101D・・・予測器、102・・・最小予
測誤差選択回路、103A〜103D・・・パンツアメ
モリ、104・・・データセレクタ、105・・・付加
回路、106・・符号器。 第 図
FIG. 1 is a block diagram of a predictive encoding device according to an embodiment of the present invention, FIG. 2 is a diagram showing prediction results by the same device, and FIG. 3 is a block diagram of a conventional predictive encoding device. 101A-101D...Predictor, 102...Minimum prediction error selection circuit, 103A-103D...Panza memory, 104...Data selector, 105...Additional circuit, 106...Encoder. Diagram

Claims (1)

【特許請求の範囲】[Claims] 予測画素の周辺に存在する参照画素の値の組合せパター
ンから、予測画素の値を一定数の画素単位で予測を行な
う複数個の予測器と、前記予測器を選択したかの識別符
号を前記予測結果に付加し符号化する符号化手段と、前
記予測器が変化したときのみ該当識別符号を付加する符
号付加手段とを有する予測符号化装置。
A plurality of predictors that predict the value of the predicted pixel in units of a certain number of pixels from a combination pattern of values of reference pixels existing around the predicted pixel, and an identification code indicating whether the predictor is selected are used in the prediction. A predictive encoding device comprising: encoding means for adding and encoding a result; and code addition means for adding a corresponding identification code only when the predictor changes.
JP19500188A 1988-08-04 1988-08-04 Prediction encoder Pending JPH0244819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19500188A JPH0244819A (en) 1988-08-04 1988-08-04 Prediction encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19500188A JPH0244819A (en) 1988-08-04 1988-08-04 Prediction encoder

Publications (1)

Publication Number Publication Date
JPH0244819A true JPH0244819A (en) 1990-02-14

Family

ID=16333881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19500188A Pending JPH0244819A (en) 1988-08-04 1988-08-04 Prediction encoder

Country Status (1)

Country Link
JP (1) JPH0244819A (en)

Similar Documents

Publication Publication Date Title
US6014095A (en) Variable length encoding system
US5319463A (en) Arrangement and method of preprocessing binary picture data prior to run-length encoding
US4979049A (en) Efficient encoding/decoding in the decomposition and recomposition of a high resolution image utilizing its low resolution replica
US4688100A (en) Video data encoding/decoding apparatus
US5245441A (en) Document imaging processing method and apparatus
US4809081A (en) Method and apparatus for decompressing encoded data
JPH04270568A (en) Data compression system in picture processing unit
US4259693A (en) Device for compressing binary signals
EP0103773B1 (en) Method of processing picture signal to increase average run length and apparatus therefor
US4716471A (en) Data decoding apparatus
US4618846A (en) Data coding
JP2535932B2 (en) Halftone image coding device
US5274719A (en) Image data coding apparatus
JPH04270564A (en) Serial picture data compression system having color information
JPH0244819A (en) Prediction encoder
JPS63197172A (en) Prediction encoder
JP2634793B2 (en) Color image signal encoding device
US5185820A (en) System for compressing image data having blank lines
JPH05151349A (en) Image data compressing method and encoding circuit
JP3622042B2 (en) Encoder, decoder and encoder / decoder
US6999627B2 (en) Deterministic prediction in an image processing system
JPH047871B2 (en)
JPS6174455A (en) Coding control system of binary picture signal
JPH09135357A (en) Decoder for color image signal
JPH0121667B2 (en)