JPS63197172A - Prediction encoder - Google Patents

Prediction encoder

Info

Publication number
JPS63197172A
JPS63197172A JP3034087A JP3034087A JPS63197172A JP S63197172 A JPS63197172 A JP S63197172A JP 3034087 A JP3034087 A JP 3034087A JP 3034087 A JP3034087 A JP 3034087A JP S63197172 A JPS63197172 A JP S63197172A
Authority
JP
Japan
Prior art keywords
predictor
code
prediction
identification code
switching
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
JP3034087A
Other languages
Japanese (ja)
Inventor
Kenji Kaga
謙二 加賀
Akiyoshi Tanaka
章喜 田中
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 JP3034087A priority Critical patent/JPS63197172A/en
Publication of JPS63197172A publication Critical patent/JPS63197172A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To improve encoding efficiency, by providing a first encoding means which performs encoding by adding an identification code representing which predictor is selected among plural predictors on a predicted result, and a second encoding means which performs the encoding by adding a predictor switching code representing the switching of the predictor on the identification code. CONSTITUTION:A minimum prediction error selection circuit 102 outputs the identification code 108 to select the predicted results of the predictor 101A-101D with a few of prediction errors to a data selector 104 and an addition circuit 105, and also outputs the prediction switching code 100 to switch the predictors 101A-101D to the addition circuit 105. The addition circuit 105 adds the identification code 108 and the predictor switching code 109 on a selected predicted result, and outputs the predicted result 110 with a unit of a prescribed number of picture elements to an encoder 106. And the prediction switching code is set at '1' only when the predictors 101A-101D are switched, and a value corresponding to the predictors 101A-101D is outputted to the identification code, and in the case other than the above, both the prediction switching code and the identification code are set at '0's, thereby, it is possible to improve the encoding efficiency as a whole.

Description

【発明の詳細な説明】 号化装置に関するものである。[Detailed description of the invention] This relates to an encoding device.

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

適応予測符号化方式においては、符号化画素の周辺の複
数の画素を参照画素として用い、この参照画素の値(白
黒の色の組合せ)から符号化画素の値(色)を予測し、
予測結果をう/レングス符号化するものである。第3図
に従来の予測器を用いた適応予測符号化方式の回路ブロ
ック図を示す。
In the adaptive predictive coding method, multiple pixels around the encoded pixel are used as reference pixels, and the value (color) of the encoded pixel is predicted from the value (black and white color combination) of the reference pixel.
The prediction result is length encoded. FIG. 3 shows a circuit block diagram of an adaptive predictive coding method using a conventional predictor.

原稿読取装置4で主走査、副走査を行って読取られた信
号は、2値化器5によってサンプリングと量子化が行な
われ、デジタル画像信号となる。
Signals read by the original reading device 4 through main scanning and sub-scanning are subjected to sampling and quantization by the binarizer 5, and become digital image signals.

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

とりわけ新聞紙面等のように文字の部分や各種メツシー
数の網点写真が混在する紙面の場合には符号化効率を向
上させるために各画像の性質に適した参照画素を有する
前記予測器7を複数個持ちそれらを一定画素数単位で適
応的に切換えて予測処理を行ない、その予測結果を符号
化する技術が広く用いられている。
Particularly, in the case of a paper surface such as a newspaper where text parts and halftone photographs of various mesh numbers are mixed, the predictor 7 having reference pixels suitable for the properties of each image is used to improve the encoding efficiency. A widely used technique is to have a plurality of pixels, adaptively switch them in units of a fixed number of pixels, perform prediction processing, and encode the prediction results.

発明が解決しようとする問題点 しかしながら、予測器を複数個用いて一定画素数単位で
予測を行なった場合には、どの予測器を選択したかを表
わす識別符号を付加する必要が有る。この識別符号を付
加する方法として、前記予測結果をランレングス符号化
した後の符号に付加する方式が知られている。
Problems to be Solved by the Invention However, when prediction is performed in units of a fixed number of pixels using a plurality of predictors, it is necessary to add an identification code indicating which predictor has been selected. As a method for adding this identification code, a method is known in which the prediction result is added to a code after run-length encoding.

しかしながら、前述の方式においては一定画素数単位を
小さくして予測器を適応的に切換える効果を図った場合
には、識別符号の符号量が多くなり、符号化効率が低下
する欠点がある。
However, in the above-mentioned method, when 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 encoding efficiency decreases.

そこで、予測結果に前記複数の予測器のうちからどの予
測器を選択したかを示す識別符号を付加することが考え
られる。なお、識別符号も予測結果としてランレングス
符号とする。ここでランレングス符号とは予測結果の継
続する“O”符号の数と1個の“1”符号の合計の長さ
であシ、”0”符号が継続すればする程、符号化された
後(例えば、従来例で述べた符号器8の出力)の符号数
は少なくなり符号化効率は向上する。しかし組み込む予
測器の数が多く々ると、前記識別符号が数ビツト必要と
なり、そのままの形で付加したのでは予測結果、すなわ
ちランレングス符号の”0”符号を分断することになシ
符号化効率は低下するという問題がある。
Therefore, it is conceivable to add an identification code indicating which predictor has been selected from among the plurality of predictors to the prediction result. Note that the identification code is also a run-length code as a prediction result. Here, the run-length code is the total length of the number of consecutive "O" codes and one "1" code in the prediction result, and the longer the "0" code continues, the more coded it is. The number of subsequent codes (for example, the output of the encoder 8 described in the conventional example) is reduced, and the coding efficiency is improved. However, when a large number of predictors are incorporated, several bits of the identification code are required, and adding it as is will result in the prediction result, that is, the "0" code of the run-length code being divided, and the code will not be encoded. There is a problem that efficiency decreases.

本発明はこの問題を解決するため、識別符号に前記予測
器の切換えを示す予測器切換符号を付加シ、前記ランレ
ングス符号の”0”符号の分断を最小限にとどめ全体と
しての符号化効率の向上をはかることを目的としたもの
である。
In order to solve this problem, the present invention adds a predictor switching code indicating the switching of the predictor to the identification code, thereby minimizing the division of the "0" code of the run-length code and improving the overall coding efficiency. The purpose is to improve the

問題点を解決するための手段 本発明は、複数個の予測器のうちどの予測器を選択した
かの識別符号を予測結果に付加し符号化する第1の符号
化手段と、前記予測器の切換えを示す予測器切換符号を
前記識別符号に付加して符号化する第2の符号化手段と
を設けることによシ上記目的を達成するものである。
Means for Solving the Problems The present invention provides first encoding means for adding and encoding an identification code indicating which predictor has been selected from among a plurality of predictors to a prediction result; The above object is achieved by providing a second encoding means for adding and encoding a predictor switching code indicating switching to the identification code.

作用 本発明は、上記構成によって予測結果のランレングス符
号の0”符号の分断を最小限にとどめ、複数個の予測器
を一定画素数単位で切換えて符号化を行なう場合の符号
化効率の向上を可能とするものである。
Effects of the Invention The present invention minimizes division of 0'' codes in run-length codes of prediction results with the above configuration, and improves coding efficiency when coding is performed by switching a plurality of predictors in units of a fixed number of pixels. This makes it possible to

実施例 以下、図面を参照しながら本発明の一実施例について説
明する。第1図は本発明の一実施例における予測符号化
装置のブロック結線図、第2図は同装置における予測結
果への識別符号と予測器切換符号の付加方法とその内容
を示す概念図である。
Embodiment Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block wiring diagram of a predictive encoding device according to an embodiment of the present invention, and FIG. 2 is a conceptual diagram showing the method and contents of adding an identification code and a predictor switching code to a prediction result in the same device. .

第1図に示すように、入力画素信号100は、予測器1
01A、 l0IB1101C,l0IDによって予測
が行なわれ予測結果に変換され、それぞれの予測結果は
最小予測誤着選択回路102とバクファメモリ103A
1103B、 1030.103Dに出力される。
As shown in FIG. 1, an input pixel signal 100 is input to a predictor 1
Prediction is performed by 01A, 10IB1101C, and 10ID and converted into prediction results, and each prediction result is sent to the minimum prediction error selection circuit 102 and the buffer memory 103A.
Output to 1103B, 1030.103D.

最小予測誤差選択回路102では、それぞれの予測結果
の予測誤シをカウントし、予測誤差の少ない予測器10
1A〜101Dの予測結果を選択するための識別符号1
08をデータセレクタ104及び付加回路105へ、ま
た予測器101A〜101Dの切換(選択する予測結果
の切換)を行なう予測器切換符号109を付加回路10
5に出力する。
The minimum prediction error selection circuit 102 counts the prediction errors of each prediction result and selects a predictor 10 with a small prediction error.
Identification code 1 for selecting prediction results 1A to 101D
08 to the data selector 104 and the additional circuit 105, and a predictor switching code 109 for switching the predictors 101A to 101D (switching the prediction result to be selected) to the additional circuit 10.
Output to 5.

データセレクタ104では、識別符号108によって選
択された予測結果をバクファメモIJ103A〜103
Dから読み出し、付加回路105へ出力する。
The data selector 104 sends the prediction result selected by the identification code 108 to the backup memo IJ103A to 103.
D and outputs it to the additional circuit 105.

付加回路105は、その選択された予測結果に識別符号
108、及び予測器変化符号109を付加し、前記一定
画素数単位の予測結果110を、符号器106・へ出力
する。予測結果110は、符号器106において符号化
され、符号出力107となって出力される。
The addition circuit 105 adds an identification code 108 and a predictor change code 109 to the selected prediction result, and outputs the prediction result 110 in units of the constant number of pixels to the encoder 106. The prediction result 110 is encoded by the encoder 106 and output as a code output 107.

この場合の予測結果110の符号形式を第2図に示す。The code format of the prediction result 110 in this case is shown in FIG.

ここで予測結果200A、 200Bは前記一定画素数
単位の予測結果を示す。予測結果200Aにおいて、予
測器切換符号201Aは“1”であり第1図の予測器1
01A〜101が切換わることを表わし、このときの識
別符号202Aが前記予測器を表わしている。本実施例
では4つの予測器を用いているから、00″、@01″
、110″及び”11”のピット110ターンで表わさ
れる。予測結果200Bでの予測器切換符号201Bは
“O”であり。予測器の切換えが行なわれない事を示し
ている。すなわち予測結果200Aと同じ予測器が用い
られている事を示している。このときの識別符号202
Bは、”00”とする。
Here, the prediction results 200A and 200B indicate the prediction results in units of the constant number of pixels. In the prediction result 200A, the predictor switching code 201A is "1" and the predictor 1 in FIG.
01A to 101 represent switching, and the identification code 202A at this time represents the predictor. In this example, four predictors are used, so 00″, @01″
, 110" and "11" pits 110 turns. The predictor switching code 201B in the prediction result 200B is "O", indicating that the predictor is not switched. In other words, the prediction result 200A This shows that the same predictor is used.In this case, the identification code 202
B is "00".

なお、本実施例において予測器は4個としたが予測器を
5個以上とした場合にも同様の構成が可能であることは
勿論である。
In this embodiment, the number of predictors is four, but it goes without saying that a similar configuration is possible when there are five or more predictors.

発明の効果 以上のように本発明は、予測結果に予測器の識別符号と
予測器切換符号を付加するとともに、予測器が切換わる
時のみ予測器切換符号を“1”として識別符号に前記予
測器に対応した値を出力し、それ以外は予測器切換符号
及び識別符号を共に”0”とすることにより、予測結果
のランレングス符号の”0”符号の分断を最小限にとど
めることができ、全体の符号化効率の向上を行なうこと
ができる。
Effects of the Invention As described above, the present invention adds the identification code of the predictor and the predictor switching code to the prediction result, sets the predictor switching code to "1" only when the predictor is switched, and adds the prediction to the identification code. By outputting a value corresponding to the predictor and setting both the predictor switching code and identification code to "0" for other cases, it is possible to minimize the division of "0" codes in the run-length code of the prediction result. , the overall encoding efficiency can be improved.

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

第1回は本発明の一実施例における予測符号化装置のブ
ロック結線図、第2図は同装置による予測結果を示す概
念図、第3図は従来の適応予測符号化方式の回路ブロッ
ク図である。 101A〜l0ID・・・予測器、1o2川最用予測誤
差選択回路、103A〜103D・・・バッファメモリ
、104・・・データセレクタ、lo5・・・付加回路
、106・・・符号器。
The first part is a block wiring diagram of a predictive encoding device according to an embodiment of the present invention, FIG. 2 is a conceptual diagram showing prediction results by the same device, and FIG. 3 is a circuit block diagram of a conventional adaptive predictive encoding method. be. 101A to 10ID...Predictor, 1o2 river most used prediction error selection circuit, 103A to 103D...Buffer memory, 104...Data selector, lo5...Additional circuit, 106...Encoder.

Claims (1)

【特許請求の範囲】[Claims] 予測画素の周辺に存在する複数個の参照画素の値の組合
せパターンにおける予測画素の値から一定数の画素単位
で予測を行なう複数個の予測器と前記予測器のそれぞれ
の予測結果の予測誤りをカウントし、予測誤差の少ない
前記予測器を唯一選択する選択回路と、前記選択回路が
前記複数個のどの予測器を選択したかの識別符号を前記
予測器の予測結果に付加し符号化する第1の符号化手段
と、前記予測器の切換を示す予測器切換符号を前記識別
符号に付加して符号化する第2の符号化手段とを有し、
前記予測結果をランレングス符号化する予測符号化装置
A plurality of predictors perform prediction in units of a certain number of pixels from the value of the predicted pixel in a combination pattern of values of a plurality of reference pixels existing around the predicted pixel, and a prediction error of the prediction result of each of the predictors is calculated. a selection circuit that counts and selects only the predictor with a small prediction error; and a selection circuit that adds and encodes an identification code indicating which of the plurality of predictors the selection circuit has selected to the prediction result of the predictor. and a second encoding means that adds and encodes a predictor switching code indicating switching of the predictor to the identification code,
A predictive encoding device that performs run-length encoding on the prediction result.
JP3034087A 1987-02-12 1987-02-12 Prediction encoder Pending JPS63197172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3034087A JPS63197172A (en) 1987-02-12 1987-02-12 Prediction encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3034087A JPS63197172A (en) 1987-02-12 1987-02-12 Prediction encoder

Publications (1)

Publication Number Publication Date
JPS63197172A true JPS63197172A (en) 1988-08-16

Family

ID=12301097

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3034087A Pending JPS63197172A (en) 1987-02-12 1987-02-12 Prediction encoder

Country Status (1)

Country Link
JP (1) JPS63197172A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002035825A1 (en) * 2000-10-20 2002-05-02 Sony Corporation Image processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002035825A1 (en) * 2000-10-20 2002-05-02 Sony Corporation Image processor
US6785422B2 (en) 2000-10-20 2004-08-31 Sony Corporation Image processing apparatus utilizing pixel values of peripheral pixels adjacent the subject pixel

Similar Documents

Publication Publication Date Title
US4766499A (en) Method and apparatus for encoding and decoding dither signals for reproduction of the halftone of a picture
US4688100A (en) Video data encoding/decoding apparatus
JPH04270568A (en) Data compression system in picture processing unit
EP0103773B1 (en) Method of processing picture signal to increase average run length and apparatus therefor
US4716471A (en) Data decoding apparatus
US4918540A (en) System for encoding or decoding analog video signals
JPH0460391B2 (en)
JPH07264417A (en) Image coding method
JPH04270564A (en) Serial picture data compression system having color information
US4782400A (en) System for encoding or decoding analog video signals
JPS63197172A (en) Prediction encoder
JP2000217003A (en) Coding system and decoding system
JP2634793B2 (en) Color image signal encoding device
JPH05151349A (en) Image data compressing method and encoding circuit
JPH04270569A (en) Data compression system for picture processor
JPH09135357A (en) Decoder for color image signal
JPH0244819A (en) Prediction encoder
JPH047871B2 (en)
JPS6174455A (en) Coding control system of binary picture signal
JPS5915553B2 (en) Predictive coding device
JPH07177359A (en) Facsimile equipment
JPH041552B2 (en)
JPH036066Y2 (en)
JP2995740B2 (en) Facsimile image density converter
JPS61123277A (en) Picture data compression system