JPH0730902A - Motion vector detection method - Google Patents
Motion vector detection methodInfo
- Publication number
- JPH0730902A JPH0730902A JP5191933A JP19193393A JPH0730902A JP H0730902 A JPH0730902 A JP H0730902A JP 5191933 A JP5191933 A JP 5191933A JP 19193393 A JP19193393 A JP 19193393A JP H0730902 A JPH0730902 A JP H0730902A
- Authority
- JP
- Japan
- Prior art keywords
- block
- motion vector
- data
- comparison
- target block
- 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
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Color Television Systems (AREA)
Abstract
(57)【要約】
【目的】 コンシール動作を伴って復号再生した画像の
品位を向上させることができるようにすることを目的と
する。
【構成】 現フレームの動きベクトル検出対象ブロック
に対し、予測前フレームのサーチウインド内比較ブロッ
ク群の中では、上記対象ブロックと同位置に相当する比
較ブロックの映像内容が同じである確率が高いという画
像情報の相関性を利用し、ブロック間の演算結果が複数
同じになった場合の動きベクトルの検出方法は、対象ブ
ロックに対して最もベクトル距離の近い比較ブロックを
動き補償動作のための予測ブロック情報とし、またこの
予測ブロックのサーチウインド内の位置情報を動きベク
トルとすることにより、コンシール動作して再生した画
像の画質が通常復号再生を行った時の画質に近くなるよ
うにする。
(57) [Abstract] [Purpose] It is intended to improve the quality of an image decoded and reproduced with concealment operation. [Configuration] It is said that the motion vector detection target block of the current frame has a high probability that the comparison block corresponding to the same position as the target block has the same video content in the search window comparison block group of the pre-prediction frame. By using the correlation of image information, the motion vector detection method when the calculation results between blocks are the same is that the comparison block with the closest vector distance to the target block is the prediction block for motion compensation operation. By using the information and the position information in the search window of this prediction block as the motion vector, the image quality of the image reproduced by the concealment operation is made close to the image quality at the time of normal decoding and reproduction.
Description
【0001】[0001]
【産業上の利用分野】本発明は動きベクトル検出方法に
係わり、例えば、動き補償を含む符号化手段における動
きベクトルの検出方法に用いて好適なものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motion vector detecting method, and is suitable for use as, for example, a motion vector detecting method in a coding means including motion compensation.
【0002】[0002]
【従来の技術】近年、動画像符号化手段においては予測
符号化やDCT(離散コサイン変換)などの高能率符号
化がなされ、しかも符号化効率を上げるために画像の時
間方向に対する相関性を利用し、連続したフレームやフ
ィールド間での動きベクトルを検出し、このベクトルを
基にして動き補償することが行われている。2. Description of the Related Art In recent years, high-efficiency coding such as predictive coding and DCT (discrete cosine transform) has been performed in moving picture coding means, and moreover, the correlation in the time direction of an image is used to improve coding efficiency. However, a motion vector between consecutive frames or fields is detected, and motion compensation is performed based on this vector.
【0003】以下に、ベクトルを基にして動き補償する
方法を説明する。先ず、図4のブロックにより動き補償
動作する符号・復号化装置の概略動作を説明し、次に、
図5、図6および図7により動きベクトル検出の動作を
説明する。A method of motion compensation based on a vector will be described below. First, the schematic operation of the encoding / decoding device that performs motion compensation operation will be described with reference to the blocks of FIG.
The motion vector detection operation will be described with reference to FIGS. 5, 6 and 7.
【0004】図4に示したように、符号化ブロックにお
いては、入力されたデジタル映像信は前処理回路100
で、例えば8×8画素単位のブロック化を行う。さら
に、輝度信号および色信号を16×16画素のデータで
なる符号化処理単位ブロックデータS100(以後S1
00はマクロブロックと呼ぶ)に変換し、演算器10
1、動き補償回路108に供給する。As shown in FIG. 4, in the coding block, the input digital video signal is input to the preprocessing circuit 100.
Then, for example, block formation is performed in units of 8 × 8 pixels. Further, the encoding processing unit block data S100 (hereinafter referred to as S1) in which the luminance signal and the color signal are data of 16 × 16 pixels.
00 is called a macro block), and the arithmetic unit 10
1, supplied to the motion compensation circuit 108.
【0005】演算器101では、マクロブロックS10
0と動き補償回路108で生成される動き予測データS
101(後述)の差を演算し、上記演算して得た差分デ
ータ102を変換符号化回路102に供給する。In the arithmetic unit 101, the macro block S10
0 and the motion prediction data S generated by the motion compensation circuit 108
The difference of 101 (described later) is calculated, and the difference data 102 obtained by the above calculation is supplied to the transform coding circuit 102.
【0006】変換符号化回路102は、例えば、DCT
(離散コサイン変換)で構成され、差分データS102
を直交変換することにより高能率符号化した変換符号化
データS103を量子化回路103に供給し、量子化回
路103から圧縮量子化データS104を出力させる。The transform coding circuit 102 is, for example, a DCT.
(Discrete cosine transform), and the difference data S102
The transformed coded data S103 that has been subjected to high efficiency coding by orthogonal transformation is supplied to the quantization circuit 103, and the quantization circuit 103 outputs compressed quantized data S104.
【0007】そして、量子化回路103から得られる圧
縮量子化データS104は、可変長符号化回路109に
おいてデータの発生頻度に応じた可変長符号データS1
05に符号化され、バッファメモリ110に供給され
る。The compressed quantized data S104 obtained from the quantization circuit 103 is the variable length code data S1 in the variable length coding circuit 109 according to the frequency of data generation.
It is encoded into 05 and supplied to the buffer memory 110.
【0008】また、圧縮量子化データS104は、逆量
子化回路104、逆変換復号回路105を経て、先の差
分データS102に相当する差分データS106として
局部復号されて演算器106に供給される。Further, the compressed quantized data S104 passes through the inverse quantization circuit 104 and the inverse transform decoding circuit 105, is locally decoded as difference data S106 corresponding to the above difference data S102, and is supplied to the arithmetic unit 106.
【0009】一方、上記演算器106には動き補償回路
108で生成される動き予測現データS101(後述)
も供給されており、演算器106で上記差分データデー
タS106と動き予測現データS101とが加算され
て、マクロブロックS100に相当するブロックデータ
S107が生成される。そして、上記ブロックデータS
107が予測前メモリ107に供給されることにより、
上記メモリ107の内容が修正更新される。On the other hand, the motion prediction current data S101 (described later) generated by the motion compensation circuit 108 is stored in the arithmetic unit 106.
Also, the arithmetic unit 106 adds the difference data data S106 and the motion prediction current data S101 to generate block data S107 corresponding to the macroblock S100. Then, the block data S
By supplying 107 to the pre-prediction memory 107,
The contents of the memory 107 are modified and updated.
【0010】このようにして、予測前メモリ107の内
容は、ブロックデータS107によって逐次更新される
ことにより、フレーム間符号化するのであれば現データ
を基準にして1フレーム前までのフレームデータ量を記
憶し、同様にフィールド間符号化するのであれば現デー
タを基準にして1フィールド前までのフィールドデータ
量を記憶する。In this way, the contents of the pre-prediction memory 107 are successively updated by the block data S107, so that if inter-frame coding is to be performed, the frame data amount up to one frame before the current data is used as a reference. If the data is stored and similarly inter-field encoded, the field data amount up to one field before the current data is stored.
【0011】次に、動き補償回路108は現在入力され
ているマクロブロックデータS100と、先の予測メモ
リ107の過去のデータにおけるS100に対応するブ
ロック近傍からS100に対する予測現データS101
を生成し、演算器101、106に供給する。また、予
測現データS101の予測前メモリ107の内部のメモ
リ位置を表す情報を、動きベクトルSV としてバッファ
メモリ110に供給する。Next, the motion compensating circuit 108 predicts the current macro block data S100 that is currently input and the prediction current data S101 for S100 from the block neighborhood corresponding to S100 in the past data of the previous prediction memory 107.
Is generated and supplied to the arithmetic units 101 and 106. Further, the information indicating the memory position inside the pre-prediction memory 107 of the current prediction data S101 is supplied to the buffer memory 110 as the motion vector S V.
【0012】次に、バッファメモリ110では、入力さ
れてくる可変長符号データS105や動きベクトル
SV 、その他符号化のための種々のパラメータ(図示せ
ず)等を伝送データとして内部に一旦溜めておく。そし
て、メモリに残留しているデータ量を逐次検出し、残留
データ量に応じて変化するバッファ制御データSB を、
量子化回路103と逆量子化回路104にフィードバッ
クする。Next, in the buffer memory 110, the input variable-length code data S105, the motion vector S V , and other various parameters (not shown) for encoding are temporarily stored internally as transmission data. deep. Then, the amount of data remaining in the memory is sequentially detected, and the buffer control data S B that changes according to the amount of remaining data is
It feeds back to the quantization circuit 103 and the inverse quantization circuit 104.
【0013】量子化回路103は、入力されたバッファ
制御データSB に基づいて量子化ステップサイズを制御
することにより、バッファメモリ110に保持するデー
タ量を適切な量に維持しながら出力データを伝送路符号
化回路111に供給する。そして、伝送路符号化回路1
11で伝送同期のためのSYNC・ID信号、誤り訂正
のための符号等が付加され、伝送路のレートに応じたス
ピードでデータが出力される。なお、ここで伝送路とは
磁気記録の媒体を通した記録・再生過程や通信衛星の伝
送路等を総称している。The quantization circuit 103 controls the quantization step size on the basis of the input buffer control data S B to transmit the output data while maintaining the data amount held in the buffer memory 110 at an appropriate amount. It is supplied to the path coding circuit 111. Then, the transmission line encoding circuit 1
At 11, a SYNC ID signal for transmission synchronization, a code for error correction, etc. are added, and data is output at a speed according to the rate of the transmission path. Here, the transmission path is a generic term for a recording / reproducing process through a magnetic recording medium, a communication satellite transmission path, and the like.
【0014】次に、復号ブロックにおいては、符号化と
逆の動作(符号化内部の局部復号部と同じ動作)がなさ
れる。先ず、伝送路を介して送られたデータは、伝送路
復号回路112で伝送の同期、符号誤り訂正等がなさ
れ、その後バッファメモリ113に供給される。Next, in the decoding block, the operation opposite to the encoding (the same operation as the local decoding section inside the encoding) is performed. First, the data sent via the transmission line is subjected to transmission synchronization, code error correction, etc. in the transmission line decoding circuit 112, and then supplied to the buffer memory 113.
【0015】また、誤り訂正が不可能な信号に対して
は、上記マクロブロック単位でフレームまたはフィール
ド前にすでに復号した再生不能なマクロブロックと同位
置の復号側メモリ内部のデータと置き換えるようにする
コンシール動作のためのフラグも供給する。Further, for a signal which cannot be error-corrected, the data in the decoding side memory at the same position as the unreproducible macroblock already decoded before the frame or field is replaced in the macroblock unit. It also supplies a flag for concealment operation.
【0016】バッファメモリ113では、可変長符号デ
ータS105、動きベクトルSV 、符号化のための種々
のパラメータ(図示せず)等を識別復号し、可変長符号
データS105は可変長復号回路114に供給し、動き
ベクトルSV は予測前メモリ116に供給する。In the buffer memory 113, the variable length code data S105, the motion vector S V , various parameters (not shown) for encoding, etc. are identified and decoded, and the variable length code data S105 is sent to the variable length decoding circuit 114. The motion vector S V is supplied to the pre-prediction memory 116.
【0017】そして、可変長復号回路114にて可変長
復号された圧縮量子化データS104は、符号化の時と
同様に逆量子化回路104、逆変換復号回路105を経
て、符号化時の差分データS102に相当する差分デー
タS106に復号される。The compressed quantized data S104 variable-length decoded by the variable-length decoding circuit 114 passes through the dequantization circuit 104 and the inverse transform decoding circuit 105 in the same way as at the time of coding, and the difference at the time of coding. The difference data S106 corresponding to the data S102 is decoded.
【0018】一方、予測前メモリ116は、バッファメ
モリ113から入力された動きベクトルSV を基に、差
分データS106に対し、メモリに記憶しているデータ
の動きベクトルSV の指し示すメモリ位置のデータを予
測現データS107として、演算器115に供給する。On the other hand, the pre-prediction memory 116, based on the motion vector S V input from the buffer memory 113, compares the difference data S 106 with the data at the memory position indicated by the motion vector S V of the data stored in the memory. Is supplied as prediction current data S107 to the calculator 115.
【0019】そして、これらの差分データS106と予
測現データS107とを演算器115で加算し、マクロ
ブロックデータS100を復号し、伝送路復号回路11
7と先の予測前メモリ116とに供給する。これによ
り、予測前メモリS116のデータが、データS100
によって逐次修正更新される。最後に伝送路復号回路1
17により、ブロック化されたデータが一般的なライン
スキャン構造のデジタル映像信号に復号される。Then, the difference data S106 and the predicted current data S107 are added by the arithmetic unit 115 to decode the macroblock data S100 and the transmission line decoding circuit 11
7 and the pre-prediction memory 116. As a result, the data in the pre-prediction memory S116 becomes the data S100.
Will be revised and updated sequentially. Finally, the transmission line decoding circuit 1
17, the block data is decoded into a digital video signal having a general line scan structure.
【0020】さて、次に、以上のような動き補償の伴う
符号・復号化手段における動きベクトルの検出方法を図
5〜図7を用いて説明する。一般的に、動きベクトル検
出は対象とする現マクロブロックデータに対し、予測前
メモリ内部の時間的過去のデータの現マクロブロックデ
ータに対応する近傍から、現マクロブロックデータとブ
ロックマッチングをとることにより、もっともマッチン
グした予測前メモリのブロックデータを予測現データと
する。そして、上記予測現データの予測前メモリ内のア
ドレスを動きベクトルとして検出するものである。Now, a method of detecting a motion vector in the coding / decoding means accompanied by the above motion compensation will be described with reference to FIGS. In general, the motion vector detection is performed by performing block matching with the current macroblock data from the neighborhood corresponding to the current macroblock data of the temporal past data in the pre-prediction memory for the current macroblock data of interest. , The most matched block data of the pre-prediction memory is used as the prediction current data. Then, the address in the pre-prediction memory of the predicted current data is detected as a motion vector.
【0021】図5は、現フレームデータとその中の動き
ベクトルを求めるための対象ブロックと、予測前メモリ
内部の予測前フレームデータと先の対象ブロックと比較
するための比較ブロックとブロックマッチングを行う動
きベクトル検索範囲を表すサーチウインドとの関係を表
している。FIG. 5 performs block matching with the current frame data and the target block for obtaining the motion vector therein, and the comparison block for comparing the pre-prediction frame data in the pre-prediction memory with the previous target block. The relationship with the search window indicating the motion vector search range is shown.
【0022】ここで、一般的に対象ブロックとサーチウ
インドとの範囲の関係は、対象ブロックをN×Nとする
とサーチウインドは2N×2Nとされることが多い。し
たがって、図5ではN=4の場合を表しており、対象ブ
ロック内の各画素はPXY(X=Y=1〜4)、比較ブロ
ックの各画素はQXY(X=Y=1〜4)で示している。Here, in general, the range relation between the target block and the search window is often 2N × 2N when the target block is N × N. Therefore, FIG. 5 shows the case of N = 4, where each pixel in the target block is P XY (X = Y = 1 to 4) and each pixel in the comparison block is Q XY (X = Y = 1 to 4). ).
【0023】また、図6(a)は、サーチウインド内に
おけるブロックマッチングの検索順序を表している。つ
まり、サーチウインドの数字1〜25は、それぞれ4×
4画素のブロックを意味し、数字順に対象ブロックとマ
ッチングの計算がなされることを意味する。FIG. 6A shows the search order of block matching in the search window. In other words, the numbers 1 to 25 in the search window are 4 ×
It means a block of 4 pixels, which means that matching calculation with the target block is performed in numerical order.
【0024】図6の(b)〜(d)は、図6(a)にお
ける検索順番が“9”と“15”の時点の様子を表して
いる。したがって、この場合、現フレームデータ内の対
象ブロックと同位置にあるサーチウインド内の比較ブロ
ックは検索番号“13”の時点のブロック画素を表して
いる。6B to 6D show the states at the time when the search order in FIG. 6A is "9" and "15". Therefore, in this case, the comparison block in the search window located at the same position as the target block in the current frame data represents the block pixel at the time of the search number “13”.
【0025】次に、図7はサーチウインドの検索位置と
動きベクトルの関係を表す図であり、先の検索番号“1
3”の時点のブロック左上の座標をベクトル基準点
(0、0)とするi−j軸で検索位置に対する動きベク
トルが示される。Next, FIG. 7 is a diagram showing the relationship between the search position of the search window and the motion vector.
The motion vector for the search position is indicated on the i-j axis with the coordinate at the upper left of the block at the time of 3 "as the vector reference point (0, 0).
【0026】すなわち、先の図6(b)で示したサーチ
番号“9”のベクトルは(1、−1)、図6(c)で示
したサーチ番号“15”のベクトルは(2、0)で示さ
れることを意味している。なお、図1は動きベクトル検
出アルゴリズムを表している。That is, the vector with the search number "9" shown in FIG. 6B is (1, -1), and the vector with the search number "15" shown in FIG. 6C is (2, 0). ) Is meant to be shown. Note that FIG. 1 shows a motion vector detection algorithm.
【0027】次に、動きベクトル検出動作について説明
する。先ず、対象ブロックとサーチウインド内の検索順
1の位置における比較ブロックとの間で各画素間の差分
の絶対値の総和を算出する。次に、対象ブロックとサー
チウインド内の検索順2の位置における比較ブロックと
の間で各画素間の差分の絶対値の総和を算出する。Next, the motion vector detecting operation will be described. First, the sum of the absolute values of the differences between the pixels of the target block and the comparison block at the position of search order 1 in the search window is calculated. Next, the sum of the absolute values of the differences between the pixels between the target block and the comparison block at the position of search order 2 in the search window is calculated.
【0028】以下同様にして、サーチウインドの検索順
が25になるまで行われる。すなわち、以上のことをま
とめると以下に示す数1のようになる。In the same manner, the search order of the search windows is 25. That is, the above is summarized as the following Expression 1.
【0029】[0029]
【数1】 [Equation 1]
【0030】そして、得られたerror(ij)の中
から最小値を示すサーチウインド内の比較ブロックとの
誤差データ、その比較ブロックを表す座標(ij)を動
きベクトルとして決定する。すなわち、動きベクトルを
(IJ)、最小予測誤差データをerror(IJ)と
すると、 error(IJ)=min(error(ij)) となる。Then, from the obtained error (ij), the error data with the comparison block in the search window showing the minimum value and the coordinates (ij) representing the comparison block are determined as the motion vector. That is, assuming that the motion vector is (IJ) and the minimum prediction error data is error (IJ), error (IJ) = min (error (ij)).
【0031】なお、本説明に示したブロックマッチング
の判定は、対象ブロックと比較ブロックの各画素間差分
値の絶対値総和で判定する場合を示したが、実現可能な
回路ハード規模の点から判断して一般的なものである。The block matching determination described in the present description has been made by referring to the absolute value sum of the difference values between the pixels of the target block and the comparison block. However, the determination of the block hardware size is feasible. And it is common.
【0032】[0032]
【発明が解決しようとする課題】しかしながら、上記従
来の動きベクトル検出方法では、ブロック間の各画素差
分値の絶対値総和で判定しているので、静止画のような
現フレームと予測前フレーム間の画像情報および内容が
平坦な場合には、以下のようなケースが生じる不都合が
ある。However, in the above-described conventional motion vector detecting method, since the absolute value sum of the pixel difference values between blocks is used for determination, the current frame such as a still image and the frame before prediction are not determined. If the image information and the contents are flat, the following cases may occur.
【0033】それは、現フレームの対象ブロックと予測
前フレーム内サーチウインドの各比較ブロックの画像内
容が異なっているにもかかわらず、偶然にもブロック間
の各画素差分値の絶対値総和が等しくなってしまうこと
がある。That is, although the target block of the current frame and the image contents of the comparison blocks of the search window in the pre-prediction frame are different from each other, the absolute sum of the pixel difference values between the blocks happens to be equal. It may happen.
【0034】つまり、例えば、図7に示すサーチウイン
ド検索内比較ブロック“1”と、“13”と、“25”
との画像内容が異なっているにもかかわらず、対象ブロ
ックとの各画素差分値の絶対値総和が等しくなってしま
うことを意味する。That is, for example, in the search window search comparison blocks "1", "13", and "25" shown in FIG.
This means that the absolute value sums of the pixel difference values with the target block are equal to each other even though the image contents of and are different.
【0035】そして、このように等しくなった演算結果
がサーチウインド内のほかの比較ブロックと対象ブロッ
ク間演算結果の値よりも小さい結果となった場合には、
予測現フレームデータの候補はサーチウインド検索位置
“1”と、“13”と、“25”の3つのブロックが選
択される。When the operation result thus equalized is smaller than the value of the operation result between the other comparison block in the search window and the target block,
Three blocks of search window search positions "1", "13", and "25" are selected as candidates for the predicted current frame data.
【0036】ここで、従来の動きベクトル検出では、算
出したerror(ij)、i=j=−2〜2の値全て
について逐次比較の都度にどちらか値の小さいベクトル
と誤差データを残してゆくアルゴリズムをとり、最後に
残ったベクトルと誤差データを動き情報としていた。Here, in the conventional motion vector detection, a vector having a smaller value and error data are left for each successive comparison for all the calculated values of error (ij) and i = j = -2 to 2. The algorithm was used and the last remaining vector and error data were used as motion information.
【0037】また、上記のように最小演算結果が複数生
じた場合には次のいずれかのアルゴリズムによって選択
出力していた。 アルゴリズム1: A=B−−>A選択 アルゴリズム2: A=B−−>B選択 ここで、Aは逐次比較において、以前に選択された最小
の演算結果であり、Bは最新の演算結果である。When a plurality of minimum calculation results occur as described above, one of the following algorithms is selected and output. Algorithm 1: A = B-> A selection Algorithm 2: A = B-> B selection Here, A is the smallest operation result previously selected in successive comparison, and B is the latest operation result. is there.
【0038】この動作によると、上記複数の最小結果に
対する選択結果はアルゴリズム1の場合にはサーチウイ
ンド検索“1”、アルゴリズム2の場合にはサーチウイ
ンド検索“25”の比較ブロックが動き情報として選択
されることになる。According to this operation, as the selection result for the plurality of minimum results, the comparison block of the search window search “1” in the case of the algorithm 1 and the search window search “25” in the case of the algorithm 2 is selected as the motion information. Will be done.
【0039】しかしながら、一方伝送途中の外来ノイズ
等により動きベクトルが誤り、復号側での誤り訂正もで
きない場合の復号動作としては、コンシールにより復号
不能動きベクトル情報を現フレームデータ内の対象ブロ
ックと同位置にあるサーチウインド内の比較ブロックの
位置を表す動きベクトル、図7の例では(0、0)に置
き換えて復号動作を行う。However, as a decoding operation when the motion vector is erroneous due to external noise during transmission and the error cannot be corrected on the decoding side, the undecodable motion vector information is concatenated with the target block in the current frame data. The motion vector representing the position of the comparison block in the search window at the position, which is (0, 0) in the example of FIG. 7, is replaced and the decoding operation is performed.
【0040】すなわち、上記複数の最小結果に対する選
択結果として、サーチウインド検索順“1”または“2
5”が選択されて動きベクトルとして、(−2、−2)
または(2、2)を伝送した場合で、復号時にたまたま
この動きベクトルを復号できない場合には、復号側での
動きベクトルは(0、0)に置き換えて現フレームデー
タ内の対象ブロックと同位置にあるサーチウインド検索
順“13”の比較ブロックを用いた復号動作(コンシー
ル)がなされる。That is, as the selection result for the plurality of minimum results, the search window search order is "1" or "2".
5 "is selected and the motion vector is (-2, -2).
Or, when (2, 2) is transmitted and it happens that the motion vector cannot be decoded at the time of decoding, the motion vector on the decoding side is replaced with (0, 0) and the same position as the target block in the current frame data is located. The decoding operation (conceal) using the comparison block in the search window search order “13” in FIG.
【0041】つまり、通常復号時と上記に示すコンシー
ル時では動き補償動作に用いるベクトルが異なってい
る。そのために映像信号の内容および伝送路の状態によ
っては、コンシール動作を併用した復号再生映像信号の
品位が損なわれて、目障りな再生画像となってしまうこ
とがある。That is, the vector used for the motion compensation operation is different between the normal decoding and the concealment described above. Therefore, depending on the content of the video signal and the state of the transmission path, the quality of the decoded reproduction video signal combined with the concealment operation may be impaired, resulting in an unpleasant reproduction image.
【0042】また、通常の動画再生時に、テスト信号の
ようなある範囲区間の映像内容が同一平坦な映像内容の
信号に切り替えた後の一定時間の間にわたって切り替え
に伴うエラーが伝播して再生画像がきわめて見苦しいも
のとなってしまう。During normal moving image reproduction, an error accompanying switching is propagated for a certain period of time after a video signal in a certain range section such as a test signal is switched to a signal having the same flat video content, and a reproduced image is reproduced. Becomes very unsightly.
【0043】以上のことをまとめると、静止画のような
時間軸方向の画像変化が少ない画像に対し、動きベクト
ル検出をして動き補償動作する場合に、映像内容が同じ
であるとは限らないが動き情報を判断するブロック間の
演算結果が複数同じになることが多い。この場合、動き
情報として検出するベクトル値は一般的に先のアルゴリ
ズム1または2に従った値であるために、コンシール動
作を伴った復号再生時に映像内容によってはエラー伝播
が起こることになり、著しく再生画像品位を損ねること
になる。To summarize the above, when the motion vector is detected and the motion compensation operation is performed on an image such as a still image in which the image change in the time axis direction is small, the image contents are not always the same. In many cases, a plurality of calculation results between blocks for determining motion information are the same. In this case, since the vector value detected as the motion information is generally a value according to the algorithm 1 or 2 above, error propagation occurs depending on the video content during decoding and reproduction accompanied by the concealment operation, and remarkably. The quality of the reproduced image is impaired.
【0044】本発明は上述の問題点にかんがみ、コンシ
ール動作を伴って復号再生した画像の品位を向上させる
ことを目的とする。In view of the above problems, it is an object of the present invention to improve the quality of an image decoded and reproduced with a concealment operation.
【0045】[0045]
【課題を解決するための手段】本発明の動きベクトル検
出方法は、動きベクトルを求めるための対象ブロック
と、上記対象ブロックと比較するための前フレームまた
はフィールド内の上記対象ブロックと対応する検索範囲
内の複数の比較ブロックとの動きベクトル判定式の結果
が複数同じになるとともに、最も確率の高い動き情報で
あると判定された時には、上記複数の比較ブロックの中
から対象ブロックに対してベクトルの一番小さい(距離
の近い)比較ブロックを唯一の動き情報として決定する
ようにしている。A motion vector detecting method according to the present invention comprises a search range corresponding to a target block for obtaining a motion vector and the target block in a previous frame or field for comparison with the target block. When the result of the motion vector determination formula with a plurality of comparison blocks in the same is the same, and when it is determined that the motion information has the highest probability, the vector of the target block is selected from the plurality of comparison blocks. The smallest (closest distance) comparison block is determined as the only motion information.
【0046】[0046]
【作用】一般的に、ブロック間の演算結果が複数同じに
なるような映像データでは、多くの場合、映像情報の相
関性から現フレームの動きベクトル検出対象ブロックに
対し、予測前フレームのサーチウインド内比較ブロック
群の中では上記対象ブロックと同位置に相当する比較ブ
ロックの映像内容が同じである確率が高いことを利用
し、本発明の動きベクトル検出方法においては、対象ブ
ロックに対して最もベクトル距離の近い比較ブロックを
動き補償動作のための予測ブロック情報とし、また、こ
の予測ブロックのサーチウインド内の位置情報を動きベ
クトルとするようにしている。In general, in the case of video data in which the calculation results between blocks are the same, in many cases, the search window of the pre-prediction frame is compared with the motion vector detection target block of the current frame due to the correlation of the video information. In the inner comparison block group, the fact that the image content of the comparison block corresponding to the same position as the target block is the same is high, and in the motion vector detection method of the present invention, the A comparison block having a short distance is used as prediction block information for motion compensation operation, and position information in the search window of this prediction block is used as a motion vector.
【0047】すなわち、上記例のように対象ブロックと
サーチウインドの検索順“1”、“13”、“25”の
比較ブロック間の演算結果が等しい場合には、“13”
の比較ブロックを動き補償動作のための予測ブロックと
し、予測ブロックのサーチウインド内の位置情報を動き
ベクトルとするようにしている。That is, when the calculation result is the same between the target block and the comparison blocks in the search order "1", "13", "25" of the search window as in the above example, "13".
Is used as a prediction block for motion compensation operation, and position information in the search window of the prediction block is used as a motion vector.
【0048】これにより、静止画のような現フレームと
予測前フレーム間の画像情報および画像内容が平坦な場
合の画像情報に動き補償動作を施し符号および復号した
場合で、伝送路にエラーが混入し復号側で動きベクトル
の誤り訂正ができずにコンシール動作するような場合の
復号再生画像が、コンシール動作しない通常復号再生の
時の画質とより近くなる確率が高くなり、再生画像品位
が向上する。As a result, when the image information between the current frame and the pre-prediction frame such as a still image and the image information when the image content is flat are coded and decoded by the motion compensation operation, an error is mixed in the transmission line. However, when the decoding side cannot perform error correction of the motion vector and the concealment operation is performed, the probability that the decoded reproduction image becomes closer to the image quality of the normal decoding reproduction without the concealment operation is increased, and the reproduction image quality is improved. .
【0049】[0049]
【実施例】以下、本発明の動きベクトル検出方法の一実
施例を添付図面を参照して説明する。図1に示すよう
に、本実施例の動きベクトル検出方法は、従来例を示す
図4のような符号および復号装置において、発明が解決
しようとしている課題で述べたような動き情報を判断す
るブロック間の演算結果が複数同じになった場合の動き
情報の識別を、演算結果の同じ複数の比較ブロックの中
で、対象ブロックの位置と一番近いブロックとするよう
なアルゴリズムとする動きベクトル検出回路とするもの
である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the motion vector detecting method of the present invention will be described below with reference to the accompanying drawings. As shown in FIG. 1, the motion vector detecting method of the present embodiment is a block for determining motion information as described in the problem to be solved by the invention in the encoding and decoding apparatus as shown in FIG. A motion vector detection circuit that uses an algorithm to identify motion information when a plurality of calculation results are the same as each other among a plurality of comparison blocks having the same calculation result It is what
【0050】すなわち、従来例で説明したようにして対
象ブロックとサーチウインドの検索順に従ってそれぞれ
の比較ブロックの各画素間の差分値の絶対値総和を各々
のブロック間について算出する。That is, as described in the conventional example, the absolute value sum of the difference values between the pixels of each comparison block is calculated for each block according to the search order of the target block and the search window.
【0051】そして、その結果、複数の演算結果が同じ
で予測現データである動き情報の候補になったならば、
さらに先の同じ演算結果になった複数の比較ブロックと
対象ブロック間との距離(ベクトル)を調べて、一番距
離の近い(ベクトルの小さい)比較ブロックおよびベク
トルを動き情報と決定する。したがって、発明が解決し
ようとしている課題で述べたような画像情報等に対して
は、サーチウインド検索順“13”の比較ブロックが検
出される。As a result, if a plurality of calculation results are the same and become motion information candidates which are predicted current data,
Further, the distances (vectors) between the plurality of comparison blocks that have the same calculation result and the target block are checked, and the comparison block and the vector having the shortest distance (smaller vector) are determined as the motion information. Therefore, the comparison block in the search window search order “13” is detected for the image information and the like described in the problem to be solved by the invention.
【0052】図2は、本実施例の動きベクトル検出方法
を実現するための動きベクトル検出装置の概略構成図、
図3は動作の様子を示すフローチャートである。以下、
図2および図3を参照して簡単に動作説明する。FIG. 2 is a schematic configuration diagram of a motion vector detecting device for realizing the motion vector detecting method of this embodiment,
FIG. 3 is a flow chart showing the operation. Less than,
The operation will be briefly described with reference to FIGS. 2 and 3.
【0053】先ず、ステップP1において、対象ブロッ
クとサーチウインド内の比較ブロックとの各画素間差分
値の絶対値総和計算を行う。この計算は絶対値総和計算
回路11で行い、その計算結果e(ij)とベクトル
(i,j)を検索順に第1のレジスタ12(レジスタ
A)にストアする。First, at step P1, the absolute value sum of the difference values between pixels of the target block and the comparison block in the search window is calculated. This calculation is performed by the absolute value sum calculation circuit 11, and the calculation result e (ij) and the vector (i, j) are stored in the first register 12 (register A) in the search order.
【0054】次に、ステップP2において、この第1の
レジスタ12の誤差データと、すでにストアされている
第2のレジスタ13(レジスタB)の誤差データとを絶
対値総和比較回路14で比較する。Next, at step P2, the absolute value sum comparison circuit 14 compares the error data of the first register 12 with the error data of the second register 13 (register B) already stored.
【0055】そして、レジスタAにストアされている誤
差の方がレジスタBにストアされている誤差よりも小さ
い場合には、次にステップP5に進み、レジスタ制御回
路16の制御によりレジスタAのデータをレジスタBに
ストアする。When the error stored in the register A is smaller than the error stored in the register B, the process proceeds to step P5, in which the data of the register A is controlled by the control of the register control circuit 16. Store in register B.
【0056】一方、ステップP2おける比較結果が、レ
ジスタAにストアされているデータの誤差の方がレジス
タBにストアされているデータの誤差よりも大きい場
合、もしくは等しい場合には、ステップP3に進んで誤
差の比較を行う。On the other hand, if the comparison result in step P2 indicates that the error in the data stored in the register A is larger than the error in the data stored in the register B, or if they are equal, the process proceeds to step P3. Compare the errors with.
【0057】そして、レジスタAの誤差とレジスタBの
誤差とが等しくない場合はステップP6にジャンプす
る。また、等しい場合にはステップP4に進み、ベクト
ル比較回路15により対象ブロックに対するレジスタA
とレジスタBのベクトル距離を比較する。そして、対象
ブロックに近いベクトル距離のレジスタのデータをレジ
スタBにストアする。If the error in the register A is not equal to the error in the register B, the process jumps to step P6. If they are equal, the process proceeds to step P4 and the vector comparison circuit 15 causes the register A for the target block.
And the vector distance of register B are compared. Then, the data of the register having the vector distance close to the target block is stored in the register B.
【0058】次に、ステップP6に進み、以上のことを
対象ブロックとサーチウインドの検索順に従った全ての
比較ブロック間について調べる。そして、ブロックマッ
チングが終了したら、最後にステップP7に進み、レジ
スタBにストアされている座標データ(i,j)を動き
ベクトルと決定する。Next, in step P6, the above is checked between the target block and all comparison blocks in the search order of the search window. Then, when the block matching is completed, the process finally proceeds to step P7, and the coordinate data (i, j) stored in the register B is determined as the motion vector.
【0059】上述したように、本実施例の動きベクトル
検出方法の場合には、ステップP4で行うベクトル距離
比較判定を行う回路15を新たに設け、対象ブロックと
比較ブロック各画素間差分値の絶対値総和以外に、対象
ブロックとのベクトル距離も合わせて判断するようにし
ている。As described above, in the case of the motion vector detecting method of the present embodiment, the circuit 15 for performing the vector distance comparison / determination performed in step P4 is newly provided, and the absolute value of the difference value between each pixel of the target block and the comparison block is absolute. In addition to the total value, the vector distance from the target block is also determined.
【0060】[0060]
【発明の効果】本発明は上述したように、動きベクトル
検出のための演算結果が複数のブロック間で同じで、予
測現データである動き情報の候補になった場合に対象ブ
ロックと先の演算結果が同じになった複数の比較ブロッ
ク間のベクトルを調べて、対象ブロックと最も近いベク
トルの比較ブロックの位置を動きベクトルとして検出す
るようにしたので、静止画のような現フレームと予測前
フレーム間の画像情報および画像内容が平坦な場合の画
像情報に動き補償動作を施し符号および復号した場合
で、伝送路にエラーが混入し復号側で動きベクトルの誤
り訂正ができずにコンシール動作を行って復号再生した
画像が、コンシール動作しない通常復号再生の時の画質
とより近くなる確率を高めることができ、再生画像の品
位を大幅に向上させることができる。As described above, according to the present invention, when the calculation result for motion vector detection is the same among a plurality of blocks and the motion information which is the prediction current data becomes a candidate, the target block and the previous calculation are performed. By checking the vector between multiple comparison blocks that have the same result and detecting the position of the comparison block of the vector closest to the target block as a motion vector, the current frame such as a still image and the frame before prediction When the motion compensation operation is applied to the image information and the image information when the image content between the two is flat and encoded and decoded, an error is mixed in the transmission line and the decoding side cannot correct the error of the motion vector and performs the concealment operation. It is possible to increase the probability that the image decoded and played back will be closer to the image quality in normal decoding playback without concealment operation, and the quality of the played image will be greatly improved. It is possible.
【図面の簡単な説明】[Brief description of drawings]
【図1】本発明および従来技術の動きベクトル検出を説
明する図である。FIG. 1 is a diagram illustrating motion vector detection according to the present invention and the prior art.
【図2】本実施例の動きベクトル検出方法を実現させる
動きベクトル検出回路の概略構成を示すブロック図であ
る。FIG. 2 is a block diagram showing a schematic configuration of a motion vector detection circuit that realizes the motion vector detection method of the present embodiment.
【図3】本実施例の動きベクトル検出方法の手順を示す
フローチャートである。FIG. 3 is a flowchart showing a procedure of a motion vector detecting method according to this embodiment.
【図4】従来技術を示し、動き補償予測動作を利用した
符号および復号装置の概略構成図である。[Fig. 4] Fig. 4 is a schematic configuration diagram of a coding and decoding device using a motion compensation prediction operation according to a conventional technique.
【図5】動きベクトル検出のブロックマッチングの様子
を表す図である。FIG. 5 is a diagram illustrating a state of block matching for motion vector detection.
【図6】サーチウインド内におけるブロックマッチング
の検索順序を示す図である。FIG. 6 is a diagram showing a search order of block matching in a search window.
【図7】サーチウインドの検索位置と動きベクトルとの
関係を表す図である。FIG. 7 is a diagram showing a relationship between a search position of a search window and a motion vector.
11 絶対値総和計算回路 12 第1のレジスタ 13 第2のレジスタ 14 絶対値総和比較回路 15 ベクトル距離比較回路 16 レジスタ制御回路 11 Absolute Value Sum Calculation Circuit 12 First Register 13 Second Register 14 Absolute Value Sum Comparison Circuit 15 Vector Distance Comparison Circuit 16 Register Control Circuit
Claims (1)
クと、上記対象ブロックと比較するための前フレームま
たはフィールド内の上記対象ブロックと対応する検索範
囲内の複数の比較ブロックとの動きベクトル判定式の結
果が複数同じになるとともに、最も確率の高い動き情報
であると判定された時には、上記複数の比較ブロックの
中から対象ブロックに対してベクトルの一番小さい(距
離の近い)比較ブロックを唯一の動き情報として決定す
ることを特徴とする動きベクトル検出方法。1. A motion vector determination formula for a target block for obtaining a motion vector and a plurality of comparison blocks in a search range corresponding to the target block in a previous frame or field for comparison with the target block When multiple results are the same and it is determined that the motion information has the highest probability, the comparison block with the smallest vector (closest distance) to the target block is selected from the above comparison blocks. A motion vector detection method characterized by determining as motion information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5191933A JPH0730902A (en) | 1993-07-06 | 1993-07-06 | Motion vector detection method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5191933A JPH0730902A (en) | 1993-07-06 | 1993-07-06 | Motion vector detection method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0730902A true JPH0730902A (en) | 1995-01-31 |
Family
ID=16282869
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5191933A Pending JPH0730902A (en) | 1993-07-06 | 1993-07-06 | Motion vector detection method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0730902A (en) |
-
1993
- 1993-07-06 JP JP5191933A patent/JPH0730902A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6628711B1 (en) | Method and apparatus for compensating for jitter in a digital video image | |
| JP5420600B2 (en) | Temporal estimation of motion vectors for video communication. | |
| JP4198206B2 (en) | Video information compression method and apparatus using motion dependent prediction | |
| JPH11168387A (en) | Improved coding of digital signals | |
| US20070217511A1 (en) | Method and system for motion estimation with multiple vector candidates | |
| CN1457604A (en) | Motion information encoding and decoding method | |
| US20020034250A1 (en) | Motion vector coding method | |
| US20050276328A1 (en) | Motion vector detection apparatus and method | |
| US6914938B2 (en) | Interlaced video motion estimation | |
| JP2938412B2 (en) | Method for compensating luminance change of moving image, moving image encoding device, moving image decoding device, recording medium recording moving image encoding or decoding program, and recording medium recording moving image encoded data | |
| US20050138532A1 (en) | Apparatus and method for concealing errors in a frame | |
| JP2001186521A (en) | Image decoding apparatus and method | |
| TWI225372B (en) | Method of detecting motion vector | |
| US6975681B2 (en) | Method and apparatus for coding moving pictures | |
| CN1167533A (en) | Method and apparatus for improved motion compensation | |
| JPH09121359A (en) | Image encoding method and image decoding method | |
| JP2000023164A (en) | Digital video processing system | |
| JP2000059792A (en) | High-efficiency encoder for video signals | |
| JP2002325259A (en) | Method of encoding digital image based on error correction | |
| CN100512449C (en) | Method and apparatus for rehiding mistakes included in decoding image | |
| JP3150627B2 (en) | Re-encoding method of decoded signal | |
| JPH09284777A (en) | Video coding method and apparatus using motion compensation without motion vector | |
| JP2861971B2 (en) | Motion vector prediction device | |
| JPH0810937B2 (en) | Motion compensation error correction method | |
| JPH05308662A (en) | High efficiency encoder |