JPH11113003A - Motion vector detector and motion vector detection method - Google Patents

Motion vector detector and motion vector detection method

Info

Publication number
JPH11113003A
JPH11113003A JP21705098A JP21705098A JPH11113003A JP H11113003 A JPH11113003 A JP H11113003A JP 21705098 A JP21705098 A JP 21705098A JP 21705098 A JP21705098 A JP 21705098A JP H11113003 A JPH11113003 A JP H11113003A
Authority
JP
Japan
Prior art keywords
motion vector
search range
search
block
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP21705098A
Other languages
Japanese (ja)
Other versions
JP3276073B2 (en
Inventor
Akihiko Otani
昭彦 大谷
Katsuji Aoki
勝司 青木
Toshiyuki Araki
敏之 荒木
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP21705098A priority Critical patent/JP3276073B2/en
Publication of JPH11113003A publication Critical patent/JPH11113003A/en
Application granted granted Critical
Publication of JP3276073B2 publication Critical patent/JP3276073B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To execute detection of a motion vector efficiently with high accuracy from images with various characteristics. SOLUTION: A motion vector detection section 30 detects a motion vector from a coding object block, based on a correlation with respect to object blocks within a search range. A search range storage memory 20 stores pixel data within an original search range and gives the pixel data within the original search range to the motion vector detection section 30 in response to a memory address MA. A control section 40 sets a size and a position of the search range, based on a stored motion vector fed from the motion vector detection section 30 and a correlation evaluation value and generates a pixel width in horizontal and vertical directions of the search range and an offset denoting a relative position with respect to the original search range. An address generating section 10 generates the memory address MA given to the retrieval range storage memory 20, based on the pixel width and the offset of the search range generated by the control section 40.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタル動画像
データの圧縮符号化の手法である動き補償予測符号化に
おいて用いられる動きベクトル検出に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to motion vector detection used in motion compensated predictive coding, which is a technique for compressing and coding digital video data.

【0002】[0002]

【従来の技術】動画像の画像符号化を実現する方法とし
て、現在の画面のある部分が1つ前の画面のどの場所か
ら移動したかを示す情報(動きベクトル)を用いて、時
間的な冗長性を削減するという方法がある。この動きベ
クトルを抽出するための1つの方法として、ブロックマ
ッチング法がある。
2. Description of the Related Art As a method of realizing image coding of a moving image, temporal information is used by using information (movement vector) indicating from where in the previous screen a certain portion of the current screen has moved. There is a method of reducing redundancy. One method for extracting the motion vector is a block matching method.

【0003】図16はブロックマッチング法の原理を示
す図である。符号化の対象である対象フレーム画像(対
象フレーム)と動きベクトルを探索する探索フレーム画
像(探索フレーム)とを比較し、対象フレームの符号化
対象ブロックと最も似通った(すなわち最も相関度が高
い)ブロック(ベストマッチブロック)を探索フレーム
の探索範囲内から抽出して、動きベクトルを検出する。
このブロックマッチング法は、画像圧縮符号化の動き補
償予測に広く用いられている。
FIG. 16 shows the principle of the block matching method. A target frame image (target frame) to be encoded is compared with a search frame image (search frame) for searching for a motion vector, and the target frame image most similar to the coding target block of the target frame (that is, having the highest degree of correlation). A block (best match block) is extracted from within the search range of the search frame to detect a motion vector.
This block matching method is widely used for motion compensation prediction in image compression coding.

【0004】ブロックマッチング法では、1個の符号化
対象ブロックに対し、探索フレームの探索範囲内の複数
の候補ブロックとの相関度をそれぞれ演算し、相関度が
最も高い候補ブロックをベストマッチブロックとして選
択し、ベストマッチブロックと符号化対象ブロックとの
位置の差を、動きベクトルとして検出する。
In the block matching method, the degree of correlation between one encoding target block and a plurality of candidate blocks within a search range of a search frame is calculated, and the candidate block having the highest correlation is determined as the best match block. The difference between the position of the best match block and the current block is detected as a motion vector.

【0005】相関度の評価値としては、一般的には、自
乗誤差の累算値(Square Error)や絶対値誤差の累算値
(Absolute Error)が用いられる。符号化対象ブロック
と候補ブロックとの差分値は、その相関度が高いほど小
さくなるので、自乗誤差の累算値や絶対値誤差の累算値
を評価値として用いた場合には、評価値は、相関度が高
いほど小さい値になる。
As the evaluation value of the degree of correlation, an accumulated value of square error (Square Error) and an accumulated value of absolute value error (Absolute Error) are generally used. Since the difference value between the current block and the candidate block becomes smaller as the degree of correlation becomes higher, when the accumulated value of the square error or the accumulated value of the absolute value error is used as the evaluation value, the evaluation value is , The higher the correlation, the smaller the value.

【0006】動きベクトル検出の目的は、動き補償予測
符号化において符号量を最も効果的に削減できるブロッ
クを探索フレームから検出することである。したがっ
て、動きベクトルの検出精度が、動きベクトル検出装置
の重要な性能の1つである。しかしながら、動きベクト
ル検出は画像符号化アルゴリズムの中でも特に演算量を
要する処理であり、これをハードウエアで実現する場合
には、処理時間が長いことやハード規模が大きいことに
よって、消費電力が大きいという課題がある。また現状
では、ソフトウエアによるリアルタイム処理は、はなは
な困難である。これらの背景から、検出精度が高く、か
つ、処理効率のよい動きベクトル検出が望まれている。
The purpose of motion vector detection is to detect, from a search frame, a block in which the amount of code can be reduced most effectively in motion compensated prediction coding. Therefore, the detection accuracy of the motion vector is one of the important performances of the motion vector detection device. However, motion vector detection is a process that requires a particularly large amount of computation among image coding algorithms, and when this is realized by hardware, power consumption is large due to the long processing time and large hardware scale. There are issues. At present, real-time processing by software is extremely difficult. From these backgrounds, motion vector detection with high detection accuracy and high processing efficiency is desired.

【0007】従来の動きベクトル検出装置として、動き
の小さい画像に対しては探索範囲を小さくして動きベク
トル検出のための処理時間を短縮する一方、動きの大き
い画像に対しては探索範囲を大きくすることによって、
検出精度を下げないで、処理効率の向上を図ったものが
ある。
As a conventional motion vector detecting device, a search range is reduced for an image having a small motion to shorten the processing time for detecting a motion vector, while a search range is increased for an image having a large motion. By,
In some cases, the processing efficiency is improved without lowering the detection accuracy.

【0008】例えば、特開平8−32969号公報に開
示された動きベクトル検出装置は、処理ブロックと同位
置における相関評価を行う手段と、同位置の相関評価結
果に応じて探索範囲の大きさを適応的に選択制御する手
段と、探索範囲の各候補ブロックとの相関を評価して動
きベクトル検出を行う手段とを備え、同位置の相関が高
くなるに従って探索範囲を縮小している。これにより、
少ない演算量で動きベクトルを精度よく検出することが
可能になる。
For example, a motion vector detecting device disclosed in Japanese Patent Application Laid-Open No. 8-32969 has a means for performing a correlation evaluation at the same position as a processing block, and a search range size according to the correlation evaluation result at the same position. A means for adaptively controlling the selection and a means for evaluating the correlation between each candidate block in the search range and detecting a motion vector are provided, and the search range is reduced as the correlation at the same position becomes higher. This allows
A motion vector can be accurately detected with a small amount of calculation.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、従来の
動きベクトル検出装置には、次のような問題がある。
However, the conventional motion vector detecting device has the following problems.

【0010】カメラ撮影などによる映像では、画面全体
が一定方向に移動するいわゆるパーン画像が頻繁に用い
られる。パーン画像では、画面に映し出された物体自体
は変わらずに、その位置が一定方向に移動する。
[0010] A so-called panned image in which the entire screen moves in a fixed direction is frequently used in an image captured by a camera or the like. In the pan image, the object itself projected on the screen does not change, and its position moves in a certain direction.

【0011】前記の従来の動きベクトル検出装置では、
処理ブロックと同位置における相関評価によって探索範
囲の大きさを設定しているために、例えばパーン画像に
対しては、同位置における相関度は低いので、常に大き
い探索範囲が設定されてしまう。また、同位置相関評価
を動きベクトル検出に先立ち実行するので、処理が複雑
になるという問題もある。
In the above-mentioned conventional motion vector detecting device,
Since the size of the search range is set by the correlation evaluation at the same position as the processing block, for example, for a pan image, the degree of correlation at the same position is low, so that a large search range is always set. In addition, since the same position correlation evaluation is performed prior to the motion vector detection, there is a problem that the processing becomes complicated.

【0012】前記の問題に鑑み、本発明は、様々な特徴
を持つ画像に対し、効率的に、かつ、精度よく、動きベ
クトル検出を実行可能にすることを課題とし、特に、パ
ーン画像に対して、正確かつ高速に動きベクトル検出を
実行可能にする。
In view of the above problems, an object of the present invention is to make it possible to efficiently and accurately execute motion vector detection on an image having various characteristics. Thus, the motion vector detection can be performed accurately and at high speed.

【0013】[0013]

【課題を解決するための手段】前記の課題を解決するた
めに、請求項1の発明が講じた解決手段は、動きベクト
ル検出装置として、対象フレームの符号化対象ブロック
と、探索フレームの探索範囲内の候補ブロックとの相関
度を示す評価値を算出し、これらの相関度評価値を基に
して、前記符号化対象ブロックに対する動きベクトルを
検出する動きベクトル検出手段と、原探索範囲の画素デ
ータを記憶しており、与えられたメモリアドレスに応じ
て画素データを読み出し、前記動きベクトル検出手段に
供給する原探索範囲記憶手段と、探索範囲の,水平方向
の画素幅である第1の探索幅および垂直方向の画素幅で
ある第2の探索幅と、前記探索範囲の原探索範囲に対す
る相対位置を示すオフセット値とを生成する制御手段
と、前記制御手段によって生成された第1および第2の
探索幅並びにオフセット値に基づいて、前記原探索範囲
記憶手段に与えるメモリアドレスを生成するアドレス生
成手段とを備えたものである。
Means for Solving the Problems To solve the above-mentioned problems, a solution taken by the invention of claim 1 is to provide a motion vector detecting device as a coding target block of a target frame and a search range of a search frame. Motion vector detecting means for calculating an evaluation value indicating a degree of correlation with a candidate block in the block, and detecting a motion vector for the encoding target block based on the degree of correlation evaluation, and pixel data in an original search range. And an original search range storage means for reading out pixel data in accordance with a given memory address and supplying the pixel data to the motion vector detection means, and a first search width which is a horizontal pixel width of the search range. Control means for generating a second search width, which is a pixel width in the vertical direction, and an offset value indicating a relative position of the search range with respect to the original search range; Based on the first and second search widths and the offset value generated I, wherein is obtained and an address generating means for generating a memory address to be given to the original search range storing means.

【0014】請求項1の発明によると、制御手段によっ
て生成された第1および第2の探索幅並びにオフセット
値に基づいて、アドレス生成手段は、探索範囲に対応す
るメモリアドレスを生成する。このメモリアドレスに応
じて原探索範囲記憶手段から読み出された画素データを
用いて、動きベクトル検出手段は、符号化対象ブロック
と探索範囲内の候補ブロックとの相関度を示す評価値を
算出し、動きベクトルを検出する。このため、探索範囲
のサイズおよび位置が、自在に設定できることになり、
効率的に、かつ、精度よく、動きベクトル検出を実行す
ることができる。
According to the first aspect of the present invention, the address generating means generates a memory address corresponding to the search range based on the first and second search widths and the offset value generated by the control means. Using the pixel data read from the original search range storage means according to the memory address, the motion vector detection means calculates an evaluation value indicating the degree of correlation between the current block and the candidate blocks within the search range. , Detect the motion vector. For this reason, the size and position of the search range can be freely set,
Motion vector detection can be performed efficiently and accurately.

【0015】そして、請求項2の発明では、前記請求項
1の動きベクトル検出装置において、前記動きベクトル
検出手段は、検出した動きベクトルと、この動きベクト
ルに対応する相関度評価値とを前記制御手段に供給する
ものとし、前記制御手段は、前記動きベクトル検出手段
から供給された動きベクトルおよび相関度評価値に基づ
いて、第1および第2の探索幅並びにオフセット値の生
成を行うものとする。
According to a second aspect of the present invention, in the motion vector detecting device according to the first aspect, the motion vector detecting means controls the detected motion vector and a correlation evaluation value corresponding to the detected motion vector. The control means generates first and second search widths and offset values based on the motion vector and the correlation evaluation value supplied from the motion vector detection means. .

【0016】請求項2の発明によると、探索範囲の第1
および第2の探索幅並びにオフセット値は、すでに検出
された動きベクトルおよび評価値に基づいて生成される
ので、探索範囲のサイズおよび位置を決めるために、動
きベクトル検出に先立って新たな処理を行う必要がな
い。また、動きベクトルは画像の動きを表すものなの
で、動きベクトルとこれに対応する相関度評価値とを基
にして探索範囲の設定を行うことによって、特に、画像
が一定方向に動くパーン画像に対して、適切な探索範囲
の設定が可能になる。
According to the second aspect of the present invention, the first of the search range is set.
And the second search width and the offset value are generated based on the motion vector and the evaluation value already detected, so that new processing is performed prior to the motion vector detection in order to determine the size and position of the search range. No need. In addition, since the motion vector represents the motion of the image, by setting the search range based on the motion vector and the corresponding correlation evaluation value, particularly for a pan image in which the image moves in a certain direction. Thus, an appropriate search range can be set.

【0017】さらに、請求項3の発明では、前記請求項
2の動きベクトル検出装置における制御手段は、対象フ
レームの前フレームにおける当該符号化対象ブロックと
同一位置またはその近傍のブロックを範囲設定基準ブロ
ックとし、前記範囲設定基準ブロックに対応する相関度
評価値に基づいて、探索範囲のサイズを設定するものと
する。
Further, in the invention according to claim 3, the control means in the motion vector detecting apparatus according to claim 2 is arranged such that a block located at the same position as or adjacent to the coding target block in the previous frame of the target frame is set as a range setting reference block. The size of the search range is set based on the correlation evaluation value corresponding to the range setting reference block.

【0018】請求項3の発明によると、対象フレームの
前フレームにおける当該符号化対象ブロックと同一位置
またはその近傍にある範囲設定基準ブロックに対応する
相関度評価値によって、当該符号化対象ブロックの,探
索フレームとの関連の度合いはある程度予測できるの
で、この範囲設定基準ブロックの相関度評価値によって
探索範囲のサイズを設定することによって、特に、画像
が一定方向に動くパーン画像に対して、適切な探索範囲
の設定が可能になる。
According to the invention of claim 3, the correlation evaluation value corresponding to the range setting reference block located at or near the same position as the current block in the previous frame of the current frame, Since the degree of association with the search frame can be predicted to some extent, setting the size of the search range based on the correlation evaluation value of this range setting reference block makes it possible to set an appropriate value especially for a panned image in which the image moves in a certain direction. The search range can be set.

【0019】また、請求項4の発明では、前記請求項2
の動きベクトル検出装置における制御手段は、対象フレ
ームの前フレームにおける当該符号化対象ブロックと同
一位置またはその近傍のブロックを範囲設定基準ブロッ
クとし、前記範囲設定基準ブロックに対応する動きベク
トルに基づいて、探索範囲の位置を設定するものとす
る。
According to the fourth aspect of the present invention, the second aspect of the present invention is provided.
The control means in the motion vector detection device of the above, the block at the same position as the encoding target block in the previous frame of the target frame or a block in the vicinity thereof as a range setting reference block, based on a motion vector corresponding to the range setting reference block, The position of the search range shall be set.

【0020】請求項4の発明によると、対象フレームの
前フレームにおける当該符号化対象ブロックと同一位置
またはその近傍にある範囲設定基準ブロックに対応する
動きベクトルによって、当該符号化対象ブロックの動き
はある程度予測できるので、この範囲設定基準ブロック
の動きベクトルによって探索範囲の位置を設定すること
によって、特に、画像が一定方向に動くパーン画像に対
して、適切な探索範囲の設定が可能になる。
According to the fourth aspect of the present invention, the motion of the current block to be encoded is controlled to some extent by the motion vector corresponding to the range setting reference block at the same position as or near the current block in the previous frame of the current frame. Since the prediction can be made, by setting the position of the search range by the motion vector of the range setting reference block, it is possible to set an appropriate search range, particularly for a panned image in which the image moves in a certain direction.

【0021】そして、請求項5の発明では、前記請求項
2の動きベクトル検出装置における制御手段は、対象フ
レームの前フレームにおける当該符号化対象ブロックと
同一位置またはその近傍のブロックを範囲設定基準ブロ
ックとし、前記範囲設定基準ブロックに対応する相関度
評価値が示す相関度が相対的に低いときは、原探索範囲
を探索範囲として設定する一方、相対的に高いときは、
探索範囲のサイズを前記原探索範囲よりも小さく設定
し、かつ、その探索範囲の位置を前記範囲設定基準ブロ
ックに対応する動きベクトルを基にして設定するものと
する。
According to a fifth aspect of the present invention, the control means in the motion vector detecting apparatus according to the second aspect sets the block at the same position as or adjacent to the encoding target block in the previous frame of the target frame as a range setting reference block. And, when the correlation degree indicated by the correlation degree evaluation value corresponding to the range setting reference block is relatively low, the original search range is set as the search range, while when the correlation degree is relatively high,
The size of the search range is set smaller than the original search range, and the position of the search range is set based on the motion vector corresponding to the range setting reference block.

【0022】また、請求項6の発明では、前記請求項1
の動きベクトル検出装置におけるオフセット値は、原探
索範囲の探索起点を始端とし、探索範囲の探索起点を終
端とするベクトルの成分とする。
In the invention according to claim 6, the first aspect is provided.
The offset value in the motion vector detecting device is a component of a vector starting from the search starting point in the original search range and ending at the search starting point in the search range.

【0023】そして、請求項7の発明では、前記請求項
1の動きベクトル検出装置におけるアドレス生成手段
は、クロックを計数する第1のカウンタと、前記第1の
探索幅と前記第1のカウンタの計数値とを比較し、一致
したとき、前記第1のカウンタの計数値をリセットする
とともにカウントアップ信号を出力する比較器と、前記
カウントアップ信号を計数する第2のカウンタと、前記
オフセット値と前記第1および第2のカウンタの計数値
とに基づいて、所定の計算式に従って、前記原探索範囲
記憶手段に供給するメモリアドレスを生成するメモリア
ドレス変換部とを備えているものとする。
According to a seventh aspect of the present invention, in the motion vector detecting device according to the first aspect, the address generating means includes a first counter for counting clocks, a first search width, and a first counter. Comparing the count value, and when they match, a comparator that resets the count value of the first counter and outputs a count-up signal; a second counter that counts the count-up signal; A memory address conversion unit configured to generate a memory address to be supplied to the original search range storage unit in accordance with a predetermined formula based on the count values of the first and second counters.

【0024】また、請求項8の発明では、前記請求項1
の動きベクトル検出装置において、前記制御手段は、第
1および第2の探索幅並びにオフセット値に加えて、当
該探索範囲の,水平方向のサブサンプル度合を表す第1
のサブサンプル数および垂直方向のサブサンプル度合を
表す第2のサブサンプル数を生成するものとし、前記ア
ドレス生成手段は、前記原探索範囲記憶手段に与えるメ
モリアドレスの生成を、前記制御手段によって生成され
た第1および第2の探索幅、第1および第2のサブサン
プル数並びにオフセット値に基づいて行うものとする。
[0024] In the invention of claim 8, the above-mentioned claim 1 is provided.
In the motion vector detecting device, the control means may include a first and a second search width and an offset value, and a first sub-sample degree in a horizontal direction of the search range.
And the second sub-sample number representing the vertical sub-sample degree is generated by the control unit. The address generation unit generates the memory address to be given to the original search range storage unit by the control unit. The search is performed based on the first and second search widths, the first and second subsample numbers, and the offset value.

【0025】また、請求項9の発明が講じた解決手段
は、符号化対象ブロックに対し、動きベクトルを検出す
る方法として、探索フレームにおける所定の領域内に、
前記符号化対象ブロックと類似した部分があるか否かを
判定する第1のステップと、前記第1のステップにおい
て類似した部分があると判定したとき、探索フレームに
おいて、この類似した部分を含み、かつ、前記所定の領
域よりも小さい第1の領域を、動きベクトル検出のため
の探索範囲として設定する第2のステップと、前記第1
のステップにおいて類似した部分がないと判定したと
き、前記第1の領域よりも大きな領域を、動きベクトル
検出のための探索範囲として設定する第3のステップと
を備えているものである。
According to a ninth aspect of the present invention, a method of detecting a motion vector for a block to be encoded includes:
A first step of determining whether or not there is a similar part to the encoding target block; and determining that there is a similar part in the first step, the search frame includes the similar part, A second step of setting a first area smaller than the predetermined area as a search range for detecting a motion vector;
And setting a region larger than the first region as a search range for detecting a motion vector when it is determined that there is no similar portion in the step.

【0026】請求項9の発明によると、探索フレームに
おける所定の領域内に、符号化対象ブロックと類似した
部分があるか否かを判定し、あると判定したとき、探索
フレームにおいて、この類似した部分を含み、かつ、前
記所定の領域よりも小さい領域を動きベクトル検出のた
めの探索範囲として設定するので、特に、画像が一定方
向に動くパーン画像に対して、適切な探索範囲の設定が
可能になる。これによって、効率的に、かつ、精度よ
く、動きベクトル検出を実行することができる。
According to the ninth aspect of the present invention, it is determined whether or not there is a portion similar to the block to be coded in a predetermined area of the search frame. Since a region including a portion and smaller than the predetermined region is set as a search range for motion vector detection, an appropriate search range can be set particularly for a panned image in which an image moves in a certain direction. become. This makes it possible to efficiently and accurately execute motion vector detection.

【0027】そして、請求項10の発明では、前記請求
項9の動きベクトル検出方法において、前記第1のステ
ップは、対象フレームの前フレームにおける当該符号化
対象ブロックと同一位置またはその近傍のブロックを範
囲設定基準ブロックとし、前記判定を、この範囲設定基
準ブロックに対して検出した動きベクトルに対応する相
関度評価値を基にして行うものとし、前記第2のステッ
プは、探索範囲の位置を、前記範囲設定基準ブロックに
対して検出した動きベクトルを基にして設定するものと
する。
According to a tenth aspect of the present invention, in the motion vector detecting method according to the ninth aspect, the first step includes the step of detecting a block at the same position as or adjacent to the current block to be coded in a frame preceding the current frame. A range setting reference block, and the determination is performed based on a correlation degree evaluation value corresponding to a motion vector detected for the range setting reference block, and the second step includes: It is set based on the motion vector detected for the range setting reference block.

【0028】また、請求項11の発明では、前記請求項
9の動きベクトル検出方法において、前記第1のステッ
プは、符号化対象ブロックの一部を少なくとも含む単位
領域と、探索フレームにおける当該符号化対象ブロック
と同一位置の近傍に設けた,前記単位領域と同一サイズ
の複数の比較領域とに対し、所定の画素演算をそれぞれ
行い、これらの演算結果を基にして前記判定を行うもの
とし、前記第2のステップは、前記所定の画素演算の演
算結果から、前記複数の比較領域のうち前記単位領域と
最も類似するものを求め、この比較領域の位置を基にし
て、探索範囲の位置を設定するものとする。
In the eleventh aspect of the present invention, in the motion vector detecting method according to the ninth aspect, the first step includes the step of: determining a unit area including at least a part of an encoding target block; A predetermined pixel operation is performed on each of a plurality of comparison regions of the same size as the unit region provided near the same position as the target block, and the determination is performed based on the calculation results. In the second step, the most similar to the unit area is obtained from the plurality of comparison areas from the calculation result of the predetermined pixel calculation, and the position of the search range is set based on the position of the comparison area. It shall be.

【0029】また、請求項12の発明が講じた解決手段
は、動きベクトル検出方法として、動きベクトル検出の
ための探索範囲を設定するステップと、符号化対象ブロ
ックに対し、前記探索範囲内の候補ブロックとの相関度
を基にして、動きベクトルを検出するステップとを備
え、前記探索範囲設定ステップは、対象フレームの前フ
レームにおける当該符号化対象ブロックと同一位置また
はその近傍のブロックを範囲設定基準ブロックとし、探
索範囲のサイズを、この範囲設定基準ブロックに対して
検出した動きベクトルに対応する相関度評価値を基にし
て設定するものである。
In a twelfth aspect of the present invention, a motion vector detecting method comprises the steps of: setting a search range for detecting a motion vector; Detecting a motion vector based on the degree of correlation with the block, wherein the search range setting step includes setting a block at the same position as or adjacent to the coding target block in the previous frame of the target frame as a range setting reference. A block is set, and the size of the search range is set based on the correlation evaluation value corresponding to the motion vector detected for the range setting reference block.

【0030】請求項12の発明によると、対象フレーム
の前フレームにおける当該符号化対象ブロックと同一位
置またはその近傍にある範囲設定基準ブロックに対応す
る相関度評価値によって、当該符号化対象ブロックの、
探索フレームとの関連の度合いはある程度予測できるの
で、この範囲設定基準ブロックの相関度評価値によって
探索範囲のサイズを設定することによって、適切な探索
範囲の設定が可能になる。
[0030] According to the twelfth aspect of the present invention, the correlation evaluation value corresponding to the range setting reference block located at or near the same position as the current block in the previous frame of the current frame,
Since the degree of association with the search frame can be predicted to some extent, setting the size of the search range based on the correlation evaluation value of the range setting reference block makes it possible to set an appropriate search range.

【0031】また、請求項13の発明が講じた解決手段
は、動きベクトル検出方法として、動きベクトル検出の
ための探索範囲を設定するステップと、符号化対象ブロ
ックに対し、前記探索範囲内の候補ブロックとの相関度
を基にして、動きベクトルを検出するステップとを備
え、前記探索範囲設定ステップは、対象フレームの前フ
レームにおける当該符号化対象ブロックと同一位置また
はその近傍のブロックを範囲設定基準ブロックとし、探
索範囲の位置を、この範囲設定基準ブロックに対して検
出した動きベクトルを基にして設定するものである。
According to a thirteenth aspect of the present invention, there is provided a motion vector detecting method comprising the steps of: setting a search range for detecting a motion vector; Detecting a motion vector based on the degree of correlation with the block, wherein the search range setting step includes setting a block at the same position as or adjacent to the coding target block in the previous frame of the target frame as a range setting reference. A block is set, and the position of the search range is set based on the motion vector detected for this range setting reference block.

【0032】請求項13の発明によると、対象フレーム
の前フレームにおける当該符号化対象ブロックと同一位
置またはその近傍にある範囲設定基準ブロックに対応す
る動きベクトルによって、当該符号化対象ブロックの動
きはある程度予測できるので、この範囲設定基準ブロッ
クの動きベクトルによって探索範囲の位置を設定するこ
とによって、適切な探索範囲の設定が可能になる。
According to the thirteenth aspect of the present invention, the motion of the current block to be encoded is controlled to some extent by the motion vector corresponding to the range setting reference block at the same position as or near the current block in the previous frame of the current frame. Since the prediction can be made, it is possible to set an appropriate search range by setting the position of the search range by the motion vector of the range setting reference block.

【0033】[0033]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0034】(第1の実施形態)図1は時間的に連続し
た3枚のフレーム画像を示す図であり、カメラを右から
左に動かして撮影した,いわゆるパーン画像を表してい
る。パーン画像では、一般的に、ごく短い時間でみた場
合には、画面上の物体は一定速度で動いているといえ
る。したがって、本実施形態では、対象フレーム(フレ
ーム(1))の符号化対象ブロックCBに対する動きベ
クトルMVを検出する際に、探索フレーム(フレーム
(0))における符号化対象ブロックCBと同一位置の
ブロックABを範囲設定基準ブロックとし、この範囲設
定基準ブロックABに対して検出した動きベクトルBM
Vおよびそのときの相関度評価値BAEを基にして、探
索範囲のサイズおよび位置を設定する。これにより、図
1に示すように、探索フレーム内で、符号化対象ブロッ
クCBの画像が存在したと推定される位置に絞って、動
きベクトル検出のための探索範囲を設定することができ
る。したがって、動きベクトル検出を正確かつ高速に実
行することができる。
(First Embodiment) FIG. 1 is a diagram showing three temporally continuous frame images, and shows a so-called pan image obtained by moving a camera from right to left. Generally, in a pan image, when viewed in a very short time, it can be said that the object on the screen is moving at a constant speed. Therefore, in the present embodiment, when detecting the motion vector MV for the encoding target block CB of the target frame (frame (1)), the block at the same position as the encoding target block CB in the search frame (frame (0)) AB is a range setting reference block, and the motion vector BM detected for this range setting reference block AB
Based on V and the correlation evaluation value BAE at that time, the size and position of the search range are set. Thereby, as shown in FIG. 1, it is possible to set a search range for detecting a motion vector by narrowing down to a position where it is estimated that an image of the coding target block CB exists in the search frame. Therefore, motion vector detection can be performed accurately and at high speed.

【0035】図2は本実施形態に係る動きベクトル検出
のための探索範囲を示す概略図である。本実施形態で
は、探索範囲のサイズは2種類とする。図2はMPEG
などの画像符号化規格における一般的なサイズ(水平方
向16画素、垂直方向16画素)の符号化対象ブロック
CBに対する探索範囲の例を示しており、同図中、
(a)は大きい探索範囲Wの例としての水平方向46画
素、垂直方向46画素の探索範囲を、(b)は小さい探
索範囲Sの例としての水平方向30画素、垂直方向30
画素の探索範囲を示している。
FIG. 2 is a schematic diagram showing a search range for detecting a motion vector according to the present embodiment. In the present embodiment, there are two types of search range sizes. Figure 2 shows MPEG
FIG. 3 shows an example of a search range for an encoding target block CB having a general size (16 pixels in the horizontal direction and 16 pixels in the vertical direction) according to the image encoding standard such as
(A) shows a search range of 46 pixels in the horizontal direction and 46 pixels in the vertical direction as an example of the large search range W, and (b) shows 30 pixels in the horizontal direction and 30 pixels of the vertical direction as an example of the small search range S
3 shows a pixel search range.

【0036】小さい探索範囲Sの位置は、大きい探索範
囲Wを基準にした相対位置によって表す。ここでは、探
索範囲Wの探索起点である左上隅を始端とし、探索範囲
Sの探索起点である左上隅を終端とするベクトルをオフ
セット(Hoff,Voff)とし、このオフセットの
成分であるオフセット値によって、探索範囲Sの位置を
表すものとする。このとき、例えば画像が静止画像であ
って、符号化対象ブロックCBの位置に探索範囲Sが設
定されたときは、図2(b)に示すように、オフセット
値は、 Hoff=8 Voff=8 になる。また、探索範囲の水平方向の画素幅を第1の探
索幅としての探索水平(H)画素幅とし、探索範囲の垂
直方向の画素幅を第2の探索幅としての探索垂直(V)
画素幅とする。
The position of the small search range S is represented by a relative position with respect to the large search range W. Here, an offset (Hoff, Voff) is defined as a vector starting from the upper left corner which is the search start point of the search range W and ending at the upper left corner which is the search start point of the search range S. , The position of the search range S. At this time, for example, when the image is a still image and the search range S is set at the position of the coding target block CB, as shown in FIG. 2B, the offset value is Hoff = 8 Voff = 8 become. Also, the horizontal pixel width of the search range is defined as a search horizontal (H) pixel width as a first search width, and the vertical pixel width of the search range is defined as a search vertical (V) as a second search width.
Pixel width.

【0037】図3は本実施形態に係る動きベクトル検出
装置の構成を示す図である。図3において、10は探索
H画素幅、探索V画素幅およびオフセットを基にしてメ
モリアドレスMAを生成するアドレス生成手段としての
アドレス生成部、20は原探索範囲の画像データを格納
する原探索範囲記憶手段としての探索範囲格納メモリ、
30は符号化対象ブロックと探索範囲内の候補ブロック
との相関度を示す評価値を算出し、最大の相関度に対応
する動きベクトルおよびこの動きベクトルに対応する評
価値を出力する動きベクトル検出手段としての動きベク
トル検出部、40は動きベクトル検出部30が出力した
動きベクトルおよび評価値から探索H画素幅、探索V画
素幅およびオフセットを決定し、これらをアドレス生成
部10に出力する制御手段としての制御部、50は符号
化対象ブロックの画像データを格納する符号化対象ブロ
ック格納メモリである。ここでは、46×46画素の大
きい探索範囲Wを原探索範囲とする。
FIG. 3 is a diagram showing a configuration of the motion vector detecting device according to the present embodiment. In FIG. 3, reference numeral 10 denotes an address generation unit as an address generation unit for generating a memory address MA based on the search H pixel width, the search V pixel width, and the offset, and 20 denotes an original search range for storing image data of the original search range. Search range storage memory as storage means,
30 calculates an evaluation value indicating the degree of correlation between the current block and the candidate block in the search range, and outputs a motion vector corresponding to the maximum degree of correlation and an evaluation value corresponding to the motion vector. The motion vector detecting unit 40 determines a search H pixel width, a search V pixel width, and an offset from the motion vector and the evaluation value output by the motion vector detection unit 30, and outputs these to the address generation unit 10. Is an encoding target block storage memory for storing image data of the encoding target block. Here, a large search range W of 46 × 46 pixels is set as the original search range.

【0038】図4は制御部40の動作を示すフローチャ
ートである。制御部40の動作を図4のフローチャート
および図1を参照して説明する。
FIG. 4 is a flowchart showing the operation of the control unit 40. The operation of the control unit 40 will be described with reference to the flowchart of FIG. 4 and FIG.

【0039】いま、対象フレームにおける符号化対象ブ
ロックCBに対し、動きベクトル検出のための探索範囲
を設定するものとする。制御部40は、探索フレームの
範囲設定基準ブロックABに対する動きベクトルBMV
およびそのときの相関度評価値BAEを基にして、探索
範囲を表す探索H画素幅、探索V画素幅およびオフセッ
トをアドレス生成部10に供給する。
Now, it is assumed that a search range for detecting a motion vector is set for a coding target block CB in a target frame. The control unit 40 sets the motion vector BMV for the search frame range setting reference block AB.
Based on the correlation evaluation value BAE at that time, a search H pixel width, a search V pixel width, and an offset representing the search range are supplied to the address generation unit 10.

【0040】まずステップS1において、範囲設定基準
ブロックABの相関度評価値BAEとしきい値AE0と
を比較する。この比較の結果、評価値BAEがしきい値
AE0よりも大きいときは、動きベクトルBMVに対応
する相関度が低いことから、探索フレームにおける所定
の領域内に符号化対象ブロックCBと類似した部分はな
いと判定して、探索範囲を絞らないで、原探索範囲すな
わち46×46画素の大きい探索範囲Wを動きベクトル
検出のための探索範囲として設定する(ステップS
2)。すなわち、この場合は、探索H画素幅および探索
V画素幅はともに「46」とし、オフセットは(0,
0)とする。
First, in step S1, the correlation evaluation value BAE of the range setting reference block AB is compared with a threshold value AE0. As a result of this comparison, when the evaluation value BAE is larger than the threshold value AE0, since the degree of correlation corresponding to the motion vector BMV is low, a portion similar to the coding target block CB in a predetermined area in the search frame If it is determined that there is no search range, the original search range, that is, a large search range W of 46 × 46 pixels is set as the search range for motion vector detection without narrowing the search range (step S).
2). That is, in this case, the search H pixel width and the search V pixel width are both “46”, and the offset is (0,
0).

【0041】範囲設定基準ブロックABの相関度評価値
BAEがしきい値AE0よりも大きくないときは、動き
ベクトルBMVに対応する相関度が高いことから、探索
フレームにおける所定の領域内に符号化対象ブロックC
Bと類似した部分があると判定して、30×30画素の
小さい探索範囲Sを動きベクトル検出のための探索範囲
として設定する(ステップS3)。そして、ステップS
4において、範囲設定基準ブロックABの動きベクトル
BMVの大きさ|BMV(x,y)|としきい値MV0
とを比較する。
When the correlation degree evaluation value BAE of the range setting reference block AB is not larger than the threshold value AE0, the correlation degree corresponding to the motion vector BMV is high, so that the coding target is included in a predetermined area in the search frame. Block C
It is determined that there is a portion similar to B, and a small search range S of 30 × 30 pixels is set as a search range for motion vector detection (step S3). And step S
4, the magnitude | BMV (x, y) | of the motion vector BMV of the range setting reference block AB and the threshold value MV0
Compare with

【0042】この比較の結果、動きベクトルBMVの大
きさがしきい値MV0よりも大きいときは、符号化対象
ブロックCBの動きは大きいと判定して、この動きベク
トルBMVの成分を用いてオフセットを設定する(ステ
ップS5)。具体的には、オフセット(Hoff,Vo
ff)の各成分の値を次のように設定する。 Hoff=x+8 Voff=y+8 すなわち、この場合は、探索H画素幅および探索V画素
幅をともに「30」とし、かつ、オフセットは(x+
8,y+8)とする。
As a result of the comparison, when the magnitude of the motion vector BMV is larger than the threshold value MV0, it is determined that the motion of the encoding target block CB is large, and an offset is set using the component of the motion vector BMV. (Step S5). Specifically, the offset (Hoff, Vo
The value of each component of ff) is set as follows. Hoff = x + 8 Voff = y + 8 That is, in this case, both the search H pixel width and the search V pixel width are set to “30”, and the offset is (x +
8, y + 8).

【0043】一方、動きベクトルBMVの大きさがしき
い値MV0よりも大きくないときは、符号化対象ブロッ
クCBの動きは微小であり、静止画であると判断し、オ
フセットを(8,8)に設定する。すなわち、この場合
は、探索H画素幅および探索V画素幅をともに「30」
とし、かつ、オフセットは(8,8)とする。
On the other hand, when the magnitude of the motion vector BMV is not larger than the threshold value MV0, it is determined that the motion of the encoding target block CB is minute and a still image, and the offset is set to (8, 8). I do. That is, in this case, both the search H pixel width and the search V pixel width are “30”.
And the offset is (8, 8).

【0044】アドレス生成部10は、制御部40から出
力された探索H画素幅および探索V画素幅並びにオフセ
ットに基づいて、メモリアドレスMAを生成する。動き
ベクトル検出部30は、符号化対象ブロックCBに対
し、探索範囲格納メモリ20から読み出された探索範囲
の画素データを用いて、動きベクトル検出を行う(ステ
ップS10)。
The address generator 10 generates a memory address MA based on the search H pixel width, the search V pixel width, and the offset output from the controller 40. The motion vector detection unit 30 performs a motion vector detection on the encoding target block CB using the pixel data in the search range read from the search range storage memory 20 (step S10).

【0045】図5はアドレス生成部10の構成を示すブ
ロック図である。図5に示すように、アドレス生成部1
0は、クロックを計数する第1のカウンタとしてのHカ
ウンタ11と、探索H画素幅とHカウンタ11の計数値
とを比較し、一致したとき、Hカウンタ11の計数値を
リセットするとともに、カウントアップ信号CUを出力
する比較器としてのH比較器12と、カウントアップ信
号CUを計数する第2のカウンタとしてのVカウンタ1
3と、探索V画素幅とVカウンタ13の計数値とを比較
し、一致したとき、動きベクトル検出部30の動作を終
了させる動作信号を生成するV比較器14と、オフセッ
ト値とHカウンタ11およびVカウンタ13の計数値と
に基づいて、探索範囲格納メモリ20のメモリアドレス
MAを生成するメモリアドレス変換部15とによって構
成されている。制御部40から供給される開始信号によ
って、Hカウンタ11およびVカウンタ13はリセット
され、アドレス生成部10は動作を開始する。
FIG. 5 is a block diagram showing the configuration of the address generator 10. As shown in FIG.
0 compares the H counter 11 as a first counter for counting clocks, the search H pixel width with the count value of the H counter 11, and when they match, resets the count value of the H counter 11 and counts. H comparator 12 as a comparator that outputs up signal CU, and V counter 1 as a second counter that counts up signal CU
3, a V-comparator 14 that compares the search V pixel width with the count value of the V counter 13 and generates an operation signal for terminating the operation of the motion vector detector 30 when they match, an offset value and the H counter 11 And a memory address conversion unit 15 that generates a memory address MA of the search range storage memory 20 based on the count value of the V counter 13 and the count value of the V counter 13. The H counter 11 and the V counter 13 are reset by the start signal supplied from the control unit 40, and the address generation unit 10 starts operating.

【0046】図5に示すアドレス生成部10の動作につ
いて、図6〜図8を参照して説明する。
The operation of the address generator 10 shown in FIG. 5 will be described with reference to FIGS.

【0047】図6は探索範囲格納メモリ20に格納され
た原探索範囲と動きベクトル検出のための探索範囲との
関係を表す図である。ここでは、図6に示すように、探
索範囲格納メモリ20は原探索範囲として水平12画素
×垂直8画素の画素データを格納しており、動きベクト
ル検出のための探索範囲として、探索H画素幅が8、探
索V画素幅が6、オフセットが(2,1)の探索範囲が
設定されているものとする。
FIG. 6 is a diagram showing the relationship between the original search range stored in the search range storage memory 20 and the search range for detecting a motion vector. Here, as shown in FIG. 6, the search range storage memory 20 stores pixel data of horizontal 12 pixels × vertical 8 pixels as an original search range, and uses a search H pixel width as a search range for detecting a motion vector. It is assumed that the search range is set to 8, the search V pixel width is 6, and the offset is (2, 1).

【0048】図7は図6に示す2次元の画素データを探
索範囲格納メモリ20の1次元のアドレス空間にマッピ
ングした結果を示す図である。アドレス生成部10は、
動きベクトル検出のための探索範囲の画素データを探索
範囲格納メモリ20から読み出すためのメモリアドレス
MAを生成する。
FIG. 7 is a diagram showing a result of mapping the two-dimensional pixel data shown in FIG. 6 into a one-dimensional address space of the search range storage memory 20. The address generation unit 10
A memory address MA for reading pixel data in a search range for detecting a motion vector from the search range storage memory 20 is generated.

【0049】図8はアドレス生成部10の動作を示すタ
イミングチャートである。図8に示すように、開始信号
が入力されると、Hカウンタ11はクロックの計数を開
始する。Hカウンタ11の計数値が探索H画素幅に相当
する値に達すると、H比較器12はカウントアップ信号
CUを出力し、これによりHカウンタ11の計数値はリ
セットされる。Vカウンタ13はカウンタアップ信号C
Uを計数する。Vカウンタ13の計数値が探索V画素幅
に相当する値に達すると、V比較器14は動作信号を出
力する。
FIG. 8 is a timing chart showing the operation of the address generator 10. As shown in FIG. 8, when a start signal is input, the H counter 11 starts counting clocks. When the count value of the H counter 11 reaches a value corresponding to the search H pixel width, the H comparator 12 outputs a count-up signal CU, whereby the count value of the H counter 11 is reset. The V counter 13 outputs a counter up signal C
Count U. When the count value of the V counter 13 reaches a value corresponding to the search V pixel width, the V comparator 14 outputs an operation signal.

【0050】メモリアドレス変換部15は、オフセット
(Hoff,Voff)が入力されると、探索範囲格納
メモリ20に格納された原探索範囲の水平方向の画素幅
Hmaxおよび垂直方向の画素幅Vmaxから、動きベ
クトル検出のための探索範囲の起点となるアドレスSA
0を求める。この起点アドレスSA0は、次式によって
求められる。 SA0=Hmax×Voff+Hoff 図6の例では、 SA0=12×1+2=14 となる。
When the offset (Hoff, Voff) is input, the memory address converter 15 calculates the horizontal pixel width Hmax and the vertical pixel width Vmax of the original search range stored in the search range storage memory 20 from Address SA serving as starting point of search range for motion vector detection
Find 0. This starting address SA0 is obtained by the following equation. SA0 = Hmax × Voff + Hoff In the example of FIG. 6, SA0 = 12 × 1 + 2 = 14.

【0051】そして、メモリアドレス変換部15は、次
式に基づいてメモリアドレスMAを求める。 MA=SA0+Hmax×(Vカウンタ13の計数値)
+Hカウンタ11の計数値 この結果、メモリアドレスMAは図8に示すように変化
する。例えば、図7に示すように、起点アドレスSA0
から探索H画素幅分までは、起点アドレスSA0にHカ
ウンタ11の計数値を加算することによって、メモリア
ドレスMAが得られる。次のクロック入力によって、H
カウンタ11の計数値は0に、Vカウンタ13の計数値
は1になる。このとき、メモリアドレスMAは、 MA=14+12×1+0=26 となる。
Then, the memory address conversion unit 15 obtains the memory address MA based on the following equation. MA = SA0 + Hmax × (count value of V counter 13)
As a result, the memory address MA changes as shown in FIG. For example, as shown in FIG.
, The memory address MA is obtained by adding the count value of the H counter 11 to the starting address SA0. By the next clock input, H
The count value of the counter 11 becomes 0, and the count value of the V counter 13 becomes 1. At this time, the memory address MA becomes: MA = 14 + 12 × 1 + 0 = 26.

【0052】以上のように、本実施形態によると、パー
ン画像に対しても、精度よく、かつ効率的に動きベクト
ル検出を行うことができる。
As described above, according to the present embodiment, it is possible to accurately and efficiently detect a motion vector even for a panned image.

【0053】なお、本実施形態では、探索フレームにお
ける符号化対象ブロックと同一位置にあるブロックを範
囲設定基準ブロックとして用いたが、この代わりに、探
索フレームにおける符号化対象ブロックと同一位置の近
傍のブロックを範囲設定基準ブロックとして用いてもか
まわない。また、探索フレームよりもさらに前のフレー
ムにおける符号化対象ブロックと同一位置またはその近
傍にあるブロックを範囲設定基準ブロックとして用いて
もよい。
In the present embodiment, the block located at the same position as the block to be coded in the search frame is used as the range setting reference block. The block may be used as a range setting reference block. Further, a block located at the same position as or near the block to be coded in a frame further before the search frame may be used as the range setting reference block.

【0054】また、本実施形態では、探索範囲のサイズ
は2種類としたが、これ以上の種類のサイズを設定して
もかまわない。また、範囲設定基準ブロックの動きベク
トル成分の大きさなどを評価指標として、探索H画素幅
や探索V画素幅を可変にすることも実施可能である。
In this embodiment, the search range has two sizes, but more sizes may be set. It is also possible to make the search H pixel width and the search V pixel width variable using the magnitude of the motion vector component of the range setting reference block as an evaluation index.

【0055】(第1の実施形態の変形例)第1の実施形
態において、サブサンプルを併せて適用することも可能
である。この場合、制御部40は、探索H画素幅、探索
V画素幅およびオフセット値に加えて、探索範囲の,第
1のサブサンプル数としての水平方向のサブサンプル数
DHおよび第2のサブサンプル数としての垂直方向のサ
ブサンプル数DVを、アドレス生成部10に入力する。
(Modification of First Embodiment) In the first embodiment, it is also possible to apply a subsample together. In this case, in addition to the search H pixel width, the search V pixel width, and the offset value, the control unit 40 determines the number of horizontal subsamples DH and the number of second subsamples as the first number of subsamples in the search range. Is input to the address generation unit 10.

【0056】図9は本変形例に係る制御部40の動作を
示すフローチャートである。図4と異なるのは、探索範
囲のサイズおよび位置の設定に加えて、サブサンプルの
有無を指定している点である。すなわち、大きい探索範
囲Wを設定するステップS2A、および小さい探索範囲
Sを符号化対象ブロックCBの位置以外に設定するステ
ップS5Aでは、サブサンプルありを指定する一方、小
さい探索範囲Sを符号化対象ブロックCBの位置に設定
するステップS6Aでは、サブサンプルなしを指定す
る。
FIG. 9 is a flowchart showing the operation of the control unit 40 according to this modification. The difference from FIG. 4 is that, in addition to the setting of the size and position of the search range, the presence or absence of a subsample is specified. That is, in step S2A for setting the large search range W and in step S5A for setting the small search range S to a position other than the position of the block CB to be coded, the presence of sub-samples is specified, and In step S6A for setting to the position of CB, no sub-sample is specified.

【0057】図10は本変形例に係る動きベクトル検出
のための探索範囲を示す概略図である。ここでは、水平
方向のサブサンプル数DHおよび垂直方向のサブサンプ
ル数DVはともに2とする。同図中、(a)はサブサン
プルありが指定された大きい探索範囲Wの例を、(b)
はサブサンプルありが指定された小さい探索範囲Sの例
を、(c)はサブサンプルなしが指定された小さい探索
範囲Sの例を示している。ステップS6Aにおいて、小
さい探索範囲Sを符号化対象ブロックCBの位置に設定
するのは、符号化対象ブロックCBの動きが微小である
と判定したからである。この場合には、探索の精度を下
げることは好ましくないので、図10(c)に示すよう
に、サブサンプルなしを指定する。
FIG. 10 is a schematic diagram showing a search range for detecting a motion vector according to this modification. Here, the number DH of sub-samples in the horizontal direction and the number DV of sub-samples in the vertical direction are both 2. In the figure, (a) shows an example of a large search range W in which subsamples are specified, and (b)
Shows an example of a small search range S in which subsamples are specified, and (c) shows an example of a small search range S in which no subsamples are specified. The reason why the small search range S is set at the position of the encoding target block CB in step S6A is that it is determined that the motion of the encoding target block CB is minute. In this case, since it is not preferable to lower the search accuracy, as shown in FIG. 10C, no sub-sample is designated.

【0058】本変形例に係るアドレス生成部10の動作
について、図11〜図13を参照して説明する。
The operation of the address generator 10 according to the present modification will be described with reference to FIGS.

【0059】図11は探索範囲格納メモリ20に格納さ
れた原探索範囲と動きベクトル検出のための探索範囲と
の関係を表す図である。ここでは、図11に示すよう
に、動きベクトル検出のための探索範囲として、探索H
画素幅が6、探索V画素幅が4、オフセットが(0,
0)、サブサンプルDH,DVがともに2の探索範囲が
設定されているものとする。
FIG. 11 is a diagram showing the relationship between the original search range stored in the search range storage memory 20 and the search range for motion vector detection. Here, as shown in FIG. 11, search H is used as a search range for motion vector detection.
Pixel width is 6, search V pixel width is 4, offset is (0,
0), a search range of 2 is set for both subsamples DH and DV.

【0060】図12は図11に示す2次元の画素データ
を探索範囲格納メモリ20の1次元のアドレス空間にマ
ッピングした結果を示す図である。
FIG. 12 is a diagram showing a result of mapping the two-dimensional pixel data shown in FIG. 11 into a one-dimensional address space of the search range storage memory 20.

【0061】図13はアドレス生成部10の動作を示す
タイミングチャートである。本変形例では、メモリアド
レス変換部15は、次式に基づいてメモリアドレスMA
を求める。 MA=SA0+Hmax×(Vカウンタ13の計数値)
×DV+(Hカウンタ11の計数値)×DH この結果、メモリアドレスMAは図12に示すように変
化する。
FIG. 13 is a timing chart showing the operation of the address generator 10. In the present modification, the memory address conversion unit 15 calculates the memory address MA based on the following equation.
Ask for. MA = SA0 + Hmax × (count value of V counter 13)
× DV + (count value of H counter 11) × DH As a result, the memory address MA changes as shown in FIG.

【0062】なお、サブサンプルDH,DVの設定によ
り、画像の回転や拡大/縮小に対応した動きベクトル検
出についても、本発明は容易に適用可能である。
The present invention can be easily applied to detection of a motion vector corresponding to rotation and enlargement / reduction of an image by setting the subsamples DH and DV.

【0063】(第2の実施形態)本発明の第2の実施形
態は、探索フレームにおいて、符号化対象ブロックと同
一位置の近傍に,当該符号化対象ブロックと同一サイズ
の複数のブロックを設けて、符号化対象ブロックと、探
索フレームに設定した複数のブロックとに対し、所定の
画素演算をそれぞれ行い、これらの演算結果を基にし
て、動きベクトル検出のための探索範囲のサイズおよび
位置を設定するものである。ここでは、所定の画素演算
として、ブロック内の画素データの累算演算を行うもの
とする。
(Second Embodiment) In a second embodiment of the present invention, a search frame is provided with a plurality of blocks having the same size as the current block to be coded near the same position as the current block to be coded. Performs predetermined pixel operations on the current block and a plurality of blocks set in the search frame, and sets the size and position of the search range for motion vector detection based on the calculation results. Is what you do. Here, it is assumed that as a predetermined pixel operation, an accumulation operation of pixel data in a block is performed.

【0064】図14は本実施形態に係る探索フレームに
おけるブロック設定の一例を示す図である。図14で
は、単位領域としての16×16画素の符号化対象ブロ
ックCBに対して、探索フレームに比較領域としての1
6×16画素の9個のブロックSB0〜SB8を設定し
ている。
FIG. 14 is a diagram showing an example of block setting in a search frame according to the present embodiment. In FIG. 14, for a coding target block CB of 16 × 16 pixels as a unit area, 1
Nine blocks SB0 to SB8 of 6 × 16 pixels are set.

【0065】本実施形態に係る動きベクトル検出装置
は、第1の実施形態と同様に、図3のように構成され
る。ただし、制御部40は、動きベクトル検出部30か
ら出力された動きベクトルおよび評価値は入力とせず、
この代わりに、各フレームの画像データを入力する。
The motion vector detecting device according to the present embodiment is configured as shown in FIG. 3, similarly to the first embodiment. However, the control unit 40 does not receive the motion vector and the evaluation value output from the motion vector detection unit 30 as inputs.
Instead, the image data of each frame is input.

【0066】図15は本実施形態に係る動きベクトル検
出装置における制御部40の動作を示すフローチャート
である。まずステップS21において、符号化対象ブロ
ックCBおよび探索フレームに設定された各ブロックS
B0〜SB8に対して、ブロック内の画素データの累算
演算を行う。ステップS22において、符号化対象ブロ
ックの累算演算結果AC(CB)と、探索フレームの各
ブロックの累算演算結果AC(SBn)(n=0〜8)
との差の絶対値の最小値SAminと、しきい値SA0
とを比較する。この比較の結果、最小値SAminがし
きい値SA0よりも大きいときは、探索フレームにおけ
る所定の領域内に符号化対象ブロックCBと類似した部
分はないと判定して、探索範囲を絞らないで、46×4
6画素の大きい探索範囲Wを動きベクトル検出のための
探索範囲として設定する(ステップS23)。すなわ
ち、この場合は、探索H画素幅および探索V画素幅はと
もに「46」とし、オフセットは(0,0)とする。
FIG. 15 is a flowchart showing the operation of the control unit 40 in the motion vector detecting device according to the present embodiment. First, in step S21, the coding target block CB and each block S set in the search frame are set.
For B0 to SB8, an accumulation operation of the pixel data in the block is performed. In step S22, the accumulation operation result AC (CB) of the encoding target block and the accumulation operation result AC (SBn) of each block of the search frame (n = 0 to 8)
Minimum value SAmin of the absolute value of the difference between
Compare with As a result of this comparison, when the minimum value SAmin is larger than the threshold value SA0, it is determined that there is no portion similar to the coding target block CB in a predetermined area of the search frame, and the search range is not narrowed. 46 × 4
A large search range W of 6 pixels is set as a search range for detecting a motion vector (step S23). That is, in this case, the search H pixel width and the search V pixel width are both set to "46", and the offset is set to (0, 0).

【0067】最小値SAminがしきい値SA0よりも
大きくないときは、探索フレームにおける所定の領域内
に符号化対象ブロックCBと類似した部分があると判定
して、30×30画素の小さい探索範囲Sを動きベクト
ル検出のための探索範囲として設定する(ステップS2
4)。そして、ステップS25において、ブロックSB
kの累算演算結果と、符号化対象ブロックCBの累算演
算結果との差の絶対値が最小になるとき、ブロックSB
kの位置に探索範囲Sが設定されるように、オフセット
を設定する。
If the minimum value SAmin is not larger than the threshold value SA0, it is determined that there is a portion similar to the coding target block CB in a predetermined area of the search frame, and a small search range of 30 × 30 pixels is determined. S is set as a search range for motion vector detection (step S2
4). Then, in step S25, the block SB
When the absolute value of the difference between the accumulation operation result of k and the accumulation operation result of the encoding target block CB is minimized, the block SB
An offset is set so that the search range S is set at the position of k.

【0068】例えば、符号化対象ブロックCBと同一位
置にブロックSB0を設定し、その周囲にブロックSB
1〜SB8を設定した場合には、ブロックSB0の累算
演算結果と符号化対象ブロックCBの累算演算結果との
差の絶対値が最小になるときは、オフセットとして
(8,8)を設定する。また、ブロックSB0の右下に
位置するブロックSB8の累算演算結果と符号化対象ブ
ロックCBの累算演算結果との差の絶対値が最小になる
ときは、オフセットとして(16,16)を設定する。
For example, a block SB0 is set at the same position as the block CB to be coded, and the block SB0 is set therearound.
When 1 to SB8 are set, (8, 8) is set as the offset when the absolute value of the difference between the accumulation operation result of the block SB0 and the accumulation operation result of the encoding target block CB is minimized. I do. Also, when the absolute value of the difference between the accumulation operation result of the block SB8 located at the lower right of the block SB0 and the accumulation operation result of the encoding target block CB is minimized, (16, 16) is set as the offset. I do.

【0069】以上のように、本実施形態によると、前フ
レームにおいて検出した動きベクトルを用いないでオフ
セットを設定するため、動きベクトル検出を行う当初の
フレームからオフセットを設定できるので、第1の実施
形態よりもさらに効率的に動きベクトル検出を行うこと
ができる。
As described above, according to the present embodiment, since the offset is set without using the motion vector detected in the previous frame, the offset can be set from the initial frame in which the motion vector detection is performed. Motion vector detection can be performed more efficiently than in the form.

【0070】なお、符号化対象ブロックの一部を単位領
域とし、この単位領域と同一サイズの複数の比較領域を
設定し、これらに対して所定の画素演算をそれぞれ行っ
てもかまわない。また、この単位領域に、符号化対象ブ
ロックの近傍の領域を含めてもかまわない。さらに、こ
の単位領域はいかなる形状であってもかまわない。
Note that a part of the block to be encoded may be set as a unit area, a plurality of comparison areas having the same size as the unit area may be set, and predetermined pixel operations may be performed on these. In addition, the unit area may include an area near the encoding target block. Further, the unit area may have any shape.

【0071】なお、所定の画素演算として、累算演算の
他に、例えば、隣接画素の差分の累算演算、画素の分散
演算、画素の周波数分布演算などを用いてもよい。ま
た、演算結果に対して、領域の位置に応じた重み付けを
施してもかまわない。
As the predetermined pixel operation, in addition to the accumulation operation, for example, an accumulation operation of a difference between adjacent pixels, a dispersion operation of pixels, a frequency distribution operation of pixels, or the like may be used. Further, the calculation result may be weighted according to the position of the region.

【0072】[0072]

【発明の効果】以上のように本発明によると、探索範囲
のサイズおよび位置が自在に設定できるので、効率的
に、かつ、精度よく、動きベクトル検出を実行すること
ができる。また、すでに検出された動きベクトルとこれ
に対応する相関度評価値とを基にして探索範囲の設定を
行うので、特に、画像が一定方向に動くパーン画像に対
して、適切な探索範囲の設定が可能になる。
As described above, according to the present invention, the size and position of the search range can be freely set, so that the motion vector can be detected efficiently and accurately. In addition, since the search range is set based on the already detected motion vector and the correlation degree evaluation value corresponding to the motion vector, the search range is set particularly for a pan image in which the image moves in a certain direction. Becomes possible.

【0073】また、探索フレームにおいて、符号化対象
ブロックと類似した部分を含む領域を動きベクトル検出
のための探索範囲として設定するので、特に、画像が一
定方向に動くパーン画像に対して、適切な探索範囲の設
定が可能になる。
In the search frame, an area including a part similar to the block to be coded is set as a search range for detecting a motion vector. The search range can be set.

【0074】さらに、対象フレームの前フレームにおけ
る当該符号化対象ブロックと同一位置またはその近傍に
ある範囲設定基準ブロックに対応する動きベクトルおよ
び相関度評価値によって、探索範囲のサイズおよび位置
を設定するので、適切な探索範囲の設定が可能になる。
Furthermore, the size and position of the search range are set by the motion vector and the correlation evaluation value corresponding to the range setting reference block at or near the same position as the current block to be coded in the previous frame of the current frame. , An appropriate search range can be set.

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

【図1】本発明の第1の実施形態を説明するための図で
あり、パーン画像を表す時間的に連続した3枚のフレー
ム画像を示す図である。
FIG. 1 is a diagram for describing a first embodiment of the present invention, and is a diagram illustrating three temporally continuous frame images representing a pan image.

【図2】本発明の第1の実施形態に係る動きベクトル検
出における探索範囲を示す概略図であり、(a)は大き
い探索範囲の例、(b)は小さい探索範囲の例を示す図
である。
FIGS. 2A and 2B are schematic diagrams illustrating a search range in motion vector detection according to the first embodiment of the present invention. FIG. 2A illustrates an example of a large search range, and FIG. 2B illustrates an example of a small search range. is there.

【図3】本発明の実施形態に係る動きベクトル検出装置
の構成を示す図である。
FIG. 3 is a diagram illustrating a configuration of a motion vector detection device according to an embodiment of the present invention.

【図4】第1の実施形態に係る制御部の動作を示すフロ
ーチャートである。
FIG. 4 is a flowchart illustrating an operation of a control unit according to the first embodiment.

【図5】アドレス生成部の構成を示すブロック図であ
る。
FIG. 5 is a block diagram illustrating a configuration of an address generation unit.

【図6】探索範囲格納メモリに格納された最大探索範囲
と動きベクトル検出のための探索範囲との関係を表す図
である。
FIG. 6 is a diagram illustrating a relationship between a maximum search range stored in a search range storage memory and a search range for detecting a motion vector.

【図7】図6に示す2次元の画素データを探索範囲格納
メモリの1次元のアドレス空間にマッピングした結果を
示す図である。
7 is a diagram showing a result of mapping the two-dimensional pixel data shown in FIG. 6 into a one-dimensional address space of a search range storage memory.

【図8】第1の実施形態に係るアドレス生成部の動作を
示すタイミングチャートである。
FIG. 8 is a timing chart showing the operation of the address generation unit according to the first embodiment.

【図9】第1の実施形態の変形例に係る制御部の動作を
示すフローチャートである。
FIG. 9 is a flowchart illustrating an operation of a control unit according to a modification of the first embodiment.

【図10】第1の実施形態の変形例に係る動きベクトル
検出における探索範囲を示す概略図である。
FIG. 10 is a schematic diagram showing a search range in motion vector detection according to a modification of the first embodiment.

【図11】探索範囲格納メモリに格納された原探索範囲
と動きベクトル検出のための探索範囲との関係を表す図
である。
FIG. 11 is a diagram showing a relationship between an original search range stored in a search range storage memory and a search range for detecting a motion vector.

【図12】図11に示す2次元の画素データを探索範囲
格納メモリの1次元のアドレス空間にマッピングした結
果を示す図である。
12 is a diagram showing a result of mapping the two-dimensional pixel data shown in FIG. 11 into a one-dimensional address space of a search range storage memory.

【図13】第1の実施形態の変形例に係るアドレス生成
部の動作を示すタイミングチャートである。
FIG. 13 is a timing chart illustrating an operation of an address generation unit according to a modification of the first embodiment.

【図14】本発明の第2の実施形態に係る探索フレーム
における比較領域の設定の一例を示す図である。
FIG. 14 is a diagram illustrating an example of setting a comparison area in a search frame according to the second embodiment of the present invention.

【図15】本発明の第2の実施形態に係る制御部の動作
を示すフローチャートである。
FIG. 15 is a flowchart illustrating an operation of a control unit according to the second embodiment of the present invention.

【図16】ブロックマッチングを示す図である。FIG. 16 is a diagram showing block matching.

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

CB 符号化対象ブロック AB 範囲設定基準ブロック BMV 範囲設定基準ブロックの動きベクトル BAE 範囲設定基準ブロックの相関度評価値 Hoff,Voff オフセット値 MA メモリアドレス CU カウントアップ信号 DH 水平方向のサブサンプル数(第1のサブサンプル
数) DV 垂直方向のサブサンプル数(第2のサブサンプル
数) SB0〜SB8 ブロック(比較領域) 10 アドレス生成部(アドレス生成手段) 11 Hカウンタ(第1のカウンタ) 12 H比較器(比較器) 13 Vカウンタ(第2のカウンタ) 15 メモリアドレス変換部 20 探索範囲格納メモリ(原探索範囲記憶手段) 30 動きベクトル検出部(動きベクトル検出手段) 40 制御部(制御手段)
CB Encoding target block AB Range setting reference block BMV Motion vector of range setting reference block BAE Correlation evaluation value Hoff, Voff offset value of range setting reference block MA Memory address CU Count-up signal DH Number of subsamples in horizontal direction (first number) DV The number of subsamples in the vertical direction (the number of second subsamples) SB0 to SB8 Blocks (comparison area) 10 Address generation unit (address generation means) 11 H counter (first counter) 12 H comparator (Comparator) 13 V counter (second counter) 15 Memory address conversion unit 20 Search range storage memory (original search range storage unit) 30 Motion vector detection unit (motion vector detection unit) 40 Control unit (control unit)

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 対象フレームの符号化対象ブロックと、
探索フレームの探索範囲内の候補ブロックとの相関度を
示す評価値を算出し、これらの相関度評価値を基にし
て、前記符号化対象ブロックに対する動きベクトルを検
出する動きベクトル検出手段と、 原探索範囲の画素データを記憶しており、与えられたメ
モリアドレスに応じて画素データを読み出し、前記動き
ベクトル検出手段に供給する原探索範囲記憶手段と、 探索範囲の,水平方向の画素幅である第1の探索幅およ
び垂直方向の画素幅である第2の探索幅と、前記探索範
囲の原探索範囲に対する相対位置を示すオフセット値と
を生成する制御手段と、 前記制御手段によって生成された第1および第2の探索
幅並びにオフセット値に基づいて、前記原探索範囲記憶
手段に与えるメモリアドレスを生成するアドレス生成手
段とを備えた動きベクトル検出装置。
1. An encoding target block of a target frame,
Motion vector detecting means for calculating an evaluation value indicating a degree of correlation with a candidate block within a search range of a search frame, and detecting a motion vector for the encoding target block based on the degree of correlation evaluation value; An original search range storage unit that stores pixel data in a search range, reads pixel data in accordance with a given memory address, and supplies the pixel data to the motion vector detection unit; A control unit that generates a first search width and a second search width that is a pixel width in the vertical direction, and an offset value that indicates a relative position of the search range with respect to an original search range, and a second search width that is generated by the control unit. Address generation means for generating a memory address to be given to the original search range storage means based on the first and second search widths and the offset value. Vector detection device.
【請求項2】 請求項1記載の動きベクトル検出装置に
おいて、 前記動きベクトル検出手段は、 検出した動きベクトルと、この動きベクトルに対応する
相関度評価値とを前記制御手段に供給するものであり、 前記制御手段は、 前記動きベクトル検出手段から供給された動きベクトル
および相関度評価値に基づいて、第1および第2の探索
幅並びにオフセット値の生成を行うものであることを特
徴とする動きベクトル検出装置。
2. The motion vector detecting device according to claim 1, wherein the motion vector detecting means supplies the detected motion vector and a correlation evaluation value corresponding to the motion vector to the control means. Wherein the control means generates first and second search widths and offset values based on the motion vector and the correlation evaluation value supplied from the motion vector detection means. Vector detection device.
【請求項3】 請求項2記載の動きベクトル検出装置に
おいて、 前記制御手段は、 対象フレームの前フレームにおける当該符号化対象ブロ
ックと同一位置またはその近傍のブロックを範囲設定基
準ブロックとし、前記範囲設定基準ブロックに対応する
相関度評価値に基づいて、探索範囲のサイズを設定する
ものであることを特徴とする動きベクトル検出装置。
3. The motion vector detection device according to claim 2, wherein the control unit sets a block at the same position as or adjacent to the coding target block in a previous frame of the target frame as a range setting reference block, and sets the range setting reference block. A motion vector detecting device for setting a size of a search range based on a correlation evaluation value corresponding to a reference block.
【請求項4】 請求項2記載の動きベクトル検出装置に
おいて、 前記制御手段は、 対象フレームの前フレームにおける当該符号化対象ブロ
ックと同一位置またはその近傍のブロックを範囲設定基
準ブロックとし、前記範囲設定基準ブロックに対応する
動きベクトルに基づいて、探索範囲の位置を設定するも
のであることを特徴とする動きベクトル検出装置。
4. The motion vector detecting device according to claim 2, wherein the control unit sets a block at the same position as or adjacent to the coding target block in a frame preceding the target frame as a range setting reference block, and sets the range setting reference block. A motion vector detecting device for setting a position of a search range based on a motion vector corresponding to a reference block.
【請求項5】 請求項2記載の動きベクトル検出装置に
おいて、 前記制御手段は、 対象フレームの前フレームにおける当該符号化対象ブロ
ックと同一位置またはその近傍のブロックを範囲設定基
準ブロックとし、前記範囲設定基準ブロックに対応する
相関度評価値が示す相関度が相対的に低いときは、原探
索範囲を探索範囲として設定する一方、相対的に高いと
きは、探索範囲のサイズを前記原探索範囲よりも小さく
設定し、かつ、その探索範囲の位置を前記範囲設定基準
ブロックに対応する動きベクトルを基にして設定するこ
とを特徴とする動きベクトル検出装置。
5. The motion vector detecting device according to claim 2, wherein the control unit sets a block located at the same position as or near the coding target block in a previous frame of the target frame as a range setting reference block, and sets the range setting reference block. When the correlation degree indicated by the correlation evaluation value corresponding to the reference block is relatively low, the original search range is set as the search range, while when relatively high, the size of the search range is set to be larger than the original search range. A motion vector detecting device which is set small and sets the position of the search range based on a motion vector corresponding to the range setting reference block.
【請求項6】 オフセット値は、原探索範囲の探索起点
を始端とし、探索範囲の探索起点を終端とするベクトル
の成分であることを特徴とする請求項1記載の動きベク
トル検出装置。
6. The motion vector detecting device according to claim 1, wherein the offset value is a component of a vector having a search start point of the original search range as a start point and a search start point of the search range as an end point.
【請求項7】 請求項1記載の動きベクトル検出装置に
おいて、 前記アドレス生成手段は、 クロックを計数する第1のカウンタと、 前記第1の探索幅と前記第1のカウンタの計数値とを比
較し、一致したとき、前記第1のカウンタの計数値をリ
セットするとともに、カウントアップ信号を出力する比
較器と、 前記カウントアップ信号を計数する第2のカウンタと、 前記オフセット値と、前記第1および第2のカウンタの
計数値とに基づいて、所定の計算式に従って、前記原探
索範囲記憶手段に供給するメモリアドレスを生成するメ
モリアドレス変換部とを備えていることを特徴とする動
きベクトル検出装置。
7. The motion vector detecting device according to claim 1, wherein the address generating means compares a first counter for counting clocks, the first search width, and a count value of the first counter. And when they match, resets the count value of the first counter and outputs a count-up signal; a second counter that counts the count-up signal; the offset value; And a memory address conversion unit for generating a memory address to be supplied to the original search range storage unit in accordance with a predetermined calculation formula based on the count value of the second counter and the count value of the second counter. apparatus.
【請求項8】 請求項1記載の動きベクトル検出装置に
おいて、 前記制御手段は、 第1および第2の探索幅並びにオフセット値に加えて、
当該探索範囲の,水平方向のサブサンプル度合を表す第
1のサブサンプル数および垂直方向のサブサンプル度合
を表す第2のサブサンプル数を生成するものであり、 前記アドレス生成手段は、 前記原探索範囲記憶手段に与えるメモリアドレスの生成
を、前記制御手段によって生成された第1および第2の
探索幅、第1および第2のサブサンプル数並びにオフセ
ット値に基づいて行うものであることを特徴とする動き
ベクトル検出装置。
8. The motion vector detecting device according to claim 1, wherein the control means includes: a first search width, a second search width, and an offset value.
A first sub-sample number representing a horizontal sub-sample degree and a second sub-sample number representing a vertical sub-sample degree in the search range; and the address generating means comprises: The memory address given to the range storage means is generated based on the first and second search widths, the first and second subsample numbers, and the offset value generated by the control means. Motion vector detection device.
【請求項9】 符号化対象ブロックに対し、動きベクト
ルを検出する方法であって、 探索フレームにおける所定の領域内に、前記符号化対象
ブロックと類似した部分があるか否かを判定する第1の
ステップと、 前記第1のステップにおいて類似した部分があると判定
したとき、探索フレームにおいて、この類似した部分を
含み、かつ、前記所定の領域よりも小さい第1の領域
を、動きベクトル検出のための探索範囲として設定する
第2のステップと、 前記第1のステップにおいて類似した部分がないと判定
したとき、前記第1の領域よりも大きな領域を、動きベ
クトル検出のための探索範囲として設定する第3のステ
ップとを備えている動きベクトル検出方法。
9. A method for detecting a motion vector for an encoding target block, the method comprising: determining whether a portion similar to the encoding target block exists in a predetermined area of a search frame. And when it is determined in the first step that there is a similar part, the search frame includes a first area that includes the similar part and is smaller than the predetermined area. A second step of setting a search range for the motion vector, and, when it is determined that there is no similar part in the first step, setting an area larger than the first area as a search range for detecting a motion vector. A motion vector detecting method comprising the third step of:
【請求項10】 請求項9記載の動きベクトル検出方法
において、 前記第1のステップは、 対象フレームの前フレームにおける当該符号化対象ブロ
ックと同一位置またはその近傍のブロックを範囲設定基
準ブロックとし、前記判定を、この範囲設定基準ブロッ
クに対して検出した動きベクトルに対応する相関度評価
値を基にして行うものであり、 前記第2のステップは、 探索範囲の位置を、前記範囲設定基準ブロックに対して
検出した動きベクトルを基にして設定するものであるこ
とを特徴とする動きベクトル検出方法。
10. The motion vector detecting method according to claim 9, wherein the first step sets a block located at the same position as or adjacent to the current block to be coded in a previous frame of the current frame as a range setting reference block, The determination is performed based on the correlation degree evaluation value corresponding to the motion vector detected for the range setting reference block, and the second step includes setting a position of a search range to the range setting reference block. A motion vector detection method characterized by setting based on a motion vector detected for the motion vector.
【請求項11】 請求項9記載の動きベクトル検出方法
において、 前記第1のステップは、 符号化対象ブロックの一部を少なくとも含む単位領域
と、探索フレームにおける当該符号化対象ブロックと同
一位置の近傍に設けた,前記単位領域と同一サイズの複
数の比較領域とに対し、所定の画素演算をそれぞれ行
い、これらの演算結果を基にして前記判定を行うもので
あり、 前記第2のステップは、 前記所定の画素演算の演算結果から、前記複数の比較領
域のうち前記単位領域と最も類似するものを求め、この
比較領域の位置を基にして、探索範囲の位置を設定する
ものであることを特徴とする動きベクトル検出方法。
11. The motion vector detecting method according to claim 9, wherein the first step includes: a unit area including at least a part of the current block and a vicinity of the same position as the current block in the search frame. Performing a predetermined pixel operation on each of a plurality of comparison regions having the same size as the unit region provided in the above, and performing the determination based on the results of these operations. The second step includes: From the calculation result of the predetermined pixel calculation, the one that is most similar to the unit area among the plurality of comparison areas is determined, and the position of the search range is set based on the position of the comparison area. Characteristic motion vector detection method.
【請求項12】 動きベクトル検出のための探索範囲を
設定するステップと、 符号化対象ブロックに対し、前記探索範囲内の候補ブロ
ックとの相関度を基にして、動きベクトルを検出するス
テップとを備え、 前記探索範囲設定ステップは、 対象フレームの前フレームにおける当該符号化対象ブロ
ックと同一位置またはその近傍のブロックを範囲設定基
準ブロックとし、探索範囲のサイズを、この範囲設定基
準ブロックに対して検出した動きベクトルに対応する相
関度評価値を基にして設定するものであることを特徴と
する動きベクトル検出方法。
12. A step of setting a search range for detecting a motion vector, and a step of detecting a motion vector based on a degree of correlation between a coding target block and a candidate block in the search range. The search range setting step comprises: setting a block at the same position as or adjacent to the current block to be coded in the previous frame of the target frame as a range setting reference block, and detecting a size of the search range with respect to the range setting reference block. A motion vector detecting method for setting based on a correlation evaluation value corresponding to the calculated motion vector.
【請求項13】 動きベクトル検出のための探索範囲を
設定するステップと、 符号化対象ブロックに対し、前記探索範囲内の候補ブロ
ックとの相関度を基にして、動きベクトルを検出するス
テップとを備え、 前記探索範囲設定ステップは、 対象フレームの前フレームにおける当該符号化対象ブロ
ックと同一位置またはその近傍のブロックを範囲設定基
準ブロックとし、探索範囲の位置を、この範囲設定基準
ブロックに対して検出した動きベクトルを基にして設定
するものであることを特徴とする動きベクトル検出方
法。
13. A step of setting a search range for detecting a motion vector, and a step of detecting a motion vector based on a degree of correlation between a coding target block and a candidate block in the search range. The search range setting step includes: setting a block at the same position as or adjacent to the current block to be coded in the previous frame of the target frame as a range setting reference block, and detecting a position of the search range with respect to the range setting reference block. A motion vector detection method characterized in that the motion vector is set on the basis of the obtained motion vector.
JP21705098A 1997-08-07 1998-07-31 Motion vector detection device and motion vector detection method Expired - Fee Related JP3276073B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21705098A JP3276073B2 (en) 1997-08-07 1998-07-31 Motion vector detection device and motion vector detection method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP21282697 1997-08-07
JP9-212826 1997-08-07
JP21705098A JP3276073B2 (en) 1997-08-07 1998-07-31 Motion vector detection device and motion vector detection method

Publications (2)

Publication Number Publication Date
JPH11113003A true JPH11113003A (en) 1999-04-23
JP3276073B2 JP3276073B2 (en) 2002-04-22

Family

ID=26519452

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21705098A Expired - Fee Related JP3276073B2 (en) 1997-08-07 1998-07-31 Motion vector detection device and motion vector detection method

Country Status (1)

Country Link
JP (1) JP3276073B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005210647A (en) * 2004-01-26 2005-08-04 Matsushita Electric Ind Co Ltd Motion vector detecting apparatus and motion picture taking apparatus
JP2005228303A (en) * 2004-01-14 2005-08-25 Matsushita Electric Ind Co Ltd Motion vector detecting device
JP2005354528A (en) * 2004-06-11 2005-12-22 Canon Inc Device and method for detecting motion vector
KR100750507B1 (en) 2005-12-08 2007-08-20 한국전자통신연구원 Method of determining a area of reference picture for motion compensation in a decoder of compensated moving picture
CN109495756A (en) * 2018-05-24 2019-03-19 曜科智能科技(上海)有限公司 Adaptive motion search method based on rotation scaling
CN111292354A (en) * 2020-01-22 2020-06-16 维沃移动通信有限公司 False detection suppression method and electronic device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005228303A (en) * 2004-01-14 2005-08-25 Matsushita Electric Ind Co Ltd Motion vector detecting device
JP4671696B2 (en) * 2004-01-14 2011-04-20 パナソニック株式会社 Motion vector detection device
JP2005210647A (en) * 2004-01-26 2005-08-04 Matsushita Electric Ind Co Ltd Motion vector detecting apparatus and motion picture taking apparatus
JP4511842B2 (en) * 2004-01-26 2010-07-28 パナソニック株式会社 Motion vector detecting device and moving image photographing device
JP2005354528A (en) * 2004-06-11 2005-12-22 Canon Inc Device and method for detecting motion vector
JP4514203B2 (en) * 2004-06-11 2010-07-28 キヤノン株式会社 Motion vector detection apparatus and method
KR100750507B1 (en) 2005-12-08 2007-08-20 한국전자통신연구원 Method of determining a area of reference picture for motion compensation in a decoder of compensated moving picture
CN109495756A (en) * 2018-05-24 2019-03-19 曜科智能科技(上海)有限公司 Adaptive motion search method based on rotation scaling
CN109495756B (en) * 2018-05-24 2022-11-01 曜科智能科技(上海)有限公司 Self-adaptive motion search method based on rotation scaling
CN111292354A (en) * 2020-01-22 2020-06-16 维沃移动通信有限公司 False detection suppression method and electronic device
CN111292354B (en) * 2020-01-22 2023-07-28 维沃移动通信有限公司 False detection suppression method and electronic equipment

Also Published As

Publication number Publication date
JP3276073B2 (en) 2002-04-22

Similar Documents

Publication Publication Date Title
US6289050B1 (en) Device and method for motion vector detection
KR100534207B1 (en) Device and method for motion estimating of video coder
US8064522B2 (en) Motion-vector detecting device, motion-vector detecting method, and computer program
EP1587032B1 (en) Image processing apparatus and method, recording medium, and program
US20060251171A1 (en) Image coding device and image coding method
JP2861462B2 (en) Motion vector detection device
JP3670566B2 (en) Processing time adaptive image encoding method and program recording medium
JP3276073B2 (en) Motion vector detection device and motion vector detection method
US20050105620A1 (en) Motion vector detecting device and motion vector detecting program
JP3175914B2 (en) Image encoding method and image encoding device
JPH05236452A (en) Method and device for detection motion vector
JP4250598B2 (en) Motion compensation IP conversion processing apparatus and motion compensation IP conversion processing method
JPH0478286A (en) Detection method for moving vector using initial deviation vector
KR100516711B1 (en) Device and method for motion vector detection
JPH0262178A (en) Motion detection system for picture processor
JP2000165883A (en) Motion vector detector
JPH11215502A (en) Motion vector detector and its method
JPH1042300A (en) Motion vector detection device
JP2004260251A (en) Apparatus and program of detecting motion vector
JPH10304371A (en) Moving vector detecting device
JP4241021B2 (en) Motion vector detection method, motion vector detection device, and image encoding device
JPH1155677A (en) Moving image coder
JPH11243546A (en) Image coder and method
JP2002064748A (en) Telop area detector in moving image
JPH0595544A (en) Method and device for moving amount detection for picture data

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080208

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090208

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100208

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100208

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110208

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120208

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130208

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees