JPH08298599A - Image encoding method and device therefor - Google Patents

Image encoding method and device therefor

Info

Publication number
JPH08298599A
JPH08298599A JP7101976A JP10197695A JPH08298599A JP H08298599 A JPH08298599 A JP H08298599A JP 7101976 A JP7101976 A JP 7101976A JP 10197695 A JP10197695 A JP 10197695A JP H08298599 A JPH08298599 A JP H08298599A
Authority
JP
Japan
Prior art keywords
pixel
interest
difference
encoding
density
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
JP7101976A
Other languages
Japanese (ja)
Other versions
JP3432039B2 (en
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 JP10197695A priority Critical patent/JP3432039B2/en
Priority to US08/635,521 priority patent/US6031938A/en
Publication of JPH08298599A publication Critical patent/JPH08298599A/en
Application granted granted Critical
Publication of JP3432039B2 publication Critical patent/JP3432039B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related 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

PURPOSE: To realize an image encoding method and device therefor by which high encoding efficiency can be obtained. CONSTITUTION: The picture element in the vicinity of the noticed picture element x of image data is defined as a specified picture element a and the differences (b-a), (c-a) of the density values of the peripheral picture elements b and c of the noticed picture element x and the specified picture element a are determined. The sizes of the differences (b-a), (c-a) and a prescribed value (Th1) are compared (S3). When either one of the differences (b-a), (c-a) is below the prescribed value (Th1), a Markob model encoding is performed for the density difference (x-a) based on the density difference (x-a) of the noticed picture element and the specified picture element and the differences (b-a), (c-a) (S4). When both of the differences (b-a), (c-a) are more than the prescribed value (Th1), a a predictive encoding is performed for the noticed picture element x based on the error of the density average (a+b)/2} of the specified picture element a and the peripheral picture element b and the density value of the noticed picture element x (S5).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、可逆符号化により画像
データを符号化する画像符号化方法及びその装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding method and apparatus for encoding image data by lossless encoding.

【0002】[0002]

【従来の技術】従来、画像の可逆符号化方式として、マ
ルコフモデル符号化法、予測符号化法が知られている。
この内、マルコフモデル符号化は、画像を着目画素の周
辺m画素(参照画素)の状態によって、その着目画素の
輝度値が決まるm重マルコフ情報源としてモデル化し、
周辺m画素の状態毎に別々のエントロピー符号化法(ハ
フマン符号、算術符号など)を用いて符号化する方式で
あり、高い符号化効率が期待できる。
2. Description of the Related Art Conventionally, Markov model coding method and predictive coding method are known as lossless coding methods for images.
Among them, the Markov model encoding models an image as an m-fold Markov information source in which the luminance value of the pixel of interest is determined by the state of m pixels (reference pixels) around the pixel of interest,
This is a method of encoding using a different entropy encoding method (Huffman code, arithmetic code, etc.) for each state of peripheral m pixels, and high encoding efficiency can be expected.

【0003】また予測符号化法は、着目画素の周辺画素
等から着目画素の画素値を予測し、予測画素値と実際の
画素値との差分をエントロピー符号化する方式である。
この予測符号化は、処理が比較的簡単な方式である。
The predictive coding method is a method of predicting a pixel value of a pixel of interest from peripheral pixels of the pixel of interest and entropy coding the difference between the predicted pixel value and the actual pixel value.
This predictive coding is a method whose processing is relatively simple.

【0004】[0004]

【発明が解決しようとする課題】上述したマルコフモデ
ル符号化では、各状態ごとにシンボルの出現確率を示し
たマルコフテーブルを生成する必要があり、階調数の多
い画像に適用する場合には、このマルコフテーブルの大
きさが問題となる。例えば、256階調の画像データに
ついてn画素参照のマルコフモデル符号化を行う場合に
は、状態数は256のn乗となる。ここでエントロピー
を低くするためには、参照画素の数nを大きくしなけれ
ばならないが、この参照画素数nを大きくすると状態数
は幾何級数的に増大するため、実現困難となる。このた
め、出現数の少ない状態をまとめて1つの状態とした
り、シンボルの出現確率分布の似ている状態を一纏めに
するなどにより状態数を減縮することが一般的である
が、このための煩雑な処理が必要となるといった欠点が
ある。
In the above-described Markov model coding, it is necessary to generate a Markov table showing the appearance probability of the symbol for each state, and when applied to an image with a large number of gradations, The size of this Markov table is a problem. For example, in the case of performing n-pixel reference Markov model coding on image data of 256 gradations, the number of states is 256 to the n-th power. Here, in order to reduce the entropy, it is necessary to increase the number n of reference pixels, but when the number n of reference pixels is increased, the number of states increases geometrically, which is difficult to realize. Therefore, it is common to reduce the number of states by grouping the states with a small number of appearances into one state, or by grouping the states having similar appearance probability distributions of symbols, but this is complicated. However, there is a drawback in that various types of processing are required.

【0005】一方、予測符号化は、処理が簡単な反面、
高い符号化効率が得られないといった欠点がある。
On the other hand, while predictive coding is easy to process,
There is a drawback that high encoding efficiency cannot be obtained.

【0006】本発明は上記従来例に鑑みてなされたもの
で、高い符号化効率が得られる画像符号化方法及びその
装置を提供することを目的とする。
The present invention has been made in view of the above-mentioned conventional example, and an object of the present invention is to provide an image coding method and an apparatus therefor which can obtain high coding efficiency.

【0007】また本発明の他の目的は、マルコフ符号化
と予測符号化とを併用して、効率良く画像データを符号
化できる画像符号化方法及びその装置を提供することに
ある。
Another object of the present invention is to provide an image coding method and apparatus for efficiently coding image data by using both Markov coding and predictive coding.

【0008】また本発明の他の目的は、マルコフモデル
符号化のためのテーブルの規模を小さくできる画像符号
化方法及びその装置を提供することにある。
Another object of the present invention is to provide an image coding method and apparatus which can reduce the scale of a table for Markov model coding.

【0009】[0009]

【課題を解決しようとする手段】上記目的を達成するた
めに本発明の画像符号化方法は以下のような工程を備え
る。即ち、画像データを符号化する画像符号化方法であ
って、画像データの着目画素近傍の画素を特定画素と
し、当該着目画素の周辺画素と前記特定画素の濃度値の
差分を求める工程と、前記差分が所定値以下の時、前記
着目画素と前記特定画素の濃度差と前記差分とに基づい
て前記濃度差をマルコフモデル符号化する工程と、前記
差分が前記所定値以上の時、前記特定画素と前記周辺画
素の濃度平均と前記着目画素の濃度値に基づいて前記着
目画素を予測符号化する工程とを有する。
In order to achieve the above object, the image coding method of the present invention comprises the following steps. That is, an image encoding method for encoding image data, wherein a pixel in the vicinity of a target pixel of the image data is set as a specific pixel, and a difference between density values of the peripheral pixel of the target pixel and the specific pixel is calculated, When the difference is less than or equal to a predetermined value, a step of Markov model coding the density difference based on the density difference between the pixel of interest and the specific pixel and the difference; and when the difference is equal to or more than the predetermined value, the specific pixel And a step of predictively encoding the pixel of interest based on the average density of the peripheral pixels and the density value of the pixel of interest.

【0010】また上記目的を達成するために本発明の画
像符号化装置は以下のような構成を備える。即ち、画像
データを符号化する画像符号化装置であって、画像デー
タの着目画素と該着目画素近傍の画素及び前記注目画素
の周辺画素をそれぞれ特定画素及び参照画素として抽出
する抽出手段と、前記周辺画素と前記特定画素の濃度値
の差分を求める演算手段と、前記差分と所定値とを比較
する比較手段と、前記着目画素と前記特定画素の濃度差
と前記差分とに基づいて前記濃度差をマルコフモデル符
号化するマルコフモデル符号化手段と、前記特定画素と
前記周辺画素の濃度平均と前記着目画素の濃度値に基づ
いて前記着目画素を予測符号化する予測符号化手段と、
前記比較手段による比較結果に応じて、前記マルコフモ
デル符号化手段と前記予測符号化手段のいずれかを用い
て前記着目画素を符号化する選択手段とを有する。
In order to achieve the above object, the image coding apparatus of the present invention has the following configuration. That is, an image encoding device that encodes image data, and an extracting unit that extracts a pixel of interest of the image data, a pixel in the vicinity of the pixel of interest, and peripheral pixels of the pixel of interest as a specific pixel and a reference pixel, respectively. Calculation means for obtaining the difference in density value between the peripheral pixel and the specific pixel, comparison means for comparing the difference with a predetermined value, the density difference based on the density difference between the pixel of interest and the specific pixel and the difference A Markov model coding means for coding a Markov model, and a predictive coding means for predictively coding the pixel of interest based on the density average of the specific pixel and the peripheral pixel and the density value of the pixel of interest,
According to the comparison result by the comparison means, there is a selection means for coding the pixel of interest by using one of the Markov model coding means and the prediction coding means.

【0011】[0011]

【作用】以上の構成において、画像データの着目画素と
該着目画素近傍の画素及び前記注目画素の周辺画素をそ
れぞれ特定画素及び参照画素として抽出し、前記周辺画
素と前記特定画素の濃度値の差分を求め、その差分と所
定値とを比較する。その比較結果に応じて、前記着目画
素と前記特定画素の濃度差と前記差分とに基づいて前記
濃度差をマルコフモデル符号化するか、前記特定画素と
前記周辺画素の濃度平均と前記着目画素の濃度値に基づ
いて前記着目画素を予測符号化するかを選択して、前記
着目画素を符号化するように動作する。
In the above structure, the pixel of interest of the image data, the pixel in the vicinity of the pixel of interest, and the peripheral pixels of the pixel of interest are extracted as the specific pixel and the reference pixel, respectively, and the difference between the density values of the peripheral pixel and the specific pixel is extracted. And the difference is compared with a predetermined value. Depending on the comparison result, the density difference between the pixel of interest and the specific pixel and the difference based on the difference are Markov model coded, or the average density of the specific pixel and the peripheral pixel and the pixel of interest. Based on the density value, it is selected whether the target pixel is to be predictively coded, and the target pixel is operated to be coded.

【0012】[0012]

【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。尚、本実施例では、符号化対象
画像として16値のモノクロ画像を例に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will now be described in detail with reference to the accompanying drawings. In the present embodiment, a 16-value monochrome image will be described as an image to be encoded.

【0013】[第1実施例]図2は、本実施例における
画素の位置関係を示す図である。図2において、xは符
号化対象となる着目画素の位置を表わし、aは特定画素
を、b,cは参照画素の位置を表わしている。
[First Embodiment] FIG. 2 is a diagram showing the positional relationship of pixels in the present embodiment. In FIG. 2, x represents the position of a pixel of interest to be encoded, a represents a specific pixel, and b and c represent positions of reference pixels.

【0014】図1は、本実施例における処理の流れを示
すフローチャートで、以下、図2及びこのフローチャー
トを参照して本実施例の動作を説明する。
FIG. 1 is a flow chart showing the flow of processing in this embodiment. The operation of this embodiment will be described below with reference to FIG. 2 and this flow chart.

【0015】図1において、まずステップS1で、符号
化対象の画像データより着目画素値xと特定画素値a、
参照画素値b,cとを取り出し、ステップS2で、参照
画素値b,cのそれぞれと特定画素値aとの差分値(b
−a),(c−a)を求める。次にステップS3に進
み、差分値(b−a),(c−a)の大きさをそれぞれ
閾値Th1と比較する。そして差分値(b−a),(c
−a)の大きさのいずれかが閾値Th1に等しいか或は
それよりも大きい時はステップS5に進み、(a+b)
/2を予測値として着目画素を予測符号化する。一方、
ステップS3で、差分値(b−a),(c−a)のいず
れもが閾値Th1よりも小さい時はステップS4に進
み、差分値(x−a)をマルコフモデル符号化する。そ
してステップS4或はステップS5の処理が終了すると
ステップS6に進み、その着目している画素が符号化対
象画像の最後の画素かどうかを判別し、そうでない時は
ステップS1の処理に戻る。
In FIG. 1, first, in step S1, a pixel value x of interest and a specific pixel value a of the image data to be encoded,
The reference pixel values b and c are extracted, and in step S2, the difference value (b between the reference pixel values b and c and the specific pixel value a (b
-A) and (c-a) are calculated. Next, in step S3, the magnitudes of the difference values (ba) and (c-a) are compared with the threshold value Th1. Then, the difference values (ba), (c
If any of the magnitudes of −a) is equal to or larger than the threshold value Th1, the process proceeds to step S5, (a + b).
The pixel of interest is predictively coded with / 2 as the prediction value. on the other hand,
When both the difference values (ba) and (ca) are smaller than the threshold value Th1 in step S3, the process proceeds to step S4, and the difference value (x-a) is Markov model encoded. When the process of step S4 or step S5 is completed, the process proceeds to step S6, and it is determined whether or not the pixel of interest is the last pixel of the image to be encoded. If not, the process returns to step S1.

【0016】図3は、図1のステップS5で用いる符号
テーブルの概略を示す図、図4はステップS4で用いる
マルコフテーブルの概略を示す図である。
FIG. 3 is a diagram showing an outline of the code table used in step S5 of FIG. 1, and FIG. 4 is a diagram showing an outline of the Markov table used in step S4.

【0017】図3は、差分値(b−a),(c−a)の
大きさが閾値Th1を越える場合に(a+b)/2を予
測値とした予測値差分値の出現確率に応じて符号割り当
てを行う場合を示している。
FIG. 3 shows that, when the magnitudes of the difference values (ba) and (ca) exceed the threshold value Th1, the probability of occurrence of the difference value of the predicted value with (a + b) / 2 as the predicted value is shown. The case where code allocation is performed is shown.

【0018】図4は、差分値(b−a),(c−a)の
各大きさが閾値Th1を越えない場合に、差分値(b−
a),(c−a)の組合わせにより分けられる各状態で
の差分値(x−a)の出現確率に応じて符号割り当てを
行う場合を示している。
FIG. 4 shows that when the magnitudes of the difference values (b-a) and (c-a) do not exceed the threshold value Th1, the difference value (b-
The case where code allocation is performed according to the appearance probability of the difference value (x-a) in each state divided by the combination of (a) and (c-a) is shown.

【0019】これらのテーブルは、符号化処理前に符号
化対象画像をプリスキャンし、その画素値の統計をと
り、それを基にハフマン符号を作成しても良く、或は予
め数種類の画像から統計をとり、それを基に汎用のテー
ブルを決定し、それを用いても良い。
In these tables, the image to be encoded may be pre-scanned before the encoding process, statistics of the pixel values thereof may be taken, and a Huffman code may be created based on the statistics, or from several types of images in advance. Alternatively, a general-purpose table may be determined based on the statistics and used.

【0020】ここでの画像の符号化処理は、ラスタスキ
ャン順に画素毎に行なわれる。まず前述のステップS1
で、着目画素xとその直前の画素a、参照画素b,cの
値を取り出す。次にステップS2で、参照画素b,cと
画素aの差分値(b−a),(c−a)を求める。次に
ステップS3に進み、ステップS2で求めた差分値(b
−a)と(c−a)の各大きさを調べ、両方とも閾値T
h1(例えば3)未満ならばステップS4へ、また、少
なくとも一方が閾値以上ならばステップS5へ処理を移
す。ステップS5では、{(a+b)/2}を予測値と
し、予測差分値{x−(a+b)/2}を図3に示す符
号テーブルに従って符号化して出力し、ステップS6
で、着目画素が画像の最後の画素であるかを調べ、最後
の場合には処理を終了し、そうでない場合には次の画素
についてステップS1からの処理を実行する。
The image coding process here is performed for each pixel in raster scan order. First, the above step S1
Then, the values of the pixel of interest x, the pixel a immediately before it, and the reference pixels b and c are extracted. Next, in step S2, the difference values (ba) and (ca) between the reference pixels b and c and the pixel a are obtained. Next, in step S3, the difference value (b
-A) and (c-a) are examined, and both are set to the threshold T
If it is less than h1 (for example, 3), the process proceeds to step S4, and if at least one is greater than or equal to the threshold value, the process proceeds to step S5. In step S5, {(a + b) / 2} is used as a prediction value, and the prediction difference value {x- (a + b) / 2} is encoded and output according to the code table shown in FIG. 3, and step S6
Then, it is checked whether or not the pixel of interest is the last pixel of the image, and if it is the last pixel, the process is ended. If not, the process from step S1 is executed for the next pixel.

【0021】またステップS4では、差分値(b−
a),(c−a)により状態分割し、図4のマルコフテ
ーブルを用いて差分値(x−a)を符号化し、出力す
る。そしてステップS6で、その着目画素が画像の最後
の画素であるかを調べ、最後の画素の場合は符号化処理
を終了し、最後でない場合には、次の画素についてステ
ップS1からの処理を実行する。
In step S4, the difference value (b-
The states are divided by a) and (c-a), and the difference value (x-a) is encoded using the Markov table of FIG. 4 and output. Then, in step S6, it is checked whether or not the pixel of interest is the last pixel of the image, and if it is the last pixel, the encoding process is ended. If it is not the last pixel, the process from step S1 is executed for the next pixel. To do.

【0022】本実施例のマルコフテーブルの規模は、図
4からも明らかなように(5×5×31)であり、予測
符号化のために必要となる符号テーブル(図3)の規模
を含めても、従来方式でa,b,cの3画素参照のマル
コフモデル符号化を行う場合のマルコフテーブルの規
模、即ち、16の4乗に比べて極めて小さくできる。ま
た、このようにテーブルの規模を小さくできるにもかか
わらず、符号化効率の低下は僅かとなることが期待でき
る。
The scale of the Markov table of this embodiment is (5 × 5 × 31), as is apparent from FIG. 4, and includes the scale of the code table (FIG. 3) required for predictive coding. However, the size of the Markov table in the case of performing the Markov model coding with reference to the three pixels of a, b, and c by the conventional method can be made extremely smaller than the size of the Markov table, that is, 16 4 Further, although the table size can be reduced in this way, it can be expected that the reduction in coding efficiency will be slight.

【0023】[第2実施例]図5に本発明にかかる第2
実施例の処理の流れを示すフローチャートで、本実施例
では符号化対象画像を16値のモノクロ画像とし、画素
の位置関係は前述の第1実施例と同様であるものとす
る。
[Second Embodiment] FIG. 5 shows a second embodiment of the present invention.
In the present embodiment, it is assumed that the image to be encoded is a 16-value monochrome image and the positional relationship of pixels is the same as that in the first embodiment.

【0024】図5において、ステップS11は着目画素
xと、その直前の画素a、参照画素b,cの値を画像か
ら取り出すステップ、ステップS12は参照画素b,c
と特定画素aとの差分値(b−a),(c−a)を求め
るステップである。ステップS13は、差分値(b−
a),(c−a)の各大きさを調べ、閾値Th1と比較
するステップ、ステップS14は、差分値(b−a),
(c−a)の大きさのいずれかが閾値Th1を越える時
に、{(a+b)/2}を予測値として着目画素値xを
予測符号化するステップである。ステップS15は、差
分値(x−a)の大きさと閾値Th2とを比較するステ
ップで、ステップS16は、差分値(x−a)が閾値T
h2を越えない時に差分値(x−a)をマルコフモデル
符号化するステップである。ステップS17は、差分値
(x−a)の大きさが閾値Th2を越える時に差分値
(x−a)がマルコフテーブル内に含まれない値である
ことを示すOBコードをマルコフモデル符号化するステ
ップである。またステップS18は、aを予測値として
着目画素値xを予測符号化するステップ、ステップS1
9は、着目画素aが画像の最後の画素であるかを判定す
るステップである。
In FIG. 5, step S11 is a step of extracting from the image the value of the pixel of interest x and the pixels a and reference pixels b and c immediately before it, and step S12 is the reference pixels b and c.
Is a step of obtaining the difference values (b-a) and (c-a) between the pixel and the specific pixel a. In step S13, the difference value (b-
a) and (c-a) are examined and compared with the threshold value Th1, step S14 is the difference value (ba),
This is a step of predictively encoding the pixel value x of interest with {(a + b) / 2} as a prediction value when any of the magnitudes of (c−a) exceeds the threshold Th1. Step S15 is a step of comparing the magnitude of the difference value (x-a) with the threshold value Th2, and step S16 is the step of comparing the difference value (x-a) with the threshold value T.
This is a step of performing Markov model coding of the difference value (x-a) when h2 is not exceeded. The step S17 is a step of Markov model coding an OB code indicating that the difference value (x-a) is not included in the Markov table when the magnitude of the difference value (x-a) exceeds the threshold Th2. Is. Further, step S18 is a step of predictively encoding the pixel value x of interest with a being a prediction value, step S1.
Step 9 is a step of determining whether or not the pixel of interest a is the last pixel of the image.

【0025】図3はステップS14で用いる符号テーブ
ルの例を示す図、図6は、ステップS16及びS17で
用いるマルコフテーブルの例を示す図、また、図7はス
テップS18で用いる符号テーブルの例を示す図であ
る。
FIG. 3 is a diagram showing an example of the code table used in step S14, FIG. 6 is a diagram showing an example of the Markov table used in steps S16 and S17, and FIG. 7 is an example of the code table used in step S18. FIG.

【0026】図3は、差分値(b−a),(c−a)の
大きさが閾値Th1を越える場合に{(a+b)/2}
を予測値とした予測差分値の出現確率に応じて符号割り
当てを行う場合を示している。
FIG. 3 shows that when the difference values (b-a) and (c-a) exceed the threshold value Th1, {(a + b) / 2}.
It shows a case where the code is assigned according to the appearance probability of the prediction difference value with the prediction value as.

【0027】図6は、差分値(b−a),(c−a)の
大きさが閾値Th1を越えない場合に、差分値(b−
a),(c−a)の組合わせにより分けられる各状態で
の差分値(x−a)の出現確率に応じて符号割り当てを
行う場合を示している。
FIG. 6 shows that when the magnitudes of the difference values (ba) and (c-a) do not exceed the threshold value Th1, the difference value (b-
The case where code allocation is performed according to the appearance probability of the difference value (x-a) in each state divided by the combination of (a) and (c-a) is shown.

【0028】また、図7は、差分値(b−a),(c−
a)の大きさが閾値Th1を越えず、かつ、差分値(x
−a)の大きさが閾値Th2を越える場合に、差分値
(x−a)の出現確率に応じて符号割り当てを行う場合
を示している。
Further, FIG. 7 shows the difference values (b-a), (c-
a) does not exceed the threshold Th1 and the difference value (x
When the magnitude of −a) exceeds the threshold Th2, the code assignment is performed according to the appearance probability of the difference value (x−a).

【0029】尚、この第2実施例では、前述の第1実施
例の場合と同様に、これらのテーブルは符号化処理前に
画像をプリスキャンして統計をとり、ハフマン符号を割
り当てることにより生成しても良いし、予め数種類の画
像から統計を取って汎用の符号テーブルを決定してお
き、それを用いても良い。
In the second embodiment, as in the case of the first embodiment described above, these tables are generated by prescanning the image before the encoding process to obtain statistics and assign the Huffman code. Alternatively, a general-purpose code table may be determined in advance by collecting statistics from several types of images and then used.

【0030】次に図5のフローチャートを参照して第2
実施例の動作を説明する。
Next, referring to the flowchart of FIG.
The operation of the embodiment will be described.

【0031】画像の符号化処理は、ラスタスキャン順に
画素ごとに行ない、まずステップS11で、着目画素x
とその直前の画素a、参照画素値b,cを符号化対象画
像から取り出す。次にステップS12に進み、参照画素
b,cと画素aの差分値(b−a),(c−a)を求め
る。次にステップS13に進み、ステップS12で求め
た差分値(b−a)と(c−a)の大きさを調べ、これ
らのいずれかが閾値Th1(例えば3)未満ならばステ
ップS15へ、そうでない時はステップS14に進む。
The image encoding process is performed for each pixel in raster scan order. First, in step S11, the pixel of interest x
And the pixel a immediately before that and the reference pixel values b and c are extracted from the image to be encoded. Next, in step S12, the difference values (ba) and (ca) between the reference pixels b and c and the pixel a are obtained. Next, in step S13, the magnitudes of the difference values (b-a) and (c-a) obtained in step S12 are checked. If any of these is less than the threshold Th1 (for example, 3), go to step S15. If not, the process proceeds to step S14.

【0032】ステップS14では、{(a+b)/2}
を予測値として予測差分値{x−(a+b)/2}を図
3の符号テーブルに従って符号化して出力し、ステップ
S19に進む。また、ステップS15では、差分値(x
−a)の大きさと閾値Th2とを比較し、閾値Th2
(例えば5)未満の場合にはステップS16へ、そうで
ない時はステップS17に処理を移す。
In step S14, {(a + b) / 2}
As the prediction value, the prediction difference value {x- (a + b) / 2} is encoded and output according to the code table of FIG. 3, and the process proceeds to step S19. In step S15, the difference value (x
-A) is compared with the threshold value Th2 to determine the threshold value Th2.
If it is less than (for example, 5), the process proceeds to step S16, and if not, the process proceeds to step S17.

【0033】ステップS16では、差分値(b−a),
(c−a)の値に応じて状態に分割し、図6示すマルコ
フテーブルを用いて差分値(x−a)を符号化して出力
してステップS19に進む またステップS17では、差分値(b−a),(c−
a)の値に応じて状態を分割し、図6のマルコフテーブ
ルを用いて差分値(x−a)が“−4”〜“4”の範囲
外であることを示すOBコードを符号化して出力する。
次にステップS18に進み、特定画素値aを予測値とし
て、図7の符号テーブルを用いて予測差分値(x−a)
を符号化し、出力する。こうして各処理が終了するとス
テップS19に進み、着目画素が符号化対象画像の最後
の画素であるかを調べ、そうであれば符号化処理を終了
し、最後の画素でない場合にはステップS11に戻り、
次の画素について前述と同様の処理を実行する。
At step S16, the difference value (ba),
The state is divided into states according to the value of (c−a), the difference value (x−a) is encoded and output using the Markov table shown in FIG. 6, and the process proceeds to step S19. -A), (c-
The state is divided according to the value of a), and the OB code indicating that the difference value (x−a) is outside the range of “−4” to “4” is encoded using the Markov table of FIG. Output.
Next, the procedure proceeds to step S18, and the prediction difference value (x-a) is calculated using the code table of FIG. 7 with the specific pixel value a as the prediction value.
Is encoded and output. When each process is completed in this way, the process proceeds to step S19 to check whether the pixel of interest is the last pixel of the image to be encoded, and if so, the encoding process ends, and if it is not the last pixel, the process returns to step S11. ,
The same process as described above is executed for the next pixel.

【0034】尚、この第2実施例では、図6からも明ら
かなようにマルコフテーブルの規模は(5×5×10)
であり、予測符号化のために必要となる符号テーブルの
規模を含めても、従来方式でa,b,cの3画素参照の
マルコフモデル符号化を行う場合のマルコフテーブルの
規模、即ち、16の4乗に比べて極めて小さくできる。
In the second embodiment, as is clear from FIG. 6, the scale of the Markov table is (5 × 5 × 10).
Therefore, even if the scale of the code table required for predictive coding is included, the scale of the Markov model in the case of performing the Markov model coding of three-pixel reference of a, b, and c by the conventional method, that is, 16 It can be made extremely small compared to the fourth power of.

【0035】[第3実施例]図8は、本発明の第3実施
例の処理の流れを示すフローチャートである。この第3
実施例では、符号化対象画像を16値のモノクロ画像と
し、画素の位置関係は図9に示す通りとする。
[Third Embodiment] FIG. 8 is a flow chart showing the processing flow of the third embodiment of the present invention. This third
In the embodiment, the image to be encoded is a 16-value monochrome image, and the pixel positional relationship is as shown in FIG.

【0036】図8において、S21は着目画素xと参照
画素a,b,cの値を画像から取り出すステップ、S2
2は参照画素a,b,c間の差分(b−a),(c−
a),(b−c)を求めるステップ、S23は差分値
(b−a),(c−a),(b−c)の各大きさを調
べ、閾値Th3と比較するステップである。S24は、
差分値(b−a),(c−a),(b−c)の全てが閾
値Th3を越える時に、(a+b−c)を予測値として
着目画素値xを予測符号化するステップである。またS
25は、差分値(b−a),(c−a),(b−c)の
いずれかが閾値Th3を越えない時に、a,b,cを参
照してxをマルコフモデル符号化するステップである。
また、S26は、着目画素が画像の最後の画素であるか
を判別するステップである。
In FIG. 8, S21 is a step of extracting the values of the pixel of interest x and the reference pixels a, b, c from the image, S2.
2 is the difference between the reference pixels a, b and c (ba), (c-
a) and (b-c) are determined, and S23 is a step in which the magnitudes of the difference values (b-a), (c-a), and (b-c) are checked and compared with the threshold value Th3. S24 is
When all of the difference values (b−a), (c−a), and (b−c) exceed the threshold value Th3, this is a step of predictively encoding the pixel value x of interest with (a + b−c) as a prediction value. Also S
25 is a step of coding x with Markov model by referring to a, b, and c when any of the difference values (ba), (ca), and (bc) does not exceed the threshold Th3. Is.
Further, S26 is a step of determining whether the pixel of interest is the last pixel of the image.

【0037】図10は、図8のステップS24で参照す
る符号テーブルの例を示す図、図11は、ステップS2
5で参照するマルコフテーブルの一例を示す図である。
FIG. 10 is a diagram showing an example of the code table referred to in step S24 of FIG. 8, and FIG. 11 is step S2.
5 is a diagram showing an example of a Markov table referred to in FIG.

【0038】図10は、差分値(b−a),(c−
a),(b−c)の大きさのいずれかが閾値Th3以下
である場合の、予測値(a+b−c)との差分値(x−
a−b+c)の出現確率に応じて符号割り当てを行う場
合を示し、図11は、差分値(b−a),(c−a),
(b−c)の大きさが全て閾値Th3を越える場合に、
a,b,cの組合わせにより分けられる各状態におい
て、着目画素値xの出現確率に応じて符号割り当てを行
う場合を示している。
FIG. 10 shows the difference values (ba), (c-).
The difference value (x−) from the predicted value (a + b−c) in the case where one of the values a) and (b−c) is less than or equal to the threshold Th3.
a-b + c) shows the case where code allocation is performed according to the appearance probability, and FIG. 11 shows difference values (b-a), (c-a),
When all the sizes of (bc) exceed the threshold value Th3,
In each state divided by the combination of a, b, and c, the case where the code is assigned according to the appearance probability of the pixel value x of interest is shown.

【0039】この第3実施例では、前述した他の実施例
と同様に、これらのテーブルは符号化処理前に画像をプ
リスキャンして統計をとり、ハフマン符号を割り当てる
ことにより生成しても良いし、予め数種類の画像から統
計を求めて汎用の符号テーブルを決定しておき、それを
用いても良い。
In the third embodiment, as in the other embodiments described above, these tables may be generated by prescanning the image before the encoding process, taking statistics, and assigning a Huffman code. However, a general-purpose code table may be determined in advance by obtaining statistics from several types of images and used.

【0040】次に図8のフローチャートを参照して、第
3実施例の動作を説明する。
Next, the operation of the third embodiment will be described with reference to the flowchart of FIG.

【0041】この第3実施例においても、画像の符号化
処理はラスタスキャン順に画素ごとに行なわれ、まずス
テップS21で、符号化対象画像より着目画素xと参照
画素a,b,cの値をら取り出す。次にステップS22
に進み、参照画素a,b,c間の差分値(b−a),
(c−a),(b−c)の各大きさを調べ、差分値の全
てが閾値Th3(例えば2)以上ならばステップS24
へ、いずれかひとつでも閾値Th3未満であればステッ
プS25に進む。ステップS24では、参照画素a,
b,cから予測値(a+b−c)を作成し、着目画素値
と予測値の差分値(x−a−b+c)を図10の符号テ
ーブルに従って符号化し、出力する。
Also in this third embodiment, the image coding process is performed for each pixel in the raster scan order. First, in step S21, the values of the pixel of interest x and the reference pixels a, b, c are determined from the image to be coded. Take it out. Next, step S22
To the difference value (ba) between the reference pixels a, b, c,
The magnitudes of (c-a) and (bc) are checked, and if all the difference values are equal to or greater than the threshold Th3 (for example, 2), step S24.
If any one of them is less than the threshold Th3, the process proceeds to step S25. In step S24, the reference pixel a,
A prediction value (a + b-c) is created from b and c, and the difference value (x-a-b + c) between the pixel value of interest and the prediction value is encoded according to the code table of FIG. 10 and output.

【0042】一方、ステップS25では、参照画素値
a,b,cの組合わせにより各状態に分割し、図11の
マルコフテーブルを用いて、着目画素値xを符号化して
出力する。こうしてステップS24或はS25の処理を
終了するとステップS26に進み、着目画素が符号化対
象画像の最後の画素か否かを判断し、そうであれば符号
化処理を終了する。また最後でない時はステップS21
に戻り、前述の処理を実行する。
On the other hand, in step S25, the reference pixel values a, b, and c are divided into respective states, and the pixel value x of interest is encoded and output using the Markov table of FIG. When the process of step S24 or S25 is completed in this way, the process proceeds to step S26 to determine whether the pixel of interest is the last pixel of the image to be encoded, and if so, the encoding process is terminated. If not the last step, step S21
Then, the above process is executed.

【0043】このように第3実施例によれば、従来方式
で3画素参照のマルコフモデル符号化行う場合に比べ
て、マルコフテーブルの規模を16の4乗の約半分に縮
小できる。
As described above, according to the third embodiment, the scale of the Markov table can be reduced to about half the 16th power of four as compared with the case of performing the Markov model coding with reference to 3 pixels in the conventional method.

【0044】図12は本実施例の画像符号化装置の機能
構成を示すブロック図で、前述した実施例の構成をすべ
含むように記載しているが、必要に応じて各部の接続等
は省略可能である。
FIG. 12 is a block diagram showing the functional arrangement of the image coding apparatus according to the present embodiment. It is shown that all the arrangements of the above-described embodiment are included, but connections of the respective parts are omitted as necessary. It is possible.

【0045】図5において、101は画像データを入力
する画像入力部で、ここから入力された画像データは着
目画素抽出部102、特定画素抽出部103及び参照画
素104に入力されて、それぞれ着目画素x、特定画素
a及び参照画素b,cが抽出される。105は計算部
で、着目画素抽出部102、特定画素抽出部103及び
参照画素104より入力された画素値(濃度値)同士を
演算し、(b−a),(c−a),(bーc)、更には
(a+b)/2,(a+b−c),(x−a)等の値を
算出している。
In FIG. 5, reference numeral 101 denotes an image input unit for inputting image data, and the image data input from the image input unit is input to a target pixel extracting unit 102, a specific pixel extracting unit 103, and a reference pixel 104, respectively x, the specific pixel a, and the reference pixels b and c are extracted. A calculation unit 105 calculates pixel values (density values) input from the pixel-of-interest extraction unit 102, the specific-pixel extraction unit 103, and the reference pixel 104, and calculates (ba), (ca), (b). -C), and further, the values of (a + b) / 2, (a + b-c), (x-a), etc. are calculated.

【0046】106は比較部で、閾値メモリ107に記
憶されている閾値(Th1,Th2,Th3)等と、計
算部105より入力される計算値とを比較している。こ
の比較部106における比較処理は、図1のステップS
3、図5のステップS13及びS15、更には図8のス
テップS23の処理に相当するものである。
Reference numeral 106 denotes a comparison unit, which compares the threshold values (Th1, Th2, Th3) and the like stored in the threshold value memory 107 with the calculated value input from the calculation unit 105. The comparison process in the comparison unit 106 is performed in step S of FIG.
3, the steps S13 and S15 of FIG. 5, and further the step S23 of FIG.

【0047】こうして比較された結果に応じて、マルコ
フモデル符号化部111或は予測符号化部108を選択
的に駆動する。111はマルコフ符号化に用いるマルコ
フテーブルで、例えば図4、図6及び図11に示すよう
に構成されている。また110は予測符号化に使用する
ため符号テーブルで、例えば図3、図7及び図10のよ
うに構成されている。
The Markov model coding unit 111 or the predictive coding unit 108 is selectively driven according to the result of the comparison. Reference numeral 111 denotes a Markov table used for Markov coding, which is configured as shown in FIGS. 4, 6 and 11, for example. A code table 110 is used for predictive coding, and is configured as shown in FIGS. 3, 7, and 10, for example.

【0048】予測符号化部108は、例えば図1のステ
ップS5或は図5のステップS14で示すように、比較
部106における比較結果に応じて、着目画素濃度x
と、参照画素bと特定画素aの濃度とを入力し、この着
目画素と特定画素と参照画素の平均値{(a+b)/
2}との濃度差を求め、この濃度差に基づいてテーブル
110を参照して着目画素を予測符号化する。
The predictive coding unit 108, for example, as shown in step S5 of FIG. 1 or step S14 of FIG.
And the densities of the reference pixel b and the specific pixel a are input, and the average value of the target pixel, the specific pixel, and the reference pixel {(a + b) /
2} is obtained, and the pixel of interest is predictively coded by referring to the table 110 based on this density difference.

【0049】また一方、マルコフモデル符号化部109
は、例えば図1のステップS4で示すように、比較部1
06における比較結果に応じて、(b−a)と(c−
a)、及び着目画素xと特定画素aとの差分値に基づい
て、図4のテーブル111を参照して符号化する。
On the other hand, the Markov model coding unit 109
Is, for example, as shown in step S4 of FIG.
According to the comparison result in 06, (ba) and (c-
Based on a) and the difference value between the pixel of interest x and the specific pixel a, encoding is performed by referring to the table 111 in FIG.

【0050】以下同様に、予測符号化部108は図5の
ステップS18或は図8のステップS24に示すように
予測符号化し、マルコフモデル符号化部109は、図5
のステップS16,S17及び図8のステップS25で
示すように、着目画素をマルコフモデル符号化してい
る。こうして予測符号化或はマルコフモデル符号化され
た符号化データは、図示しないメモリに記憶されたり、
或はインターフェース部等を介して出力される。
Similarly, the predictive coding unit 108 performs predictive coding as shown in step S18 of FIG. 5 or step S24 of FIG. 8, and the Markov model coding unit 109 uses the predictive coding of FIG.
As shown in steps S16 and S17 in step S25 and step S25 in FIG. 8, the pixel of interest is Markov model encoded. The coded data thus predictively coded or Markov model coded is stored in a memory (not shown),
Alternatively, it is output via an interface unit or the like.

【0051】尚、本発明は上述した実施例に限定される
ものではなく、例えば、上述の各実施例では、周辺画素
として着目画素xの直前の画素a、直上の画素b、左上
或は右上の画素cを用いているが、これら画素の位置は
これに限定されるものでなく、参照可能な画素であれば
良く、例えばもっと離れた位置にある画素等を参照して
も良い。
The present invention is not limited to the above-described embodiments. For example, in each of the above-mentioned embodiments, the pixel a immediately before the pixel x of interest, the pixel b immediately above the pixel x, the upper left corner or the upper right corner, as peripheral pixels. However, the positions of these pixels are not limited to this, and any pixels that can be referred to may be used, and, for example, pixels located farther away may be referred to.

【0052】また、上述の実施例では静的なマルコフモ
デル符号化の場合で説明したが、出現シンボルに応じて
マルコフテーブルを更新するステップを付加し、動的な
マルコフモデル符号化に適用しても良い。更に、マルコ
フモデル符号化の際の状態分割の方法は、上述の各図面
に限定されるものではなく、復号時に正しく状態判別で
きるものであればどのように分割しても構わない。
In the above embodiment, the case of static Markov model coding has been described. However, a step of updating the Markov table according to the appearing symbol is added and applied to the dynamic Markov model coding. Is also good. Further, the state division method at the time of Markov model encoding is not limited to the above-mentioned drawings, and any state division method may be used as long as it can correctly determine the state at the time of decoding.

【0053】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置に本発明
を実施するプログラムを供給することによって達成され
る場合にも適用できる。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. The present invention can also be applied to the case where it is achieved by supplying a program for implementing the present invention to a system or an apparatus.

【0054】以上説明したように本実施例によれば、着
目画素値とその周辺画素値との差分値に応じて、マルコ
フモデル符号化と予測符号化を選択して行うことによ
り、マルコフモデル符号化の状態数を少なくすることが
できるため、マルコフモデル符号化時に参照されるマル
コフテーブルの規模を小さくでき、メモリを節約できる
という効果がある。
As described above, according to the present embodiment, the Markov model coding and the predictive coding are selected and performed according to the difference value between the pixel value of interest and the peripheral pixel values thereof, whereby the Markov model code is selected. Since it is possible to reduce the number of conversion states, it is possible to reduce the scale of the Markov table referred to when the Markov model is encoded, and it is possible to save memory.

【0055】[0055]

【発明の効果】以上説明したように本発明によれば、高
い符号化効率が得られるという効果がある。
As described above, according to the present invention, there is an effect that a high coding efficiency can be obtained.

【0056】また本発明によれば、マルコフ符号化と予
測符号化とを併用して、効率良く画像データを符号化で
きる効果がある。
Further, according to the present invention, there is an effect that the image data can be efficiently coded by using the Markov coding and the predictive coding together.

【0057】また本発明によれば、マルコフモデル符号
化のためのテーブルの規模を小さくできる効果がある。
Further, according to the present invention, there is an effect that the scale of the table for Markov model coding can be reduced.

【0058】[0058]

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

【図1】本発明の第1実施例の符号化処理を示すフロー
チャートである。
FIG. 1 is a flowchart showing an encoding process according to a first embodiment of the present invention.

【図2】第1実施例における画素の位置関係を示す図で
ある。
FIG. 2 is a diagram showing a positional relationship of pixels in the first embodiment.

【図3】本発明の第1及び第2実施例で使用される符号
テーブルの概略を示す図である。
FIG. 3 is a diagram showing an outline of a code table used in the first and second embodiments of the present invention.

【図4】図4は第1実施例におけるマルコフテーブルの
概略を示す図である。
FIG. 4 is a diagram showing an outline of a Markov table in the first embodiment.

【図5】本発明の第2実施例における処理の流れを示す
フローチャートである。
FIG. 5 is a flowchart showing the flow of processing in the second embodiment of the present invention.

【図6】本発明の第2実施例におけるマルコフテーブル
の一例を示す図である。
FIG. 6 is a diagram showing an example of a Markov table according to the second embodiment of the present invention.

【図7】第2実施例における符号テーブルの一例を示す
図である。
FIG. 7 is a diagram showing an example of a code table in the second embodiment.

【図8】本発明の第3実施例の処理の流れを示すフロー
チャートである。
FIG. 8 is a flowchart showing a processing flow of a third embodiment of the present invention.

【図9】第3実施例における着目画素と参照画素位置を
示す図である。
FIG. 9 is a diagram showing a pixel of interest and a reference pixel position in the third embodiment.

【図10】第3実施例における符号テーブルの一例を示
す図である。
FIG. 10 is a diagram showing an example of a code table in the third embodiment.

【図11】第3実施例におけるマルコフテーブルの一例
を示す図である。
FIG. 11 is a diagram showing an example of a Markov table in the third embodiment.

【図12】本発明の実施例の画像符号化装置の機能構成
を示すブロック図である。
FIG. 12 is a block diagram showing a functional configuration of an image coding apparatus according to an embodiment of the present invention.

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

101 画像入力部 102 着目画素抽出部 103 特定画素抽出部 104 参照画素抽出部 105 計算部 106 比較部 107 閾値 108 予測符号化部 109 マルコフモデル符号化部 110 予測符号化用テーブル 111 マルコフテーブル 101 Image Input Unit 102 Target Pixel Extraction Unit 103 Specific Pixel Extraction Unit 104 Reference Pixel Extraction Unit 105 Calculation Unit 106 Comparison Unit 107 Threshold 108 Predictive Encoding Unit 109 Markov Model Encoding Unit 110 Predictive Encoding Table 111 Markov Table

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 画像データを符号化する画像符号化方法
であって、 画像データの着目画素近傍の画素を特定画素とし、当該
着目画素の周辺画素と前記特定画素の濃度値の差分を求
める工程と、 前記差分が所定値以下の時、前記着目画素と前記特定画
素の濃度差と前記差分とに基づいて前記濃度差をマルコ
フモデル符号化する工程と、 前記差分が前記所定値以上の時、前記特定画素と前記周
辺画素の濃度平均と前記着目画素の濃度値に基づいて前
記着目画素を予測符号化する工程と、を有することを特
徴とする画像符号化方法。
1. An image encoding method for encoding image data, wherein a pixel in the vicinity of a pixel of interest of image data is set as a specific pixel, and a difference between density values of peripheral pixels of the pixel of interest and the specific pixel is obtained. And, when the difference is less than or equal to a predetermined value, a step of Markov model encoding the density difference based on the density difference and the difference between the pixel of interest and the specific pixel, and when the difference is the predetermined value or more, A method of predicting and coding the pixel of interest based on a density average of the specific pixel and the peripheral pixel and a density value of the pixel of interest, the image coding method.
【請求項2】 画像データを符号化する画像符号化方法
であって、 画像データの着目画素近傍の画素を特定画素とし、当該
着目画素の周辺画素と前記特定画素の濃度値の差分を求
める工程と、 前記差分が第1の所定値以下の時、前記着目画素と前記
特定画素の濃度差と第2の所定値とを比較する工程と、 前記濃度差が前記第2の所定値以下の時、前記濃度差を
マルコフモデル符号化する工程と、 前記濃度差が前記第2の所定値以上の時、前記濃度差に
基づいてマルコフモデル符号化するとともに、前記特定
画素を用いて前記着目画素を予測符号化する工程と、 前記差分が前記第1の所定値以上の時、前記特定画素と
前記周辺画素の平均と前記着目画素の濃度値とに基づい
て前記着目画素を予測符号化する工程と、を有すること
を特徴とする画像符号化方法。
2. An image encoding method for encoding image data, wherein a pixel in the vicinity of a pixel of interest of image data is set as a specific pixel, and a difference between density values of peripheral pixels of the pixel of interest and the specific pixel is obtained. And a step of comparing the density difference between the pixel of interest and the specific pixel with a second predetermined value when the difference is less than or equal to a first predetermined value, and the density difference is less than or equal to the second predetermined value. Markov model coding the density difference, when the density difference is equal to or more than the second predetermined value, the Markov model coding based on the density difference, the pixel of interest using the specific pixel Predictive-encoding, and when the difference is equal to or greater than the first predetermined value, predictively-encoding the pixel of interest based on an average of the specific pixel and the peripheral pixel and a density value of the pixel of interest. Characterized by having Image encoding method.
【請求項3】 画像データを符号化する画像符号化方法
であって、 画像データの着目画素近傍の画素を特定画素とし、当該
着目画素の周辺画素と前記特定画素の濃度値の差分を求
める工程と、 前記差分が所定値以下の時、前記着目画素の濃度値と前
記特定画素と前記周辺画素の濃度値に基づいて前記着目
画素をマルコフモデル符号化する工程と、 前記濃度差が前記所定値以上の時、前記特定画素と前記
周辺画素の濃度値の合計と前記着目画素の濃度値に基づ
いて前記着目画素を予測符号化する工程と、を有するこ
とを特徴とする画像符号化方法。
3. An image encoding method for encoding image data, wherein a pixel in the vicinity of a pixel of interest of the image data is set as a specific pixel, and a difference between density values of the peripheral pixel of the pixel of interest and the specific pixel is obtained. And, when the difference is less than or equal to a predetermined value, a step of Markov model coding the target pixel based on the density value of the target pixel and the density values of the specific pixel and the peripheral pixel, and the density difference is the predetermined value. In the above case, the method includes the step of predictively encoding the pixel of interest based on the total of the density values of the specific pixel and the peripheral pixel and the density value of the pixel of interest.
【請求項4】 前記特定画素は、ラスタ走査線上で前記
着目画素の直前の画素であることを特徴とする請求項1
〜3項のいずれか1項に記載の画像符号化方法。
4. The specific pixel is a pixel immediately before the pixel of interest on a raster scanning line.
The image coding method according to any one of items 1 to 3.
【請求項5】 前記周辺画素は、前記着目画素の1つ前
の走査線上の画素を含むことを特徴とする請求項1〜3
項のいずれか1項に記載の画像符号化方法。
5. The peripheral pixel includes a pixel on a scanning line immediately preceding the pixel of interest.
The image coding method according to any one of items.
【請求項6】 画像データを符号化する画像符号化装置
であって、 画像データの着目画素と該着目画素近傍の画素及び前記
注目画素の周辺画素をそれぞれ特定画素及び参照画素と
して抽出する抽出手段と、 前記周辺画素と前記特定画素の濃度値の差分を求める演
算手段と、 前記差分と所定値とを比較する比較手段と、 前記着目画素と前記特定画素の濃度差と前記差分とに基
づいて前記濃度差をマルコフモデル符号化するマルコフ
モデル符号化手段と、 前記特定画素と前記周辺画素の濃度平均と前記着目画素
の濃度値に基づいて前記着目画素を予測符号化する予測
符号化手段と、 前記比較手段による比較結果に応じて、前記マルコフモ
デル符号化手段と前記予測符号化手段のいずれかを用い
て前記着目画素を符号化する選択手段と、を有すること
を特徴とする画像符号化装置。
6. An image coding apparatus for coding image data, wherein the extracting means extracts a target pixel of image data, a pixel in the vicinity of the target pixel, and peripheral pixels of the target pixel as a specific pixel and a reference pixel, respectively. Based on the density difference between the target pixel and the specific pixel and the difference, a calculating unit that calculates a difference between the density values of the peripheral pixel and the specific pixel, a comparing unit that compares the difference with a predetermined value, Markov model encoding means for encoding the density difference Markov model encoding means, predictive encoding means for predictively encoding the pixel of interest based on the density average of the specific pixel and the peripheral pixel and the density value of the pixel of interest, Selection means for encoding the pixel of interest by using one of the Markov model encoding means and the prediction encoding means according to the comparison result by the comparison means. An image encoding device characterized by the above.
【請求項7】 前記着目画素と前記特定画素の濃度差が
所定値以上の時、前記濃度差をマルコフモデル符号化
し、前記特定画素を予測値として前記着目画素を予測符
号化する手段を更に有することを特徴とする請求項6に
記載の画像符号化装置。
7. When the density difference between the pixel of interest and the specific pixel is equal to or larger than a predetermined value, the density difference is Markov model coded, and the pixel of interest is predictively coded using the specific pixel as a prediction value. The image coding apparatus according to claim 6, wherein
【請求項8】 画像データを符号化する画像符号化装置
であって、 画像データの着目画素と該着目画素近傍の画素及び前記
注目画素の周辺画素をそれぞれ特定画素及び参照画素と
して抽出する抽出手段と、 前記周辺画素と前記特定画素の濃度値の差分を求める演
算手段と、 前記差分と所定値とを比較する比較手段と、 前記着目画素と前記特定画素及び前記周辺画素に基づい
て前記着目画素をマルコフモデル符号化するマルコフモ
デル符号化手段と、 前記特定画素と前記周辺画素の濃度値と前記着目画素の
濃度値とに基づいて前記着目画素を予測符号化する予測
符号化手段と、 前記比較手段による比較結果に応じて、前記マルコフモ
デル符号化手段と前記予測符号化手段のいずれかを用い
て前記着目画素を符号化する選択手段と、を有すること
を特徴とする画像符号化装置。
8. An image coding apparatus for coding image data, wherein the extracting means extracts a target pixel of image data, a pixel in the vicinity of the target pixel, and peripheral pixels of the target pixel as a specific pixel and a reference pixel, respectively. A calculating means for obtaining a difference in density value between the peripheral pixel and the specific pixel; a comparing means for comparing the difference with a predetermined value; and the target pixel based on the target pixel, the specific pixel and the peripheral pixel A Markov model coding means for coding a Markov model, a predictive coding means for predictively coding the pixel of interest based on density values of the specific pixel, the peripheral pixel, and the density value of the pixel of interest, and the comparison Selection means for encoding the pixel of interest by using one of the Markov model encoding means and the predictive encoding means according to the comparison result by the means. An image encoding device characterized by:
【請求項9】 前記特定画素は、ラスタ走査線上で前記
着目画素の直前の画素であることを特徴とする請求項6
〜8項のいずれか1項に記載の画像符号化装置。
9. The specific pixel is a pixel immediately before the pixel of interest on a raster scanning line.
The image coding device according to any one of items 1 to 8.
【請求項10】 前記周辺画素は、前記着目画素の1つ
前の走査線上の画素を含むことを特徴とする請求項6〜
8項のいずれか1項に記載の画像符号化装置。
10. The pixel according to claim 6, wherein the peripheral pixel includes a pixel on a scanning line immediately before the pixel of interest.
The image encoding device according to any one of items 8.
JP10197695A 1995-04-26 1995-04-26 Image encoding method and apparatus Expired - Fee Related JP3432039B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP10197695A JP3432039B2 (en) 1995-04-26 1995-04-26 Image encoding method and apparatus
US08/635,521 US6031938A (en) 1995-04-26 1996-04-22 Image encoding apparatus with selective Markov and predictive coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10197695A JP3432039B2 (en) 1995-04-26 1995-04-26 Image encoding method and apparatus

Publications (2)

Publication Number Publication Date
JPH08298599A true JPH08298599A (en) 1996-11-12
JP3432039B2 JP3432039B2 (en) 2003-07-28

Family

ID=14314904

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10197695A Expired - Fee Related JP3432039B2 (en) 1995-04-26 1995-04-26 Image encoding method and apparatus

Country Status (1)

Country Link
JP (1) JP3432039B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6028963A (en) * 1996-06-17 2000-02-22 Canon Kabushiki Kaisha Image encoding based on judgement on prediction error
JP2006522629A (en) * 2003-04-11 2006-10-05 ボシュ・アンド・ロム・インコーポレイテッド System and method for eye data acquisition and alignment and tracking
JP2009010954A (en) * 2007-06-28 2009-01-15 Lenovo (Beijing) Co Ltd Method and system for processing image at high speed
JP2011024002A (en) * 2009-07-16 2011-02-03 Akuseru:Kk Prediction processing system
JP2012070395A (en) * 2011-10-18 2012-04-05 Axell Corp Prediction processing system
JP2015012483A (en) * 2013-06-28 2015-01-19 株式会社Jvcケンウッド Image encoding apparatus, image encoding method, image encoding program, image decoding apparatus, image decoding method, and image decoding program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6028963A (en) * 1996-06-17 2000-02-22 Canon Kabushiki Kaisha Image encoding based on judgement on prediction error
USRE39984E1 (en) 1996-06-17 2008-01-01 Canon Kabushiki Kaisha Image encoding based on judgement on prediction error
JP2006522629A (en) * 2003-04-11 2006-10-05 ボシュ・アンド・ロム・インコーポレイテッド System and method for eye data acquisition and alignment and tracking
JP2009010954A (en) * 2007-06-28 2009-01-15 Lenovo (Beijing) Co Ltd Method and system for processing image at high speed
JP2011024002A (en) * 2009-07-16 2011-02-03 Akuseru:Kk Prediction processing system
JP2012070395A (en) * 2011-10-18 2012-04-05 Axell Corp Prediction processing system
JP2015012483A (en) * 2013-06-28 2015-01-19 株式会社Jvcケンウッド Image encoding apparatus, image encoding method, image encoding program, image decoding apparatus, image decoding method, and image decoding program

Also Published As

Publication number Publication date
JP3432039B2 (en) 2003-07-28

Similar Documents

Publication Publication Date Title
US6339616B1 (en) Method and apparatus for compression and decompression of still and motion video data based on adaptive pixel-by-pixel processing and adaptive variable length coding
JP2003507804A (en) Method and apparatus for variable complexity decoding of motion compensated block-based compressed digital video
EP2343878A1 (en) Pixel prediction value generation procedure automatic generation method, image encoding method, image decoding method, devices using these methods, programs for these methods, and recording medium on which these programs are recorded
JPH1056643A (en) Device for encoding and decoding moving image recording arbitrary object
JP2009509418A (en) Classification filtering for temporal prediction
JP2001500688A (en) Bit allocation method for sequential image compression
US20240031576A1 (en) Method and apparatus for video predictive coding
US6169766B1 (en) Method and apparatus for detecting motion vector and image coding apparatus
US8131095B2 (en) Process and device for the compression of portions of images
JP3466164B2 (en) Image encoding device, image decoding device, image encoding method, image decoding method, and medium
JP3432039B2 (en) Image encoding method and apparatus
JP3202433B2 (en) Quantization device, inverse quantization device, image processing device, quantization method, inverse quantization method, and image processing method
JP2007527126A (en) Image part compression method and apparatus
JPH07143488A (en) Method and device for decoding image data
JP3420389B2 (en) Image encoding method and apparatus
WO2000018133A1 (en) Encoding device and method, and decoding device and method
JP3326879B2 (en) Image signal converter
JP3032213B2 (en) Image encoding device and image decoding device
JPH0537916A (en) Image transmission equipment
JPH11103463A (en) Picture encoding method and storage medium
JP3261208B2 (en) Picture information prediction encoding and decoding apparatus
JP2000299866A (en) Method for encoding image
JPH0918350A (en) Coding/decoding device and coding/decoding method
JPH1013842A (en) Markov model image coder
JPH11136674A (en) Image coding method and storage medium

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030428

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090523

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100523

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100523

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110523

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120523

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120523

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130523

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140523

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees