JP2003230150A - Method for coding dynamic image, program thereof, and recording medium recording this program - Google Patents

Method for coding dynamic image, program thereof, and recording medium recording this program

Info

Publication number
JP2003230150A
JP2003230150A JP2002028884A JP2002028884A JP2003230150A JP 2003230150 A JP2003230150 A JP 2003230150A JP 2002028884 A JP2002028884 A JP 2002028884A JP 2002028884 A JP2002028884 A JP 2002028884A JP 2003230150 A JP2003230150 A JP 2003230150A
Authority
JP
Japan
Prior art keywords
evaluation
absolute value
reference image
search position
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.)
Pending
Application number
JP2002028884A
Other languages
Japanese (ja)
Inventor
Hideaki Kimata
英明 木全
Yoshiyuki Yashima
由幸 八島
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2002028884A priority Critical patent/JP2003230150A/en
Publication of JP2003230150A publication Critical patent/JP2003230150A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To obtain a motion vector of good coding efficiency and to obtain a reference image. <P>SOLUTION: An MR calculator 101 obtains pixel value totals M and R of overall input image. A reference image memory 104 stores the input image of a past frame. An M storage memory 102 stores M corresponding to the past input image. An MAD calculator 110 calculates the MAD between the reference image and the input image. An amount-of-motion vector coding evaluator 106 evaluates an amount of coding of the motion vector of a present macro block, by using motion vector information already obtained by the circumferential macro block. An amount-of-reference image designating evaluator 107 evaluates an amount of coding information designated by a searching frame. An SEA realizing unit 105 realizes an SEA method by using an inequality of motion searching from the R and the M and evaluated values B and C. A decoding image memory 109 stores decoded image of the past frame. An interframe predicting coding unit 103 forms the predicted image by sing the coded image and codes the input image. The unit 108 codes the coded data. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、動画像の符号化方
法に係り、特に入力画像を分割した領域(現領域)毎に
動き探索をする動画像符号化方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture coding method, and more particularly to a moving picture coding method for performing a motion search for each divided area (current area) of an input image.

【0002】[0002]

【従来の技術】動画像符号化では、一般的に符号化効率
向上のために動き補償フレーム間予測符号化方法が用い
られる。この方法は、入力画像と、それ以前に符号化さ
れた他のフレームの復号画像から作られる参照画像との
間で、対応する画素間の画像情報の差分(予測誤差と呼
ぶ)を符号化する。参照画像の作成には、前フレームを
使う方法や、前後のフレームから作成する方法や、これ
らのフレームをアフィン変換して作成する方法がある。
2. Description of the Related Art In moving picture coding, a motion-compensated interframe predictive coding method is generally used to improve coding efficiency. This method encodes a difference (referred to as a prediction error) in image information between corresponding pixels between an input image and a reference image created from a decoded image of another frame that has been encoded before. . The reference image can be created by using the previous frame, creating it from the preceding and succeeding frames, or affine transforming these frames.

【0003】また、予測誤差の符号化では、例えば、予
測誤差をDCT(離散コサイン変換)などの直交変換を
行い、その係数を量子化した後に可変長符号化する。ま
たは、直交変換を行わずにDPCM符号化する方法もあ
る。符号化効率を向上するために、画面内の同じ位置の
画素間の予測誤差よりも平行移動した位置の予測誤差の
方が小さい場合には、この平行移動した位置の予測誤差
を符号化する。平行移動量は動きベクトルとして符号化
される。
In coding the prediction error, for example, the prediction error is subjected to orthogonal transform such as DCT (discrete cosine transform), and its coefficient is quantized and then variable length coded. Alternatively, there is a method of performing DPCM coding without performing orthogonal transform. In order to improve the coding efficiency, when the prediction error of the translated position is smaller than the prediction error between pixels at the same position in the screen, the prediction error of the translated position is coded. The translation amount is encoded as a motion vector.

【0004】この平行移動量を求める処理は動き探索と
呼ばれる。一般的には、画面を小領域に区切り、その領
域毎に動きベクトルを求める。例えば、映像符号化方式
H.263では縦横16画素のマクロブロックで区切
り、そのマクロブロック毎に動きベクトルを求める。領
域内の全画素に対する予測誤差の評価関数としては、領
域内のすべての画素の画像情報の、絶対値差分の和や、
それらの分散等が用いられる。これらの値が小さい動き
ベクトルを選択すると予測誤差の符号化効率が高くなる
ため、これらの値が最も小さくなる動きベクトルを求め
る。また、探索範囲を大きくするほど、動きベクトルの
候補が増えるため符号化効率の高い動きベクトルを求め
ることができる。例えばH.263では、動きベクトル
の表現上の制限により探索範囲は最大で縦横16画素ず
れた位置になる。この様子を図2に示す。この探索範囲
内を1画素ずつずらしながら、絶対値差分和や分散を計
算し、これらの値が最小となる位置を求める。しかし、
探索範囲を大きくするほど、動き探索の演算量が増え
る。
The process of obtaining the amount of parallel movement is called motion search. Generally, the screen is divided into small areas and a motion vector is obtained for each area. For example, in the video coding method H.263, the blocks are separated by macroblocks of 16 pixels in the vertical and horizontal directions, and the motion vector is obtained for each macroblock. As the evaluation function of the prediction error for all the pixels in the area, the sum of the absolute value differences of the image information of all the pixels in the area,
Their dispersion or the like is used. If a motion vector with a small value is selected, the coding efficiency of the prediction error is increased, so that the motion vector with the smallest value is obtained. In addition, the larger the search range, the more motion vector candidates increase, and thus it is possible to obtain a motion vector with high coding efficiency. For example, in H.263, the search range is a position that is shifted by a maximum of 16 pixels in the vertical and horizontal directions due to the restriction on the expression of the motion vector. This state is shown in FIG. While shifting the search range pixel by pixel, the absolute value difference sum and variance are calculated, and the position where these values are minimum is obtained. But,
The larger the search range, the greater the amount of calculation for motion search.

【0005】なお、参照画像を作成するにあたり、すで
に符号化された入力画像を使う方法と、動き補償の際に
作成する過去のフレームの局所復号画像を使う方法があ
る。
When creating a reference image, there are a method of using an already encoded input image and a method of using a locally decoded image of a past frame created at the time of motion compensation.

【0006】動き探索の演算量を減らすために様々な手
法が用いられている。特に、SEA方法は、探索精度を
全く損なわずに動き探索の演算量を軽減する手法であ
る。
Various techniques are used to reduce the amount of calculation for motion estimation. In particular, the SEA method is a method of reducing the calculation amount of motion search without impairing the search accuracy.

【0007】SEA方法を概説する。入力画像(時刻
t)の位置(i+a,j+b)に置ける画素の値をf
(i+a,j+b,t)とすると、原画素位置(a,
b)に対して、探索位置(x+a,y+b)における参
照フレーム(時刻t−1)に対する絶対値差分和MAD
(x+a,y+b)は以下の式(1)によって計算され
る。
The SEA method will be outlined. The value of the pixel placed at the position (i + a, j + b) of the input image (time t) is f
If (i + a, j + b, t), the original pixel position (a,
b), the absolute value difference sum MAD for the reference frame (time t-1) at the search position (x + a, y + b)
(X + a, y + b) is calculated by the following equation (1).

【0008】SEA方法では、探索位置(x+a,y+
b)において、すでに計算された探索位置(m+a,n
+b)の絶対値差分和MAD(m+a,n+b)に対し
て、以下の式(2)によって求められる探索位置(x+
a,y+b)のM(x+a,y+b)が、以下の不等式
(3)の条件を満たす場合のみ絶対値差分和を求める。
R(a,b)は以下の式(4)によって計算される値で
ある。このため絶対値差分和の計算回数を減少すること
ができる。
In the SEA method, the search position (x + a, y +
In b), the calculated search position (m + a, n)
+ B) absolute value difference sum MAD (m + a, n + b), the search position (x +) obtained by the following equation (2):
The absolute value difference sum is obtained only when M (x + a, y + b) of (a, y + b) satisfies the following inequality (3).
R (a, b) is a value calculated by the following equation (4). Therefore, the number of times the absolute value difference sum is calculated can be reduced.

【0009】[0009]

【数1】 [Equation 1]

【0010】例えば、矩形の探索範囲(−w<=x<=
w,−w<=y<=w)内で動き探索を行う場合、上記
の不等式(3)による判定を利用して、次にような手順
で動き探索する。この動きベクトル決定フローを図3に
示す。
For example, a rectangular search range (-w <= x <=
When performing the motion search within w, -w <= y <= w), the motion search is performed in the following procedure by using the determination by the above inequality (3). This motion vector determination flow is shown in FIG.

【0011】まず、R(a,b)とM(x+a,y+
b)の値をフレーム内全ての位置(a,b)で求める
(Step1)。その後で、各マクロブロック毎に、不
等式(3)を利用して動きベクトルを求める。
First, R (a, b) and M (x + a, y +
The value of b) is obtained at all positions (a, b) in the frame (Step 1). After that, the motion vector is obtained for each macroblock by using the inequality (3).

【0012】探索の初期位置を範囲内の左上(m+a,
n+b)=(−w+a,−w+b)とすると、まず初期
位置(m+a,n+b)におけるMAD(m+a,n+
b)を求める(Step2)。
The initial position of the search is the upper left (m + a,
If n + b) = (− w + a, −w + b), first, MAD (m + a, n +) at the initial position (m + a, n + b).
b) is calculated (Step 2).

【0013】次に、探索位置を右に1画素ずつずらしな
がらM(x+a,y+b)の値を求めていき、MAD
(m+a,n+b)に対して不等式(3)を満たす位置
(x0+a,y0+b)を求める(Step3)。この
時、最右端の探索位置の次は、それよりも1ライン下の
最左端を探索位置とする。
Next, the value of M (x + a, y + b) is calculated while shifting the search position to the right one pixel at a time, and MAD is calculated.
The position (x 0 + a, y 0 + b) that satisfies the inequality (3) is obtained for (m + a, n + b) (Step 3). At this time, next to the search position at the rightmost end, the leftmost end one line below is set as the search position.

【0014】不等式(3)を満たす位置(x0+a,y0
+b)が求まった場合、MAD(x 0+a,y0+b)を
求める。MAD(x0+a,y0+b)の値とMAD(m
+a,n+b)の値を比較する(Step4)。MAD
(x0+a,y0+b)の値がMAD(m+a,n+b)
の値以上の場合には、Step3に戻り、不等式(3)
を満たす位置を探す。
A position (x that satisfies the inequality (3)0+ A, y0
If + b) is found, MAD (x 0+ A, y0+ B)
Ask. MAD (x0+ A, y0+ B) value and MAD (m
The values of + a, n + b) are compared (Step 4). MAD
(X0+ A, y0The value of + b) is MAD (m + a, n + b)
If the value is greater than or equal to, the process returns to Step 3 and the inequality (3) is returned.
Find a position that satisfies.

