JP2002354483A - Motion vector detecting method - Google Patents

Motion vector detecting method

Info

Publication number
JP2002354483A
JP2002354483A JP2001157242A JP2001157242A JP2002354483A JP 2002354483 A JP2002354483 A JP 2002354483A JP 2001157242 A JP2001157242 A JP 2001157242A JP 2001157242 A JP2001157242 A JP 2001157242A JP 2002354483 A JP2002354483 A JP 2002354483A
Authority
JP
Japan
Prior art keywords
circuit
motion vector
motion
difference value
detection
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.)
Pending
Application number
JP2001157242A
Other languages
Japanese (ja)
Inventor
Tatsuro Yamauchi
達郎 山内
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.)
Shibasoku Co Ltd
Original Assignee
Shibasoku Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shibasoku Co Ltd filed Critical Shibasoku Co Ltd
Priority to JP2001157242A priority Critical patent/JP2002354483A/en
Publication of JP2002354483A publication Critical patent/JP2002354483A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To detect the generation of scene change on the basis of a motion vector. SOLUTION: An input video signal from an input terminal 1 is fed to one input terminal of a difference circuit 3 via a one-frame delay circuit 2. To the other input terminal of the circuit 3, the input video signal is directly fed to compute a differential value between the input video signal and a one-frame delay signal. An absolute value is determined by an absolute value circuit 5 with respect to the differential value, the differential value between frames accumulated in a accumulating circuit 6 is fed to a normalization circuit 7. The differential value between frames is fed to a one-field delay circuit 8 to be delayed by one field, and is fed to one input terminal of a differential circuit 9. To the other input terminal of the circuit 9, the differential value between frames which is not delayed is fed from the circuit 7 to compute the differential value between this differential value between frames and the differential value between frames which is not delayed. A shift of the determined differential value between frames between one field is fed to a comparing circuit 10, and zero representing a possibility of the existence of scene change is outputted.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、テレビジョン信号
において、動画像の動きの大きさ、方向、即ち動きベク
トルを検出する動きベクトル検出方法であり、特にシー
ンチェンジによる動きベクトルの誤検出を抑止するよう
にした動きベクトルの検出方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motion vector detecting method for detecting the magnitude and direction of a motion of a moving image in a television signal, that is, a method for detecting a motion vector. And a motion vector detecting method.

【0002】[0002]

【従来の技術】動きベクトルはテレビジョン信号の高能
率符号化における符号化効率を向上させる際や、テレビ
ジョン方式変換におけるフィールド数の変換による動き
の不連続性を軽減する際に用いられている。
2. Description of the Related Art Motion vectors are used to improve coding efficiency in high-efficiency coding of television signals and to reduce motion discontinuity due to conversion of the number of fields in television system conversion. .

【0003】一般的な動きベクトル検出方法は、テレビ
ジョン信号をm画素×nライン(m、nは整数)のブロ
ックに細分化し、各ブロック毎に動きベクトルを検出す
る方法であり、特開昭55−162683号公報、特開
昭55−162684号公報に開示されているバターン
マッチング法や、特開昭60−158786号公報に記
載されている反復勾配法などが良く知られている。
A general motion vector detection method is a method of dividing a television signal into blocks of m pixels × n lines (m and n are integers) and detecting a motion vector for each block. The pattern matching method disclosed in JP-A-55-162683 and JP-A-55-162684 and the repetitive gradient method described in JP-A-60-158786 are well known.

【0004】更に、反復勾配法において動きベクトルの
検出精度を向上させるために、特開昭62−20698
0号公報に記載されているように初期偏位ベクトルを用
いたものがある。
Further, in order to improve the accuracy of detecting a motion vector in the iterative gradient method, Japanese Patent Application Laid-Open No.
As described in Japanese Patent Publication No. 0, there is an apparatus using an initial displacement vector.

【0005】デジタル映像信号の処理において、シーン
チェンジ等の映像信号の急変を検出することが重要であ
る。例えば、テレビジョン方式変換装置等のようにフィ
ールド数を変換する装置では、動きベクトルを用いて動
き補正を図っているが、シーンチェンジ等の映像信号の
急変があると、動きベクトル検出が正常に行われなくな
る。従って、シーンチェンジ等の映像信号の急変が検出
される場合には、動き補正をリセットする必要がある。
In the processing of digital video signals, it is important to detect sudden changes in video signals such as scene changes. For example, in a device that converts the number of fields, such as a television system conversion device, motion is corrected using a motion vector, but when there is a sudden change in a video signal such as a scene change, the motion vector detection is normally performed. Will not be done. Therefore, when a sudden change in the video signal such as a scene change is detected, it is necessary to reset the motion correction.

【0006】[0006]

【発明が解決しようとする課題】しかしながら上述の従
来例においては、先ず最初にシーンチェンジ検出を行
い、その結果を用いて動きベクトル、動き補正等を制御
しているが、シーンチェンジ検出に最低1フィールドの
時間を要するため、その分だけ映像信号を遅延させる必
要が生ずる。
However, in the above-mentioned conventional example, a scene change is detected first, and a motion vector, a motion correction and the like are controlled using the result. Since the time for the field is required, it is necessary to delay the video signal by that amount.

【0007】一般のテレビジョン方式変換装置では、そ
の入出力の映像信号間の遅延時間は最大でもlフレーム
(2フィールド)以下に抑える必要がある。即ち、1フ
レーム以下程度であれば音声信号系において映像信号処
理系と同じように遅延しなくともよいが、音声信号と映
像信号のずれが2フィールド以上であると、映像の遅れ
が知覚されるため音声信号を遅延する必要がある。
In a general television system converter, the delay time between input and output video signals needs to be suppressed at most to 1 frame (2 fields) or less. That is, as long as it is about one frame or less, the audio signal system does not need to be delayed as in the video signal processing system, but if the difference between the audio signal and the video signal is two or more fields, a video delay is perceived. Therefore, it is necessary to delay the audio signal.

【0008】しかしながら、従来のテレビジョン方式変
換装置におけるように、シーンチェンジ検出回路と動き
ベクトル検出回路とを別個に持つ装置では、3フィール
ド以上の映像信号の遅延が発生してしまい、音声信号も
遅延する必要があり、それだけ装置が複雑となり、高価
となるという問題がある。
However, in a device having a scene change detection circuit and a motion vector detection circuit separately, as in a conventional television system conversion device, a video signal delay of three or more fields occurs, and an audio signal is also lost. There is a problem that it is necessary to delay and the device becomes complicated and expensive.

【0009】本発明の目的は、上述の問題点を解消し、
動きベクトルの検出においてシーンチェンジ検出を行う
ことによって、シーンチェンジ検出を1フィールド以下
の遅延時間をもって行い、それにより動きベクトル検出
のエラーを軽減できるようにした動きベクトル検出方法
を提供することにある。
An object of the present invention is to solve the above-mentioned problems,
An object of the present invention is to provide a motion vector detecting method in which a scene change is detected with a delay time of one field or less by detecting a scene change in the detection of a motion vector, thereby reducing a motion vector detection error.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
の本発明に係る動きベクトル検出方法は、少なくとも1
フレーム又は1フィールド離れた2つの映像信号間での
動きの検出をM画素×Nラインのブロック(M、Nは整
数)単位で行って動き検出信号を求め、該動き検出信号
と少なくとも1フィールド以上遅延した動き検出信号と
の差分値を演算する工程と、少なくとも1フィールド間
以上離れた2つの映像信号を用いて、O画素×Pライン
(O、Pは整数)のブロック単位で前記動きベクトルを
検出する動きベクトル検出操作を前記の動き検出操作よ
りNライン遅延して行い、前記2つの映像信号をそれぞ
れA、Bとしたとき、Aを基準に動きベクトルVaを検
出し、Bを基準に動きベクトルVbを検出する工程と、
前記動き検出信号の差分値が零に近い閾値αを越えると
共に、前記動きベクトルが被検出ブロック上でVa+V
bが零に近い閾値βを越えるときに、検出した前記動き
ベクトルを強制的に0にする工程とを有することを特徴
とする。
To achieve the above object, a motion vector detecting method according to the present invention comprises at least one method.
Motion detection between two video signals separated by a frame or one field is performed in units of M pixels × N lines of blocks (M and N are integers) to obtain a motion detection signal, and the motion detection signal and at least one field or more are detected. Calculating a difference value from the delayed motion detection signal; and using the two video signals separated by at least one field or more, calculating the motion vector in block units of O pixels × P lines (O and P are integers). When the motion vector detection operation to be detected is performed by delaying N lines from the motion detection operation, and the two video signals are A and B, respectively, a motion vector Va is detected based on A, and the motion based on B is detected. Detecting the vector Vb;
When the difference value of the motion detection signal exceeds a threshold value α close to zero, and the motion vector is Va + V on the detected block.
forcing the detected motion vector to 0 when b exceeds a threshold β close to zero.

【0011】更に、本発明による動きベクトル検出方法
は、少なくとも1フレーム又は1フィールド離れた2つ
の映像信号間での動きの検出を、M画素×Nラインのブ
ロック(M、Nは整数)単位で行って動き検出信号を求
め、該動き検出信号と少なくとも1フィールド以上遅延
した動き検出信号との差分値を演算する工程と、少なく
とも1フィールド以上離れた2つの映像信号を用いて、
O画素×Pライン(O、Pは整数)のブロック単位で初
期偏位ベクトルを用いた動きベクトル検出方法におい
て、選択された初期偏位ベクトル値の大きさ分だけ位置
を偏位した1フィールド以上離れた差分値Cを求めると
共に、検出後の動きベクトルの大きさ分だけ位置を偏移
した1フィールド以上離れた差分値Dを求める工程と、
前記動き検出信号の差分値が零に近い閾値αを越えると
共に、前記差分値の差C−Dが零に近い閾値γよりも小
さいときに、検出した前記動きベクトルを強制的に0に
する工程とを有することを特徴とする。
Further, the motion vector detecting method according to the present invention detects a motion between two video signals separated by at least one frame or one field in units of blocks of M pixels × N lines (M and N are integers). Performing a motion detection signal, calculating a difference value between the motion detection signal and the motion detection signal delayed by at least one field, and using two video signals separated by at least one field,
In a motion vector detection method using an initial displacement vector in units of O pixels × P lines (O and P are integers), at least one field whose position is displaced by the magnitude of the selected initial displacement vector value Calculating a difference value C that is distant, and calculating a difference value D that is at least one field apart by a position shifted by the magnitude of the motion vector after detection;
Forcibly setting the detected motion vector to 0 when the difference value of the motion detection signal exceeds a threshold α close to zero and the difference CD between the difference values is smaller than a threshold γ close to zero. And characterized in that:

【0012】[0012]

【発明の実施の形態】図1は本発明による動きベクトル
検出方法を実施する装置の第1の実施の形態の構成を示
すブロック回路構成図である。入力端子1からの入力
は、1フレーム遅延回路2、差分回路3、遅延回路4に
接続されている。1フレーム遅延回路2の出力は差分回
路3、遅延回路4に接続され、差分回路3の出力は絶対
値回路5、累計回路6、正規化回路7に順次に接続され
ている。また、正規化回路7の出力は1フィールド遅延
回路8及び差分回路9に接続され、1フィールド遅延回
路8の出力は差分回路9に接続され、差分回路9の出力
は比較回路10、シーンチェンジ検出回路11に接続さ
れている。遅延回路4の出力は第1の動きベクトル検出
回路12、第2の動きベクトル検出回路13に並列的に
接続され、検出回路12、13の出力は加算回路14を
介してシーンチェンジ検出回路11に接続され、検出回
路11の出力は出力端子16に接続されている。
FIG. 1 is a block circuit diagram showing the configuration of a first embodiment of an apparatus for implementing a motion vector detecting method according to the present invention. The input from the input terminal 1 is connected to a one-frame delay circuit 2, a difference circuit 3, and a delay circuit 4. The output of the one-frame delay circuit 2 is connected to a difference circuit 3 and a delay circuit 4, and the output of the difference circuit 3 is connected to an absolute value circuit 5, an accumulation circuit 6, and a normalization circuit 7 in that order. The output of the normalizing circuit 7 is connected to a one-field delay circuit 8 and a difference circuit 9, the output of the one-field delay circuit 8 is connected to a difference circuit 9, and the output of the difference circuit 9 is a comparison circuit 10, a scene change detection. It is connected to the circuit 11. The output of the delay circuit 4 is connected in parallel to a first motion vector detection circuit 12 and a second motion vector detection circuit 13, and the outputs of the detection circuits 12 and 13 are sent to a scene change detection circuit 11 via an addition circuit 14. The output of the detection circuit 11 is connected to the output terminal 16.

【0013】処理すべき入力映像信号が入力端子1に供
給されると、この入力映像信号は1フレーム遅延回路2
を経て差分回路3の一方の入力端に供給される。この差
分回路3の他方の入力端には、入力端子1から入力映像
信号を直接供給され、入力映像信号と1フレーム遅延信
号との間の差分値を演算する。この差分値を絶対値回路
5に供給し、差分値の絶対値を求め、これを累計回路6
に供給する。累計回路6では、本実施の形態においては
64画素×32ラインのブロック毎に累計演算を行う。
When an input video signal to be processed is supplied to an input terminal 1, the input video signal is sent to a one-frame delay circuit 2.
, And is supplied to one input terminal of the difference circuit 3. The other input terminal of the difference circuit 3 is directly supplied with an input video signal from the input terminal 1, and calculates a difference value between the input video signal and the one-frame delay signal. This difference value is supplied to an absolute value circuit 5, and the absolute value of the difference value is obtained.
To supply. In the present embodiment, the accumulation circuit 6 performs an accumulation operation for each block of 64 pixels × 32 lines.

【0014】累計回路6で累計されたフレーム間差分値
は正規化回路7に供給される。この正規化回路7は累計
回路6から各ブロック毎に出力されるフレーム間差分値
のビット長をリミッタ回路や非線形回路などで短くする
回路である。このようにして、ビット長が短くされたフ
レーム間差分値を1フィールド遅延回路8に供給し、正
規化されたフレーム間差分値を1フィールド遅延し、差
分回路9の一方の入力端に供給する。この差分回路9の
他方の入力端には、遅延しないフレーム間差分値が正規
化回路7から供給され、正規化回路7から出力されるフ
レーム間差分値と、1フィールド遅延したフレーム間差
分値との差分、つまりフレーム間差分値の1フィールド
の間の偏移量を演算する。
The inter-frame difference values accumulated by the accumulation circuit 6 are supplied to a normalization circuit 7. The normalizing circuit 7 is a circuit for shortening the bit length of the inter-frame difference value output from the accumulating circuit 6 for each block by a limiter circuit, a non-linear circuit, or the like. In this way, the inter-frame difference value having the reduced bit length is supplied to the one-field delay circuit 8, the normalized inter-frame difference value is delayed by one field, and supplied to one input terminal of the difference circuit 9. . The other input terminal of the difference circuit 9 is supplied with a non-delayed inter-frame difference value from the normalization circuit 7, and outputs the inter-frame difference value output from the normalization circuit 7 and the inter-frame difference value delayed by one field. , That is, the amount of shift between one field of the inter-frame difference value.

【0015】このようにして求めたフレーム間差分値の
1フィールド間での偏移量を比較回路10に供給する。
この比較回路10では、フレーム間差分値の1フィール
ド間での偏移量が零に近い閾値α(αの値の例として
は、0に近い値を用いる)を超えるときに、シーンチェ
ンジが存在する可能性を表す0を出力する。映像信号に
シーンチェンジのような急激な変化がない場合には、フ
レーム間差分値の時間軸上での偏移量は小さくなるが、
急激な変化があると、このフレーム間差分値の時間軸上
での偏移量は大きくなる。従って、本実施の形態では、
比較回路10においてフレーム間差分値の1フィールド
間での偏移量を零に近い閾値αと比較し、この閾値αを
越えるときにシーンチェンジが存在する可能性があると
判断して、0を出力する。
The amount of shift between the fields of the inter-frame difference value thus obtained is supplied to the comparison circuit 10.
In the comparison circuit 10, when a shift amount of the inter-frame difference value between one field exceeds a threshold α close to zero (a value close to 0 is used as an example of the value of α), a scene change exists. It outputs 0 indicating the possibility of performing. If there is no sudden change such as a scene change in the video signal, the amount of shift on the time axis of the inter-frame difference value is small,
If there is a sudden change, the amount of shift of the inter-frame difference value on the time axis increases. Therefore, in the present embodiment,
The comparison circuit 10 compares the shift amount of the inter-frame difference value between one field with a threshold α close to zero, and when the threshold α is exceeded, judges that there is a possibility that a scene change exists, and sets 0 to 0. Output.

【0016】上述した1フレーム遅延回路2、差分回路
3、絶対値回路5、累計回路6の回路部分は一般的な動
き検出回路であり、フレーム間差分値を検出した後に、
メディアンフィルタやLPFを入れることもできる。
The circuit parts of the one-frame delay circuit 2, the difference circuit 3, the absolute value circuit 5, and the accumulator circuit 6 are general motion detection circuits.
A median filter or LPF can be inserted.

【0017】以上のフレーム遅延回路2〜比較回路10
の遅延回路4を除く直列的な回路は部分的なシーンチェ
ンジ検出回路であり、1フレーム間差分値の時間軸上で
の偏移量が急変したときに、シーンチェンジと見倣す方
法であるが、このような方法は、特願平10−1441
47号公報に開示されているので、その詳細は省略す
る。
The above frame delay circuit 2 to comparison circuit 10
The serial circuit excluding the delay circuit 4 is a partial scene change detection circuit, and is a method of imitating a scene change when the shift amount of the difference value between one frame on the time axis changes suddenly. However, such a method is disclosed in Japanese Patent Application No. 10-1441.
No. 47, the details are omitted.

【0018】また、このシーンチェンジ検出に要する演
算時間は、本実施の形態では64画素×32ラインの大
きさを持つブロック毎に累計演算を行っているので、3
2ライン+εである。なお、εは回路素子による遅延
量、また1ライン内の短い遅延量を含む遅延時間であ
る。
The calculation time required for the scene change detection is 3 times in this embodiment because the total calculation is performed for each block having a size of 64 pixels × 32 lines.
2 lines + ε. Here, ε is a delay time including a delay amount due to a circuit element and a short delay amount in one line.

【0019】上述したシーンチェンジの検出は、1画面
全体に亘って行うことが理想であるが、そうすると検出
時間が1フィールド以上かかる。従って、本実施の形態
では基本的には上記の32ラインの情報と、これから記
述する情報を用いて、シーンチェンジ時でも誤動作のな
い動きベクトル検出を行うものである。
Ideally, the above-described scene change detection is performed over one entire screen, but it takes more than one field to detect the scene change. Therefore, in the present embodiment, basically, a motion vector without malfunction is detected even at the time of a scene change, using the above-mentioned 32 lines of information and the information to be described.

【0020】図1に示すように、入力端子1の入力映像
信号と、1フレーム遅延回路2で1フレーム遅延された
映像信号とを、遅延回路4を経て第1及び第2の動き検
出回路12、13に供給し、動きベクトル検出の演算
を、上述した1フレーム遅延回路2〜比較回路10のシ
ーンチェンジ検出動作から32ライン遅延して実行させ
る。この遅延回路4は動きベクトル検出に必要なRAM
のアクセス時間を遅延することでも実行できるが、シー
ンチェンジ検出よりも32ライン遅らせて動作させるこ
とを明確にするために、別個の遅延回路にして記載し
た。
As shown in FIG. 1, an input video signal from an input terminal 1 and a video signal delayed by one frame by a one-frame delay circuit 2 are passed through a delay circuit 4 to a first and second motion detection circuits 12. , 13 to execute the operation of motion vector detection with a delay of 32 lines from the scene change detection operation of the one-frame delay circuit 2 to the comparison circuit 10 described above. The delay circuit 4 is a RAM necessary for detecting a motion vector.
However, in order to clarify that the operation is performed with a delay of 32 lines from the scene change detection, a separate delay circuit is described.

【0021】第1の動きベクトル検出回路12と第2の
動きベクトル検出回路13との相違は、基準フィールド
が異なることである。つまり、第1の動きベクトル検出
回路12では、入力端子1の入力映像信号Aを基準と
し、これと1フレーム遅延信号Bとの間での動きベクト
ルを検出するのに対し、第2の動きベクトル検出回路1
3では1フレーム遅延信号Bを基準とし、これと入力映
像信号Aとの間で動きベクトルを検出するものである。
このように、第1及び第2の動きベクトル検出回路1
2、13を設けて、動きベクトルを双方向で検出を行う
ことにより、動きベクトルの検出精度を向上することが
できる。
The difference between the first motion vector detection circuit 12 and the second motion vector detection circuit 13 is that the reference field is different. That is, the first motion vector detection circuit 12 detects the motion vector between the input video signal A of the input terminal 1 and the one-frame delay signal B, while the second motion vector Detection circuit 1
In No. 3, the motion vector is detected between the one-frame delay signal B and the input video signal A.
Thus, the first and second motion vector detection circuits 1
By providing 2 and 13 to detect the motion vector in both directions, the accuracy of detecting the motion vector can be improved.

【0022】これら第1及び第2の動きベクトル検出回
路12、13で検出した2つの動きベクトルを、加算回
路14において加算する。第1及び第2の動きベクトル
検出回路12、13での動きベクトル検出はブロック単
位で行うが、被検出ブロックの座標は同じ(ただし1フ
レーム離れている)であるとすると、第1の動きベクト
ル検出回路12で検出した動きベクトルをV12、第2
の動きベクトル検出回路13で検出した動きベクトルを
V13とすると、動きがパンニングシーン等のように均
一な動きである場合には、これらの動きベクトルは大き
さがほぼ等しく符号が反対となるので、V12+V13
が零に近くなる。一方、シーンチェンジ等で動きベクト
ルが誤検出される場合には、V12+V13は大きい値
となる。従って、V12+V13が零に近い閾値β(整
数)よりも大きいときは、動きベクトルの検出が誤って
いると判断して0を出力する。
The two motion vectors detected by the first and second motion vector detection circuits 12 and 13 are added by an addition circuit 14. Although the motion vector detection in the first and second motion vector detection circuits 12 and 13 is performed on a block basis, if the coordinates of the detected blocks are the same (but one frame apart), the first motion vector The motion vector detected by the detection circuit 12 is V12, the second
Assuming that the motion vector detected by the motion vector detection circuit 13 is V13, if the motion is a uniform motion such as a panning scene, these motion vectors have substantially the same magnitude and opposite signs. V12 + V13
Approaches zero. On the other hand, when a motion vector is erroneously detected due to a scene change or the like, V12 + V13 has a large value. Therefore, when V12 + V13 is larger than a threshold value β (integer) close to zero, it is determined that the motion vector detection is erroneous and 0 is output.

【0023】本実施の形態においては、フレーム遅延回
路2〜比較回路10によるシーンチェンジ検出結果と、
遅延回路4〜加算回路14による動きベクトル評価結果
とをシーンチェンジ検出回路11に供給して両者の論理
積条件を取る。従って、比較回路10から、フレーム間
差分値の1フィールド間での偏移量が閾値αを越えると
きに0が出力されると共に、加算回路14からV12+
V13が閾値βよりも大きいときに0が出力されるとき
に、シーンチェンジがあると判断する出力信号がシーン
チェンジ検出回路11から出力端子16に出力されるこ
とになる。このように、出力端子16にシーンチェンジ
検出信号が出力される場合には、動きベクトルを強制的
に零とすることによって、シーンチェンジによる誤検出
のない動きベクトルの検出を行うことができる。
In the present embodiment, the result of detecting a scene change by the frame delay circuit 2 to the comparison circuit 10 is:
The result of the motion vector evaluation by the delay circuit 4 to the adder circuit 14 is supplied to the scene change detection circuit 11 to take a logical product condition of the two. Therefore, when the shift amount of the inter-frame difference value in one field exceeds the threshold value α, the comparison circuit 10 outputs 0, and the addition circuit 14 outputs V12 +
When 0 is output when V13 is larger than the threshold value β, an output signal for determining that there is a scene change is output from the scene change detection circuit 11 to the output terminal 16. As described above, when the scene change detection signal is output to the output terminal 16, by forcibly setting the motion vector to zero, it is possible to detect a motion vector without erroneous detection due to a scene change.

【0024】図2は第2の実施の形態の構成を示すブロ
ック回路構成図である。本実施の形態では、動きベクト
ルの検出の評価を行う方法が、上述した第1の実施の形
態とは相違しているが、フレーム遅延回路2〜比較回路
10までのシーンチェンジ検出回路の構成は第1の実施
の形態と同じものであり、比較回路10の出力は判定回
路20に接続されている。
FIG. 2 is a block circuit diagram showing the configuration of the second embodiment. In this embodiment, the method of evaluating the detection of a motion vector is different from that of the first embodiment described above. However, the configuration of the scene change detection circuit from the frame delay circuit 2 to the comparison circuit 10 is This is the same as the first embodiment, and the output of the comparison circuit 10 is connected to the determination circuit 20.

【0025】入力端子1及び1フレーム遅延回路2の出
力は、それぞれ初期偏位ベクトル選択回路21、偏位ベ
クトル検出回路22、第1のフレーム間差分値生成回路
23、第2のフレーム間差分値生成回路24に順次に接
続されている。初期偏位ベクトル選択回路21の出力は
偏位ベクトル検出回路22、加算回路25、第1のフレ
ーム間差分値生成回路23にそれぞれ接続されている。
偏位ベクトル検出回路22の出力は加算回路25を介し
て第2のフレーム間差分値生成回路23及び判定回路2
0に接続され、第1、第2のフレーム間差分値生成回路
23、24の出力は比較回路26を介して判定回路20
に接続され、判定回路20の出力は出力端子16に接続
されている。
The output of the input terminal 1 and the output of the one-frame delay circuit 2 are an initial deviation vector selection circuit 21, a deviation vector detection circuit 22, a first inter-frame difference value generation circuit 23, and a second inter-frame difference value, respectively. It is sequentially connected to the generation circuit 24. The output of the initial displacement vector selection circuit 21 is connected to a displacement vector detection circuit 22, an addition circuit 25, and a first inter-frame difference value generation circuit 23.
The output of the displacement vector detection circuit 22 is supplied to a second inter-frame difference value generation circuit 23 and a determination circuit 2 via an addition circuit 25.
0, and the outputs of the first and second inter-frame difference value generation circuits 23 and 24 are output to the determination circuit 20 via the comparison circuit 26.
And the output of the determination circuit 20 is connected to the output terminal 16.

【0026】本実施の形態においては、シーンチェンジ
時の動きベクトルの誤検出を軽減する方法として、特開
昭62−206980号公報に記載されている初期偏位
ベクトルを用いた動きベクトル検出方法を利用するもの
である。初期偏位ベクトルを用いた動きベクトル検出方
法そのものは、前記公報に記載されているので説明を省
くが、要は被検出ブロック周辺の既検出の動きベクトル
から最適なものを初期偏位ベクトルとし、このベクトル
分だけ座標を偏移し、それから動きベクトルを検出する
方法であり、2ステップで検出することで検出精度を向
上するものである。
In this embodiment, as a method for reducing erroneous detection of a motion vector at the time of a scene change, a motion vector detecting method using an initial displacement vector described in Japanese Patent Application Laid-Open No. Sho 62-206980 is used. To use. The motion vector detection method itself using the initial displacement vector is described in the above-mentioned publication, and thus the description thereof is omitted, but the point is that the optimal one from the already detected motion vectors around the detected block is used as the initial displacement vector, In this method, the coordinates are shifted by the amount of the vector and the motion vector is detected, and the detection accuracy is improved by detecting the motion vector in two steps.

【0027】図2に示すように、入力端子1の入力映像
信号と、lフレーム遅延回路2から出力される1フレー
ム遅延信号とを、動きベクトル検出回路の一部を構成す
る初期偏位ベクトル選択回路21及び偏移ベクトル検出
回路22に供給する。本実施の形態では、シーンチェン
ジ検出回路を構成する1フレーム遅延回路2を用いては
いるが、動きベクトル検出回路に別個の遅延回路を設け
てもよく、その場合には1フィールド遅延回路としても
よい。
As shown in FIG. 2, the input video signal from the input terminal 1 and the one-frame delay signal output from the one-frame delay circuit 2 are used to select an initial displacement vector which constitutes a part of the motion vector detection circuit. It is supplied to a circuit 21 and a shift vector detection circuit 22. In this embodiment, the one-frame delay circuit 2 constituting the scene change detection circuit is used. However, a separate delay circuit may be provided in the motion vector detection circuit. In this case, the one-field delay circuit may be used. Good.

【0028】初期偏位ベクトル選択回路21の出力と偏
移ベクトル検出回路22の出力を加算回路25で加算し
て、真の動きベクトルを求める。更に、第1のフレーム
間差分値生成回路23を設け、入力端子1の入力映像信
号とlフレーム遅延回路2から出力される1フレーム遅
延信号とのフレーム間差分値の座標を、初期偏位ベクト
ル選択回路21から出力される初期偏位ベクトルで偏移
したフレーム間差分値F1を生成する。また、第2のフ
レーム間差分値生成回路24を設け、入力端子1の入力
映像信号とlフレーム遅延回路2から出力される1フレ
ーム遅延信号とのフレーム間差分値の座標を、加算回路
25から出力される真の動きベクトル分だけ偏移したフ
レーム間差分値F2を生成する。
The output of the initial displacement vector selecting circuit 21 and the output of the displacement vector detecting circuit 22 are added by an adding circuit 25 to obtain a true motion vector. Further, a first inter-frame difference value generation circuit 23 is provided, and the coordinates of the inter-frame difference value between the input video signal of the input terminal 1 and the one-frame delay signal output from the one-frame delay circuit 2 are set to the initial deviation vector. An inter-frame difference value F1 shifted by the initial shift vector output from the selection circuit 21 is generated. Further, a second inter-frame difference value generation circuit 24 is provided, and the coordinates of the inter-frame difference value between the input video signal of the input terminal 1 and the one-frame delay signal output from the one-frame delay circuit 2 are calculated by the addition circuit 25. An inter-frame difference value F2 shifted by the output true motion vector is generated.

【0029】これら第1、第2のフレーム間差分値生成
回路23、24の出力を比較すると、動きがない場合や
連結した動きがある場合にはF1>F2であるが、シー
ンチェンジのような急激な動きがある場合には、F1<
F2になる。従って、F1<F2が検出される場合に
は、動きベクトルが正常に検出されていないと判断する
ことができる。
Comparing the outputs of the first and second inter-frame difference value generating circuits 23 and 24, if there is no motion or there is a connected motion, F1> F2, If there is a sudden movement, F1 <
It becomes F2. Therefore, when F1 <F2 is detected, it can be determined that the motion vector is not normally detected.

【0030】本実施の形態では、この条件を利用するも
のであり、第1、第2のフレーム間差分値生成回路2
3、24から出力される2つの信号F1、F2を比較回
路26に供給し、F1−F2を零に近い閾値γと比較す
る。F1−F2<γとなる場合には、比較回路26の出
力を0とし、これを判定回路20に供給する。この判定
回路20には比較回路10の出力信号を供給すると共
に、初期偏位ベクトル選択回路21の出力と偏移ベクト
ル検出回路22の出力を加算する加算回路25から出力
される真の動きベクトルをも供給する。従って、比較回
路10から0が供給されると共に、比較回路26から0
が供給されるときには、出力端子16から出力される動
きベクトルは強制的に0とされる。
In this embodiment, this condition is used, and the first and second inter-frame difference value generation circuits 2 are used.
The two signals F1 and F2 output from 3 and 24 are supplied to a comparison circuit 26, and F1-F2 is compared with a threshold γ close to zero. When F1−F2 <γ, the output of the comparison circuit 26 is set to 0 and supplied to the determination circuit 20. The determination circuit 20 is supplied with the output signal of the comparison circuit 10 and outputs the true motion vector output from the addition circuit 25 that adds the output of the initial displacement vector selection circuit 21 and the output of the displacement vector detection circuit 22. Also supply. Accordingly, 0 is supplied from the comparison circuit 10 and 0 is supplied from the comparison circuit 26.
Is supplied, the motion vector output from the output terminal 16 is forcibly set to 0.

【0031】[0031]

【発明の効果】以上説明したように本発明に係る動きベ
クトル検出方法によれば、1フィールド以下の時間でシ
ーンチェンジの検出を行い、動きベクトルが誤検出され
た可能性が検出されたときに、動きベクトルを強制的に
0とすることによって動きベクトル検出のエラーを軽減
することができる。
As described above, according to the motion vector detecting method of the present invention, a scene change is detected in a time of one field or less, and when a possibility that a motion vector is erroneously detected is detected. By forcibly setting the motion vector to 0, it is possible to reduce the error of the motion vector detection.

【0032】一般的な動きベクトル検出は、1フィール
ド(又は1フレーム)問の信号を用いて両者の動き物体
の動き量を検出するものであり、動き物体が両フィール
ドに存在することが前提条件である。しかしながら、シ
ーンチェンジ時では動き物体は存在しないが、フィール
ド間差分が大きくなるため、動きベクトルが誤検出をす
る。本発明によれば、シーンチェンジ検出を行い、それ
が検出されたとき、動きベクトルを強制的にシーンチェ
ンジにおける動きベクトル検出方法にすることによって
動きベクトルの誤検出を軽減することができる。
The general motion vector detection is to detect the amount of motion of both moving objects using signals of one field (or one frame), and it is assumed that a moving object exists in both fields. It is. However, at the time of the scene change, there is no moving object, but the difference between the fields is large, so that the motion vector is erroneously detected. According to the present invention, erroneous detection of a motion vector can be reduced by performing a scene change detection and forcibly setting a motion vector to a motion vector detection method in a scene change when the scene change is detected.

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

【図1】第1の実施の形態を実施するためのブロック回
路構成図である。
FIG. 1 is a block circuit configuration diagram for implementing a first embodiment.

【図2】第2の実施の形態を実施するためのブロック回
路構成図である。
FIG. 2 is a block circuit configuration diagram for implementing a second embodiment.

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

1 入力端子 2 1フレーム遅延回路 3 差分回路 4 遅延回路 5 絶対値回路 6 累計回路 7 正規化回路 8 1フィールド遅延回路 9 差分回路 10、26 比較回路 11 検出回路 12 第1の動きベクトル検出回路 13 第2の動きベクトル検出回路 14、25 加算回路 16 出力端子 20 判定回路 21 初期偏位ベクトル選択回路 22 偏位ベクトル検出回路 23 第1のフレーム間差分値生成回路 24 第2のフレーム間差分値生成回路 25 加算回路 DESCRIPTION OF SYMBOLS 1 Input terminal 2 1 frame delay circuit 3 Difference circuit 4 Delay circuit 5 Absolute value circuit 6 Cumulative circuit 7 Normalization circuit 8 1 field delay circuit 9 Difference circuit 10, 26 Comparison circuit 11 Detection circuit 12 First motion vector detection circuit 13 Second motion vector detection circuit 14, 25 Addition circuit 16 Output terminal 20 Judgment circuit 21 Initial displacement vector selection circuit 22 Displacement vector detection circuit 23 First inter-frame difference value generation circuit 24 Second inter-frame difference value generation Circuit 25 Addition circuit

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK19 NN01 NN10 NN20 NN28 NN43 5C063 AA01 BA04 BA12 5J064 AA01 BB01 BB03 BC08 BC14 BD01 5L096 CA04 DA02 GA08 GA19 HA04 LA10  ────────────────────────────────────────────────── ─── Continued on the front page F term (reference) 5C059 KK19 NN01 NN10 NN20 NN28 NN43 5C063 AA01 BA04 BA12 5J064 AA01 BB01 BB03 BC08 BC14 BD01 5L096 CA04 DA02 GA08 GA19 HA04 LA10

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも1フレーム又は1フィールド
離れた2つの映像信号間での動きの検出をM画素×Nラ
インのブロック(M、Nは整数)単位で行って動き検出
信号を求め、該動き検出信号と少なくとも1フィールド
以上遅延した動き検出信号との差分値を演算する工程
と、少なくとも1フィールド間以上離れた2つの映像信
号を用いて、O画素×Pライン(O、Pは整数)のブロ
ック単位で前記動きベクトルを検出する動きベクトル検
出操作を前記の動き検出操作よりNライン遅延して行
い、前記2つの映像信号をそれぞれA、Bとしたとき、
Aを基準に動きベクトルVaを検出し、Bを基準に動き
ベクトルVbを検出する工程と、前記動き検出信号の差
分値が零に近い閾値αを越えると共に、前記動きベクト
ルが被検出ブロック上でVa+Vbが零に近い閾値βを
越えるときに、検出した前記動きベクトルを強制的に0
にする工程とを有することを特徴とする動きベクトル検
出方法。
1. A motion detection signal is obtained by detecting a motion between two video signals separated by at least one frame or one field in blocks of M pixels × N lines (M and N are integers). Calculating a difference value between the detection signal and the motion detection signal delayed by at least one field; and using two video signals separated by at least one field or more, an O pixel × P line (O and P are integers) When a motion vector detecting operation for detecting the motion vector in block units is performed by delaying N lines from the motion detecting operation, and the two video signals are A and B, respectively,
Detecting a motion vector Va based on A and detecting a motion vector Vb based on B; and determining that the difference value of the motion detection signal exceeds a threshold α close to zero, and that the motion vector When Va + Vb exceeds a threshold β close to zero, the detected motion vector is forcibly set to 0.
A motion vector detecting method.
【請求項2】 少なくとも1フレーム又は1フィールド
離れた2つの映像信号間での動きの検出を、M画素×N
ラインのブロック(M、Nは整数)単位で行って動き検
出信号を求め、該動き検出信号と少なくとも1フィール
ド以上遅延した動き検出信号との差分値を演算する工程
と、少なくとも1フィールド以上離れた2つの映像信号
を用いて、O画素×Pライン(O、Pは整数)のブロッ
ク単位で初期偏位ベクトルを用いた動きベクトル検出方
法において、選択された初期偏位ベクトル値の大きさ分
だけ位置を偏位した1フィールド以上離れた差分値Cを
求めると共に、検出後の動きベクトルの大きさ分だけ位
置を偏移した1フィールド以上離れた差分値Dを求める
工程と、前記動き検出信号の差分値が零に近い閾値αを
越えると共に、前記差分値の差C−Dが零に近い閾値γ
よりも小さいときに、検出した前記動きベクトルを強制
的に0にする工程とを有することを特徴とする動きベク
トル検出方法。
2. Detection of motion between two video signals separated by at least one frame or one field is performed by M pixels × N
A step of obtaining a motion detection signal by performing a block (M and N are integers) of a line and calculating a difference value between the motion detection signal and the motion detection signal delayed by at least one field; In a motion vector detection method using an initial displacement vector in units of O pixels × P lines (O and P are integers) using two video signals, only the size of the selected initial displacement vector value is used. A step of obtaining a difference value C which is shifted by one or more fields whose position is deviated, and a step of obtaining a difference value D which is shifted by one or more fields whose position is shifted by the magnitude of the motion vector after detection; The difference value exceeds a threshold α close to zero, and the difference CD between the difference values is a threshold γ close to zero.
Forcibly setting the detected motion vector to 0 when the motion vector is smaller than 0.
JP2001157242A 2001-05-25 2001-05-25 Motion vector detecting method Pending JP2002354483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001157242A JP2002354483A (en) 2001-05-25 2001-05-25 Motion vector detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001157242A JP2002354483A (en) 2001-05-25 2001-05-25 Motion vector detecting method

Publications (1)

Publication Number Publication Date
JP2002354483A true JP2002354483A (en) 2002-12-06

Family

ID=19001135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001157242A Pending JP2002354483A (en) 2001-05-25 2001-05-25 Motion vector detecting method

Country Status (1)

Country Link
JP (1) JP2002354483A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008153946A (en) * 2006-12-18 2008-07-03 Ntt Electornics Corp Image encoding device
JP2009077382A (en) * 2007-08-27 2009-04-09 Sony Corp Image processing apparatus, method thereof, and program
US7991050B2 (en) 2008-05-30 2011-08-02 Kabushiki Kaisha Toshiba Moving picture decoding apparatus and moving picture decoding method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008153946A (en) * 2006-12-18 2008-07-03 Ntt Electornics Corp Image encoding device
JP2009077382A (en) * 2007-08-27 2009-04-09 Sony Corp Image processing apparatus, method thereof, and program
JP2009077383A (en) * 2007-08-27 2009-04-09 Sony Corp Image processing apparatus, method thereof, and program
US7991050B2 (en) 2008-05-30 2011-08-02 Kabushiki Kaisha Toshiba Moving picture decoding apparatus and moving picture decoding method

Similar Documents

Publication Publication Date Title
JP5213613B2 (en) Image processing apparatus, image processing method, imaging apparatus, and program
JP3563422B2 (en) Film / video detector
US8743268B2 (en) Image capturing apparatus, control method therefor, and program for correcting shift based on shift amount in image plane
JPH11177880A (en) Video stabilization device using bit plane matching and method therefor
JP5081898B2 (en) Interpolated image generation method and system
US20080049145A1 (en) Image Processing Method, a Program of an Image Processing Method, a Recording Medium on Which a Program of an Image Processing Method is Recorded and an Image Processing Circuit
JPWO2003088648A1 (en) Motion detection device, image processing system, motion detection method, program, and recording medium
US8244055B2 (en) Image processing apparatus and method, and program
JP2002354483A (en) Motion vector detecting method
JP2000201328A (en) Method and circuit for detecting motion vector
JP2005051460A (en) Apparatus and method for processing video signal
JP2000324499A (en) Picture processor and method for detecting scene change
JP4199555B2 (en) Freeze failure detection device and detection method
US8319890B2 (en) Arrangement for generating a 3:2 pull-down switch-off signal for a video compression encoder
JP2003047011A (en) Motion correcting circuit using motion vector
JPH0316470A (en) Hand blur correction device
JP2008118340A (en) Motion vector detecting device and video signal processor
JP3803138B2 (en) Scene change and / or flash detection device
JP2747378B2 (en) Motion vector interpolation device
JP3946034B2 (en) Motion vector detection apparatus and motion vector detection method
JP2006129326A (en) Motion vector detecting device
JP3013898B2 (en) Motion interpolation method using motion vector in TV signal
JPH099135A (en) Motion vector detector
JP2874654B2 (en) Motion detection circuit
JP2752007B2 (en) Motion vector detection device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050524

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050721

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050906

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060110