JP4630174B2 - Motion vector detection device - Google Patents

Motion vector detection device Download PDF

Info

Publication number
JP4630174B2
JP4630174B2 JP2005328751A JP2005328751A JP4630174B2 JP 4630174 B2 JP4630174 B2 JP 4630174B2 JP 2005328751 A JP2005328751 A JP 2005328751A JP 2005328751 A JP2005328751 A JP 2005328751A JP 4630174 B2 JP4630174 B2 JP 4630174B2
Authority
JP
Japan
Prior art keywords
motion vector
color
value
signal
vector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005328751A
Other languages
Japanese (ja)
Other versions
JP2007133823A (en
Inventor
康孝 松尾
澄男 矢野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Japan Broadcasting Corp
Original Assignee
Japan Broadcasting Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP2005328751A priority Critical patent/JP4630174B2/en
Publication of JP2007133823A publication Critical patent/JP2007133823A/en
Application granted granted Critical
Publication of JP4630174B2 publication Critical patent/JP4630174B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、例えばベイヤー型配列のカラー画素で構成された動画像において動きベクトルを検出する動きベクトル検出装置に関する。   The present invention relates to a motion vector detection device that detects a motion vector in a moving image composed of, for example, Bayer array color pixels.

従来、カラーの動画像を得るカラー撮像素子としては、入射光を赤(R)、緑(G)、青(B)の3原色に分解する分光プリズムと、この分光プリズムの後段に配置された3枚の光電変換素子とで構成された正方格子型の3板式カラー撮像素子が知られている。   Conventionally, as a color imaging device for obtaining a color moving image, a spectral prism that separates incident light into three primary colors of red (R), green (G), and blue (B), and a subsequent stage of the spectral prism are arranged. A square lattice type three-plate type color image pickup element constituted by three photoelectric conversion elements is known.

正方格子型の3板式カラー画素素子は、例えば順次走査方式により駆動され、撮像されたカラー動画像のR、G、B各色は同じ空間位置でサンプリングされて、図7に示すようなフレーム信号を出力する。以下、図7に示された画素配列を正方格子型カラー画素配列という。   A square lattice type three-plate color pixel element is driven by, for example, a sequential scanning method, and R, G, and B colors of a captured color moving image are sampled at the same spatial position to generate a frame signal as shown in FIG. Output. Hereinafter, the pixel array shown in FIG. 7 is referred to as a square lattice type color pixel array.

正方格子型カラー画素配列での動画像における動きベクトルを検出する方法には、一般に次のようなものがある。第1の方法は、色信号R、G、Bで動きベクトルを検出する方法であり、第2の方法は、色信号R、G、Bに線形変換を施して輝度信号Y及び色信号Pb、Prを生成して動きベクトルを検出する方法である。第2の方法で用いられる輝度信号Y及び色信号Pb、Prは、第1の方法で用いられる色信号R、G、Bに線形変換を施したものなので、第2の方法のサンプリング構造は基本的に第1の方法と同じである。したがって、第1の方法による動きベクトルの検出について以下説明する。   As a method for detecting a motion vector in a moving image with a square lattice color pixel array, there are generally the following methods. The first method is a method of detecting a motion vector using the color signals R, G, and B, and the second method is to perform a linear conversion on the color signals R, G, and B to obtain a luminance signal Y and a color signal Pb, In this method, Pr is generated to detect a motion vector. Since the luminance signal Y and the color signals Pb and Pr used in the second method are obtained by linearly converting the color signals R, G, and B used in the first method, the sampling structure of the second method is basic. This is the same as the first method. Therefore, motion vector detection by the first method will be described below.

色信号R、G、Bで動きベクトルを検出する場合、色信号R、G、Bの水平及び垂直方向のサンプリング周波数とサンプリング位置とが同じであるため、動きベクトルの検出精度は、R、G、B各色で同じである。一般的に、動きベクトルの検出は、フレーム番号nとn+1との間の画像においてブロックマッチング法によるR、G、B各色の画像に対して行われる。具体的には、所定画素数と所定ライン数で構成されたブロックをx、y方向にずらしながらマッチング値Mを算出し、マッチング値Mが最も大きいx、yの値を求めることにより、検出対象である動きベクトルのx、y方向のベクトル値が得られる。   When detecting a motion vector with the color signals R, G, and B, the horizontal and vertical sampling frequencies and sampling positions of the color signals R, G, and B are the same. , B are the same for each color. In general, motion vectors are detected for R, G, and B color images by the block matching method in images between frame numbers n and n + 1. Specifically, a matching value M is calculated while shifting a block configured with a predetermined number of pixels and a predetermined number of lines in the x and y directions, and the values of x and y with the largest matching value M are obtained. A vector value in the x and y directions of the motion vector is obtained.

以上のように、正方格子型カラー画素配列での動画像における動きベクトルを検出することができるが、従来の正方格子型の3板式カラー画素素子は、分光プリズム及び3枚の光電変換素子とで構成されているので、大きくて重くなるという課題があり、カラー撮像素子の小型軽量化を実現するためには、分光プリズムを必要としない、受光部が1枚で構成される単板式が望まれている。   As described above, a motion vector in a moving image in a square lattice type color pixel array can be detected. However, a conventional square lattice type three-plate color pixel element includes a spectral prism and three photoelectric conversion elements. Since it is configured, there is a problem that it is large and heavy, and in order to realize a small and lightweight color imaging device, a single plate type that does not require a spectroscopic prism and includes a single light receiving portion is desired. ing.

カラー撮像素子の小型軽量化を実現する手法として、光電変換素子の受光面に色画素としてR、G、B各色の色フィルタをベイヤー型に配列したもの(以下「ベイヤー型カラー画素配列」という。)が知られており、このカラー撮像素子は、単板でカラー画像が得られるので小型軽量化が可能である(例えば、非特許文献1参照。)。   As a technique for realizing a reduction in size and weight of a color image sensor, a color filter of R, G, and B colors as color pixels is arranged in a Bayer type on a light receiving surface of a photoelectric conversion element (hereinafter referred to as a “Bayer type color pixel array”). This color image sensor can be made small and light because a color image can be obtained with a single plate (see, for example, Non-Patent Document 1).

ベイヤー型カラー画素配列は、前述の正方格子型カラー画素配列とは異なり、図8に示すように、色信号Gは市松模様状のサンプリング構造、色信号R、Bは正方格子型サンプリング構造となっている。したがって、色信号Gの最高水平空間周波数及び最高垂直空間周波数をそれぞれμmax及びνmaxとすると、色信号R、Bの最高水平空間周波数及び最高垂直空間周波数は、それぞれ、μmax・1/2及びνmax・1/2となる。なお、色信号Gのサンプリング構造は、サイコロの5の目型の配列構造なので、5の目型サンプリング構造とも呼ばれる。 The Bayer type color pixel array is different from the square lattice type color pixel array described above, and as shown in FIG. 8, the color signal G has a checkered pattern sampling structure, and the color signals R and B have a square lattice type sampling structure. ing. Accordingly, if the maximum horizontal spatial frequency and the maximum vertical spatial frequency of the color signal G are μ max and ν max , respectively, the maximum horizontal spatial frequency and the maximum vertical spatial frequency of the color signals R and B are respectively μ max · 1/2 And ν max · 1/2. Note that the sampling structure of the color signal G is also called a five-eye sampling structure because it is a five-eye arrangement structure of dice.

木内 雄二著「イメージセンサの基礎と応用」日刊工業新聞社、1991年発行、P145Yuji Kiuchi “Basics and Applications of Image Sensors”, Nikkan Kogyo Shimbun, 1991, P145

しかしながら、ベイヤー型カラー画素配列の動画像における動きベクトルの検出には、以下のような課題がある。   However, detection of motion vectors in a moving image with a Bayer color pixel array has the following problems.

第1の課題は、正方格子型カラー画素配列での動画像によるものよりも動きベクトルの検出精度が低下する場合があるというものである。   The first problem is that the motion vector detection accuracy may be lower than that of a moving image in a square lattice type color pixel array.

ベイヤー型カラー画素配列の動画像において、前述のように色信号R及びBは、色信号Gよりも水平及び垂直のサンプリング周波数が低いので、フレーム番号nとn+1との間のブロックマッチング法による動きベクトルの検出では、色信号R及びBによる動きベクトル検出結果は、色信号Gによる動きベクトル検出結果よりも検出精度が低くなる可能性がある。したがって、ベイヤー型カラー画素配列の動画像における動きベクトルの検出精度は、正方格子型カラー画素配列での動画像によるものよりも低下する場合がある。   In the moving image of the Bayer type color pixel array, since the color signals R and B have lower horizontal and vertical sampling frequencies than the color signal G as described above, the motion by the block matching method between the frame numbers n and n + 1. In the vector detection, the motion vector detection result based on the color signals R and B may have lower detection accuracy than the motion vector detection result based on the color signal G. Therefore, the detection accuracy of motion vectors in a moving image with a Bayer color pixel array may be lower than that with a moving image in a square lattice color pixel array.

第2の課題は、ベイヤー型サンプリング構造に伴う折り返し歪みの影響を受ける場合があるというものである。この課題について、3次元周波数スペクトル構造を示す図9及び図10を用いて説明する。図9及び図10において、μ、ν及びfは、それぞれ、水平空間周波数、垂直空間周波数及び時間周波数を示し、説明を簡略化するため第1象限のみの周波数スペクトルを表示して負の周波数スペクトルは省略している。   The second problem is that it may be affected by the aliasing distortion associated with the Bayer sampling structure. This problem will be described with reference to FIGS. 9 and 10 showing a three-dimensional frequency spectrum structure. In FIG. 9 and FIG. 10, μ, ν, and f indicate horizontal spatial frequency, vertical spatial frequency, and time frequency, respectively, and in order to simplify the explanation, the frequency spectrum of only the first quadrant is displayed and the negative frequency spectrum is displayed. Is omitted.

前述のように、ベイヤー型カラー画素配列の動画像において、色信号Gは、色信号R及びBに比べて最高水平空間周波数及び最高垂直空間周波数が共に2倍なので、図9に示すような市松模様状のサンプリング構造に起因したスペクトル形状となる。一方、色信号R及びBは、同図に示すような正方格子型サンプリング構造によるスペクトル形状となる。   As described above, in the moving image of the Bayer type color pixel array, the color signal G has both the highest horizontal spatial frequency and the highest vertical spatial frequency twice as compared with the color signals R and B. Therefore, as shown in FIG. The spectrum shape is caused by the pattern-like sampling structure. On the other hand, the color signals R and B have a spectral shape with a square lattice sampling structure as shown in FIG.

次に、ベイヤー型カラー画素配列の動画像において、フレーム間で画像が、u=1[画素]及びv=1[ライン]の動きを行った場合について考える。この場合の周波数スペクトルの存在する面を図10に示す。ここで、u及びvは、ベイヤー型カラー画素配列の動画像において、それぞれ、x軸方向(水平方向)及びy軸方向(垂直方向)の動き量を表している。以下の記載において、x軸方向にp画素、y軸方向にqラインのフレーム間の動きを(u=p、v=q)と表す。また、以下に述べるベイヤー型カラー画素配列の動画像は、x軸方向に7680画素と、y軸方向に4320ラインとで構成され、時間周波数fを60(Hz)として説明する。   Next, let us consider a case in which, in a moving image having a Bayer color pixel array, an image moves between frames with u = 1 [pixel] and v = 1 [line]. The surface where the frequency spectrum exists in this case is shown in FIG. Here, u and v represent the amount of motion in the x-axis direction (horizontal direction) and the y-axis direction (vertical direction), respectively, in the moving image of the Bayer color pixel array. In the following description, a motion between frames of p pixels in the x-axis direction and q lines in the y-axis direction is represented as (u = p, v = q). In addition, a moving image having a Bayer type color pixel array described below is composed of 7680 pixels in the x-axis direction and 4320 lines in the y-axis direction, and the time frequency f is 60 (Hz).

動きベクトル値x、yを求めるには、図10に示すようにμ−f面でのθx、ν−f面でのθyを求めればよい。ここで動画像は、前述のようにx軸方向に7680画素と、y軸方向に4320ラインとで構成されているとしているので、図10において、μmaxは4320/2(cph)、νmaxは7680/2(cpw)である。また、fmaxは60/2(Hz)である。なお、(cph)及び(cpw)は、それぞれ、(cycle per height)及び(cycle per width)を表している。 In order to obtain the motion vector values x and y, θx on the μ-f plane and θy on the ν-f plane may be obtained as shown in FIG. Since the moving image is composed of 7680 pixels in the x-axis direction and 4320 lines in the y-axis direction as described above, μ max is 4320/2 (cph), ν max in FIG. Is 7680/2 (cpw). F max is 60/2 (Hz). Note that (cph) and (cpw) represent (cycle per height) and (cycle per width), respectively.

ところで、例えば図10において、色信号Gのスペクトルのみが存在する平面に該当する空間周波数を有する画像、すなわち、x軸方向に(4320/2)/2(cph)以上、又はy軸方向に(7680/2)/2(cpw)以上の空間周波数を有する画像をカメラで撮像した場合、フレーム間において(u=1、v=1)のような微小な動きがあれば、同図から理解できるように色信号Gでは正確な動きベクトルを検出できる。一方、色信号R及びBの場合、例えば黒点30で示された位置にある空間周波数を有する画像は、色信号R及びBが本来取り得るスペクトル空間にはないので、折り返し歪みが発生して本来の空間周波数が検出されず、動きベクトルの検出精度は低いものとなる。   By the way, in FIG. 10, for example, an image having a spatial frequency corresponding to a plane where only the spectrum of the color signal G exists, that is, (4320/2) / 2 (cph) or more in the x-axis direction or ( If an image having a spatial frequency of 7680/2) / 2 (cpw) or more is captured by a camera, if there is a minute movement such as (u = 1, v = 1) between frames, it can be understood from FIG. Thus, an accurate motion vector can be detected from the color signal G. On the other hand, in the case of the color signals R and B, for example, an image having a spatial frequency at the position indicated by the black point 30 is not in a spectral space that can be originally taken by the color signals R and B. Are not detected, and the motion vector detection accuracy is low.

本発明は、従来の課題を解決するためになされたものであり、従来のものよりも高い精度で動きベクトルを検出することができる動きベクトル検出装置を提供することを目的とする。   The present invention has been made to solve the conventional problems, and an object thereof is to provide a motion vector detection device capable of detecting a motion vector with higher accuracy than the conventional one.

本発明の動きベクトル検出装置は、予め定められた複数の色信号のいずれかによって第1の動きベクトルを検出する第1動きベクトル検出手段と、前記複数の色信号から輝度信号を生成する輝度信号生成手段と、前記第1の動きベクトルのベクトル値が予め定められた第1閾値以上のとき前記輝度信号によって第2の動きベクトルを検出する第2動きベクトル検出手段と、前記第1の動きベクトルのベクトル値と前記第2の動きベクトルのベクトル値との相関値を計算する相関値計算手段と、前記相関値と予め定められた第2閾値とを比較する比較手段と、前記第1の動きベクトルのベクトル値が前記第1閾値未満のとき前記第1の動きベクトルのベクトル値を前記複数の各色信号の動きベクトルのベクトル値に適用して出力する第1色信号適用手段と、前記相関値が前記第2閾値以上のとき前記第2の動きベクトルのベクトル値を前記複数の各色信号の動きベクトルのベクトル値に適用して出力する第2色信号適用手段と、前記相関値が前記第2閾値未満のとき前記複数の各色信号で個別に動きベクトルを検出し、検出した各動きベクトルのベクトル値に予め定められた重み付けをした信号を動きベクトルとして出力する特定処理手段と、を備えた構成を有している。 The motion vector detection device of the present invention includes a first motion vector detection means for detecting a first motion vector by any one of a plurality of predetermined color signals, and a luminance signal for generating a luminance signal from the plurality of color signals. Generating means; second motion vector detecting means for detecting a second motion vector based on the luminance signal when a vector value of the first motion vector is greater than or equal to a predetermined first threshold; and the first motion vector Correlation value calculation means for calculating a correlation value between the vector value of the second motion vector and the vector value of the second motion vector, comparison means for comparing the correlation value with a predetermined second threshold value, and the first motion A first color signal that is output by applying the vector value of the first motion vector to the vector value of the motion vector of each of the plurality of color signals when the vector value of the vector is less than the first threshold value And second color signal applying means for applying and outputting the vector value of the second motion vector to the vector value of the motion vector of each of the plurality of color signals when the correlation value is greater than or equal to the second threshold value; A specific process of detecting a motion vector individually for each of the plurality of color signals when the correlation value is less than the second threshold, and outputting a signal obtained by weighting a vector value of each detected motion vector in advance as a motion vector And means .

この構成により、本発明の動きベクトル検出装置は、第1閾値及び第2閾値に基づいた信号を出力するので、動画像の動きが微小な場合でも、複数の色信号毎に動きベクトルを検出する従来のものよりも高い精度で動きベクトルを検出することができる。 With this configuration, the motion vector detection device of the present invention outputs a signal based on the first threshold value and the second threshold value, and therefore detects a motion vector for each of a plurality of color signals even when the motion of the moving image is minute. The motion vector can be detected with higher accuracy than the conventional one.

また、本発明の動きベクトル検出装置は、前記第1の動きベクトルを検出する色信号は、市松模様状にサンプリングされた色信号である構成を有している。   In the motion vector detection device of the present invention, the color signal for detecting the first motion vector is a color signal sampled in a checkered pattern.

この構成により、本発明の動きベクトル検出装置は、第1動きベクトル検出手段が、市松模様状にサンプリングされた色信号から第1の動きベクトルを検出するので、ベイヤー型カラー画素配列の動画像における動きベクトルを検出することができる。   With this configuration, in the motion vector detection device of the present invention, since the first motion vector detection means detects the first motion vector from the color signal sampled in a checkered pattern, in the moving image of the Bayer type color pixel array A motion vector can be detected.

さらに、本発明の動きベクトル検出装置は、前記複数の色信号は、光の3原色の色信号を含む構成を有している。   Furthermore, the motion vector detection device of the present invention has a configuration in which the plurality of color signals include color signals of three primary colors of light.

この構成により、本発明の動きベクトル検出装置は、動きベクトル決定手段が、光の3原色の色信号のいずれかによって検出された第1の動きベクトルのベクトル値と、光の3原色の色信号から生成された輝度信号によって検出された第2の動きベクトルのベクトル値との相関値に基づいて、複数の色信号毎の動きベクトルを決定するので、動画像の動きが微小な場合でも、複数の色信号毎に動きベクトルを検出する従来のものよりも高い精度で動きベクトルを検出することができる。   With this configuration, in the motion vector detection device of the present invention, the motion vector determination means has the vector value of the first motion vector detected by one of the three primary color signals of light and the color signal of the three primary colors of light. Since the motion vector for each of the plurality of color signals is determined based on the correlation value with the vector value of the second motion vector detected by the luminance signal generated from the video signal, even when the motion of the moving image is very small It is possible to detect a motion vector with higher accuracy than the conventional one that detects a motion vector for each color signal.

さらに、本発明の動きベクトル検出装置は、前記複数の色信号は、光の3原色の補色信号を含む構成を有している。   Furthermore, the motion vector detection apparatus of the present invention has a configuration in which the plurality of color signals include complementary color signals of the three primary colors of light.

この構成により、本発明の動きベクトル検出装置は、動きベクトル決定手段が、光の3原色の補色信号のいずれかによって検出された第1の動きベクトルのベクトル値と、光の3原色の補色信号から生成された輝度信号によって検出された第2の動きベクトルのベクトル値との相関値に基づいて、複数の色信号毎の動きベクトルを決定するので、動画像の動きが微小な場合でも、複数の色信号毎に動きベクトルを検出する従来のものよりも高い精度で動きベクトルを検出することができる。   With this configuration, in the motion vector detection device of the present invention, the motion vector determination means has the vector value of the first motion vector detected by any one of the complementary colors of the three primary colors of light and the complementary color signal of the three primary colors of light. Since the motion vector for each of the plurality of color signals is determined based on the correlation value with the vector value of the second motion vector detected by the luminance signal generated from the video signal, even when the motion of the moving image is very small It is possible to detect a motion vector with higher accuracy than the conventional one that detects a motion vector for each color signal.

さらに、本発明の動きベクトル検出装置は、前記第1の動きベクトルを検出する色信号は、緑色信号である構成を有している。   Furthermore, the motion vector detection device of the present invention has a configuration in which the color signal for detecting the first motion vector is a green signal.

この構成により、本発明の動きベクトル検出装置は、第1動きベクトル検出手段が、市松模様状にサンプリングされた緑色信号から第1の動きベクトルを検出するので、ベイヤー型カラー画素配列の動画像における動きベクトルを検出することができる。   With this configuration, in the motion vector detection device of the present invention, the first motion vector detection means detects the first motion vector from the green signal sampled in a checkered pattern, so that in the moving image of the Bayer type color pixel array A motion vector can be detected.

本発明は、従来のものよりも高い精度で動きベクトルを検出することができるという効果を有する動きベクトル検出装置を提供することができるものである。   The present invention can provide a motion vector detection device having an effect that a motion vector can be detected with higher accuracy than the conventional one.

以下、本発明の実施の形態について図面を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

まず、本実施の形態に係る動きベクトル検出装置の構成について説明する。なお、本実施の形態に係る動きベクトル検出装置が、市松模様状に色信号Gが配列されたベイヤー型カラー画素配列(図8参照)の動画像において動きベクトルを検出する例を挙げて説明する。   First, the configuration of the motion vector detection device according to the present embodiment will be described. The motion vector detection apparatus according to the present embodiment will be described with reference to an example in which a motion vector is detected in a moving image of a Bayer color pixel array (see FIG. 8) in which color signals G are arrayed in a checkered pattern. .

図1に示すように、本実施の形態に係る動きベクトル検出装置10は、色信号Gを記憶する第1フレームメモリ11と、第1フレームメモリ11よりも1フレーム前の色信号Gを記憶する第2フレームメモリ12と、色信号Gの動きベクトルを検出する第1動きベクトル検出部13と、色信号Gの動きベクトルのベクトル値に基づいて出力を切り替えるスイッチ14と、色信号Gの動きベクトルのベクトル値を色信号R、G、Bの動きベクトルのベクトル値に適用する第1RGB適用部15とを備えている。   As shown in FIG. 1, the motion vector detection device 10 according to the present embodiment stores a first frame memory 11 that stores a color signal G, and a color signal G that is one frame before the first frame memory 11. A second frame memory 12, a first motion vector detector 13 for detecting a motion vector of the color signal G, a switch 14 for switching output based on the vector value of the motion vector of the color signal G, and a motion vector of the color signal G And a first RGB application unit 15 that applies the vector values of the color vectors to the vector values of the motion vectors of the color signals R, G, and B.

また、動きベクトル検出装置10は、R、G、B各色の色信号から輝度信号Yを生成する輝度信号生成部16と、輝度信号Yを記憶する第3フレームメモリ17と、第3フレームメモリ17よりも1フレーム前の輝度信号Yを記憶する第4フレームメモリ18と、輝度信号Yの動きベクトルを検出する第2動きベクトル検出部19と、色信号Gの動きベクトルのベクトル値と輝度信号Yの動きベクトルのベクトル値との相関を計算する相関計算部20と、相関計算部20の計算結果に基づいて出力を切り替えるスイッチ21と、輝度信号Yの動きベクトルのベクトル値を色信号R、G、Bの動きベクトルのベクトル値に適用する第2RGB適用部22と、予め特定された特定処理を実行する特定処理部23と、装置が出力する信号を選択するスイッチ24と、クロック信号を出力するクロック信号出力部25とを備えている。   In addition, the motion vector detection device 10 includes a luminance signal generation unit 16 that generates a luminance signal Y from the color signals of R, G, and B, a third frame memory 17 that stores the luminance signal Y, and a third frame memory 17. A fourth frame memory 18 that stores the luminance signal Y one frame before, a second motion vector detection unit 19 that detects a motion vector of the luminance signal Y, a vector value of the motion vector of the color signal G, and the luminance signal Y A correlation calculation unit 20 for calculating the correlation with the vector value of the motion vector, a switch 21 for switching the output based on the calculation result of the correlation calculation unit 20, and the vector value of the motion vector of the luminance signal Y as the color signals R and G The second RGB application unit 22 to be applied to the vector value of the B motion vector, the specific processing unit 23 for executing the specific processing specified in advance, and the signal output by the device are selected. A switch 24, and a clock signal output unit 25 for outputting a clock signal.

第1フレームメモリ11は、ベイヤー型カラー画素配列の動画像を構成する色信号のうち色信号Gを1フレーム分入力して記憶するようになっている。第2フレームメモリ12は、クロック信号出力部25から出力されるクロック信号によって1フレーム分シフトされた色信号Gを記憶するようになっている。したがって、第2フレームメモリ12は、第1フレームメモリ11に記憶されたフレームよりも1フレーム前の色信号Gを記憶することとなる。   The first frame memory 11 inputs and stores the color signal G for one frame among the color signals constituting the moving image of the Bayer type color pixel array. The second frame memory 12 stores the color signal G shifted by one frame by the clock signal output from the clock signal output unit 25. Therefore, the second frame memory 12 stores the color signal G one frame before the frame stored in the first frame memory 11.

第1動きベクトル検出部13は、第1フレームメモリ11に記憶された色信号Gと、第2フレームメモリ12に記憶された色信号Gとを比較し、例えばブロックマッチング法によって色信号Gの動きベクトルを検出するようになっている。この色信号Gの動きベクトルは、動きベクトルの方向及び大きさを含む動きベクトルのベクトル値(以下単に「動きベクトル値」という。)を有する。第1動きベクトル検出部13は、色信号Gの動きベクトルを検出することによって、色信号Gの動きベクトル値を取得し、色信号Gの動きベクトル値を示す信号をスイッチ14及び第1RGB適用部15に出力するようになっている。なお、第1動きベクトル検出部13は、本発明の第1動きベクトル検出手段を構成している。   The first motion vector detection unit 13 compares the color signal G stored in the first frame memory 11 with the color signal G stored in the second frame memory 12, and performs the motion of the color signal G by, for example, a block matching method. A vector is detected. The motion vector of the color signal G has a vector value of a motion vector including the direction and magnitude of the motion vector (hereinafter simply referred to as “motion vector value”). The first motion vector detection unit 13 acquires a motion vector value of the color signal G by detecting a motion vector of the color signal G, and sends a signal indicating the motion vector value of the color signal G to the switch 14 and the first RGB application unit. 15 is output. The first motion vector detection unit 13 constitutes first motion vector detection means of the present invention.

スイッチ14は、第1動きベクトル検出部13が取得した色信号Gの動きベクトル値に基づいて出力を切り替えるようになっている。具体的には、スイッチ14は、|u|≧2又は|v|≧2の場合、第1動きベクトル検出部13からの信号を相関計算部20に出力するよう動作する。一方、スイッチ14は、|u|<2かつ|v|<2の場合、すなわち動画像の動きが微小な場合、第1動きベクトル検出部13からの信号をスイッチ切り替え信号(以下「SW切替信号」と表記する。)としてスイッチ24に出力するよう動作する。なお、スイッチ14の動作は、第1動きベクトル検出部13によって制御されるようになっている。   The switch 14 switches the output based on the motion vector value of the color signal G acquired by the first motion vector detection unit 13. Specifically, the switch 14 operates to output a signal from the first motion vector detection unit 13 to the correlation calculation unit 20 when | u | ≧ 2 or | v | ≧ 2. On the other hand, if | u | <2 and | v | <2, that is, if the motion of the moving image is very small, the switch 14 sends a signal from the first motion vector detection unit 13 to a switch switching signal (hereinafter referred to as “SW switching signal”). The operation is performed to output to the switch 24. The operation of the switch 14 is controlled by the first motion vector detection unit 13.

第1RGB適用部15は、第1動きベクトル検出部13が取得した色信号Gの動きベクトル値を色信号R、G、Bの動きベクトル値に適用するようになっている。   The first RGB application unit 15 applies the motion vector value of the color signal G acquired by the first motion vector detection unit 13 to the motion vector values of the color signals R, G, and B.

輝度信号生成部16は、ベイヤー型カラー画素配列の動画像を構成するR、G、B各色の色信号から輝度信号Yを生成するようになっている。なお、輝度信号生成部16は、本発明の輝度信号生成手段を構成している。   The luminance signal generation unit 16 generates a luminance signal Y from color signals of R, G, and B colors that constitute a moving image having a Bayer color pixel array. The luminance signal generation unit 16 constitutes a luminance signal generation unit of the present invention.

第3フレームメモリ17は、輝度信号Yを1フレーム分入力して記憶するようになっている。第4フレームメモリ18は、クロック信号出力部25から出力されるクロック信号によって1フレーム分シフトされた輝度信号Yを記憶するようになっている。したがって、第4フレームメモリ18は、第3フレームメモリ17に記憶されたフレームよりも1フレーム前の輝度信号Yを記憶することとなる。   The third frame memory 17 is configured to input and store the luminance signal Y for one frame. The fourth frame memory 18 stores the luminance signal Y shifted by one frame by the clock signal output from the clock signal output unit 25. Therefore, the fourth frame memory 18 stores the luminance signal Y one frame before the frame stored in the third frame memory 17.

第2動きベクトル検出部19は、第3フレームメモリ17に記憶された輝度信号Yと、第4フレームメモリ18に記憶された輝度信号Yとを比較し、例えばブロックマッチング法によって輝度信号Yの動きベクトルを検出するようになっている。この輝度信号Yの動きベクトルは、動きベクトルの方向及び大きさを含む動きベクトル値を有する。第2動きベクトル検出部19は、輝度信号Yの動きベクトルを検出することによって、輝度信号Yの動きベクトル値を取得し、輝度信号Yの動きベクトル値を示す信号を相関計算部20及び第2RGB適用部22に出力するようになっている。なお、第2動きベクトル検出部19は、本発明の第2動きベクトル検出手段を構成している。   The second motion vector detection unit 19 compares the luminance signal Y stored in the third frame memory 17 with the luminance signal Y stored in the fourth frame memory 18, and, for example, the motion of the luminance signal Y by a block matching method. A vector is detected. The motion vector of the luminance signal Y has a motion vector value including the direction and magnitude of the motion vector. The second motion vector detection unit 19 obtains a motion vector value of the luminance signal Y by detecting a motion vector of the luminance signal Y, and outputs a signal indicating the motion vector value of the luminance signal Y to the correlation calculation unit 20 and the second RGB. The data is output to the application unit 22. The second motion vector detection unit 19 constitutes second motion vector detection means of the present invention.

相関計算部20は、第1動きベクトル検出部13及び第2動きベクトル検出部19から、それぞれ、色信号G及び輝度信号Yの動きベクトル値を入力し、色信号Gの動きベクトル値と輝度信号Yの動きベクトル値との相関を計算するようになっている。なお、相関計算部20は、本発明の相関値計算手段を構成している。   The correlation calculation unit 20 receives the motion vector values of the color signal G and the luminance signal Y from the first motion vector detection unit 13 and the second motion vector detection unit 19, respectively. The correlation with the Y motion vector value is calculated. The correlation calculation unit 20 constitutes a correlation value calculation unit of the present invention.

スイッチ21は、相関計算部20が計算した相関値に基づいて出力を切り替えるようになっている。具体的には、スイッチ21は、相関計算部20が計算した相関値が予め定められた閾値以上のとき、相関値を示す信号をSW切替信号としてスイッチ24に出力するよう動作する。一方、スイッチ21は、相関計算部20が計算した相関値が予め定められた閾値未満のとき、相関値を示す信号を特定処理部23に出力するよう動作する。なお、スイッチ21の動作は、相関計算部20によって制御されるようになっている。   The switch 21 switches the output based on the correlation value calculated by the correlation calculation unit 20. Specifically, the switch 21 operates to output a signal indicating the correlation value to the switch 24 as an SW switching signal when the correlation value calculated by the correlation calculation unit 20 is equal to or greater than a predetermined threshold. On the other hand, the switch 21 operates to output a signal indicating the correlation value to the specific processing unit 23 when the correlation value calculated by the correlation calculation unit 20 is less than a predetermined threshold value. The operation of the switch 21 is controlled by the correlation calculation unit 20.

第2RGB適用部22は、第2動きベクトル検出部19が検出した輝度信号Yの動きベクトル値を色信号R、G、Bの動きベクトル値に適用することにより、色信号R、G、Bの動きベクトル値を決定するようになっている。なお、第2RGB適用部22は、本発明の動きベクトル決定手段を構成している。   The second RGB application unit 22 applies the motion vector value of the luminance signal Y detected by the second motion vector detection unit 19 to the motion vector values of the color signals R, G, and B, so that the color signals R, G, and B The motion vector value is determined. Note that the second RGB application unit 22 constitutes a motion vector determination unit of the present invention.

特定処理部23は、相関計算部20が計算した相関値が閾値未満のとき、予め特定された特定処理を実行するようになっている。ここで特定処理とは、例えば、輝度信号Yによって検出した動きベクトル値は誤っていると判断し、検出され輝度信号Yによる動きベクトル値を採用しない処理や、R、G、B各色で個別に動きベクトル値を取得し、この動きベクトル値に所定の重み付けを行って、得られた動きベクトルを採用する処理等をいう。   When the correlation value calculated by the correlation calculation unit 20 is less than the threshold, the specific processing unit 23 executes a specific process specified in advance. Here, the specific process is, for example, a process in which the motion vector value detected by the luminance signal Y is determined to be incorrect and the detected motion vector value by the luminance signal Y is not adopted, or for each of R, G, and B colors. This refers to processing that acquires a motion vector value, performs predetermined weighting on the motion vector value, and adopts the obtained motion vector.

スイッチ24は、スイッチ14、スイッチ21及び特定処理部23から出力されるSW切替信号に基づいて、装置が出力する出力信号を選択するようになっている。例えば、スイッチ14がSW切替信号を出力した場合、スイッチ24は、第1RGB適用部15の出力信号を選択する。また、スイッチ21がSW切替信号を出力した場合、スイッチ24は、第2RGB適用部22の出力信号を選択する。また、特定処理部23がSW切替信号を出力した場合、スイッチ24は、特定処理部23の出力信号を選択する。   The switch 24 selects an output signal output from the apparatus based on the SW switching signal output from the switch 14, the switch 21, and the specific processing unit 23. For example, when the switch 14 outputs the SW switching signal, the switch 24 selects the output signal of the first RGB application unit 15. Further, when the switch 21 outputs the SW switching signal, the switch 24 selects the output signal of the second RGB application unit 22. When the specific processing unit 23 outputs the SW switching signal, the switch 24 selects the output signal of the specific processing unit 23.

クロック信号出力部25は、所定の時間間隔のクロック信号を生成し、第1フレームメモリ11、第2フレームメモリ12、第3フレームメモリ17及び第4フレームメモリ18にそれぞれ出力するようになっている。   The clock signal output unit 25 generates clock signals at predetermined time intervals and outputs them to the first frame memory 11, the second frame memory 12, the third frame memory 17, and the fourth frame memory 18, respectively. .

次に、本実施の形態の動きベクトル検出装置10の動作について、図1及び図2を用いて説明する。   Next, the operation of the motion vector detection device 10 of the present embodiment will be described using FIG. 1 and FIG.

まず、輝度信号生成部16によって、色信号R、G、Bが入力され、第1フレームメモリ11によって、色信号Gが入力される(ステップS11)。第1フレームメモリ11に入力された色信号Gは、クロック信号出力部25によって、フレーム毎に第2フレームメモリ12にシフトされる。   First, the color signal R, G, B is input by the luminance signal generation unit 16, and the color signal G is input by the first frame memory 11 (step S11). The color signal G input to the first frame memory 11 is shifted to the second frame memory 12 for each frame by the clock signal output unit 25.

次いで、輝度信号生成部16によって、輝度信号Yが生成される(ステップS12)。具体的には、輝度信号生成部16は、図3に示すように、ベイヤー型カラー画素配列の動画像の色信号R、G、Bから輝度信号Yを次式に基づいて生成する。

Figure 0004630174
Next, the luminance signal Y is generated by the luminance signal generator 16 (step S12). Specifically, as illustrated in FIG. 3, the luminance signal generation unit 16 generates a luminance signal Y from the color signals R, G, and B of the moving image having the Bayer color pixel array based on the following equation.
Figure 0004630174

ここで、係数r、g及びbは、色覚特性による係数であり、例えばr=0.212、g=0.701、b=0.087の値が用いられる。   Here, the coefficients r, g, and b are coefficients based on color vision characteristics. For example, values of r = 0.212, g = 0.701, and b = 0.087 are used.

輝度信号生成部16によって生成された輝度信号Yは、第3フレームメモリ17に出力される。第3フレームメモリ17に入力された輝度信号Yは、クロック信号出力部25によって、フレーム毎に第4フレームメモリ18にシフトされる。   The luminance signal Y generated by the luminance signal generation unit 16 is output to the third frame memory 17. The luminance signal Y input to the third frame memory 17 is shifted to the fourth frame memory 18 for each frame by the clock signal output unit 25.

さらに、第1動きベクトル検出部13によって、色信号Gの動きベクトル値が検出される(ステップS13)。ここで、本実施の形態において処理する動画像は、市松模様状に色信号Gが配列されたベイヤー型カラー画素配列となっているので、図4に示すように、第1動きベクトル検出部13によって色信号Gがサンプリングされ、色信号Gの動きベクトル値が検出される。   Further, the first motion vector detection unit 13 detects the motion vector value of the color signal G (step S13). Here, since the moving image to be processed in the present embodiment is a Bayer type color pixel array in which the color signals G are arranged in a checkered pattern, as shown in FIG. Thus, the color signal G is sampled, and the motion vector value of the color signal G is detected.

具体的には、第1動きベクトル検出部13は、第1フレームメモリ11に記憶された色信号Gと、第2フレームメモリ12に記憶された色信号Gとを比較し、例えばブロックマッチング法によって色信号Gの動きベクトル値を検出する。   Specifically, the first motion vector detection unit 13 compares the color signal G stored in the first frame memory 11 with the color signal G stored in the second frame memory 12, and uses, for example, a block matching method. A motion vector value of the color signal G is detected.

次いで、第1動きベクトル検出部13によって、検出した色信号Gの動きベクトル値が、|u|<2かつ|v|<2か否かが判断される(ステップS14)。   Next, the first motion vector detection unit 13 determines whether the detected motion vector value of the color signal G is | u | <2 and | v | <2 (step S14).

ステップS14において、色信号Gの動きベクトル値が、|u|<2かつ|v|<2と判断された場合、すなわち動画像の動きが微小な場合は、第1動きベクトル検出部13によって、色信号Gの動きベクトル値を示す信号がスイッチ14及び第1RGB適用部15に出力され、第1RGB適用部15によって、色信号Gの動きベクトル値がR、G、B各色に適用される(ステップS15)。ここで得られたR、G、B各色の動きベクトル値の信号は、スイッチ24を介して出力信号となる。   If it is determined in step S14 that the motion vector value of the color signal G is | u | <2 and | v | <2, that is, if the motion image is very small, the first motion vector detection unit 13 A signal indicating the motion vector value of the color signal G is output to the switch 14 and the first RGB application unit 15, and the first RGB application unit 15 applies the motion vector value of the color signal G to each color of R, G, and B (steps). S15). The obtained motion vector value signals for R, G, and B colors are output signals via the switch 24.

具体的には、第1動きベクトル検出部13は、スイッチ14がSW切替信号をスイッチ24に出力するようスイッチ14を制御し、スイッチ24は、第1RGB適用部15の出力信号を選択する。   Specifically, the first motion vector detection unit 13 controls the switch 14 so that the switch 14 outputs the SW switching signal to the switch 24, and the switch 24 selects the output signal of the first RGB application unit 15.

一方、ステップS14において、色信号Gの動きベクトル値が、|u|<2かつ|v|<2と判断されなかった場合、すなわち、|u|≧2又は|v|≧2と判断された場合は、第2動きベクトル検出部19によって、輝度信号Yの動きベクトル値が検出される(ステップS16)。   On the other hand, in step S14, when the motion vector value of the color signal G is not determined as | u | <2 and | v | <2, that is, | u | ≧ 2 or | v | ≧ 2. In this case, the motion vector value of the luminance signal Y is detected by the second motion vector detection unit 19 (step S16).

具体的には、第2動きベクトル検出部19は、第3フレームメモリ17に記憶された輝度信号Yと、第4フレームメモリ18に記憶された輝度信号Yとを比較し、例えばブロックマッチング法によって輝度信号Yの動きベクトル値を検出する。検出された輝度信号Yの動きベクトル値を示す信号は、相関計算部20及び第2RGB適用部22に出力される。   Specifically, the second motion vector detection unit 19 compares the luminance signal Y stored in the third frame memory 17 with the luminance signal Y stored in the fourth frame memory 18, and uses, for example, a block matching method. A motion vector value of the luminance signal Y is detected. A signal indicating the detected motion vector value of the luminance signal Y is output to the correlation calculation unit 20 and the second RGB application unit 22.

ここで、輝度信号Yの動きベクトルと、色信号Gの動きベクトルとの違いについて説明する。前提条件として、輝度信号Yは、R、G、B各色成分を同程度含むと仮定している。色信号Gの動きベクトル値が、|u|<2かつ|v|<2であれば、色信号Gは色信号R及びBよりも水平及び垂直方向のサンプリング周波数が高いため、色信号Gの動きベクトルの検出精度は色信号R及びBによるものよりも高い。一方、輝度信号Yは、R、G、B各色の色信号を線形変換することで生成しているので、輝度信号Yの動きベクトルの検出精度は|u|<2かつ|v|<2のような動きに対して色信号Gよりも低くなる。   Here, the difference between the motion vector of the luminance signal Y and the motion vector of the color signal G will be described. As a precondition, it is assumed that the luminance signal Y includes R, G, and B color components to the same extent. If the motion vector value of the color signal G is | u | <2 and | v | <2, the color signal G has a higher sampling frequency in the horizontal and vertical directions than the color signals R and B. The motion vector detection accuracy is higher than that of the color signals R and B. On the other hand, since the luminance signal Y is generated by linearly converting the color signals of R, G, and B colors, the motion vector detection accuracy of the luminance signal Y is | u | <2 and | v | <2. It becomes lower than the color signal G for such movement.

そこで、本実施の形態では、ステップS14において、色信号Gの動きベクトル値が、|u|<2かつ|v|<2であれば、輝度信号Yによる動きベクトル検出結果の精度は低精度となるため、ステップS15において色信号Gの動きベクトル値を色信号R、G、Bの動きベクトル値として採用している。一方、ステップS14において、色信号Gの動きベクトル値が、|u|≧2又は|v|≧2であれば、輝度信号Yによる動きベクトル値に基づいて処理している。   Therefore, in this embodiment, if the motion vector value of the color signal G is | u | <2 and | v | <2 in step S14, the accuracy of the motion vector detection result by the luminance signal Y is low. Therefore, in step S15, the motion vector value of the color signal G is adopted as the motion vector value of the color signals R, G, and B. On the other hand, if the motion vector value of the color signal G is | u | ≧ 2 or | v | ≧ 2 in step S14, processing is performed based on the motion vector value based on the luminance signal Y.

引き続き、相関計算部20によって、第2動きベクトル検出部19からの輝度信号Yの動きベクトル値と、第1動きベクトル検出部13からの色信号Gの動きベクトル値との相関値が計算される(ステップS17)。   Subsequently, the correlation calculation unit 20 calculates a correlation value between the motion vector value of the luminance signal Y from the second motion vector detection unit 19 and the motion vector value of the color signal G from the first motion vector detection unit 13. (Step S17).

具体的には、相関計算部20は、例えば輝度信号Yの動きベクトル値と、色信号Gの動きベクトル値との内積を計算することで、両者の相関値の計算を実行する。なお、ステップS17の処理は、輝度信号Yで検出する動きベクトル値と、色信号Gで検出する動きベクトル値とが必ずしも一致するとは限らないことが推測されるため、設けられたものである。   Specifically, the correlation calculation unit 20 calculates a correlation value between the motion vector value of the luminance signal Y and the motion vector value of the color signal G, for example. Note that the processing in step S17 is provided because it is presumed that the motion vector value detected by the luminance signal Y and the motion vector value detected by the color signal G do not always match.

相関計算部20による相関値の計算は、図5に示すように、輝度信号Yは色信号Gに対してサンプリング位置が水平及び垂直方向に共に半画素(半位相分)ずれていることを考慮して実行される。すなわち、例えばブロックマッチング法を用いて動きベクトル値を検出する場合は、輝度信号Yと色信号Gとでは、ブロック位置や探索範囲位置が半画素ずれており、輝度信号Yで検出する領域と、色信号Gで検出する領域とに差が生じる。   As shown in FIG. 5, the calculation of the correlation value by the correlation calculation unit 20 takes into account that the sampling position of the luminance signal Y is shifted from the color signal G by half pixel (half phase) in both the horizontal and vertical directions And executed. That is, for example, when a motion vector value is detected using the block matching method, the block position and the search range position are shifted by half a pixel in the luminance signal Y and the color signal G, and an area detected by the luminance signal Y; A difference occurs in the area detected by the color signal G.

したがって、ステップS17の処理は、輝度信号Yの動きベクトル値と、色信号Gの動きベクトル値との相関を計算する際に、輝度信号Yのサンプリング位置と、色信号Gのサンプリング位置とが半画素ずれていることを考慮し、例えばサンプリング位置の補正を行うことにより実行される。   Therefore, in the process of step S17, when the correlation between the motion vector value of the luminance signal Y and the motion vector value of the color signal G is calculated, the sampling position of the luminance signal Y and the sampling position of the color signal G are half. In consideration of the pixel shift, for example, the correction is performed by correcting the sampling position.

続いて、相関計算部20によって、ステップS17において計算された輝度信号Y及び色信号Gの動きベクトル値の相関値を用いて所定の閾値Thと比較されることにより(ステップS18)、検出された輝度信号Y及び色信号Gの動きベクトル値の確からしさが判定される。ここで閾値Thは、動きベクトルの方向及び大きさの相関を判定するために設定されたものである。   Subsequently, the correlation calculation unit 20 detects the result by comparing with the predetermined threshold Th using the correlation value of the motion vector values of the luminance signal Y and the color signal G calculated in step S17 (step S18). The likelihood of the motion vector values of the luminance signal Y and the color signal G is determined. Here, the threshold Th is set in order to determine the correlation between the direction and the magnitude of the motion vector.

ステップS18において、輝度信号Y及び色信号Gの動きベクトル値の相関値が閾値Th以上の場合は、図6(a)に示すように、輝度信号Yの動きベクトルと、色信号Gの動きベクトルとが一致することを示している。この場合、輝度信号YはR、G、B各色の色信号を用いて生成されているため、色信号R及びBの動きベクトルも色信号Gと同じ動きベクトル値である可能性が高いので、第2RGB適用部22によって、輝度信号Yで検出された動きベクトル値が色信号R、G、Bの動きベクトル値に適用される(ステップS19)。ここで得られたR、G、B各色の動きベクトル値の信号は、スイッチ24を介して出力信号となる。   If the correlation value between the motion vector values of the luminance signal Y and the color signal G is greater than or equal to the threshold Th in step S18, the motion vector of the luminance signal Y and the motion vector of the color signal G are shown in FIG. Indicates a match. In this case, since the luminance signal Y is generated using the color signals of the R, G, and B colors, the motion vectors of the color signals R and B are likely to have the same motion vector values as the color signal G. The second RGB application unit 22 applies the motion vector value detected from the luminance signal Y to the motion vector values of the color signals R, G, and B (step S19). The obtained motion vector value signals for R, G, and B colors are output signals via the switch 24.

一方、ステップS18において、輝度信号Y及び色信号Gの動きベクトル値の相関値が閾値Th未満の場合は、図6(b)に示すように、輝度信号Yの動きベクトルと、色信号Gの動きベクトルとは一致しないことを示している。この場合、輝度信号YはR、G、B各色の色信号を用いて生成されているため、次の2つの原因が想定できる。   On the other hand, when the correlation value between the motion vector values of the luminance signal Y and the color signal G is less than the threshold value Th in step S18, the motion vector of the luminance signal Y and the color signal G are converted as shown in FIG. It shows that it does not match the motion vector. In this case, since the luminance signal Y is generated using color signals of R, G, and B colors, the following two causes can be assumed.

第1の原因としては、輝度信号Y及び色信号Gの動きベクトル検出結果が何らかの可能性で誤っている場合が挙げられる。例えば、ブロックマッチング法におけるブロックマッチング処理の動きベクトル検出エラーがある。   As a first cause, there is a case where the motion vector detection results of the luminance signal Y and the color signal G are erroneous due to some possibility. For example, there is a motion vector detection error in block matching processing in the block matching method.

第2の原因としては、対象の動画像が持つR、G、B各色成分の比率が互いに異なっている場合が挙げられる。例えば、青単色の画像が動いた場合である。   As a second cause, there are cases where the ratios of the R, G, and B color components of the target moving image are different from each other. For example, this is a case where a single blue image moves.

そこで、輝度信号Y及び色信号Gの動きベクトル値の相関値が閾値Th未満の場合は、以下に示す特定処理を行う(ステップS20)。特定処理で得られた信号は、スイッチ24を介して出力信号となる。 Therefore, if the correlation value of the motion vector value of the luminance signal Y and the color signal G is less than the threshold value Th, perform specific processing shown in below (step S20). A signal obtained by the specific processing becomes an output signal via the switch 24.

特定処理として、R、G、B各色で個別に動きベクトルを検出し、次式に示すような重み付けを行い、動きベクトルMvとして採用する処理を行って、動きベクトルMvを示す信号を出力する。

Figure 0004630174
As specific processing, a motion vector is individually detected for each of R, G, and B colors, weighting as shown in the following equation is performed, and processing that is adopted as the motion vector Mv is performed to output a signal indicating the motion vector Mv.
Figure 0004630174

式(2)において、Rf[ ]は参照フレーム、Cr[ ]は基準フレームを意味し、[ ]内のR、G、Bはそれぞれフレームにおける赤、緑、青色成分画像を意味する。また、m及びnは、ブロックマッチング法におけるブロックの大きさ(x方向m画素×y方向n画素)、i及びjはブロック移動量(x方向i、y方向j)を示す変数である。なお、係数r、g及びbは、式(1)で示した色覚特性による係数であり、例えばr=0.212、g=0.701、b=0.087の値が用いられる。   In Expression (2), Rf [] represents a reference frame, Cr [] represents a base frame, and R, G, and B in [] represent red, green, and blue component images in the frame, respectively. M and n are variables indicating the block size (m pixels in the x direction × n pixels in the y direction) in the block matching method, and i and j are variables indicating the block movement amounts (the x direction i and the y direction j). Note that the coefficients r, g, and b are coefficients based on the color vision characteristics shown in Expression (1), and for example, values of r = 0.212, g = 0.701, and b = 0.087 are used.

以上のように、本実施の形態の動きベクトル検出装置10によれば、相関計算部20は、色信号Gの動きベクトル値と輝度信号Yの動きベクトル値との相関を計算し、第2RGB適用部22は、色信号Gのベクトル値と輝度信号Yのベクトル値との相関値に基づいて複数の色信号毎の動きベクトルを適用する構成としたので、動画像の動きが微小な場合でも、複数の色信号毎に動きベクトルを検出する従来のものよりも高い精度で動きベクトルを検出することができる。   As described above, according to the motion vector detection device 10 of the present embodiment, the correlation calculation unit 20 calculates the correlation between the motion vector value of the color signal G and the motion vector value of the luminance signal Y, and applies the second RGB. Since the unit 22 is configured to apply the motion vector for each of the plurality of color signals based on the correlation value between the vector value of the color signal G and the vector value of the luminance signal Y, even when the motion of the moving image is minute, It is possible to detect a motion vector with higher accuracy than the conventional one that detects a motion vector for each of a plurality of color signals.

なお、前述の実施の形態において、動きベクトル検出装置10が、光の3原色で構成されたベイヤー型カラー画素配列の動画像における動きベクトルを検出する例を挙げて説明したが、本発明はこれに限定されるものではなく、光の3原色の補色信号を含む構成、例えば緑色信号、黄色信号及びシアン色信号によるベイヤー型カラー画素配列の動画像における動きベクトルを検出する構成としても同様の効果が得られる。   In the above-described embodiment, the motion vector detection device 10 has been described with reference to an example in which a motion vector is detected in a moving image of a Bayer-type color pixel array composed of three primary colors of light. However, the present invention is not limited to the same, and the same effect can be obtained by a configuration including complementary color signals of the three primary colors of light, for example, a configuration for detecting a motion vector in a moving image of a Bayer color pixel array using a green signal, a yellow signal, and a cyan signal Is obtained.

また、前述の実施の形態において、動きベクトル検出装置10が、ベイヤー型カラー画素配列の色信号Gと輝度信号Yとに基づいて動きベクトルを検出する例を挙げて説明したが、本発明はこれに限定されるものではなく、例えば色信号Rが市松模様状に配列され、色信号G及びBが正方格子型に配列されている場合、色信号Rと輝度信号Yとに基づいて動きベクトルを検出する構成としても同様の効果が得られる。   In the above-described embodiment, the motion vector detection device 10 has been described with reference to an example in which the motion vector is detected based on the color signal G and the luminance signal Y of the Bayer color pixel array. For example, when the color signal R is arranged in a checkered pattern and the color signals G and B are arranged in a square lattice pattern, the motion vector is calculated based on the color signal R and the luminance signal Y. The same effect can be obtained as a detection configuration.

また、前述の実施の形態において、動画像がベイヤー型カラー画素配列で構成されたものを例に挙げて説明したが、本発明はこれに限定されるものではなく、ベイヤー型以外のカラー画素配列で構成された動画像であってもよい。   Further, in the above-described embodiment, the moving image is described as an example in which the moving image is configured by the Bayer type color pixel array, but the present invention is not limited to this, and the color pixel array other than the Bayer type is described. It may be a moving image composed of

以上のように、本発明に係る動きベクトル検出装置は、従来のものよりも高い精度で動きベクトルを検出することができるという効果を有し、ベイヤー型配列のカラー画素で構成された動画像において動きベクトルを検出する動きベクトル検出装置等として有用である。   As described above, the motion vector detection device according to the present invention has an effect of being able to detect a motion vector with higher accuracy than the conventional one, and in a moving image composed of color pixels of a Bayer array. It is useful as a motion vector detection device for detecting a motion vector.

本実施の形態に係る動きベクトル検出装置のブロック図Block diagram of motion vector detection apparatus according to the present embodiment 本実施の形態に係る動きベクトル検出装置の各ステップのフローチャートFlowchart of each step of motion vector detection device according to the present embodiment 本実施の形態に係る動きベクトル検出装置の輝度信号生成部が、ベイヤー型カラー画素配列の動画像の色信号R、G、Bから生成する輝度信号Yを示す図The figure which shows the luminance signal Y which the luminance signal generation part of the motion vector detection apparatus which concerns on this Embodiment produces | generates from the color signals R, G, and B of the moving image of a Bayer type color pixel arrangement | sequence. 本実施の形態に係る動きベクトル検出装置の第1動きベクトル検出部13が、ベイヤー型カラー画素配列の動画像の色信号Gをサンプリングする位置を示す図The figure which shows the position which the 1st motion vector detection part 13 of the motion vector detection apparatus based on this Embodiment samples the color signal G of the moving image of a Bayer type color pixel arrangement | sequence. 本実施の形態に係る動きベクトル検出装置において、輝度信号Yは色信号Gに対してサンプリング位置が水平及び垂直方向に共に半画素ずれていることを示す図In the motion vector detection device according to the present embodiment, the luminance signal Y is a diagram showing that the sampling position of the luminance signal Y is shifted by half a pixel in both the horizontal and vertical directions with respect to the color signal G. (a)本発明の第1の実施の形態に係る動きベクトル検出装置において、検出された輝度信号Y及び色信号Gの動きベクトル値が一致していることを示す図 (b)本発明の第1の実施の形態に係る動きベクトル検出装置において、検出された輝度信号Y及び色信号Gの動きベクトル値が一致していないことを示す図(A) In the motion vector detection device according to the first embodiment of the present invention, a diagram showing that the detected motion signal values of the luminance signal Y and the color signal G match (b) The figure which shows that the motion vector value of the detected luminance signal Y and the color signal G does not correspond in the motion vector detection apparatus which concerns on 1 embodiment. 従来の正方格子型の3板式カラー画素素子において、撮像されたRGBカラー動画像のR、G、B各色が同じ空間位置でサンプリングされることを示す図The figure which shows that each R, G, B color of the imaged RGB color moving image is sampled in the same spatial position in the conventional square lattice type 3 plate type color pixel element 従来のベイヤー型カラー画素配列において、色信号Gは市松模様状のサンプリング構造、色信号R及びBは正方格子型サンプリング構造となっていることを示す図In the conventional Bayer color pixel arrangement, the color signal G has a checkered sampling structure, and the color signals R and B have a square lattice sampling structure. 従来のベイヤー型カラー画素配列における3次元周波数スペクトル構造を示す図The figure which shows the three-dimensional frequency spectrum structure in the conventional Bayer type color pixel arrangement | sequence. 従来のベイヤー型カラー画素配列において、フレーム間で画像が、u=1[画素]及びv=1[ライン]の動きを行った場合の周波数スペクトルの存在する面を示す図The figure which shows the surface where a frequency spectrum exists in the case of the motion of u = 1 [pixel] and v = 1 [line] between the frames in the conventional Bayer type color pixel arrangement.

符号の説明Explanation of symbols

10 動きベクトル検出装置
11 第1フレームメモリ
12 第2フレームメモリ
13 第1動きベクトル検出部(第1動きベクトル検出手段)
14、21、24 スイッチ
15 第1RGB適用部
16 輝度信号生成部(輝度信号生成手段)
17 第3フレームメモリ
18 第4フレームメモリ
19 第2動きベクトル検出部(第2動きベクトル検出手段)
20 相関計算部(相関値計算手段)
22 第2RGB適用部(動きベクトル決定手段)
23 特定処理部
25 クロック信号出力部
DESCRIPTION OF SYMBOLS 10 Motion vector detection apparatus 11 1st frame memory 12 2nd frame memory 13 1st motion vector detection part (1st motion vector detection means)
14, 21, 24 Switch 15 First RGB application unit 16 Luminance signal generation unit (luminance signal generation means)
17 3rd frame memory 18 4th frame memory 19 2nd motion vector detection part (2nd motion vector detection means)
20 Correlation calculation unit (correlation value calculation means)
22 2nd RGB application part (motion vector determination means)
23 Specific processing section 25 Clock signal output section

Claims (5)

予め定められた複数の色信号のいずれかによって第1の動きベクトルを検出する第1動きベクトル検出手段と、前記複数の色信号から輝度信号を生成する輝度信号生成手段と、前記第1の動きベクトルのベクトル値が予め定められた第1閾値以上のとき前記輝度信号によって第2の動きベクトルを検出する第2動きベクトル検出手段と、前記第1の動きベクトルのベクトル値と前記第2の動きベクトルのベクトル値との相関値を計算する相関値計算手段と、前記相関値と予め定められた第2閾値とを比較する比較手段と、前記第1の動きベクトルのベクトル値が前記第1閾値未満のとき前記第1の動きベクトルのベクトル値を前記複数の各色信号の動きベクトルのベクトル値に適用して出力する第1色信号適用手段と、前記相関値が前記第2閾値以上のとき前記第2の動きベクトルのベクトル値を前記複数の各色信号の動きベクトルのベクトル値に適用して出力する第2色信号適用手段と、前記相関値が前記第2閾値未満のとき前記複数の各色信号で個別に動きベクトルを検出し、検出した各動きベクトルのベクトル値に予め定められた重み付けをした信号を動きベクトルとして出力する特定処理手段と、を備えたことを特徴とする動きベクトル検出装置。 A first motion vector detecting means for detecting a first motion vector based on any of a plurality of predetermined color signals; a brightness signal generating means for generating a brightness signal from the plurality of color signals; and the first motion. Second motion vector detection means for detecting a second motion vector from the luminance signal when the vector value of the vector is equal to or greater than a predetermined first threshold, and the vector value of the first motion vector and the second motion Correlation value calculating means for calculating a correlation value with a vector value of the vector, comparison means for comparing the correlation value with a predetermined second threshold value, and a vector value of the first motion vector as the first threshold value. A first color signal applying means for applying the vector value of the first motion vector to the vector value of the motion vector of each of the plurality of color signals and outputting the vector value when the correlation value is less than the second value; Second color signal applying means for applying and outputting the vector value of the second motion vector to the vector values of the motion vectors of the plurality of color signals when the value is equal to or greater than the value, and when the correlation value is less than the second threshold value Specific processing means for individually detecting a motion vector from each of the plurality of color signals and outputting a signal obtained by weighting a vector value of each detected motion vector in advance as a motion vector. Motion vector detection device. 前記第1の動きベクトルを検出する色信号は、市松模様状にサンプリングされた色信号であることを特徴とする請求項1に記載の動きベクトル検出装置。   The motion vector detection apparatus according to claim 1, wherein the color signal for detecting the first motion vector is a color signal sampled in a checkered pattern. 前記複数の色信号は、光の3原色の色信号を含むことを特徴とする請求項1又は請求項2に記載の動きベクトル検出装置。   The motion vector detection device according to claim 1, wherein the plurality of color signals include color signals of three primary colors of light. 前記複数の色信号は、光の3原色の補色信号を含むことを特徴とする請求項1から請求項3までのいずれか1項に記載の動きベクトル検出装置。   4. The motion vector detection device according to claim 1, wherein the plurality of color signals include complementary color signals of the three primary colors of light. 前記第1の動きベクトルを検出する色信号は、緑色信号であることを特徴とする請求項1から請求項4までのいずれか1項に記載の動きベクトル検出装置。   5. The motion vector detection device according to claim 1, wherein the color signal for detecting the first motion vector is a green signal. 6.
JP2005328751A 2005-11-14 2005-11-14 Motion vector detection device Expired - Fee Related JP4630174B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005328751A JP4630174B2 (en) 2005-11-14 2005-11-14 Motion vector detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005328751A JP4630174B2 (en) 2005-11-14 2005-11-14 Motion vector detection device

Publications (2)

Publication Number Publication Date
JP2007133823A JP2007133823A (en) 2007-05-31
JP4630174B2 true JP4630174B2 (en) 2011-02-09

Family

ID=38155402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005328751A Expired - Fee Related JP4630174B2 (en) 2005-11-14 2005-11-14 Motion vector detection device

Country Status (1)

Country Link
JP (1) JP4630174B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020583A (en) * 2011-09-27 2013-04-03 富士重工业株式会社 Image processing apparatus
US10765295B2 (en) * 2015-01-20 2020-09-08 Olympus Corporation Image processing apparatus for detecting motion between two generated motion detection images based on images captured at different times, method for operating such image processing apparatus, computer-readable recording medium, and endoscope device

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4964541B2 (en) * 2006-09-11 2012-07-04 オリンパス株式会社 Imaging apparatus, image processing apparatus, imaging system, and image processing program
JP2010146208A (en) 2008-12-17 2010-07-01 Fuji Xerox Co Ltd Information processing apparatus and program
JP5400573B2 (en) * 2009-11-09 2014-01-29 シャープ株式会社 Image processing apparatus and imaging apparatus
JP5346884B2 (en) * 2010-06-23 2013-11-20 日本放送協会 Motion compensation device
JP5687608B2 (en) 2011-11-28 2015-03-18 オリンパス株式会社 Image processing apparatus, image processing method, and image processing program
JP6066583B2 (en) * 2012-05-01 2017-01-25 キヤノン株式会社 Moving picture coding apparatus and moving picture coding method
JP5798696B2 (en) * 2012-11-30 2015-10-21 富士フイルム株式会社 Image processing apparatus, method, recording medium, program, and imaging apparatus
JP6151909B2 (en) 2012-12-12 2017-06-21 キヤノン株式会社 Moving picture coding apparatus, method and program
JP6210457B2 (en) * 2014-06-16 2017-10-11 日本電信電話株式会社 Image processing apparatus, image processing method, and image processing program
JP6410513B2 (en) * 2014-08-07 2018-10-24 キヤノン株式会社 Image coding apparatus and method
JP6669376B2 (en) * 2014-10-31 2020-03-18 キヤノン株式会社 Image processing apparatus, control method therefor, and program
WO2021186889A1 (en) * 2020-03-16 2021-09-23 ソニーグループ株式会社 Image sensor, image processing method, and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0863601A (en) * 1994-08-22 1996-03-08 Nec Corp Method and device for dividing area

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0863601A (en) * 1994-08-22 1996-03-08 Nec Corp Method and device for dividing area

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020583A (en) * 2011-09-27 2013-04-03 富士重工业株式会社 Image processing apparatus
CN103020583B (en) * 2011-09-27 2017-10-10 株式会社斯巴鲁 Image processing apparatus
US10765295B2 (en) * 2015-01-20 2020-09-08 Olympus Corporation Image processing apparatus for detecting motion between two generated motion detection images based on images captured at different times, method for operating such image processing apparatus, computer-readable recording medium, and endoscope device

Also Published As

Publication number Publication date
JP2007133823A (en) 2007-05-31

Similar Documents

Publication Publication Date Title
JP4630174B2 (en) Motion vector detection device
US8848063B2 (en) Image processing including image correction
US7847829B2 (en) Image processing apparatus restoring color image signals
US8289405B2 (en) Image processing apparatus and method thereof
EP2334085B1 (en) Imaging processor
US20150097997A1 (en) Image processing apparatus, imaging apparatus, solid-state imaging device, image processing method and program
US8508625B2 (en) Image processing apparatus
JP4985584B2 (en) Imaging apparatus and video signal processing method
EP2731334A1 (en) Image pickup apparatus and image generating method
US20030197793A1 (en) Imaging device
WO2017159027A1 (en) Image pickup control apparatus, image pickup control method, and image pickup apparatus
JP2013162291A (en) Camera module
US7982787B2 (en) Image apparatus and method and program for producing interpolation signal
JP2009206654A (en) Imaging apparatus
JP2007235591A (en) Method for controlling camera apparatus and camera apparatus using the same
US20050220350A1 (en) Image processing apparatus, image processing method, image processing program, and recording medium storing image processing program
JP5631769B2 (en) Image processing device
JP2013021636A (en) Image processing apparatus and method, learning apparatus and method, program, and recording medium
JP2006303774A (en) Imaging apparatus
JP5109911B2 (en) Imaging apparatus and interpolation processing method
JP6426909B2 (en) Color information complementing device and its program
JP2005217979A (en) Imaging device, control method thereof and control program
US11595578B2 (en) Image processing apparatus and image sensing apparatus, methods of controlling the same, and non-transitory computer-readable storage medium
KR20070070692A (en) Color interpolation apparatus for edge enhancement and noise removal
Sibiryakov Sparse projections and motion estimation in colour filter arrays

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080606

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100924

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: 20101019

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: 20101112

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

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees