JPH09149263A - Prediction coder - Google Patents

Prediction coder

Info

Publication number
JPH09149263A
JPH09149263A JP30404195A JP30404195A JPH09149263A JP H09149263 A JPH09149263 A JP H09149263A JP 30404195 A JP30404195 A JP 30404195A JP 30404195 A JP30404195 A JP 30404195A JP H09149263 A JPH09149263 A JP H09149263A
Authority
JP
Japan
Prior art keywords
prediction
error signal
signal
pixels
image data
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.)
Granted
Application number
JP30404195A
Other languages
Japanese (ja)
Other versions
JP2809161B2 (en
Inventor
Mitsutoshi Arai
光俊 荒井
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
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP30404195A priority Critical patent/JP2809161B2/en
Publication of JPH09149263A publication Critical patent/JPH09149263A/en
Application granted granted Critical
Publication of JP2809161B2 publication Critical patent/JP2809161B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a high compression rate by allowing a predict section to have plural prediction object picture elements and to predict them in the lump in the unit of plural picture elements to reduce the signal quantity for prediction signals and a code quantity. SOLUTION: A prediction device 2 predicts a pattern of plural prediction object picture elements from a pattern of input image data effecting on plural reference picture elements to provide an output of a prediction signal (a). A comparator 3 compares the received prediction signal (a) with image data received from an image input terminal 1 to discriminate whether or not the both are coincident. When the both are coincident (prediction is hit), a level '0' is outputted as a prediction error signal (b). When the both are not coincident, the comparator 3 provides an output of information denoting which picture element prediction is not hit among the prediction object picture elements as the prediction error signal (b). This information is made up of plural bits whose most significant bit is '1'. A coding section 5 generates a run length code depending on the run length of the prediction error signal.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は予測符号化装置に係
り、特にファクシミリ装置のイメージデータを圧縮処理
する予測符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a predictive coding apparatus, and more particularly to a predictive coding apparatus for compressing image data of a facsimile apparatus.

【0002】[0002]

【従来の技術】従来より、ファクシミリ装置のイメージ
データを圧縮処理する予測符号化装置は、その予測部に
おいて図5の例に示すような参照画素及び予測対象画素
を持ち、参照画素に現れる画素パターンに基づいて、予
測対象画素が白画素であるか黒画素であるかを予測す
る。この従来の予測符号化装置では、参照画素が一画素
毎に予測値が予測部より出力される。
2. Description of the Related Art Conventionally, a predictive coding apparatus that compresses image data of a facsimile apparatus has a reference pixel and a prediction target pixel as shown in the example of FIG. , The prediction target pixel is predicted to be a white pixel or a black pixel. In this conventional prediction encoding apparatus, a prediction value is output from a prediction unit for each reference pixel.

【0003】[0003]

【発明が解決しようとする課題】しかるに、従来の予測
符号化装置では、予測部にて予測が一画素単位で行われ
るために、圧縮率に限界があるという問題がある。
However, the conventional prediction coding apparatus has a problem that the compression ratio is limited because the prediction is performed by the prediction unit in units of one pixel.

【0004】本発明は上記の点に鑑みなされたもので、
予測部にて予測対象画素を複数個持ち、複数個の画素単
位に一括して予測を行うことにより予測信号の信号量を
減らし、符号量を減少させて高い圧縮率を得る予測符号
化装置を提供することを目的とする。
[0004] The present invention has been made in view of the above points,
A prediction encoding device that has a plurality of pixels to be predicted in a prediction unit and reduces the signal amount of a prediction signal by collectively performing prediction in a plurality of pixel units, thereby reducing a code amount and obtaining a high compression rate. The purpose is to provide.

【0005】[0005]

【課題を解決するための手段】本発明は上記の目的を達
成するため、入力されたイメージデータの複数の参照画
素から複数の予測対象画素を同時に予測し、その予測結
果と実際の入力イメージデータとの誤差を一括して示す
予測誤差信号を出力する予測部と、予測誤差信号を入力
信号として受け、ランレングスの発生確率により割り当
てられた符号に変換する符号化部とを有することを特徴
とする。
To achieve the above object, the present invention simultaneously predicts a plurality of prediction target pixels from a plurality of reference pixels of input image data, and predicts the prediction result and the actual input image data. And a coding unit that receives the prediction error signal as an input signal and that converts the prediction error signal into a code assigned according to the run length occurrence probability. To do.

【0006】ここで、本発明における予測部は、入力さ
れたイメージデータの複数の参照画素に現れるパターン
から複数の予測対象画素のパターンを予測した予測信号
を出力する予測器と、予測器の出力予測信号と入力イメ
ージデータとをそれぞれ比較して、複数の予測対象画素
における予測が外れたか否かを示す予測誤差信号を出力
する比較器とからなる。
Here, the prediction unit according to the present invention comprises: a predictor that outputs a prediction signal obtained by predicting a pattern of a plurality of pixels to be predicted from a pattern that appears in a plurality of reference pixels of input image data; A comparator that compares the prediction signal with the input image data and outputs a prediction error signal indicating whether or not prediction has failed in a plurality of prediction target pixels.

【0007】本発明では、予測部において複数の予測対
象画素を同時に予測して、それらの予測結果を示す予測
誤差信号を出力するようにしているため、予測が複数の
予測対象画素単位で行え、特に予測が一致しているとき
には1ビットの予測誤差信号を出力できる。
In the present invention, a plurality of prediction target pixels are simultaneously predicted in the prediction unit, and a prediction error signal indicating the prediction result is output. In particular, when the predictions match, a 1-bit prediction error signal can be output.

【0008】[0008]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面と共に説明する。図1は本発明の一実施の形態の
ブロック図を示す。同図に示すように、この実施の形態
の予測符号化装置は、予測器2及び比較器3からなる予
測部4と、符号化部5から構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a block diagram of an embodiment of the present invention. As shown in FIG. 1, the predictive coding apparatus according to this embodiment includes a predicting unit 4 including a predictor 2 and a comparator 3, and a coding unit 5.

【0009】予測器2はイメージ入力端子1より入力さ
れるイメージデータから予測を行って予測データaを生
成して出力する。比較器3はイメージデータ入力端子1
より入力されたイメージデータと予測データaとを入力
信号として受け、両者の差分信号である予測誤差信号b
を出力する。符号化部5は予測誤差信号のランレングス
に応じてランレングス符号を生成し、符号出力端子6へ
出力する。
The predictor 2 performs prediction from image data input from the image input terminal 1 to generate and output prediction data a. The comparator 3 is an image data input terminal 1
The image data and the prediction data a received as input signals are received as input signals, and a prediction error signal b which is a difference signal between the two.
Is output. The encoding unit 5 generates a run length code according to the run length of the prediction error signal, and outputs the generated run length code to the code output terminal 6.

【0010】次に、予測器2における予測方法について
更に詳細に説明する。図2は図1の予測器2内部の参照
画素の配置と予測対象画素の配置を示す。図2では、白
地の四角で示す20個の参照画素に現れる入力イメージ
データのパターンから、Xを付した四角で示す4個の予
測対象画素のパターンを予測する。
Next, the prediction method in the predictor 2 will be described in more detail. FIG. 2 shows the arrangement of reference pixels and the arrangement of prediction target pixels inside the predictor 2 of FIG. In FIG. 2, a pattern of four prediction target pixels indicated by squares with X is predicted from patterns of input image data appearing at 20 reference pixels indicated by white squares.

【0011】2行2列で隣接する4個の予測対象画素
は、図3に示すように、白地の白画素と斜線を付して示
す黒画素の組合せで考えると、図3に示す14状態のい
ずれかをとる可能性がある。予測器2は、これらの参照
画素がこれら14状態のいずれをとるかを予測し、予測
信号aとして出力する。
As shown in FIG. 3, four pixels to be predicted adjacent to each other in two rows and two columns are represented by a combination of white pixels on a white background and black pixels indicated by diagonal lines. Could take one of the following: The predictor 2 predicts which of these 14 states these reference pixels take, and outputs it as a prediction signal a.

【0012】次に、比較器3における比較方法について
説明する。比較器3では、入力された予測信号aとイメ
ージ入力端子1から入力されたイメージデータとを比較
し、両者が一致しているかどうかを判定する。両者が一
致している(予測が当った)場合は、”0”を予測誤差
信号bとして出力する。この場合、予測対象画素4画素
分が、予測誤差信号”0”という1ビット分に置き換え
られたことになり、予測誤差信号の信号量が減少し、そ
れにより符号化部5による高い圧縮率が期待できる。
Next, a comparison method in the comparator 3 will be described. The comparator 3 compares the input prediction signal a with the image data input from the image input terminal 1 and determines whether the two match. If they match (prediction is successful), “0” is output as the prediction error signal b. In this case, four pixels to be predicted have been replaced by one bit of the prediction error signal “0”, and the signal amount of the prediction error signal decreases, thereby increasing the compression rate of the encoding unit 5. Can be expected.

【0013】予測信号aとイメージ入力端子1から入力
されたイメージデータとが一致していない場合は、比較
器3は予測対象画素4画素のうちどの画素の予測が外れ
たのかを示す情報を予測誤差信号bとして出力する。こ
の情報は先頭が”1”で始まる5ビットで構成され、各
ビットは図4に示す意味を持っている。
When the prediction signal a and the image data input from the image input terminal 1 do not match, the comparator 3 predicts information indicating which of the four prediction target pixels is out of prediction. Output as an error signal b. This information is composed of 5 bits starting with "1", and each bit has the meaning shown in FIG.

【0014】すなわち、図4(A)において、先頭の1
ビットSの値の”1”は予測が外れたことを示す識別フ
ラグの役目を果たし、続くA〜Dの4ビットが前記予測
対象画素4画素のそれぞれの画素の予測の結果に応じた
値を示す。ここでは、2ビット目Aは図4(B)に示す
ように、予測対象画素4画素のうちの左上の画素の予測
結果を示し、3ビット目のBは予測対象画素4画素のう
ちの左下の画素の予測結果を示し、4ビット目のCは予
測対象画素4画素のうちの右下の画素の予測結果を示
し、5ビット目のDは予測対象画素4画素のうちの右上
の画素の予測結果を示す。予測結果は、その画素の予測
が当っているときは”0”、外れているときは”1”の
値をとる。
That is, in FIG. 4A, the first 1
The value “1” of the bit S serves as an identification flag indicating that prediction has been missed, and the following four bits A to D indicate a value corresponding to the prediction result of each of the four prediction target pixels. Show. Here, as shown in FIG. 4B, the second bit A indicates the prediction result of the upper left pixel of the four pixels to be predicted, and the third bit B indicates the lower left pixel of the four pixels to be predicted. The fourth bit C indicates the prediction result of the lower right pixel of the four pixels to be predicted, and the fifth bit D indicates the prediction result of the upper right pixel of the four pixels to be predicted. Shows the prediction results. The prediction result takes a value of “0” when the prediction of the pixel is correct, and takes a value of “1” when the prediction is out of place.

【0015】このように、この実施の形態では、予測対
象画素4画素を一括して予測し、予測が一致している場
合は1ビットの予測誤差信号を出力するようにし、不一
致の場合は5ビットの予測誤差信号を出力するようにし
ているが、伝送路にもよるが、通常は上記の予測は一致
する確率が高いので、1画素毎に予測誤差信号を出力す
る従来に比べて予測誤差信号の信号量を減少でき、これ
により高い圧縮率が得られる。
As described above, in this embodiment, four pixels to be predicted are predicted at once, and a 1-bit prediction error signal is output if the predictions match, and 5 bits if the predictions do not match. Although a bit prediction error signal is output, the above-mentioned prediction usually has a high probability of coincidence depending on the transmission path, so that the prediction error signal is higher than in the conventional case where a prediction error signal is output for each pixel. The signal amount of the signal can be reduced, and a high compression ratio can be obtained.

【0016】なお、本発明は上記の実施の形態に限定さ
れるものではなく、予測対象画素が4以外の複数画素で
も本発明を適用できる。
The present invention is not limited to the above embodiment, and the present invention can be applied to a plurality of prediction target pixels other than four.

【0017】[0017]

【発明の効果】以上説明したように、本発明によれば、
予測部において複数の予測対象画素を同時に予測して、
それらの予測結果を示す予測誤差信号を出力し、予測が
複数の予測対象画素単位で行えるようにしたため、特に
予測が一致した場合は複数の予測対象画素の予測結果
が、1ビットの予測誤差信号に置き換えられ、よって、
一画素単位で予測している従来に比べて予測誤差信号の
信号量を減少でき、高い圧縮率を得ることができる。
As described above, according to the present invention,
The prediction unit predicts a plurality of prediction target pixels simultaneously,
A prediction error signal indicating the prediction result is output, and the prediction can be performed in units of a plurality of prediction target pixels. In particular, when the predictions match, the prediction result of the plurality of prediction target pixels is a 1-bit prediction error signal. Is replaced by
The signal amount of the prediction error signal can be reduced, and a high compression ratio can be obtained, as compared with the related art in which prediction is performed in units of one pixel.

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

【図1】本発明の一実施の形態のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】本発明の一実施の形態における予測器内部の参
照画素の配置と予測対象画素の配置を示す図である。
FIG. 2 is a diagram illustrating an arrangement of reference pixels and an arrangement of prediction target pixels inside a predictor according to an embodiment of the present invention.

【図3】予測対象画素のとり得るパターンを示す図であ
る。
FIG. 3 is a diagram showing a possible pattern of a prediction target pixel.

【図4】図1の比較器における予測誤差信号の生成方法
説明図である。
FIG. 4 is an explanatory diagram of a method of generating a prediction error signal in the comparator of FIG. 1;

【図5】従来装置における参照画素及び予測対象画素の
例を示す図である。
FIG. 5 is a diagram illustrating an example of a reference pixel and a prediction target pixel in a conventional device.

【符号の説明】[Explanation of symbols]

1 イメージデータ入力端子 2 予測器 3 比較器 4 予測部 5 符号化部 6 符号出力端子 a 予測信号 b 予測誤差信号 DESCRIPTION OF SYMBOLS 1 Image data input terminal 2 Predictor 3 Comparator 4 Prediction part 5 Encoding part 6 Code output terminal a Prediction signal b Prediction error signal

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力されたイメージデータの複数の参照
画素から複数の予測対象画素を同時に予測し、その予測
結果と実際の入力イメージデータとの誤差を一括して示
す予測誤差信号を出力する予測部と、 前記予測誤差信号を入力信号として受け、ランレングス
の発生確率により割り当てられた符号に変換する符号化
部とを有することを特徴とする予測符号化装置。
1. Prediction in which a plurality of prediction target pixels are simultaneously predicted from a plurality of reference pixels of input image data, and a prediction error signal that collectively indicates an error between the prediction result and actual input image data is output. And a coding unit that receives the prediction error signal as an input signal and converts the prediction error signal into a code assigned according to a run length occurrence probability.
【請求項2】 前記予測部は、前記入力されたイメージ
データの複数の参照画素に現れるパターンから複数の予
測対象画素のパターンを予測した予測信号を出力する予
測器と、該予測器の出力予測信号と入力イメージデータ
とをそれぞれ比較して、前記複数の予測対象画素におけ
る予測が外れたか否かを示す予測誤差信号を出力する比
較器とからなることを特徴とする請求項1記載の予測符
号化装置。
2. The prediction unit outputs a prediction signal that predicts a pattern of a plurality of prediction target pixels from a pattern that appears in a plurality of reference pixels of the input image data, and an output prediction of the predictor. The prediction code according to claim 1, further comprising a comparator that compares the signal with the input image data and outputs a prediction error signal indicating whether or not the prediction in the plurality of prediction target pixels has failed. Device.
【請求項3】 前記予測部は、前記予測対象画素がn画
素であるときは、該n画素の予測対象画素における予測
がすべて当ったときは、所定値の1ビットを予測誤差信
号として出力し、該予測が1画素以上外れたときは前記
所定値とは異なる値とした前記1ビットと、該予測対象
画素の各画素それぞれに1対1に対応して予測が当った
か否かを示すnビットからなる計(n+1)ビットの予
測誤差信号を出力することを特徴とする請求項1又は2
記載の予測符号化装置。
3. The prediction unit outputs 1 bit of a predetermined value as a prediction error signal when the prediction target pixel is n pixels and all predictions in the prediction target pixels of the n pixels are correct. , When the prediction is deviated by one pixel or more, the bit indicates a value different from the predetermined value and n indicates whether or not the prediction target pixel corresponds to each pixel in a one-to-one correspondence. 3. A prediction error signal of a total of (n + 1) bits consisting of bits is output.
The predictive coding device described.
JP30404195A 1995-11-22 1995-11-22 Predictive coding device Expired - Lifetime JP2809161B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30404195A JP2809161B2 (en) 1995-11-22 1995-11-22 Predictive coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30404195A JP2809161B2 (en) 1995-11-22 1995-11-22 Predictive coding device

Publications (2)

Publication Number Publication Date
JPH09149263A true JPH09149263A (en) 1997-06-06
JP2809161B2 JP2809161B2 (en) 1998-10-08

Family

ID=17928346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30404195A Expired - Lifetime JP2809161B2 (en) 1995-11-22 1995-11-22 Predictive coding device

Country Status (1)

Country Link
JP (1) JP2809161B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004068844A1 (en) * 2003-01-30 2004-08-12 Fujitsu Limited Image compression method, image restoration method, program, and apparatus
JP2005294934A (en) * 2004-03-31 2005-10-20 Alfa Vision Kk Image data compression method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5492114A (en) * 1977-12-29 1979-07-21 Fujitsu Ltd Picture compressing and restoring system
JPS63102563A (en) * 1986-10-20 1988-05-07 Canon Inc Image processing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5492114A (en) * 1977-12-29 1979-07-21 Fujitsu Ltd Picture compressing and restoring system
JPS63102563A (en) * 1986-10-20 1988-05-07 Canon Inc Image processing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004068844A1 (en) * 2003-01-30 2004-08-12 Fujitsu Limited Image compression method, image restoration method, program, and apparatus
US7236636B2 (en) 2003-01-30 2007-06-26 Fujitsu Limited Image compression method, image restoration method, program and apparatus
JP2005294934A (en) * 2004-03-31 2005-10-20 Alfa Vision Kk Image data compression method
JP4520197B2 (en) * 2004-03-31 2010-08-04 アルファビジョン株式会社 Image data compression method

Also Published As

Publication number Publication date
JP2809161B2 (en) 1998-10-08

Similar Documents

Publication Publication Date Title
US5539843A (en) Image processing system
US4409623A (en) Method and equipment for processing gray scale facsimile signal
US5032838A (en) Variable length code parallel decoding apparatus and method
US5991449A (en) Method and apparatus for encoding and decoding an image
US4559563A (en) Adaptive prediction for binary encoded documents containing a mixture of text, line drawings and halftones
JP2000115783A (en) Decoder and its method
US20070188356A1 (en) Coding apparatus, decoding apparatus, coding method, decoding method, computer readable medium and computer data signal
JP2005323326A (en) Image encoding apparatus, image decoding apparatus, control method thereof, computer program and computer-readable storage medium
JP2003528475A (en) System for detecting redundant images in a video sequence
JP3466164B2 (en) Image encoding device, image decoding device, image encoding method, image decoding method, and medium
JP2809161B2 (en) Predictive coding device
KR100739110B1 (en) Method for compressing binary image rapidly
US4965843A (en) Method and apparatus for coding digital image information obtained from dithering
EP1033885B1 (en) Encoding device and method, and decoding device and method
JPH06181523A (en) Encoding device and decoding device of predictive coding system
JPH104557A (en) Unit, and method for image processing and storage medium storing the method
JP3855376B2 (en) Image encoding device
JP3837850B2 (en) Image coding method and apparatus
JP2634793B2 (en) Color image signal encoding device
KR100281328B1 (en) Context-based Arithmetic Coding / Decoding Method and Apparatus
JP3249647B2 (en) Image processing device
JP2001128182A (en) Image encoding method and computer-readable recording medium storing image encoding program
JP2000200349A (en) Device and method for converting image information and device and method for learning
JPH1127514A (en) Information encoding method and information decoding method
JPS61169086A (en) Encoding system of half tone image