JP4541335B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP4541335B2
JP4541335B2 JP2006255888A JP2006255888A JP4541335B2 JP 4541335 B2 JP4541335 B2 JP 4541335B2 JP 2006255888 A JP2006255888 A JP 2006255888A JP 2006255888 A JP2006255888 A JP 2006255888A JP 4541335 B2 JP4541335 B2 JP 4541335B2
Authority
JP
Japan
Prior art keywords
horizontal
value
vertical
curvature
amount
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
JP2006255888A
Other languages
Japanese (ja)
Other versions
JP2008079007A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2006255888A priority Critical patent/JP4541335B2/en
Publication of JP2008079007A publication Critical patent/JP2008079007A/en
Application granted granted Critical
Publication of JP4541335B2 publication Critical patent/JP4541335B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、2枚の画像間の画素ずれ量を検出して、画素ずれのない安定した画像の出力を可能にする画像処理装置に関するものである。   The present invention relates to an image processing apparatus that detects a pixel shift amount between two images and enables stable image output without pixel shift.

従来の画像処理装置は、次のような手法を用いて、2枚の画像間の画素ずれ量を検出するようにしている。
即ち、画像処理装置は、画像センサにより撮影された2枚の画像の射影データを入力すると、2つの射影データの相関値を演算して、2枚のフレーム画像間の動きベクトルを算出し、その動きベクトルを画素ずれ量として検出する(例えば、特許文献1を参照)。
A conventional image processing apparatus detects a pixel shift amount between two images by using the following method.
That is, when the image processing apparatus inputs projection data of two images taken by the image sensor, it calculates a correlation value between the two projection data, calculates a motion vector between the two frame images, and A motion vector is detected as a pixel shift amount (see, for example, Patent Document 1).

最近では、上記の画像処理装置の他に、相関値を演算する際の演算量を削減することができる画像処理装置が開発されている。
当該画像処理装置は、2枚のフレーム画像間の相関値を演算する際、射影データの傾き情報(例えば、画像の傾斜部の重心座標、傾斜開始座標、傾斜終了座標など)を抽出し、複数の傾き情報を時系列的に比較して、その比較結果から画素ずれ量を検出するようにしている(例えば、特許文献2を参照)。
Recently, in addition to the above-described image processing apparatus, an image processing apparatus that can reduce the amount of calculation when calculating a correlation value has been developed.
When calculating the correlation value between two frame images, the image processing apparatus extracts inclination information of projection data (for example, the gravity center coordinates, inclination start coordinates, inclination end coordinates, etc. of the inclined portion of the image) Are compared in time series, and a pixel shift amount is detected from the comparison result (see, for example, Patent Document 2).

特許3770271号公報(第2図)Japanese Patent No. 3770271 (FIG. 2) 特開平6−38091号公報(段落番号[0016]から[0038]、図1)JP-A-6-38091 (paragraph numbers [0016] to [0038], FIG. 1)

従来の画像処理装置は以上のように構成されているので、射影データの傾き情報を抽出することができれば、その傾き情報から画素ずれ量を検出することができる。しかし、射影データの傾き情報を抽出する度に、その傾き情報として、画像の傾斜部の重心座標、傾斜開始座標、傾斜終了座標などのデータをメモリに格納する必要があり、そのメモリに格納するデータ量は常に一定ではないため、画素値変動が激しい被写体においては、傾き情報が狭いエリアのデータとなってしまって、十分な画素ずれ量の検出精度が得られないことがある課題があった。
また、コントラストが低く、画像の傾斜部として認識することが困難な微小傾斜が含まれている画像に関しては、画素ずれ量を検出することができない課題があった。
Since the conventional image processing apparatus is configured as described above, if the inclination information of the projection data can be extracted, the pixel shift amount can be detected from the inclination information. However, every time the inclination information of the projection data is extracted, it is necessary to store data such as the gravity center coordinates, the inclination start coordinates, and the inclination end coordinates of the inclined portion of the image in the memory as the inclination information. Since the amount of data is not always constant, there is a problem that for a subject whose pixel value fluctuates greatly, the tilt information becomes data in a narrow area, and sufficient detection accuracy of the pixel shift amount may not be obtained. .
In addition, there is a problem that the amount of pixel shift cannot be detected for an image that has a low contrast and includes a minute inclination that is difficult to recognize as an inclined portion of the image.

この発明は上記のような課題を解決するためになされたもので、画素値の変動が激しい画像や、コントラストが低い画像であっても、精度よく画素ずれ量を検出することができる画像処理装置を得ることを目的とする。   The present invention has been made in order to solve the above-described problems, and is an image processing apparatus capable of accurately detecting a pixel shift amount even for an image having a large variation in pixel value or an image having a low contrast. The purpose is to obtain.

この発明に係る画像処理装置は、画像信号入力手段により入力された画像信号のうち、水平方向の座標が一致する画像信号同士の画素値を積算して、その画素値の積算結果である水平積算値を出力するとともに、垂直方向の座標が一致する画像信号同士の画素値を積算して、その画素値の積算結果である垂直積算値を出力する画素値積算手段と、画素値積算手段から出力された複数の水平積算値を比較して、水平積算値の変位量及び曲率量を検出するとともに、画素値積算手段から出力された複数の垂直積算値を比較して、垂直積算値の変位量及び曲率量を検出する検出処理手段とを設け、画素ずれ量検出手段が検出処理手段により検出された変位量及び曲率量から2枚の画像間の相関値を演算し、その相関値から2枚の画像間の画素ずれ量を検出するようにしたものである。   The image processing apparatus according to the present invention integrates pixel values of image signals having the same horizontal coordinate among the image signals input by the image signal input means, and performs horizontal integration as a result of integration of the pixel values. A pixel value integrating means for outputting the values, integrating the pixel values of the image signals having the same coordinates in the vertical direction, and outputting a vertical integrated value as an integration result of the pixel values; and outputting from the pixel value integrating means A plurality of horizontal integrated values are compared to detect a displacement amount and a curvature amount of the horizontal integrated value, and a plurality of vertical integrated values output from the pixel value integrating means are compared to determine a vertical integrated value displacement amount. And a detection processing means for detecting the curvature amount, and the pixel shift amount detection means calculates a correlation value between the two images from the displacement amount and the curvature amount detected by the detection processing means, and two images are obtained from the correlation value. Pixel displacement between images It is obtained so as to detect.

この発明によれば、画像信号入力手段により入力された画像信号のうち、水平方向の座標が一致する画像信号同士の画素値を積算して、その画素値の積算結果である水平積算値を出力するとともに、垂直方向の座標が一致する画像信号同士の画素値を積算して、その画素値の積算結果である垂直積算値を出力する画素値積算手段と、画素値積算手段から出力された複数の水平積算値を比較して、水平積算値の変位量及び曲率量を検出するとともに、画素値積算手段から出力された複数の垂直積算値を比較して、垂直積算値の変位量及び曲率量を検出する検出処理手段とを設け、画素ずれ量検出手段が検出処理手段により検出された変位量及び曲率量から2枚の画像間の相関値を演算し、その相関値から2枚の画像間の画素ずれ量を検出するように構成したので、画素値の変動が激しい画像や、コントラストが低い画像であっても、精度よく画素ずれ量を検出することができる効果がある。   According to the present invention, the pixel values of the image signals having the same horizontal coordinate among the image signals input by the image signal input means are integrated, and a horizontal integrated value that is an integration result of the pixel values is output. In addition, pixel value integration means for integrating the pixel values of the image signals having the same coordinates in the vertical direction and outputting a vertical integration value as an integration result of the pixel values, and a plurality of pixel values output from the pixel value integration means The horizontal integrated value is compared to detect the displacement amount and the curvature amount of the horizontal integrated value, and the plurality of vertical integrated values output from the pixel value integrating means are compared to determine the displacement amount and the curvature amount of the vertical integrated value. Detection processing means for detecting the difference between the two images, the pixel shift amount detection means calculates a correlation value between the two images from the displacement amount and the curvature amount detected by the detection processing means. Detect the amount of pixel shift Since it is configured to, or variation is intense image pixel values, even a low contrast image, there is an effect that it is possible to accurately detect the pixel shift amount.

実施の形態1.
図1はこの発明の実施の形態1による画像処理装置を示す構成図であり、図において、画像入力部1は画像センサにより撮影された画像の射影データ(画像の輝度値(画素値)を示す画像信号)を入力する処理を実施する。なお、画像入力部1は画像信号入力手段を構成している。
水平データ積算処理部2は画像入力部1により入力された射影データのうち、水平方向の座標xが一致する射影データ同士の輝度値P(x,y)を積算して、その輝度値P(x,y)の積算結果である水平積算値Sh(x)を出力する処理を実施する。
垂直データ積算処理部3は画像入力部1により入力された射影データのうち、垂直方向の座標yが一致する射影データ同士の輝度値P(x,y)を積算して、その輝度値P(x,y)の積算結果である垂直積算値Sv(y)を出力する処理を実施する。
なお、水平データ積算処理部2及び垂直データ積算処理部3から画素値積算手段が構成されている。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing an image processing apparatus according to Embodiment 1 of the present invention. In FIG. 1, an image input unit 1 shows projection data (image luminance value (pixel value) of an image taken by an image sensor). (Image signal) is input. The image input unit 1 constitutes an image signal input unit.
The horizontal data integration processing unit 2 integrates the luminance values P (x, y) of the projection data having the same horizontal coordinate x out of the projection data input by the image input unit 1, and the luminance value P ( A process of outputting a horizontal integrated value S h (x) that is an integration result of x, y) is performed.
The vertical data integration processing unit 3 integrates the luminance values P (x, y) of the projection data having the same vertical coordinate y out of the projection data input by the image input unit 1, and the luminance value P ( A process of outputting the vertical integration value S v (y), which is the integration result of x, y), is performed.
The horizontal data integration processing unit 2 and the vertical data integration processing unit 3 constitute pixel value integration means.

変位検出処理部4は水平データ積算処理部2から出力された複数の水平積算値Sh(x)のうち、水平方向の間隔が一定の関係にある2つの水平積算値の大小関係(例えば、Sh(x)とSh(x+a)の大小関係)を比較し、大小関係の比較結果から水平積算値の変位量Kh(x)を検出する処理を実施する。なお、変位検出処理部4は第1の変位量検出手段を構成している。
曲率検出処理部5は水平データ積算処理部2から出力された複数の水平積算値Sh(x)のうち、水平方向の間隔が一定の関係にある3つの水平積算値の大小関係(例えば、Sh(x)×2と、Sh(x−b)+Sh(x+b)の大小関係)を比較し、大小関係の比較結果から中央の位置にある水平積算値Sh(x)の曲率量Lh(x)を検出する処理を実施する。なお、曲率検出処理部5は第1の曲率量検出手段を構成している。
The displacement detection processing unit 4 is a magnitude relationship between two horizontal integration values (for example, a plurality of horizontal integration values S h (x) output from the horizontal data integration processing unit 2). S h (x) and S h (x + a)) are compared, and a process of detecting the displacement K h (x) of the horizontal integrated value from the comparison result of the magnitude relationship is performed. The displacement detection processing unit 4 constitutes first displacement amount detection means.
The curvature detection processing unit 5 is a magnitude relationship between three horizontal integration values (for example, a plurality of horizontal integration values S h (x) output from the horizontal data integration processing unit 2). S h (x) × 2 and the magnitude relationship of S h (x−b) + S h (x + b)), and the curvature of the horizontal integrated value S h (x) at the center position from the comparison result of the magnitude relationship A process for detecting the quantity L h (x) is performed. The curvature detection processing unit 5 constitutes first curvature amount detection means.

