JP2934143B2 - Block matching method and apparatus in video compression - Google Patents

Block matching method and apparatus in video compression

Info

Publication number
JP2934143B2
JP2934143B2 JP5339791A JP33979193A JP2934143B2 JP 2934143 B2 JP2934143 B2 JP 2934143B2 JP 5339791 A JP5339791 A JP 5339791A JP 33979193 A JP33979193 A JP 33979193A JP 2934143 B2 JP2934143 B2 JP 2934143B2
Authority
JP
Japan
Prior art keywords
block
sub
difference
data
value
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
JP5339791A
Other languages
Japanese (ja)
Other versions
JPH07162865A (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.)
GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK
Original Assignee
GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK
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 GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK filed Critical GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK
Priority to JP5339791A priority Critical patent/JP2934143B2/en
Publication of JPH07162865A publication Critical patent/JPH07162865A/en
Application granted granted Critical
Publication of JP2934143B2 publication Critical patent/JP2934143B2/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 compression of a digital moving picture data amount. Specifically, an object of the present invention is to provide an improved block matching method and apparatus using sub-blocks used in a motion vector search operation.

【0002】[0002]

【従来の技術】図9にはディジタル動画像のデータ量を
圧縮するために用いるフレーム間予測の概念が示され、
同図(a)には前フレームの画像A(t=t0 )から
(c)に示す1フレーム後の現画像B(t=t0 +1/
30)を予測している。動きベクトルMVを用いる動き
補償フレーム間予測と、動きベクトルMVを用いない単
純フレーム予測があり、単純フレーム予測は前フレーム
の画像Aから現画像Bを直接予測するのに対して、動き
補償フレーム間予測では、同図(b)に示すように破線
で示した前フレームの画像から、実線で示した現画像の
位置を予測し動きベクトルMVを得て、動きベクトルM
Vを用いて(c)に示す現画像Bを得ている。この動き
補償フレーム間予測を用いることによって、単純フレー
ム間予測に較べて一般にそのデータ量を大幅に圧縮でき
る。
2. Description of the Related Art FIG. 9 shows a concept of inter-frame prediction used for compressing a data amount of a digital moving image.
FIG. 11A shows the current image B (t = t 0 +1/1/1 frame after the previous frame image A (t = t 0 ) shown in FIG.
30). There are motion-compensated inter-frame prediction using a motion vector MV and simple-frame prediction without using a motion vector MV. Simple-frame prediction directly predicts the current image B from the image A of the previous frame. In the prediction, the position of the current image shown by the solid line is predicted from the image of the previous frame shown by the broken line as shown in FIG.
The current image B shown in (c) is obtained using V. By using this motion compensated inter-frame prediction, the data amount can generally be greatly reduced as compared with the simple inter-frame prediction.

【0003】この動きベクトルMVを検出する手法に
は、多くの技術が存在するが、その中で最も一般的な方
法は、連続するフレーム間のある大きさの画素ブロック
ごとの処理を基本としたものであり、ブロック・マッチ
ング法と呼ばれている。
There are many techniques for detecting the motion vector MV. Among them, the most general method is based on processing for each pixel block of a certain size between consecutive frames. And is called a block matching method.

【0004】図10にはブロック・マッチング法におけ
るブロック関係が示されている。同図(a)には前フレ
ームのサーチ・ウィンドウ61内の候補ブロック62
が、同図(b)には現フレームの参照ブロック63が示
され、参照ブロック63に対応する前フレームにおける
位置には同図(a)に破線で、サーチ・ウィンドウ61
に対応する位置には同図(b)に1点鎖線で示されてい
る。
FIG. 10 shows a block relationship in the block matching method. FIG. 7A shows a candidate block 62 in a search window 61 of the previous frame.
FIG. 11B shows a reference block 63 of the current frame, and the position in the previous frame corresponding to the reference block 63 is indicated by a broken line in FIG.
The position corresponding to is indicated by a one-dot chain line in FIG.

【0005】ブロック・マッチング法では、現フレーム
における参照ブロック63は前フレームのサーチ・ウィ
ンドウ61に囲まれた領域に含まれる同じ大きさの候補
ブロック62との算術的比較により探索される。そのフ
レーム間の比較結果はディストーションと呼ばれ、2つ
のブロックの類似性の単位として使用される。最も小さ
いディストーション値をもつ候補ブロック62は最良の
マッチングを示すものであり、それを参照ブロック63
と関連付ける動きベクトルMVとにより、動き予測を行
う。探索するサーチ・ウィンドウ61内に含まれる可能
なすべてのブロックが参照ブロック63と逐次比較され
るとき、このプロセスは全点探索法(フルサーチ・ブロ
ック・マッチング法)と呼ばれる。
In the block matching method, a reference block 63 in a current frame is searched for by an arithmetic comparison with a candidate block 62 of the same size included in a region surrounded by a search window 61 of the previous frame. The result of the comparison between the frames is called distortion, and is used as a unit of similarity between two blocks. The candidate block 62 having the lowest distortion value indicates the best matching, and is referred to as the reference block 63.
And motion vector MV to be associated with. When all possible blocks contained in the search window 61 to be searched are successively compared with the reference block 63, this process is called a full search (full search block matching).

【0006】図11には全点探索法による探索範囲−8
〜+7のディストーションの求め方を示しており、
(a)のサーチ・ウィンドウ61と、それに対応する現
フレーム(b)の参照ブロック63と、(c)の一点鎖
線で示す候補ブロック62と、(d)のディストーショ
ンDijが示され、サーチ・ウィンドウ61に対応する
(b)の参照ブロック63のデータをaで、(c)の候
補ブロック62のデータをbで、iおよびjをy方向お
よびx方向の画素点の座標とすると、連続するフレーム
における参照ブロック63と(c)の矢印の動きベクト
ルMVの示す候補ブロック62とのブロック間累積誤差
値であるディストーション Dijは、 Dij=ΣΣ|a(i,j)−b(i+v,j+h)| ただし、最初のΣはi=0からM−1までの累和を表わ
し、次のΣはj=0からN−1までの累和を表わしてい
る。すると、ミーン・アブソリュート・エラーはこのデ
ィストーション Dijで表わされる。
FIG. 11 shows a search range -8 by the all point search method.
It shows how to find the distortion of ~ +7,
A search window 61 of (a), a reference block 63 of the current frame (b) corresponding thereto, a candidate block 62 indicated by a dashed line (c), and a distortion D ij of (d) are shown. If the data of the reference block 63 in (b) corresponding to the window 61 is a, the data of the candidate block 62 in (c) is b, and i and j are the coordinates of the pixel points in the y and x directions, the sequence is continuous. The distortion D ij, which is the inter-block cumulative error value between the reference block 63 in the frame and the candidate block 62 indicated by the arrow motion vector MV in (c), is D ij = ΣΣ | a (i, j) −b (i + v, j + h) | where the first Σ represents the sum from i = 0 to M−1, and the second Σ represents the sum from j = 0 to N−1. Then, the mean absolute error is represented by this distortion Dij .

【0007】動画の国際標準方式CCITT H.26
1では、フレーム間符号化のデータ圧縮効率を上げる技
術として、動きベクトルMVを用いる動き補償を採用し
た。この動きベクトルの探索には、ブロック単位のパタ
ーン・マッチングであるブロック・マッチングを高速に
処理する演算が要求される。
[0007] The international standard system CCITT H. 26
In No. 1, motion compensation using a motion vector MV was adopted as a technique for increasing the data compression efficiency of inter-frame coding. The search for the motion vector requires an operation for processing block matching, which is pattern matching in block units, at high speed.

【0008】図12には、ブロック・マッチングを全点
探索法を使用し高速に処理して動きベクトルMVを得
る、ブロック・マッチング処理部の回路構成が示されて
いる。入力選択回路51,16個の演算エレメントPE
0〜PE15を含む演算エレメント群52,比較回路5
3,出力回路55と、入力選択回路51,比較回路5
3,出力回路55に必要なタイミング信号を供給するタ
イミング発生回路54が含まれている。
FIG. 12 shows a circuit configuration of a block matching processing unit that obtains a motion vector MV by performing block matching at high speed using an all-points search method. Input selection circuit 51, 16 operation elements PE
Operation element group 52 including 0 to PE15, comparison circuit 5
3, output circuit 55, input selection circuit 51, comparison circuit 5
3, a timing generation circuit 54 for supplying a necessary timing signal to the output circuit 55 is included.

【0009】入力画面の現フレームに含まれた参照ブロ
ック63の16×16画素のデータa(i,j)と、前
フレームの32×32画素のサーチ・ウィンドウ61の
左半面の16×32画素のデータb(i+v,j+h)
と、同じく右半面の16×32画素のデータb′(i+
v,j+h)とが選択回路51に印加され、参照ブロッ
ク63のデータaをシフト転送して、サーチ・ウィンド
ウ61のデータbまたはb′がaと入力対となるように
選択している。
The data a (i, j) of 16 × 16 pixels of the reference block 63 included in the current frame of the input screen and the 16 × 32 pixels of the left half of the search window 61 of 32 × 32 pixels of the previous frame Data b (i + v, j + h)
And data b '(i +
v, j + h) is applied to the selection circuit 51, and the data a of the reference block 63 is shifted and transferred so that the data b or b 'of the search window 61 is selected so as to be an input pair with a.

【0010】参照ブロック63のデータaとサーチ・ウ
ィンドウ61のデータbまたはb′とは対となって演算
エレメント群52に含まれた16個の演算エレメントP
E0〜PE15に印加され、各演算エレメントPE0〜
PE15では、垂直方向16回分の Dij=ΣΣ|a(i,j)−b(i+v,j+h)| の演算をしてそれぞれのディストーションD(=Dij
を比較回路53へ出力する。
The data "a" of the reference block 63 and the data "b" or "b '" of the search window 61 are paired with the 16 operation elements P included in the operation element group 52.
Applied to E0 to PE15, and
The PE 15 calculates D ij = ΣΣ | a (i, j) −b (i + v, j + h) | for 16 times in the vertical direction, and performs each distortion D (= D ij ).
Is output to the comparison circuit 53.

【0011】比較回路53では、演算エレメント群52
の各演算エレメントPE0〜PE15から印加された1
6個のディストーションDを比較して、最も小さい値を
もつディストーションDを選択する。上記の動作を16
回繰返した後、最も小さい値を示したディストーション
Dを得るために用いたデータbまたはb′の候補ブロッ
ク62はデータaの参照ブロック63と最も良いマッチ
ングを示すものであり、出力回路55において参照ブロ
ック63から候補ブロック62への空間的位置と値を示
す動きベクトルMV(図11(c)参照)を得て、この
動きベクトルMVによって動き予測が行われている。図
12に示した構成によるプロセスは、前フレームのサー
チ・ウィンドウ61内に含まれるすべての候補ブロック
62が現フレームの参照ブロック63と演算エレメント
群52で並列に比較される、ブロック・マッチング法と
呼ばれるものである。
In the comparison circuit 53, the operation element group 52
1 applied from each of the operation elements PE0 to PE15
By comparing the six distortions D, the distortion D having the smallest value is selected. 16
After the repetition, the candidate block 62 of the data b or b 'used to obtain the distortion D having the smallest value shows the best matching with the reference block 63 of the data a. A motion vector MV (see FIG. 11C) indicating a spatial position and a value from the block 63 to the candidate block 62 is obtained, and motion prediction is performed using the motion vector MV. The process according to the configuration shown in FIG. 12 is based on a block matching method in which all candidate blocks 62 included in the search window 61 of the previous frame are compared in parallel with the reference block 63 of the current frame by the operation element group 52. What is called.

【0012】図13には演算エレメントPE0〜PE1
5のうちの任意の1つの演算エレメントPEの動作の流
れを示している。
FIG. 13 shows operation elements PE0 to PE1.
5 shows the flow of operation of any one of the arithmetic elements PE.

【0013】参照ブロック63のデータa(i,j)と
候補ブロック62のデータb(i+v,j+h)または
b′(i+v,j+h)が印加されると、a−bを演算
し(S101)、ラッチする(S102)。そこで、そ
の絶対値|a−b|を得て(S103)、それをラッチ
する(S104)。この絶対値は、前に得た絶対値と加
算されて、 Dij=ΣΣ|a−b| を得て(S105)、ラッチしてディストーションDを
出力する。ここで最初のΣはi=0からM−1までの累
和を表わし、次のΣはj=0からN−1までの累和を表
わしている。
When the data a (i, j) of the reference block 63 and the data b (i + v, j + h) or b '(i + v, j + h) of the candidate block 62 are applied, a-b is calculated (S101). Latch is performed (S102). Then, the absolute value | ab | is obtained (S103) and latched (S104). This absolute value is added to the previously obtained absolute value to obtain D ij = ΣΣ | ab | (S105), which is latched and the distortion D is output. Here, the first Σ represents the sum from i = 0 to M−1, and the second Σ represents the sum from j = 0 to N−1.

【0014】図14には演算エレメントPE0〜PE1
5のうちの任意の1つの演算エレメントPEの回路構成
が示されている。演算エレメントPEは差分絶対値|a
−b|を演算する差分絶対値算出部10と、それを加算
してディストーションDを得る加算部20とから成って
いる。差分絶対値算出部10は加算器11,セレクタ1
2とインバータ15,16を含み、加算部20は加算器
21,ラッチ22とインバータ25を含んでいる。ラッ
チ22のリセット端子Rにはリセット信号Rが印加され
初期化されている。
FIG. 14 shows operation elements PE0 to PE1.
5 shows a circuit configuration of any one of the processing elements PE. The operation element PE is the absolute difference value | a
It comprises a difference absolute value calculator 10 for calculating −b | and an adder 20 for adding the difference to obtain a distortion D. The absolute difference calculating unit 10 includes an adder 11 and a selector 1
2 and inverters 15 and 16. The adder 20 includes an adder 21, a latch 22 and an inverter 25. A reset signal R is applied to a reset terminal R of the latch 22 and the latch 22 is initialized.

【0015】参照ブロック63のデータa(i,j)は
加算器11の入力端子Aiに印加され、候補ブロック6
2のデータb(i+v,j+h)はインバータ15を介
して入力端子Biに印加され、加算器11の入力端子C
iには“1”が印加されて、その出力端子Ai+Biに
は差分a−bを得て、出力端子Coには選択信号を出力
している。
The data a (i, j) of the reference block 63 is applied to the input terminal Ai of the adder 11, and
2 is applied to the input terminal Bi via the inverter 15 and the input terminal C of the adder 11
“1” is applied to i, a difference a−b is obtained at the output terminal Ai + Bi, and a selection signal is output to the output terminal Co.

【0016】差分a−bはセレクタ12の入力端子Ai
にはインバータ16を介して、入力端子Biには直接に
印加され、加算器11からの選択信号を入力端子Sに受
けて差分絶対値|a−b|を出力端子Yiに得ている。
ここで入力端子Sに“0”が印加されるときには、出力
端子Yiには入力端子Aiの値が得られ、入力端子Sに
“1”が印加されているときには、出力端子Yiには入
力端子Biの値が得られる。
The difference ab is the input terminal Ai of the selector 12
Is applied directly to the input terminal Bi via the inverter 16, receives the selection signal from the adder 11 at the input terminal S, and obtains the absolute difference | ab− at the output terminal Yi.
Here, when “0” is applied to the input terminal S, the value of the input terminal Ai is obtained at the output terminal Yi, and when “1” is applied to the input terminal S, the output terminal Yi is applied to the output terminal Yi. The value of Bi is obtained.

【0017】加算部20に含まれた加算器21の入力端
子Ciには加算器11からの選択信号がインバータ25
を介して印加され、入力端子Aiにはセレクタ12から
の差分絶対値|a−b|が印加され、入力端子Biには
ラッチ22の出力端子Qiからの出力である前回得られ
たディストーションDが印加され、その出力端子Ai+
BiからはΣΣ|a−b|を得て、それをラッチ22の
入力端子Diに印加してそのクロック端子にクロックC
Lが印加されるごとにラッチし、ディストーションDを
得ている。
The selection signal from the adder 11 is supplied to the input terminal Ci of the adder 21 included in the adder 20 by the inverter 25.
The absolute difference value | ab | from the selector 12 is applied to the input terminal Ai, and the distortion D obtained last time, which is the output from the output terminal Qi of the latch 22, is applied to the input terminal Bi. Applied and its output terminal Ai +
Bi obtains ΣΣ | ab | and applies it to the input terminal Di of the latch 22 to apply the clock C to its clock terminal.
Each time L is applied, the signal is latched to obtain a distortion D.

【0018】以上において説明した全点探索法において
は、入力された参照(対象)ブロック63によりサーチ
・ウィンドウ(探索エリア)61に含まれる全てのブロ
ックの差分絶対値和を求めて、その最小値を持つブロッ
クを候補(予測)ブロック62としていた。そのため膨
大な演算(たとえば、参照ブロック・サイズ16×1
6,探索範囲−8〜+7で、262,144オペレーシ
ョン)を必要としていた。
In the all-point search method described above, the sum of absolute differences of all the blocks included in the search window (search area) 61 is obtained by the input reference (target) block 63, and the minimum value thereof is calculated. Is a candidate (prediction) block 62. Therefore, huge operations (for example, reference block size 16 × 1
6, with a search range of -8 to +7, requiring 262,144 operations).

【0019】図15には3段探索法が示されている。3
段探索法は全点探索法において要求される膨大な演算を
避けてサーチ・ウインドウ61における探索点を減らす
ことにより演算量を減らしている。同図においては、サ
ーチ・ウインドウ61の多くの探索点を黒点で示してお
り、サーチ・ウインドウ61の範囲がX軸およびY軸と
もに−7〜+7となっている。最初のステップでは、黒
丸を含む9個の丸印で示した9点の探索が行われ、その
9点のうち、黒丸の点が最小のディストーション(差分
絶対値和)を示したとする。第2のステップでは、その
周辺の黒4角を含む8個の4角印で示した8点の探索が
行われ、その8点のうち黒4角の点が最小のディストー
ションを示したとする。第3のステップでは、その周辺
の黒3角を含む8個の3角印で示した8点の探索が行わ
れ、その8点のうち黒3角の点が最小のディストーショ
ンを示したことを示している。この黒3角の点の位置が
動きベクトルとされる。
FIG. 15 shows a three-stage search method. 3
The round search method reduces the amount of calculation by reducing the number of search points in the search window 61 while avoiding the enormous calculation required in the all-point search method. In the figure, many search points in the search window 61 are indicated by black dots, and the range of the search window 61 is -7 to +7 for both the X axis and the Y axis. In the first step, it is assumed that nine points indicated by nine circles including a black circle are searched, and among these nine points, the point of the black circle indicates the minimum distortion (sum of absolute differences). In the second step, it is assumed that a search is performed for eight points indicated by eight square marks including the surrounding black squares, and the black square point out of the eight points has the minimum distortion. In the third step, a search is performed for eight points indicated by eight triangles including the surrounding black triangles, and it is determined that the black triangle among the eight points has the minimum distortion. Is shown. The position of the black triangle is used as a motion vector.

【0020】[0020]

【発明が解決しようとする課題】全点探索法を用いる
と、膨大な演算を要求されるから、高速処理のために装
置の構造が高価となってしまい実施が困難であるという
問題点があった。サーチ・ウインドウ61を大きくとる
ととくに問題点が顕著となる。
When the all point search method is used, a huge amount of calculation is required. Therefore, there is a problem that the structure of the apparatus becomes expensive due to high-speed processing, and it is difficult to execute the apparatus. Was. If the search window 61 is made large, the problem becomes particularly noticeable.

【0021】この全点探索法の問題点を解決するために
3段探索法が用いられるが、 サーチ・ウインドウ61内
における探索点が隣合わせておらず飛び飛びになってし
まう(図15)ために、複数の点におけるデータが同一
の値を示すこともあり、同一のデータを繰返し読み込み
演算することがある。このために、データの高速処理に
適したパイプライン構成を使った並列処理を使用するこ
とができない。さらに、探索点が少ないために、局所的
にディストーションが最小値を示す点の動きベクトルを
選択してしまうこともあり、その動きベクトルが候補ブ
ロック62の動きを示すものとはならない場合があると
いう解決されねばならない課題があった。
To solve the problem of the all-points search method, a three-stage search method is used. However, since search points in the search window 61 are not adjacent to each other and are skipped (FIG. 15), Data at a plurality of points may indicate the same value, and the same data may be repeatedly read and operated. Therefore, parallel processing using a pipeline configuration suitable for high-speed data processing cannot be used. Furthermore, since the number of search points is small, a motion vector at a point where the distortion has the minimum value may be locally selected, and the motion vector may not indicate the motion of the candidate block 62 in some cases. There were issues that had to be solved.

【0022】[0022]

【課題を解決するための手段】現フレーム画像をブロッ
クに分割して参照ブロックを得るブロック分割部と、参
照ブロックをさらに分割してサブブロックを得るサブブ
ロック分割部と、サブブロックのアクティビティ(複雑
さ)を求めるためのアクティビティ計算部と、アクティ
ビティの最大値を示すサブブロックに最もエネルギーが
集中しているから、このサブブロックを選択するセレク
タと、セレクタにより選択されたサブブロックを代表サ
ブブロックとしてサーチ・ウインドウの候補ブロックか
ら動きベクトルを求めるためのブロック・マッチング処
理部とを設けた。ブロック・マッチング処理において、
差分絶対値に重み付け処理をして差分2乗値と実質的に
同じ値を得ることもできるようにした。
SUMMARY OF THE INVENTION A block dividing section for dividing a current frame image into blocks to obtain a reference block, a sub-block dividing section for further dividing a reference block to obtain a sub-block, ), A selector for selecting this sub-block, and a sub-block selected by the selector as a representative sub-block, since the energy is concentrated most in the sub-block indicating the maximum value of the activity. A block matching processing unit for obtaining a motion vector from a search window candidate block is provided. In the block matching process,
A weighting process is performed on the absolute difference value to obtain a value substantially the same as the squared difference value.

【0023】[0023]

【作用】サブブロックのアクティビティをブロック・マ
ッチング処理に先立って求めることによって、エネルギ
ーの最も集中している場所を少ない演算回数でブロック
・マッチングの代表サブブロックとして選択することが
できるから、確度の高い動きベクトルを得ることができ
る。また、サブブロックをマッチングの対象とするた
め、ブロック・マッチング処理においては演算回数を大
幅に減らすことが可能となり高速化に適する。さらに、
サーチ・ウインドウのデータを連続的に入力することが
可能となるために、簡単にパイプラインを構成すること
ができるためにより高速化することができる。パイプラ
イン構成における演算量も少ないから、演算回路の数も
少なくてよいために、低コスト化が可能となる。重み付
け処理も加えるならば、さらに高精度な処理が可能とな
る。
By determining the activity of a sub-block prior to the block matching process, the location where the energy is most concentrated can be selected as the representative sub-block of the block matching with a small number of calculations, so that the accuracy is high. A motion vector can be obtained. Further, since the sub-blocks are targeted for matching, the number of calculations in the block matching process can be greatly reduced, which is suitable for high-speed operation. further,
Since it is possible to continuously input the data of the search window, it is possible to easily configure a pipeline, so that the speed can be further increased. Since the amount of operation in the pipeline configuration is small, the number of operation circuits may be small, so that the cost can be reduced. If weighting processing is also added, processing with higher precision can be performed.

【0024】[0024]

【実施例】図1には本発明の一実施例が示されている。
現フレーム画像65をブロックに分割して参照ブロック
63を得るブロック分割部5と、参照ブロック63をさ
らに分割してサブブロックのデータaを得るサブブロッ
ク分割部6と、サブブロックのアクティビティ(複雑
さ)ACTを求めるためのアクティビティ計算部7と、
アクティビティACTの最大値を示すサブブロックに最
もエネルギーが集中しているから、このサブブロックを
選択するセレクタ8と、セレクタ8により選択されたサ
ブブロックを代表サブブロックとしてサーチ・ウインド
ウ61から動きベクトルMVを求めるためのブロック・
マッチング処理部9とがある。
FIG. 1 shows an embodiment of the present invention.
A block dividing section 5 for dividing the current frame image 65 into blocks to obtain a reference block 63; a sub-block dividing section 6 for further dividing the reference block 63 to obtain sub-block data a; ) An activity calculator 7 for determining ACT;
Since the energy is concentrated most on the sub-block showing the maximum value of the activity ACT, the selector 8 for selecting this sub-block, and the sub-block selected by the selector 8 as a representative sub-block from the search window 61 to the motion vector MV Block for seeking
There is a matching processing unit 9.

【0025】図2にはサブブロック分割部6において入
力された参照ブロック63を分割してサブブロックを得
る様子を示している。同図(a)は参照ブロック63を
オーバラップしないで、たとえば、16個のサブブロッ
クSB1〜SB16に分割する様子を示している。サブ
ブロック分割部6は、同図(a)または(b)のいずれ
の分割法を実施するものであってもよいが、以下の説明
においては、理解を容易にするために、同図(a)の分
割法によるものとする。サブブロック分割部6からは各
サブブロックのデータaがアクティビティ計算部7に、
サブブロックのデータaおよび位置情報Iがセレクタ8
に出力されている。図2(a)においては、16個のサ
ブブロックSB1〜SB16がオーバラップもなく、ま
た隙間もなく分割した場合を示したが、各サブブロック
SB1〜SB16の間に適当な隙間を設けるように各サ
ブブロックSB1〜SB16を配置してもよい。
FIG. 2 shows how the sub-block dividing section 6 divides the input reference block 63 to obtain sub-blocks. FIG. 7A shows a state in which the reference block 63 is divided into, for example, 16 sub-blocks SB1 to SB16 without overlapping. The sub-block division unit 6 may perform any of the division methods shown in FIGS. 9A and 9B, but in the following description, for ease of understanding, FIG. ). From the sub-block division unit 6, the data a of each sub-block is sent to the activity calculation unit 7,
The sub-block data a and the position information I are
Is output to FIG. 2A shows a case where the 16 sub-blocks SB1 to SB16 are divided without any overlap and no gap. However, each sub-block SB1 to SB16 is divided so that an appropriate gap is provided between the sub-blocks SB1 to SB16. Sub-blocks SB1 to SB16 may be arranged.

【0026】図3にはアクティビティ計算部7の回路構
成が示されている。アクティビティ計算部7は平均値算
出部100,差分絶対値算出部110および加算部12
0とから成っている。平均値算出部100は加算器10
1,ラッチ103,乗算器104および遅延処理部10
2を含み、差分絶対値算出部110は加算器111,セ
レクタ112とインバータ115,116を含み、加算
部120は加算器121,ラッチ122とインバータ1
25を含んでいる。ラッチ103と122のリセット端
子Rにはリセット信号Rが印加され、初期化されてい
る。
FIG. 3 shows a circuit configuration of the activity calculator 7. The activity calculator 7 includes an average calculator 100, a difference absolute value calculator 110, and an adder 12.
Consists of zero. The average value calculation unit 100 includes the adder 10
1, latch 103, multiplier 104 and delay processing unit 10
2, the absolute difference calculator 110 includes an adder 111, a selector 112, and inverters 115 and 116, and the adder 120 includes an adder 121, a latch 122, and an inverter 1
25. The reset signal R is applied to the reset terminals R of the latches 103 and 122, and the reset terminals R are initialized.

【0027】平均値算出部100において、サブブロッ
クSBのデータa(i,j)が加算器101の入力端子
Aiに印加され、入力端子Biにはラッチ103の出力
端子Qiからの前回のデータが印加されて、加算器10
1の出力端子Ai+Biには総和であるatotal とし
て、 atotal =ΣΣa(i,j) を得る。ここで最初のΣはi=0からP−1まで、次の
Σはj=0からQ−1までの累和を表わし、サブブロッ
クのサイズ(画素数)をP×Qとしている。この総和a
total の出力は、クロックCL1を印加されているラッ
チ103の入力端子Diに加えられラッチされて出力端
子Qiにさらに乗算器104によって1/(PQ)が乗
じられameanを得る。乗算器104ではその入力端子I
に印加されたデータに1/(PQ)が乗じられてその出
力ameanを得ているが、PQ=2nにするならば、シフ
ト演算により実現できる。
In the average value calculating section 100, the data a (i, j) of the sub-block SB is applied to the input terminal Ai of the adder 101, and the previous data from the output terminal Qi of the latch 103 is applied to the input terminal Bi. Applied, adder 10
As a total a sum to one output terminal Ai + Bi, a total = ΣΣa (i, j) obtained. Here, the first Σ represents the sum from i = 0 to P−1, the second Σ represents the sum from j = 0 to Q−1, and the size (number of pixels) of the sub-block is P × Q. This sum a
The total output is applied to the input terminal Di of the latch 103 to which the clock CL1 is applied, latched, and the output terminal Qi is further multiplied by 1 / (PQ) by the multiplier 104 to obtain a mean . The multiplier 104 has its input terminal I
Is multiplied by 1 / (PQ) to obtain the output a mean , but if PQ = 2 n , it can be realized by a shift operation.

【0028】平均値ameanは差分絶対値算出部110に
含まれたインバータ115を介して反転して加算器11
1の入力端子Biに印加され、遅延処理部102で加算
器101とラッチ103で平均値ameanを算出している
期間だけ遅延されたサブブロックSBのデータa(i,
j)は加算器111の入力端子Aiに印加され、加算器
111の入力端子Ciには“1”が印加されて、その出
力端子Ai+Biには差分a(i,j)−ameanを得
て、出力端子Coには選択信号を出力している。
The average value a mean is inverted via an inverter 115 included in the difference absolute value calculation section 110 and is added to the adder 11.
1 is applied to the input terminal Bi of the sub-block SB and delayed by a period during which the average value a mean is calculated by the adder 101 and the latch 103 by the delay processing unit 102.
j) is applied to the input terminal Ai of the adder 111, "1" is applied to the input terminal Ci of the adder 111, and the difference a (i, j) -a mean is obtained at the output terminal Ai + Bi. , An output terminal Co outputs a selection signal.

【0029】差分a(i,j)−ameanは、セレクタ1
12の入力端子Aiにはインバータ116を介して、入
力端子Biには直接に印加され、加算器111からの選
択信号を入力端子Sに受けて差分絶対値|a(i,j)
−amean|を出力端子Yiに得ている。ここで入力端子
Sに“0”が印加されるときには、出力端子Yiには入
力端子Aiの値が得られ、入力端子Sに“1”が印加さ
れているときには、出力端子Yiには入力端子Biの値
が得られる。
The difference a (i, j) -a mean is determined by the selector 1
Twelve input terminals Ai are directly applied to the input terminal Bi via the inverter 116 and receive the selection signal from the adder 111 at the input terminal S to receive the absolute difference value | a (i, j).
−a mean | is obtained at the output terminal Yi. Here, when “0” is applied to the input terminal S, the value of the input terminal Ai is obtained at the output terminal Yi, and when “1” is applied to the input terminal S, the output terminal Yi is applied to the output terminal Yi. The value of Bi is obtained.

【0030】加算部120に含まれた加算器121の入
力端子Ciには加算器111からの選択信号がインバー
タ125を介して印加され、入力端子Aiにはセレクタ
112からの差分絶対値|a(i,j)−amean|が印
加され、入力端子Biにはラッチ122の出力端子Qi
からの出力である前回得られた値が印加され、その出力
端子Ai+BiからはΣΣ|a(i,j)−amean|を
得て、それをラッチ122の入力端子Diに印加してそ
のクロック端子にクロックCL2が印加されるごとにラ
ッチし、アクティビティACTを得ている。ここで、 ACT=ΣΣ|a(i,j)−amean| であり、最初のΣはi=0からP−1まで、次のΣはj
=0からQ−1までの累和を表わす。
The selection signal from the adder 111 is applied to the input terminal Ci of the adder 121 included in the adder 120 via the inverter 125, and the absolute difference value | a ( i, j) -a mean | is applied to the input terminal Bi and the output terminal Qi of the latch 122
From the output terminal Ai + Bi, ΣΣ | a (i, j) −a mean | is obtained, and is applied to the input terminal Di of the latch 122 to generate the clock. Each time the clock CL2 is applied to the terminal, the latch is performed to obtain the activity ACT. Here, ACT = ΣΣ | a (i, j) −a mean | where the first ま で is from i = 0 to P−1, and the next Σ is j
= 0 to Q-1.

【0031】図3のアクティビティ計算部7の一実施例
においては、差分絶対値|a(i,j)−amean|から
累和を得てアクティビティACTを求める場合を示した
が、差分絶対値算出部110と加算部120との間に2
乗算出部を追加するならばアクティビティACTとして ACT=ΣΣ(a(i,j)−amean2 を得ることができる。
In the embodiment of the activity calculating section 7 shown in FIG. 3, a case is shown in which the activity ACT is obtained by obtaining a sum from the absolute difference value | a (i, j) -a mean | 2 between the calculation unit 110 and the addition unit 120
If a power calculation unit is added, ACT = ΣΣ (a (i, j) −a mean ) 2 can be obtained as the activity ACT.

【0032】複数のサブブロックSBのうち最もエネル
ギーの大きなもの、すなわち、最大のアクティビティA
CTを示したサブブロックをセレクタ8において選択す
る。この選択作業は、たとえば、あるサブブロックSB
のデータa(i,j)とサブブロックSBの位置情報か
らなるサブブロック情報IとアクティビティACTとを
記憶し、次回のサブブロックSBのアクティビティAC
Tと比較して大なる方のサブブロックのデータaとサブ
ブロック情報IとアクティビティACTとを記憶するよ
うにすれば、参照ブロック63に含まれた最大のアクテ
ィビティACTを示したサブブロックSBのサブブロッ
ク情報Iがセレクタ8に最後に記憶されて残るから、こ
のサブブロックSBのデータa(i,j)をセレクタ出
力Sとして、また、選ばれたサブブロックSBの番号を
示すサブブロック情報をIs としてセレクタ8からブロ
ック・マッチング処理部9へ送出される。
The sub-block SB having the largest energy, that is, the largest activity A
The selector 8 selects a sub-block indicating CT. This selection operation is performed, for example, in a certain sub block SB
And the activity ACT including the data a (i, j) of the sub-block SB and the position information of the sub-block SB, and the activity AC of the next sub-block SB.
By storing the data a of the sub-block larger than T, the sub-block information I, and the activity ACT, the sub-block SB of the sub-block SB indicating the maximum activity ACT included in the reference block 63 is stored. Since the block information I is finally stored in the selector 8 and remains, the data a (i, j) of the sub-block SB is used as the selector output S, and the sub-block information indicating the number of the selected sub-block SB is represented by I It sent from the selector 8 to the block matching processing unit 9 as s.

【0033】ブロック・マッチング処理部9の構成は図
12ないし図14に示されたものであり、図12のデー
タaとして参照ブロック63からセレクタ8で選ばれた
サブブロックSBのデータa(i,j)であるセレクタ
出力Sが用いられ、サーチ・ウィンドウ61のデータb
(i+v,j+h)またはb′(i+v,j+h)がデ
ータa(i,j)との間でブロック・マッチング演算さ
れる。ここでは参照ブロック63のデータaを用いる従
来例に対して、サブブロックSBのデータa(i,j)
が使用されるから、演算量が少なく、演算量において大
きな差異が生ずる。
The configuration of the block matching processing section 9 is shown in FIGS. 12 to 14. Data a (i, i) of the sub-block SB selected by the selector 8 from the reference block 63 as data a in FIG. j), the data b in the search window 61 is used.
(I + v, j + h) or b '(i + v, j + h) is subjected to a block matching operation with the data a (i, j). Here, as compared with the conventional example using the data a of the reference block 63, the data a (i, j) of the sub-block SB is used.
Is used, the calculation amount is small, and a large difference occurs in the calculation amount.

【0034】ここで、従来の全点探索法と本発明のサブ
ブロックによる探索法との演算量について比較を行う。
参照ブロック63のサイズ(画素数)を16×16、サ
ブブロックのサイズを4×4とし、サブブロックの分割
はオーバラップのない図2(a)の場合、すなわちサブ
ブロックS1〜S16の16個で、サーチ・ウインドウ
61は水平および垂直の両方向ともに−16〜+15で
それぞれ32箇所の範囲で、ブロック・マッチング評価
関数は図12ないし図14に示した絶対値和を使用した
場合とする。
Here, the amount of calculation between the conventional all-point search method and the search method using sub-blocks of the present invention will be compared.
The size (the number of pixels) of the reference block 63 is 16 × 16, the size of the sub-block is 4 × 4, and the division of the sub-block is as shown in FIG. It is assumed that the search window 61 has a range of -16 to +15 in both the horizontal and vertical directions and ranges from 32 locations each, and the block matching evaluation function uses the sum of absolute values shown in FIGS.

【0035】従来例では1個の評価値(動きベクトルM
V)を得るために参照ブロック63のサイズ16×16
=256から、差分絶対値算出部10における256回
の差分絶対値計算が必要になる。さらにサーチ・ウイン
ドウ61の探索範囲は水平が32箇所,垂直32箇所で
あるから総演算量は、 256×32×32=262,144オペレーション
In the conventional example, one evaluation value (the motion vector M
V) size of reference block 63 to obtain 16 × 16
= 256, the difference absolute value calculation unit 10 needs to calculate 256 difference absolute values. Furthermore, since the search range of the search window 61 is 32 locations in the horizontal and 32 locations in the vertical, the total amount of calculation is 256 × 32 × 32 = 262,144 operations

【0036】本発明では、各サブブロックSBのアクテ
ィビティACTを計算するために1つのサブブロックあ
たり平均値算出部100における計算のために16回の
加算演算をし、続いて差分絶対値算出部110における
計算のために16回の差分絶対値計算が加わり、これが
参照ブロック63に含まれた4×4=16個の参照用の
サブブロックSBに対して行われるから(16+16)
×16回となる。これに、ブロック・マッチング処理部
9において、参照用のサブブロックSBの数16個と探
索範囲は水平が32箇所,垂直が32箇所で差分絶対値
算出部10の演算が16×32×32となって加わり、 (16+16)×16+16×32×32=16,89
6オペレーション となるから、演算量は従来例の約16分の1に減少す
る。すなわち、アクティビティ計算部7における演算
(16+16)×16=512オペレーションをするこ
とによってブロック・マッチング処理部9の演算量は1
6分の1になるから総演算数は大幅に減少する。
In the present invention, in order to calculate the activity ACT of each sub-block SB, 16 addition operations are performed for the calculation in the average value calculating unit 100 per sub-block, and then the absolute difference calculating unit 110 is executed. Is added to the calculation of 16 times, and this is performed on 4 × 4 = 16 reference sub-blocks SB included in the reference block 63 (16 + 16).
× 16 times. In addition, in the block matching processing section 9, the number of reference sub-blocks SB is 16 and the search range is 32 places in the horizontal and 32 places in the vertical direction, and the operation of the difference absolute value calculating section 10 is 16 × 32 × 32. (16 + 16) × 16 + 16 × 32 × 32 = 16,89
Since six operations are required, the amount of calculation is reduced to about 1/16 of the conventional example. That is, by performing the operation (16 + 16) × 16 = 512 operations in the activity calculation section 7, the calculation amount of the block matching processing section 9 is 1
Since the number is reduced to one sixth, the total number of operations is greatly reduced.

【0037】以上の説明においてはブロック・マッチン
グ処理部9として図12ないし図14の構成および動作
をする差分絶対値和を用いる場合であり、各演算エレメ
ントPEから得られるディストーションD(=Dij
は、 Dij=ΣΣ|a(i,j)−b(i+v,j+h)| の演算をしていた。
In the above description, the sum of absolute differences having the configuration and operation of FIGS. 12 to 14 is used as the block matching processing section 9, and the distortion D (= D ij ) obtained from each processing element PE.
Has calculated D ij = ΣΣ | a (i, j) −b (i + v, j + h) |.

【0038】これに対して差分2乗和の場合のディスト
ーションDijは次式のように表わされ、 Dij=ΣΣ(a(i,j)−b(i+v,j+h))2 これを用いると、動きベクトルMVを検出するための動
き予測の精度は差分絶対値和を用いる場合よりも高い
が、そのために図14の(a−b)を求める差分絶対値
算出部10とΣΣを求める加算部20との間に(a−
b)2 を求める乗算部を必要とし、回路構成が複雑で大
規模になる。そこで乗算部を設けたのと同様の効果を簡
単な回路構成で得ることのできる重み付け処理部を差分
絶対値算出部10と加算部20との間に設けた。
On the other hand, the distortion D ij in the case of the sum of squared differences is represented by the following equation: D ij = ΣΣ (a (i, j) −b (i + v, j + h)) 2 And the accuracy of motion prediction for detecting the motion vector MV is higher than in the case of using the sum of absolute difference values. For this purpose, the difference absolute value calculation unit 10 for calculating (ab) in FIG. (A-
b) A multiplication unit for obtaining 2 is required, and the circuit configuration becomes complicated and large. Therefore, a weighting processing unit that can obtain the same effect as that of providing the multiplication unit with a simple circuit configuration is provided between the absolute difference value calculation unit 10 and the addition unit 20.

【0039】図4はその一実施例を示す1つの演算エレ
メントの回路構成を示している。図14に示した演算エ
レメントとの相異は、差分絶対値算出部10と加算部2
0との間に入力端子Diと出力端子Yiを有する重み付
け処理部30を設けた点にあり、入力端子Diに印加さ
れたデータ値に応じた係数kn を乗じたディストーショ
ンDとして、 Dij=ΣΣ(kn ×|a(i,j)−b(i+v,j+h)|) を得るようにしているから、この相異点について説明す
る。その他は図12ないし図14において説明したもの
に同じである。
FIG. 4 shows a circuit configuration of one arithmetic element showing one embodiment. The difference from the arithmetic element shown in FIG.
There in that provided weighting processing unit 30 having an input terminal Di and the output terminal Yi between 0, as the distortion D multiplied by the coefficient k n corresponding to the applied data values to the input terminal Di, D ij = ΣΣ (k n × | a ( i, j) -b (i + v, j + h) |) from so as to obtain the, describes this differences point. Others are the same as those described in FIG. 12 to FIG.

【0040】図5には重み付け処理部30の一実施例の
回路構成が示されている。セレクタ31と比較器32を
含み、差分絶対値算出部10に含まれたセレクタ12の
出力端子Yiからの差分絶対値を示すデータD0〜D3
がセレクタ31および比較器32に印加されている。
FIG. 5 shows a circuit configuration of one embodiment of the weighting processing section 30. Data D0 to D3 each including a selector 31 and a comparator 32 and indicating the absolute value of a difference from the output terminal Yi of the selector 12 included in the difference absolute value calculation unit 10.
Is applied to the selector 31 and the comparator 32.

【0041】図6(a)には、データD0〜D3が比較
器32の入力端子a0〜a3にそれぞれ印加されたとき
の出力端子y0,y1の値を例示している。×印はドン
ト・ケアを表わす。データD3,D2,D1が“00
0”であるときはD0の値に関係なく出力端子y1,y
0は“00”、データD3,D2,D1が“001”で
あるときはD0の値に関係なく出力端子y1,y0は
“01”、データD3,D2が“01”であるときはD
1,D0の値に関係なく出力端子y1,y0は“10”
データD3が“1”のときはD2,D1,D0の値に関
係なくy1,y0は“11”を示す。ここにおける比較
器32はデータD3〜D0で示された差分絶対値の値の
範囲を判別して判別信号となるy1,y0を出力する判
別器の機能を果している。
FIG. 6A illustrates the values of the output terminals y0 and y1 when the data D0 to D3 are applied to the input terminals a0 to a3 of the comparator 32, respectively. Crosses indicate don't care. Data D3, D2 and D1 are "00"
0 ", the output terminals y1 and y are independent of the value of D0.
0 is "00", when the data D3, D2 and D1 are "001", the output terminals y1 and y0 are "01" regardless of the value of D0, and when the data D3 and D2 are "01", the output terminal is D.
The output terminals y1 and y0 are "10" regardless of the values of D1 and D0.
When the data D3 is "1", y1 and y0 indicate "11" regardless of the values of D2, D1 and D0. The comparator 32 here has a function of a discriminator that discriminates the range of the absolute value of the difference indicated by the data D3 to D0 and outputs y1 and y0 as discrimination signals.

【0042】図6(b)には比較器32の出力端子y
1,y0に接続されたセレクタ31のセレクト端子s
1,s0の値とセレクタ31の出力端子y6〜y0の値
を例示している。s1,s0が“00”のときy6〜y
0(yi)はa6〜a0(ai)の値を、s1,s0が
“01”のときy6〜y0(yi)はb6〜b0(b
i)の値を、s1,s0が“10”のときy6〜y0
(yi)はc6〜c0(ci)の値を、s1,s0が
“11”のときy6〜y0(yi)はd6〜d0(d
i)の値を出力する。
FIG. 6B shows an output terminal y of the comparator 32.
1, select terminal s of selector 31 connected to y0
1, the values of s0 and the values of the output terminals y6 to y0 of the selector 31 are illustrated. y6 to y when s1 and s0 are "00"
0 (yi) is the value of a6 to a0 (ai), and when s1 and s0 are "01", y6 to y0 (yi) are b6 to b0 (b
The value of i) is set to y6 to y0 when s1 and s0 are “10”.
(Yi) is the value of c6 to c0 (ci), and when s1 and s0 are "11", y6 to y0 (yi) are d6 to d0 (d
Output the value of i).

【0043】図6(c)には入力データD3〜D0と出
力のデータY6〜Y0の関係を示している。D3,D
2,D1が“000”のときには、D0の値がY0とな
りY6〜Y1は“000000”となる。
FIG. 6C shows the relationship between the input data D3 to D0 and the output data Y6 to Y0. D3, D
2. When D1 is "000", the value of D0 is Y0 and Y6 to Y1 are "000000".

【0044】D3,D2,D1が“001”のときはY
6〜Y2は“00001”となり、Y1はD0の値にな
り、Y0は“0”となり、入力のデータD3〜D0に対
して出力のデータY6〜Y0は1ビット分の重み付けが
なされている。D3,D2が“01”のときはY6〜Y
4は“001”となりY3,Y2はそれぞれD1,D0
の値を示し、Y1,Y0は“00”となり、入力のデー
タD3〜D0に対して出力のデータY6〜Y0は2ビッ
ト分の重み付けがなされている。D3が“1”のときは
Y6は“1”となりY5〜Y3はそれぞれD2,D1,
D0の値になりY2〜Y0は“000”となって、入力
のデータD3〜D0に対して出力のデータY6〜Y0は
3ビット分の重み付けがなされている。
When D3, D2 and D1 are "001", Y
6 to Y2 become "00001", Y1 becomes the value of D0, Y0 becomes "0", and the output data Y6 to Y0 are weighted by 1 bit with respect to the input data D3 to D0. When D3 and D2 are "01", Y6 to Y
4 becomes “001”, and Y3 and Y2 are D1 and D0, respectively.
Y1 and Y0 are "00", and the output data Y6 to Y0 are weighted by 2 bits with respect to the input data D3 to D0. When D3 is "1", Y6 is "1" and Y5 to Y3 are D2, D1, respectively.
The value of D0 is obtained, and Y2 to Y0 become "000", and the output data Y6 to Y0 are weighted by 3 bits with respect to the input data D3 to D0.

【0045】図7には、重み付け処理部30の他の実施
例の回路構成が示されている。差分絶対値算出部10に
含まれたセレクタ12の出力端子Yiからの差分絶対値
を示すデータD0〜D3がROM(リード・オンリ・メ
モリ)の入力端子a0〜a3に印加されると、出力端子
y0〜y6から出力のデータY0〜Y6が得られ、これ
が加算部20に含まれた加算器21の入力端子Aiに印
加される。ここで、入力のデータD3〜D0と出力のデ
ータY6〜Y0の関係は、たとえば、図6(c)に示し
たようになっており、図7のROM33は図5の構成と
同じ機能を有する。
FIG. 7 shows a circuit configuration of another embodiment of the weighting processing section 30. When data D0 to D3 indicating the absolute value of the difference from the output terminal Yi of the selector 12 included in the absolute difference calculating unit 10 are applied to the input terminals a0 to a3 of a ROM (read only memory), the output terminal Output data Y0 to Y6 are obtained from y0 to y6 and applied to the input terminal Ai of the adder 21 included in the adder 20. Here, the relationship between the input data D3 to D0 and the output data Y6 to Y0 is, for example, as shown in FIG. 6C, and the ROM 33 in FIG. 7 has the same function as the configuration in FIG. .

【0046】図8には、重み付け処理部30のさらに他
の実施例の回路構成が示されている。差分絶対値算出部
10に含まれたセレクタ12の出力端子Yiからの差分
絶対値を示すデータD0〜D3が、3個のシフタ34−
1〜34−3の入力端子Aと、比較器36の入力端子A
と、セレクタ37の入力端子Dにそれぞれ印加される。
FIG. 8 shows a circuit configuration of still another embodiment of the weighting processing section 30. The data D0 to D3 indicating the absolute value of the difference from the output terminal Yi of the selector 12 included in the difference absolute value calculation unit 10 are provided by three shifters 34-
And input terminals A of the comparators 36 to 34-3.
Is applied to the input terminal D of the selector 37.

【0047】シフタ34−1では差分絶対値を示すデー
タD0〜D3をb0 (たとえば、1)ビット分シフトア
ップしたデータS0 をその出力端子Yに得て、これをセ
レクタ37の入力端子Cと加算器35−1の入力端子B
に印加している。シフタ34−2では差分絶対値を示す
データD0〜D3をb1 (>b0 )(たとえば、2)ビ
ット分シフトアップしたデータS1 をその出力端子Yに
得て、これを加算器35−1の入力端子Aと加算器35
−2の入力端子Bに印加している。シフタ34−3では
差分絶対値を示すデータD0〜D3をb2 (>b1
(たとえば、3)ビット分シフトアップしたデータS2
をその出力端子Yに得て、これを加算器35−2の入力
端子Aに印加している。
[0047] b 0 data D0~D3 indicating the the shifter 34-1 difference absolute value (e.g., 1) to obtain the bit shifted up data S 0 at its output terminal Y, which input terminal C of the selector 37 And input terminal B of adder 35-1
Is applied. B 1 data D0~D3 indicating the absolute difference in the shifter 34-2 (> b 0) (e.g., 2) to obtain bit data S 1 shifted up to the output terminal Y, which adder 35- 1 input terminal A and adder 35
-2 input terminal B. B 2 a data D0~D3 indicating the absolute difference in the shifter 34-3 (> b 1)
Data S 2 shifted up by (for example, 3) bits
At the output terminal Y thereof, and this is applied to the input terminal A of the adder 35-2.

【0048】加算器35−1,35−2では、それぞれ
の入力端子AおよびBに印加されたデータを加算してそ
れぞれの出力端子A+Bからデータを得て、それぞれセ
レクタ37の入力端子BおよびAへ印加している。そこ
でセレクタ37の入力端子Dには差分絶対値を示すデー
タD0〜D3がそのまま、セレクタ37の入力端子Cに
は差分絶対値を示すデータD0〜D3をb0 (たとえ
ば、1)ビット分シフトアップしたデータS0 が、セレ
クタ37の入力端子Bには差分絶対値を示すデータD0
〜D3をb0 (たとえば、1)ビット分シフトアップし
たデータS0 とb1 (たとえば、2)ビット分シフトア
ップしたデータS1 を加算したデータP1=S1 +S0
が、セレクタ37の入力端子Aには差分絶対値を示すデ
ータD0〜D3をb1 (例えば、2)ビット分シフトア
ップしたデータS1 とb2 (たとえば、3)ビット分シ
フトアップしたデータS2 を加算したデータP2 =S2
+S1 が印加される。
The adders 35-1 and 35-2 add the data applied to the respective input terminals A and B to obtain data from the respective output terminals A + B, and obtain the data from the respective input terminals B and A of the selector 37. Is applied. Therefore the input terminal D of the selector 37 as data D0~D3 indicating a difference absolute value, b 0 data D0~D3 indicating the absolute difference value to the input terminal C of the selector 37 (for example, 1) bit shift-up data S 0 is, data D0 to the input terminal B of the selector 37 indicating the absolute differences
~D3 the b 0 (e.g., 1) bit shift up data S 0 and b 1 (e.g., 2) data obtained by adding data S 1 that the bit shifted up P 1 = S 1 + S 0
There, the input terminal of the data D0~D3 indicating the difference absolute values in A b 1 of the selector 37 (e.g., 2) bits shift up data S 1 and b 2 (e.g., 3) bits shift up data S Data obtained by adding 2 P 2 = S 2
+ S 1 is applied.

【0049】差分絶対値を示すデータD0〜D3を印加
された比較器36は、差分絶対値を示すデータD0〜D
3をその入力端子Aに入力されたとき、その入力された
データの値の範囲を判別して出力端子Dに判別信号を出
力する。この差分絶対値を示すデータD0〜D3の値
と、出力端子Dに得られる判別信号の一例は図6(a)
に示すようになっており、図6(a)中のy1,y0が
判別信号に対応している。この比較器36の動作は、た
とえば図6(a)に示すような動作をすればよいから、
ROMであってもよい。
The comparator 36 to which the data D0 to D3 indicating the absolute difference values are applied, generates the data D0 to D3 indicating the absolute difference values.
When 3 is input to the input terminal A, the range of the value of the input data is determined and a determination signal is output to the output terminal D. FIG. 6A shows an example of the values of the data D0 to D3 indicating the absolute value of the difference and the determination signal obtained at the output terminal D.
And y1 and y0 in FIG. 6A correspond to the determination signal. The operation of the comparator 36 may be, for example, as shown in FIG.
It may be a ROM.

【0050】比較器36の出力端子Dに得られた選択信
号を印加されたセレクタ37は、たとえば、データD
3,D2,D1が“000”であるときにはD0の値に
関係なくセレクタ37の入力端子Dのデータがその出力
端子Yから出力データY0〜Y6として出力され、デー
タD3,D2,D1が“001”であるときはD0の値
に関係なくセレクタ37の入力端子Cのデータがその出
力端子Yから出力データY0〜Y6として出力され、デ
ータD3,D2が“01”であるときはD1,D0の値
に関係なくセレクタ37の入力端子Bのデータがその出
力端子Yから出力データY0〜Y6として出力され、デ
ータD3が“1”のときにはD2,D1,D0の値に関
係なくセレクタ37の入力端子Aのデータがその出力端
子Yから出力データY0〜Y6として出力される。
The selector 37 to which the selection signal obtained at the output terminal D of the comparator 36 is applied, for example,
3, D2 and D1 are "000", the data of the input terminal D of the selector 37 is output from the output terminal Y as output data Y0 to Y6 regardless of the value of D0, and the data D3, D2 and D1 are set to "001". ", The data of the input terminal C of the selector 37 is output from the output terminal Y as output data Y0 to Y6 regardless of the value of D0, and when the data D3 and D2 are" 01 ", the data of D1 and D0 are output. Regardless of the value, the data at the input terminal B of the selector 37 is output from the output terminal Y as output data Y0 to Y6. When the data D3 is "1", the input terminal of the selector 37 is independent of the values of D2, D1 and D0. The data of A is output from the output terminal Y as output data Y0 to Y6.

【0051】差分絶対値を示すデータD0〜D3のビッ
ト数がさらに大きくなったときには、シフタ34の段数
および加算器35の段数を大きくすればよい。すなわ
ち、シフタ34の段数をn+1,加算器35の段数をn
とし、n+1個のシフタ34からは順次に大きいビット
数b0 ,b1 ,…,bn 分シフトアップしてn+1個の
シフトアップした値S0 ,S1 ,…,Sn を得て、n個
の加算器35のそれぞれでは、n+1個のシフトアップ
した値S0 ,S1,…,Sn からi段目(iは1からn
まで順次に変化する整数)の加算器35においてi段目
の加算値Pi =Si +Si-1 を得ることによりn個の加
算値P1 ,P2 ,…,Pn を得るように構成することが
できる。
When the number of bits of the data D0 to D3 indicating the absolute difference value further increases, the number of stages of the shifter 34 and the number of stages of the adder 35 may be increased. That is, the number of stages of the shifter 34 is n + 1, and the number of stages of the adder 35 is n.
Sequentially larger number of bits b 0, b 1, from the then, n + 1 pieces of shifter 34 ..., b n is shifted up to a value S 0 was of n + 1 shift up, S 1, ..., to obtain S n, in each of the n adders 35, n + 1 pieces of shift-up values S 0, S 1, ..., i -th stage from S n (i from 1 n
(I.e., an integer that changes sequentially up to the next), the n-th addition value P 1 , P 2 ,..., P n is obtained by obtaining the addition value P i = S i + S i-1 at the i- th stage Can be configured.

【0052】[0052]

【発明の効果】以上の説明から明らかなように、本発明
によるならば、入力ブロックをサブブロックに分割して
そのアクテイビティの最大のものを用いて動きベクトル
を探索するようにしたから、ブロックマッチング処理に
おいては演算量が著しく軽減され、高速化およびコスト
ダウンをすることが可能となった。したがって本発明の
効果は極めて大きい。
As is apparent from the above description, according to the present invention, the input block is divided into sub-blocks, and the motion vector is searched using the largest one of the sub-blocks. In the matching process, the amount of calculation is significantly reduced, and it is possible to increase the speed and reduce the cost. Therefore, the effect of the present invention is extremely large.

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

【図1】本願発明の一実施例を示す回路構成図である。FIG. 1 is a circuit diagram showing an embodiment of the present invention.

【図2】図1の構成において使用されるサブブロックの
分割例を示すサブブロックの分割図である。
FIG. 2 is a sub-block division diagram showing an example of sub-block division used in the configuration of FIG. 1;

【図3】図1の要部であるアクティビティ計算部の実施
例を示す回路構成図である。
FIG. 3 is a circuit configuration diagram showing an embodiment of an activity calculation unit which is a main part of FIG. 1;

【図4】図1の要部であるブロック・マッチング処理部
に用いる演算エレメントの一実施例を示す回路構成図で
ある。
FIG. 4 is a circuit configuration diagram showing one embodiment of an arithmetic element used in a block matching processing unit which is a main part of FIG. 1;

【図5】図4の要部である重み付け処理部の一実施例を
示す回路構成図である。
FIG. 5 is a circuit diagram showing one embodiment of a weighting processing unit which is a main part of FIG. 4;

【図6】図4の多くの端子のデータ値を示したデータ値
図である。
FIG. 6 is a data value diagram showing data values of many terminals of FIG. 4;

【図7】図4の要部である重み付け処理部の他の実施例
を示す回路構成図である。
FIG. 7 is a circuit diagram showing another embodiment of the weighting processing unit which is a main part of FIG. 4;

【図8】図4の要部である重み付け処理部のさらに他の
実施例を示す回路構成図である。
FIG. 8 is a circuit configuration diagram showing still another embodiment of the weighting processing unit which is a main part of FIG.

【図9】従来の動き補償フレーム間予測の概念を示す概
念図である。
FIG. 9 is a conceptual diagram showing the concept of conventional motion compensated inter-frame prediction.

【図10】従来の動き補償フレーム間予測のブロック・
マッチングによる動きベクトル探索法におけるサーチ・
ウィンドウの候補ブロックと参照ブロックの関係を示す
ブロック関係図である。
FIG. 10 is a block diagram showing a conventional motion compensation inter-frame prediction block;
Search and search in motion vector search by matching
FIG. 4 is a block diagram showing a relationship between a window candidate block and a reference block.

【図11】図10の候補ブロックと参照ブロックからデ
ィストーションを計算する画素を示す画素図である。
11 is a pixel diagram showing pixels for calculating distortion from the candidate block and the reference block in FIG. 10;

【図12】従来の動きベクトルを探索するブロック・マ
ッチング処理部の回路構成図である。
FIG. 12 is a circuit diagram of a conventional block matching processing unit for searching for a motion vector.

【図13】図12の構成要素である演算エレメントの動
作の流れを示すフローチャートである。
FIG. 13 is a flowchart showing the flow of the operation of the arithmetic element which is a component of FIG.

【図14】従来の演算エレメントの回路構成図である。FIG. 14 is a circuit diagram of a conventional arithmetic element.

【図15】従来のブロック・マッチングにおける3段探
索法を説明する画素図である。
FIG. 15 is a pixel diagram illustrating a three-stage search method in conventional block matching.

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

5 ブロック分割部 6 サブブロック分割部 7 アクティビティ計算部 8 セレクタ 9 ブロック・マッチング処理部 10 差分絶対値算出部 11 加算器 12 セレクタ 15,16 インバータ 20 加算部 21 加算器 22 ラッチ 25 インバータ 30 重み付け処理部 31 セレクタ 32 比較器 33 ROM 34−1〜34−3 シフタ 35−1,35−2 加算器 36 比較器 37 セレクタ 51 入力選択回路 52 演算エレメント群 53 比較回路 54 タイミング信号発生回路 55 出力回路 61 サーチ・ウィンドウ 62 候補ブロック 63 参照ブロック 65 現フレーム画像 100 平均値算出部 101 加算器 102 遅延処理部 103 ラッチ 104 乗算器 110 差分絶対値算出部 111 加算器 112 セレクタ 115,116 インバータ 120 加算部 121 加算器 122 ラッチ 125 インバータ ACT アクティビティ a データ CL1,CL2 クロック D,Dij 差分絶対値和 I,Is サブブロック情報 MV 動きベクトル PE,PE0〜PE15 演算エレメント S セレクタ出力 SB1〜SB64 サブブロックReference Signs List 5 block dividing unit 6 sub-block dividing unit 7 activity calculating unit 8 selector 9 block matching processing unit 10 absolute difference calculating unit 11 adder 12 selector 15, 16 inverter 20 adding unit 21 adder 22 latch 25 inverter 30 weighting processing unit Reference Signs List 31 selector 32 comparator 33 ROM 34-1 to 34-3 shifter 35-1, 35-2 adder 36 comparator 37 selector 51 input selection circuit 52 operation element group 53 comparison circuit 54 timing signal generation circuit 55 output circuit 61 search Window 62 candidate block 63 reference block 65 current frame image 100 average value calculation unit 101 adder 102 delay processing unit 103 latch 104 multiplier 110 difference absolute value calculation unit 111 adder 112 selector 115, 116 a Converter 120 addition unit 121 adder 122 latch 125 inverter ACT activity a data CL1, CL2 clock D, D ij sum of absolute differences I, I s subblock information MV motion vector PE, PE0~PE15 calculation elements S selector output SB1~SB64 Sub block

Claims (12)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 現フレーム画像(65)を分割して参照
ブロック(63)を得るブロック分割処理をし(5)、 前記参照ブロック(63)をさらに小さな所定のサブブ
ロック(SB)に分割するサブブロック分割処理をし
(6)、 前記各サブブロックの画像データ(a)からそれぞれの
アクティビティ(ACT)を求める計算処理をし
(7)、 前記それぞれのアクティビティ(ACT)のうちから最
大のアクティビティを示したサブブロックを参照用のサ
ブブロックとして選択し(8)、 前記選択された参照用のサブブロックと前フレームのサ
ーチ・ウインドウ(61)に含まれた候補ブロック(6
2)とから動きベクトル(MV)を探索するブロック・
マッチング処理をする(9)動画像圧縮におけるブロッ
ク・マッチング方法。
1. A block dividing process for dividing a current frame image (65) to obtain a reference block (63) (5), and dividing the reference block (63) into smaller predetermined sub-blocks (SB). A sub-block division process is performed (6), and a calculation process for obtaining each activity (ACT) from the image data (a) of each sub-block is performed (7). The largest activity among the respective activities (ACT) is performed. Is selected as a reference sub-block (8), and the selected reference sub-block and the candidate block (6) included in the search window (61) of the previous frame are selected.
2) A block for searching for a motion vector (MV) from
(9) A block matching method in video compression.
【請求項2】 前記アクティビティを求める計算処理に
おいて、 前記各サブブロックの画像データ(a)からそれぞれの
サブブロックの画像データ(a)の平均値(amean)を
算出し(100)、 前記平均値(amean)と前記それぞれのサブブロックの
画像データ(a)とを受けてサブブロック用の差分絶対
値(|a−amean|)を算出し(110)、 前記サブブロック用の差分絶対値(|a−amean|)を
累和して前記それぞれのサブブロックのアクティビティ
(ACT=ΣΣ|a−amean|)を算出する(120)
請求項1の動画像圧縮におけるブロック・マッチング方
法。
2. In the calculation processing for obtaining the activity, an average value (a mean ) of image data (a) of each sub-block is calculated from the image data (a) of each sub-block (100). Receiving the value (a mean ) and the image data (a) of each of the sub-blocks, a difference absolute value (| a-a mean |) for the sub-block is calculated (110), and the difference absolute value for the sub-block is calculated. The activity (ACT = ΣΣ | aa mean |) of each of the sub-blocks is calculated by accumulating the values (| aa mean |) (120).
A block matching method in moving image compression according to claim 1.
【請求項3】 前記アクティビティを求める計算処理に
おいて、 前記各サブブロックの画像データ(a)からそれぞれの
サブブロックの画像データ(a)の平均値(amean)を
算出し(100)、 前記平均値(amean)と前記それぞれのサブブロックの
画像データとを受けて差分(a−amean)を算出し、 前記差分(a−amean)を2乗して2乗した値((a−
mean2 )を得、 前記2乗した値を累和して前記それぞれのサブブロック
のアクティビティ(ACT=ΣΣ(a−amean2 )を
算出する請求項1の動画像圧縮におけるブロック・マッ
チング方法。
3. In the calculation processing for obtaining the activity, an average value (a mean ) of image data (a) of each sub-block is calculated from the image data (a) of each sub-block (100). Receiving the value (a mean ) and the image data of each of the sub-blocks, a difference (a-a mean ) is calculated, and the difference (a-a mean ) is squared to obtain a value ((a-
a mean) 2) to obtain a block of the squared the activity of each of the sub-block values by Ruiwa the (ACT = ΣΣ (a-a mean) 2) moving image compression according to claim 1 for calculating the Matching method.
【請求項4】 前記ブロック・マッチング処理におい
て、 前記選択された参照用のサブブロックのデータ(a)と
前記候補ブロック(62)のデータ(b)とからディス
トーション用の差分絶対値(|a(i,j)−b(i+
v,j+h)|)を算出し(10)、 前記ディストーション用の差分絶対値(|a(i,j)
−b(i+v,j+h)|)を累和してディストーショ
ン(Dij=ΣΣ(|a(i,j)−b(i+v,j+
h)|)を得る(20)請求項1の動画像圧縮における
ブロック・マッチング方法。
4. In the block matching processing, a difference absolute value (| a () for distortion is obtained from the data (a) of the selected reference sub-block and the data (b) of the candidate block (62). i, j) -b (i +
v, j + h) |) (10), and the absolute value of the difference for distortion (| a (i, j)
−b (i + v, j + h) |) and add the distortion (D ij = ΣΣ (| a (i, j) -b (i + v, j +
h) |) is obtained (20). The block matching method in video compression according to claim 1.
【請求項5】 前記ブロック・マッチング処理におい
て、 前記選択された参照用のサブブロックのデータ(a)と
前記候補ブロック(62)のデータ(b)とからディス
トーション用の差分値(a(i,j)−b(i+v,j
+h))を算出し、 前記ディストーション用の差分値(a(i,j)−b
(i+v,j+h))を2乗して差分2乗値((a
(i,j)−b(i+v,j+h))2 )を算出し、 前記差分2乗値((a(i,j)−b(i+v,j+
h))2 )を累和してディストーション(Dij=ΣΣ
(a(i,j)−b(i+v,j+h))2 )を得る請
求項1の動画像圧縮におけるブロック・マッチング方
法。
5. In the block matching process, a difference value (a (i, i) for distortion is obtained from the data (a) of the selected reference sub-block and the data (b) of the candidate block (62). j) -b (i + v, j
+ H)), and calculates the difference value (a (i, j) -b) for the distortion.
(I + v, j + h)) and the squared difference value ((a
(I, j) −b (i + v, j + h)) 2 ), and calculates the difference squared value ((a (i, j) −b (i + v, j +
h)) The sum of 2 ) is added to obtain the distortion (D ij = ΣΣ
2. The method according to claim 1, wherein (a (i, j) -b (i + v, j + h)) 2 ) is obtained.
【請求項6】 前記ブロック・マッチング処理におい
て、 前記選択された参照用のサブブロックのデータ(a)と
前記候補ブロック(62)のデータ(b)とからディス
トーション用の差分絶対値(|a(i,j)−b(i+
v,j+h)|)を算出し(10)、 前記ディストーション用の差分絶対値(|a(i,j)
−b(i+v,j+h)|)にあらかじめ定めた重み付
け処理をし(30)、 前記重み付け処理をした差分絶対値を累和して重み付け
処理後の前記差分絶対値和をディストーション(Dij
ΣΣ(kn ×|a(i,j)−b(i+v,j+h)
|))として得る(20)請求項1の動画像圧縮におけ
るブロック・マッチング方法。
6. In the block matching process, a difference absolute value (| a () for distortion is obtained from the data (a) of the selected reference sub-block and the data (b) of the candidate block (62). i, j) -b (i +
v, j + h) |) (10), and the absolute value of the difference for distortion (| a (i, j)
−b (i + v, j + h) |) is subjected to a predetermined weighting process (30), and the weighted difference absolute values are summed, and the weighted difference absolute value sum is subjected to distortion (D ij =
ΣΣ (k n × | a (i, j) -b (i + v, j + h)
The block matching method according to claim 1, wherein the block matching method is obtained as |)).
【請求項7】 現フレーム画像(65)を分割して参照
ブロック(63)を得るブロック分割手段(5)と、 前記参照ブロック(63)をさらに小さな所定のサブブ
ロック(SB)に分割するサブブロック分割手段(6)
と、 前記各サブブロックの画像データ(a)からそれぞれの
アクティビティ(ACT)を求めるためのアクティビテ
ィ計算手段(7)と、 前記それぞれのアクティビティ(ACT)のうちから最
大のアクティビティを示したサブブロックを参照用のサ
ブブロックとして選択するためのセレクタ手段(8)
と、 前記選択された参照用のサブブロックと前フレームのサ
ーチ・ウインドウ(61)に含まれた候補ブロック(6
2)とから動きベクトル(MV)を探索するブロック・
マッチング処理をするためのブロック・マッチング処理
手段(9)とを含む動画像圧縮におけるブロック・マッ
チング装置。
7. A block dividing means (5) for dividing a current frame image (65) to obtain a reference block (63), and a sub-division for dividing said reference block (63) into smaller predetermined sub-blocks (SB). Block dividing means (6)
Activity calculation means (7) for calculating each activity (ACT) from the image data (a) of each sub-block; and a sub-block indicating the largest activity among the respective activities (ACT). Selector means (8) for selecting as a reference sub-block
And the candidate block (6) included in the selected reference sub-block and the previous frame search window (61).
2) A block for searching for a motion vector (MV) from
A block matching device in moving image compression, including a block matching processing means (9) for performing a matching process.
【請求項8】 前記アクティビティ計算手段(7)が、 前記各サブブロックの画像データ(a)からそれぞれの
サブブロックの画像データ(a)の平均値(amean)を
算出するための平均値算出手段(100)と、 前記平均値(amean)と前記それぞれのサブブロックの
画像データ(a)とを受けてサブブロック用の差分絶対
値(|a−amean|)を算出するための差分絶対値算出
手段(110)と、 前記サブブロック用の差分絶対値(|a−amean|)を
累和して前記それぞれのサブブロックのアクティビティ
(ACT)を算出するためのアクティビティ用の加算手
段(120)とを含む請求項7の動画像圧縮におけるブ
ロック・マッチング装置。
8. An average value calculation for calculating an average value (a mean ) of image data (a) of each sub-block from the image data (a) of each sub-block by the activity calculating means (7). Means (100) for receiving the average value (a mean ) and the image data (a) of each of the sub-blocks and calculating a difference absolute value (| a-a mean |) for the sub-block An absolute value calculation means (110); and an activity addition means for calculating the activity (ACT) of each of the sub-blocks by accumulating the difference absolute values (| a-a mean |) for the sub-blocks. 10. The block matching apparatus according to claim 7, further comprising: (120).
【請求項9】 前記アクティビティ計算手段(7)が、 前記各サブブロックの画像データ(a)からそれぞれの
サブブロックの画像データ(a)の平均値(amean)を
算出するための平均値算出手段(100)と、 前記平均値(amean)と前記それぞれのサブブロックの
画像データ(a)とを受けて差分(a−amean)を算出
するための差分算出手段と、 前記差分(a−amean)を2乗した値((a−amean
2 )を得るための2乗手段と、 前記2乗した値を累和して前記それぞれのサブブロック
のアクティビティ(ACT=ΣΣ(a−amean2 )を
算出するためのアクティビティ加算手段(120)とを
含む請求項7の動画像圧縮におけるブロック・マッチン
グ装置。
9. An average value calculation for calculating an average value (a mean ) of image data (a) of each sub-block from the image data (a) of each sub-block by the activity calculating means (7). Means (100); difference calculating means for receiving the average value (a mean ) and the image data (a) of each of the sub-blocks and calculating a difference (a-a mean ); −a mean ) squared ((a−a mean )
2 ) and an activity adding means (120) for calculating the activity (ACT = ΣΣ (a−a mean ) 2 ) of each of the sub-blocks by accumulating the squared values. 9. The block matching apparatus according to claim 7, further comprising:
【請求項10】 前記ブロック・マッチング処理手段
(9)が、 前記選択された参照用サブブロックのデータ(a)と前
記候補ブロック(62)のデータ(b)とからディスト
ーション用の差分絶対値(|a(i,j)−b(i+
v,j+h)|)を算出するための差分絶対値算出手段
(10)と、 前記ディストーション用の差分絶対値(|a(i,j)
−b(i+v,j+h)|)を累和してディストーショ
ン(Dij=ΣΣ(|a(i,j)−b(i+v,j+
h)|)を得るためのディストーション用の加算手段
(20)とを含む請求項7の動画像圧縮におけるブロッ
ク・マッチング装置。
10. The block matching processing means (9) calculates a differential absolute value for distortion from the data (a) of the selected reference sub-block and the data (b) of the candidate block (62). | A (i, j) -b (i +
v, j + h) |), and the absolute difference value for distortion (| a (i, j)).
−b (i + v, j + h) |) and add the distortion (D ij = ΣΣ (| a (i, j) -b (i + v, j +
8. A block matching apparatus for moving image compression according to claim 7, further comprising a distortion adding means for obtaining h) |).
【請求項11】 前記ブロック・マッチング処理手段
(9)が、 前記選択された参照用サブブロックのデータ(a)と前
記候補ブロック(62)のデータ(b)とからディスト
ーション用の差分絶対値(|a(i,j)−b(i+
v,j+h)|)を算出するための差分絶対値算出手段
(10)と、 ディストーション用の差分値(a(i,j)−b(i+
v,j+h))を算出するためのディストーション用の
差分値算出手段と、 前記ディストーション用の差分値(a(i,j)−b
(i+v,j+h))を2乗して差分2乗値((a
(i,j)−b(i+v,j+h))2 )を算出するた
めの差分2乗手段と、 前記差分2乗値((a(i,j)−b(i+v,j+
h))2 )を累和してディストーション(Dij=ΣΣ
((a(i,j)−b(i+v,j+h)2 )を得るた
めの差分2乗値加算手段とを含む請求項7の動画像圧縮
におけるブロック・マッチング装置。
11. The block matching processing means (9) calculates a difference absolute value for distortion from the data (a) of the selected reference sub-block and the data (b) of the candidate block (62). | A (i, j) -b (i +
v, j + h) |), and a difference value (a (i, j) -b (i +
v, j + h)) for calculating a difference value for distortion, and a difference value for distortion (a (i, j) −b).
(I + v, j + h)) and the squared difference value ((a
(I, j) -b (i + v, j + h)) 2 ) for calculating the difference square means ((a (i, j) -b (i + v, j +
h)) The sum of 2 ) is added to obtain the distortion (D ij = ΣΣ
8. The block matching apparatus according to claim 7, further comprising: a difference square value adding means for obtaining ((a (i, j) -b (i + v, j + h) 2 )).
【請求項12】 前記ブロック・マッチング処理手段
(9)が、 前記選択された参照用サブブロックのデータ(a)と前
記候補ブロック(62)のデータ(b)とからディスト
ーション用の差分絶対値(|a(i,j)−b(i+
v,j+h)|)を算出するための差分絶対値算出手段
(10)と、 前記ディストーション用の差分絶対値(|a(i,j)
−b(i+v,j+h)|)にあらかじめ定めた重み付
け処理をするための重み付け処理手段(30)と、 前記重み付け処理をした差分絶対値を累和して重み付け
処理後の前記差分絶対値和をディストーション(Dij
ΣΣ(kn ×(|a(i,j)−b(i+v,j+h)
|))として得るためのディストーション用の加算手段
(20)とを含む請求項7の動画像圧縮におけるブロッ
ク・マッチング装置。
12. The block matching processing means (9) calculates a difference absolute value for distortion from the data (a) of the selected reference sub-block and the data (b) of the candidate block (62). | A (i, j) -b (i +
v, j + h) |), and the absolute difference value for distortion (| a (i, j)).
-B (i + v, j + h) |), and a weighting processing means (30) for performing a predetermined weighting process; and accumulating the weighted difference absolute values to obtain the difference absolute value sum after the weighting process. Distortion (D ij =
ΣΣ (k n × (| a (i, j) -b (i + v, j + h)
8. The block matching apparatus in moving image compression according to claim 7, further comprising a distortion adding means (20) for obtaining as |)).
JP5339791A 1993-12-06 1993-12-06 Block matching method and apparatus in video compression Expired - Lifetime JP2934143B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5339791A JP2934143B2 (en) 1993-12-06 1993-12-06 Block matching method and apparatus in video compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5339791A JP2934143B2 (en) 1993-12-06 1993-12-06 Block matching method and apparatus in video compression

Publications (2)

Publication Number Publication Date
JPH07162865A JPH07162865A (en) 1995-06-23
JP2934143B2 true JP2934143B2 (en) 1999-08-16

Family

ID=18330845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5339791A Expired - Lifetime JP2934143B2 (en) 1993-12-06 1993-12-06 Block matching method and apparatus in video compression

Country Status (1)

Country Link
JP (1) JP2934143B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008061162A (en) * 2006-09-04 2008-03-13 Fujitsu Ltd Motion vector search apparatus and motion vector search method

Also Published As

Publication number Publication date
JPH07162865A (en) 1995-06-23

Similar Documents

Publication Publication Date Title
JP3611507B2 (en) Motion vector detection device
JP2001218215A (en) Motion estimator
US6925124B2 (en) Unit for and method of motion estimation and image processing apparatus provided with such motion estimation unit
JPH1013839A (en) Half pixel motion estimate device
US6330282B1 (en) Block matching arithmetic device and recording medium readable program-recorded machine
Pan et al. VLSI architectures for block matching algorithms using systolic arrays
JP2934143B2 (en) Block matching method and apparatus in video compression
JP2934146B2 (en) Block matching method and apparatus in video compression
JP2934134B2 (en) Block matching method and apparatus in video compression
JPWO2004012460A1 (en) Motion vector detection apparatus and motion vector detection method
JP2005253015A (en) Apparatus and method for detecting motion vector, and program
JP2885039B2 (en) Motion vector detection circuit
JP4160855B2 (en) Block matching image processing device
JP2000102015A (en) Motion vector detector and motion vector detection method
JP2866325B2 (en) Motion vector search device
JP2869142B2 (en) Image motion detection method
JP2000105683A (en) Adaptive differential arithmetic unit and motion detector
JP4155102B2 (en) Pixel value calculation device, moving image encoding device, and moving image decoding device
JP2691559B2 (en) Pixel density conversion device and method thereof
JP2852870B2 (en) Motion vector detection method and apparatus in image coding
JPH0993581A (en) Motion detector for moving image coder
JP2988836B2 (en) Motion vector search method
JP2866326B2 (en) Motion vector search device
JP2901848B2 (en) Vector correlation detection circuit
Girotra et al. An architecture for affine motion estimation in real-time video coding

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20090625

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

Free format text: PAYMENT UNTIL: 20100625

Year of fee payment: 11

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20100625

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

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20110625

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110625

Year of fee payment: 12