JP2007235333A - Motion vector detector - Google Patents

Motion vector detector Download PDF

Info

Publication number
JP2007235333A
JP2007235333A JP2006052126A JP2006052126A JP2007235333A JP 2007235333 A JP2007235333 A JP 2007235333A JP 2006052126 A JP2006052126 A JP 2006052126A JP 2006052126 A JP2006052126 A JP 2006052126A JP 2007235333 A JP2007235333 A JP 2007235333A
Authority
JP
Japan
Prior art keywords
tracking
block
reference block
similarity
detected
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.)
Withdrawn
Application number
JP2006052126A
Other languages
Japanese (ja)
Inventor
Kenji Yoshihara
賢士 吉原
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2006052126A priority Critical patent/JP2007235333A/en
Publication of JP2007235333A publication Critical patent/JP2007235333A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a tracking type motion vector detector in which tracking is not stopped even if the central point of search has a highest similarity but the rest can be tracked through a simple configuration and which is hard to fall into a local solution. <P>SOLUTION: The motion vector detector comprises a means 7-3 for detecting a block having highest similarity with an object block out of reference blocks corresponding to searching points in four directions, a means 7-6 for storing a block of highest similarity out of the detected reference blocks, a means 7-8 for comparing the detected reference block with the stored reference block and judging the end only when the stored reference block has a higher similarity and the number of times of tracking is even, and a control means 7-1 for starting next tracking operation with the position of the detected reference block as the center of tracking if the end is judged and detecting a motion vector from the position of the detected reference block. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、動画像圧縮符号化に用いられる追跡型の動きベクトルの検出装置に関するものである。 The present invention relates to a tracking type motion vector detection apparatus used for moving image compression coding.

蓄積メディア、放送、通信などの動画像の圧縮符号化には、MPEGに代表される動き補償予測を使った符号化方式が使われている。この方式では、画像のブロック(例えば、マクロブロック。以下、画像のブロックを代表してMBとも記す。)を単位として、フレーム間の動き量に相当する動きベクトル(以下、MVとも記す。)を求め、圧縮対象ブロックの画像を伝送する代わりに、1フレーム前の参照画像上の前記ブロック予測位置におけるMBと前記MBの画像の差分(予測誤差)を伝送して、データ量を減らすものである。 For compression encoding of moving images such as storage media, broadcasting, and communication, an encoding method using motion compensation prediction represented by MPEG is used. In this method, a motion vector (hereinafter also referred to as MV) corresponding to the amount of motion between frames in units of an image block (for example, a macroblock; hereinafter, also referred to as MB as a representative of the image block). Instead of transmitting the image of the compression target block, the difference (prediction error) between the MB at the block prediction position on the reference image one frame before and the image of the MB is transmitted to reduce the data amount. .

この動きベクトルMVは、圧縮対象画像ブロックMBoを、所定の探索範囲の参照画像と画像比較(ブロックマッチング)して、類似度を計算し、参照画像上の最も類似したブロックMBrを検出し、圧縮対象ブロックの位置PBoと最も類似した参照ブロックの位置PBrのずれとして検出する。なお、位置は画素を単位として(X,Y)座標で表す。
MV=PBo−PBr
ただし、類似度には、通常類似度とは逆相関の関係にある誤差評価値が使われ、例えばMB間の差分絶対値の総和(SAD:Sum of Absolute Difference)を使うが、差分自乗和、または圧縮符号化後の符号量などを用いてもよい。(以下、誤差評価値を代表してSADとも記す。)
この動きベクトルの検出精度は、データ量、結果的には画像品質に大きく影響するが、MV検出には大量の演算が必要となるため、少ない演算量で効果のある方法が求められている。そこで、解像度の低い画像でおおまかなMVを求め、さらに精度を上げてMVを求める階層型検出法、後述する追跡型検出法(逐次探索型検出法ともいう。)、またブロックマッチングによらない勾配法などの演算量の少ない動きベクトル探索手法が提案され、用途に合わせて、単独あるいは組み合わせて使われている。
This motion vector MV compares the compression target image block MBo with a reference image in a predetermined search range (block matching), calculates a similarity, detects the most similar block MBr on the reference image, and compresses This is detected as a deviation of the position PBr of the reference block most similar to the position PBo of the target block. The position is expressed in (X, Y) coordinates in units of pixels.
MV = PBo-PBr
However, an error evaluation value that is inversely related to the normal similarity is used as the similarity, and for example, a sum of absolute differences between MBs (SAD: Sum of Absolute Difference) is used. Alternatively, a code amount after compression encoding may be used. (Hereinafter, the error evaluation value is also referred to as SAD.)
This motion vector detection accuracy greatly affects the amount of data and consequently the image quality. However, since a large amount of computation is required for MV detection, an effective method is required with a small amount of computation. Therefore, a hierarchical detection method that obtains a rough MV from an image with a low resolution, and further increases the accuracy to obtain the MV, a tracking type detection method (also referred to as a sequential search type detection method) described later, and a gradient that does not depend on block matching. A motion vector search method with a small amount of computation such as a method has been proposed, and is used alone or in combination depending on the application.

従来の追跡型動きベクトル検出法について、図10を参照して説明する。
追跡型動きベクトル検出法では、追跡中心点の周りに上下左右に1画素ずらした4点および追跡中心点の5点の探索点を有する探索パターン(図10(A)参照。)に基づいて、複数の探索点に配置された参照ブロックの中から圧縮対象ブロックと最も類似した参照ブロックを検出して、その検出点に探索パターンの中心を移動させる。そして、この処理を中心点が極小となり移動が停止するまで繰り返し、最も類似した参照ブロックを追跡することにより、対象ブロックと最も類似した参照ブロックの位置を求め、動きベクトルを検出するものである。(例えば、特許文献1参照。)
以下、追跡動作を具体的に説明する。図10(B)は、探索範囲を垂直3画素、水平8画素とした場合の、SADの分布例、また図10(C)は、探索パターンによる追跡動作の繰り返し回数(カウント)を、追跡回数#(番号)として表示したものである。なお、以下、探索パターンの位置は中心点で代表させ、ブロックの位置は1行1列目の左上の点で代表させるとともに、説明の簡略化のため、対象ブロック位置、および灰色で示した初期中心点をともに(0,0)とする。
追跡回数#1では、探索パターンを初期中心点(0,0)において、十字型探索パターン5点のSADが計算され、右点(SAD=20)が5点最小点として検出され、追跡中心点を右に1画素移動する。SAD最小点の位置PBminは、(1,0)となる。
次に、追跡回数#2では、追跡中心点(1,0)において、同様に探索パターン5点のSADが計算され、右点(SAD=16)が5点最小点として検出され、追跡中心点は右に1画素移動する。SAD最小点の位置PBminは、(2,0)となる。
追跡回数#3では、追跡中心点(2,0)において、同様に探索パターン5点のSADが計算されるが、ここでは、中心点(SAD=16)が5点最小点として検出されるので、追跡は終了して、記憶されているSAD最小点の位置PBmin(2,0)がMVとなる。
実はこの追跡動作例では、図10(B)に示すSAD分布の場合、極小点(2,0)まで達しているが、最小点(5,0)には達していない。すなわち、追跡型動きベクトル検出法は、探索範囲を全てブロックマッチングして調べる方法に比べて、ブロックマッチングの回数が少なく、演算量も少なくて済むが、必ずしも正しいMVを求められるとは限らず、追跡ルート上の局所解に陥り追跡を停止してしまうこともある。すなわち、上下左右周辺点上にSADが単調減少する追跡ルートがある間は、最小値を求めて追跡を続けるが、中心点が極小となって、上下左右4点のSADがいずれも大きい場合には、それらが障壁となって、その先にもっと小さなSADがあっても、そこに到達することはできない。
このため、追跡型検出法は、階層型探索法により予め探索範囲を狭めてから補助的に使う組み合わせ用途、また演算処理能力が低い携帯端末などの簡易型用途などに使われる。
特開2004−236023号公報(第5−7頁、第1−3図)
A conventional tracking type motion vector detection method will be described with reference to FIG.
In the tracking type motion vector detection method, based on a search pattern (see FIG. 10A) that has four search points shifted by one pixel vertically and horizontally around the tracking center point and five tracking center points. A reference block most similar to the compression target block is detected from the reference blocks arranged at a plurality of search points, and the center of the search pattern is moved to the detection point. Then, this process is repeated until the center point becomes minimum and the movement stops, and the most similar reference block is tracked to obtain the position of the reference block most similar to the target block and detect the motion vector. (For example, refer to Patent Document 1.)
Hereinafter, the tracking operation will be specifically described. FIG. 10B shows an example of SAD distribution when the search range is vertical 3 pixels and horizontal 8 pixels, and FIG. 10C shows the number of tracking operations repeated (count) by the search pattern. It is displayed as # (number). In the following, the position of the search pattern is represented by the center point, the position of the block is represented by the upper left point in the first row and the first column, and for the sake of simplification of explanation, the target block position and the initial position shown in gray The center points are both (0, 0).
At the tracking number # 1, the SAD of the five cross-shaped search patterns is calculated at the initial center point (0, 0) of the search pattern, the right point (SAD = 20) is detected as the five minimum points, and the tracking center point Is moved one pixel to the right. The position PBmin of the SAD minimum point is (1, 0).
Next, at the tracking number # 2, the SAD of the five search patterns is similarly calculated at the tracking center point (1, 0), the right point (SAD = 16) is detected as the five minimum points, and the tracking center point Moves one pixel to the right. The position PBmin of the SAD minimum point is (2, 0).
In the tracking number # 3, the SAD of the five search patterns is calculated in the same manner at the tracking center point (2, 0), but here, the center point (SAD = 16) is detected as the five minimum points. The tracking is finished, and the stored position PBmin (2, 0) of the SAD minimum point becomes MV.
Actually, in this tracking operation example, in the case of the SAD distribution shown in FIG. 10B, the minimum point (2, 0) is reached, but the minimum point (5, 0) is not reached. That is, the tracking type motion vector detection method requires fewer block matchings and requires less computation compared to a method in which all search ranges are checked by block matching, but a correct MV is not always obtained. It may fall into a local solution on the tracking route and stop tracking. That is, while there is a tracking route on which the SAD monotonously decreases on the upper, lower, left, and right peripheral points, the tracking is continued by obtaining the minimum value, but when the center point is minimized and the SAD of the upper, lower, left, and right four points is large. Will not be able to reach them, even if there is a smaller SAD beyond them as a barrier.
For this reason, the tracking type detection method is used for a combination application that is supplementarily used after narrowing the search range in advance by the hierarchical search method, or for a simple type application such as a portable terminal with low arithmetic processing capability.
Japanese Unexamined Patent Publication No. 2004-236023 (page 5-7, FIG. 1-3)

追跡型動きベクトル探索法は、少ない演算量で動きベクトルを効率的に検出できるが、その追跡過程で、単調減少ルートが見つからない場合には、その1画素先に最小値があっても、そこで追跡は終了し局所解に陥るという問題があった。 The tracking-type motion vector search method can efficiently detect a motion vector with a small amount of computation, but if a monotonously decreasing route is not found in the tracking process, even if there is a minimum value ahead of that one pixel, there is There was a problem that tracking ended and fell into a local solution.

そこで、本発明は、上記のような問題点を解消するためになされたもので、演算量を増やすことなく、簡単な構成で、1画素だけであれば、単調減少ルートが途切れても、さらに先の最小値を追跡でき、局所解に陥りにくい動きベクトルの検出装置を提供することを目的とする。   Therefore, the present invention has been made to solve the above-described problems. Even if only one pixel is used with a simple configuration without increasing the amount of calculation, the monotonous decrease route is further interrupted. It is an object of the present invention to provide a motion vector detection device that can track the minimum value and is less likely to fall into a local solution.

本願発明における第1の発明は、動き補償予測符号化で圧縮の対象となる画像ブロックを、所定の探索パターンに基づいて配置された参照画像上の複数のブロックと比較し、前記比較した複数のブロックの中で最も類似した参照ブロックを検出し、前記検出した参照ブロックの位置に前記探索パターンを移動させて移動による追跡処理を繰り返すことにより、圧縮対象ブロックに最も類似した参照ブロックを検出して、動きベクトルを求める追跡型動きベクトル検出装置において、上下左右4つの探索点を有する探索パターンの追跡中心位置を、参照画像上に設定する追跡中心位置設定手段(追跡中心設定部7−4)と、前記圧縮対象ブロックのアドレス、および前記追跡中心位置設定された探索パターンの探索点に配置された複数の参照ブロックのアドレスを設定するアドレス設定手段(アドレス設定部7−5)と、前記アドレス設定された圧縮対象ブロックと前記アドレス設定された複数の各参照ブロックとの画像をそれぞれ比較して、前記比較された各参照ブロックの類似度を計算する類似度計算手段(SAD計算部7−2)と、前記計算された類似度により、前記複数の参照ブロックのうち、類似度の最も高い参照ブロックを検出する類似ブロック検出手段(SAD4点最小ブロック検出部7−3)と、前記類似ブロック検出手段で検出された類似度の最も高い参照ブロックの類似度と、記憶部に既に記憶されている参照ブロックの類似度とを比較して、前記記憶された参照ブロックの類似度の方が低い場合には、この参照ブロックの類似度および参照ブロックの位置を、前記検出された参照ブロックの類似度および参照ブロックの位置に置き換えて更新する一方、前記記憶された参照ブロックの類似度の方が高いか等しく、かつ繰り返し回数が隔数回の場合に限り、終了と判定する更新終了判定手段(最小点記憶部7−6、SAD最小点検出部7−7、終了判定部7−8)と、前記更新終了判定手段により終了と判定されなかった場合には、前記追跡中心位置設定手段により探索パターンの追跡中心位置として設定された前記検出された参照ブロックの位置に基づいて、追跡処理を繰り返すよう制御する一方、終了と判定された場合には、前記記憶部に記憶されている参照ブロックの位置から動きベクトル検出するよう制御する制御手段(制御部7−1)とを備えたことを特徴とする動きベクトル検出装置を提供する。
第2の発明は、動き補償予測符号化で圧縮の対象となる画像ブロックを、所定の探索パターンに基づいて配置された参照画像上の複数のブロックと比較し、前記比較した複数のブロックの中で最も類似した参照ブロックを検出し、前記検出した参照ブロックの位置に前記探索パターンを移動させて移動による追跡処理を繰り返すことにより、圧縮対象ブロックに最も類似した参照ブロックを検出して、動きベクトルを求める追跡型動きベクトル検出装置において、上下左右4つの探索点を有する探索パターンの追跡中心位置を、参照画像上に設定する追跡中心位置設定手段(追跡中心設定部7−4)と、前記圧縮対象ブロックのアドレス、および前記追跡中心位置設定された探索パターンの探索点に配置された複数の参照ブロックのアドレスを設定するアドレス設定手段(アドレス設定部7−5)と、前記アドレス設定された圧縮対象ブロックと前記アドレス設定された複数の各参照ブロックとの画像をそれぞれ比較して、前記比較された各参照ブロックの類似度を計算する類似度計算手段(SAD計算部7−2)と、前記計算された類似度により、前記複数の参照ブロックのうち、類似度の最も高い参照ブロックを検出する類似ブロック検出手段(SAD4点最小ブロック検出部7−3)と、前記類似ブロック検出手段で検出された類似度の最も高い参照ブロックの類似度と、記憶部に既に記憶されている参照ブロックの類似度とを比較して、前記記憶された参照ブロックの類似度の方が低い場合には、この参照ブロックの類似度および参照ブロックの位置を、前記検出された参照ブロックの類似度および参照ブロックの位置に置き換えて更新する一方、前記記憶された参照ブロックの類似度の方が高いか等しく、かつ繰り返し回数が隔数回の場合に限り、終了と判定する更新終了判定手段(最小点記憶部7−6、SAD最小点検出部7−7、終了判定部7−8)と、前記更新終了判定手段により終了と判定されなかった場合には、前記追跡中心位置設定手段により探索パターンの追跡中心位置として設定された前記検出された参照ブロックの位置に基づいて、追跡処理を繰り返すよう制御する一方、前記記憶された参照ブロックの類似度の方が高いか等しく、かつ前記類似ブロック検出手段で検出された参照ブロックの位置と前記記憶部に記憶された参照ブロックの位置を比較して、一致した場合に限り終了と判定する更新終了判定手段(最小点記憶部7−6、SAD最小点検出部7−7、終了判定部7−9)と、前記更新終了判定手段により終了と判定されなかった場合には、前記追跡中心位置設定手段により探索パターンの追跡中心位置として設定された前記検出された参照ブロックの位置に基づいて、追跡処理を繰り返すよう制御する一方、終了と判定された場合には、前記記憶部に記憶されている参照ブロックの位置から動きベクトル検出するよう制御する制御手段(制御部7−1)とを備えたことを特徴とする動きベクトル検出装置を提供する。
第3の発明は、動き補償予測符号化で圧縮の対象となる画像ブロックを、所定の探索パターンに基づいて配置された参照画像上の複数のブロックと比較し、前記比較した複数のブロックの中で最も類似した参照ブロックを検出し、前記検出した参照ブロックの位置に前記探索パターンを移動させて移動による追跡処理を繰り返すことにより、圧縮対象ブロックに最も類似した参照ブロックを検出して、動きベクトルを求める追跡型動きベクトル検出装置において、上下左右4つの探索点を有する探索パターンの追跡中心位置を、参照画像上に設定する追跡中心位置設定手段(追跡中心設定部7−4)と、前記圧縮対象ブロックのアドレス、および前記追跡中心位置設定された探索パターンの探索点に配置された複数の参照ブロックのアドレスを設定するアドレス設定手段(アドレス設定部7−5)と、前記アドレス設定された圧縮対象ブロックと前記アドレス設定された複数の各参照ブロックとの画像をそれぞれ比較して、前記比較された各参照ブロックの類似度を計算する類似度計算手段(SAD計算部7−2)と、前記計算された類似度により、前記複数の参照ブロックのうち、類似度の最も高い参照ブロックを検出する類似ブロック検出手段(SAD4点最小ブロック検出部7−3)と、前記類似ブロック検出手段で検出された類似度の最も高い参照ブロックの類似度と、記憶部に既に記憶されている参照ブロックの類似度とを比較して、前記記憶された参照ブロックの類似度の方が低い場合には、この参照ブロックの類似度および参照ブロックの位置を、前記検出された参照ブロックの類似度および参照ブロックの位置に置き換える更新手段(最小点記憶部7−6、SAD最小点検出部7−7)と、前記追跡処理の繰り返し回数が所定の追跡処理回数になると、終了と判定する終了判定手段(終了判定部7−10)と、前記終了判定手段により終了と判定されなかった場合には、前記追跡中心位置設定手段により探索パターンの追跡中心位置として設定された前記検出された参照ブロックの位置に基づいて、追跡処理を繰り返すよう制御する一方、終了と判定された場合には、前記記憶部に記憶されている参照ブロックの位置から動きベクトル検出するよう制御する制御手段(制御部7−1)とを備えたことを特徴とする動きベクトル検出装置を提供する。
According to a first aspect of the present invention, an image block to be compressed by motion compensated prediction coding is compared with a plurality of blocks on a reference image arranged based on a predetermined search pattern, and the plurality of compared By detecting the most similar reference block among the blocks, moving the search pattern to the position of the detected reference block and repeating the tracking process by movement, the reference block most similar to the compression target block is detected. In the tracking type motion vector detecting device for obtaining a motion vector, tracking center position setting means (tracking center setting unit 7-4) for setting a tracking center position of a search pattern having four search points in the upper, lower, left, and right directions on a reference image; A plurality of reference blocks arranged at the search point of the search pattern in which the address of the block to be compressed and the tracking center position are set. The address setting means (address setting unit 7-5) for setting the address of the block is compared with the images of the compression target block to which the address has been set and the plurality of reference blocks to which the address has been set. The similarity calculation means (SAD calculation unit 7-2) for calculating the similarity of each of the reference blocks thus detected, and the reference block having the highest similarity among the plurality of reference blocks is detected by the calculated similarity. Similar block detection means (SAD 4-point minimum block detection section 7-3), the similarity of the reference block with the highest similarity detected by the similar block detection means, and the reference block already stored in the storage section When the similarity of the stored reference block is lower than that of the stored reference block, the similarity of the reference block and the position of the reference block are The update is performed by replacing the detected similarity of the reference block and the position of the reference block, while the similarity of the stored reference block is higher or equal and the number of repetitions is a fractional number of times. Update end determination means (minimum point storage unit 7-6, SAD minimum point detection unit 7-7, end determination unit 7-8) and the update end determination unit Based on the position of the detected reference block set as the tracking center position of the search pattern by the tracking center position setting means, the tracking process is controlled to be repeated. A motion vector detection device comprising control means (control unit 7-1) for performing control to detect a motion vector from the position of a reference block stored in To do.
According to a second aspect of the present invention, an image block to be compressed by motion compensated prediction coding is compared with a plurality of blocks on a reference image arranged based on a predetermined search pattern. , The reference block most similar to the compression target block is detected by moving the search pattern to the position of the detected reference block and repeating the tracking process by movement. A tracking center position setting unit (tracking center setting unit 7-4) for setting a tracking center position of a search pattern having four search points in the upper, lower, left, and right directions on a reference image; Address of the target block, and addresses of a plurality of reference blocks arranged at the search point of the search pattern in which the tracking center position is set The address setting means (address setting unit 7-5) to be set is compared with the images of the address set compression target block and the plurality of address set reference blocks, respectively, and the compared reference blocks Similarity calculation means (SAD calculation unit 7-2) for calculating the similarity of the reference block, and similar block detection means for detecting a reference block having the highest similarity among the plurality of reference blocks based on the calculated similarity (SAD 4-point minimum block detector 7-3) and the similarity of the reference block with the highest similarity detected by the similar block detector and the similarity of the reference block already stored in the storage unit are compared. If the similarity of the stored reference block is lower, the similarity of the reference block and the position of the reference block are determined as the detected reference block. While updating by replacing with the block similarity and the reference block position, the update is judged to end only when the similarity of the stored reference block is higher or equal and the number of repetitions is a fractional number. If the determination means (minimum point storage unit 7-6, SAD minimum point detection unit 7-7, end determination unit 7-8) and the update end determination unit do not determine the end, the tracking center position setting is performed. The tracking control is repeated based on the position of the detected reference block set as the tracking center position of the search pattern by the means, while the similarity of the stored reference block is higher or equal, and The position of the reference block detected by the similar block detection means is compared with the position of the reference block stored in the storage unit, and it is determined that the process is finished only when they match. If the update end determination unit (minimum point storage unit 7-6, SAD minimum point detection unit 7-7, end determination unit 7-9) and the update end determination unit do not determine the end, the tracking center Based on the position of the detected reference block set as the tracking center position of the search pattern by the position setting means, the tracking process is controlled to be repeated. There is provided a motion vector detection device comprising control means (control unit 7-1) for controlling to detect a motion vector from the position of a reference block.
According to a third aspect of the present invention, an image block to be compressed by motion compensated predictive coding is compared with a plurality of blocks on a reference image arranged based on a predetermined search pattern, and among the plurality of compared blocks. , The reference block most similar to the compression target block is detected by moving the search pattern to the position of the detected reference block and repeating the tracking process by movement. A tracking center position setting unit (tracking center setting unit 7-4) for setting a tracking center position of a search pattern having four search points in the upper, lower, left, and right directions on a reference image; Address of the target block, and addresses of a plurality of reference blocks arranged at the search point of the search pattern in which the tracking center position is set The address setting means (address setting unit 7-5) to be set is compared with the images of the address set compression target block and the plurality of address set reference blocks, respectively, and the compared reference blocks Similarity calculation means (SAD calculation unit 7-2) for calculating the similarity of the reference block, and similar block detection means for detecting a reference block having the highest similarity among the plurality of reference blocks based on the calculated similarity (SAD 4-point minimum block detector 7-3) and the similarity of the reference block with the highest similarity detected by the similar block detector and the similarity of the reference block already stored in the storage unit are compared. If the similarity of the stored reference block is lower, the similarity of the reference block and the position of the reference block are determined as the detected reference block. Update means (minimum point storage unit 7-6, SAD minimum point detection unit 7-7) for replacing with block similarity and reference block position, and when the number of repetitions of the tracking process reaches a predetermined number of tracking processes, When the end determination means (end determination section 7-10) for determining and the end determination means do not determine the end, the detection set as the tracking center position of the search pattern by the tracking center position setting means is detected. Control means for controlling to repeat the tracking process based on the position of the reference block, while controlling to detect a motion vector from the position of the reference block stored in the storage unit when it is determined to end. A motion vector detecting device including a control unit 7-1) is provided.

各請求項記載の本発明によれば、上下左右の周辺点に配置された参照ブロックのうち圧縮対象ブロックと最も類似した参照ブロックへ追跡中心点の移動を繰り返して、最も類似した参照ブロックの位置を追跡するが、必ずしも追跡中心点が上下左右の周辺点で最も類似した位置に達した場合に追跡を終了するわけではなく、さらに先の類似した位置を追跡することができる。このため、局所解に陥る確率を減少させることができる。
また第1の発明によれば、繰り返し回数が偶数または奇数どちらかの追跡処理の場合に限り追跡を終了する構成であるので、従来例をほとんど変更しないで、簡単に実現できる。
また第2の発明によれば、追跡中に中心点が同一位置に回帰することにより追跡を終了する。このため、追跡回数の偶数/奇数などに左右されず、局所解に陥る確率をさらに減少させることができる。
また第3の発明によれば、所定の追跡回数になると追跡を終了するため、制限回数になるまでの追跡処理で見つかった最も類似した参照ブロックから動きベクトルを検出する。このため、動きベクトルの検出にかかる時間はいつも一定であり、同期した処理が必要な圧縮符号化装置に使用すると好適である。
According to the present invention described in each claim, the position of the most similar reference block is determined by repeatedly moving the tracking center point to the reference block most similar to the compression target block among the reference blocks arranged at the upper, lower, left and right peripheral points. However, the tracking is not necessarily terminated when the tracking center point reaches the most similar position at the upper, lower, left, and right peripheral points, and a further similar position can be tracked. For this reason, the probability of falling into a local solution can be reduced.
Further, according to the first invention, the tracking is terminated only when the number of repetitions is an even number or odd number tracking process, so that the conventional example can be easily realized with almost no change.
According to the second invention, the tracking is terminated when the center point returns to the same position during the tracking. For this reason, the probability of falling into a local solution can be further reduced without being influenced by the even / odd number of times of tracking.
According to the third aspect of the invention, since the tracking is terminated when the predetermined number of tracking times is reached, the motion vector is detected from the most similar reference block found in the tracking processing until the limit number of times is reached. For this reason, the time required to detect a motion vector is always constant, and it is preferable to use it for a compression encoding apparatus that requires synchronized processing.

本発明は、追跡型動きベクトル検出方法の従来の終了判定方法を改良することによって、局所解に陥る確率を減少させたものである。以下、本発明を実施するための最良の形態につき、好ましい実施例を用い説明する。   The present invention reduces the probability of falling into a local solution by improving the conventional end determination method of the tracking type motion vector detection method. Hereinafter, the best mode for carrying out the present invention will be described using preferred embodiments.

実施例1について、図1〜図5を用いて説明する。図1は、動画像符号化装置の構成を示した図である。図2は、動き補償予測部の構成を示した図である。図3は、動作フローチャートを示す。図4と図5は、追跡動作の例を示した図である。 Example 1 will be described with reference to FIGS. FIG. 1 is a diagram illustrating a configuration of a moving image encoding apparatus. FIG. 2 is a diagram illustrating a configuration of the motion compensation prediction unit. FIG. 3 shows an operation flowchart. 4 and 5 are diagrams illustrating examples of the tracking operation.

最初に、動き補償予測符号化装置について説明する。本実施例における動画像符号化装置は、図1に示すように、対象画像メモリ1、減算器2、予測誤差符号化部3、予測誤差復号化部4、加算器5、参照画像メモリ6、動き補償予測部7、可変長符号化部8から構成され、以下のように動画像符号化を実現している。
入力された画像は、対象画像メモリ1に蓄積されて、コントローラ(表示せず。)の制御のもとに、MBを単位として、圧縮対象画像として出力され、減算器2により後述する予測画像との差分をとって、予測誤差を生成して、予測誤差符号化部3によりDCT変換・量子化された符号を、可変長符号化部8により可変長符号化、フォーマット化して、圧縮画像として出力される。また前記予測画像は、動き補償予測部7により、対象画像メモリ1出力の対象画像と参照画像メモリ6出力の1フレーム前の参照画像とから、動きベクトルを求めて、動き補償された予測画像として生成されたもので、動きベクトルとともに出力される。この時の参照画像は、局部復号され参照画像メモリ6に蓄積された符号化済みの画像画像が使われる。局部復号は、前記DCT変換・量子化された符号が、予測誤差復号化部4によりもとの予測誤差に復号されて、加算器5により前記予測画像に加算されることにより復号される。
First, the motion compensation predictive coding apparatus will be described. As shown in FIG. 1, the moving image encoding apparatus according to the present embodiment includes a target image memory 1, a subtracter 2, a prediction error encoding unit 3, a prediction error decoding unit 4, an adder 5, a reference image memory 6, It is composed of a motion compensation prediction unit 7 and a variable length encoding unit 8, and realizes moving image encoding as follows.
The input image is accumulated in the target image memory 1 and output as a compression target image in units of MB under the control of a controller (not displayed). And the prediction error encoding unit 3 performs DCT transform and quantization on the code, and the variable length encoding unit 8 performs variable length encoding and formatting, and outputs the result as a compressed image. Is done. In addition, the motion compensation prediction unit 7 obtains a motion vector from the target image output from the target image memory 1 and the reference image one frame before output from the reference image memory 6 by the motion compensated prediction unit 7. It is generated and output together with the motion vector. As the reference image at this time, a coded image image that is locally decoded and stored in the reference image memory 6 is used. In the local decoding, the DCT transformed / quantized code is decoded into the original prediction error by the prediction error decoding unit 4 and added to the prediction image by the adder 5 to be decoded.

次に、本発明の主要部である前期動き補償予測部7の構成、および各要素の機能について説明する。動き補償予測部7は、制御部7−1、SAD計算部7−2、SAD4点最小ブロック検出部7−3、追跡中心設定部7−4、アドレス設定部7−5、最小点記憶部7−6、SAD最小点検出部7−7、終了判定部7−8から構成されている。
SAD計算部7−2は、4つのSAD計算部を備え、圧縮対象MB、および上下左右探索点の各参照MBを入力して、ブロックマッチングを行って、差分絶対値和SADを求め、上下左右探索点のSADをそれぞれ、SAD4点最小ブロック検出部7−3に出力する。なお、SAD計算部7−2は、本来3個備えていれば演算は可能であるが、移動方向の判定処理などが必要となるため、本実施例では、4個として高速化したものである。また、SAD計算部2つで時分割処理を行い、4個のSADを計算しても、同様の効果が得られる。
SAD4点最小ブロック検出部7−3は、SAD計算部7−2から出力された上下左右MBのSADの値が最小となるMBを判別して、前記最小MBのSADの値(以下、SAD4minとも記す。)、およびそのMB位置(以下、PB4minとも記す。)を出力する。
追跡中心設定部7−4は、前記PB4minを入力して、これを追跡中心点として出力する。なお、追跡開始の初期設定時には、制御部7−1から入力した初期中心点を追跡中心点として出力する。
アドレス設定部7−5は、制御部7−1から入力した対象画像メモリ1の圧縮対象MBのアドレス、および前記追跡中心設定部7−4から入力した追跡中心点にもとづく参照画像メモリ6の上下左右の参照MBのアドレスを設定して、対応するMBデータをSAD計算部に読み込ませる。また、MV検出が完了した時には、終了処理として、参照画像メモリ6から、記憶部7−6に記憶されたPBmin位置の参照MBを読み出して予測画像として出力する機能も持つ。
最小点記憶部7−6は、これまで現れたSADの最小値SADmin、およびそのMB位置PBminを記憶する部位である。
SAD最小点検出部7−7は、SAD4点最小ブロック検出部7−3から出力されたSAD4minと最小点記憶部7−6に記憶されたSADminを比較して、SAD4minの方が小さい場合には、SADminをSAD4minに書き換えるとともに、付随するPBminもPB4minに書き換えて、SADが最小値となる最小点を更新する。逆にSAD4minの方が大きいか等しい場合には、追跡中心点が最小となったことを示す中心点極小信号を出力する。
終了判定部7−8は、中心点極小信号を受けて、制御部7−1に制御され、追跡回数が偶数回目の時に限り、制御部7−1に終了信号を出力する。奇数回目の時は無視する。
制御部7−1は、基本的には、全ての構成要素を制御(図示せず。)して、MV検出の進行制御を行い、MVの追跡ステップを進める。特に、終了処理として、アドレス設定部7−5を制御して、予測画像を出力するとともに、対象ブロック位置PBoと参照ブロックの位置PBminの座標差分(図示せず。)を動きベクトルMVとして出力する。そして、各構成要素を制御して、次のMBのMV検出にうつる。
なお、従来例では、中心点極小信号はそのまま終了信号となっている。すなわち、本実施例から、終了判定部7−8を削除して、中心点極小信号を終了信号としてそのまま出力すれば、従来例と一致するものである。
Next, the configuration of the previous-term motion compensation prediction unit 7 that is a main part of the present invention and the function of each element will be described. The motion compensation prediction unit 7 includes a control unit 7-1, an SAD calculation unit 7-2, an SAD 4-point minimum block detection unit 7-3, a tracking center setting unit 7-4, an address setting unit 7-5, and a minimum point storage unit 7. -6, SAD minimum point detection unit 7-7, and end determination unit 7-8.
The SAD calculation unit 7-2 includes four SAD calculation units, inputs the compression target MB and each reference MB of the upper, lower, left, and right search points, performs block matching, obtains the sum of absolute differences SAD, Each SAD of the search point is output to the SAD 4-point minimum block detector 7-3. The SAD calculation unit 7-2 can perform computations if it is originally provided with three units, but it requires a moving direction determination process and the like, so in this embodiment, the number is increased to four. . The same effect can be obtained by performing time-sharing processing with two SAD calculation units and calculating four SADs.
The SAD 4-point minimum block detector 7-3 discriminates the MB where the SAD value of the upper, lower, left and right MBs output from the SAD calculator 7-2 is minimum, and the SAD value of the minimum MB (hereinafter also referred to as SAD4min). And its MB position (hereinafter also referred to as PB4min).
The tracking center setting unit 7-4 inputs the PB4min and outputs it as a tracking center point. At the initial setting of tracking start, the initial center point input from the control unit 7-1 is output as the tracking center point.
The address setting unit 7-5 moves the upper and lower sides of the reference image memory 6 based on the address of the compression target MB of the target image memory 1 input from the control unit 7-1 and the tracking center point input from the tracking center setting unit 7-4. The addresses of the left and right reference MBs are set, and the corresponding MB data is read by the SAD calculation unit. Further, when the MV detection is completed, as a termination process, the reference image memory 6 also has a function of reading the reference MB at the PBmin position stored in the storage unit 7-6 and outputting it as a predicted image.
The minimum point storage unit 7-6 is a part that stores the SAD minimum value SADmin that has appeared so far, and its MB position PBmin.
The SAD minimum point detection unit 7-7 compares the SAD4min output from the SAD4 point minimum block detection unit 7-3 with the SADmin stored in the minimum point storage unit 7-6, and if SAD4min is smaller, , SADmin is rewritten to SAD4min, and the accompanying PBmin is also rewritten to PB4min to update the minimum point at which SAD becomes the minimum value. On the other hand, if SAD4min is greater or equal, a center point minimum signal indicating that the tracking center point is minimized is output.
The end determination unit 7-8 receives the center point minimum signal, is controlled by the control unit 7-1, and outputs an end signal to the control unit 7-1 only when the number of times of tracking is an even number. Ignored for odd number of times.
The control unit 7-1 basically controls all components (not shown), performs MV detection progress control, and advances the MV tracking step. In particular, as an end process, the address setting unit 7-5 is controlled to output a predicted image, and a coordinate difference (not shown) between the target block position PBo and the reference block position PBmin is output as a motion vector MV. . Then, each constituent element is controlled, and the MV detection of the next MB is performed.
In the conventional example, the minimum signal at the center point is the end signal as it is. That is, if the end determination unit 7-8 is deleted from the present embodiment and the center point minimum signal is output as it is as the end signal, it is consistent with the conventional example.

次に、前記構成の動き補償予測部7によるMV検出動作手順について、図3のフローチャートを用いて説明する。
所定のMBのMV検出が開始されると、まず制御部7−1は、圧縮対象MB位置PBoを更新して、初期設定を行う(ステップS1)。初期中心点は、周辺MBから予測した位置(例えば、一つ前のMBのMVとPBoの和)とする。記憶部7−6のPBminは初期中心点位置、SADminは、初期中心点のSADの値とする。ただし、初期中心点のSADが不明な場合は、設定できる最大の値とする。終了判別部7−8の追跡回数CT(カウンタ)の値を0にセットする。
Next, the MV detection operation procedure by the motion compensation prediction unit 7 having the above-described configuration will be described with reference to the flowchart of FIG.
When MV detection of a predetermined MB is started, the control unit 7-1 first updates the compression target MB position PBo and performs initial setting (step S1). The initial center point is a position predicted from the surrounding MB (for example, the sum of MV and PBo of the previous MB). In the storage unit 7-6, PBmin is the initial center point position, and SADmin is the SAD value of the initial center point. However, if the SAD of the initial center point is unknown, the maximum value that can be set is used. The value of the tracking number CT (counter) of the end determination unit 7-8 is set to zero.

次に、追跡動作について説明する。追跡中心設定部7−4は、SAD4点最小ブロック検出部7−3から出力されたPB4minを追跡中心点として設定する(ステップS2)。ただし、最初は、初期設定の初期中心点のままとする。
アドレス設定部7−5は、圧縮対象MB位置PBoのMBを対象画像メモリ1から読み出してSAD計算部に書き込むとともに、追跡中心点PB4minの上下左右のMBを参照画像メモリ6から読み出して各上下左右のSAD計算部5−2に書き込む(ステップS3)。
SAD計算部7−2は、前記書き込まれた圧縮対象MBと参照MBの各対応する画素の差分をとり、その絶対値の加算結果をSADとして計算して、上下左右それぞれ出力する。(ステップS4)
SAD4点最小ブロック検出部7−3は、前記上下左右4つのSADのうち最も小さいSADのMBを最小ブロックとして、その中心点位置をPB4min、SADの値をSAD4minとして出力する(ステップS5)。
Next, the tracking operation will be described. The tracking center setting unit 7-4 sets PB4min output from the SAD 4-point minimum block detecting unit 7-3 as a tracking center point (step S2). However, initially, the initial center point is set as the initial setting.
The address setting unit 7-5 reads the MB at the compression target MB position PBo from the target image memory 1 and writes it to the SAD calculation unit, and reads the upper, lower, left, and right MBs of the tracking center point PB4min from the reference image memory 6 to Is written in the SAD calculation unit 5-2 (step S3).
The SAD calculation unit 7-2 takes the difference between the corresponding pixels of the written MB to be compressed and the reference MB, calculates the addition result of the absolute value as SAD, and outputs the result in the vertical and horizontal directions. (Step S4)
The SAD 4-point minimum block detection unit 7-3 outputs the smallest SAD MB among the four vertical, left, and right SADs as the minimum block, outputs the center point position as PB4min, and the SAD value as SAD4min (step S5).

次に、終了判定方法について説明する。制御部7−1は、追跡回数CTの値を+1する。また、SAD最小点検出部7−7は、前記出力されたSAD4minを最小点記憶部7−6に記憶されているSADminと比較して、SADminが大きい場合には、ステップS6−2に進み、小さいか等しい場合には、中心点が最小であることを示す中心点極小信号を出力するとともに、ステップS6−3に進む(ステップS6−1)。
ステップS6−2では、最小点記憶部7−6に記憶されているSADmin、PBminをSAD4min、PB4minに置き換えて、ステップS2に進み、次の追跡にうつる(ステップS6−2)
ステップS6−3では、終了判定部7−8は、追跡回数CTの値が奇数の場合には、ステップS2に進み、次の追跡にうつり、偶数の場合には、終了信号を出力してステップS7に進み、終了処理に入る(ステップS6−3)。
Next, an end determination method will be described. The control unit 7-1 increments the value of the tracking number CT by +1. The SAD minimum point detection unit 7-7 compares the output SAD4min with the SADmin stored in the minimum point storage unit 7-6. If SADmin is large, the process proceeds to step S6-2. If it is smaller or equal, a center point minimum signal indicating that the center point is minimum is output and the process proceeds to step S6-3 (step S6-1).
In step S6-2, SADmin and PBmin stored in the minimum point storage unit 7-6 are replaced with SAD4min and PB4min, and the process proceeds to step S2 to proceed to the next tracking (step S6-2).
In step S6-3, the end determination unit 7-8 proceeds to step S2 when the value of the number of times of tracking CT is an odd number, proceeds to the next tracking, and outputs an end signal when the number is even. The process proceeds to S7 and the end process is entered (step S6-3).

制御部7−1は、終了信号を入力すると、終了処理として、最小点記憶部7−6、アドレス設定部7−5を制御して予測画像を出力するとともに、MVを出力して、このMBの動き補償予測処理を終了する(ステップS7)。 When the end signal is input, the control unit 7-1 controls the minimum point storage unit 7-6 and the address setting unit 7-5 to output a predicted image and outputs an MV as an end process. This motion compensation prediction process is terminated (step S7).

次に、以上の構成、動作ステップを持つ動き補償予測部7によるMV検出動作について2つの追跡例により具体的に説明する。なお、以下の図面上では、従来例同様、対象ブロック位置、および初期中心点位置を(0,0)とする。
まず、図4により追跡動作1について説明する。図4(A)は、従来例の図10(B)と同一のSAD分布図、図4(B)は、図10(C)に相当する追跡動作を表している。
追跡回数#1では、初期中心点で、SADmin=(大きな数)、PBmin=(0,0)であり、上下左右周辺点のSADが計算されると、右点(SAD4min=20)が4点最小点として検出される。ここでは追跡回数が奇数で終了判定されないため、追跡中心点は右に1画素移動する。そして、SADmin=20、PBmin=(1,0)となる。
次に、追跡回数#2では、同様に周辺点のSADが計算され、右点(SAD4min=16)が4点最小点として検出される。ここでは追跡回数が偶数で終了判定されるが、SADminよりSAD4minが小さいので、追跡は続行される。そして、SADmin=16、PBmin=(2,0)となり、追跡中心点は右に1画素移動する。
追跡回数#3では、同様に周辺点のSADが計算され、右点(SAD4min=17)が4点最小点として検出される。ここでは、SADminよりSAD4minが大きいので、本来であればMVの追跡は終了するはずであるが、追跡回数が奇数で終了判定されないため、追跡は続行される。そして、SADmin=16、PBmin=(2,0)は、維持され、追跡中心点は右に1画素移動する。
追跡回数#4では、同様に周辺点のSADが計算され、右点(SAD4min=15)が4点最小点として検出される。ここでは追跡回数が偶数で終了判定されるが、SADminよりSAD4minが小さいので、追跡は続行される。そして、SADmin=15、PBmin=(4,0)となり、追跡中心点は右に1画素移動する。
追跡回数#5では、同様に周辺点のSADが計算され、右点(SAD4min=14)が4点最小点として検出される。ここでは、追跡回数が奇数で終了判定されず、SADminよりSAD4minが小さいので、SADmin=14、PBmin=(5,0)となり、追跡中心点は右に1画素移動する。
追跡回数#6では、同様に周辺点のSADが計算され、左点(SAD4min=15)が4点最小点として検出される。そして追跡回数が偶数で終了判定され、SADminよりSAD4minが大きいので、追跡中心点が極小点となって追跡は停止する。このときのPBmin=(5,0)から、MV=PBo−PBminとして動きベクトルMVが検出される。
なお、#6の追跡中心点が、例えばSAD=16のように、終了判定点で極小点とならない場合には、SADmin=15のままで、#5に戻り、SAD4min=SADminが検出された時点に、探索を停止してMVを求めることになる。
本追跡例で、SADmin=14の最小点に到達している。これは、#3で、追跡中心点のSADが極小となるにもかかわらず、たまたま終了判定がないため、SAD=17という障壁を1つ飛び越して、#4へと追跡を続けることができたためである。
Next, the MV detection operation by the motion compensation prediction unit 7 having the above-described configuration and operation steps will be specifically described with two tracking examples. In the following drawings, the target block position and the initial center point position are (0, 0) as in the conventional example.
First, the tracking operation 1 will be described with reference to FIG. FIG. 4A shows the same SAD distribution diagram as FIG. 10B of the conventional example, and FIG. 4B shows the tracking operation corresponding to FIG.
In tracking number # 1, SADmin = (large number) and PBmin = (0, 0) at the initial center point, and when the SAD of the upper, lower, left, and right peripheral points is calculated, the right point (SAD4min = 20) is 4 points. Detected as the minimum point. Here, since the tracking number is odd and the end determination is not made, the tracking center point moves to the right by one pixel. Then, SADmin = 20 and PBmin = (1, 0).
Next, in the tracking number # 2, the SAD of the peripheral points is similarly calculated, and the right point (SAD4min = 16) is detected as the four-point minimum point. In this case, the end of the tracking is determined to be an even number, but the tracking is continued because SAD4min is smaller than SADmin. Then, SADmin = 16, PBmin = (2, 0), and the tracking center point moves one pixel to the right.
In the tracking number # 3, the SAD of the peripheral points is similarly calculated, and the right point (SAD4min = 17) is detected as the 4-point minimum point. In this case, since SAD4min is larger than SADmin, tracking of MV should normally end, but tracking is continued because the number of tracking is an odd number and is not determined to end. SADmin = 16 and PBmin = (2, 0) are maintained, and the tracking center point moves one pixel to the right.
In the tracking number # 4, the SAD of the peripheral points is similarly calculated, and the right point (SAD4min = 15) is detected as the four-point minimum point. In this case, the end of the tracking is determined to be an even number, but the tracking is continued because SAD4min is smaller than SADmin. Then, SADmin = 15, PBmin = (4, 0), and the tracking center point moves one pixel to the right.
In the tracking number # 5, the SAD of the peripheral points is similarly calculated, and the right point (SAD4min = 14) is detected as the four-point minimum point. Here, since the tracking number is odd and the end determination is not made and SAD4min is smaller than SADmin, SADmin = 14, PBmin = (5, 0), and the tracking center point moves one pixel to the right.
In the tracking number # 6, the SAD of the peripheral points is similarly calculated, and the left point (SAD4min = 15) is detected as the four-point minimum point. Then, when the number of tracking is an even number, the end determination is made and SAD4min is larger than SADmin, so that the tracking center point becomes the minimum point and the tracking is stopped. From PBmin = (5, 0) at this time, a motion vector MV is detected as MV = PBo−PBmin.
When the tracking center point of # 6 does not become a minimum point at the end determination point, for example, SAD = 16, SADmin = 15 is maintained and the process returns to # 5, and SAD4min = SADmin is detected. Then, the search is stopped and MV is obtained.
In this tracking example, the minimum point of SADmin = 14 has been reached. This is because in # 3, although the SAD at the tracking center point is minimized, there is no end determination, so it was possible to continue tracking to # 4 by jumping one barrier of SAD = 17. It is.

次に、図5により追跡動作2について説明する。追跡動作2は、図5(A)に示すように、追跡に関係するSADの分布は追跡動作1と同じとして、初期中心点を左に1画素だけずらして、追跡回数CTの奇数/偶数を逆転させたものである。
この場合、追跡回数#1では、上下左右周辺点のSADが計算されると、右点(SAD4min=22)が4点最小点として検出される。ここでは追跡回数が奇数で終了判定されないため、追跡中心点は右に1画素移動する。そして、SADmin=22、PBmin=(1,0)となる。
次に、追跡回数#2では、同様に周辺点のSADが計算され、右点(SAD4min=20)が4点最小点として検出される。ここでは追跡回数が偶数で終了判定されるが、SADminよりSAD4minが小さいので、追跡は続行される。そして、SADmin=20、PBmin=(2,0)となり、追跡中心点は右に1画素移動する。
追跡回数#3では、同様に周辺点のSADが計算され、右点(SAD4min=16)が4点最小点として検出される。ここでは追跡回数が奇数で終了判定されないため、追跡中心点は右に1画素移動する。そして、SADmin=16、PBmin=(3,0)となる。
追跡回数#4では、同様に周辺点のSADが計算され、右点(SAD4min=17)が4点最小点として検出される。ここでは追跡回数が偶数で終了判定され、SADminよりSAD4minが大きいので、追跡は終了する。このときのPBmin=(3,0)から、MV=PBo−PBminとして動きベクトルMVが検出される。
本追跡例では、終了判定する位置を追跡動作1から左に1画素だけずらしたため、#4で終了判定され、SADmin=16の局所解に落ち込んで、最小点には到達できていない。
Next, the tracking operation 2 will be described with reference to FIG. As shown in FIG. 5A, the tracking operation 2 assumes that the distribution of SAD related to tracking is the same as that of the tracking operation 1, and the initial center point is shifted to the left by one pixel, and the odd / even of the number of times of tracking CT is set. It has been reversed.
In this case, in the tracking number # 1, when the SAD of the upper, lower, left, and right peripheral points is calculated, the right point (SAD4min = 22) is detected as the four-point minimum point. Here, since the tracking number is odd and the end determination is not made, the tracking center point moves to the right by one pixel. Then, SADmin = 22 and PBmin = (1, 0).
Next, in tracking number # 2, the SAD of the peripheral points is similarly calculated, and the right point (SAD4min = 20) is detected as the four-point minimum point. In this case, the end of the tracking is determined to be an even number, but the tracking is continued because SAD4min is smaller than SADmin. Then, SADmin = 20, PBmin = (2, 0), and the tracking center point moves one pixel to the right.
In the tracking number # 3, the SAD of the peripheral points is similarly calculated, and the right point (SAD4min = 16) is detected as the four-point minimum point. Here, since the tracking number is odd and the end determination is not made, the tracking center point moves to the right by one pixel. Then, SADmin = 16 and PBmin = (3, 0).
In the tracking number # 4, the SAD of the peripheral points is similarly calculated, and the right point (SAD4min = 17) is detected as the four-point minimum point. Here, the tracking is finished when the number of times of tracking is an even number, and SAD4min is larger than SADmin. From PBmin = (3, 0) at this time, the motion vector MV is detected as MV = PBo−PBmin.
In this tracking example, the end determination position is shifted by one pixel to the left from the tracking operation 1. Therefore, the end determination is made in # 4, the local solution falls to SADmin = 16, and the minimum point cannot be reached.

以上のように、実施例1によれば、追跡回数CTにより、1カウントおきにしか終了判定を行わないため、終了判定を行わない時、すなわち1/2の確率で、1画素だけであれば、追跡ルート上の単調減少から逸脱した障壁を乗り越えて、さらに先の最小値を追跡できる。なお、次のカウントの追跡時には、終了判定を行い、前記中心点は、周辺点として再度調べることになるので、極小値となることを見逃すことはない。
さらに、制御部7−1は、中心点極小信号を受けると、追跡カウントが偶数回目の時だけ終了処理を行い、奇数回目の時は無視するようにして、終了判定部7−8の機能を吸収すれば、従来例の構成のまま最小限の変更で、局所解に陥る確率を減少させることも可能となり、既に従来例の構成で運用している場合には実用上の効果は大きい。
As described above, according to the first embodiment, the end determination is performed only every other count based on the number of times of tracking CT. Therefore, when the end determination is not performed, that is, when there is only one pixel with a probability of 1/2. Overcoming barriers that deviate from monotonic declines on the tracking route, you can track the minimum further ahead. When the next count is tracked, the end determination is performed and the center point is examined again as a peripheral point, so that it is not overlooked that the center point becomes a minimum value.
Further, when the control unit 7-1 receives the center point minimum signal, the control unit 7-1 performs the end process only when the tracking count is the even number, and ignores the function when the tracking count is the odd number. If it is absorbed, it is possible to reduce the probability of falling into a local solution with the minimum change with the configuration of the conventional example, and the practical effect is great when the configuration of the conventional example is already used.

実施例2について、図6、図7、および図4を用いて説明する。図6は、動き補償予測部の構成を示した図である。図7は、動作フローチャートを示す。図4は、追跡動作の例を示した図である。 Example 2 will be described with reference to FIGS. 6, 7, and 4. FIG. 6 is a diagram illustrating a configuration of the motion compensation prediction unit. FIG. 7 shows an operation flowchart. FIG. 4 is a diagram illustrating an example of the tracking operation.

実施例2における動画像符号化装置の構成は、実施例1と同一なので、説明は省略する。
また、動き補償予測部7の構成は、終了判定に関与するSAD最小点検出部7−7の一部機能、および終了判定部7−9を除いて、実施例1と同一である。すなわち、実施例1の探索回数の奇数/偶数による終了判定部7−8を、同一点回帰による終了判定部7−9に置き換えて、SAD最小点検出部7−7の中心点極小信号の出力機能を除去したものである。終了判定に関与しない部分は、従来例1と同一なので、説明は省略する。
そして、終了判定部7−9は、SAD4最小ブロック検出部7−3出力のPB4minを最小点記憶部7−6に記憶されたPBminを比較して同一かどうかチェックして、同一である場合、すなわち同一点に戻った場合に限り終了信号を出力する。
Since the configuration of the moving image encoding apparatus in the second embodiment is the same as that in the first embodiment, the description thereof is omitted.
The configuration of the motion compensation prediction unit 7 is the same as that of the first embodiment except for a partial function of the SAD minimum point detection unit 7-7 involved in the end determination and the end determination unit 7-9. That is, the end determination unit 7-8 based on the odd / even number of searches in the first embodiment is replaced with the end determination unit 7-9 based on the same point regression, and the center point minimum signal output from the SAD minimum point detection unit 7-7 is output. The function is removed. The parts not involved in the end determination are the same as those in the first conventional example, and the description thereof is omitted.
Then, the end determination unit 7-9 compares the PB4min output from the SAD4 minimum block detection unit 7-3 with the PBmin stored in the minimum point storage unit 7-6 to check whether they are the same. That is, an end signal is output only when the point is returned to the same point.

次に、前記構成の動き補償予測部7によるMV検出動作手順について、図7のフローチャートを用いて説明する。
最初のステップS1の初期設定(ただし、CTは不使用。)、および次のステップS2〜S5の追跡動作については、実施例1と同一なので、説明を省略する。
続いて終了判定について説明する。SAD最小点検出部7−7は、前記出力されたSAD4minを最小点記憶部7−6に記憶されているSADminと比較して、SADminが大きい場合には、ステップS8−2に進み、小さいか等しい場合には、ステップS8−3に進む(ステップS8−1)。
ステップS8−2では、最小点記憶部7−6に記憶されているSADmin、PBminをSAD4min、PB4minに置き換えて、ステップS2に進み次の追跡にうつる(ステップS8−2)。
ステップS8−3では、終了判定部7−9は、PBminとPB4minを比較して異なる場合には、ステップS2に進み次の追跡にうつり、同じ場合には、終了信号を出力してステップS7に進み終了処理に入る(ステップS8−3)。
ステップS7では、制御部7−1は、終了信号を入力して終了処理に入ると、実施例1同様、予測画像、およびMVを出力して、このMBの動き補償予測処理を終了する(ステップS7)。
Next, the MV detection operation procedure by the motion compensation prediction unit 7 having the above-described configuration will be described with reference to the flowchart of FIG.
Since the initial setting in the first step S1 (however, CT is not used) and the tracking operation in the next steps S2 to S5 are the same as those in the first embodiment, description thereof will be omitted.
Next, the end determination will be described. The SAD minimum point detection unit 7-7 compares the output SAD4min with the SADmin stored in the minimum point storage unit 7-6. If the SADmin is large, the process proceeds to step S8-2. If equal, the process proceeds to step S8-3 (step S8-1).
In step S8-2, SADmin and PBmin stored in the minimum point storage unit 7-6 are replaced with SAD4min and PB4min, and the process proceeds to step S2 for the next tracking (step S8-2).
In step S8-3, when the PBmin and PB4min are different from each other, the end determination unit 7-9 proceeds to step S2 and proceeds to the next tracking. If the same, the end determination unit 7-9 outputs an end signal and proceeds to step S7. The advance end process is entered (step S8-3).
In step S7, when the control unit 7-1 inputs the end signal and enters the end process, the predictive image and the MV are output as in the first embodiment, and the motion compensation prediction process for the MB ends (step S7). S7).

次に、図4の追跡動作1を用いて、MV検出動作について具体的に説明する。図4(A)は、SAD分布図、図4(B)は、追跡動作を表している。
追跡回数#1では、初期中心点で、SADmin=(大きな数)、PBmin=(0,0)であり、上下左右周辺点のSADが計算されると、右点(SAD4min=20)が4点最小点として検出されるが、PBminとPB4minは異なるので、追跡中心点は右に1画素移動して追跡を続ける。SADmin=20、PBmin=(1,0)となる。
次に、追跡回数#2では、同様に周辺点のSADが計算され、右点(SAD4min=16)が4点最小点として検出されるが、PBminとPB4minは異なるので、追跡中心点は右に1画素移動して追跡を続ける。SADmin=16、PBmin=(2,0)となる。
追跡回数#3では、同様に周辺点のSADが計算され、右点(SAD4min=17)が4点最小点として検出されるが、PBminとPB4minは異なるので、追跡中心点は右に1画素移動して追跡を続ける。SADmin=16、PBmin=(2,0)は、維持される。
追跡回数#4では、同様に周辺点のSADが計算され、右点(SAD4min=15)が4点最小点として検出されるが、PBminとPB4minは異なるので、追跡中心点は右に1画素移動して追跡を続ける。SADmin=15、PBmin=(4,0)となる。
追跡回数#5では、同様に周辺点のSADが計算され、右点(SAD4min=14)が4点最小点として検出されるが、PBminとPB4minは異なるので、追跡中心点は右に1画素移動して追跡を続ける。SADmin=14、PBmin=(5,0)となる。
追跡回数#6では、同様に周辺点のSADが計算され、左点(SAD4min=15)が4点最小点として検出されるが、PBmin(5,0)とPB4min(4,0)は異なるので、追跡中心点は左に1画素戻って追跡を続ける。SADmin=14、PBmin=(5,0)を維持する。
追跡回数#7では、#5に戻って、同様に周辺点のSADが計算され、右点(SAD4min=14)が4点最小点として検出されるが、PBminとPB4minが一致するので、追跡は停止される。このときのPBmin=(5,0)から、MV=PBo−PBminとして動きベクトルMVが検出される。
本追跡例で、SADmin=14の最小点に到達している。
Next, the MV detection operation will be specifically described using the tracking operation 1 in FIG. FIG. 4A shows the SAD distribution diagram, and FIG. 4B shows the tracking operation.
In tracking number # 1, SADmin = (large number) and PBmin = (0, 0) at the initial center point, and when the SAD of the upper, lower, left, and right peripheral points is calculated, the right point (SAD4min = 20) is 4 points. Although it is detected as the minimum point, PBmin and PB4min are different, so the tracking center point moves one pixel to the right and continues tracking. SADmin = 20 and PBmin = (1, 0).
Next, in tracking number # 2, the SAD of the peripheral points is calculated in the same manner, and the right point (SAD4min = 16) is detected as the minimum of four points. However, since PBmin and PB4min are different, the tracking center point is to the right Move one pixel and continue tracking. SADmin = 16 and PBmin = (2, 0).
In tracking number # 3, the SAD of the peripheral point is calculated in the same manner, and the right point (SAD4min = 17) is detected as the minimum of four points. However, since PBmin and PB4min are different, the tracking center point is moved to the right by one pixel. And keep tracking. SADmin = 16 and PBmin = (2, 0) are maintained.
In tracking number # 4, the SAD of the peripheral point is similarly calculated, and the right point (SAD4min = 15) is detected as the minimum point of four points. However, since PBmin and PB4min are different, the tracking center point is moved to the right by one pixel. And keep tracking. SADmin = 15 and PBmin = (4, 0).
In tracking number # 5, the SAD of the peripheral point is calculated in the same manner, and the right point (SAD4min = 14) is detected as the minimum of four points. However, since PBmin and PB4min are different, the tracking center point moves one pixel to the right And keep tracking. SADmin = 14 and PBmin = (5, 0).
In the tracking number # 6, the SAD of the peripheral points is similarly calculated, and the left point (SAD4min = 15) is detected as the four-point minimum point, but PBmin (5,0) and PB4min (4,0) are different. The tracking center point moves back one pixel to the left and continues tracking. SADmin = 14 and PBmin = (5, 0) are maintained.
In the tracking number # 7, the process returns to # 5 and the SAD of the peripheral point is calculated in the same manner, and the right point (SAD4min = 14) is detected as the four-point minimum point. However, since PBmin and PB4min coincide, Stopped. From PBmin = (5, 0) at this time, a motion vector MV is detected as MV = PBo−PBmin.
In this tracking example, the minimum point of SADmin = 14 has been reached.

以上のように、実施例2によれば、中心点極小で終了判定するのではないので、1画素だけであれば単調減少から逸脱した障壁を乗り越えてさらに先の極小値を追跡できる。このため、局所解に陥る確率を減少できる。
さらに、実施例2によれば、同一極小点に回帰するかどうかにより終了判定するため、極小点に到達したら直ちに終了処理する場合よりも、1追跡回数分余分に時間がかかるが、実施例1のように、追跡回数の偶数/奇数に左右されないで、障壁を乗り越えることが可能となり、さらに先の最小値を追跡できる。
As described above, according to the second embodiment, since the end determination is not performed at the center point minimum, if only one pixel is used, the further minimum value can be traced over the barrier deviating from the monotonous decrease. For this reason, the probability of falling into a local solution can be reduced.
Further, according to the second embodiment, since the end determination is made depending on whether or not the same minimum point is regressed, it takes an extra time for the number of tracking times compared with the case where the end processing is performed immediately after reaching the minimum point. As described above, it is possible to overcome the barrier without depending on the even / odd number of times of tracking, and it is possible to track the minimum value ahead.

実施例3について図8、図9、および図4を用いて説明する。図8は、動き補償予測部の構成を示した図である。図9は、動作フローチャートを示す。図4は、追跡動作の例を示した図である。 A third embodiment will be described with reference to FIGS. 8, 9, and 4. FIG. FIG. 8 is a diagram illustrating a configuration of the motion compensation prediction unit. FIG. 9 shows an operation flowchart. FIG. 4 is a diagram illustrating an example of the tracking operation.

実施例3における動画像符号化装置の構成は、実施例1と同一なので、説明は省略する。
また、動き補償予測部7の構成は、終了判定に関与する終了判定部7−10を除いて、実施例2と同一である。すなわち、実施例2の同一点回帰による終了判定部7−9を、回数制限による終了判定部7−10に置き換えたものである。終了判定に関与しない部分は、従来例2と同一なので、説明は省略する。
終了判定部7−10は、追跡回数CTをチェックして、追跡回数が設定した制限回数になった時に限り、終了信号を出力するものである。
Since the configuration of the moving image encoding apparatus in the third embodiment is the same as that in the first embodiment, the description thereof is omitted.
The configuration of the motion compensation prediction unit 7 is the same as that of the second embodiment except for the end determination unit 7-10 involved in the end determination. That is, the end determination unit 7-9 based on the same point regression in the second embodiment is replaced with the end determination unit 7-10 based on the number of times limit. The portion not involved in the end determination is the same as that in the second conventional example, and a description thereof will be omitted.
The end determination unit 7-10 checks the tracking number CT and outputs an end signal only when the tracking number reaches the set limit number.

次に、前記構成の動き補償予測部7によるMV検出動作手順について、図9のフローチャートを用いて説明する。
ステップS1の初期設定では、対象MB位置、初期中心点、SAD最小点(PBmin、SADmin)の設定は、実施例1の場合と同一である。また、終了判別部7−10は、追跡回数チェック用CTの値を所定の回数制限したい値にセットする(ステップS1)。
また、ステップS2〜S5の追跡動作は、実施例1の場合と同一なので、説明を省略する。
終了判定については、まず、SAD最小点検出部7−7は、前記出力されたSAD4minを最小点記憶部7−6に記憶されているSADminと比較して、SADminが大きい場合には、ステップS9−2に進み、小さいか等しい場合には、ステップS9−3に飛ぶ(ステップS9−1)。
ステップS9−2では、最小点記憶部7−6に記憶されているSADmin、PBminをSAD4min、PB4minに書き換えて最小点を更新して、ステップS9−3に進む(ステップS9−2)
ステップS9−3では、終了判定部7−10は、追跡回数チェック用CTの値を−1して(ステップS9−3)、チェック用CTの値が0でない場合には、ステップS2に飛び次の追跡動作にうつり、チェック用CTの値が0の場合には、終了信号を出力してステップS7に進み(ステップS9−4)、終了処理に入る。
ステップS7では、制御部7−1は、終了信号を入力して終了処理に入ると、実施例1同様、予測画像、およびMVを出力して、このMBの動き補償予測処理を終了する(ステップS7)。
Next, the MV detection operation procedure by the motion compensation prediction unit 7 having the above-described configuration will be described with reference to the flowchart of FIG.
In the initial setting in step S1, the setting of the target MB position, the initial center point, and the SAD minimum point (PBmin, SADmin) is the same as in the first embodiment. Further, the end determining unit 7-10 sets the value of the tracking number check CT to a value to be limited a predetermined number of times (step S1).
Moreover, since the tracking operation | movement of step S2-S5 is the same as the case of Example 1, description is abbreviate | omitted.
Regarding the end determination, first, the SAD minimum point detection unit 7-7 compares the output SAD4min with the SADmin stored in the minimum point storage unit 7-6. -2 and if smaller or equal, jump to step S9-3 (step S9-1).
In step S9-2, SADmin and PBmin stored in the minimum point storage unit 7-6 are rewritten to SAD4min and PB4min to update the minimum point, and the process proceeds to step S9-3 (step S9-2).
In step S9-3, the end determination unit 7-10 decrements the CT value for tracking number check by −1 (step S9-3). If the check CT value is not 0, the end determination unit 7-10 jumps to step S2. When the check CT value is 0, the end signal is output and the process proceeds to step S7 (step S9-4), and the end process is started.
In step S7, when the control unit 7-1 inputs the end signal and enters the end process, the predictive image and the MV are output as in the first embodiment, and the motion compensation prediction process for the MB ends (step S7). S7).

次に、図4の追跡動作1を用いて、MV検出動作について具体的に説明する。図4(A)は、SAD分布図、図4(B)は、追跡動作を表している。
追跡回数#1では、初期中心点で、SADmin=(大きな数)、PBmin=(0,0)であり、上下左右周辺点のSADが計算されると、右点(SAD4min=20)が4点最小点として検出され、追跡中心点は右に1画素移動して追跡を続ける。SADmin=20、PBmin=(1,0)となる。
次に、追跡回数#2では、同様に周辺点のSADが計算され、右点(SAD4min=16)が4点最小点として検出され、追跡中心点は右に1画素移動して追跡を続ける。SADmin=16、PBmin=(2,0)となる。
追跡回数#3では、同様に周辺点のSADが計算され、右点(SAD4min=17)が4点最小点として検出され、追跡中心点は右に1画素移動して追跡を続ける。SADmin=16、PBmin=(2,0)は、維持される。
追跡回数#4では、同様に周辺点のSADが計算され、右点(SAD4min=15)が4点最小点として検出され、追跡中心点は右に1画素移動して追跡を続ける。SADmin=15、PBmin=(4,0)となる。
追跡回数#5では、同様に周辺点のSADが計算され、右点(SAD4min=14)が4点最小点として検出され、追跡中心点は右に1画素移動して追跡を続ける。SADmin=14、PBmin=(5,0)となる。
追跡回数#6では、同様に周辺点のSADが計算され、左点(SAD4min=15)が4点最小点として検出され、追跡中心点は左に1画素移動して追跡を続ける。SADmin=14、PBmin=(5,0)である。
追跡回数#7は、左に戻ったため、#5と全く同じ動作となり、右に1画素移動する。
追跡回数#8は、#5と全く同じ動作となる。
以下、制限回数となるまで、#5と#6の往復運動を繰り返す。そして、制限回数になると、追跡は停止される。このときのPBmin=(5,0)から、MV=PBo−PBminとして動きベクトルMVが検出される。
Next, the MV detection operation will be specifically described using the tracking operation 1 in FIG. FIG. 4A shows the SAD distribution diagram, and FIG. 4B shows the tracking operation.
In tracking number # 1, SADmin = (large number) and PBmin = (0, 0) at the initial center point, and when the SAD of the upper, lower, left, and right peripheral points is calculated, the right point (SAD4min = 20) is 4 points. The minimum point is detected, and the tracking center point moves one pixel to the right and continues tracking. SADmin = 20 and PBmin = (1, 0).
Next, at the tracking number # 2, the SAD of the peripheral points is similarly calculated, the right point (SAD4min = 16) is detected as the minimum four points, and the tracking center point moves to the right by one pixel and continues tracking. SADmin = 16 and PBmin = (2, 0).
At the tracking number # 3, the SAD of the peripheral points is calculated in the same manner, the right point (SAD4min = 17) is detected as the four minimum points, and the tracking center point moves one pixel to the right and continues tracking. SADmin = 16 and PBmin = (2, 0) are maintained.
In tracking number # 4, the SAD of the peripheral points is similarly calculated, the right point (SAD4min = 15) is detected as the four minimum points, and the tracking center point moves one pixel to the right and continues tracking. SADmin = 15 and PBmin = (4, 0).
In tracking number # 5, the SAD of the peripheral points is similarly calculated, the right point (SAD4min = 14) is detected as the four minimum points, and the tracking center point moves one pixel to the right and continues tracking. SADmin = 14 and PBmin = (5, 0).
At the tracking number # 6, the SAD of the peripheral points is calculated in the same manner, the left point (SAD4min = 15) is detected as the four minimum points, and the tracking center point moves one pixel to the left and continues tracking. SADmin = 14 and PBmin = (5, 0).
Since the tracking number # 7 returns to the left, the operation is exactly the same as # 5, and moves one pixel to the right.
The number of times of tracking # 8 is exactly the same as # 5.
Thereafter, the reciprocating motions of # 5 and # 6 are repeated until the limit number is reached. Then, when the limit number is reached, the tracking is stopped. From PBmin = (5, 0) at this time, a motion vector MV is detected as MV = PBo−PBmin.

以上のように、実施例3によれば、中心点極小で終了判定するのではないので、1画素だけであれば単調減少から逸脱した障壁を乗り越えてさらに先の極小値を追跡できる。このため、局所解に陥る確率を減少できる。
また、追跡回数により終了判定するため、制限回数となるまで上下左右周辺点のSAD最小方向への移動を繰り返し、見つかったSADが最小となる位置PBminから、動きベクトルを検出する。このため、実施例1、2と比べて、本来検出できているのに時間を余らせて往復運動をして待つような場合、また逆に時間が足りなくて行き着くはずのMVを求められない場合もあるが、検出にかかる時間はいつも一定であり、同期した処理が必要な圧縮符号化装置に使用すると好適である。
As described above, according to the third embodiment, since the end determination is not performed at the center point minimum, if only one pixel is used, the further minimum value can be traced over the barrier deviating from the monotonous decrease. For this reason, the probability of falling into a local solution can be reduced.
Further, in order to determine the end based on the number of tracking times, the vertical and horizontal peripheral points are repeatedly moved in the SAD minimum direction until the limit number is reached, and a motion vector is detected from the position PBmin where the found SAD is minimum. For this reason, in comparison with the first and second embodiments, when it is possible to wait for a reciprocating motion with extra time even though it can be detected originally, it is not possible to find the MV that should arrive at the end due to insufficient time. In some cases, the time required for detection is always constant, and it is suitable for use in a compression encoding apparatus that requires synchronized processing.

なお、逆に実施例1、実施例2は、探索範囲のSAD分布によっては、検出に想定以上の時間がかかる場合もあるので、実施例3に述べた回数制限を併用すると、最大検出時間を制限することができる。
また、実施例3は回数制限により終了判定をしたが、追跡回数CTを時間CTに置き換えるだけで、時間制限による終了判定が可能となり、全く同様の効果を得ることができる。
On the contrary, in the first and second embodiments, depending on the SAD distribution of the search range, it may take longer than expected to detect. Therefore, if the number of times described in the third embodiment is used together, the maximum detection time is increased. Can be limited.
In the third embodiment, the end determination is performed by limiting the number of times. However, by simply replacing the tracking number CT with the time CT, the end determination can be performed by limiting the time, and the same effect can be obtained.

本発明の実施例における動画像符号化装置の構成を示した図である。It is the figure which showed the structure of the moving image encoder in the Example of this invention. 本発明実施例の動き補償予測部の構成を示した図である。(実施例1)It is the figure which showed the structure of the motion compensation estimation part of this invention Example. Example 1 本発明実施例の動作フローチャートを示す。The operation | movement flowchart of this invention Example is shown. 本発明実施例の追跡動作の説明図で、(A)は、探索範囲におけるSADの分布図、(B)は、追跡動作を示す。(例1)It is explanatory drawing of the tracking operation | movement of an Example of this invention, (A) is a distribution map of SAD in a search range, (B) shows tracking operation | movement. (Example 1) 本発明実施例の追跡動作の説明図で、(A)は、探索範囲におけるSADの分布図、(B)は、追跡動作を示す。(例2)It is explanatory drawing of the tracking operation | movement of an Example of this invention, (A) is a distribution map of SAD in a search range, (B) shows tracking operation | movement. (Example 2) 本発明実施例の動き補償予測部の構成を示した図である。(実施例2)It is the figure which showed the structure of the motion compensation estimation part of this invention Example. (Example 2) 本発明実施例の動作フローチャートを示す。The operation | movement flowchart of this invention Example is shown. 本発明実施例の動き補償予測部の構成を示した図である。(実施例3)It is the figure which showed the structure of the motion compensation estimation part of this invention Example. (Example 3) 本発明実施例の動作フローチャートを示す。The operation | movement flowchart of this invention Example is shown. 従来例の説明図で、(A)は、探索パターン、(B)は、探索範囲におけるSADの分布図、(C)は、追跡動作を示す。In the explanatory diagram of the conventional example, (A) is a search pattern, (B) is a distribution diagram of SAD in the search range, and (C) shows a tracking operation.

符号の説明Explanation of symbols

1 対象画像メモリ、2 減算器、3 予測誤差符号化部、4 予測誤差復号化部、5 加算器、6 参照画像メモリ、7 動き補償予測部、7−1 制御部、7−2 SAD計算部、7−3 SAD4点最小ブロック検出部、7−4 追跡中心設定部、7−5 アドレス設定部、7−6 最小点記憶部、7−7 SAD最小点検出部、7−8 終了判定部(偶数回目中心点極小)、7−9 終了判定部(同一点回帰)、7−10 終了判定部(回数制限)、8 可変長符号化部

1 target image memory, 2 subtractor, 3 prediction error encoding unit, 4 prediction error decoding unit, 5 adder, 6 reference image memory, 7 motion compensation prediction unit, 7-1 control unit, 7-2 SAD calculation unit 7-3 SAD 4-point minimum block detection unit, 7-4 tracking center setting unit, 7-5 address setting unit, 7-6 minimum point storage unit, 7-7 SAD minimum point detection unit, 7-8 end determination unit ( Even-numbered center point minimum), 7-9 end determination unit (same point regression), 7-10 end determination unit (number of times limit), 8 variable length encoding unit

Claims (3)

動き補償予測符号化で圧縮の対象となる画像ブロックを、所定の探索パターンに基づいて配置された参照画像上の複数のブロックと比較し、前記比較した複数のブロックの中で最も類似した参照ブロックを検出し、前記検出した参照ブロックの位置に前記探索パターンを移動させて移動による追跡処理を繰り返すことにより、圧縮対象ブロックに最も類似した参照ブロックを検出して、動きベクトルを求める追跡型動きベクトル検出装置において、
上下左右4つの探索点を有する探索パターンの追跡中心位置を、参照画像上に設定する追跡中心位置設定手段と、
前記圧縮対象ブロックのアドレス、および前記追跡中心位置設定された探索パターンの探索点に配置された複数の参照ブロックのアドレスを設定するアドレス設定手段と、
前記アドレス設定された圧縮対象ブロックと前記アドレス設定された複数の各参照ブロックとの画像をそれぞれ比較して、前記比較された各参照ブロックの類似度を計算する類似度計算手段と、
前記計算された類似度により、前記複数の参照ブロックのうち、類似度の最も高い参照ブロックを検出する類似ブロック検出手段と、
前記類似ブロック検出手段で検出された類似度の最も高い参照ブロックの類似度と、記憶部に既に記憶されている参照ブロックの類似度とを比較して、前記記憶された参照ブロックの類似度の方が低い場合には、この参照ブロックの類似度および参照ブロックの位置を、前記検出された参照ブロックの類似度および参照ブロックの位置に置き換えて更新する一方、前記記憶された参照ブロックの類似度の方が高いか等しく、かつ繰り返し回数が隔数回の場合に限り、終了と判定する更新終了判定手段と、
前記更新終了判定手段により終了と判定されなかった場合には、前記追跡中心位置設定手段により探索パターンの追跡中心位置として設定された前記検出された参照ブロックの位置に基づいて、追跡処理を繰り返すよう制御する一方、終了と判定された場合には、前記記憶部に記憶されている参照ブロックの位置から動きベクトル検出するよう制御する制御手段と、
を備えたことを特徴とする動きベクトル検出装置。
An image block to be compressed by motion compensated prediction coding is compared with a plurality of blocks on a reference image arranged based on a predetermined search pattern, and the most similar reference block among the plurality of compared blocks Tracking type motion vector for detecting a motion vector by detecting the reference block most similar to the compression target block by moving the search pattern to the position of the detected reference block and repeating the tracking process by movement. In the detection device,
Tracking center position setting means for setting a tracking center position of a search pattern having four search points in the upper, lower, left and right directions on a reference image;
Address setting means for setting the address of the block to be compressed and the addresses of a plurality of reference blocks arranged at search points of the search pattern in which the tracking center position is set;
A similarity calculation means for comparing the images of the addressed compression target block and the plurality of addressed reference blocks, respectively, and calculating the similarity of the compared reference blocks;
Similar block detection means for detecting a reference block having the highest similarity among the plurality of reference blocks based on the calculated similarity,
The similarity of the reference block having the highest similarity detected by the similar block detecting means is compared with the similarity of the reference block already stored in the storage unit, and the similarity of the stored reference block is determined. If it is lower, the similarity of the reference block and the position of the reference block are updated by replacing the similarity of the detected reference block and the position of the reference block, while the similarity of the stored reference block is updated. Update end determination means for determining that the end is only when the higher or equal and the number of repetitions is a fractional number;
If the update end determination means does not determine the end, the tracking process is repeated based on the position of the detected reference block set as the tracking center position of the search pattern by the tracking center position setting means. On the other hand, if it is determined to end, control means for controlling to detect a motion vector from the position of the reference block stored in the storage unit;
A motion vector detection device comprising:
動き補償予測符号化で圧縮の対象となる画像ブロックを、所定の探索パターンに基づいて配置された参照画像上の複数のブロックと比較し、前記比較した複数のブロックの中で最も類似した参照ブロックを検出し、前記検出した参照ブロックの位置に前記探索パターンを移動させて移動による追跡処理を繰り返すことにより、圧縮対象ブロックに最も類似した参照ブロックを検出して、動きベクトルを求める追跡型動きベクトル検出装置において、
上下左右4つの探索点を有する探索パターンの追跡中心位置を、参照画像上に設定する追跡中心位置設定手段と、
前記圧縮対象ブロックのアドレス、および前記追跡中心位置設定された探索パターンの探索点に配置された複数の参照ブロックのアドレスを設定するアドレス設定手段と、
前記アドレス設定された圧縮対象ブロックと前記アドレス設定された複数の各参照ブロックとの画像をそれぞれ比較して、前記比較された各参照ブロックの類似度を計算する類似度計算手段と、
前記計算された類似度により、前記複数の参照ブロックのうち、類似度の最も高い参照ブロックを検出する類似ブロック検出手段と、
前記類似ブロック検出手段で検出された類似度の最も高い参照ブロックの類似度と、記憶部に既に記憶されている参照ブロックの類似度とを比較して、前記記憶された参照ブロックの類似度の方が低い場合には、この参照ブロックの類似度および参照ブロックの位置を、前記検出された参照ブロックの類似度および参照ブロックの位置に置き換えて更新する一方、前記記憶された参照ブロックの類似度の方が高いか等しく、かつ前記類似ブロック検出手段で検出された参照ブロックの位置と前記記憶部に記憶された参照ブロックの位置を比較して、一致した場合に限り終了と判定する更新終了判定手段と、
前記更新終了判定手段により終了と判定されなかった場合には、前記追跡中心位置設定手段により探索パターンの追跡中心位置として設定された前記検出された参照ブロックの位置に基づいて、追跡処理を繰り返すよう制御する一方、終了と判定された場合には、前記記憶部に記憶されている参照ブロックの位置から動きベクトル検出するよう制御する制御手段と、
を備えたことを特徴とする動きベクトル検出装置。
An image block to be compressed by motion compensated prediction coding is compared with a plurality of blocks on a reference image arranged based on a predetermined search pattern, and the most similar reference block among the plurality of compared blocks Tracking type motion vector for detecting a motion vector by detecting the reference block most similar to the compression target block by moving the search pattern to the position of the detected reference block and repeating the tracking process by movement. In the detection device,
Tracking center position setting means for setting a tracking center position of a search pattern having four search points in the upper, lower, left and right directions on a reference image;
Address setting means for setting the address of the block to be compressed and the addresses of a plurality of reference blocks arranged at search points of the search pattern in which the tracking center position is set;
A similarity calculation means for comparing the images of the addressed compression target block and the plurality of addressed reference blocks, respectively, and calculating the similarity of the compared reference blocks;
Similar block detection means for detecting a reference block having the highest similarity among the plurality of reference blocks based on the calculated similarity,
The similarity of the reference block having the highest similarity detected by the similar block detecting means is compared with the similarity of the reference block already stored in the storage unit, and the similarity of the stored reference block is determined. If it is lower, the similarity of the reference block and the position of the reference block are updated by replacing the similarity of the detected reference block and the position of the reference block, while the similarity of the stored reference block is updated. The update end determination is performed only when the two are higher or equal and the position of the reference block detected by the similar block detection means is compared with the position of the reference block stored in the storage unit, and only when they match Means,
If the update end determination means does not determine the end, the tracking process is repeated based on the position of the detected reference block set as the tracking center position of the search pattern by the tracking center position setting means. On the other hand, if it is determined to end, control means for controlling to detect a motion vector from the position of the reference block stored in the storage unit;
A motion vector detection device comprising:
動き補償予測符号化で圧縮の対象となる画像ブロックを、所定の探索パターンに基づいて配置された参照画像上の複数のブロックと比較し、前記比較した複数のブロックの中で最も類似した参照ブロックを検出し、前記検出した参照ブロックの位置に前記探索パターンを移動させて移動による追跡処理を繰り返すことにより、圧縮対象ブロックに最も類似した参照ブロックを検出して、動きベクトルを求める追跡型動きベクトル検出装置において、
上下左右4つの探索点を有する探索パターンの追跡中心位置を、参照画像上に設定する追跡中心位置設定手段と、
前記圧縮対象ブロックのアドレス、および前記追跡中心位置設定された探索パターンの探索点に配置された複数の参照ブロックのアドレスを設定するアドレス設定手段と、
前記アドレス設定された圧縮対象ブロックと前記アドレス設定された複数の各参照ブロックとの画像をそれぞれ比較して、前記比較された各参照ブロックの類似度を計算する類似度計算手段と、
前記計算された類似度により、前記複数の参照ブロックのうち、類似度の最も高い参照ブロックを検出する類似ブロック検出手段と、
前記類似ブロック検出手段で検出された類似度の最も高い参照ブロックの類似度と、記憶部に既に記憶されている参照ブロックの類似度とを比較して、前記記憶された参照ブロックの類似度の方が低い場合には、この参照ブロックの類似度および参照ブロックの位置を、前記検出された参照ブロックの類似度および参照ブロックの位置に置き換える更新手段と、
前記追跡処理の繰り返し回数が所定の追跡処理回数になると、終了と判定する終了判定手段と、
前記終了判定手段により終了と判定されなかった場合には、前記追跡中心位置設定手段により探索パターンの追跡中心位置として設定された前記検出された参照ブロックの位置に基づいて、追跡処理を繰り返すよう制御する一方、終了と判定された場合には、前記記憶部に記憶されている参照ブロックの位置から動きベクトル検出するよう制御する制御手段と、
を備えたことを特徴とする動きベクトル検出装置。

An image block to be compressed by motion compensated prediction coding is compared with a plurality of blocks on a reference image arranged based on a predetermined search pattern, and the most similar reference block among the plurality of compared blocks Tracking type motion vector for detecting a motion vector by detecting the reference block most similar to the compression target block by moving the search pattern to the position of the detected reference block and repeating the tracking process by movement. In the detection device,
Tracking center position setting means for setting a tracking center position of a search pattern having four search points in the upper, lower, left and right directions on a reference image;
Address setting means for setting the address of the block to be compressed and the addresses of a plurality of reference blocks arranged at search points of the search pattern in which the tracking center position is set;
A similarity calculation means for comparing the images of the addressed compression target block and the plurality of addressed reference blocks, respectively, and calculating the similarity of the compared reference blocks;
Similar block detection means for detecting a reference block having the highest similarity among the plurality of reference blocks based on the calculated similarity,
The similarity of the reference block having the highest similarity detected by the similar block detecting means is compared with the similarity of the reference block already stored in the storage unit, and the similarity of the stored reference block is determined. An update unit that replaces the similarity of the reference block and the position of the reference block with the similarity of the detected reference block and the position of the reference block, if lower,
When the number of repetitions of the tracking process reaches a predetermined number of tracking processes, an end determination unit that determines the end,
Control is performed to repeat the tracking process based on the position of the detected reference block set as the tracking center position of the search pattern by the tracking center position setting means when the end determination means does not determine the end. On the other hand, if it is determined to end, control means for controlling to detect a motion vector from the position of the reference block stored in the storage unit;
A motion vector detection device comprising:

JP2006052126A 2006-02-28 2006-02-28 Motion vector detector Withdrawn JP2007235333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006052126A JP2007235333A (en) 2006-02-28 2006-02-28 Motion vector detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006052126A JP2007235333A (en) 2006-02-28 2006-02-28 Motion vector detector

Publications (1)

Publication Number Publication Date
JP2007235333A true JP2007235333A (en) 2007-09-13

Family

ID=38555508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006052126A Withdrawn JP2007235333A (en) 2006-02-28 2006-02-28 Motion vector detector

Country Status (1)

Country Link
JP (1) JP2007235333A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011010304A (en) * 2009-06-25 2011-01-13 Arm Ltd Motion vector estimator
CN102123234A (en) * 2011-03-15 2011-07-13 北京航空航天大学 Unmanned aerial vehicle reconnaissance video grading motion compensation method
TWI657011B (en) * 2017-11-30 2019-04-21 財團法人工業技術研究院 Unmanned aerial vehicle, control system for unmanned aerial vehicle and control method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011010304A (en) * 2009-06-25 2011-01-13 Arm Ltd Motion vector estimator
US9407931B2 (en) 2009-06-25 2016-08-02 Arm Limited Motion vector estimator
CN102123234A (en) * 2011-03-15 2011-07-13 北京航空航天大学 Unmanned aerial vehicle reconnaissance video grading motion compensation method
CN102123234B (en) * 2011-03-15 2012-09-05 北京航空航天大学 Unmanned airplane reconnaissance video grading motion compensation method
TWI657011B (en) * 2017-11-30 2019-04-21 財團法人工業技術研究院 Unmanned aerial vehicle, control system for unmanned aerial vehicle and control method thereof
US10703479B2 (en) 2017-11-30 2020-07-07 Industrial Technology Research Institute Unmanned aerial vehicle, control systems for unmanned aerial vehicle and control method thereof

Similar Documents

Publication Publication Date Title
US20060002470A1 (en) Motion vector detection circuit, image encoding circuit, motion vector detection method and image encoding method
US6418168B1 (en) Motion vector detection apparatus, method of the same, and image processing apparatus
WO2001010135A1 (en) Moving vector detecting method
US9571832B2 (en) Image encoding method and apparatus and image decoding method and apparatus based on motion vector normalization
JP2005303984A (en) Motion vector detecting device and method thereof, and image encoding apparatus capable of utilizing the motion vector detecting device
JP3031152B2 (en) Motion prediction processor and motion prediction device
CN1703097A (en) Apparatus and method for encoding motion vector, and program and medium therefor
JP2007235333A (en) Motion vector detector
KR20050020714A (en) Motion vector estimation apparatus and method thereof
CN113542769B (en) Video image coding method, system, device and medium
CN116074536A (en) Encoding method, decoding method, electronic device, and computer-readable storage medium
JP2007110409A (en) Image processing device and program for making computer perform image processing method
CN112468815B (en) Video encoding and decoding method and device, electronic equipment and storage medium
CN101365133B (en) DCT domain interposing and rounding error compensation process
JP2002247584A (en) Method and device for encoding image, program for image encoding processing, and recording medium for the program
CN109120943B (en) Video data recovery method and device
CN114040209A (en) Motion estimation method, motion estimation device, electronic equipment and storage medium
KR101502145B1 (en) Method and apparatus for video encoding and decoding
JP4035903B2 (en) Motion vector detection method and apparatus
JP6918661B2 (en) Coding device, coding method and program
CN116074533B (en) Motion vector prediction method, system, electronic device and storage medium
JP2004179906A (en) Device and method for motion vector detection
CN118317108A (en) Processing method and device based on multifunctional video coding
CN112087634B (en) Optimal angle judgment method and system
CN118337995A (en) Reference frame processing method and device based on multifunctional video coding

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080630

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20100303