【0015】MAD(x0+a,y0+b)の値がMAD
(m+a,n+b)の値よりも小さい場合には、MAD
(m+a,n+b)の値をMAD(x0+a,y0+b)
の値で入れ替えて(Step5)、Step3に戻り、
不等式(3)を満たす位置を探す。
The value of MAD (x 0 + a, y 0 + b) is MAD
If smaller than the value of (m + a, n + b), MAD
The value of (m + a, n + b) is MAD (x 0 + a, y 0 + b)
Replace with the value of (Step 5), return to Step 3,
Find a position that satisfies the inequality (3).

【0016】このようにして、最後の探索位置までSt
ep3とStep4を繰り返す。そして、最後にSte
p5でMADを入れ替えた位置を動きベクトルとする。
In this way, St is reached to the last search position.
Repeat ep3 and Step4. And finally Ste
The position where MAD is replaced in p5 is set as a motion vector.

【0017】次に、動きベクトルの符号化では、動き探
索によって得られた動きベクトル(x0,y0)と、周囲
の領域の動きベクトルとの差分を求め、この差分情報を
エントロピー符号化する。例えば、現領域と周囲の領域
が図4に示す位置関係にある場合に、周囲の領域の動き
ベクトルが(x1,y1)、(x2,y2)、(x3,y3
であるとすると、現領域の符号化される動きベクトル情
報(x,y)は式(5)により求めることができる。
Next, in the coding of the motion vector, the difference between the motion vector (x 0 , y 0 ) obtained by the motion search and the motion vector of the surrounding area is obtained, and this difference information is entropy coded. . For example, when the current area and the surrounding area have the positional relationship shown in FIG. 4, the motion vectors of the surrounding area are (x 1 , y 1 ), (x 2 , y 2 ), (x 3 , y 3 ).
Then, the encoded motion vector information (x, y) of the current area can be obtained by the equation (5).

【0018】[0018]

【数2】 [Equation 2]

【0019】また、H.263AnnexUのように、
符号化側と復号側とに、複数フレーム分の画像を蓄積で
きる参照画像メモリを備えておき、その参照画像メモリ
から参照画像を選択して予測画像を作成する方法もあ
る。この場合には、動きベクトル情報の他に、符号化側
で使用する参照画像を指定するための情報refを合わ
せて符号化する必要がある。
Further, like H.263 Annex U,
There is also a method in which the encoding side and the decoding side are provided with reference image memories capable of accumulating images for a plurality of frames, and a reference image is selected from the reference image memory to create a predicted image. In this case, in addition to the motion vector information, it is necessary to code together information ref for designating the reference image used on the coding side.

【0020】例えば、直前のフレームを参照画像にする
場合にはref=1とし、2フレーム前を参熊画像にす
る場合にはref=2として、参照画像を指定すること
が可能である。これらの参照画像はマクロブロック等の
小領域毎に指定することができる。符号化側では、参照
画像メモリ内に蓄積された各フレーム内を動き探索し、
最も予測誤差の小さい動きベクトルが得られるフレーム
を求める。refは可変長符号化され、値が小さい程符
号長の小さい符号が割り当てられる。
For example, it is possible to specify the reference image by setting ref = 1 when the immediately preceding frame is used as the reference image, and by setting ref = 2 when setting the two frames before the reference image. These reference images can be designated for each small area such as a macroblock. On the encoding side, a motion search is performed in each frame stored in the reference image memory,
A frame from which a motion vector with the smallest prediction error is obtained is obtained. The ref is variable-length coded, and the smaller the value, the smaller the code length is assigned.

【0021】なお、動き探索時に使用する参照画像に
は、過去の入力画像を使う方法と、過去の復号画像を使
う方法のいずれも可能である。
As the reference image used for the motion search, either a method using a past input image or a method using a past decoded image can be used.

【0022】[0022]

【発明が解決しようとする課題】従来のSEA方法によ
れば、位置(a,b)に対して最もMADの小さい位置
(x0+a,y0+b)を求められる。しかし、この動き
ベクトル(x0,y0)から式(5)を使って得られる
(x,y)を符号化するため、必ずしも最も絶対値差分
和が小さい位置で領域毎の符号量が最も小さくなるとは
限らない。すなわち、従来のSEA方法で求めた位置の
他に、絶対値差分和と動きベクトル(x,y)の符号量
評価値の合計、すなわち予測誤差の符号量と動きベクト
ル(x,y)の符号量の合計が最も小さくなる位置(x
0+a,y0+b)が存在する場合があり、従来のSEA
方法では最も符号化効率の良い動きベクトルを求めるこ
とができなかった。
According to the conventional SEA method, the position (x 0 + a, y 0 + b) having the smallest MAD with respect to the position (a, b) can be obtained. However, since (x, y) obtained by using Expression (5) is encoded from this motion vector (x 0 , y 0 ), the code amount for each area is always the largest at the position where the absolute value difference sum is the smallest. It doesn't always get smaller. That is, in addition to the position obtained by the conventional SEA method, the sum of the absolute value difference sum and the code amount evaluation value of the motion vector (x, y), that is, the code amount of the prediction error and the code of the motion vector (x, y) The position (x
0 + a, y 0 + b) may exist and the conventional SEA
The method could not find the motion vector with the highest coding efficiency.

【0023】また、複数のフレームから参照画像を選択
する方法においては、参照画像を指定する情報が動きベ
クトルとは別に必要なため、従来のSEA方法で求めた
位置の他に、絶対値差分和と動きベクトル(x,y)の
符号量評価値と参照画像と指定する情報の符号量評価値
の合計、すなわち予測誤差の符号量と動きベクトル
(x,y)の符号量と参照画像と指定する情報の符号量
の合計が最も小さくなる、位置(x0+a,y0+b)と
参照画像の組み合わせが存在する場合がある。そのた
め、従来のSEA方法では最も符号化効率の良い動きベ
クトルと参照画像を求めることができなかった。
Further, in the method of selecting a reference image from a plurality of frames, the information designating the reference image is required separately from the motion vector. Therefore, in addition to the position obtained by the conventional SEA method, the absolute value difference sum is obtained. And the sum of the code amount evaluation value of the motion vector (x, y) and the reference image and the code amount evaluation value of the information to be specified, that is, the code amount of the prediction error, the code amount of the motion vector (x, y), and the reference image There may be a combination of the position (x 0 + a, y 0 + b) and the reference image in which the total code amount of the information to be used is the smallest. Therefore, the conventional SEA method cannot obtain the motion vector and the reference image with the highest coding efficiency.

【0024】本発明の目的は、上記の課題を解決した動
画像符号化方法、この方法のプログラムおよびこのプロ
グラムを記録した記録媒体を提供することにある。
An object of the present invention is to provide a moving picture coding method that solves the above problems, a program for this method, and a recording medium recording this program.

【0025】[0025]

【課題を解決するための手段】上記の課題を解決するた
め、本発明では、以下の動画像符号化方法、この方法の
プログラムおよびこのプログラムを記録した記録媒体を
特徴とする。
In order to solve the above problems, the present invention is characterized by the following moving picture coding method, a program for this method, and a recording medium recording this program.

【0026】(方法の発明) (1)入力画像を分割した現領域毎に動き探索をする動
画像符号化方法であり、参照画像内探索位置Aにおけ
る、現領域画素と参照画像画素との間の絶対値差分和W
を求める絶対値差分和計算手段と、現領域内画素値の合
計Rを求める現領域内画素計算手段と、前記探索位置A
とは異なる探索位置Bにおける、現領域と同数の画素の
画素値の合計Mを求める参照画像内画素計算手段と、前
記探索位置AまたはBを動きベクトルとする場合の動き
ベクトル符号量の評価値VAまたはVBを求める動きベ
クトル符号量評価手段と、前記現領域内画素計算手段で
求められる探索位置Rと前記参照画像内画素計算手段で
求められる探索位置Mとの差の絶対値に、前記動きベク
トル符号量評価手段で求められる評価値VBを加算して
探索位置評価値Dを求める探索位置評価手段と、前記絶
対値差分和計算手段で求められる絶対値差分和Wと前記
動きベクトル符号量評価手段で求められる評価値VAを
加算して絶対値差分和評価値Eを求める絶対値差分和評
価手段と、を用いて動き探索をする動画像符号化方法で
あって、前記探索位置評価手段で求められる探索位置評
価値Dと前記絶対値差分和評価手段で求められる絶対値
差分和評価値Eの大小を比較し、前記Dの値がEの値以
下の場合に、絶対値差分和計算手段が前記探索位置Bに
おける現領域画素と参照画像画素との間の絶対値差分和
Wを求めることを特徴とする。
(Invention of Method) (1) A moving image coding method for performing a motion search for each current region obtained by dividing an input image, and between a current region pixel and a reference image pixel at a search position A in a reference image. Absolute value difference W of
And an absolute value difference sum calculating means for calculating the sum of the pixel values in the current area, and a search position A for calculating the sum R of the pixel values in the current area.
A reference image pixel calculation means for obtaining the sum M of the pixel values of the same number of pixels at a search position B different from the above, and an evaluation value of the motion vector code amount when the search position A or B is a motion vector. The motion vector code amount evaluating means for obtaining VA or VB, the absolute value of the difference between the search position R obtained by the current area pixel calculating means and the search position M obtained by the reference image pixel calculating means, and the motion A search position evaluation means for adding the evaluation value VB obtained by the vector code amount evaluation means to obtain a search position evaluation value D, an absolute value difference sum W obtained by the absolute value difference sum calculation means, and the motion vector code amount evaluation. And an absolute value difference sum evaluation means for adding the evaluation value VA obtained by the means to obtain an absolute value difference sum evaluation value E. The search position evaluation value D obtained by the position evaluation means is compared with the absolute value difference sum evaluation value E obtained by the absolute value difference sum evaluation means, and if the value of D is equal to or less than the value E, the absolute value is calculated. It is characterized in that the difference sum calculation means obtains an absolute value difference sum W between the current region pixel and the reference image pixel at the search position B.

【0027】(2)入力画像を分割した現領域毎に、画
像を複数フレーム(P1〜Pn)蓄積できる参照画像メ
モリから参照画像を選択して、動き探索をする動画像符
号化方法であり、参照画像Pi内探索位置Aにおける、
現領域画素と参照画像画素との間の絶対値差分和Wを求
める絶対値差分和計算手段と、現領域内画素値の合計R
を求める現領域内画素計算手段と、前記参照画像Piと
は異なる参照画像Pj内の探索位置Bにおける、現領域
と同数の画素の画素値の合計Mを求める参照画像内画素
計算手段と、前記探索位置AまたはBを動きベクトルと
する場合の動きベクトル符号量の評価値VAまたはVB
を求める動きベクトル符号量評価手段と、前記参照画像
PiまたはPjを指定する情報を符号化する符号量の評
価値RiまたはRjを求める参照画像指定符号量評価手
段と、前記現領域内画素計算手段で求められる合計Rと
前記参照画像内画素計算手段で求められる合計Mとの差
の絶対値に、前記動きベクトル符号量評価手段で求めら
れる評価値VBと前記参照画像指定符号量評価手段で求
められる評価値Rjを加算して探索位置評価値Dを求め
る探索位置評価手段と、前記絶対値差分和計算手段で求
められる絶対値差分和Wに前記動きベクトル符号量評価
手段で求められる評価値VAと前記参照画像指定符号量
評価手段で求められる評価値Riを加算して絶対値差分
和評価値Eを求める絶対値差分和評価手段と、を用いて
動き探索をする動画像符号化方法であって、前記探索位
置評価手段で求められる探索位置評価値Dと前記絶対値
差分和評価手段で求められる絶対値差分和評価値Eの大
小を比較し、Dの値がEの値以下の場合に、絶対値差分
和計算手段が前記参照画像Pj内の探索位置Bにおけ
る、現領域画素と参照画像画素との間の絶対値差分和W
を求めることを特徴とする。
(2) A moving picture coding method for selecting a reference picture from a reference picture memory capable of accumulating a plurality of frames (P1 to Pn) for each current area obtained by dividing an input picture and performing a motion search, At the search position A within the reference image Pi,
Absolute value difference sum calculation means for calculating the absolute value difference sum W between the current area pixel and the reference image pixel, and the sum R of the pixel values in the current area
A pixel in the current area for calculating a pixel in the current area, and a pixel in the reference image for calculating a total M of pixel values of the same number of pixels as the current area at a search position B in a reference image Pj different from the reference image Pi; Evaluation value VA or VB of the code amount of the motion vector when the search position A or B is used as the motion vector
, A reference image designation code amount evaluation unit for obtaining an evaluation value Ri or Rj of a code amount for encoding the information designating the reference image Pi or Pj, and the current area pixel calculation unit. In the absolute value of the difference between the total R obtained in step S1 and the total M obtained in the reference image pixel calculation means, the evaluation value VB obtained by the motion vector code amount evaluation means and the reference image designated code amount evaluation means are obtained. The evaluation value Rj obtained by the motion vector code amount evaluation means and the search position evaluation means for obtaining the search position evaluation value D by adding the obtained evaluation value Rj, and the absolute value difference sum W obtained by the absolute value difference sum calculation means. And an absolute value difference sum evaluation unit for adding the evaluation value Ri obtained by the reference image designation code amount evaluation unit to obtain an absolute value difference sum evaluation value E. In the image coding method, the search position evaluation value D obtained by the search position evaluation means is compared with the absolute value difference sum evaluation value E obtained by the absolute value difference sum evaluation means, and the value of D is E. When the value is less than or equal to the value of, the absolute value difference sum calculating means calculates the absolute value difference sum W between the current region pixel and the reference image pixel at the search position B in the reference image Pj.
It is characterized by seeking.

【0028】(プログラムの発明) (3)入力画像を分割した現領域毎に動き探索をする動
画像符号化方法のプログラムであり、参照画像内探索位
置Aにおける、現領域画素と参照画像画素との間の絶対
値差分和Wを求める絶対値差分和計算手順と、現領域内
画素値の合計Rを求める現領域内画素計算手順と、前記
探索位置Aとは異なる探索位置Bにおける、現領域と同
数の画素の画素値の合計Mを求める参照画像内画素計算
手順と、前記探索位置AまたはBを動きベクトルとする
場合の動きベクトル符号量の評価値VAまたはVBを求
める動きベクトル符号量評価手順と、前記現領域内画素
計算手順で求められる探索位置Rと前記参照画像内画素
計算手順で求められる探索位置Mとの差の絶対値に、前
記動きベクトル符号量評価手順で求められる評価値VB
を加算して探索位置評価値Dを求める探索位置評価手順
と、前記絶対値差分和計算手順で求められる絶対値差分
和Wと前記動きベクトル符号量評価手順で求められる評
価値VAを加算して絶対値差分和評価値Eを求める絶対
値差分和評価手順と、前記探索位置評価手順で求められ
る探索位置評価値Dと前記絶対値差分和評価手順で求め
られる絶対値差分和評価値Eの大小を比較し、前記Dの
値がEの値以下の場合に、絶対値差分和計算手順が前記
探索位置Bにおける現領域画素と参照画像画素との間の
絶対値差分和Wを求める手順とを有することを特徴とす
る。
(Invention of Program) (3) This is a program of a moving picture coding method for performing a motion search for each current area obtained by dividing an input image, and presents a current area pixel and a reference image pixel at a search position A in the reference image. Absolute value difference sum calculation procedure for obtaining the absolute value difference sum W between them, a current area pixel calculation procedure for obtaining a total R of pixel values in the current area, and a current area at a search position B different from the search position A. And a reference image pixel calculation procedure for obtaining a sum M of pixel values of the same number of pixels, and a motion vector code amount evaluation for obtaining a motion vector code amount evaluation value VA or VB when the search position A or B is a motion vector. Procedure, and the absolute value of the difference between the search position R obtained by the pixel calculation procedure in the current region and the search position M obtained by the pixel calculation procedure in the reference image, obtained by the motion vector code amount evaluation procedure. Evaluation value VB
Is added to obtain a search position evaluation value D, and an absolute value difference sum W obtained in the absolute value difference sum calculation procedure and an evaluation value VA obtained in the motion vector code amount evaluation procedure are added. Absolute value difference sum evaluation procedure for obtaining absolute value difference sum evaluation value E, and search position evaluation value D obtained in the search position evaluation procedure and absolute value difference sum evaluation value E obtained in the absolute value difference sum evaluation procedure And when the value of D is less than or equal to the value of E, the absolute value difference sum calculation procedure determines the absolute value difference sum W between the current region pixel and the reference image pixel at the search position B. It is characterized by having.

【0029】(4)入力画像を分割した現領域毎に、画
像を複数フレーム(P1〜Pn)蓄積できる参照画像メ
モリから参照画像を選択して、動き探索をする動画像符
号化方法のプログラムであり、参照画像Pi内探索位置
Aにおける、現領域画素と参照画像画素との間の絶対値
差分和Wを求める絶対値差分和計算手順と、現領域内画
素値の合計Rを求める現領域内画素計算手順と、前記参
照画像Piとは異なる参照画像Pj内の探索位置Bにお
ける、現領域と同数の画素の画素値の合計Mを求める参
照画像内画素計算手順と、前記探索位置AまたはBを動
きベクトルとする場合の動きベクトル符号量の評価値V
AまたはVBを求める動きベクトル符号量評価手順と、
前記参照画像PiまたはPjを指定する情報を符号化す
る符号量の評価値RiまたはRjを求める参照画像指定
符号量評価手順と、前記現領域内画素計算手順で求めら
れる合計Rと前記参照画像内画素計算手順で求められる
合計Mとの差の絶対値に、前記動きベクトル符号量評価
手順で求められる評価値VBと前記参照画像指定符号量
評価手順で求められる評価値Rjを加算して探索位置評
価値Dを求める探索位置評価手順と、前記絶対値差分和
計算手順で求められる絶対値差分和Wに前記動きベクト
ル符号量評価手順で求められる評価値VAと前記参照画
像指定符号量評価手順で求められる評価値Riを加算し
て絶対値差分和評価値Eを求める絶対値差分和評価手順
と、前記探索位置評価手順で求められる探索位置評価値
Dと前記絶対値差分和評価手順で求められる絶対値差分
和評価値Eの大小を比較し、Dの値がEの値以下の場合
に、絶対値差分和計算手順が前記参照画像Pj内の探索
位置Bにおける、現領域画素と参照画像画素との間の絶
対値差分和Wを求める手順とを有することを特徴とす
る。
(4) A program of a moving picture coding method for performing a motion search by selecting a reference picture from a reference picture memory capable of accumulating a plurality of frames (P1 to Pn) of the picture for each current area obtained by dividing the input picture. Yes, the absolute value difference sum calculation procedure for obtaining the sum W of absolute value differences between the current region pixel and the reference image pixel at the search position A in the reference image Pi, and the current region for obtaining the sum R of the pixel values in the current region Pixel calculation procedure, a reference image pixel calculation procedure for obtaining a total M of pixel values of the same number of pixels as the current region at a search position B in a reference image Pj different from the reference image Pi, and the search position A or B. Where V is the motion vector, the evaluation value V of the motion vector code amount
A motion vector code amount evaluation procedure for obtaining A or VB;
A reference image designated code amount evaluation procedure for obtaining an evaluation value Ri or Rj of a code amount for encoding information designating the reference image Pi or Pj, and a total R obtained in the pixel calculation procedure in the current region and the reference image The absolute value of the difference from the total M calculated in the pixel calculation procedure is added with the evaluation value VB calculated in the motion vector code quantity evaluation procedure and the evaluation value Rj calculated in the reference image designation code quantity evaluation procedure to search position. In the search position evaluation procedure for obtaining the evaluation value D and the absolute value difference sum W obtained in the absolute value difference sum calculation procedure, the evaluation value VA obtained in the motion vector code quantity evaluation procedure and the reference image designation code quantity evaluation procedure are used. Absolute value difference sum evaluation procedure for calculating the absolute value difference sum evaluation value E by adding the calculated evaluation values Ri, and the search position evaluation value D and the absolute value difference calculated in the search position evaluation procedure. The magnitudes of the absolute value difference sum evaluation values E obtained in the sum evaluation procedure are compared, and when the value of D is equal to or less than the value of E, the absolute value difference sum calculation procedure is performed at the search position B in the reference image Pj. And a step of obtaining an absolute value difference sum W between the region pixel and the reference image pixel.

【0030】(記録媒体の発明) (5)入力画像を分割した現領域毎に動き探索をする動
画像符号化方法のプログラムを記録した記録媒体であ
り、参照画像内探索位置Aにおける、現領域画素と参照
画像画素との間の絶対値差分和Wを求める絶対値差分和
計算手順と、現領域内画素値の合計Rを求める現領域内
画素計算手順と、前記探索位置Aとは異なる探索位置B
における、現領域と同数の画素の画素値の合計Mを求め
る参照画像内画素計算手順と、前記探索位置AまたはB
を動きベクトルとする場合の動きベクトル符号量の評価
値VAまたはVBを求める動きベクトル符号量評価手順
と、前記現領域内画素計算手順で求められる探索位置R
と前記参照画像内画素計算手順で求められる探索位置M
との差の絶対値に、前記動きベクトル符号量評価手順で
求められる評価値VBを加算して探索位置評価値Dを求
める探索位置評価手順と、前記絶対値差分和計算手順で
求められる絶対値差分和Wと前記動きベクトル符号量評
価手順で求められる評価値VAを加算して絶対値差分和
評価値Eを求める絶対値差分和評価手順と、前記探索位
置評価手順で求められる探索位置評価値Dと前記絶対値
差分和評価手順で求められる絶対値差分和評価値Eの大
小を比較し、前記Dの値がEの値以下の場合に、絶対値
差分和計算手順が前記探索位置Bにおける現領域画素と
参照画像画素との間の絶対値差分和Wを求める手順とを
記録したことを特徴とする。
(Invention of Recording Medium) (5) A recording medium in which a program of a moving image coding method for performing a motion search for each current region obtained by dividing an input image is recorded, and the current region at the search position A in the reference image is recorded. An absolute value difference sum calculation procedure for obtaining an absolute value difference sum W between a pixel and a reference image pixel, a current area pixel calculation procedure for obtaining a total R of pixel values in the current area, and a search different from the search position A Position B
In the reference image for calculating the sum M of the pixel values of the same number of pixels as in the current region, and the search position A or B.
Where V is the motion vector, the motion vector code amount evaluation procedure for obtaining the evaluation value VA or VB of the motion vector code amount, and the search position R obtained by the current region pixel calculation procedure.
And the search position M obtained by the pixel calculation procedure in the reference image
And the absolute value of the difference calculated by the absolute value difference sum calculation procedure, and the search position evaluation value D obtained by adding the evaluation value VB obtained by the motion vector code amount evaluation procedure to the absolute value of the difference. Absolute value difference sum evaluation procedure for obtaining the absolute value difference sum evaluation value E by adding the difference sum W and the evaluation value VA obtained in the motion vector code amount evaluation procedure, and the search position evaluation value obtained in the search position evaluation procedure D is compared with the absolute value difference sum evaluation value E obtained in the absolute value difference sum evaluation procedure, and when the value of D is equal to or less than the value of E, the absolute value difference sum calculation procedure is performed at the search position B. The procedure for obtaining the absolute value difference sum W between the current area pixel and the reference image pixel is recorded.

【0031】(6)入力画像を分割した現領域毎に、画
像を複数フレーム(P1〜Pn)蓄積できる参照画像メ
モリから参照画像を選択して、動き探索をする動画像符
号化方法のプログラムを記録した記録媒体であり、参照
画像Pi内探索位置Aにおける、現領域画素と参照画像
画素との間の絶対値差分和Wを求める絶対値差分和計算
手順と、現領域内画素値の合計Rを求める現領域内画素
計算手順と、前記参照画像Piとは異なる参照画像Pj
内の探索位置Bにおける、現領域と同数の画素の画素値
の合計Mを求める参照画像内画素計算手順と、前記探索
位置AまたはBを動きベクトルとする場合の動きベクト
ル符号量の評価値VAまたはVBを求める動きベクトル
符号量評価手順と、前記参照画像PiまたはPjを指定
する情報を符号化する符号量の評価値RiまたはRjを
求める参照画像指定符号量評価手順と、前記現領域内画
素計算手順で求められる合計Rと前記参照画像内画素計
算手順で求められる合計Mとの差の絶対値に、前記動き
ベクトル符号量評価手順で求められる評価値VBと前記
参照画像指定符号量評価手順で求められる評価値Rjを
加算して探索位置評価値Dを求める探索位置評価手順
と、前記絶対値差分和計算手順で求められる絶対値差分
和Wに前記動きベクトル符号量評価手順で求められる評
価値VAと前記参照画像指定符号量評価手順で求められ
る評価値Riを加算して絶対値差分和評価値Eを求める
絶対値差分和評価手順と、前記探索位置評価手順で求め
られる探索位置評価値Dと前記絶対値差分和評価手順で
求められる絶対値差分和評価値Eの大小を比較し、Dの
値がEの値以下の場合に、絶対値差分和計算手順が前記
参照画像Pj内の探索位置Bにおける、現領域画素と参
照画像画素との間の絶対値差分和Wを求める手順とを記
録したことを特徴とする。
(6) A program of a moving picture coding method for performing a motion search by selecting a reference picture from a reference picture memory capable of accumulating a plurality of frames (P1 to Pn) of the picture for each current area obtained by dividing the input picture. The recording medium is a recording medium in which the absolute value difference sum calculation procedure for obtaining the absolute value difference sum W between the current area pixel and the reference image pixel at the search position A in the reference image Pi and the sum R of the pixel values in the current area R And a reference image Pj different from the reference image Pi.
In the reference image pixel calculation procedure for obtaining the sum M of the pixel values of the same number of pixels at the search position B in the reference area, and the evaluation value VA of the motion vector code amount when the search position A or B is the motion vector. Alternatively, a motion vector code amount evaluation procedure for obtaining VB, a reference image designation code amount evaluation procedure for obtaining an evaluation value Ri or Rj of a code amount for encoding information designating the reference image Pi or Pj, and the pixel in the current area The absolute value of the difference between the total R calculated in the calculation procedure and the total M calculated in the reference image pixel calculation procedure is set to the evaluation value VB calculated in the motion vector code quantity evaluation procedure and the reference image designated code quantity evaluation procedure. In the search position evaluation procedure of adding the evaluation value Rj obtained in step S3 to obtain the search position evaluation value D, and the absolute value difference sum W obtained in the absolute value difference sum calculation procedure The absolute value difference sum evaluation procedure for calculating the absolute value difference sum evaluation value E by adding the evaluation value VA calculated in the reference code quantity evaluation procedure and the evaluation value Ri calculated in the reference image designation code quantity evaluation procedure, and the search position. The search position evaluation value D obtained in the evaluation procedure is compared with the absolute value difference sum evaluation value E obtained in the absolute value difference sum evaluation procedure, and when the value of D is equal to or less than the value E, the absolute value difference sum is calculated. It is characterized in that the calculation procedure records a procedure for obtaining an absolute value difference sum W between the current area pixel and the reference image pixel at the search position B in the reference image Pj.

【0032】(作用説明)請求項1等の発明によれば、
動きベクトルの符号量評価値とMADの合計が最も小さ
くなる動きベクトルを求めることができる。元々SEA
方法は、最終的に求める位置(x+a,y+b)と任意
の探索位置(m+a,n+b)に関して以下の式(6)
(7)の関係が有ることを使って不等式(3)を導いて
いる。
(Explanation of Action) According to the invention of claim 1 and the like,
It is possible to obtain the motion vector that minimizes the sum of the code amount evaluation value of the motion vector and MAD. Originally SEA
The method is based on the following equation (6) regarding the finally obtained position (x + a, y + b) and an arbitrary search position (m + a, n + b).
The inequality (3) is derived by using the relationship of (7).

【0033】[0033]

【数3】 [Equation 3]

【0034】位置(x+a,y+b)における動きベク
トルの符号量の評価値をB(x+a,y+b)とする
と、式(6)から次式が求められる。
Assuming that the evaluation value of the code amount of the motion vector at the position (x + a, y + b) is B (x + a, y + b), the following expression is obtained from the expression (6).

【0035】[0035]

【数4】 [Equation 4]

【0036】式(7)から最終的に求める位置(x+
a,y+b)と任意位置(m+a,n+b)の間には以
下の式(9)の関係がある。
The position (x +) finally obtained from equation (7)
There is a relationship of the following expression (9) between a, y + b) and an arbitrary position (m + a, n + b).

【0037】[0037]

【数5】 [Equation 5]

【0038】従って、以下の式(10)の関係式が最終
的に求める位置(x+a,y+b)と任意位置(m+
a,n+b)の間にはあることになる。
Therefore, the position (x + a, y + b) and the arbitrary position (m +) finally obtained by the relational expression of the following expression (10) are obtained.
It will be between a, n + b).

【0039】[0039]

【数6】 [Equation 6]

【0040】この不等式(10)を不等式(3)の代わ
りにSEA方法で使うことにより、動きベクトルの符号
量評価値とMAD、すなわち動きベクトルの符号量と予
測誤差の符号量の合計が最も小さくなる動きベクトルを
求めることができる。
By using the inequality (10) in the SEA method instead of the inequality (3), the sum of the motion vector code amount evaluation value and MAD, that is, the motion vector code amount and the prediction error code amount is the smallest. Can be obtained.

【0041】また、請求項2等の発明によれば、複数の
フレームから参照画像を選択する符号化方法において、
MADと動きベクトルの符号量と参照画像と指定する情
報の合計が最も小さくなる位置と参照画像の組み合わせ
を求めることができる。上記と同様にして求めた以下の
不等式(11)を不等式(3)の代わりに使ってSEA
方法を実行することにより実現できる。なおC(t,t
−k)は入力画像(時刻t)に対して時刻(t−k)の
フレームを選択する場合における、参照画像を指定する
情報の符号量の評価値である。
Further, according to the invention of claim 2 or the like, in the encoding method for selecting a reference image from a plurality of frames,
It is possible to obtain a combination of the reference image and the position where the sum of the MAD, the code amount of the motion vector, the reference image, and the designated information is the smallest. Using the following inequality (11) obtained in the same way as above instead of inequality (3), SEA
It can be realized by executing the method. Note that C (t, t
-K) is an evaluation value of the code amount of the information designating the reference image when the frame at time (t-k) is selected with respect to the input image (time t).

【0042】[0042]

【数7】 [Equation 7]

【0043】また、MAD(x+a,y+b,t−k)
は以下の式(12)によって計算され、M(x+a,y
+b,t−k)は以下の式(13)によって計算され
る。
Further, MAD (x + a, y + b, tk)
Is calculated by the following equation (12), and M (x + a, y
+ B, tk) is calculated by the following equation (13).

【0044】[0044]

【数8】 [Equation 8]

【0045】参照画像が複数フレーム分ある場合の動作
フローを図5に示す。なおこの動作フローでは、R
(a,b)とM(x+a,y+b,t−k)(k>=
1)の値は既に求められているものとする。参照画像を
指定する情報refは領域毎に求めるものとする。
FIG. 5 shows an operation flow when there are a plurality of reference images. In this operation flow, R
(A, b) and M (x + a, y + b, tk) (k> =
It is assumed that the value of 1) has already been obtained. The information ref that specifies the reference image is obtained for each area.

【0046】[0046]

【発明の実施の形態】本発明の実施形態を図面を参照し
て説明する。本実施形態は、3フレーム分の参照画像メ
モリを備えておき、各フレームで動き探索して、動きベ
クトルの符号量と参照画像を指定する情報の符号量と予
測誤差の符号量の合計が最も小さくなる、動きベクトル
と参照画像を指定する情報を求める方法を示す。動きベ
クトルと参照画像を指定する情報はマクロブロック毎に
求めるものとする。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described with reference to the drawings. In the present embodiment, a reference image memory for three frames is provided, motion search is performed in each frame, and the sum of the code amount of the motion vector, the code amount of the information designating the reference image, and the code amount of the prediction error is the most. A method of obtaining information that specifies a motion vector and a reference image that become smaller will be described. Information designating the motion vector and the reference image is obtained for each macroblock.

【0047】画像符号化装置の概要を図1に示す。入力
画像全体のM(x+a,y+b,t)とR(a,b,
t)を求めるMR計算部101と、過去のフレームの入
力画像を蓄積する参照画像メモリ104と、参照画像メ
モリに蓄積された過去の入力画像それぞれに対応するM
を蓄積するM蓄積メモリ102と、参照画像と入力画像
との間のMADを計算するMAD計算部110と、周囲
のマクロブロックで既に得られた動きベクトル情報を使
って現マクロブロックの動きベクトルの符号量を評価す
る動きベクトル符号量評価部106と、探索しているフ
レームを指定する情報の符号量を評価する参照画像指定
符号量評価部107と、MR計算部で得られたRと、M
蓄積メモリに蓄積されたMと、動きベクトル符号量評価
部で得られる評価値Bと参照画像指定符号量評価部で得
られる評価値Cとから、前記の不等式(11)を使って
SEA方法を実行するSEA実行部105と、過去のフ
レームの復号画像を蓄積する復号画像メモリ109と、
復号画像を使って予測画像を作成し入力画像を符号化す
るフレーム間予測符号化部103と、符号化データを復
号する復号部108を備える。
An outline of the image coding apparatus is shown in FIG. M (x + a, y + b, t) and R (a, b, of the entire input image
t), an MR calculation unit 101, a reference image memory 104 for accumulating input images of past frames, and M corresponding to past input images accumulated in the reference image memory.
Of the motion vector of the current macroblock by using the M storage memory 102 for storing the MAD, the MAD calculation unit 110 for calculating the MAD between the reference image and the input image, and the motion vector information already obtained in the surrounding macroblocks. A motion vector code amount evaluation unit 106 that evaluates the code amount, a reference image designation code amount evaluation unit 107 that evaluates the code amount of information that specifies the frame that is being searched, R obtained by the MR calculation unit, and M
From the M stored in the storage memory, the evaluation value B obtained by the motion vector code amount evaluation unit, and the evaluation value C obtained by the reference image designation code amount evaluation unit, the SEA method is calculated using the above inequality (11). A SEA execution unit 105 to be executed, a decoded image memory 109 for storing decoded images of past frames,
An interframe predictive coding unit 103 that creates a predicted image using a decoded image and codes an input image, and a decoding unit 108 that decodes coded data are provided.

【0048】以上の構成において、時刻tにおける現画
像に対して、参照画像メモリ104には時刻t−1,t
−2,t−3における入力画像I1,I2,I3が蓄積
されており、M蓄積メモリ102には各時刻のMの情報
M1,M2,M3が蓄積されており、復号画像メモリ1
09には各時刻の復号画像D1,D2,D3が蓄積され
ているものとする。また、各フレームでの探索範囲は
(−16,−16)〜(+16,+16)までとする。
In the above structure, the current image at time t is stored in the reference image memory 104 at times t−1, t.
Input images I1, I2, I3 at −2, t−3 are stored, and M information M1, M2, M3 at each time is stored in the M storage memory 102.
It is assumed that the decoded images D1, D2, D3 at each time are stored in 09. The search range in each frame is (-16, -16) to (+16, +16).

【0049】動きベクトル符号量評価部106は、動き
ベクトル情報(x,y)に対して以下の式(14)でB
(x+a,y+b)を求めるものとする。ただし、ここ
での動きベクトル情報(x,y)は、動き探索で求めら
れる動きベクトル(x0,y0)から前記の式(5)によ
って求められるものとする。参照画像指定符号量評価部
107は参照画像を指定する情報refに対して以下の
式(15)でC(t,t−ref)を求めるものとす
る。
The motion vector code amount evaluation unit 106 uses B in the following equation (14) for the motion vector information (x, y).
It is assumed that (x + a, y + b) is obtained. However, the motion vector information (x, y) here is assumed to be obtained by the above equation (5) from the motion vector (x 0 , y 0 ) obtained by the motion search. It is assumed that the reference image designation code amount evaluation unit 107 obtains C (t, t-ref) by the following formula (15) for the information ref that designates the reference image.

【0050】[0050]

【数9】 [Equation 9]

【0051】このような前提のもとで時刻tの現画像が
入力された場合の動作は次のようになる。まず、MR計
算部101は入力画像のR(a,b)とM(x+a,y
+b,t)を求める。なお、位置(a,b)はマクロブ
ロックの左上の画素位置を示すものとする。
The operation when the current image at time t is input on the basis of such a premise is as follows. First, the MR calculation unit 101 uses R (a, b) and M (x + a, y) of the input image.
+ B, t). It should be noted that the position (a, b) indicates the upper left pixel position of the macroblock.

【0052】SEA実行部105は、図5の動作フロー
に従って、各マクロブロックの動きベクトルと参照画像
を指定する情報を求める。SEA実行部105は、まず
第1の参照画像に対する全マクロブロックの動きベクト
ルを求める。参照画像をI1に設定する(Step1
1)。
The SEA execution unit 105 obtains information designating a motion vector of each macroblock and a reference image according to the operation flow of FIG. The SEA execution unit 105 first obtains motion vectors of all macroblocks for the first reference image. Set the reference image to I1 (Step1
1).

【0053】位置(a,b)におけるマクロブロックの
動きベクトルを次のようにして求める。探索位置の初期
値を(m,n)=(−16,−16)に設定して、MA
D(m+a,n+b,t−1)とB(m+a,n+b)
とC(t,t−1)を求める(Step12)。このう
ち、MAD(m+a,n+b,t−1)は参照画像メモ
リに蓄積されたI1と入力画像からMAD計算部110
が求め、B(m+a,n+b)の値は動きベクトル符号
量評価部106が求め、C(t,t−1)の値は参照画
像指定符号量評価部107が求める。
The motion vector of the macroblock at the position (a, b) is obtained as follows. The initial value of the search position is set to (m, n) = (-16, -16), and MA
D (m + a, n + b, t-1) and B (m + a, n + b)
And C (t, t-1) are obtained (Step 12). Of these, MAD (m + a, n + b, t-1) is calculated from the I1 accumulated in the reference image memory and the input image by the MAD calculation unit 110.
The value of B (m + a, n + b) is obtained by the motion vector code amount evaluation unit 106, and the value of C (t, t−1) is obtained by the reference image designation code amount evaluation unit 107.

【0054】次に、探索位置を隣の画素(x,y)=
(−15,−16)に設定する。MR計算部101で求
めたR(a,b)と、M蓄積メモリ102に蓄積された
M(x+a,y+b,t−1)と、動きベクトル符号量
評価部106で得られるB(x+a,y+b)と、参照
画像指定符号量評価部107で得られるC(t,t−
1)を使い、不等式(11)を満たすかどうかを検査す
る。これを繰り返しながら、不等式(11)を満たす探
索位置(x,y)を求める(Step13)。
Next, the search position is set to the adjacent pixel (x, y) =
Set to (-15, -16). R (a, b) obtained by the MR calculation unit 101, M (x + a, y + b, t−1) stored in the M storage memory 102, and B (x + a, y + b) obtained by the motion vector code amount evaluation unit 106. ) And C (t, t−) obtained by the reference image designation code amount evaluation unit 107.
1) is used to check whether the inequality (11) is satisfied. By repeating this, the search position (x, y) that satisfies the inequality (11) is obtained (Step 13).

【0055】不等式(11)を満たす探索位置(x0
0)が得られた場合には、MAD計算部110でMA
D(x0+a,y0+b,t−1)を求める、MAD(x
0+a,y0+b,t−1)+B(x0+a,y0+b)+
C(t,t−1)と、MAD(m+a,n+b,t−
1)+B(m+a,n+b)+C(t,t−1)を比較
する(Step14)。
Search position (x 0 , which satisfies inequality (11),
If y 0 ) is obtained, the MAD calculator 110 calculates MA
D (x 0 + a, y 0 + b, t-1), MAD (x
0 + a, y 0 + b , t-1) + B (x 0 + a, y 0 + b) +
C (t, t-1) and MAD (m + a, n + b, t-
1) + B (m + a, n + b) + C (t, t-1) are compared (Step 14).

【0056】前者の方が値が小さい場合には、不等式
(11)におけるMAD(m+a,n+b,t−1)を
MAD(x0+a,y0+b,t−1)に、B(m+a,
n+b)をB(x0+a,y0+b)に入れ替える(St
ep15)。そして、Step13に戻って、上記の処
理を繰り返し、位置(a,b)のマクロブロックに対す
る動きベクトルを求める。この時点では参照画像を指定
する情報refは1である。
[0056] When the former is smaller values, the MAD (m + a, n + b, t-1) and MAD (x 0 + a, y 0 + b, t-1) in the inequality (11), B (m + a,
(n + b) is replaced with B (x 0 + a, y 0 + b) (St
ep15). Then, returning to Step 13, the above process is repeated to obtain the motion vector for the macroblock at the position (a, b). At this point, the information ref that specifies the reference image is 1.

【0057】Step12に戻って上記の処理を繰り返
し、全てのマクロブロックの動きベクトルを求める。
Returning to Step 12, the above processing is repeated to obtain motion vectors of all macroblocks.

【0058】次に、Step11に戻り、参照画像をI
2に設定する。位置(a,b)におけるマクロブロック
の動きベクトルと参照画像を指定する情報を次のように
して求める。
Next, returning to Step 11, the reference image is I
Set to 2. Information specifying the motion vector of the macroblock at the position (a, b) and the reference image is obtained as follows.

【0059】Step12をスキップする。Step1
3では、探索位置(x,y)=(−16,−16)にお
いて、MR計算部101で求めたR(a,b)と、M蓄
積メモリ102に蓄積されたM(x+a,y+b,t−
2)と、動きベクトル符号量評価部106で得られるB
(x+a,y+b)と、参照画像指定符号量評価部10
7で得られるC(t,t−2)を使い、不等式(11)
を満たすかどうかを検査する。これを繰り返しながら、
不等式(11)を満たす探索位置(x,y)を求める
(Step13)。
Step 12 is skipped. Step1
3, in the search position (x, y) = (− 16, −16), R (a, b) obtained by the MR calculation unit 101 and M (x + a, y + b, t stored in the M storage memory 102). −
2) and B obtained by the motion vector code amount evaluation unit 106
(X + a, y + b) and reference image designation code amount evaluation unit 10
Using C (t, t-2) obtained in step 7, the inequality (11)
Inspect to see if they meet. While repeating this,
A search position (x, y) that satisfies the inequality (11) is obtained (Step 13).

【0060】不等式(11)を満たす探索位置(x0
0)が得られた場合には、MAD計算部110でMA
D(x0+a,y0+b,t−2)を求める。MAD(x
0+a,y0+b,t−2)+B(x0+a,y0+b)+
C(t,t−2)と、MAD(m+a,n+b,t−
1)+B(m+a,n+b)+C(t,t−1)を比較
する(Step4)。
Search position (x 0 , which satisfies inequality (11)
If y 0 ) is obtained, the MAD calculator 110 calculates MA
D (x 0 + a, y 0 + b, t-2) is calculated. MAD (x
0 + a, y 0 + b , t-2) + B (x 0 + a, y 0 + b) +
C (t, t-2) and MAD (m + a, n + b, t-
1) + B (m + a, n + b) + C (t, t-1) are compared (Step 4).

【0061】前者の方が値が小さい場合には、不等式
(11)におけるMAD(m+a,n+b,t−1)を
MAD(x0+a,y0+b,t−2)に、B(m+a,
n+b)をB(x0+a,y0+b)に、C(t,t−
1)をC(t,t−2)に入れ替える(Step1
5)。Step13に戻って上記の処理を繰り返し、位
置(a,b)のマクロブロックに対する動きベクトルと
参照画像を指定する情報を求める。
[0061] When the former is smaller values, the MAD (m + a, n + b, t-1) and MAD (x 0 + a, y 0 + b, t-2) in the inequality (11), B (m + a,
n + b) to B (x 0 + a, y 0 + b) and C (t, t-
Replace 1) with C (t, t-2) (Step 1)
5). Returning to Step 13, the above processing is repeated to obtain information designating the motion vector and the reference image for the macroblock at the position (a, b).

【0062】Step12に戻って上記の処理を繰り返
し、全てのマクロブロックの動きベクトルを求める。
Returning to Step 12, the above processing is repeated to obtain motion vectors of all macroblocks.

【0063】Step11に戻って参照画像をI3に設
定し、参照画像がt−2の時と同様な処理を繰り返す。
Returning to Step 11, the reference image is set to I3, and the same processing as when the reference image is t-2 is repeated.

【0064】すべての参照画像で動き探索を終了する
と、各マクロブロックにおいて、すべての参照画像と探
索位置において不等式(11)を満たす、動きベクトル
と参照画像を指定する情報を求めることができる。
When the motion search is completed for all the reference images, it is possible to obtain the information specifying the motion vector and the reference image in each macroblock, which satisfies the inequality (11) at all the reference images and the search positions.

【0065】次に、ここで得られた動きベクトルと参照
画像を指定する情報を使い、フレーム間予測符号化部1
03は復号画像メモリに蓄積されている復号画像から予
測画像を作成し、入力画像を符号化する。復号部108
は符号化データを復号する。すべてのマクロブロックの
符号化が終了すると、復号画像を復号画像メモリ109
に蓄積し、MR計算部101で求めたMをM蓄積メモリ
102に蓄積し、入力画像を参照画像メモリに蓄積す
る。
Next, using the motion vector obtained here and the information for designating the reference image, the interframe predictive coding unit 1
03 creates a predicted image from the decoded image stored in the decoded image memory and encodes the input image. Decoding unit 108
Decodes the encoded data. When all the macroblocks have been encoded, the decoded image is stored in the decoded image memory 109.
The M calculated by the MR calculation unit 101 is stored in the M storage memory 102, and the input image is stored in the reference image memory.

【0066】このように、本実施形態によれば、複数フ
レームの参照画像メモリを備えておき、マクロブロック
毎に参照画像を選択しながら動き補償を行う場合に、動
きベクトルの符号量と参照画像を指定する情報の符号量
と予測誤差の絶対値差分和の合計を最小にする、動きベ
クトルと参照画像を指定する情報を求めることができ
る。
As described above, according to this embodiment, when the reference image memory for a plurality of frames is provided and the motion compensation is performed while selecting the reference image for each macroblock, the code amount of the motion vector and the reference image are used. It is possible to obtain the information designating the motion vector and the reference image that minimizes the sum of the code amount of the information designating and the sum of the absolute differences of the prediction errors.

【0067】なお、本実施形態では参照画像を複数フレ
ーム分備えたが、1フレーム分備える構成にすることも
可能である。この場合のSEA方法では、不等式(1
1)の代わりに不等式(10)を使って動きベクトルの
符号量と絶対値差分和を評価する。この場合、画像符号
化装置では参照画像指定符号量評価部を備えない。
In this embodiment, the reference image is provided for a plurality of frames, but it may be configured to have one frame. In the SEA method in this case, the inequality (1
The inequality (10) is used instead of 1) to evaluate the code amount of the motion vector and the absolute value difference sum. In this case, the image coding apparatus does not include the reference image designated code amount evaluation unit.

【0068】また、本実施形態はMR計算部で入力画像
からRとMを同時に計算したが、入力画像からはRだけ
を求め、参照画像メモリに蓄積された参照画像からMを
求める構成も可能である。また、本実施形態ではマクロ
ブロック毎に動きベクトルを求めたが、縦横任意画素数
の領域毎に動きベクトルを求めても良い。
Further, in the present embodiment, R and M are calculated at the same time from the input image by the MR calculation unit, but only R can be obtained from the input image and M can be obtained from the reference image stored in the reference image memory. Is. Further, in the present embodiment, the motion vector is obtained for each macroblock, but the motion vector may be obtained for each region having an arbitrary number of vertical and horizontal pixels.

【0069】なお、本発明は、図1に示した装置の一部
又は全部の処理機能をプログラムとして構成してコンピ
ュータを用いて実現すること、あるいは図3、図5で示
した処理手順をプログラムとして構成してコンピュータ
に実行させることができる。また、コンピュータでその
各部の処理機能を実現するためのプログラム、あるいは
コンピュータにその処理手順を実行させるためのプログ
ラムを、そのコンピュータが読み取り可能な記録媒体、
例えば、FD(フロッピーディスク:登録商標)、M
O、ROM、メモリカード、CD、DVD、リムーバブ
ルディスクなどに記録して、保存したり、提供したりす
ることが可能であり、また、インターネットのような通
信ネットワークを介して配布したりすることが可能であ
る。
In the present invention, a part or all of the processing functions of the apparatus shown in FIG. 1 are configured as a program and implemented by using a computer, or the processing procedure shown in FIGS. Can be configured to run on a computer. A computer-readable recording medium that stores a program for realizing the processing functions of the respective parts of the computer, or a program for causing the computer to execute the processing procedure,
For example, FD (floppy disk: registered trademark), M
O, ROM, memory cards, CDs, DVDs, removable disks, etc. can be recorded, saved, and provided, and can be distributed via a communication network such as the Internet. It is possible.

【0070】[0070]

【発明の効果】以上のとおり、本発明によれば、SEA
方法において、予測誤差の絶対値差分和と動きベクトル
の符号量評価値の合計、すなわち予測誤差の符号量と動
きベクトルの符号量の合計が最も小さくなる動きベクト
ルを求めることができる。
As described above, according to the present invention, SEA
In the method, it is possible to obtain the motion vector having the minimum sum of absolute differences of the prediction errors and the motion vector code amount evaluation value, that is, the sum of the prediction error code amount and the motion vector code amount.

【0071】また、複数のフレームから参照画像を選択
する符号化方法において、予測誤差の絶対値差分和と動
きベクトルの符号量評価値と参照画像と指定する情報の
符号量評価値の合計、すなわち予測誤差の符号量と動き
ベクトルの符号量と参照画像と指定する情報の符号量の
合計が最も小さくなる動きベクトルと参照画像の組み合
わせを求めることができる。
In addition, in the encoding method for selecting a reference image from a plurality of frames, the sum of the absolute value difference sum of prediction errors, the motion vector code amount evaluation value, and the code amount evaluation value of the information designated as the reference image, that is, A combination of the motion vector and the reference image that minimizes the sum of the code amount of the prediction error, the code amount of the motion vector, and the code amount of the information specifying the reference image can be obtained.

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

【図1】本発明の実施形態を示すマクロブロックと探索
範囲の関係図。
FIG. 1 is a relationship diagram between a macroblock and a search range according to an embodiment of the present invention.

【図2】SEA方法により動きベクトル決定フロー。FIG. 2 is a motion vector determination flow according to the SEA method.

【図3】動きベクトル符号化における現マクロブロック
と周囲のマクロブロックの関係図。
FIG. 3 is a relationship diagram between a current macroblock and surrounding macroblocks in motion vector coding.

【図4】複数フレーム参照画像におけるSEA方法によ
る動きベクトル決定フロー。
FIG. 4 is a motion vector determination flow by a SEA method in a plurality of frame reference images.

【図5】実施形態の構成図。FIG. 5 is a configuration diagram of an embodiment.

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

101…MR計算部 102…M蓄積メモリ 103…フレーム間予測符号化部 104…参照画像メモリ 105…SEA実行部 106…動きベクトル符号量評価部 107…参照画像指定符号量評価部 108…復号部 109…復号画像メモリ 110…MAD計算部 101 ... MR calculation unit 102 ... M storage memory 103 ... Interframe predictive coding unit 104 ... Reference image memory 105 ... SEA execution unit 106 ... Motion vector code amount evaluation unit 107 ... Reference image designation code amount evaluation unit 108 ... Decoding unit 109 ... Decoded image memory 110 ... MAD calculator

フロントページの続き Fターム(参考) 5C059 MA00 MA05 MA12 MA23 ME01 NN03 NN08 NN28 PP04 SS20 TA63 TB07 TC02 TC03 TC06 TC12 TC18 TC31 TC42 TD02 TD05 TD06 TD11 TD16 UA02 UA33 UA39 5J064 AA03 AA04 BA09 BA16 BB03 BC01 BC08 BC16 BD01 Continued front page    F-term (reference) 5C059 MA00 MA05 MA12 MA23 ME01                       NN03 NN08 NN28 PP04 SS20                       TA63 TB07 TC02 TC03 TC06                       TC12 TC18 TC31 TC42 TD02                       TD05 TD06 TD11 TD16 UA02                       UA33 UA39                 5J064 AA03 AA04 BA09 BA16 BB03                       BC01 BC08 BC16 BD01

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 入力画像を分割した現領域毎に動き探索
をする動画像符号化方法であり、 参照画像内探索位置Aにおける、現領域画素と参照画像
画素との間の絶対値差分和Wを求める絶対値差分和計算
手段と、 現領域内画素値の合計Rを求める現領域内画素計算手段
と、 前記探索位置Aとは異なる探索位置Bにおける、現領域
と同数の画素の画素値の合計Mを求める参照画像内画素
計算手段と、 前記探索位置AまたはBを動きベクトルとする場合の動
きベクトル符号量の評価値VAまたはVBを求める動き
ベクトル符号量評価手段と、 前記現領域内画素計算手段で求められる探索位置Rと前
記参照画像内画素計算手段で求められる探索位置Mとの
差の絶対値に、前記動きベクトル符号量評価手段で求め
られる評価値VBを加算して探索位置評価値Dを求める
探索位置評価手段と、 前記絶対値差分和計算手段で求められる絶対値差分和W
と前記動きベクトル符号量評価手段で求められる評価値
VAを加算して絶対値差分和評価値Eを求める絶対値差
分和評価手段と、を用いて動き探索をする動画像符号化
方法であって、 前記探索位置評価手段で求められる探索位置評価値Dと
前記絶対値差分和評価手段で求められる絶対値差分和評
価値Eの大小を比較し、前記Dの値がEの値以下の場合
に、絶対値差分和計算手段が前記探索位置Bにおける現
領域画素と参照画像画素との間の絶対値差分和Wを求め
ることを特徴とする動画像符号化方法。
1. A moving image coding method for performing a motion search for each current region obtained by dividing an input image, wherein a sum W of absolute difference between a current region pixel and a reference image pixel at a search position A in a reference image. An absolute value difference sum calculating means for calculating the sum of the pixel values in the current area, a pixel calculating means for calculating the sum R of pixel values in the current area, and a pixel value of the same number of pixels as the current area at the search position B different from the search position A. A pixel in the reference image for calculating a total M, a motion vector code amount evaluating unit for calculating an evaluation value VA or VB of the motion vector code amount when the search position A or B is a motion vector, and the pixel in the current area A search position by adding the evaluation value VB calculated by the motion vector code amount evaluation means to the absolute value of the difference between the search position R calculated by the calculation means and the search position M calculated by the reference image pixel calculation means. A search position evaluation means for determining the value D, the absolute value difference sum W obtained by the absolute value difference sum calculating means
And an absolute value difference sum evaluation means for adding the evaluation value VA obtained by the motion vector code amount evaluation means to obtain an absolute value difference sum evaluation value E, which is a moving image coding method for performing a motion search. , The search position evaluation value D obtained by the search position evaluation means and the absolute value difference sum evaluation value E obtained by the absolute value difference sum evaluation means are compared in size, and when the value of D is equal to or less than the value of E, A moving image coding method, wherein the absolute value difference sum calculating means obtains an absolute value difference sum W between the current region pixel and the reference image pixel at the search position B.
【請求項2】 入力画像を分割した現領域毎に、画像を
複数フレーム(P1〜Pn)蓄積できる参照画像メモリ
から参照画像を選択して、動き探索をする動画像符号化
方法であり、 参照画像Pi内探索位置Aにおける、現領域画素と参照
画像画素との間の絶対値差分和Wを求める絶対値差分和
計算手段と、 現領域内画素値の合計Rを求める現領域内画素計算手段
と、 前記参照画像Piとは異なる参照画像Pj内の探索位置
Bにおける、現領域と同数の画素の画素値の合計Mを求
める参照画像内画素計算手段と、 前記探索位置AまたはBを動きベクトルとする場合の動
きベクトル符号量の評価値VAまたはVBを求める動き
ベクトル符号量評価手段と、 前記参照画像PiまたはPjを指定する情報を符号化す
る符号量の評価値RiまたはRjを求める参照画像指定
符号量評価手段と、 前記現領域内画素計算手段で求められる合計Rと前記参
照画像内画素計算手段で求められる合計Mとの差の絶対
値に、前記動きベクトル符号量評価手段で求められる評
価値VBと前記参照画像指定符号量評価手段で求められ
る評価値Rjを加算して探索位置評価値Dを求める探索
位置評価手段と、 前記絶対値差分和計算手段で求められる絶対値差分和W
に前記動きベクトル符号量評価手段で求められる評価値
VAと前記参照画像指定符号量評価手段で求められる評
価値Riを加算して絶対値差分和評価値Eを求める絶対
値差分和評価手段と、を用いて動き探索をする動画像符
号化方法であって、 前記探索位置評価手段で求められる探索位置評価値Dと
前記絶対値差分和評価手段で求められる絶対値差分和評
価値Eの大小を比較し、Dの値がEの値以下の場合に、
絶対値差分和計算手段が前記参照画像Pj内の探索位置
Bにおける、現領域画素と参照画像画素との間の絶対値
差分和Wを求めることを特徴とする動画像符号化方法。
2. A moving image coding method for performing a motion search by selecting a reference image from a reference image memory capable of accumulating a plurality of frames (P1 to Pn) of an image for each current region obtained by dividing an input image. Absolute value difference sum calculating means for calculating the absolute value difference sum W between the current area pixel and the reference image pixel at the search position A in the image Pi, and current area pixel calculating means for calculating the sum R of the current area pixel values And a pixel-in-reference-image calculating means for obtaining a sum M of pixel values of the same number of pixels as the current region at a search position B in a reference image Pj different from the reference image Pi, and the search position A or B as a motion vector. And a motion vector code amount evaluation means for obtaining an evaluation value VA or VB of the motion vector code amount, and a code amount evaluation value Ri or Rj for encoding the information designating the reference image Pi or Pj. The absolute value of the difference between the reference image specifying code amount evaluating means to be obtained, the total R obtained by the pixel in the current region and the total M obtained by the pixel in the reference image calculating means is set to the motion vector code amount evaluating means. And an absolute value obtained by the absolute value difference sum calculating means, and a search position evaluating means for obtaining a search position evaluation value D by adding the evaluation value VB obtained by the above and the evaluation value Rj obtained by the reference image designation code amount evaluating means. Difference W
An absolute value difference sum evaluation means for adding an evaluation value VA calculated by the motion vector code quantity evaluation means and an evaluation value Ri calculated by the reference image designation code quantity evaluation means to obtain an absolute value difference sum evaluation value E; Is a moving image coding method for performing a motion search by using the search position evaluation value D obtained by the search position evaluation means and the absolute value difference sum evaluation value E obtained by the absolute value difference sum evaluation means. In comparison, if the value of D is less than or equal to the value of E,
A moving picture coding method, wherein the absolute value difference sum calculation means obtains an absolute value difference sum W between a current region pixel and a reference image pixel at a search position B in the reference image Pj.
【請求項3】 入力画像を分割した現領域毎に動き探索
をする動画像符号化方法のプログラムであり、 参照画像内探索位置Aにおける、現領域画素と参照画像
画素との間の絶対値差分和Wを求める絶対値差分和計算
手順と、現領域内画素値の合計Rを求める現領域内画素
計算手順と、前記探索位置Aとは異なる探索位置Bにお
ける、現領域と同数の画素の画素値の合計Mを求める参
照画像内画素計算手順と、前記探索位置AまたはBを動
きベクトルとする場合の動きベクトル符号量の評価値V
AまたはVBを求める動きベクトル符号量評価手順と、
前記現領域内画素計算手順で求められる探索位置Rと前
記参照画像内画素計算手順で求められる探索位置Mとの
差の絶対値に、前記動きベクトル符号量評価手順で求め
られる評価値VBを加算して探索位置評価値Dを求める
探索位置評価手順と、前記絶対値差分和計算手順で求め
られる絶対値差分和Wと前記動きベクトル符号量評価手
順で求められる評価値VAを加算して絶対値差分和評価
値Eを求める絶対値差分和評価手順と、前記探索位置評
価手順で求められる探索位置評価値Dと前記絶対値差分
和評価手順で求められる絶対値差分和評価値Eの大小を
比較し、前記Dの値がEの値以下の場合に、絶対値差分
和計算手順が前記探索位置Bにおける現領域画素と参照
画像画素との間の絶対値差分和Wを求める手順と、を有
することを特徴とする動画像符号化方法のプログラム。
3. A program of a moving picture coding method for performing a motion search for each current area obtained by dividing an input image, wherein an absolute value difference between a current area pixel and a reference image pixel at a search position A in the reference image. The absolute value difference sum calculation procedure for obtaining the sum W, the current area pixel calculation procedure for obtaining the sum R of the pixel values in the current area, and the pixels of the same number of pixels as the current area at the search position B different from the search position A Reference image pixel calculation procedure for obtaining the total M of values, and the evaluation value V of the motion vector code amount when the search position A or B is a motion vector
A motion vector code amount evaluation procedure for obtaining A or VB;
The evaluation value VB calculated in the motion vector code amount evaluation procedure is added to the absolute value of the difference between the search position R calculated in the current area pixel calculation procedure and the search position M calculated in the reference image pixel calculation procedure. And a search position evaluation procedure for obtaining a search position evaluation value D, and an absolute value obtained by adding the absolute value difference sum W obtained by the absolute value difference sum calculation procedure and the evaluation value VA obtained by the motion vector code amount evaluation procedure. The absolute value difference sum evaluation procedure for obtaining the difference sum evaluation value E is compared with the magnitude of the search position evaluation value D obtained in the search position evaluation procedure and the absolute value difference sum evaluation value E obtained in the absolute value difference sum evaluation procedure. Then, when the value of D is equal to or less than the value of E, the absolute value difference sum calculation procedure determines the absolute value difference sum W between the current region pixel and the reference image pixel at the search position B. Characterized by Moving picture coding method program that.
【請求項4】 入力画像を分割した現領域毎に、画像を
複数フレーム(P1〜Pn)蓄積できる参照画像メモリ
から参照画像を選択して、動き探索をする動画像符号化
方法のプログラムであり、 参照画像Pi内探索位置Aにおける、現領域画素と参照
画像画素との間の絶対値差分和Wを求める絶対値差分和
計算手順と、現領域内画素値の合計Rを求める現領域内
画素計算手順と、前記参照画像Piとは異なる参照画像
Pj内の探索位置Bにおける、現領域と同数の画素の画
素値の合計Mを求める参照画像内画素計算手順と、前記
探索位置AまたはBを動きベクトルとする場合の動きベ
クトル符号量の評価値VAまたはVBを求める動きベク
トル符号量評価手順と、前記参照画像PiまたはPjを
指定する情報を符号化する符号量の評価値RiまたはR
jを求める参照画像指定符号量評価手順と、前記現領域
内画素計算手順で求められる合計Rと前記参照画像内画
素計算手順で求められる合計Mとの差の絶対値に、前記
動きベクトル符号量評価手順で求められる評価値VBと
前記参照画像指定符号量評価手順で求められる評価値R
jを加算して探索位置評価値Dを求める探索位置評価手
順と、前記絶対値差分和計算手順で求められる絶対値差
分和Wに前記動きベクトル符号量評価手順で求められる
評価値VAと前記参照画像指定符号量評価手順で求めら
れる評価値Riを加算して絶対値差分和評価値Eを求め
る絶対値差分和評価手順と、前記探索位置評価手順で求
められる探索位置評価値Dと前記絶対値差分和評価手順
で求められる絶対値差分和評価値Eの大小を比較し、D
の値がEの値以下の場合に、絶対値差分和計算手順が前
記参照画像Pj内の探索位置Bにおける、現領域画素と
参照画像画素との間の絶対値差分和Wを求める手順と、
を有することを特徴とする動画像符号化方法のプログラ
ム。
4. A program of a moving picture coding method for selecting a reference picture from a reference picture memory capable of accumulating a plurality of frames (P1 to Pn) for each current area obtained by dividing an input picture and performing a motion search. , An absolute value difference sum calculation procedure for obtaining an absolute value difference sum W between the current area pixel and the reference image pixel at the search position A in the reference image Pi, and a current area pixel for obtaining a total R of pixel values in the current area The calculation procedure and the reference image pixel calculation procedure for obtaining the total M of the pixel values of the same number of pixels at the search position B in the reference image Pj different from the reference image Pi and the search position A or B A motion vector code amount evaluation procedure for obtaining an evaluation value VA or VB of a motion vector code amount when a motion vector is used, and an evaluation value Ri of a code amount for encoding information designating the reference image Pi or Pj. Other R
In the reference image designation code amount evaluation procedure for obtaining j, the absolute value of the difference between the total R obtained in the current area pixel calculation procedure and the total M obtained in the reference image pixel calculation procedure is set to the motion vector code quantity. Evaluation value VB obtained in the evaluation procedure and evaluation value R obtained in the reference image designation code amount evaluation procedure
The search position evaluation procedure of adding j to obtain the search position evaluation value D, and the evaluation value VA obtained in the motion vector code amount evaluation procedure and the reference to the absolute value difference sum W obtained in the absolute value difference sum calculation procedure. An absolute value difference sum evaluation procedure for adding the evaluation values Ri calculated in the image designation code amount evaluation procedure to obtain an absolute value difference sum evaluation value E, and a search position evaluation value D and the absolute value calculated in the search position evaluation procedure. The magnitude of the absolute value difference sum evaluation value E obtained by the difference sum evaluation procedure is compared, and D
When the value of is less than or equal to the value of E, the absolute value difference sum calculation procedure obtains the absolute value difference sum W between the current region pixel and the reference image pixel at the search position B in the reference image Pj,
A program for a moving picture coding method, comprising:
【請求項5】 入力画像を分割した現領域毎に動き探索
をする動画像符号化方法のプログラムを記録した記録媒
体であり、 参照画像内探索位置Aにおける、現領域画素と参照画像
画素との間の絶対値差分和Wを求める絶対値差分和計算
手順と、現領域内画素値の合計Rを求める現領域内画素
計算手順と、前記探索位置Aとは異なる探索位置Bにお
ける、現領域と同数の画素の画素値の合計Mを求める参
照画像内画素計算手順と、前記探索位置AまたはBを動
きベクトルとする場合の動きベクトル符号量の評価値V
AまたはVBを求める動きベクトル符号量評価手順と、
前記現領域内画素計算手順で求められる探索位置Rと前
記参照画像内画素計算手順で求められる探索位置Mとの
差の絶対値に、前記動きベクトル符号量評価手順で求め
られる評価値VBを加算して探索位置評価値Dを求める
探索位置評価手順と、前記絶対値差分和計算手順で求め
られる絶対値差分和Wと前記動きベクトル符号量評価手
順で求められる評価値VAを加算して絶対値差分和評価
値Eを求める絶対値差分和評価手順と、前記探索位置評
価手順で求められる探索位置評価値Dと前記絶対値差分
和評価手順で求められる絶対値差分和評価値Eの大小を
比較し、前記Dの値がEの値以下の場合に、絶対値差分
和計算手順が前記探索位置Bにおける現領域画素と参照
画像画素との間の絶対値差分和Wを求める手順と、を記
録したことを特徴とする動画像符号化方法のプログラム
を記録した記録媒体。
5. A recording medium for recording a program of a moving picture coding method for performing a motion search for each current area obtained by dividing an input image, wherein a current area pixel and a reference image pixel at a reference image search position A are recorded. Absolute value difference sum calculation procedure for obtaining the absolute value difference sum W between them, a current area pixel calculation procedure for obtaining the total R of pixel values in the current area, and a current area at a search position B different from the search position A. A reference image pixel calculation procedure for obtaining the sum M of pixel values of the same number of pixels, and an evaluation value V of the motion vector code amount when the search position A or B is a motion vector.
A motion vector code amount evaluation procedure for obtaining A or VB;
The evaluation value VB calculated in the motion vector code amount evaluation procedure is added to the absolute value of the difference between the search position R calculated in the current area pixel calculation procedure and the search position M calculated in the reference image pixel calculation procedure. And a search position evaluation procedure for obtaining a search position evaluation value D, and an absolute value obtained by adding the absolute value difference sum W obtained by the absolute value difference sum calculation procedure and the evaluation value VA obtained by the motion vector code amount evaluation procedure. The absolute value difference sum evaluation procedure for obtaining the difference sum evaluation value E is compared with the magnitude of the search position evaluation value D obtained in the search position evaluation procedure and the absolute value difference sum evaluation value E obtained in the absolute value difference sum evaluation procedure. Then, when the value of D is equal to or less than the value of E, the absolute value difference sum calculation procedure obtains the absolute value difference sum W between the current region pixel and the reference image pixel at the search position B. Characterized by A recording medium recording a program of a moving image encoding method for.
【請求項6】 入力画像を分割した現領域毎に、画像を
複数フレーム(P1〜Pn)蓄積できる参照画像メモリ
から参照画像を選択して、動き探索をする動画像符号化
方法のプログラムを記録した記録媒体であり、 参照画像Pi内探索位置Aにおける、現領域画素と参照
画像画素との間の絶対値差分和Wを求める絶対値差分和
計算手順と、現領域内画素値の合計Rを求める現領域内
画素計算手順と、前記参照画像Piとは異なる参照画像
Pj内の探索位置Bにおける、現領域と同数の画素の画
素値の合計Mを求める参照画像内画素計算手順と、前記
探索位置AまたはBを動きベクトルとする場合の動きベ
クトル符号量の評価値VAまたはVBを求める動きベク
トル符号量評価手順と、前記参照画像PiまたはPjを
指定する情報を符号化する符号量の評価値RiまたはR
jを求める参照画像指定符号量評価手順と、前記現領域
内画素計算手順で求められる合計Rと前記参照画像内画
素計算手順で求められる合計Mとの差の絶対値に、前記
動きベクトル符号量評価手順で求められる評価値VBと
前記参照画像指定符号量評価手順で求められる評価値R
jを加算して探索位置評価値Dを求める探索位置評価手
順と、前記絶対値差分和計算手順で求められる絶対値差
分和Wに前記動きベクトル符号量評価手順で求められる
評価値VAと前記参照画像指定符号量評価手順で求めら
れる評価値Riを加算して絶対値差分和評価値Eを求め
る絶対値差分和評価手順と、前記探索位置評価手順で求
められる探索位置評価値Dと前記絶対値差分和評価手順
で求められる絶対値差分和評価値Eの大小を比較し、D
の値がEの値以下の場合に、絶対値差分和計算手順が前
記参照画像Pj内の探索位置Bにおける、現領域画素と
参照画像画素との間の絶対値差分和Wを求める手順と、
を記録したことを特徴とする動画像符号化方法のプログ
ラムを記録した記録媒体。
6. A program of a moving picture coding method for performing a motion search by selecting a reference picture from a reference picture memory capable of accumulating a plurality of frames (P1 to Pn) of an picture for each current area obtained by dividing an input picture. And a total R of pixel values in the current area, and an absolute value difference sum calculation procedure for obtaining a sum W of absolute value differences between the current area pixels and the reference image pixels at the search position A in the reference image Pi. Pixel calculation procedure in the current area, reference pixel calculation procedure in the reference image Pj different from the reference image Pi, and a total M of pixel values of the same number of pixels as the current area at the search position B; A motion vector code amount evaluation procedure for obtaining an evaluation value VA or VB of the motion vector code amount when the position A or B is used as a motion vector, and information for specifying the reference image Pi or Pj are encoded. Issue amount of the evaluation value Ri or R
In the reference image designation code amount evaluation procedure for obtaining j, the absolute value of the difference between the total R obtained in the current area pixel calculation procedure and the total M obtained in the reference image pixel calculation procedure is set to the motion vector code quantity. Evaluation value VB obtained in the evaluation procedure and evaluation value R obtained in the reference image designation code amount evaluation procedure
The search position evaluation procedure of adding j to obtain the search position evaluation value D, and the evaluation value VA obtained in the motion vector code amount evaluation procedure and the reference to the absolute value difference sum W obtained in the absolute value difference sum calculation procedure. An absolute value difference sum evaluation procedure for adding the evaluation values Ri calculated in the image designation code amount evaluation procedure to obtain an absolute value difference sum evaluation value E, and a search position evaluation value D and the absolute value calculated in the search position evaluation procedure. The magnitude of the absolute value difference sum evaluation value E obtained by the difference sum evaluation procedure is compared, and D
When the value of is less than or equal to the value of E, the absolute value difference sum calculation procedure obtains the absolute value difference sum W between the current region pixel and the reference image pixel at the search position B in the reference image Pj,
A recording medium on which a program of a moving picture coding method is recorded.
JP2002028884A 2002-02-06 2002-02-06 Method for coding dynamic image, program thereof, and recording medium recording this program Pending JP2003230150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002028884A JP2003230150A (en) 2002-02-06 2002-02-06 Method for coding dynamic image, program thereof, and recording medium recording this program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002028884A JP2003230150A (en) 2002-02-06 2002-02-06 Method for coding dynamic image, program thereof, and recording medium recording this program

Publications (1)

Publication Number Publication Date
JP2003230150A true JP2003230150A (en) 2003-08-15

Family

ID=27749917

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002028884A Pending JP2003230150A (en) 2002-02-06 2002-02-06 Method for coding dynamic image, program thereof, and recording medium recording this program

Country Status (1)

Country Link
JP (1) JP2003230150A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007029640A1 (en) * 2005-09-09 2007-03-15 Sony Corporation Image processing device and method, program, and recording medium
JP2011217421A (en) * 2006-08-08 2011-10-27 Canon Inc Motion vector detection apparatus, and motion vector detection method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007029640A1 (en) * 2005-09-09 2007-03-15 Sony Corporation Image processing device and method, program, and recording medium
JP2007074592A (en) * 2005-09-09 2007-03-22 Sony Corp Image processing apparatus and method thereof, program, and recording medium
JP2011217421A (en) * 2006-08-08 2011-10-27 Canon Inc Motion vector detection apparatus, and motion vector detection method

Similar Documents

Publication Publication Date Title
US20210227253A1 (en) Method and device for image motion compensation
JP6073405B2 (en) Video decoding method and apparatus
JP5277257B2 (en) Video decoding method and video encoding method
JP4898467B2 (en) Coding mode determination method and apparatus for variable block size motion prediction
JP5406222B2 (en) Video coding and decoding method and apparatus using continuous motion estimation
RU2518718C2 (en) Method and apparatus for encoding and decoding motion vector based on reduced motion vector predictor candidates
JP2019115060A (en) Encoder, encoding method, decoder, decoding method and program
JP5310614B2 (en) Moving picture coding apparatus, moving picture coding method, moving picture decoding apparatus, and moving picture decoding method
JP2015536092A (en) Standard-based model-based video encoding and decoding
JP5367097B2 (en) Motion vector predictive coding method, motion vector predictive decoding method, moving picture coding apparatus, moving picture decoding apparatus, and programs thereof
JP5216710B2 (en) Decryption processing method
JP5306485B2 (en) Motion vector predictive coding method, motion vector predictive decoding method, moving picture coding apparatus, moving picture decoding apparatus, and programs thereof
US7433407B2 (en) Method for hierarchical motion estimation
WO2019150411A1 (en) Video encoding device, video encoding method, video decoding device, and video decoding method, and video encoding system
JP6019797B2 (en) Moving picture coding apparatus, moving picture coding method, and program
JP2003230150A (en) Method for coding dynamic image, program thereof, and recording medium recording this program
JP4429996B2 (en) Moving picture coding program, moving picture coding method, and moving picture coding apparatus
JP5281597B2 (en) Motion vector prediction method, motion vector prediction apparatus, and motion vector prediction program
US10075691B2 (en) Multiview video coding method using non-referenced view video group
JP2020102669A (en) Encoding apparatus and program
US9521417B2 (en) Video encoding device using predicted motion vector for blocks of different size
US20240137559A1 (en) Method and device for image motion compensation
RU2797353C1 (en) Method, apparatus and device for encoding and decoding
JP2012120108A (en) Interpolation image generating apparatus and program, and moving image decoding device and program
RU2701087C1 (en) Method and device for encoding and decoding motion vector based on reduced motion vector predictors-candidates

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060704

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060904

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061003