JP2809161B2 - Predictive coding device - Google Patents

Predictive coding device

Info

Publication number
JP2809161B2
JP2809161B2 JP30404195A JP30404195A JP2809161B2 JP 2809161 B2 JP2809161 B2 JP 2809161B2 JP 30404195 A JP30404195 A JP 30404195A JP 30404195 A JP30404195 A JP 30404195A JP 2809161 B2 JP2809161 B2 JP 2809161B2
Authority
JP
Japan
Prior art keywords
prediction
pixels
pixel
error signal
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.)
Expired - Lifetime
Application number
JP30404195A
Other languages
Japanese (ja)
Other versions
JPH09149263A (en
Inventor
光俊 荒井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to 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 Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

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]

【課題を解決するための手段】本発明は上記の目的を達
成するため、入力されたイメージデータの画素のうち、
複数の予測対象画素を該複数の予測対象画素の周囲の
数の参照画素のパターンから同時に予測し、その予測結
果と実際の入力イメージデータとの誤差を一括して示す
予測誤差信号を出力する予測部と、予測誤差信号を入力
信号として受け、ランレングスの発生確率により割り当
てられた符号に変換する符号化部とを有し、予測部は、
予測対象画素がn画素であるときは、該n画素の予測対
象画素における予測がすべて当ったときは、所定値の1
ビットを予測誤差信号として出力し、該予測が1画素以
上外れたときは所定値とは異なる値とした1ビットと、
該予測対象画素の各画素それぞれに1対1に対応して予
測が当ったか否かを示すnビットからなる計(n+1)
ビットの予測誤差信号を出力する構成としたものであ
る。
According to the present invention, in order to achieve the above object, of the pixels of input image data ,
A prediction error that simultaneously predicts a plurality of prediction target pixels from a plurality of reference pixel patterns surrounding the plurality of prediction target pixels and collectively indicates an error between the prediction result and actual input image data. a prediction unit for outputting a signal, receives the prediction error signal as an input signal, possess an encoding unit that converts the code assigned by the probability of the occurrence of run-length, the prediction unit,
When the prediction target pixel is n pixels, the prediction pair of the n pixels
When all predictions in the elephant pixel are successful, the predetermined value of 1
Bit is output as a prediction error signal, and the prediction is
When the value deviates from the predetermined value, 1 bit is set to a value different from the predetermined value,
The prediction is performed in a one-to-one correspondence with each of the prediction target pixels.
Total (n + 1) consisting of n bits indicating whether or not the measurement was successful
It is configured to output a bit prediction error signal.
You.

【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から構成されている。
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 (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力されたイメージデータの画素のう
ち、複数の予測対象画素を該複数の予測対象画素の周囲
複数の参照画素のパターンから同時に予測し、その予
測結果と実際の入力イメージデータとの誤差を一括して
示す予測誤差信号を出力する予測部と、 前記予測誤差信号を入力信号として受け、ランレングス
の発生確率により割り当てられた符号に変換する符号化
部とを有し、前記予測部は、前記予測対象画素がn画素
であるときは、該n画素の予測対象画素における予測が
すべて当ったときは、所定値の1ビットを予測誤差信号
として出力し、該予測が1画素以上外れたときは前記所
定値とは異なる値とした前記1ビットと、該予測対象画
素の各画素それぞれに1対1に対応して予測が当ったか
否かを示すnビットからなる計(n+1)ビットの予測
誤差信号を出力することを特徴とする予測符号化装置。
1. The method according to claim 1 , wherein the pixel data of the input image data is
That is, a plurality of prediction target pixels are set around the plurality of prediction target pixels.
A prediction unit for simultaneously predicting from a plurality of reference pixel patterns, and outputting a prediction error signal indicating an error between the prediction result and actual input image data collectively; receiving the prediction error signal as an input signal; A coding unit for converting the code into a code assigned according to the probability of occurrence of the length , wherein the prediction unit determines that the pixel to be predicted is n pixels
When the prediction at the prediction target pixel of the n pixels is
If all hits, 1 bit of the predetermined value is predicted error signal
When the prediction deviates by one or more pixels,
The one bit, which is different from the fixed value,
Did each pixel of the element be predicted in a one-to-one correspondence?
Prediction of a total of (n + 1) bits consisting of n bits indicating whether or not
A predictive coding device for outputting an error signal .
【請求項2】 前記予測部は、前記入力されたイメージ
データの複数の参照画素に現れるパターンから、該複数
の参照画素の少なくとも一部の画素に隣接する前記複数
の予測対象画素のパターンを予測した予測信号を出力す
る予測器と、該予測器の出力予測信号と入力イメージデ
ータとをそれぞれ比較して、前記複数の予測対象画素に
おける予測が外れたか否かを示す予測誤差信号を出力す
る比較器とからなることを特徴とする請求項1記載の予
測符号化装置。
Wherein said prediction unit, a pattern appearing on the plurality of reference pixels of the image data the input, plurality of
A predictor that outputs a prediction signal that predicts a pattern of the plurality of prediction target pixels adjacent to at least some of the reference pixels , and comparing the output prediction signal and the input image data of the predictor, respectively, 2. The prediction encoding apparatus according to claim 1, further comprising a comparator that outputs a prediction error signal indicating whether or not prediction of the plurality of prediction target pixels has failed.
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 JPH09149263A (en) 1997-06-06
JP2809161B2 true 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)

Families Citing this family (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
JP4520197B2 (en) * 2004-03-31 2010-08-04 アルファビジョン株式会社 Image data compression method

Family Cites Families (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

Also Published As

Publication number Publication date
JPH09149263A (en) 1997-06-06

Similar Documents

Publication Publication Date Title
US4125861A (en) Video signal encoding
US5177622A (en) Method and apparatus for detecting run length of two successive pixels and subjecting run length to universal coding
EP1175100A2 (en) Method and apparatus for image encoding and decoding
EP0138529A2 (en) Adaptive prediction of image data
JP4522199B2 (en) Image encoding apparatus, image processing apparatus, control method therefor, computer program, and computer-readable storage medium
EP0103773B1 (en) Method of processing picture signal to increase average run length and apparatus therefor
JP2809161B2 (en) Predictive coding device
AU606815B2 (en) Apparatus for encoding/transmitting images
US20050002583A1 (en) Coding device and method, and decoding device and method
US5987182A (en) Markov model image encoding device and method
JPH104557A (en) Unit, and method for image processing and storage medium storing the method
JP2634793B2 (en) Color image signal encoding device
JP3855376B2 (en) Image encoding device
JPH088684B2 (en) High efficiency code decoding device
JP3837850B2 (en) Image coding method and apparatus
JPH06121174A (en) Encoder/decoder
JP2785823B2 (en) High-efficiency television signal encoding apparatus and method, and decoding apparatus and method
JPS5915553B2 (en) Predictive coding device
JPS6364948B2 (en)
JPH07255053A (en) Zigzag scanning circuit
JP3249647B2 (en) Image processing device
JP2833005B2 (en) Frame decomposition circuit and method
JPH0121667B2 (en)
JPH03213060A (en) Picture data compressor
JPS6226226B2 (en)