Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3335137B2 - MOTION VECTOR SEARCH METHOD, MOTION VECTOR SEARCH DEVICE, AND RECORDING MEDIUM CONTAINING MOTION VECTOR SEARCH PROGRAM - Google Patents
[go: Go Back, main page]

JP3335137B2 - MOTION VECTOR SEARCH METHOD, MOTION VECTOR SEARCH DEVICE, AND RECORDING MEDIUM CONTAINING MOTION VECTOR SEARCH PROGRAM - Google Patents

MOTION VECTOR SEARCH METHOD, MOTION VECTOR SEARCH DEVICE, AND RECORDING MEDIUM CONTAINING MOTION VECTOR SEARCH PROGRAM

Info

Publication number
JP3335137B2
JP3335137B2 JP13497499A JP13497499A JP3335137B2 JP 3335137 B2 JP3335137 B2 JP 3335137B2 JP 13497499 A JP13497499 A JP 13497499A JP 13497499 A JP13497499 A JP 13497499A JP 3335137 B2 JP3335137 B2 JP 3335137B2
Authority
JP
Japan
Prior art keywords
motion
search
vector
template
template group
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.)
Expired - Lifetime
Application number
JP13497499A
Other languages
Japanese (ja)
Other versions
JP2000092498A (en
Inventor
俊宏 南
利夫 近藤
健 中村
充郎 池田
健 吉留
武 小倉
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.)
NTT Inc
NTT Inc USA
Original Assignee
Nippon Telegraph and Telephone Corp
NTT Inc USA
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp, NTT Inc USA filed Critical Nippon Telegraph and Telephone Corp
Priority to JP13497499A priority Critical patent/JP3335137B2/en
Publication of JP2000092498A publication Critical patent/JP2000092498A/en
Application granted granted Critical
Publication of JP3335137B2 publication Critical patent/JP3335137B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、動画像のフレーム
間画像符号化等で用いられる技術であって、ある画像中
の画素ブロックが他の画像中のどの位置から動いてきた
かをベクトルで表現する動きベクトルを探索するための
動きベクトル探索方法、動きベクトル探索装置および動
きベクトル探索プログラムを記録した記録媒体に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique used in inter-frame image coding of a moving image and the like. The present invention relates to a motion vector search method, a motion vector search device, and a recording medium storing a motion vector search program for searching for a motion vector to be searched.

【0002】[0002]

【従来の技術】以下、模式的説明図を参照して従来の各
種の動きベクトル探索方法について説明する。
2. Description of the Related Art Various conventional motion vector searching methods will be described below with reference to schematic explanatory diagrams.

【0003】図11は、動きベクトルを求める対象であ
るテンプレート1と、動きベクトルの探索範囲である探
索領域2を模式的に示した図である。テンプレート1
は、処理対象となる画像中の画素ブロック、探索領域2
は、比較対象となる他の画像中の画素ブロックであっ
て、テンプレート1より大きな画素ブロックである。ま
た、図中、白三角で示す3は、テンプレート1を構成す
る画素、白丸で示す4は、探索領域2を構成する画素を
表す。
FIG. 11 schematically shows a template 1 from which a motion vector is to be obtained, and a search area 2 which is a search range for a motion vector. Template 1
Is the pixel block in the image to be processed, search area 2
Is a pixel block in another image to be compared, which is larger than the template 1. In the figure, 3 indicated by a white triangle indicates a pixel constituting the template 1, and 4 indicated by a white circle indicates a pixel constituting the search area 2.

【0004】図11では、探索領域2の上にテンプレー
ト1を重ねて示しているので、重なり部分の探索領域中
の画素4(○)は表示していない。なお、以下、水平方
向の画素数の単位を「画素」、垂直方向の画素数の単位
を「ライン」と称する。したがって、図11に示すテン
プレート1は、4画素×4ライン、探索領域2は、11
画素×11ラインである。
In FIG. 11, since the template 1 is shown over the search area 2, the pixel 4 (画素) in the overlapped search area is not shown. Hereinafter, the unit of the number of pixels in the horizontal direction is referred to as “pixel”, and the unit of the number of pixels in the vertical direction is referred to as “line”. Therefore, template 1 shown in FIG. 11 is 4 pixels × 4 lines, and search area 2 is 11 pixels.
Pixel × 11 lines.

【0005】さて、テンプレート1に対する動きベクト
ルを探索するための従来の第1の手法である「全探索
法」について説明する。この手法では、探索領域2か
ら、テンプレート1と同じ大きさの4画素×4ラインの
領域を順次切り出し、この切り出した領域の各画素の画
素値と、テンプレート1の対応する画素の画素値との間
で、順次、差分絶対値や差分二乗値等を求めていき、こ
の求めた値の各画素についての総和を、切り出した領域
毎に求めていく。
[0005] A "first search method", which is a first conventional technique for searching for a motion vector for a template 1, will now be described. In this method, an area of 4 pixels × 4 lines having the same size as the template 1 is sequentially cut out from the search area 2, and a pixel value of each pixel of the cut out area and a pixel value of a corresponding pixel of the template 1 are calculated. Between them, a difference absolute value, a difference square value, and the like are sequentially obtained, and a total sum of the obtained values for each pixel is obtained for each cut-out region.

【0006】すなわち、探索領域2において、左上から
右下に渡って、4画素×4ラインの領域を1画素または
1ラインずつずらしていくと、探索領域2は、11画素
×11ラインであるので、合計8×8=64個の領域
が、テンプレート1との間で演算(差分絶対値や差分二
乗値等を求める演算)を行う対象となる。そして、演算
結果が最小となる領域から、このテンプレート1が移動
してきたものとして動きベクトルを求める。
That is, in the search area 2, when the area of 4 pixels × 4 lines is shifted by 1 pixel or 1 line from the upper left to the lower right, the search area 2 is 11 pixels × 11 lines. , And a total of 8 × 8 = 64 areas are targets for performing an operation (an operation for obtaining a difference absolute value, a difference square value, and the like) with the template 1. Then, a motion vector is obtained assuming that the template 1 has moved from the area where the calculation result is minimum.

【0007】図11において、テンプレート1に対応す
る位置の画素ブロックの動きベクトルを(0,0)とす
ると、動きベクトルがとり得る値の範囲は、水平方向、
垂直方向ともに「−4〜+3」である。これは、図11
を参照すれば分かるように、テンプレート1が、水平方
向および垂直方向のそれぞれにおいて、一方側に4画素
(または4ライン)分、他方側に3画素(または3ライ
ン)分、移動できることによる。
In FIG. 11, assuming that the motion vector of the pixel block at the position corresponding to template 1 is (0,0), the range of possible values of the motion vector is horizontal,
It is “−4 to +3” in both vertical directions. This is shown in FIG.
, The template 1 can be moved by four pixels (or four lines) on one side and three pixels (or three lines) on the other side in each of the horizontal direction and the vertical direction.

【0008】そして、例えば、画素ブロック5の演算値
(差分絶対値和、差分二乗値和等)が最小であった場
合、図11を参照すると、その動きベクトルVは(−
2,−2)となる。以上が動きベクトルを求める原理説
明であるが、図12の模式図を参照して、この動きベク
トル探索を一般化したものについて説明する。
For example, when the operation value (sum of absolute difference, sum of squared difference, etc.) of the pixel block 5 is the minimum, referring to FIG.
2, -2). The above is the description of the principle of obtaining a motion vector. A generalized version of this motion vector search will be described with reference to the schematic diagram of FIG.

【0009】処理対象となる画像中のテンプレート6の
大きさをa画素×bライン、比較対象となる他の画像中
における探索領域7の大きさをc画素×dライン(c≧
a,d≧b)、テンプレート6に対応した探索領域7の
中心の画素ブロックの動きベクトルを「(0,0)」と
すると、動きベクトルがとり得る値の範囲は、「水平方
向:−(c−a+1)/2〜(c−a)/2,垂直方
向:−(d−b+1)/2〜(d−b)/2」であり、
「(c−a+1)×(d−b+1)個」の動きベクトル
を評価する必要がある。
The size of the template 6 in the image to be processed is a pixels × b lines, and the size of the search area 7 in the other images to be compared is c pixels × d lines (c ≧
a, d ≧ b), assuming that the motion vector of the pixel block at the center of the search area 7 corresponding to the template 6 is “(0, 0)”, the range of values that the motion vector can take is “horizontal direction: − ( c−a + 1) / 2 to (ca) / 2, vertical direction: − (d−b + 1) / 2 to (db) / 2 ”,
It is necessary to evaluate “(c−a + 1) × (d−b + 1)” motion vectors.

【0010】因みに、図12に示した左上角の画素ブロ
ック8の動きベクトルは(−(c−a+1)/2,−
(d−b+1)/2)、右下角の画素ブロック9の動き
ベクトルは((c−a)/2,(d−b)/2)であ
る。なお、動きベクトルを求めるための動きベクトル探
索演算式として、以下では差分絶対値和を用いる場合の
みについて説明する。もちろん、他の演算式として、差
分二乗値和等の評価式を用いることも考えられる。
Incidentally, the motion vector of the pixel block 8 at the upper left corner shown in FIG. 12 is (-(c-a + 1) / 2,-
(D−b + 1) / 2), and the motion vector of the pixel block 9 at the lower right corner is ((ca) / 2, (db) / 2). In the following, only the case of using the sum of absolute differences will be described as a motion vector search operation expression for obtaining a motion vector. Of course, it is also conceivable to use an evaluation expression such as a sum of squared differences as another arithmetic expression.

【0011】さて、このような全探索法を採用すると、
図11の探索領域2を探索するには、64×16=10
24回(16画素からなる1領域を64個切り出す)の
差分絶対値を計算する必要があり、膨大な演算量とな
る。そこで、演算量を削減するため、第2の従来技術と
して、まず、サブサンプリングによって得られた縮小画
像上で動きを評価し、次に、その結果得られた動きベク
トルを初期値として、狭い範囲のみでの探索を行う技術
も提案されていた。
By adopting such a full search method,
To search the search area 2 in FIG. 11, 64 × 16 = 10
It is necessary to calculate the absolute value of the difference 24 times (one area consisting of 16 pixels is cut out 64 times), which requires a huge amount of calculation. Therefore, in order to reduce the amount of computation, as a second conventional technique, first, motion is evaluated on a reduced image obtained by sub-sampling, and then the resulting motion vector is set as an initial value, A technique for performing a search by using only the information has been proposed.

【0012】これを図13の模式図を参照して説明す
る。図13は、2画素×2ライン当たり1画素サブサン
プリングするとき、このサブサンプリングで取り出され
る画素を模式的に示した図面である。黒三角で示す1
0、黒丸で示す11はそれぞれ、テンプレート1、探索
領域2からサブサンプリングされる画素を表している。
This will be described with reference to the schematic diagram of FIG. FIG. 13 is a drawing schematically showing pixels extracted by sub-sampling when one pixel is sub-sampled per 2 pixels × 2 lines. 1 indicated by a black triangle
0 and 11 indicated by black circles represent pixels to be sub-sampled from the template 1 and the search area 2, respectively.

【0013】まず、サブサンプリングで縮小画像を求
め、この縮小画像上で16×4=64回(4画素からな
る1領域を16個切り出す)の差分絶対値計算を行う。
この方法では、上記第1の従来技術と比ベ、演算量は1
/16に減少する。但し、元の画像上で初期値周りの
「−1〜+1」の範囲を探索するために、9×16=1
44回の差分絶対値計算が必要である。したがって、演
算量の合計は、208回(64回+144回)となり、
全探索法に比べると大幅に演算量が削減される。
First, a reduced image is obtained by sub-sampling, and a difference absolute value calculation is performed on the reduced image 16 × 4 = 64 times (16 regions of 4 pixels are cut out).
In this method, the amount of calculation is 1 in comparison with the first conventional technique.
/ 16. However, in order to search the range of “−1 to +1” around the initial value on the original image, 9 × 16 = 1
Forty-four difference absolute value calculations are required. Therefore, the total amount of calculation is 208 times (64 times + 144 times), and
The amount of calculation is greatly reduced as compared with the full search method.

【0014】なお、このような縮小画像を用いた動きベ
クトル探索方法については、例えば、「N.Hayashi, T.K
itui, I.Tamitani, H.Honma, Y.Ooi, T.Miyazaki, K.Oo
buchi: "A biderectional motion compensation LSI wi
th a compact motion estimator" IEICE Trans. Electr
on, E78-C, 12, pp.1682-1690, Dec. 1995」等の文献に
記載されている。
A method for searching for a motion vector using such a reduced image is described in, for example, "N. Hayashi, TK
itui, I.Tamitani, H.Honma, Y.Ooi, T.Miyazaki, K.Oo
buchi: "A biderectional motion compensation LSI wi
th a compact motion estimator "IEICE Trans. Electr
on, E78-C, 12, pp. 1682-1690, Dec. 1995 ".

【0015】上記第2の従来技術と現在の最新のLSI
製造技術を組み合わせると、通常の動きの画像で良好な
画質を得るために必要な「水平方向:−128〜+12
8,垂直方向:−64〜+64」程度の探索範囲までは
1チップに集積可能であり、低コストで実現可能であ
る。
[0015] The above-mentioned second prior art and the current latest LSI
When the manufacturing techniques are combined, the “horizontal direction: −128 to +12” necessary to obtain good image quality with a normal motion image is obtained.
8. Vertical direction: A search range of about -64 to +64 "can be integrated on one chip, and can be realized at low cost.

【0016】ところが、スポーツ中継のように極度に動
きの速い画像では、「水平方向:−200〜+200,
垂直方向:−100〜+100」程度の広範囲を探索す
る必要がある。このような広い探索範囲を持った動きベ
クトル探索装置については、例えば、「E.Ogra, M.Taka
shima, D.Hiranaka, T.Ishikawa, Y.Yanagita, S.Suzuk
i, T.Fukuda, T.Ishii;"A 1.2W Single-Chip MPEG2 MP@
ML Video Encoder LSIincluding Wide Search Range Mo
tion Estimation and 81 MOPS Controller" ISSCC98 Di
gest of Technical Papers, Feb. 1998」等の文献に記
載されている。なお、この文献の例における探索範囲は
「水平方向:−288〜+287.5、垂直方向:−9
6〜+95.5」である。
On the other hand, in an image having extremely fast movement such as a sports broadcast, "horizontal direction: -200 to +200,
Vertical direction: It is necessary to search a wide range of about -100 to +100 ". For a motion vector search device having such a wide search range, for example, “E. Ogra, M. Taka
shima, D.Hiranaka, T.Ishikawa, Y.Yanagita, S.Suzuk
i, T.Fukuda, T.Ishii; "A 1.2W Single-Chip MPEG2 MP @
ML Video Encoder LSI including Wide Search Range Mo
tion Estimation and 81 MOPS Controller "ISSCC98 Di
gest of Technical Papers, Feb. 1998 ". Note that the search range in the example of this document is "horizontal: -288 to +287.5, vertical: -9.
6 to +95.5 ".

【0017】このような広大な探索範囲を実現するため
に、4画素×2ライン当たり1画素、または4画素×4
ライン当たり1画素サブサンプリングしてさらに解像度
を下げた縮小画像上で探索を行うことも考えられるが、
解像度を下げれば下げるほど動きベクトルを誤って検出
する可能性が高くなり、動きの少ない画像においては、
狭い範囲を上記第1の従来技術や第2の従来技術で探索
した場合に比べて画質の劣化を引き起こすという欠点が
ある。
In order to realize such a wide search range, one pixel per 4 pixels × 2 lines, or 4 pixels × 4
It is conceivable to search on a reduced image with further reduced resolution by subsampling one pixel per line,
The lower the resolution, the more likely it is that the motion vector will be detected incorrectly.
There is a drawback that the image quality is deteriorated as compared with the case where the narrow range is searched by the first and second conventional techniques.

【0018】そのため、第3の従来技術として、探索領
域を複数の領域に分割して、分割された個々の探索領域
に別々の動きベクトル探索装置を割り当て、広い範囲を
探索する方法が提案された。
Therefore, as a third prior art, there has been proposed a method of dividing a search area into a plurality of areas, assigning separate motion vector search devices to each of the divided search areas, and searching a wide range. .

【0019】これを図14の模式図を参照して説明す
る。図14は、動きベクトルを求める対象であるテンプ
レート13と、動きベクトルの探索範囲である探索領域
12を模式的に示したものである。動きベクトルがとり
得る値の範囲は、水平方向、垂直方向ともに「−8〜+
7」であり、探索領域12は、19画素×19ラインで
あるので、図11の4倍の16×16=256個の領域
が、テンプレート13との間で差分絶対値演算を行う対
象となる。
This will be described with reference to the schematic diagram of FIG. FIG. 14 schematically shows a template 13 from which a motion vector is to be obtained, and a search area 12 which is a search range of the motion vector. The range of values that the motion vector can take is “−8 to +
7 ", and the search area 12 is 19 pixels × 19 lines, so that 16 × 16 = 256 areas, four times as large as those in FIG. .

【0020】すなわち、動きベクトル探索装置には、動
きベクトルがとり得る値の範囲が、水平方向、垂直方向
ともに「−4〜+3」であるときに比べて4倍の演算能
力が要求される。このとき、図14に示すように探索領
域12を境界の画素がオーバラップした4つの領域1
4,15,16,17に分割し、それぞれの領域を別々
の動きベクトル探索装置で並列に探索することとすれ
ば、64個の領域について差分絶対値和演算を行う能力
を有する動きベクトル探索装置4台で、256個の領域
について差分絶対値和演算を行うことができる。
That is, the motion vector searching device is required to have four times the computational power as compared with the case where the range of values that the motion vector can take is "-4 to +3" in both the horizontal and vertical directions. At this time, as shown in FIG. 14, the search area 12 is divided into four areas 1 in which the border pixels overlap.
If the motion vector search device is divided into 4, 15, 16, and 17, and each region is searched in parallel by a separate motion vector search device, a motion vector search device capable of performing a sum of absolute difference calculation for 64 regions is provided. With four units, the sum of absolute differences can be calculated for 256 areas.

【0021】このような探索領域を複数の領域に分割し
て、分割された個々の探索領域に別々の動きベクトル探
索装置を割り当てる探索方法については、例えば、
「K.Yang,M.T.Sun, L.Wu:"A Family of VLSI Designs
for the Motion Compensation Block-Matching Algori
thm" IEEE Trans.CAS, pp.1317-1325, Oct. 1989」等の
文献に記載されている。
A search method in which such a search region is divided into a plurality of regions and different motion vector search devices are assigned to the respective divided search regions is described in, for example,
"K. Yang, MTSun, L. Wu:" A Family of VLSI Designs
for the Motion Compensation Block-Matching Algori
thm "IEEE Trans. CAS, pp. 1317-1325, Oct. 1989".

【0022】しかし、上記第3の従来技術では、探索範
囲が広くなるのに伴って、動きベクトル探索装置の演算
能力を増加させなければならず、コストが増大する。そ
こで、コストを増加させずに探索範囲を疑似的に拡大す
る方法として、第4の従来技術が提案された。
However, in the third prior art, as the search range is widened, the calculation capability of the motion vector search device must be increased, and the cost increases. Therefore, a fourth conventional technique has been proposed as a method of artificially expanding the search range without increasing the cost.

【0023】第4の従来技術では、動画像においては画
像上の物体の動きは時間的に連続しているので、過去に
符号化した画像の動きベクトルの分布を調べることによ
り現在符号化中の画像全体の動きをある程度予測できる
ことに着目し、予測した動きの方向に探索範囲の中心を
シフトして探索する。これを図15の模式図を参照して
説明する。
In the fourth prior art, since the motion of an object on an image in a moving image is temporally continuous, the distribution of the motion vector of an image encoded in the past is examined to check the current encoding. Focusing on the fact that the motion of the entire image can be predicted to some extent, the search is performed by shifting the center of the search range in the direction of the predicted motion. This will be described with reference to the schematic diagram of FIG.

【0024】図15は、画像全体の動きが(−2,−
3)であると予測し、動きベクトル=(−2,−3)の
画素ブロック19を中心とした動きベクトルを探索する
ことを表わしている。すなわち、画素ブロック13に対
し水平方向「−6〜+1」、垂直方向「−7〜0」の範
囲の動きベクトルを探索することを表わしている。シフ
ト後の画素ブロック19を基準とすると探索する探索領
域18の画素数は、水平方向、垂直方向ともに「−4〜
+3」の範囲の動きベクトルを探索する場合と同一であ
る。この方法では、画像全体が右とか上など一方向に動
いている場合には、演算量の増加を伴うことなく疑似的
に広い範囲を探索することができる。
FIG. 15 shows that the motion of the entire image is (−2, −).
3), and search for a motion vector centered on the pixel block 19 where the motion vector = (− 2, −3). That is, the search for the motion vector in the range of “−6 to +1” in the horizontal direction and “−7 to 0” in the vertical direction is performed on the pixel block 13. The number of pixels in the search area 18 to be searched based on the shifted pixel block 19 is “−4 to
This is the same as when searching for a motion vector in the range of “+3”. With this method, when the entire image is moving in one direction, such as rightward or upward, a pseudo wide range can be searched without increasing the amount of calculation.

【0025】このような探索範囲の中心をシフトして疑
似的に広い範囲を探索する動きベクトル探索方法につい
ては、例えば、「朱漱瑜,水野正之,横山裕,大井康,
“1チップMPEG2−MP@MLビデオ符号化LSI
における動きベクトル探索ウインドウシフト”,199
7信学会総合全大,SC−11−5」(S.Zhu, et al.,
"Video Quality Improvement by Search Window Shift
ing", Preceding of the 1997 IEICE General Conferen
ce, pp.306, 1997)等の文献に記載されている。
A motion vector search method for shifting the center of the search range to search a pseudo wide range is described in, for example, "Sousou Zhu, Masayuki Mizuno, Yutaka Yokoyama, Yasushi Oi,
“One-chip MPEG2-MP @ ML video coding LSI
Motion vector search window shift ", 199
7 IEICE General Conference, SC-11-5 "(S. Zhu, et al.,
"Video Quality Improvement by Search Window Shift
ing ", Preceding of the 1997 IEICE General Conferen
ce, pp. 306, 1997).

【0026】また、これまで演算量にのみ着目して説明
してきたが、探索範囲が広くなると探索領域の画素数が
多いということも問題となる。動きベクトル探索装置の
典型的な構成を図16に示す。
Although the description has been made by paying attention only to the calculation amount, the problem that the number of pixels in the search area increases when the search range is widened is also a problem. FIG. 16 shows a typical configuration of the motion vector search device.

【0027】テンプレート、探索領域は、共に動きベク
トル探索装置20の外部の画像メモリ24に記憶されて
おり、動き探索の際にそれぞれ動きベクトル探索装置2
0内部のテンプレート用メモリ22と探索領域用メモリ
23に読み込まれ、差分絶対値和演算/最小値検出器2
1に送られる。
The template and the search area are both stored in the image memory 24 outside the motion vector search device 20.
0 is read into the template memory 22 and the search area memory 23 inside, and the sum of absolute difference values / minimum value detector 2
Sent to 1.

【0028】通常、動きベクトル探索装置20内部の画
素の転送、すなわちテンプレート用メモリ22と差分絶
対値和演算/最小値検出器21との間、および探索領域
用メモリ23と差分絶対値和演算/最小値検出器21と
の間の転送は高速であるが、動きベクトル探索装置20
の外部の転送、すなわちテンプレート用メモリ22と画
像メモリ24との間、探索領域用メモリ23と画像メモ
リ24との間の転送は低速である。
Normally, the transfer of pixels inside the motion vector search device 20, that is, between the template memory 22 and the sum of absolute difference value / minimum value detector 21 and between the search area memory 23 and the sum of absolute difference value calculation / The transfer to and from the minimum value detector 21 is fast, but the motion vector search device 20
Is low speed, that is, the transfer between the template memory 22 and the image memory 24 and the transfer between the search area memory 23 and the image memory 24 are slow.

【0029】ここで、テンプレートの画素数は少ないた
め、動きベクトル探索装置20を構成する上でテンプレ
ート用メモリ22と画像メモリ24との間の転送が問題
となることはないが、探索領域の画素数は多いため、探
索領域用メモリ23と画像メモリ24との間の転送量を
最小とする必要がある。
Here, since the number of pixels of the template is small, the transfer between the template memory 22 and the image memory 24 does not pose a problem in configuring the motion vector search device 20, but the pixels in the search area do not matter. Since the number is large, the transfer amount between the search area memory 23 and the image memory 24 must be minimized.

【0030】図17を用いて、画像符号化において、こ
の転送量を削減するために通常用いられる第5の従来技
術を説明する。画像符号化では、画像は縦の方向にテン
プレートの大きさに分割され、これらはスライスと呼ば
れる。スライスはさらに横の方向にテンプレートの大き
さに分割される。符号化はスライスについて上から下の
順番に、個々のスライス中では左から右のテンプレート
について順番に行われる。従って、隣接する2個のテン
プレートの探索領域はかなりの部分が重なっている。
Referring to FIG. 17, a fifth conventional technique which is usually used to reduce this transfer amount in image coding will be described. In image coding, an image is divided vertically into template sizes, which are called slices. The slice is further divided in the horizontal direction into template sizes. Encoding is performed in order from top to bottom for slices, and in each slice for templates from left to right. Therefore, the search areas of two adjacent templates have a considerable overlap.

【0031】例えば、図17に示したスライス26中の
テンプレート27と28の探索領域は、それぞれ領域2
9と30であり、テンプレート27の動きベクトルの検
出が終わったとき、図16中の探索領域用メモリ23に
は探索領域29の画素はすべて存在している。テンプレ
ート27の動きベクトルの検出に続いてテンプレート2
8の動きベクトルを求めることとすれば、テンプレート
27の動きベクトルの検出が終わったとき、新たに領域
31の画素を読み込めば、探索領域用メモリ23中にテ
ンプレート28の探索領域30の画素がすべてそろう。
すなわち、スライス中の左から右のテンプレートの順番
で動きベクトルを探索すれば、画像メモリ24から探索
領域用メモリ23に個々のテンプレートの探索領域の画
素をすべて転送する必要はなく、左隣りのテンプレート
の探索領域と重なっていない部分のみを転送するだけで
よい。
For example, the search areas of the templates 27 and 28 in the slice 26 shown in FIG.
When the detection of the motion vector of the template 27 is completed, all pixels of the search area 29 are present in the search area memory 23 in FIG. Following the detection of the motion vector of template 27, template 2
8 is obtained, when the detection of the motion vector of the template 27 is completed, a new pixel of the area 31 is read, and all the pixels of the search area 30 of the template 28 are stored in the search area memory 23. Yes.
That is, if the motion vector is searched in the order of the template from the left to the right in the slice, it is not necessary to transfer all the pixels of the search area of each template from the image memory 24 to the search area memory 23. It is only necessary to transfer only the portion that does not overlap with the search area.

【0032】図17において、探索領域29と探索領域
30の垂直方向の画素位置は一致するが、図面では見や
すいように2つの探索領域29,30の位置をずらして
示している。
In FIG. 17, the pixel positions in the vertical direction of the search area 29 and the search area 30 coincide with each other, but the positions of the two search areas 29 and 30 are shifted in the drawing for easy viewing.

【0033】なお、ここで説明した第5の従来技術は、
第4の従来技術と整合性が良い。すなわち、第4の従来
技術において、スライスに含まれるすべてのテンプレー
トの探索範囲を等しくシフトすれば、第5の従来技術を
容易に適用できる。
The fifth prior art described here is:
Good consistency with the fourth prior art. That is, in the fourth conventional technique, if the search range of all templates included in a slice is shifted equally, the fifth conventional technique can be easily applied.

【0034】[0034]

【発明が解決しようとする課題】しかしながら、コスト
の増大を抑えて探索範囲を拡大するために提案された第
4の従来技術では、過去に符号化した画像の動きベクト
ルを分析して動きの変化を予測するため、現在符号化中
の画像の動きが突然変化し、実際に探索する狭い領域内
で動きベクトルを検出できなかった場合に、それ以降探
索領域をシフトする量を決めることができないという問
題がある。例えば、シーンチェンジ直後から実際の狭い
探索領域を超える動きを持った画像が連続して続く場合
には、たとえ一定の方向に一定の速度で動いたとして
も、最初にシフトする画素数を決めることができないた
め、それ以降動きを予測することができない。
However, in the fourth prior art proposed to expand the search range while suppressing an increase in cost, the fourth prior art analyzes a motion vector of a previously coded image to analyze a change in motion. If the motion of the image currently being encoded suddenly changes and a motion vector cannot be detected in a narrow area to be actually searched, it cannot be determined how much the search area is shifted thereafter. There's a problem. For example, if an image with a motion exceeding the actual narrow search area continues immediately after the scene change, determine the number of pixels to be shifted first even if it moves at a constant speed in a certain direction. Can not predict the movement thereafter.

【0035】また、上記第4の従来技術においては、画
像全体について同一のシフトを行うため、画像中に異な
る動きが存在する場合に対応できない。例えば、振り子
が大写しになっている画像では、振り子の支点側はゆっ
くり動き、先端に近くなるほど早く動く。また、例え
ば、列車を写している画像では、背景は静止しており、
列車は水平方向に平行移動する。これらの画像において
できるだけ狭い探索領域で動きベクトルを検出しようと
すると、同一の画像内でも探索領域をシフトする量を変
更する必要がある。
Further, in the fourth prior art, since the same shift is performed for the entire image, it is not possible to cope with the case where different motions exist in the image. For example, in an image in which the pendulum is a close-up, the fulcrum side of the pendulum moves slowly, and moves closer to the tip. Also, for example, in an image of a train, the background is stationary,
The train translates horizontally. In order to detect a motion vector in a search area as narrow as possible in these images, it is necessary to change the amount by which the search area is shifted even in the same image.

【0036】さらに、上記第4の従来技術においては、
画像中の一部分を探索した結果、過去の画像と動きが変
化したことを検出しても、同一画像中の残りの部分の探
索にそれを反映することができない。
Further, in the fourth prior art,
As a result of searching for a part in the image, even if it is detected that the motion has changed from the past image, it cannot be reflected in the search for the remaining part in the same image.

【0037】本発明は、このような従来の課題を解決す
るためになされたもので、その目的は動きベクトル探索
装置のコストの増加を引き起こすことなく、探索範囲を
拡大するとともに、過去に符号化した画像によらず、現
在符号化中の画像の動きを拡大された探索範囲で調べる
ことにより、当該拡大された探索範囲内の動きであれば
必ず動きを検出し、探索領域をシフトする画素数を決め
ることができる手段を提供する点にある。
The present invention has been made to solve such a conventional problem, and its purpose is to increase the search range without causing an increase in the cost of the motion vector search device, and to improve the coding range in the past. Regardless of the image obtained, the motion of the image currently being coded is checked in the expanded search range, so that if the motion is within the expanded search range, the motion is always detected, and the number of pixels for shifting the search area is determined. Is to provide a means for determining

【0038】[0038]

【課題を解決するための手段】上記目的を達成するため
に、本発明は一定の数のテンプレートからなるテンプ
レート群全体の動きを評価し、当該テンプレート群全体
の動きを検出できたときはその動きを出力し、動きが検
出できないときは動きが検出できないことを出力する。
テンプレート群全体の動きが検出できたときは、その動
きに合わせて次に探索するテンプレート群の探索領域を
シフトし、テンプレート群全体の動きを検出できないと
きは、次に探索するテンプレート群の探索において、探
索領域を所定の位置にシフトする動きベクトル探索方法
および、これらステップを行う手段を備えた動きベクト
ル探索装置を提供する。これにより、動きベクトル探索
装置のコストの増加を引き起こすことなく、探索範囲を
拡大するとともに、その拡大された探索範囲内の動きで
あれば必ず動きを検出でき、また、画像中の一部分の探
索結果を反映して探索領域のシフト量を修正することが
できる。また、一定数のテンプレート全体(テンプレー
ト群)の動きを評価し、その一定の数のテンプレート全
体(テンプレート群)の動きに合わせて次に探索するテ
ンプレート群の探索領域をシフトして詳細に探索するこ
とにより、誤検出に起因する動きベクトルのばらつきが
抑えられ、その結果として画質が向上する。
In order to achieve the above object, the present invention evaluates the movement of the entire template group consisting of a fixed number of templates, and when the movement of the entire template group can be detected, the evaluation is performed. The motion is output, and when the motion cannot be detected, the fact that the motion cannot be detected is output.
When the movement of the entire template group can be detected, the search area of the template group to be searched next is shifted in accordance with the movement, and when the movement of the entire template group cannot be detected, the search of the template group to be searched next is performed. , A motion vector search method for shifting a search area to a predetermined position, and a motion vector search apparatus including means for performing these steps. Thus, the search range can be expanded without causing an increase in the cost of the motion vector search device, and if the motion is within the expanded search range, the motion can always be detected. , The shift amount of the search area can be corrected. In addition, the motion of the entire number of templates (template group) is evaluated, and the search area of the next group of templates to be searched is shifted in accordance with the motion of the entire number of templates (template group) to search in detail. Thereby, variation in motion vectors due to erroneous detection is suppressed, and as a result, image quality is improved.

【0039】また、発明は、探索により参照される可
能性のある領域をシフトして一定の面積の領域を探索す
る動きベクトル探索方法および動きベクトル探索装置に
おいて、一定の数のテンプレートからなるテンプレート
内の各テンプレートに対して設定された基準ベクトル
だけシフトした探索領域を探索することにより各テンプ
レートの変移ベクトルを求め、該変移ベクトルと前記基
準ベクトルを足し合わせることにより各テンプレートの
実際の動きベクトルを求めるとともに、テンプレート群
内の一定の数のテンプレートの該実際の動きベクトルを
用いて全体の動きを評価し、当該テンプレート群全体の
動きを検出できたときはその動きを次に探索するテンプ
レート群の基準ベクトルとして設定し、第1のステップ
に戻る第2のステップと、当該テンプレート群全体の
準ベクトルとして、所定のベクトルを設定し、第1のス
テップに戻る第3のステップとを含むことを特徴とす
る。
Further, according to the present invention, in a motion vector search method and a motion vector search apparatus for searching for an area having a certain area by shifting an area which may be referred to by a search, a template comprising a certain number of templates Reference vector set for each template in group
By searching the search area shifted only by
The rate change vector is obtained, and the rate
By adding the quasi-vectors,
Calculate actual motion vectors and set templates
The actual motion vector of a certain number of templates in
It evaluates the overall motion using, balance when able to detect movement of the whole template group is to be next searched the movement
Set as reference vector of rate group, first step
A second step and, overall group the template group to return to
A predetermined vector is set as a quasi vector, and the first scan is performed.
And returning to the step.

【0040】また、発明は、前記動きベクトル探索方
法および動きベクトル探索装置において、前記第3のス
テップでは、テンプレート群全体の動きを検出できない
ときは、次に探索するテンプレート群の探索において探
索領域のシフトをリセットし、探索領域の中心のブロッ
クをリセット後の動きベクトルで示されるブロックとす
ることを特徴とする。
According to the present invention, in the motion vector search method and the motion vector search apparatus, when the motion of the entire template group cannot be detected in the third step, the search area is searched in the next search for the template group. Is reset, and a block at the center of the search area is set as a block indicated by the motion vector after the reset.

【0041】また、発明は、前記動きベクトル探索方
法および動きベクトル探索装置において、前記第3のス
テップでは、当該テンプレート群全体の動きを検出でき
ないときは、次に探索するテンプレート群から、動きを
検出できるテンプレート群が現れるまで、個々のテンプ
レート群ごとに探索領域のシフトを示す基準ベクトルを
変更して異なる範囲の動きベクトルを探索することを特
徴とする。
Further, in the motion vector search method and the motion vector search apparatus according to the present invention, in the third step, when the motion of the entire template group cannot be detected, the motion is searched from the next template group to be searched. Until a detectable template group appears, the reference vector indicating the shift of the search area is changed for each template group to search for a different range of motion vectors.

【0042】また、発明は、前記動きベクトル探索方
法および動きベクトル探索装置において、最初の画像の
探索を始める前に、最初の画像において画像全体の動き
を検出するのに適当な位置のテンプレート群について、
探索領域を異なる位置にシフトして複数回の探索を実行
し、広い範囲で画像全体の動きを検出して、動きが検出
できたときは、その動きに合わせて最初のテンプレート
群の探索領域をシフトし、動きが検出できないときは、
最初のテンプレート群の探索領域を所定の基準ベクトル
分だけシフトするステップをさらに含み、前記第3のス
テップでは、テンプレート群全体の動きを検出できない
ときは、次に探索するテンプレート群から動きを検出で
きるテンプレート群が現れるか、当該テンプレート群が
含まれる画像の最後のテンプレート群まで所定の基準ベ
クトルを設定して探索を行い、次の画像の探索を始める
前に次の画像において、画像全体の動きを検出するのに
適当な位置のテンプレート群について、探索領域を異な
る位置にシフトして複数回の探索を実行し、広い範囲で
画像全体の動きを検出して、その動きに合わせて次の画
像の最初のテンプレート群の探索領域をシフトすること
を特徴とする。
Further, according to the present invention, in the motion vector search method and the motion vector search apparatus, before starting the search for the first image, a template group at an appropriate position for detecting the motion of the entire image in the first image. about,
Perform multiple searches by shifting the search area to different positions, detect the motion of the entire image in a wide range, and when motion is detected, change the search area of the first template group according to the motion. If you shift and cannot detect the motion,
The method further includes the step of shifting the search area of the first template group by a predetermined reference vector. In the third step, when the motion of the entire template group cannot be detected, the motion can be detected from the template group to be searched next. A template group appears or a predetermined reference vector is set up to the last template group of an image including the template group, a search is performed, and before the search for the next image is started, the motion of the entire image in the next image is determined. For a template group at an appropriate position to be detected, the search area is shifted to different positions, and a plurality of searches are performed, the motion of the entire image is detected in a wide range, and the motion of the next image is adjusted in accordance with the motion. The search area of the first template group is shifted.

【0043】また、発明は、前記動きベクトル探索方
法および動きベクトル探索装置において、前記第2のス
テップでは、当該テンプレート群全体の動きが検出でき
たときは、その動きと過去に探索した画面における動き
とを用いて、次に探索するテンプレート群の探索領域の
シフトの決定およびシフトを行い、前記第3のステップ
では、当該テンプレート群全体の動きを検出できないと
きは、設定した動きと過去に探索した画面における動き
とを用いて、次に探索するテンプレート群の探索領域の
シフトの決定およびシフトを行うことを特徴とする。
Further, according to the present invention, in the motion vector search method and the motion vector search apparatus, in the second step, when a motion of the entire template group can be detected, the motion and the motion in the screen searched in the past are detected. Using the motion, the shift of the search area of the template group to be searched next is determined and shifted. In the third step, when the motion of the entire template group cannot be detected, the set motion and the search The shift of the search area of the template group to be searched next is determined and shifted using the movement on the screen.

【0044】また、発明は、前記動きベクトル探索方
法および動きベクトル探索装置において、前記第1のス
テップでは、個々のテンプレートの探索領域中に当該テ
ンプレートと一致するブロックが存在しないテンプレー
トが1個でも検出されたとき、当該ステップにおいてテ
ンプレート群全体の動きを検出できないことを出力する
ことを特徴とする。
Further, in the motion vector search method and the motion vector search apparatus according to the present invention, in the first step, even if there is no template in the search area of each template that does not have a block that matches the template. When detected, it is output that the movement of the entire template group cannot be detected in the step.

【0045】また、発明は、前記動きベクトル探索方
法および動きベクトル探索装置において、同一のスライ
ス内の全テンプレートを同一のテンプレート群に含ませ
ることを特徴とする。
Further, in the motion vector search method and the motion vector search apparatus according to the present invention, all templates in the same slice are included in the same template group.

【0046】また、本発明は、発明の動きベクトル探
索方法をコンピュータに実行させるプログラムを記録し
た記録媒体を提供する。ここで、記録媒体とは、コンピ
ュータが読み取り可能な可搬媒体メモリ、半導体メモ
リ、ハードディスクなどである。
[0046] Further, the present invention provides a recording medium recording a program for executing the motion vector search method of the present invention on the computer. Here, the recording medium is a computer-readable portable medium memory, a semiconductor memory, a hard disk, or the like.

【0047】[0047]

【発明の実施の形態】本実施形態では、それぞれ異なる
特徴を備えた2つの動きベクトル探索装置および方法を
開示する。1つ目の動きベクトル探索方法および装置の
処理概要は、以下の様になる。まず、所定の方法により
処理対象となる画像全体の動きベクトルを求め、これを
画像全体の動きを示す基準ベクトルとする。ここで、所
定の方法の例としては、処理対象の画像内のいくつかの
テンプレートに対し広い範囲の探索領域で動きベクトル
を求める方法、サブサンプリングにより作成した縮小画
像上で探索する方法等がある。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In the present embodiment, two motion vector searching apparatuses and methods each having different characteristics will be disclosed. The processing outline of the first motion vector search method and apparatus is as follows. First, a motion vector of the entire image to be processed is obtained by a predetermined method, and this is set as a reference vector indicating the motion of the entire image. Here, examples of the predetermined method include a method of obtaining a motion vector in a wide search area for some templates in an image to be processed, a method of searching on a reduced image created by sub-sampling, and the like. .

【0048】そして、処理対象の画像内の個々のテンプ
レートについて基準ベクトルを中心とした狭い探索領域
を設定し、この範囲内で探索を行い変移ベクトルを求め
る。そのテンプレートの動きベクトルは、求めた変移ベ
クトルと基準ベクトルとを加えたベクトルとする。この
処理を処理対象の画像内の全てのテンプレートについて
行う。
Then, a narrow search area centering on the reference vector is set for each template in the image to be processed, and a search is performed within this area to obtain a displacement vector. The motion vector of the template is a vector obtained by adding the obtained displacement vector and the reference vector. This process is performed for all templates in the image to be processed.

【0049】2つ目の動きベクトル探索方法および装置
の処理概要は、以下の様になる。処理対象となる画像に
おいて、1以上のテンプレートを単位としたテンプレー
ト群を設定する。そして、テンプレート群内の個々のテ
ンプレートの動きベクトルより、テンプレート群として
の動きベクトルを検出できた場合には、検出できたテン
プレート群全体の動きベクトルを利用して、次のテンプ
レート群における探索領域のシフト位置を設定する。一
方、テンプレート群としての動きベクトルを検出できな
かった場合には、次のテンプレート群における探索領域
のシフト位置を動きを検出できなかったテンプレート群
の探索領域のシフト位置と異なるものとする。
The processing outline of the second motion vector search method and apparatus is as follows. In an image to be processed, a template group is set in units of one or more templates. When a motion vector as a template group can be detected from a motion vector of each template in the template group, the motion vector of the detected template group as a whole is used to search for a search area in the next template group. Set the shift position. On the other hand, when the motion vector as the template group cannot be detected, the shift position of the search area in the next template group is different from the shift position of the search area of the template group in which the motion cannot be detected.

【0050】以下では、1つ目の動きベクトル探索方法
および装置について第1−1〜1−6の実施形態として
説明する。また、2つ目の動きベクトル探索方法および
装置について第2−1〜2−7の実施形態として説明す
る。
Hereinafter, a first method and apparatus for searching for a motion vector will be described as first to first to sixth embodiments. A second motion vector search method and apparatus will be described as the second to second embodiments.

【0051】以下、1つ目の動きベクトル探索方法およ
び装置に関する本発明の実施形態を図面を参照しつつ説
明する。
Hereinafter, an embodiment of the present invention relating to a first motion vector search method and apparatus will be described with reference to the drawings.

【0052】[第1−1の実施形態] 図1は、本発明の第1−1の実施形態の構成例を示すブ
ロック図である。
[Embodiment 1-1] FIG. 1 is a block diagram showing a configuration example of an embodiment 1-1 of the present invention.

【0053】本実施形態による動きベクトル探索装置1
00は、基準ベクトルを算出するための広い探索領域用
動きベクトル探索部110と、変移ベクトルを算出する
ための狭い探索領域用動きベクトル探索部120とを有
する。ここで、1つ目の動きベクトル探索方法および装
置における「基準ベクトル」とは、比較対象となる画像
に対し、処理対象となる画像全体の動きを表すベクトル
を意味する。また、「変移ベクトル」とは、処理対象と
なる画像内の個々のテンプレートに対し、基準ベクトル
を考慮したシフト位置を持つ探索領域内での動きベクト
ルを意味する。
The motion vector search device 1 according to the present embodiment
00 has a wide search area motion vector search unit 110 for calculating a reference vector and a narrow search area motion vector search unit 120 for calculating a displacement vector. Here, the “reference vector” in the first motion vector search method and apparatus refers to a vector representing the motion of the entire image to be processed with respect to the image to be compared. Further, the “transition vector” means a motion vector in a search area having a shift position in consideration of a reference vector with respect to each template in an image to be processed.

【0054】図2は、第1−1の実施形態における処理
を示すフローチャートである。ここで、第1−1の実施
形態における動作説明は、1つ目の動きベクトル方法に
共通する処理内容を示している。本実施形態では、最初
に広い探索領域用動きベクトル探索部110において、
広い領域を探索し、画像全体の動きを示す基準ベクトル
を求める(ステップS1)。この際に、広い探索領域用
動きベクトル探索部110は、処理対象の画像内のいく
つかのテンプレートに対し広い範囲の探索領域での動き
ベクトルを求める。そして、求めた1以上の動きベクト
ルを用いて比較対象の画像に対する処理対象の画像全体
の動きベクトルを求める。もちろん、広い探索領域用動
きベクトル探索部111の演算能力が十分大きい場合に
は、処理対象の画像内の全てのテンプレートに対し広い
範囲の探索領域での動きベクトルを求めても良い。この
広い探索領域用動きベクトル探索部110の動作の詳細
は、第1−2〜1−4の実施形態で説明する。ここ
で、”広い領域”あるいは”広い範囲の探索領域”と
は、処理対象のテンプレートに対し、通常設定される探
索領域より広い領域のことを言う。例えば、NTSC信
号をデジタル化した場合の1フレームの画像の大きさ
は、720画素×480ラインである。この画像中のテ
ンプレート(一般に”マクロブロック”と呼ばれる)の
大きさは16画像×16ラインである。このマクロブロ
ックに対して設定される探索領域は、このマクロブロッ
クの動きベクトルの取りうる範囲として水平方向±32
画像,垂直方向±32画像となる領域で一般に設定され
る。これに対して、本発明における”広い領域”あるい
は”広い範囲の探索領域”の場合には、例えばマクロブ
ロックの動きベクトルの取りうる範囲として水平方向±
100画素,垂直方向±50画素となる領域で設定され
る。また、HDTV(High Definition TV)の1080
Iフォーマットの場合の1フレームの画像の大きさは、
1920画素×1080ラインである。この場合のマク
ロブロックの大きさも一般に16画像×16ラインであ
る。そして、この場合の”広い領域”あるいは”広い範
囲の探索領域”は、例えばマクロブロックの動きベクト
ルの取りうる範囲として水平方向±200画素,垂直方
向±100画素となる領域で設定される。このように、
通常設定される探索領域より広い探索領域を設定するこ
とで、処理対象の画像が動きの速いイメージを含む場
合、すなわテンプレートの動きベクトルが大きい場合に
も対応可能となる。また、結果として適切な基準ベクト
ルを求めることができるようになる。
FIG. 2 is a flowchart showing processing in the 1-1 embodiment. Here, the description of the operation in the 1-1 embodiment shows processing contents common to the first motion vector method. In the present embodiment, first, in the motion vector search unit 110 for a wide search area,
A wide area is searched, and a reference vector indicating the motion of the entire image is obtained (step S1). At this time, the wide search area motion vector search unit 110 obtains motion vectors in a wide search area for some templates in the processing target image. Then, using the obtained one or more motion vectors, a motion vector of the entire processing target image with respect to the comparison target image is obtained. Of course, if the calculation capability of the wide search area motion vector search unit 111 is sufficiently large, motion vectors in a wide search area may be obtained for all templates in the image to be processed. Details of the operation of the wide search area motion vector search unit 110 will be described in the first to second to fourth embodiments. Here, the “wide area” or the “wide search area” refers to an area wider than the search area normally set for the template to be processed. For example, the size of an image of one frame when the NTSC signal is digitized is 720 pixels × 480 lines. The size of the template (generally called "macroblock") in this image is 16 images × 16 lines. The search area set for this macroblock is ± 32 in the horizontal direction as the range that the motion vector of this macroblock can take.
It is generally set in an area where the image is ± 32 images in the vertical direction. On the other hand, in the case of the “wide area” or the “wide area search area” in the present invention, for example, the range in which the motion vector of the macroblock can be
It is set in an area of 100 pixels and ± 50 pixels in the vertical direction. In addition, 1080 of HDTV (High Definition TV)
In the case of the I format, the size of an image of one frame is
It is 1920 pixels × 1080 lines. In this case, the size of the macro block is also generally 16 images × 16 lines. In this case, the “wide area” or the “wide area search area” is set, for example, as an area in which the motion vector of the macroblock can take ± 200 pixels in the horizontal direction and ± 100 pixels in the vertical direction. in this way,
By setting a search area wider than a normally set search area, it is possible to cope with a case where an image to be processed includes a fast-moving image, that is, a case where a motion vector of a template is large. As a result, an appropriate reference vector can be obtained.

【0055】次に、狭い探索領域用動きベクトル探索部
120において、当該画像中のすべてのテンプレートに
ついて、個々に基準ベクトルを中心とした狭い領域を探
索し、個々のテンプレートについて基準ベクトルからの
変移ベクトルを求め(ステップS2)、個々のテンプレ
ートについて基準ベクトルと変移ベクトルを加算し、そ
の結果を個々のテンプレートの動きベクトルとする(ス
テップS3)。すなわち、狭い探索領域用動きベクトル
探索部120は、処理対象の画像内のある1つのテンプ
レートAに対し、図15で説明したように基準ベクトル
をシフト位置とした狭い探索領域を設定する。そして、
狭い探索領域用動きベクトル探索部120は、例えば図
11や図12で説明した「全探索法」用いて、この探索
領域内でテンプレートAの動きベクトル(変移ベクト
ル)を求める。狭い探索領域用動きベクトル探索部12
0は、この処理を処理対象となる画像に含まれる全ての
テンプレートに対して行うことで、ステップS2の処理
を行う。続いて、狭い探索領域用動きベクトル探索部1
20は、ステップS3において個々のテンプレートに対
して求めたそれぞれの変移ベクトルに対して基準ベクト
ルをそれぞれ加算することで、処理対象の画像中に含ま
れる全てのテンプレートの動きベクトルを求める。
Next, the motion vector search unit 120 for narrow search area searches all templates in the image individually for a narrow area centered on the reference vector, and finds a displacement vector from the reference vector for each template. (Step S2), the reference vector and the displacement vector are added for each template, and the result is used as the motion vector of each template (step S3). That is, the narrow search area motion vector search unit 120 sets a narrow search area with the reference vector shifted as described with reference to FIG. 15 for one template A in the image to be processed. And
The narrow search area motion vector search unit 120 obtains a motion vector (displacement vector) of the template A within the search area by using, for example, the “all search method” described with reference to FIGS. Motion vector search unit 12 for narrow search area
0 performs the process of step S2 by performing this process on all templates included in the image to be processed. Subsequently, the narrow search area motion vector search unit 1
Step 20 calculates motion vectors of all templates included in the processing target image by adding a reference vector to each displacement vector obtained for each template in step S3.

【0056】なお、画像全体の動きを表わす基準ベクト
ルは、1枚の画像について2個以上存在することもあり
得る。例えば、静止した背景の中を大きな物体が横切っ
て移動する場合である。
It should be noted that there may be two or more reference vectors representing the motion of the entire image in one image. For example, there is a case where a large object moves across a stationary background.

【0057】[第1−2の実施形態] 図3は、本発明の第1−2の実施形態を説明するための
図である。動画像では複数の画像が時間的に連続してお
り、画像符号化においては時間的に1枚前の画像だけで
なく複数枚前の画像の動きベクトルを求める場合があ
る。図3においてA,B,C,Dは、時間的に連続した
画像であり、動きベクトルVtは、画像Aを基準として
画像Dの動きを示す基準ベクトルである。ここで、画像
は本来2次元であるが、説明の単純化のため1次元で表
している。また、動きベクトルV1は画像Aを基準とし
て画像Bの動きを示すベクトルである。同様にV2,V
3はそれぞれ画像Bを基準として画像C、画像Cを基準
として画像Dの動きを示すベクトルであり、Vt=V1
+V2+V3の関係がある。
[Embodiment 1-2] FIG. 3 is a diagram for explaining Embodiment 1-2 of the present invention. In a moving image, a plurality of images are temporally continuous, and in image encoding, a motion vector of not only an image one frame before but also a plurality of images before the frame may be obtained. In FIG. 3, A, B, C, and D are temporally continuous images, and the motion vector Vt is a reference vector indicating the motion of the image D with respect to the image A. Here, the image is originally two-dimensional, but is represented by one-dimensional for simplicity of explanation. The motion vector V1 is a vector indicating the motion of the image B with respect to the image A. Similarly, V2, V
Reference numerals 3 denote vectors indicating the motions of the image C based on the image B and the image D based on the image C, respectively, and Vt = V1
+ V2 + V3.

【0058】図4は、第1−2の実施形態における処理
を示すフローチャートである。なお、装置構成は、図1
に示す第1−1の実施形態と同様である。本実施形態で
は、広い探索領域用動きベクトル探索部110におい
て、Vl、V2、V3を求めるための探索を別個に行い
(ステップS11〜S13)、V1、V2、V3を加算
して画像Aを基準として画像Dの動きを示す基準ベクト
ルVtとする(ステップS14)。ここで、また、広い
探索領域用動きベクトル探索部110による、隣接する
画像A,B間の動きベクトルの求め方を説明する。広い
探索領域用動きベクトル探索部110は、以下の処理を
行う。 1)画像A内の所定個所の複数のテンプレート(例えば
画像Aの中央付近や、画像の角付近のテンプレート)を
選択する。 2)選択したテンプレートに対し広い範囲の探索領域を
設定する。そして、画像Bに対するテンプレートの動き
ベクトルを求める。これを選択した全てのテンプレート
に対して行う。ここで、動きベクトルを求める方法とし
ては、例えば前述した第1〜第4の従来技術のいずれか
を用いる。 3)求められた複数の動きベクトルのうち、各動きベク
トルを求める際に得られる差分絶対値あるいは差分二乗
値等が、予め定められたしきい値より大きいものがある
ときは画像Aを基準とする画像Bの動きは求まらないと
判定する。そして、画像A,B間の動きベクトルを
(0,0)とする。 4)求められた全ての動きベクトルについて、差分絶対
値あるいは差分二乗値が予め定められたしきい値以下で
あるときは、それら動きベクトルの平均値、あるいは、
それら動きベクトルの分布の中央値を隣接する画像A,
B間の動きベクトルとする。
FIG. 4 is a flowchart showing processing in the 1-2 embodiment. The device configuration is shown in FIG.
Is the same as in the 1-1 embodiment shown in FIG. In the present embodiment, the wide search area motion vector search unit 110 performs separate searches for obtaining V1, V2, and V3 (steps S11 to S13), and adds V1, V2, and V3 to determine the image A as a reference. Is set as a reference vector Vt indicating the motion of the image D (step S14). Here, how to obtain a motion vector between adjacent images A and B by the wide search area motion vector search unit 110 will be described. The wide search area motion vector search unit 110 performs the following processing. 1) Select a plurality of templates at predetermined locations in the image A (for example, near the center of the image A or near the corners of the image A). 2) Set a wide search area for the selected template. Then, a motion vector of the template for the image B is obtained. This is performed for all the selected templates. Here, as a method of obtaining a motion vector, for example, any of the first to fourth conventional techniques described above is used. 3) When a difference absolute value or a difference square value obtained when each motion vector is obtained is larger than a predetermined threshold value among a plurality of obtained motion vectors, the image A is used as a reference. It is determined that the motion of the image B is not determined. Then, the motion vector between the images A and B is set to (0, 0). 4) When the absolute value of the difference or the difference squared value is equal to or smaller than a predetermined threshold value for all of the obtained motion vectors, the average value of the motion vectors, or
The median of the distribution of the motion vectors is set to the adjacent image A,
A motion vector between B and B is assumed.

【0059】広い探索領域用動きベクトル探索部110
は、以上説明した処理をステップS11、S12、S1
3において行う。なお、図4のステップS11〜S14
は、図2のステップS1の具体的な処理内容となる。
Wide search area motion vector search section 110
Performs the processing described above in steps S11, S12, S1.
Perform in step 3. Steps S11 to S14 in FIG.
Is the specific processing content of step S1 in FIG.

【0060】次に、狭い探索領域用動きベクトル探索部
120において、画像Aを基準として画像D上ですべて
のテンプレートについて、個々に基準ベクトルを中心と
した狭い領域を探索し、個々のテンプレートについて基
準ベクトルからの変移ベクトルを求める(ステップS1
5)。その後、個々のテンプレートについて基準ベクト
ルと変移ベクトルを加算し、その結果を個々のテンプレ
ートの動きベクトルとする(ステップS16)。ステッ
プS15,S16は、図2のステップS2,3と同様の
処理である。
Next, the narrow search area motion vector search section 120 searches for a narrow area centering on the reference vector individually for all templates on the image D based on the image A, and Find a displacement vector from the vector (step S1)
5). Thereafter, the reference vector and the displacement vector are added for each template, and the result is set as the motion vector of each template (step S16). Steps S15 and S16 are the same processing as steps S2 and S3 in FIG.

【0061】同じ速度で動いている物体の動きベクトル
を検出するとき、時間的に離れた画像間で動きベクトル
を探索すると、時間的に近い画像間で探索するよりも広
い範囲を探索しなければならない。本実施形態において
は、時間的に近い画像間で動きベクトルを探索すること
を繰り返し、それらの和を時間的に離れた画像間の動き
ベクトルとするため、時間的に離れた画像間を直接探索
する場合よりも探索範囲を狭くすることができる。
When detecting a motion vector of an object moving at the same speed, searching for a motion vector between temporally distant images requires searching for a wider range than searching for a temporally close image. No. In the present embodiment, the search for motion vectors between images that are close in time is repeated, and the sum thereof is used as a motion vector between images that are temporally separated. The search range can be narrower than in the case where the search is performed.

【0062】なお、本実施形態では、処理対象となる画
像Aと比較対象となる画像Dの間に2枚の画像B,Cが
ある例を示しているが、画像Aと画像Dの間にこれ以外
の枚数の画像が含まれていても同様の処理で対応可能で
ある。
In this embodiment, an example is shown in which there are two images B and C between the image A to be processed and the image D to be compared. Even if other numbers of images are included, the same processing can be used.

【0063】[第1−3の実施形態] 図5は、第1−3の実施形態における処理を示すフロー
チャートである。第1−3の実施形態の装置構成は、図
1に示す第1−1の実施形態と同様である。
[Embodiment 1-3] FIG. 5 is a flowchart showing a process according to Embodiment 1-3. The device configuration of the first to third embodiments is the same as that of the first embodiment shown in FIG.

【0064】本実施形態では、図1に示す広い探索領域
用動きベクトル探索部110において、解像度の高い画
像を直接サブサンプリングし、あるいは解像度の高い画
像を低域通過フィルタにより変換した後、サブサンプリ
ングして作成した解像度の低い縮小画像を用いて、広い
領域を探索し、画像全体の動きを示す基準ベクトルを求
める(ステップS21)。ステップS21の処理をさら
に詳しく説明すると以下のようになる。 1)処理対象となる画像の縮小画像Aと比較対象となる
画像の縮小画像Bを作成する。縮小画像の作成方法は前
述の通りである。 2)縮小画像A内のあるテンプレートaに対し、縮小画
像Bを用いて広い領域の探索領域bを設定する。 3)探索領域bを用いてテンプレートaの動きベクトル
を求める。 4)上記の2),3)を繰り返すことで縮小画像A内の
全てのテンプレートの動きベクトルを求める。 5)求めた全ての動きベクトルの平均値、あるいは、動
きベクトルの分布の中央値を処理対象画像の基準ベクト
ルとする。なお、ステップS21は、図2のステップS
1の具体的な処理内容となる。
In this embodiment, the wide search area motion vector search section 110 shown in FIG. 1 directly subsamples a high-resolution image or converts a high-resolution image using a low-pass filter, and then performs subsampling. A wide area is searched using the reduced image created with the low resolution, and a reference vector indicating the motion of the entire image is obtained (step S21). The processing in step S21 will be described in more detail below. 1) Create a reduced image A of an image to be processed and a reduced image B of an image to be compared. The method of creating the reduced image is as described above. 2) For a certain template a in the reduced image A, a large search area b is set using the reduced image B. 3) A motion vector of the template a is obtained using the search area b. 4) By repeating the above 2) and 3), the motion vectors of all the templates in the reduced image A are obtained. 5) The average value of all the obtained motion vectors or the median value of the distribution of the motion vectors is set as the reference vector of the processing target image. Step S21 is the same as step S21 in FIG.
1 is the specific processing content.

【0065】そして、ステップS21の処理を終了する
と、狭い探索領域用動きベクトル探索部120におい
て、解像度の低い縮小画像を作成するために使用した解
像度の高い画像を用いて、当該画像中のすべてのテンプ
レートについて、個々に基準ベクトルを中心とした狭い
領域を詳細に探索し、個々のテンプレートについて基準
ベクトルからの変移ベクトルを求める(ステップS2
2)。その後、個々のテンプレートについて基準ベクト
ルと変移ベクトルを加算し、その結果を個々のテンプレ
ートの動きベクトルとする(ステップS23)。ステッ
プS22,S23は、図2のステップS2,3と同様の
処理である。
When the processing in step S21 is completed, the narrow search area motion vector search unit 120 uses the high-resolution image used to create the reduced-resolution reduced image and deletes all the images in the image. A narrow area around the reference vector is individually searched for the template in detail, and a displacement vector from the reference vector is obtained for each template (step S2).
2). Thereafter, the reference vector and the displacement vector are added for each template, and the result is set as the motion vector of each template (step S23). Steps S22 and S23 are the same processing as steps S2 and S3 in FIG.

【0066】本実施形態においては、広い探索領域用動
きベクトル探索部110において、解像度の低い縮小画
像上で基準ベクトルを求めるので、広い領域を探索する
ためのコストを抑えることができる。
In the present embodiment, the motion vector search unit for wide search area 110 obtains a reference vector on a reduced image having a low resolution, so that the cost for searching a wide area can be suppressed.

【0067】なお、前述の第1−2の実施形態におい
て、広い探索領域用動きベクトル探索部110は、ステ
ップS21を利用して、図4のステップS11,S1
2,S13の各ステップで動きベクトルV1,V2,V
3を求めてもよい。
In the above-described embodiment 1-2, the wide search area motion vector search section 110 uses step S21 to execute steps S11 and S1 in FIG.
In each step of S2, S13, the motion vectors V1, V2, V
You may ask for 3.

【0068】[第1−4の実施形態] 図6は、第1−4の実施形態における処理を示すフロー
チャートである。第1−4の実施形態の装置構成は、図
1に示す第1−1の実施形態と同様である。
[First to Fourth Embodiment] FIG. 6 is a flowchart showing processing in the first to fourth embodiments. The device configuration of the 1-4th embodiment is the same as that of the 1-1 embodiment shown in FIG.

【0069】本実施形態では、広い探索領域用動きベク
トル探索部110において、画像全体のテンプレートの
総数より少ない数であって、画像全体の動きを知るため
に必要な数のテンプレートのみ広い領域を探索し、画像
全体の動きを示す基準ベクトルを求める(ステップS3
1〜S33)。このS31〜S33における広い探索領
域用動きベクトル探索部110の動作をより具体的に説
明すると以下のようになる。まず、処理対象となる画像
の処理開始時点(スタート時点)で、処理対象の画像内
のテンプレートであって、処理対象の画像全体の動きを
知るために必要な数のテンプレートが設定されているも
のとする。ここで、ステップS31〜S33で処理され
る”画像全体を知るために必要なテンプレート”の数や
その位置については別途説明する。また、処理開始時点
で、設定された複数のテンプレートのうち最初に処理す
るテンプレートが選択されているものとする。まず、広
い探索領域用動きベクトル探索部110は、選択された
テンプレートテンプレートに対し、比較対象となる画像
を用いて広い範囲の検索領域を設定する。そしてそのテ
ンプレートの動きベクトルを求める。ここで、動きベク
トルを求める方法としては、例えば前述した第1〜第4
の従来技術のいずれかを用いる。(ステップS31)。
次に、処理開始時点で設定された全てのテンプレートの
処理が終了したか判断を行うことで、基準ベクトルが求
められるか判断し(ステップS32)、未処理のテンプ
レートがある場合には、未処理のテンプレートから次に
処理するテンプレートを選択する(ステップS33)。
一方、処理開始時点で設定された全てのテンプレートの
動きベクトルが求まると、基準ベクトルを求めることが
できるので、広い探索領域用動きベクトル探索部110
は、求めた複数の動きベクトルを用いて画像全体の動き
である”基準ベクトル”を算出する(ステップS3
2)。基準ベクトルの算出は、以下のように行う。求め
られた複数の動きベクトルのうち、各動きベクトルを求
める際に得られる差分絶対値あるいは差分二乗値等が、
予め定められたしきい値より大きいものがあるときは、
動きは求まらないと判定する。そして、基準ベクトルを
(0,0)とする。求められた全ての動きベクトルにつ
いて、それらを求める際に得られる差分絶対値あるいは
差分二乗値が予め定められたしきい値以下であるとき
は、それら動きベクトルの平均値、あるいは、それら動
きベクトルの分布の中央値を基準ベクトルとする。
In the present embodiment, the wide search area motion vector search section 110 searches a wide area only for the number of templates smaller than the total number of templates of the entire image and necessary for knowing the motion of the entire image. Then, a reference vector indicating the motion of the entire image is obtained (step S3).
1 to S33). The operation of the wide search area motion vector search unit 110 in S31 to S33 will be described more specifically as follows. First, at the start of processing (start time) of an image to be processed, templates in the image to be processed, in which the number of templates necessary to know the movement of the entire image to be processed are set. And Here, the number of “templates necessary for knowing the entire image” and their positions, which are processed in steps S31 to S33, will be described separately. It is also assumed that a template to be processed first is selected from a plurality of set templates at the start of processing. First, the wide search area motion vector search unit 110 sets a wide search area for the selected template template using the image to be compared. Then, a motion vector of the template is obtained. Here, as a method of obtaining a motion vector, for example, the first to fourth
Using any of the prior arts. (Step S31).
Next, it is determined whether or not the processing of all templates set at the start of the processing has been completed, thereby determining whether or not a reference vector can be obtained (step S32). A template to be processed next is selected from the templates (step S33).
On the other hand, when the motion vectors of all the templates set at the start of the processing are obtained, the reference vector can be obtained.
Calculates a “reference vector”, which is the motion of the entire image, using the plurality of obtained motion vectors (step S3).
2). The calculation of the reference vector is performed as follows. Among the obtained plurality of motion vectors, a difference absolute value or a difference squared value obtained when each motion vector is obtained,
When there is something larger than the predetermined threshold,
It is determined that no movement is obtained. Then, the reference vector is set to (0, 0). When the difference absolute value or difference square value obtained when obtaining all the motion vectors is equal to or smaller than a predetermined threshold value, the average value of the motion vectors or the motion vector The median of the distribution is defined as a reference vector.

【0070】なお、ステップS31〜S33は、図2の
ステップS1の具体的な処理内容となる。
Steps S31 to S33 are specific processing contents of step S1 in FIG.

【0071】そして、ステップS32において基準ベク
トルが求まったと判断された場合、狭い探索領域用動き
ベクトル探索部120では、基準ベクトルを求めるため
に使用した画像中のすべてのテンプレートについて、個
々に基準ベクトルを中心とした狭い領域を探索し、個々
のテンプレートについて基準ベクトルからの変移ベクト
ルを求める(ステップS34)。個々のテンプレートに
ついて、変移ベクトルが求まったなら、基準ベクトルと
変移ベクトルを加算し、その結果を個々のテンプレート
の動きベクトルとする(ステップS35)。ステップS
34,S35は、図2のステップS2,3と同様の処理
である。
If it is determined in step S32 that the reference vector has been determined, the narrow search area motion vector search unit 120 individually determines the reference vector for each template in the image used to determine the reference vector. A narrow area at the center is searched, and a displacement vector from a reference vector is obtained for each template (step S34). When the displacement vector is obtained for each template, the reference vector and the displacement vector are added, and the result is set as the motion vector of each template (step S35). Step S
Steps S34 and S35 are the same as steps S2 and S3 in FIG.

【0072】本実施形態において、広い探索領域用動き
ベクトル探索部110は、画像全体のテンプレートの総
数に比べ、非常に少ない数のテンプレートのみ探索する
ことにより、広い領域を探索するためのコストを抑える
ことができる。画像全体の動きを知るために必要なテン
プレートの数は、画像の種類に応じてあらかじめ設定し
ておく。例えば、画像全体が一様な方向に移動している
場合には、1個のテンプレートのみ広い領域を探索すれ
ば、画像全体の動きを示す基準ベクトルを求めることが
できる。また、画像の動きが不明であり、画像全体が一
方向に動いているか否かを切り分けたいときには、画像
の中心と四隅の計5個のテンプレートを調べればよい。
画像全体の動きを知るために必要なテンプレートの数
は、例えば統計を取ることにより、誤検出の影響を排除
できるだけの数のテンプレートの動きを調べて決めるこ
ともできる。
In the present embodiment, the wide search area motion vector search unit 110 searches only a very small number of templates compared to the total number of templates of the entire image, thereby suppressing the cost for searching a wide area. be able to. The number of templates required to know the motion of the entire image is set in advance according to the type of the image. For example, when the entire image is moving in a uniform direction, a search for a wide area with only one template can obtain a reference vector indicating the motion of the entire image. When the movement of the image is unknown and it is desired to determine whether or not the entire image is moving in one direction, a total of five templates at the center and four corners of the image may be examined.
The number of templates required to know the movement of the entire image can be determined by, for example, taking statistics, and examining the movements of as many templates as possible to eliminate the influence of erroneous detection.

【0073】なお、前述の第1−2の実施形態におい
て、広い探索領域用動きベクトル探索部110は、ステ
ップS31〜S33を利用して、図4のステップS1
1,S12,S13の各ステップで動きベクトルV1,
V2,V3を求めてもよい。
In the above-described embodiment 1-2, the wide search area motion vector search unit 110 uses steps S31 to S33 to execute step S1 in FIG.
In each step of S1, S12 and S13, the motion vector V1,
V2 and V3 may be obtained.

【0074】[第1−5の実施形態] 図7は、本発明の第1−5の実施形態の構成例を示すブ
ロック図である。本実施形態に係る動きベクトル探索装
置200は、狭い領域を探索するための狭い探索領域用
動きベクトル探索部210のみを有する。本実施形態で
は、単一の狭い探索領域用動きベクトル探索部210を
時分割で用いて、基準ベクトルと変移ベクトルを求め
る。
[First to Fifth Embodiment] FIG. 7 is a block diagram showing a configuration example of the first to fifth embodiments of the present invention. The motion vector search device 200 according to the present embodiment includes only a narrow search area motion vector search unit 210 for searching a narrow area. In the present embodiment, the reference vector and the displacement vector are obtained by using a single narrow search area motion vector search unit 210 by time division.

【0075】図8は、第1−5の実施形態における処理
を示すフローチャートである。1個のテンプレートにつ
いて、広い領域全体の探索が終了するまで、探索する領
域を変更しながら複数回狭い領域を探索し、広い領域に
対する動きベクトルを求める。具体的には、例えば図1
4に示される4つの狭い領域14、15、16、17を
時間的にシーケンシャルに探索することにより広い探索
領域12の動きベクトルを求める。
FIG. 8 is a flowchart showing processing in the first to fifth embodiments. For one template, a narrow area is searched a plurality of times while changing the search area until the search of the entire wide area is completed, and a motion vector for the wide area is obtained. Specifically, for example, FIG.
The motion vector of the large search area 12 is obtained by temporally and sequentially searching the four narrow areas 14, 15, 16, 17 shown in FIG.

【0076】すなわち、以下の処理を行う。あるテンプ
レートについて探索の中心を動きベクトル=(0,0)
の位置からシフトした探索領域を設定し(ステップS4
1)、その設定された領域の動きベクトルを探索する
(ステップS42)。広い領域全体について探索が終了
し、あるテンプレートの動きベクトルが求まるまで(ス
テップS43)、同じテンプレートについて探索の中心
をシフトする量を変更して異なる探索領域を設定しなが
ら(ステップS44)、設定された領域の探索処理を繰
り返す。
That is, the following processing is performed. Move the search center for a certain template to the motion vector = (0,0)
A search area shifted from the position is set (step S4).
1) Search for a motion vector in the set area (step S42). Until the search for the entire wide area is completed and a motion vector of a certain template is obtained (step S43), the amount of shifting the center of the search for the same template is changed while setting a different search area (step S44). The search processing for the region that has been set is repeated.

【0077】以上の処理を、画像全体の動きを知るため
に必要な数のテンプレートの探索が終了し、画像全体の
動きを示す基準ベクトルが求まるまで(ステップS4
5)、テンプレートを変更しながら繰り返す(ステップ
S46)。
The above processing is performed until the search for the number of templates necessary to know the motion of the entire image is completed and a reference vector indicating the motion of the entire image is obtained (step S4).
5) Repeat while changing the template (step S46).

【0078】図14を用いてさらに具体的に説明する
と、狭い探索領域用動きベクトル探索部210の動作は
以下のようになる。まず、処理対象となる画像の処理開
始時点で、処理対象の画像内のテンプレートであって、
処理対象の画像全体の動きを知るために必要な数のテン
プレートが設定されているものとする。ここで、ステッ
プS41〜S46で処理される”画像全体を知るために
必要なテンプレート”の数やその位置については第1−
4の実施形態と同様である。また、処理開始時点で、設
定された複数のテンプレートのうち最初に処理するテン
プレートとして図14のテンプレート13が選択されて
いるものとする。始めに、狭い探索領域用動きベクトル
探索部210は、設定されたテンプレート13に対する
探索領域を符号14に示す領域に設定する(ステップS
41)。次に、探索領域14とテンプレート13との比
較を行うことで動きベクトルを求める(ステップS4
2)。図14の4つの探索領域14,15,16,17
での探索が全て終了したか、すなわち広い範囲の探索領
域12の探索が終了して、現在処理中のテンプレートの
動きベクトルが求まったか判断する(ステップS4
3)。終了していない場合には、次の探索領域(例えば
探索領域15)を設定し(ステップS44)、ステップ
S42に進む。
More specifically, with reference to FIG. 14, the operation of the narrow search area motion vector search section 210 is as follows. First, at the start of processing of the image to be processed, the template in the image to be processed is
It is assumed that a required number of templates have been set to know the motion of the entire image to be processed. Here, regarding the number of “templates necessary to know the entire image” and their positions, which are processed in steps S41 to S46,
This is the same as the fourth embodiment. It is also assumed that the template 13 in FIG. 14 is selected as a template to be processed first among a plurality of set templates at the start of the processing. First, the narrow search area motion vector search unit 210 sets the search area for the set template 13 to the area indicated by the reference numeral 14 (Step S).
41). Next, a motion vector is obtained by comparing the search area 14 with the template 13 (step S4).
2). Four search areas 14, 15, 16, 17 in FIG.
Is completed, that is, it is determined whether the search of the search area 12 in the wide range has been completed and the motion vector of the template currently being processed has been obtained (step S4).
3). If the search has not been completed, the next search area (for example, search area 15) is set (step S44), and the process proceeds to step S42.

【0079】4つの探索領域14,15,16,17で
の探索が全て終了すると(ステップS43:YES)、広
い探索領域処12におけるテンプレート13の動きベク
トルが求められる。そこで、予め設定したすべてのテン
プレートの探索が終了したか判断することで、基準ベク
トルが求められるか判断する(ステップS45)。ステ
ップS45の判断の結果、予め設定した数のテンプレー
トの探索が終了していない場合、予め設定されたテンプ
レートであって、未処理のテンプレートを選択し(ステ
ップS46)、ステップS41に戻る。なお、予め設定
した数のテンプレートの探索が終了した時のステップS
45における基準ベクトルの算出方法は、図6のステッ
プS32で説明した方法と同様である。以上のようにし
て、基準ベクトルが求められる。
When the search in all four search areas 14, 15, 16, 17 is completed (step S43: YES), the motion vector of the template 13 in the wide search area processing 12 is obtained. Thus, it is determined whether or not the search for all preset templates has been completed, thereby determining whether a reference vector is obtained (step S45). If the result of the determination in step S45 is that the search for a preset number of templates has not been completed, an unprocessed template that is a preset template is selected (step S46), and the process returns to step S41. Step S when the search for the preset number of templates is completed.
The method of calculating the reference vector at 45 is the same as the method described in step S32 of FIG. The reference vector is obtained as described above.

【0080】画像全体の動きを示す基準ベクトルが求ま
ったなら、基準ベクトルを求めるためのテンプレート群
が含まれていた画像中のすべてのテンプレートについ
て、個々に基準ベクトルを中心とした狭い領域を詳細に
探索し、個々のテンプレートについて基準ベクトルから
の変移ベクトルを求める(ステップS47)。個々のテ
ンプレートについて、変移ベクトルが求まったなら、基
準ベクトルと変移ベクトルを加算し、その結果を個々の
テンプレートの動きベクトルとする(ステップS4
8)。ステップS47,S48は、図2のステップS
2,3と同様の処理である。
Once the reference vector indicating the motion of the entire image has been obtained, a narrow area centered on the reference vector is individually described in detail for all the templates in the image including the template group for obtaining the reference vector. A search is performed to determine a displacement vector from the reference vector for each template (step S47). When the displacement vector is obtained for each template, the reference vector and the displacement vector are added, and the result is set as the motion vector of each template (step S4).
8). Steps S47 and S48 are the same as step S of FIG.
This is the same processing as in steps 2 and 3.

【0081】なお、処理部の違いは有るものの、ステッ
プS41〜S46は、図2のステップS1の具体的な処
理内容となる。また、前述の第1−2の実施形態におい
て、動きベクトル探索装置100は、ステップS41〜
S46を利用して、図4のステップS11,S12,S
13の各ステップで動きベクトルV1,V2,V3を求
める処理をしてもよい。
Although there is a difference between the processing units, steps S41 to S46 are the specific processing contents of step S1 in FIG. Also, in the above-described 1-2 embodiment, the motion vector search device 100 performs steps S41 to S41.
Using S46, steps S11, S12, and S in FIG.
In each of the thirteenth steps, processing for obtaining the motion vectors V1, V2, and V3 may be performed.

【0082】本実施形態では、探索に要する時間が変移
ベクトルを求める時間と基準ベクトルを求める時間の和
となり、第1−1〜第1−4の実施形態に比べ、探索時
間が余分にかかるが、基準ベクトルを知るために探索す
べきテンプレートの数が少ない場合には、図8のフロー
チャートにおける基準ベクトルを求めるためのステップ
S41〜S46の処理にかかる時間は、変移ベクトルを
求めるためのステップS47の処理にかかる時間に比べ
て短く、わずかな処理時間の増加で基準ベクトルを求め
ることができる。
In the present embodiment, the time required for the search is the sum of the time for obtaining the displacement vector and the time for obtaining the reference vector. If the number of templates to be searched to know the reference vector is small, the time required for the processing of steps S41 to S46 for obtaining the reference vector in the flowchart of FIG. The reference vector can be obtained with a small increase in the processing time, which is shorter than the processing time.

【0083】ところが、探索領域が広くなると、動きベ
クトル探索の際に、外部の画像メモリ24に記憶されて
いる探索領域を、動きベクトル探索装置200内部の探
索領域用メモリ(図示せず)に読み込む構成を取ったと
しても、探索領域用メモリと画像メモリ24の画素転送
能力が不足する可能性がある。
However, when the search area becomes large, the search area stored in the external image memory 24 is read into a search area memory (not shown) in the motion vector search apparatus 200 when the motion vector search is performed. Even with this configuration, the pixel transfer capability of the search area memory and the image memory 24 may be insufficient.

【0084】図9は、第1−5の実施形態の模式的説明
図であって、図中の46は、図14に示される4つの狭
い領域14,15,16,17の重なり部分を示す。図
9から分かるように、4つの狭い領域14,15,1
6,17において2つ以上の領域に属している画素は少
ない。したがって、第1−5の実施形態では、動きベク
トル探索の際に外部の画像メモリ24に記憶されている
探索領域を、動きベクトル探索装置200内部の探索領
域用メモリ23に読み込むという構成を採ったとして
も、探索する領域を変更するときに画像メモリ24から
探索領域用メモリ23に転送すべき画素数はわずかしか
減少しない。探索領域が広くなればなるほど、広い探索
領域全体の画素数に対する重なり部分46の画素数の割
合は小さくなり、探索領域用メモリ23と画像メモリ2
4との間の画素転送能力の不足が深刻な問題となる。
FIG. 9 is a schematic explanatory view of the first to fifth embodiments. In FIG. 9, reference numeral 46 denotes an overlapping portion of the four narrow regions 14, 15, 16, 17 shown in FIG. . As can be seen from FIG. 9, the four narrow areas 14, 15, 1
In pixels 6 and 17, the number of pixels belonging to two or more regions is small. Therefore, in the first to fifth embodiments, a configuration is adopted in which the search area stored in the external image memory 24 is read into the search area memory 23 inside the motion vector search apparatus 200 at the time of the motion vector search. However, the number of pixels to be transferred from the image memory 24 to the search area memory 23 when the area to be searched is changed only slightly decreases. As the search area becomes wider, the ratio of the number of pixels of the overlapping portion 46 to the number of pixels of the entire wide search area becomes smaller, and the search area memory 23 and the image memory 2
4 is a serious problem.

【0085】[第1−6の実施形態] 図10は、第1−6の実施形態における処理を示すフロ
ーチャートである。第1−6の実施形態の装置構成は、
図7に示す第1−5の実施形態と同様である。本実施形
態では、基準ベクトルを求めるときに、従来の第5の技
術を適用し、探索領域用メモリ23と画像メモリ24の
間の画素の転送量を削減する。すなわち、まず、特定の
スライス内の探索対象のテンプレートすべてについて、
探索の中心を動きベクトル=(0,0)の位置から一定
の画素数だけシフトした探索領域を設定し、端に位置す
るテンプレートから順番に探索を行う。次に、特定のス
ライス内の探索対象のテンプレートすべてについて探索
が終了したなら、探索の中心を動きベクトル=(0,
0)の位置から別の画素数だけシフトした探索領域を設
定し、同様に探索を行う。これを繰り返して、広い領域
を探索し、あるスライス内の個々の探索対象のテンプレ
ートについて広い領域の動きベクトルを求める。さら
に、別のスライスについて同様の探索を行い、画像全体
の動きを知るために必要な数のスライスを探索して、基
準ベクトルを求める。
[1-6th Embodiment] FIG. 10 is a flowchart showing a process in the 1-6th embodiment. The device configuration of the first to sixth embodiments is as follows:
This is the same as the first to fifth embodiments shown in FIG. In the present embodiment, when the reference vector is obtained, the conventional fifth technique is applied to reduce the transfer amount of pixels between the search area memory 23 and the image memory 24. That is, first, for all templates to be searched within a specific slice,
A search area in which the center of the search is shifted by a fixed number of pixels from the position of the motion vector = (0, 0) is set, and the search is performed in order from the template located at the end. Next, when the search is completed for all the templates to be searched in the specific slice, the center of the search is set to the motion vector = (0,
A search area shifted by another number of pixels from the position 0) is set, and the search is performed in the same manner. By repeating this, a wide area is searched, and a motion vector of a wide area is obtained for each search target template in a certain slice. Further, the same search is performed for another slice, and the number of slices necessary to know the motion of the entire image is searched to obtain a reference vector.

【0086】図10に従ってさらに詳しく説明すると、
スライス内の探索対象のテンプレートのうち、端に位置
するテンプレートについて、探索の中心を動きベクトル
=(0、0)の位置からシフトした探索領域を設定する
(ステップS51)。この設定された領域の動きベクト
ルを探索する(ステップS52)。この処理をスライス
内の探索対象のテンプレート全部について動きベクトル
が求まるまで(ステップS53)、同じスライス内の隣
接したテンプレートに変更しながら繰り返す(ステップ
S54)。ただし、ステップS54では、探索の中心を
シフトする量は変更しない。
[0086] This will be described in more detail with reference to FIG.
Among the templates to be searched in the slice, for the template located at the end, a search area is set in which the search center is shifted from the position of the motion vector = (0, 0) (step S51). A motion vector of the set area is searched (step S52). This process is repeated while changing to adjacent templates in the same slice until motion vectors are obtained for all the search target templates in the slice (step S53) (step S54). However, in step S54, the amount by which the center of the search is shifted is not changed.

【0087】スライス内の探索対象のテンプレート全部
について動きベクトルが求まったなら、広い領域全体に
ついて探索が終了し、スライス内の個々のテンプレート
について動きベクトルが求まるまで(ステップS5
5)、スライス内のテンプレートのうち、端に位置する
テンプレートに変更し(ステップS56)、ステップS
52へ戻って同様に処理を繰り返す。このステップS5
6では、探索の中心をシフトする量を変更して異なる探
索領域を設定する。
When the motion vectors are obtained for all the templates to be searched in the slice, the search is completed for the entire wide area, and the motion vectors are obtained for the individual templates in the slice (step S5).
5) Change the template in the slice to the template located at the end (step S56), and
Returning to step 52, the same processing is repeated. This step S5
In step 6, the amount of shifting the center of the search is changed to set a different search area.

【0088】以上の処理を、画像全体の動きを知るため
に必要な数のテンプレートの探索が終了し、画像全体の
動きを示す基準ベクトルが求まるまで(ステップS5
7)、スライスを変更しながら繰り返す(ステップS5
8)。
The above processing is repeated until the search for the number of templates necessary to know the motion of the entire image is completed and a reference vector indicating the motion of the entire image is obtained (step S5).
7) Repeat while changing slices (step S5)
8).

【0089】図17を用いてさらに具体的に説明する
と、狭い探索領域用動きベクトル探索部210の動作は
以下のようになる。処理対象の画像の処理開始時点で、
処理対象の画像内から基準ベクトルを求めるために処理
するスライスが1以上設定されているものとする。一例
としては、画像の上部近傍、中央付近、下部近傍の3つ
のスライスを処理対象とする。また、最初に処理するス
ライスとして図17のスライス26が設定されているも
のとする。また、ステップS51〜S56において、ス
ライス中に含まれる全てのテンプレートに対し動きベク
トルを求めるが、説明を簡単にするために、各スライス
内には2つだけテンプレートが含まれている(図17の
スライス26にはテンプレート27,28のみが含まれ
ている)ものとする。
More specifically, with reference to FIG. 17, the operation of the narrow search area motion vector search section 210 is as follows. At the start of processing the image to be processed,
It is assumed that one or more slices to be processed for obtaining a reference vector from within an image to be processed are set. As an example, three slices near the top, near the center, and near the bottom of the image are to be processed. It is also assumed that slice 26 in FIG. 17 is set as the slice to be processed first. In steps S51 to S56, motion vectors are obtained for all the templates included in the slice. For simplicity, only two templates are included in each slice (see FIG. 17). Slice 26 includes only templates 27 and 28).

【0090】始めに狭い探索領域用動きベクトル探索部
210は、設定されたスライス26内の探索対象のテン
プレート(ここでは、テンプレート27,28の2つ)
のうち、端のテンプレート27について、シフトした探
索領域(例えば図14の探索領域14に相当する領域)
を設定する(ステップS51)。次に、設定された探索
領域とテンプレート27との比較を行うことで動きベク
トルを求める(ステップS52)。処理中のスライス2
6内の全ての探索対象のテンプレート27,28につい
て、同じシフト量で設定した探索領域の探索が終了した
か判断する(ステップS53)。終了していない場合に
は、次のテンプレート28に変更し、このテンプレート
28に対して同じシフト量の探索領域(例えば図14の
探索領域14に相当する領域)を設定し(ステップS5
4)、ステップS52に戻る。2つのテンプレート2
7,28について同じシフト量の探索領域の探索が終了
すると(ステップS53:YES)、すべての探索領域
(例えば、図14の4つの探索領域14,15,16,
17からなる広い範囲の探索領域12)の探索が終了し
たか判断する(ステップS55)。すべての探索領域が
探索されていない場合、スライス26内の探索対象のテ
ンプレートのうち、端のテンプレート27について、異
なるシフト量の探索領域(例えば図14の探索領域15
に相当する領域)を設定し(ステップS56)、ステッ
プS52に戻る。スライス内の探索対象となるテンプレ
ートすべてについて、すべての探索領域での探索が全て
終了する(ステップS55)と、探索対象となるそれぞ
れのテンプレートについて広い探索領域(図14の符号
12に相当する領域)における動きベクトルが求められ
る。次に、基準ベクトルを求めるために予め設定した全
てのスライスの処理が終了したかを判断することで、基
準ベクトルが求められるか判断する(ステップS5
7)。未処理のスライスがある場合(ステップS5
7)、予め設定したスライスであって、未処理のスライ
スを選択し(ステップS58)、ステップS52に戻
る。なお、予め設定した数のスライスの処理を終了した
際の、ステップS57における基準ベクトルの算出方法
は、図6のステップS32で説明した方法と同様であ
る。以上のようにして、基準ベクトルが求められる。
First, the narrow search area motion vector search section 210 searches for the template to be searched in the set slice 26 (here, two templates 27 and 28).
Of the end template 27, the shifted search area (for example, an area corresponding to the search area 14 in FIG. 14)
Is set (step S51). Next, a motion vector is obtained by comparing the set search area with the template 27 (step S52). Slice 2 being processed
It is determined whether or not the search for the search areas set with the same shift amount has been completed for all the search target templates 27 and 28 in 6 (step S53). If the search has not been completed, the template 28 is changed to the next template 28, and a search area having the same shift amount (for example, an area corresponding to the search area 14 in FIG. 14) is set for this template 28 (step S5).
4) Return to step S52. Two templates 2
When the search for the search areas having the same shift amount is completed for steps 7 and 28 (step S53: YES), all search areas (for example, the four search areas 14, 15, 16, and
It is determined whether or not the search of the search area 12) of a wide range including 17 has been completed (step S55). If all the search areas have not been searched, among the templates to be searched in the slice 26, the search areas having different shift amounts (for example, the search area 15 in FIG.
Is set (step S56), and the process returns to step S52. When the search in all search areas is completed for all the templates to be searched in the slice (step S55), a wide search area (an area corresponding to reference numeral 12 in FIG. 14) is obtained for each template to be searched. Is obtained. Next, it is determined whether or not the processing of all the slices set in advance for obtaining the reference vector has been completed, thereby determining whether or not the reference vector can be obtained (step S5).
7). When there is an unprocessed slice (step S5
7) An unprocessed slice that is a preset slice is selected (step S58), and the process returns to step S52. The method of calculating the reference vector in step S57 when the processing of a predetermined number of slices is completed is the same as the method described in step S32 of FIG. The reference vector is obtained as described above.

【0091】画像全体の動きを示す基準ベクトルが求ま
ったなら、基準ベクトルを求めるためのテンプレート群
が含まれていた画像中のすべてのテンプレートについ
て、個々に基準ベクトルを中心とした狭い領域を詳細に
探索し、個々のテンプレートについて基準ベクトルから
の変移ベクトルを求める(ステップS59)。個々のテ
ンプレートについて、変移ベクトルが求まったなら、基
準ベクトルと変移ベクトルを加算し、その結果を個々の
テンプレートの動きベクトルとする(ステップS6
0)。ステップS59,S60は、図2のステップS
2,3と同様の処理である。
When the reference vector indicating the motion of the entire image is obtained, a narrow area centered on the reference vector is individually described in detail for all the templates in the image including the template group for obtaining the reference vector. A search is performed to determine a displacement vector from the reference vector for each template (step S59). When the displacement vector is obtained for each template, the reference vector and the displacement vector are added, and the result is set as the motion vector of each template (step S6).
0). Steps S59 and S60 are the same as step S of FIG.
This is the same processing as in steps 2 and 3.

【0092】なお、処理部の違いは有るものの、ステッ
プS51〜S58は、図2のステップS1の具体的な処
理内容となる。また、前述の第1−2の実施形態におい
て、動きベクトル探索装置100は、ステップS51〜
S58を利用して、図4のステップS11,S12,S
13の各ステップで動きベクトルV1,V2,V3を求
める処理をしてもよい。また、本実施の形態において、
基準ベクトルを求めるために設定されたスライス内に含
まれる全てのテンプレートの移動ベクトルを求めるもの
として説明したが、これに限定されるものではない。例
えば、スライス内の一部のテンプレートであって、連続
するテンプレートのみを処理するものであっても良い。
この場合にも、動きベクトルの探索において、効率の良
いメモリアクセスが行える。
Although there is a difference between the processing units, steps S51 to S58 are the specific processing contents of step S1 in FIG. Also, in the above-described 1-2 embodiment, the motion vector search device 100 performs steps S51 to S51.
Using S58, steps S11, S12, and S in FIG.
In each of the thirteenth steps, processing for obtaining the motion vectors V1, V2, and V3 may be performed. In the present embodiment,
Although it has been described that the movement vectors of all the templates included in the slice set for obtaining the reference vector are obtained, the present invention is not limited to this. For example, a part of templates in a slice and only continuous templates may be processed.
Also in this case, efficient memory access can be performed in the search for the motion vector.

【0093】もちろん、本発明と第4の従来技術を併用
することも可能である。例えば、過去に探索した画像の
動きベクトルの分布を分析して、画像全体の動きを示す
第1の基準ベクトルを予測し、同時に探索対象の画像に
ついて本発明により画像全体の動きを示す第2の基準ベ
クトルを求める。次に探索対象の画像中のすべてのテン
プレートについて、個々に第1の基準ベクトルを中心と
した狭い領域と、第2の基準ベクトルを中心とした狭い
領域とを詳細に探索し、差分絶対値和が最小となる第1
の基準ベクトルまたは第2の基準ベクトルからの変移ベ
クトルを求める。変移ベクトルを求めるコストが2倍に
増加するが、より正しい動きベクトルを求めることがで
きる。
Of course, the present invention can be used in combination with the fourth prior art. For example, by analyzing the distribution of motion vectors of previously searched images, a first reference vector indicating the motion of the entire image is predicted, and at the same time, a second target indicating the motion of the entire image is searched for the image to be searched according to the present invention. Find the reference vector. Next, for all the templates in the image to be searched, a narrow area centered on the first reference vector and a narrow area centered on the second reference vector are individually searched for in detail. Is the first that minimizes
Or a displacement vector from the second reference vector. Although the cost of obtaining the displacement vector is doubled, a more accurate motion vector can be obtained.

【0094】第1−1〜第1−6の実施形態で説明した
本発明は、動きベクトル探索装置のコストの増加を引き
起こすことなく、探索範囲を拡大するとともに、その拡
大された探索範囲内の動きであれば必ず動きを検出でき
るという効果がある。また、探索精度が最も高いと言わ
れている第1の従来技術である全探索法を用いたとして
も、誤検出を避けることはできず、動きの大きな画像の
画質を良くするために探索範囲を広くして探索を行う
と、誤検出に起因して動きベクトルのばらつきが大きく
なる。そこで、本発明におけるように画像全体の動きを
示す基準ベクトルを検出し、その周囲のみ詳細に探索す
ると、誤検出に起因する動きベクトルのばらつきが抑え
られ、その結果として画質が向上する効果がある。
According to the present invention described in the first to the first to sixth embodiments, the search range is expanded without causing an increase in the cost of the motion vector search device, and the motion vector search device within the expanded search range is provided. There is an effect that the movement can always be detected if it is a movement. Further, even if the full search method, which is the first prior art, which is said to have the highest search accuracy, is not able to avoid erroneous detection. When the search is performed with a wide range, the variation of the motion vector becomes large due to the erroneous detection. Therefore, when the reference vector indicating the motion of the entire image is detected as in the present invention and only the surrounding area is searched in detail, variation in the motion vector due to erroneous detection is suppressed, and as a result, the image quality is improved. .

【0095】次に、前述した2つ目の動きベクトル探索
方法および装置に関する本発明の実施形態を図面を参照
しつつ説明する。
Next, an embodiment of the present invention relating to the above-described second motion vector search method and apparatus will be described with reference to the drawings.

【0096】[第2−1の実施形態] 図18は、2つ目の動きベクトル装置に関する本発明の
実施形態を示すブロック図である。本発明による動きベ
クトル探索装置100は、探索領域をシフトして一定の
面積の領域を探索することが可能な動きベクトル探索部
130を有する。動きベクトル探索部130は、テンプ
レート群全体の動き評価部131によって、一定の数の
テンプレート全体(以下、テンプレート群と呼ぶ)の動
きを予め設定した評価関数により評価し、当該テンプレ
ート群全体の動きが検出できたときは、探索領域シフト
部132によって、その動きに合わせて次に探索するテ
ンプレート群の探索領域をシフトする。以下では、この
シフト量を基準ベクトルと呼ぶ。なお、図18に示す動
きベクトル装置の構成は、以下の全ての実施形態におい
て共通する。
[2-1 Embodiment] FIG. 18 is a block diagram showing an embodiment of the present invention relating to a second motion vector device. The motion vector search device 100 according to the present invention includes a motion vector search unit 130 that can shift a search area and search for an area having a certain area. The motion vector search unit 130 evaluates the motion of a certain number of templates (hereinafter, referred to as a template group) by a preset evaluation function by the motion evaluation unit 131 of the entire template group. If it is detected, the search area shift unit 132 shifts the search area of the template group to be searched next according to the movement. Hereinafter, this shift amount is referred to as a reference vector. The configuration of the motion vector device shown in FIG. 18 is common to all the following embodiments.

【0097】1スライスを当該テンプレート群とする場
合の例を図19に示す。1スライスは10個のテンプレ
ートを含み、10個の動きベクトルを解析してスライス
140の動きを求め、その動きを基準ベクトルとしてス
ライス141の探索領域をシフトする。このような評価
関数の一例としては、例えば、当該テンプレート群の各
動きベクトルを求めるときの基準となった差分絶対値和
が全て予め設定したしきい値以下のときは、最も出現頻
度の高い動きベクトルを当該テンプレート群全体の動き
として出力する関数が考えられる。
FIG. 19 shows an example in which one slice is used as the template group. One slice includes ten templates, and the motion of the slice 140 is obtained by analyzing ten motion vectors, and the search area of the slice 141 is shifted using the motion as a reference vector. As an example of such an evaluation function, for example, when the sum of absolute difference values used as a reference for obtaining each motion vector of the template group is equal to or less than a preset threshold value, A function that outputs a vector as the motion of the entire template group can be considered.

【0098】図19の例では、スライス140中の10
個のテンプレートの動きベクトルには動きベクトル14
2と動きベクトル143の2種類があり、動きベクトル
142の出現回数が7回、動きベクトル143の出現回
数が3回である。この場合には、動きベクトル142を
スライス140の動き144として出力する。なお、こ
の例では動きベクトルが2種類しか存在しない場合を示
したが、通常は個々の動きベクトルの大きさは少しずつ
異なるため、ヒストグラムを取る等の手段によりその分
布を解析することが必要となる。
In the example shown in FIG.
The motion vector of the template is motion vector 14
2 and a motion vector 143. The number of appearances of the motion vector 142 is seven and the number of appearances of the motion vector 143 is three. In this case, the motion vector 142 is output as the motion 144 of the slice 140. In this example, the case where only two types of motion vectors exist is shown. However, since the size of each motion vector is usually slightly different, it is necessary to analyze the distribution by means such as taking a histogram. Become.

【0099】図20は、第2−1の実施形態に係る処理
を示すフローチャートである。最初に所定の基準ベクト
ル、例えば基準ベクトル=(0,0)を設定して(ステ
ップS110)、動きベクトル=(0,0)のブロック
を中心とした探索領域で動き探索を開始し(ステップS
111)、上記評価関数により検出したテンプレート群
全体の動きを次のテンプレート群の基準ベクトルとする
(ステップS113)。以後、画像シーケンス全体にお
ける最後のテンプレート群の探索が終了するまで(ステ
ップS112)、検出したテンプレート群全体の動きを
次のテンプレート群の基準ベクトルとして動きベクトル
の探索を行う。
FIG. 20 is a flowchart showing a process according to the 2-1 embodiment. First, a predetermined reference vector, for example, a reference vector = (0,0) is set (step S110), and a motion search is started in a search area centered on a block with a motion vector = (0,0) (step S110).
111), the motion of the entire template group detected by the evaluation function is set as a reference vector of the next template group (step S113). Thereafter, until the search for the last template group in the entire image sequence is completed (step S112), a motion vector search is performed using the detected motion of the entire template group as a reference vector for the next template group.

【0100】図20に示すフローチャートをさらに詳し
く説明すると以下のようになる。最初に動きベクトル探
索部130は、所定の基準ベクトル、例えば基準ベクト
ル=(0,0)を設定する(ステップS110)。次
に、動きベクトル探索部130は、ステップS111に
おいて、画像シーケンスに含まれる最初の画像内の最上
部(最初)のテンプレート群に対する処理を行う。すな
わち、動きベクトル探索部130は、このテンプレート
群の各テンプレートの動きベクトルを探索する。この処
理を時系列的に説明すると以下のようになる。 1)最初に動きベクトル探索部130は、テンプレート
群内の最初のテンプレート(例えば左端のテンプレー
ト)を処理対象として選択する。 2)次に、探索領域シフト部132は、選択されたテン
プレートに対し、現在設定されている基準ベクトルをシ
フト量とする探索領域の設定を行う。 3)動きベクトル探索部130は、処理対象のテンプレ
ートについて、設定された探索領域内での動きベクトル
(変移ベクトル)を求める。 4)動きベクトル探索部130は、処理対象のテンプレ
ートについて求めた変移ベクトルと現在の基準ベクトル
を足し合わせることにより、そのテンプレートの実際の
動きベクトルを求める。 5)動きベクトル探索部130は、テンプレート群内の
すべてのテンプレートの処理を終えたか判断する。処理
を終えた場合には、ステップS112に移り、そうでな
い場合には、テンプレート群内の次のテンプレート(処
理したテンプレートの右隣のテンプレート)を選択して
上記2)に戻る。以上のようにして、ステップS111
の処理が行われる。
The flowchart shown in FIG. 20 will be described in more detail as follows. First, the motion vector search unit 130 sets a predetermined reference vector, for example, a reference vector = (0, 0) (step S110). Next, in step S111, the motion vector search unit 130 performs a process on the topmost (first) template group in the first image included in the image sequence. That is, the motion vector search unit 130 searches for a motion vector of each template of the template group. This processing will be described in time series as follows. 1) First, the motion vector search unit 130 selects the first template (for example, the leftmost template) in the template group as a processing target. 2) Next, the search area shift unit 132 sets a search area for the selected template using the currently set reference vector as a shift amount. 3) The motion vector search unit 130 obtains a motion vector (displacement vector) in the set search area for the processing target template. 4) The motion vector search unit 130 obtains an actual motion vector of the template by adding the displacement vector obtained for the processing target template and the current reference vector. 5) The motion vector search unit 130 determines whether all templates in the template group have been processed. If the processing has been completed, the process proceeds to step S112. If not, the next template in the template group (the template on the right of the processed template) is selected, and the process returns to 2). As described above, step S111
Is performed.

【0101】ステップS111の処理が終了すると、動
きベクトル探索部130は、画像シーケンスの最後の画
像の最下部のテンプレート群の処理が終了したか判断し
(ステップS112)、最後の画像の最下部のテンプレ
ート群の処理が終了した場合には処理を終了する。そう
でない場合には、テンプレート群全体の動き評価部13
1は、ステップS111で求めたテンプレート群の各動
きベクトルを用いて、図19で説明した評価関数により
検出したテンプレート群全体の動きベクトルを求める。
また、テンプレート群全体の動き評価部131は、テン
プレート群全体の動きベクトルを次のテンプレート群の
基準ベクトルとして設定し(ステップS113)、ステ
ップS111に進む。次に、ステップS111におい
て、動きベクトル探索部130は、画像シーケンスに含
まれる最初の画像内の最上部の次のテンプレート群に対
する処理を行うことになる。なお、テンプレート群の処
理の順番は、MPEG等の国際標準規格に準拠して処理
する際のメモリのアクセス効率を考慮して、処理対象の
画像の左から右、上から下であるものとする。以上のよ
うにして、動きベクトル探索装置は、各テンプレート群
全体の動きベクトル(基準ベクトル)を、次のテンプレ
ート群の各テンプレートの動きベクトル探索の際に利用
する。なお、本実施形態では、前述のようにテンプレー
ト群に含まれる個々のテンプレートについて探索する際
(ステップS111)に、そのテンプレートの実際の動
きベクトル(前述の第1−1の実施形態等における”基
準ベクトル+変移ベクトル”に相当)を求め、これら実
際の動きベクトルから、そのテンプレート群全体の動き
を示す基準ベクトルを算出する。この点は、以下の第2
−2〜第2−5の実施の形態においても同様である。
When the processing of step S111 is completed, the motion vector search unit 130 determines whether the processing of the template group at the bottom of the last image in the image sequence has been completed (step S112), and When the processing of the template group ends, the processing ends. Otherwise, the motion evaluation unit 13 for the entire template group
In step 1, a motion vector of the entire template group detected by the evaluation function described with reference to FIG. 19 is obtained by using the motion vectors of the template group obtained in step S111.
Also, the motion estimation unit 131 for the entire template group sets the motion vector for the entire template group as a reference vector for the next template group (step S113), and proceeds to step S111. Next, in step S111, the motion vector search unit 130 performs a process on the next topmost template group in the first image included in the image sequence. Note that the order of processing of the template group is from left to right and from top to bottom of the image to be processed in consideration of memory access efficiency when processing according to international standards such as MPEG. . As described above, the motion vector search device uses the motion vector (reference vector) of the entire template group when searching for a motion vector of each template of the next template group. In the present embodiment, as described above, when searching for individual templates included in the template group (step S111), the actual motion vector of the template (the “reference” in the above-described 1-1 embodiment and the like) is used. Vector + transition vector), and from these actual motion vectors, a reference vector indicating the motion of the entire template group is calculated. This point is the second
The same applies to the second to second to fifth embodiments.

【0102】[第2−2の実施形態] 上記第2−1の実施形態では、シーンチェンジ等により
画像の動きが突然変わっても、それに対応して基準ベク
トルを変更することができないため、実際の動きとは異
なった領域の探索を続けることとなる。そこで、この第
2−2の実施形態では、当該テンプレート群全体の動き
を検出できた場合には、テンプレート群全体の動きを出
力するだけでなく、動きを検出できない場合には、「動
きが検出できないこと」を出力する評価関数を用いる。
ここで、「動きを検出できた場合」という中には、動き
無し、すなわち動きベクトル=(0,0)を検出した場
合が含まれ、「動きを検出できない場合」とは、探索領
域中にテンプレートと一致するブロックが存在しない場
合を意味する。
[2-2] Second Embodiment In the above-mentioned 2-1 embodiment, even if the motion of an image suddenly changes due to a scene change or the like, the reference vector cannot be changed correspondingly. The search for an area different from that of the movement is continued. Therefore, in the second embodiment, when the motion of the entire template group can be detected, not only the motion of the entire template group is output, but when the motion cannot be detected, the “motion detected Use an evaluation function that outputs "cannot do".
Here, “when motion can be detected” includes no motion, that is, a case where motion vector = (0, 0) is detected, and “when motion cannot be detected” includes This means that there is no block that matches the template.

【0103】このような評価関数の一例として、例えば
当該テンプレート群の各動きベクトルを求めるときの基
準となった差分絶対値和が全て予め設定したしきい値以
下のときは、最も出現頻度の高い動きベクトルを当該テ
ンプレート群全体の動きとして出力し、動きベクトルの
差分絶対値和がしきい値以上となるテンプレートが1個
でも存在するときは、「動きを検出できないこと」を出
力する関数が考えられる。
As an example of such an evaluation function, for example, when all the sums of absolute differences, which are references for obtaining each motion vector of the template group, are equal to or less than a preset threshold value, A function that outputs a motion vector as the motion of the entire template group, and outputs “not detect motion” when there is at least one template whose sum of absolute differences of the motion vectors is equal to or greater than a threshold value is considered. It is.

【0104】この第2−2の実施形態では、テンプレー
ト群の動きを検出できないときは、次のテンプレート群
の探索において探索領域のシフトをリセットし、所定の
基準ベクトル、例えば基準ベクトル=(0,0)を設定
する。
In the 2-2 embodiment, when the movement of the template group cannot be detected, the shift of the search area is reset in the search for the next template group, and a predetermined reference vector, for example, reference vector = (0, 0) is set.

【0105】図21は、第2−2の実施形態に係る処理
を示すフローチャートである。最初に所定の基準ベクト
ル、例えば基準ベクトル=(0,0)を設定して(ステ
ップS120)、動きベクトル=(0,0)のブロック
を中心とした探索領域で動き探索を開始し(ステップS
121)、動きを検出できない間は動きベクトル=
(0,0)のブロックを中心とした探索領域で探索す
る。上記評価関数によりテンプレート群全体の動きを検
出したときは(ステップS123)、その動きを次のテ
ンプレート群の基準ベクトルとする(ステップS12
4)。以後、画像シーケンス全体における最後のテンプ
レート群の探索が終了するまで(ステップS122)、
動きを検出できたときはそれを次のテンプレート群の基
準ベクトルとし、動きを検出できなかったときは、次の
テンプレート群の基準ベクトルを(0,0)にリセット
して、動きベクトルの探索を行う。
FIG. 21 is a flowchart showing a process according to the 2-2 embodiment. First, a predetermined reference vector, for example, a reference vector = (0,0) is set (step S120), and a motion search is started in a search area centered on a block with a motion vector = (0,0) (step S120).
121), while the motion cannot be detected, the motion vector =
A search is performed in a search area centered on the block (0,0). When the motion of the entire template group is detected by the evaluation function (step S123), the motion is set as a reference vector of the next template group (step S12).
4). Thereafter, until the search for the last template group in the entire image sequence is completed (step S122).
When a motion can be detected, the reference vector of the next template group is used as the reference vector. When no motion is detected, the reference vector of the next template group is reset to (0, 0), and the search for the motion vector is performed. Do.

【0106】なお、図21と図20を比較すると分かる
ように、ステップS120〜S122,S124は、ぞ
れぞれステップS110からS113に対応する。そし
て、本実施形態では、図20に対しステップS123が
新たに付け加えられている。なお、ステップS123で
は、テンプレート群全体の動き評価部131が前述した
評価関数に基づき判断を行う。
As can be seen by comparing FIGS. 21 and 20, steps S120 to S122 and S124 correspond to steps S110 to S113, respectively. In the present embodiment, step S123 is newly added to FIG. In step S123, the motion evaluator 131 for the entire template group makes a determination based on the above-described evaluation function.

【0107】[第2−3の実施形態] 本発明の第2−3の実施形態では、テンプレート群の動
きを検出できなかったとき、次のテンプレート群から動
きを検出できるテンプレート群が現れるまで、個々のテ
ンプレート群ごとに基準ベクトルを変更して異なる範囲
の動きベクトルを探索する。従って、複数のテンプレー
ト群について動き探索することにより、広い範囲で動き
ベクトルを検出することができる。
[2-3 Embodiment] In the 2-3 embodiment of the present invention, when the movement of the template group cannot be detected, the template group which can detect the movement from the next template group appears. The reference vector is changed for each template group to search for motion vectors in different ranges. Therefore, by performing a motion search on a plurality of template groups, a motion vector can be detected in a wide range.

【0108】図22は、この第2−3の実施形態に係る
処理を示すフローチャートである。最初に所定の基準ベ
クトル、例えば基準ベクトル=(0,0)を設定して
(ステップS130)、動きベクトル=(0,0)のブ
ロックを中心とした探索領域で動き探索を開始し(ステ
ップS131)、テンプレート群全体の動きを検出した
ときは(ステップS133)、その動きを次のテンプレ
ート群の基準ベクトルとする(ステップS134)。
FIG. 22 is a flowchart showing processing according to the second to third embodiments. First, a predetermined reference vector, for example, a reference vector = (0,0) is set (step S130), and a motion search is started in a search area centered on a block with a motion vector = (0,0) (step S131). ), When the movement of the entire template group is detected (step S133), the movement is set as a reference vector of the next template group (step S134).

【0109】動きを検出できなかったときは、次のテン
プレート群の基準ベクトルを予め設定した規則に従って
(0,0)以外の基準ベクトル=(x1,y1)に変更
して(ステップS136)、同様にテンプレート群のベ
クトルを探索する。この探索によりテンプレート群全体
の動きを検出したときは、その動きを次のテンプレート
群の基準ベクトルとする。再度動きを検出できなかった
ときは、次のテンプレート群の基準ベクトルを予め設定
した規則に従って(0,0)および(x1,y1)以外
の基準ベクトル=(x2,y2)に変更して探索する。
なお、処理したテンプレート群が現在対象中の画像内の
最後のテンプレート群である場合(ステップS13
5)、ステップS130へ戻り、次に処理対象となる画
像内の最初に処理するテンプレート群の基準ベクトルを
(0,0)にリセットする。
If no motion can be detected, the reference vector of the next template group is changed to a reference vector other than (0, 0) = (x1, y1) in accordance with a preset rule (step S136). Search for the template group vector. When the motion of the entire template group is detected by this search, the motion is used as a reference vector of the next template group. If the motion cannot be detected again, the reference vector of the next template group is changed to a reference vector other than (0, 0) and (x1, y1) = (x2, y2) according to a preset rule, and the search is performed. .
If the processed template group is the last template group in the image currently being processed (step S13)
5) Return to step S130, and reset the reference vector of the template group to be processed first in the image to be processed next to (0, 0).

【0110】以上の処理を、画像シーケンス全体におけ
る最後のテンプレート群の探索まで繰り返す(ステップ
S132)。
The above processing is repeated until the search for the last template group in the entire image sequence (step S132).

【0111】なお、図22と図21を比較すると分かる
ように、ステップS130〜S134は、ぞれぞれステ
ップS120からS124に対応する。そして、本実施
形態では、図21に対しステップS135,S136が
新たに付け加えられている。なお、ステップS135に
おいて、動きベクトル探索部130は、現在処理中の画
像内の最後のテンプレート群であるか否か判断を行い、
最後であれば画像シーケンスにおける次の画像の処理を
行うためにステップS130に戻る。一方、最後でなけ
れば、ステップS135において、動きベクトル探索部
130は、前述した規則に従って異なる基準ベクトルを
設定する。
As can be seen by comparing FIG. 22 and FIG. 21, steps S130 to S134 correspond to steps S120 to S124, respectively. In this embodiment, steps S135 and S136 are newly added to FIG. In step S135, the motion vector search unit 130 determines whether or not the current template is the last template group in the image currently being processed.
If it is the last, the process returns to step S130 to process the next image in the image sequence. On the other hand, if it is not the last, in step S135, the motion vector search unit 130 sets a different reference vector according to the rule described above.

【0112】[第2−4の実施形態] 本発明の第2−4の実施形態では、最初に、画像の中央
等、画像全体の動きを検出するのに適当な位置のテンプ
レート群について異なる基準ベクトルを設定して複数回
の探索を実行し、広い範囲で動きベクトルを検出する。
動きベクトルが検出できたならば、それを基準ベクトル
として探索する。テンプレート群の動きを検出できなか
ったときは、所定の基準ベクトル、例えば基準ベクトル
=(0,0)を設定して、探索を行う。
[2-4 Embodiment] In the 2-4 embodiment of the present invention, first, a different reference group is used for a template group at an appropriate position for detecting the movement of the entire image such as the center of the image. A search is performed a plurality of times by setting a vector, and a motion vector is detected in a wide range.
If a motion vector can be detected, it is searched as a reference vector. When the movement of the template group cannot be detected, a predetermined reference vector, for example, a reference vector = (0, 0) is set and a search is performed.

【0113】その後、テンプレート群全体の動きが検出
できている間は、検出した動きを次のテンプレート群の
基準ベクトルとして探索を続ける。テンプレート群全体
の動きが検出できない場合であって次の画像の処理に移
る場合、次の画像の探索を始める前に次の画像の中央
等、画像全体の動きを検出するのに適当な位置のテンプ
レート群について、異なる基準ベクトルを設定して複数
回の探索を実行して、広い範囲で動きベクトルを検出
し、それを次の画像における基準ベクトルの初期値とす
る。
Thereafter, while the motion of the entire template group can be detected, the search is continued using the detected motion as a reference vector of the next template group. If it is not possible to detect the movement of the entire template group and proceed to the processing of the next image, before starting the search for the next image, set an appropriate position for detecting the movement of the entire image, such as the center of the next image. For the template group, a different reference vector is set and a plurality of searches are performed to detect a motion vector in a wide range, and use that as the initial value of the reference vector in the next image.

【0114】図23は、第2−4の実施形態に係る処理
を示すフローチャートである。最初に、画像シーケンス
中で処理対象となっている画像内においてテンプレート
群全体の動きが検出できなかったことを記憶するための
検出不可ビットを0に初期設定する(ステップS14
0)。次に、画像の中央等、画像全体の動きを検出する
のに適当な位置のテンプレート群について、異なる基準
ベクトルを設定して複数回の探索を実行し、広い範囲で
動きベクトルを検出する(ステップS141)。このテ
ンプレート群全体の動きベクトルの検索は、図21のス
テップS120,S121の繰り返しとほぼ同じであ
る。ただし、ステップS120に相当する処理で予め決
められた規則に従い異なる基準ベクトルを順次設定され
る点、および、ステップS121に相当する処理でテン
プレート群の位置を順次変更する点が異なる。
FIG. 23 is a flowchart showing processing according to the second to fourth embodiments. First, a non-detectable bit for storing that the motion of the entire template group could not be detected in the image to be processed in the image sequence is initialized to 0 (step S14).
0). Next, for a template group at a position suitable for detecting the movement of the entire image such as the center of the image, a different reference vector is set and a plurality of searches are performed to detect a motion vector in a wide range (step S141). The search for the motion vector of the entire template group is almost the same as the repetition of steps S120 and S121 in FIG. However, the difference is that different reference vectors are sequentially set in accordance with a predetermined rule in the processing corresponding to step S120, and that the position of the template group is sequentially changed in the processing corresponding to step S121.

【0115】この探索で動きベクトルを検出できたとき
は(ステップS142)、その動きを基準ベクトルとし
て設定し(ステップS143)、探索を開始する(ステ
ップS145)。適当な位置のテンプレート群全体の動
きベクトルを検出できなかった場合、所定の基準ベクト
ル、例えば基準ベクトル=(0,0)を設定して、検出
不可ビットを1に設定した後(ステップS144)、テ
ンプレート群の動きベクトルの探索を開始する(ステッ
プS145)。なお、ステップS142の判断は、図2
1のステップS123と同様である。また、ステップS
140〜S144において、ステップS142はテンプ
レート群全体の動き評価部131により処理が行われ、
ステップS143,S144における探索領域の設定
は、探索領域シフト部132により処理が行われる。ま
た、他の処理は、動きベクトル探索部130により行わ
れる。
When a motion vector is detected by this search (step S142), the motion is set as a reference vector (step S143), and the search is started (step S145). If a motion vector of the entire template group at an appropriate position cannot be detected, a predetermined reference vector, for example, a reference vector = (0, 0) is set, and a non-detectable bit is set to 1 (step S144). A search for a motion vector of the template group is started (step S145). Note that the determination in step S142 is based on FIG.
This is the same as Step S123 of Step 1. Step S
In 140 to S144, the processing in step S142 is performed by the motion estimating unit 131 for the entire template group.
The setting of the search area in steps S143 and S144 is performed by the search area shift unit 132. Further, other processing is performed by the motion vector search unit 130.

【0116】画像シーケンス全体における最後のテンプ
レート群の探索が終了するか、画像内の最後のテンプレ
ート群の探索が終了するまで(ステップS146,S1
47)、テンプレート群全体の動きを検出できている間
は(ステップS148)、検出した動きを次のテンプレ
ート群の基準ベクトルとする(ステップS149)。テ
ンプレート群全体の動きを検出できなかった場合には、
所定の基準ベクトルを設定し、検出不可ビットを1に設
定して(ステップS150)、テンプレート群の動きベ
クトルの探索を行う(ステップS145)。
Until the search for the last template group in the entire image sequence is completed, or until the search for the last template group in the image is completed (steps S146 and S1).
47), while the motion of the entire template group can be detected (step S148), the detected motion is used as a reference vector of the next template group (step S149). If the entire template group cannot be detected,
A predetermined reference vector is set, the undetectable bit is set to 1 (step S150), and a search for a motion vector of the template group is performed (step S145).

【0117】画像内の最後のテンプレート群の探索を行
ったなら(ステップS147)、検出不可ビットが1か
どうかを判定し(ステップS151)、検出不可ビット
が1であれば、ステップS140へ戻って次の画像につ
いて同様に処理を繰り返す。検出不可ビットが0であれ
ば、テンプレート群全体の動きを検出できたかどうかに
より(ステップS152)、検出できていれば、ステッ
プS153によって基準ベクトルとして検出した動きを
設定し、テンプレート群の動きベクトルの探索を続ける
(ステップS145)。テンプレート群全体の動きを検
出できなかった場合には、ステップS140へ戻る。
If the last template group in the image has been searched (step S147), it is determined whether the undetectable bit is 1 (step S151). If the undetectable bit is 1, the flow returns to step S140. The same process is repeated for the next image. If the undetectable bit is 0, it is determined whether or not the motion of the entire template group has been detected (step S152). If the motion has been detected, the motion detected as the reference vector is set in step S153, and the motion vector The search is continued (step S145). If the movement of the entire template group cannot be detected, the process returns to step S140.

【0118】以上の処理を、画像シーケンス全体におけ
る最後のテンプレート群の探索まで繰り返し、最後のテ
ンプレート群を探索したなら処理を終了する(ステップ
S146)。
The above processing is repeated until the search for the last template group in the entire image sequence is completed, and when the last template group has been searched, the processing is terminated (step S146).

【0119】なお、図23と図22を比較すると分かる
ように、ステップS145,S146は、ぞれぞれステ
ップS131,S132に対応する。また、ステップS
148,S149は、ぞれぞれステップS133,S1
34に対応し、ステップS152,S1153も、ぞれ
ぞれステップS133,S134に対応する。そして、
ステップS147,S150は、ぞれぞれステップS1
35,S136に対応する。ただし、ステップS150
は、検出不可ビットに対する処理も含む。そして、本実
施形態では、図22のステップS130に対応する部分
の処理がステップS140〜S144となっている。こ
こで、直前に処理対象となっていた画像内のいずれかの
テンプレート群において、テンプレート群全体の動きを
検出できない場合、画像間におけるテンプレートの動き
の連続性が低く、これから処理対象となる画像に直前に
検出された基準ベクトルを設定するのは不適切である。
そこで、動きベクトル探索部130は、ステップS14
0〜S144においてこれから処理対象となる画像の一
部を用いて初期の基準ベクトルを求め、それを設定す
る。一方、直前に処理対象となっていた画像内のすべて
のテンプレート群において、テンプレート群全体の動き
を検出できた場合、画像間のテンプレートの動きに連続
性があるものと考えられる。そこで、これから処理対象
となる画像の基準ベクトルの初期値として、動きベクト
ル探索部130は、ステップS153において、検出し
た基準ベクトルを設定する。なお、処理対象となる画像
の各テンプレート群に対する処理は、ステップS145
〜S153において行われる。
As can be seen by comparing FIGS. 23 and 22, steps S145 and S146 correspond to steps S131 and S132, respectively. Step S
148 and S149 are steps S133 and S1 respectively.
Steps S152 and S1153 also correspond to steps S133 and S134, respectively. And
Steps S147 and S150 are respectively performed in step S1.
35 and S136. However, step S150
Also includes processing for undetectable bits. Then, in the present embodiment, the processing of the portion corresponding to step S130 in FIG. 22 is steps S140 to S144. Here, if the motion of the entire template group cannot be detected in any of the template groups in the image to be processed immediately before, the continuity of the template motion between the images is low, and the image to be processed in the future It is inappropriate to set the reference vector detected immediately before.
Therefore, the motion vector search unit 130 determines in step S14
In steps 0 to S144, an initial reference vector is obtained using a part of the image to be processed, and is set. On the other hand, when the movement of the entire template group can be detected in all the template groups in the image to be processed immediately before, it is considered that the movement of the template between the images has continuity. Therefore, in step S153, the motion vector search unit 130 sets the detected reference vector as the initial value of the reference vector of the image to be processed. The process for each template group of the image to be processed is performed in step S145.
This is performed in steps S153 to S153.

【0120】なお、ステップS141において、適当な
位置のテンプレート群として、処理対象となる画像の中
央付近を一例として示した。画像全体の動きベクトルを
求める際に画像の中央付近が最も代表的な動きをするも
のと考えられることから好ましいが、これに限定される
ものではない。例えば、ステップS141における適当
な位置のテンプレート群として、処理対象となる画像の
最上位のスライスに含まれる左端のテンプレート群(そ
の画像内の最初のテンプレート群)としてもよい。この
場合、ステップS141において、テンプレート群の各
テンプレートの動きベクトルも求めておくことにより、
動きベクトル探索部130は、ステップS145におい
て、処理対象とする最初のテンプレート群を、ステップ
S141で処理したテンプレート群の次のテンプレート
群とすることができる。この場合、処理速度の短縮とと
もに、メモリアクセスをより効率的に行うことができる
ようになる。
In step S141, the vicinity of the center of the image to be processed is shown as an example of a template group at an appropriate position. When the motion vector of the entire image is obtained, the vicinity of the center of the image is considered to be the most representative motion, but is not limited thereto. For example, the template group at an appropriate position in step S141 may be the leftmost template group (the first template group in the image) included in the uppermost slice of the image to be processed. In this case, by calculating the motion vector of each template in the template group in step S141,
In step S145, the motion vector search unit 130 can set the first template group to be processed as the template group next to the template group processed in step S141. In this case, the processing speed can be shortened, and the memory access can be performed more efficiently.

【0121】また、処理の簡略化を図りつつ、直前の画
像の処理結果を反映させるために、ステップS141〜
S143を省略し、ステップS144を所定の基準ベク
トルを設定するのみとしてもよい。
In order to reflect the processing result of the immediately preceding image while simplifying the processing, steps S141 to S141 are executed.
S143 may be omitted, and step S144 may be performed only by setting a predetermined reference vector.

【0122】[第2−5の実施形態] 本発明の第2−5の実施形態は、上記第2−1から第2
−4までの各実施形態において、同一のスライス内の全
テンプレートを同一のテンプレート群に含ませるように
したものである。すなわち、この実施形態におけるテン
プレート群は1個以上の複数のスライスで構成される。
[2-5th Embodiment] The 2nd to 5th embodiments of the present invention correspond to the above-mentioned 2-1 to 2nd embodiments.
In the embodiments up to -4, all templates in the same slice are included in the same template group. That is, the template group in this embodiment is configured by one or more slices.

【0123】もし、本実施形態と異なり、同一のスライ
スに属するテンプレートが異なるテンプレート群に含ま
れることを許すとテンプレート群の切り替わりにおいて
第5の従来技術を用いることができず、探索領域中の画
素の余分な転送が必要となる。その一例について図24
を用いて説明する。
If the template belonging to the same slice is allowed to be included in a different template group, unlike the present embodiment, the fifth conventional technique cannot be used for switching the template group, and the pixel in the search area is not changed. Extra transfer is required. FIG. 24 shows an example thereof.
This will be described with reference to FIG.

【0124】図24の例では、1個のスライス内の左半
分のテンプレートと右半分のテンプレートが異なるテン
プレート群に含まれ、左半分のテンプレートが属するテ
ンプレート群150と右半分のテンプレートが属するテ
ンプレート群151で基準ベクトルが異なる。左半分の
テンプレートが属するテンプレート群150と右半分の
テンプレートが属するテンプレート群151の基準ベク
トルを、それぞれベクトル153とベクトル156とす
ると、テンプレート群150における最後のテンプレー
ト152の探索領域とテンプレート群151における最
初のテンプレート155の探索領域は、それぞれ探索領
域154と探索領域157となる。両探索領域がこのよ
うにずれていると、第5の従来技術を用いることができ
ず、探索領域157中の画素をほとんどすべて画像メモ
リ24から図16で説明した探索領域用メモリ23に転
送しなければならないため、余分な画素転送が必要とな
る。
In the example of FIG. 24, the left half template and the right half template in one slice are included in different template groups, and the template group 150 to which the left half template belongs and the template group to which the right half template belongs 151, the reference vector is different. Assuming that the reference vectors of the template group 150 to which the left half template belongs and the template group 151 to which the right half template belongs are vector 153 and vector 156, respectively, the search area of the last template 152 in the template group 150 and the first in the template group 151 Are the search area 154 and the search area 157, respectively. If the two search areas are shifted as described above, the fifth conventional technique cannot be used, and almost all the pixels in the search area 157 are transferred from the image memory 24 to the search area memory 23 described with reference to FIG. The extra pixel transfer is required.

【0125】第2−5の実施形態では、同一のスライス
内の全テンプレートを同一のテンプレート群に含ませる
ようにしているので、以上のような余分な画素転送を省
くことが可能になる。
In the second to fifth embodiments, all the templates in the same slice are included in the same template group, so that the above-described extra pixel transfer can be omitted.

【0126】ここで、MPEG1やMPEG2等の国際
標準規格となっている画像符号化方式では、画面の左か
ら右、上から下の順番に符号化を行う。これらの符号化
方式に準拠した装置を製造するという観点から、図24
に示すようにスライスの方向は、横方向であることが好
ましい。
Here, in the image coding system which is an international standard such as MPEG1 or MPEG2, coding is performed in order from left to right and from top to bottom of the screen. From the viewpoint of manufacturing a device conforming to these encoding systems, FIG.
It is preferable that the slice direction is the horizontal direction as shown in FIG.

【0127】[第2−6の実施形態] 第2−6の実施形態では、テンプレート群全体の動きを
検出できたときは、基準ベクトルとして検出した動きを
設定し、テンプレート群全体の動きを検出できなかった
ときは、次のテンプレート群から動きを検出できるテン
プレート群が現れるまで、個々のテンプレート群ごとに
基準ベクトルを変更して異なる範囲の動きベクトルを探
索する。ただし、次のテンプレート群の動き探索を行う
前に過去に符号化した画像の動きベクトルの分布を分析
し、次のテンプレート群の動きを予測する。そして、予
測した動きが正しい可能性が高いか否か判定し、高いと
きは基準ベクトルを予測した動きに変更する。なお、予
測が正しいか否かの判定法としては、例えば、現在動き
検出中の画面において検出済みの全てのテンプレート群
の動きと、直前に動きを検出した画面における対応する
位置のテンプレート群の動きが一致している場合に正し
いと判定し、1個でも動きが異なるテンプレート群が存
在するときは予測は誤りであるとする方法が考えられ
る。
[2nd Embodiment] In the 2-6 embodiment, when the motion of the entire template group can be detected, the detected motion is set as a reference vector, and the motion of the entire template group is detected. If not, the reference vector is changed for each template group to search for a different range of motion vectors until a template group capable of detecting a motion appears from the next template group. However, before performing the motion search for the next template group, the motion vector distribution of the previously encoded image is analyzed to predict the motion of the next template group. Then, it is determined whether or not the predicted motion is likely to be correct. If the predicted motion is high, the reference vector is changed to the predicted motion. As a method for determining whether or not the prediction is correct, for example, the motions of all the detected template groups on the screen on which motion is currently detected and the motions of the corresponding template groups on the screen on which the motion was detected immediately before are detected. May be determined to be correct when 一致 coincides with each other, and the prediction may be erroneous when there is at least one template group having a different motion.

【0128】図25は本実施形態にかかる処理を示すフ
ローチャートである。まず、動きベクトル検出部130
は、所定の基準ベクトル、例えば、基準ベクトル=
(0,0)を設定する(ステップS161)。次に、動
きベクトル検出部130は、画像シーケンスにおいて最
初に動き探索を行う画像に含まれるテンプレート群を除
き、テンプレート群の動き探索を行う前に過去に符号化
した画像の動きベクトルの分布を分析し、テンプレート
群の動きを予測する(ステップS162)。予測方法は
前述の通りである。そして、動きベクトル検出部130
は、前述の方法により予測した動きが正しい可能性が高
いか否か判定し(ステップS163)、可能性が高いと
きは基準ベクトルを予想した動きに変更する(ステップ
S164)。ここで、最初に動き探索を行う画像におい
ては過去に探索した動きベクトルが存在しない。このた
め、動きベクトル検出部130は、過去の動きベクトル
分布から予測した動きは誤りと判定し、ステップS16
4をスキップする。次に、動きベクトル検出部130
は、テンプレート群に含まれる個々のテンプレートにつ
いてこの基準ベクトルを中心とする狭い探索領域の設定
・探索を行い、探索領域内での変移ベクトルを求める
(ステップS165)。そして、動きベクトル検出部1
30は、基準ベクトルと求めた変移ベクトルの和を計算
することで、テンプレート群内の個々のテンプレートの
動きベクトルを求める(ステップS166)。次に、動
きベクトル検出部130は、処理したテンプレート群が
画像シーケンスの最後の画像内の最後のテンプレート群
であるか判断し(ステップS167)、最後であれば処
理を終了する。最後でない場合、テンプレート群全体の
動き評価部131は、ステップS166で求めた個々の
テンプレートの動きベクトルからこれまでに説明した方
法で、テンプレート群全体の動きの検出を行う(ステッ
プS168)。このとき、S162における動きベクト
ルの分析のために、テンプレート群全体の動き評価部1
31は、検出した動きベクトルをテンプレート群の位置
と関連付けて図示しないメモリに記憶しておく。
FIG. 25 is a flowchart showing the processing according to this embodiment. First, the motion vector detection unit 130
Is a predetermined reference vector, for example, reference vector =
(0, 0) is set (step S161). Next, the motion vector detection unit 130 analyzes the distribution of the motion vectors of the previously coded images before performing the motion search of the template group, except for the templates included in the image to be initially searched for motion in the image sequence. Then, the motion of the template group is predicted (step S162). The prediction method is as described above. Then, the motion vector detecting unit 130
Determines whether the motion predicted by the above-described method is likely to be correct (step S163), and if the probability is high, changes the reference vector to the predicted motion (step S164). Here, a motion vector searched in the past does not exist in an image on which a motion search is performed first. For this reason, the motion vector detection unit 130 determines that the motion predicted from the past motion vector distribution is an error,
Skip 4 Next, the motion vector detection unit 130
Sets and searches a narrow search area centered on the reference vector for each template included in the template group, and obtains a displacement vector within the search area (step S165). Then, the motion vector detecting unit 1
30 calculates the sum of the reference vector and the obtained displacement vector to obtain the motion vector of each template in the template group (step S166). Next, the motion vector detection unit 130 determines whether the processed template group is the last template group in the last image of the image sequence (step S167), and ends the processing if it is the last. If it is not the last, the entire template group motion estimating unit 131 detects the motion of the entire template group from the motion vector of each template obtained in step S166 by the method described above (step S168). At this time, in order to analyze the motion vector in S162, the motion evaluation unit 1 of the entire template group
Numeral 31 stores the detected motion vector in a memory (not shown) in association with the position of the template group.

【0129】ステップS168においてテンプレート群
全体の動きを検出できた場合、動きベクトル検出部13
0は、その動きを次のテンプレート群の基準ベクトルと
して設定し(ステップS170)、ステップS162に
進む。動きを検出できなかった場合、動きベクトル検出
部130は、次のテンプレート群の基準ベクトルを予め
設定した規則に従って、これまでに設定した基準ベクト
ル以外の基準ベクトル(x1,y1)を設定し(ステッ
プS171)、ステップS162に進む。なお、このス
テップにおいて、再度動きを検出できなかったとき、次
のテンプレート群の基準ベクトルを予め設定した規則に
従って、これまでに設定した基準ベクトル(0,0),
(x1,y1)以外の基準ベクトル(x2,y2)を設
定することになる。なお、現在処理中の画面内の最後の
テンプレート群の処理を終了した場合(ステップS16
9)、動きベクトル検出部130は、ステップS161
に進み、画像シーケンス内の次の画像の処理に移る。
If the motion of the entire template group has been detected in step S168, the motion vector
A value of 0 sets the motion as a reference vector of the next template group (step S170), and proceeds to step S162. If the motion cannot be detected, the motion vector detection unit 130 sets a reference vector (x1, y1) other than the reference vectors set up to now according to a preset rule for a reference vector of the next template group (step S1). S171), and proceeds to step S162. In this step, when the motion cannot be detected again, the reference vectors of the next template group are set in accordance with the preset rules in accordance with the previously set reference vectors (0, 0),
A reference vector (x2, y2) other than (x1, y1) is set. When the processing of the last template group in the currently processed screen is completed (step S16)
9), the motion vector detection unit 130 determines in step S161
To the processing of the next image in the image sequence.

【0130】ここで、図25と図22を比較すると、ス
テップS161はステップS130に対応する。ステッ
プS165,S166は、ステップS131に含まれる
処理である。ステップS167〜S171はそれぞれス
テップS132〜S136に対応する。図25と図22
の違いは、ステップS162〜S164にあり、これら
のステップにより、動きベクトル検出部130は、過去
に符号化した画像の動きベクトルの分布を反映した基準
ベクトルを設定できるようになる。
Here, comparing FIG. 25 with FIG. 22, step S161 corresponds to step S130. Steps S165 and S166 are processes included in step S131. Steps S167 to S171 correspond to steps S132 to S136, respectively. FIG. 25 and FIG.
The difference lies in steps S162 to S164. With these steps, the motion vector detection unit 130 can set a reference vector that reflects the distribution of motion vectors of previously encoded images.

【0131】具体的には以下の効果を得ることができ
る。例えば画面の下半分において列車が移動しており、
上半分が背景である場合、背景と列車との動きは異な
る。よって、直前のテンプレート群の動きを次のテンプ
レート群の基準ベクトルとするのみでは、背景と列車の
境界のテンプレート群で、そのテンプレート群に含まれ
るテンプレートの動きベクトルの検出がうまくできな
い。本実施形態は、過去に符号化した画像の動きベクト
ルの分布から予測した基準ベクトルも用いて基準ベクト
ルの設定を行う(ステップS162〜S164)ので、
前述の背景と列車の境界におけるテンプレート群に対し
ても適切な基準ベクトルが設定できる。その結果、各テ
ンプレートの動きベクトルを精度良く検出できるように
なる。
Specifically, the following effects can be obtained. For example, the train is moving in the lower half of the screen,
When the upper half is the background, the movement between the background and the train is different. Therefore, simply using the motion of the immediately preceding template group as the reference vector of the next template group cannot detect the motion vector of the template included in the template group at the boundary between the background and the train well. In the present embodiment, the reference vector is set using the reference vector predicted from the motion vector distribution of the image encoded in the past (steps S162 to S164).
An appropriate reference vector can be set for the template group at the boundary between the background and the train. As a result, the motion vector of each template can be accurately detected.

【0132】本実施形態においても、第2−5の実施形
態で説明したように、同一のスライス内の全テンプレー
トを同一のテンプレート群に含ませるようにすること
で、効率的なメモリアクセスのもと処理を行うことがで
きるようになる。
Also in this embodiment, as described in the second to fifth embodiments, by including all templates in the same slice in the same template group, efficient memory access can be achieved. And processing can be performed.

【0133】[第2−7の実施形態] 本実施形態では、これまでに説明した動きベクトル探索
装置において、テレスコピック探索も行うことのできる
動きベクトル検出装置について説明する。始めに、テレ
スコピック探索について説明する。
[Embodiment 2-7] In the present embodiment, a motion vector detecting device which can also perform a telescopic search in the motion vector searching device described above will be described. First, the telescopic search will be described.

【0134】画像符号化においては時間的に複数枚前の
画像の動きベクトルを求める場合がある。このような場
合に隣接した画像に対する動きベクトルを求め、それを
初期値として次の隣接画像に対する動きベクトルを求め
ることを繰り返し、時間的に離れた画像間での動きベク
トルを求める方法がある。この方法がテレスコピック探
索法と呼ばれる。隣接画像の動きは少ないため、この方
法を用いることで、離れた画像間を直接探索する場合に
比べて狭い範囲の探索で動きを検出できる。このテレス
コピック探索法について図26の摸式図を参照して説明
する。図26中の画像204,205,206は時間的
に連続した3枚の画像である。そして、画像206が現
在の画像であり、画像205と画像204はそれぞれ1
画面前、2画面前の画像である。矩形ブロック201
は、画像204と画像205間において動きベクトルm
v2で移動しており、同様に、画像205と画像206
間において動きベクトルmv1で移動している。このと
き、画像206から画像204への矩形ブロック201
の動きベクトルは(mv1+mv2)となる。
In image coding, there is a case where a motion vector of an image several frames earlier in time is obtained. In such a case, there is a method of repeatedly obtaining a motion vector for an adjacent image, using that as an initial value to obtain a motion vector for the next adjacent image, and obtaining a motion vector between temporally separated images. This method is called a telescopic search method. Since the movement of the adjacent image is small, by using this method, the movement can be detected by searching in a narrower range than in the case of directly searching between distant images. This telescopic search method will be described with reference to the schematic diagram of FIG. Images 204, 205, and 206 in FIG. 26 are three images that are temporally continuous. The image 206 is the current image, and the image 205 and the image 204 are each 1
The image before the screen and the image two screens before. Rectangular block 201
Is the motion vector m between the image 204 and the image 205
v2, and similarly, the image 205 and the image 206
Are moving with a motion vector mv1 between the two. At this time, the rectangular block 201 from the image 206 to the image 204
Is (mv1 + mv2).

【0135】テレスコピック探索法では、画像206か
ら画像205への動きベクトルを求めるために、画像2
06中の矩形ブロック201をテンプレートとして最初
に画像205中の領域202を探索して動きベクトルm
v1を検出する。このとき、領域202の中心の動きベ
クトルは(0,0)である。次に、画像204中の領域
202を探索して動きベクトルmv2を検出する。矩形
ブロック201の画像206から画像205への動きベ
クトルを考慮すると画像204中の領域202の中心の
動きベクトルはmv1である。ここで、ベクトルmv1
の水平成分と垂直成分をそれぞれmv1xとmv1yとす
る。そして、これら成分の取り得る範囲は、それぞれ−
a≦mv1x≦a,−b≦mv1y≦bとする。同様にベ
クトルmv2の水平成分と垂直成分をそれぞれmv2x
とmv2yとし、これら成分の取り得る範囲を、それぞ
れ−a≦mv2x≦a,−b≦mv2y≦bとする。この
場合、動きベクトル(mv1+mv2)の取り得る範囲
は、それぞれ、−2a≦mv1x+mv2x≦2a,−2
b≦mv1y+mv2y≦2bとなる。つまり、テレスコ
ピック探索においては、画像間の距離が離れるほど、動
きベクトルが取り得る範囲、言い換えると探索により参
照される可能性のある領域が広がる。これを図26で見
ると、画像206から1枚離れた画像205において探
索により参照される可能性のある領域は領域202であ
り、画像206から2枚離れた画像204において探索
により参照される可能性のある領域は領域203であ
る。上述したテレスコピック探索法と前述の第2の従来
技術を組み合わせた方法は、例えば、「K.Suguri,T.Min
ami,H.Matuda,R.Kusaba,T.Kondo,R.Kasai,T.watanabe,
H.Sato,N.Shibata,Y.Tashiro,T.Izuoka,A.Shimiz,H.Kot
era,“A real-time motion estimation and compensati
on LSI with wide search range for MPEG2 video enco
ding", IEEE J.Solid-State Circuits,vol.31,no.11,p
p,1733-1741, Nov.1996」に記載されている。
In the telescopic search method, to obtain a motion vector from the image 206 to the image 205, the image 2
First, a region 202 in the image 205 is searched using the rectangular block 201 in
v1 is detected. At this time, the motion vector at the center of the area 202 is (0, 0). Next, the motion vector mv2 is detected by searching the area 202 in the image 204. Considering the motion vector from the image 206 to the image 205 of the rectangular block 201, the motion vector at the center of the area 202 in the image 204 is mv1. Here, the vector mv1
Are defined as mv1 x and mv1 y , respectively. The possible ranges of these components are-
a ≦ mv1 x ≦ a, and -b ≦ mv1 y ≦ b. Similarly, the horizontal component and the vertical component of the vector mv2 are respectively represented by mv2 x
If the mv2 y, the possible range of these components, respectively -a ≦ mv2 x ≦ a, and -b ≦ mv2 y ≦ b. In this case, the motion range of possible vector (mv1 + mv2), respectively, -2a ≦ mv1 x + mv2 x ≦ 2a, -2
b ≦ mv1 y + mv2 y ≦ 2b. That is, in the telescopic search, as the distance between the images increases, the range that the motion vector can take, in other words, the area that may be referred to by the search, increases. Looking at this in FIG. 26, the area that may be referred to by the search in the image 205 one image away from the image 206 is the area 202, and may be referred to by the search in the image 204 two images away from the image 206 The region having the property is the region 203. A method combining the above-described telescopic search method and the above-described second conventional technique is described in, for example, “K. Suguri, T. Min.
ami, H.Matuda, R.Kusaba, T.Kondo, R.Kasai, T.watanabe,
H.Sato, N.Shibata, Y.Tashiro, T.Izuoka, A.Shimiz, H.Kot
era, “A real-time motion estimation and compensati
on LSI with wide search range for MPEG2 video enco
ding ", IEEE J. Solid-State Circuits, vol. 31, no. 11, p
p. 1733-1741, Nov. 1996 ".

【0136】本実施形態は、上記第2−1から第2−6
までの各実施形態において、探索により参照される可能
性のある領域を図18に示した動きベクトル探索装置中
の探索領域用メモリ(図示せず)に読み込むようにした
ものである。例えば、前述したテレスコピック探索の場
合には、図26における画面205中の領域202と画
面204中の領域203を探索領域用メモリに読み込
む。上記第2−1から第2−6までの各実施形態におい
て、実際に探索する領域だけを動きベクトル探索装置中
の探索領域用メモリ(図示せず)に読み込むとすると、
各実施形態で説明した動きベクトル探索装置で、テレス
コピック探索を適用することができなかった。そこで、
各実施形態で説明した動きベクトル探索装置は、探索に
より参照される可能性のある領域を装置内の探索領域用
メモリに読み込むようにすることで、テレスコピック方
式のように動きベクトルが存在する可能性がある範囲は
広いが、実際の探索を動きベクトルが存在する可能性の
高い領域に限定して行う探索方式への対応も可能とな
る。
In the present embodiment, the above-mentioned 2-1 to 2-6
In each of the embodiments described above, an area that may be referred to by the search is read into a search area memory (not shown) in the motion vector search apparatus shown in FIG. For example, in the case of the above-described telescopic search, the area 202 on the screen 205 and the area 203 on the screen 204 in FIG. 26 are read into the search area memory. In each of the above embodiments 2-1 to 2-6, assuming that only an area to be actually searched is read into a search area memory (not shown) in the motion vector search apparatus.
In the motion vector search device described in each embodiment, the telescopic search could not be applied. Therefore,
The motion vector search device described in each of the embodiments reads an area that may be referred to by search into a search area memory in the device, so that there is a possibility that a motion vector exists like a telescopic method. Although a certain range is wide, it is possible to cope with a search method in which an actual search is limited to an area where a motion vector is likely to exist.

【0137】以上説明したように、 発明に関する動
きベクトル探索方法および装置は、動きベクトル探索装
置のコストの増加を引き起こすことなく、探索範囲を拡
大するとともに、その拡大された探索範囲内の動きであ
れば必ず動きを検出でき、また、画像中の一部分の探索
結果を反映して探索領域のシフト量を修正することがで
きるという効果がある。さらに、探索精度が最も高いと
言われている第1の従来技術である全探索法を用いたと
しても、誤検出を避けることはできず、動きの大きな画
像の画質を良くするために探索範囲を広くして探索を行
うと、誤検出に起因して動きベクトルのばらつきが大き
くなる。そこで、本発明におけるように一定の数のテン
プレート全体の動きを評価し、その一定の数のテンプレ
ート全体の動きに合わせて次に探索するテンプレート群
の探索領域をシフトして詳細に探索すると、誤検出に起
因する動きベクトルのばらつきが抑えられ、その結果と
して画質が向上する効果がある。
As described above, the motion vector search method and apparatus according to the present invention expand the search range without causing an increase in the cost of the motion vector search apparatus, and use the motion within the expanded search range. This has the effect that the movement can always be detected, and the shift amount of the search area can be corrected by reflecting the search result of a part of the image. Further, even if the full search method, which is the first prior art, which is said to have the highest search accuracy, is not able to avoid erroneous detection, and to improve the image quality of images with large motion, When the search is performed with a wide range, the variation of the motion vector increases due to the erroneous detection. Therefore, as in the present invention, when the motion of a certain number of templates as a whole is evaluated and the search area of the next group of templates to be searched is shifted in detail in accordance with the motion of the certain number of templates, an error occurs. Variations in motion vectors due to detection are suppressed, and as a result, there is an effect that image quality is improved.

【0138】なお、上記各実施形態(第1−1〜第1−
6の実施形態、および、第2−1〜2−7の実施形態)
においては、各動きベクトルの探索手順をプログラムと
して記録媒体に記憶しておき、コンピュータが、このプ
ログラムを読み取って実行することによって実現可能で
ある。なお、ここでいう「コンピュータシステム」と
は、OSや周辺機器等のハードウェアを含むものとす
る。また、「コンピュータ読み取り可能な記録媒体」と
は、フロッピーディスク、光磁気ディスク、ROM、C
D−ROM等の可搬媒体、コンピュータシステムに内蔵
されるハードディスク等の記憶装置のことをいう。さら
に「コンピュータ読み取り可能な記録媒体」とは、イン
ターネット等のネットワークや電話回線等の通信回線を
介してプログラムを送信する場合の通信線のように、短
時間の間、動的にプログラムを保持するもの(伝送媒体
ないしは伝送波)、その場合のサーバやクライアントと
なるコンピュータシステム内部の揮発性メモリのよう
に、一定時間プログラムを保持しているものも含むもの
とする。また上記プログラムは、前述した機能の一部を
実現するためのものであっても良い。さらに、前述した
機能をコンピュータシステムにすでに記録されているプ
ログラムとの組み合わせで実現できるもの、いわゆる差
分ファイル(差分プログラム)であっても良い。もちろ
ん、以上説明してきた処理を実行する半導体装置を製造
して、ハードウェアのみで処理を行うことによっても実
現可能である。
The above embodiments (1-1 to 1-
Embodiment 6 and Embodiments 2-1 to 2-7)
In, the search procedure for each motion vector is stored as a program in a recording medium, and the computer can read and execute the program to realize the procedure. Here, the “computer system” includes an OS and hardware such as peripheral devices. The “computer-readable recording medium” includes a floppy disk, a magneto-optical disk, a ROM,
It refers to a portable medium such as a D-ROM or a storage device such as a hard disk built in a computer system. Further, a "computer-readable recording medium" refers to a communication line for transmitting a program via a network such as the Internet or a communication line such as a telephone line, and dynamically holds the program for a short time. In this case, a medium that stores a program for a certain period of time, such as a volatile memory in a computer system serving as a server or a client in that case, is also included. Further, the program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient. Of course, the present invention can also be realized by manufacturing a semiconductor device that performs the above-described processing and performing the processing only with hardware.

【0139】以上、この発明の実施形態を図面を参照し
て詳述してきたが、具体的な構成はこの実施形態に限ら
れるものではなく、この発明の要旨を逸脱しない範囲の
設計等も含まれる。
The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes a design and the like without departing from the gist of the present invention. It is.

【0140】[0140]

【発明の効果】 以上説明したように、第2−1〜第2
−7の実施形態で説明した本発明は、動きベクトル探索
装置のコストの増加を引き起こすことなく、探索範囲を
拡大するとともに、その拡大された探索範囲内の動きで
あれば必ず動きを検出でき、また、画像中の一部分の探
索結果を反映して探索領域のシフト量を修正することが
できるという効果がある。
As described above, the 2-1st to the 2nd
The present invention described in the -7 embodiment can expand the search range without causing an increase in the cost of the motion vector search device, and can always detect the motion if the motion is within the expanded search range, Further, there is an effect that the shift amount of the search area can be corrected by reflecting the search result of a part of the image.

【0141】さらに、探索精度が最も高いと言われてい
る第1の従来技術である全探索法を用いたとしても、誤
検出を避けることはできず、動きの大きな画像の画質を
良くするために探索範囲を広くして探索を行うと、誤検
出に起因して動きベクトルのばらつきが大きくなる。そ
こで、本発明におけるように一定の数のテンプレート全
体の動きを評価し、その一定の数のテンプレート全体の
動きに合わせて次に探索するテンプレート群の探索領域
をシフトして詳細に探索すると、誤検出に起因する動き
ベクトルのばらつきが抑えられ、その結果として画質が
向上する効果がある。
Further, even if the first prior art full search method, which is said to be the highest in search accuracy, is used, erroneous detection cannot be avoided and the quality of images with large motion is improved. If the search is performed with a wider search range, the variation of the motion vector increases due to erroneous detection. Therefore, as in the present invention, when the motion of a certain number of templates as a whole is evaluated and the search area of the next group of templates to be searched is shifted in detail in accordance with the motion of the certain number of templates, an error occurs. Variations in motion vectors due to detection are suppressed, and as a result, there is an effect that image quality is improved.

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

【図1】 第1の発明における第1−1,第1−2,第
1−3,第1−4の実施形態に係る動きベクトル探索装
置の構成例を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration example of a motion vector search device according to embodiments 1-1, 1-2, 1-3, and 1-4 of the first invention;

【図2】 第1−1の実施形態における処理を示すフロ
ーチャートである。
FIG. 2 is a flowchart illustrating a process according to the first embodiment.

【図3】 第1−2の実施形態を説明するための図であ
る。
FIG. 3 is a diagram for explaining a 1-2 embodiment.

【図4】 第1−2の実施形態における処理を示すフロ
ーチャートである。
FIG. 4 is a flowchart illustrating a process according to the first embodiment.

【図5】 第1−3の実施形態における処理を示すフロ
ーチャートである。
FIG. 5 is a flowchart illustrating a process according to the first to third embodiments.

【図6】 第1−4の実施形態における処理を示すフロ
ーチャートである。
FIG. 6 is a flowchart illustrating processing according to the first to fourth embodiments.

【図7】 第1の発明における第1−5と第1−6の実
施形態に係る動きベクトル探索装置の構成例を示すブロ
ック図である。
FIG. 7 is a block diagram illustrating a configuration example of a motion vector search device according to the first to fifth and first to sixth embodiments of the first invention.

【図8】 第1−5の実施形態における処理を示すフロ
ーチャートである。
FIG. 8 is a flowchart illustrating processing according to the first to fifth embodiments.

【図9】 第1−5の実施形態の模式的説明図である。FIG. 9 is a schematic explanatory diagram of the first to fifth embodiments.

【図10】 第1−6の実施形態における処理を示すフ
ローチャートである。
FIG. 10 is a flowchart illustrating a process according to the first to sixth embodiments.

【図11】 従来技術の模式的説明図である。FIG. 11 is a schematic explanatory diagram of a conventional technique.

【図12】 従来技術の模式的説明図である。FIG. 12 is a schematic explanatory view of a conventional technique.

【図13】 従来技術の模式的説明図である。FIG. 13 is a schematic explanatory diagram of a conventional technique.

【図14】 従来技術の模式的説明図である。FIG. 14 is a schematic explanatory diagram of a conventional technique.

【図15】 従来技術の模式的説明図である。FIG. 15 is a schematic explanatory view of a conventional technique.

【図16】 従来技術の典型的な動きベクトル探索装置
の構成を示す図である。
FIG. 16 is a diagram showing a configuration of a typical motion vector search device of the related art.

【図17】 従来技術の模式的説明図である。FIG. 17 is a schematic explanatory view of a conventional technique.

【図18】 発明における動きベクトル探索装置の構
成図である。
FIG. 18 is a configuration diagram of a motion vector search device according to the present invention.

【図19】 発明の模式的説明図である。FIG. 19 is a schematic explanatory view of the present invention.

【図20】 第2−1の実施形態における処理を示すフ
ローチャートである。
FIG. 20 is a flowchart illustrating a process according to the embodiment 2-1.

【図21】 第2−2の実施形態における処理を示すフ
ローチャートである。
FIG. 21 is a flowchart illustrating a process according to the second embodiment.

【図22】 第2−3の実施形態における処理を示すフ
ローチャートである。
FIG. 22 is a flowchart illustrating processing according to the second to third embodiments.

【図23】 第2−4の実施形態における処理を示すフ
ローチャートである。
FIG. 23 is a flowchart illustrating processing according to the second to fourth embodiments.

【図24】 第2−5の実施形態の模式的説明図であ
る。
FIG. 24 is a schematic explanatory diagram of the second to fifth embodiments.

【図25】 第2−6の実施形態の模式的説明図であ
る。
FIG. 25 is a schematic explanatory diagram of the second to sixth embodiments.

【図26】 テレスコピック探索を説明するための図で
ある。
FIG. 26 is a diagram for explaining a telescopic search.

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

24 画像メモリ 100 動きベクトル探索装置 110 広い探索領域用動きベクトル探索部 120 狭い探索領域用動きベクトル探索部 200 動きベクトル探索装置 210 狭い探索領域用動きベクトル探索部 131 テンプレート群全体の動き評価部 132 探索領域シフト部 24 Image memory 100 Motion vector search device 110 Motion vector search unit for wide search area 120 Motion vector search unit for narrow search area 200 Motion vector search device 210 Motion vector search unit for narrow search area 131 Motion estimation unit for entire template group 132 Search Area shift unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 吉留 健 東京都新宿区西新宿三丁目19番2号 日 本電信電話株式会社内 (72)発明者 小倉 武 東京都新宿区西新宿三丁目19番2号 日 本電信電話株式会社内 審査官 菅原 道晴 (56)参考文献 特開 平4−3595(JP,A) 特開 平9−212649(JP,A) 特開 平3−129984(JP,A) N.Hayashi,T.Kitu i,I.Tamitani,H.Hon ma,Y.Ooi,T. (58)調査した分野(Int.Cl.7,DB名) H04N 7/24 - 7/68 ──────────────────────────────────────────────────の Continuing on the front page (72) Inventor Takeshi Kentome 3-19-2 Nishi-Shinjuku, Shinjuku-ku, Tokyo Nippon Telegraph and Telephone Corporation (72) Inventor Takeshi Ogura 3--19, Nishishinjuku, Shinjuku-ku, Tokyo No. 2 Nippon Telegraph and Telephone Corporation Examiner Michiharu Sugawara (56) References JP-A-4-3595 (JP, A) JP-A-9-212649 (JP, A) JP-A-3-129984 (JP, A) N.). Hayashi, T .; Kiti, I .; Tamitani, H .; Hon ma, Y .; Ooi, T. (58) Fields investigated (Int. Cl. 7 , DB name) H04N 7/ 24-7/68

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 探索により参照される可能性のある領域
をシフトして一定の面積の領域を探索する動きベクトル
探索方法において、 一定の数のテンプレートからなるテンプレート群内の各
テンプレートに対して設定された基準ベクトルだけシフ
トした探索領域を探索することにより各テンプレートの
変移ベクトルを求め、該変移ベクトルと前記基準ベクト
ルを足し合わせることにより各テンプレートの実際の動
きベクトルを求めるとともに、テンプレート群内の一定
の数のテンプレートの該実際の動きベクトルを用いて
ンプレート群全体の動きを評価し、当該テンプレート群
全体の動きを検出できたときはその動きを出力し、動き
が検出できないときは動きが検出できないことを出力す
る第1のステップと、 当該テンプレート群全体の動きが検出できたときは、そ
の動きを次に探索するテンプレート群の基準ベクトルと
して設定し、第1のステップに戻る第2のステップと、 当該テンプレート群全体の動きを検出できないときは、
次に探索するテンプレート群の基準ベクトルとして、所
定のベクトルを設定し、第1のステップに戻る第3のス
テップとを含むことを特徴とする動きベクトル探索方
法。
1. A motion vector search method for searching for a region having a fixed area by shifting a region that may be referred to by a search, wherein the setting is performed for each template in a template group including a fixed number of templates. By searching the search area shifted by the shifted reference vector ,
A displacement vector is obtained, and the displacement vector and the reference vector are determined.
The actual behavior of each template by adding
Vector in the template group
The motion of the entire template group is evaluated using the actual motion vectors of the number of templates, and when the motion of the entire template group can be detected, the motion is output, and the motion cannot be detected. A first step of outputting that no motion can be detected, and when a motion of the entire template group can be detected, the motion is set as a reference vector of a template group to be searched next. The second step to return, and when the movement of the entire template group cannot be detected,
A third step of setting a predetermined vector as a reference vector of a template group to be searched next and returning to the first step.
【請求項2】 前記第3のステップでは、 テンプレート群全体の動きを検出できないときは、次に
探索するテンプレート群の探索において探索領域のシフ
トをリセットし、探索領域の中心のブロックをリセット
後の動きベクトルで示されるブロックとすることを特徴
とする請求項記載の動きベクトル探索方法。
2. In the third step, when the motion of the entire template group cannot be detected, the shift of the search area is reset in the search of the template group to be searched next, and the block at the center of the search area is reset. motion vector search method according to claim 1, characterized in that the block indicated by the motion vector.
【請求項3】 前記第3のステップでは、 当該テンプレート群全体の動きを検出できないときは、
次に探索するテンプレート群から、動きを検出できるテ
ンプレート群が現れるまで、個々のテンプレート群ごと
に探索領域のシフトを示す基準ベクトルを変更して異な
る範囲の動きベクトルを探索することを特徴とする請求
記載の動きベクトル探索方法。
3. In the third step, when the movement of the entire template group cannot be detected,
A method of changing a reference vector indicating a shift of a search area for each template group and searching for a different range of motion vectors until a template group capable of detecting a motion appears from a template group to be searched next. Item 6. The motion vector search method according to Item 1 .
【請求項4】 前記動きベクトル探索方法は、 最初の画像の探索を始める前に、最初の画像において画
像全体の動きを検出するのに適当な位置のテンプレート
群について、探索領域を異なる位置にシフトして複数回
の探索を実行し、広い範囲で画像全体の動きを検出し
て、動きが検出できたときは、その動きに合わせて最初
のテンプレート群の探索領域をシフトし、動きが検出で
きないときは、最初のテンプレート群の探索領域を所定
の基準ベクトル分だけシフトするステップをさらに含
み、 前記第3のステップでは、 テンプレート群全体の動きを検出できないときは、次に
探索するテンプレート群から動きを検出できるテンプレ
ート群が現れるか、当該テンプレート群が含まれる画像
の最後のテンプレート群まで所定の基準ベクトルを設定
して探索を行い、次の画像の探索を始める前に次の画像
において、画像全体の動きを検出するのに適当な位置の
テンプレート群について、探索領域を異なる位置にシフ
トして複数回の探索を実行し、広い範囲で画像全体の動
きを検出して、その動きに合わせて次の画像の最初のテ
ンプレート群の探索領域をシフトすることを特徴とする
請求項記載の動きベクトル探索方法。
4. The method according to claim 1, wherein, before the search for the first image is started, the search area is shifted to a different position with respect to a group of templates at positions suitable for detecting the motion of the entire image in the first image. The search is performed multiple times, and the motion of the entire image is detected in a wide range. When the motion can be detected, the search area of the first template group is shifted according to the motion, and the motion cannot be detected. The method further comprises the step of shifting the search area of the first template group by a predetermined reference vector. In the third step, when the motion of the entire template group cannot be detected, A predetermined reference vector is set up to a template group that can detect the template or up to the last template group of the image containing the template group Before starting the search for the next image, perform a search multiple times by shifting the search area to a different position for a template group at an appropriate position for detecting the motion of the entire image in the next image. It is executed, by detecting the motion of the entire image in a wide range, a motion vector search method according to claim 1, wherein the shifting the search area of the first template group of the next image in accordance with the movement thereof.
【請求項5】 前記第2のステップでは、 当該テンプレート群全体の動きが検出できたときは、そ
の動きと過去に探索した画面における動きとを用いて、
次に探索するテンプレート群の探索領域のシフトの決定
およびシフトを行い、 前記第3のステップでは、 当該テンプレート群全体の動きを検出できないときは、
設定した動きと過去に探索した画面における動きとを用
いて、次に探索するテンプレート群の探索領域のシフト
の決定およびシフトを行うことを特徴とする請求項
載の動きベクトル探索方法。
5. In the second step, when a movement of the entire template group can be detected, the movement and a movement on a screen searched in the past are used.
Next, the shift of the search area of the template group to be searched is determined and shifted. In the third step, when the movement of the entire template group cannot be detected,
By using the movement in the set movement and searched in the past the screen, then a motion vector search method according to claim 1, characterized in that the determination and shift the shift of the search area of the template group to be searched.
【請求項6】 前記第1のステップでは、 個々のテンプレートの探索領域中に当該テンプレートと
一致するブロックが存在しないテンプレートが1個でも
検出されたとき、当該ステップにおいてテンプレート群
全体の動きを検出できないことを出力することを特徴と
する請求項から請求項のいずれかに記載の動きベク
トル探索方法。
6. In the first step, when at least one template that does not include a block that matches the template is detected in the search area of each template, the motion of the entire template group cannot be detected in the step. The motion vector search method according to any one of claims 2 to 5 , wherein the information is output.
【請求項7】 同一のスライス内の全テンプレートを同
一のテンプレート群に含ませることを特徴とする請求項
から請求項のいずれかに記載の動きベクトル探索方
法。
7. The method according to claim 1, wherein all templates in the same slice are included in the same template group.
The motion vector search method according to any one of claims 2 to 6 .
【請求項8】 探索領域をシフトして一定の面積の領域
を探索する動きベクトル探索装置において、 一定の数のテンプレートからなるテンプレート群内の各
テンプレートに対して設定された基準ベクトルだけシフ
トした探索領域を探索することにより各テンプレートの
変移ベクトルを求め、該変移ベクトルと前記基準ベクト
ルを足し合わせることにより各テンプレートの実際の動
きベクトルを求めるとともに、テンプレート群内の一定
の数のテンプレートの該実際の動きベクトルを用いて
ンプレート群全体の動きを評価し、当該テンプレート群
全体の動きを検出できたときはその動きを出力し、動き
が検出できないときは動きが検出できないことを出力す
る第1の処理部と、 当該テンプレート群全体の動きが検出できたときは、そ
の動きを次に探索するテンプレート群の基準ベクトルと
して設定し、第1の処理部に処理を移行する第2の処理
部と、 当該テンプレート群全体の動きを検出できないときは、
次に探索するテンプレート群の基準ベクトルとして、所
定のベクトルを設定し、第1の処理部に処理を移行する
第3の処理部とを備えることを特徴とする動きベクトル
探索装置。
8. A motion vector searching apparatus for shifting a search area to search for an area having a certain area, wherein the search is shifted by a reference vector set for each template in a template group including a certain number of templates. By searching the area ,
A displacement vector is obtained, and the displacement vector and the reference vector are determined.
The actual behavior of each template by adding
Vector in the template group
The motion of the entire template group is evaluated using the actual motion vectors of the number of templates, and when the motion of the entire template group can be detected, the motion is output, and the motion cannot be detected. When the first processing unit outputs that no motion can be detected, and when the motion of the entire template group can be detected, the motion is set as a reference vector of a template group to be searched next. A second processing unit that shifts the processing to the unit, and when the movement of the entire template group cannot be detected,
A motion vector search device comprising: a third processing unit that sets a predetermined vector as a reference vector of a template group to be searched next and shifts processing to a first processing unit.
【請求項9】 探索領域をシフトして一定の面積の領域
を探索する動きベクトル探索方法をコンピュータに実行
させるための動きベクトル探索プログラムを記憶したコ
ンピュータ読み取り可能な記録媒体において、 一定の数のテンプレートからなるテンプレート群内の各
テンプレートに対して設定された基準ベクトルだけシフ
トした探索領域を探索することにより各テンプ レートの
変移ベクトルを求め、該変移ベクトルと前記基準ベクト
ルを足し合わせることにより各テンプレートの実際の動
きベクトルを求めるとともに、テンプレート群内の一定
の数のテンプレートの該実際の動きベクトルを用いて
ンプレート群全体の動きを評価し、当該テンプレート群
全体の動きを検出できたときはその動きを出力し、動き
が検出できないときは動きが検出できないことを出力す
る第1の処理と、 当該テンプレート群全体の動きが検出できたときは、そ
の動きを次に探索するテンプレート群の基準ベクトルと
して設定し、第1の処理に戻る第2の処理と、当該テン
プレート群全体の動きを検出できないときは、次に探索
するテンプレート群の基準ベクトルとして、所定のベク
トルを設定し、第1のステップに戻る第3の処理とをコ
ンピュータに実行させる動きベクトル探索プログラムを
記録した記録媒体。
9. A computer-readable recording medium which stores a motion vector search program for causing a computer to execute a motion vector search method for shifting a search area to search for an area having a certain area, comprising: from consisting only reference vector set for each template in the template group of each template by searching the shifted search region
A displacement vector is obtained, and the displacement vector and the reference vector are determined.
The actual behavior of each template by adding
Vector in the template group
The motion of the entire template group is evaluated using the actual motion vectors of the number of templates, and when the motion of the entire template group can be detected, the motion is output, and the motion cannot be detected. When the first process outputs that motion cannot be detected, and when the motion of the entire template group can be detected, the motion is set as a reference vector of the template group to be searched next, and the first process is performed. The second process of returning and the third process of setting a predetermined vector as a reference vector of the next template group to be searched when the movement of the entire template group cannot be detected and returning to the first step are performed by computer. Recording medium on which a motion vector search program to be executed is recorded.
JP13497499A 1998-05-19 1999-05-14 MOTION VECTOR SEARCH METHOD, MOTION VECTOR SEARCH DEVICE, AND RECORDING MEDIUM CONTAINING MOTION VECTOR SEARCH PROGRAM Expired - Lifetime JP3335137B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13497499A JP3335137B2 (en) 1998-05-19 1999-05-14 MOTION VECTOR SEARCH METHOD, MOTION VECTOR SEARCH DEVICE, AND RECORDING MEDIUM CONTAINING MOTION VECTOR SEARCH PROGRAM

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP13628798 1998-05-19
JP10-136287 1998-07-17
JP20262898 1998-07-17
JP10-202628 1998-07-17
JP13497499A JP3335137B2 (en) 1998-05-19 1999-05-14 MOTION VECTOR SEARCH METHOD, MOTION VECTOR SEARCH DEVICE, AND RECORDING MEDIUM CONTAINING MOTION VECTOR SEARCH PROGRAM

Publications (2)

Publication Number Publication Date
JP2000092498A JP2000092498A (en) 2000-03-31
JP3335137B2 true JP3335137B2 (en) 2002-10-15

Family

ID=27316988

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13497499A Expired - Lifetime JP3335137B2 (en) 1998-05-19 1999-05-14 MOTION VECTOR SEARCH METHOD, MOTION VECTOR SEARCH DEVICE, AND RECORDING MEDIUM CONTAINING MOTION VECTOR SEARCH PROGRAM

Country Status (1)

Country Link
JP (1) JP3335137B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8451898B2 (en) 2005-11-02 2013-05-28 Panasonic Corporation Motion vector estimation apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100681258B1 (en) 2004-10-02 2007-02-09 삼성전자주식회사 Motion vector refinement based output motion vector estimation method for transcoding and transcoder using the same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
N.Hayashi,T.Kitui,I.Tamitani,H.Honma,Y.Ooi,T.

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8451898B2 (en) 2005-11-02 2013-05-28 Panasonic Corporation Motion vector estimation apparatus

Also Published As

Publication number Publication date
JP2000092498A (en) 2000-03-31

Similar Documents

Publication Publication Date Title
KR100325253B1 (en) Motion vector search method and apparatus
US11677973B2 (en) Merge with MVD for affine
TWI690194B (en) Sub-prediction unit temporal motion vector prediction (sub-pu tmvp) for video coding
KR100446235B1 (en) Merging search method of motion vector using multi-candidates
CN101422047B (en) Motion estimation at image borders and display device
US8837591B2 (en) Image block classification
JP5044568B2 (en) Motion estimation using predictive guided decimation search
JP2009147807A (en) Image processing device
US11825074B2 (en) Generation and usage of combined affine merge candidate
KR101409826B1 (en) Method for motion prediction using adaptive search range
CN101888546B (en) A kind of method of estimation and device
US8130835B2 (en) Method and apparatus for generating motion vector in hierarchical motion estimation
US20250016307A1 (en) Displacement vector prediction method and apparatus in video encoding and decoding and device
KR20050012766A (en) Unit for and method of estimating a motion vector
JP4166781B2 (en) Motion vector detection apparatus and motion vector detection method
CN112261413B (en) Video encoding method, encoding device, electronic device, and storage medium
Liu et al. H. 264/AVC video error concealment algorithm by employing motion vector recovery under cloud computing environment
JP2000224593A (en) Frame interpolation method and apparatus and recording medium recording this method
JPH1175195A (en) Motion vector detection method and apparatus
WO2010109564A1 (en) Image encoding apparatus and image encoding method
KR20070033345A (en) How to retrieve global motion vector
JP3335137B2 (en) MOTION VECTOR SEARCH METHOD, MOTION VECTOR SEARCH DEVICE, AND RECORDING MEDIUM CONTAINING MOTION VECTOR SEARCH PROGRAM
JP2005167976A (en) Motion vector detecting device and motion vector detecting program
JP2007510213A (en) Improved motion vector field for tracking small fast moving objects
JP4523024B2 (en) Image coding apparatus and image coding method

Legal Events

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

Free format text: PAYMENT UNTIL: 20080802

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080802

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090802

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090802

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100802

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100802

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110802

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120802

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130802

Year of fee payment: 11

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term