[go: up one dir, main page]

JP2005229169A - Video signal processor - Google Patents

Video signal processor Download PDF

Info

Publication number
JP2005229169A
JP2005229169A JP2004033229A JP2004033229A JP2005229169A JP 2005229169 A JP2005229169 A JP 2005229169A JP 2004033229 A JP2004033229 A JP 2004033229A JP 2004033229 A JP2004033229 A JP 2004033229A JP 2005229169 A JP2005229169 A JP 2005229169A
Authority
JP
Japan
Prior art keywords
motion vector
difference value
motion
inter
video signal
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.)
Granted
Application number
JP2004033229A
Other languages
Japanese (ja)
Other versions
JP4261381B2 (en
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 JP2004033229A priority Critical patent/JP4261381B2/en
Publication of JP2005229169A publication Critical patent/JP2005229169A/en
Application granted granted Critical
Publication of JP4261381B2 publication Critical patent/JP4261381B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a video signal processor capable of reducing image distortion in the case of applying the video signal processing apparatus to e.g., format conversion of a video signal. <P>SOLUTION: The video signal processor compares a detected motion vector MV with alternative motion vectors MVA, MVB, MVC generated on the basis of the motion vector MV, and selects any of them and uses any of the alternative motion vectors MVA, MVB, MVC reflecting a motion of an image on the occurrence of wrong detection in the motion vector MV. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、映像信号処理装置に関し、例えばビデオ信号のフォーマット変換等に適用することができる。本発明は、検出された動きベクトルと、動きベクトルに基づいて生成した代替の動きベクトルとを比較して選択することにより、動きベクトルに誤検出が生じた場合には画像の動きを反映した代替の動きベクトルを用いることで画像歪みの発生を軽減するようにする。   The present invention relates to a video signal processing apparatus, and can be applied to, for example, video signal format conversion. The present invention compares and selects a detected motion vector and an alternative motion vector generated based on the motion vector, so that if a false detection occurs in the motion vector, an alternative that reflects the motion of the image The generation of image distortion is reduced by using the motion vector.

従来、ビデオ信号の高能率符号化処理においては、動きベクトルを用いた内挿処理によりフレーム間符号化処理の効率を向上させるようになされており、またテレビジョン信号のフォーマット変換においては、動きベクトルを用いた動き補正により、フィールド数の変換によるギクシャクとした動きを滑らかな動きに補正するようになされている。   Conventionally, in high-efficiency encoding processing of video signals, the efficiency of inter-frame encoding processing is improved by interpolation processing using motion vectors, and in the format conversion of television signals, motion vectors are used. By using the motion correction using, a jerky motion due to the conversion of the number of fields is corrected to a smooth motion.

このような動きベクトルの検出は、ビデオ信号をm画素×nライン(m、nは整数)による動きベクトルの検出単位のブロック(すなわちマクロブロックである)にブロック化し、各ブロック毎に動きベクトルを検出するようになされており、例えば特開昭55−162683号公報、特開昭55−162684号公報に開示のパターンマッチング法、特開昭60−158786号公報に開示の勾配法、位相相関法等が用いられるようになされている。   In such a motion vector detection, a video signal is blocked into motion vector detection unit blocks (ie, macro blocks) by m pixels × n lines (m and n are integers), and a motion vector is detected for each block. For example, the pattern matching method disclosed in Japanese Patent Laid-Open Nos. 55-162683 and 55-162684, the gradient method disclosed in Japanese Patent Laid-Open No. 60-158786, and the phase correlation method. Etc. are used.

このような動きベクトルを用いた動き補正においては、動きベクトルの誤検出により画像の歪みが発生する問題があった。   In motion correction using such motion vectors, there has been a problem that image distortion occurs due to erroneous detection of motion vectors.

例えば図6に示すように、文字A、B、Cが描かれたフェンスを右から左方向へカメラパーンして撮像した場合(図6(A))、撮像された画像にあっては全体が左から右方向に一様に移動することとなり、このような場合に全てのマクロブロックで一様な動きベクトルMVが検出されれば歪みのない画像を得ることができる。しかしながら、例えば文字部分のマクロブロックMB1で動きベクトルの誤検出が発生すると(図6(B))、その部分では誤って動き補正することにより、画像歪みが発生する(図6(C))。   For example, as shown in FIG. 6, when a fence on which characters A, B, and C are drawn is taken by camera panning from the right to the left (FIG. 6 (A)), the whole image is captured. It moves uniformly from left to right. In such a case, if a uniform motion vector MV is detected in all macroblocks, an image without distortion can be obtained. However, for example, if a motion vector is erroneously detected in the macro block MB1 of the character portion (FIG. 6B), image distortion occurs due to erroneous motion correction in that portion (FIG. 6C).

この問題点を解決するための一つの方法として、検出した動きベクトルを平滑化する方法も考えられる。しかしながら例えば図7に示すように、静止画の背景に対して小物体Kが所定の動き量vで移動したとすると(図7(A))、背景では各マクロブロックで検出される動きベクトルMVが一様に値0になることにより(図7(B))、検出されるべき小物体Kについての動きベクトルMVは、周辺の値0の動きベクトルにより平滑化されることとなり、この場合小物体Kを正しく動き補正できなくなる(図7(C))。   As a method for solving this problem, a method of smoothing the detected motion vector is also conceivable. However, for example, as shown in FIG. 7, if the small object K moves with a predetermined motion amount v with respect to the background of the still image (FIG. 7A), the motion vector MV detected in each macroblock in the background. Is uniformly 0 (FIG. 7B), the motion vector MV for the small object K to be detected is smoothed by the motion vector of the surrounding value 0. The object K cannot be corrected correctly (FIG. 7C).

またこのような平滑化の処理を画面全体で実行する場合にあっては、細かな多方向の動きに対しては正しく動き補正することが困難になり、これにより例えば回転している被写体、ズーム画像等を正しく動き補正できなくなる。
特開昭55−162683号公報 特開昭55−162684号公報 特開昭60−158786号公報
In addition, when such smoothing processing is performed on the entire screen, it is difficult to correct the movement correctly for fine multi-directional movements. The image cannot be corrected correctly.
Japanese Unexamined Patent Publication No. 55-162683 Japanese Patent Laid-Open No. 55-162684 JP 60-158786 A

本発明は以上の点を考慮してなされたもので、動きベクトルが誤検出された場合であっても、従来に比して画像歪みの発生を軽減することができる映像信号処理装置を提案しようとするものである。   The present invention has been made in consideration of the above points, and will propose a video signal processing apparatus capable of reducing the occurrence of image distortion as compared with the prior art even when a motion vector is erroneously detected. It is what.

係る課題を解決するため請求項1の発明においては、ビデオ信号の動きベクトルを検出し、動きベクトルによりビデオ信号を処理して出力する映像信号処理装置に適用して、所定のブロック単位でビデオ信号の動きベクトルを順次検出する動きベクトル検出手段と、動きベクトルに基づいて動きベクトルに代わる少なくとも1つ以上の代替の動きベクトルを出力する代替動きベクトル生成手段と、ビデオ信号を動きベクトルにより動き補正してフィールド間差分値又はフレーム間差分値を検出する主の差分値演算手段と、ビデオ信号を代替の動きベクトルにより動き補正してフィールド間差分値又はフレーム間差分値を検出する副の差分値演算手段と、主の差分値演算手段によるフィールド間差分値又はフレーム間差分値と、副の差分値演算手段によるフィールド間差分値又はフレーム間差分値とを比較する比較手段と、比較手段の比較結果に基づいて、動きベクトル又は代替の動きベクトルを選択出力する選択手段とを備え、選択手段から出力される動きベクトル又は代替の動きベクトルによりビデオ信号を処理するようにする。   In order to solve such a problem, in the first aspect of the invention, the present invention is applied to a video signal processing apparatus that detects a motion vector of a video signal, processes the video signal based on the motion vector, and outputs the processed video signal. Motion vector detecting means for sequentially detecting the motion vector of the video, alternative motion vector generating means for outputting at least one alternative motion vector instead of the motion vector based on the motion vector, and motion correction of the video signal by the motion vector Main difference value calculation means for detecting inter-field difference values or inter-frame difference values, and sub-difference value calculation for detecting the inter-field difference value or inter-frame difference value by correcting the motion of the video signal with an alternative motion vector. Means, and the difference value between fields or the difference value between frames by the main difference value calculation means, and the sub difference value calculation Comparing means for comparing the inter-field difference value or inter-frame difference value by the stage, and a selecting means for selecting and outputting a motion vector or an alternative motion vector based on the comparison result of the comparing means, and output from the selecting means The video signal is processed by a motion vector or an alternative motion vector.

また請求項2の発明においては、請求項1の構成において、代替動きベクトル生成手段は、動きベクトル検出手段により検出された動きベクトルを平滑化する後置フィルタと、動きベクトル検出手段により検出された動きベクトルを後置フィルタによる処理に比して広い範囲の周囲の一様な動きにより平均化する第1の平均化手段と、動きベクトル検出手段により検出された動きベクトルを時間軸方向に平均化する第2の平均化手段とを備え、比較手段は、動きベクトル検出手段により検出された動きベクトルによるフィールド間差分値又はフレーム間差分値と、後置フィルタにより平滑化された動きベクトルによるフィールド間差分値又はフレーム間差分値と、第1の平均化手段により平均化された動きベクトルによるフィールド間差分値又はフレーム間差分値と、第2の平均化手段により平均化された動きベクトルによるフィールド間差分値又はフレーム間差分値とを比較し、選択手段は、動きベクトル検出手段による動きベクトル、後置フィルタにより平滑化された動きベクトル、第1の平均化手段により平均化された動きベクトル、又は第2の平均化手段により平均化された動きベクトルのいずれかを選択出力するようにする。   According to a second aspect of the invention, in the configuration of the first aspect, the alternative motion vector generating means is detected by the post-filter for smoothing the motion vector detected by the motion vector detecting means and the motion vector detecting means. A first averaging unit that averages motion vectors by a uniform motion around a wide range as compared with processing by a post filter, and an average of motion vectors detected by the motion vector detection unit in the time axis direction Second comparing means for comparing, the comparing means between the fields based on the motion vector detected by the motion vector detecting means or the inter-field difference value or inter-frame difference value, and the motion vector smoothed by the post filter. Inter-field difference value based on the difference value or inter-frame difference value and the motion vector averaged by the first averaging means Compares the inter-frame difference value with the inter-field difference value or inter-frame difference value based on the motion vector averaged by the second averaging means, and the selecting means is a motion vector or post filter by the motion vector detecting means. Any one of the motion vector smoothed by the above, the motion vector averaged by the first averaging means, or the motion vector averaged by the second averaging means is selected and output.

請求項1の構成によれば、ビデオ信号の動きベクトルを検出し、動きベクトルによりビデオ信号を処理して出力する映像信号処理装置に適用して、所定のブロック単位でビデオ信号の動きベクトルを順次検出する動きベクトル検出手段と、動きベクトルに基づいて動きベクトルに代わる少なくとも1つ以上の代替の動きベクトルを出力する代替動きベクトル生成手段と、ビデオ信号を動きベクトルにより動き補正してフィールド間差分値又はフレーム間差分値を検出する主の差分値演算手段と、ビデオ信号を代替の動きベクトルにより動き補正してフィールド間差分値又はフレーム間差分値を検出する副の差分値演算手段と、主の差分値演算手段によるフィールド間差分値又はフレーム間差分値と、副の差分値演算手段によるフィールド間差分値又はフレーム間差分値とを比較する比較手段と、比較手段の比較結果に基づいて、動きベクトル又は代替の動きベクトルを選択出力する選択手段とを備え、選択手段から出力される動きベクトル又は代替の動きベクトルによりビデオ信号を処理するようにしたことにより、動きベクトルに誤検出が生じた場合には画像の動きを反映した代替の動きベクトルを用いて動き補正することができ、例えば値0の動きベクトルに置き換える場合に比して、画像歪みの発生を軽減することができる。   According to the configuration of the first aspect, the present invention is applied to a video signal processing device that detects a motion vector of a video signal, processes the video signal based on the motion vector, and outputs the processed signal. Motion vector detecting means for detecting, alternative motion vector generating means for outputting at least one alternative motion vector replacing the motion vector based on the motion vector, and inter-field difference value by correcting the motion of the video signal with the motion vector Alternatively, a main difference value calculating means for detecting an inter-frame difference value, a sub difference value calculating means for detecting an inter-field difference value or an inter-frame difference value by correcting a motion of a video signal with an alternative motion vector, Difference value between fields or difference value between frames by difference value calculation means and difference between fields by sub difference value calculation means A comparison means for comparing a value or an inter-frame difference value, and a selection means for selecting and outputting a motion vector or an alternative motion vector based on a comparison result of the comparison means, and a motion vector or alternative output from the selection means Since the video signal is processed with the motion vector of, when a false detection occurs in the motion vector, the motion correction can be performed using an alternative motion vector reflecting the motion of the image. The occurrence of image distortion can be reduced as compared with the case of replacing with a motion vector.

また請求項2の発明においては、請求項1の構成において、代替動きベクトル生成手段は、動きベクトル検出手段により検出された動きベクトルを平滑化する後置フィルタと、動きベクトル検出手段により検出された動きベクトルを後置フィルタによる処理に比して広い範囲の周囲の一様な動きにより平均化する第1の平均化手段と、動きベクトル検出手段により検出された動きベクトルを時間軸方向に平均化する第2の平均化手段とを備え、比較手段は、動きベクトル検出手段により検出された動きベクトルによるフィールド間差分値又はフレーム間差分値と、後置フィルタにより平滑化された動きベクトルによるフィールド間差分値又はフレーム間差分値と、第1の平均化手段により平均化された動きベクトルによるフィールド間差分値又はフレーム間差分値と、第2の平均化手段により平均化された動きベクトルによるフィールド間差分値又はフレーム間差分値とを比較し、選択手段は、動きベクトル検出手段による動きベクトル、後置フィルタにより平滑化された動きベクトル、第1の平均化手段により平均化された動きベクトル、又は第2の平均化手段により平均化された動きベクトルのいずれかを選択出力することにより、想定される動きのパターンとして複数種類(小物体の動き、カメラパーンのような一様な動き、回転のような方向及び大きさが変化する動き等)の動きのパターンによりそれぞれのパターン毎に代替の動きベクトルを生成し、これら代替の動きベクトルの比較により最も確からしい代替の動きベクトルを動きベクトルに代えて用いるようにしたことにより、動きベクトルに誤検出が発生した場合であっても、画像の実際の動きを反映した代替の動きベクトルにより動き補正することができ、この分画像歪みの発生を軽減することができる。   According to a second aspect of the invention, in the configuration of the first aspect, the alternative motion vector generating means is detected by the post-filter for smoothing the motion vector detected by the motion vector detecting means and the motion vector detecting means. A first averaging unit that averages motion vectors by a uniform motion around a wide range as compared with processing by a post filter, and an average of motion vectors detected by the motion vector detection unit in the time axis direction Second comparing means for comparing, the comparing means between the fields based on the motion vector detected by the motion vector detecting means or the inter-field difference value or inter-frame difference value, and the motion vector smoothed by the post filter. Inter-field difference value based on the difference value or inter-frame difference value and the motion vector averaged by the first averaging means Compares the inter-frame difference value with the inter-field difference value or inter-frame difference value based on the motion vector averaged by the second averaging means, and the selecting means is a motion vector or post filter by the motion vector detecting means. Assuming that the motion vector smoothed by the above, the motion vector averaged by the first averaging means, or the motion vector averaged by the second averaging means are selectively output, There are several types of motion patterns (small object motion, uniform motion like camera pan, motion direction that changes direction and size, etc.), and alternative motion vectors for each pattern. By comparing these alternative motion vectors, the most probable alternative motion vector is used instead of the motion vector. Accordingly, even if the erroneous detection of the motion vector generated by alternative motion vector that reflects the actual movement of the image can be motion compensation, it is possible to reduce the occurrence of the minute image distortion.

本発明によれば、動きベクトルに誤検出が生じた場合には画像の動きを反映した代替の動きベクトルを用いることで画像歪みの発生を軽減することができる。   According to the present invention, when an erroneous detection occurs in a motion vector, the occurrence of image distortion can be reduced by using an alternative motion vector that reflects the motion of the image.

以下、適宜図面を参照しながら本発明の実施例を詳述する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate.

(1)実施例の構成
図1は、本発明の実施例1に係る映像信号処理装置であるフォーマット変換装置に適用される動きベクトル出力装置を示すブロック図である。このフォーマット変換装置は、この動きベクトル出力装置1から出力される動きベクトルによる線形内挿処理によりビデオ信号のフォーマットを変換するようになされている。このため動きベクトル出力装置1は、ビデオ信号を構成する輝度信号Yから動きベクトルVを検出して出力する。なお動きベクトルの検出においては、輝度信号Yを使用する場合に限らず、色差信号R−Y、B−Yを使用することも可能である。
(1) Configuration of Embodiment FIG. 1 is a block diagram showing a motion vector output apparatus applied to a format conversion apparatus which is a video signal processing apparatus according to Embodiment 1 of the present invention. This format conversion device converts the format of a video signal by linear interpolation processing using a motion vector output from the motion vector output device 1. For this reason, the motion vector output device 1 detects and outputs the motion vector V from the luminance signal Y constituting the video signal. In the detection of the motion vector, not only when the luminance signal Y is used, but the color difference signals RY and BY can also be used.

この動きベクトル出力装置1において、前置フィルタ2は、二次元のローパスフィルタであり、輝度信号Yを入力して高域成分を抑圧し、これによりノイズによる動きベクトルの誤検出を防止する。また前置フィルタ2は、輝度信号Yがインターレース方式によるビデオ信号によるものの場合、いわゆる重心補正の処理を実行し、これにより連続するフィールド間で動きベクトルを検出する際に、フィールド間でラインが異なることによる動きベクトルの検出精度の劣化を防止するようになされている。なおこの前置フィルタ2はローパスフィルタに限らず、帯域通過フィルタを適用することもできる。   In this motion vector output device 1, the pre-filter 2 is a two-dimensional low-pass filter, which receives the luminance signal Y and suppresses high frequency components, thereby preventing erroneous detection of motion vectors due to noise. In addition, when the luminance signal Y is based on an interlaced video signal, the pre-filter 2 executes so-called center-of-gravity correction processing, so that when detecting a motion vector between consecutive fields, the lines differ between the fields. This prevents the deterioration of the motion vector detection accuracy. The pre-filter 2 is not limited to a low-pass filter, and a band-pass filter can be applied.

1フィールド遅延回路3は、この前置フィルタ2から輝度信号Yを入力し、1フィールドの期間だけ遅延させて出力する。   The 1-field delay circuit 3 receives the luminance signal Y from the pre-filter 2 and outputs it after being delayed by a period of 1 field.

動きベクトル検出回路4は、ブロックマッチング法により、1フィールド遅延回路3から出力される輝度信号Y1を基準にして前置フィルタ2から出力される輝度信号Yの動きベクトルMVを順次検出して出力する。なおこの実施例では、前置フィルタ2から出力される輝度信号Yに順次マクロブロックを設定して、マクロブロック単位で動きベクトルMVを検出するようになされ、このマクロブロックの大きさ(m画素×nライン)が8画素×8ラインに設定されるようになされている。   The motion vector detection circuit 4 sequentially detects and outputs the motion vector MV of the luminance signal Y output from the pre-filter 2 based on the luminance signal Y1 output from the one-field delay circuit 3 by the block matching method. . In this embodiment, macroblocks are sequentially set in the luminance signal Y output from the prefilter 2, and the motion vector MV is detected in units of macroblocks. The size of this macroblock (m pixels × n lines) is set to 8 pixels × 8 lines.

後置フィルタ5は、動きベクトル検出回路4から出力される動きベクトルMVを、周辺の比較的狭い範囲の動きベクトルにより平滑化して出力する。すなわち図2は、後置フィルタ5を示すブロック図であり、メディアンフィルタ11は、動きベクトルMVのマクロブロックを中心とした周囲、所定数のマクロブロックについて、それぞれのマクロブロックで検出された動きベクトルのうち、動き量が平均的な動きベクトルを中心のマクロブロックに割り当てて出力する。2次元ローパスフィルタ12は、メディアンフィルタ11から順次出力される動きベクトルを平滑化して動きベクトルMVAを出力する。これにより後置フィルタ5においては、動きベクトルMVが周辺の動きベクトルにより平滑化されて出力される。   The post-filter 5 smoothes the motion vector MV output from the motion vector detection circuit 4 with a motion vector in a relatively narrow range and outputs it. That is, FIG. 2 is a block diagram showing the post-filter 5, and the median filter 11 is a motion vector detected in each macroblock for a predetermined number of macroblocks around the macroblock of the motion vector MV. Among them, a motion vector having an average motion amount is assigned to a central macro block and output. The two-dimensional low-pass filter 12 smoothes the motion vector sequentially output from the median filter 11 and outputs a motion vector MVA. As a result, in the post filter 5, the motion vector MV is smoothed by the surrounding motion vectors and output.

また代表ベクトル生成回路6は、後置フィルタ5による平滑化の範囲より広い、横128個×縦32個のマクロブロックを1つの検出ブロックとして、この比較的広い範囲の検出ブロック単位で、動きベクトル検出回路4から出力される動きベクトルMVを平均化して出力する。   Further, the representative vector generation circuit 6 uses a macro block of 128 horizontal x 32 vertical that is wider than the range of smoothing by the post filter 5 as one detection block, and the motion vector in units of this relatively wide range of detection blocks. The motion vector MV output from the detection circuit 4 is averaged and output.

すなわち図3は、代表ベクトル生成回路6を示すブロック図であり、比較回路21は、動きベクトル検出回路4から出力される動きベクトルMVのベクトル値を所定の判定基準値αと比較することにより、ベクトル値が判定基準値αより大きな動きベクトルを選択して出力する。なおベクトル値は、動きベクトルのX成分及びY成分により方向及び大きさを表す値であり、判定基準値αは、X成分及びY成分について設けられるようになされている。これにより動きベクトルMVの判定基準値αによる判定においては、X成分及びY成分について、各成分による判定基準によりそれぞれ実行され、両方向の成分について上述の判定基準を満足する場合に対応する動きベクトルが選択される。なお判定基準値αは、オペレータの操作により設定された値が適用され、又は事前に設定された固定値が適用される。なお動きベクトルMVの判定基準値αによる判定においては、動きベクトルMVの水平方向成分VX及び垂直方向成分VYをMV=(VX2+VY21/2の関係式により処理して動きベクトルMVの大きさを検出し、この大きさを判定基準値αにより判定するようにしてもよい。 That is, FIG. 3 is a block diagram showing the representative vector generation circuit 6, and the comparison circuit 21 compares the vector value of the motion vector MV output from the motion vector detection circuit 4 with a predetermined determination reference value α. A motion vector having a vector value larger than the determination reference value α is selected and output. The vector value is a value representing the direction and magnitude by the X and Y components of the motion vector, and the determination reference value α is provided for the X and Y components. Thereby, in the determination by the determination reference value α of the motion vector MV, the X component and the Y component are respectively executed according to the determination criterion by each component, and the motion vector corresponding to the case where the above determination criterion is satisfied for the components in both directions is obtained. Selected. As the determination reference value α, a value set by an operator's operation is applied, or a fixed value set in advance is applied. In the determination based on the determination reference value α of the motion vector MV, the horizontal direction component VX and the vertical direction component VY of the motion vector MV are processed by the relational expression MV = (VX 2 + VY 2 ) 1/2 and the motion vector MV The size may be detected, and this size may be determined based on the determination reference value α.

累計回路22は、比較回路21から出力される判定基準値αよりも大きな動きベクトルを検出ブロックごとに累計して出力する。割算回路23は、累計回路22から出力される累計値をその累計値に係るマクロブロック数で割り算することにより、判定基準値αよりも大きな動きベクトルの平均値を算出し、算出結果をそのマクロブロック数と共に出力する。   The accumulation circuit 22 accumulates and outputs a motion vector larger than the determination reference value α output from the comparison circuit 21 for each detection block. The division circuit 23 calculates an average value of motion vectors larger than the criterion value α by dividing the cumulative value output from the cumulative circuit 22 by the number of macroblocks related to the cumulative value, and the calculation result Output with the number of macroblocks.

一方比較回路24は、動きベクトル検出回路4から出力される動きベクトルのベクトル値を所定の判定基準値βと比較することにより、ベクトル値が判定基準値βよりも小さな動きベクトルを選択して出力する。なお判定基準値βは、X成分及びY成分について設けられるようになされ、動きベクトルMVの判定基準値βによる判定においては、X成分及びY成分について、各成分による判定基準によりそれぞれ実行され、両方向の成分について上述の判定基準を満足する場合に対応する動きベクトルが選択される。なお判定基準値βは、判定基準値αよりも小さく値0に近い値が適用され、この値はオペレータの操作により設定され、又は事前に設定された固定値が用いられる。なお動きベクトルMVの判定基準値βによる判定においても、動きベクトルMVの水平方向成分VX及び垂直方向成分VYをMV=(VX2+VY21/2の関係式により処理して動きベクトルMVの大きさを検出し、この大きさを判定基準値βにより判定するようにしてもよい。 On the other hand, the comparison circuit 24 selects and outputs a motion vector whose vector value is smaller than the determination reference value β by comparing the vector value of the motion vector output from the motion vector detection circuit 4 with a predetermined determination reference value β. To do. Note that the determination reference value β is provided for the X component and the Y component, and in the determination based on the determination reference value β of the motion vector MV, the X component and the Y component are respectively executed according to the determination reference by each component, and both directions The motion vector corresponding to the case where the above-described determination criterion is satisfied for the component is selected. As the determination reference value β, a value smaller than the determination reference value α and close to 0 is applied, and this value is set by an operator's operation or a fixed value set in advance is used. In the determination based on the determination reference value β of the motion vector MV, the horizontal direction component VX and the vertical direction component VY of the motion vector MV are processed by the relational expression MV = (VX 2 + VY 2 ) 1/2 and the motion vector MV The size may be detected, and this size may be determined based on the determination reference value β.

累計回路25は、比較回路24から出力される判定基準値βよりも小さな動きベクトルを検出ブロックごとに累計して出力する。割算回路26は、累計回路25から出力される累計値をその累計値に係るマクロブロック数で割り算することにより、判定基準値βよりも小さな動きベクトルの平均値を算出し、算出結果をそのマクロブロック数と共に出力する。   The accumulation circuit 25 accumulates and outputs motion vectors smaller than the determination reference value β output from the comparison circuit 24 for each detection block. The division circuit 26 calculates an average value of motion vectors smaller than the determination reference value β by dividing the cumulative value output from the cumulative circuit 25 by the number of macroblocks related to the cumulative value, and calculates the calculation result as Output with the number of macroblocks.

選択回路27は、割算回路23から出力される判定基準値αよりも大きな動きベクトルに係るマクロブロック数と、割算回路26から出力される判定基準値βよりも小さな動きベクトルに係るマクロブロック数とを比較し、マクロブロック数の大きな方に係る動きベクトルの平均値を選択し、これを代表ベクトルMVBとして出力する。   The selection circuit 27 includes a macroblock number related to a motion vector larger than the determination reference value α output from the division circuit 23 and a macroblock related to a motion vector smaller than the determination reference value β output from the division circuit 26. And the average value of the motion vectors associated with the larger number of macroblocks is selected and output as a representative vector MVB.

しかしてベクトル値が判定基準値αよりも大きな動きベクトルに係るマクロブロックが多い場合には、同様の大きさでなる動きベクトルが多く検出されて画像に一様な動きがあると判断することができる。これに対してベクトル値が判定基準値βよりも小さな動きベクトルに係るマクロブロックが多い場合には、動きがない静止画であると判断することができる。これにより代表ベクトル生成回路6においては、ベクトル値が判定基準値αよりも大きな動きベクトルに係るマクロブロック数と、判定基準値βよりも小さな動きベクトルに係るマクロブロック数との比較により、判定基準値αよりも大きな動きベクトルに係るマクロブロック数が判定基準値βよりも小さな動きベクトルに係るマクロブロック数よりも多い場合には、画像に一様な動きがあるものと判断して、判定基準値αよりも大きな動きベクトルを検出ブロック単位で平均化し、これを検出ブロックの代表ベクトルとして出力する。これに対して、判定基準値βよりも小さな動きベクトルに係るマクロブロック数が判定基準値αよりも大きな動きベクトルに係るマクロブロック数よりも多い場合には、静止画であると判断して、判定基準値βよりも小さな動きベクトルを検出ブロック単位で平均化し、これを検出ブロックの代表ベクトルとして出力する。この場合判定基準値βが0に近い値に設定されていることにより、ベクトル値がほぼ0の代表ベクトルが生成されることとなる。   Therefore, when there are many macroblocks related to a motion vector whose vector value is larger than the criterion value α, it is possible to determine that there are many motion vectors having the same size and that the image has uniform motion. it can. On the other hand, when there are many macroblocks related to a motion vector whose vector value is smaller than the determination reference value β, it can be determined that the image is a still image without motion. As a result, the representative vector generation circuit 6 compares the number of macroblocks related to a motion vector whose vector value is larger than the determination reference value α with the number of macroblocks related to a motion vector smaller than the determination reference value β. If the number of macroblocks related to a motion vector larger than the value α is larger than the number of macroblocks related to a motion vector smaller than the determination reference value β, it is determined that the image has uniform motion, and the determination reference A motion vector larger than the value α is averaged for each detected block, and this is output as a representative vector of the detected block. On the other hand, when the number of macroblocks related to a motion vector smaller than the determination reference value β is larger than the number of macroblocks related to a motion vector larger than the determination reference value α, it is determined as a still image, A motion vector smaller than the determination reference value β is averaged for each detection block, and this is output as a representative vector of the detection block. In this case, since the determination reference value β is set to a value close to 0, a representative vector having a vector value of approximately 0 is generated.

このように代表ベクトル生成回路6においては、画像に一様な動きがあるか否かに応じて、動きがある場合にはそのベクトル値を平均化した動きベクトルを検出ブロックの代表ベクトルとして生成し、これに対して動きがない場合にはベクトル値がほぼ0の動きベクトルを代表ベクトルとして生成する。   As described above, the representative vector generation circuit 6 generates a motion vector obtained by averaging the vector values as a representative vector of the detection block when there is a motion, depending on whether or not the image has a uniform motion. On the other hand, when there is no motion, a motion vector having a vector value of almost 0 is generated as a representative vector.

また代表ベクトル生成回路7は、動きベクトル検出回路4から出力される動きベクトルMVを時間軸方向に平均化して出力する。すなわち図4は、代表ベクトル生成回路7を示すブロック図であり、この代表ベクトル生成回路7においては、1フィールド遅延回路31、32、33、34が直列に接続され、各1フィールド遅延回路31〜34からそれぞれ1フィールド遅延した動きベクトルMV1、2フィールド遅延した動きベクトルMV2、3フィールド遅延した動きベクトルMV3及び4フィールド遅延した動きベクトルMV4が出力されるようになされている。   The representative vector generation circuit 7 averages and outputs the motion vector MV output from the motion vector detection circuit 4 in the time axis direction. 4 is a block diagram showing the representative vector generation circuit 7. In the representative vector generation circuit 7, one field delay circuits 31, 32, 33, and 34 are connected in series, and each of the one field delay circuits 31 to 31 is connected. From 34, a motion vector MV 1 delayed by 1 field, a motion vector MV2 delayed by 1 field, a motion vector MV3 delayed by 3 fields, and a motion vector MV4 delayed by 4 fields are output.

平均化回路35は、これらの動きベクトルMV1〜MV4と動きベクトル検出回路4から出力される現フィールドの動きベクトルMVとを入力し、これらの動きベクトルMV1〜MV4、MVの平均値を算出し、この算出結果を代表ベクトルMVCとして出力する。   The averaging circuit 35 inputs the motion vectors MV1 to MV4 and the motion vector MV of the current field output from the motion vector detection circuit 4, calculates an average value of these motion vectors MV1 to MV4 and MV, This calculation result is output as a representative vector MVC.

かくして代表ベクトル生成回路7においては、フィールドごとに方向、大きさが変化する動きベクトルに対して時間軸方向に平均化された動きベクトルが代表ベクトルMVCとして生成され出力される。   Thus, in the representative vector generation circuit 7, a motion vector averaged in the time axis direction with respect to a motion vector whose direction and size change for each field is generated and output as a representative vector MVC.

動きベクトル選別回路8は、動きベクトル検出回路4から出力される動きベクトルMV、後置フィルタ5から出力される動きベクトルMVA、代表ベクトル生成回路6から出力される代表ベクトルMVB又は代表ベクトル生成回路7から出力される代表ベクトルMVCのいずれかを選択して出力する。   The motion vector selection circuit 8 includes a motion vector MV output from the motion vector detection circuit 4, a motion vector MVA output from the post filter 5, a representative vector MVB output from the representative vector generation circuit 6, or a representative vector generation circuit 7. Is selected and output from the representative vector MVC.

すなわち図5は、動きベクトル選別回路8を示すブロック図であり、メモリ回路41は、1フィールド遅延回路3から出力される輝度信号Y1を記録して保持し、この保持した輝度信号Y1を検出ブロック単位で出力する。ここで検出ブロックは、動きベクトル検出回路4により設定されるマクロブロックに対して、各マクロブロックを複数の領域に分割して設定される領域である。この実施例において、検出ブロックは、縦4画素×横2ラインに設定されるようになされている。この処理おいて、メモリ回路41は、輝度信号Y1の書き込みに供した書き込みアドレスに対して、動きベクトル検出回路4で検出した動きベクトルMVの分、読み出しアドレスを偏位させたアドレス制御により保持した輝度信号Y1を出力し、これにより保持した輝度信号Y1を動きベクトルMVで動き補正して出力する。   5 is a block diagram showing the motion vector selection circuit 8. The memory circuit 41 records and holds the luminance signal Y1 output from the one-field delay circuit 3, and detects the held luminance signal Y1. Output in units. Here, the detection block is an area set by dividing each macro block into a plurality of areas for the macro block set by the motion vector detection circuit 4. In this embodiment, the detection block is set to 4 vertical pixels × 2 horizontal lines. In this processing, the memory circuit 41 holds the address by shifting the read address by the amount of the motion vector MV detected by the motion vector detection circuit 4 with respect to the write address used for writing the luminance signal Y1. The luminance signal Y1 is output, and the luminance signal Y1 held thereby is corrected by the motion vector MV and output.

差分演算回路42は、メモリ回路41から出力される輝度信号Y1と、前置フィルタ2から出力される輝度信号Yとの間で、対応する画素間で画素毎の差分値を計算して出力する。絶対値化回路43は、差分演算回路42から出力される差分値の絶対値を求め、この絶対値を検出ブロック単位で加算することにより差分絶対値和を計算し、これをフィールド間差分値DFD1として出力する。   The difference calculation circuit 42 calculates and outputs a difference value for each pixel between corresponding pixels between the luminance signal Y1 output from the memory circuit 41 and the luminance signal Y output from the prefilter 2. . The absolute value conversion circuit 43 obtains the absolute value of the difference value output from the difference calculation circuit 42, calculates the sum of absolute differences by adding the absolute value in units of detection blocks, and calculates this as the inter-field difference value DFD1. Output as.

またメモリ回路44は、1フィールド遅延回路3から出力される輝度信号Y1を記録して保持し、この保持した輝度信号Y1を検出ブロック単位で出力する。この処理において、メモリ回路44は、輝度信号Y1の書き込みに供した書き込みアドレスに対して、後置フィルタ5で生成した動きベクトルMVAの分、読み出しアドレスを偏位させたアドレス制御により保持した輝度信号Y1を出力し、これにより保持した輝度信号Y1を動きベクトルMVAで動き補正して出力する。   The memory circuit 44 records and holds the luminance signal Y1 output from the one-field delay circuit 3, and outputs the held luminance signal Y1 in units of detection blocks. In this process, the memory circuit 44 holds the luminance signal held by address control in which the read address is deviated by the amount of the motion vector MVA generated by the post filter 5 with respect to the write address used for writing the luminance signal Y1. Y1 is output, and the luminance signal Y1 held thereby is corrected by the motion vector MVA and output.

差分演算回路45は、メモリ回路44から出力される輝度信号Y1と、前置フィルタ2から出力される輝度信号Yとの間で、対応する画素間で画素毎の差分値を計算して出力する。絶対値化回路46は、差分演算回路45から出力される差分値の絶対値を求め、この絶対値を検出ブロック単位で加算することにより差分絶対値和を計算し、これをフィールド間差分値DFD2として出力する。   The difference calculation circuit 45 calculates and outputs a difference value for each pixel between corresponding pixels between the luminance signal Y1 output from the memory circuit 44 and the luminance signal Y output from the prefilter 2. . The absolute value conversion circuit 46 obtains the absolute value of the difference value output from the difference calculation circuit 45, calculates the sum of absolute differences by adding the absolute value in units of detection blocks, and calculates the sum of the difference values DFD2 between fields. Output as.

またメモリ回路47は、1フィールド遅延回路3から出力される輝度信号Y1を記録して保持し、この保持した輝度信号Y1を検出ブロック単位で出力する。この処理において、メモリ回路47は、輝度信号Y1の書き込みに供した書き込みアドレスに対して、代表ベクトル生成回路6で生成した代表ベクトルMVBの分、読み出しアドレスを偏位させたアドレス制御により保持した輝度信号Y1を出力し、これにより保持した輝度信号Y1を代表ベクトルMVBで動き補正して出力する。   The memory circuit 47 records and holds the luminance signal Y1 output from the one-field delay circuit 3, and outputs the held luminance signal Y1 in units of detection blocks. In this process, the memory circuit 47 holds the luminance held by address control in which the read address is deviated by the amount of the representative vector MVB generated by the representative vector generation circuit 6 with respect to the write address used for writing the luminance signal Y1. The signal Y1 is output, and the luminance signal Y1 held thereby is corrected by the representative vector MVB and output.

差分演算回路48は、メモリ回路47から出力される輝度信号Y1と、前置フィルタ2から出力される輝度信号Yとの間で、対応する画素間で画素毎の差分値を計算して出力する。絶対値化回路49は、差分演算回路48から出力される差分値の絶対値を求め、この絶対値を検出ブロック単位で加算することにより差分絶対値和を計算し、これをフィールド間差分値DFD3として出力する。   The difference calculation circuit 48 calculates and outputs a difference value for each pixel between corresponding pixels between the luminance signal Y1 output from the memory circuit 47 and the luminance signal Y output from the prefilter 2. . The absolute value conversion circuit 49 obtains the absolute value of the difference value output from the difference calculation circuit 48, calculates the sum of absolute differences by adding this absolute value in units of detection blocks, and calculates the sum of the difference values DFD3 between fields. Output as.

さらにメモリ回路50は、1フィールド遅延回路3から出力される輝度信号Y1を記録して保持し、この保持した輝度信号Y1を検出ブロック単位で出力する。この処理において、メモリ回路50は、輝度信号Y1の書き込みに供した書き込みアドレスに対して、代表ベクトル生成回路7で生成した代表ベクトルMVCの分、読み出しアドレスを偏位させたアドレス制御により保持した輝度信号Y1を出力し、これにより保持した輝度信号Y1を代表ベクトルMVCで動き補正して出力する。   Further, the memory circuit 50 records and holds the luminance signal Y1 output from the one-field delay circuit 3, and outputs the held luminance signal Y1 in units of detection blocks. In this processing, the memory circuit 50 holds the luminance held by address control in which the read address is deviated by the amount of the representative vector MVC generated by the representative vector generation circuit 7 with respect to the write address used for writing the luminance signal Y1. The signal Y1 is output, and the luminance signal Y1 held thereby is corrected by the representative vector MVC and output.

差分演算回路51は、メモリ回路50から出力される輝度信号Y1と、前置フィルタ2から出力される輝度信号Yとの間で、対応する画素間で画素毎の差分値を計算して出力する。絶対値化回路52は、差分演算回路51から出力される差分値の絶対値を求め、この絶対値を検出ブロック単位で加算することにより差分絶対値和を計算し、これをフィールド間差分値DFD4として出力する。   The difference calculation circuit 51 calculates and outputs a difference value for each pixel between corresponding pixels between the luminance signal Y1 output from the memory circuit 50 and the luminance signal Y output from the prefilter 2. . The absolute value conversion circuit 52 calculates the absolute value of the difference value output from the difference calculation circuit 51, calculates the sum of absolute differences by adding the absolute value in units of detection blocks, and calculates the sum of the difference values DFD4 between fields. Output as.

比較回路53は、絶対値化回路43、46、49、52からそれぞれ出力されるフィールド間差分値DFD1、DFD2、DFD3、DFD4を比較し、最も小さいフィールド間差分値に係る動きベクトル又は代表ベクトルを指定する指定信号を選択回路54に出力する。   The comparison circuit 53 compares the inter-field difference values DFD1, DFD2, DFD3, and DFD4 output from the absolute value conversion circuits 43, 46, 49, and 52, respectively, and determines the motion vector or representative vector related to the smallest inter-field difference value. A designation signal to be designated is output to the selection circuit 54.

選択回路54は、比較回路53から出力された指定信号に基づいて、動きベクトル検出回路4から出力される動きベクトルMV、後置フィルタ5から出力される動きベクトルMVA、代表ベクトル生成回路6から出力される代表ベクトルMVB、代表ベクトル生成回路7から出力される代表ベクトルMVCのいずれかを選択して出力する。   Based on the designation signal output from the comparison circuit 53, the selection circuit 54 outputs the motion vector MV output from the motion vector detection circuit 4, the motion vector MVA output from the post filter 5, and the representative vector generation circuit 6. The representative vector MVB and the representative vector MVC output from the representative vector generation circuit 7 are selected and output.

これにより動きベクトル選別回路8においては、フィールド間差分値を最も小さくする動きベクトル又は代表ベクトルが選択され、動きベクトルVとして出力される。この動きベクトルVは、所定の線形内挿処理回路(図示せず)に出力され、この線形内挿処理回路においてこの動きベクトルVにより線形内挿処理が施され、ビデオ信号のフォーマットが変換されるようになされている。   As a result, the motion vector selection circuit 8 selects the motion vector or representative vector that minimizes the inter-field difference value and outputs it as the motion vector V. The motion vector V is output to a predetermined linear interpolation processing circuit (not shown), and the linear interpolation processing is performed by the motion vector V in the linear interpolation processing circuit, thereby converting the format of the video signal. It is made like that.

これらによりこの実施例において、動きベクトル検出回路4は、所定のブロック単位でビデオ信号の動きベクトルを順次検出する動きベクトル検出手段を構成し、後置フィルタ5、代表ベクトル生成回路5、6は、動きベクトルに基づいて前記動きベクトルに代わる少なくとも1つ以上の代替の動きベクトルを出力する代替動きベクトル生成手段を構成し、差分演算回路42は、ビデオ信号を動きベクトル検出手段による動きベクトルにより動き補正してフィールド間差分値DFD1を検出する主の差分値演算手段を構成し、差分演算回路45、48、51は、ビデオ信号を動きベクトル補正手段により補正された動きベクトルにより動き補正してフィールド間差分値DFD2、DFD3、DFD4を検出する副の差分値演算手段を構成し、比較回路53は、主の差分値演算手段によるフィールド間差分値と、副の差分値演算手段によるフィールド間差分値とを比較する比較手段を構成し、選択回路54は、比較手段の比較結果に基づいて、動きベクトルMV又は代替の動きベクトルMVA、MVB、MVCを選択出力する選択手段を構成するようになされている。   Thus, in this embodiment, the motion vector detection circuit 4 constitutes a motion vector detection means for sequentially detecting the motion vector of the video signal in a predetermined block unit, and the post filter 5 and the representative vector generation circuits 5 and 6 An alternative motion vector generating means for outputting at least one or more alternative motion vectors instead of the motion vector based on the motion vector is configured, and the difference calculation circuit 42 corrects the motion of the video signal by the motion vector by the motion vector detecting means. Thus, the main difference value calculation means for detecting the inter-field difference value DFD1 is configured, and the difference calculation circuits 45, 48, 51 perform motion correction on the video signal by the motion vector corrected by the motion vector correction means, and Constituting a sub difference value calculating means for detecting the difference values DFD2, DFD3, DFD4; The comparison circuit 53 constitutes comparison means for comparing the inter-field difference value by the main difference value calculation means and the inter-field difference value by the sub difference value calculation means, and the selection circuit 54 displays the comparison result of the comparison means. Based on this, a selection means for selecting and outputting the motion vector MV or the alternative motion vectors MVA, MVB, and MVC is configured.

(2)実施例の動作
以上の構成において、この動きベクトル出力装置1において、処理対象であるビデオ信号の輝度信号Yは、前置フィルタ2により周波数特性が補正された後、動きベクトル検出回路4によりマクロブロック単位で動きベクトルMVが順次検出される。また後置フィルタ5により、周辺の比較的狭い範囲の動きベクトルで平滑化された動きベクトルMVAがマクロブロック単位で順次生成される。また代表ベクトル生成回路6により、横128個×縦32個のマクロブロックを検出ブロックとして、検出ブロック内でほぼ同一の方向及び大きさでなる複数の動きベクトルで平均化された代表ベクトルMVBがマクロブロック単位で順次生成される。また代表ベクトル生成回路7により、時間軸方向に平均化された代表ベクトルMVCがマクロブロック単位で順次生成される。
(2) Operation of Embodiment In the above configuration, in the motion vector output device 1, the luminance signal Y of the video signal to be processed is corrected in frequency characteristics by the pre-filter 2, and then the motion vector detection circuit 4 Thus, the motion vector MV is sequentially detected for each macroblock. Further, the post-filter 5 sequentially generates a motion vector MVA smoothed with a motion vector in a relatively narrow range in the vicinity of the macroblock. The representative vector generation circuit 6 uses a macro block of 128 × 32 macro blocks as a detection block, and a representative vector MVB averaged with a plurality of motion vectors having substantially the same direction and size in the detection block is a macro. Generated sequentially in blocks. The representative vector generation circuit 7 sequentially generates the representative vector MVC averaged in the time axis direction in units of macroblocks.

しかして後置フィルタ5で生成された動きベクトルMVAにあっては、動きベクトル検出回路4で検出された動きベクトルMVを周辺の比較的狭い範囲の動きベクトルにより平滑化してなることにより、想定される動きのパターンとして例えば小物体の動きを反映した代替の動きベクトルとして用いることができる。   Therefore, the motion vector MVA generated by the post filter 5 is assumed to be obtained by smoothing the motion vector MV detected by the motion vector detection circuit 4 with a motion vector in a relatively narrow range around the motion vector MVA. For example, it can be used as an alternative motion vector reflecting the motion of a small object.

また代表ベクトル生成回路6で生成された代表ベクトルMVBにあっては、動きベクトル検出回路4で検出された動きベクトルMVを、後置フィルタ5による処理に比して相対的に広い範囲である、横128個×縦32個のマクロブロックによる検出ブロック単位で一様な動きがある場合の平均的な動きベクトルに変換してなることにより、想定される動きのパターンとして画像の一様な動きを反映した代替の動きベクトルとして用いることができる。   Further, in the representative vector MVB generated by the representative vector generation circuit 6, the motion vector MV detected by the motion vector detection circuit 4 is in a relatively wide range as compared with the processing by the post filter 5. By converting to an average motion vector when there is uniform motion in units of detected blocks by 128 macro blocks by 32 macro blocks, uniform motion of an image can be obtained as an assumed motion pattern. It can be used as a reflected alternative motion vector.

また代表ベクトル生成回路7で生成された代表ベクトルMVCにあっては、動きベクトル検出回路4で検出された動きベクトルMVを、時間軸方向に平均化してなることにより、想定される動きのパターンとして時間とともに方向及び大きさが変化する動きを反映した代替の動きベクトルとして用いることができる。   Further, in the representative vector MVC generated by the representative vector generation circuit 7, the motion vector MV detected by the motion vector detection circuit 4 is averaged in the time axis direction, thereby obtaining an assumed motion pattern. It can be used as an alternative motion vector reflecting a motion whose direction and magnitude change with time.

これらの動きベクトルMV、MVA及び代表ベクトルMVB、MVCは、動きベクトル選別回路8において、それぞれのフィールド間差分値の比較により最も確からしいものが選択される。すなわち動きベクトルMVが正しく検出されている場合には、動きベクトルMVによるフィールド間差分値DFD1が最も小さくなることにより、この動きベクトルMVが選択される。これに対して、動きベクトルMVが誤検出された場合には、動きベクトルMVによるフィールド間差分値DFD1が大きくなるのに対して、後置フィルタ5で検出された動きベクトルMVAによるフィールド間差分値DFD2、代表ベクトル生成回路6で検出された代表ベクトルMVBによるフィールド間差分値DFD3又は代表ベクトル生成回路7で検出された代表ベクトルMVCによるフィールド間差分値DFD4のいずれかが実際の動きに応じて最も小さな値となる。この場合、小物体の動きにあっては後置フィルタ5で生成された動きベクトルMVAによるフィールド間差分値DFD1が最も小さくなり、カメラパーンのように一様な動きがある場合には代表ベクトル生成回路6で生成された代表ベクトルMVBによるフィールド間差分値DFD3が最も小さくなり、回転のような動きがある場合には代表ベクトル生成回路7で生成された代表ベクトルMVCによるフィールド間差分値DFD4が最も小さくなる。これにより動きベクトルMVが誤検出された場合には、想定された動きのパターンのうち、実際の動きを反映した動きベクトルMVA、代表ベクトルMVB又は代表ベクトルMVCが代替の動きベクトルとして選択回路54により選択される。   These motion vectors MV and MVA and representative vectors MVB and MVC are selected by the motion vector selection circuit 8 with the most probable values by comparing the difference values between the fields. That is, when the motion vector MV is correctly detected, the inter-field difference value DFD1 based on the motion vector MV becomes the smallest, so that the motion vector MV is selected. On the other hand, when the motion vector MV is erroneously detected, the inter-field difference value DFD1 based on the motion vector MV increases, whereas the inter-field difference value based on the motion vector MVA detected by the post filter 5 Either the inter-field difference value DFD3 based on the representative vector MVB detected by the DFD2 or the representative vector generation circuit 6 or the inter-field difference value DFD4 based on the representative vector MVC detected by the representative vector generation circuit 7 is the most depending on the actual motion. Small value. In this case, when the small object moves, the inter-field difference value DFD1 based on the motion vector MVA generated by the post-filter 5 is the smallest, and when there is a uniform motion like a camera pan, a representative vector is generated. The inter-field difference value DFD3 based on the representative vector MVB generated by the circuit 6 is the smallest, and when there is a movement like rotation, the inter-field difference value DFD4 generated by the representative vector MVC generated by the representative vector generating circuit 7 is the largest. Get smaller. Accordingly, when the motion vector MV is erroneously detected, the motion vector MVA, the representative vector MVB, or the representative vector MVC reflecting the actual motion among the assumed motion patterns is selected by the selection circuit 54 as an alternative motion vector. Selected.

これにより例えば小物体の動きについて、動きベクトル検出回路4で動きベクトルMVが誤検出された場合には、この動きベクトルMVに代えて動きベクトルMVAが選択され、また例えばカメラパーンのような一様な動きについて、動きベクトル検出回路4で動きベクトルMVが誤検出された場合には、この動きベクトルMVに代えて代表ベクトルMVBが選択され、さらにまた例えば画像が回転する場合について、動きベクトル検出回路4で動きベクトルMVが誤検出された場合には、この動きベクトルMVに代えて代表ベクトルMVCが選択される。   Thereby, for example, when the motion vector MV is erroneously detected by the motion vector detection circuit 4 with respect to the motion of the small object, the motion vector MVA is selected instead of the motion vector MV, and uniform motion such as camera pan When a motion vector MV is erroneously detected by the motion vector detection circuit 4 for a simple motion, the representative vector MVB is selected instead of the motion vector MV, and for example, when the image rotates, the motion vector detection circuit If the motion vector MV is erroneously detected at 4, the representative vector MVC is selected instead of the motion vector MV.

かくして動きベクトル検出回路4において動きベクトルMVが誤検出された場合には、動きのパターンを最も反映した代替の動きベクトルが選択されて出力されることにより、この代替の動きベクトルによりビデオ信号を線形内挿処理すれば、例えば単に値0の動きベクトルに置き換えて線形内挿処理する場合に比して、画像歪みの発生を軽減することができる。   Thus, when the motion vector detection circuit 4 erroneously detects the motion vector MV, an alternative motion vector that most reflects the motion pattern is selected and output, so that the video signal is linearized by this alternative motion vector. If the interpolation process is performed, the occurrence of image distortion can be reduced as compared with the case where the linear interpolation process is performed by simply replacing the motion vector with a value of 0, for example.

(3)実施例の効果
以上の構成によれば、検出された動きベクトルMVと、動きベクトルMVに基づいて生成した代替の動きベクトルとを比較して選択するようにしたことにより、動きベクトルMVに誤検出が生じた場合には画像の動きを反映した代替の動きベクトルを用いることで、画像歪みの発生を軽減することができる。
(3) Effects of the embodiment According to the above configuration, the motion vector MV is selected by comparing the detected motion vector MV with the alternative motion vector generated based on the motion vector MV. If an erroneous detection occurs, the use of an alternative motion vector that reflects the motion of the image can reduce the occurrence of image distortion.

また想定される動きのパターンとして複数種類(小物体の動き、カメラパーンのような一様な動き、回転のような方向及び大きさが変化する動き等)の動きのパターンによりそれぞれのパターン毎に動きベクトルMVA、代表ベクトルMVB、MVCを生成し、これらの動きベクトルMV、MVA、代表ベクトルMVB、MVCの比較により最も確からしい動きベクトル又は代表ベクトルを代替の動きベクトルとして用いるようにしたことにより、動きベクトルMVに誤検出が発生した場合であっても、画像の実際の動きを反映した動きベクトルVにより画像歪みの発生を軽減することができる。   In addition, there are several types of motion patterns that can be assumed (such as small object motions, uniform motions like camera pans, motions that change direction and size such as rotation, etc.) for each pattern. By generating a motion vector MVA, representative vectors MVB, MVC and comparing the motion vectors MV, MVA, representative vectors MVB, MVC, the most probable motion vector or representative vector is used as an alternative motion vector. Even when a false detection occurs in the motion vector MV, the occurrence of image distortion can be reduced by the motion vector V reflecting the actual motion of the image.

なお上述の実施例においては、想定される動きのパターンとして、小物体の動き、カメラパーンのような一様な動き、回転のような方向及び大きさが時間と共に変化する動きを設定し、これらの動きに応じた代替の動きベクトルを選択候補とする場合について述べたが、本発明はこれに限らず、要は検出した動きベクトルMVのみでなく、想定される種々の動きのパターンについて代替の動きベクトルを生成して選択するようにすればよい。   In the above-described embodiment, as movement patterns assumed, small object movements, uniform movements such as camera pans, and movements in which the direction and size such as rotation change with time are set. However, the present invention is not limited to this, and the present invention is not limited to this. Instead, not only the detected motion vector MV but also various assumed motion patterns can be substituted. A motion vector may be generated and selected.

また上述の実施例においては、8画素×8ラインのマクロブロック単位で動きベクトルを検出し、4画素×2ラインのブロックでフィールド間差分値を計算して比較する場合について述べたが、本発明はこれに限らず、他の種々の大きさのブロック又は画素単位で動きベクトルの検出及び又はフィールド間差分値を計算して比較するようにしてもよい。   In the above-described embodiment, a case has been described in which a motion vector is detected in units of macroblocks of 8 pixels × 8 lines and a difference value between fields is calculated and compared in a block of 4 pixels × 2 lines. However, the present invention is not limited to this, and motion vectors may be detected and / or difference values between fields may be calculated and compared in units of other various sizes or pixels.

また上述の実施例においては、フィールド間で動きベクトルを検出し、フィールド間差分の比較により動きベクトルを選択する場合について述べたが、本発明はこれに限らず、フレーム間で動きベクトルを検出し、フレーム間差分の比較により動きベクトルを選択するようにしてもよい。この場合には前置フィルタ2による重心補正の処理を省略することができる。   In the above embodiment, the motion vector is detected between the fields, and the motion vector is selected by comparing the differences between the fields. However, the present invention is not limited to this, and the motion vector is detected between the frames. The motion vector may be selected by comparing the difference between frames. In this case, the center of gravity correction process by the pre-filter 2 can be omitted.

また上述の実施例においては、ブロックマッチング法により動きベクトルを検出する場合について述べたが、本発明はこれに限らず、例えば勾配法、位相相関法等により動きベクトルを検出するようにしてもよい。   In the above-described embodiment, the case where the motion vector is detected by the block matching method has been described. However, the present invention is not limited to this. For example, the motion vector may be detected by a gradient method, a phase correlation method, or the like. .

また上述の実施例においては、検出された動きベクトルVによりビデオ信号を線形内挿処理するフォーマット変換装置に適用される動きベクトル出力装置について述べたが、本発明はこれに限らず、例えばMPEG(Moving Picture Experts Group)等による符号化装置、ノイズ軽減装置等、動きベクトルVを用いてビデオ信号を種々に処理する映像信号処理装置に広く適用することができる。   In the above-described embodiment, the motion vector output device applied to the format conversion device that linearly interpolates the video signal using the detected motion vector V has been described. However, the present invention is not limited to this, and for example, MPEG ( The present invention can be widely applied to video signal processing apparatuses that process a video signal in various ways using a motion vector V, such as a coding apparatus by Moving Picture Experts Group), a noise reduction apparatus, and the like.

本発明は、映像信号処理装置に関し、例えばフォーマット変換装置に適用することができる。   The present invention relates to a video signal processing apparatus, and can be applied to, for example, a format conversion apparatus.

本発明の実施例に係る動きベクトル出力装置を示すブロック図である。It is a block diagram which shows the motion vector output device based on the Example of this invention. 図1の動きベクトル出力装置の後置フィルタを示すブロック図である。It is a block diagram which shows the post filter of the motion vector output apparatus of FIG. 図1の動きベクトル出力装置の代表ベクトル生成回路を示すブロック図である。FIG. 2 is a block diagram showing a representative vector generation circuit of the motion vector output device of FIG. 1. 図1の動きベクトル出力装置の代表ベクトル生成回路を示すブロック図である。FIG. 2 is a block diagram showing a representative vector generation circuit of the motion vector output device of FIG. 1. 図1の動きベクトル出力装置の動きベクトル選別回路を示すブロック図である。It is a block diagram which shows the motion vector selection circuit of the motion vector output device of FIG. 動きベクトルの誤検出による画像歪みの発生の説明に供する略線図である。It is a basic diagram with which it uses for description of generation | occurrence | production of the image distortion by the false detection of a motion vector. 動きベクトルの誤検出による画像歪みの発生の説明に供する略線図である。It is a basic diagram with which it uses for description of generation | occurrence | production of the image distortion by the false detection of a motion vector.

符号の説明Explanation of symbols

1……動きベクトル出力装置、3……1フィールド遅延回路、4……動きベクトル検出回路、5……後置フィルタ、6、7……代表ベクトル生成回路、8……動きベクトル選別回路、MV、MVA……動きベクトル、MV2、MV3……代表ベクトル
DESCRIPTION OF SYMBOLS 1 ... Motion vector output device, 3 ... 1 field delay circuit, 4 ... Motion vector detection circuit, 5 ... Post filter, 6, 7 ... Representative vector generation circuit, 8 ... Motion vector selection circuit, MV , MVA ... motion vector, MV2, MV3 ... representative vector

Claims (2)

ビデオ信号の動きベクトルを検出し、前記動きベクトルにより前記ビデオ信号を処理して出力する映像信号処理装置において、
所定のブロック単位で前記ビデオ信号の動きベクトルを順次検出する動きベクトル検出手段と、
前記動きベクトルに基づいて前記動きベクトルに代わる少なくとも1つ以上の代替の動きベクトルを出力する代替動きベクトル生成手段と、
前記ビデオ信号を前記動きベクトルにより動き補正してフィールド間差分値又はフレーム間差分値を検出する主の差分値演算手段と、
前記ビデオ信号を前記代替の動きベクトルにより動き補正してフィールド間差分値又はフレーム間差分値を検出する副の差分値演算手段と、
前記主の差分値演算手段によるフィールド間差分値又はフレーム間差分値と、前記副の差分値演算手段によるフィールド間差分値又はフレーム間差分値とを比較する比較手段と、
前記比較手段の比較結果に基づいて、前記動きベクトル又は前記代替の動きベクトルを選択出力する選択手段とを備え、
前記選択手段から出力される前記動きベクトル又は前記代替の動きベクトルにより前記ビデオ信号を処理することを特徴とする映像信号処理装置。
In a video signal processing apparatus that detects a motion vector of a video signal, processes the video signal based on the motion vector, and outputs the processed video signal.
Motion vector detection means for sequentially detecting motion vectors of the video signal in predetermined block units;
Alternative motion vector generation means for outputting at least one or more alternative motion vectors instead of the motion vector based on the motion vector;
A main difference value calculation means for detecting a difference value between fields or a difference value between frames by correcting the motion of the video signal with the motion vector;
A sub difference value calculating means for detecting a difference value between fields or a difference value between frames by correcting the motion of the video signal with the alternative motion vector;
Comparison means for comparing the inter-field difference value or inter-frame difference value by the main difference value calculating means with the inter-field difference value or inter-frame difference value by the sub difference value calculating means,
Selection means for selectively outputting the motion vector or the alternative motion vector based on the comparison result of the comparison means;
The video signal processing apparatus, wherein the video signal is processed by the motion vector or the alternative motion vector output from the selection means.
前記代替動きベクトル生成手段は、
前記動きベクトル検出手段により検出された動きベクトルを平滑化する後置フィルタと、
前記動きベクトル検出手段により検出された動きベクトルを前記後置フィルタによる処理に比して広い範囲の周囲の一様な動きにより平均化する第1の平均化手段と、
前記動きベクトル検出手段により検出された動きベクトルを時間軸方向に平均化する第2の平均化手段とを備え、
前記比較手段は、前記動きベクトル検出手段により検出された動きベクトルによるフィールド間差分値又はフレーム間差分値と、前記後置フィルタにより平滑化された動きベクトルによるフィールド間差分値又はフレーム間差分値と、前記第1の平均化手段により平均化された動きベクトルによるフィールド間差分値又はフレーム間差分値と、前記第2の平均化手段により平均化された動きベクトルによるフィールド間差分値又はフレーム間差分値とを比較し、
前記選択手段は、前記動きベクトル検出手段による動きベクトル、前記後置フィルタにより平滑化された動きベクトル、前記第1の平均化手段により平均化された動きベクトル、又は前記第2の平均化手段により平均化された動きベクトルのいずれかを選択出力する
ことを特徴とする請求項1に記載の映像信号処理装置。
The alternative motion vector generation means includes
A post filter for smoothing the motion vector detected by the motion vector detection means;
First averaging means for averaging the motion vector detected by the motion vector detecting means by uniform movement around a wide range as compared with the processing by the post filter;
Second averaging means for averaging the motion vectors detected by the motion vector detecting means in the time axis direction;
The comparison means includes an inter-field difference value or inter-frame difference value based on the motion vector detected by the motion vector detection means, and an inter-field difference value or inter-frame difference value based on the motion vector smoothed by the post filter. The inter-field difference value or inter-frame difference value based on the motion vector averaged by the first averaging means and the inter-field difference value or inter-frame difference based on the motion vector averaged by the second averaging means Compare the value with
The selection means includes a motion vector by the motion vector detection means, a motion vector smoothed by the post filter, a motion vector averaged by the first averaging means, or by the second averaging means. The video signal processing apparatus according to claim 1, wherein any one of the averaged motion vectors is selectively output.
JP2004033229A 2004-02-10 2004-02-10 Video signal processing device Expired - Fee Related JP4261381B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004033229A JP4261381B2 (en) 2004-02-10 2004-02-10 Video signal processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004033229A JP4261381B2 (en) 2004-02-10 2004-02-10 Video signal processing device

Publications (2)

Publication Number Publication Date
JP2005229169A true JP2005229169A (en) 2005-08-25
JP4261381B2 JP4261381B2 (en) 2009-04-30

Family

ID=35003565

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004033229A Expired - Fee Related JP4261381B2 (en) 2004-02-10 2004-02-10 Video signal processing device

Country Status (1)

Country Link
JP (1) JP4261381B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009303108A (en) * 2008-06-17 2009-12-24 Sony Corp Image processing apparatus and image processing method, and program
KR101350193B1 (en) * 2006-02-01 2014-01-09 소니 가부시키가이샤 Taken-image signal-distortion compensation method, taken-image signal-distortion compensation apparatus, image taking method and image-taking apparatus
CN104468301A (en) * 2014-11-06 2015-03-25 南车株洲电力机车研究所有限公司 Safety output method based on MVB communication

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101350193B1 (en) * 2006-02-01 2014-01-09 소니 가부시키가이샤 Taken-image signal-distortion compensation method, taken-image signal-distortion compensation apparatus, image taking method and image-taking apparatus
JP2009303108A (en) * 2008-06-17 2009-12-24 Sony Corp Image processing apparatus and image processing method, and program
CN104468301A (en) * 2014-11-06 2015-03-25 南车株洲电力机车研究所有限公司 Safety output method based on MVB communication
CN104468301B (en) * 2014-11-06 2018-03-16 南车株洲电力机车研究所有限公司 A kind of Safety output method based on MVB communications

Also Published As

Publication number Publication date
JP4261381B2 (en) 2009-04-30

Similar Documents

Publication Publication Date Title
JP4997281B2 (en) Method for determining estimated motion vector in image, computer program, and display device
US20120269444A1 (en) Image compositing apparatus, image compositing method and program recording device
KR101000612B1 (en) Signal processing device and signal processing method
US20100309372A1 (en) Method And System For Motion Compensated Video De-Interlacing
US20080151106A1 (en) Reducing Artefacts In Scan-Rate Conversion Of Image Signals By Combining Interpolation And Extrapolation Of Images
US8355442B2 (en) Method and system for automatically turning off motion compensation when motion vectors are inaccurate
JP5081898B2 (en) Interpolated image generation method and system
JP3893227B2 (en) Scanning line interpolation apparatus and scanning line interpolation method
JPH11112940A (en) Method and apparatus for generating motion vector
US8345148B2 (en) Method and system for inverse telecine and scene change detection of progressive video
US7548655B2 (en) Image still area determination device
US8761262B2 (en) Motion vector refining apparatus
JP2005051460A (en) Video signal processing apparatus and video signal processing method
JP4261381B2 (en) Video signal processing device
WO1992007443A1 (en) Picture movement detector
JP4861636B2 (en) Image processing apparatus and image processing program
CN101212636A (en) Progressive scan conversion device and progressive scan conversion method
JP2006129326A (en) Motion vector detecting device
JP2642846B2 (en) Motion detector between fields
JP3022977B2 (en) Television signal interpolation method
JP2008118340A (en) Motion vector detecting device and video signal processor
JP2004180044A (en) Motion vector processing method and motion vector processing circuit
EP1870857A1 (en) Global motion estimation
JP3172323B2 (en) Video signal format converter
JP2007243627A (en) Video signal processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081113

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090109

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090205

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090205

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

Free format text: PAYMENT UNTIL: 20120220

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120220

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140220

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees