JP3038935B2 - Motion detection device - Google Patents

Motion detection device

Info

Publication number
JP3038935B2
JP3038935B2 JP3014310A JP1431091A JP3038935B2 JP 3038935 B2 JP3038935 B2 JP 3038935B2 JP 3014310 A JP3014310 A JP 3014310A JP 1431091 A JP1431091 A JP 1431091A JP 3038935 B2 JP3038935 B2 JP 3038935B2
Authority
JP
Japan
Prior art keywords
pixels
search range
input
block
calculation
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 - Fee Related
Application number
JP3014310A
Other languages
Japanese (ja)
Other versions
JPH04248683A (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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP3014310A priority Critical patent/JP3038935B2/en
Priority to KR1019920001163A priority patent/KR100247111B1/en
Priority to EP19920300778 priority patent/EP0497586A3/en
Publication of JPH04248683A publication Critical patent/JPH04248683A/en
Priority to US08/286,388 priority patent/US5586202A/en
Application granted granted Critical
Publication of JP3038935B2 publication Critical patent/JP3038935B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/223Analysis of motion using block-matching
    • G06T7/231Analysis of motion using block-matching using full search
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Analysis (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば動画像データの
高能率符号化で、動きベクトルの検出等に用いられる動
き検出装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motion detecting apparatus used for detecting a motion vector in, for example, high-efficiency coding of moving image data.

【0002】[0002]

【従来の技術】例えば動画像データの高能率符号化で動
きベクトルの検出等を行う場合に、例えばフルサーチ・
ブロックマッチングによる検出を行う場合には、所定画
素数にて構成された捜索範囲内の画素とそれより小なる
画素数にて構成される基準データブロック内の画素とを
その配列状態に基づいて比較する動き検出装置が用いら
れる。このような動き検出装置において、通常の1画素
(ペル)精度の動きを検出した後、さらに求まったベク
トルの周囲8方向に対して補間(2点の平均値)する事
により、それぞれ0.5ペルシフトした予測画像を得、
それらの予測画像の中で原画像(基準データブロック)
との残差が最小となるベクトルを求めること(ハーフペ
ル精度の動き検出)が行われている。
2. Description of the Related Art For example, when a motion vector is detected by high-efficiency coding of moving image data, for example, a full search
When performing detection by block matching, pixels in a search range composed of a predetermined number of pixels are compared with pixels in a reference data block composed of a smaller number of pixels based on the arrangement state. A motion detection device is used. In such a motion detecting device, after detecting a motion of a normal one pixel (pel) accuracy, interpolation is performed (average value of two points) in eight directions around the obtained vector to obtain 0.5 Obtain a pel-shifted prediction image,
Original image (reference data block) among those predicted images
(A motion detection with half-pel accuracy) is performed.

【0003】すなわち例えば基準データブロックが4×
4の場合について、1ペル精度の動き検出をして、まず
図6に示すような動きベクトルが求まったとする。ここ
でこのときの残差をSとすると、 S=|A7 −a14|+|A8 −a15|+・・・+|A28−a35| となる。ただしai は同図のBに示すような基準データ
ブロックの16個の画素、Ai は同図のAに示すように
捜索範囲の1ペル精度で動き検出をした基準データブロ
ックに対応する16個の画素である。
That is, for example, when the reference data block is 4 ×
In the case of No. 4, it is assumed that motion detection with 1-pel accuracy is performed and a motion vector as shown in FIG. 6 is obtained first. If the residual at this time is S, then S = | A 7 −a 14 | + | A 8 −a 15 | +... + | A 28 −a 35 | Here, a i is 16 pixels of the reference data block as shown in B of the figure, and A i is 16 pixels corresponding to the reference data block of which motion is detected with one pel accuracy of the search range as shown in A of the figure. Pixels.

【0004】これに対してハーフペル(0.5ペル)の
精度で動きを検出するには、図7に示すように上述の1
6個のAi より一回り大きめの捜索範囲の画素(6×6
個のデータ)を使用して、次の数1を計算して最小とな
るsum(・,・)を捜し出せば良い。
On the other hand, in order to detect a motion with half-pel (0.5 pel) accuracy, as shown in FIG.
6 A i from slightly larger search area of the pixel (6 × 6
The following equation (1) may be calculated by using the number of pieces of data to find the minimum sum (.,.).

【0005】[0005]

【数1】 (Equation 1)

【0006】しかしながら従来ハーフペル精度の動き検
出を行う場合に、数1をこのまま実行しようとすると、
式中に表われる各AI +AJ を計算しなければならず、
また「(AI +AJ )/2」と「aK 」との対応が複雑
であり、容易には計算することができないものであっ
た。
However, when performing motion detection with conventional half-pel accuracy, if equation 1 is to be executed as it is,
Each A I + A J that appears in the equation must be calculated,
In addition, the correspondence between "(A I + A J ) / 2" and "a K " was complicated and could not be easily calculated.

【0007】[0007]

【発明が解決しようとする課題】解決しようとする問題
点は、従来ハーフペル精度の動き検出を行う場合に、計
算が複雑で、容易には実行できないというものである。
The problem to be solved is that when performing motion detection with conventional half-pel accuracy, the calculation is complicated and cannot be easily performed.

【0008】[0008]

【課題を解決するための手段】本発明は、所定画素数に
て構成された捜索範囲内の画素と上記所定画素数より小
なる画素数にて構成される基準データブロック内の画素
とをその配列状態に基づいて比較する際、上記捜索範囲
内で上記ブロックが取りうる画素同士の対応状態毎に上
記ブロック内の各画素と上記捜索範囲内の対応画素との
差分絶対値の和を演算する演算手段を有し、上記捜索範
囲内の各画素は予め上記演算手段に入力される時刻を設
定されるようになし、上記時刻に基づいて上記捜索範囲
内の画素を上記演算手段に入力して、順次対応する上記
基準データブロック内の画素と上記演算を行うようにな
す動き検出装置であって、上記捜索範囲内で1画素以下
の動き状態を検出する際、隣接する画素(入力端子1)
間の平均値と上記ブロック内の画素(入力端子5)とを
比較するようになし、上記ブロック内の画素との各対応
状態毎に上記差分絶対値の和を得る(加算器4a〜4
h、減算器6、絶対値化回路7a〜7h、累加算回路8
a〜8h)ようになし、上記各対応状態間での共通する
演算(減算器6)を先行して行うようになすことを特徴
とする動き検出装置である。
According to the present invention, a pixel within a search range composed of a predetermined number of pixels and a pixel in a reference data block composed of a number of pixels smaller than the predetermined number of pixels are combined. When comparing based on the arrangement state, the sum of the absolute difference between each pixel in the block and the corresponding pixel in the search range is calculated for each corresponding state of the pixels that the block can take in the search range. Having a calculating means, each pixel in the search range is set in advance at a time to be input to the calculating means, and based on the time , a pixel in the search range is input to the calculating means. A motion detecting device for performing the above calculation with pixels in the reference data block which correspond sequentially to each other, when detecting a motion state of one pixel or less in the search range, an adjacent pixel (input terminal 1)
The average value between the pixels and the pixels in the block (input terminal 5) are compared, and the sum of the absolute difference values is obtained for each corresponding state with the pixels in the block (adders 4a to 4a).
h, subtractor 6, absolute value conversion circuits 7a to 7h, accumulator circuit 8
a to 8h), wherein a common operation (subtractor 6) between the corresponding states is performed in advance.

【0009】[0009]

【作用】これによれば、各対応状態間での共通する演算
を先行して行うようになすことによって計算が簡略化さ
れるので、簡単な装置構成でハーフペル精度の動き検出
を行うことができる。
According to this, the calculation is simplified by performing the common operation between the corresponding states in advance, so that the motion detection with half-pel accuracy can be performed with a simple device configuration. .

【0010】[0010]

【実施例】ところで上述の数1において、sum(0,
0)を除く8つの式の内、共通項をくくり出す事によっ
て加算回数を減らす事ができる。また入力順を適切に操
作する事によって「(AI +AJ )/2」と「aK 」と
の対応も簡単になり、装置の回路規模を小さくすること
ができる。すなわち本願においては、上述の数1を次の
数2のように変形する。
[Embodiment] In the above equation (1), sum (0,
The number of additions can be reduced by extracting the common term among the eight expressions except 0). By appropriately operating the input order, the correspondence between “(A I + A J ) / 2” and “a K ” is also simplified, and the circuit scale of the device can be reduced. That is, in the present application, the above equation 1 is transformed into the following equation 2.

【0011】[0011]

【数2】 (Equation 2)

【0012】この数2において、〔(A7 /2)−
14〕、〔(A8 /2)−a15〕、・・・、〔(A28
2)−a35〕は、8つの式に共通であり、これらの減算
は一度計算してしまえば、8つの式にその値を使用で
き、加減算の回数を減らすことができる。
[0012] In this equation (2), [(A 7/2) -
a 14], [(A 8/2) -a 15], ..., [(A 28 /
2) -a 35 ] is common to the eight equations, and once these subtractions are calculated, the values can be used in the eight equations, and the number of additions and subtractions can be reduced.

【0013】図1は装置の構成を示す。この図におい
て、入力端子1には上述のAのデータが供給される。こ
のデータが1ビットシフト(2)されて値が1/2にさ
れる。この1/2にされた値が直列に接続されたレジス
タ3a〜3nに供給される。そしてこの1/2にされた
値と、レジスタ3a、3b、3f、3h、3l、3m、
3nの出力がそれぞれ加算器4a〜4hに供給される。
FIG. 1 shows the configuration of the apparatus. In this figure, the data of A described above is supplied to an input terminal 1. This data is shifted by one bit (2) to reduce the value to 1/2. The halved value is supplied to registers 3a to 3n connected in series. Then, the halved value is added to the registers 3a, 3b, 3f, 3h, 31 and 3m,
The outputs of 3n are supplied to adders 4a to 4h, respectively.

【0014】一方、入力端子5には上述のaのデータが
供給される。この入力端子5のデータが減算器6に供給
されると共に、レジスタ3gの出力が減算器6に供給さ
れ、この値から入力端子5に供給されるaのデータが減
算される。この減算器6からの減算出力が加算器4a〜
4hに供給される。さらに加算器4a〜4hからの加算
出力がそれぞれ絶対値化回路7a〜7hを介して累加算
回路8a〜8hに供給される。また累加算回路8a〜8
hには端子9からのイネーブル制御信号が供給される。
On the other hand, the above-mentioned data a is supplied to the input terminal 5. The data of the input terminal 5 is supplied to the subtractor 6, and the output of the register 3g is supplied to the subtractor 6, from which the data of a supplied to the input terminal 5 is subtracted. The subtraction output from the subtracter 6 is added to the adders 4a to 4a.
4h. Further, the addition outputs from the adders 4a to 4h are supplied to the accumulators 8a to 8h via the absolute value conversion circuits 7a to 7h, respectively. Also, the accumulator circuits 8a to 8
h is supplied with an enable control signal from the terminal 9.

【0015】さらに入力端子10には上述の1ペル精度
の動き検出で求まった動きベクトルの残差Sが供給され
る。そしてこの入力端子10からの残差Sの値と、累加
算回路8a〜8hからの加算出力が比較回路11に供給
され、最小となる値が検出されて、ハーフペル精度の動
きベクトルが出力端子12に取り出される。
Further, a residual S of the motion vector obtained by the above-described 1-pel precision motion detection is supplied to the input terminal 10. Then, the value of the residual S from the input terminal 10 and the added output from the accumulators 8a to 8h are supplied to the comparison circuit 11, and the minimum value is detected. Is taken out.

【0016】そしてこの装置において、入力端子1には
iサイクル目にAiのデータが入力され、入力端子5に
はiサイクル目にai のデータが入力される。ただしA
i は上述の図7の捜索範囲(6×6)の画素、ai は上
述の図6のBに示す基準データブロックの16個の画素
であって、i=0,1,2,・・・35である。なおa
0 〜a13、a18、a19、a24、a25、a30、a31は図6
のBに示されていないが、これらに対応する0〜13、
18、19、24、25、30、31サイクル目には、
入力端子5にはダミーデータが入力される。
[0016] Then, in this system, data of A i are inputted to the i-th cycle to the input terminal 1, data of a i is input to the i-th cycle to the input terminal 5. However, A
i is a pixel in the search range (6 × 6) of FIG. 7 described above, and a i is 16 pixels of the reference data block shown in FIG. 6B, where i = 0, 1, 2,. -It is 35. Note that a
0 ~a 13, a 18, a 19, a 24, a 25, a 30, a 31 Figure 6
B, but not corresponding to 0-13,
At cycles 18, 19, 24, 25, 30, and 31,
Dummy data is input to the input terminal 5.

【0017】従ってこの装置において、データの入力が
開始されて14サイクル目にレジスタ3gの出力には
「入力端子1に入力された値が1/2倍されて7サイク
ル遅延された値」すなわち「A7 /2」が取り出され、
同時に入力端子5には「a14」のデータが入力される。
これによって減算器6では〔(A7 /2)−a14〕が計
算される。またこの時、レジスタ3nの出力には「入力
端子1に入力された値が1/2倍されて14サイクル遅
延された値」すなわち「A0 /2」が取り出されてい
る。これによって加算器4hでは〔(A0 /2)+
{(A7 /2)−a14}〕が計算され、絶対値化回路7
hで〔|(A0 /2)+{(A7 /2)−a14}|〕の
ように絶対値化されて、累加算回路8hに入力される。
Therefore, in this device, at the 14th cycle from the start of the data input, the output of the register 3g is "a value obtained by multiplying the value input to the input terminal 1 by 1/2 and delayed by 7 cycles", that is, " a 7/2 "is taken out,
At the same time, the data of “a 14 ” is input to the input terminal 5.
This subtractor 6 [(A 7/2) -a 14] is calculated. Further, at this time, the output of the register 3n are retrieved "value entered in the input terminal 1 is halved by 14 cycles delayed value" or "A 0/2". In this way the adder 4h [(A 0/2) +
{(A 7/2) -a 14} ] is calculated, an absolute value circuit 7
h with [| (A 0/2) + {(A 7/2) -a 14} | ] to be absolute values as inputted to the cumulative addition circuit 8h.

【0018】同様にして、減算器6で計算された〔(A
7 /2)−a14〕の値は、加算器4a〜4gにも入力さ
れているので、それぞれ〔(A14/2)+{(A7
2)−a14}〕、〔(A13/2)+{(A7 /2)−a
14}〕、〔(A12/2)+{(A7 /2)−a14}〕、
〔(A8 /2)+{(A7 /2)−a14}〕、〔(A6
/2)+{(A7 /2)−a14}〕、〔(A2 /2)+
{(A7 /2)−a14}〕、〔(A1 /2)+{(A7
/2)−a14}〕が計算される。さらにこれらの値が絶
対値化回路7a〜7gで絶対値化されて、累加算回路8
a〜8gに入力される。すなわち以上をまとめると、1
4サイクル目において数2の右辺の第1項の値〔(A*
/2)+{(A7 /2)−a14}〕(ただし*=0、
1、2、6、8、12、13、14)が累加算回路8a
〜8hにそれぞれ入力されるものである。
Similarly, [(A
7/2) values of -a 14], since also input to the adder 4a-4g, respectively [(A 14/2) + { (A 7 /
2) -a 14}], [(A 13/2) + { (A 7/2) -a
14}], [(A 12/2) + { (A 7/2) -a 14} ],
[(A 8/2) + { (A 7/2) -a 14} ], [(A 6
/ 2) + {(A 7 /2) -a 14} ], [(A 2/2) +
{(A 7/2) -a 14} ], [(A 1/2) + { (A 7
/ 2) -a 14}] is calculated. Further, these values are converted into absolute values by absolute value converting circuits 7a to 7g,
a to 8g. That is, to summarize the above, 1
In the fourth cycle, the value of the first term on the right side of Equation 2 [(A *
/ 2) + {(A 7 /2) -a 14} ] (where * = 0,
1, 2, 6, 8, 12, 13, 14) is a cumulative addition circuit 8a
To 8h.

【0019】さらに15〜17サイクル目において、例
えば累加算回路8hには〔(A1 /2)+{(A8
2)−a15}=「数2のsum(−0.5,−0.5)
の右辺の第2項」〕、〔(A2 /2)+{(A9 /2)
−a16}=「数2のsum(−0.5,−0.5)の右
辺の第3項(数2では・・・で省略されている)」〕、
〔(A3 /2)+{(A10/2)−a17}=「数2のs
um(−0.5,−0.5)の右辺の第4項(数2では
・・・で省略されている)」〕がそれぞれ入力されて累
加算される。
In yet 15-17 cycle, the example cumulative addition circuit 8h [(A 1/2) + { (A 8 /
2) −a 15 } = “sum of equation 2 (−0.5, −0.5)
The second term "] of the right side, [(A 2/2) + { (A 9/2)
−a 16 } = “the third term on the right-hand side of sum (−0.5, −0.5) in Equation 2 (abbreviated as... In Equation 2)”],
[(A 3/2) + { (A 10/2) -a 17} = "Number 2 s
The fourth term on the right side of um (-0.5, -0.5) (abbreviated as... in Equation 2)] is input and cumulatively added.

【0020】これに対して18、19サイクル目におい
て、累加算回路8hには〔(A4 /2)+{(A11
2)−a18}〕、〔(A5 /2)+{(A12/2)−a
19}〕が入力されるが、これらは数2のsum(−0.
5,−0.5)の右辺には表れない値である。そこでこ
れらのサイクルでは端子9からのイネーブル制御信号を
ロー(オフ)にして、これらの不用なデータが累加算さ
れないようにする。なおa18、a19はダミーデータであ
る。
[0020] In 18 and 19 cycle contrast, the cumulative addition circuit 8h [(A 4/2) + { (A 11 /
2) -a 18}], [(A 5/2) + { (A 12/2) -a
19 {] are input, and these are sum (−0.
5, -0.5). Therefore, in these cycles, the enable control signal from the terminal 9 is set to low (off) so that these unnecessary data are not added up. Note that a 18 and a 19 are dummy data.

【0021】以下、20〜23サイクル目においては、
「数2のsum(−0.5,−0.5)の右辺の第5〜
8項」の値が入力されてこれらの値がそれまでの累加算
結果に累加算される。24、25サイクル目において
は、不用なデータが入力されるので端子9からのイネー
ブル制御信号をロー(オフ)にして、これらの不用なデ
ータが累加算されないようにする。さらに26〜29サ
イクル目においては、「数2のsum(−0.5,−
0.5)の右辺の第9〜12項」の値が入力されてこれ
らの値がそれまでの累加算結果に累加算される。30、
31サイクル目においては、不用なデータが入力される
ので端子9からのイネーブル制御信号をロー(オフ)に
して、これらの不用なデータが累加算されないようにす
る。そして32〜35サイクル目においては、「数2の
sum(−0.5,−0.5)の右辺の第13〜16
(最終)項」の値が入力されてこれらの値がそれまでの
累加算結果に累加算される。これによって累加算回路8
hには、35サイクル目の終了時にsum(−0.5,
−0.5)の値が形成される。
Hereinafter, in the 20th to 23rd cycles,
"5th on the right side of sum (-0.5, -0.5) in Equation 2
The value of "8 terms" is input, and these values are cumulatively added to the cumulative addition result up to that time. In the 24th and 25th cycles, since unnecessary data is input, the enable control signal from the terminal 9 is set to low (off) so that the unnecessary data is not added up. Further, in the 26th to 29th cycles, “sum (−0.5, −
0.5), the values of the ninth to twelfth terms on the right-hand side are input, and these values are cumulatively added to the cumulative addition results up to that time. 30,
In the 31st cycle, since unnecessary data is input, the enable control signal from the terminal 9 is set low (off) so that these unnecessary data are not added up. Then, in the 32nd to 35th cycles, “13 to 16 on the right side of the sum (−0.5, −0.5) of Equation 2”
(Final) term "is input, and these values are cumulatively added to the previous cumulative addition result. Thereby, the cumulative addition circuit 8
h contains sum (−0.5,
-0.5).

【0022】すなわち上述の装置において、14〜35
サイクルの間にレジスタ3nからは、入力端子1に入力
されたデータ中の図2に矢印で示すA0 〜A21の値が1
/2倍されて出力され、累加算回路8hではこの内の斜
線部分の値によって sum(−0.5,−0.5)=Σ|(AI /2)+{(AJ /2)−aK }| ただしI、J、Kは式中に表れる16項の値が累算され
る。なおA4 、A5 、A10、A11、A16、A17(18、
19、24、25、30、31サイクル目)の値はイネ
ーブル制御信号がロー(オフ)にされることによって加
算されない。
That is, in the above-described apparatus, 14 to 35
During the cycle, the values of A 0 to A 21 indicated by arrows in FIG.
/ 2, and the output is multiplied by 2. In the accumulator 8h, sum (−0.5, −0.5) = Σ | (A I / 2) + {(A J / 2) −a K } | where I, J and K accumulate the values of the 16 terms expressed in the equation. A 4 , A 5 , A 10 , A 11 , A 16 , A 17 (18,
The values of the 19th, 24th, 25th, 30th, and 31st cycles) are not added by turning the enable control signal low (off).

【0023】また14〜35サイクルの間にレジスタ3
mからは、入力端子1に入力されたデータ中の図3に矢
印で示すA1 〜A22の値が1/2倍されて出力され、累
加算回路8gではこの内の斜線部分の値によって sum(−0.5,0)=Σ|(AI /2)+{(AJ /2)−aK }| ただしI、J、Kは式中に表れる16項の値が累算され
る。なおA5 、A6 、A11、A12、A17、A18(18、
19、24、25、30、31サイクル目)の値はイネ
ーブル制御信号がロー(オフ)にされることによって加
算されない。
In addition, register 14 is used during 14 to 35 cycles.
From the data m, the values of A 1 to A 22 indicated by the arrows in FIG. 3 in the data input to the input terminal 1 are output by being multiplied by 倍. sum (−0.5,0) = {| (A I / 2) + {(A J / 2) −a K } | where I, J and K are accumulated values of 16 terms expressed in the formula. You. A 5 , A 6 , A 11 , A 12 , A 17 , A 18 (18,
The values of the 19th, 24th, 25th, 30th, and 31st cycles) are not added by turning the enable control signal low (off).

【0024】さらに他の値についても、同様にして累加
算回路8a〜8fで計算が行われる。なお全体のタイム
チャートは図4に示すようになる。ここでアは入力端子
1に入力される値、イ〜コはレジスタ3n、3m、3
l、3h、3g、3f、3b、3a及びAのデータが1
/2にされた値、サは入力端子5に入力される値、シは
入力端子9に入力されるイネーブル制御信号である。
The other values are similarly calculated by the accumulators 8a to 8f. The overall time chart is as shown in FIG. Here, a is a value input to the input terminal 1, and a to are registers 3n, 3m, 3
Data of 1, 3h, 3g, 3f, 3b, 3a and A are 1
/ 2 is a value input to the input terminal 5, and S is an enable control signal input to the input terminal 9.

【0025】そして8つの累加算回路8a〜8hでのs
um(・,・)の計算の終了と同時に、入力端子10か
らsum(0,0)=Sの値が入力され、これらの9つ
の値が比較回路11で比較され、これらの最小となるベ
クトルが検出される。
S in the eight accumulator circuits 8a to 8h
Simultaneously with the completion of the calculation of um (·, ·), the value of sum (0,0) = S is input from the input terminal 10, these nine values are compared by the comparison circuit 11, and the minimum vector thereof is obtained. Is detected.

【0026】こうして上述の装置によれば、各対応状態
間での共通する演算(減算器6)を先行して行うように
なすことによって計算が簡略化されるので、簡単な装置
構成でハーフペル精度の動き検出を行うことができるも
のである。
Thus, according to the above-described apparatus, the calculation is simplified by performing the common operation (subtractor 6) between the corresponding states in advance, so that the half-pel precision can be reduced with a simple apparatus configuration. Can be detected.

【0027】なお上述の装置で、加算器4a〜4h、絶
対値化回路7a〜7h、累加算回路8a〜8hの部分
は、例えば図5のようにして実現できる。すなわち上段
の加算器4で(AI /2)と{(AJ /2)−aK }の
加算が行われる。ここでこの加算器4のキャリーアウト
(符号ビット:Co)が
In the above-described apparatus, the parts of the adders 4a to 4h, the absolute value converting circuits 7a to 7h, and the accumulating circuits 8a to 8h can be realized, for example, as shown in FIG. That is, the addition of (A I / 2) and {(A J / 2) −a K } is performed in the upper adder 4. Here, the carry-out (sign bit: Co) of the adder 4 is

〔0〕であればこの加算値は正
であるからそのまま下段の加算器81に入力される。一
方、加算器4のキャリーアウト(Co)が〔1〕のとき
はこの加算値は負である。そこでこの加算値をインバー
タ71で反転した値がスイッチ72で選択され、この値
が下段の加算器81に供給されると共に、スイッチ73
で選択された〔1〕の値が加算器81の最下位側(キャ
リーイン:Ci)に入力される。これによって加算器4
からの値が絶対値化されて加算器81に入力される。
If the value is [0], the added value is positive and is input to the lower adder 81 as it is. On the other hand, when the carry-out (Co) of the adder 4 is [1], the added value is negative. Therefore, a value obtained by inverting the added value by the inverter 71 is selected by the switch 72, and this value is supplied to the lower adder 81 and the switch 73
The value of [1] selected at (1) is input to the lowermost side (carry-in: Ci) of the adder 81. Thereby, the adder 4
Are converted into absolute values and input to the adder 81.

【0028】さらに加算器81の出力が単位遅延素子
(レジスタ)82を介して自分自身に入力される。それ
と共にこのレジスタ82にイネーブル端子ENが設けら
れ、このイネーブル端子ENに端子9からのイネーブル
制御信号が供給される。これによって上述の不用な値が
加算されないようにした累加算が行われる。
Further, the output of the adder 81 is input to itself via a unit delay element (register) 82. At the same time, an enable terminal EN is provided in the register 82, and an enable control signal from the terminal 9 is supplied to the enable terminal EN. Thus, cumulative addition is performed so that the above-mentioned unnecessary values are not added.

【0029】なおこの計算回路は1系統のみを示したも
のであって、上述のように8つの値の計算を行う場合に
は、この計算回路が8系統並列に設けられる。あるいは
計算処理時間に余裕がある場合には、8重の時分割多重
化によって計算回路は1系統のみで実現することも可能
である。その場合には、回路規模が約1/8になる。さ
らに上述の説明では基準データブロックが4×4の場合
について述べたが、これは任意のn×mに一般化するこ
とができるものである。
Note that this calculation circuit shows only one system, and when calculating eight values as described above, this calculation circuit is provided in parallel with eight systems. Alternatively, if there is a margin in the calculation processing time, the calculation circuit can be realized by only one system by octuple time division multiplexing. In that case, the circuit scale becomes about 1/8. Further, in the above description, the case where the reference data block is 4 × 4 has been described, but this can be generalized to an arbitrary n × m.

【0030】[0030]

【発明の効果】この発明によれば、各対応状態間での共
通する演算を先行して行うようになすことによって計算
が簡略化されるので、簡単な装置構成でハーフペル精度
の動き検出を行うことができるようになった。
According to the present invention, since the calculation is simplified by performing the common operation between the corresponding states in advance, the motion detection with half-pel accuracy is performed with a simple device configuration. Now you can do it.

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

【図1】本発明による動き検出装置の一例の構成図であ
る。
FIG. 1 is a configuration diagram of an example of a motion detection device according to the present invention.

【図2】その説明のための線図である。FIG. 2 is a diagram for the explanation.

【図3】その説明のための線図である。FIG. 3 is a diagram for the explanation.

【図4】動き検出装置の一例のタイムチャート図であ
る。
FIG. 4 is a time chart of an example of the motion detection device.

【図5】動き検出装置の要部の構成図である。FIG. 5 is a configuration diagram of a main part of the motion detection device.

【図6】1ペル精度の動き検出の説明のための線図であ
る。
FIG. 6 is a diagram for explaining motion detection with one pel accuracy.

【図7】ハーフペル精度の動き検出の説明のための線図
である。
FIG. 7 is a diagram for explaining motion detection with half-pel accuracy.

【符号の説明】 1 Aのデータが供給される入力端子 2 データを1ビットシフトして値を1/2にする手段 3a〜3n レジスタ 4a〜4h 加算器 5 aのデータの供給される入力端子 6 減算器 7a〜7h 絶対値化回路 8a〜8h 累加算回路 9 イネーブル制御信号の供給される端子 10 1ペル精度の残差Sの供給される入力端子 11 比較回路 12 ハーフペル精度の動きベクトルの出力端子[Description of Signs] 1 Input terminal to which data of A is supplied 2 Means for shifting data by 1 bit to reduce the value to 1/2 3a to 3n Registers 4a to 4h Input terminal to which data of adder 5a is supplied Reference Signs List 6 Subtractor 7a-7h Absolute value conversion circuit 8a-8h Cumulative addition circuit 9 Terminal supplied with enable control signal 10 Input terminal supplied with 1-pel precision residual S 11 Comparison circuit 12 Output of half-pel precision motion vector Terminal

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 7/20 H04N 7/32 JICSTファイル(JOIS)Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06T 7/20 H04N 7/32 JICST file (JOIS)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所定画素数にて構成された捜索範囲内の
画素と上記所定画素数より小なる画素数にて構成される
基準データブロック内の画素とをその配列状態に基づい
て比較する際、上記捜索範囲内で上記ブロックが取りう
る画素同士の対応状態毎に上記ブロック内の各画素と上
記捜索範囲内の対応画素との差分絶対値の和を演算する
演算手段を有し、上記捜索範囲内の各画素は予め上記演
算手段に入力される時刻を設定されるようになし、上記
時刻に基づいて上記捜索範囲内の画素を上記演算手段に
入力して、順次対応する上記基準データブロック内の画
素と上記演算を行うようになす動き検出装置であって、
上記捜索範囲内で1画素以下の動き状態を検出する際、
隣接する画素間の平均値と上記ブロック内の画素とを比
較するようになし、上記ブロック内の画素との各対応状
態毎に上記差分絶対値の和を得るようになし、上記各対
応状態間での共通する演算を先行して行うようになすこ
とを特徴とする動き検出装置。
1. A method for comparing pixels in a search range composed of a predetermined number of pixels with pixels in a reference data block composed of a number of pixels smaller than the predetermined number of pixels based on an arrangement state thereof. Calculating means for calculating a sum of absolute differences between pixels in the block and corresponding pixels in the search range for each correspondence state of pixels that the block can take in the search range, Each pixel in the range is set in advance at a time input to the arithmetic means, and
A motion detection device that inputs pixels in the search range based on time to the calculation means, and performs the calculation with pixels in the reference data block that correspond sequentially.
When detecting a motion state of one pixel or less in the search range,
The average value between adjacent pixels is compared with the pixels in the block, and the sum of the absolute difference values is obtained for each corresponding state with the pixels in the block. A motion calculation device that performs a common calculation in advance.
JP3014310A 1991-01-31 1991-02-05 Motion detection device Expired - Fee Related JP3038935B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP3014310A JP3038935B2 (en) 1991-02-05 1991-02-05 Motion detection device
KR1019920001163A KR100247111B1 (en) 1991-02-05 1992-01-28 Motion detecting device
EP19920300778 EP0497586A3 (en) 1991-01-31 1992-01-30 Motion detection circuit
US08/286,388 US5586202A (en) 1991-01-31 1994-08-05 Motion detecting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3014310A JP3038935B2 (en) 1991-02-05 1991-02-05 Motion detection device

Publications (2)

Publication Number Publication Date
JPH04248683A JPH04248683A (en) 1992-09-04
JP3038935B2 true JP3038935B2 (en) 2000-05-08

Family

ID=11857527

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3014310A Expired - Fee Related JP3038935B2 (en) 1991-01-31 1991-02-05 Motion detection device

Country Status (2)

Country Link
JP (1) JP3038935B2 (en)
KR (1) KR100247111B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0594058A3 (en) * 1992-10-19 1994-05-18 Matsushita Electronics Corp Image processing apparatus
CN1190949C (en) * 2000-04-11 2005-02-23 皇家菲利浦电子有限公司 Determining degree of resemblance between data sample and interpolations of other data samples

Also Published As

Publication number Publication date
JPH04248683A (en) 1992-09-04
KR100247111B1 (en) 2000-03-15
KR920017478A (en) 1992-09-26

Similar Documents

Publication Publication Date Title
JP3500634B2 (en) Motion vector detection device
EP0497586A2 (en) Motion detection circuit
JP3434979B2 (en) Local area image tracking device
JPH03256485A (en) Motion vector detecting circuit
US5313296A (en) Image information processor in which residual information is stored in a blank area of a field memory
KR101161706B1 (en) Image processing device, learning device, and coefficient generating device and method
JP3038935B2 (en) Motion detection device
US6990149B2 (en) Circuit and method for full search block matching
US5548665A (en) Vector correlation detecting circuit
JP2954120B2 (en) Motion vector detection device
US6198771B1 (en) Motion vector processing circuit
JP2600520B2 (en) Image motion compensation device
JP2901848B2 (en) Vector correlation detection circuit
JPH06284329A (en) Moving vector detecting circuit
JPH0135305B2 (en)
JP3214660B2 (en) Motion vector detection device
US8270478B2 (en) Method and apparatus for computing a sliding sum of absolute differences
JP2988836B2 (en) Motion vector search method
JPH0993581A (en) Motion detector for moving image coder
JP2558952B2 (en) Fixed-point digital signal processor
JPH06168329A (en) Optical flow computing circuit
JP2985865B2 (en) Special effects device
JP2934134B2 (en) Block matching method and apparatus in video compression
JP3136616B2 (en) Motion detection device
JP3286345B2 (en) Motion vector detection circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees