JPH09289643A - Image encoding device and method therefor - Google Patents

Image encoding device and method therefor

Info

Publication number
JPH09289643A
JPH09289643A JP10171096A JP10171096A JPH09289643A JP H09289643 A JPH09289643 A JP H09289643A JP 10171096 A JP10171096 A JP 10171096A JP 10171096 A JP10171096 A JP 10171096A JP H09289643 A JPH09289643 A JP H09289643A
Authority
JP
Japan
Prior art keywords
value
prediction
state
circuit
pixel
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.)
Withdrawn
Application number
JP10171096A
Other languages
Japanese (ja)
Inventor
Hiroshi Kajiwara
浩 梶原
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP10171096A priority Critical patent/JPH09289643A/en
Publication of JPH09289643A publication Critical patent/JPH09289643A/en
Withdrawn 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

Abstract

PROBLEM TO BE SOLVED: To provide a device capable of reducing a generation code amount by providing a state value generation means, the number of times of state generation, a prediction correction value generation means, a correction prediction value generation means, a prediction error generation means and an entropy encoding means. SOLUTION: In a counter circuit 108, the numger N(S) of times of generation and a cumulative error E(S) are taken out corresponding to a state number outputted from a context generation circuit 103 and they are delivered to a prediction correction value generation circuit 105 and a counter updating circuit 109. In the prediction correction value generation circuit 105, a prediction correction value C is obtained by the arithmetic operation of E(S)/N (S). Also, a subtraction circuit 107 obtains a prediction error (e). A selector 112 compares the three values of the prediction error (e) and fixed values Th and-<=h, ranks them by the sizes, selects the second largest value and outputs it to a signal line 113. The counter updating circuit 109 adds an input value from the signal line 113 to the E (S).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、周辺画素値に基づ
く予測誤差を用いて画像の符号化を行なう画像符号化装
置及びその方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding apparatus and method for coding an image using a prediction error based on peripheral pixel values.

【0002】[0002]

【従来の技術】従来より、画像符号化装置で使用される
画像符号化方式の一つとして予測符号化方式がある。こ
の予測符号化方式は、着目画素の画素値をその周囲の画
素から予測し、予測誤差をエントロピー符号化するもの
である。この場合、予測方式をいくつか用意し、それら
を適応的に選択して用いたり、エントロピー符号化する
際に、いくつかの状態に分割し、各状態毎にエントロピ
ー符号化する等、予測符号化方式をベースとした種々の
改良方式が提案されている。なお、自然画像の国際標準
符号化方式であるJPEGにおいても、可逆符号化方式
として予測符号化方式を採用している。
2. Description of the Related Art Conventionally, there is a predictive coding method as one of the image coding methods used in an image coding apparatus. In this predictive coding method, the pixel value of the pixel of interest is predicted from the surrounding pixels, and the prediction error is entropy coded. In this case, some prediction methods are prepared, and these are adaptively selected and used, or when entropy-encoding, divided into several states and entropy-encoded for each state. Various improved schemes based on the scheme have been proposed. It should be noted that even in JPEG, which is the international standard encoding method for natural images, the predictive encoding method is adopted as the lossless encoding method.

【0003】この予測符号化方式での符号化効率を向上
する手法の一つとして、状態分割し、各状態における予
測誤差の平均値を用いて予測値を修正する方法(以降、
これをエラーフィードバックと呼ぶ)がある。この方法
は、例えば、着目画素の画素値をI、着目画素の周囲の
状態をSi、予測値をpとするとき、これまでに状態Si
の発生した回数N(Si)と、状態Siにおける予測誤
差の累加E(Si)を保持しておき、平均予測誤差Em
=E(Si)/N(Si)を求め、p’=p+Emにより
修正予測値p’を求めて、予測誤差e=I−p’を符号
化することで、予測精度を向上させている。
As one of the methods for improving the coding efficiency in this predictive coding method, a method of dividing the state and correcting the predicted value by using the average value of the prediction error in each state (hereinafter,
This is called error feedback). In this method, for example, when the pixel value of the pixel of interest is I, the state around the pixel of interest is Si, and the predicted value is p, the state Si has been changed so far.
The number N (Si) of occurrences of the error and the cumulative addition E (Si) of the prediction error in the state Si are held, and the average prediction error Em
= E (Si) / N (Si) is obtained, the corrected prediction value p'is obtained from p '= p + Em, and the prediction error e = Ip' is encoded to improve the prediction accuracy.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来のエラーフィードバックによる予測符号化方式を用い
た画像符号化装置では、例えば、突発的に大きな予測誤
差が発生した場合、その後フィードバックされる値に大
きな影響が及されるため、エラーフィードバックが効果
的に作用しない場合がある。このため、発生符号量が大
きくなり、画像伝送に際して伝送時間が多くかかること
や、画像を蓄積する際の容量を多く必要とする等の問題
がある。
However, in the image coding apparatus using the above-described conventional error-feedback predictive coding method, for example, when a large prediction error suddenly occurs, the value fed back thereafter becomes large. Error feedback may not work effectively because it is affected. Therefore, the amount of generated code becomes large, there is a problem that it takes a long time to transmit an image, and a large capacity is required to store an image.

【0005】本発明は、上述の課題に鑑みてなされたも
のであり、その目的とするところは、突発的に大きな予
測誤差が発生した場合でもエラーフィードバックを効果
的に作用させ、発生符号量を少なくできる画像符号化装
置及びその方法を提供することである。
The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to make an error feedback effectively act even when a large prediction error suddenly occurs and to reduce the generated code amount. An object of the present invention is to provide an image encoding device and method that can reduce the number of images.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
め、本発明は、着目画素の周囲画素の画素値より求めた
予測値をもとに画像の符号化を行なう画像符号化装置に
おいて、前記周囲画素についての状態値を生成する手段
と、前記生成された状態値の各状態毎に該状態の生起回
数と、該状態において発生した予測誤差に所定の制限を
設けて累加した値とから予測修正値を生成する手段と、
前記予測修正値を用いて前記予測値を修正した修正予測
値を生成する手段と、前記修正予測値と前記着目画素の
画素値とから予測誤差を生成する手段と、前記予測誤差
をエントロピー符号化する手段とを備える。
In order to achieve the above object, the present invention provides an image coding apparatus for coding an image based on a predicted value obtained from pixel values of pixels around a pixel of interest. From means for generating a state value for the surrounding pixels, the number of occurrences of the state for each state of the generated state value, and a value obtained by accumulating a prediction error generated in the state with a predetermined limit. Means for generating a predicted correction value,
Means for generating a modified predicted value obtained by modifying the predicted value using the predicted modified value; means for generating a predicted error from the modified predicted value and the pixel value of the pixel of interest; and entropy coding of the predicted error. And means for doing so.

【0007】[0007]

【発明の実施の形態】以下、添付図面を参照して、本発
明に係る実施の形態を詳細に説明する。 <第1の実施の形態>図1は、本発明の第1の実施の形
態に係る画像符号化装置の構成を示すブロック図であ
る。同図において、101は、信号入力用の信号線、1
02は、2ライン分の画像データ(画像データ系列)を
格納するバッファ、103は、着目画素の周辺画素から
コンテキストを生成するコンテキスト生成回路、104
は、周辺画素から予測値を生成する予測回路、105
は、予測修正値を生成する予測修正値生成回路である。
また、106は加算回路、107は減算回路、108
は、各コンテキスト毎の状態発生回数と累加誤差を格納
するカウンタ回路、109はカウンタ更新回路、110
はハフマン符号化回路、111は、符号化出力信号を出
力するための信号線、112はセレクタ、そして、11
3は、セレクタからの出力信号を出力するための信号線
である。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. <First Embodiment> FIG. 1 is a block diagram showing the arrangement of an image coding apparatus according to the first embodiment of the present invention. In the figure, 101 is a signal line for signal input, 1
Reference numeral 02 is a buffer for storing image data (image data series) for two lines, 103 is a context generation circuit for generating context from peripheral pixels of the pixel of interest, 104
Is a prediction circuit that generates a prediction value from surrounding pixels, 105
Is a prediction correction value generation circuit that generates a prediction correction value.
Further, 106 is an addition circuit, 107 is a subtraction circuit, and 108.
Is a counter circuit for storing the number of state occurrences and cumulative error for each context, 109 is a counter updating circuit, 110
Is a Huffman coding circuit, 111 is a signal line for outputting a coded output signal, 112 is a selector, and 11
Reference numeral 3 is a signal line for outputting an output signal from the selector.

【0008】本実施の形態においては、16値(4ビッ
ト)のモノクロ画像を符号化する場合を例に説明する。
In the present embodiment, a case where a 16-value (4-bit) monochrome image is encoded will be described as an example.

【0009】図1のハフマン符号化回路110には、あ
らかじめ一般的画像での予測誤差の統計に基づいて生成
したハフマンテーブルを構築しておく。また、カウンタ
回路108で保持するデータの全てを‘0’に初期化し
ておく。
The Huffman coding circuit 110 shown in FIG. 1 is preliminarily constructed with a Huffman table generated based on statistics of prediction errors in general images. Further, all the data held by the counter circuit 108 is initialized to "0".

【0010】まず、本装置の外部から信号線101に、
符号化の対象となる画素がラスタスキャン順に入力され
る。バッファ102は、信号線101から入力される信
号を2ライン分格納する。また、コンテキスト生成回路
103は、バッファ102から着目画素の周辺画素a,
b,cを取り出す。
First, from the outside of the device to the signal line 101,
Pixels to be encoded are input in raster scan order. The buffer 102 stores a signal input from the signal line 101 for two lines. In addition, the context generation circuit 103 receives from the buffer 102 the peripheral pixels a,
Take out b and c.

【0011】なお、図2に、着目画素xに対する周辺画
素a,b,cの位置を示す。
Incidentally, FIG. 2 shows the positions of the peripheral pixels a, b and c with respect to the pixel of interest x.

【0012】次に、コンテキスト生成回路103では、
これらの画素を用いて状態番号Sを、 S=a×256+b×16+c …(1) にてを求め、それを出力する。カウンタ回路108で
は、コンテキスト生成回路103から出力される状態番
号Sに応じて、発生回数N(S)と累加誤差E(S)を
取り出し、それらを予測修正値生成回路105とカウン
タ更新回路109へ渡す。予測修正値生成回路105で
は、E(S)/N(S)の演算により予測修正値Cを求
める。ただし、N(S)=0の場合には、C=0とす
る。
Next, in the context generation circuit 103,
Using these pixels, the state number S is obtained by S = a × 256 + b × 16 + c (1) and output. The counter circuit 108 extracts the number of occurrences N (S) and the cumulative error E (S) according to the state number S output from the context generation circuit 103, and outputs them to the prediction correction value generation circuit 105 and the counter update circuit 109. hand over. The prediction correction value generation circuit 105 obtains the prediction correction value C by calculating E (S) / N (S). However, when N (S) = 0, C = 0.

【0013】また、予測回路104も、バッファ102
から周辺画素a,b,cを取り出し、以下の予測式から
予測値pを生成する。
The prediction circuit 104 also includes a buffer 102.
The peripheral pixels a, b, and c are taken out from and the predicted value p is generated from the following prediction formula.

【0014】 p=a+b+c …(2) 加算回路106は、この予測回路104から出力される
予測値pに、予測修正値生成回路105から出力される
Cを加算し、修正予測値p’を生成する。また、減算回
路106は、 e=x−p’ …(3) により予測誤差eを求める。セレクタ112は、この予
測誤差eと一定値Th,−Thの3値を比較して、それ
らの大きさにより順位づけし、2番目に大きな値を選択
して、それを信号線113に出力する。
P = a + b + c (2) The addition circuit 106 adds the C output from the prediction correction value generation circuit 105 to the prediction value p output from the prediction circuit 104 to generate a correction prediction value p ′. To do. Further, the subtraction circuit 106 obtains the prediction error e by e = x-p '... (3). The selector 112 compares the prediction error e with the three values of the constant values Th and −Th, ranks them according to their magnitude, selects the second largest value, and outputs it to the signal line 113. .

【0015】カウンタ更新回路109は、信号線113
からの入力値をE(S)に加える。また、カウンタ更新
回路109は、N(S)の値をインクリメントし、それ
を、あらかじめ定めた値Rと比較して、N(S)=Rな
らば、E(S)とN(S)を1/2にする。そして、こ
のようにして更新したN(S)とE(S)を、カウンタ
回路108に戻す。
The counter updating circuit 109 has a signal line 113.
The input value from is added to E (S). Further, the counter updating circuit 109 increments the value of N (S) and compares it with a predetermined value R. If N (S) = R, E (S) and N (S) are compared. Cut it in half. Then, the N (S) and E (S) thus updated are returned to the counter circuit 108.

【0016】ハフマン符号化回路110は、上述の状態
番号Sに対応するハフマンテーブルを参照し、予測誤差
eをハフマン符号化して、得られた符号を信号線111
に出力する。本実施の形態に係る装置では、上述の処理
を、信号線101より入力される最後の画素まで繰り返
して、所定の符号化を行なう。
The Huffman encoding circuit 110 refers to the Huffman table corresponding to the above-mentioned state number S, Huffman-encodes the prediction error e, and obtains the obtained code on the signal line 111.
Output to In the device according to the present embodiment, the above-described processing is repeated up to the last pixel input from the signal line 101 to perform predetermined encoding.

【0017】以上説明したように、本実施の形態によれ
ば、得られた予測誤差と2つの一定値の計3値を比較、
順位づけし、2番目に大きな値を累加誤差に加えて、更
新した累加誤差と状態発生回数に基づくフィードバック
を行なうことで、効果的なエラーフィードバックを実現
することができ、予測精度を向上させた、発生符号量の
少ない符号化が可能となる。 <第2の実施の形態>図3は、本発明の第2の実施の形
態に係る画像符号化装置の構成を示すブロック図であ
る。同図において、301は、信号入力用の信号線、3
02は、2ライン分の画像データを格納するバッファ、
303は、着目画素の周辺画素値からコンテキストを生
成するコンテキスト生成回路、304は、周辺画素値か
ら着目画素の値を予測する予測回路、305は予測修正
値生成回路、306は加算回路、307は減算回路、3
08はカウンタ回路、309はカウンタ更新回路、31
0はハフマン符号化回路、311は、出力信号用の信号
線、312,313は乗算回路、そして、314,31
5はセレクタである。
As described above, according to the present embodiment, the obtained prediction error is compared with a total of three values of two constant values,
By ranking and adding the second largest value to the cumulative error and performing feedback based on the updated cumulative error and the number of state occurrences, effective error feedback can be realized and the prediction accuracy is improved. It is possible to perform coding with a small amount of generated code. <Second Embodiment> FIG. 3 is a block diagram showing the arrangement of an image coding apparatus according to the second embodiment of the present invention. In the figure, 301 is a signal line for signal input, 3
02 is a buffer for storing image data of 2 lines,
Reference numeral 303 is a context generation circuit that generates a context from the peripheral pixel value of the pixel of interest, 304 is a prediction circuit that predicts the value of the pixel of interest from the peripheral pixel value, 305 is a prediction correction value generation circuit, 306 is an addition circuit, and 307 is Subtraction circuit, 3
08 is a counter circuit, 309 is a counter updating circuit, 31
0 is a Huffman coding circuit, 311 is a signal line for an output signal, 312 and 313 are multiplication circuits, and 314 and 31.
Reference numeral 5 is a selector.

【0018】なお、ここでは、8ビット(0から255
の値)のモノクロ画像を符号化する場合を例に説明す
る。
In this case, 8 bits (0 to 255)
Will be described as an example of encoding a monochrome image of (value).

【0019】図3のハフマン符号化回路310には、図
1に示す上記第1の実施の形態に係る装置におけるのと
同様に、一般的な画像の予測誤差の統計に基づいて生成
したハフマンテーブルを構築しておく。また、カウンタ
回路308で保持するデータの全てを‘0’に初期化し
ておく。
The Huffman encoding circuit 310 of FIG. 3 has a Huffman table generated on the basis of statistics of a general image prediction error, as in the apparatus according to the first embodiment shown in FIG. Build. Further, all the data held by the counter circuit 308 is initialized to "0".

【0020】まず、本装置外部から信号線301に、符
号化対象となる画素値xがラスタスキャン順に入力され
る。バッファ302は、信号線301から入力される信
号を2ライン分格納し、コンテキスト生成回路303
は、着目画素の周辺画素a,b,c,d,eをバッファ
302から取り出して、それらa〜eの平均値mを求め
る。そして、平均値mをしきい値としてa〜eを2値化
し、MSBから順に並べてコンテキストSを生成する。
First, the pixel value x to be encoded is input to the signal line 301 from the outside of the apparatus in the raster scan order. The buffer 302 stores the signal input from the signal line 301 for two lines, and the context generation circuit 303
Extracts the peripheral pixels a, b, c, d, and e of the pixel of interest from the buffer 302 and obtains the average value m of a to e. Then, a to e are binarized by using the average value m as a threshold value, and the context S is generated by arranging in order from the MSB.

【0021】この2値化に際しては、その値が平均値m
より小さければ‘0’、その値がmに等しいか、あるい
は大きければ‘1’とする。このようにして求められた
状態番号Sは、5ビット表現された0〜31の整数値と
なる。
In this binarization, the value is the average value m.
If it is smaller than "0", it is "1" if the value is equal to or larger than m. The state number S thus obtained is an integer value of 0 to 31 represented by 5 bits.

【0022】なお、図4は、本実施の形態における着目
画素xに対する周囲画素a,b,c,d,eの位置を示
した図である。
FIG. 4 is a diagram showing the positions of the surrounding pixels a, b, c, d, and e with respect to the pixel of interest x in the present embodiment.

【0023】図3のカウンタ回路308では、上記のコ
ンテキスト生成回路303から出力される状態番号Sに
応じて、発生回数N(S)と累加誤差E(S)を取り出
し、それらを予測修正値生成回路305とカウンタ更新
回路309へ渡す。予測修正値生成回路305では、E
(S)/N(S)により予測修正値Cを求める。ただ
し、N(S)=0の場合には、C=0とする。
In the counter circuit 308 of FIG. 3, the number of occurrences N (S) and the cumulative error E (S) are taken out in accordance with the state number S output from the context generating circuit 303, and the predicted correction value is generated. It is passed to the circuit 305 and the counter updating circuit 309. In the predicted correction value generation circuit 305, E
The predicted correction value C is obtained by (S) / N (S). However, when N (S) = 0, C = 0.

【0024】また、予測回路304は、バッファ302
から周囲画素a,bを取り出し、以下の予測式から予測
値pを生成する。
The prediction circuit 304 also includes a buffer 302.
The surrounding pixels a and b are taken out from and the prediction value p is generated from the following prediction formula.

【0025】 p=(a+b)/2 …(4) 加算回路306では、予測回路304から出力されるp
に、予測修正値生成回路105から出力されるcを加
え、修正予測値p’を生成する。また、減算回路307
は、 e=x−p’ …(5) により予測誤差eを求める。また、セレクタ315は、
予測値修正回路305から出力されるCの値が‘0’で
ある場合には‘1’を、それが‘0’でない場合にはc
を出力する。
P = (a + b) / 2 (4) In the addition circuit 306, p output from the prediction circuit 304
To the corrected correction value generation circuit 105 to generate a corrected prediction value p ′. Also, the subtraction circuit 307
The prediction error e is obtained by e = x-p '(5). In addition, the selector 315 is
When the value of C output from the predicted value correction circuit 305 is "0", it is "1", and when it is not "0", it is c.
Is output.

【0026】乗算回路312は、セレクタ315の出力
値をn倍(nは任意の整数)する。また、乗算回路31
3は、乗算回路312の乗算結果の符号を反転する。そ
して、セレクタ314は、乗算回路312、乗算回路3
13からの出力と、減算回路307から出力されるeの
3値を、その値の大小で順位づけし、2番目の値を算出
する。
The multiplication circuit 312 multiplies the output value of the selector 315 by n (n is an arbitrary integer). In addition, the multiplication circuit 31
3 inverts the sign of the multiplication result of the multiplication circuit 312. Then, the selector 314 includes the multiplication circuit 312 and the multiplication circuit 3.
The output from 13 and the three values of e output from the subtraction circuit 307 are ranked according to the magnitude of the value to calculate the second value.

【0027】一方、カウンタ更新回路309は、セレク
タ314の出力値をE(S)に加え、また、N(S)を
インクリメントする。次に、N(S)を、あらかじめ定
めた値Rと比較し、N(S)=Rならば、E(S)とN
(S)を1/2にする。そして、このようにして更新し
たN(S)とE(S)を、カウント回路308に戻す。
On the other hand, the counter updating circuit 309 adds the output value of the selector 314 to E (S) and increments N (S). Next, N (S) is compared with a predetermined value R, and if N (S) = R, E (S) and N
(S) is halved. Then, the N (S) and E (S) thus updated are returned to the count circuit 308.

【0028】ハフマン符号化回路310は、上述した、
状態番号Sに対応するハフマンテーブルを参照して、予
測誤差eをハフマン符号化し、得られた符号を信号線3
11に出力する。このように、上記の処理を、信号線3
01に入力される最後の画素まで繰り返し、画像符号化
を行なう。
The Huffman coding circuit 310 is described above.
The prediction error e is Huffman-coded by referring to the Huffman table corresponding to the state number S, and the obtained code is converted into the signal line 3
11 is output. In this way, the above processing is performed by the signal line 3
The image coding is repeated until the last pixel input to 01.

【0029】このように、本実施の形態においても、予
測値修正回路からの出力を乗算して得られた値をもとに
累加誤差と状態発生回数を更新し、フィードバック制御
を行なうことで、効果的なエラーフィードバックを実現
できる。
As described above, also in this embodiment, the cumulative error and the number of state occurrences are updated based on the value obtained by multiplying the output from the predicted value correction circuit, and the feedback control is performed. Effective error feedback can be realized.

【0030】なお、本発明は、上述した実施の形態に限
定されるものではなく、例えば、着目画素値の予測方法
として、単純に前値予測を用いても良いし、いくつかの
予測方法を用意して、それを適時、切り替えるようにし
ても構わない。
The present invention is not limited to the above-described embodiment, and for example, as the prediction method of the pixel value of interest, the previous value prediction may be simply used, or some prediction methods may be used. You may prepare and switch it at a suitable time.

【0031】また、上述の実施の形態では、エントロピ
ー符号化の手段としてハフマン符号化を用いているが、
算術符号等、他のエントロピー符号化方式を用いてもよ
い。本発明は、複数の機器(例えば、ホストコンピュー
タ,インタフェイス機器,リーダ,プリンタ等)から構
成されるシステムに適用しても、一つの機器からなる装
置(例えば、複写機,ファクシミリ装置など)に適用し
てもよい。
In the above embodiment, Huffman coding is used as a means for entropy coding.
Other entropy coding schemes such as arithmetic coding may be used. Even when the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), it can be applied to an apparatus including one device (for example, a copying machine, a facsimile device, etc.). You may apply.

【0032】また、本発明の目的は、上述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(または、CP
UやMPU)が記憶媒体に格納されたプログラムコード
を読み出し、実行することによっても達成されることは
言うまでもない。
Further, an object of the present invention is to supply a storage medium having a program code of software for realizing the functions of the above-described embodiment to a system or apparatus, and to supply a computer (or CP) of the system or apparatus.
U and MPU) read out and execute the program code stored in the storage medium.

【0033】この場合、記憶媒体から読出されたプログ
ラムコード自体が、上述した実施形態の機能を実現する
ことになり、そのプログラムコードを記憶した記憶媒体
は本発明を構成することになる。プログラムコードを供
給するための記憶媒体としては、例えば、フロッピディ
スク,ハードディスク,光ディスク,光磁気ディスク,
CD−ROM,CD−R,磁気テープ,不揮発性のメモ
リカード,ROM等を用いることができる。
In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk,
A CD-ROM, CD-R, magnetic tape, non-volatile memory card, ROM or the like can be used.

【0034】また、コンピュータが読み出したプログラ
ムコードを実行することにより、上述した実施形態の機
能が実現されるだけでなく、そのプログラムコードの指
示に基づき、コンピュータ上で稼働しているOS(オペ
レーティングシステム)等が実際の処理の一部または全
部を行ない、その処理によって、上述した実施形態の機
能が実現される場合も含まれることは言うまでもない。
Moreover, not only the functions of the above-described embodiments are realized by executing the program code read by the computer, but also the OS (operating system) running on the computer based on the instructions of the program code. It goes without saying that this also includes the case where the above) performs a part or all of the actual processing and the processing realizes the functions of the above-described embodiments.

【0035】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張ボー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書込まれた後、そのプログラムコードの指示
に基づき、その機能拡張ボードや機能拡張ユニットに備
わるCPU等が実際の処理の一部または全部を行ない、
その処理によって、上述した実施形態の機能が実現され
る場合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written in the memory provided in the function expansion board inserted into the computer or the function expansion unit connected to the computer, based on the instruction of the program code. , The CPU provided in the function expansion board or the function expansion unit performs some or all of the actual processing,
It goes without saying that the processing may realize the functions of the above-described embodiments.

【0036】[0036]

【発明の効果】以上説明したように、本発明によれば、
周囲画素について生成された状態値の生起回数と、該状
態において発生した予測誤差に所定の制限を設けて累加
した値とから得られた予測修正値を用いて予測値を修正
することで、突発的に大きな予測誤差が生じるような場
合でも、効果的なエラーフィードバックを実現すること
ができ、画像符号化効率を上げることが可能となる。
As described above, according to the present invention,
The prediction value is corrected by using the prediction correction value obtained from the number of occurrences of the state value generated for the surrounding pixels and the value obtained by cumulatively adding a predetermined limit to the prediction error that has occurred in the state. Even if a large prediction error occurs, effective error feedback can be realized and the image coding efficiency can be improved.

【0037】[0037]

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

【図1】本発明の第1の実施の形態に係る画像符号化装
置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an image encoding device according to a first embodiment of the present invention.

【図2】第1の実施の形態における着目画素と周辺画素
の位置関係を示す図である。
FIG. 2 is a diagram showing a positional relationship between a pixel of interest and peripheral pixels in the first embodiment.

【図3】第2の実施の形態に係る装置の構成を示すブロ
ック図である。
FIG. 3 is a block diagram showing a configuration of an apparatus according to a second embodiment.

【図4】第2の実施の形態における着目画素と周辺画素
の位置関係を示す図である。
FIG. 4 is a diagram showing a positional relationship between a pixel of interest and peripheral pixels according to the second embodiment.

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

101,111,113,301,311 信号線 102,302 バッファ 103,303 コンテキスト生成回路 104,304 予測回路 105,305 予測修正値生成回路 106,306 加算回路 107,307 減算回路 108,308 カウンタ回路 109,309 カウンタ更新回路 110,310 ハフマン符号化回路 112,314,315 セレクタ 312,313 乗算器 101, 111, 113, 301, 311 Signal line 102, 302 Buffer 103, 303 Context generation circuit 104, 304 Prediction circuit 105, 305 Prediction correction value generation circuit 106, 306 Addition circuit 107, 307 Subtraction circuit 108, 308 Counter circuit 109 , 309 Counter updating circuit 110, 310 Huffman coding circuit 112, 314, 315 Selector 312, 313 Multiplier

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 着目画素の周囲画素の画素値より求めた
予測値をもとに画像の符号化を行なう画像符号化装置に
おいて、 前記周囲画素についての状態値を生成する手段と、 前記生成された状態値の各状態毎に該状態の生起回数
と、該状態において発生した予測誤差に所定の制限を設
けて累加した値とから予測修正値を生成する手段と、 前記予測修正値を用いて前記予測値を修正した修正予測
値を生成する手段と、 前記修正予測値と前記着目画素の画素値とから予測誤差
を生成する手段と、 前記予測誤差をエントロピー符号化する手段とを備える
ことを特徴とする画像符号化装置。
1. An image coding apparatus for coding an image based on a predicted value obtained from pixel values of surrounding pixels of a pixel of interest, said means for generating a state value for said surrounding pixels, and said generating means. Means for generating a prediction correction value from the number of occurrences of the state for each state of the state value and a value obtained by cumulatively adding a predetermined limit to the prediction error generated in the state, and using the prediction correction value A means for generating a modified prediction value obtained by modifying the prediction value; a means for generating a prediction error from the modified prediction value and the pixel value of the pixel of interest; and means for entropy coding the prediction error. A characteristic image encoding device.
【請求項2】 前記所定の制限は、あらかじめ設定した
上限値と下限値による、前記発生した予測誤差の累加の
制限であることを特徴とする請求項1に記載の画像符号
化装置。
2. The image coding apparatus according to claim 1, wherein the predetermined limit is a limit of cumulative addition of the generated prediction error according to a preset upper limit value and a lower limit value.
【請求項3】 前記上限値及び下限値として前記予測修
正値を使用することを特徴とする請求項2に記載の画像
符号化装置。
3. The image coding apparatus according to claim 2, wherein the prediction correction value is used as the upper limit value and the lower limit value.
【請求項4】 前記エントロピー符号化には、少なくと
もハフマン符号化、算術符号化が含まれることを特徴と
する請求項1に記載の画像符号化装置。
4. The image coding apparatus according to claim 1, wherein the entropy coding includes at least Huffman coding and arithmetic coding.
【請求項5】 着目画素の周囲画素の画素値より求めた
予測値をもとに画像の符号化を行なう画像符号化方法に
おいて、 前記周囲画素についての状態値を生成する工程と、 前記生成された状態値の各状態毎に該状態の生起回数
と、該状態において発生した予測誤差に所定の制限を設
けて累加した値とから予測修正値を生成する工程と、 前記予測修正値を用いて前記予測値を修正した修正予測
値を生成する工程と、 前記修正予測値と前記着目画素の画素値とから予測誤差
を生成する工程と、 前記予測誤差をエントロピー符号化する工程とを備える
ことを特徴とする画像符号化方法。
5. An image encoding method for encoding an image based on a prediction value obtained from pixel values of pixels surrounding a pixel of interest, the step of generating a state value for the surrounding pixels, Generating a predicted correction value from the number of occurrences of the state for each state of the state value and a value obtained by cumulatively adding a predetermined limit to the prediction error generated in the state, and using the predicted correction value A step of generating a modified predicted value in which the predicted value is modified, a step of generating a predicted error from the modified predicted value and a pixel value of the pixel of interest, and a step of entropy coding the predicted error. Characteristic image coding method.
【請求項6】 予測値と符号化対象画素値を用いて予測
誤差を発生する予測誤差発生手段と、 前記予測誤差の値を制御する制御手段と、 前記制御手段により制御された予測誤差に基づいて予測
値を修正する修正手段とを備えることを特徴とする画像
符号化装置。
6. A prediction error generating unit that generates a prediction error using a prediction value and a pixel value to be encoded, a control unit that controls the value of the prediction error, and a prediction error that is controlled by the control unit. And a correcting means for correcting the predicted value.
【請求項7】 前記修正手段による修正は、前記制御手
段により制御された複数の予測誤差に基づいて行なわれ
ることを特徴とする請求項6に記載の画像符号化装置。
7. The image coding apparatus according to claim 6, wherein the correction by the correction unit is performed based on a plurality of prediction errors controlled by the control unit.
【請求項8】 予測値と符号化対象画素値を用いて予測
誤差を発生する工程と、 前記予測誤差の値を制御し、該制御された予測誤差に基
づいて予測値を修正する工程とを備えることを特徴とす
る画像符号化方法。
8. A step of generating a prediction error using the prediction value and a pixel value to be encoded, and a step of controlling the value of the prediction error and correcting the prediction value based on the controlled prediction error. An image coding method comprising:
JP10171096A 1996-04-23 1996-04-23 Image encoding device and method therefor Withdrawn JPH09289643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10171096A JPH09289643A (en) 1996-04-23 1996-04-23 Image encoding device and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10171096A JPH09289643A (en) 1996-04-23 1996-04-23 Image encoding device and method therefor

Publications (1)

Publication Number Publication Date
JPH09289643A true JPH09289643A (en) 1997-11-04

Family

ID=14307870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10171096A Withdrawn JPH09289643A (en) 1996-04-23 1996-04-23 Image encoding device and method therefor

Country Status (1)

Country Link
JP (1) JPH09289643A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011151655A (en) * 2010-01-22 2011-08-04 Mitsubishi Electric Corp Apparatus, method and program for encoding of moving picture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011151655A (en) * 2010-01-22 2011-08-04 Mitsubishi Electric Corp Apparatus, method and program for encoding of moving picture

Similar Documents

Publication Publication Date Title
US6233355B1 (en) Encoding apparatus and method and storage medium
US6560365B1 (en) Decoding apparatus and method
EP0772364B1 (en) Image processing apparatus and method
US6549676B1 (en) Encoding device
USRE39984E1 (en) Image encoding based on judgement on prediction error
US6049330A (en) Method and apparatus for optimizing storage of compressed images in memory
JP3694999B2 (en) Image encoding apparatus, image decoding apparatus, and methods thereof
JP3787389B2 (en) Image processing apparatus and method, and storage medium storing the method
JPH09289643A (en) Image encoding device and method therefor
JP3302862B2 (en) Color image signal compression method, image encoding / decoding device, and image processing system
JPH104557A (en) Unit, and method for image processing and storage medium storing the method
JP3170312B2 (en) Image processing device
US6069980A (en) Adaptive character image generation and synthesis
US20070279694A1 (en) Halftoning apparatus and method
US8385664B2 (en) Method for progressive JPEG image decoding
JP2006254432A (en) Digital image data-processing method for processing digital image data
JP3943634B2 (en) Information processing apparatus and method
JPH0918350A (en) Coding/decoding device and coding/decoding method
JP3235510B2 (en) Encoding method and encoding device, decoding method and decoding device
JPH0531974A (en) Image processing device
JPH0937261A (en) Coding system and coder
JPH0537790A (en) Picture processing unit
JP2000333020A (en) Binary image coding method, binary image coder and recording medium
JPH11112355A (en) Method and device for encoding and decoding, and image processor applied with same
JP2003009151A (en) Device and method for image processing, recording medium and program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030701