変位検出処理部6は垂直データ積算処理部3から出力された複数の垂直積算値Sv(y)のうち、垂直方向の間隔が一定の関係にある2つの垂直積算値の大小関係(例えば、Sv(y)とSv(y+c)の大小関係)を比較し、大小関係の比較結果から垂直積算値の変位量Kv(y)を検出する処理を実施する。なお、変位検出処理部6は第2の変位量検出手段を構成している。
曲率検出処理部7は垂直データ積算処理部3から出力された複数の垂直積算値Sv(y)のうち、垂直方向の間隔が一定の関係にある3つの垂直積算値の大小関係(例えば、Sv(y)×2と、Sv(y−d)+Sv(y+d)の大小関係)を比較し、大小関係の比較結果から中央の位置にある垂直積算値Sv(y)の曲率量Lv(y)を検出する処理を実施する。なお、曲率検出処理部7は第2の曲率量検出手段を構成しており、変位検出処理部4、曲率検出処理部5、変位検出処理部6及び曲率検出処理部7から検出処理手段が構成されている。
Of the plurality of vertical integration values S v (y) output from the vertical data integration processing unit 3, the displacement detection processing unit 6 is a magnitude relationship between two vertical integration values having a fixed vertical interval (for example, S v (y) and S v (y + c) are compared), and a process of detecting the displacement K v (y) of the vertical integrated value from the comparison result of the magnitude relationship is performed. The displacement detection processing unit 6 constitutes second displacement amount detection means.
The curvature detection processing unit 7 is a magnitude relationship between three vertical integration values (for example, a plurality of vertical integration values S v (y) output from the vertical data integration processing unit 3). S v (y) × 2 and the magnitude relationship of S v (y−d) + S v (y + d)), and the curvature of the vertical integrated value S v (y) at the center position from the comparison result of the magnitude relationship. A process of detecting the quantity L v (y) is performed. The curvature detection processing unit 7 constitutes a second curvature amount detection unit, and the detection processing unit is configured by the displacement detection processing unit 4, the curvature detection processing unit 5, the displacement detection processing unit 6, and the curvature detection processing unit 7. Has been.

特徴量バッファ8は変位検出処理部4,6により検出された変位量Kh(x),Kv(y)を記録するとともに、曲率検出処理部5,7により検出された曲率量Lh(x),Lv(y)を記録するメモリである。
相関値演算処理部9は変位検出処理部4,6により今回の処理で検出された変位量Kh(x),Kv(y)と、曲率検出処理部5,7により今回の処理で検出された曲率量Lh(x),Lv(y)と、特徴量バッファ8に記録されている変位量K’h(x),K’v(y)(変位検出処理部4,6により前回の処理で検出された変位量Kh(x),Kv(y))と、特徴量バッファ8に記録されている曲率量L’h(x),L’v(y)(曲率検出処理部5,7により前回の処理で検出された曲率量Lh(x),Lv(y))とを用いて、2枚の画像間の相関値Rh(xd),Rv(yd)を演算し、相関値Rh(xd),Rv(yd)が最小になる画素ずれ量xd,ydを2枚の画像間の画素ずれ量として出力する処理を実施する。
なお、特徴量バッファ8及び相関値演算処理部9から画素ずれ量検出手段が構成されている。
The feature amount buffer 8 records the displacement amounts K h (x), K v (y) detected by the displacement detection processing units 4, 6 and the curvature amount L h (detected by the curvature detection processing units 5, 7. x) is a memory for recording L v (y).
The correlation value calculation processing unit 9 detects the displacements K h (x) and K v (y) detected by the displacement detection processing units 4 and 6 in the current process and the curvature detection processing units 5 and 7 in the current process. The curvature amounts L h (x) and L v (y) that have been recorded and the displacement amounts K ′ h (x) and K ′ v (y) recorded in the feature amount buffer 8 (by the displacement detection processing units 4 and 6). Displacement amounts K h (x), K v (y)) detected in the previous processing and curvature amounts L ′ h (x), L ′ v (y) (curvature detection) recorded in the feature amount buffer 8 Using the curvature amounts L h (x), L v (y)) detected in the previous processing by the processing units 5, 7, correlation values R h (x d ), R v ( y d ) is calculated, and pixel shift amounts x d and y d that minimize the correlation values R h (x d ) and R v (y d ) are output as pixel shift amounts between the two images. To do.
The feature amount buffer 8 and the correlation value calculation processing unit 9 constitute pixel deviation amount detection means.

画像出力部10は画像入力部1から画像の射影データを受けると、相関値演算処理部9から出力された2枚の画像間の画素ずれ量を打ち消す方向に画像の切り出し位置を変更して、画素ずれのない安定した画像を出力する処理を実施する。   When the image output unit 10 receives the projection data of the image from the image input unit 1, the image output unit 10 changes the cutout position of the image in a direction to cancel out the pixel shift amount between the two images output from the correlation value calculation processing unit 9, A process of outputting a stable image without pixel shift is performed.

次に動作について説明する。
画像入力部1は、画像センサにより撮影された画像の射影データを入力する毎に、その射影データを水平データ積算処理部2、垂直データ積算処理部3及び画像出力部10に出力する。
Next, the operation will be described.
The image input unit 1 outputs the projection data to the horizontal data integration processing unit 2, the vertical data integration processing unit 3, and the image output unit 10 each time projection data of an image captured by the image sensor is input.

水平データ積算処理部2は、画像入力部1から画像の射影データを受けると、画像の射影データのうち、水平方向の座標xが一致する射影データ同士の輝度値P(x,y)を積算して、その輝度値P(x,y)の積算結果である水平積算値Sh(x)を変位検出処理部4及び曲率検出処理部5に出力する。
即ち、水平データ積算処理部2は、下記の式(1)に示すような積算演算を実施して、水平積算値Sh(x)を出力する。

Figure 0004541335
ただし、xは水平方向の座標、yは垂直方向の座標、ymaxは射影データにおける垂直方向の座標の最大値、P(x,y)は座標(x,y)に位置する画素の輝度値、Sh(x)は輝度値P(x,y)の積算結果である。 When the horizontal data integration processing unit 2 receives the projection data of the image from the image input unit 1, the horizontal data integration processing unit 2 integrates the luminance values P (x, y) of the projection data having the same horizontal coordinate x in the projection data of the image. Then, the horizontal integrated value S h (x), which is the integrated result of the luminance values P (x, y), is output to the displacement detection processing unit 4 and the curvature detection processing unit 5.
That is, the horizontal data integration processing unit 2 performs integration calculation as shown in the following equation (1), and outputs a horizontal integration value S h (x).
Figure 0004541335
Where x is a coordinate in the horizontal direction, y is a coordinate in the vertical direction, y max is a maximum value of the coordinate in the vertical direction in the projection data, and P (x, y) is a luminance value of the pixel located at the coordinate (x, y). , S h (x) is an integration result of the luminance values P (x, y).

垂直データ積算処理部3は、画像入力部1から画像の射影データを受けると、画像の射影データのうち、垂直方向の座標yが一致する射影データ同士の輝度値P(x,y)を積算して、その輝度値P(x,y)の積算結果である垂直積算値Sv(y)を変位検出処理部6及び曲率検出処理部7に出力する。
即ち、垂直データ積算処理部3は、下記の式(2)に示すような積算演算を実施して、水平積算値Sv(y)を出力する。

Figure 0004541335
ただし、xmaxは射影データにおける水平方向の座標の最大値、Sv(y)は輝度値P(x,y)の積算結果である。 When the vertical data integration processing unit 3 receives the projection data of the image from the image input unit 1, the vertical data integration processing unit 3 integrates the luminance values P (x, y) of the projection data having the same coordinate y in the vertical direction among the projection data of the image. Then, the vertical integration value S v (y), which is the integration result of the luminance values P (x, y), is output to the displacement detection processing unit 6 and the curvature detection processing unit 7.
That is, the vertical data integration processing unit 3 performs integration calculation as shown in the following equation (2), and outputs a horizontal integration value S v (y).
Figure 0004541335
Here, x max is the maximum value of the horizontal coordinate in the projection data, and S v (y) is the result of integrating the luminance value P (x, y).

変位検出処理部4は、水平データ積算処理部2が複数の水平積算値Sh(x)を出力すると、複数の水平積算値Sh(x)のうち、水平方向の間隔が一定の関係にある2つの水平積算値の大小関係を比較する。
即ち、変位検出処理部4は、水平積算値Sh(x)と水平積算値Sh(x+a)の大小関係を比較する。
そして、変位検出処理部4は、下記の式(3)に示すように、水平積算値Sh(x)が水平積算値Sh(x+a)以上であれば、水平積算値の変位量Kh(x)として“1”を出力する。
一方、水平積算値Sh(x)が水平積算値Sh(x+a)より小さければ、水平積算値の変位量Kh(x)として“0”を出力する。
Displacement detection processing unit 4, when the horizontal data integration processing unit 2 outputs a plurality of horizontal integration value S h (x), out of the plurality of horizontal integration value S h (x), a constant relationship is horizontal spacing The magnitude relationship between two horizontal integrated values is compared.
That is, the displacement detection processing unit 4 compares the magnitude relationship between the horizontal integrated value S h (x) and the horizontal integrated value S h (x + a).
Then, as shown in the following equation (3), the displacement detection processing unit 4 determines that the horizontal integrated value displacement amount K h if the horizontal integrated value S h (x) is equal to or greater than the horizontal integrated value S h (x + a). “1” is output as (x).
On the other hand, if the horizontal integrated value S h (x) is smaller than the horizontal integrated value S h (x + a), “0” is output as the displacement amount K h (x) of the horizontal integrated value.

Figure 0004541335
ただし、aは水平積算値Sh(x)と水平積算値Sh(x+a)の水平方向の間隔を示す定数である。
なお、式(3)の演算においては、対象座標値の水平積算値Sh(x)と一定の距離がある座標値の水平積算値Sh(x+a)を参照するため、対象座標値によっては、参照する水平積算値Sh(x+a)が存在しない場合がある。そのような場合には、存在する最も近い座標値の水平積算値を参照するようにしてもよいし、水平積算値の変位量Kh(x)を“0”の固定値としてもよい。
Figure 0004541335
Here, a is a constant indicating the horizontal interval between the horizontal integrated value S h (x) and the horizontal integrated value S h (x + a).
Note that, in the calculation of the expression (3), the horizontal integrated value S h (x) of the target coordinate value and the horizontal integrated value S h (x + a) of the coordinate value having a certain distance are referred to, and therefore depending on the target coordinate value. In some cases, the horizontal integrated value S h (x + a) to be referred to does not exist. In such a case, the horizontal integrated value of the closest coordinate value that exists may be referred to, or the displacement K h (x) of the horizontal integrated value may be a fixed value of “0”.

ここで、図2は定数aが“1”である場合の変位検出処理部4の動作例を示す説明図である。
例えば、Sh(0)→Sh(1)や、Sh(3)→Sh(4)の局面では、水平積算値の変位量Kh(0),Kh(3)として“0”が出力され、Sh(1)→Sh(2)や、Sh(2)→Sh(3)の局面では、水平積算値の変位量Kh(1),Kh(2)として“1”が出力されている。
これにより、変位検出処理部4から垂直画像サイズ分のデータ列として、水平積算値の変位量Kh(x)が出力されることになる。
Here, FIG. 2 is an explanatory diagram showing an operation example of the displacement detection processing unit 4 when the constant a is “1”.
For example, in the situation of S h (0) → S h (1) or S h (3) → S h (4), the displacement amounts K h (0), K h (3) of the horizontal integrated value are “0”. ”Is output, and in the situation of S h (1) → S h (2) or S h (2) → S h (3), the displacement amount K h (1), K h (2) of the horizontal integrated value “1” is output.
Thereby, the displacement amount K h (x) of the horizontal integrated value is output from the displacement detection processing unit 4 as a data string corresponding to the vertical image size.

曲率検出処理部5は、水平データ積算処理部2が複数の水平積算値Sh(x)を出力すると、複数の水平積算値Sh(x)のうち、水平方向の間隔が一定の関係にある3つの水平積算値の大小関係を比較する。
即ち、曲率検出処理部5は、Sh(x)×2と、Sh(x−b)+Sh(x+b)の大小関係を比較する。
そして、曲率検出処理部5は、下記の式(4)に示すように、中央の位置にある水平積算値の2倍であるSh(x)×2が、水平積算値Sh(x−b)と水平積算値Sh(x+b)の和であるSh(x−b)+Sh(x+b)以上であれば、水平積算値Sh(x)の曲率量Lh(x)として“1”を出力する。
一方、Sh(x)×2が、Sh(x−b)+Sh(x+b)より小さければ、水平積算値Sh(x)の曲率量Lh(x)として“0”を出力する。
Curvature detection processing unit 5, when the horizontal data integration processing unit 2 outputs a plurality of horizontal integration value S h (x), out of the plurality of horizontal integration value S h (x), a constant relationship is horizontal spacing The magnitude relationship between three horizontal integrated values is compared.
That is, the curvature detection processing unit 5 compares the magnitude relationship between S h (x) × 2 and S h (x−b) + S h (x + b).
And, the curvature detection processing unit 5, as shown in the following formula (4), S h (x ) × 2 is twice the horizontal accumulated value in the middle of the position, horizontal accumulated value S h (x- if b) and horizontal integration value S h (x is the sum of + b) S h (x- b) + S h (x + b) above, as the curvature of the horizontal accumulated value S h (x) L h ( x) " 1 "is output.
On the other hand, if S h (x) × 2 is smaller than S h (x−b) + S h (x + b), “0” is output as the curvature amount L h (x) of the horizontal integrated value S h (x). .

Figure 0004541335
ただし、bは水平積算値Sh(x)と水平積算値Sh(x−b),Sh(x+b)の水平方向の間隔を示す定数である。
なお、式(4)の演算においては、対象座標値の水平積算値Sh(x)と一定の距離がある座標値の水平積算値Sh(x−b),Sh(x+b)を参照するため、対象座標値によっては、参照する水平積算値Sh(x−b),Sh(x+b)が存在しない場合がある。そのような場合には、存在する最も近い座標値の水平積算値を参照するようにしてもよいし、水平積算値Sh(x)の曲率量Lh(x)を“0”の固定値としてもよい。
Figure 0004541335
Here, b is a constant indicating the horizontal interval between the horizontal integrated value S h (x) and the horizontal integrated values S h (x−b), S h (x + b).
In the calculation of the equation (4), the horizontal integrated value S h (x) of the target coordinate value and the horizontal integrated values S h (x−b) and S h (x + b) of coordinate values having a certain distance are referred to. Therefore, depending on the target coordinate value, there are cases where the horizontal integrated values S h (x−b) and S h (x + b) to be referred to do not exist. In such a case, the horizontal integrated value of the nearest existing coordinate value may be referred to, or the curvature amount L h (x) of the horizontal integrated value S h (x) is a fixed value of “0”. It is good.

変位検出処理部6は、垂直データ積算処理部3が複数の垂直積算値Sv(y)を出力すると、複数の垂直積算値Sv(y)のうち、垂直方向の間隔が一定の関係にある2つの垂直積算値の大小関係を比較する。
即ち、変位検出処理部6は、垂直積算値Sv(y)と垂直積算値Sv(y+c)の大小関係を比較する。
そして、変位検出処理部6は、下記の式(5)に示すように、垂直積算値Sv(y)が垂直積算値Sv(y+c)以上であれば、垂直積算値の変位量Kv(y)として“1”を出力する。
一方、垂直積算値Sv(y)が垂直積算値Sv(y+c)より小さければ、垂直積算値の変位量Kv(y)として“0”を出力する。
Displacement detection processing unit 6, the vertical data integration processing unit 3 outputs a plurality of vertical integrated value S v (y), of the plurality of vertical integrated value S v (y), vertical spacing is a constant relationship The magnitude relationship between two vertical integrated values is compared.
That is, the displacement detection processing unit 6 compares the magnitude relationship between the vertical integrated value S v (y) and the vertical integrated value S v (y + c).
Then, as shown in the following equation (5), the displacement detection processing unit 6 determines that the vertical integrated value displacement amount K v if the vertical integrated value S v (y) is equal to or greater than the vertical integrated value S v (y + c). “1” is output as (y).
On the other hand, if the vertical integrated value S v (y) is smaller than the vertical integrated value S v (y + c), “0” is output as the displacement amount K v (y) of the vertical integrated value.

Figure 0004541335
ただし、cは垂直積算値Sv(y)と垂直積算値Sv(y+c)の垂直方向の間隔を示す定数である。
なお、式(5)の演算においては、対象座標値の垂直積算値Sv(y)と一定の距離がある座標値の垂直積算値Sv(y+c)を参照するため、対象座標値によっては、参照する垂直積算値Sv(y+c)が存在しない場合がある。そのような場合には、存在する最も近い座標値の垂直積算値を参照するようにしてもよいし、垂直積算値の変位量Kv(y)を“0”の固定値としてもよい。
Figure 0004541335
Here, c is a constant indicating the vertical interval between the vertical integrated value S v (y) and the vertical integrated value S v (y + c).
In the calculation of equation (5), since the vertical integrated value S v (y) of the target coordinate value and the vertical integrated value S v (y + c) of the coordinate value having a certain distance are referred to, depending on the target coordinate value, In some cases, the vertical integrated value S v (y + c) to be referred to does not exist. In such a case, the vertical integrated value of the nearest existing coordinate value may be referred to, or the displacement amount K v (y) of the vertical integrated value may be a fixed value of “0”.

曲率検出処理部7は、垂直データ積算処理部3が複数の垂直積算値Sv(y)を出力すると、複数の垂直積算値Sv(y)のうち、垂直方向の間隔が一定の関係にある3つの垂直積算値の大小関係を比較する。
即ち、曲率検出処理部7は、Sv(y)×2と、Sv(y−d)+Sv(y+d)の大小関係を比較する。
そして、曲率検出処理部7は、下記の式(6)に示すように、中央の位置にある垂直積算値の2倍であるSv(y)×2が、垂直積算値Sv(y−d)と垂直積算値Sv(y+d)の和であるSv(y−d)+Sv(y+d)以上であれば、垂直積算値Sv(y)の曲率量Lv(y)として“1”を出力する。
一方、Sv(y)×2が、Sv(y−d)+Sv(y+d)より小さければ、垂直積算値Sv(y)の曲率量Lv(y)として“0”を出力する。
Curvature detecting unit 7, the vertical data integration processing unit 3 outputs a plurality of vertical integrated value S v (y), of the plurality of vertical integrated value S v (y), vertical spacing is a constant relationship The magnitude relationship of three vertical integrated values is compared.
That is, the curvature detection processing unit 7 compares the magnitude relationship between S v (y) × 2 and S v (y−d) + S v (y + d).
Then, curvature detection processing unit 7, as shown in the following formula (6), is twice the vertical integrated value at the center position S v (y) × 2 is a vertical integrated value S v (y- if S v (y-d) + S v (y + d) or the sum of d) and the vertical integrated value S v (y + d), the curvature of the vertical integrated value S v (y) L v ( y) as " 1 "is output.
On the other hand, if S v (y) × 2 is smaller than S v (y−d) + S v (y + d), “0” is output as the curvature amount L v (y) of the vertical integrated value S v (y). .

Figure 0004541335
ただし、dは垂直積算値Sv(y)と垂直積算値Sv(y−d),Sv(y+d)の垂直方向の間隔を示す定数である。
なお、式(6)の演算においては、対象座標値の垂直積算値Sv(y)と一定の距離がある座標値の垂直積算値Sv(y−d),Sv(y+d)を参照するため、対象座標値によっては、参照する垂直積算値Sv(y−d),Sv(y+d)が存在しない場合がある。そのような場合には、存在する最も近い座標値の垂直積算値を参照するようにしてもよいし、垂直積算値Sv(y)の曲率量Lv(y)を“0”の固定値としてもよい。
Figure 0004541335
Here, d is a constant indicating the vertical interval between the vertical integrated value S v (y) and the vertical integrated values S v (y−d), S v (y + d).
In the calculation of equation (6), refer to the vertical integrated values S v (y−d) and S v (y + d) of the coordinate values having a certain distance from the vertical integrated value S v (y) of the target coordinate value. Therefore, depending on the target coordinate value, there are cases where the vertical integrated values S v (y−d) and S v (y + d) to be referred to do not exist. In such a case, the vertical integrated value of the closest coordinate value that exists may be referred to, or the curvature amount L v (y) of the vertical integrated value S v (y) is a fixed value of “0”. It is good.

上記のようにして、変位検出処理部4,6及び曲率検出処理部5,7により検出された変位量Kh(x),Kv(y)と曲率量Lh(x),Lv(y)は、相関値演算処理部9に出力されるほか、特徴量バッファ8に出力されて、変位量Kh(x),Kv(y)と曲率量Lh(x),Lv(y)が特徴量バッファ8に記録される。
なお、特徴量バッファ8に記録される変位量Kh(x),Kv(y)と曲率量Lh(x),Lv(y)は、相関値演算処理部9における次回の相関演算処理に備えるものである。
The displacement amounts K h (x), K v (y) and the curvature amounts L h (x), L v (detected by the displacement detection processing units 4, 6 and the curvature detection processing units 5, 7 as described above. y) is output to the feature value buffer 8 in addition to being output to the correlation value calculation processing unit 9, and the displacement amounts K h (x), K v (y) and the curvature amounts L h (x), L v ( y) is recorded in the feature amount buffer 8.
The displacement amounts K h (x), K v (y) and the curvature amounts L h (x), L v (y) recorded in the feature amount buffer 8 are the next correlation calculation in the correlation value calculation processing unit 9. It prepares for processing.

相関値演算処理部9は、変位検出処理部4,6から今回の処理で検出された変位量Kh(x),Kv(y)を受け、曲率検出処理部5,7から今回の処理で検出された曲率量Lh(x),Lv(y)を受けると、特徴量バッファ8から変位検出処理部4,6により前回の処理で検出された変位量Kh(x),Kv(y)を一つ前のフレームの画像に基づく変位量K’h(x),K’v(y)として読み込み、また、特徴量バッファ8から曲率検出処理部5,7により前回の処理で検出された曲率量Lh(x),Lv(y)を一つ前のフレームの画像に基づく曲率量L’h(x),L’v(y)として読み込みを行う。
そして、相関値演算処理部9は、変位量Kh(x),Kv(y),K’h(x),K’v(y)と、曲率量Lh(x),Lv(y),L’h(x),L’v(y)とを用いて、2枚の画像間(フレーム間)の相関値Rh(xd),Rv(yd)を演算する。
The correlation value calculation processing unit 9 receives the displacements K h (x) and K v (y) detected in the current processing from the displacement detection processing units 4 and 6, and receives the current processing from the curvature detection processing units 5 and 7. When the curvature amounts L h (x) and L v (y) detected in step S3 are received, the displacement amounts K h (x) and K detected in the previous process by the displacement detection processing units 4 and 6 from the feature amount buffer 8. v (y) is read as displacement amounts K ′ h (x), K ′ v (y) based on the image of the previous frame, and the previous processing is performed by the curvature detection processing units 5 and 7 from the feature amount buffer 8. The curvature amounts L h (x) and L v (y) detected in (1) are read as curvature amounts L ′ h (x) and L ′ v (y) based on the previous frame image.
Then, the correlation value calculation processing unit 9 calculates the displacement amounts K h (x), K v (y), K ′ h (x), K ′ v (y) and the curvature amounts L h (x), L v ( Using y), L ′ h (x), and L ′ v (y), correlation values R h (x d ) and R v (y d ) between two images (between frames) are calculated.

即ち、相関値演算処理部9は、下記の式(7)に示すような相関値演算を実施することにより、比較対象の画素を1画素ずつずらしながら、水平方向の画素ずれ量がxdであるとする場合のフレーム間の相関値Rh(xd)を演算する。

Figure 0004541335
ただし、eは画素ずれ量の最大検出値を示す定数である。 That is, the correlation value calculation processing unit 9 performs the correlation value calculation as shown in the following equation (7), thereby shifting the pixel to be compared one pixel at a time and the horizontal pixel shift amount is x d . A correlation value R h (x d ) between frames when there is a certain frame is calculated.
Figure 0004541335
Here, e is a constant indicating the maximum detected value of the pixel shift amount.

また、相関値演算処理部9は、下記の式(8)に示すような相関値演算を実施することにより、比較対象の画素を1画素ずつずらしながら、垂直方向の画素ずれ量がydであるとする場合のフレーム間の相関値Rv(yd)を演算する。

Figure 0004541335
ただし、fは画素ずれ量の最大検出値を示す定数である。 Further, the correlation value calculation processing unit 9 performs the correlation value calculation as shown in the following equation (8), so that the pixel shift amount in the vertical direction is y d while shifting the pixels to be compared one by one. A correlation value R v (y d ) between frames when there is a certain frame is calculated.
Figure 0004541335
Here, f is a constant indicating the maximum detected value of the pixel shift amount.

相関値演算処理部9は、上記の相関演算を−e≦xd≦e、−f≦yd≦fのそれぞれの範囲で実施して、フレーム間の相関値Rh(xd),Rv(yd)を演算すると、フレーム間の相関値Rh(xd),Rv(yd)が最小になる画素ずれ量xd,ydをフレーム間の画素ずれ量として出力する。
ここで、図3はxdの値を−1、0、1とする場合の相関値演算処理部12の動作例を示す説明図である。
図3の例では、xd=−1 → Rh(xd)=10、xd=0 → Rh(xd)=9、xd=1 → Rh(xd)=2であり、xdの値が1のとき、フレーム間の相関値Rh(xd)が最小になるので、水平方向の画素ずれ量xdとして“1”が出力される。
The correlation value calculation processing unit 9 performs the above correlation calculation in each of the ranges of −e ≦ x d ≦ e and −f ≦ y d ≦ f, and the correlation values R h (x d ), R between frames. When v (y d ) is calculated, pixel shift amounts x d and y d that minimize the correlation values R h (x d ) and R v (y d ) between frames are output as pixel shift amounts between frames.
Here, FIG. 3 is an explanatory diagram illustrating an operation example of the correlation value calculation processing unit 12 when the value of x d is set to −1, 0, and 1.
In the example of FIG. 3, x d = −1 → R h (x d ) = 10, x d = 0 → R h (x d ) = 9, x d = 1 → R h (x d ) = 2 When the value of x d is 1, the correlation value R h (x d ) between frames is minimized, so that “1” is output as the pixel shift amount x d in the horizontal direction.

画像出力部10は、画像入力部1から画像の射影データを受け、相関値演算処理部9からフレーム間の画素ずれ量を受けると、その画素ずれ量を打ち消す方向に画像の切り出し位置を変更して、画素ずれのない安定した画像を出力する。
例えば、水平方向の画素ずれ量xdが“1”であれば、画像の切り出し位置を前のフレームより1画素だけ左の位置に変更する。
また、垂直方向の画素ずれ量ydが“−2”であれば、画像の切り出し位置を前のフレームより2画素だけ下の位置に変更する。
When the image output unit 10 receives the projection data of the image from the image input unit 1 and receives the pixel shift amount between frames from the correlation value calculation processing unit 9, the image output unit 10 changes the cutout position of the image in a direction to cancel the pixel shift amount. Thus, a stable image with no pixel shift is output.
For example, if the pixel shift amount xd in the horizontal direction is “1”, the cutout position of the image is changed to a position left by one pixel from the previous frame.
The pixel shift amount y d in the vertical direction if "-2", changing the extraction position of the image in the down position by two pixels from the previous frame.

以上で明らかなように、この実施の形態1によれば、画像入力部1により入力された射影データのうち、水平方向の座標xが一致する射影データ同士の輝度値P(x,y)を積算して、その輝度値の積算結果である水平積算値Sh(x)を出力する水平データ積算処理部2と、垂直方向の座標yが一致する射影データ同士の輝度値P(x,y)を積算して、その輝度値の積算結果である垂直積算値Sv(y)を出力する垂直データ積算処理部3と、水平データ積算処理部2又は垂直データ積算処理部3から出力された複数の水平積算値Sh(x)又は複数の垂直積算値Sv(y)を比較して、水平積算値の変位量Kh(x)又は垂直積算値の変位量Kv(y)を検出する変位検出処理部4,6と、水平データ積算処理部2又は垂直データ積算処理部3から出力された複数の水平積算値Sh(x)又は複数の垂直積算値Sv(y)を比較して、水平積算値Sh(x)の曲率量Lh(x)又は垂直積算値Sv(y)の曲率量Lv(y)を検出する曲率検出処理部5,7とを設け、相関値演算処理部9が当該フレームの変位量Kh(x),Kv(y)及び曲率量Lh(x),Lv(y)と、1フレーム前の変位量K’h(x),K’v(y)及び曲率量L’h(x),L’v(y)とを用いて、フレーム間の相関値Rh(xd),Rv(yd)を演算し、その相関値Rh(xd),Rv(yd)からフレーム間の画素ずれ量を検出するように構成したので、画素値の変動が激しい画像や、コントラストが低い画像であっても、精度よく画素ずれ量を検出することができる効果を奏する。 As apparent from the above, according to the first embodiment, the luminance value P (x, y) between the projection data input by the image input unit 1 and having the same coordinate x in the horizontal direction is obtained. The luminance value P (x, y) between the horizontal data integration processing unit 2 that performs integration and outputs the horizontal integration value S h (x) that is the integration result of the luminance values, and projection data that coincides with the coordinate y in the vertical direction. ) And outputs a vertical integrated value S v (y) that is an integrated result of the luminance values, and is output from the horizontal data integrating processor 2 or the vertical data integrating processor 3. By comparing a plurality of horizontal integrated values S h (x) or a plurality of vertical integrated values S v (y), a horizontal integrated value displacement amount K h (x) or a vertical integrated value displacement amount K v (y) is obtained. Displacement detection processing units 4 and 6 to detect and horizontal data integration processing unit 2 or vertical data integration Comparing the plurality of horizontal accumulated value output from the processing section 3 S h (x) or a plurality of vertical integrated value S v (y), the curvature of the horizontal accumulated value S h (x) L h ( x) or Curvature detection processing units 5 and 7 for detecting the curvature amount L v (y) of the vertical integrated value S v (y) are provided, and the correlation value calculation processing unit 9 provides the displacement amounts K h (x), K v of the frame. (Y), curvature amounts L h (x), L v (y), displacement amounts K ′ h (x), K ′ v (y) and curvature amounts L ′ h (x), L ′ one frame before v (y) is used to calculate inter-frame correlation values R h (x d ) and R v (y d ), and from the correlation values R h (x d ) and R v (y d ) The pixel shift amount is detected, so that the pixel shift amount can be accurately detected even for an image having a large pixel value variation or an image having a low contrast.

即ち、この実施の形態1では、水平積算値Sh(x)及び垂直積算値Sv(y)から変位量Kh(x),Kv(y)と曲率量Lh(x),Lv(y)を検出し、射影データの各ライン当り1ビットの情報として、その変位量Kh(x),Kv(y)と曲率量Lh(x),Lv(y)を特徴量バッファ8に記録するようにしているので、特徴量として保持するデータ量を大きく削減することが可能である。
また、フレーム間で比較するデータ量が削減されることによって、相関値演算処理部9の相関値演算処理では、各ライン毎に1ビット値の一致もしくは不一致を判定するだけでよくなり、相関値演算の演算量自体も大きく削減することができる。
また、特徴量として互いに性質の異なる2種類の値を検出し、その組み合わせによって相関値の演算を行うことにより、個々の値のみで相関値を算出する場合よりも高精度に画素ずれ量を算出することが可能となる。
That is, in the first embodiment, the displacement amounts K h (x), K v (y) and the curvature amounts L h (x), L from the horizontal integration value S h (x) and the vertical integration value S v (y). v (y) is detected, and displacement amounts K h (x), K v (y) and curvature amounts L h (x), L v (y) are characterized as 1-bit information for each line of projection data. Since the data is recorded in the quantity buffer 8, the amount of data held as the feature quantity can be greatly reduced.
Further, since the amount of data to be compared between frames is reduced, the correlation value calculation processing of the correlation value calculation processing unit 9 only needs to determine whether the 1-bit value matches or does not match for each line. The amount of calculation itself can be greatly reduced.
In addition, by detecting two types of values that are different from each other as feature quantities and calculating the correlation value based on the combination of these values, the amount of pixel shift can be calculated with higher accuracy than when calculating correlation values using only individual values. It becomes possible to do.

実施の形態2.
図4はこの発明の実施の形態2による画像処理装置を示す構成図であり、図において、図1と同一符号は同一または相当部分を示すので説明を省略する。
変位検出処理部4aは水平データ積算処理部2から出力された複数の水平積算値Sh(x)のうち、水平方向の間隔が一定の関係にある2つの水平積算値の大小関係(例えば、Sh(x)とSh(x+a1)の大小関係)を比較し、大小関係の比較結果から水平積算値の変位量Kh1(x)を検出する処理を実施する。
変位検出処理部4bは水平データ積算処理部2から出力された複数の水平積算値Sh(x)のうち、水平方向の間隔が一定の関係にある2つの水平積算値の大小関係(例えば、Sh(x)とSh(x+a2)の大小関係)を比較し、大小関係の比較結果から水平積算値の変位量Kh2(x)を検出する処理を実施する。
なお、変位検出処理部4a,4bは第1の変位量検出手段を構成している。
Embodiment 2. FIG.
FIG. 4 is a block diagram showing an image processing apparatus according to Embodiment 2 of the present invention. In the figure, the same reference numerals as those in FIG.
The displacement detection processing unit 4a has a magnitude relationship between two horizontal integration values (for example, a plurality of horizontal integration values S h (x) output from the horizontal data integration processing unit 2). S h (x) and S h (x + a 1 ) are compared, and a process of detecting the displacement K h1 (x) of the horizontal integrated value from the comparison result of the magnitude relationship is performed.
The displacement detection processing unit 4b is a magnitude relationship between two horizontal integration values (for example, a plurality of horizontal integration values S h (x) output from the horizontal data integration processing unit 2). S h (x) and S h (x + a 2 )) are compared, and a process of detecting the displacement K h2 (x) of the horizontal integrated value from the comparison result of the magnitude relationship is performed.
The displacement detection processing units 4a and 4b constitute first displacement amount detection means.

曲率検出処理部5aは水平データ積算処理部2から出力された複数の水平積算値Sh(x)のうち、水平方向の間隔が一定の関係にある3つの水平積算値の大小関係(例えば、Sh(x)×2と、Sh(x−b1)+Sh(x+b1)の大小関係)を比較し、大小関係の比較結果から中央の位置にある水平積算値Sh(x)の曲率量Lh1(x)を検出する処理を実施する。
曲率検出処理部5bは水平データ積算処理部2から出力された複数の水平積算値Sh(x)のうち、水平方向の間隔が一定の関係にある3つの水平積算値の大小関係(例えば、Sh(x)×2と、Sh(x−b2)+Sh(x+b2)の大小関係)を比較し、大小関係の比較結果から中央の位置にある水平積算値Sh(x)の曲率量Lh2(x)を検出する処理を実施する。
なお、曲率検出処理部5a,5bは第1の曲率量検出手段を構成している。
The curvature detection processing unit 5a has a magnitude relationship between three horizontal integration values (for example, a plurality of horizontal integration values S h (x) output from the horizontal data integration processing unit 2). S h (x) × 2 and S h (x−b 1 ) + S h (x + b 1 )) are compared, and the horizontal integrated value S h (x) at the center position is determined from the comparison result of the magnitude relationship. The process of detecting the curvature amount L h1 (x) of is performed.
The curvature detection processing unit 5b is a magnitude relationship between three horizontal integration values (for example, a plurality of horizontal integration values S h (x) output from the horizontal data integration processing unit 2). S h (x) × 2 and S h (x−b 2 ) + S h (x + b 2 )) are compared, and the horizontal integrated value S h (x) at the center position is determined from the comparison result of the magnitude relationship. The process of detecting the curvature amount L h2 (x) of is performed.
The curvature detection processing units 5a and 5b constitute first curvature amount detection means.

変位検出処理部6aは垂直データ積算処理部3から出力された複数の垂直積算値Sv(y)のうち、垂直方向の間隔が一定の関係にある2つの垂直積算値の大小関係(例えば、Sv(y)とSv(y+c1)の大小関係)を比較し、大小関係の比較結果から垂直積算値の変位量Kv1(y)を検出する処理を実施する。
変位検出処理部6bは垂直データ積算処理部3から出力された複数の垂直積算値Sv(y)のうち、垂直方向の間隔が一定の関係にある2つの垂直積算値の大小関係(例えば、Sv(y)とSv(y+c2)の大小関係)を比較し、大小関係の比較結果から垂直積算値の変位量Kv2(y)を検出する処理を実施する。
なお、変位検出処理部6a,6bは第2の変位量検出手段を構成している。
The displacement detection processing unit 6a has a magnitude relationship between two vertical integration values (for example, a plurality of vertical integration values S v (y) output from the vertical data integration processing unit 3). S v (y) and S v (y + c 1 )) are compared, and the vertical integrated value displacement amount K v1 (y) is detected from the comparison result of the magnitude relationship.
The displacement detection processing unit 6b is a magnitude relationship between two vertical integration values (for example, a plurality of vertical integration values S v (y) output from the vertical data integration processing unit 3). S v (y) and S v (y + c 2 ) are compared, and a process of detecting the displacement K v2 (y) of the vertical integrated value from the comparison result of the magnitude relationship is performed.
The displacement detection processing units 6a and 6b constitute second displacement amount detection means.

曲率検出処理部7aは垂直データ積算処理部3から出力された複数の垂直積算値Sv(y)のうち、垂直方向の間隔が一定の関係にある3つの垂直積算値の大小関係(例えば、Sv(y)×2と、Sv(y−d1)+Sv(y+d1)の大小関係)を比較し、大小関係の比較結果から中央の位置にある垂直積算値Sv(y)の曲率量Lv1(y)を検出する処理を実施する。
曲率検出処理部7bは垂直データ積算処理部3から出力された複数の垂直積算値Sv(y)のうち、垂直方向の間隔が一定の関係にある3つの垂直積算値の大小関係(例えば、Sv(y)×2と、Sv(y−d2)+Sv(y+d2)の大小関係)を比較し、大小関係の比較結果から中央の位置にある垂直積算値Sv(y)の曲率量Lv2(y)を検出する処理を実施する。
なお、曲率検出処理部7a,7bは第2の曲率量検出手段を構成しており、変位検出処理部4a,4b、曲率検出処理部5a,5b、変位検出処理部6a,6b及び曲率検出処理部7a,7bから検出処理手段が構成されている。
The curvature detection processing unit 7a is a magnitude relationship (for example, three vertical integration values having a constant vertical interval among the plurality of vertical integration values S v (y) output from the vertical data integration processing unit 3 (for example, S v (y) × 2 and S v (y−d 1 ) + S v (y + d 1 )) are compared, and the vertical integrated value S v (y) at the center position is determined from the comparison result of the magnitude relationship. The process of detecting the curvature amount L v1 (y) of is performed.
The curvature detection processing unit 7b is a magnitude relationship between three vertical integration values (for example, a plurality of vertical integration values S v (y) output from the vertical data integration processing unit 3). S v (y) × 2 and S v (y−d 2 ) + S v (y + d 2 )) are compared, and the vertical integrated value S v (y) at the center position is determined from the comparison result of the magnitude relationship. The process of detecting the curvature amount L v2 (y) of is performed.
The curvature detection processing units 7a and 7b constitute second curvature amount detection means, such as displacement detection processing units 4a and 4b, curvature detection processing units 5a and 5b, displacement detection processing units 6a and 6b, and curvature detection processing. The detection processing means is composed of the sections 7a and 7b.

特徴量バッファ11は変位検出処理部4a,4b,6a,6bにより検出された変位量Kh1(x),Kh2(x),Kv1(y),Kv2(y)を記録するとともに、曲率検出処理部5a,5b,7a,7bにより検出された曲率量Lh1(x),Lh2(x),Lv1(y),Lv2(y)を記録するメモリである。
相関値演算処理部12は変位検出処理部4a,4b,6a,6bにより今回の処理で検出された変位量Kh1(x),Kh2(x),Kv1(y),Kv2(y)と、曲率検出処理部5a,5b,7a,7bにより今回の処理で検出された曲率量Lh1(x),Lh2(x),Lv1(y),Lv2(y)と、特徴量バッファ8に記録されている変位量K’h1(x),K’h2(x),K’v1(y),K’v2(y)(変位検出処理部4a,4b,6a,6bにより前回の処理で検出された変位量Kh1(x),Kh2(x),Kv1(y),Kv2(y))と、特徴量バッファ8に記録されている曲率量L’h1(x),L’h2(x),L’v1(y),L’v2(y)(曲率検出処理部5a,5b,7a,7bにより前回の処理で検出された曲率量Lh1(x),Lh2(x),Lv1(y),Lv2(y))とを用いて、フレーム間の相関値Rh(xd),Rv(yd)を演算し、相関値Rh(xd),Rv(yd)が最小になる画素ずれ量xd,ydをフレーム間の画素ずれ量として出力する処理を実施する。
なお、特徴量バッファ11及び相関値演算処理部12から画素ずれ量検出手段が構成されている。
The feature amount buffer 11 records the displacement amounts K h1 (x), K h2 (x), K v1 (y), K v2 (y) detected by the displacement detection processing units 4a, 4b, 6a, 6b, This is a memory for recording the curvature amounts L h1 (x), L h2 (x), L v1 (y), L v2 (y) detected by the curvature detection processing units 5a, 5b, 7a, 7b.
Correlation value calculation processing unit 12 has displacement amounts K h1 (x), K h2 (x), K v1 (y), K v2 (y) detected by displacement detection processing units 4a, 4b, 6a, 6b in this process. ), Curvature amounts L h1 (x), L h2 (x), L v1 (y), L v2 (y) detected by the curvature detection processing units 5a, 5b, 7a, 7b in the current process, Displacements K ′ h1 (x), K ′ h2 (x), K ′ v1 (y), K ′ v2 (y) recorded in the quantity buffer 8 (by the displacement detection processing units 4a, 4b, 6a, 6b) The displacements K h1 (x), K h2 (x), K v1 (y), K v2 (y)) detected in the previous process and the curvature L ′ h1 ( x), L ′ h2 (x), L ′ v1 (y), L ′ v2 (y) (curvature amount L h1 (x) detected in the previous process by the curvature detection processing units 5a, 5b, 7a, 7b) , L h2 (x , L v1 (y), by using the L v2 (y)), the correlation value R h (x d between frames), calculates the R v (y d), the correlation value R h (x d), R A process of outputting the pixel shift amount x d , y d that minimizes v (y d ) as the pixel shift amount between frames is performed.
The feature amount buffer 11 and the correlation value calculation processing unit 12 constitute a pixel shift amount detection unit.

次に動作について説明する。
この実施の形態2では、図1の変位検出処理部4,6に相当する検出処理部と、曲率検出処理部5,7に相当する検出処理部をそれぞれ2組ずつ用意している点で上記実施の形態1と相違している。
即ち、この実施の形態2では、図1の変位検出処理部4に相当する検出処理部として変位検出処理部4a,4b、図1の曲率検出処理部5に相当する検出処理部として曲率検出処理部5a,5b、図1の変位検出処理部6に相当する検出処理部として変位検出処理部6a,6b、図1の曲率検出処理部7に相当する検出処理部として曲率検出処理部7a,7bを用意している。
Next, the operation will be described.
In the second embodiment, two sets of detection processing units corresponding to the displacement detection processing units 4 and 6 in FIG. 1 and two detection processing units corresponding to the curvature detection processing units 5 and 7 are prepared. This is different from the first embodiment.
That is, in the second embodiment, the displacement detection processing units 4a and 4b as detection processing units corresponding to the displacement detection processing unit 4 in FIG. 1, and the curvature detection processing as detection processing units corresponding to the curvature detection processing unit 5 in FIG. 5a and 5b, displacement detection processing units 6a and 6b as detection processing units corresponding to the displacement detection processing unit 6 in FIG. 1, and curvature detection processing units 7a and 7b as detection processing units corresponding to the curvature detection processing unit 7 in FIG. Is prepared.

画像入力部1は、上記実施の形態1と同様に、画像センサにより撮影された画像の射影データを入力する毎に、その射影データを水平データ積算処理部2、垂直データ積算処理部3及び画像出力部10に出力する。
水平データ積算処理部2は、画像入力部1から画像の射影データを受けると、上記実施の形態1と同様に、画像の射影データのうち、水平方向の座標xが一致する射影データ同士の輝度値P(x,y)を積算して、その輝度値P(x,y)の積算結果である水平積算値Sh(x)を変位検出処理部4a,4b及び曲率検出処理部5a,5bに出力する。
垂直データ積算処理部3は、画像入力部1から画像の射影データを受けると、上記実施の形態1と同様に、画像の射影データのうち、垂直方向の座標yが一致する射影データ同士の輝度値P(x,y)を積算して、その輝度値P(x,y)の積算結果である垂直積算値Sv(y)を変位検出処理部6a,6b及び曲率検出処理部7a,7bに出力する。
Similar to the first embodiment, the image input unit 1 inputs the projection data of the image captured by the image sensor, the horizontal data integration processing unit 2, the vertical data integration processing unit 3, and the image every time the projection data of the image captured by the image sensor is input. Output to the output unit 10.
When the horizontal data integration processing unit 2 receives the projection data of the image from the image input unit 1, the luminance of the projection data having the same horizontal coordinate x among the projection data of the image as in the first embodiment. The values P (x, y) are integrated, and the horizontal integrated value S h (x), which is the integration result of the luminance values P (x, y), is used as the displacement detection processing units 4a and 4b and the curvature detection processing units 5a and 5b. Output to.
When the vertical data integration processing unit 3 receives the projection data of the image from the image input unit 1, the brightness of the projection data having the same coordinate y in the vertical direction among the projection data of the image, as in the first embodiment. The values P (x, y) are integrated, and the vertical integrated value S v (y), which is the integration result of the luminance values P (x, y), is obtained as the displacement detection processing units 6a, 6b and curvature detection processing units 7a, 7b. Output to.

変位検出処理部4a,4bは、水平データ積算処理部2から複数の水平積算値Sh(x)を受けると、図1の変位検出処理部4と同様にして、水平積算値の変位量Kh1(x),Kh2(x)を検出する。
ただし、変位検出処理部4a,4bは、大小関係を比較する2つの水平積算値Sh(x)の水平方向の間隔が相互に異なっている。
即ち、変位検出処理部4aでは間隔がa1であり、変位検出処理部4bでは間隔がa2である。
When the displacement detection processing units 4a and 4b receive a plurality of horizontal integration values S h (x) from the horizontal data integration processing unit 2, the displacement detection processing unit 4 in FIG. h1 (x) and K h2 (x) are detected.
However, in the displacement detection processing units 4a and 4b, the horizontal intervals of the two horizontal integrated values S h (x) for comparing the magnitude relation are different from each other.
That is, the interval in the displacement detection processing unit 4a is a 1, the interval in the displacement detection processing unit 4b is a 2.

曲率検出処理部5a,5bは、水平データ積算処理部2から複数の水平積算値Sh(x)を受けると、図1の曲率検出処理部5と同様にして、水平積算値Sh(x)の曲率量Lh1(x),Lh2(x)を検出する。
ただし、曲率検出処理部5a,5bは、大小関係を比較する3つの水平積算値Sh(x)の水平方向の間隔が相互に異なっている。
即ち、曲率検出処理部5aでは間隔がb1であり、曲率検出処理部5bでは間隔がb2である。
When the curvature detection processing units 5a and 5b receive a plurality of horizontal integration values S h (x) from the horizontal data integration processing unit 2, the horizontal integration values S h (x ) Curvature amounts L h1 (x) and L h2 (x) are detected.
However, in the curvature detection processing units 5a and 5b, the horizontal intervals of the three horizontal integrated values S h (x) for comparing the magnitude relationships are different from each other.
That is, the interval is b 1 in the curvature detection processing unit 5a, and the interval is b 2 in the curvature detection processing unit 5b.

変位検出処理部6a,6bは、垂直データ積算処理部3から複数の垂直積算値Sv(y)を受けると、図1の変位検出処理部6と同様にして、垂直積算値の変位量Kv1(y),Kv2(y)を検出する。
ただし、変位検出処理部6a,6bは、大小関係を比較する2つの垂直積算値Sv(y)の垂直方向の間隔が相互に異なっている。
即ち、変位検出処理部6aでは間隔がc1であり、変位検出処理部6bでは間隔がc2である。
When the displacement detection processing units 6a and 6b receive a plurality of vertical integration values S v (y) from the vertical data integration processing unit 3, the displacement detection processing unit 6 shown in FIG. v1 (y) and Kv2 (y) are detected.
However, in the displacement detection processing units 6a and 6b, the vertical intervals between the two vertical integrated values S v (y) that are compared in magnitude are different from each other.
That is, the interval is c 1 in the displacement detection processing unit 6a, and the interval is c 2 in the displacement detection processing unit 6b.

曲率検出処理部7a,7bは、垂直データ積算処理部3から複数の垂直積算値Sv(y)を受けると、図1の曲率検出処理部7と同様にして、垂直積算値Sv(y)の曲率量Lv1(y),Lv2(y)を検出する。
ただし、曲率検出処理部7a,7bは、大小関係を比較する3つの垂直積算値Sv(y)の垂直方向の間隔が相互に異なっている。
即ち、曲率検出処理部7aでは間隔がd1であり、曲率検出処理部7bでは間隔がd2である。
Curvature detection processing unit 7a, 7b, upon receiving a plurality of vertically integrated value S v (y) from the vertical data integration processing unit 3, in the same manner as the curvature detection processing unit 7 of FIG. 1, the vertical integrated value S v (y ) Curvature amounts L v1 (y) and L v2 (y) are detected.
However, in the curvature detection processing units 7a and 7b, the vertical intervals of the three vertical integrated values S v (y) for comparing the magnitude relationships are different from each other.
That is, the interval is d 1 in the curvature detection processing unit 7a, and the interval is d 2 in the curvature detection processing unit 7b.

上記のようにして、変位検出処理部4a,4b,6a,6b及び曲率検出処理部5a,5b,7a,7bにより検出された変位量Kh1(x),Kh2(x),Kv1(y),Kv2(y)と曲率量Lh1(x),Lh2(x),Lv1(y),Lv2(y)は、相関値演算処理部12に出力されるほか、特徴量バッファ11に出力されて、変位量Kh1(x),Kh2(x),Kv1(y),Kv2(y)と曲率量Lh1(x),Lh2(x),Lv1(y),Lv2(y)が特徴量バッファ11に記録される。
なお、特徴量バッファ11に記録される変位量Kh1(x),Kh2(x),Kv1(y),Kv2(y)と曲率量Lh1(x),Lh2(x),Lv1(y),Lv2(y)は、相関値演算処理部12における次回の相関演算処理に備えるものである。
Displacement amounts K h1 (x), K h2 (x), K v1 (detected by the displacement detection processing units 4a, 4b, 6a, 6b and the curvature detection processing units 5a, 5b, 7a, 7b as described above. y), K v2 (y) and curvature quantities L h1 (x), L h2 (x), L v1 (y), and L v2 (y) are output to the correlation value calculation processing unit 12 and are also feature quantities. The displacements K h1 (x), K h2 (x), K v1 (y), K v2 (y) and the curvatures L h1 (x), L h2 (x), L v1 ( y) and L v2 (y) are recorded in the feature amount buffer 11.
The displacement amounts K h1 (x), K h2 (x), K v1 (y), K v2 (y) and the curvature amounts L h1 (x), L h2 (x), recorded in the feature amount buffer 11 are recorded. L v1 (y) and L v2 (y) are prepared for the next correlation calculation processing in the correlation value calculation processing unit 12.

相関値演算処理部12は、変位検出処理部4a,4b,6a,6bから今回の処理で検出された変位量Kh1(x),Kh2(x),Kv1(y),Kv2(y)を受け、曲率検出処理部5a,5b,7a,7bから今回の処理で検出された曲率量Lh1(x),Lh2(x),Lv1(y),Lv2(y)を受けると、特徴量バッファ11から変位検出処理部4a,4b,6a,6bにより前回の処理で検出された変位量Kh1(x),Kh2(x),Kv1(y),Kv2(y)を一つ前のフレームの画像に基づく変位量K’h1(x),K’h2(x),K’v1(y),K’v2(y)として読み込み、また、特徴量バッファ11から曲率検出処理部5a,5b,7a,7bにより前回の処理で検出された曲率量Lh1(x),Lh2(x),Lv1(y),Lv2(y)を一つ前のフレームの画像に基づく曲率量L’h1(x),L’h2(x),L’v1(y),L’v2(y)として読み込みを行う。
そして、相関値演算処理部12は、変位量Kh1(x),Kh2(x),Kv1(y),Kv2(y),K’h1(x),K’h2(x),K’v1(y),K’v2(y)と、曲率量Lh1(x),Lh2(x),Lv1(y),Lv2(y),L’h1(x),L’h2(x),L’v1(y),L’v2(y)とを用いて、フレーム間の相関値Rh(xd),Rv(yd)を演算する。
The correlation value calculation processing unit 12 includes displacement amounts K h1 (x), K h2 (x), K v1 (y), K v2 () detected by the current processing from the displacement detection processing units 4a, 4b, 6a, 6b. y), the curvature amounts L h1 (x), L h2 (x), L v1 (y), L v2 (y) detected in the current process from the curvature detection processing units 5a, 5b, 7a, 7b are received. Then, the displacement amounts K h1 (x), K h2 (x), K v1 (y), K v2 (detected by the displacement detection processing units 4a, 4b, 6a, 6b from the feature amount buffer 11 in the previous processing. y) is read as displacement amounts K ′ h1 (x), K ′ h2 (x), K ′ v1 (y), K ′ v2 (y) based on the image of the previous frame, and the feature amount buffer 11 curvature amount detected in the previous process curvature detection processing section 5a, 5b, 7a, by 7b from L h1 (x), L h2 (x), L v1 (y), L v2 ( Curvature amount L) based on the image of the previous frame 'h1 (x), L' h2 (x), L 'v1 (y), L' reads as v2 (y).
Then, the correlation value calculation processing unit 12 outputs the displacements K h1 (x), K h2 (x), K v1 (y), K v2 (y), K ′ h1 (x), K ′ h2 (x), K ′ v1 (y), K ′ v2 (y) and curvature amounts L h1 (x), L h2 (x), L v1 (y), L v2 (y), L ′ h1 (x), L ′ The correlation values R h (x d ) and R v (y d ) between frames are calculated using h 2 (x), L ′ v1 (y), and L ′ v2 (y).

即ち、相関値演算処理部12は、下記の式(9)に示すような相関値演算を実施することにより、比較対象の画素を1画素ずつずらしながら、水平方向の画素ずれ量がxdであるとする場合のフレーム間の相関値Rh(xd)を演算する。

Figure 0004541335
That is, the correlation value calculation processing unit 12 performs the correlation value calculation as shown in the following formula (9), thereby shifting the pixel to be compared one pixel at a time and the horizontal pixel shift amount is x d . A correlation value R h (x d ) between frames when there is a certain frame is calculated.
Figure 0004541335

また、相関値演算処理部12は、下記の式(10)に示すような相関値演算を実施することにより、比較対象の画素を1画素ずつずらしながら、垂直方向の画素ずれ量がydであるとする場合のフレーム間の相関値Rv(yd)を演算する。

Figure 0004541335
Further, the correlation value calculation processing unit 12 performs the correlation value calculation as shown in the following equation (10), thereby shifting the pixel to be compared one pixel at a time and the vertical pixel shift amount is y d . A correlation value R v (y d ) between frames when there is a certain frame is calculated.
Figure 0004541335

画像出力部10は、画像入力部1から画像の射影データを受け、相関値演算処理部12からフレーム間の画素ずれ量を受けると、上記実施の形態1と同様に、その画素ずれ量を打ち消す方向に画像の切り出し位置を変更して、画素ずれのない安定した画像を出力する。   When the image output unit 10 receives the projection data of the image from the image input unit 1 and receives the pixel shift amount between frames from the correlation value calculation processing unit 12, the image output unit 10 cancels the pixel shift amount as in the first embodiment. Change the cutout position of the image in the direction, and output a stable image without pixel shift.

以上で明らかなように、この実施の形態2によれば、大小関係を比較する2つの水平積算値の水平方向の間隔が相互に異なる変位検出処理部4を2組備え、大小関係を比較する3つの水平積算値の水平方向の間隔が相互に異なる曲率検出処理部6を2組備え、大小関係を比較する2つの垂直積算値の垂直方向の間隔が相互に異なる変位検出処理部5を2組備え、大小関係を比較する3つの垂直積算値の垂直方向の間隔が相互に異なる曲率検出処理部7を2組備えるように構成したので、異なる特徴量(変位量、曲率量)の抽出が可能になり、これらの特徴量を組み合わせて使用することで、単独の特徴量では検出精度の低い画像に対しても検出精度を高めることができる効果を奏する。   As is apparent from the above, according to the second embodiment, two sets of displacement detection processing units 4 having different horizontal intervals between two horizontal integrated values for comparing the magnitude relation are provided, and the magnitude relation is compared. Two sets of curvature detection processing units 6 having three horizontal integration values with mutually different horizontal intervals, and two displacement detection processing units 5 with two vertical integration values having different vertical intervals are compared. Since two sets of curvature detection processing units 7 with different vertical intervals of three vertical integrated values for comparing magnitude relations are provided, extraction of different feature values (displacement amount, curvature amount) is possible. It becomes possible, and by using these feature amounts in combination, there is an effect that the detection accuracy can be increased even for an image with low detection accuracy with a single feature amount.

なお、この実施の形態2では、変位検出処理部及び曲率検出処理部を2組ずつ備えるものについて示したが、要求される検出の精度に応じて、変位検出処理部又は曲率検出処理部のいずれか一方は1組のみ、もしくは、3組以上備えるようにしてもよい。   In the second embodiment, two displacement detection processing units and curvature detection processing units are provided. However, depending on the required detection accuracy, either the displacement detection processing unit or the curvature detection processing unit is used. Only one set or three or more sets may be provided.

実施の形態3.
上記実施の形態1では、相関値演算処理部9が当該フレームの変位量Kh(x),Kv(y)及び曲率量Lh(x),Lv(y)と、1フレーム前の変位量K’h(x),K’v(y)及び曲率量L’h(x),L’v(y)とを用いて、フレーム間の相関値Rh(xd),Rv(yd)を演算するものについて示したが、相関値演算処理部9がフレーム間の相関値Rh(xd),Rv(yd)を演算する際、当該フレームの変位量Kh(x),Kv(y)及び曲率量Lh(x),Lv(y)と、1フレーム前の変位量K’h(x),K’v(y)及び曲率量L’h(x),L’v(y)との間に重み付けを行うようにしてもよい。
Embodiment 3 FIG.
In the first embodiment, the correlation value calculation processing unit 9 calculates the displacement amounts K h (x) and K v (y) and the curvature amounts L h (x) and L v (y) of the frame one frame before. Using the displacements K ′ h (x), K ′ v (y) and the curvatures L ′ h (x), L ′ v (y), correlation values R h (x d ), R v between the frames. Although the calculation of (y d ) is shown, when the correlation value calculation processing unit 9 calculates the correlation values R h (x d ) and R v (y d ) between frames, the displacement amount K h of the frame is calculated. (X), K v (y), curvature amounts L h (x), L v (y), displacement amounts K ′ h (x), K ′ v (y) and curvature amounts L ′ h one frame before. Weighting may be performed between (x) and L ′ v (y).

具体的には、次のようにして、フレーム間の相関値Rh(xd),Rv(yd)を演算する。
即ち、相関値演算処理部9は、下記の式(11)に示すように、加重倍率係数α,βを乗算することによって重み付けを実施して水平方向の画素ずれ量がxdであるとする場合のフレーム間の相関値Rh(xd)を演算する。

Figure 0004541335
Specifically, correlation values R h (x d ) and R v (y d ) between frames are calculated as follows.
That is, as shown in the following equation (11), the correlation value calculation processing unit 9 performs weighting by multiplying weighting magnification coefficients α and β, and assumes that the horizontal pixel shift amount is x d. The correlation value R h (x d ) between the frames is calculated.
Figure 0004541335

また、相関値演算処理部9は、下記の式(12)に示すように、加重倍率係数γ,δを乗算することによって重み付けを実施して垂直方向の画素ずれ量がydであるとする場合のフレーム間のRv(yd)を演算する。

Figure 0004541335
Further, the correlation value calculation processing unit 9, as shown in equation (12) below, the weighted scaling factor gamma, pixel shift amount in the vertical direction by performing weighted by multiplying the δ is assumed to be y d R v (y d ) between frames in the case is calculated.
Figure 0004541335

以上で明らかなように、この実施の形態3によれば、相関値演算処理部9がフレーム間の相関値Rh(xd),Rv(yd)を演算する際、当該フレームの変位量Kh(x),Kv(y)及び曲率量Lh(x),Lv(y)と、1フレーム前の変位量K’h(x),K’v(y)及び曲率量L’h(x),L’v(y)との間に重み付けを行うように構成したので、変位検出処理部4,6及び曲率検出処理部5,7における検出精度の違いを加味して、全体の検出精度を高めることができる効果を奏する。
即ち、より検出精度の高い検出処理部の比重を高くして、検出精度の低い検出処理部の比重を低くすることにより、各検出処理部の優先度を設定し、処理精度の向上を図りつつ、より細かく検出精度の調整を行うことが可能になる。
As apparent from the above, according to the third embodiment, when the correlation value calculation processing unit 9 calculates the correlation values R h (x d ) and R v (y d ) between the frames, the displacement of the frame Quantity K h (x), K v (y), curvature quantity L h (x), L v (y), displacement quantity K ′ h (x), K ′ v (y) and curvature quantity one frame before Since weighting is performed between L ′ h (x) and L ′ v (y), the difference in detection accuracy between the displacement detection processing units 4 and 6 and the curvature detection processing units 5 and 7 is taken into account. The overall detection accuracy can be improved.
That is, by increasing the specific gravity of the detection processing unit with higher detection accuracy and lowering the specific gravity of the detection processing unit with low detection accuracy, the priority of each detection processing unit is set and the processing accuracy is improved. Therefore, it is possible to finely adjust the detection accuracy.

なお、この実施の形態3では、上記実施の形態1における式(7)(8)に適用して、重み付けを実施するものについて示したが、上記実施の形態2における式(9)(10)に適用して、重み付けを実施するようにしてもよく、同様の効果を奏することができる。   In the third embodiment, weighting is performed by applying the equations (7) and (8) in the first embodiment, but the equations (9) and (10) in the second embodiment are shown. The weighting may be performed by applying to the above, and the same effect can be obtained.

この発明の実施の形態1による画像処理装置を示す構成図である。1 is a configuration diagram illustrating an image processing apparatus according to Embodiment 1 of the present invention; 定数aが“1”である場合の変位検出処理部4の動作例を示す説明図である。It is explanatory drawing which shows the operation example of the displacement detection process part 4 in case the constant a is "1". dの値を−1、0、1とする場合の相関値演算処理部12の動作例を示す説明図である。It is explanatory drawing which shows the operation example of the correlation value calculation process part 12 in case the value of xd is set to -1, 0, 1. この発明の実施の形態2による画像処理装置を示す構成図である。It is a block diagram which shows the image processing apparatus by Embodiment 2 of this invention.

符号の説明Explanation of symbols

1 画像入力部(画像信号入力手段)、2 水平データ積算処理部(画素値積算手段)、3 垂直データ積算処理部(画素値積算手段)、4,4a,4b 変位検出処理部(第1の変位量検出手段、検出処理手段)、5,5a,5b 曲率検出処理部(第1の曲率量検出手段、検出処理手段)、6,6a,6b 変位検出処理部(第2の変位量検出手段、検出処理手段)、7,7a,7b 曲率検出処理部(第2の曲率量検出手段、検出処理手段)、8,11 特徴量バッファ(画素ずれ量検出手段)、9,12 相関値演算処理部(画素ずれ量検出手段)、10 画像出力部。   DESCRIPTION OF SYMBOLS 1 Image input part (image signal input means), 2 Horizontal data integration process part (Pixel value integration means), 3 Vertical data integration process part (Pixel value integration means), 4, 4a, 4b Displacement detection process part (1st Displacement amount detection means, detection processing means), 5, 5a, 5b Curvature detection processing section (first curvature amount detection means, detection processing means), 6, 6a, 6b Displacement detection processing section (second displacement amount detection means) , Detection processing means), 7, 7a, 7b curvature detection processing section (second curvature amount detection means, detection processing means), 8, 11 feature amount buffer (pixel shift amount detection means), 9, 12 correlation value calculation processing Part (pixel shift amount detection means), 10 image output part.

Claims (5)

画像の画素値を示す画像信号を入力する画像信号入力手段と、上記画像信号入力手段により入力された画像信号のうち、水平方向の座標が一致する画像信号同士の画素値を積算して、その画素値の積算結果である水平積算値を出力するとともに、垂直方向の座標が一致する画像信号同士の画素値を積算して、その画素値の積算結果である垂直積算値を出力する画素値積算手段と、上記画素値積算手段から出力された複数の水平積算値を比較して、水平積算値の変位量及び曲率量を検出するとともに、上記画素値積算手段から出力された複数の垂直積算値を比較して、垂直積算値の変位量及び曲率量を検出する検出処理手段と、上記検出処理手段により検出された変位量及び曲率量から2枚の画像間の相関値を演算し、上記相関値から2枚の画像間の画素ずれ量を検出する画素ずれ量検出手段とを備えた画像処理装置。   The image signal input means for inputting an image signal indicating the pixel value of the image, and the image signals input by the image signal input means are integrated with the pixel values of the image signals having the same horizontal coordinate, Pixel value integration that outputs the horizontal integration value that is the integration result of pixel values, integrates the pixel values of the image signals whose vertical coordinates match, and outputs the vertical integration value that is the integration result of the pixel values And a plurality of horizontal integrated values output from the pixel value integrating means to detect a displacement amount and a curvature amount of the horizontal integrated value, and a plurality of vertical integrated values output from the pixel value integrating means , The detection processing means for detecting the displacement amount and the curvature amount of the vertical integrated value, the correlation value between the two images is calculated from the displacement amount and the curvature amount detected by the detection processing means, and the correlation 2 pictures from the value The image processing apparatus that includes a pixel shift amount detection means for detecting the amount of pixel shift between. 検出処理手段は、画素値積算手段から出力された複数の水平積算値のうち、水平方向の間隔が一定の関係にある2つの水平積算値の大小関係を比較し、大小関係の比較結果から水平積算値の変位量を検出する第1の変位量検出手段と、上記画素値積算手段から出力された複数の水平積算値のうち、水平方向の間隔が一定の関係にある3つの水平積算値の大小関係を比較し、大小関係の比較結果から水平積算値の曲率量を検出する第1の曲率量検出手段と、上記画素値積算手段から出力された複数の垂直積算値のうち、垂直方向の間隔が一定の関係にある2つの垂直積算値の大小関係を比較し、大小関係の比較結果から垂直積算値の変位量を検出する第2の変位量検出手段と、上記画素値積算手段から出力された複数の垂直積算値のうち、垂直方向の間隔が一定の関係にある3つの垂直積算値の大小関係を比較し、大小関係の比較結果から垂直積算値の曲率量を検出する第2の曲率量検出手段とから構成されていることを特徴とする請求項1記載の画像処理装置。   The detection processing unit compares the magnitude relationship between two horizontal integration values having a constant horizontal interval among the plurality of horizontal integration values output from the pixel value integration unit, and calculates the horizontal relationship from the comparison result of the magnitude relationship. Of the plurality of horizontal integrated values output from the first displacement amount detecting means for detecting the displacement amount of the integrated value and the pixel value integrating means, three horizontal integrated values having a constant horizontal interval are used. A first curvature amount detection unit that compares the magnitude relationship and detects the curvature amount of the horizontal integration value from the comparison result of the magnitude relationship, and among the plurality of vertical integration values output from the pixel value integration unit, A second displacement amount detecting means for comparing a magnitude relationship between two vertical accumulated values having a constant interval and detecting a displacement amount of the vertical accumulated value from a comparison result of the magnitude relationship; and an output from the pixel value integrating means Out of multiple vertical integrated values And a second curvature amount detection means for comparing the magnitude relation of three vertical integration values having a fixed direction interval and detecting the curvature amount of the vertical integration value from the comparison result of the magnitude relation. The image processing apparatus according to claim 1. 検出処理手段は、大小関係を比較する2つの水平積算値の水平方向の間隔が相互に異なる第1の変位量検出手段を複数個備え、大小関係を比較する3つの水平積算値の水平方向の間隔が相互に異なる第1の曲率量検出手段を複数個備え、大小関係を比較する2つの垂直積算値の垂直方向の間隔が相互に異なる第2の変位量検出手段を複数個備え、大小関係を比較する3つの垂直積算値の垂直方向の間隔が相互に異なる第2の曲率量検出手段を複数個備えていることを特徴とする請求項2記載の画像処理装置。   The detection processing means includes a plurality of first displacement amount detection means in which the horizontal interval between two horizontal integrated values for comparing magnitude relations is different from each other, and in the horizontal direction of three horizontal integrated values for comparing magnitude relations. A plurality of first curvature amount detecting means having different intervals, and a plurality of second displacement amount detecting means having different vertical intervals between two vertical integrated values for comparing the magnitude relations. 3. The image processing apparatus according to claim 2, further comprising a plurality of second curvature amount detecting means having different vertical intervals between the three vertical integrated values for comparing each other. 画素ずれ量検出手段は、検出処理手段により今回の検出処理で検出された変位量及び曲率量と、上記検出処理手段により前回の検出処理で検出された変位量及び曲率量とを用いて、2枚の画像間の相関値を演算し、上記相関値が最小になる画素ずれ量を2枚の画像間の画素ずれ量として出力することを特徴とする請求項1から請求項3のうちのいずれか1項記載の画像処理装置。   The pixel shift amount detection means uses the displacement amount and curvature amount detected in the current detection process by the detection processing means, and the displacement amount and curvature amount detected in the previous detection process by the detection processing means. The correlation value between the two images is calculated, and the pixel shift amount that minimizes the correlation value is output as the pixel shift amount between the two images. An image processing apparatus according to claim 1. 画素ずれ量検出手段は、2枚の画像間の相関値を演算する際、検出処理手段により今回の検出処理で検出された変位量及び曲率量と、上記検出処理手段により前回の検出処理で検出された変位量及び曲率量との間に重み付けを行うことを特徴とする請求項4記載の画像処理装置。   When calculating the correlation value between two images, the pixel shift amount detection means detects the displacement amount and curvature amount detected in the current detection process by the detection processing means and the previous detection process by the detection processing means. 5. The image processing apparatus according to claim 4, wherein weighting is performed between the displacement amount and the curvature amount.
JP2006255888A 2006-09-21 2006-09-21 Image processing device Expired - Fee Related JP4541335B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006255888A JP4541335B2 (en) 2006-09-21 2006-09-21 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006255888A JP4541335B2 (en) 2006-09-21 2006-09-21 Image processing device

Publications (2)

Publication Number Publication Date
JP2008079007A JP2008079007A (en) 2008-04-03
JP4541335B2 true JP4541335B2 (en) 2010-09-08

Family

ID=39350600

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006255888A Expired - Fee Related JP4541335B2 (en) 2006-09-21 2006-09-21 Image processing device

Country Status (1)

Country Link
JP (1) JP4541335B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340618B (en) * 2010-07-19 2013-09-25 佳能企业股份有限公司 Method for determining offset between images
JP5622501B2 (en) * 2010-09-16 2014-11-12 三菱電機株式会社 Image processing apparatus and image processing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03201877A (en) * 1989-12-28 1991-09-03 Olympus Optical Co Ltd Electronic camera equipment
JPH09163217A (en) * 1995-09-19 1997-06-20 Samsung Electron Co Ltd Apparatus and method for detecting movement vector in cameraimage
WO2004062270A1 (en) * 2002-12-26 2004-07-22 Mitsubishi Denki Kabushiki Kaisha Image processor
JP2006154654A (en) * 2004-12-01 2006-06-15 Olympus Corp Camera having ranging device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03201877A (en) * 1989-12-28 1991-09-03 Olympus Optical Co Ltd Electronic camera equipment
JPH09163217A (en) * 1995-09-19 1997-06-20 Samsung Electron Co Ltd Apparatus and method for detecting movement vector in cameraimage
WO2004062270A1 (en) * 2002-12-26 2004-07-22 Mitsubishi Denki Kabushiki Kaisha Image processor
JP2006154654A (en) * 2004-12-01 2006-06-15 Olympus Corp Camera having ranging device

Also Published As

Publication number Publication date
JP2008079007A (en) 2008-04-03

Similar Documents

Publication Publication Date Title
EP2169945B1 (en) Image processing apparatus and method for detection and correction of camera shake
US7855731B2 (en) Image vibration-compensating apparatus and method thereof
CN101485193B (en) Image generating device and image generating method
US8818046B2 (en) Image processing device, image processing method, and program
US9137424B2 (en) Method for flicker detection in image signal
CN101753825A (en) Image sensing apparatus
JPH11177880A (en) Video stabilization device using bit plane matching and method therefor
US20110243385A1 (en) Moving object detection apparatus, moving object detection method, and program
JP5163429B2 (en) Motion vector detection apparatus, processing method thereof, and program
US8526500B2 (en) System and method for global inter-frame motion detection in video sequences
KR100255648B1 (en) Video motion detection apparatus and method by gradient pattern matching
US8160151B2 (en) Motion vector detection apparatus, motion vector processing method and program
US20080031338A1 (en) Interpolation frame generating method and interpolation frame generating apparatus
JP4804238B2 (en) Motion vector detection device
JP4541335B2 (en) Image processing device
JP2005260481A (en) Device and method for detecting motion vector and camera
JP5737072B2 (en) Motion compensation frame generation apparatus and method
JP4052348B2 (en) Image processing apparatus and image processing method
US20050002456A1 (en) Motion vector detector for frame rate conversion and method thereof
US20090041362A1 (en) Image Processing Apparatus and Method, and Program
JP2009065619A (en) Camera-shake correcting device and imaging apparatus
JP2009065283A (en) Image shake correction apparatus
JP2007018269A (en) Movement probability calculation method in video, movement probability map calculation method in video, change detection method, and program
JP5834671B2 (en) Image processing apparatus, image processing method, and program
JP2005286643A (en) Automatic moving object tracking method and its system

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080703

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090507

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4541335

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130702

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees