Nothing Special   »   [go: up one dir, main page]

JP3265171B2 - Stereo image correction condition detection device - Google Patents

Stereo image correction condition detection device

Info

Publication number
JP3265171B2
JP3265171B2 JP31239695A JP31239695A JP3265171B2 JP 3265171 B2 JP3265171 B2 JP 3265171B2 JP 31239695 A JP31239695 A JP 31239695A JP 31239695 A JP31239695 A JP 31239695A JP 3265171 B2 JP3265171 B2 JP 3265171B2
Authority
JP
Japan
Prior art keywords
images
search
condition
image
candidate
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
JP31239695A
Other languages
Japanese (ja)
Other versions
JPH09153148A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP31239695A priority Critical patent/JP3265171B2/en
Publication of JPH09153148A publication Critical patent/JPH09153148A/en
Application granted granted Critical
Publication of JP3265171B2 publication Critical patent/JP3265171B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ステレオ画像に
おいてエピポーララインを合わせるために必要なステレ
オ画像の修正条件を検出する装置、特に、位相差判明点
の検出率を利用して修正条件を検出する装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for detecting a correction condition of a stereo image required for aligning an epipolar line in a stereo image, and more particularly to a correction device for detecting a correction condition using a detection rate of a phase difference known point. Related to the device.

【0002】[0002]

【従来の技術】従来より、3次元画像の距離情報を得る
ための汎用的な手法として、2眼ステレオ画像法が用い
られている。2眼ステレオ画像法では、左右カメラで得
た左右画像を走査して、これら画像において相対応する
画素すなわち対応点を検出する。対応点の位相差から距
離情報を得ることができる。誤対応を減らし対応点の検
出精度を向上するためには、左右画像のエピポーラライ
ンを合わせることが重要である。
2. Description of the Related Art Conventionally, a twin-lens stereo image method has been used as a general-purpose method for obtaining distance information of a three-dimensional image. In the twin-lens stereo image method, the left and right images obtained by the left and right cameras are scanned, and corresponding pixels in the images, that is, corresponding points are detected. Distance information can be obtained from the phase difference between corresponding points. In order to reduce erroneous correspondences and improve the detection accuracy of corresponding points, it is important to match epipolar lines of the left and right images.

【0003】エピポーララインを合わせる手法として
は、例えば、テストパターンを左右カメラで撮影し画像
認識技術を用いて行なうもの(文献:情報処理 vol.31
No.5 May 1990 pp.650〜659 )がある。
As a method of aligning epipolar lines, for example, a method of photographing a test pattern with left and right cameras and using an image recognition technique (document: Information Processing vol.31)
No.5 May 1990 pp. 650-659).

【0004】[0004]

【発明が解決しようとする課題】画像認識技術を用いて
行なう従来手法では、予め定められた形状のテストパタ
ーンを認識することにより、左右画像のエピポーラライ
ンを合わせる。従って対応点の検出を行なっている最中
に、何らかの要因によって左右画像のエピポーラライン
がずれた場合、これら左右画像中にテストパターンと同
じパターンが存在する場合にしか、そのずれを修正でき
ない。すなわちテストパターンと同じパターンが存在し
ない場合には、修正できないという不都合があった。
In a conventional method using an image recognition technique, epipolar lines of right and left images are matched by recognizing a test pattern having a predetermined shape. Therefore, if the epipolar lines of the left and right images are shifted for some reason while the corresponding points are being detected, the shift can be corrected only when the same pattern as the test pattern exists in the left and right images. That is, when there is no pattern identical to the test pattern, the pattern cannot be corrected.

【0005】従ってテストパターンと同じパターンが存
在しなくても、左右画像のエピポーララインを合わせる
ために必要な修正条件を検出できる装置の実現が望まれ
ていた。
Therefore, it has been desired to realize an apparatus which can detect a correction condition necessary for matching epipolar lines of left and right images even if the same pattern as a test pattern does not exist.

【0006】さらに好ましくは、テストパターンと同じ
パターンが存在しなくても、左右画像のエピポーラライ
ンを合わせるために必要な修正条件が検出できることに
加え、この修正条件を迅速に検出できる装置の実現が望
まれていた。
More preferably, even if the same pattern as the test pattern does not exist, it is possible to detect a correction condition necessary for matching the epipolar lines of the left and right images and realize an apparatus capable of quickly detecting the correction condition. Was desired.

【0007】ここで検出する修正条件は、例えば、左右
画像のエピポーララインを合わせるべく左右画像の一方
を画像変換する場合に用いる当該画像変換条件として使
用されたり、左右画像のエピポーララインを合わせるべ
く左右画像を撮影している左右カメラのレンズ光軸を機
械的に調整する場合に用いる当該光軸調整条件として使
用されたりする。
The correction condition detected here is used as, for example, an image conversion condition used when one of the left and right images is converted to match the epipolar line of the left and right images, or the right and left correction is performed to match the epipolar lines of the left and right images. It is used as the optical axis adjustment condition used when mechanically adjusting the optical axes of the lenses of the left and right cameras capturing the image.

【0008】[0008]

【課題を解決するための手段】前述した従来の課題を解
決するため、請求項1記載の発明は、左右画像のエピポ
ーララインを合わせるための修正条件を検出する修正条
件検出装置において、条件設定部、画像変換部、対応点
探索部、評価値算出部及び最大値検出部を備えて成るこ
とを特徴とする。
According to a first aspect of the present invention, there is provided a correction condition detecting apparatus for detecting a correction condition for matching epipolar lines of left and right images. , An image conversion unit, a corresponding point search unit, an evaluation value calculation unit, and a maximum value detection unit.

【0009】条件設定部は修正条件を検出するための複
数種類の候補条件を順次に設定し、画像変換部は左右画
像の一方を候補条件に従って画像変換する。画像変換部
が行なう画像変換としては、画像の平行移動、回転及び
倍率変換を挙げることができ、画像変換部が行なう画像
変換に候補条件を用いる。画像の倍率変換は、画像の拡
大もしくは縮小を行なうことを表す。
A condition setting unit sequentially sets a plurality of types of candidate conditions for detecting a correction condition, and an image conversion unit converts one of the left and right images according to the candidate condition. Examples of image conversion performed by the image conversion unit include translation, rotation, and magnification conversion of an image, and candidate conditions are used for image conversion performed by the image conversion unit. The image magnification conversion indicates that the image is enlarged or reduced.

【0010】画像の平行移動に関わる候補条件には、x
軸方向(水平方向)への平行移動量を段階的に定めた任
意好適個数の複数の条件Δx1 、Δx2 、……や、y軸
方向(高さ方向)への平行移動量を段階的に定めた任意
好適個数の複数の条件Δy1、Δy2 、……を用いるこ
とができる。x軸方向への平行移動量Δx1 、Δx2
……のうち後述する評価値が最大となるものが、エピポ
ーララインを合わせるのに適したx軸方向への平行移動
量となり、y軸方向への平行移動量Δy1 、Δy2 、…
…のうち後述する評価値が最大となるものが、エピポー
ララインを合わせるのに適したy軸方向への平行移動量
となる。
[0010] The candidate conditions relating to the parallel translation of the image include x
An arbitrary suitable number of conditions Δx 1 , Δx 2 ,..., In which the amount of translation in the axial direction (horizontal direction) is determined stepwise, and the amount of translation in the y-axis direction (height direction) is stepwise. , A plurality of conditions Δy 1 , Δy 2 ,... The amount of parallel movement Δx 1 , Δx 2 ,
The one having the largest evaluation value, described later, is the translation amount in the x-axis direction suitable for adjusting the epipolar line, and the translation amounts Δy 1 , Δy 2 , in the y-axis direction.
.., The evaluation value of which will be described later is the translation amount in the y-axis direction suitable for adjusting the epipolar line.

【0011】画像の回転に関わる候補条件には、x軸回
りの回転角度を段階的に定めた任意好適個数の複数の条
件Δα1 °、Δα2 °……や、y軸回りの回転角度を段
階的に定めた任意好適個数の複数の条件Δβ1 °、Δβ
2 °、……や、z軸回りの回転角度を段階的に定めた任
意好適個数の複数の条件Δγ1 °、Δγ2 °、……を用
いることができる。x軸回りの回転角度Δα1 °、Δα
2 °……のうち後述する評価値が最大となるものが、エ
ピポーララインを合わせるのに適したx軸回りの回転角
度となり、y軸回りの回転角度Δβ1 °、Δβ2 °……
のうち後述する評価値が最大となるものが、エピポーラ
ラインを合わせるのに適したy軸回りの回転角度とな
り、z軸回りの回転角度Δγ1 °、Δγ2 °……のうち
後述する評価値が最大となるものが、エピポーラライン
を合わせるのに適したz軸回りの回転角度となる。
The candidate conditions relating to the rotation of the image include an arbitrary suitable number of conditions Δα 1 °, Δα 2 °... In which the rotation angle around the x-axis is determined stepwise, and the rotation angle around the y-axis. Any number of conditions Δβ 1 °, Δβ determined in stages
2 °,..., Or any suitable number of conditions Δγ 1 °, Δγ 2 °,. Rotation angle around the x-axis Δα 1 °, Δα
Of the 2 °, the one having the largest evaluation value described later is the rotation angle about the x-axis suitable for adjusting the epipolar line, and the rotation angles Δβ 1 °, Δβ 2 ° about the y-axis.
Among them, the one having the largest evaluation value described later is the rotation angle around the y-axis suitable for adjusting the epipolar line, and the rotation value Δγ 1 °, Δγ 2 ° about the z-axis is the evaluation value described later. Is the rotation angle about the z-axis suitable for matching the epipolar line.

【0012】画像の倍率変換に関わる候補条件には、拡
大率を段階的に定めた任意好適個数の複数の条件K1
2 、……と、縮小率を段階的に定めた任意好適個数の
複数の条件k1 、k2 、……とを用いることができる。
拡大率K1 、K2 、……及び縮小率k1 、k2 、……の
うち後述する評価値が最大となるものが、エピポーララ
インを合わせるのに適した変換倍率となる。
The candidate conditions relating to the magnification conversion of the image include an arbitrary suitable number of conditions K 1 , in which the magnification is determined stepwise,
K 2 ,... And any suitable number of conditions k 1 , k 2 ,.
Among the enlargement ratios K 1 , K 2 ,... And the reduction ratios k 1 , k 2 ,..., The one having the largest evaluation value, which will be described later, is the conversion magnification suitable for matching the epipolar line.

【0013】左右画像のエピポーララインを精度良く合
わせるためには、これらx軸方向への平行移動量、y軸
方向への平行移動量、x軸回りの回転角度、y軸回りの
回転角度、z軸回りの回転角度及び変換倍率の全ての種
類の候補条件について、候補条件の種類毎に評価値が最
大となる候補条件を検出するのが好ましいが、実用上問
題ない範囲であれば、x軸方向への平行移動量、y軸方
向への平行移動量、x軸回りの回転角度、y軸回りの回
転角度、z軸回りの回転角度及び変換倍率の一部の種類
の候補条件についてのみ、候補条件の種類毎に評価値が
最大となる候補条件を検出するようにしても良い。尚、
画像のz軸方向(奥行き方向)への平行移動は、画像の
倍率変換と等価である。
In order to accurately match the epipolar lines of the left and right images, the amount of parallel movement in the x-axis direction, the amount of parallel movement in the y-axis direction, the rotation angle around the x-axis, the rotation angle around the y-axis, z For all types of candidate conditions of the rotation angle around the axis and the conversion magnification, it is preferable to detect the candidate condition having the maximum evaluation value for each type of the candidate condition. Only for some types of candidate conditions of the amount of translation in the direction, the amount of translation in the y-axis direction, the rotation angle around the x-axis, the rotation angle around the y-axis, the rotation angle around the z-axis, and the conversion magnification, The candidate condition that maximizes the evaluation value for each type of candidate condition may be detected. still,
Parallel movement of the image in the z-axis direction (depth direction) is equivalent to image magnification conversion.

【0014】評価値が最大となる候補条件を検出しよう
とする画像変換についてのみ、条件設定部は候補条件を
設定しかつ画像変換部は画像変換を行なえば良い。
The condition setting section may set the candidate condition and the image conversion section may perform the image conversion only for the image conversion in which the candidate condition having the maximum evaluation value is to be detected.

【0015】対応点探索部は、走査方向、走査対象とな
る画素の階調表現、若しくは、走査対象となる画素の色
を異ならせて複数種の探索条件を設定し、画像変換後の
左右画像を左右探索画像とする。
The corresponding point search unit sets a plurality of types of search conditions by changing the scanning direction, the gradation expression of the pixel to be scanned, or the color of the pixel to be scanned, and sets the left and right images after image conversion. Is a left and right search image.

【0016】そして対応点探索部は、探索条件に従って
左右探索画像を走査し、相対応する水平走査線上におい
て左探索画像の画素特徴と右探索画像の画素特徴とを比
較して、画素特徴の差が閾値以下となる左右探索画像の
画素を対応候補点として検出し、各探索条件毎に検出し
た対応候補点の集合において共通集合となる対応候補点
を対応点として検出する。然る後、対応点探索部は、対
応点検出結果を用いて左右探索画像における位相差の判
明点及び不明点を検出する。
The corresponding point search unit scans the left and right search images according to the search conditions, compares the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines, and determines the difference between the pixel characteristics. Are detected as corresponding candidate points, and corresponding candidate points that become a common set in a set of corresponding candidate points detected for each search condition are detected as corresponding points. After that, the corresponding point searching unit detects a known point and an unknown point of the phase difference in the left and right search images using the corresponding point detection result.

【0017】走査方向を異ならせて複数種の探索条件を
設定する場合は、次の如くして対応候補点を検出する。
When a plurality of types of search conditions are set with different scanning directions, corresponding candidate points are detected as follows.

【0018】すなわち左右探索画像において相対応する
水平走査線上に存在する画素であって、左右探索画像の
一方の画像の画素を着目点、及び、左右探索画像の他方
の画像の画素を対照点とする。着目点走査方向を右方向
(水平走査線上において左から右へ向かう方向)としか
つ対照点走査方向を右方向とする条件aと、着目点走査
方向を右方向としかつ対照点走査方向を左方向(水平走
査線上において右から左へ向かう方向)とする条件b、
着目点走査方向を左方向としかつ対照点走査方向を右方
向とする条件c、着目点走査方向を左方向としかつ対照
点走査方向を左方向とする条件dの4種の条件のなかか
ら選択した少なくとも2種の条件を、探索条件として設
定して、対応候補点を検出する。
That is, pixels which are present on the corresponding horizontal scanning lines in the left and right search images and which are pixels of one of the left and right search images are considered as points of interest, and pixels of the other image of the left and right search images are defined as control points. I do. A condition a that the scanning direction of the point of interest is the right direction (direction from left to right on the horizontal scanning line) and the scanning direction of the control point is the right direction, the scanning direction of the focus point is the right direction, and the scanning direction of the control point is the left direction (The direction from right to left on the horizontal scanning line)
Select from among four conditions: condition c that sets the target point scanning direction to the left direction and sets the control point scanning direction to the right direction, and condition d that sets the target point scanning direction to the left direction and sets the control point scanning direction to the left direction. At least two types of conditions are set as search conditions, and corresponding candidate points are detected.

【0019】条件a〜dいずれの場合も、水平走査線上
において着目点走査方向へ順次に数えて第i番目の着目
点に対し、水平走査上の対照点を対照点走査方向へ順次
に走査してゆく。第i番目の着目点に対し画素特徴の差
が閾値以下となる対照点を検出することなく対照点の走
査を終了したら、次に第i+1番目の着目点に対し対照
点の走査を行なう。また第i番目の着目点に対し画素特
徴の差が閾値以下となる対照点を検出したら、当該第i
番目の着目点と対照点とを対応候補点として検出し、然
る後、第i+1番目の着目点に対し対照点の走査を行な
う。
In any of the conditions a to d, a control point on the horizontal scan is sequentially scanned in the control point scanning direction with respect to the i-th attention point counted sequentially in the direction of interest scanning on the horizontal scanning line. Go on. When scanning of the control point is completed without detecting a control point having a pixel feature difference equal to or smaller than the threshold value for the i-th point of interest, scanning of the control point is performed on the (i + 1) -th point of interest. Further, when a control point at which the difference of the pixel feature with respect to the i-th point of interest is equal to or smaller than the threshold value is detected,
The second point of interest and the control point are detected as corresponding candidate points, and then the control point is scanned for the (i + 1) th point of interest.

【0020】このように着目点走査方向若しくは対象点
走査方向を異ならせて左右探索画像を走査するという複
数種の探索条件を設定し、各探索条件毎に得た対応候補
点の集合において共通集合となる対応候補点を候補点と
して検出することにより、誤対応を減少させることがで
きる。
As described above, a plurality of types of search conditions for scanning the left and right search images with different target point scanning directions or target point scanning directions are set, and a common set of corresponding candidate points obtained for each search condition is set. Erroneous correspondence can be reduced by detecting the correspondence candidate point which becomes as a candidate point.

【0021】走査対象となる画素の階調表現を異ならせ
て複数種の探索条件を設定する場合は、次の如くして対
応候補点を検出する。
When a plurality of types of search conditions are set by changing the gradation expression of pixels to be scanned, corresponding candidate points are detected as follows.

【0022】すなわち対応点探索部は、左右探索画像の
階調を変換して階調表現の異なる複数種の左右探索画像
を用意する。そして階調表現を異ならせた各左右探索画
像について対応候補点を検出し、各階調表現毎に得た対
応候補点の集合において共通集合となる対応候補点を対
応点として検出する。例えば、左右カメラにより256
階調の白黒画像を左右画像として得てこの左右画像を左
右探索画像として得た場合、まず階調変換しない256
階調の左右探索画像を走査して対応候補点を検出し、さ
らに256階調の左右探索画像を階調変換して32階調
の左右探索画像を得、この32階調の左右探索画像を走
査して対応候補点を検出する。そしてこれら256階調
及び32階調の左右探索画像から検出した対応候補点の
共通集合を対応点として検出する。或は、左右カメラに
より256階調の白黒画像を左右画像として得てこの左
右画像を左右探索画像として得た場合、この256階調
の左右探索画像を階調変換して、階調表現を異ならせた
複数種の16階調の左右探索画像を生成する。この場
合、階調の段階数は同じ16階調であり最初及び最後の
階調幅ここでは第1番目及び第16番目の階調幅を異な
らせた16階調の左右探索画像を生成することとなる。
そして階調表現を異ならせた16階調の左右探索画像を
それぞれ走査して対応候補点を検出し、各16階調の左
右探索画像毎に検出した対応候補点の共通集合を対応点
として検出する。
That is, the corresponding point search section converts the gradation of the left and right search images to prepare a plurality of types of left and right search images having different gradation expressions. Then, corresponding candidate points are detected for each of the left and right search images having different gradation expressions, and corresponding candidate points that are a common set in a set of corresponding candidate points obtained for each gradation expression are detected as corresponding points. For example, 256 cameras with left and right cameras
When a grayscale black and white image is obtained as a left and right image and the left and right images are obtained as left and right search images, first, no grayscale conversion is performed.
The left and right search images of the gray scale are scanned to detect the corresponding candidate points, and the left and right search images of the 256 gray scales are converted to obtain a left and right search image of 32 gray scales. Scanning is performed to detect corresponding candidate points. Then, a common set of corresponding candidate points detected from the left and right search images of 256 and 32 tones is detected as corresponding points. Alternatively, when a black-and-white image of 256 tones is obtained as a left and right image by the left and right cameras and the left and right images are obtained as left and right search images, the left and right search image of 256 tones is subjected to gradation conversion so that the gradation expression is different. A plurality of types of left and right search images of 16 tones are generated. In this case, the number of gradation steps is the same 16 gradations, and a left and right search image of 16 gradations in which the first and last gradation widths, here the first and 16th gradation widths, are different is generated. .
Then, the left and right search images of 16 gradations with different gradation expressions are respectively scanned to detect corresponding candidate points, and a common set of corresponding candidate points detected for each of the 16 left and right search images is detected as corresponding points. I do.

【0023】このように階調の段階数を異ならせた複数
種の画像をそれぞれ左右探索画像として対応候補点を検
出するという複数種の探索条件を設定し、若しくは、階
調の段階数を同一として最初及び最後の階調幅を異なら
せた複数種の画像をそれぞれ左右探索画像として対応候
補点を検出するという複数種の探索条件を設定し、各探
索条件毎に得た対応候補点の集合において共通集合とな
る対応候補点を候補点として検出することにより、誤対
応を減少させることができる。
As described above, a plurality of types of search conditions are set such that a plurality of types of images having different levels of gradation are used as left and right search images to detect corresponding candidate points, or the number of levels of gradation is the same. As a plurality of types of search conditions for detecting corresponding candidate points as left and right search images using a plurality of types of images having different first and last gradation widths, a set of corresponding candidate points obtained for each search condition is set. By detecting corresponding candidate points that become a common set as candidate points, erroneous correspondence can be reduced.

【0024】走査対象となる画素の色を異ならせて複数
種の探索条件を設定する場合は、次の如くして対応候補
点を検出する。
When a plurality of types of search conditions are set by changing the colors of pixels to be scanned, corresponding candidate points are detected as follows.

【0025】すなわち左右カメラにより左右画像として
カラー画像を得た場合には、対応点探索部は、カラー画
像である左右画像の赤色画像、緑色画像及び青色画像か
ら選択した2種又は3種の色画像を左右探索画像とす
る。そして左右探索画像について各色画像毎に対応候補
点を検出し、各色画像毎に得た対応候補点の集合におい
て共通集合となる対応候補点を対応点として検出する。
例えばカラー画像である左右画像の赤色画像、緑色画像
及び青色画像をそれぞれ左右探索画像とし、各色毎に左
右探索画像を走査して対応候補点を検出する。そして赤
色画像について得た対応候補点の集合と緑色画像につい
て得た対応候補点の集合と青色画像について得た対応候
補点の集合とにおいて、共通集合となる対応候補点を対
応点として検出する。
That is, when a color image is obtained as a left and right image by the left and right cameras, the corresponding point searching unit determines two or three colors selected from the red, green and blue images of the left and right images which are color images. Let the image be a left and right search image. Then, corresponding candidate points are detected for each color image in the left and right search images, and corresponding candidate points that become a common set in a set of corresponding candidate points obtained for each color image are detected as corresponding points.
For example, a red image, a green image, and a blue image of the left and right images, which are color images, are set as left and right search images, and the left and right search images are scanned for each color to detect corresponding candidate points. Then, in the set of corresponding candidate points obtained for the red image, the set of corresponding candidate points obtained for the green image, and the set of corresponding candidate points obtained for the blue image, corresponding candidate points that are a common set are detected as corresponding points.

【0026】このように左右カメラにより左右画像とし
てカラー画像を得た場合に、左右画像の赤色画像、緑色
画像及び青色画像から選択した複数種の色画像をそれぞ
れ左右探索画像とするという複数種の探索条件を設定
し、各探索条件毎に得た対応候補点の集合において共通
集合となる対応候補点を対応点を検出することにより、
誤対応を減少させることができる。
When the left and right cameras obtain color images as left and right images as described above, a plurality of types of color images selected from the red, green and blue images of the left and right images are respectively used as left and right search images. By setting search conditions and detecting corresponding candidate points that become a common set in a set of corresponding candidate points obtained for each search condition,
False responses can be reduced.

【0027】対応点探索部は、左右探索画像を走査して
得た対応点検出結果を用いて、左右探索画像における位
相差の判明点及び不明点を検出する。
The corresponding point search section detects a known point and an unknown point of the phase difference in the left and right search images using the corresponding point detection results obtained by scanning the left and right search images.

【0028】評価値算出部は左右探索画像における位相
差判明点の検出率を用いて候補条件の種類毎に候補条件
の評価値を求め、最大値検出部は候補条件の種類毎に最
大の評価値を得た候補条件を修正条件として検出する。
The evaluation value calculation section obtains the evaluation value of the candidate condition for each type of candidate condition using the detection rate of the phase difference found point in the left and right search images, and the maximum value detection section obtains the maximum evaluation value for each type of candidate condition. The candidate condition for which the value has been obtained is detected as a correction condition.

【0029】既に述べたように、x軸方向への平行移動
量、y軸方向への平行移動量、x軸回りの回転角度、y
軸回りの回転角度、z軸回りの回転角度及び変換倍率の
全ての種類の候補条件について、候補条件の種類毎に候
補条件の評価値を求めそして候補条件の種類毎に評価値
が最大となる候補条件を検出しても良いし、実用上問題
ない範囲であれば、x軸方向への平行移動量、y軸方向
への平行移動量、x軸回りの回転角度、y軸回りの回転
角度、z軸回りの回転角度及び変換倍率の一部の種類の
候補条件についてのみ、候補条件の種類毎に候補条件の
評価値を求めそして評価値が最大となる候補条件を検出
するようにしても良い。
As described above, the amount of parallel movement in the x-axis direction, the amount of parallel movement in the y-axis direction, the rotation angle around the x-axis, y
For all types of candidate conditions of the rotation angle around the axis, the rotation angle around the z-axis, and the conversion magnification, the evaluation value of the candidate condition is obtained for each type of the candidate condition, and the evaluation value becomes maximum for each type of the candidate condition. Candidate conditions may be detected, and if they are within a range in which there is no practical problem, the amount of translation in the x-axis direction, the amount of translation in the y-axis direction, the rotation angle around the x-axis, and the rotation angle around the y-axis , An evaluation value of the candidate condition is obtained for each type of the candidate condition only for some types of the rotation angle around the z-axis and the conversion magnification, and the candidate condition having the maximum evaluation value is detected. good.

【0030】さらに請求項5の発明は、左右画像のエピ
ポーララインを合わせるための修正条件を検出する修正
条件検出装置において、条件設定部、画像変換部、階調
変換部、レベル切出し部、対応点探索部、評価値算出部
及び最大値検出部を備えて成ることを特徴とする。
According to a fifth aspect of the present invention, there is provided a correction condition detecting apparatus for detecting a correction condition for matching epipolar lines of left and right images, wherein a condition setting unit, an image conversion unit, a gradation conversion unit, a level cutout unit, a corresponding point A search unit, an evaluation value calculation unit, and a maximum value detection unit are provided.

【0031】条件設定部は修正条件を検出するための複
数種類の候補条件を順次に設定し、画像変換部はm階調
の左右画像の一方を候補条件に従って画像変換する。画
像変換部が行なう画像変換としては、画像の平行移動、
回転及び倍率変換を挙げることができ、画像変換部が行
なう画像変換に候補条件を用いる。画像の倍率変換は画
像の拡大もしくは縮小を行なうことを表す。画像変換部
は左右カメラにより得たm階調の左右画像を画像変換す
る。
The condition setting unit sequentially sets a plurality of types of candidate conditions for detecting the correction condition, and the image conversion unit converts one of the left and right images of m gradations according to the candidate condition. The image conversion performed by the image conversion unit includes translation of an image,
Rotation and magnification conversion can be mentioned, and candidate conditions are used for image conversion performed by the image conversion unit. The magnification conversion of an image indicates that the image is enlarged or reduced. The image conversion unit converts the left and right images of m gradations obtained by the left and right cameras.

【0032】画像の平行移動に関わる候補条件には、x
軸方向への平行移動量を段階的に定めた任意好適個数の
複数の条件Δx1 、Δx2 、……や、y軸方向への平行
移動量を段階的に定めた任意好適個数の複数の条件Δy
1 、Δy2 、……を用いることができる。x軸方向への
平行移動量Δx1 、Δx2 、……のうち後述する評価値
が最大となるものが、エピポーララインを合わせるのに
適したx軸方向への平行移動量となり、y軸方向への平
行移動量Δy1 、Δy2 、……のうち後述する評価値が
最大となるものが、エピポーララインを合わせるのに適
したy軸方向への平行移動量となる。
The candidate conditions relating to the parallel movement of the image include x
An arbitrary preferred number of conditions Δx 1 , Δx 2 ,..., In which the amount of translation in the axial direction is determined stepwise, and an arbitrary preferred number of conditions, in which the amount of translation in the y-axis direction is determined stepwise Condition Δy
1 , Δy 2 ,... Can be used. Among the parallel movement amounts Δx 1 , Δx 2 ,... in the x-axis direction, the one having the largest evaluation value described later is the parallel movement amount in the x-axis direction suitable for adjusting the epipolar line, and is in the y-axis direction. Among the parallel movement amounts Δy 1 , Δy 2 ,... Having the largest evaluation value, which will be described later, are the parallel movement amounts in the y-axis direction suitable for matching the epipolar lines.

【0033】画像の回転に関わる候補条件には、x軸回
りの回転角度を段階的に定めた任意好適個数の複数の条
件Δα1 °、Δα2 °……や、y軸回りの回転角度を段
階的に定めた任意好適個数の複数の条件Δβ1 °、Δβ
2 °、……や、z軸回りの回転角度を段階的に定めた任
意好適個数の複数の条件Δγ1 °、Δγ2 °、……を用
いることができる。x軸回りの回転角度Δα1 °、Δα
2 °……のうち後述する評価値が最大となるものが、エ
ピポーララインを合わせるのに適したx軸回りの回転角
度となり、y軸回りの回転角度Δβ1 °、Δβ2 °……
のうち後述する評価値が最大となるものが、エピポーラ
ラインを合わせるのに適したy軸回りの回転角度とな
り、z軸回りの回転角度Δγ1 °、Δγ2 °……のうち
後述する評価値が最大となるものが、エピポーラライン
を合わせるのに適したz軸回りの回転角度となる。
The candidate conditions relating to the rotation of the image include an arbitrary suitable number of conditions Δα 1 °, Δα 2 °... In which the rotation angle around the x-axis is determined stepwise, and the rotation angle around the y-axis. Any number of conditions Δβ 1 °, Δβ determined in stages
2 °,..., Or any suitable number of conditions Δγ 1 °, Δγ 2 °,. Rotation angle around the x-axis Δα 1 °, Δα
Of the 2 °, the one having the largest evaluation value described later is the rotation angle about the x-axis suitable for adjusting the epipolar line, and the rotation angles Δβ 1 °, Δβ 2 ° about the y-axis.
Among them, the one having the largest evaluation value described later is the rotation angle around the y-axis suitable for adjusting the epipolar line, and the rotation value Δγ 1 °, Δγ 2 ° about the z-axis is the evaluation value described later. Is the rotation angle about the z-axis suitable for matching the epipolar line.

【0034】画像の倍率変換に関わる候補条件には、拡
大率を段階的に定めた任意好適個数の複数の条件K1
2 、……と縮小率を段階的に定めた任意好適個数の複
数の条件k1 、k2 、……とを用いることができる。拡
大率K1 、K2 、……及び縮小率k1 、k2 、……のう
ち後述する評価値が最大となるものが、エピポーラライ
ンを合わせるのに適した変換倍率となる。
The candidate conditions relating to the image magnification conversion include an arbitrary suitable number of conditions K 1 , in which the magnification is determined stepwise,
K 2 ,... And any suitable number of conditions k 1 , k 2 ,. Among the enlargement ratios K 1 , K 2 ,... And the reduction ratios k 1 , k 2 ,..., The one having the largest evaluation value, which will be described later, is the conversion magnification suitable for matching the epipolar line.

【0035】左右画像のエピポーララインを精度良く合
わせるためには、これらx軸方向への平行移動量、y軸
方向への平行移動量、x軸回りの回転角度、y軸回りの
回転角度、z軸回りの回転角度及び変換倍率の全ての種
類の候補条件について、候補条件の種類毎に評価値が最
大となる候補条件を検出するのが好ましいが、実用上問
題ない範囲であれば、y軸方向への平行移動量、z軸方
向への平行移動量、x軸回りの回転角度、y軸回りの回
転角度、z軸回りの回転角度及び変換倍率の一部の種類
の候補条件についてのみ、候補条件の種類毎に評価値が
最大となる候補条件を検出するようにしても良い。尚、
画像のz軸方向(奥行き方向)への平行移動は、画像の
倍率変換と等価である。
In order to accurately match the epipolar lines of the left and right images, the amount of parallel movement in the x-axis direction, the amount of parallel movement in the y-axis direction, the rotation angle around the x-axis, the rotation angle around the y-axis, z For all types of candidate conditions of the rotation angle around the axis and the conversion magnification, it is preferable to detect the candidate condition having the maximum evaluation value for each type of the candidate condition. Only for some types of candidate conditions, such as the amount of translation in the direction, the amount of translation in the z-axis, the rotation angle around the x-axis, the rotation angle around the y-axis, the rotation angle around the z-axis, and the conversion magnification, The candidate condition that maximizes the evaluation value for each type of candidate condition may be detected. still,
Parallel movement of the image in the z-axis direction (depth direction) is equivalent to image magnification conversion.

【0036】評価値が最大となる候補条件を検出しよう
とする画像変換についてのみ、条件設定部は候補条件を
設定しかつ画像変換部は画像変換を行なえば良い。
The condition setting section may set the candidate conditions and the image conversion section may perform the image conversion only for the image conversion in which the candidate condition with the maximum evaluation value is to be detected.

【0037】階調変換部は画像変換後の左右画像をn階
調(m>n)の左右画像に変換し、レベル切出し部は階
調変換後の左右画像から、着目した一種類又は複数種類
の階調レベルの左右画像を左右着目レベル画像として切
り出す。
The gradation conversion unit converts the left and right images after image conversion into left and right images of n gradations (m> n), and the level cutout unit extracts one or more types of attention from the left and right images after gradation conversion. The left and right images of the grayscale level are cut out as left and right attention level images.

【0038】階調変換部は左右カメラにより得たm階調
(例えばm=256)の左右画像を、n階調(例えばn
=32)の左右画像に変換する。そしてレベル切出し部
は階調変換後のn階調の左右画像において、1種類又は
複数種類の階調レベルに着目して、着目した階調レベル
の左右画像を左右着目レベル画像として切り出す。
The gradation conversion unit converts the left and right images of m gradations (for example, m = 256) obtained by the left and right cameras into n gradations (for example, n
= 32). Then, the level cutout unit focuses on one or more types of grayscale levels in the left and right images of n grayscales after the grayscale conversion, and cuts out the left and right images of the focused grayscale levels as left and right focused level images.

【0039】このように左右カメラにより得たm階調の
左右画像を、m>nなるn階調の左右画像に変換し、さ
らにn階調の左右画像から着目した階調レベルの左右画
像のみを左右着目レベル画像として切り出す。後述する
ように、この左右着目レベル画像を左右探索画像として
対応候補点を検出することにより、対応候補点の検出速
度を向上させることができる。
The left and right images of m gradations obtained by the left and right cameras are converted into left and right images of n gradations where m> n, and only the left and right images of the gradation level focused on from the left and right images of n gradations Are cut out as left and right attention level images. As will be described later, the detection speed of the corresponding candidate points can be improved by detecting the corresponding candidate points using the left and right attention level images as the left and right search images.

【0040】対応点探索部は、走査方向、走査対象とな
る画素の階調表現、若しくは、走査対象となる画素の色
を異ならせて複数種の探索条件を設定し、左右着目レベ
ル画像を左右探索画像とする。
The corresponding point searching section sets a plurality of types of search conditions by changing the scanning direction, the gradation expression of the pixel to be scanned, or the color of the pixel to be scanned, Let it be a search image.

【0041】そして対応点探索部は、探索条件に従って
左右探索画像を走査し、相対応する水平走査線上におい
て左探索画像の画素特徴と右探索画像の画素特徴とを比
較して、画素特徴の差が閾値以下となる左右探索画像の
画素を対応候補点として検出し、各探索条件毎に検出し
た対応候補点の集合において共通集合となる対応候補点
を対応点として検出する。然る後、対応点探索部は、対
応点検出結果を用いて左右探索画像における位相差の判
明点及び不明点を検出する。
The corresponding point search unit scans the left and right search images according to the search conditions, compares the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines, and determines the difference between the pixel characteristics. Are detected as corresponding candidate points, and corresponding candidate points that become a common set in a set of corresponding candidate points detected for each search condition are detected as corresponding points. After that, the corresponding point searching unit detects a known point and an unknown point of the phase difference in the left and right search images using the corresponding point detection result.

【0042】走査方向を異ならせて複数種の探索条件を
設定する場合は、次の如くして対応候補点を検出する。
When a plurality of types of search conditions are set with different scanning directions, corresponding candidate points are detected as follows.

【0043】すなわち左右探索画像において相対応する
水平走査線上に存在する画素であって、左右探索画像の
一方の画像の画素を着目点、及び、左右探索画像の他方
の画像の画素を対照点とする。着目点走査方向を右方向
(水平走査線上において左から右へ向かう方向)としか
つ対照点走査方向を右方向とする条件aと、着目点走査
方向を右方向としかつ対照点走査方向を左方向(水平走
査線上において右から左へ向かう方向)とする条件b、
着目点走査方向を左方向としかつ対照点走査方向を右方
向とする条件c、着目点走査方向を左方向としかつ対照
点走査方向を左方向とする条件dの4種の条件のなかか
ら選択した少なくとも2種の条件を、探索条件として設
定して、対応候補点を検出する。
That is, the pixels existing on the corresponding horizontal scanning lines in the left and right search images, and the pixels of one of the left and right search images are regarded as the point of interest, and the pixels of the other image of the left and right search image are regarded as the control point. I do. A condition a that the scanning direction of the point of interest is the right direction (direction from left to right on the horizontal scanning line) and the scanning direction of the control point is the right direction, the scanning direction of the focus point is the right direction, and the scanning direction of the control point is the left direction (The direction from right to left on the horizontal scanning line)
Select from among four conditions: condition c that sets the target point scanning direction to the left direction and sets the control point scanning direction to the right direction, and condition d that sets the target point scanning direction to the left direction and sets the control point scanning direction to the left direction. At least two types of conditions are set as search conditions, and corresponding candidate points are detected.

【0044】条件a〜dいずれの場合も、水平走査線上
において着目点走査方向へ順次に数えて第i番目の着目
点に対し、水平走査上の対照点を対照点走査方向へ順次
に走査してゆく。第i番目の着目点に対し画素特徴の差
が閾値以下となる対照点を検出することなく対照点の走
査を終了したら、次に第i+1番目の着目点に対し対照
点の走査を行なう。また第i番目の着目点に対し画素特
徴の差が閾値以下となる対照点を検出したら、当該第i
番目の着目点と対照点とを対応候補点として検出し、然
る後、第i+1番目の着目点に対し対照点の走査を行な
う。
In any of the conditions a to d, a reference point on the horizontal scan is sequentially scanned in the control point scanning direction with respect to the i-th point of interest counted sequentially in the direction of interest scanning on the horizontal scanning line. Go on. When scanning of the control point is completed without detecting a control point having a pixel feature difference equal to or smaller than the threshold value for the i-th point of interest, scanning of the control point is performed on the (i + 1) -th point of interest. Further, when a control point at which the difference of the pixel feature with respect to the i-th point of interest is equal to or smaller than the threshold value is detected,
The second point of interest and the control point are detected as corresponding candidate points, and then the control point is scanned for the (i + 1) th point of interest.

【0045】このように着目点走査方向若しくは対象点
走査方向を異ならせて左右探索画像を走査するという複
数種の探索条件を設定し、各探索条件毎に得た対応候補
点の集合において共通集合となる対応候補点を候補点と
して検出することにより、誤対応を減少させることがで
きる。
As described above, a plurality of types of search conditions for scanning the left and right search images with different target point scanning directions or target point scanning directions are set, and a common set of corresponding candidate points obtained for each search condition is set. Erroneous correspondence can be reduced by detecting the correspondence candidate point which becomes as a candidate point.

【0046】走査対象となる画素の階調表現を異ならせ
て複数種の探索条件を設定する場合は、次の如くして対
応候補点を検出する。
When a plurality of types of search conditions are set by changing the gradation expression of pixels to be scanned, corresponding candidate points are detected as follows.

【0047】すなわち対応点探索部は、左右探索画像の
階調を変換して階調表現の異なる複数種の左右探索画像
を用意する。そして階調表現を異ならせた各左右探索画
像について対応候補点を検出し、各階調表現毎に得た対
応候補点の集合において共通集合となる対応候補点を対
応点として検出する。例えば、32階調の白黒画像を左
右着目レベル画像として得てこの32階調の左右着目レ
ベル画像を左右探索画像として得た場合、まず階調変換
しない32階調の左右探索画像を走査して対応候補点を
検出し、さらに32階調の左右探索画像を階調変換して
16階調の左右探索画像を得、この16階調の左右探索
画像を走査して対応候補点を検出する。そしてこれら3
2階調及び16階調の左右探索画像から検出した対応候
補点の共通集合を対応点として検出する。或は、32階
調の白黒画像を左右着目レベル画像として得てこの32
階調の左右着目レベル画像を左右探索画像とした場合、
この32階調の左右探索画像を階調変換して、階調表現
を異ならせた複数種の16階調の左右探索画像を生成す
る。この場合、階調の段階数は同じ16階調であり最初
及び最後の階調幅ここでは第1番目及び第16番目の階
調幅を異ならせた16階調の左右探索画像を生成するこ
ととなる。そして階調表現を異ならせた16階調の左右
探索画像をそれぞれ走査して対応候補点を検出し、各1
6階調の左右探索画像毎に検出した対応候補点の共通集
合を対応点として検出する。
That is, the corresponding point search section converts the gradation of the left and right search images to prepare a plurality of types of left and right search images having different gradation expressions. Then, corresponding candidate points are detected for each of the left and right search images having different gradation expressions, and corresponding candidate points that are a common set in a set of corresponding candidate points obtained for each gradation expression are detected as corresponding points. For example, when a 32-tone black-and-white image is obtained as a left-right focused level image and the 32-graded left-right focused level image is obtained as a left-right search image, first, a 32-gradation left-right search image that is not subjected to tone conversion is scanned. Corresponding candidate points are detected, and the left and right search images of 32 tones are subjected to gradation conversion to obtain a left and right search image of 16 tones. The left and right search images of 16 tones are scanned to detect corresponding candidate points. And these three
A common set of corresponding candidate points detected from the left and right search images of 2 and 16 tones is detected as corresponding points. Alternatively, a black-and-white image of 32 gradations is obtained as the left and right level-of-interest level image.
When the left and right target level images of the gradation are set as the left and right search images,
The left and right search image of 32 tones is subjected to gradation conversion to generate a plurality of types of left and right search images of 16 tones with different gradation expressions. In this case, the number of gradation steps is the same 16 gradations, and a left and right search image of 16 gradations in which the first and last gradation widths, here the first and 16th gradation widths, are different is generated. . Then, by scanning each of the left and right search images of 16 gradations with different gradation expressions, corresponding candidate points are detected.
A common set of corresponding candidate points detected for each of the left and right search images of 6 tones is detected as a corresponding point.

【0048】このように階調の段階数を異ならせた複数
種の画像をそれぞれ左右探索画像として対応候補点を検
出するという複数種の探索条件を設定し、若しくは、階
調の段階数を同一として最初及び最後の階調幅を異なら
せた複数種の画像をそれぞれ左右探索画像として対応候
補点を検出するという複数種の探索条件を設定し、各探
索条件毎に得た対応候補点の集合において共通集合とな
る対応候補点を候補点として検出することにより、誤対
応を減少させることができる。
As described above, a plurality of types of search conditions are set such that a plurality of types of images having different levels of gradation are used as left and right search images to detect corresponding candidate points, or the number of levels of gradation is the same. As a plurality of types of search conditions for detecting corresponding candidate points as left and right search images using a plurality of types of images having different first and last gradation widths, a set of corresponding candidate points obtained for each search condition is set. By detecting corresponding candidate points that become a common set as candidate points, erroneous correspondence can be reduced.

【0049】走査対象となる画素の色を異ならせて複数
種の探索条件を設定する場合は、次の如くして対応候補
点を検出する。
When a plurality of types of search conditions are set by changing the color of a pixel to be scanned, corresponding candidate points are detected as follows.

【0050】すなわち左右カメラにより左右画像として
カラー画像を得た場合には、対応点探索部は、カラー画
像である左右画像の赤色画像、緑色画像及び青色画像か
ら選択した2種又は3種の色画像を左右探索画像とす
る。そして左右探索画像について各色画像毎に対応候補
点を検出し、各色画像毎に得た対応候補点の集合におい
て共通集合となる対応候補点を対応点として検出する。
例えばカラー画像である左右画像の赤色画像、緑色画像
及び青色画像をそれぞれ左右探索画像とし、各色毎に左
右探索画像を走査して対応候補点を検出する。そして赤
色画像について得た対応候補点の集合と緑色画像につい
て得た対応候補点の集合と青色画像について得た対応候
補点の集合とにおいて、共通集合となる対応候補点を対
応点として検出する。
That is, when a color image is obtained as a left and right image by the left and right cameras, the corresponding point searching unit determines two or three types of colors selected from the red, green and blue images of the left and right images which are color images. Let the image be a left and right search image. Then, corresponding candidate points are detected for each color image in the left and right search images, and corresponding candidate points that become a common set in a set of corresponding candidate points obtained for each color image are detected as corresponding points.
For example, a red image, a green image, and a blue image of the left and right images, which are color images, are set as left and right search images, and the left and right search images are scanned for each color to detect corresponding candidate points. Then, in the set of corresponding candidate points obtained for the red image, the set of corresponding candidate points obtained for the green image, and the set of corresponding candidate points obtained for the blue image, corresponding candidate points that are a common set are detected as corresponding points.

【0051】このように左右カメラにより左右画像とし
てカラー画像を得た場合に、左右画像の赤色画像、緑色
画像及び青色画像から選択した複数種の色画像をそれぞ
れ左右探索画像とするという複数種の探索条件を設定
し、各探索条件毎に得た対応候補点の集合において共通
集合となる対応候補点を対応点を検出することにより、
誤対応を減少させることができる。
As described above, when the left and right cameras obtain color images as left and right images, a plurality of types of color images selected from the red, green and blue images of the left and right images are respectively used as left and right search images. By setting search conditions and detecting corresponding candidate points that become a common set in a set of corresponding candidate points obtained for each search condition,
False responses can be reduced.

【0052】対応点探索部は、左右探索画像を走査して
得た対応点検出結果を用いて、左右探索画像における位
相差の判明点及び不明点を検出する。
The corresponding point search section detects a known point and an unknown point of the phase difference in the left and right search images using the corresponding point detection results obtained by scanning the left and right search images.

【0053】評価値算出部は左右探索画像における位相
差判明点の検出率を用いて、候補条件の種類毎に候補条
件の評価値を求め、最大値検出部は候補条件の種類毎に
最大の評価値を得た候補条件を修正条件として検出す
る。
The evaluation value calculation unit obtains the evaluation value of the candidate condition for each type of candidate condition using the detection rate of the phase difference found point in the left and right search images, and the maximum value detection unit calculates the maximum value for each type of candidate condition. The candidate condition for which the evaluation value has been obtained is detected as a correction condition.

【0054】既に述べたように、x軸方向への平行移動
量、y軸方向への平行移動量、x軸回りの回転角度、y
軸回りの回転角度、z軸回りの回転角度及び変換倍率の
全ての種類の候補条件について、候補条件の種類毎に候
補条件の評価値を求めそして候補条件の種類毎に評価値
が最大となる候補条件を検出しても良いし、実用上問題
ない範囲であれば、x軸方向への平行移動量、y軸方向
への平行移動量、x軸回りの回転角度、y軸回りの回転
角度、z軸回りの回転角度及び変換倍率の一部の種類の
候補条件についてのみ、候補条件の種類毎に候補条件の
評価値を求めそして評価値が最大となる候補条件を検出
するようにしても良い。
As described above, the translation amount in the x-axis direction, the translation amount in the y-axis direction, the rotation angle around the x-axis,
For all types of candidate conditions of the rotation angle around the axis, the rotation angle around the z-axis, and the conversion magnification, the evaluation value of the candidate condition is obtained for each type of the candidate condition, and the evaluation value becomes maximum for each type of the candidate condition. Candidate conditions may be detected, and if they are within a range in which there is no practical problem, the amount of translation in the x-axis direction, the amount of translation in the y-axis direction, the rotation angle around the x-axis, the rotation angle around the y-axis , An evaluation value of the candidate condition is obtained for each type of the candidate condition only for some types of the rotation angle around the z-axis and the conversion magnification, and the candidate condition having the maximum evaluation value is detected. good.

【0055】さらに請求項9の発明は、左右画像のエピ
ポーララインを合わせるための修正条件を検出する修正
条件検出装置において、条件設定部、画像変換部、対応
点探索部、評価値算出部及び最大値検出部を備えて成る
ことを特徴とする。
According to a ninth aspect of the present invention, there is provided a correction condition detecting apparatus for detecting a correction condition for matching epipolar lines of left and right images, comprising: a condition setting unit, an image conversion unit, a corresponding point search unit, an evaluation value calculation unit, It is characterized by comprising a value detecting section.

【0056】条件設定部は高さ方向修正条件を検出する
ための候補条件を順次に設定し、画像変換部は左右画像
の一方を候補条件に従って画像変換する。画像変換部は
x軸方向を水平方向、y軸方向を高さ方向及びz軸方向
を奥行き方向とし、高さ方向修正条件を検出するための
画像変換としてy軸方向(高さ方向)への平行移動を行
ない、この画像変換に候補条件を用いる。
The condition setting unit sequentially sets candidate conditions for detecting the height direction correction condition, and the image conversion unit converts one of the left and right images according to the candidate condition. The image conversion unit sets the x-axis direction as the horizontal direction, the y-axis direction as the height direction, and the z-axis direction as the depth direction, and performs image conversion in the y-axis direction (height direction) as image conversion for detecting a height direction correction condition. The translation is performed, and the candidate condition is used for the image conversion.

【0057】候補条件には、y軸方向への平行移動量を
段階的に定めた任意好適個数の複数の条件Δy1 、Δy
2 、……を用いることができる。z軸方向への平行移動
量Δy1 、Δy2 、……のうち後述する評価値が最大と
なるものが、エピポーララインを合わせるのに適したy
軸方向への平行移動量すなわち高さ方向修正条件とな
る。
The candidate conditions include an arbitrary suitable number of conditions Δy 1 and Δy in which the amount of parallel movement in the y-axis direction is determined stepwise.
2 , ... can be used. Among the parallel movement amounts Δy 1 , Δy 2 ,... in the z-axis direction, the one having the largest evaluation value described later is suitable for adjusting the epipolar line.
The amount of translation in the axial direction, that is, the height direction correction condition.

【0058】対応点探索部は、走査方向、走査対象とな
る画素の階調表現、若しくは、走査対象となる画素の色
を異ならせて複数種の探索条件を設定し、画像変換後の
左右画像を左右探索画像とする。
The corresponding point search unit sets a plurality of types of search conditions by changing the scanning direction, the gradation expression of the pixel to be scanned, or the color of the pixel to be scanned, and sets the left and right images after image conversion. Is a left and right search image.

【0059】そして対応点探索部は、探索条件に従って
左右探索画像を走査し、相対応する水平走査線上におい
て左探索画像の画素特徴と右探索画像の画素特徴とを比
較して画素特徴の差が閾値以下となる左右探索画像の画
素を対応候補点として検出し、各探索条件毎に検出した
対応候補点の集合において共通集合となる対応候補点を
対応点として検出する。然る後、対応点探索部は、対応
点検出結果を用いて左右探索画像における位相差の判明
点及び不明点を検出する。
The corresponding point search unit scans the left and right search images according to the search conditions, compares the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines, and determines the difference between the pixel characteristics. Pixels of the left and right search images that are equal to or less than the threshold are detected as corresponding candidate points, and corresponding candidate points that are a common set in a set of corresponding candidate points detected for each search condition are detected as corresponding points. After that, the corresponding point searching unit detects a known point and an unknown point of the phase difference in the left and right search images using the corresponding point detection result.

【0060】走査方向を異ならせて複数種の探索条件を
設定する場合は、次の如くして対応候補点を検出する。
When a plurality of types of search conditions are set with different scanning directions, corresponding candidate points are detected as follows.

【0061】すなわち左右探索画像において相対応する
水平走査線上に存在する画素であって、左右探索画像の
一方の画像の画素を着目点、及び、左右探索画像の他方
の画像の画素を対照点とする。着目点走査方向を右方向
(水平走査線上において左から右へ向かう方向)としか
つ対照点走査方向を右方向とする条件aと、着目点走査
方向を右方向としかつ対照点走査方向を左方向(水平走
査線上において右から左へ向かう方向)とする条件b、
着目点走査方向を左方向としかつ対照点走査方向を右方
向とする条件c、着目点走査方向を左方向としかつ対照
点走査方向を左方向とする条件dの4種の条件のなかか
ら選択した少なくとも2種の条件を、探索条件として設
定して、対応候補点を検出する。
That is, the pixels existing on the corresponding horizontal scanning lines in the left and right search images, and the pixels of one of the left and right search images are regarded as the point of interest, and the pixels of the other image of the left and right search image are regarded as the control point. I do. A condition a that the scanning direction of the point of interest is the right direction (direction from left to right on the horizontal scanning line) and the scanning direction of the control point is the right direction, the scanning direction of the focus point is the right direction, and the scanning direction of the control point is the left direction (The direction from right to left on the horizontal scanning line)
Select from among four conditions: condition c that sets the target point scanning direction to the left direction and sets the control point scanning direction to the right direction, and condition d that sets the target point scanning direction to the left direction and sets the control point scanning direction to the left direction. At least two types of conditions are set as search conditions, and corresponding candidate points are detected.

【0062】条件a〜dいずれの場合も、水平走査線上
において着目点走査方向へ順次に数えて第i番目の着目
点に対し、水平走査上の対照点を対照点走査方向へ順次
に走査してゆく。第i番目の着目点に対し画素特徴の差
が閾値以下となる対照点を検出することなく対照点の走
査を終了したら、次に第i+1番目の着目点に対し対照
点の走査を行なう。また第i番目の着目点に対し画素特
徴の差が閾値以下となる対照点を検出したら、当該第i
番目の着目点と対照点とを対応候補点として検出し、然
る後、第i+1番目の着目点に対し対照点の走査を行な
う。
In any of the conditions a to d, a control point on the horizontal scan is sequentially scanned in the control point scanning direction with respect to the i-th attention point counted sequentially in the direction of interest scanning on the horizontal scanning line. Go on. When scanning of the control point is completed without detecting a control point having a pixel feature difference equal to or smaller than the threshold value for the i-th point of interest, scanning of the control point is performed on the (i + 1) -th point of interest. Further, when a control point at which the difference of the pixel feature with respect to the i-th point of interest is equal to or smaller than the threshold value is detected,
The second point of interest and the control point are detected as corresponding candidate points, and then the control point is scanned for the (i + 1) th point of interest.

【0063】このように着目点走査方向若しくは対象点
走査方向を異ならせて左右探索画像を走査するという複
数種の探索条件を設定し、各探索条件毎に得た対応候補
点の集合において共通集合となる対応候補点を候補点と
して検出することにより、誤対応を減少させることがで
きる。
As described above, a plurality of types of search conditions for scanning the left and right search images with different target point scanning directions or target point scanning directions are set, and a common set of corresponding candidate points obtained for each search condition is set. Erroneous correspondence can be reduced by detecting the correspondence candidate point which becomes as a candidate point.

【0064】走査対象となる画素の階調表現を異ならせ
て複数種の探索条件を設定する場合は、次の如くして対
応候補点を検出する。
When a plurality of types of search conditions are set by changing the gradation expression of pixels to be scanned, corresponding candidate points are detected as follows.

【0065】すなわち対応点探索部は、左右探索画像の
階調を変換して階調表現の異なる複数種の左右探索画像
を用意する。そして階調表現を異ならせた各左右探索画
像について対応候補点を検出し、各階調表現毎に得た対
応候補点の集合において共通集合となる対応候補点を対
応点として検出する。例えば、左右カメラにより256
階調の白黒画像を左右画像として得てこの左右画像を左
右探索画像として得た場合、まず階調変換しない256
階調の左右探索画像を走査して対応候補点を検出し、さ
らに256階調の左右探索画像を階調変換して32階調
の左右探索画像を得、この32階調の左右探索画像を走
査して対応候補点を検出する。そしてこれら256階調
及び32階調の左右探索画像から検出した対応候補点の
共通集合を対応点として検出する。或は、左右カメラに
より256階調の白黒画像を左右画像として得てこの左
右画像を左右探索画像として得た場合、この256階調
の左右探索画像を階調変換して、階調表現を異ならせた
複数種の16階調の左右探索画像を生成する。この場
合、階調の段階数は同じ16階調であり最初及び最後の
階調幅ここでは第1番目及び第16番目の階調幅を異な
らせた16階調の左右探索画像を生成することとなる。
そして階調表現を異ならせた16階調の左右探索画像を
それぞれ走査して対応候補点を検出し、各16階調の左
右探索画像毎に検出した対応候補点の共通集合を対応点
として検出する。
That is, the corresponding point search unit converts the gradation of the left and right search image to prepare a plurality of types of left and right search images having different gradation expressions. Then, corresponding candidate points are detected for each of the left and right search images having different gradation expressions, and corresponding candidate points that are a common set in a set of corresponding candidate points obtained for each gradation expression are detected as corresponding points. For example, 256 cameras with left and right cameras
When a grayscale black and white image is obtained as a left and right image and the left and right images are obtained as left and right search images, first, no grayscale conversion is performed.
The left and right search images of the gray scale are scanned to detect the corresponding candidate points, and the left and right search images of the 256 gray scales are converted to obtain a left and right search image of 32 gray scales. Scanning is performed to detect corresponding candidate points. Then, a common set of corresponding candidate points detected from the left and right search images of 256 and 32 tones is detected as corresponding points. Alternatively, when a black-and-white image of 256 tones is obtained as a left and right image by the left and right cameras and the left and right images are obtained as left and right search images, the left and right search image of 256 tones is subjected to gradation conversion so that the gradation expression is different. A plurality of types of left and right search images of 16 tones are generated. In this case, the number of gradation steps is the same 16 gradations, and a left and right search image of 16 gradations in which the first and last gradation widths, here the first and 16th gradation widths, are different is generated. .
Then, the left and right search images of 16 gradations with different gradation expressions are respectively scanned to detect corresponding candidate points, and a common set of corresponding candidate points detected for each of the 16 left and right search images is detected as corresponding points. I do.

【0066】このように階調の段階数を異ならせた複数
種の画像をそれぞれ左右探索画像として対応候補点を検
出するという複数種の探索条件を設定し、若しくは、階
調の段階数を同一として最初及び最後の階調幅を異なら
せた複数種の画像をそれぞれ左右探索画像として対応候
補点を検出するという複数種の探索条件を設定し、各探
索条件毎に得た対応候補点の集合において共通集合とな
る対応候補点を候補点として検出することにより、誤対
応を減少させることができる。
As described above, a plurality of types of search conditions for detecting corresponding candidate points by using a plurality of types of images having different levels of gradation as left and right search images are set, or the number of levels of gradation is the same. As a plurality of types of search conditions for detecting corresponding candidate points as left and right search images using a plurality of types of images having different first and last gradation widths, a set of corresponding candidate points obtained for each search condition is set. By detecting corresponding candidate points that become a common set as candidate points, erroneous correspondence can be reduced.

【0067】走査対象となる画素の色を異ならせて複数
種の探索条件を設定する場合は、次の如くして対応候補
点を検出する。
When a plurality of types of search conditions are set by changing the color of a pixel to be scanned, corresponding candidate points are detected as follows.

【0068】すなわち左右カメラにより左右画像として
カラー画像を得た場合には、対応点探索部は、カラー画
像である左右画像の赤色画像、緑色画像及び青色画像か
ら選択した2種又は3種の色画像を左右探索画像とす
る。そして左右探索画像について各色画像毎に対応候補
点を検出し、各色画像毎に得た対応候補点の集合におい
て共通集合となる対応候補点を対応点として検出する。
例えばカラー画像である左右画像の赤色画像、緑色画像
及び青色画像をそれぞれ左右探索画像とし、各色毎に左
右探索画像を走査して対応候補点を検出する。そして赤
色画像について得た対応候補点の集合と緑色画像につい
て得た対応候補点の集合と青色画像について得た対応候
補点の集合とにおいて、共通集合となる対応候補点を対
応点として検出する。
That is, when a color image is obtained as a left and right image by the left and right cameras, the corresponding point searching unit determines two or three colors selected from the red, green and blue images of the left and right images which are color images. Let the image be a left and right search image. Then, corresponding candidate points are detected for each color image in the left and right search images, and corresponding candidate points that become a common set in a set of corresponding candidate points obtained for each color image are detected as corresponding points.
For example, a red image, a green image, and a blue image of the left and right images, which are color images, are set as left and right search images, and the left and right search images are scanned for each color to detect corresponding candidate points. Then, in the set of corresponding candidate points obtained for the red image, the set of corresponding candidate points obtained for the green image, and the set of corresponding candidate points obtained for the blue image, corresponding candidate points that are a common set are detected as corresponding points.

【0069】このように左右カメラにより左右画像とし
てカラー画像を得た場合に、左右画像の赤色画像、緑色
画像及び青色画像から選択した複数種の色画像をそれぞ
れ左右探索画像とするという複数種の探索条件を設定
し、各探索条件毎に得た対応候補点の集合において共通
集合となる対応候補点を対応点を検出することにより、
誤対応を減少させることができる。
As described above, when the left and right cameras obtain color images as left and right images, a plurality of types of color images selected from the red, green and blue images of the left and right images are respectively used as left and right search images. By setting search conditions and detecting corresponding candidate points that become a common set in a set of corresponding candidate points obtained for each search condition,
False responses can be reduced.

【0070】対応点探索部は、左右探索画像を走査して
得た対応点検出結果を用いて、左右探索画像において高
さ方向のずれ量が大となる近距離位相差の判明点及び不
明点を検出する。
The corresponding point search section uses the corresponding point detection results obtained by scanning the left and right search images to determine the known and unknown points of the short-distance phase difference where the amount of displacement in the height direction is large in the left and right search images. Is detected.

【0071】評価値算出部は左右探索画像において高さ
方向のずれ量が大となる近距離位相差につき位相差判明
点の検出率を求め当該検出率を用いて高さ方向候補条件
の評価値を求め、最大値検出部は最大の評価値を得た高
さ方向候補条件を高さ方向修正条件として検出する。
The evaluation value calculation unit calculates the detection rate of the phase difference known point for the short-distance phase difference in which the amount of displacement in the height direction is large in the left and right search images, and uses the detection rate to evaluate the evaluation value of the height direction candidate condition. Is obtained, and the maximum value detection unit detects the height direction candidate condition having the maximum evaluation value as the height direction correction condition.

【0072】さらに請求項13の発明は左右画像のエピ
ポーララインを合わせるための修正条件を検出する修正
条件検出装置において、条件設定部、画像変換部、対応
点探索部、評価値算出部及び最大値検出部を備えて成る
ことを特徴とする。
According to a thirteenth aspect of the present invention, there is provided a correction condition detecting apparatus for detecting a correction condition for matching epipolar lines of left and right images, wherein a condition setting unit, an image conversion unit, a corresponding point search unit, an evaluation value calculation unit, and a maximum value It is characterized by comprising a detection unit.

【0073】条件設定部はチルト角修正条件を検出する
ための候補条件を順次に設定し、画像変換部は左右画像
の一方を候補条件に従って画像変換する。画像変換部は
x軸方向を水平方向、y軸方向を高さ方向及びz軸方向
を奥行き方向とし、チルト角修正条件を検出するための
画像変換としてz軸回りの回転を行ない、この画像変換
に候補条件を用いる。
The condition setting unit sequentially sets candidate conditions for detecting the tilt angle correction condition, and the image conversion unit converts one of the left and right images according to the candidate condition. The image conversion unit sets the x-axis direction as the horizontal direction, the y-axis direction as the height direction, and the z-axis direction as the depth direction, and performs rotation about the z-axis as image conversion for detecting a tilt angle correction condition. Is used as the candidate condition.

【0074】候補条件には、z軸回りの回転角度を段階
的に定めた任意好適個数の複数の条件Δγ1 、Δγ2
……を用いることができる。z軸回りの回転角度Δγ
1 、Δγ2 、……のうち後述する評価値が最大となるも
のが、エピポーララインを合わせるのに適したz軸回り
の回転角度すなわちチルト角修正条件となる。
The candidate conditions include an arbitrary preferred number of conditions Δγ 1 , Δγ 2 , and a rotation angle about the z-axis which are determined stepwise.
... can be used. Rotation angle Δγ around z axis
Of the 1 , Δγ 2 ,..., The evaluation value described later is the maximum, which is the rotation angle around the z-axis, that is, the tilt angle correction condition suitable for adjusting the epipolar line.

【0075】対応点探索部は、走査方向、走査対象とな
る画素の階調表現、若しくは、走査対象となる画素の色
を異ならせて複数種の探索条件を設定し、画像変換後の
左右画像を左右探索画像とする。
The corresponding point searching section sets a plurality of types of search conditions by changing the scanning direction, the gradation expression of the pixel to be scanned, or the color of the pixel to be scanned, and sets the left and right images after image conversion. Is a left and right search image.

【0076】そして対応点探索部は、探索条件に従って
左右探索画像を走査し、相対応する水平走査線上におい
て左探索画像の画素特徴と右探索画像の画素特徴とを比
較して画素特徴の差が閾値以下となる左右探索画像の画
素を対応候補点として検出し、各探索条件毎に検出した
対応候補点の集合において共通集合となる対応候補点を
対応点として検出する。然る後、対応点探索部は、対応
点検出結果を用いて左右探索画像における位相差の判明
点及び不明点を検出する。
The corresponding point search unit scans the left and right search images according to the search conditions, compares the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines, and determines the difference between the pixel characteristics. Pixels of the left and right search images that are equal to or less than the threshold are detected as corresponding candidate points, and corresponding candidate points that are a common set in a set of corresponding candidate points detected for each search condition are detected as corresponding points. After that, the corresponding point searching unit detects a known point and an unknown point of the phase difference in the left and right search images using the corresponding point detection result.

【0077】走査方向を異ならせて複数種の探索条件を
設定する場合は、次の如くして対応候補点を検出する。
When a plurality of types of search conditions are set with different scanning directions, corresponding candidate points are detected as follows.

【0078】すなわち左右探索画像において相対応する
水平走査線上に存在する画素であって、左右探索画像の
一方の画像の画素を着目点、及び、左右探索画像の他方
の画像の画素を対照点とする。着目点走査方向を右方向
(水平走査線上において左から右へ向かう方向)としか
つ対照点走査方向を右方向とする条件aと、着目点走査
方向を右方向としかつ対照点走査方向を左方向(水平走
査線上において右から左へ向かう方向)とする条件b、
着目点走査方向を左方向としかつ対照点走査方向を右方
向とする条件c、着目点走査方向を左方向としかつ対照
点走査方向を左方向とする条件dの4種の条件のなかか
ら選択した少なくとも2種の条件を、探索条件として設
定して、対応候補点を検出する。
That is, the pixels existing on the corresponding horizontal scanning lines in the left and right search images, and the pixels of one of the left and right search images are taken as the point of interest, and the pixels of the other image of the left and right search image are taken as the control point. I do. A condition a that the scanning direction of the point of interest is the right direction (direction from left to right on the horizontal scanning line) and the scanning direction of the control point is the right direction, the scanning direction of the focus point is the right direction, and the scanning direction of the control point is the left direction (The direction from right to left on the horizontal scanning line)
Select from among four conditions: condition c that sets the target point scanning direction to the left direction and sets the control point scanning direction to the right direction, and condition d that sets the target point scanning direction to the left direction and sets the control point scanning direction to the left direction. At least two types of conditions are set as search conditions, and corresponding candidate points are detected.

【0079】条件a〜dいずれの場合も、水平走査線上
において着目点走査方向へ順次に数えて第i番目の着目
点に対し、水平走査上の対照点を対照点走査方向へ順次
に走査してゆく。第i番目の着目点に対し画素特徴の差
が閾値以下となる対照点を検出することなく対照点の走
査を終了したら、次に第i+1番目の着目点に対し対照
点の走査を行なう。また第i番目の着目点に対し画素特
徴の差が閾値以下となる対照点を検出したら、当該第i
番目の着目点と対照点とを対応候補点として検出し、然
る後、第i+1番目の着目点に対し対照点の走査を行な
う。
In any of the conditions a to d, the control point on the horizontal scan is sequentially scanned in the control point scanning direction with respect to the i-th attention point counted sequentially in the direction of interest scanning on the horizontal scanning line. Go on. When scanning of the control point is completed without detecting a control point having a pixel feature difference equal to or smaller than the threshold value for the i-th point of interest, scanning of the control point is performed on the (i + 1) -th point of interest. Further, when a control point at which the difference of the pixel feature with respect to the i-th point of interest is equal to or smaller than the threshold value is detected,
The second point of interest and the control point are detected as corresponding candidate points, and then the control point is scanned for the (i + 1) th point of interest.

【0080】このように着目点走査方向若しくは対象点
走査方向を異ならせて左右探索画像を走査するという複
数種の探索条件を設定し、各探索条件毎に得た対応候補
点の集合において共通集合となる対応候補点を候補点と
して検出することにより、誤対応を減少させることがで
きる。
As described above, a plurality of types of search conditions for scanning the left and right search images with different target point scan directions or target point scan directions are set, and a common set of corresponding candidate points obtained for each search condition is set. Erroneous correspondence can be reduced by detecting the correspondence candidate point which becomes as a candidate point.

【0081】走査対象となる画素の階調表現を異ならせ
て複数種の探索条件を設定する場合は、次の如くして対
応候補点を検出する。
When a plurality of types of search conditions are set by changing the gradation expression of pixels to be scanned, corresponding candidate points are detected as follows.

【0082】すなわち対応点探索部は、左右探索画像の
階調を変換して階調表現の異なる複数種の左右探索画像
を用意する。そして階調表現を異ならせた各左右探索画
像について対応候補点を検出し、各階調表現毎に得た対
応候補点の集合において共通集合となる対応候補点を対
応点として検出する。例えば、左右カメラにより256
階調の白黒画像を左右画像として得てこの左右画像を左
右探索画像として得た場合、まず階調変換しない256
階調の左右探索画像を走査して対応候補点を検出し、さ
らに256階調の左右探索画像を階調変換して32階調
の左右探索画像を得、この32階調の左右探索画像を走
査して対応候補点を検出する。そしてこれら256階調
及び32階調の左右探索画像から検出した対応候補点の
共通集合を対応点として検出する。或は、左右カメラに
より256階調の白黒画像を左右画像として得てこの左
右画像を左右探索画像として得た場合、この256階調
の左右探索画像を階調変換して、階調表現を異ならせた
複数種の16階調の左右探索画像を生成する。この場
合、階調の段階数は同じ16階調であり最初及び最後の
階調幅ここでは第1番目及び第16番目の階調幅を異な
らせた16階調の左右探索画像を生成することとなる。
そして階調表現を異ならせた16階調の左右探索画像を
それぞれ走査して対応候補点を検出し、各16階調の左
右探索画像毎に検出した対応候補点の共通集合を対応点
として検出する。
That is, the corresponding point search section converts the gradation of the left and right search images to prepare a plurality of types of left and right search images having different gradation expressions. Then, corresponding candidate points are detected for each of the left and right search images having different gradation expressions, and corresponding candidate points that are a common set in a set of corresponding candidate points obtained for each gradation expression are detected as corresponding points. For example, 256 cameras with left and right cameras
When a grayscale black and white image is obtained as a left and right image and the left and right images are obtained as left and right search images, first, no grayscale conversion is performed.
The left and right search images of the gray scale are scanned to detect the corresponding candidate points, and the left and right search images of the 256 gray scales are converted to obtain a left and right search image of 32 gray scales. Scanning is performed to detect corresponding candidate points. Then, a common set of corresponding candidate points detected from the left and right search images of 256 and 32 tones is detected as corresponding points. Alternatively, when a black-and-white image of 256 tones is obtained as a left and right image by the left and right cameras and the left and right images are obtained as left and right search images, the left and right search image of 256 tones is subjected to gradation conversion so that the gradation expression is different. A plurality of types of left and right search images of 16 tones are generated. In this case, the number of gradation steps is the same 16 gradations, and a left and right search image of 16 gradations in which the first and last gradation widths, here the first and 16th gradation widths, are different is generated. .
Then, the left and right search images of 16 gradations with different gradation expressions are respectively scanned to detect corresponding candidate points, and a common set of corresponding candidate points detected for each of the 16 left and right search images is detected as corresponding points. I do.

【0083】このように階調の段階数を異ならせた複数
種の画像をそれぞれ左右探索画像として対応候補点を検
出するという複数種の探索条件を設定し、若しくは、階
調の段階数を同一として最初及び最後の階調幅を異なら
せた複数種の画像をそれぞれ左右探索画像として対応候
補点を検出するという複数種の探索条件を設定し、各探
索条件毎に得た対応候補点の集合において共通集合とな
る対応候補点を候補点として検出することにより、誤対
応を減少させることができる。
A plurality of types of search conditions for detecting corresponding candidate points using a plurality of types of images having different numbers of gray levels as left and right search images are set, or the number of gray levels is the same. As a plurality of types of search conditions for detecting corresponding candidate points as left and right search images using a plurality of types of images having different first and last gradation widths, a set of corresponding candidate points obtained for each search condition is set. By detecting corresponding candidate points that become a common set as candidate points, erroneous correspondence can be reduced.

【0084】走査対象となる画素の色を異ならせて複数
種の探索条件を設定する場合は、次の如くして対応候補
点を検出する。
When a plurality of types of search conditions are set by changing the color of a pixel to be scanned, corresponding candidate points are detected as follows.

【0085】すなわち左右カメラにより左右画像として
カラー画像を得た場合には、対応点探索部は、カラー画
像である左右画像の赤色画像、緑色画像及び青色画像か
ら選択した2種又は3種の色画像を左右探索画像とす
る。そして左右探索画像について各色画像毎に対応候補
点を検出し、各色画像毎に得た対応候補点の集合におい
て共通集合となる対応候補点を対応点として検出する。
例えばカラー画像である左右画像の赤色画像、緑色画像
及び青色画像をそれぞれ左右探索画像とし、各色毎に左
右探索画像を走査して対応候補点を検出する。そして赤
色画像について得た対応候補点の集合と緑色画像につい
て得た対応候補点の集合と青色画像について得た対応候
補点の集合とにおいて、共通集合となる対応候補点を対
応点として検出する。
That is, when a color image is obtained as a left and right image by the left and right cameras, the corresponding point searching section determines two or three colors selected from the red, green and blue images of the left and right images which are color images. Let the image be a left and right search image. Then, corresponding candidate points are detected for each color image in the left and right search images, and corresponding candidate points that become a common set in a set of corresponding candidate points obtained for each color image are detected as corresponding points.
For example, a red image, a green image, and a blue image of the left and right images, which are color images, are set as left and right search images, and the left and right search images are scanned for each color to detect corresponding candidate points. Then, in the set of corresponding candidate points obtained for the red image, the set of corresponding candidate points obtained for the green image, and the set of corresponding candidate points obtained for the blue image, corresponding candidate points that are a common set are detected as corresponding points.

【0086】このように左右カメラにより左右画像とし
てカラー画像を得た場合に、左右画像の赤色画像、緑色
画像及び青色画像から選択した複数種の色画像をそれぞ
れ左右探索画像とするという複数種の探索条件を設定
し、各探索条件毎に得た対応候補点の集合において共通
集合となる対応候補点を対応点を検出することにより、
誤対応を減少させることができる。
As described above, when the left and right cameras obtain color images as left and right images, a plurality of types of color images selected from the red, green and blue images of the left and right images are respectively used as left and right search images. By setting search conditions and detecting corresponding candidate points that become a common set in a set of corresponding candidate points obtained for each search condition,
False responses can be reduced.

【0087】対応点探索部は、左右探索画像を走査して
得た対応点検出結果を用いて、左右探索画像においてチ
ルト角のずれ量が大となる遠距離位相差の判明点及び不
明点を検出する。
The corresponding point searching section uses the corresponding point detection results obtained by scanning the left and right search images to find out the clear and unknown points of the long-distance phase difference where the tilt angle shift amount becomes large in the left and right search images. To detect.

【0088】評価値算出部は左右探索画像においてチル
ト角のずれ量が大となる遠距離位相差につき位相差判明
点の検出率を求め当該検出率を用いてチルト角候補条件
の評価値を求め、最大値検出部は最大の評価値を得たチ
ルト角候補条件をチルト角修正条件として検出する。
The evaluation value calculation unit obtains a detection rate of a phase difference known point for a long-distance phase difference in which the tilt angle shift amount is large in the left and right search images, and obtains an evaluation value of a tilt angle candidate condition using the detection rate. The maximum value detection unit detects a tilt angle candidate condition that has obtained the maximum evaluation value as a tilt angle correction condition.

【0089】[0089]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

<請求項1の発明の第一実施形態>図1は請求項1の発
明の第一実施形態の説明に供する機能ブロック図であ
る。同図において10及び12は2眼ステレオ画像法に
用いる左カメラ及び右カメラを示す。左カメラ10で撮
影した左画像を第一左メモリ14に、また右カメラ12
で撮影した右画像を第一右メモリ16に格納する。
<First Embodiment of the Invention of Claim 1> FIG. 1 is a functional block diagram for explaining a first embodiment of the invention of claim 1. In the figure, reference numerals 10 and 12 denote a left camera and a right camera used for the two-lens stereo image method. The left image captured by the left camera 10 is stored in the first left memory 14 and the right camera 12
Is stored in the first right memory 16.

【0090】18は修正条件検出装置を示し、この実施
形態の修正条件検出装置18は、左カメラ10及び右カ
メラ12で撮影した左画像及び右画像の、エピポーララ
イン合わせに用いる修正条件を検出する。さらにこれに
加えこの実施形態の修正条件検出装置18は、左カメラ
10及び右カメラ12で撮影した左画像及び右画像の一
方を、検出した修正条件に基づいて画像変換し、画像変
換後の左画像及び右画像を第二左メモリ20及び第二右
メモリ22に格納する。修正条件に基づく画像変換後の
左画像及び右画像にあっては、エピポーララインが一致
し或はほぼ一致した状態となっている。
Reference numeral 18 denotes a correction condition detecting device. The correction condition detecting device 18 of this embodiment detects a correction condition used for epipolar line alignment of the left image and the right image taken by the left camera 10 and the right camera 12. . Further, in addition to this, the correction condition detecting device 18 of this embodiment performs image conversion of one of the left image and the right image captured by the left camera 10 and the right camera 12 based on the detected correction condition, and outputs the left image after the image conversion. The image and the right image are stored in the second left memory 20 and the second right memory 22. In the left image and the right image after the image conversion based on the correction condition, the epipolar lines match or almost match.

【0091】24は対応点探索装置を示す。対応点探索
装置24は、修正条件に基づく画像変換後の左画像及び
右画像を走査してこれら左画像及び右画像において相対
応する画素(対応点)を検出し、さらに対応点の位相差
を、検出して距離情報メモリ26に格納する。対応点の
位相差は3次元画像の距離情報として利用されるもので
ある。
Reference numeral 24 denotes a corresponding point searching device. The corresponding point searching device 24 scans the left image and the right image after image conversion based on the correction condition, detects corresponding pixels (corresponding points) in the left image and the right image, and further detects the phase difference between the corresponding points. , And stores it in the distance information memory 26. The phase difference of the corresponding point is used as distance information of the three-dimensional image.

【0092】そしてこの実施形態の修正条件検出装置1
8は、条件設定部28、画像変換部30、対応点探索部
32、評価値算出部34及び最大値検出部36と、第三
左メモリ38及び第三右メモリ40とを備える。
The correction condition detecting device 1 of this embodiment
8 includes a condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32, an evaluation value calculation unit 34 and a maximum value detection unit 36, and a third left memory 38 and a third right memory 40.

【0093】条件設定部28は修正条件を検出するため
の複数種類の候補条件を順次に設定し、画像変換部30
は左カメラ10及び右カメラ12により得た左画像及び
右画像の一方を、候補条件に従って画像変換する。
The condition setting unit 28 sequentially sets a plurality of types of candidate conditions for detecting a correction condition,
Converts one of the left image and the right image obtained by the left camera 10 and the right camera 12 according to the candidate condition.

【0094】ここでは条件設定部28は補正条件を検出
するための複数種類の候補条件と、エピポーララインを
合わせるための複数種類の修正条件とを記憶する。記憶
する修正条件は、最大値検出部36により検出された修
正条件である。
Here, the condition setting section 28 stores a plurality of types of candidate conditions for detecting a correction condition and a plurality of types of correction conditions for matching epipolar lines. The correction condition to be stored is the correction condition detected by the maximum value detection unit 36.

【0095】修正条件を検出する場合に、条件設定部2
8は候補条件を画像変換部30に対して出力し、画像変
換部30は左カメラ10及び右カメラ12により得た左
画像及び右画像の一方を、この候補条件に従って画像変
換する。画像変換部30は候補条件に基づく画像変換後
の左画像及び右画像を、第三左メモリ38及び第三右メ
モリ40に格納する。これらメモリ38及び40に格納
された左画像及び右画像の一方は画像変換された画像と
なり、他方は画像変換されていない画像となる。
When the correction condition is detected, the condition setting unit 2
8 outputs the candidate condition to the image conversion unit 30, and the image conversion unit 30 performs image conversion of one of the left image and the right image obtained by the left camera 10 and the right camera 12 according to the candidate condition. The image conversion unit 30 stores the left image and the right image after the image conversion based on the candidate condition in the third left memory 38 and the third right memory 40. One of the left image and the right image stored in the memories 38 and 40 is an image that has been subjected to image conversion, and the other is an image that has not been subjected to image conversion.

【0096】またエピポーララインを合わせる場合に、
条件設定部28は修正条件を画像変換部30に対して出
力し、画像変換部30は左カメラ10及び右カメラ12
により得た左画像及び右画像の一方を、この修正条件に
従って画像変換する。画像変換部30は修正条件に基づ
く画像変換後の左画像及び右画像を、第二左メモリ20
及び第二右メモリ22に格納する。これらメモリ20及
び22に格納された左画像及び右画像の一方は画像変換
された画像となり、他方は画像変換されていない画像と
なる。
When the epipolar lines are matched,
The condition setting unit 28 outputs the correction condition to the image conversion unit 30, and the image conversion unit 30 outputs the correction condition to the left camera 10 and the right camera 12
One of the left image and the right image obtained by the above is image-converted according to the correction condition. The image conversion unit 30 stores the left image and the right image after the image conversion based on the correction condition in the second left memory 20.
And the second right memory 22. One of the left image and the right image stored in the memories 20 and 22 is an image converted image, and the other is an image not converted.

【0097】条件設定部28は、画像の平行移動、回転
及び倍率変換に関わる候補条件を記憶する。従って最大
値検出部36が検出する修正条件は画像の平行移動、回
転及び倍率変換に関わる修正条件となり、画像変換部3
0が候補条件及び修正条件に従って行なう画像変換は画
像の平行移動、回転及び倍率変換となる。これら平行移
動、回転及び倍率変換としては、既知の手法を用いるこ
とができる。
The condition setting section 28 stores candidate conditions relating to image parallel movement, rotation and magnification conversion. Therefore, the correction conditions detected by the maximum value detection unit 36 are correction conditions relating to the parallel movement, rotation, and magnification conversion of the image.
The image conversion performed by 0 according to the candidate condition and the correction condition is translation, rotation and magnification conversion of the image. Known methods can be used for the translation, rotation, and magnification conversion.

【0098】画像の平行移動に関わる候補条件として
は、x軸方向(水平方向)への平行移動量を段階的に定
めた複数個例えば5個の移動量Δx1 〜Δx5 と、y軸
方向(垂直方向もしくは高さ方向)への平行移動量を段
階的に定めた複数個例えば5個の変数Δy1 〜Δy5
を記憶し、従って画像の平行移動に関わる候補条件とし
て2種類の候補条件Δx1 〜Δx5 及びΔy1 〜Δy5
を記憶する。
[0098] The candidate condition relating to translation of the image, the x-axis direction plurality example five moving amount Δx 1 ~Δx 5 that defines the parallel movement amount in the (horizontal) stepwise, y-axis direction two candidates as candidate condition storing a plurality example five variable Δy 1 ~Δy 5 which defines stepwise translation of the (vertical or height direction), thus involving translation of the image Conditions Δx 1 to Δx 5 and Δy 1 to Δy 5
Is stored.

【0099】x軸方向への平行移動量Δx1 〜Δx5
うち後述する評価値が最大となるものが、x軸方向への
平行移動に関わる修正条件となり、またy軸方向への平
行移動量Δy1 〜Δy5 のうち後述する評価値が最大と
なるものがy軸方向への平行移動に関わる修正条件とな
る。
Of the parallel movement amounts Δx 1 to Δx 5 in the x-axis direction, the one having the largest evaluation value, which will be described later, is the correction condition relating to the parallel movement in the x-axis direction, and the parallel movement in the y-axis direction. Among the quantities Δy 1 to Δy 5, the one having the largest evaluation value described later is the correction condition relating to the parallel movement in the y-axis direction.

【0100】画像の回転に関わる候補条件としては、x
軸回りの回転角度を段階的に定めた複数個例えば5個の
角度Δα1 °〜Δα5 °と、y軸回りの回転角度を段階
的に定めた複数個例えば5個の角度Δβ1 °〜Δβ5 °
と、z軸回りの回転角度を段階的に定めた複数個例えば
5個の角度Δγ1 °〜Δγ5 とを記憶し、従って画像の
回転に関わる候補条件として3種類の候補条件Δα1 °
〜Δα5 °、Δβ1 °〜Δβ5 °及びΔγ1 °〜Δγ5
°を記憶する。
As candidate conditions relating to image rotation, x
A plurality example five angles Δα 1 ° ~Δα 5 ° which defines the rotation angle around the axis in stages, y axis rotation angle stepwise-determined plurality example five angles [Delta] [beta] 1 ° ~ Δβ 5 °
And a plurality of, for example, five angles Δγ 1 ° to Δγ 5 in which the rotation angle about the z-axis is determined in a stepwise manner. Therefore, three types of candidate conditions Δα 1 ° are set as candidate conditions related to image rotation.
~ Δα 5 °, Δβ 1 ° ~ Δβ 5 ° and Δγ 1 ° ~ Δγ 5
Remember °.

【0101】x軸回りの回転角度Δα1 °〜Δα5 °の
うち後述する評価値が最大となるものが、x軸回りの回
転に関わる修正条件となり、y軸回りの回転角度Δβ1
°〜Δβ5 °のうち後述する評価値が最大となるもの
が、y軸回りの回転に関わる修正条件となり、さらにz
軸回りの回転角度Δγ1 °〜Δγ5 のうち後述する評価
値が最大となるものが、z軸回りの回転に関わる修正条
件となる。
Among the rotation angles Δα 1 ° to Δα 5 ° around the x-axis, the one having the largest evaluation value, which will be described later, is the correction condition relating to the rotation around the x-axis, and the rotation angle Δβ 1 around the y-axis.
Of the ° to Δβ 5 °, the one having the largest evaluation value described later is the correction condition relating to rotation about the y-axis, and
Among the rotation angles Δγ 1 ° to Δγ 5 around the axis, the one having the largest evaluation value described later is the correction condition related to rotation about the z-axis.

【0102】画像の倍率変換に関わる候補条件として
は、画像の拡大率を段階的に定めた複数個例えば5個の
変換倍率K1 〜K5 と、画像の縮小率を段階的に定めた
複数個例えば5個の変換倍率k1 〜k5 とを記憶し、従
って画像の倍率変換に関わる候補条件として1種類の変
換倍率を記憶する。
The candidate conditions for the image magnification conversion include a plurality of image magnifications, for example, five conversion magnifications K 1 to K 5, and a plurality of image reduction ratios, stepwise determined. For example, five conversion magnifications k 1 to k 5 are stored, and thus one type of conversion magnification is stored as a candidate condition relating to the magnification conversion of an image.

【0103】変換倍率K1 〜K5 及びk1 〜k5 のうち
後述する評価値が最大となるものが、倍率変換に関わる
修正条件となる。尚、画像の倍率変換は、z軸方向(奥
行き方向)への平行移動と等価である。
Among the conversion magnifications K 1 to K 5 and k 1 to k 5 , the one having the largest evaluation value described later is the correction condition relating to the magnification conversion. Note that the image magnification conversion is equivalent to a parallel movement in the z-axis direction (depth direction).

【0104】対応点探索部32は、走査方向、走査対象
となる画素の階調表現、若しくは、走査対象となる画素
の色を異ならせて複数種の探索条件を設定し、画像変換
後の左右画像を左右探索画像とする。ここでは走査対象
となる画素の階調表現を異ならせて複数種の探索条件を
設定し、画像変換後の左右画像を全面にわたって左右探
索画像とする。
The corresponding point search section 32 sets a plurality of types of search conditions by changing the scanning direction, the gradation expression of the pixel to be scanned, or the color of the pixel to be scanned, and sets the left and right after image conversion. Let the image be a left and right search image. Here, a plurality of types of search conditions are set by changing the gradation expression of pixels to be scanned, and the left and right images after image conversion are set as left and right search images over the entire surface.

【0105】そして対応点探索部32は、探索条件に従
って左右探索画像を走査し、相対応する水平走査線上に
おいて左探索画像の画素特徴と右探索画像の画素特徴と
を比較して画素特徴の差が閾値以下となる左右探索画像
の画素を対応候補点として検出する。さらに対応点探索
部32は各探索条件毎に検出した対応候補点の集合にお
いて共通集合となる対応候補点を対応点として検出す
る。ここでは画素特徴を画素濃度とする。
The corresponding point search unit 32 scans the left and right search images according to the search conditions, compares the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines, and determines the difference between the pixel characteristics. The pixels of the left and right search images for which is less than or equal to the threshold are detected as corresponding candidate points. Further, the corresponding point search unit 32 detects, as corresponding points, corresponding candidate points that become a common set in the set of corresponding candidate points detected for each search condition. Here, the pixel feature is a pixel density.

【0106】例えば第三左メモリ38及び第三右メモリ
40に格納した画像変換後の左画像及び右画像が256
階調の白黒画像である場合に、この256階調の左右画
像を全面にわたって階調変換して32階調の左右画像を
得この32階調の左右画像全面を左右探索画像とする第
一の探索条件を設定する。さらにこの256階調の左右
画像を全面にわたって階調変換して16階調の左右画像
を得この16階調の左右画像を全面にわたって左右探索
画像とする第二の探索条件を設定する。そして第一の探
索条件による32階調の左右探索画像を全面にわたり走
査して、相対応する水平走査線上において画素特徴の差
が閾値以下となる左右探索画像の画素を、第一の探索条
件による対応候補点として検出する。さらに第二の探索
条件による16階調の左右探索画像を全面にわたり走査
して、相対応する水平走査線上において画素特徴の差が
閾値以下となる左右探索画像の画素を、第二の探索条件
による対応候補点として検出する。然る後、第一の探索
条件で検出した対応候補点の集合と第二の探索条件で検
出した対応候補点の集合とにおいて共通集合となる対応
候補点を対応点として検出する。
For example, the converted left and right images stored in the third left memory 38 and the third right memory 40 are 256
In the case of a monochrome black and white image, the left and right images of 256 tones are subjected to grayscale conversion over the entire surface to obtain a left and right image of 32 tones. Set search conditions. Further, the left and right images of 256 gradations are subjected to gradation conversion over the entire surface to obtain a left and right image of 16 gradations, and a second search condition for setting the left and right images of 16 gradations as a left and right search image over the entire surface is set. Then, the left-right search image of 32 tones according to the first search condition is scanned over the entire surface, and pixels of the left-right search image in which the difference in pixel characteristics is equal to or less than the threshold on the corresponding horizontal scanning line are determined by the first search condition. It is detected as a correspondence candidate point. Further, the left and right search images of 16 gradations according to the second search condition are scanned over the entire surface, and the pixels of the left and right search image in which the difference of the pixel characteristics is equal to or less than the threshold value on the corresponding horizontal scanning line are determined by the second search condition. It is detected as a correspondence candidate point. Thereafter, a corresponding candidate point that is a common set between the set of corresponding candidate points detected under the first search condition and the set of corresponding candidate points detected under the second search condition is detected as a corresponding point.

【0107】尚、画素特徴としては、画素濃度のほか種
々のものを用いることができる。例えば、画素を濃度に
応じてグループ化しひとつのグループの画素の集まりを
パターンと表すものとすれば、対応点探索部32は左右
探索画像の各画素毎に画素が属するパターンの幅や長さ
を検出し、当該幅や長さを画素特徴として用いるように
してもよい。この場合、左探索画像の画素特徴を検出す
るときは左探索画像を走査し右探索画像の画素特徴を検
出するときは右探索画像を走査する。そして画素特徴を
検出しようとする画素を通る水平走査線上において当該
画素が属するパターンの幅を検出する。また画素特徴を
検出しようとする画素を通る垂直走査線上において当該
画素が属するパターンの長さを検出する。
As the pixel characteristics, various types other than the pixel density can be used. For example, if pixels are grouped according to density and a group of pixels of one group is represented as a pattern, the corresponding point searching unit 32 determines the width and length of the pattern to which the pixel belongs for each pixel of the left and right search images. The width and length may be detected and used as the pixel feature. In this case, the left search image is scanned when detecting the pixel characteristics of the left search image, and the right search image is scanned when detecting the pixel characteristics of the right search image. Then, the width of a pattern to which the pixel belongs is detected on a horizontal scanning line passing through the pixel whose pixel characteristic is to be detected. Further, the length of a pattern to which the pixel belongs is detected on a vertical scanning line passing through the pixel whose pixel characteristic is to be detected.

【0108】次に対応点探索部32は、対応点検出結果
を用いて左右探索画像における位相差の判明点及び不明
点を検出する。ここでは、対応点の位相差に基づいて対
応不明点(対応点として検出されなかった画素)に対し
て位相差を推定し当て嵌める。位相差を当て嵌めること
ができなかった対応不明点を位相差不明点として検出す
る。然る後、対応不明点に当て嵌めた位相差に関して、
位相差が正しいか否かを検定する。そしてこの検定によ
り正しいと判定された位相差の対応不明点を位相差判明
点として、正しくないと判定された位相差の対応不明点
を位相差不明点として検出する。
Next, the corresponding point search section 32 detects a known point and an unknown point of the phase difference in the left and right search images using the corresponding point detection result. Here, based on the phase difference between the corresponding points, the phase difference is estimated and applied to an unknown correspondence point (pixel not detected as the corresponding point). The corresponding unknown points to which the phase difference could not be applied are detected as the phase difference unknown points. Then, regarding the phase difference applied to the unknown point,
Test whether the phase difference is correct. Then, the unknown point of the correspondence of the phase difference determined to be correct by this test is detected as a known point of the phase difference, and the unknown point of the correspondence of the phase difference determined to be incorrect is detected as the unknown point of the phase difference.

【0109】尚、位相差判明点及び位相差不明点の検出
は、ここで述べた以外の種々の方法で行なうことができ
る。例えば、対応不明点に対する位相差の当て嵌めを行
なわず、左右探索画像において対応点となる画素を位相
差判明点として及び対応不明点となる画素を位相差不明
点として検出するようにしても良い。
The detection of the phase difference known point and the phase difference unknown point can be performed by various methods other than those described here. For example, without performing the fitting of the phase difference to the unknown correspondence point, the pixel serving as the corresponding point in the left and right search images may be detected as the known phase difference point and the pixel serving as the unknown correspondence point may be detected as the unknown phase difference point. .

【0110】評価値算出部34は、左右探索画像におけ
る位相差判明点の検出率を用いて、候補条件の種類毎に
候補条件の評価値を求める。ここでは左右探索画像にお
ける位相差判明点の検出率を、各候補条件毎に求め、当
該検出率を候補条件の評価値とする。
The evaluation value calculation unit 34 obtains the evaluation value of the candidate condition for each type of the candidate condition using the detection rate of the phase difference found point in the left and right search images. Here, the detection rate of the phase difference found point in the left and right search images is obtained for each candidate condition, and the detection rate is used as the evaluation value of the candidate condition.

【0111】最大値検出部36は、候補条件の種類毎
に、最大の評価値を得た候補条件を修正条件として検出
する。ここでは最大値検出部36は、検出した修正条件
を条件設定部28に記憶させる。
The maximum value detecting section 36 detects, for each type of candidate condition, a candidate condition having the highest evaluation value as a correction condition. Here, the maximum value detecting unit 36 causes the condition setting unit 28 to store the detected correction condition.

【0112】図2は請求項1の発明の第一実施形態の動
作の流れを示す図である。同図においては、複数種類の
候補条件及び修正条件のうち1種類に着目し、当該着目
種について、候補条件を用いて修正条件を検出する場合
の動作の流れを示す。
FIG. 2 is a diagram showing a flow of the operation of the first embodiment of the present invention. FIG. 7 shows a flow of operation in a case where attention is paid to one of a plurality of types of candidate conditions and correction conditions, and a correction condition is detected using the candidate conditions for the type of interest.

【0113】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかの1種類を着目種の候補条件
として設定し(S1)、然る後、条件設定部28は着目
種の複数個の候補条件のなかから選択した1個の候補条
件(選択候補条件)を出力する(S2)。例えば着目種
の候補条件をx軸方向への平行移動に関わる候補条件Δ
1 〜Δx5 とし、着目種の複数個の候補条件Δx1
Δx5 のなかから選択した1個の候補条件Δx1 を出力
する。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), first, the condition setting section 28 sets one of a plurality of types of candidate conditions as a candidate condition of a target type (S1). Thereafter, the condition setting unit 28 outputs one candidate condition (selected candidate condition) selected from the plurality of candidate conditions of the target species (S2). For example, the candidate condition of the target species is changed to a candidate condition Δ related to the parallel movement in the x-axis direction.
and x 1 ~Δx 5, focusing species of a plurality of candidate conditions Δx 1 ~
One candidate condition Δx 1 selected from Δx 5 is output.

【0114】次に画像変換部30は、条件設定部28か
ら入力した選択候補条件に従って左画像及び右画像の一
方を画像変換する(S3)。
Next, the image conversion unit 30 converts one of the left image and the right image according to the selection candidate condition input from the condition setting unit 28 (S3).

【0115】図3は画像変換前(画像変換部が画像変換
を終了する前)の左右画像を格納する第一左右メモリの
説明に供する図であって、図4は画像変換後(画像変換
部が画像変換を終了した後)の左右画像を格納する第三
左右メモリの説明に供する図である。
FIG. 3 is a diagram for explaining a first left and right memory for storing left and right images before image conversion (before the image conversion unit finishes image conversion). FIG. 4 is a diagram for use after image conversion (image conversion unit). FIG. 11 is a diagram provided for explanation of a third left and right memory for storing left and right images after image conversion is completed.

【0116】図3(A)及び図3(B)にも示すよう
に、第一左メモリ14の格納領域14a上及び第一右メ
モリ16の格納領域16a上にはそれぞれ、画素単位に
x、y座標を設定してあり、左カメラ10で撮影した画
像変換前の左画像42を第一左メモリ14に、また右カ
メラ12で撮影した画像変換前の右画像44を第一右メ
モリ16に格納する。
As shown in FIGS. 3A and 3B, the storage area 14a of the first left memory 14 and the storage area 16a of the first right memory 16 respectively have x, The y-coordinate is set, and the left image 42 before image conversion captured by the left camera 10 is stored in the first left memory 14, and the right image 44 before image conversion captured by the right camera 12 is stored in the first right memory 16. Store.

【0117】また図4(A)及び図4(B)にも示すよ
うに、第三左メモリ38の格納領域38a上及び第三右
メモリ40の格納領域40a上にもそれぞれ、画素単位
にx、y座標を設定してあり、画像変換後の左画像42
を第三メモリ38に、また画像変換部30が画像変換後
の右画像44を第三右メモリ40に格納する。
As shown in FIGS. 4A and 4B, x and x are also stored in the storage area 38a of the third left memory 38 and the storage area 40a of the third right memory 40 in pixel units. , Y coordinates are set, and the left image 42 after image conversion is set.
In the third memory 38, and the image conversion unit 30 stores the right image 44 after the image conversion in the third right memory 40.

【0118】ここで左画像42は画像変換せず右画像4
4は画像変換するものとすれば、画像変換部30は左カ
メラ10からの左画像42を、第一左メモリ14から読
み出し画像変換せずに第三左メモリ38に格納する。こ
れと共に画像変換部30は右カメラ12からの右画像4
4を、第一右メモリ16から読み出し画像変換せずに第
三右メモリ40に格納する。画像変換は条件設定部28
から入力した候補条件に応じて行なう。例えば候補条件
Δx1 を入力した場合は、右画像44の各画素をx軸方
向へΔx1 だけ平行移動する画像変換を行ない、画像変
換した右画像44を第三右メモリ40に格納する。
Here, the left image 42 is converted to the right image 4 without image conversion.
Assuming that image conversion 4 is for image conversion, the image conversion unit 30 reads the left image 42 from the left camera 10 from the first left memory 14 and stores it in the third left memory 38 without image conversion. At the same time, the image conversion unit 30 outputs the right image 4 from the right camera 12.
4 is read from the first right memory 16 and stored in the third right memory 40 without image conversion. Image conversion is performed by the condition setting unit 28
This is performed according to the candidate condition input from. For example, when the candidate condition Δx 1 is input, image conversion is performed to translate each pixel of the right image 44 in the x-axis direction by Δx 1 , and the converted right image 44 is stored in the third right memory 40.

【0119】尚、候補条件として画像の回転或は倍率変
換に関わる候補条件を設定している場合に、左画像を画
像変換するときは、図3(A)にも示すように、左カメ
ラ10のレンズ光軸に対応する左画像中央の画素を、回
転或は倍率変換の中心として、画像変換を行なう。同様
に右画像を画像変換するときは、図3(B)にも示すよ
うに、右カメラ12のレンズ光軸に対応する右画像中央
の画素を、回転或は倍率変換の中心として、画像変換を
行なう。
When a candidate condition relating to rotation or magnification conversion of an image is set as a candidate condition and the left image is to be image-converted, as shown in FIG. The image conversion is performed using the pixel at the center of the left image corresponding to the lens optical axis as the center of rotation or magnification conversion. Similarly, when performing image conversion on the right image, as shown in FIG. 3B, image conversion is performed by using the pixel at the center of the right image corresponding to the lens optical axis of the right camera 12 as the center of rotation or magnification conversion. Perform

【0120】次に対応点探索部32は、走査対象となる
画素の階調表現を異ならせて複数種の探索条件を設定す
ると共に、画像変換後の左右画像全面を左右探索画像と
し、各探索条件毎に、左右探索画像における対応候補点
を検出する(S4)。
Next, the corresponding point search unit 32 sets a plurality of types of search conditions by changing the gradation expression of the pixel to be scanned, and sets the entire left and right image after image conversion as a left and right search image. Corresponding candidate points in the left and right search images are detected for each condition (S4).

【0121】例えば第三左メモリ38及び第三右メモリ
40に格納した画像変換後の左画像42及び右画像44
を256階調の白黒画像とした場合、この256階調の
左画像42及び右画像44を階調変換して32階調の左
画像42及び右画像44を得、この32階調の左画像4
2及び右画像44を左探索画像及び右探索画像とする第
一の探索条件を設定する。さらにこの256階調の左画
像42及び右画像44を階調変換して16階調の左画像
42及び右画像44を得、この16階調の左画像42及
び右画像44を左探索画像及び右探索画像とする第二の
探索条件を設定する。
For example, the converted left image 42 and right image 44 stored in the third left memory 38 and the third right memory 40, respectively.
Is a black and white image of 256 gradations, the left image 42 and the right image 44 of 256 gradations are gradation-converted to obtain a left image 42 and a right image 44 of 32 gradations. 4
A first search condition for setting the second and right images 44 as a left search image and a right search image is set. Further, the left image 42 and the right image 44 of 256 gradations are subjected to gradation conversion to obtain a left image 42 and a right image 44 of 16 gradations. A second search condition for a right search image is set.

【0122】対応点探索部32は左右探索画像において
相対応する水平走査線L(垂直方向の座標yが同じ水平
走査線L。図4(A)、図4(B)参照。)上の1ライ
ン分の画像を格納する左右ラインメモリを有し、第一の
探索条件で対応候補点を検出するときは、水平走査線L
上の256階調の左画像42を第三左メモリ38から読
み出して32階調に変換し32階調に変換した1ライン
分の左画像42を左ラインメモリに格納する。これと共
に水平走査線L上の256階調の右画像44を第三右メ
モリ40から読み出して32階調に変換し32階調に変
換した1ライン分の右画像44を右ラインメモリに格納
する。
The corresponding point search section 32 is a horizontal scanning line L (horizontal scanning line L having the same vertical coordinate y; see FIGS. 4A and 4B) corresponding to the left and right search images. It has left and right line memories for storing the image of the line, and when detecting the corresponding candidate point under the first search condition, the horizontal scanning line L
The upper left image 42 of 256 tones is read from the third left memory 38, converted to 32 tones, and the left image 42 for one line converted to 32 tones is stored in the left line memory. At the same time, the right image 44 of 256 gradations on the horizontal scanning line L is read from the third right memory 40, converted to 32 gradations, and the right image 44 for one line converted to 32 gradations is stored in the right line memory. .

【0123】そして対応点探索部32は、第一の探索条
件による1ライン分の左画像42及び右画像44を走査
する。ここで階調変換した1ライン分の左画像42及び
右画像44の一方の画素を着目点、及び、他方の画素を
対照点とし、水平走査線L上において所定の主走査方向
例えば右方向へ順次に数えて第i番目の着目点に対し、
水平走査線L上の対照点を所定の主走査方向例えば右方
向へ順次に走査してゆく。第i番目の着目点に対し画素
特徴例えば画素濃度の差が閾値以下となる対照点を検出
することなく対照点の走査を終了したら、次に第i+1
番目の着目点に対し対照点の走査を行なう。また第i番
目の着目点に対し画素特徴の差が閾値以下となる対照点
を検出したら、当該第i番目の着目点と対照点とを対応
候補点として検出し、然る後、第i+1番目の着目点に
対し対照点の走査を行なう。
Then, the corresponding point search section 32 scans the left image 42 and the right image 44 for one line according to the first search condition. Here, one pixel of the left image 42 and the right image 44 for one line for which gradation conversion has been performed is set as a point of interest, and the other pixel is set as a control point. For the i-th point of interest counted sequentially,
The control point on the horizontal scanning line L is sequentially scanned in a predetermined main scanning direction, for example, rightward. When the scanning of the control point is completed without detecting a control point having a pixel characteristic, for example, a difference in pixel density equal to or smaller than a threshold value, with respect to the i-th point of interest, the (i + 1) th point
The control point is scanned with respect to the third point of interest. When a control point at which the difference of the pixel feature with respect to the i-th point of interest is smaller than or equal to the threshold is detected, the i-th point of interest and the control point are detected as corresponding candidate points, and then the (i + 1) -th point of interest is detected. Is scanned for the point of interest.

【0124】このように相対応する水平走査線L上の左
右探索画像を走査し、画素特徴の差が閾値以下となった
ら次の着目点を走査して、対応候補点を検出する。そし
て左右探索画像全面にわたって水平走査線L上の対応候
補点の検出を終了したら、第一の探索条件による対応候
補点の検出を終了する。
As described above, the left and right search images on the corresponding horizontal scanning line L are scanned, and when the difference between the pixel characteristics becomes equal to or smaller than the threshold value, the next point of interest is scanned to detect a corresponding candidate point. When the detection of the corresponding candidate points on the horizontal scanning line L is completed over the entire left and right search image, the detection of the corresponding candidate points based on the first search condition is ended.

【0125】第二の探索条件で対応候補点を検出すると
きも第一の探索条件の場合と同様にして、相対応する水
平走査線L上の左右探索画像を走査し、画素特徴の差が
閾値以下となったら次の着目点を走査して、対応候補点
を検出する。そして左右探索画像全面にわたって水平走
査線L上の対応候補点の検出を終了したら、第二の探索
条件による対応候補点の検出を終了する。
When the corresponding candidate point is detected under the second search condition, the left and right search images on the corresponding horizontal scanning line L are scanned in the same manner as in the first search condition, and the difference between the pixel characteristics is detected. When the value becomes equal to or smaller than the threshold value, the next point of interest is scanned to detect a corresponding candidate point. When the detection of the corresponding candidate points on the horizontal scanning line L is completed over the entire left and right search image, the detection of the corresponding candidate points based on the second search condition is ended.

【0126】全種類の探索条件について、左右探索画像
全面にわたり水平走査線L上の対応候補点の検出を終了
したら、次に対応点探索部32は、各探索条件毎に得た
対応候補点の集合において共通集合となる対応候補点を
対応点として検出する(S5)。
After the detection of the corresponding candidate points on the horizontal scanning line L over the entire left and right search images for all types of search conditions, the corresponding point search unit 32 next calculates the corresponding candidate points obtained for each search condition. Corresponding candidate points that become a common set in the set are detected as corresponding points (S5).

【0127】前述のように相対応する水平走査線L上の
左右探索画像を走査し、画素特徴の差が閾値以下となっ
たら次の着目点を走査して、対応候補点を検出するの
で、各探索条件毎に得た対応候補点の集合において共通
集合となる対応候補点は、確率的に確からしい対応候補
点の集まりとなる。
As described above, the left and right search images on the corresponding horizontal scanning line L are scanned, and when the difference between the pixel characteristics becomes equal to or less than the threshold value, the next point of interest is scanned to detect a corresponding candidate point. The corresponding candidate points that become a common set in the set of corresponding candidate points obtained for each search condition are a group of corresponding candidate points that are likely to be stochastic.

【0128】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出し、位相
差判明点或はこれに加え位相差不明点の検出個数を評価
値算出部34に対し出力する(S6)。
Next, the corresponding point search section 32 detects the phase difference found point and the phase difference unknown point using the corresponding point detection result, and evaluates the phase difference found point or the number of detected phase difference unknown points. Output to the value calculation unit 34 (S6).

【0129】ここで検出する位相差判明点及び位相差不
明点は、現在の左右探索画像となっている左右画像全面
に関わるものである。
Here, the detected phase difference points and the unknown phase difference points relate to the entire left and right images that are the current left and right search images.

【0130】またここでは、対応点の位相差に基づいて
対応不明点(対応点として検出されなかった画素)に対
して位相差を推定し当て嵌める。位相差を当て嵌めるこ
とができなかった対応不明点を位相差不明点として検出
する。然る後、対応不明点に当て嵌めた位相差が、正し
いか否かを検定する。そしてこの検定により正しいと判
定された位相差の対応不明点を位相差判明点とし、正し
くないと判定された位相差の対応不明点を位相差不明点
として検出する。
Here, based on the phase difference between corresponding points, the phase difference is estimated and applied to an unknown correspondence point (pixel not detected as a corresponding point). The corresponding unknown points to which the phase difference could not be applied are detected as the phase difference unknown points. Thereafter, it is checked whether the phase difference applied to the correspondence unknown point is correct. Then, the unknown point of the correspondence of the phase difference determined to be correct by this test is determined to be a known point of the phase difference, and the unknown point of correspondence of the phase difference determined to be incorrect is detected as the unknown point of the phase difference.

【0131】次に評価値算出部32は、位相差判明点の
検出個数を用いて位相差判明点の検出率を求め、(S
2)で条件設定部28が出力した選択候補条件の評価値
として当該位相差判明点の検出率を最大値検出部36に
格納する(S7)。
Next, the evaluation value calculation unit 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points, and calculates (S
The detection rate of the phase difference found point is stored in the maximum value detection unit 36 as the evaluation value of the selection candidate condition output by the condition setting unit 28 in 2) (S7).

【0132】ここで求める位相差判明点の検出率は、現
在の左右探索画像となっている左右画像全面に関わるも
のである。この場合の位相差判明点の検出率は、例え
ば、 (位相差判明点の検出率)=(左探索画像における位相
差判明点の検出個数)/(左カメラで撮影した1枚の左
画像の全画素数)、 (位相差判明点の検出率)=(左探索画像における位相
差判明点の検出個数)/(左探索画像における位相差判
明点及び位相差不明点の検出個数の和)、 或は、(位相差判明点の検出率)=(右探索画像におけ
る位相差判明点の検出個数)/(右カメラで撮影した1
枚の右画像の全画素数)、 (位相差判明点の検出率)=(右探索画像における位相
差判明点の検出個数)/(右探索画像における位相差判
明点及び位相差不明点の検出個数の和)と表すことがで
きる。
The detection rate of the phase difference found point obtained here relates to the entire left and right image which is the current left and right search image. In this case, the detection rate of the phase difference found point is, for example, (detection rate of the phase difference found point) = (the number of detected phase difference found points in the left search image) / (one left image captured by the left camera) (The number of all pixels), (detection rate of phase difference found point) = (number of detected phase difference point in left search image) / (sum of phase difference found point and phase difference unknown point in left search image), Alternatively, (detection rate of phase difference found point) = (detected number of phase difference found point in right search image) / (1 captured by right camera)
(Total number of pixels of the right image), (Detection rate of phase difference found point) = (Number of detected phase difference point in right search image) / (Detection of phase difference found point and phase difference unknown point in right search image) (Sum of the numbers).

【0133】次に条件設定部28は着目種の全ての候補
条件を選択し終えたか否かを判定する(S8)。
Next, the condition setting section 28 determines whether or not all the candidate conditions of the target species have been selected (S8).

【0134】条件設定部28が着目種の全ての候補条件
を選択し終えていないと判定すると、条件設定部28は
着目種の次の候補条件を選択し(S9)、然る後、選択
した候補条件を出力する(S2)。
When the condition setting unit 28 determines that all the candidate conditions of the target species have not been selected, the condition setting unit 28 selects the next candidate condition of the target species (S9), and then selects the next candidate condition. The candidate condition is output (S2).

【0135】例えば着目種の候補条件Δx1 〜Δx5
うちΔx1 についてのみ選択し終えており、Δx2 〜Δ
5 についての選択を終えていなければ、残りの候補条
件Δx2 〜Δx5 のなかから選択した一つの候補条件Δ
2 を選択し、選択した候補条件Δx2 を出力する。
For example, only the selection of Δx 1 among the candidate conditions Δx 1 to Δx 5 of the target species has been completed, and Δx 2 to Δx 2 have been selected.
If not finished the selection for x 5, one of the candidates conditions selected from among the remaining candidate condition Δx 2 ~Δx 5 Δ
Select x 2, and outputs the candidate condition [Delta] x 2 selected.

【0136】また条件設定部28が着目種の全ての候補
条件を選択し終えたと判定すると、最大値検出部36は
着目種の各候補条件毎に得た評価値のなかから最大の評
価値を検出し、最大の評価値を得た候補条件を修正条件
として検出する。そして最大値検出部28は当該着目種
の修正条件を条件設定部28に格納する(S10)。然
る後、修正条件検出装置18は、当該着目種の修正条件
を検出するための処理を終了する(終了)。
When the condition setting unit 28 determines that all the candidate conditions of the target species have been selected, the maximum value detecting unit 36 determines the maximum evaluation value among the evaluation values obtained for each candidate condition of the target species. The candidate condition that has been detected and obtained the maximum evaluation value is detected as a correction condition. Then, the maximum value detecting unit 28 stores the correction condition of the target type in the condition setting unit 28 (S10). Thereafter, the correction condition detection device 18 ends the processing for detecting the correction condition of the target type (end).

【0137】例えば着目種の全ての候補条件Δx1 〜Δ
5 を選択し終えたならば、着目種の候補条件Δx1
Δx5 の各候補条件毎に得た評価値のなかから最大の評
価値を検出し、最大の評価値を得た候補条件例えばΔx
4 を当該着目種の修正条件として検出する。
For example, all the candidate conditions Δx 1
When you are finished selecting the x 5, focusing species of candidate conditions Δx 1 ~
Detecting the maximum evaluation value from among the evaluation values obtained for each candidate condition of [Delta] x 5, candidate condition for example [Delta] x to give a maximum evaluation value
4 is detected as the correction condition of the target species.

【0138】修正条件検出装置18は、x軸方向への平
行移動量、y軸方向への平行移動量、x軸回りの回転角
度、y軸回りの回転角度、z軸回りの回転角度及び変換
倍率の各種類の候補条件毎に、上述したS1〜S10の
処理を行ない、そして候補条件の各種類毎に修正条件を
検出する。
The correction condition detecting device 18 calculates the parallel movement amount in the x-axis direction, the parallel movement amount in the y-axis direction, the rotation angle around the x-axis, the rotation angle around the y-axis, the rotation angle around the z-axis, and the conversion angle. The processing of S1 to S10 described above is performed for each type of candidate condition of the magnification, and a correction condition is detected for each type of candidate condition.

【0139】図5は修正条件検出の説明に供する図であ
る。同図においては、縦軸に候補条件の評価値及び横軸
にx軸方向への平行移動量に関わる候補条件を取って示
してある。
FIG. 5 is a diagram for explaining the detection of the correction condition. In the figure, the vertical axis represents the evaluation value of the candidate condition, and the horizontal axis represents the candidate condition relating to the amount of translation in the x-axis direction.

【0140】着目種の各候補条件Δx1 〜Δx5 毎に個
別に、画像変換を行なって得た評価値は、位相差判明点
の検出率を用いて得たものである。従って画像変換後の
左右画像においてエピポーララインが一致した状態に近
く従ってエピポーララインのずれ量が小さければ評価値
は大きくなり、また画像変換後の左右画像においてエピ
ポーララインのずれ量が大きければ評価値は小さくな
る。修正条件の検出はこのような現象を利用したもので
あり、従って着目種の複数個の候補条件のうち最大の評
価値を得た候補条件を修正条件として検出することによ
り、エピポーラライン合わせに適した修正条件を検出で
きる。
The evaluation value obtained by performing image conversion individually for each of the candidate conditions Δx 1 to Δx 5 of the kind of interest is obtained using the detection rate of the phase difference known point. Therefore, the evaluation value increases if the epipolar line shift amount is small in the left and right images after image conversion and the epipolar line shift amount is small, and the evaluation value is large if the epipolar line shift amount in the left and right images after image conversion is large. Become smaller. The detection of the correction condition utilizes such a phenomenon. Therefore, by detecting, as a correction condition, a candidate condition having a maximum evaluation value among a plurality of candidate conditions of a target type, it is suitable for epipolar line alignment. Corrected condition can be detected.

【0141】候補条件の各種類毎に用意する複数個の候
補条件において、候補条件の変化の幅を大きくし過ぎる
と、エピポーラライン合わせに適した修正条件を検出す
ることが難しくなる。そこでこの点を考慮し、候補条件
の各種類毎に用意する複数個の候補条件においては、エ
ピポーラライン合わせに適した変化の幅で、段階的に値
を異ならせた複数個の候補条件を、用意する。
In a plurality of candidate conditions prepared for each type of candidate condition, if the width of change of the candidate condition is too large, it becomes difficult to detect a correction condition suitable for epipolar line alignment. In consideration of this point, in a plurality of candidate conditions prepared for each type of the candidate condition, a plurality of candidate conditions having different values in a stepwise manner with a width of change suitable for epipolar line alignment, prepare.

【0142】例えば、x軸方向への平行移動に関わる候
補条件Δx1 〜Δx5 を1/3画素間隔で段階的に異な
らせ、x軸回りの回転に関わる候補条件Δα1 〜Δα5
を1°間隔で段階的に異ならせ、倍率変換に関わる候補
条件ΔK1 〜ΔK5 及びΔk1 〜Δk5 を1%間隔で段
階的に異ならせる。
For example, the candidate conditions Δx 1 to Δx 5 relating to the parallel movement in the x-axis direction are changed stepwise at intervals of 1/3 pixel, and the candidate conditions Δα 1 to Δα 5 relating to the rotation around the x-axis.
The stepwise varied at 1 ° intervals, varying the candidate condition ΔK 1 ~ΔK 5 and Δk 1 ~Δk 5 related to magnification conversion in steps of 1% intervals.

【0143】次に対応点の位相差検出及び対応不明点の
位相差当て嵌めにつき説明する。対応点探索部32は、
各探索条件毎に得た対応候補点の集合において共通集合
となる対応候補点を対応点として検出するので、図4
(A)及び図4(B)にも示すように、左右探索画像に
おいて検出された対応点a、bは水平走査線L上の画素
となる。
Next, detection of the phase difference at the corresponding point and fitting of the phase difference at the unknown point will be described. The corresponding point search unit 32
Since corresponding candidate points that become a common set in the set of corresponding candidate points obtained for each search condition are detected as corresponding points, FIG.
4A and 4B, the corresponding points a and b detected in the left and right search images are pixels on the horizontal scanning line L.

【0144】位相差は、|(左探索画像における対応点
aのx座標)−(右探索画像における対応点のx座標)
|で表され、例えば図4(A)及び図4(B)に示すよ
うに、対応点aが座標(5、4)に位置し対応点bが座
標(8、4)に位置する場合には、対応点a及びbの位
相差としてそれぞれ|5−8|=3を検出することとな
る。
The phase difference is | (x coordinate of corresponding point a in left search image) − (x coordinate of corresponding point in right search image)
When the corresponding point a is located at the coordinates (5, 4) and the corresponding point b is located at the coordinates (8, 4), as shown in FIGS. Will detect | 5-8 | = 3 as the phase difference between the corresponding points a and b, respectively.

【0145】図6は対応不明点の位相差当て嵌めの説明
に供する図である。対応点探索部32は、検出した対応
点の位相差を用いて、左右探索画像における対応不明点
(対応点として検出されなかった画素)に対し、位相差
を推定し当て嵌める。
FIG. 6 is a diagram for explaining the fitting of the phase difference at the unknown point. The corresponding point search unit 32 estimates and fits the phase difference to an unknown correspondence point (pixel not detected as a corresponding point) in the left and right search images using the detected phase difference of the corresponding point.

【0146】位相差を推定し当て嵌める方法には種々の
方法を用いることができるが、ここでは対応点に接する
若しくは対応点近傍に位置する対応不明点がある場合
に、当該対応不明点の位相差は対応点の位相差に等しい
と推定し、この対応点の位相差を、当該対応不明点に当
て嵌める。具体的には、左探索画像若しくは右探索画像
における対応点の座標を(x1 、y1 )、左探索画像若
しくは右探索画像における対応不明点の座標を(x2
2 )とするとき、対応不明点の座標(x2 、y2
が、x2 =x1 かつy1 −α≦y2 ≦y1 +αを満足す
る場合、若しくは、x1 −β≦x2 ≦x1 +βかつy2
=y1 を満足する場合に、座標(x1 、y1)の対応点
の位相差を、座標(x2 、y2 )の対応不明点の位相差
とする。α、βは自然数であり、例えばα=β=2とす
る。対応不明点の周囲に複数個の対応点が存在する場合
には、当該不明点に対し複数個の位相差を当て嵌めるこ
ととなる。
Various methods can be used as a method of estimating and fitting the phase difference. In this case, if there is an unknown correspondence point that is in contact with or near the corresponding point, the position of the unknown correspondence point is determined. The phase difference is estimated to be equal to the phase difference of the corresponding point, and the phase difference of the corresponding point is applied to the corresponding unknown point. Specifically, the coordinates of the corresponding point in the left search image or the right search image are (x 1 , y 1 ), and the coordinates of the unknown point in the left search image or the right search image are (x 2 ,
y 2 ), the coordinates of the unknown point (x 2 , y 2 )
Satisfies x 2 = x 1 and y 1 −α ≦ y 2 ≦ y 1 + α, or x 1 −β ≦ x 2 ≦ x 1 + β and y 2
= A is satisfied y 1, the phase difference between corresponding points of the coordinates (x 1, y 1), the phase difference of the corresponding point of uncertainty in the coordinates (x 2, y 2). α and β are natural numbers, for example, α = β = 2. When there are a plurality of corresponding points around the unknown point, a plurality of phase differences are applied to the unknown point.

【0147】例えば図6において、α=β=2とした場
合に、x2 =x1 かつy1 −α≦y2 ≦y1 +αを満足
する座標(x2 、y2 )の画素と、x1 −β≦x2 ≦x
1 +βかつy2 =y1 を満足する座標(x2 、y2 )の
画素とを、ハッチングを付して示してある。これらハッ
チングを付した画素が対応不明点である場合に、当該対
応不明点に対して、座標(x1 、y1 )の対応点の位相
差を当て嵌める。図中、第三左メモリ38において1画
素分の格納領域38aを1マスの矩形で表してある。
For example, in FIG. 6, when α = β = 2, a pixel at coordinates (x 2 , y 2 ) satisfying x 2 = x 1 and y 1 −α ≦ y 2 ≦ y 1 + α, x 1 -β ≦ x 2 ≦ x
Pixels having coordinates (x 2 , y 2 ) satisfying 1 + β and y 2 = y 1 are indicated by hatching. If the hatched pixels are unknown correspondence points, the phase difference between the corresponding points at the coordinates (x 1 , y 1 ) is applied to the unknown correspondence points. In the figure, the storage area 38a for one pixel in the third left memory 38 is represented by a rectangle of one square.

【0148】次に対応不明点に当て嵌めた位相差の検定
につき説明する。位相差を検定する方法としては種々の
方法を用いることができるが、ここでは次に述べるよう
に検定を行なう。
Next, a description will be given of a test of the phase difference applied to the unknown correspondence point. Various methods can be used to test the phase difference. Here, the test is performed as described below.

【0149】左探索画像において対応不明点に当て嵌め
た位相差を検定するときは、左探索画像中の位相差判明
点を検定点とすると共に、右探索画像において検定点に
対応する位置から検定点に当て嵌めた位相差だけずれた
位置の、右探索画像中の画素を参照点とする。そして左
探索画像中の検定点の濃度と右探索画像中の参照点の濃
度との差が閾値以下となるとき当該検定点に当て嵌めた
位相差は正しいと判定する。また左探索画像中の検定点
の濃度と右探索画像中の参照点の濃度との差が閾値を越
えるとき当該検定点に当て嵌めた位相差は正しくないと
判定する。
When testing the phase difference applied to the unknown correspondence point in the left search image, the phase difference found point in the left search image is used as the test point, and the test is performed from the position corresponding to the test point in the right search image. A pixel in the right search image at a position shifted by the phase difference applied to the point is set as a reference point. When the difference between the density of the test point in the left search image and the density of the reference point in the right search image is equal to or smaller than the threshold, it is determined that the phase difference applied to the test point is correct. When the difference between the density of the test point in the left search image and the density of the reference point in the right search image exceeds a threshold value, it is determined that the phase difference applied to the test point is not correct.

【0150】右探索画像において対応不明点に当て嵌め
た位相差を検定するときは、右探索画像中の位相差判明
点を検定点とすると共に、左探索画像において検定点に
対応する位置から検定点に当て嵌めた位相差だけずれた
位置の、左探索画像中の画素を参照点とする。そして右
探索画像中の検定点の濃度と左探索画像中の参照点の濃
度との差が閾値以下となるとき当該検定点に当て嵌めた
位相差は正しいと判定する。また右探索画像中の検定点
の濃度と左探索画像中の参照点の濃度との差が閾値を越
えるとき当該検定点の位相差は正しくないと判定する。
When testing the phase difference applied to the unknown correspondence point in the right search image, the phase difference found point in the right search image is used as the test point, and the test is performed from the position corresponding to the test point in the left search image. A pixel in the left search image at a position shifted by the phase difference applied to the point is set as a reference point. When the difference between the density of the test point in the right search image and the density of the reference point in the left search image is equal to or smaller than the threshold value, it is determined that the phase difference applied to the test point is correct. When the difference between the density of the test point in the right search image and the density of the reference point in the left search image exceeds a threshold, it is determined that the phase difference of the test point is not correct.

【0151】次に図7及び図8を参照して、左探索画像
において対応不明点に当て嵌めた位相差を検定する処理
につき説明する。図7は対応点探索部が行なう位相差検
定処理の流れを示す図である。図8は左探索画像につい
て位相差検定を行なう場合の、検定点と参照点との位置
関係を説明するための図である。
Next, with reference to FIG. 7 and FIG. 8, a description will be given of a process of testing a phase difference applied to an unknown correspondence point in the left search image. FIG. 7 is a diagram showing the flow of the phase difference test process performed by the corresponding point search unit. FIG. 8 is a diagram for explaining a positional relationship between a test point and a reference point when performing a phase difference test on the left search image.

【0152】対応点探索部32は、左探索画像の対応不
明点に対し位相差の当て嵌めを終了すると、当て嵌めた
位相差の検定を開始し(開始)、まず、左探索画像にお
いて位相差を当て嵌めた全ての対応不明点を、走査し終
えたか否かを判定する(S1)。
When the fitting of the phase difference to the unknown point of the left search image is completed, the corresponding point search unit 32 starts a test of the fitted phase difference (start). It is determined whether or not scanning has been completed for all of the unknown correspondence points to which is applied (S1).

【0153】(1−A)S1で位相差を当て嵌めた全て
の対応不明点を走査し終えていないと判定した場合に
は、対応点探索部32は、左探索画像において位相差を
当て嵌めた対応不明点を検定点とし、検定点の濃度dを
第三左メモリ38から読み出す(S2)。
(1-A) If it is determined in S1 that all the unknown points to which the phase difference has been applied have not been scanned, the corresponding point search unit 32 applies the phase difference in the left search image. The uncertain points that have been determined are used as test points, and the density d of the test points is read from the third left memory 38 (S2).

【0154】次に対応点探索部32は、右探索画像にお
いて検定点に対応する位置から検定点に当て嵌めた位相
差Lだけずれた位置の、右探索画像中の画素を参照点と
し、参照点の濃度Dを第三右メモリ40から読み出す
(S3)。
Next, the corresponding point search section 32 sets a pixel in the right search image at a position shifted from the position corresponding to the test point by the phase difference L applied to the test point in the right search image as a reference point, The density D of the point is read from the third right memory 40 (S3).

【0155】左探索画像における検定点の座標(x0
0 )とするとき、右探索画像における参照点の座標
(x0 −L、y0 )である。例えば図8(A)にも示す
ように左探索画像における検定点の座標(6、6)であ
り当該検定点の位相差L=2である場合には、図8
(B)にも示すように右探索画像における参照点の座標
(4、6)となる。
The coordinates (x 0 ,
y 0 ) is the coordinates (x 0 −L, y 0 ) of the reference point in the right search image. For example, as shown in FIG. 8A, when the coordinates (6, 6) of the test point in the left search image and the phase difference L of the test point are L = 2, FIG.
As shown in (B), the coordinates of the reference point in the right search image are (4, 6).

【0156】次いで対応点探索部32は、読み出した濃
度d、Dの差|d−D|が閾値THL以下となるか否か
を判定する(S4)。
Next, the corresponding point searching section 32 determines whether or not the difference | d−D | between the read densities d and D is equal to or smaller than the threshold value THL (S4).

【0157】S4で濃度差|d−D|は閾値THLを越
えると判定した場合、対応点探索部32は、検定点に当
て嵌めた位相差は正しくないと判定して当該検定点を位
相差不明点として検出し(S5)、然る後、S1の処理
を行なう。
When it is determined in step S4 that the density difference | d−D | exceeds the threshold value THL, the corresponding point searching unit 32 determines that the phase difference applied to the test point is not correct, and It is detected as an unknown point (S5), and then the process of S1 is performed.

【0158】S4で濃度差|d−D|は閾値THL以下
であると判定した場合、対応点探索部32は、検定点に
当て嵌めた位相差は正しいと判定して当該検定点を位相
差判明点として検出し(S6)、然る後、S1の処理を
行なう。上述した位相差検定において、濃度差|d−D
|が閾値THL以下となる検定点及び参照点の組み合わ
せは、対応点となる可能性が確率的に高い画素の組み合
わせであり、従って確率的に確からしい位相差を正しい
と判定できる。
If it is determined in step S4 that the density difference | d−D | is equal to or smaller than the threshold value THL, the corresponding point searching unit 32 determines that the phase difference applied to the test point is correct, and It is detected as a known point (S6), and then the process of S1 is performed. In the above-described phase difference test, the density difference | d−D
The combination of the test point and the reference point where | is equal to or less than the threshold value THL is a combination of pixels having a high probability of becoming a corresponding point, and therefore, it can be determined that a stochastically reliable phase difference is correct.

【0159】検定点に対して複数個の位相差を当て嵌め
ている場合には、各位相差毎に、参照点を得て濃度差|
d−D|が閾値THL以下となるか否かを判定する。例
えば座標(6、6)の検定点に対して2個の位相差2、
1を当て嵌めている場合には、座標(4、6)の参照点
と座標(5、6)の参照点とを得、これら2個の参照点
のそれぞれについて濃度差|d−D|が閾値THL以下
となるか否かを判定する。
When a plurality of phase differences are applied to the test point, a reference point is obtained for each phase difference and the density difference |
It is determined whether d−D | is equal to or less than the threshold value THL. For example, two phase differences 2, with respect to the test point of coordinates (6, 6),
1 is applied, a reference point at coordinates (4, 6) and a reference point at coordinates (5, 6) are obtained, and the density difference | d−D | It is determined whether the difference is equal to or less than the threshold value THL.

【0160】全ての位相差について濃度差|d−D|が
閾値THLを越えた場合には、当該検定点に当て嵌めた
位相差は正しくないと判定し当該検定点を位相差不明点
として検出する。閾値THL以下となった位相差が一個
又は複数個ある場合には、当該検定点に当て嵌めた位相
差は正しいと判定し、当該検定点を位相差判明点として
検出する。
If the density difference | d−D | exceeds the threshold value THL for all phase differences, it is determined that the phase difference applied to the test point is not correct, and the test point is detected as an unknown phase difference point. I do. If there is one or more phase differences that are less than or equal to the threshold value THL, it is determined that the phase difference applied to the test point is correct, and the test point is detected as a phase difference clear point.

【0161】検定点に対し複数個の位相差が当て嵌めら
れている場合でも、各位相差毎に、参照点を得て濃度差
|d−D|が閾値THL以下となるか否かを判定するの
で、確率的に確からしい位相差を当て嵌めた検定点を、
位相差判明点として検出することができる。
Even when a plurality of phase differences are applied to the test point, a reference point is obtained for each phase difference to determine whether or not the density difference | d−D | is less than or equal to the threshold value THL. So, the test point which fit the stochastic phase difference is
It can be detected as a phase difference clear point.

【0162】(1−B)S1で位相差を当て嵌めた全て
の対応不明点を走査し終えたと判定した場合には、左探
索画像の対応不明点に関して位相差検定を終了する(終
了)。
(1-B) If it is determined in S1 that all the unknown points to which the phase difference has been applied have been scanned, the phase difference test is completed for the unknown points in the left search image (end).

【0163】尚、上述した位相差検定に用いる閾値TH
Lは、対応点探索部32において対応点を探索するため
に用いる閾値よりも大きな値とするのが良い。但し、閾
値THLを大きくし過ぎると、正しいと判定される位相
差の確率的な確からしさが低下するので、実用上充分な
確率的確からしさが得られる範囲内の任意好適な値に、
閾値THLを設定する。
The threshold value TH used for the above-described phase difference test
L is preferably set to a value larger than a threshold value used for searching for a corresponding point in the corresponding point search unit 32. However, if the threshold value THL is too large, the stochastic probability of the phase difference determined to be correct decreases, so that a practically sufficient stochastic certainty is obtained.
Set the threshold value THL.

【0164】次に図7及び図9を参照して、右探索画像
において対応不明点に当て嵌めた位相差を検定する処理
につき説明する。図9は右探索画像について位相差検定
を行なう場合の、検定点と参照点との位置関係を説明す
るための図である。
Next, with reference to FIGS. 7 and 9, a description will be given of a process of testing a phase difference applied to an unknown correspondence point in the right search image. FIG. 9 is a diagram for explaining a positional relationship between a test point and a reference point when a phase difference test is performed on the right search image.

【0165】対応点探索部32は、右探索画像の対応不
明点に対し位相差の当て嵌めを終了すると、当て嵌めた
位相差の検定を開始し(開始)、まず、右探索画像にお
いて位相差を当て嵌めた全ての対応不明点を、走査し終
えたか否かを判定する(S1)。
When the fitting of the phase difference to the unknown point of the right search image is completed, the corresponding point search unit 32 starts the test of the fitted phase difference (start). It is determined whether or not scanning has been completed for all of the unknown correspondence points to which is applied (S1).

【0166】(2−A)S1で位相差を当て嵌めた全て
の対応不明点を走査し終えていないと判定した場合に
は、対応点探索部32は、右探索画像において位相差を
当て嵌めた対応不明点を検定点とし、検定点の濃度dを
第三右メモリ40から読み出す(S2)。
(2-A) If it is determined in S1 that all the unknown points to which the phase difference has been applied have not been scanned, the corresponding point search unit 32 applies the phase difference in the right search image. The corresponding unknown point is set as a test point, and the density d of the test point is read from the third right memory 40 (S2).

【0167】次に対応点探索部32は、左探索画像にお
いて検定点に対応する位置から検定点に当て嵌めた位相
差Lだけずれた位置の、左探索画像中の画素を参照点と
し、参照点の濃度Dを第三左メモリ38から読み出す
(S3)。
Next, the corresponding point searching section 32 sets a pixel in the left search image at a position shifted from the position corresponding to the test point in the left search image by the phase difference L applied to the test point as a reference point, and The density D of the point is read from the third left memory 38 (S3).

【0168】右探索画像における検定点の座標(x0
0 )とするとき、左探索画像における参照点の座標
(x0 +L、y0 )である。例えば図9(B)において
座標(4、6)の画素が右探索画像における検定点であ
り当該検定点の位相差L=3である場合には、図9
(A)において座標(7、6)の画素が左探索画像にお
ける参照点となる。
The coordinates of the test point (x 0 ,
y 0 ) is the coordinates (x 0 + L, y 0 ) of the reference point in the left search image. For example, if the pixel at the coordinates (4, 6) in FIG. 9B is a test point in the right search image and the phase difference L of the test point is L = 3, FIG.
In (A), the pixel at coordinates (7, 6) is a reference point in the left search image.

【0169】次いで対応点探索部32は、読み出した濃
度d、Dの差|d−D|が閾値THL以下となるか否か
を判定する(S4)。
Next, the corresponding point searching section 32 determines whether or not the difference | d−D | between the read densities d and D is equal to or smaller than the threshold value THL (S4).

【0170】S4で濃度差|d−D|は閾値THLを越
えると判定した場合、対応点探索部32は、検定点に当
て嵌めた位相差は正しくないと判定して当該検定点を位
相差不明点として検出し(S5)、然る後、S1の処理
を行なう。
If it is determined in S4 that the density difference | d−D | exceeds the threshold value THL, the corresponding point searching unit 32 determines that the phase difference applied to the test point is not correct, and determines that the test point is the phase difference. It is detected as an unknown point (S5), and then the process of S1 is performed.

【0171】S4で濃度差|d−D|は閾値THL以下
であると判定した場合、対応点探索部32は、検定点に
当て嵌めた位相差は正しいと判定して当該検定点を位相
差判明点として検出し(S6)、然る後、S1の処理を
行なう。
If it is determined in step S4 that the density difference | d−D | is equal to or smaller than the threshold value THL, the corresponding point searching unit 32 determines that the phase difference applied to the test point is correct, and determines that the test point is the phase difference. It is detected as a known point (S6), and then the process of S1 is performed.

【0172】(2−B)S1で全面を走査し終えたと判
定した場合には、右探索画像の対応不明点につき位相差
検定を終了する(終了)。
(2-B) If it is determined in S1 that the entire surface has been scanned, the phase difference test is terminated for unknown points of the right search image (end).

【0173】位相差判明点の検出率を求めるときに左探
索画像における位相差判明点の検出個数を用いる場合に
は、左探索画像について位相差検定を行ない、位相差検
定終了後に左探索画像における位相差判明点の検出個数
を用いて位相差判明点の検出率を求める。
When the number of detected phase difference points in the left search image is used to obtain the detection rate of the phase difference found points, a phase difference test is performed on the left search image, and after the phase difference test, the left search image is detected. The detection rate of the phase difference found point is determined using the number of detected phase difference points.

【0174】また位相差判明点の検出率を求めるときに
右探索画像における位相差判明点の検出個数を用いる場
合には、右探索画像について位相差検定を行ない、位相
差検定終了後に右探索画像における位相差判明点の検出
個数を用いて位相差判明点の検出率を求める。
When the number of detected phase difference found points in the right search image is used to determine the detection rate of the phase difference found point, a phase difference test is performed on the right search image, and after the phase difference test is completed, the right search image is obtained. , The detection rate of the detected phase difference point is obtained using the detected number of the detected phase difference point.

【0175】左探索画像又は右探索画像における位相差
判明点の検出個数を、位相差判明点の検出率を求めるの
に用いない場合は、左探索画像又は右探索画像の位相差
検定を行なわなくて良い。
When the number of detected phase difference points in the left search image or the right search image is not used for obtaining the detection rate of the phase difference determined points, the phase difference test of the left search image or the right search image is not performed. Good.

【0176】位相差検定を終了した位相差判明点の検出
個数を用いて、位相差判明点の検出率を求め、当該位相
差判明点の検出率から候補条件の評価値を得ることによ
り、エピポーラライン合わせに必要な修正条件の検出精
度を高めることができる。
The detection rate of the phase difference found point is obtained using the detected number of phase difference found points for which the phase difference test has been completed, and the evaluation value of the candidate condition is obtained from the phase difference found point detection rate, thereby obtaining an epipolar signal. It is possible to improve the detection accuracy of the correction condition necessary for line alignment.

【0177】第一左メモリ14に格納される左カメラ1
0からの左画像と、第一右メモリ16に格納される右カ
メラ12からの右画像とは、t秒間隔に1画面の割合で
書き改められる。
The left camera 1 stored in the first left memory 14
The left image from 0 and the right image from the right camera 12 stored in the first right memory 16 are rewritten at a rate of one screen every t seconds.

【0178】修正条件の検出は、1画面ずつこれらメモ
リ14、16の左右画像から検出するようにしても良い
し、複数画面おきにこれらメモリ14、16の左右画像
から検出するようにしても良い。
The correction condition may be detected from the left and right images of the memories 14 and 16 one screen at a time, or may be detected from the left and right images of the memories 14 and 16 every other screen. .

【0179】また左右カメラ10、12で撮影した左右
画像が静止画像である場合には、修正条件の各種類毎
に、複数画面おきに修正条件を検出して複数個の修正条
件を得、そして修正条件の各種類毎に複数個の修正条件
を平均したものを得て平均した修正条件を用いて、左右
カメラ10、12で撮影した左右画像のエピポーラライ
ンを合わせるようにしても良い。静止画像であっても画
面毎にノイズの状況が変化するので、数画面おきに得た
修正条件を平均したものを用いることにより、エピポー
ラライン合わせの精度を上げることができる。
If the left and right images taken by the left and right cameras 10 and 12 are still images, the correction condition is detected every plural screens for each type of correction condition to obtain a plurality of correction conditions. An average of a plurality of correction conditions for each type of correction condition may be obtained, and the epipolar lines of the left and right images captured by the left and right cameras 10 and 12 may be matched using the averaged correction conditions. Even in the case of a still image, the noise situation changes for each screen. Therefore, by using an average of the correction conditions obtained every several screens, the accuracy of epipolar line alignment can be improved.

【0180】<請求項1の発明の第二実施形態>図10
は請求項1の発明の第二実施形態の説明に供する機能ブ
ロック図である。以下、主として請求項1の発明の第一
実施形態と相違する点につき説明し、請求項1の発明の
第一実施形態と同様の点については、その詳細な説明を
省略する。
<Second Embodiment of the Invention of Claim 1> FIG.
FIG. 3 is a functional block diagram for explaining a second embodiment of the first aspect of the present invention. Hereinafter, points different from the first embodiment of the first aspect of the invention will be mainly described, and detailed description of the same points as those of the first embodiment of the first aspect of the invention will be omitted.

【0181】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40と、さらに領域切出し部4
6とを備える。
The modification condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36; a third left memory 38 and a third right memory 40;
6 is provided.

【0182】領域切出し部46は画像変換後の左右画像
上に垂直方向に分散させた複数個の着目領域から、左右
着目領域画像を順次に切出し、対応点探索部32は左右
着目領域画像を左右探索画像として、候補条件が同じ各
左右探索画像毎に、対応候補点、対応点、位相差の判明
点及び不明点を検出する。
The area extracting section 46 sequentially extracts left and right attention area images from a plurality of attention areas dispersed in the vertical direction on the left and right images after image conversion, and the corresponding point search section 32 separates the left and right attention area images into right and left images. As search images, corresponding candidate points, corresponding points, known and unknown points of the phase difference are detected for each of the left and right search images having the same candidate condition.

【0183】評価値算出部34は候補条件が同じ各左右
探索画像毎に位相差判明点の検出率を求め候補条件が同
じ左右探索画像について求めた検出率の平均値を当該候
補条件の評価値とする。
The evaluation value calculation unit calculates the detection rate of the phase difference found point for each of the left and right search images having the same candidate condition, and calculates the average value of the detection rates obtained for the left and right search images having the same candidate condition as the evaluation value of the candidate condition. And

【0184】図11は請求項1の発明の第二実施形態の
動作の流れを示す図である。同図においては、複数種類
の候補条件及び修正条件のうち1種類に着目し、当該着
目種について、候補条件を用いて修正条件を検出する場
合の動作の流れを示す。
FIG. 11 is a diagram showing a flow of the operation of the second embodiment of the present invention. FIG. 7 shows a flow of operation in a case where attention is paid to one of a plurality of types of candidate conditions and correction conditions, and a correction condition is detected using the candidate conditions for the type of interest.

【0185】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかの1種類を着目種の候補条件
として設定し(S1)、然る後、条件設定部28は着目
種の複数個の候補条件のなかから選択した1個の候補条
件(選択候補条件)を出力する(S2)。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), first, the condition setting unit 28 sets one of a plurality of types of candidate conditions as a candidate condition of a target type (S1). Thereafter, the condition setting unit 28 outputs one candidate condition (selected candidate condition) selected from the plurality of candidate conditions of the target species (S2).

【0186】例えば着目種の候補条件をx軸方向への平
行移動に関わる候補条件Δx1 〜Δx5 とし、着目種の
複数個の候補条件Δx1 〜Δx5 のなかから選択した1
個の候補条件Δx1 を出力する。
[0186] For example, the candidate condition Δx 1 ~Δx 5 involved the interest species candidate condition parallel movement in the x-axis direction was selected from among the focus species plurality of candidate condition Δx 1 ~Δx 5 1
The number of candidate conditions Δx 1 are output.

【0187】次に画像変換部30は、条件設定部28か
ら入力した選択候補条件に従って左画像及び右画像の一
方を画像変換し、画像変換後の左画像及び右画像を第三
左メモリ38及び第三右メモリ40に格納する(S
3)。
Next, the image conversion unit 30 converts one of the left image and the right image according to the selection candidate condition input from the condition setting unit 28, and stores the left image and the right image after the image conversion in the third left memory 38. Stored in the third right memory 40 (S
3).

【0188】ここで左画像42は画像変換せず右画像4
4は画像変換するものとすれば、図3(A)及び図4
(A)にも示すように、画像変換部30は左カメラ10
からの左画像42を、第一左メモリ14から読み出し画
像変換せずに第三左メモリ38に格納する。これと共に
画像変換部30は、図3(B)及び図4(B)にも示す
ように、右カメラ12からの右画像44を、第一右メモ
リ16から読み出し画像変換せずに第三右メモリ40に
格納する。画像変換は条件設定部28から入力した候補
条件に応じて行なう。例えば候補条件Δx1 を入力した
場合は、右画像44の各画素をx軸方向へΔx1 だけ平
行移動する画像変換を行ない、画像変換した右画像44
を第三右メモリ40に格納する。
Here, the left image 42 is not converted and the right image 4 is not converted.
4A and 4B, if image conversion is performed, FIG.
As shown in FIG.
Is read from the first left memory 14 and stored in the third left memory 38 without image conversion. At the same time, as shown in FIGS. 3B and 4B, the image conversion unit 30 reads the right image 44 from the right camera 12 from the first right memory 16 and performs third image conversion without image conversion. It is stored in the memory 40. The image conversion is performed according to the candidate conditions input from the condition setting unit 28. For example, when the candidate condition Δx 1 is input, image conversion is performed to translate each pixel of the right image 44 in the x-axis direction by Δx 1 , and the right image 44 after the image conversion is performed.
Is stored in the third right memory 40.

【0189】次に領域切出し部46は、画像変換後の左
右画像上に垂直方向(y方向)に分散させた複数個の着
目領域から、左右着目領域画像を切り出す(S4)。
Next, the region cutout section 46 cuts out the left and right region of interest images from the plurality of regions of interest dispersed in the vertical direction (y direction) on the left and right images after image conversion (S4).

【0190】図12は着目領域、着目領域画像の説明に
供する図であり、図12(A)にあっては第三左メモリ
38に格納した左画像42に関わる着目領域48、着目
領域画像50を、また図12(B)にあっては第三右メ
モリ40に格納した右画像44に関わる着目領域52、
着目領域画像54を示す。図中、着目領域画像50、5
4をハッチングを付して示す。
FIG. 12 is a diagram for explaining a region of interest and a region of interest image. In FIG. 12A, the region of interest 48 and the region of interest 50 related to the left image 42 stored in the third left memory 38 are shown. In FIG. 12B, a region of interest 52 related to the right image 44 stored in the third right memory 40,
5 shows a region of interest image 54. In the figure, attention area images 50, 5
4 is indicated by hatching.

【0191】図12(A)及び図12(B)にも示すよ
うに、第三左メモリ38及び第三右メモリ40には画像
変換後の左画像42及び右画像44が格納されている。
この第三左メモリ38の左画像42上に垂直方向に分散
させて複数個の着目領域48を設定し、この第三右メモ
リ40の右画像44上に垂直方向に分散させて複数個の
着目領域52を設定する。
As shown in FIGS. 12A and 12B, the left image 42 and the right image 44 after image conversion are stored in the third left memory 38 and the third right memory 40.
A plurality of regions of interest 48 are set in the vertical direction on the left image 42 of the third left memory 38, and a plurality of regions of interest are set in the vertical direction on the right image 44 of the third right memory 40. An area 52 is set.

【0192】これら左右画像42、44における着目領
域48、50の配設個数及び垂直方向の幅は同一であ
り、例えば、着目領域48、52の配設個数を3個とし
垂直方向の幅を水平走査線1本分の幅とする。尚、着目
領域48、52の垂直方向の幅を水平走査線複数本分の
幅としても構わない。
The number of regions of interest 48 and 50 in these left and right images 42 and 44 and the width in the vertical direction are the same. For example, the number of regions of interest 48 and 52 is three and the width in the vertical direction is horizontal. The width is one scanning line. Note that the vertical width of the regions of interest 48 and 52 may be the width of a plurality of horizontal scanning lines.

【0193】また左画像42上に設定した複数個の着目
領域48とそれぞれ同じ垂直位置(y座標位置)にそれ
ぞれ、右画像44上の着目領域52を設定している。図
示例では、y=3、6、9の位置にそれぞれ着目領域4
8、50を設定している。
Further, the attention area 52 on the right image 44 is set at the same vertical position (y coordinate position) as the plurality of attention areas 48 set on the left image 42. In the illustrated example, the region of interest 4 is located at the position of y = 3, 6, and 9, respectively.
8, 50 are set.

【0194】そして領域切出し部46は左右画像42、
44上の相対応するy座標の着目領域48、52例えば
y=3の着目領域48、52から、1ライン分の左右着
目領域画像50、54を切り出し記憶する。
Then, the area extracting section 46 outputs the left and right images 42,
One line of left and right region of interest images 50 and 54 are cut out from corresponding regions of interest 48 and 52 of the y-coordinate 44, for example, regions of interest 48 and 52 of y = 3, and stored.

【0195】次に対応点探索部32は、走査対象となる
画素の階調表現を異ならせて複数種の探索条件を設定す
ると共に、左右着目領域画像を左右探索画像とし、各探
索条件毎に、左右探索画像における対応候補点を検出す
る(S5)。
Next, the corresponding point search unit 32 sets a plurality of types of search conditions by changing the gradation expression of the pixel to be scanned, sets the left and right region of interest images as the left and right search images, and Then, corresponding candidate points in the left and right search images are detected (S5).

【0196】例えば領域切出し部46が記憶する左右着
目領域画像50、54を256階調の白黒画像とした場
合、この256階調の左右着目領域画像50、54を階
調変換して32階調の左右着目領域画像50、54を
得、この32階調の左右着目領域画像50、54を左右
探索画像とする第一探索条件を設定する。さらにこの2
56階調の左右着目領域画像50、54を階調変換して
16階調の左右着目領域画像50、54を得、この16
階調の左右着目領域画像50、54を左右探索画像とす
る第二の探索条件を設定する。
For example, when the left and right region-of-interest images 50 and 54 stored in the region clipping section 46 are black and white images of 256 tones, the left and right region-of-interest images 50 and 54 of 256 tones are converted to 32 tones. The left and right region of interest images 50 and 54 are obtained, and the first search condition for setting the left and right region of interest images 50 and 54 of 32 tones as the left and right search images is set. This 2
The left and right region of interest images 50 and 54 of 56 gradations are subjected to gradation conversion to obtain the left and right region of interest images 50 and 54 of 16 gradations.
A second search condition is set in which the left and right focused area images 50 and 54 of the gradation are used as the left and right search images.

【0197】対応点探索部32は左右探索画像において
相対応する水平走査線L上の1ライン分の画像を格納す
る左右ラインメモリを有し、第一の探索条件で対応候補
点を検出するときは、水平走査線L上の256階調の左
着目領域画像50を領域切出し部46から読み出して3
2階調に変換し32階調に変換した1ライン分の左着目
領域画像50を左ラインメモリに格納する。これと共に
水平走査線L上の256階調の右着目領域画像54を領
域切出し部46から読み出して32階調に変換し32階
調に変換した1ライン分の右着目領域画像54を右ライ
ンメモリに格納する。
The corresponding point search unit 32 has left and right line memories for storing one line of the image on the horizontal scanning line L corresponding to the left and right search images, and detects corresponding candidate points under the first search condition. Read out the left focused area image 50 of 256 gradations on the horizontal scanning line L from the area cutout unit 46 and
The left region of interest image 50 for one line that has been converted to two gradations and converted to 32 gradations is stored in the left line memory. At the same time, the right focused area image 54 of 256 tones on the horizontal scanning line L is read out from the area extracting unit 46, converted to 32 tones, and converted to 32 tones. To be stored.

【0198】そして対応点探索部32は、第一の探索条
件による1ライン分の左着目領域画像50及び右着目領
域画像54を走査する。ここで階調変換した1ライン分
の左着目領域画像50及び右着目領域画像54の一方の
画素を着目点、及び、他方の画素を対照点とし、水平走
査線L上において所定の主走査方向へ順次に数えて第i
番目の着目点に対し、水平走査線L上の対照点を所定の
主走査方向へ順次に走査してゆく。第i番目の着目点に
対し画素特徴の差が閾値以下となる対照点を検出するこ
となく対照点の走査を終了したら、次に第i+1番目の
着目点に対し対照点の走査を行なう。また第i番目の着
目点に対し画素特徴の差が閾値以下となる対照点を検出
したら、当該第i番目の着目点と対照点とを対応候補点
として検出し、然る後、第i+1番目の着目点に対し対
照点の走査を行なう。
Then, the corresponding point searching section 32 scans the left focused area image 50 and the right focused area image 54 for one line according to the first search condition. Here, one pixel of the left region of interest image 50 and the right region of interest image 54 for one line subjected to gradation conversion is set as a point of interest, and the other pixel is set as a control point. To the i-th
A control point on the horizontal scanning line L is sequentially scanned in a predetermined main scanning direction with respect to the point of interest. When scanning of the control point is completed without detecting a control point having a pixel feature difference equal to or smaller than the threshold value for the i-th point of interest, scanning of the control point is performed on the (i + 1) -th point of interest. When a control point at which the difference of the pixel feature with respect to the i-th point of interest is smaller than or equal to the threshold is detected, the i-th point of interest and the control point are detected as corresponding candidate points, and then the (i + 1) -th point of interest is detected. Is scanned for the point of interest.

【0199】このように相対応する水平走査線L上の左
右探索画像ここでは左右着目領域画像52、54を走査
し、画素特徴の差が閾値以下となったら次の着目点を走
査して、対応候補点を検出する。そして左右探索画像全
面にわたって水平走査線L上の対応候補点の検出を終了
したら、第一の探索条件による対応候補点の検出を終了
する。
As described above, the left and right search images on the corresponding horizontal scanning line L are scanned here, and the left and right region of interest images 52 and 54 are scanned. A corresponding candidate point is detected. When the detection of the corresponding candidate points on the horizontal scanning line L is completed over the entire left and right search image, the detection of the corresponding candidate points based on the first search condition is ended.

【0200】第二の探索条件で対応候補点を検出すると
きも第一の探索条件の場合と同様にして、相対応する水
平走査線L上の左右探索画像を走査し、画素特徴の差が
閾値以下となったら次の着目点を走査して、対応候補点
を検出する。そして左右探索画像全面にわたって水平走
査線L上の対応候補点の検出を終了したら、第二の探索
条件による対応候補点の検出を終了する。
When the corresponding candidate point is detected under the second search condition, the left and right search images on the corresponding horizontal scanning line L are scanned in the same manner as in the first search condition, and the difference between the pixel characteristics is detected. When the value becomes equal to or smaller than the threshold value, the next point of interest is scanned to detect a corresponding candidate point. When the detection of the corresponding candidate points on the horizontal scanning line L is completed over the entire left and right search image, the detection of the corresponding candidate points based on the second search condition is ended.

【0201】全種類の探索条件について、左右探索画像
全面にわたり水平走査線L上の対応候補点の検出を終了
したら、次に対応点探索部32は、各探索条件毎に得た
対応候補点の集合において共通集合となる対応候補点を
対応点として検出する(S6)。
After the detection of the corresponding candidate points on the horizontal scanning line L over the entire left and right search images for all types of search conditions, the corresponding point search unit 32 next calculates the corresponding candidate points obtained for each search condition. Corresponding candidate points that become a common set in the set are detected as corresponding points (S6).

【0202】例えば上述した第一の探索条件で検出した
対応候補点の集合と第二の探索条件で検出した対応候補
点の集合とで共通集合となる対応候補点を、対応点とし
て検出する。
For example, a corresponding candidate point that is a common set between the set of corresponding candidate points detected under the first search condition and the set of corresponding candidate points detected under the second search condition is detected as a corresponding point.

【0203】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出し、位相
差判明点或はこれに加え位相差不明点の検出個数を評価
値算出部34に対し出力する(S7)。
Next, the corresponding point search section 32 detects the phase difference found point and the phase difference unknown point using the corresponding point detection result, and evaluates the phase difference found point or the number of detected phase difference unknown points. Output to the value calculation unit 34 (S7).

【0204】ここで検出する位相差判明点及び位相差不
明点は、現在の左右探索画像を読み出した1個の着目領
域48、52に関わるものである。
Here, the detected phase difference points and the unknown phase difference points relate to one of the regions of interest 48 and 52 from which the current left and right search images have been read.

【0205】またここでは、対応点の位相差に基づいて
対応不明点(対応点として検出されなかった画素)に対
して位相差を推定し当て嵌める。位相差を当て嵌めるこ
とができなかった対応不明点を位相差不明点として検出
する。然る後、対応不明点に当て嵌めた位相差が、正し
いか否かを検定する。そしてこの検定により正しいと判
定された位相差の対応不明点を位相差判明点とし、正し
くないと判定された位相差の対応不明点を位相差不明点
として検出する。
In this case, the phase difference is estimated and applied to an unknown correspondence point (pixel not detected as the corresponding point) based on the phase difference between the corresponding points. The corresponding unknown points to which the phase difference could not be applied are detected as the phase difference unknown points. Thereafter, it is checked whether the phase difference applied to the correspondence unknown point is correct. Then, the unknown point of the correspondence of the phase difference determined to be correct by this test is determined to be a known point of the phase difference, and the unknown point of correspondence of the phase difference determined to be incorrect is detected as the unknown point of the phase difference.

【0206】次に評価値算出部32は、位相差判明点の
検出個数を用いて位相差判明点の検出率を求め、当該位
相差判明点の検出率を最大値検出部36に格納する(S
8)。
Next, the evaluation value calculation unit 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points, and stores the detection rate of the phase difference found point in the maximum value detection unit 36 ( S
8).

【0207】ここで求める位相差判明点の検出率は、現
在の左右探索画像を読み出した1個の着目領域48、5
2に関わるものである。この場合の位相差判明点の検出
率は、例えば、 (位相差判明点の検出率)=(左探索画像における位相
差判明点の検出個数)/(左カメラで撮影した1枚の左
画像の全画素数)、 (位相差判明点の検出率)=(左探索画像における位相
差判明点の検出個数)/(左探索画像における位相差判
明点及び位相差不明点の検出個数の和)、 或は、(位相差判明点の検出率)=(右探索画像におけ
る位相差判明点の検出個数)/(右カメラで撮影した1
枚の右画像の全画素数)、 (位相差判明点の検出率)=(右探索画像における位相
差判明点の検出個数)/(右探索画像における位相差判
明点及び位相差不明点の検出個数の和)で表される。
The detection rate of the phase difference found point obtained here is determined by the one attention area 48, 5
2 In this case, the detection rate of the phase difference found point is, for example, (detection rate of the phase difference found point) = (the number of detected phase difference found points in the left search image) / (one left image captured by the left camera) (The number of all pixels), (detection rate of phase difference found point) = (number of detected phase difference point in left search image) / (sum of phase difference found point and phase difference unknown point in left search image), Alternatively, (detection rate of phase difference found point) = (detected number of phase difference found point in right search image) / (1 captured by right camera)
(Total number of pixels of the right image), (Detection rate of phase difference found point) = (Number of detected phase difference point in right search image) / (Detection of phase difference found point and phase difference unknown point in right search image) (Sum of the numbers).

【0208】次に領域切出し部46は、第三左右メモリ
38、40に現在格納されている画像変換後の左右画像
42、44に関して、全ての着目領域48、52から左
右着目領域画像50、54を切り出し終えたか(読み出
し終えたか)否かを判定する(S9)。
Next, the area extracting section 46 extracts the right and left attention area images 50 and 54 from all the attention areas 48 and 52 with respect to the converted left and right images 42 and 44 currently stored in the third left and right memories 38 and 40. It is determined whether or not the data has been cut out (reading has been completed) (S9).

【0209】現在の画像変換後の左右画像42、44に
関して全ての着目領域48、52の切出しを終了してい
なければ、領域切出し部46は切出し未終了の1組の着
目領域48、52を選択し(S10)、然る後、選択し
た着目領域48、52から次の左右着目領域画像50、
54を切り出す(S4)。
If the extraction of all the regions of interest 48 and 52 has not been completed for the left and right images 42 and 44 after the current image conversion, the region extracting section 46 selects a pair of regions of interest 48 and 52 that have not been extracted yet. (S10) Then, from the selected regions of interest 48 and 52, the next left and right region of interest images 50,
54 is cut out (S4).

【0210】例えば図12の例においてy=3の着目領
域48、52からの切出しを終了し、y=6、9の着目
領域48、52からの切出しを終了していなければ、切
出し未終了の1組の着目領域48、52としてy=6の
着目領域48、52を選択する。
For example, in the example of FIG. 12, the extraction from the regions of interest 48 and 52 with y = 3 is completed, and the extraction from the regions of interest 48 and 52 with y = 6 and 9 is not completed. As the set of target areas 48 and 52, the target areas 48 and 52 of y = 6 are selected.

【0211】現在の画像変換後の左右画像42、44に
関して全ての着目領域48、52の切出しを終了したな
らば、評価値算出部34は現在の画像変換後の左右画像
42、44を得た候補条件に関して、各着目領域48、
50毎に得た検出率の平均値を求め、この平均値を当該
候補条件の評価値として最大値検出部36に格納する
(S11)。
When the extraction of all the regions of interest 48 and 52 is completed for the left and right images 42 and 44 after the current image conversion, the evaluation value calculation unit 34 obtains the right and left images 42 and 44 after the current image conversion. Regarding the candidate condition, each region of interest 48,
An average value of the detection rates obtained for every 50 is obtained, and the average value is stored in the maximum value detection unit 36 as an evaluation value of the candidate condition (S11).

【0212】例えば現在の画像変換後の左右画像42、
44が候補条件Δx1 に従って得たものである場合、y
=3、6、9の各着目領域48、52毎に得た検出率の
平均値を当該候補条件Δx1 の評価値として得ることと
なる。
For example, the left and right images 42 after the current image conversion,
If 44 is obtained according to the candidate condition Δx 1 , y
= The average value of the detection rate was obtained for each region of interest 48 and 52 of the 3, 6, 9 and thus to obtain an evaluation value of the candidate condition [Delta] x 1.

【0213】次に条件設定部28は着目種の全ての候補
条件を選択し終えたか否かを判定する(S12)。
Next, the condition setting unit 28 determines whether or not all the candidate conditions of the target species have been selected (S12).

【0214】着目種の全ての候補条件を選択し終えてい
なければ、条件設定部28は着目種の次の候補条件を選
択し(S13)、然る後、選択した候補条件を出力する
(S2)。
If all the candidate conditions of the target species have not been selected, the condition setting unit 28 selects the next candidate condition of the target species (S13), and then outputs the selected candidate conditions (S2). ).

【0215】例えば着目種の候補条件Δx1 〜Δx5
うちΔx1 についてのみ選択し終えており、Δx2 〜Δ
5 についての選択を終えていなければ、残りの候補条
件Δx2 〜Δx5 のなかから選択した一つの候補条件Δ
2 を選択し、選択した候補条件Δx2 を出力する。
For example, out of the candidate conditions Δx 1 to Δx 5 of the target species, only Δx 1 has been selected, and Δx 2 to Δx 5 have been selected.
If not finished the selection for x 5, one of the candidates conditions selected from among the remaining candidate condition Δx 2 ~Δx 5 Δ
Select x 2, and outputs the candidate condition [Delta] x 2 selected.

【0216】また着目種の全ての候補条件を選択し終え
たならば、最大値検出部36は着目種の各候補条件毎に
得た評価値のなかから最大の評価値を検出し、最大の評
価値を得た候補条件を修正条件として検出する。そして
最大値検出部28は当該着目種の修正条件を条件設定部
28に格納する(S14)。然る後、修正条件検出装置
18は、当該着目種の修正条件を検出するための処理を
終了する(終了)。
When all the candidate conditions of the target species have been selected, the maximum value detector 36 detects the maximum evaluation value from among the evaluation values obtained for each candidate condition of the target species, and The candidate condition for which the evaluation value has been obtained is detected as a correction condition. Then, the maximum value detecting unit 28 stores the correction condition of the target type in the condition setting unit 28 (S14). Thereafter, the correction condition detection device 18 ends the processing for detecting the correction condition of the target type (end).

【0217】例えば着目種の全ての候補条件Δx1 〜Δ
5 を選択し終えたならば、着目種の候補条件Δx1
Δx5 の各候補条件毎に得た評価値のなかから最大の評
価値を検出し、最大の評価値を得た候補条件例えばΔx
4 を当該着目種の修正条件として検出する。
For example, all candidate conditions Δx 1 to Δ
When you are finished selecting the x 5, focusing species of candidate conditions Δx 1 ~
Detecting the maximum evaluation value from among the evaluation values obtained for each candidate condition of [Delta] x 5, candidate condition for example [Delta] x to give a maximum evaluation value
4 is detected as the correction condition of the target species.

【0218】修正条件検出装置18は、x軸方向への平
行移動量、y軸方向への平行移動量、x軸回りの回転角
度、y軸回りの回転角度、z軸回りの回転角度及び変換
倍率の各種類の候補条件毎に、上述したS1〜S14の
処理を行ない、そして候補条件の各種類毎に修正条件を
検出する。
The correction condition detecting device 18 calculates the parallel movement amount in the x-axis direction, the parallel movement amount in the y-axis direction, the rotation angle around the x-axis, the rotation angle around the y-axis, the rotation angle around the z-axis, and the conversion angle. The processing of S1 to S14 described above is performed for each type of candidate condition of magnification, and a correction condition is detected for each type of candidate condition.

【0219】この実施形態においては、左右探索画像を
左右画像42、44の一部である着目領域画像50、5
4としており、従って修正条件を検出するのに必要な画
像の走査量を減少させることができるので、修正条件の
検出時間を短縮できる。
In this embodiment, the left and right search images are converted to the attention area images 50 and 5 which are a part of the left and right images 42 and 44.
4, the amount of scanning of the image required to detect the correction condition can be reduced, so that the detection time of the correction condition can be shortened.

【0220】<請求項1の発明の第三実施形態>次に図
10を参照し、請求項1の発明の第三実施形態につき説
明する。以下、主として請求項1の発明の第二実施形態
と相違する点につき説明し、請求項1の発明の第二実施
形態と同様の点については、その詳細な説明を省略す
る。
<Third Embodiment of the Invention of Claim 1> Next, a third embodiment of the invention of claim 1 will be described with reference to FIG. Hereinafter, points different from the second embodiment of the first aspect of the present invention will be mainly described, and detailed description of the same points as those of the second embodiment of the first aspect of the present invention will be omitted.

【0221】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40と、さらに領域切出し部4
6とを備える。
The correction condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36; a third left memory 38 and a third right memory 40;
6 is provided.

【0222】評価値算出部34は、候補条件が同じ各左
右探索画像毎に位相差判明点の検出率を求め、候補条件
が同じ左右探索画像について求めた検出率のうち、上位
から順次に所定個数の検出率を選択し、当該選択により
得た検出率の平均値を候補条件の評価値とする。
The evaluation value calculation unit 34 calculates the detection rate of the phase difference found point for each of the left and right search images having the same candidate condition, and sequentially determines the detection rates of the left and right search images having the same candidate condition from the top in order. The number of detection rates is selected, and the average value of the detection rates obtained by the selection is used as the evaluation value of the candidate condition.

【0223】図13は請求項1の発明の第三実施形態の
動作の流れを示す図である。同図においては、複数種類
の候補条件及び修正条件のうち1種類に着目し、当該着
目種について、候補条件を用いて修正条件を検出する場
合の動作の流れを示す。
FIG. 13 is a diagram showing a flow of the operation of the third embodiment of the present invention. FIG. 7 shows a flow of operation in a case where attention is paid to one of a plurality of types of candidate conditions and correction conditions, and a correction condition is detected using the candidate conditions for the type of interest.

【0224】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかの1種類を着目種の候補条件
として設定し(S1)、然る後、条件設定部28は着目
種の複数個の候補条件のなかから選択した1個の候補条
件(選択候補条件)を出力する(S2)。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), the condition setting section 28 sets one of a plurality of types of candidate conditions as a candidate condition of a target type (S1). Thereafter, the condition setting unit 28 outputs one candidate condition (selected candidate condition) selected from the plurality of candidate conditions of the target species (S2).

【0225】次に画像変換部30は、条件設定部28か
ら入力した選択候補条件に従って左画像及び右画像の一
方を画像変換し、画像変換後の左画像及び右画像を第三
左メモリ38及び第三右メモリ40に格納する(S
3)。
Next, the image conversion unit 30 converts one of the left image and the right image according to the selection candidate condition input from the condition setting unit 28, and stores the left image and the right image after the image conversion in the third left memory 38 Stored in the third right memory 40 (S
3).

【0226】次に領域切出し部46は、画像変換後の左
右画像上に垂直方向(y方向)に分散させた複数個の着
目領域から、左右着目領域画像を切り出す(S4)。
Next, the area cutout section 46 cuts out the left and right attention area images from the plurality of attention areas dispersed in the vertical direction (y direction) on the left and right images after image conversion (S4).

【0227】次に対応点探索部32は、走査対象となる
画素の階調表現を異ならせて複数種の探索条件を設定す
ると共に、左右着目領域画像を左右探索画像とし、各探
索条件毎に、左右探索画像における対応候補点を検出す
る(S5)。
Next, the corresponding point search section 32 sets a plurality of types of search conditions by changing the gradation expression of the pixel to be scanned, sets the left and right region of interest images as left and right search images, Then, corresponding candidate points in the left and right search images are detected (S5).

【0228】全種類の探索条件について、左右探索画像
全面にわたり水平走査線L上の対応候補点の検出を終了
したら、次に対応点探索部32は、各探索条件毎に得た
対応候補点の集合において共通集合となる対応候補点を
対応点として検出する(S6)。
When the detection of the corresponding candidate points on the horizontal scanning line L is completed over the entire left and right search images for all types of search conditions, the corresponding point search unit 32 next calculates the corresponding candidate points obtained for each search condition. Corresponding candidate points that become a common set in the set are detected as corresponding points (S6).

【0229】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出し、位相
差判明点或はこれに加え位相差不明点の検出個数を評価
値算出部34に対し出力する(S7)。
Next, the corresponding point searching section 32 detects the phase difference found point and the phase difference unknown point using the corresponding point detection result, and evaluates the phase difference found point or the number of detected phase difference unknown points in addition thereto. Output to the value calculation unit 34 (S7).

【0230】次に評価値算出部32は、位相差判明点の
検出個数を用いて位相差判明点の検出率を求め、当該位
相差判明点の検出率を最大値検出部36に格納する(S
8)。
Next, the evaluation value calculation unit 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points, and stores the detection rate of the phase difference found point in the maximum value detection unit 36 ( S
8).

【0231】次に領域切出し部46は、第三左右メモリ
38、40に現在格納されている画像変換後の左右画像
42、44に関して、全ての着目領域48、52から左
右着目領域画像50、54を切り出し終えたか(読み出
し終えたか)否かを判定する(S9)。
Next, the area extracting section 46 extracts the left and right attention area images 50 and 54 from all the attention areas 48 and 52 with respect to the converted left and right images 42 and 44 currently stored in the third left and right memories 38 and 40. It is determined whether or not the data has been cut out (reading has been completed) (S9).

【0232】現在の画像変換後の左右画像42、44に
関して全ての着目領域48、52の切出しを終了してい
なければ、領域切出し部46は切出し未終了の1組の着
目領域48、52を選択し(S10)、然る後、選択し
た着目領域48、52から次の左右着目領域画像50、
54を切り出す(S4)。
If the extraction of all the target areas 48 and 52 has not been completed for the left and right images 42 and 44 after the current image conversion, the area extracting section 46 selects a set of target areas 48 and 52 that have not been extracted yet. (S10) Then, from the selected regions of interest 48 and 52, the next left and right region of interest images 50,
54 is cut out (S4).

【0233】現在の画像変換後の左右画像42、44に
関して全ての着目領域48、52の切出しを終了したな
らば、評価値算出部34は現在の画像変換後の左右画像
42、44を得た候補条件に関して、各着目領域48、
50毎に得た検出率のうち上位の検出率を選択する(S
11)。
When the extraction of all the regions of interest 48 and 52 is completed with respect to the left and right images 42 and 44 after the current image conversion, the evaluation value calculation unit 34 obtains the right and left images 42 and 44 after the current image conversion. Regarding the candidate condition, each region of interest 48,
A higher detection rate is selected from among the detection rates obtained for every 50 (S
11).

【0234】次に評価値算出部34は、選択した上位の
検出率の平均値を求め、この平均値を現在の画像変換後
の左右画像42、44を得た候補条件に関する評価値と
して、最大値検出部36に格納する(S12)。
Next, the evaluation value calculation unit 34 calculates the average value of the selected higher detection rates, and uses this average value as the evaluation value for the candidate conditions for obtaining the current image-converted left and right images 42 and 44. It is stored in the value detection unit 36 (S12).

【0235】ここで現在の画像変換後の左右画像42、
44上に設定する着目領域48、52の総個数は同じで
あるので、その総個数をR個とすれば、総個数R個の着
目領域48、52から総個数R個の検出率を得ることと
なる。そして総個数R個の検出率のなかから上位r1個
(r1はR>r1>1なる自然数)の検出率を選択し、
選択した上位r1個の検出率の平均値を評価値とする。
(R−r1)>0なる下位(R−r1)個の検出率は評
価値の算出に用いない。
Here, the left and right images 42 after the current image conversion,
Since the total number of regions of interest 48 and 52 set on 44 is the same, assuming that the total number is R, it is possible to obtain a detection rate of the total number R from the regions of interest 48 and 52 having the total number R. Becomes Then, among the detection rates of the total number R, the detection rates of the top r1 (r1 is a natural number satisfying R>r1> 1) are selected,
The average value of the selected r1 detection rates is used as the evaluation value.
The lower (R-r1) detection rates where (R-r1)> 0 are not used for calculating the evaluation value.

【0236】例えば総個数R=30個の着目領域48、
52を設定し、これら着目領域から総個数R=30個の
検出率を得たものとすれば、上位r1=10〜20個の
検出率を用いて評価値を得、下位(R−r1)=20〜
10個の検出率は評価値の算出に用いない。
For example, a total number R = 30 attention areas 48,
If 52 are set and the detection rate of the total number R = 30 is obtained from these regions of interest, the evaluation value is obtained using the detection rates of the upper r1 = 10 to 20 and the lower (R-r1) = 20-
The ten detection rates are not used for calculating the evaluation value.

【0237】次に条件設定部28は着目種の全ての候補
条件を選択し終えたか否かを判定する(S13)。
Next, the condition setting section 28 determines whether or not all the candidate conditions of the target species have been selected (S13).

【0238】着目種の全ての候補条件を選択し終えてい
なければ、条件設定部28は着目種の次の候補条件を選
択し(S13)、然る後、選択した候補条件を出力する
(S2)。
If all the candidate conditions of the target species have not been selected, the condition setting unit 28 selects the next candidate condition of the target species (S13), and then outputs the selected candidate conditions (S2). ).

【0239】また着目種の全ての候補条件を選択し終え
たならば、最大値検出部36は着目種の各候補条件毎に
得た評価値のなかから最大の評価値を検出し、最大の評
価値を得た候補条件を修正条件として検出する。そして
最大値検出部28は当該着目種の修正条件を条件設定部
28に格納する(S15)。然る後、修正条件検出装置
18は、当該着目種の修正条件を検出するための処理を
終了する(終了)。
When all candidate conditions of the target species have been selected, the maximum value detecting section 36 detects the maximum evaluation value from among the evaluation values obtained for each candidate condition of the target species, and The candidate condition for which the evaluation value has been obtained is detected as a correction condition. Then, the maximum value detecting unit 28 stores the correction condition of the target type in the condition setting unit 28 (S15). Thereafter, the correction condition detection device 18 ends the processing for detecting the correction condition of the target type (end).

【0240】修正条件検出装置18は、x軸方向への平
行移動量、y軸方向への平行移動量、x軸回りの回転角
度、y軸回りの回転角度、z軸回りの回転角度及び変換
倍率の各種類の候補条件毎に、上述したS1〜S15の
処理を行ない、そして候補条件の各種類毎に修正条件を
検出する。
The correction condition detecting device 18 calculates the parallel movement amount in the x-axis direction, the parallel movement amount in the y-axis direction, the rotation angle around the x-axis, the rotation angle around the y-axis, the rotation angle around the z-axis, and the conversion. The processing of S1 to S15 described above is performed for each type of candidate condition of the magnification, and a correction condition is detected for each type of candidate condition.

【0241】この実施形態においても、請求項1の第二
実施形態と同様に、左右探索画像を左右画像42、44
の一部である着目領域画像50、54としており、従っ
て修正条件を検出するのに必要な画像の走査量を減少さ
せることができるので、修正条件の検出時間を短縮でき
る。
In this embodiment, the left and right search images are converted into the left and right images 42 and 44 in the same manner as in the second embodiment.
Are the target area images 50 and 54 which are a part of the above. Therefore, the scanning amount of the image necessary for detecting the correction condition can be reduced, so that the detection time of the correction condition can be shortened.

【0242】さらにこの実施形態によれば、候補条件の
各種類毎に評価値を求める場合に、上位複数個の検出率
の平均値を用いて評価値を求め、下位の検出率を評価値
の算出に用いないので、修正条件の検出精度を向上でき
る。
Further, according to this embodiment, when an evaluation value is obtained for each type of candidate condition, the evaluation value is obtained by using the average value of the detection rates of the upper plurality, and the lower detection rate is obtained by calculating the lower detection rate. Since it is not used for calculation, detection accuracy of the correction condition can be improved.

【0243】図14はこの実施形態における修正条件検
出精度の向上の説明に供する図である。図の縦軸には候
補条件の評価値及び横軸にはx軸方向への平行移動量に
関わる候補条件を取ってあり、図14(A)にあっては
候補条件Δx4 について求めた総個数R個の検出率に関
し全個数の検出率のばらつき範囲及び平均値を示し、図
14(B)にあっては候補条件Δx4 について求めた総
個数R個の検出率に関し上位r1個の検出率のばらつき
範囲及び平均値を示す。
FIG. 14 is a diagram for explaining an improvement in the correction condition detection accuracy in this embodiment. The vertical axis of the drawing on the evaluation value and the horizontal axis of the candidate condition Yes taking candidate condition relating to parallel movement amount in the x-axis direction, total In the FIG. 14 (A) determined for candidate condition [Delta] x 4 number the R relates detection rate showed a variation range and the average value of the detection rate for all the characters, FIG. 14 (B) the total number was determined for the candidate condition [Delta] x 4 in the R number of detection rate relates upper r1 amino detection The variation range and average value of the rate are shown.

【0244】左カメラ10、右カメラ12、画像変換部
30における画像の量子化誤差により、着目領域の左右
探索画像においてノイズの乗り方が相違する場合、その
ような着目領域では検出率が極端に低下する。
When the left and right cameras 12, the right camera 12, and the image conversion unit 30 have different quantization noises in the left and right search images of the target area due to the quantization error of the image, the detection rate is extremely high in such a target area. descend.

【0245】従って図14(A)にも示すように、候補
条件Δx4 について求めた総個数R個の検出率中に、そ
のような極端に値の小さな検出率が含まれる場合、これ
ら総個数R個の検出率の平均値を当該候補条件Δx4
評価値に用いると、ノイズに起因して評価値の値が低く
なるため、修正条件を精度良く検出することが難しくな
る。
Therefore, as shown in FIG. 14A, when the detection rate of the total number R obtained for the candidate condition Δx 4 includes such an extremely small detection rate, the total number When the average value of the R detection rates is used as the evaluation value of the candidate condition Δx 4 , the value of the evaluation value decreases due to noise, and it becomes difficult to detect the correction condition with high accuracy.

【0246】そこで図14(B)にも示すように、総個
数R個の検出率のうち上位r1個の検出率を選択して、
これら上位r1個の検出率の平均値を評価値とする。評
価値算出に用いない下位の検出率中には、ノイズに起因
して極端に値の低くなった検出率が含まれている可能性
が高いので、このように上位の検出率を用い下位の検出
率は用いないようにして評価値を求めるようにすること
により、修正条件の検出精度を向上することができる。
Therefore, as shown in FIG. 14B, the top r1 detection rates are selected from the total R detection rates, and
The average value of the detection rates of the top r1 items is used as the evaluation value. It is highly likely that the lower detection rate not used for calculating the evaluation value includes a detection rate whose value is extremely low due to noise, and thus the lower detection rate is used by using the higher detection rate. By determining the evaluation value without using the detection rate, the detection accuracy of the correction condition can be improved.

【0247】<請求項1の発明の第四実施形態>図15
は請求項1の発明の第四実施形態の説明に供する機能ブ
ロック図である。以下、主として請求項1の発明の第一
実施形態と相違する点につき説明し、請求項1の発明の
第一実施形態と同様の点については、その詳細な説明を
省略する。
<Fourth Embodiment of the Invention of Claim 1>
FIG. 7 is a functional block diagram for explaining a fourth embodiment of the first aspect of the present invention. Hereinafter, points different from the first embodiment of the first aspect of the invention will be mainly described, and detailed description of the same points as the first embodiment of the first aspect of the invention will be omitted.

【0248】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40と、さらに画面選択部56
とを備える。
The modified condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36; a third left memory 38 and a third right memory 40;
And

【0249】第一左メモリ14に格納される左カメラ1
0からの左画像と、第一右メモリ16に格納される右カ
メラ12からの右画像とは、t秒間に1画面の割合で書
き改められる。
The left camera 1 stored in the first left memory 14
The left image from 0 and the right image from the right camera 12 stored in the first right memory 16 are rewritten at a rate of one screen every t seconds.

【0250】この実施形態では、この1画面毎に修正条
件を検出するのではなく、数画面毎に修正条件を検出す
る。画面選択部56は、数画面毎に、第一左メモリ1
4、第一右メモリ16から左画像、右画像を読み出し画
像変換部30へ入力する。
In this embodiment, the correction condition is not detected for each screen, but is detected for every several screens. The screen selection unit 56 sets the first left memory 1 every several screens.
4. The left image and the right image are read from the first right memory 16 and input to the image conversion unit 30.

【0251】画像変換部30は画面選択部56から入力
した左画像、右画像を、候補条件に従って画像変換し
て、第三左メモリ38、第三右メモリ40に格納する。
この結果、修正条件検出装置18は、画面選択部56に
より数画面毎に読み出された左画像、右画像につき修正
条件を検出することとなる。
The image conversion unit 30 converts the left image and the right image input from the screen selection unit 56 according to the candidate conditions, and stores them in the third left memory 38 and the third right memory 40.
As a result, the correction condition detecting device 18 detects the correction conditions for the left image and the right image read every several screens by the screen selection unit 56.

【0252】また画像変換部30は画面選択部56から
入力した左画像、右画像を、修正条件に従って画像変換
して、第二左メモリ20、第二右メモリ22に格納す
る。この結果、対応点探索装置24は、画面選択部56
により数画面毎に読み出された左画像、右画像につき、
対応点の検出及び位相差を検出することとなる。
The image conversion unit 30 converts the left image and the right image input from the screen selection unit 56 according to the correction conditions, and stores them in the second left memory 20 and the second right memory 22. As a result, the corresponding point searching device 24 sets the screen selection unit 56
For each of the left and right images read out every few screens,
The detection of the corresponding point and the phase difference are detected.

【0253】通常、左カメラ10、右カメラ12は防振
構造上に設置され、多少の振動では左カメラ10、右カ
メラ12で撮影される左画像、右画像のエピポーラライ
ンはずれないようになっている。従って対応点探索装置
24が行なう対応点の検出において、数画面毎に検出し
た修正条件に基づき、エピポーララインを合わせた左画
像、右画像を走査して対応点を検出しても、対応点の検
出率を実用上充分に向上させることができる。
Normally, the left camera 10 and the right camera 12 are installed on an anti-vibration structure so that the epipolar lines of the left image and the right image taken by the left camera 10 and the right camera 12 cannot be displaced by a slight vibration. I have. Therefore, in the detection of the corresponding point performed by the corresponding point search device 24, even if the corresponding point is detected by scanning the left image and the right image with the epipolar line aligned based on the correction condition detected every several screens, The detection rate can be sufficiently improved for practical use.

【0254】対応点探索部32は、修正条件を検出する
ための処理例えば各候補条件毎に評価値を求める処理を
並列して行なえるようにコンピュータを用いて構成され
るが、数画面毎に修正条件を検出するようにすることに
より、その並列処理数を減少させて並列処理に必要なメ
モリ容量を減少させ、或は、処理速度のより低速なコン
ピュータを用いて対応点探索部32を構成したりするこ
とができる。この結果、対応点探索部32の装置規模を
小さくし、或は、装置コストを低減したりすることがで
きる。
The corresponding point search unit 32 is configured using a computer so that processing for detecting a correction condition, for example, processing for obtaining an evaluation value for each candidate condition can be performed in parallel. By detecting the correction condition, the number of parallel processes is reduced to reduce the memory capacity required for the parallel processes, or the corresponding point searching unit 32 is configured using a computer having a lower processing speed. Or you can. As a result, the device scale of the corresponding point searching unit 32 can be reduced, or the device cost can be reduced.

【0255】<請求項1の発明の第五実施形態>図16
は請求項1の発明の第五実施形態の説明に供する機能ブ
ロック図である。以下、主として請求項1の発明の第一
実施形態と相違する点につき説明し、請求項1の発明の
第一実施形態と同様の点については、その詳細な説明を
省略する。
<Fifth Embodiment of Claim 1> FIG.
FIG. 7 is a functional block diagram for explaining a fifth embodiment of the first aspect of the present invention. Hereinafter, points different from the first embodiment of the first aspect of the invention will be mainly described, and detailed description of the same points as those of the first embodiment of the first aspect of the invention will be omitted.

【0256】この実施形態の修正条件検出装置58は、
修正条件検出部60、検出率算出部62及び比較判定部
64を備える。
The modification condition detecting device 58 of this embodiment
A correction condition detection unit 60, a detection rate calculation unit 62, and a comparison determination unit 64 are provided.

【0257】修正条件検出部60は、請求項1の発明の
第一実施形態と同様に、条件設定部28、画像変換部3
0、対応点探索部32、評価値算出部34及び最大値検
出部36と、第三左メモリ38及び第三右メモリ40と
を備える。
The correction condition detecting section 60 includes the condition setting section 28 and the image converting section 3 as in the first embodiment of the present invention.
0, a corresponding point search unit 32, an evaluation value calculation unit 34, a maximum value detection unit 36, a third left memory 38 and a third right memory 40.

【0258】検出率算出部62は、対応点探索装置24
における対応点の検出率を求める。例えば、対応点探索
装置24における対応点の検出個数もしくはこれに加え
対応不明点の検出個数を用いて、 (対応点の検出率)=(第二左メモり20の左画像にお
ける対応点の検出個数)/(第二左メモリ20の左画像
における対応点及び対応不明点の検出個数の和)、 (対応点の検出率)=(第二左メモり20の左画像にお
ける対応点の検出個数)/(第二左メモリ20の左画像
における対応点及び対応不明点の検出個数の和) で表される。
The detection rate calculating section 62 calculates the corresponding point searching device 24
The detection rate of the corresponding point in is calculated. For example, using the number of detected corresponding points in the corresponding point search device 24 or the number of detected unknown points in addition thereto, (corresponding point detection rate) = (corresponding point detection in the left image of the second left memory 20) (Number) / (sum of detected numbers of corresponding points and unknown points in left image of second left memory 20), (detection rate of corresponding points) = (number of detected corresponding points in left image of second left memory 20) ) / (Sum of the number of detected corresponding points and unknown points in the left image in the second left memory 20).

【0259】比較判定部64は検出率算出部62から対
応点の検出率を入力し、対応点の検出率を閾値と比較す
る。
The comparison / determination section 64 receives the detection rate of the corresponding point from the detection rate calculation section 62 and compares the detection rate of the corresponding point with a threshold.

【0260】修正条件検出部60は比較判定部64から
対応点の検出率と閾値との比較結果を入力し、対応点の
検出率が閾値以下であれば新たな修正条件を検出し、検
出した新たな修正条件に従って画像変換した左画像、右
画像を第二左メモリ20、第二左右メモリ22に格納す
る。
The correction condition detecting section 60 receives the comparison result between the corresponding point detection rate and the threshold value from the comparison / determination section 64, and detects and detects a new correction condition if the corresponding point detection rate is equal to or less than the threshold value. The left image and the right image that have undergone image conversion according to the new correction condition are stored in the second left memory 20 and the second left and right memory 22.

【0261】また修正条件検出部60は対応点の検出率
が閾値を越えれば新たな修正条件を検出する処理は行な
わず、既に検出済みの修正条件に従って画像変換した左
画像、右画像を第二左メモリ20、第二右メモリ22に
格納する。
If the detection rate of the corresponding point exceeds the threshold value, the correction condition detection section 60 does not perform the process of detecting a new correction condition, and converts the left image and the right image, which have been converted in accordance with the already detected correction conditions, into the second image. The data is stored in the left memory 20 and the second right memory 22.

【0262】尚、対応点探索装置24、修正条件検出装
置58を動作させる前に、通常行なわれる如く、左カメ
ラ10、右カメラ12のレンズ光軸を機械的に移動調整
して、これら左カメラ10、12により撮影される左画
像、右画像のエピポーララインを大まかに調整してお
き、その後、この実施形態の修正条件検出装置58によ
り修正条件に基づく画像変換を行なって左画像、右画像
のエピポーララインを合わせるようにすると良い。
Before operating the corresponding point searching device 24 and the correction condition detecting device 58, the lens optical axes of the left camera 10 and the right camera 12 are mechanically moved and adjusted as usual, and The epipolar lines of the left image and the right image photographed by 10 and 12 are roughly adjusted, and thereafter, image conversion based on the correction conditions is performed by the correction condition detection device 58 of this embodiment, and the left image and the right image are converted. It is good to match the epipolar line.

【0263】この実施形態によれば、対応点の検出率が
閾値以下となった場合にのみ、修正条件の検出を行なう
ので、修正条件検出に要する処理時間を長く確保するこ
とができる。対応点探索部32は、通常、修正条件を検
出するための処理を並列して行なうことができるコンピ
ュータを用いて構成されるが、対応点の検出率が閾値以
下となった場合にのみ、修正条件の検出を行なうことに
より、その並列処理数を減少させて並列処理に必要なメ
モリ容量を減少させ、或は、処理速度のより低速なコン
ピュータを用いて対応点探索部32を構成したりするこ
とができる。この結果、対応点探索部32の装置規模を
小さくし、或は、装置コストを低減したりすることがで
きる。
According to this embodiment, the correction condition is detected only when the detection rate of the corresponding point is equal to or less than the threshold value, so that a long processing time for detecting the correction condition can be secured. The corresponding point search unit 32 is usually configured using a computer that can perform processing for detecting the correction condition in parallel, but only when the detection rate of the corresponding point falls below the threshold, the correction is performed. By detecting the condition, the number of parallel processes is reduced to reduce the memory capacity required for the parallel processes, or the corresponding point search unit 32 is configured using a computer having a lower processing speed. be able to. As a result, the device scale of the corresponding point searching unit 32 can be reduced, or the device cost can be reduced.

【0264】また何らかの要因により左画像、右画像の
エピポーララインがずれれば、対応点探索装置24にお
ける対応点の検出率が低下するので、エピポーラライン
がずれたときに修正条件を検出してエピポーララインを
合わせることができる。
If the epipolar lines of the left image and the right image deviate for some reason, the detection rate of the corresponding point in the corresponding point searching device 24 decreases. Therefore, when the epipolar line is deviated, the correction condition is detected and the epipolar line is detected. You can adjust the line.

【0265】<請求項5の発明の第一実施形態>図17
は請求項5の発明の第一実施形態の説明に供する機能ブ
ロック図である。以下、主として請求項1の発明の第一
実施形態と相違する点につき説明し、請求項1の発明の
第一実施形態と同様の点については、その詳細な説明を
省略する。
<First Embodiment of Claim 5> FIG.
FIG. 7 is a functional block diagram for explaining a first embodiment of the invention of claim 5. Hereinafter, points different from the first embodiment of the first aspect of the invention will be mainly described, and detailed description of the same points as those of the first embodiment of the first aspect of the invention will be omitted.

【0266】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40とを備える。
The modified condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36, a third left memory 38 and a third right memory 40 are provided.

【0267】さらにこの実施形態の修正条件検出装置1
8は、階調変換部66及びレベル切出し部68と、第四
左メモリ70及び第四右メモリ72とを備える。
Further, the correction condition detecting device 1 of this embodiment
8 includes a gradation conversion unit 66 and a level cutout unit 68, a fourth left memory 70 and a fourth right memory 72.

【0268】条件設定部28は修正条件を検出するため
の複数種類の候補条件を順次に設定し、画像変換部30
は左カメラ10及び右カメラ12により得たm階調の左
画像及びm階調の右画像の一方を、候補条件に従って画
像変換する。
The condition setting unit 28 sequentially sets a plurality of types of candidate conditions for detecting a correction condition,
Performs image conversion of one of an m-gradation left image and an m-gradation right image obtained by the left camera 10 and the right camera 12 according to candidate conditions.

【0269】ここでは条件設定部28は補正条件を検出
するための複数種類の候補条件と、エピポーララインを
合わせるための複数種類の修正条件とを記憶する。記憶
する修正条件は、最大値検出部36により検出された修
正条件である。
Here, the condition setting section 28 stores a plurality of types of candidate conditions for detecting a correction condition and a plurality of types of correction conditions for matching epipolar lines. The correction condition to be stored is the correction condition detected by the maximum value detection unit 36.

【0270】条件設定部28は、画像の平行移動、回転
及び倍率変換に関わる候補条件を記憶する。従って最大
値検出部36が検出する修正条件は画像の平行移動、回
転及び倍率変換に関わる修正条件となり、画像変換部3
0が候補条件及び修正条件に従って行なう画像変換は画
像の平行移動、回転及び倍率変換となる。
The condition setting section 28 stores candidate conditions relating to image parallel movement, rotation, and magnification conversion. Therefore, the correction conditions detected by the maximum value detection unit 36 are correction conditions relating to the parallel movement, rotation, and magnification conversion of the image.
The image conversion performed by 0 according to the candidate condition and the correction condition is translation, rotation and magnification conversion of the image.

【0271】階調変換部66は画像変換後の左右画像を
n階調(m>n)の左右画像に変換し、レベル切出し部
68は階調変換後の左右画像から、着目した1種類又は
複数種類の階調レベルここでは着目した1種類の階調レ
ベルの、左右画像を左右着目レベル画像として切り出
す。
The gradation conversion unit 66 converts the right and left images after image conversion into left and right images of n gradations (m> n), and the level cutout unit 68 converts the left and right images after gradation conversion into one or more focused images. Plural types of gradation levels Here, the left and right images of one type of focused gradation level are cut out as left and right level images of interest.

【0272】例えば左右カメラ10、12により得たm
=256階調の左右画像を得た場合に、画像変換部30
は候補条件に従ってm=256階調の左右画像の一方を
画像変換し、階調変換部66は画像変換後のm=256
階調の左右画像をn=16階調の左右画像に変換し、レ
ベル切出し部68は階調変換後の16階調の左右画像か
ら、着目した1種類の階調レベル例えば第8番目の階調
レベルの左右画像を左右着目レベル画像として切り出
す。
For example, m obtained by the left and right cameras 10 and 12
= 256 gradation left and right images are obtained, the image conversion unit 30
Performs image conversion of one of the left and right images of m = 256 gradations according to the candidate condition, and the gradation conversion unit 66 sets m = 256 after the image conversion.
The left and right images of the gradation are converted into left and right images of n = 16 gradations, and the level cutout unit 68 extracts one type of gradation level of interest, for example, the eighth floor, from the 16 gradation left and right images after the gradation conversion. The left and right images at the tonal level are cut out as left and right attention level images.

【0273】対応点探索部32は、走査方向、走査対象
となる画素の階調表現、若しくは、走査対象となる画素
の色を異ならせて複数種の探索条件を設定し、左右着目
レベル画像を左右探索画像とする。
The corresponding point search unit 32 sets a plurality of types of search conditions by changing the scanning direction, the gradation expression of the pixel to be scanned, or the color of the pixel to be scanned, and sets the left and right level image of interest. Let it be a left and right search image.

【0274】そして対応点探索部32は、探索条件に従
って左右探索画像を走査し、相対応する水平走査線上に
おいて左探索画像の画素特徴と右探索画像の画素特徴と
を比較して画素特徴の差が閾値以下となる左右探索画像
の画素を対応候補点として検出する。さらに対応点探索
部32は各探索条件毎に検出した対応候補点の集合にお
いて共通集合となる対応候補点を対応点として検出す
る。
The corresponding point search unit 32 scans the left and right search images according to the search conditions, compares the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines, and determines the difference between the pixel characteristics. The pixels of the left and right search images for which is less than or equal to the threshold are detected as corresponding candidate points. Further, the corresponding point search unit 32 detects, as corresponding points, corresponding candidate points that become a common set in the set of corresponding candidate points detected for each search condition.

【0275】ここでは、白黒画像の左右着目レベル画像
を左右探索画像とする。また左右探索画像において相対
応する水平走査線上に存在する画素であって、左右探索
画像の一方の画素を着目点、及び、左右探索画像の他方
の画像の画素を対照点とする。そして走査方向を異なら
せた複数種類の探索条件すなわち着目点走査方向及び又
は対照点走査方向を異ならせた複数種の探索条件を設定
する。
Here, the left and right focused level images of the black and white image are assumed to be left and right search images. In addition, one pixel of the left and right search image, which is a pixel existing on the corresponding horizontal scanning line in the left and right search image, is set as a point of interest, and a pixel of the other image of the left and right search image is set as a control point. Then, a plurality of types of search conditions having different scanning directions, that is, a plurality of types of search conditions having different target point scanning directions and / or different control point scanning directions are set.

【0276】そして探索条件に従って、左右探索画像の
相対応する水平走査線L上において着目点走査方向へ順
次に数えて第i番目の着目点に対し、相対応する水平走
査線L上の対照点を対照点走査方向へ順次に走査して行
く。第i番目の着目点に対し画素特徴の差が閾値以下と
なる対照点を検出することなく水平走査線L上の対照点
を全て走査し終えたら、次に第i+1番目の着目点に対
し対照点の走査を行なう。また第i番目の着目点に対し
画素特徴の差が閾値以下となる対照点を検出したら、当
該第i番目の着目点と対照点とを対応候補点として検出
し、然る後、第i+1番目の着目点に対し対照点の走査
を行なう。
In accordance with the search conditions, the i-th point of interest sequentially counted in the scanning direction of interest on the corresponding horizontal scanning line L of the left and right search image is compared with the control point on the corresponding horizontal scanning line L. Are sequentially scanned in the control point scanning direction. After scanning all the control points on the horizontal scanning line L without detecting a control point whose pixel feature difference is equal to or smaller than the threshold value with respect to the i-th point of interest, the control is then performed on the (i + 1) -th point of interest. Perform a point scan. When a control point at which the difference of the pixel feature with respect to the i-th point of interest is smaller than or equal to the threshold is detected, the i-th point of interest and the control point are detected as corresponding candidate points, and then the (i + 1) -th point of interest is detected. Is scanned for the point of interest.

【0277】このようにして各探索条件毎に対応候補点
を検出したら、各探索条件毎に検出した対応候補点の集
合において共通集合となる対応候補点を対応点として検
出する。
When the corresponding candidate points are detected for each search condition in this way, the corresponding candidate points that are a common set in the set of corresponding candidate points detected for each search condition are detected as corresponding points.

【0278】例えば、着目点走査方向を右方向(x座標
が次第に大きくなる方向)としかつ対照点走査方向を右
方向とする第一の探索条件と、着目点走査方向を右方向
としかつ対照点走査方向を左方向(y座標が次第に小さ
くなる方向)とする第二の探索条件とを設定する。そし
て第一の探索条件に従って左右探索画像を走査して対応
候補点を検出し、さらに第二の探索条件に従って左右探
索画像を走査して対応候補点を検出し、第一の探索条件
により検出した対応候補点の集合と第二の探索条件によ
り検出した対応候補点の集合とにおいて共通集合となる
対応候補点を対応点として検出する。
For example, a first search condition in which the scanning direction of the point of interest is the right direction (a direction in which the x coordinate gradually increases) and the scanning direction of the control point is the right direction, A second search condition for setting the scanning direction to the left (a direction in which the y coordinate becomes gradually smaller) is set. Then, scanning the left and right search images according to the first search condition to detect corresponding candidate points, further scanning the left and right search images according to the second search condition to detect corresponding candidate points, and detecting the corresponding candidate points according to the first search condition Corresponding candidate points that are a common set between the set of corresponding candidate points and the set of corresponding candidate points detected according to the second search condition are detected as corresponding points.

【0279】次に対応点探索部32は、対応点検出結果
を用いて左右探索画像における位相差の判明点及び不明
点を検出する。ここでは、対応点の位相差に基づいて対
応不明点(対応点として検出されなかった画素)に対し
て位相差を推定し当て嵌める。位相差を当て嵌めること
ができなかった対応不明点を位相差不明点として検出す
る。然る後、対応不明点に当て嵌めた位相差に関して、
位相差が正しいか否かを検定する。そしてこの検定によ
り正しいと判定された位相差の対応不明点を位相差判明
点として、正しくないと判定された位相差の対応不明点
を位相差不明点として検出する。
Next, the corresponding point search section 32 detects a known point and an unknown point of the phase difference in the left and right search images using the corresponding point detection result. Here, based on the phase difference between the corresponding points, the phase difference is estimated and applied to an unknown correspondence point (pixel not detected as the corresponding point). The corresponding unknown points to which the phase difference could not be applied are detected as the phase difference unknown points. Then, regarding the phase difference applied to the unknown point,
Test whether the phase difference is correct. Then, the unknown point of the correspondence of the phase difference determined to be correct by this test is detected as a known point of the phase difference, and the unknown point of the correspondence of the phase difference determined to be incorrect is detected as the unknown point of the phase difference.

【0280】評価値産出部34は左右探索画像における
位相差判明点の検出率を用いて、候補条件の種類毎に候
補条件の評価値を求める。ここでは左右探索画像におけ
る位相差判明点の検出率を、各候補条件毎に求め、当該
検出率を候補条件の評価値とする。
The evaluation value producing section 34 obtains the evaluation value of the candidate condition for each type of the candidate condition by using the detection rate of the phase difference found point in the left and right search images. Here, the detection rate of the phase difference found point in the left and right search images is obtained for each candidate condition, and the detection rate is used as the evaluation value of the candidate condition.

【0281】最大値検出部36は候補条件の種類毎に最
大の評価値を得た候補条件を修正条件として検出する。
ここでは最大値検出部36は、検出した修正条件を条件
設定部28に記憶させる。
The maximum value detector 36 detects a candidate condition that has obtained the maximum evaluation value for each type of candidate condition as a correction condition.
Here, the maximum value detecting unit 36 causes the condition setting unit 28 to store the detected correction condition.

【0282】図18は請求項1の発明の第一実施形態の
動作の流れを示す図である。同図においては、複数種類
の候補条件及び修正条件のうち1種類に着目し、当該着
目種について、候補条件を用いて修正条件を検出する場
合の動作の流れを示す。
FIG. 18 is a diagram showing a flow of the operation of the first embodiment of the present invention. FIG. 7 shows a flow of operation in a case where attention is paid to one of a plurality of types of candidate conditions and correction conditions, and a correction condition is detected using the candidate conditions for the type of interest.

【0283】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかの1種類を着目種の候補条件
として設定し(S1)、然る後、条件設定部28は着目
種の複数個の候補条件のなかから選択した1個の候補条
件(選択候補条件)を出力する(S2)。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), the condition setting section 28 first sets one of a plurality of types of candidate conditions as a candidate condition of a target type (S1). Thereafter, the condition setting unit 28 outputs one candidate condition (selected candidate condition) selected from the plurality of candidate conditions of the target species (S2).

【0284】次に画像変換部30は、左右カメラ10、
12により撮影したm階調の左右画像の一方を、条件設
定部28から入力した選択候補条件に従って画像変換
し、画像変換後の左右画像を第三左右メモリ38、40
に格納する(S3)。左右カメラ10、12により撮影
した左右画像は第一左右メモリ14、16に格納されて
おり、画像変換部30は第一左右メモリ14、16の左
右画像を読み出し、読み出した左右画像の一方は画像変
換し他方は画像変換せずに、画像変換後の左右画像を第
三左右メモリ38、40に格納する。
[0284] Next, the image converter 30 includes the left and right cameras 10,
One of the left and right images of m gradation captured by the step 12 is subjected to image conversion in accordance with the selection candidate conditions input from the condition setting unit 28, and the left and right images after image conversion are stored in the third left and right memories 38 and 40.
(S3). The left and right images captured by the left and right cameras 10 and 12 are stored in first left and right memories 14 and 16, and the image conversion unit 30 reads the left and right images of the first left and right memories 14 and 16, and one of the read left and right images is an image. The left and right images after image conversion are stored in the third left and right memories 38 and 40 without conversion.

【0285】次に階調変換部66は画像変換後の左右画
像を第三左右メモリ38、40から読み出してn階調
(m>n)の左右画像に変換し、階調変換後の左右画像
を第四左右メモリ70、72に格納する(S4)。例え
ばm=256階調及びn=16階調である。
Next, the gradation conversion section 66 reads the left and right images after image conversion from the third left and right memories 38 and 40 and converts them into n gradation (m> n) left and right images. Is stored in the fourth left and right memories 70 and 72 (S4). For example, m = 256 gradations and n = 16 gradations.

【0286】次にレベル切出し部68は、第四左右メモ
リ70、72に格納されている階調変換後の左右画像を
走査して、着目した1種類の階調レベルの画素を検出
し、この着目階調レベルの画素から成る左右画像を、左
右着目レベル画像として切り出す(S5)。例えばn=
16階調の第8番目の階調レベルを着目階調レベルとす
る。
Next, the level cutout section 68 scans the left and right images after gradation conversion stored in the fourth left and right memories 70 and 72 to detect a pixel of one type of gradation level of interest. The left and right images composed of pixels of the target gradation level are cut out as left and right target level images (S5). For example, n =
The eighth gray level of the 16 gray levels is set as the target gray level.

【0287】次に対応点探索部32は、走査方向を異な
らせて複数種の探索条件を設定すると共に、左右着目レ
ベル画像を左右探索画像とし、各探索条件毎に、左右探
索画像における対応候補点を検出する(S6)。ここで
は階調変換後の左右画像全面に対応する左右着目レベル
画像を、左右探索画像とする。
Next, the corresponding point search unit 32 sets a plurality of types of search conditions by changing the scanning direction, sets the left and right attention level images as left and right search images, and sets a corresponding candidate in the left and right search images for each search condition. A point is detected (S6). Here, the left and right focused level images corresponding to the entire left and right images after gradation conversion are set as left and right search images.

【0288】例えば左右カメラ10、12により撮影し
た左右画像が白黒画像であって従って左右探索画像とし
て白黒画像が得られるものとする。さらに左探索画像の
画素を着目点、及び、右探索画像の画素を対照点とし、
着目点走査方向を右方向及び対照点走査方向を右方向と
する第一の探索条件と、着目点走査方向を右方向及び対
照点走査方向を左方向とする第二の探索条件とを設定す
る。
For example, it is assumed that the left and right images taken by the left and right cameras 10 and 12 are black and white images, and therefore, a black and white image can be obtained as the left and right search image. Further, the pixel of the left search image is a point of interest, and the pixel of the right search image is a control point,
A first search condition that sets the target point scanning direction to the right and a control point scanning direction to the right is set, and a second search condition that sets the target point scanning direction to the right and the control point scanning direction to the left is set. .

【0289】そして第一の探索条件に従って、左右探索
画像の相対応する水平走査線L上において着目点走査方
向へ順次に数えて第i番目の着目点に対し、相対応する
水平走査線L上の対照点を対照点走査方向へ順次に走査
して行く。第i番目の着目点に対し画素特徴例えば画素
濃度の差が閾値以下となる対照点を検出することなく水
平走査線L上の対照点を全て走査し終えたら、次に第i
+1番目の着目点に対し対照点の走査を行なう。また第
i番目の着目点に対し画素特徴の差が閾値以下となる対
照点を検出したら、当該第i番目の着目点と対照点とを
対応候補点として検出し、然る後、第i+1番目の着目
点に対し対照点の走査を行なう。そして左右探索画像全
面にわたって水平走査線L上の着目点及び対照点の走査
を終了したら、第一の探索条件による対応候補点の検出
を終了する。同様にして第二の探索条件で左右探索画像
を走査して、第二の探索条件による対応候補点の検出を
終了する。
In accordance with the first search condition, the i-th point of interest is sequentially counted in the scanning direction of the point of interest on the corresponding horizontal scanning line L of the left and right search image, and the corresponding point on the corresponding horizontal scanning line L Are sequentially scanned in the scanning direction of the reference point. When all the control points on the horizontal scanning line L have been scanned without detecting a control point having a pixel characteristic, for example, a difference in pixel density equal to or smaller than a threshold value, with respect to the i-th point of interest,
The control point is scanned for the (+1) th point of interest. When a control point at which the difference of the pixel feature with respect to the i-th point of interest is smaller than or equal to the threshold is detected, the i-th point of interest and the control point are detected as corresponding candidate points, and then the (i + 1) -th point of interest is detected. Is scanned for the point of interest. When the scanning of the target point and the reference point on the horizontal scanning line L is completed over the entire left and right search image, the detection of the corresponding candidate point based on the first search condition is completed. Similarly, the left and right search images are scanned under the second search condition, and the detection of the corresponding candidate points under the second search condition ends.

【0290】全種類の探索条件について、対応候補点の
検出を終了したら、次に対応点探索部32は、各探索条
件毎に得た対応候補点の集合において共通集合となる対
応候補点を対応点として検出する(S7)。
When the detection of the corresponding candidate points is completed for all types of search conditions, the corresponding point search unit 32 next associates the corresponding candidate points that become a common set in the set of corresponding candidate points obtained for each search condition. It is detected as a point (S7).

【0291】前述のように相対応する水平走査線L上の
左右探索画像を走査し、画素特徴の差が閾値以下となっ
たら次の着目点を走査して、対応候補点を検出するの
で、各探索条件毎に得た対応候補点の集合において共通
集合となる対応候補点を対応点として検出することによ
って、確率的に確からしい対応点を検出することができ
る。
As described above, the left and right search images on the corresponding horizontal scanning line L are scanned, and when the difference between the pixel characteristics is equal to or less than the threshold value, the next point of interest is scanned to detect a corresponding candidate point. By detecting as a corresponding point a corresponding candidate point that is a common set in a set of corresponding candidate points obtained for each search condition, it is possible to detect a corresponding point that is likely to be stochastic.

【0292】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出し、位相
差判明点或はこれに加え位相差不明点の検出個数を評価
値算出部34に対し出力する(S8)。
Next, the corresponding point search section 32 detects the phase difference found point and the phase difference unknown point using the corresponding point detection result, and evaluates the phase difference found point or the number of detected phase difference unknown points in addition thereto. Output to the value calculation unit 34 (S8).

【0293】ここで検出する位相差判明点及び位相差不
明点は、左右探索画像全面に関わるものである。
Here, the detected phase difference points and the unknown phase difference points relate to the entire left and right search image.

【0294】次に評価値算出部32は、位相差判明点の
検出個数を用いて位相差判明点の検出率を求め、(S
2)で条件設定部28が出力した選択候補条件の評価値
として当該位相差判明点の検出率を最大値検出部36に
格納する(S9)。
Next, the evaluation value calculation section 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points, and calculates (S
The detection rate of the phase difference found point is stored in the maximum value detection unit 36 as the evaluation value of the selection candidate condition output by the condition setting unit 28 in 2) (S9).

【0295】ここで求める位相差判明点の検出率は、現
在の左右探索画像となっている左右画像全面に関わるも
のである。
[0295] The detection rate of the phase difference found point obtained here relates to the entire left and right images that are the current left and right search images.

【0296】次に条件設定部28は着目種の全ての候補
条件を選択し終えたか否かを判定する(S10)。
Next, the condition setting section 28 determines whether or not all the candidate conditions of the target species have been selected (S10).

【0297】条件設定部28が着目種の全ての候補条件
を選択し終えていないと判定すると、条件設定部28は
着目種の次の候補条件を選択し(S11)、然る後、選
択した候補条件を出力する(S2)。
When the condition setting unit 28 determines that all the candidate conditions of the target species have not been selected, the condition setting unit 28 selects the next candidate condition of the target species (S11), and then selects the next candidate condition. The candidate condition is output (S2).

【0298】また条件設定部28が着目種の全ての候補
条件を選択し終えたと判定すると、最大値検出部36は
着目種の各候補条件毎に得た評価値のなかから最大の評
価値を検出し、最大の評価値を得た候補条件を修正条件
として検出する。そして最大値検出部28は当該着目種
の修正条件を条件設定部28に格納する(S12)。然
る後、修正条件検出装置18は、当該着目種の修正条件
を検出するための処理を終了する(終了)。
When the condition setting unit 28 determines that all the candidate conditions of the target species have been selected, the maximum value detection unit 36 determines the maximum evaluation value from among the evaluation values obtained for each candidate condition of the target species. The candidate condition that has been detected and obtained the maximum evaluation value is detected as a correction condition. Then, the maximum value detection unit 28 stores the correction condition of the target type in the condition setting unit 28 (S12). Thereafter, the correction condition detection device 18 ends the processing for detecting the correction condition of the target type (end).

【0299】この実施形態によれば、左右カメラ10、
12により撮影して得た左右画像を階調変換しさらに階
調変換後の左右画像から着目階調レベルの画素のみから
成る左右着目レベル画像を切り出し、左右着目レベル画
像を左右探索画像として対応点を検出するので、エピポ
ーラライン合わせに用いる修正条件を検出するのに要す
る時間を短縮できる。
According to this embodiment, the left and right cameras 10,
The left and right images obtained by photographing by the step 12 are subjected to the gradation conversion, and the left and right images after the gradation conversion are cut out from the left and right images, and the left and right attention level images composed only of the pixels of the attention gradation level are cut out. Is detected, the time required to detect the correction condition used for epipolar line alignment can be reduced.

【0300】また上述したこの実施形態の説明では、走
査方向を異ならせて複数種類の探索条件を設定する場合
につき、階調変換部66、レベル切出し部68、対応点
探索部32の動作の流れを説明したが、走査対象となる
画素の階調表現或は走査対象となる画素の色を異ならせ
て複数種類の探索条件を設定することもできる。
In the above description of the present embodiment, the flow of operation of the gradation conversion unit 66, the level cutout unit 68, and the corresponding point search unit 32 when setting a plurality of types of search conditions with different scanning directions. However, it is also possible to set a plurality of types of search conditions by changing the gradation expression of the pixel to be scanned or the color of the pixel to be scanned.

【0301】走査対象となる画素の階調表現を異ならせ
る場合は、例えば、次の如くすれば良い。すなわち左右
画像を白黒画像として、階調変換部66は画像変換後の
m階調の左右画像をn1 (m>n1 )階調の左右画像に
変換し、レベル切出し部68は階調変換後のn1 階調の
左右画像から左右着目レベル画像を切り出し、対応点探
索部32はこの左右着目レベル画像について対応候補点
の検出を行なう。n1階調の左右着目レベル画像につき
対応候補点の検出を終了したら、次に階調変換部66は
画像変換後のm階調の左右画像をn2 階調の左右画像に
変換し、レベル切出し部68は階調変換後のn2 (m>
2 )階調の左右画像から左右着目レベル画像を切り出
し、対応点探索部32はこの左右着目レベル画像につい
て対応候補点の検出を行なう。この際、n1 =n2 とし
てn1 階調の左右画像の最初及び最後の階調幅とn2
調の左右画像の最初及び最後の階調幅とを異ならせて、
階調表現を異ならせる。或は、n1 ≠n2 として階調表
現を異ならせる。このように走査対象となる画素の階調
表現を異ならせたn1 階調及びn2 階調の左右画像から
切り出した左右着目レベル画像について対応候補点を検
出するという複数種の探索条件を設定して、対応候補点
を検出し、各探索条件毎に検出した対応候補点の集合に
おいて共通集合となる対応候補点を対応点として検出す
れば良い。
In order to make the gradation expression of the pixel to be scanned different, for example, the following may be performed. That is, the left and right images are converted into black and white images, the gradation conversion unit 66 converts the m gradation left and right images after image conversion into n 1 (m> n 1 ) gradation left and right images, and the level cutout unit 68 performs gradation conversion. The left and right attention level images are cut out from the subsequent left and right images of n 1 gradation, and the corresponding point search unit 32 detects corresponding candidate points for the left and right attention level images. When the detection of the corresponding candidate points for the left and right target level image of n 1 gradation is completed, the gradation conversion unit 66 converts the left and right image of m gradation after the image conversion into the left and right image of n 2 gradation, The cutout unit 68 outputs n 2 (m>
From the left and right images of n 2 ) gradation, the left and right attention level images are cut out, and the corresponding point search unit 32 detects corresponding candidate points for the left and right attention level images. At this time, assuming that n 1 = n 2 , the first and last gradation widths of the left and right images of n 1 gradation and the first and last gradation widths of the left and right images of n 2 gradation are made different,
Different gradation expression. Alternatively, the gradation expression is made different by setting n 1 ≠ n 2 . In this manner, a plurality of types of search conditions are set for detecting corresponding candidate points for the left and right attention level images cut out from the left and right images of n 1 and n 2 gradations in which the gradation expression of the pixel to be scanned is different. Then, corresponding candidate points may be detected, and corresponding candidate points that become a common set in a set of corresponding candidate points detected for each search condition may be detected as corresponding points.

【0302】また走査対象となる画素の色を異ならせる
場合は、例えば次の如くすれば良い。すなわち左右画像
をカラー画像として、階調変換部66は画像変換後のm
階調の左右画像をn(m>n)階調の左右画像に変換
し、レベル切出し部68は階調変換後のn階調の左右画
像から、着目した階調レベルの赤色画素のみから成る左
右着目レベル画像を切り出し、対応点探索部32はこの
赤色画素の左右着目レベル画像について対応候補点の検
出を行なう。赤色画素の左右着目レベル画像につき対応
候補点の検出を終了したら、次にレベル切出し部68は
階調変換後のn階調の左右画像から、着目した階調レベ
ルの緑色画素のみから成る左右着目レベル画像を切り出
し、対応点探索部32はこの緑色画素の左右着目レベル
画像について対応候補点の検出を行なう。緑色画素の左
右着目レベル画像につき対応候補点の検出を終了した
ら、次にレベル切出し部68は階調変換後のn階調の左
右画像から、着目した階調レベルの青色画素のみから成
る左右着目レベル画像を切り出し、対応点探索部32は
この青色画素の左右着目レベル画像について対応候補点
の検出を行なう。このように走査対象となる画素の色を
異ならせた左右着目レベル画像について対応候補点を検
出するという複数種の探索条件を設定して、対応候補点
を検出し、各探索条件毎に検出した対応候補点の集合に
おいて共通集合となる対応候補点を対応点として検出す
れば良い。
When the colors of the pixels to be scanned are made different, for example, the following may be performed. That is, with the left and right images as color images, the gradation conversion unit 66
The left and right images of the gradation are converted into left and right images of the n (m> n) gradations, and the level cutout unit 68 is composed of only the red pixels of the focused gradation level from the left and right images of the n gradations after the gradation conversion. The left and right attention level images are cut out, and the corresponding point search unit 32 detects corresponding candidate points for the left and right attention level images of the red pixels. After the detection of the corresponding candidate points for the right and left focused level images of the red pixels is completed, the level cutout unit 68 next extracts the left and right focused images including only the green pixels of the focused gradation level from the n-graded left and right images after the gradation conversion. The level image is cut out, and the corresponding point search unit 32 detects a corresponding candidate point for the left and right focused level images of the green pixels. After the detection of the corresponding candidate points for the left and right focused level images of the green pixels is completed, the level cutout unit 68 next extracts the left and right focused images including only the blue pixels of the focused tone level from the n-graded left and right images after the tone conversion. The level image is cut out, and the corresponding point searching unit 32 detects a corresponding candidate point for the left and right focused level images of the blue pixel. In this way, a plurality of types of search conditions for detecting corresponding candidate points are set for the left and right target level images in which the colors of the pixels to be scanned are different, the corresponding candidate points are detected, and each of the search conditions is detected. It is only necessary to detect the corresponding candidate points that become a common set in the set of the corresponding candidate points as the corresponding points.

【0303】<請求項5の発明の第二実施形態>次に図
17を参照し、請求項5の発明の第二実施形態につき説
明する。以下、主として請求項5の発明の第一実施形態
と相違する点につき説明し、請求項5の発明の第一実施
形態と同様の点については、その詳細な説明を省略す
る。
<Second Embodiment of the Invention of Claim 5> Next, a second embodiment of the invention of claim 5 will be described with reference to FIG. Hereinafter, points different from the first embodiment of the invention of claim 5 will be mainly described, and detailed description of the same points as those of the first embodiment of the invention of claim 5 will be omitted.

【0304】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40とを備える。
The modification condition detection device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36, a third left memory 38 and a third right memory 40 are provided.

【0305】さらにこの実施形態の修正条件検出装置1
8は、階調変換部66及びレベル切出し部68と、第四
左メモリ70及び第四右メモリ72とを備える。
Further, the correction condition detecting device 1 of this embodiment
8 includes a gradation conversion unit 66 and a level cutout unit 68, a fourth left memory 70 and a fourth right memory 72.

【0306】この実施形態では、レベル切出し部68は
階調変換後の左右画像から着目した複数種類の階調レベ
ルの左右画像を順次に左右着目レベル画像として切り出
し、評価値算出部は候補条件が同じ各左右探索画像毎に
位相差判明点の検出率を求め、候補条件が同じ左右探索
画像について求めた検出率の平均値を当該候補条件の評
価値とする。
In this embodiment, the level extracting section 68 sequentially extracts left and right images of a plurality of types of gradation levels of interest from the left and right images after gradation conversion as left and right attention level images. The detection rate of the phase difference finding point is obtained for each of the same left and right search images, and the average value of the detection rates obtained for the left and right search images having the same candidate condition is set as the evaluation value of the candidate condition.

【0307】図19は請求項5の発明の第二実施形態の
動作の流れを示す図である。同図においては、複数種類
の候補条件及び修正条件のうち1種類に着目し、当該着
目種について、候補条件を用いて修正条件を検出する場
合の動作の流れを示す。
FIG. 19 is a diagram showing the flow of the operation of the second embodiment of the present invention. FIG. 7 shows a flow of operation in a case where attention is paid to one of a plurality of types of candidate conditions and correction conditions, and a correction condition is detected using the candidate conditions for the type of interest.

【0308】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかの1種類を着目種の候補条件
として設定し(S1)、然る後、条件設定部28は着目
種の複数個の候補条件のなかから選択した1個の候補条
件(選択候補条件)を出力する(S2)。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), the condition setting section 28 sets one of a plurality of types of candidate conditions as a candidate condition of a target type (S1). Thereafter, the condition setting unit 28 outputs one candidate condition (selected candidate condition) selected from the plurality of candidate conditions of the target species (S2).

【0309】次に画像変換部30は、左右カメラ10、
12により撮影したm階調の左右画像の一方を、条件設
定部28から入力した選択候補条件に従って画像変換
し、画像変換後の左右画像を第三左右メモリ38、40
に格納する(S3)。左右カメラ10、12により撮影
した左右画像は第一左右メモリ14、16に格納されて
おり、画像変換部30は第一左右メモリ14、16の左
右画像を読み出し、読み出した左右画像の一方は画像変
換し他方は画像変換せずに、画像変換後の左右画像を第
三左右メモリ38、40に格納する。
[0309] Next, the image conversion unit 30 includes the left and right cameras 10,
One of the left and right images of m gradation captured by the step 12 is subjected to image conversion in accordance with the selection candidate conditions input from the condition setting unit 28, and the left and right images after image conversion are stored in the third left and right memories 38 and 40.
(S3). The left and right images captured by the left and right cameras 10 and 12 are stored in first left and right memories 14 and 16, and the image conversion unit 30 reads the left and right images of the first left and right memories 14 and 16, and one of the read left and right images is an image. The left and right images after image conversion are stored in the third left and right memories 38 and 40 without conversion.

【0310】次に階調変換部66は画像変換後の左右画
像を第三左右メモリ38、40から読み出してn階調
(m>n)の左右画像に変換し、階調変換後の左右画像
を第四左右メモリ70、72に格納する(S4)。
Next, the gradation conversion section 66 reads the left and right images after image conversion from the third left and right memories 38 and 40 and converts them into n right and left images (m> n). Is stored in the fourth left and right memories 70 and 72 (S4).

【0311】次にレベル切出し部68は、階調変換後の
左右画像から、着目した複数種類の階調レベルの左右画
像を順次に左右着目レベル画像として切り出す。レベル
切出し部68は、第四左右メモリ70、72に格納され
ている階調変換後の左右画像を走査して、着目した複数
種類の階調レベルのうち1種類の階調レベルの画素を検
出し、この着目階調レベルの画素から成る左右画像を、
左右着目レベル画像として切り出す(S5)。例えばn
=16階調のうち、第5番目、第8番目及び第11番目
の階調レベルに着目し、これら着目階調レベルのうちま
ず第5番目の階調レベルの画素から成る左右画像を、左
右着目レベル画像として切り出す。
Next, the level extracting section 68 sequentially extracts left and right images of a plurality of types of focused gradation levels from the left and right images after gradation conversion as left and right focused level images. The level cutout unit 68 scans the left and right images after gradation conversion stored in the fourth left and right memories 70 and 72, and detects a pixel of one kind of gradation level among a plurality of kinds of gradation levels of interest. Then, the left and right images composed of pixels of the target gradation level are
The image is cut out as the left and right attention level images (S5). For example, n
Of the 16th gray level, focus on the fifth, eighth, and eleventh gray levels. Cut out as an attention level image.

【0312】次に対応点探索部32は、走査方向を異な
らせて複数種の探索条件を設定すると共に、左右着目レ
ベル画像を左右探索画像とし、各探索条件毎に、左右探
索画像における対応候補点を検出する(S6)。ここで
は階調変換後の左右画像全面に対応する左右着目レベル
画像を、左右探索画像とする。
Next, the corresponding point search unit 32 sets a plurality of types of search conditions by changing the scanning direction, sets the left and right attention level images as left and right search images, and sets the corresponding candidate in the left and right search images for each search condition. A point is detected (S6). Here, the left and right focused level images corresponding to the entire left and right images after gradation conversion are set as left and right search images.

【0313】全種類の探索条件について、対応候補点の
検出を終了したら、次に対応点探索部32は、各探索条
件毎に得た対応候補点の集合において共通集合となる対
応候補点を対応点として検出する(S7)。
When the detection of the corresponding candidate points has been completed for all types of search conditions, the corresponding point search unit 32 next associates the corresponding candidate points that become a common set in the set of corresponding candidate points obtained for each search condition. It is detected as a point (S7).

【0314】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出し、位相
差判明点或はこれに加え位相差不明点の検出個数を評価
値算出部34に対し出力する(S8)。
Next, the corresponding point search section 32 detects the phase difference found point and the phase difference unknown point by using the corresponding point detection result, and evaluates the phase difference found point or the number of detected phase difference unknown points in addition thereto. Output to the value calculation unit 34 (S8).

【0315】ここで検出する位相差判明点及び位相差不
明点は、左右探索画像全面に関わるものである。
Here, the detected phase difference points and the unknown phase difference points relate to the entire left and right search image.

【0316】次に評価値算出部32は、位相差判明点の
検出個数を用いて位相差判明点の検出率を求め、(S
2)で条件設定部28が出力した選択候補条件の評価値
として当該位相差判明点の検出率を最大値検出部36に
格納する(S9)。
Next, the evaluation value calculation section 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points, and calculates (S
The detection rate of the phase difference found point is stored in the maximum value detection unit 36 as the evaluation value of the selection candidate condition output by the condition setting unit 28 in 2) (S9).

【0317】ここで求める位相差判明点の検出率は、現
在の左右探索画像となっている左右画像全面に関わるも
のである。
[0317] The detection rate of the phase difference found point obtained here relates to the entire left and right images that are the current left and right search images.

【0318】次にレベル切出し部68は、着目した全て
の種類の階調レベルにつき左右着目レベル画像の切出し
を終了したか否かを判定する(S10)。
Next, the level cutout section 68 determines whether or not the cutout of the left and right focused level images has been completed for all types of focused tone levels (S10).

【0319】着目した全ての種類の階調レベルにつき終
了していなければ、レベル切出し部68は残りの着目し
た種類の階調レベルを選択し(S11)、選択着目階調
レベルにつき左右着目レベル画像の切出しを行なう(S
5)。例えばn=16階調のうち、第5番目、第8番目
及び第11番目の階調レベルに着目し、第5番目の階調
レベルについてのみ左右着目レベル画像の切出しを終了
していれば、次の着目階調レベルとして第8番目の階調
レベルを選択し当該第8番目の着目選択階調レベルにつ
き左右着目レベル画像の切出しを行なう。
If the processing has not been completed for all the target gradation levels, the level cutout section 68 selects the remaining target gradation levels (S11), and selects the left and right target level images for the selected target gradation levels. (S
5). For example, if attention is paid to the fifth, eighth, and eleventh gray levels among n = 16 gray levels, and the extraction of the left and right target level images is completed only for the fifth gray level, The eighth gray level is selected as the next target gray level, and the left and right target level images are cut out for the eighth target selected gray level.

【0320】また着目した全ての種類の階調レベルにつ
き終了していれば、次に評価値算出部34は各着目階調
レベル毎に得た位相差判明点検出率の平均値を求め、こ
の平均値を、(S2)で条件選択部28が出力した候補
条件の評価値として最大値検出部36に格納する(S1
2)。例えば例えばn=16階調のうち、第5番目、第
8番目及び第11番目の階調レベルに着目し、これら3
種類の着目階調レベルの全種類につき左右着目レベル画
像の切出しを終了していれば、これら3種類の着目階調
レベル毎に得た位相差判明点検出率の平均値を求めるこ
ととなる。
If the processing has been completed for all the types of gradation levels of interest, the evaluation value calculation unit 34 next calculates the average value of the phase difference determination point detection rates obtained for each of the target gradation levels. The average value is stored in the maximum value detection unit 36 as the evaluation value of the candidate condition output from the condition selection unit 28 in (S2) (S1).
2). For example, focusing on the fifth, eighth, and eleventh gray levels among n = 16 gray levels, for example,
If the extraction of the left and right target level images has been completed for all the target target tone levels, the average value of the phase difference determination point detection rates obtained for each of the three target target tone levels is obtained.

【0321】次に条件設定部28は着目種の全ての候補
条件を選択し終えたか否かを判定する(S13)。
Next, the condition setting section 28 judges whether or not all the candidate conditions of the target species have been selected (S13).

【0322】着目種の全ての候補条件を選択し終えてい
なければ、条件設定部28は着目種の次の候補条件を選
択し(S14)、然る後、選択した候補条件を出力する
(S2)。
If all the candidate conditions of the target species have not been selected, the condition setting unit 28 selects the next candidate condition of the target species (S14), and then outputs the selected candidate conditions (S2). ).

【0323】また着目種の全ての候補条件を選択し終え
たのであれば、最大値検出部36は着目種の各候補条件
毎に得た評価値のなかから最大の評価値を検出し、最大
の評価値を得た候補条件を修正条件として検出する。そ
して最大値検出部28は当該着目種の修正条件を条件設
定部28に格納する(S15)。然る後、修正条件検出
装置18は、当該着目種の修正条件を検出するための処
理を終了する(終了)。
When all the candidate conditions of the target species have been selected, the maximum value detecting unit 36 detects the maximum evaluation value from among the evaluation values obtained for each candidate condition of the target species, and Are detected as correction conditions. Then, the maximum value detecting unit 28 stores the correction condition of the target type in the condition setting unit 28 (S15). Thereafter, the correction condition detection device 18 ends the processing for detecting the correction condition of the target type (end).

【0324】<請求項5の発明の第三実施形態>次に図
17を参照し、請求項5の発明の第三実施形態につき説
明する。以下、主として請求項5の発明の第一実施形態
と相違する点につき説明し、請求項5の発明の第一実施
形態と同様の点については、その詳細な説明を省略す
る。
<Third Embodiment of the Invention of Claim 5> Next, a third embodiment of the invention of claim 5 will be described with reference to FIG. Hereinafter, points different from the first embodiment of the invention of claim 5 will be mainly described, and detailed description of the same points as those of the first embodiment of the invention of claim 5 will be omitted.

【0325】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40とを備える。
The correction condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36, a third left memory 38 and a third right memory 40 are provided.

【0326】さらにこの実施形態の修正条件検出装置1
8は、階調変換部66及びレベル切出し部68と、第四
左メモリ70及び第四右メモリ72とを備える。
Further, the correction condition detecting device 1 of this embodiment
8 includes a gradation conversion unit 66 and a level cutout unit 68, a fourth left memory 70 and a fourth right memory 72.

【0327】この実施形態では、レベル切出し部68は
階調変換後の左右画像から、着目した複数種類の階調レ
ベルの左右画像を順次に左右着目レベル画像として切り
出し、評価値算出部34は候補条件が同じ各左右探索画
像毎に位相差判明点の検出率を求め、候補条件が同じ左
右探索画像について求めた検出率のうち、上位から順次
に所定個数の検出率を選択し、当該選択により得た検出
率の平均値を候補条件の評価値とする。
In this embodiment, the level extracting section 68 sequentially extracts left and right images of a plurality of types of focused gradation levels as left and right focused level images from the left and right images after gradation conversion. For each of the left and right search images having the same condition, the detection rate of the phase difference found point is obtained, and among the detection rates obtained for the left and right search images having the same candidate condition, a predetermined number of detection rates are sequentially selected from the top, and by this selection The average value of the obtained detection rates is used as the evaluation value of the candidate condition.

【0328】図20は請求項5の発明の第三実施形態の
動作の流れを示す図である。同図においては、複数種類
の候補条件及び修正条件のうち1種類に着目し、当該着
目種について、候補条件を用いて修正条件を検出する場
合の動作の流れを示す。
FIG. 20 is a diagram showing the flow of the operation of the third embodiment of the present invention. FIG. 7 shows a flow of operation in a case where attention is paid to one of a plurality of types of candidate conditions and correction conditions, and a correction condition is detected using the candidate conditions for the type of interest.

【0329】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかの1種類を着目種の候補条件
として設定し(S1)、然る後、条件設定部28は着目
種の複数個の候補条件のなかから選択した1個の候補条
件(選択候補条件)を出力する(S2)。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), first, the condition setting section 28 sets one of a plurality of types of candidate conditions as a candidate condition of a target type (S1). Thereafter, the condition setting unit 28 outputs one candidate condition (selected candidate condition) selected from the plurality of candidate conditions of the target species (S2).

【0330】次に画像変換部30は、左右カメラ10、
12により撮影したm階調の左右画像の一方を、条件設
定部28から入力した選択候補条件に従って画像変換
し、画像変換後の左右画像を第三左右メモリ38、40
に格納する(S3)。左右カメラ10、12により撮影
した左右画像は第一左右メモリ14、16に格納されて
おり、画像変換部30は第一左右メモリ14、16の左
右画像を読み出し、読み出した左右画像の一方は画像変
換し他方は画像変換せずに、画像変換後の左右画像を第
三左右メモリ38、40に格納する。
Next, the image conversion unit 30 includes the left and right cameras 10,
One of the left and right images of m gradation captured by the step 12 is subjected to image conversion in accordance with the selection candidate conditions input from the condition setting unit 28, and the left and right images after image conversion are stored in the third left and right memories 38 and 40.
(S3). The left and right images captured by the left and right cameras 10 and 12 are stored in first left and right memories 14 and 16, and the image conversion unit 30 reads the left and right images of the first left and right memories 14 and 16, and one of the read left and right images is an image. The left and right images after image conversion are stored in the third left and right memories 38 and 40 without conversion.

【0331】次に階調変換部66は画像変換後の左右画
像を第三左右メモリ38、40から読み出してn階調
(m>n)の左右画像に変換し、階調変換後の左右画像
を第四左右メモリ70、72に格納する(S4)。
Next, the gradation conversion section 66 reads the left and right images after image conversion from the third left and right memories 38 and 40 and converts them into left and right images of n gradations (m> n). Is stored in the fourth left and right memories 70 and 72 (S4).

【0332】次にレベル切出し部68は、階調変換後の
左右画像から、着目した複数種類の階調レベルの左右画
像を順次に左右着目レベル画像として切り出す。レベル
切出し部68は、第四左右メモリ70、72に格納され
ている階調変換後の左右画像を走査して、着目した複数
種類の階調レベルのうち1種類の階調レベルの画素を検
出し、この着目階調レベルの画素から成る左右画像を、
左右着目レベル画像として切り出す(S5)。例えばn
=16階調のうち、第5番目、第8番目及び第11番目
の階調レベルに着目し、これら着目階調レベルのうちま
ず第5番目の階調レベルの画素から成る左右画像を、左
右着目レベル画像として切り出す。
Next, the level extracting section 68 sequentially extracts left and right images of a plurality of kinds of focused gradation levels as left and right focused level images from the left and right images after gradation conversion. The level cutout unit 68 scans the left and right images after gradation conversion stored in the fourth left and right memories 70 and 72, and detects a pixel of one kind of gradation level among a plurality of kinds of gradation levels of interest. Then, the left and right images composed of pixels of the target gradation level are
The image is cut out as the left and right attention level images (S5). For example, n
Of the 16th gray level, focus on the fifth, eighth, and eleventh gray levels. Cut out as an attention level image.

【0333】次に対応点探索部32は、走査方向を異な
らせて複数種の探索条件を設定すると共に、左右着目レ
ベル画像を左右探索画像とし、各探索条件毎に、左右探
索画像における対応候補点を検出する(S6)。ここで
は階調変換後の左右画像全面に対応する左右着目レベル
画像を、左右探索画像とする。
Next, the corresponding point search section 32 sets a plurality of types of search conditions by changing the scanning direction, sets the left and right attention level images as left and right search images, and sets the corresponding candidate in the left and right search images for each search condition. A point is detected (S6). Here, the left and right focused level images corresponding to the entire left and right images after gradation conversion are set as left and right search images.

【0334】全種類の探索条件について、対応候補点の
検出を終了したら、次に対応点探索部32は、各探索条
件毎に得た対応候補点の集合において共通集合となる対
応候補点を対応点として検出する(S7)。
When the detection of corresponding candidate points is completed for all types of search conditions, the corresponding point search unit 32 next associates the corresponding candidate points that are a common set in the set of corresponding candidate points obtained for each search condition. It is detected as a point (S7).

【0335】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出し、位相
差判明点或はこれに加え位相差不明点の検出個数を評価
値算出部34に対し出力する(S8)。
Next, the corresponding point searching section 32 detects the phase difference found point and the phase difference unknown point using the corresponding point detection result, and evaluates the phase difference found point or the number of detected phase difference unknown points in addition thereto. Output to the value calculation unit 34 (S8).

【0336】ここで検出する位相差判明点及び位相差不
明点は、左右探索画像全面に関わるものである。
Here, the detected phase difference points and the unknown phase difference points relate to the entire left and right search image.

【0337】次に評価値算出部32は、位相差判明点の
検出個数を用いて位相差判明点の検出率を求め、(S
2)で条件設定部28が出力した選択候補条件の評価値
として当該位相差判明点の検出率を最大値検出部36に
格納する(S9)。
Next, the evaluation value calculation unit 32 obtains the detection rate of the phase difference found point by using the detected number of the phase difference found point, and calculates (S
The detection rate of the phase difference found point is stored in the maximum value detection unit 36 as the evaluation value of the selection candidate condition output by the condition setting unit 28 in 2) (S9).

【0338】ここで求める位相差判明点の検出率は、現
在の左右探索画像となっている左右画像全面に関わるも
のである。
[0338] The detection rate of the phase difference found point obtained here relates to the entire left and right images that are the current left and right search images.

【0339】次にレベル切出し部68は、着目した全て
の種類の階調レベルにつき左右着目レベル画像の切出し
を終了したか否かを判定する(S10)。
Next, the level cutout section 68 determines whether or not the cutout of the left and right focused level images has been completed for all types of focused tone levels (S10).

【0340】着目した全ての種類の階調レベルにつき終
了していなければ、レベル切出し部68は残りの着目し
た種類の階調レベルを選択し(S11)、選択着目階調
レベルにつき左右着目レベル画像の切出しを行なう(S
5)。例えばn=16階調のうち、第5番目、第8番目
及び第11番目の階調レベルに着目し、第5番目の階調
レベルについてのみ左右着目レベル画像の切出しを終了
していれば、次の着目階調レベルとして第8番目の階調
レベルを選択し当該第8番目の着目選択階調レベルにつ
き左右着目レベル画像の切出しを行なう。
If the processing has not been completed for all the target gradation levels, the level cutout unit 68 selects the remaining target gradation levels (S11), and selects the left and right target level images for the selected target gradation levels. (S
5). For example, if attention is paid to the fifth, eighth, and eleventh gray levels among n = 16 gray levels, and the extraction of the left and right target level images is completed only for the fifth gray level, The eighth gray level is selected as the next target gray level, and the left and right target level images are cut out for the eighth target selected gray level.

【0341】また着目した全ての種類の階調レベルにつ
き終了していれば、次に評価値算出部34は、当該候補
条件に関し各着目階調レベル毎に得た位相差判明点の検
出率のなかから、上位の検出率を選択する(S12)。
If the processing has been completed for all types of gray levels of interest, the evaluation value calculation unit 34 next calculates the detection rate of the phase difference determination point obtained for each gray level of interest with respect to the candidate condition. Among them, a higher detection rate is selected (S12).

【0342】次に評価値算出部34は、選択した上位の
検出率の平均値を求め、この平均値を当該候補条件に関
する評価値として、最大値検出部36に格納する(S1
3)。
Next, the evaluation value calculation section 34 calculates an average value of the selected higher detection rates, and stores the average value in the maximum value detection section 36 as an evaluation value relating to the candidate condition (S1).
3).

【0343】ここで1個の候補条件について、種類の異
なるR個の階調レベルをそれぞれ着目階調レベルとして
設定するものとすれば、これら着目階調レベル毎に位相
差判明点の検出率を得るので、総個数R個の検出率を得
ることとなる。そして総個数R個の検出率のなかから上
位r1個の検出率(r1はR>r1>1なる自然数)の
検出率を選択し、選択した上位r1個の検出率の平均値
を評価値とする。(R−r1)>0なる下位(R−r
1)個の検出率は評価値の算出には用いない。
Here, assuming that, for one candidate condition, R gradation levels of different types are set as target gradation levels, the detection rate of the phase difference determination point is determined for each target gradation level. Therefore, the detection rate of the total number R is obtained. Then, a detection rate of the top r1 detection rates (r1 is a natural number satisfying R>r1> 1) is selected from among the detection rates of the total number R, and an average value of the selected top r1 detection rates is used as an evaluation value. I do. (R-r1)> 0
1) The detection rate is not used for calculating the evaluation value.

【0344】次に条件設定部28は着目種の全ての候補
条件を選択し終えたか否かを判定する(S14)。
Next, the condition setting section 28 judges whether or not all the candidate conditions of the target type have been selected (S14).

【0345】着目種の全ての候補条件を選択し終えてい
なければ、条件設定部28は着目種の次の候補条件を選
択し(S15)、然る後、選択した候補条件を出力する
(S2)。
If all the candidate conditions of the target species have not been selected, the condition setting section 28 selects the next candidate condition of the target species (S15), and then outputs the selected candidate conditions (S2). ).

【0346】また着目種の全ての候補条件を選択し終え
たのであれば、最大値検出部36は着目種の各候補条件
毎に得た評価値のなかから最大の評価値を検出し、最大
の評価値を得た候補条件を修正条件として検出する。そ
して最大値検出部28は当該着目種の修正条件を条件設
定部28に格納する(S16)。然る後、修正条件検出
装置18は、当該着目種の修正条件を検出するための処
理を終了する(終了)。
When all the candidate conditions of the target species have been selected, the maximum value detecting unit 36 detects the maximum evaluation value from among the evaluation values obtained for each candidate condition of the target species, and Are detected as correction conditions. Then, the maximum value detection unit 28 stores the correction condition of the target type in the condition setting unit 28 (S16). Thereafter, the correction condition detection device 18 ends the processing for detecting the correction condition of the target type (end).

【0347】<請求項9の発明の第一実施形態>図21
は請求項9の発明の第一実施形態の説明に供する機能ブ
ロック図である。以下、請求項1の発明の第一実施形態
と相違する点につき説明し、請求項1の発明の第一実施
形態と同様の点についてはその詳細な説明を省略する。
<First Embodiment of Claim 9> FIG.
FIG. 14 is a functional block diagram for explaining a first embodiment of the ninth aspect of the present invention. Hereinafter, points different from the first embodiment of the first aspect of the present invention will be described, and detailed description of the same points as those of the first embodiment of the first aspect of the present invention will be omitted.

【0348】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40と、さらに位相差範囲入力
部74とを備える。
The correction condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36, a third left memory 38 and a third right memory 40, and a phase difference range input unit 74 are further provided.

【0349】条件設定部28は高さ方向修正条件を検出
するための候補条件を順次に設定し、画像変換部30は
左カメラ10及び右カメラ12により得た左画像及び右
画像の一方を、候補条件に従って画像変換する。
The condition setting unit 28 sequentially sets candidate conditions for detecting the height direction correction condition, and the image conversion unit 30 converts one of the left image and the right image obtained by the left camera 10 and the right camera 12 Image conversion is performed according to the candidate condition.

【0350】ここでは高さ方向修正条件を含みそれ以外
の種類の修正条件をも検出するものであって、条件設定
部28は修正条件を検出するための複数種類の候補条件
と、エピポーララインを合わせるための複数種類の修正
条件とを記憶する。記憶する修正条件は、最大値検出部
36により検出された修正条件である。これら複数種類
の候補条件及び修正条件のうち1種類は、高さ方向の候
補条件及び修正条件である。
In this case, other types of correction conditions including the height direction correction conditions are also detected. The condition setting section 28 sets a plurality of types of candidate conditions for detecting the correction conditions and epipolar lines. A plurality of types of correction conditions for matching are stored. The correction condition to be stored is the correction condition detected by the maximum value detection unit 36. One of the plurality of types of candidate conditions and correction conditions is a height-direction candidate condition and correction condition.

【0351】条件設定部28は、画像の平行移動、回転
及び倍率変換に関わる候補条件を記憶する。従って最大
値検出部36が検出する修正条件は画像の平行移動、回
転及び倍率変換に関わる修正条件となり、画像変換部3
0が候補条件及び修正条件に従って行なう画像変換は画
像の平行移動、回転及び倍率変換となる。これら平行移
動、回転及び倍率変換としては、既知の手法を用いるこ
とができる。
The condition setting section 28 stores candidate conditions relating to image parallel movement, rotation, and magnification conversion. Therefore, the correction conditions detected by the maximum value detection unit 36 are correction conditions relating to the parallel movement, rotation, and magnification conversion of the image.
The image conversion performed by 0 according to the candidate condition and the correction condition is translation, rotation and magnification conversion of the image. Known methods can be used for the translation, rotation, and magnification conversion.

【0352】対応点探索部32は、走査方向、走査対象
となる画素の階調表現、若しくは、走査対象となる画素
の色を異ならせて複数種の探索条件を設定し、画像変換
後の左右画像を左右探索画像とする。ここでは左右カメ
ラ10、12によりカラー画像の左右画像を得、走査対
象となる画素の色を異ならせて複数種の探索条件を設定
する。また画像変換後の左右画像を全面にわたって左右
探索画像とする。
The corresponding point search unit 32 sets a plurality of types of search conditions by changing the scanning direction, the gradation expression of the pixel to be scanned, or the color of the pixel to be scanned, and sets the left and right after image conversion. Let the image be a left and right search image. Here, left and right images of a color image are obtained by the left and right cameras 10 and 12, and a plurality of types of search conditions are set by changing colors of pixels to be scanned. The left and right images after the image conversion are set as the left and right search images over the entire surface.

【0353】そして対応点探索部32は、探索条件に従
って左右探索画像を走査し、相対応する水平走査線上に
おいて左探索画像の画素特徴と右探索画像の画素特徴と
を比較して画素特徴の差が閾値以下となる左右探索画像
の画素を対応候補点として検出する。さらに対応点探索
部32は各探索条件毎に検出した対応候補点の集合にお
いて共通集合となる対応候補点を対応点として検出す
る。ここでは画素特徴を画素濃度とする。
The corresponding point search section 32 scans the left and right search images according to the search conditions, compares the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines, and determines the difference between the pixel characteristics. The pixels of the left and right search images for which is less than or equal to the threshold are detected as corresponding candidate points. Further, the corresponding point search unit 32 detects, as corresponding points, corresponding candidate points that become a common set in the set of corresponding candidate points detected for each search condition. Here, the pixel feature is a pixel density.

【0354】例えば、画像変換後の左右画像としてカラ
ー画像を第三左メモリ38及び第三右メモリ40に格納
し、これら画像変換後の左右画像のうち赤色画像を左右
探索画像とする第一の探索条件と、画像変換後の左右画
像のうち青色画像を左右探索画像とする第二の探索条件
とを設定する。そして第一の探索条件により赤色画像の
左右探索画像を走査して、相対応する水平走査線上にお
いて画素特徴の差が閾値以下となる左右探索画像の画素
を、第一の探索条件による対応候補点として検出する。
さらに第二の探索条件により青色画像の左右探索画像を
走査して、相対応する水平走査線上において画素特徴の
差が閾値以下となる左右探索画像の画素を、第二の探索
条件による対応候補点として検出する。然る後、第一の
探索条件で検出した対応候補点の集合と第二の探索条件
で検出した対応候補点の集合とにおいて共通集合となる
対応候補点を対応点として検出する。
For example, a color image is stored in the third left memory 38 and the third right memory 40 as left and right images after image conversion, and a red image among the left and right images after image conversion is used as a left and right search image. A search condition and a second search condition for setting the blue image among the left and right images after the image conversion as the left and right search image are set. Then, the left and right search images of the red image are scanned according to the first search condition, and the pixels of the left and right search image in which the difference of the pixel characteristics is equal to or less than the threshold on the corresponding horizontal scanning line are identified as the corresponding candidate points according to the first search condition Detected as
Further, the left and right search images of the blue image are scanned according to the second search condition, and the pixels of the left and right search images whose pixel feature difference is equal to or smaller than the threshold on the corresponding horizontal scanning line are identified as corresponding candidate points according to the second search condition. Detected as Thereafter, a corresponding candidate point that is a common set between the set of corresponding candidate points detected under the first search condition and the set of corresponding candidate points detected under the second search condition is detected as a corresponding point.

【0355】次に対応点探索部32は、対応点検出結果
を用いて左右探索画像において高さ方向のずれ量が大と
なる近距離位相差の判明点及び不明点を検出する。オペ
レータは、高さ方向のずれ量が大となる近距離位相差の
範囲を、位相差範囲入力部74を介して対応点探索部3
2に入力する。例えば位相差が80以上となる範囲を、
高さ方向のずれ量が大となる近距離位相差の範囲として
入力する。
Next, the corresponding point search section 32 detects, using the corresponding point detection result, a known point and an unknown point of the short-distance phase difference in which the shift amount in the height direction becomes large in the left and right search images. The operator sets the range of the short-distance phase difference where the amount of displacement in the height direction is large via the phase difference range input unit 74 via the corresponding point search unit 3.
Enter 2 For example, the range where the phase difference is 80 or more is
It is input as a range of the short-distance phase difference in which the amount of displacement in the height direction is large.

【0356】ここでは、対応点の位相差に基づいて対応
不明点(対応点として検出されなかった画素)に対して
位相差を推定し当て嵌める。位相差を当て嵌めることが
できなかった対応不明点を位相差不明点として検出す
る。然る後、対応不明点に当て嵌めた位相差に関して、
位相差が正しいか否かを検定する。そしてこの検定によ
り正しいと判定された位相差の対応不明点を位相差判明
点として、正しくないと判定された位相差の対応不明点
を位相差不明点として検出する。
Here, based on the phase difference between the corresponding points, the phase difference is estimated and applied to an unknown correspondence point (a pixel not detected as a corresponding point). The corresponding unknown points to which the phase difference could not be applied are detected as the phase difference unknown points. Then, regarding the phase difference applied to the unknown point,
Test whether the phase difference is correct. Then, the unknown point of the correspondence of the phase difference determined to be correct by this test is detected as a known point of the phase difference, and the unknown point of the correspondence of the phase difference determined to be incorrect is detected as the unknown point of the phase difference.

【0357】走査対象となる画素の色を異ならせて複数
種類の探索条件を設定しているので、走査対象となる画
素の色毎に、位相差の当て嵌め及び位相差の検定を行な
う。走査対象となる画素の全ての色について位相差が正
しいと判定された画素のみを位相差判明点とし、走査対
象となる画素の色のいずれかの色で位相差が正しくない
と判定された画素は位相差不明点とする。
Since a plurality of types of search conditions are set by making the color of the pixel to be scanned different, the fitting of the phase difference and the test of the phase difference are performed for each color of the pixel to be scanned. Only pixels for which the phase difference has been determined to be correct for all colors of the pixel to be scanned are regarded as phase difference determination points, and pixels for which the phase difference has been determined to be incorrect for any of the colors of the pixel to be scanned. Is an unknown phase difference point.

【0358】然る後、位相差判明点のうち、高さ方向の
ずれ量が大となる近距離位相差の判明点を検出する。
Thereafter, from the phase difference determination points, the short distance phase difference determination point where the amount of displacement in the height direction becomes large is detected.

【0359】評価値算出部34は、左右探索画像におい
て高さ方向のずれ量が大となる近距離位相差につき位相
差判明点の検出率を求め、当該検出率を用いて、高さ方
向候補条件の評価値を求める。ここでは左右探索画像に
おいて高さ方向のずれ量が大となる近距離位相差につき
各高さ方向候補条件毎に位相差判明点の検出率を求め当
該検出率を高さ方向候補条件の評価値とする。
The evaluation value calculation unit calculates the detection rate of the phase difference known point for the short-distance phase difference in which the shift amount in the height direction is large in the left and right search images, and uses the detection rate to determine the height direction candidate. Find the evaluation value of the condition. Here, for the short-distance phase difference in which the amount of displacement in the height direction is large in the left and right search images, the detection rate of the phase difference known point is obtained for each height direction candidate condition, and the detection rate is the evaluation value of the height direction candidate condition. And

【0360】最大値検出部36は、最大の評価値を得た
高さ方向候補条件を高さ方向修正条件として検出する。
ここでは最大値検出部36は検出した高さ方向修正条件
を条件設定部28に格納する。
The maximum value detecting section 36 detects the height direction candidate condition that has obtained the maximum evaluation value as the height direction correction condition.
Here, the maximum value detection unit 36 stores the detected height direction correction condition in the condition setting unit 28.

【0361】図22は請求項9の発明の第二実施形態の
動作の流れを示す図である。同図においては、複数種類
の候補条件及び修正条件のうち、高さ方向の候補条件及
び修正条件に着目し、高さ方向候補条件を用いて高さ方
向修正条件を検出する場合の動作の流れを示す。
FIG. 22 is a diagram showing the flow of the operation of the second embodiment of the ninth aspect of the present invention. In the same figure, the flow of operation when detecting the height direction correction condition using the height direction candidate condition by focusing on the height direction candidate condition and the correction condition among the plurality of types of candidate conditions and correction conditions. Is shown.

【0362】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかから高さ方向の候補条件を選
択して設定し(S1)、然る後、条件設定部28は複数
個の高さ方向候補条件のなかから選択した1個の高さ方
向候補条件(選択高さ方向候補条件)を出力する(S
2)。高さ方向候補条件はy軸方向への平行移動に関わ
る候補条件であって、例えば5個の高さ方向候補条件Δ
1 〜Δy5 のなかから選択した1個の高さ方向候補条
件Δy1 を出力する。
When the operator inputs an operation start signal to the correction condition detection device 18 (start), the condition setting section 28 first selects and sets a candidate condition in the height direction from a plurality of types of candidate conditions (S1). Thereafter, the condition setting unit 28 outputs one height direction candidate condition (selected height direction candidate condition) selected from the plurality of height direction candidate conditions (S).
2). The height direction candidate conditions are candidate conditions relating to parallel movement in the y-axis direction, and for example, five height direction candidate conditions Δ
outputs one height direction candidate condition [Delta] y 1 selected from among y 1 ~Δy 5.

【0363】次に画像変換部30は、左右カメラ10、
12により撮影した左右画像の一方を、条件設定部28
から入力した選択高さ方向候補条件に従って画像変換
し、画像変換後の左右画像を第三左右メモリ38、40
に格納する(S3)。左右カメラ10、12により撮影
された左右画像は第一左右メモリ14、16に格納され
ており、画像変換部30は第一左右メモリ14、16の
左右画像を読み出し、読み出した左右画像の一方は画像
変換し他方は画像変換せずに、画像変換後の左右画像を
第三左右メモリ38、40に格納する。
Next, the image conversion unit 30 includes the left and right cameras 10,
One of the left and right images taken by the
The left and right images after the image conversion are converted according to the selected height direction candidate condition input from the third left and right memories 38 and 40.
(S3). The left and right images captured by the left and right cameras 10 and 12 are stored in first left and right memories 14 and 16, and the image conversion unit 30 reads the left and right images of the first left and right memories 14 and 16, and one of the read left and right images is The left and right images after the image conversion are stored in the third left and right memories 38 and 40 without performing the image conversion.

【0364】次に対応点探索部32は、走査対象となる
画素の色を異ならせて複数種の探索条件を設定すると共
に、画像変換後の左右画像全面を左右探索画像とし、各
探索条件毎に、左右探索画像における対応候補点を検出
する(S4)。ここでは画素の色を異ならせて複数種類
の探索条件を設定するので左右カメラ10、12により
撮影される左右画像をカラー画像とする。
Next, the corresponding point search section 32 sets a plurality of types of search conditions by changing the colors of the pixels to be scanned, and sets the entire left and right images after image conversion as left and right search images. Next, corresponding candidate points in the left and right search images are detected (S4). Here, since a plurality of types of search conditions are set by changing the colors of the pixels, the left and right images taken by the left and right cameras 10 and 12 are set as color images.

【0365】例えば第三左右メモリ38、40に格納し
た画像変換後のカラー画像の左右画像のうち、赤色左右
画像を左右探索画像として走査する第一の探索条件と、
青色左右画像を左右探索画像として走査する第二の探索
条件とを設定する。そして対応点探索部32は第一の探
索条件により赤色左右画像を走査して、相対応する水平
走査線L上の1ライン分の赤色左右画像を第三左右メモ
リ38、40から切り出して、対応点探索部32が備え
る左右ラインメモリに格納する。ここで赤色左右画像に
おいて一方の画素を着目点、及び、他方の画素を対照点
とし、相対応する水平走査線L上において所定の主走査
方向例えば右方向に順次に数えて第i番目の着目点に対
し、水平走査線L上の対照点を所定の主走査方向例えば
右方向へ順次に走査して行く。第i番目の着目点に対し
画素特徴例えば画素濃度の差が閾値以下となる対照点を
検出することなく対照点の走査を終了したら、次に第i
+1番目の着目点に対し対照点の走査を行なう。また第
i番目の着目点に対し画素特徴の差が閾値以下となる対
照点を検出したら、当該第i番目の着目点と対照点とを
対応候補点として検出し、然る後、第i+1番目の着目
点に対し対照点の走査を行なう。第三左右メモリ38、
40の左右画像全面について第一の探索条件による対応
候補点の検出を終了したら次に第一の探索条件と同様に
して、第二の探索条件により青色左右画像を走査して、
第二の探索条件による対応候補点の検出を行なう。
For example, among the left and right images of the converted color image stored in the third left and right memories 38 and 40, a first search condition for scanning a red right and left image as a left and right search image;
A second search condition for scanning the left and right blue images as the left and right search images is set. Then, the corresponding point search unit 32 scans the red left and right images according to the first search condition, cuts out the corresponding red left and right images on the horizontal scanning line L from the third left and right memories 38 and 40, and The data is stored in the left and right line memories provided in the point search unit 32. Here, in the left and right red images, one pixel is set as a point of interest and the other pixel is set as a reference point, and the i-th point of interest is sequentially counted in a predetermined main scanning direction, for example, rightward on the corresponding horizontal scanning line L. With respect to the point, a control point on the horizontal scanning line L is sequentially scanned in a predetermined main scanning direction, for example, rightward. When the scanning of the control point is completed without detecting the control point at which the pixel characteristic, for example, the difference of the pixel density is equal to or less than the threshold value, with respect to the i-th point of interest,
The control point is scanned for the (+1) th point of interest. When a control point at which the difference of the pixel feature with respect to the i-th point of interest is smaller than or equal to the threshold is detected, the i-th point of interest and the control point are detected as corresponding candidate points, and then the (i + 1) -th point of interest is detected. Is scanned for the point of interest. Third left and right memory 38,
When the detection of the corresponding candidate points by the first search condition is completed for the entire 40 right and left images, the blue left and right images are scanned by the second search condition in the same manner as the first search condition.
A corresponding candidate point is detected based on the second search condition.

【0366】全種類の探索条件について、対応候補点の
検出を終了したら、次に対応点探索部32は、各探索条
件毎に得た対応候補点の集合において共通集合となる対
応候補点を対応点として検出する(S5)。
[0366] When the detection of the corresponding candidate points is completed for all types of search conditions, the corresponding point search unit 32 next associates the corresponding candidate points that become a common set in the set of corresponding candidate points obtained for each search condition. It is detected as a point (S5).

【0367】前述のように相対応する水平走査線L上の
左右探索画像を走査し、画素特徴の差が閾値以下となっ
たら次の着目点を走査して、対応候補点を検出するの
で、各探索条件毎に得た対応候補点の集合において共通
集合となる対応候補点は、確率的に確からしい対応候補
点の集まりとなる。
As described above, the left and right search images on the corresponding horizontal scanning line L are scanned, and when the difference between the pixel characteristics becomes equal to or less than the threshold value, the next point of interest is scanned to detect a corresponding candidate point. The corresponding candidate points that become a common set in the set of corresponding candidate points obtained for each search condition are a set of corresponding candidate points that are likely to be stochastic.

【0368】次に対応点探索部32は、対応点検出結果
を用いて近距離位相差範囲における位相差判明点及び位
相差不明点を検出する(S6)。
Next, the corresponding point searching section 32 detects a phase difference known point and a phase difference unknown point in the short distance phase difference range using the corresponding point detection result (S6).

【0369】ここで検出する位相差判明点及び位相差不
明点は、現在の左右探索画像となっている左右画像全面
に関してのものである。
The detected phase difference point and the phase difference unknown point detected here relate to the entire left and right image which is the current left and right search image.

【0370】またここでは、対応点の位相差に基づいて
対応不明点(対応点として検出されなかった画素)に対
して位相差を推定し当て嵌める。位相差を当て嵌めるこ
とができなかった対応不明点を位相差不明点として検出
する。然る後、対応不明点に当て嵌めた位相差が、正し
いか否かを検定する。そしてこの検定により正しいと判
定された位相差の対応不明点を位相差判明点とし、正し
くないと判定された位相差の対応不明点を位相差不明点
として検出する。
In this case, the phase difference is estimated and applied to an unknown correspondence point (pixel not detected as a corresponding point) based on the phase difference between the corresponding points. The corresponding unknown points to which the phase difference could not be applied are detected as the phase difference unknown points. Thereafter, it is checked whether the phase difference applied to the correspondence unknown point is correct. Then, the unknown point of the correspondence of the phase difference determined to be correct by this test is determined to be a known point of the phase difference, and the unknown point of correspondence of the phase difference determined to be incorrect is detected as the unknown point of the phase difference.

【0371】走査対象となる画素の色を異ならせて複数
種類の探索条件を設定しているので、走査対象となる画
素の色毎に、位相差の当て嵌め及び位相差の検定を行な
う。走査対象となる画素の全ての色について位相差が正
しいと判定された画素のみを位相差判明点とし、走査対
象となる画素の色のいずれかの色で位相差が正しくない
と判定された画素は位相差不明点とする。或は、走査対
象となる画素の全ての色で位相差が正しくないと判定さ
れた画素は位相差不明点とする。そして走査対象となる
画素において位相差が正しいと判定された色と位相差が
正しくないと判定された色とが混在する場合は、多数決
の原理により位相差が正しいか否かを判定し、その判定
結果に応じて位相差の判明点か不明点かを決定するよう
にしても良い。
Since a plurality of types of search conditions are set by making the color of the pixel to be scanned different, the fitting of the phase difference and the test of the phase difference are performed for each color of the pixel to be scanned. Only pixels for which the phase difference has been determined to be correct for all colors of the pixel to be scanned are regarded as phase difference determination points, and pixels for which the phase difference has been determined to be incorrect for any of the colors of the pixel to be scanned. Is an unknown phase difference point. Alternatively, a pixel for which the phase difference is determined to be incorrect for all colors of the pixel to be scanned is determined to be a phase difference unknown point. Then, in a case where a color whose phase difference is determined to be correct and a color whose phase difference is determined to be incorrect are mixed in a pixel to be scanned, it is determined whether or not the phase difference is correct according to the principle of majority decision. Whether the phase difference is known or unknown may be determined according to the determination result.

【0372】次に対応点探索部32は、近距離位相差範
囲における位相差判明点の検出個数を評価値算出部34
に対し出力する(S7)。例えば位相差80以上の範囲
を近距離位相差範囲とする。
Next, the corresponding point search section 32 calculates the number of detected phase difference found points in the short distance phase difference range by the evaluation value calculation section 34.
(S7). For example, a range having a phase difference of 80 or more is set as a short-range phase difference range.

【0373】次に評価値算出部32は、近距離位相差範
囲における位相差判明点の検出個数を用いて位相差判明
点の検出率を求め、(S2)で条件設定部28が出力し
た選択高さ方向候補条件の評価値として当該近距離位相
差範囲における位相差判明点の検出率を最大値検出部3
6に格納する(S8)。
Next, the evaluation value calculation unit 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points in the short distance phase difference range, and selects the selection rate output by the condition setting unit 28 in (S2). As the evaluation value of the height direction candidate condition, the detection rate of the phase difference found point in the short distance phase difference range is set to the maximum value detection unit 3.
6 (S8).

【0374】次に条件設定部28は全ての高さ方向候補
条件を選択し終えたか否かを判定する(S9)。
Next, the condition setting section 28 determines whether or not all the height direction candidate conditions have been selected (S9).

【0375】全ての高さ方向候補条件を選択し終えてい
なければ、条件設定部28は次の高さ方向候補条件を選
択し(S10)、然る後、選択した高さ方向候補条件を
出力する(S2)。
If all the height direction candidate conditions have not been selected, the condition setting unit 28 selects the next height direction candidate condition (S10), and then outputs the selected height direction candidate condition. (S2).

【0376】例えば高さ方向候補条件Δy1 〜Δy5
うちΔy1 についてのみ選択し終えており、Δy2 〜Δ
5 についての選択を終えていなければ、残りの候補条
件Δy2 〜Δy5 のなかから選択した一つの候補条件Δ
2 を選択し、選択した高さ方向候補条件Δy2 を出力
する。
For example, only the selection of Δy 1 among the height direction candidate conditions Δy 1 to Δy 5 has been completed, and Δy 2 to Δy 5 have been selected.
If not completed selection for y 5, one of the candidate condition selected from among the remaining candidate condition Δy 2 ~Δy 5 Δ
Select y 2, and outputs the height direction candidate condition [Delta] y 2 selected.

【0377】また全ての高さ方向候補条件を選択し終え
ていなければ、最大値検出部36は各高さ方向候補条件
毎に得た評価値のなかから最大の評価値を検出し、最大
の評価値を得た高さ方向候補条件を高さ方向修正条件と
して検出する。そして最大値検出部28は当該高さ方向
修正条件を条件設定部28に格納する(S11)。然る
後、修正条件検出装置18は、高さ方向修正条件を検出
するための処理を終了する(終了)。
If all the height direction candidate conditions have not been selected, the maximum value detector 36 detects the maximum evaluation value from among the evaluation values obtained for each height direction candidate condition, and The height direction candidate condition for which the evaluation value has been obtained is detected as a height direction correction condition. Then, the maximum value detection unit 28 stores the height direction correction condition in the condition setting unit 28 (S11). After that, the correction condition detection device 18 ends the processing for detecting the height direction correction condition (end).

【0378】この実施形態によれば、近距離位相差範囲
における位相差判明点の検出率を評価値として、最大の
評価値を得た高さ方向候補条件を高さ方向修正条件とす
る。近距離位相差範囲では高さ方向のずれ量が大きくな
るので、近距離位相差範囲における位相差判明点の検出
率を評価値として高さ方向修正条件を検出することによ
り、エピポーラライン合わせにより適した高さ方向修正
条件を検出できる。
According to this embodiment, the detection rate of the phase difference found point in the short-distance phase difference range is set as the evaluation value, and the height direction candidate condition having the maximum evaluation value is set as the height direction correction condition. Since the amount of displacement in the height direction is large in the short-range phase difference range, it is more suitable for epipolar line alignment by detecting the height direction correction condition using the detection rate of the phase difference found point in the short-range phase difference range as the evaluation value. Height correction condition can be detected.

【0379】<請求項9の発明の第二実施形態>図23
は請求項9の発明の第二実施形態の説明に供する機能ブ
ロック図である。以下、主として請求項9の発明の第一
実施形態と相違する点につき説明し、請求項9の発明の
第一実施形態と同様の点については、その詳細な説明を
省略する。
<Second Embodiment of the Claim 9> FIG.
FIG. 14 is a functional block diagram used for describing a second embodiment of the ninth aspect of the present invention. Hereinafter, points different from the first embodiment of the ninth aspect of the present invention will be mainly described, and detailed description of the same points as those of the first embodiment of the ninth aspect of the present invention will be omitted.

【0380】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40と、位相差範囲入力部74
と、さらに領域切出し部46とを備える。
The modification condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
Evaluation value calculation unit 34 and maximum value detection unit 36, third left memory 38 and third right memory 40, and phase difference range input unit 74
And a region cutout section 46.

【0381】領域切出し部46は画像変換後の左右画像
上に垂直方向に分散させた複数個の着目領域から、左右
着目領域画像を順次に切り出し、対応点探索部32は左
右着目領域画像を左右探索画像として、候補条件が同じ
各左右探索画像毎に、対応候補点、対応点、位相差の判
明点及び不明点を検出する。
The region extracting section 46 sequentially extracts left and right region images from a plurality of regions of interest vertically dispersed on the left and right images after image conversion. As search images, corresponding candidate points, corresponding points, known and unknown points of the phase difference are detected for each of the left and right search images having the same candidate condition.

【0382】評価値算出部34は、左右探索画像におい
て高さ方向のずれ量が大となる近距離位相差につき高さ
方向候補条件が同じ各左右探索画像毎に位相差判明点の
検出率を求め高さ方向候補条件が同じ左右探索画像につ
いて求めた検出率の平均値を当該高さ方向候補条件の評
価値とする。
The evaluation value calculation unit 34 calculates the detection rate of the phase difference known point for each of the left and right search images having the same height direction candidate condition for the short distance phase difference in which the shift amount in the height direction is large in the left and right search images. The average value of the detection rates obtained for the left and right search images having the same height direction candidate condition is used as the evaluation value of the height direction candidate condition.

【0383】図24は請求項9の発明の第二実施形態の
動作の流れを示す図である。同図においては、複数種類
の候補条件及び修正条件のうち高さ方向の候補条件及び
修正条件に着目し、高さ方向候補条件を用いて高さ方向
修正条件を検出する場合の動作の流れを示す。
FIG. 24 is a diagram showing a flow of the operation of the second embodiment of the ninth aspect of the present invention. In the figure, focusing on the height direction candidate condition and the correction condition among a plurality of types of candidate conditions and correction conditions, the flow of operation when detecting the height direction correction condition using the height direction candidate condition is shown. Show.

【0384】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかから高さ方向候補条件を選択
して設定し(S1)、然る後、条件設定部28は複数個
の高さ方向候補条件のなかから選択した1個の候補条件
(選択高さ方向候補条件)を出力する(S2)。
When the operator inputs an operation start signal to the correction condition detection device 18 (start), the condition setting section 28 first selects and sets a height direction candidate condition from a plurality of types of candidate conditions (S1). Thereafter, the condition setting unit 28 outputs one candidate condition (selected height direction candidate condition) selected from the plurality of height direction candidate conditions (S2).

【0385】次に画像変換部30は、条件設定部28か
ら入力した選択高さ方向候補条件に従って左画像及び右
画像の一方を画像変換し、画像変換後の左画像及び右画
像を第三左メモリ38及び第三右メモリ40に格納する
(S3)。左右カメラ10、12により撮影した左右画
像は第一左右メモリ14、16に格納されており、画像
変換部30は第一左右メモリ14、16の左右画像を読
み出し、読み出した左右画像の一方は画像変換せず他方
は画像変換して、画像変換後の左右画像を第三左右メモ
リ38、40に格納する。
Next, the image conversion unit 30 converts one of the left image and the right image according to the selected height direction candidate condition input from the condition setting unit 28, and converts the left image and the right image after the image conversion into the third left image. The data is stored in the memory 38 and the third right memory 40 (S3). The left and right images captured by the left and right cameras 10 and 12 are stored in first left and right memories 14 and 16, and the image conversion unit 30 reads the left and right images of the first left and right memories 14 and 16, and one of the read left and right images is an image. Without conversion, the other is image-converted, and the left and right images after the image conversion are stored in the third left and right memories 38 and 40.

【0386】次に領域切出し部46は、画像変換後の左
右画像上に垂直方向(y方向)に分散させた複数個の着
目領域から、左右着目領域画像を切り出す(S4)。
Next, the region cutout section cuts out the left and right region of interest images from the plurality of regions of interest dispersed in the vertical direction (y direction) on the left and right images after image conversion (S4).

【0387】例えば、図12にも示すように、左右着目
領域画像の垂直方向における幅を水平走査線1本分の幅
もしくは複数本分の幅ここでは1本分の幅とし、領域切
出し部46は、第三左右メモリ38、40に格納した画
像変換後の左右画像から、相対応する水平走査線L上の
左右着目領域画像を切り出し、切り出した水平走査線L
上の左右着目領域画像を対応点探索部32の左右ライン
メモリに格納する。
For example, as shown in FIG. 12, the width of the left and right region of interest image in the vertical direction is the width of one horizontal scanning line or the width of a plurality of lines, here the width of one line. Cuts out the left and right region of interest images on the corresponding horizontal scanning lines L from the converted left and right images stored in the third left and right memories 38 and 40, and outputs the extracted horizontal scanning lines L
The upper left and right region of interest images are stored in the left and right line memories of the corresponding point search unit 32.

【0388】次に対応点探索部32は、走査対象となる
画素の色を異ならせて複数種の探索条件を設定すると共
に、左右着目領域画像を左右探索画像とし、各探索条件
毎に、左右探索画像における対応候補点を検出する(S
5)。
Next, the corresponding point search unit 32 sets a plurality of types of search conditions by changing the color of the pixel to be scanned, sets the left and right region of interest images as left and right search images, and sets the left and right search images for each search condition. A corresponding candidate point in the search image is detected (S
5).

【0389】全種類の探索条件について、左右探索画像
全面にわたり水平走査線L上の対応候補点の検出を終了
したら、次に対応点探索部32は、各探索条件毎に得た
対応候補点の集合において共通集合となる対応候補点を
対応点として検出する(S6)。
When the detection of the corresponding candidate points on the horizontal scanning line L over the entire left and right search image has been completed for all types of search conditions, the corresponding point search unit 32 next calculates the corresponding candidate points obtained for each search condition. Corresponding candidate points that become a common set in the set are detected as corresponding points (S6).

【0390】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出する(S
7)。
Next, the corresponding point search section 32 detects a phase difference found point and a phase difference unknown point using the corresponding point detection result (S
7).

【0391】ここで検出する位相差判明点及び位相差不
明点は、現在の左右探索画像を読み出した1個の着目領
域48、52に関するものである。ここでも対応不明点
に対する位相差の当て嵌めと当て嵌めた位相差の検定と
を行なう。
Here, the detected phase difference points and the unknown phase difference points relate to the one region of interest 48, 52 from which the current left and right search image has been read. Also in this case, fitting of the phase difference to the unknown point and verification of the fitted phase difference are performed.

【0392】次に対応点探索部32は、近距離位相差範
囲において位相差判明点を検出し、近距離位相差範囲に
おける位相差判明点の検出個数を評価値算出部34に対
し出力する(S8)。
Next, the corresponding point search section 32 detects a phase difference found point in the short distance phase difference range, and outputs the number of detected phase difference found points in the short distance phase difference range to the evaluation value calculation section 34 ( S8).

【0393】次に評価値算出部32は、近距離位相差範
囲における位相差判明点の検出個数を用いて位相差判明
点の検出率を求め、当該位相差判明点の検出率を最大値
検出部36に格納する(S9)。
Next, the evaluation value calculation section 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points in the short distance phase difference range, and determines the detection rate of the phase difference found point as the maximum value. It is stored in the unit 36 (S9).

【0394】次に領域切出し部46は、第三左右メモリ
38、40に現在格納されている画像変換後の左右画像
に関して、全ての着目領域から左右着目領域画像を切り
出し終えたか(読み出し終えたか)否かを判定する(S
10)。
Next, the area extracting section 46 determines whether or not the left and right attention area images have been cut out from all the attention areas with respect to the converted left and right images currently stored in the third left and right memories 38 and 40 (whether or not the reading has been completed). Is determined (S
10).

【0395】現在の画像変換後の左右画像に関して全て
の着目領域の切出しを終了していなければ、領域切出し
部46は左右着目領域画像の切出し未終了の1組の着目
領域を選択し(S11)、然る後、選択した着目領域か
ら次の左右着目領域画像を切り出す(S4)。
If the extraction of all the regions of interest has not been completed for the left and right images after the current image conversion, the region extracting section 46 selects a set of unextracted regions of interest of the left and right region of interest images (S11). Thereafter, the next left and right region of interest images are cut out from the selected region of interest (S4).

【0396】例えば図12の例においてy=3の着目領
域48、52からの切出しを終了し、y=6、9の着目
領域48、52からの切出しを終了していなければ、切
出し未終了の1組の着目領域48、52としてy=6の
着目領域48、52を選択する。
For example, in the example of FIG. 12, the extraction from the regions of interest 48 and 52 with y = 3 is completed, and the extraction from the regions of interest 48 and 52 with y = 6 and 9 is not completed. As the set of target areas 48 and 52, the target areas 48 and 52 of y = 6 are selected.

【0397】現在の画像変換後の左右画像42、44に
関して全ての着目領域の切出しを終了したならば、評価
値算出部34は現在の画像変換後の左右画像を得た高さ
方向候補条件に関して、各着目領域毎に得た検出率の平
均値を求め、この平均値を当該高さ方向候補条件の評価
値として最大値検出部36に格納する(S12)。
When the extraction of all the regions of interest has been completed for the left and right images 42 and 44 after the current image conversion, the evaluation value calculation unit 34 determines the height direction candidate conditions from which the left and right images after the current image conversion have been obtained. Then, an average value of the detection rates obtained for each region of interest is obtained, and this average value is stored in the maximum value detection unit 36 as an evaluation value of the height direction candidate condition (S12).

【0398】例えば現在の画像変換後の左右画像42、
44が候補条件Δy1 に従って得たものである場合、図
12の例においてy=3、6、9の各着目領域48、5
2毎に得た検出率の平均値を当該候補条件Δy1 の評価
値として得ることとなる。
For example, the left and right images 42 after the current image conversion,
In a case where 44 is obtained according to the candidate condition Δy 1 , in the example of FIG.
The average value of the detection rates obtained every 2 is obtained as the evaluation value of the candidate condition Δy 1 .

【0399】次に条件設定部28は全ての高さ方向候補
条件を選択し終えたか否かを判定する(S13)。
Next, the condition setting section judges whether or not all the height direction candidate conditions have been selected (S13).

【0400】全ての高さ方向候補条件を選択し終えてい
なければ、条件設定部28は次の高さ方向候補条件を選
択し(S14)、然る後、選択した高さ方向候補条件を
出力する(S2)。
If all the height direction candidate conditions have not been selected, the condition setting unit 28 selects the next height direction candidate condition (S14), and then outputs the selected height direction candidate condition. (S2).

【0401】例えば高さ方向候補条件Δy1 〜Δy5
うちΔy1 についてのみ選択し終えており、Δy2 〜Δ
5 についての選択を終えていなければ、残りの候補条
件Δy2 〜Δy5 のなかから選択した一つの候補条件Δ
2 を選択し、選択した候補条件Δy2 を出力する。
For example, only the selection of Δy 1 among the height direction candidate conditions Δy 1 to Δy 5 has been completed, and Δy 2 to Δy 5 have been selected.
If not completed selection for y 5, one of the candidate condition selected from among the remaining candidate condition Δy 2 ~Δy 5 Δ
Select y 2, and outputs the candidate condition [Delta] y 2 selected.

【0402】また全ての高さ方向候補条件を選択し終え
たならば、最大値検出部36は各高さ方向候補条件毎に
得た評価値のなかから最大の評価値を検出し、最大の評
価値を得た高さ方向候補条件を高さ方向修正条件として
検出する。そして最大値検出部28は当該高さ方向修正
条件を条件設定部28に格納する(S15)。然る後、
修正条件検出装置18は、高さ方向修正条件を検出する
ための処理を終了する(終了)。
When all the height direction candidate conditions have been selected, the maximum value detector 36 detects the maximum evaluation value from among the evaluation values obtained for each height direction candidate condition, and determines the maximum value. The height direction candidate condition for which the evaluation value has been obtained is detected as a height direction correction condition. Then, the maximum value detecting unit 28 stores the height direction correction condition in the condition setting unit 28 (S15). After that,
The correction condition detecting device 18 ends the processing for detecting the height direction correction condition (end).

【0403】この実施形態においては、左右探索画像を
画像変換後の左右画像の一部である着目領域画像として
おり、従って高さ方向修正条件を検出するのに必要な画
像の走査量を減少させることができるので、高さ方向修
正条件の検出時間を短縮できる。
In this embodiment, the left and right search images are used as region of interest images which are a part of the left and right images after image conversion. Therefore, the amount of scanning of the image necessary to detect the height direction correction condition is reduced. Therefore, the detection time of the height direction correction condition can be reduced.

【0404】<請求項9の発明の第三実施形態>次に図
23を参照し、請求項9の発明の第三実施形態につき説
明する。以下、主として請求項9の発明の第二実施形態
と相違する点につき説明し、請求項9の発明の第二実施
形態と同様の点については、その詳細な説明を省略す
る。
<Third Embodiment of the Invention of Claim 9> Next, a third embodiment of the invention of claim 9 will be described with reference to FIG. Hereinafter, points different from the second embodiment of the ninth aspect of the present invention will be mainly described, and detailed description of the same points as those of the second embodiment of the ninth aspect of the present invention will be omitted.

【0405】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40と、さらに領域切出し部4
6とを備える。
The correction condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36; a third left memory 38 and a third right memory 40;
6 is provided.

【0406】評価値算出部34は、左右探索画像におい
て高さ方向のずれ量が大となる近距離位相差につき高さ
方向候補条件が同じ各左右探索画像毎に位相差判明点の
検出率を求め高さ方向候補条件が同じ左右探索画像につ
いて求めた検出率のうち上位から順次に所定個数の検出
率を選択し当該選択により得た検出率の平均値を高さ方
向候補条件の評価値とする。
[0406] The evaluation value calculation unit 34 calculates the detection rate of the phase difference known point for each of the left and right search images having the same height direction candidate condition for the short distance phase difference in which the shift amount in the height direction is large in the left and right search images. The desired height direction candidate condition selects a predetermined number of detection rates sequentially from the top among the detection rates obtained for the same left and right search images, and calculates the average value of the detection rates obtained by the selection as the evaluation value of the height direction candidate condition and I do.

【0407】図25は請求項9の発明の第二実施形態の
動作の流れを示す図である。同図においては、複数種類
の候補条件及び修正条件のうち高さ方向の候補条件及び
修正条件に着目し、高さ方向候補条件を用いて高さ方向
修正条件を検出する場合の動作の流れを示す。
FIG. 25 is a diagram showing a flow of the operation of the second embodiment of the present invention. In the figure, focusing on the height direction candidate condition and the correction condition among a plurality of types of candidate conditions and correction conditions, the flow of operation when detecting the height direction correction condition using the height direction candidate condition is shown. Show.

【0408】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかから高さ方向候補条件を選択
して設定し(S1)、然る後、条件設定部28は複数個
の高さ方向候補条件のなかから選択した1個の候補条件
(選択高さ方向候補条件)を出力する(S2)。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), the condition setting section 28 first selects and sets a height direction candidate condition from a plurality of types of candidate conditions (S1). Thereafter, the condition setting unit 28 outputs one candidate condition (selected height direction candidate condition) selected from the plurality of height direction candidate conditions (S2).

【0409】次に画像変換部30は、条件設定部28か
ら入力した選択高さ方向候補条件に従って左画像及び右
画像の一方を画像変換し、画像変換後の左画像及び右画
像を第三左メモリ38及び第三右メモリ40に格納する
(S3)。左右カメラ10、12により撮影した左右画
像は第一左右メモリ14、16に格納されており、画像
変換部30は第一左右メモリ14、16の左右画像を読
み出し、読み出した左右画像の一方は画像変換せず他方
は画像変換して、画像変換後の左右画像を第三左右メモ
リ38、40に格納する。
Next, the image conversion unit 30 converts one of the left image and the right image according to the selected height direction candidate condition input from the condition setting unit 28, and converts the left image and the right image after the image conversion into the third left image. The data is stored in the memory 38 and the third right memory 40 (S3). The left and right images captured by the left and right cameras 10 and 12 are stored in first left and right memories 14 and 16, and the image conversion unit 30 reads the left and right images of the first left and right memories 14 and 16, and one of the read left and right images is an image. Without conversion, the other is image-converted, and the left and right images after the image conversion are stored in the third left and right memories 38 and 40.

【0410】次に領域切出し部46は、画像変換後の左
右画像上に垂直方向(y方向)に分散させた複数個の着
目領域から、左右着目領域画像を切り出す(S4)。
[0410] Next, the area cutout section 46 cuts out the left and right attention area images from the plurality of attention areas dispersed in the vertical direction (y direction) on the left and right images after image conversion (S4).

【0411】次に対応点探索部32は、走査対象となる
画素の色を異ならせて複数種の探索条件を設定すると共
に、左右着目領域画像を左右探索画像とし、各探索条件
毎に、左右探索画像における対応候補点を検出する(S
5)。
Next, the corresponding point search section 32 sets a plurality of types of search conditions by changing the color of the pixel to be scanned, sets the left and right region of interest images as left and right search images, and sets the left and right search images for each search condition. A corresponding candidate point in the search image is detected (S
5).

【0412】全種類の探索条件について、左右探索画像
全面にわたり水平走査線L上の対応候補点の検出を終了
したら、次に対応点探索部32は、各探索条件毎に得た
対応候補点の集合において共通集合となる対応候補点を
対応点として検出する(S6)。
[0412] When the detection of the corresponding candidate points on the horizontal scanning line L is completed for the entire left and right search images for all types of search conditions, the corresponding point search unit 32 next calculates the corresponding candidate points obtained for each search condition. Corresponding candidate points that become a common set in the set are detected as corresponding points (S6).

【0413】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出する(S
7)。
[0413] Next, the corresponding point search section 32 detects a phase difference found point and a phase difference unknown point using the corresponding point detection result (S
7).

【0414】次に対応点探索部32は、近距離位相差範
囲において位相差判明点を検出し、近距離位相差範囲に
おける位相差判明点の検出個数を評価値算出部34に対
し出力する(S8)。
Next, the corresponding point searching section 32 detects a phase difference found point in the short distance phase difference range, and outputs the number of detected phase difference found points in the short distance phase difference range to the evaluation value calculation section 34 ( S8).

【0415】次に評価値算出部32は、近距離位相差範
囲における位相差判明点の検出個数を用いて位相差判明
点の検出率を求め、当該位相差判明点の検出率を最大値
検出部36に格納する(S9)。
Next, the evaluation value calculation unit 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points in the short-distance phase difference range, and determines the detection rate of the phase difference found point as the maximum value. It is stored in the unit 36 (S9).

【0416】次に領域切出し部46は、第三左右メモリ
38、40に現在格納されている画像変換後の左右画像
に関して、全ての着目領域から左右着目領域画像を切り
出し終えたか(読み出し終えたか)否かを判定する(S
10)。
[0416] Next, the area cutout unit 46 determines whether the left and right attention area images have been cut out from all the attention areas (readout has been completed) for the converted left and right images currently stored in the third left and right memories 38 and 40. Is determined (S
10).

【0417】現在の画像変換後の左右画像に関して全て
の着目領域の切出しを終了していなければ、領域切出し
部46は左右着目領域画像の切出し未終了の1組の着目
領域を選択し(S11)、然る後、選択した着目領域か
ら次の左右着目領域画像を切り出す(S4)。
If the extraction of all the target areas has not been completed with respect to the current left and right images after the image conversion, the area extracting section 46 selects a set of unextracted target areas of the left and right target area images (S11). Thereafter, the next left and right region of interest images are cut out from the selected region of interest (S4).

【0418】現在の画像変換後の左右画像に関して全て
の着目領域の切出しを終了したならば、評価値算出部3
4は現在の画像変換後の左右画像を得た高さ方向候補条
件に関し、各着目領域毎に得た検出率のうち上位の検出
率を選択する(S12)。
[0418] When the extraction of all the regions of interest has been completed for the left and right images after the current image conversion, the evaluation value calculation unit 3
4 selects the higher detection rate among the detection rates obtained for each region of interest with respect to the height direction candidate conditions for obtaining the current left and right images after image conversion (S12).

【0419】次に評価値算出部34は、選択した上位の
検出率の平均値を求め、この平均値を現在の画像変換後
の左右画像を得た高さ方向候補条件に関する評価値とし
て、最大値検出部36に格納する(S13)。
[0419] Next, the evaluation value calculation unit 34 calculates the average value of the selected higher detection rates, and uses this average value as the evaluation value for the height direction candidate condition for obtaining the current left and right images after image conversion. It is stored in the value detection unit 36 (S13).

【0420】ここで図12で説明したように現在の画像
変換後の左右画像42、44上に設定する着目領域4
8、52の総個数は同じであるので、その総個数をR個
とすれば、総個数R個の着目領域48、52から総個数
R個の検出率を得ることとなる。そして総個数R個の検
出率のなかから上位r1個(r1はR>r1>1なる自
然数)の検出率を選択し、選択した上位r1個の検出率
の平均値を評価値とする。(R−r1)>0なる下位
(R−r1)個の検出率は評価値の算出に用いない。
Here, as described with reference to FIG. 12, the attention area 4 to be set on the current image-converted left and right images 42 and 44.
Since the total number of 8, 52 is the same, assuming that the total number is R, the detection rate of the total number R is obtained from the total number R of the regions of interest 48, 52. Then, among the detection rates of the total number R, the detection rates of the top r1 (r1 is a natural number satisfying R>r1> 1) are selected, and the average value of the detection rates of the selected top r1 is used as the evaluation value. The lower (R-r1) detection rates where (R-r1)> 0 are not used for calculating the evaluation value.

【0421】例えば総個数R=30個の着目領域48、
52を設定し、これら着目領域から総個数R=30個の
検出率を得たものとすれば、上位r1=10〜20個の
検出率を用いて評価値を得、下位(R−r1)=20〜
10個の検出率は評価値の算出に用いない。
For example, a total number R = 30 regions of interest 48,
If 52 are set and the detection rate of the total number R = 30 is obtained from these regions of interest, the evaluation value is obtained using the detection rates of the upper r1 = 10 to 20 and the lower (R-r1) = 20-
The ten detection rates are not used for calculating the evaluation value.

【0422】次に条件設定部28は全ての高さ方向候補
条件を選択し終えたか否かを判定する(S14)。
Next, the condition setting section 28 determines whether or not all the height direction candidate conditions have been selected (S14).

【0423】全ての高さ方向候補条件を選択し終えてい
なければ、条件設定部28は次の高さ方向候補条件を選
択し(S15)、然る後、選択した高さ方向候補条件を
出力する(S2)。
If all the height direction candidate conditions have not been selected, the condition setting unit 28 selects the next height direction candidate condition (S15), and then outputs the selected height direction candidate condition. (S2).

【0424】また全ての高さ方向候補条件を選択し終え
たならば、最大値検出部36は各高さ方向候補条件毎に
得た評価値のなかから最大の評価値を検出し、最大の評
価値を得た高さ方向候補条件を高さ方向修正条件として
検出する。そして最大値検出部28は当該高さ方向修正
条件を条件設定部28に格納する(S16)。然る後、
修正条件検出装置18は、高さ方向修正条件を検出する
ための処理を終了する(終了)。
When all the height direction candidate conditions have been selected, the maximum value detecting section 36 detects the maximum evaluation value from the evaluation values obtained for each height direction candidate condition, and The height direction candidate condition for which the evaluation value has been obtained is detected as a height direction correction condition. Then, the maximum value detection unit 28 stores the height direction correction condition in the condition setting unit 28 (S16). After that,
The correction condition detecting device 18 ends the processing for detecting the height direction correction condition (end).

【0425】この実施形態においても、請求項9の第二
実施形態と同様に、左右探索画像を画像変換後の左右画
像の一部である着目領域画像としており、従って高さ方
向修正条件を検出するのに必要な画像の走査量を減少さ
せることができるので、高さ方向修正条件の検出時間を
短縮できる。
In this embodiment, as in the second embodiment of the present invention, the left and right search images are used as region-of-interest images which are a part of the left and right images after image conversion. Since it is possible to reduce the amount of scanning of the image necessary to perform the operation, the time required for detecting the height direction correction condition can be reduced.

【0426】さらにこの実施形態によれば、高さ方向候
補条件の評価値を求める場合に、上位複数個の検出率の
平均値を用いて評価値を求め、下位の検出率を評価値の
算出に用いないので、高さ方向修正条件の検出精度を向
上できる。
Further, according to this embodiment, when the evaluation value of the height direction candidate condition is obtained, the evaluation value is obtained by using the average value of the upper plurality of detection rates, and the lower detection rate is calculated. , The detection accuracy of the height direction correction condition can be improved.

【0427】<請求項13の発明の第一実施形態>次に
図21を参照して請求項13の発明の第一実施形態につ
き説明する。以下、請求項1の発明の第一実施形態と相
違する点につき説明し、請求項1の発明の第一実施形態
と同様の点についてはその詳細な説明を省略する。
<First Embodiment of the Invention of Claim 13> Next, a first embodiment of the invention of claim 13 will be described with reference to FIG. Hereinafter, points different from the first embodiment of the first aspect of the present invention will be described, and detailed description of the same points as those of the first embodiment of the first aspect of the present invention will be omitted.

【0428】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40と、さらに位相差範囲入力
部74とを備える。
The correction condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36, a third left memory 38 and a third right memory 40, and a phase difference range input unit 74 are further provided.

【0429】条件設定部28はチルト角修正条件を検出
するための候補条件を順次に設定し、画像変換部30は
左カメラ10及び右カメラ12により得た左画像及び右
画像の一方を、候補条件に従って画像変換する。チルト
角は、x軸方向を水平方向、y軸方向を垂直方向(高さ
方向)、z軸方向を奥行き方向としたとき、z軸回りの
画像回転角度である。
The condition setting section 28 sequentially sets candidate conditions for detecting the tilt angle correction condition, and the image conversion section 30 sets one of the left image and the right image obtained by the left camera 10 and the right camera 12 as a candidate. Image conversion is performed according to the conditions. The tilt angle is an image rotation angle around the z-axis when the x-axis direction is a horizontal direction, the y-axis direction is a vertical direction (height direction), and the z-axis direction is a depth direction.

【0430】ここではチルト角修正条件を含みそれ以外
の種類の修正条件をも検出するものであって、条件設定
部28は修正条件を検出するための複数種類の候補条件
と、エピポーララインを合わせるための複数種類の修正
条件とを記憶する。記憶する修正条件は、最大値検出部
36により検出された修正条件である。これら複数種類
の候補条件及び修正条件のうち1種類は、チルト角の候
補条件及び修正条件である。
In this case, other types of correction conditions including the tilt angle correction condition are also detected, and the condition setting unit 28 matches the epipolar line with a plurality of types of candidate conditions for detecting the correction condition. And a plurality of types of correction conditions. The correction condition to be stored is the correction condition detected by the maximum value detection unit 36. One of these plural types of candidate conditions and correction conditions is a tilt angle candidate condition and a correction condition.

【0431】条件設定部28は、画像の平行移動、回転
及び倍率変換に関わる候補条件を記憶する。従って最大
値検出部36が検出する修正条件は画像の平行移動、回
転及び倍率変換に関わる修正条件となり、画像変換部3
0が候補条件及び修正条件に従って行なう画像変換は画
像の平行移動、回転及び倍率変換となる。これら平行移
動、回転及び倍率変換としては、既知の手法を用いるこ
とができる。
[0431] The condition setting section 28 stores candidate conditions relating to parallel translation, rotation, and magnification conversion of an image. Therefore, the correction conditions detected by the maximum value detection unit 36 are correction conditions relating to the parallel movement, rotation, and magnification conversion of the image.
The image conversion performed by 0 according to the candidate condition and the correction condition is translation, rotation and magnification conversion of the image. Known methods can be used for the translation, rotation, and magnification conversion.

【0432】対応点探索部32は、走査方向、走査対象
となる画素の階調表現、若しくは、走査対象となる画素
の色を異ならせて複数種の探索条件を設定し、画像変換
後の左右画像を左右探索画像とする。ここでは左右カメ
ラ10、12によりカラー画像の左右画像を得、走査対
象となる画素の色を異ならせて複数種の探索条件を設定
する。また画像変換後の左右画像を全面にわたって左右
探索画像とする。
The corresponding point search unit 32 sets a plurality of types of search conditions by changing the scanning direction, the gradation expression of the pixel to be scanned, or the color of the pixel to be scanned, and sets the left and right after image conversion. Let the image be a left and right search image. Here, left and right images of a color image are obtained by the left and right cameras 10 and 12, and a plurality of types of search conditions are set by changing colors of pixels to be scanned. The left and right images after the image conversion are set as the left and right search images over the entire surface.

【0433】そして対応点探索部32は、探索条件に従
って左右探索画像を走査し、相対応する水平走査線上に
おいて左探索画像の画素特徴と右探索画像の画素特徴と
を比較して画素特徴の差が閾値以下となる左右探索画像
の画素を対応候補点として検出する。さらに対応点探索
部32は各探索条件毎に検出した対応候補点の集合にお
いて共通集合となる対応候補点を対応点として検出す
る。ここでは画素特徴を画素濃度とする。
The corresponding point search section 32 scans the left and right search images according to the search conditions, compares the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines, and determines the difference between the pixel characteristics. The pixels of the left and right search images for which is less than or equal to the threshold are detected as corresponding candidate points. Further, the corresponding point search unit 32 detects, as corresponding points, corresponding candidate points that become a common set in the set of corresponding candidate points detected for each search condition. Here, the pixel feature is a pixel density.

【0434】例えば、画像変換後の左右画像としてカラ
ー画像を第三左メモリ38及び第三右メモリ40に格納
し、これら画像変換後の左右画像のうち赤色画像を左右
探索画像とする第一の探索条件と、画像変換後の左右画
像のうち青色画像を左右探索画像とする第二の探索条件
とを設定する。そして第一の探索条件により赤色画像の
左右探索画像を走査して、相対応する水平走査線上にお
いて画素特徴の差が閾値以下となる左右探索画像の画素
を、第一の探索条件による対応候補点として検出する。
さらに第二の探索条件により青色画像の左右探索画像を
走査して、相対応する水平走査線上において画素特徴の
差が閾値以下となる左右探索画像の画素を、第二の探索
条件による対応候補点として検出する。然る後、第一の
探索条件で検出した対応候補点の集合と第二の探索条件
で検出した対応候補点の集合とにおいて共通集合となる
対応候補点を対応点として検出する。
For example, a color image is stored in the third left memory 38 and the third right memory 40 as the left and right images after the image conversion, and the red image among the left and right images after the image conversion is used as the left and right search image. A search condition and a second search condition for setting the blue image among the left and right images after the image conversion as the left and right search image are set. Then, the left and right search images of the red image are scanned according to the first search condition, and the pixels of the left and right search image in which the difference of the pixel characteristics is equal to or less than the threshold on the corresponding horizontal scanning line are identified as the corresponding candidate points according to the first search condition Detected as
Further, the left and right search images of the blue image are scanned according to the second search condition, and the pixels of the left and right search images whose pixel feature difference is equal to or smaller than the threshold on the corresponding horizontal scanning line are identified as corresponding candidate points according to the second search condition. Detected as Thereafter, a corresponding candidate point that is a common set between the set of corresponding candidate points detected under the first search condition and the set of corresponding candidate points detected under the second search condition is detected as a corresponding point.

【0435】次に対応点探索部32は、対応点検出結果
を用いて左右探索画像においてチルト角のずれ量が大と
なる遠距離位相差の判明点及び不明点を検出する。オペ
レータは、高さ方向のずれ量が大となる遠距離位相差の
範囲を、位相差範囲入力部74を介して対応点探索部3
2に入力する。例えば位相差が80未満となる範囲を、
チルト角のずれ量が大となる遠距離位相差の範囲として
入力する。
Next, the corresponding point search section 32 detects the clear and unknown points of the long-distance phase difference where the amount of deviation of the tilt angle becomes large in the left and right search images using the corresponding point detection results. The operator sets the range of the long-distance phase difference in which the amount of displacement in the height direction is large via the phase difference range input unit 74 to the corresponding point search unit 3.
Enter 2 For example, the range where the phase difference is less than 80 is
It is input as a range of a long-distance phase difference in which the amount of tilt angle deviation is large.

【0436】ここでは、対応点の位相差に基づいて対応
不明点(対応点として検出されなかった画素)に対して
位相差を推定し当て嵌める。位相差を当て嵌めることが
できなかった対応不明点を位相差不明点として検出す
る。然る後、対応不明点に当て嵌めた位相差に関して、
位相差が正しいか否かを検定する。そしてこの検定によ
り正しいと判定された位相差の対応不明点を位相差判明
点として、正しくないと判定された位相差の対応不明点
を位相差不明点として検出する。
Here, based on the phase difference between the corresponding points, the phase difference is estimated and applied to the unknown correspondence point (the pixel not detected as the corresponding point). The corresponding unknown points to which the phase difference could not be applied are detected as the phase difference unknown points. Then, regarding the phase difference applied to the unknown point,
Test whether the phase difference is correct. Then, the unknown point of the correspondence of the phase difference determined to be correct by this test is detected as a known point of the phase difference, and the unknown point of the correspondence of the phase difference determined to be incorrect is detected as the unknown point of the phase difference.

【0437】走査対象となる画素の色を異ならせて複数
種類の探索条件を設定しているので、走査対象となる画
素の色毎に、位相差の当て嵌め及び位相差の検定を行な
う。走査対象となる画素の全ての色について位相差が正
しいと判定された画素のみを位相差判明点とし、走査対
象となる画素の色のいずれかの色で位相差が正しくない
と判定された画素は位相差不明点とする。或は、走査対
象となる画素の全ての色で位相差が正しくないと判定さ
れた画素は、位相差不明点とする。そして走査対象とな
る画素において位相差が正しいと判定された色と位相差
が正しくないと判定された色とが混在する場合は、多数
決の原理により位相差が正しいか否かを判定し、その判
定結果に応じて位相差の判明点か不明点かを決定しても
良い。
Since a plurality of types of search conditions are set by making the color of the pixel to be scanned different, the fitting of the phase difference and the test of the phase difference are performed for each color of the pixel to be scanned. Only pixels for which the phase difference has been determined to be correct for all colors of the pixel to be scanned are regarded as phase difference determination points, and pixels for which the phase difference has been determined to be incorrect for any of the colors of the pixel to be scanned. Is an unknown phase difference point. Alternatively, a pixel whose phase difference is determined to be incorrect for all colors of the pixel to be scanned is determined to be a phase difference unknown point. Then, in a case where a color whose phase difference is determined to be correct and a color whose phase difference is determined to be incorrect are mixed in a pixel to be scanned, it is determined whether or not the phase difference is correct according to the principle of majority decision. Whether the phase difference is known or unknown may be determined according to the determination result.

【0438】然る後、位相差判明点のうち、チルト角の
ずれ量が大となる遠距離位相差の判明点を検出する。
Thereafter, from the phase difference known points, the long distance phase difference known point where the tilt angle shift amount becomes large is detected.

【0439】評価値算出部34は、左右探索画像におい
てチルト角のずれ量が大となる遠距離位相差につき位相
差判明点の検出率を求め、当該検出率を用いて、チルト
角候補条件の評価値を求める。ここでは左右探索画像に
おいてチルト角のずれ量が大となる遠距離位相差につき
各チルト角候補条件毎に位相差判明点の検出率を求め当
該検出率をチルト角候補条件の評価値とする。
[0439] The evaluation value calculation unit 34 calculates the detection rate of the phase difference known point for the long-distance phase difference in which the tilt angle shift amount is large in the left and right search images, and uses the detection rate to determine the tilt angle candidate condition. Find the evaluation value. Here, the detection rate of the phase difference known point is obtained for each of the tilt angle candidate conditions for the long-distance phase difference in which the tilt angle shift amount is large in the left and right search images, and the detection rate is used as the evaluation value of the tilt angle candidate condition.

【0440】最大値検出部36は、最大の評価値を得た
チルト角候補条件をチルト角修正条件として検出する。
ここでは最大値検出部36は検出したチルト角修正条件
を条件設定部28に格納する。
The maximum value detection section 36 detects the tilt angle candidate condition that has obtained the maximum evaluation value as the tilt angle correction condition.
Here, the maximum value detection unit 36 stores the detected tilt angle correction condition in the condition setting unit 28.

【0441】図26は請求項13の発明の第二実施形態
の動作の流れを示す図である。同図においては、複数種
類の候補条件及び修正条件のうち、チルト角の候補条件
及び修正条件に着目し、チルト角候補条件を用いてチル
ト角修正条件を検出する場合の動作の流れを示す。
FIG. 26 is a diagram showing a flow of the operation of the second embodiment of the present invention. FIG. 5 shows a flow of an operation when the tilt angle candidate condition and the correction condition are detected from the plurality of types of candidate condition and correction condition, and the tilt angle correction condition is detected using the tilt angle candidate condition.

【0442】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかからチルト角の候補条件を選
択して設定し(S1)、然る後、条件設定部28は複数
個のチルト角候補条件のなかから選択した1個のチルト
角候補条件(選択チルト角候補条件)を出力する(S
2)。チルト角候補条件はz軸回りの回転に関わる候補
条件であって、例えば5個のチルト角候補条件Δγ1
Δγ5 のなかから選択した1個のチルト角候補条件Δγ
1 を出力する。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), the condition setting section 28 first selects and sets a tilt angle candidate condition from among a plurality of types of candidate conditions (S1). Thereafter, the condition setting unit 28 outputs one tilt angle candidate condition (selected tilt angle candidate condition) selected from the plurality of tilt angle candidate conditions (S).
2). The tilt angle candidate conditions are candidate conditions relating to rotation about the z-axis. For example, five tilt angle candidate conditions Δγ 1 to
One tilt angle candidate condition Δγ selected from Δγ 5
Outputs 1 .

【0443】次に画像変換部30は、左右カメラ10、
12により撮影した左右画像の一方を、条件設定部28
から入力した選択チルト角候補条件に従って画像変換
し、画像変換後の左右画像を第三左右メモリ38、40
に格納する(S3)。左右カメラ10、12により撮影
された左右画像は第一左右メモリ14、16に格納され
ており、画像変換部30は第一左右メモリ14、16の
左右画像を読み出し、読み出した左右画像の一方は画像
変換し他方は画像変換せずに、画像変換後の左右画像を
第三左右メモリ38、40に格納する。
[0443] Next, the image conversion unit 30 includes the left and right cameras 10,
One of the left and right images taken by the
The left and right images after the image conversion are converted according to the selected tilt angle candidate conditions input from the third left and right memories 38 and 40.
(S3). The left and right images captured by the left and right cameras 10 and 12 are stored in first left and right memories 14 and 16, and the image conversion unit 30 reads the left and right images of the first left and right memories 14 and 16, and one of the read left and right images is The left and right images after the image conversion are stored in the third left and right memories 38 and 40 without performing the image conversion.

【0444】次に対応点探索部32は、走査対象となる
画素の色を異ならせて複数種の探索条件を設定すると共
に、画像変換後の左右画像全面を左右探索画像とし、各
探索条件毎に、左右探索画像における対応候補点を検出
する(S4)。ここでは画素の色を異ならせて複数種類
の探索条件を設定するので左右カメラ10、12により
撮影される左右画像をカラー画像とする。
Next, the corresponding point search section 32 sets a plurality of types of search conditions by changing the color of the pixel to be scanned, and sets the entire left and right image after image conversion as a left and right search image. Next, corresponding candidate points in the left and right search images are detected (S4). Here, since a plurality of types of search conditions are set by changing the colors of the pixels, the left and right images taken by the left and right cameras 10 and 12 are set as color images.

【0445】例えば第三左右メモリ38、40に格納し
た画像変換後のカラー画像の左右画像のうち、赤色左右
画像を左右探索画像として走査する第一の探索条件と、
青色左右画像を左右探索画像として走査する第二の探索
条件とを設定する。そして対応点探索部32は第一の探
索条件により赤色左右画像を走査して、相対応する水平
走査線L上の1ライン分の赤色左右画像を第三左右メモ
リ38、40から切り出して、対応点探索部32が備え
る左右ラインメモリに格納する。ここで赤色左右画像に
おいて一方の画素を着目点、及び、他方の画素を対照点
とし、相対応する水平走査線L上において所定の主走査
方向例えば右方向に順次に数えて第i番目の着目点に対
し、水平走査線L上の対照点を所定の主走査方向例えば
右方向へ順次に走査して行く。第i番目の着目点に対し
画素特徴例えば画素濃度の差が閾値以下となる対照点を
検出することなく対照点の走査を終了したら、次に第i
+1番目の着目点に対し対照点の走査を行なう。また第
i番目の着目点に対し画素特徴の差が閾値以下となる対
照点を検出したら、当該第i番目の着目点と対照点とを
対応候補点として検出し、然る後、第i+1番目の着目
点に対し対照点の走査を行なう。第三左右メモリ38、
40の左右画像全面について第一の探索条件による対応
候補点の検出を終了したら次に第一の探索条件と同様に
して、第二の探索条件により青色左右画像を走査して、
第二の探索条件による対応候補点の検出を行なう。
For example, of the left and right images of the converted color image stored in the third left and right memories 38 and 40, a first search condition for scanning a red right and left image as a left and right search image;
A second search condition for scanning the left and right blue images as the left and right search images is set. Then, the corresponding point search unit 32 scans the red left and right images according to the first search condition, cuts out the corresponding red left and right images on the horizontal scanning line L from the third left and right memories 38 and 40, and The data is stored in the left and right line memories provided in the point search unit 32. Here, in the left and right red images, one pixel is set as a point of interest and the other pixel is set as a reference point, and the i-th point of interest is sequentially counted in a predetermined main scanning direction, for example, rightward on the corresponding horizontal scanning line L. With respect to the point, a control point on the horizontal scanning line L is sequentially scanned in a predetermined main scanning direction, for example, rightward. When the scanning of the control point is completed without detecting the control point at which the pixel characteristic, for example, the difference of the pixel density is equal to or less than the threshold value, with respect to the i-th point of interest,
The control point is scanned for the (+1) th point of interest. When a control point at which the difference of the pixel feature with respect to the i-th point of interest is smaller than or equal to the threshold is detected, the i-th point of interest and the control point are detected as corresponding candidate points, and then the (i + 1) -th point of interest is detected. Is scanned for the point of interest. Third left and right memory 38,
When the detection of the corresponding candidate points by the first search condition is completed for the entire 40 right and left images, the blue left and right images are scanned by the second search condition in the same manner as the first search condition.
A corresponding candidate point is detected based on the second search condition.

【0446】全種類の探索条件について、対応候補点の
検出を終了したら、次に対応点探索部32は、各探索条
件毎に得た対応候補点の集合において共通集合となる対
応候補点を対応点として検出する(S5)。
[0446] When the detection of the corresponding candidate points is completed for all types of search conditions, the corresponding point search unit 32 next associates the corresponding candidate points that become a common set in the set of corresponding candidate points obtained for each search condition. It is detected as a point (S5).

【0447】前述のように相対応する水平走査線L上の
左右探索画像を走査し、画素特徴の差が閾値以下となっ
たら次の着目点を走査して、対応候補点を検出するの
で、各探索条件毎に得た対応候補点の集合において共通
集合となる対応候補点は、確率的に確からしい対応候補
点の集まりとなる。
As described above, the left and right search images on the corresponding horizontal scanning line L are scanned, and when the difference between the pixel features becomes equal to or smaller than the threshold value, the next point of interest is scanned to detect a corresponding candidate point. The corresponding candidate points that become a common set in the set of corresponding candidate points obtained for each search condition are a set of corresponding candidate points that are likely to be stochastic.

【0448】次に対応点探索部32は、対応点検出結果
を用いて遠距離位相差範囲における位相差判明点及び位
相差不明点を検出する(S6)。
Next, the corresponding point search section 32 detects a phase difference found point and a phase difference unknown point in the long-distance phase difference range using the corresponding point detection result (S6).

【0449】ここで検出する位相差判明点及び位相差不
明点は、現在の左右探索画像となっている左右画像全面
に関してのものである。
[0449] The detected phase difference points and the unknown phase difference points detected here relate to the entire left and right images that are the current left and right search images.

【0450】またここでは、対応点の位相差に基づいて
対応不明点(対応点として検出されなかった画素)に対
して位相差を推定し当て嵌める。位相差を当て嵌めるこ
とができなかった対応不明点を位相差不明点として検出
する。然る後、対応不明点に当て嵌めた位相差が、正し
いか否かを検定する。そしてこの検定により正しいと判
定された位相差の対応不明点を位相差判明点とし、正し
くないと判定された位相差の対応不明点を位相差不明点
として検出する。
Here, based on the phase difference between corresponding points, the phase difference is estimated and applied to an unknown correspondence point (a pixel not detected as a corresponding point). The corresponding unknown points to which the phase difference could not be applied are detected as the phase difference unknown points. Thereafter, it is checked whether the phase difference applied to the correspondence unknown point is correct. Then, the unknown point of the correspondence of the phase difference determined to be correct by this test is determined to be a known point of the phase difference, and the unknown point of correspondence of the phase difference determined to be incorrect is detected as the unknown point of the phase difference.

【0451】走査対象となる画素の色を異ならせて複数
種類の探索条件を設定しているので、走査対象となる画
素の色毎に、位相差の当て嵌め及び位相差の検定を行な
う。走査対象となる画素の全ての色について位相差が正
しいと判定された画素のみを位相差判明点とし、走査対
象となる画素の色のいずれかの色で位相差が正しくない
と判定された画素は位相差不明点とする。
Since a plurality of types of search conditions are set by making the color of the pixel to be scanned different, the fitting of the phase difference and the test of the phase difference are performed for each color of the pixel to be scanned. Only pixels for which the phase difference has been determined to be correct for all colors of the pixel to be scanned are regarded as phase difference determination points, and pixels for which the phase difference has been determined to be incorrect for any of the colors of the pixel to be scanned. Is an unknown phase difference point.

【0452】次に対応点探索部32は、遠距離位相差範
囲における位相差判明点の検出個数を評価値算出部34
に対し出力する(S7)。例えば位相差80未満の範囲
を遠距離位相差範囲とする。
Next, the corresponding point searching section 32 calculates the number of detected phase difference points in the long-distance phase difference range as an evaluation value calculating section 34.
(S7). For example, a range having a phase difference of less than 80 is defined as a long-range phase difference range.

【0453】次に評価値算出部32は、遠距離位相差範
囲における位相差判明点の検出個数を用いて位相差判明
点の検出率を求め、(S2)で条件設定部28が出力し
た選択チルト角候補条件の評価値として当該遠距離位相
差範囲における位相差判明点の検出率を最大値検出部3
6に格納する(S8)。
Next, the evaluation value calculation unit 32 obtains the detection rate of the phase difference found point using the number of detected phase difference points in the long-distance phase difference range, and selects the selection rate output by the condition setting unit 28 in (S2). As the evaluation value of the tilt angle candidate condition, the detection rate of the phase difference found point in the long distance phase difference range is set to the maximum value detection unit 3.
6 (S8).

【0454】次に条件設定部28は全てのチルト角候補
条件を選択し終えたか否かを判定する(S9)。
Next, the condition setting section judges whether or not all the tilt angle candidate conditions have been selected (S9).

【0455】全てのチルト角候補条件を選択し終えてい
なければ、条件設定部28は次のチルト角候補条件を選
択し(S10)、然る後、選択したチルト角候補条件を
出力する(S2)。
If all the tilt angle candidate conditions have not been selected, the condition setting section 28 selects the next tilt angle candidate condition (S10), and then outputs the selected tilt angle candidate condition (S2). ).

【0456】例えばチルト角候補条件Δγ1 〜Δγ5
うちΔγ1 についてのみ選択し終えており、Δγ2 〜Δ
γ5 についての選択を終えていなければ、残りの候補条
件Δγ2 〜Δγ5 のなかから選択した一つの候補条件Δ
γ2 を選択し、選択したチルト角候補条件Δγ2 を出力
する。
For example, of the tilt angle candidate conditions Δγ 1 to Δγ 5 , only Δγ 1 has been selected, and Δγ 2 to Δγ 2 have been selected.
If not completed selection for gamma 5, one of the candidate condition selected from among the remaining candidate condition Δγ 2 ~Δγ 5 Δ
Select gamma 2, and outputs the tilt angle candidate condition [Delta] [gamma] 2 was selected.

【0457】また全てのチルト角候補条件を選択し終え
ていなければ、最大値検出部36は各チルト角候補条件
毎に得た評価値のなかから最大の評価値を検出し、最大
の評価値を得たチルト角候補条件をチルト角修正条件と
して検出する。そして最大値検出部28は当該チルト角
修正条件を条件設定部28に格納する(S11)。然る
後、修正条件検出装置18は、チルト角修正条件を検出
するための処理を終了する(終了)。
If all the tilt angle candidate conditions have not been selected, the maximum value detector 36 detects the maximum evaluation value from among the evaluation values obtained for each of the tilt angle candidate conditions, and determines the maximum evaluation value. The obtained tilt angle candidate condition is detected as a tilt angle correction condition. Then, the maximum value detection unit 28 stores the tilt angle correction condition in the condition setting unit 28 (S11). Thereafter, the correction condition detecting device 18 ends the process for detecting the tilt angle correction condition (end).

【0458】この実施形態によれば、遠距離位相差範囲
における位相差判明点の検出率を評価値として、最大の
評価値を得たチルト角候補条件をチルト角修正条件とす
る。遠距離位相差範囲ではチルト角のずれ量が大きくな
るので、遠距離位相差範囲における位相差判明点の検出
率を評価値としてチルト角修正条件を検出することによ
り、エピポーラライン合わせにより適したチルト角修正
条件を検出できる。
According to this embodiment, the detection rate of the phase difference found point in the long-distance phase difference range is used as the evaluation value, and the tilt angle candidate condition that has obtained the maximum evaluation value is used as the tilt angle correction condition. Since the amount of deviation of the tilt angle becomes large in the long-distance phase difference range, the tilt angle correction condition is detected using the detection rate of the phase difference known point in the long-distance phase difference range as an evaluation value, so that the tilt more suitable for epipolar line alignment Angle correction conditions can be detected.

【0459】<請求項13の発明の第二実施形態>次に
図23を参照して請求項13の発明の第二実施形態につ
いて説明する。以下、主として請求項13の発明の第一
実施形態と相違する点につき説明し、請求項13の発明
の第一実施形態と同様の点については、その詳細な説明
を省略する。
<Second Embodiment of the Invention of Claim 13> Next, a second embodiment of the invention of claim 13 will be described with reference to FIG. Hereinafter, points different from the first embodiment of the invention of claim 13 will be mainly described, and detailed description of the same points as those of the first embodiment of the invention of claim 13 will be omitted.

【0460】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40と、位相差範囲入力部74
と、さらに領域切出し部46とを備える。
The correction condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
Evaluation value calculation unit 34 and maximum value detection unit 36, third left memory 38 and third right memory 40, and phase difference range input unit 74
And a region cutout section 46.

【0461】領域切出し部46は画像変換後の左右画像
上に垂直方向に分散させた複数個の着目領域から、左右
着目領域画像を順次に切り出し、対応点探索部32は左
右着目領域画像を左右探索画像として、候補条件が同じ
各左右探索画像毎に、対応候補点、対応点、位相差の判
明点及び不明点を検出する。
The area extracting section 46 sequentially extracts left and right attention area images from a plurality of attention areas dispersed in the vertical direction on the left and right images after image conversion, and the corresponding point search section 32 separates the left and right attention area images into right and left images. As search images, corresponding candidate points, corresponding points, known and unknown points of the phase difference are detected for each of the left and right search images having the same candidate condition.

【0462】評価値算出部34は、左右探索画像におい
てチルト角のずれ量が大となる遠距離位相差につきチル
ト角候補条件が同じ各左右探索画像毎に位相差判明点の
検出率を求めチルト角候補条件が同じ左右探索画像につ
いて求めた検出率の平均値を当該チルト角候補条件の評
価値とする。
The evaluation value calculation unit calculates the detection rate of the phase difference known point for each of the left and right search images having the same tilt angle candidate condition with respect to the long distance phase difference in which the tilt angle shift amount is large in the left and right search images. The average value of the detection rates obtained for the left and right search images having the same angle candidate condition is used as the evaluation value of the tilt angle candidate condition.

【0463】図27は請求項13の発明の第二実施形態
の動作の流れを示す図である。同図においては、複数種
類の候補条件及び修正条件のうちチルト角の候補条件及
び修正条件に着目し、チルト角候補条件を用いてチルト
角修正条件を検出する場合の動作の流れを示す。
FIG. 27 is a diagram showing a flow of the operation of the second embodiment of the present invention. FIG. 7 shows a flow of operation in the case where the tilt angle candidate condition and the correction condition are detected from the plurality of types of candidate condition and correction condition, and the tilt angle correction condition is detected using the tilt angle candidate condition.

【0464】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかからチルト角候補条件を選択
して設定し(S1)、然る後、条件設定部28は複数個
のチルト角候補条件のなかから選択した1個の候補条件
(選択チルト角候補条件)を出力する(S2)。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), the condition setting section 28 first selects and sets a tilt angle candidate condition from a plurality of types of candidate conditions (S1). After that, the condition setting unit 28 outputs one candidate condition (selected tilt angle candidate condition) selected from the plurality of tilt angle candidate conditions (S2).

【0465】次に画像変換部30は、条件設定部28か
ら入力した選択チルト角候補条件に従って左画像及び右
画像の一方を画像変換し、画像変換後の左画像及び右画
像を第三左メモリ38及び第三右メモリ40に格納する
(S3)。左右カメラ10、12により撮影した左右画
像は第一左右メモリ14、16に格納されており、画像
変換部30は第一左右メモリ14、16の左右画像を読
み出し、読み出した左右画像の一方は画像変換せず他方
は画像変換して、画像変換後の左右画像を第三左右メモ
リ38、40に格納する。
Next, the image conversion unit 30 converts one of the left image and the right image according to the selected tilt angle candidate condition input from the condition setting unit 28, and stores the converted left image and right image in the third left memory. 38 and the third right memory 40 (S3). The left and right images captured by the left and right cameras 10 and 12 are stored in first left and right memories 14 and 16, and the image conversion unit 30 reads the left and right images of the first left and right memories 14 and 16, and one of the read left and right images is an image. Without conversion, the other is image-converted, and the left and right images after the image conversion are stored in the third left and right memories 38 and 40.

【0466】次に領域切出し部46は、画像変換後の左
右画像上に垂直方向(y方向)に分散させた複数個の着
目領域から、左右着目領域画像を切り出す(S4)。
[0466] Next, the area cutout section 46 cuts out the left and right attention area images from the plurality of attention areas dispersed in the vertical direction (y direction) on the left and right images after image conversion (S4).

【0467】例えば、図12にも示すように、左右着目
領域画像の垂直方向における幅を水平走査線1本分の幅
もしくは複数本分の幅ここでは1本分の幅とし、領域切
出し部46は、第三左右メモリ38、40に格納した画
像変換後の左右画像から、相対応する水平走査線L上の
左右着目領域画像を切り出し、切り出した水平走査線L
上の左右着目領域画像を対応点探索部32の左右ライン
メモリに格納する。
For example, as shown in FIG. 12, the width in the vertical direction of the left and right region of interest image is the width of one horizontal scanning line or the width of a plurality of lines, here the width of one line. Cuts out the left and right region of interest images on the corresponding horizontal scanning lines L from the converted left and right images stored in the third left and right memories 38 and 40, and outputs the extracted horizontal scanning lines L
The upper left and right region of interest images are stored in the left and right line memories of the corresponding point search unit 32.

【0468】次に対応点探索部32は、走査対象となる
画素の色を異ならせて複数種の探索条件を設定すると共
に、左右着目領域画像を左右探索画像とし、各探索条件
毎に、左右探索画像における対応候補点を検出する(S
5)。
Next, the corresponding point search section 32 sets a plurality of types of search conditions by changing the color of the pixel to be scanned, sets the left and right region of interest images as left and right search images, and sets the left and right search images for each search condition. A corresponding candidate point in the search image is detected (S
5).

【0469】全種類の探索条件について、左右探索画像
全面にわたり水平走査線L上の対応候補点の検出を終了
したら、次に対応点探索部32は、各探索条件毎に得た
対応候補点の集合において共通集合となる対応候補点を
対応点として検出する(S6)。
When the detection of the corresponding candidate points on the horizontal scanning line L over the entire left and right search image has been completed for all types of search conditions, the corresponding point search unit 32 next calculates the corresponding candidate points obtained for each search condition. Corresponding candidate points that become a common set in the set are detected as corresponding points (S6).

【0470】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出する(S
7)。
Next, the corresponding point search section 32 detects a phase difference found point and a phase difference unknown point using the corresponding point detection result (S
7).

【0471】ここで検出する位相差判明点及び位相差不
明点は、現在の左右探索画像を読み出した1個の着目領
域48、52に関するものである。ここでも対応不明点
に対する位相差の当て嵌めと当て嵌めた位相差の検定と
を行なう。
[0471] The detected phase difference points and the unknown phase difference points detected here relate to one attention area 48, 52 from which the current left and right search image has been read. Also in this case, fitting of the phase difference to the unknown point and verification of the fitted phase difference are performed.

【0472】次に対応点探索部32は、遠距離位相差範
囲において位相差判明点を検出し、遠距離位相差範囲に
おける位相差判明点の検出個数を評価値算出部34に対
し出力する(S8)。
[0472] Next, the corresponding point searching section 32 detects a phase difference found point in the long distance phase difference range, and outputs the number of detected phase difference found points in the long distance phase difference range to the evaluation value calculation section 34 ( S8).

【0473】次に評価値算出部32は、遠距離位相差範
囲における位相差判明点の検出個数を用いて位相差判明
点の検出率を求め、当該位相差判明点の検出率を最大値
検出部36に格納する(S9)。
[0473] Next, the evaluation value calculation section 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points in the long-distance phase difference range, and determines the detection rate of the phase difference found point to the maximum value. It is stored in the unit 36 (S9).

【0474】次に領域切出し部46は、第三左右メモリ
38、40に現在格納されている画像変換後の左右画像
に関して、全ての着目領域から左右着目領域画像を切り
出し終えたか(読み出し終えたか)否かを判定する(S
10)。
[0474] Next, the area cutout unit 46 determines whether the left and right attention area images have been cut out from all the attention areas for the currently converted left and right images currently stored in the third left and right memories 38 and 40 (whether or not reading has been completed). Is determined (S
10).

【0475】現在の画像変換後の左右画像に関して全て
の着目領域の切出しを終了していなければ、領域切出し
部46は左右着目領域画像の切出し未終了の1組の着目
領域を選択し(S11)、然る後、選択した着目領域か
ら次の左右着目領域画像を切り出す(S4)。
If the extraction of all the target areas has not been completed with respect to the current left and right images after the image conversion, the area cutout unit 46 selects a set of not-yet-completed target areas of the left and right target area images (S11). Thereafter, the next left and right region of interest images are cut out from the selected region of interest (S4).

【0476】例えば図12の例においてy=3の着目領
域48、52からの切出しを終了し、y=6、9の着目
領域48、52からの切出しを終了していなければ、切
出し未終了の1組の着目領域48、52としてy=6の
着目領域48、52を選択する。
For example, in the example of FIG. 12, the extraction from the regions of interest 48 and 52 with y = 3 has been completed, and the extraction from the regions of interest 48 and 52 with y = 6 and 9 has not been completed. As the set of target areas 48 and 52, the target areas 48 and 52 of y = 6 are selected.

【0477】現在の画像変換後の左右画像42、44に
関して全ての着目領域の切出しを終了したならば、評価
値算出部34は現在の画像変換後の左右画像を得たチル
ト角候補条件に関して、各着目領域毎に得た検出率の平
均値を求め、この平均値を当該チルト角候補条件の評価
値として最大値検出部36に格納する(S12)。
When the extraction of all the regions of interest has been completed for the left and right images 42 and 44 after the current image conversion, the evaluation value calculation unit 34 calculates the tilt angle candidate conditions for obtaining the current left and right images after the image conversion. An average value of the detection rates obtained for each region of interest is obtained, and this average value is stored in the maximum value detection unit 36 as an evaluation value of the tilt angle candidate condition (S12).

【0478】例えば現在の画像変換後の左右画像42、
44が候補条件Δy1 に従って得たものである場合、図
12の例においてy=3、6、9の各着目領域48、5
2毎に得た検出率の平均値を当該候補条件Δy1 の評価
値として得ることとなる。
For example, the left and right images 42 after the current image conversion,
In a case where 44 is obtained according to the candidate condition Δy 1 , in the example of FIG.
The average value of the detection rates obtained every 2 is obtained as the evaluation value of the candidate condition Δy 1 .

【0479】次に条件設定部28は全てのチルト角候補
条件を選択し終えたか否かを判定する(S13)。
Next, the condition setting section judges whether or not all the tilt angle candidate conditions have been selected (S13).

【0480】全てのチルト角候補条件を選択し終えてい
なければ、条件設定部28は次のチルト角候補条件を選
択し(S14)、然る後、選択したチルト角候補条件を
出力する(S2)。
If all the tilt angle candidate conditions have not been selected, the condition setting section 28 selects the next tilt angle candidate condition (S14), and then outputs the selected tilt angle candidate condition (S2). ).

【0481】例えばチルト角候補条件Δγ1 〜Δγ5
うちΔγ1 についてのみ選択し終えており、Δγ2 〜Δ
γ5 についての選択を終えていなければ、残りの候補条
件Δγ2 〜Δγ5 のなかから選択した一つの候補条件Δ
γ2 を選択し、選択した候補条件Δγ2 を出力する。
For example, only Δγ 1 among the tilt angle candidate conditions Δγ 1 to Δγ 5 has been selected, and Δγ 2 to Δγ 2 have been selected.
If not completed selection for gamma 5, one of the candidate condition selected from among the remaining candidate condition Δγ 2 ~Δγ 5 Δ
γ 2 is selected, and the selected candidate condition Δγ 2 is output.

【0482】また全てのチルト角候補条件を選択し終え
たならば、最大値検出部36は各チルト角候補条件毎に
得た評価値のなかから最大の評価値を検出し、最大の評
価値を得たチルト角候補条件をチルト角修正条件として
検出する。そして最大値検出部28は当該チルト角修正
条件を条件設定部28に格納する(S15)。然る後、
修正条件検出装置18は、チルト角修正条件を検出する
ための処理を終了する(終了)。
When all the tilt angle candidate conditions have been selected, the maximum value detector 36 detects the maximum evaluation value from among the evaluation values obtained for each tilt angle candidate condition, and determines the maximum evaluation value. The obtained tilt angle candidate condition is detected as a tilt angle correction condition. Then, the maximum value detection unit 28 stores the tilt angle correction condition in the condition setting unit 28 (S15). After that,
The correction condition detection device 18 ends the process for detecting the tilt angle correction condition (end).

【0483】この実施形態においては、左右探索画像を
画像変換後の左右画像の一部である着目領域画像として
おり、従ってチルト角修正条件を検出するのに必要な画
像の走査量を減少させることができるので、チルト角修
正条件の検出時間を短縮できる。
In this embodiment, the left and right search images are used as region of interest images which are a part of the left and right images after image conversion. Therefore, the amount of scanning of the image necessary to detect the tilt angle correction condition is reduced. Therefore, the detection time of the tilt angle correction condition can be reduced.

【0484】<請求項13の発明の第三実施形態>次に
図23を参照し、請求項13の発明の第三実施形態につ
き説明する。以下、主として請求項13の発明の第二実
施形態と相違する点につき説明し、請求項13の発明の
第二実施形態と同様の点についてはその詳細な説明を省
略する。
<Third Embodiment of the 13th Invention> Next, a third embodiment of the 13th invention will be described with reference to FIG. Hereinafter, points different from the second embodiment of the thirteenth aspect of the invention will be mainly described, and detailed description of the same points as those of the second embodiment of the thirteenth aspect will be omitted.

【0485】この実施形態の修正条件検出装置18は、
条件設定部28、画像変換部30、対応点探索部32、
評価値算出部34及び最大値検出部36と、第三左メモ
リ38及び第三右メモリ40と、さらに領域切出し部4
6とを備える。
The correction condition detecting device 18 of this embodiment
A condition setting unit 28, an image conversion unit 30, a corresponding point search unit 32,
An evaluation value calculation unit 34 and a maximum value detection unit 36; a third left memory 38 and a third right memory 40;
6 is provided.

【0486】評価値算出部34は、左右探索画像におい
てチルト角のずれ量が大となる遠距離位相差につきチル
ト角候補条件が同じ各左右探索画像毎に位相差判明点の
検出率を求めチルト角候補条件が同じ左右探索画像につ
いて求めた検出率のうち上位から順次に所定個数の検出
率を選択し当該選択により得た検出率の平均値をチルト
角候補条件の評価値とする。
The evaluation value calculation unit calculates the detection rate of the phase difference clear point for each of the left and right search images having the same tilt angle candidate condition with respect to the long distance phase difference in which the tilt angle shift amount is large in the left and right search images. A predetermined number of detection rates are sequentially selected from the top in the detection rates obtained for the left and right search images having the same corner candidate condition, and the average value of the detection rates obtained by the selection is used as the evaluation value of the tilt angle candidate condition.

【0487】図28は請求項13の発明の第二実施形態
の動作の流れを示す図である。同図においては、複数種
類の候補条件及び修正条件のうちチルト角の候補条件及
び修正条件に着目し、チルト角候補条件を用いてチルト
角修正条件を検出する場合の動作の流れを示す。
FIG. 28 is a diagram showing a flow of the operation of the second embodiment of the present invention. FIG. 7 shows a flow of operation in the case where the tilt angle candidate condition and the correction condition are detected from the plurality of types of candidate condition and correction condition, and the tilt angle correction condition is detected using the tilt angle candidate condition.

【0488】オペレータが動作開始信号を修正条件検出
装置18に入力すると(開始)、まず条件設定部28は
複数種類の候補条件のなかからチルト角候補条件を選択
して設定し(S1)、然る後、条件設定部28は複数個
のチルト角候補条件のなかから選択した1個の候補条件
(選択チルト角候補条件)を出力する(S2)。
When the operator inputs an operation start signal to the correction condition detecting device 18 (start), the condition setting section 28 first selects and sets a tilt angle candidate condition from a plurality of types of candidate conditions (S1). After that, the condition setting unit 28 outputs one candidate condition (selected tilt angle candidate condition) selected from the plurality of tilt angle candidate conditions (S2).

【0489】次に画像変換部30は、条件設定部28か
ら入力した選択チルト角候補条件に従って左画像及び右
画像の一方を画像変換し、画像変換後の左画像及び右画
像を第三左メモリ38及び第三右メモリ40に格納する
(S3)。左右カメラ10、12により撮影した左右画
像は第一左右メモリ14、16に格納されており、画像
変換部30は第一左右メモリ14、16の左右画像を読
み出し、読み出した左右画像の一方は画像変換せず他方
は画像変換して、画像変換後の左右画像を第三左右メモ
リ38、40に格納する。
[0489] Next, the image conversion section 30 converts one of the left image and the right image according to the selected tilt angle candidate condition input from the condition setting section 28, and stores the converted left image and right image in the third left memory. 38 and the third right memory 40 (S3). The left and right images captured by the left and right cameras 10 and 12 are stored in first left and right memories 14 and 16, and the image conversion unit 30 reads the left and right images of the first left and right memories 14 and 16, and one of the read left and right images is an image. Without conversion, the other is image-converted, and the left and right images after the image conversion are stored in the third left and right memories 38 and 40.

【0490】次に領域切出し部46は、画像変換後の左
右画像上に垂直方向(y方向)に分散させた複数個の着
目領域から、左右着目領域画像を切り出す(S4)。
[0490] Next, the region cutout unit 46 cuts out the left and right region of interest images from a plurality of regions of interest dispersed in the vertical direction (y direction) on the left and right images after image conversion (S4).

【0491】次に対応点探索部32は、走査対象となる
画素の色を異ならせて複数種の探索条件を設定すると共
に、左右着目領域画像を左右探索画像とし、各探索条件
毎に、左右探索画像における対応候補点を検出する(S
5)。
Next, the corresponding point search unit 32 sets a plurality of types of search conditions by changing the color of the pixel to be scanned, sets the left and right region of interest images as left and right search images, and sets the left and right search images for each search condition. A corresponding candidate point in the search image is detected (S
5).

【0492】全種類の探索条件について、左右探索画像
全面にわたり水平走査線L上の対応候補点の検出を終了
したら、次に対応点探索部32は、各探索条件毎に得た
対応候補点の集合において共通集合となる対応候補点を
対応点として検出する(S6)。
After the detection of the corresponding candidate points on the horizontal scanning line L over the entire left and right search images for all types of search conditions, the corresponding point search unit 32 next calculates the corresponding candidate points obtained for each search condition. Corresponding candidate points that become a common set in the set are detected as corresponding points (S6).

【0493】次に対応点探索部32は、対応点検出結果
を用いて位相差判明点及び位相差不明点を検出する(S
7)。
Next, the corresponding point search unit 32 detects a phase difference found point and a phase difference unknown point using the corresponding point detection result (S
7).

【0494】次に対応点探索部32は、遠距離位相差範
囲において位相差判明点を検出し、遠距離位相差範囲に
おける位相差判明点の検出個数を評価値算出部34に対
し出力する(S8)。
Next, the corresponding point search section 32 detects a phase difference found point in the long distance phase difference range, and outputs the number of detected phase difference found points in the long distance phase difference range to the evaluation value calculation section 34 ( S8).

【0495】次に評価値算出部32は、遠距離位相差範
囲における位相差判明点の検出個数を用いて位相差判明
点の検出率を求め、当該位相差判明点の検出率を最大値
検出部36に格納する(S9)。
Next, the evaluation value calculation section 32 obtains the detection rate of the phase difference found point using the number of detected phase difference found points in the long distance phase difference range, and determines the detection rate of the phase difference found point as the maximum value. It is stored in the unit 36 (S9).

【0496】次に領域切出し部46は、第三左右メモリ
38、40に現在格納されている画像変換後の左右画像
に関して、全ての着目領域から左右着目領域画像を切り
出し終えたか(読み出し終えたか)否かを判定する(S
10)。
[0496] Next, the area cutout unit 46 determines whether or not the left and right attention area images have been cut out from all the attention areas (readout has been completed) for the converted left and right images currently stored in the third left and right memories 38 and 40. Is determined (S
10).

【0497】現在の画像変換後の左右画像に関して全て
の着目領域の切出しを終了していなければ、領域切出し
部46は左右着目領域画像の切出し未終了の1組の着目
領域を選択し(S11)、然る後、選択した着目領域か
ら次の左右着目領域画像を切り出す(S4)。
If the extraction of all the regions of interest has not been completed with respect to the current left and right images after image conversion, the region extracting section 46 selects a set of unextracted regions of interest of the left and right region of interest images (S11). Thereafter, the next left and right region of interest images are cut out from the selected region of interest (S4).

【0498】現在の画像変換後の左右画像に関して全て
の着目領域の切出しを終了したならば、評価値算出部3
4は現在の画像変換後の左右画像を得たチルト角候補条
件に関し、各着目領域毎に得た検出率のうち上位の検出
率を選択する(S12)。
When the extraction of all the regions of interest has been completed for the left and right images after the current image conversion, the evaluation value calculation unit 3
4 selects a higher detection rate from among the detection rates obtained for each region of interest with respect to the tilt angle candidate conditions for obtaining the current left and right images after image conversion (S12).

【0499】次に評価値算出部34は、選択した上位の
検出率の平均値を求め、この平均値を現在の画像変換後
の左右画像を得たチルト角候補条件に関する評価値とし
て、最大値検出部36に格納する(S13)。
[0499] Next, the evaluation value calculation unit 34 calculates the average value of the selected higher detection rates, and uses this average value as the evaluation value for the tilt angle candidate condition that obtained the current left and right images after image conversion. It is stored in the detection unit 36 (S13).

【0500】ここで図12で説明したように現在の画像
変換後の左右画像42、44上に設定する着目領域4
8、52の総個数は同じであるので、その総個数をR個
とすれば、総個数R個の着目領域48、52から総個数
R個の検出率を得ることとなる。そして総個数R個の検
出率のなかから上位r1個(r1はR>r1>1なる自
然数)の検出率を選択し、選択した上位r1個の検出率
の平均値を評価値とする。(R−r1)>0なる下位
(R−r1)個の検出率は評価値の算出に用いない。
Here, as described with reference to FIG. 12, the region of interest 4 to be set on the current image-converted left and right images 42 and 44.
Since the total number of 8, 52 is the same, assuming that the total number is R, the detection rate of the total number R is obtained from the total number R of the regions of interest 48, 52. Then, among the detection rates of the total number R, the detection rates of the top r1 (r1 is a natural number satisfying R>r1> 1) are selected, and the average value of the detection rates of the selected top r1 is used as the evaluation value. The lower (R-r1) detection rates where (R-r1)> 0 are not used for calculating the evaluation value.

【0501】例えば総個数R=30個の着目領域48、
52を設定し、これら着目領域から総個数R=30個の
検出率を得たものとすれば、上位r1=10〜20個の
検出率を用いて評価値を得、下位(R−r1)=20〜
10個の検出率は評価値の算出に用いない。
For example, a total number R = 30 attention areas 48,
If 52 are set and the detection rate of the total number R = 30 is obtained from these regions of interest, the evaluation value is obtained using the detection rates of the upper r1 = 10 to 20 and the lower (R-r1) = 20-
The ten detection rates are not used for calculating the evaluation value.

【0502】次に条件設定部28は全てのチルト角候補
条件を選択し終えたか否かを判定する(S14)。
Next, the condition setting section judges whether or not all the tilt angle candidate conditions have been selected (S14).

【0503】全てのチルト角候補条件を選択し終えてい
なければ、条件設定部28は次のチルト角候補条件を選
択し(S15)、然る後、選択したチルト角候補条件を
出力する(S2)。
If all the tilt angle candidate conditions have not been selected, the condition setting section 28 selects the next tilt angle candidate condition (S15), and then outputs the selected tilt angle candidate condition (S2). ).

【0504】また全てのチルト角候補条件を選択し終え
たならば、最大値検出部36は各チルト角候補条件毎に
得た評価値のなかから最大の評価値を検出し、最大の評
価値を得たチルト角候補条件をチルト角修正条件として
検出する。そして最大値検出部28は当該チルト角修正
条件を条件設定部28に格納する(S16)。然る後、
修正条件検出装置18は、チルト角修正条件を検出する
ための処理を終了する(終了)。
When all the tilt angle candidate conditions have been selected, the maximum value detector 36 detects the maximum evaluation value from among the evaluation values obtained for each tilt angle candidate condition, and determines the maximum evaluation value. The obtained tilt angle candidate condition is detected as a tilt angle correction condition. Then, the maximum value detection unit 28 stores the tilt angle correction condition in the condition setting unit 28 (S16). After that,
The correction condition detection device 18 ends the process for detecting the tilt angle correction condition (end).

【0505】この実施形態においても、請求項13の第
二実施形態と同様に、左右探索画像を画像変換後の左右
画像の一部である着目領域画像としており、従ってチル
ト角修正条件を検出するのに必要な画像の走査量を減少
させることができるので、チルト角修正条件の検出時間
を短縮できる。
Also in this embodiment, similarly to the second embodiment of the present invention, the left and right search images are used as region of interest images which are a part of the left and right images after image conversion, and therefore, the tilt angle correction condition is detected. Therefore, the amount of scanning of the image required for this can be reduced, so that the detection time of the tilt angle correction condition can be reduced.

【0506】さらにこの実施形態によれば、チルト角候
補条件の評価値を求める場合に、上位複数個の検出率の
平均値を用いて評価値を求め、下位の検出率を評価値の
算出に用いないので、チルト角修正条件の検出精度を向
上できる。
Further, according to this embodiment, when the evaluation value of the tilt angle candidate condition is obtained, the evaluation value is obtained by using the average value of the upper plurality of detection rates, and the lower detection rate is used for calculating the evaluation value. Since it is not used, the detection accuracy of the tilt angle correction condition can be improved.

【0507】[0507]

【発明の効果】上述した説明からも明らかなように、請
求項1の発明によれば、1種につき複数個の候補条件を
用意して複数種類の候補条件を用意し、左右カメラによ
り得た左右画像の一方を、候補条件に従って画像変換し
て、画像変換後の左右画像から位相差の判明点及び不明
点を検出する。そして各候補条件毎に、画像変換後の左
右画像における位相差判明点の検出率を用いて候補条件
の評価値を得、最大の評価値を得た候補条件を、エピポ
ーララインを合わせるために用いる修正条件として検出
する。
As is apparent from the above description, according to the first aspect of the present invention, a plurality of candidate conditions are prepared for each type, a plurality of types of candidate conditions are prepared, and obtained by the left and right cameras. One of the left and right images is image-converted in accordance with the candidate condition, and a known point and an unknown point of the phase difference are detected from the left and right images after the image conversion. Then, for each candidate condition, an evaluation value of the candidate condition is obtained using the detection rate of the phase difference found point in the left and right images after the image conversion, and the candidate condition having the maximum evaluation value is used to match the epipolar line. Detected as a correction condition.

【0508】しかも位相差の判明点及び不明点の検出の
際には、複数種類の探索条件を設定し、探索条件に従っ
て画像変換後の左右画像を走査し、相対応する水平走査
線上において画素特徴の差が閾値以下となる画素を対応
候補点として検出する。そして各探索条件毎に検出した
対応候補点の集合において共通集合となる対応候補点を
対応点として検出し、対応点検出結果を用いて位相差の
判明点及び不明点を検出する。
Further, when detecting a point where the phase difference is known or unknown, a plurality of types of search conditions are set, and the left and right images after image conversion are scanned in accordance with the search conditions. Are detected as corresponding candidate points. Then, a corresponding candidate point that is a common set in a set of corresponding candidate points detected for each search condition is detected as a corresponding point, and a known point and an unknown point of the phase difference are detected using the corresponding point detection result.

【0509】これがため請求項1の発明によれば、左右
カメラにより撮影する左右画像中に、特定のテストパタ
ーンが存在しなくても、エピポーララインを合わせるた
めに用いる修正条件を検出できる。
Therefore, according to the first aspect of the present invention, even if a specific test pattern does not exist in the left and right images photographed by the left and right cameras, it is possible to detect the correction condition used for adjusting the epipolar line.

【0510】また請求項5の発明によれば、1種につき
複数個の候補条件を用意して複数種類の候補条件を用意
し、左右カメラにより得た左右画像の一方を、候補条件
に従って画像変換して、画像変換後の左右画像から位相
差の判明点及び不明点を検出する。そして各候補条件毎
に、画像変換後の左右画像における位相差判明点の検出
率を用いて候補条件の評価値を得、最大の評価値を得た
候補条件を、エピポーララインを合わせるために用いる
修正条件として検出する。
According to the fifth aspect of the present invention, a plurality of candidate conditions are prepared for each type, a plurality of types of candidate conditions are prepared, and one of the left and right images obtained by the left and right cameras is converted into an image according to the candidate conditions. Then, the known and unknown points of the phase difference are detected from the left and right images after the image conversion. Then, for each candidate condition, an evaluation value of the candidate condition is obtained using the detection rate of the phase difference found point in the left and right images after the image conversion, and the candidate condition having the maximum evaluation value is used to match the epipolar line. Detected as a correction condition.

【0511】しかも位相差の判明点及び不明点の検出の
際には、複数種類の探索条件を設定し、探索条件に従っ
て画像変換後の左右画像を走査し、相対応する水平走査
線上において画素特徴の差が閾値以下となる画素を対応
候補点として検出する。そして各探索条件毎に検出した
対応候補点の集合において共通集合となる対応候補点を
対応点として検出し、対応点検出結果を用いて位相差の
判明点及び不明点を検出する。
[0511] Further, when detecting a point where the phase difference is known or unknown, a plurality of types of search conditions are set, and the left and right images after image conversion are scanned in accordance with the search conditions. Are detected as corresponding candidate points. Then, a corresponding candidate point that is a common set in a set of corresponding candidate points detected for each search condition is detected as a corresponding point, and a known point and an unknown point of the phase difference are detected using the corresponding point detection result.

【0512】これがため請求項5の発明によれば、左右
カメラにより撮影する左右画像中に、特定のテストパタ
ーンが存在しなくても、エピポーララインを合わせるた
めに用いる修正条件を検出できる。
[0512] Therefore, according to the invention of claim 5, even if a specific test pattern does not exist in the left and right images photographed by the left and right cameras, it is possible to detect the correction condition used for adjusting the epipolar line.

【0513】さらに請求項5の発明によれば、画像変換
後の左右画像をm階調からn階調に変換して、画像変換
後のn階調の左右画像のうち着目した1種又は複数種の
階調レベルの画像のみを走査して、修正条件を検出する
ので、修正条件を検出するのに要する時間を短縮できる
という利点がある。
According to the invention of claim 5, the left and right images after image conversion are converted from m gradations to n gradations, and one or more of the left and right images of n gradations after the image conversion are focused on. Since the correction condition is detected by scanning only the image of the various gradation levels, there is an advantage that the time required for detecting the correction condition can be reduced.

【0514】また請求項9の発明によれば、複数個の高
さ方向候補条件を用意して、左右カメラにより得た左右
画像の一方を、高さ方向候補条件に従って画像変換し
て、画像変換後の左右画像から位相差の判明点及び不明
点を検出する。そして各候補条件毎に、高さ方向のずれ
量が大となる近距離位相差範囲における位相差判明点の
検出率を用いて高さ方向候補条件の評価値を得、最大の
評価値を得た高さ方向候補条件を、エピポーララインを
合わせるために用いる高さ方向修正条件として検出す
る。
According to the ninth aspect of the present invention, a plurality of height direction candidate conditions are prepared, and one of the left and right images obtained by the left and right cameras is image-converted in accordance with the height direction candidate condition. From the later left and right images, the known and unknown points of the phase difference are detected. Then, for each candidate condition, the evaluation value of the height direction candidate condition is obtained using the detection rate of the phase difference known point in the short distance phase difference range where the amount of displacement in the height direction is large, and the maximum evaluation value is obtained. The height direction candidate condition is detected as a height direction correction condition used for matching epipolar lines.

【0515】しかも位相差の判明点及び不明点の検出の
際には、複数種類の探索条件を設定し、探索条件に従っ
て画像変換後の左右画像を走査し、相対応する水平走査
線上において画素特徴の差が閾値以下となる画素を対応
候補点として検出する。そして各探索条件毎に検出した
対応候補点の集合において共通集合となる対応候補点を
対応点として検出し、対応点検出結果を用いて位相差の
判明点及び不明点を検出する。
[0515] Further, when detecting a point where the phase difference is known or unknown, a plurality of types of search conditions are set, and the left and right images after image conversion are scanned in accordance with the search conditions. Are detected as corresponding candidate points. Then, a corresponding candidate point that is a common set in a set of corresponding candidate points detected for each search condition is detected as a corresponding point, and a known point and an unknown point of the phase difference are detected using the corresponding point detection result.

【0516】これがため請求項9の発明によれば、左右
カメラにより撮影する左右画像中に、特定のテストパタ
ーンが存在しなくても、エピポーララインを合わせるた
めに用いる高さ方向修正条件を検出できる。
Therefore, according to the ninth aspect of the present invention, even if a specific test pattern does not exist in the left and right images captured by the left and right cameras, the height direction correction condition used for adjusting the epipolar line can be detected. .

【0517】しかも請求項9の発明によれば、高さ方向
のずれ量が大となる近距離位相差範囲における位相差判
明点の検出率を用いて高さ方向の候補条件の評価値を得
て、最大の評価値を得た高さ方向候補条件を高さ方向修
正条件として検出するので、エピポーラライン合わせに
より適した高さ方向修正条件を検出することができる。
According to the ninth aspect of the present invention, the evaluation value of the candidate condition in the height direction is obtained by using the detection rate of the phase difference known point in the short distance phase difference range where the amount of displacement in the height direction is large. Then, the height direction candidate condition for which the maximum evaluation value is obtained is detected as the height direction correction condition, so that a height direction correction condition more suitable for epipolar line alignment can be detected.

【0518】また請求項13の発明によれば、複数個の
チルト角候補条件を用意して、左右カメラにより得た左
右画像の一方を、チルト角候補条件に従って画像変換し
て、画像変換後の左右画像から位相差の判明点及び不明
点を検出する。そして各候補条件毎に、チルト角のずれ
量が大となる近距離位相差範囲における位相差判明点の
検出率を用いてチルト角候補条件の評価値を得、最大の
評価値を得たチルト角候補条件を、エピポーララインを
合わせるために用いるチルト角修正条件として検出す
る。
According to the thirteenth aspect of the present invention, a plurality of tilt angle candidate conditions are prepared, and one of the left and right images obtained by the left and right cameras is image-converted in accordance with the tilt angle candidate conditions. Detected points and unknown points of the phase difference are detected from the left and right images. Then, for each candidate condition, an evaluation value of the tilt angle candidate condition is obtained using the detection rate of the phase difference known point in the short-distance phase difference range where the amount of tilt angle deviation is large, and the tilt that obtains the maximum evaluation value is obtained. The angle candidate condition is detected as a tilt angle correction condition used for matching epipolar lines.

【0519】しかも位相差の判明点及び不明点の検出の
際には、複数種類の探索条件を設定し、探索条件に従っ
て画像変換後の左右画像を走査し、相対応する水平走査
線上において画素特徴の差が閾値以下となる画素を対応
候補点として検出する。そして各探索条件毎に検出した
対応候補点の集合において共通集合となる対応候補点を
対応点として検出し、対応点検出結果を用いて位相差の
判明点及び不明点を検出する。
[0519] In addition, when detecting a known point or an unknown point of the phase difference, a plurality of types of search conditions are set, and the left and right images after image conversion are scanned in accordance with the search conditions. Are detected as corresponding candidate points. Then, a corresponding candidate point that is a common set in a set of corresponding candidate points detected for each search condition is detected as a corresponding point, and a known point and an unknown point of the phase difference are detected using the corresponding point detection result.

【0520】これがため請求項13の発明によれば、左
右カメラにより撮影する左右画像中に、特定のテストパ
ターンが存在しなくても、エピポーララインを合わせる
ために用いるチルト角修正条件を検出できる。
Therefore, according to the thirteenth aspect, the tilt angle correction condition used for adjusting the epipolar line can be detected even if a specific test pattern does not exist in the left and right images taken by the left and right cameras.

【0521】しかも請求項13の発明によれば、チルト
角のずれ量が大となる近距離位相差範囲における位相差
判明点の検出率を用いてチルト角の候補条件の評価値を
得て、最大の評価値を得たチルト角候補条件をチルト角
修正条件として検出するので、エピポーラライン合わせ
により適したチルト角修正条件を検出することができ
る。
According to the thirteenth aspect of the present invention, the evaluation value of the candidate condition of the tilt angle is obtained by using the detection rate of the phase difference known point in the short-distance phase difference range in which the tilt angle shift amount is large, Since the tilt angle candidate condition that has obtained the maximum evaluation value is detected as the tilt angle correction condition, the tilt angle correction condition more suitable for epipolar line alignment can be detected.

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

【図1】実施形態の説明に供する機能ブロック図であ
る。
FIG. 1 is a functional block diagram for explaining an embodiment;

【図2】1種類の候補条件に着目した動作の流れを示す
図である。
FIG. 2 is a diagram showing a flow of an operation focusing on one type of candidate condition.

【図3】(A)及び(B)は第一左右メモリに格納され
る左右画像の説明に供する図である。
FIGS. 3A and 3B are diagrams for explaining left and right images stored in a first left and right memory;

【図4】(A)及び(B)は第三左右メモリに格納され
る左右画像の説明に供する図である。
FIGS. 4A and 4B are diagrams for explaining left and right images stored in a third left and right memory;

【図5】修正条件検出の説明に供する図である。FIG. 5 is a diagram provided for describing correction condition detection.

【図6】位相差当て嵌めの説明に供する図である。FIG. 6 is a diagram provided for explaining a phase difference fitting;

【図7】位相差検定処理の流れを示す図である。FIG. 7 is a diagram showing a flow of a phase difference test process.

【図8】(A)及び(B)は検定点、参照点の説明に供
する図である。
FIGS. 8A and 8B are diagrams for explaining test points and reference points.

【図9】(A)及び(B)は検定点、参照点の説明に供
する図である。
FIGS. 9A and 9B are diagrams for explaining test points and reference points.

【図10】実施形態の説明に供する機能ブロック図であ
る。
FIG. 10 is a functional block diagram for explaining the embodiment;

【図11】1種類の候補条件に着目した動作の流れを示
す図である。
FIG. 11 is a diagram showing a flow of operation focusing on one type of candidate condition.

【図12】(A)及び(B)は着目領域、着目領域画像
の説明に供する図である。
FIGS. 12A and 12B are diagrams for explaining a target area and a target area image;

【図13】1種類の候補条件に着目した動作の流れを示
す図である。
FIG. 13 is a diagram showing a flow of operation focusing on one type of candidate condition.

【図14】(A)及び(B)は修正条件の検出精度向上
の説明に供する図である。
FIGS. 14A and 14B are diagrams for describing improvement in detection accuracy of correction conditions.

【図15】実施形態の説明に供する機能ブロック図であ
る。
FIG. 15 is a functional block diagram for explaining the embodiment;

【図16】実施形態の説明に供する機能ブロック図であ
る。
FIG. 16 is a functional block diagram for explaining the embodiment;

【図17】実施形態の説明に供する機能ブロック図であ
る。
FIG. 17 is a functional block diagram for explaining the embodiment;

【図18】1種類の候補条件に着目した動作の流れを示
す図である。
FIG. 18 is a diagram showing a flow of operation focusing on one type of candidate condition.

【図19】1種類の候補条件に着目した動作の流れを示
す図である。
FIG. 19 is a diagram showing a flow of operation focusing on one type of candidate condition.

【図20】1種類の候補条件に着目した動作の流れを示
す図である。
FIG. 20 is a diagram showing a flow of operation focusing on one type of candidate condition.

【図21】実施形態の説明に供する機能ブロック図であ
る。
FIG. 21 is a functional block diagram for explaining the embodiment;

【図22】高さ方向候補条件に着目した動作の流れを示
す図である。
FIG. 22 is a diagram showing a flow of an operation focusing on height direction candidate conditions.

【図23】実施形態の説明に供する機能ブロック図であ
る。
FIG. 23 is a functional block diagram for explaining the embodiment;

【図24】高さ方向候補条件に着目した動作の流れを示
す図である。
FIG. 24 is a diagram showing a flow of operation focusing on height direction candidate conditions.

【図25】高さ方向候補条件に着目した動作の流れを示
す図である。
FIG. 25 is a diagram showing a flow of operation focusing on height direction candidate conditions.

【図26】チルト角候補条件に着目した動作の流れを示
す図である。
FIG. 26 is a diagram showing a flow of operation focusing on tilt angle candidate conditions.

【図27】チルト角候補条件に着目した動作の流れを示
す図である。
FIG. 27 is a diagram showing a flow of operation focusing on a tilt angle candidate condition.

【図28】チルト角候補条件に着目した動作の流れを示
す図である。
FIG. 28 is a diagram showing a flow of operation focusing on a tilt angle candidate condition.

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

18:修正条件検出装置 28:条件設定部 30:画像変換部 32:対応点探索部 34:評価値算出部 36:最大値検出部 46:領域切出し部 18: Correction condition detection device 28: Condition setting unit 30: Image conversion unit 32: Corresponding point search unit 34: Evaluation value calculation unit 36: Maximum value detection unit 46: Area extraction unit

フロントページの続き (56)参考文献 特開 平6−195446(JP,A) 特開 平7−218251(JP,A) 特開 昭60−213192(JP,A) 特開 昭64−62777(JP,A) 特開 平7−27540(JP,A) ”ロボットビジョンのためのカメラキ ャリブレーション”,日本ロボット学会 誌,1992年 4月15日,Vol.10,N o.2,p.39−46 (58)調査した分野(Int.Cl.7,DB名) G06T 17/40 H04N 13/02 G01B 11/00 - 11/30 CSDB(日本国特許庁) JICSTファイル(JOIS)Continuation of the front page (56) References JP-A-6-195446 (JP, A) JP-A-7-218251 (JP, A) JP-A-60-213192 (JP, A) JP-A-64-62777 (JP, A) , A) JP-A-7-27540 (JP, A) "Camera calibration for robot vision", Journal of the Robotics Society of Japan, April 15, 1992, Vol. 10, No. 2, p. 39-46 (58) Fields investigated (Int. Cl. 7 , DB name) G06T 17/40 H04N 13/02 G01B 11/00-11/30 CSDB (Japan Patent Office) JICST file (JOIS)

Claims (16)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 左右画像のエピポーララインを合わせる
ための修正条件を検出する修正条件検出装置において、 修正条件を検出するための複数種類の候補条件を順次に
設定する条件設定部と、 左右画像の一方を、候補条件に従って画像変換する画像
変換部と、 走査方向、走査対象となる画素の階調表現、若しくは、
走査対象となる画素の色を異ならせて複数種の探索条件
を設定し、画像変換後の左右画像を左右探索画像とし、
前記探索条件に従って左右探索画像を走査し、相対応す
る水平走査線上において左探索画像の画素特徴と右探索
画像の画素特徴とを比較して画素特徴の差が閾値以下と
なる左右探索画像の画素を対応候補点として検出し、各
探索条件毎に検出した対応候補点の集合において共通集
合となる対応候補点を対応点として検出し、該対応点検
出結果を用いて左右探索画像における位相差の判明点及
び不明点を検出する対応点探索部と、 左右探索画像における位相差判明点の検出率を用いて、
候補条件の種類毎に候補条件の評価値を求める評価値算
出部と、 候補条件の種類毎に最大の評価値を得た候補条件を修正
条件として検出する最大値検出部とを備えて成ることを
特徴とするステレオ画像の修正条件検出装置。
1. A correction condition detecting device for detecting correction conditions for matching epipolar lines of left and right images, a condition setting unit for sequentially setting a plurality of types of candidate conditions for detecting correction conditions, An image conversion unit that converts one of the images according to the candidate condition; and a scanning direction, a gradation expression of a pixel to be scanned, or
A plurality of types of search conditions are set by changing the color of the pixel to be scanned, and the left and right images after image conversion are used as left and right search images,
The left and right search images are scanned according to the search condition, and the pixel characteristics of the left and right search images are compared with the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines. Are detected as corresponding candidate points, corresponding candidate points that become a common set in the set of corresponding candidate points detected for each search condition are detected as corresponding points, and the phase difference of the left and right search images is detected using the corresponding point detection results. Using a corresponding point search unit that detects a known point and an unknown point, and a detection rate of a phase difference known point in the left and right search images,
An evaluation value calculation unit that obtains an evaluation value of a candidate condition for each type of candidate condition, and a maximum value detection unit that detects, as a correction condition, a candidate condition that has obtained the maximum evaluation value for each type of candidate condition A stereo image correction condition detecting device characterized by the following.
【請求項2】 請求項1記載のステレオ画像の修正条件
検出装置において、 対応点探索部は、画像変換後の左右画像全面を左右探索
画像とし、 評価値算出部は、左右探索画像における位相差判明点の
検出率を、各候補条件毎に求め、当該検出率を候補条件
の評価値とすることを特徴とするステレオ画像の修正条
件検出装置。
2. The stereo image correction condition detecting apparatus according to claim 1, wherein the corresponding point searching unit sets the entire left and right image after image conversion as a left and right search image, and the evaluation value calculating unit determines a phase difference in the left and right search image. A stereo image correction condition detection apparatus, wherein a detection rate of a known point is obtained for each candidate condition, and the detection rate is used as an evaluation value of the candidate condition.
【請求項3】 請求項1記載のステレオ画像の修正条件
検出装置において、 画像変換後の左右画像上に垂直方向に分散させた複数個
の着目領域から、左右着目領域画像を順次に切出す領域
切出し部を備え、 対応点探索部は、左右着目領域画像を左右探索画像と
し、 評価値算出部は、候補条件が同じ各左右探索画像毎に位
相差判明点の検出率を求め、候補条件が同じ左右探索画
像について求めた検出率の平均値を当該候補条件の評価
値とすることを特徴とするステレオ画像の修正条件検出
装置。
3. The stereo image correction condition detecting apparatus according to claim 1, wherein the left and right attention area images are sequentially cut out from a plurality of attention areas vertically dispersed on the left and right images after image conversion. The corresponding point search unit sets the left and right region of interest images as left and right search images, and the evaluation value calculation unit obtains the detection rate of the phase difference found point for each of the left and right search images having the same candidate condition. A stereo image correction condition detecting device, wherein an average value of detection rates obtained for the same left and right search images is used as an evaluation value of the candidate condition.
【請求項4】 請求項1記載のステレオ画像の修正条件
検出装置において、 画像変換後の左右画像上に垂直方向に分散させた複数個
の着目領域から、左右着目領域画像を順次に切出す領域
切出し部を備え、 対応点探索部は、左右着目領域画像を左右探索画像と
し、 評価値算出部は、候補条件が同じ各左右探索画像毎に位
相差判明点の検出率を求め、候補条件が同じ左右探索画
像について求めた検出率のうち、上位から順次に所定個
数の検出率を選択し、当該選択により得た検出率の平均
値を候補条件の評価値とすることを特徴とするステレオ
画像の修正条件検出装置。
4. The stereo image correction condition detecting apparatus according to claim 1, wherein left and right regions of interest images are sequentially cut out from a plurality of regions of interest vertically dispersed on the left and right images after image conversion. The corresponding point search unit sets the left and right region of interest images as left and right search images, and the evaluation value calculation unit obtains the detection rate of the phase difference found point for each of the left and right search images having the same candidate condition. A stereo image characterized by selecting a predetermined number of detection rates in order from the top among detection rates obtained for the same left and right search images, and using an average value of the detection rates obtained by the selection as an evaluation value of a candidate condition. Correction condition detection device.
【請求項5】 左右画像のエピポーララインを合わせる
ための修正条件を検出する修正条件検出装置において、 修正条件を検出するための複数種類の候補条件を順次に
設定する条件設定部と、 m階調の左右画像の一方を、候補条件に従って画像変換
する画像変換部と、 画像変換後の左右画像をn階調(m>n)の左右画像に
変換する階調変換部と、 階調変換後の左右画像から、着目した一種類又は複数種
類の階調レベルの左右画像を左右着目レベル画像として
切り出すレベル切出し部と、 走査方向、走査対象となる画素の階調表現、若しくは、
走査対象となる画素の色を異ならせて複数種の探索条件
を設定し、左右着目レベル画像を左右探索画像とし、前
記探索条件に従って左右探索画像を走査し、相対応する
水平走査線上において左探索画像の画素特徴と右探索画
像の画素特徴とを比較して画素特徴の差が閾値以下とな
る左右探索画像の画素を対応候補点として検出し、各探
索条件毎に検出した対応候補点の集合において共通集合
となる対応候補点を対応点として検出し、該対応点検出
結果を用いて左右探索画像における位相差の判明点及び
不明点を検出する対応点探索部と、 左右探索画像における位相差判明点の検出率を用いて、
候補条件の種類毎に候補条件の評価値を求める評価値算
出部と、 候補条件の種類毎に最大の評価値を得た候補条件を修正
条件として検出する最大値検出部とを備えて成ることを
特徴とするステレオ画像の修正条件検出装置。
5. A correction condition detecting device for detecting a correction condition for matching epipolar lines of left and right images, a condition setting unit for sequentially setting a plurality of types of candidate conditions for detecting the correction condition, and m gradations An image conversion unit for converting one of the left and right images according to the candidate condition, a grayscale conversion unit for converting the left and right image after the image conversion into a left and right image of n gradations (m> n), A level cutout unit that cuts out one or more types of focused left and right images as left and right focused level images from the left and right images as a left and right focused level image;
A plurality of types of search conditions are set by changing the color of the pixel to be scanned, the left and right focus level images are set as left and right search images, the left and right search images are scanned in accordance with the search conditions, and a left search is performed on a corresponding horizontal scanning line. A set of corresponding candidate points detected for each search condition by comparing the pixel features of the image with the pixel features of the right search image to detect pixels of the left and right search images for which the difference between the pixel features is equal to or less than a threshold as corresponding candidate points. A corresponding point search unit that detects a candidate point corresponding to a common set as a corresponding point in the left and right search images and detects a known point and an unknown point of the phase difference in the left and right search images using the corresponding point detection result; Using the detection rate of known points,
An evaluation value calculation unit that obtains an evaluation value of a candidate condition for each type of candidate condition, and a maximum value detection unit that detects, as a correction condition, a candidate condition that has obtained the maximum evaluation value for each type of candidate condition A stereo image correction condition detecting device characterized by the following.
【請求項6】 請求項5記載のステレオ画像の修正条件
検出装置において、レベル切出し部は、階調変換後の左
右画像から、着目した1種類の階調レベルの左右画像の
みを左右着目レベル画像として切り出し、 評価値算出部は、左右探索画像における位相差判明点の
検出率を、各候補条件毎に求め、当該検出率を候補条件
の評価値とすることを特徴とするステレオ画像の修正条
件検出装置。
6. The stereo image correction condition detecting apparatus according to claim 5, wherein the level cutout unit extracts only the left and right images of the one type of gradation level of interest from the left and right images after the gradation conversion. The evaluation value calculation unit obtains, for each candidate condition, a detection rate of a phase difference found point in the left and right search images, and uses the detection rate as an evaluation value of the candidate condition. Detection device.
【請求項7】 請求項5記載のステレオ画像の修正条件
検出装置において、 レベル切出し部は、階調変換後の左右画像から、着目し
た複数種類の階調レベルの左右画像を順次に左右着目レ
ベル画像として切り出し、 評価値算出部は、候補条件が同じ各左右探索画像毎に位
相差判明点の検出率を求め、候補条件が同じ左右探索画
像について求めた検出率の平均値を当該候補条件の評価
値とすることを特徴とするステレオ画像の修正条件検出
装置。
7. The stereo image correction condition detecting apparatus according to claim 5, wherein the level cutout unit sequentially reads left and right images of a plurality of types of gradation levels of interest from the left and right images after gradation conversion. The image is cut out as an image, and the evaluation value calculation unit obtains the detection rate of the phase difference found point for each of the left and right search images having the same candidate condition, and calculates the average value of the detection rates obtained for the left and right search images having the same candidate condition as the candidate condition. A stereo image correction condition detection device characterized by an evaluation value.
【請求項8】 請求項5記載のステレオ画像の修正条件
検出装置において、 レベル切出し部は、階調変換後の左右画像から、着目し
た複数種類の階調レベルの左右画像を順次に左右着目レ
ベル画像として切り出し、 評価値算出部は、候補条件が同じ各左右探索画像毎に位
相差判明点の検出率を求め、候補条件が同じ左右探索画
像について求めた検出率のうち、上位から順次に所定個
数の検出率を選択し、当該選択により得た検出率の平均
値を候補条件の評価値とすることを特徴とするステレオ
画像の修正条件検出装置。
8. The stereo image correction condition detecting apparatus according to claim 5, wherein the level cutout unit sequentially reads left and right images of a plurality of types of focused gradation levels from the left and right images after gradation conversion. The image is cut out as an image, and the evaluation value calculation unit obtains the detection rate of the phase difference found point for each of the left and right search images having the same candidate condition, and sequentially determines the detection rates obtained for the left and right search images having the same candidate condition from the top in order. A stereo image correction condition detecting device, wherein a number of detection rates are selected, and an average value of the detection rates obtained by the selection is used as an evaluation value of a candidate condition.
【請求項9】 左右画像のエピポーララインを合わせる
ための修正条件を検出する修正条件検出装置において、 高さ方向修正条件を検出するための候補条件を順次に設
定する条件設定部と、左右画像の一方を、候補条件に従
って画像変換する画像変換部と、 走査方向、走査対象となる画素の階調表現、若しくは、
走査対象となる画素の色を異ならせて複数種の探索条件
を設定し、画像変換後の左右画像を左右探索画像とし、
前記探索条件に従って左右探索画像を走査し、相対応す
る水平走査線上において左探索画像の画素特徴と右探索
画像の画素特徴とを比較して画素特徴の差が閾値以下と
なる左右探索画像の画素を対応候補点として検出し、各
探索条件毎に検出した対応候補点の集合において共通集
合となる対応候補点を対応点として検出し、該対応点検
出結果を用いて左右探索画像において高さ方向のずれ量
が大となる近距離位相差の判明点及び不明点を検出する
対応点探索部と、 左右探索画像において高さ方向のずれ量が大となる近距
離位相差につき位相差判明点の検出率を求め当該検出率
を用いて高さ方向候補条件の評価値を求める評価値算出
部と、 最大の評価値を得た高さ方向候補条件を高さ方向修正条
件として検出する最大値検出部とを備えて成ることを特
徴とするステレオ画像の修正条件検出装置。
9. A correction condition detection device for detecting correction conditions for matching epipolar lines of left and right images, a condition setting unit for sequentially setting candidate conditions for detecting height direction correction conditions, An image conversion unit that converts one of the images according to the candidate condition; and a scanning direction, a gradation expression of a pixel to be scanned, or
A plurality of types of search conditions are set by changing the color of the pixel to be scanned, and the left and right images after image conversion are used as left and right search images,
The left and right search images are scanned according to the search condition, and the pixel characteristics of the left and right search images are compared with the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines. Are detected as corresponding candidate points, corresponding candidate points that become a common set in the set of corresponding candidate points detected for each search condition are detected as corresponding points, and the corresponding point detection results are used to detect height directions in the left and right search images. A corresponding point search unit that detects a known point and an unknown point of a short-distance phase difference in which the amount of deviation of the phase difference is large; An evaluation value calculation unit that obtains a detection rate and calculates an evaluation value of a height direction candidate condition using the detection rate, and a maximum value detection that detects a height direction candidate condition that obtains a maximum evaluation value as a height direction correction condition. Comprising a part Fixed condition detection apparatus of the stereo image, wherein the door.
【請求項10】 請求項9記載のステレオ画像の修正条
件検出装置において、 対応点探索部は、画像変換後の左右画像全面を左右探索
画像とし、 評価値算出部は、左右探索画像において高さ方向のずれ
量が大となる近距離位相差につき各高さ方向候補条件毎
に位相差判明点の検出率を求め当該検出率を高さ方向候
補条件の評価値とすることを特徴とするステレオ画像の
修正条件検出装置。
10. The stereo image correction condition detecting apparatus according to claim 9, wherein the corresponding point search unit sets the entire left and right image after image conversion as a left and right search image, and the evaluation value calculation unit sets the height in the left and right search image. A stereo, characterized in that a detection rate of a phase difference known point is obtained for each height direction candidate condition for a short-distance phase difference in which a direction shift amount is large, and the detection rate is used as an evaluation value of the height direction candidate condition. Image correction condition detection device.
【請求項11】 請求項9記載のステレオ画像の修正条
件検出装置において、 画像変換後の左右画像上に垂直方向に分散させた複数個
の着目領域から、左右着目領域画像を順次に切り出す領
域切出し部を備え、 対応点探索部は、左右着目領域画像を左右探索画像と
し、 評価値算出部は、左右探索画像において高さ方向のずれ
量が大となる近距離位相差につき高さ方向候補条件が同
じ各左右探索画像毎に位相差判明点の検出率を求め高さ
方向候補条件が同じ左右探索画像について求めた検出率
の平均値を当該高さ方向候補条件の評価値とすることを
特徴とするステレオ画像の修正条件検出装置。
11. A stereo image correction condition detecting apparatus according to claim 9, wherein left and right regions of interest images are sequentially cut out from a plurality of regions of interest vertically dispersed on the left and right images after image conversion. The corresponding point searching unit sets the left and right region of interest images as the left and right search images, and the evaluation value calculating unit sets the height direction candidate condition for the short-distance phase difference in which the shift amount in the height direction in the left and right search images becomes large. Is used to determine the detection rate of the phase difference found point for each of the same left and right search images, and the average value of the detection rates obtained for the left and right search images having the same height direction candidate condition is used as the evaluation value of the height direction candidate condition. Correction condition detecting device for stereo images.
【請求項12】 請求項9記載のステレオ画像の修正条
件検出装置において、 画像変換後の左右画像上に垂直方向に分散させた複数個
の着目領域から、左右着目領域画像を順次に切り出す領
域切出し部を備え、 対応点探索部は、左右着目領域画像を左右探索画像と
し、 評価値算出部は、左右探索画像において高さ方向のずれ
量が大となる近距離位相差につき高さ方向候補条件が同
じ各左右探索画像毎に位相差判明点の検出率を求め高さ
方向候補条件が同じ左右探索画像について求めた検出率
のうち上位から順次に所定個数の検出率を選択し当該選
択により得た検出率の平均値を高さ方向候補条件の評価
値とすることを特徴とするステレオ画像の修正条件検出
装置。
12. The stereo image correction condition detecting apparatus according to claim 9, wherein left and right regions of interest images are sequentially cut out from a plurality of regions of interest vertically dispersed on the left and right images after image conversion. The corresponding point searching unit sets the left and right region of interest images as the left and right search images, and the evaluation value calculating unit sets the height direction candidate condition for the short-distance phase difference in which the shift amount in the height direction in the left and right search images becomes large. Is determined for each of the left and right search images with the same phase difference detection point, and a predetermined number of detection rates are selected in order from the highest among the detection rates obtained for the left and right search images having the same height direction candidate condition, and the selection rate is obtained. A correction condition detection apparatus for stereo images, wherein an average value of the detected rates is used as an evaluation value of the height direction candidate condition.
【請求項13】 左右画像のエピポーララインを合わせ
るための修正条件を検出する修正条件検出装置におい
て、 チルト角修正条件を検出するための候補条件を順次に設
定する条件設定部と、 左右画像の一方を、候補条件に従って画像変換する画像
変換部と、 走査方向、走査対象となる画素の階調表現、若しくは、
走査対象となる画素の色を異ならせて複数種の探索条件
を設定し、画像変換後の左右画像を左右探索画像とし、
前記探索条件に従って左右探索画像を走査し、相対応す
る水平走査線上において左探索画像の画素特徴と右探索
画像の画素特徴とを比較して画素特徴の差が閾値以下と
なる左右探索画像の画素を対応候補点として検出し、各
探索条件毎に検出した対応候補点の集合において共通集
合となる対応候補点を対応点として検出し、該対応点検
出結果を用いて左右探索画像においてチルト角のずれ量
が大となる遠距離位相差の判明点及び不明点を検出する
対応点探索部と、 左右探索画像においてチルト角のずれ量が大となる遠距
離位相差につき位相差判明点の検出率を求め当該検出率
を用いてチルト角候補条件の評価値を求める評価値算出
部と、 最大の評価値を得たチルト角候補条件をチルト角修正条
件として検出する最大値検出部とを備えて成ることを特
徴とするステレオ画像の修正条件検出装置。
13. A correction condition detecting device for detecting a correction condition for matching epipolar lines of left and right images, a condition setting unit for sequentially setting candidate conditions for detecting a tilt angle correction condition, and one of the left and right images. An image conversion unit that performs image conversion in accordance with the candidate condition;
A plurality of types of search conditions are set by changing the color of the pixel to be scanned, and the left and right images after image conversion are used as left and right search images,
The left and right search images are scanned according to the search condition, and the pixel characteristics of the left and right search images are compared with the pixel characteristics of the left search image and the pixel characteristics of the right search image on the corresponding horizontal scanning lines. Is detected as a corresponding candidate point, a corresponding candidate point that is a common set in a set of corresponding candidate points detected for each search condition is detected as a corresponding point, and the tilt angle of the tilt angle in the left and right search images is detected using the corresponding point detection result. A corresponding point search unit that detects a known point and an unknown point of a long-distance phase difference where the amount of deviation is large, and a detection rate of a phase difference known point for a long-distance phase difference where the deviation amount of the tilt angle is large in the left and right search images An evaluation value calculation unit that obtains an evaluation value of a tilt angle candidate condition using the detection rate, and a maximum value detection unit that detects a tilt angle candidate condition that obtains a maximum evaluation value as a tilt angle correction condition. Become Fixed condition detection apparatus of the stereo image, wherein the door.
【請求項14】 請求項13記載のステレオ画像の修正
条件検出装置において、 対応点探索部は、画像変換後の左右画像全面を左右探索
画像とし、 評価値算出部は、左右探索画像においてチルト角のずれ
量が大となる遠距離位相差につき各チルト角候補条件毎
に位相差判明点の検出率を求め当該検出率をチルト角候
補条件の評価値とすることを特徴とするステレオ画像の
修正条件検出装置。
14. The stereo image correction condition detecting apparatus according to claim 13, wherein the corresponding point search unit sets the entire left and right image after image conversion as a left and right search image, and the evaluation value calculation unit sets the tilt angle in the left and right search image. A stereo image correction, wherein a detection rate of a phase difference known point is obtained for each of the tilt angle candidate conditions for a long-distance phase difference in which the amount of deviation is large, and the detection rate is used as an evaluation value of the tilt angle candidate condition. Condition detector.
【請求項15】 請求項13記載のステレオ画像の修正
条件検出装置において、 画像変換後の左右画像上に垂直方向に分散させた複数個
の着目領域から、左右着目領域画像を順次に切り出す領
域切出し部を備え、 対応点探索部は、左右着目領域画像を左右探索画像と
し、 評価値算出部は、左右探索画像においてチルト角のずれ
量が大となる遠距離位相差につきチルト角候補条件が同
じ各左右探索画像毎に位相差判明点の検出率を求めチル
ト角候補条件が同じ左右探索画像について求めた検出率
の平均値を当該チルト角候補条件の評価値とすることを
特徴とするステレオ画像の修正条件検出装置。
15. The stereo image correction condition detecting apparatus according to claim 13, wherein left and right target area images are sequentially cut out from a plurality of target areas dispersed in the vertical direction on the left and right images after image conversion. The corresponding point search unit sets the left and right region of interest images as the left and right search images, and the evaluation value calculation unit sets the same tilt angle candidate condition for the long-distance phase difference in which the tilt angle shift amount is large in the left and right search images. A stereo image characterized in that a detection rate of a phase difference known point is obtained for each of the left and right search images, and an average value of the detection rates obtained for the left and right search images having the same tilt angle candidate condition is used as an evaluation value of the tilt angle candidate condition. Correction condition detection device.
【請求項16】 請求項13記載のステレオ画像の修正
条件検出装置において、 画像変換後の左右画像上に垂直方向に分散させた複数個
の着目領域から、左右着目領域画像を順次に切り出す領
域切出し部を備え、 対応点探索部は、左右着目領域画像を左右探索画像と
し、 評価値算出部は、左右探索画像においてチルト角のずれ
量が大となる遠距離位相差につきチルト角候補条件が同
じ各左右探索画像毎に位相差判明点の検出率を求めチル
ト角候補条件が同じ左右探索画像について求めた検出率
のうち上位から順次に所定個数の検出率を選択し当該選
択により得た検出率の平均値を当該チルト角候補条件の
評価値とすることを特徴とするステレオ画像の修正条件
検出装置。
16. The stereo image correction condition detecting apparatus according to claim 13, wherein a left and right region of interest image is sequentially cut out from a plurality of regions of interest vertically dispersed on the left and right images after image conversion. The corresponding point search unit sets the left and right region of interest images as the left and right search images, and the evaluation value calculation unit sets the same tilt angle candidate condition for the long-distance phase difference in which the tilt angle shift amount is large in the left and right search images. The detection rate of the phase difference found point is determined for each of the left and right search images, and a predetermined number of the detection rates are sequentially selected from the top in the detection rates obtained for the left and right search images having the same tilt angle candidate condition, and the detection rates obtained by the selection are determined. The correction condition detecting apparatus for stereo images, wherein an average value of the correction conditions is used as an evaluation value of the tilt angle candidate condition.
JP31239695A 1995-11-30 1995-11-30 Stereo image correction condition detection device Expired - Fee Related JP3265171B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31239695A JP3265171B2 (en) 1995-11-30 1995-11-30 Stereo image correction condition detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31239695A JP3265171B2 (en) 1995-11-30 1995-11-30 Stereo image correction condition detection device

Publications (2)

Publication Number Publication Date
JPH09153148A JPH09153148A (en) 1997-06-10
JP3265171B2 true JP3265171B2 (en) 2002-03-11

Family

ID=18028748

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31239695A Expired - Fee Related JP3265171B2 (en) 1995-11-30 1995-11-30 Stereo image correction condition detection device

Country Status (1)

Country Link
JP (1) JP3265171B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101142279B1 (en) * 2010-10-20 2012-05-07 주식회사 아이닉스 An apparatus for aligning images in stereo vision system and the method thereof
JP6599685B2 (en) * 2015-08-19 2019-10-30 シャープ株式会社 Image processing apparatus and error determination method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"ロボットビジョンのためのカメラキャリブレーション",日本ロボット学会誌,1992年 4月15日,Vol.10,No.2,p.39−46

Also Published As

Publication number Publication date
JPH09153148A (en) 1997-06-10

Similar Documents

Publication Publication Date Title
US4573191A (en) Stereoscopic vision system
JP5075757B2 (en) Image processing apparatus, image processing program, image processing method, and electronic apparatus
US8427488B2 (en) Parallax image generating apparatus
US7471809B2 (en) Method, apparatus, and program for processing stereo image
EP1343332B1 (en) Stereoscopic image characteristics examination system
EP0817495B1 (en) Image subject extraction apparatus and method
US7697749B2 (en) Stereo image processing device
JP5074322B2 (en) Image processing apparatus, image processing method, image processing program, and imaging apparatus
JP4554316B2 (en) Stereo image processing device
US20050053276A1 (en) Method of obtaining a depth map from a digital image
CN115082450A (en) Pavement crack detection method and system based on deep learning network
JP4296617B2 (en) Image processing apparatus, image processing method, and recording medium
JPH10122838A (en) Method and device for three-dimensional structure estimation
JP2002140693A (en) Image processing parameter determining apparatus, image processing parameter determining method, and recording medium storing image processing parameter determining program
JPH08292014A (en) Measuring method of pattern position and device thereof
JP3265171B2 (en) Stereo image correction condition detection device
US20240257490A1 (en) Focal position estimation method, focal position estimation system, model generation method, model generation system, focal position estimation model, and non-transitory computer-readable storage medium
JPH0944676A (en) Face detector
JPH05114045A (en) Area separating method and image processor
JPH1096607A (en) Object detection device and plane estimation method
JPH0688706A (en) Viewpoint / object point position determination method
JP2001091844A (en) Confocal scanning type microscope
JPH11190611A (en) Three-dimensional measuring method and three-dimensional measuring processor using this method
JP2006047252A (en) Image processing device
JP2005165925A (en) Binarization processing apparatus and binarization processing method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011218

LAPS Cancellation because of no payment of annual fees