JP3291998B2 - Distance measuring device - Google Patents
Distance measuring deviceInfo
- Publication number
- JP3291998B2 JP3291998B2 JP25491395A JP25491395A JP3291998B2 JP 3291998 B2 JP3291998 B2 JP 3291998B2 JP 25491395 A JP25491395 A JP 25491395A JP 25491395 A JP25491395 A JP 25491395A JP 3291998 B2 JP3291998 B2 JP 3291998B2
- Authority
- JP
- Japan
- Prior art keywords
- window
- correlation
- data
- window width
- partial data
- 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
Links
Landscapes
- Measurement Of Optical Distance (AREA)
- Image Processing (AREA)
- Traffic Control Systems (AREA)
Description
【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION
【0001】[0001]
【発明の属する技術分野】本発明は、自動車追突防止装
置等に採用可能の外光三角方式の測距装置に関し、特
に、一対の光電変換センサアレイ上の結像間の相対的な
位置関係を検出する技術に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an external light triangulation type distance measuring device which can be employed in a vehicle rear-end collision prevention device and the like. Related to detection technology.
【0002】[0002]
【従来の技術】従来、自動焦点カメラ等に搭載される外
光三角方式(ステレオ方式)の測距装置は、図4に示す
ように、被写体(被測定物体)に臨んで両眼視差を作る
左右一対の結像レンズ(正のレンズ)1R ,1L を含む
複眼結像光学系と、距離測定半導体集積回路5とから成
る。この集積回路5は、結像レンズ1R ,1L の略焦平
面上に配置されてその結像の空間1次元照度分布を電気
信号列に変換する光電変換素子群としてのフォトセンサ
アレイ(イメージセンサ)2R ,2L と、フォトセンサ
アレイ2R ,2L のセンサ(セグメント)毎のアナログ
出力信号を順次量子化する量子化回路3R ,3L と、収
集されたディジタル値の左右一対の結像データ列を基に
所要の論理演算処理を行い距離信号を算出する論理部4
とを有している。2. Description of the Related Art Conventionally, an external light triangulation type (stereo type) distance measuring device mounted on an autofocus camera or the like, as shown in FIG. It comprises a compound-eye imaging optical system including a pair of left and right imaging lenses (positive lenses) 1 R and 1 L , and a distance measuring semiconductor integrated circuit 5. The integrated circuit 5 is arranged on a substantially focal plane of the imaging lenses 1 R and 1 L and converts a spatial one-dimensional illuminance distribution of the image into a photosensor array (photo image array) as a photoelectric conversion element group. Sensors) 2 R , 2 L , quantization circuits 3 R , 3 L for sequentially quantizing the analog output signals of the photosensor arrays 2 R , 2 L for each sensor (segment), and a pair of left and right collected digital values A logical unit 4 for performing a required logical operation on the basis of the image forming data sequence to calculate a distance signal
And
【0003】図5(a)に示すように、左右一対の結像
レンズ1R ,1L は光軸SR ,SLが平行で焦点距離f
e が同一であり、同一面上に配置されて両眼結像光学系
を構成しており、被測定物体Tは基準長(光軸間隔又は
眼幅)Bだけ隔てた左右一対の結像レンズ1R ,1L に
よりそれぞれ結像され、焦平面に相当するフォトセンサ
アレイ2R ,2L 上にはそれぞれ倒立実像の物体像(空
間1次元照度分布)TR ,TL が結ばれる。[0003] As shown in FIG. 5 (a), a pair of left and right imaging lenses 1 R, 1 L is the optical axis S R, S L are parallel focal length f
e are the same, and are arranged on the same plane to form a binocular imaging optical system. The object T to be measured is a pair of left and right imaging lenses separated by a reference length (optical axis interval or interpupillary distance) B. 1 R, are respectively the 1 L imaged object image of each of the photosensor array 2 R, on 2 L inverted real image corresponding to the focal plane (space 1-dimensional intensity distributions) T R, T L is tied.
【0004】被測定物体Tが前方無限遠に存在する場
合、結像点は光軸SR ,SL 上の焦点(基準点)OR ,
OL に合致する。被測定物体Tまでの距離が有限長dの
場合は三角測量の原理(三角形の相似)に基づいて次式
で与えられる。 d=Bfe /(XR +XL )=Bfe /X …(1) 但し、XR ,XL は被測定物体T中の代表物点Pの像点
PR ,PL と結像レンズ1R ,1L の光軸SR ,SL と
の距離(偏位)、XはXR とXL の和で、被測定物体像
の相対的な総偏位量(位相差)である。従って、この空
間的な位相差Xを求めることにより距離dを求めること
ができる。[0004] If the measured object T exists in far forward indefinitely, the imaging point is the optical axis S R, the focal point on S L (reference point) O R,
To match the O L. When the distance to the measured object T is finite length d, the distance is given by the following equation based on the principle of triangulation (similarity of a triangle). d = Bf e / (X R + X L) = Bf e / X ... (1) where, X R, X L is the image point P R of the representative object point P in the object T to be measured, P L and an imaging lens 1 R, 1 L of the optical axis S R, the distance between S L (excursion), X is the sum of X R and X L, is the relative total deviation amount of an object image to be measured (phase difference) . Therefore, the distance d can be obtained by obtaining the spatial phase difference X.
【0005】ところが、被測定物体Tは代表物点Pとし
て点在するのではなく空間的広がりを持っているため、
図5(a)に示すように、フォトセンサアレイ2R ,2
L 上ではアレイ方向の多数のセンサ範囲に跨がる物体像
(空間1次元照度分布)TR,TL が結像されることに
なり、左右のフォトセンサアレイ2R ,2L 上では同一
被測定物体T上の同一物点に対する像点相互をにわかに
特定することはできない。そのため、集積回路5の論理
部4では、一方のフォトセンサアレイ2R による結像デ
ータ列と他方のフォトセンサアレイ2L による結像デー
タ列との分布相関性を調べて同じ物体像の照度パターン
になるゾーン(ウインドウ位置)を見つけ出すことによ
り、位相差Xをフォトセンサアレイのセグメント数の形
で求めるようにしている。However, since the measured object T is not scattered as the representative object point P but has a spatial spread,
As shown in FIG. 5A, the photo sensor arrays 2 R and 2 R
On L , object images (spatial one-dimensional illuminance distribution) T R and T L spanning a large number of sensor ranges in the array direction are formed, and are the same on the left and right photo sensor arrays 2 R and 2 L. The image points for the same object point on the measured object T cannot be easily specified. Therefore, the logic unit 4 of the integrated circuit 5, the illuminance of the same object image by examining the distribution correlation between image data string via imaging data sequence and the other photosensor array 2 L by one photosensor array 2 R pattern The phase difference X is obtained in the form of the number of segments of the photosensor array by finding the zone (window position) where.
【0006】図5(b)は左右結像の分布相関性を調べ
る結像位置検出方法を示す説明図である。右側結像デー
タ列DR は右側のフォトセンサアレイ2R から得られる
空間1次元照度分布に応じたディジタル値列を示し、ア
レイの最右端セグメントデータR0 〜最左端セグメント
データRn で示されたn+1個のデータからなる。ま
た、左側結像データ列DL は左側のフォトセンサアレイ
2L から得られる空間1次元照度分布に応じたディジタ
ル値列を示し、最右端セグメントデータL0 〜最左端セ
グメントデータLn で示されたn+1個のデータからな
る。今、フォトセンサアレイ2R ,2L 上には被測定物
体像TR ,TL が結像されているため、これらの相対的
な位置関係を検出するには、図5(a)にハッチングを
付して示したような区間指定又はデータ抽出用のウイン
ドウ(窓)WR ,WL を設定し、これらウインドウ位置
を左右交互ににずらしながら、図5(b)の結像データ
列DR ,DL からそれぞれウインドウWR ,WL 内に含
まれる部分データ列DRk,DLjの左右組み合わせにおい
て互いに一致するか否かを相関検定する。ウインドウW
R ,WL の幅(総セグメント数)wに対応する部分デー
タ列のデータ数はm+1個(2m≧n>m)である。な
お本願では、便宜的にnを総セグメント数対応値、mを
ウインドウ幅対応値と称するものとする。FIG. 5B is an explanatory diagram showing an imaging position detecting method for examining the distribution correlation between left and right images. Right imaging data sequence D R represents a digital value string corresponding to the space one-dimensional illumination intensity distribution obtained from the right side of the photosensor array 2 R, shown in the rightmost segment data R 0 ~ leftmost segment data R n of the array It consists of n + 1 pieces of data. Also, the left image data sequence D L represents the digital value string corresponding to the space one-dimensional illumination intensity distribution obtained from the left side of the photosensor array 2 L, shown in the rightmost segment data L 0 ~ leftmost segment data L n It consists of n + 1 pieces of data. Now, since the photosensor array 2 R, 2 L measured object image on T R, T L is imaged, the detect these relative positional relationships, the hatching in FIGS. 5 (a) subjected shown was such an interval window for specifying or data extraction (window) W R, sets the W L, while shifting these windows located in the right and left alternately, imaging data sequence D shown in FIG. 5 (b) R, respectively, from D L window W R, W L within iNCLUDED partial data sequence D Rk, correlating test whether coincide with each other in the left-right combination of D Lj. Window W
R, the width of W L (total segment) number of data in the partial data string corresponding to w is the m + 1 (2m ≧ n> m). In the present application, for convenience, n is referred to as a value corresponding to the total number of segments, and m is referred to as a value corresponding to a window width.
【0007】ここで、相関関数(評価関数)を作成する
ためのウインドウWR ,WL のシフト方法は、片側ウイ
ンドウを固定したまま他方ウインドウを1つずつシフト
する片側シフト法も知られているが、本例では左右一対
の結像系は平等であるため、両側(左右)交互シフト方
法とする。即ち、最初の組合せC(0,0)=C0 で
は、右側の結像データ列DR の最も左側から抽出された
Rn 〜Rn-m の部分データ列DR0と、左側の結像データ
列DL の最も右側から抽出されたL0 〜Lm の部分デー
タ列DL0との組合せの相関が検定される。その相関検定
法は、例えば、右側の部分データ列Rn-m 〜Rn と左側
の部分データ列L0 〜Lm との対応するデータ同士の差
の絶対値の総和(相関値)Σを求める。即ち Σ=|L0 −Rn-m |+|L1 −Rn-m+1 |+…+|Lm −Rn | …(2) 相関値Σが小さければ小さい程、その部分データ列の組
合せ(分布)がマッチしており、相関性が強いことを意
味する。[0007] Here, the shift method of the window W R, W L for creating a correlation function (evaluation function) are also known side shift method for shifting one by one the other window while fixing the side windows However, in this example, since the pair of left and right imaging systems are equal, a double-sided (left and right) alternate shift method is used. That is, in the first combination C (0,0) = C 0, and R n to R nm substrings D R0 extracted from the leftmost of the right imaging data sequence D R, the left image data string The correlation of the combination with the partial data string D L0 of L 0 to L m extracted from the rightmost side of D L is tested. The correlation test method obtains, for example, the sum (correlation value) Σ of the absolute values of the differences between corresponding data between the right partial data strings R nm to R n and the left partial data strings L 0 to L m . That is, Σ = | L 0 −R nm | + | L 1 −R n−m + 1 | +... + | L m −R n | (2) The smaller the correlation value Σ, the smaller the partial data sequence The combination (distribution) is matched, which means that the correlation is strong.
【0008】被測定物体Tが中心線Lの前方無限遠にあ
る場合、最初の組合せC(0,0)=C0 が最高の相
関、即ち、その相関値Σが最小値になるはずである。こ
れに続く次の組合せC(0,1)=C1 以降は、ウイン
ドウWR ,WL の位置を左右交互に1セグメントずつ内
側から外側へ逐次シフトして抽出された左右の部分デー
タ列が組み合わされる。即ち、C(0,0)→C(0,
1)→C(1,1)→C(1,2)…C(n−m−1,
n−m−1)→C(n−m−1,n−m)→C(n−
m,n−m)の順で組み合わされる。組合せ合せの総数
は(2(n−m)+1)である。今、一般に左右の部分
データ列DLj(右端データLj 〜左端データLm+j ),
DRk(右端データRn-m-k 〜左端データRn-k )の組合
せをC(j,k)=Ci とすると、片側シフト回数j,
kは0からn−mまで歩進するので、総シフト回数i=
j+kは、0〜2(n−m)の値を取る。ここでiは組
合せ変数(組合せ番号)とみることができるので、すべ
ての組み合わせCi に対して一対の部分データ列DLj,
DRkの相関検定を行い相関関数(評価関数)Σ(i)を
求めた結果、σ番目の組合せCσが最高相関を示したと
すると、最高相関を示す組合せ番号σは位相差Xの指標
となる。この番号σにセンサピッチpを乗ずると位相差
Xを求めることができるが、一般に指標σがそのまま距
離信号として利用される。なお、相関検定するには、シ
フト前後においてウインドウ視野の大部分が重なり、且
つ最内側のときと最外側のときにおいてもウインドウ視
野の端が重なることを前提としているので、片側ウイン
ドウ位置の総シフト回数(n−m)はm以下に設定す
る。When the measured object T is located at infinity in front of the center line L, the first combination C (0,0) = C 0 should have the highest correlation, that is, the correlation value Σ should be the minimum value. . Followed next combination C (0,1) = C 1 since this is the window W R, W L sequentially shifted right and left partial data sequence extracted position from the inside, one segment of the alternately left and right to the outside Be combined. That is, C (0,0) → C (0,
1) → C (1,1) → C (1,2)... C (nm−1,
nm-1) → C (nm-1, nm) → C (n−
m, nm). The total number of combinations is (2 (nm) +1). Generally, right and left partial data strings D Lj (right end data L j to left end data L m + j ),
If the combination of D Rk (right end data R nmk to left end data R nk ) is C (j, k) = C i , the number of one-side shifts j,
Since k advances from 0 to nm, the total number of shifts i =
j + k takes a value of 0 to 2 (nm). Here, since i can be regarded as a combination variable (combination number), a pair of parts for all combinations C i data sequence D Lj,
As a result of performing a correlation test of D Rk to obtain a correlation function (evaluation function) Σ (i), assuming that the σ-th combination Cσ has the highest correlation, the combination number σ indicating the highest correlation is an index of the phase difference X. . The phase difference X can be obtained by multiplying the number σ by the sensor pitch p, but the index σ is generally used as it is as the distance signal. The correlation test is based on the premise that most of the window fields overlap before and after the shift, and that the edges of the window fields overlap at the innermost and outermost positions. The number of times (nm) is set to m or less.
【0009】[0009]
【発明が解決しようとする課題】 ところで、フォトセンサアレイ2R ,2L の総セグ
メント数(総センサ数)n+1を大きくすると、近距離
測定又は多方位測距の方位の広角化に有利となるが、総
セグメント数を増やすと集積回路が高価となるので、低
コスト化の要請により現状では総セグメント数は28 =
256前後が普通となっている。従って、最大のウイン
ドウ幅wmax (=mmax +1)はその総セングメント数
n+1の半分程度である。ここで、ウインドウ幅w(=
m+1)が広い場合は、広視野角でラインセンサ上の結
像を切り出すことを意味するため、鮮鋭なコントラスト
を含む照度パターンを抽出する確率は高くなるものの、
遠近混在する物体像を取り込む確率も高くなるので、例
えば遠近物体の大凡の中間距離が検出されてしまい、誤
測距が生じ易く、測定値の信頼性が低くなる。逆に、ウ
インドウ幅wが狭い場合は、狭視野角でラインセンサ上
の結像を切り出すことを意味するため、遠近混在する物
体像を取り込む確率は低くなるものの、鮮鋭なコントラ
ストを含む照度パターンを抽出する確率は低くなり、相
関検出が難しくなってしまい、測距不能となり易い。By the way, when the total number of segments (total number of sensors) n + 1 of the photosensor arrays 2 R and 2 L is increased, it is advantageous for widening the azimuth of short-distance measurement or multi-directional ranging. However, if the total number of segments is increased, the integrated circuit becomes expensive. Therefore, at present, the total number of segments is 2 8 =
About 256 is normal. Therefore, the maximum window width w max (= m max +1) is about half of the total number of segments n + 1. Here, the window width w (=
When m + 1) is wide, it means that an image on the line sensor is cut out at a wide viewing angle, and therefore the probability of extracting an illuminance pattern including a sharp contrast increases,
Since the probability of capturing an object image that is mixed in perspective is also high, for example, an approximate intermediate distance of a perspective object is detected, erroneous distance measurement is likely to occur, and the reliability of the measured value decreases. Conversely, when the window width w is narrow, it means that an image on the line sensor is cut out at a narrow viewing angle, and thus the probability of capturing a mixed object image is low, but the illuminance pattern including sharp contrast is reduced. The probability of extraction is low, making it difficult to detect correlation, making it difficult to measure distance.
【0010】 ウインドウ幅w(=m+1)の場合、
片側総シフト回数はw−1(=m)で、組合せ総数は2
w−1(=2m+1)であるので、相関値演算回数はw
(2w−1)となり、ウインドウ幅wの二乗に比例して
いる。このため、ウインドウ幅wが広いと、相関関数Σ
(i)を求めるための演算回数が激増し、処理時間が長
くなる。衝突防止装置に測距装置を適用する場合、殊に
演算処理の高速化が要求されるが、ウインドウ幅wを広
げ過ぎるとそれを満足させることができない。逆に、ウ
インドウ幅wが狭いと、処理時間の短縮化が達成される
ものの、総シフト回数w−1も少なくなるため、ウイン
ドウ位置を外側へ合わせることができなくなり、大きな
位相量Xを捕捉することができず、近距離測定が不能と
なる。In the case of a window width w (= m + 1),
The total number of shifts on one side is w-1 (= m), and the total number of combinations is 2
w−1 (= 2m + 1), the number of correlation value calculations is w
(2w-1), which is proportional to the square of the window width w. Therefore, if the window width w is large, the correlation function Σ
The number of calculations for obtaining (i) increases drastically, and the processing time increases. When a distance measuring device is applied to a collision prevention device, particularly high-speed arithmetic processing is required. However, if the window width w is excessively widened, it cannot be satisfied. Conversely, if the window width w is narrow, the processing time can be reduced, but the total number of shifts w-1 is also reduced, so that the window position cannot be adjusted to the outside, and a large phase amount X is captured. And short distance measurement becomes impossible.
【0011】そこで、上記問題点に鑑み、本発明の第1
の課題は、ウインドウ幅wの長短を変更っしてウインド
ウ位置のシフト動作を行うことにより、遠近に拘らず誤
測距を抑制できる測距装置を提供することにあり、本発
明の第2の課題は、相関演算回数の低減を図り、処理時
間の高速化を実現できる測距装置を提供することにあ
る。In view of the above problems, the first aspect of the present invention
An object of the present invention is to provide a distance measuring apparatus capable of suppressing erroneous distance measurement regardless of distance by performing a shift operation of a window position by changing the length of a window width w. It is an object of the present invention to provide a distance measuring apparatus capable of reducing the number of correlation operations and realizing a faster processing time.
【0012】[0012]
【課題を解決するための手段】上記課題を解決するため
に、本発明の講じた手段は、ウインドウ幅の最適化を達
成するよう可変ウインドウ幅を採用したところにある。
即ち、本発明は、測距対象に臨んで結像間に視差を作る
一対の結像光学系と、一側の結像光学系による結像の空
間1次元照度分布を電気信号列に変換する一側の光電変
換センサアレイと、他側の結像光学系による結像の空間
1次元照度分布を電気信号列に変換する他側の光電変換
センサアレイと、一側の光電変換センサアレイの電気信
号列から得られる結像データ列のうち一側ウインドウ内
に含まれる一側部分データ列を抽出する一側部分データ
抽出手段と、他側の光電変換センサアレイの電気信号列
から得られる結像データ列のうち他側ウインドウ内に含
まれる他側部分データ列を抽出する他側部分データ抽出
手段と、一側ウインドウと他側ウインドウの相対位置を
シフト動作するよう制御するウインドウ移動制御手段
と、一側部分データ列と他側部分データ列の組合せに対
し相関値計算を行う相関検定手段と、その相関検定手段
から得られる相関関数を基に最大相関の部分データ列の
組合せを検出する最大相関検出手段とを有する測距装置
において、上記部分データ列の組合せについての相関検
定の有効性を判別する検定有効判別手段と、上記検定が
無効のとき上記ウインドウ幅を逓増又は逓減させるウイ
ンドウ幅調整手段とを備えて成ることを特徴とする。In order to solve the above-mentioned problems, a measure taken by the present invention resides in that a variable window width is adopted so as to achieve optimization of the window width.
That is, the present invention converts a spatial one-dimensional illuminance distribution of an image formed by a pair of image forming optical systems that form a parallax between images facing a distance measurement target and an image forming optical system on one side into an electric signal sequence. A photoelectric conversion sensor array on one side, a photoelectric conversion sensor array on the other side for converting a spatial one-dimensional illuminance distribution of an image formed by the imaging optical system on the other side into an electric signal sequence, and an electric signal from the photoelectric conversion sensor array on the one side. One-side partial data extracting means for extracting one-side partial data sequence included in one-side window from the image data sequence obtained from the signal sequence, and an image obtained from the electric signal sequence of the photoelectric conversion sensor array on the other side Other-side partial data extraction means for extracting the other-side partial data string included in the other-side window of the data string; window movement control means for controlling the relative position between the one-side window and the other-side window to shift; One side partial data And a maximum correlation detecting means for detecting a combination of partial data strings having a maximum correlation based on a correlation function obtained from the correlation testing means. In the distance measuring apparatus, the distance measuring apparatus includes a test validity determination unit that determines the validity of the correlation test for the combination of the partial data strings, and a window width adjustment unit that increases or decreases the window width when the test is invalid. It is characterized by the following.
【0013】ここで、ウインドウ幅調整手段としてはウ
インドウ幅逓増手段であることが望ましい。また、部分
データ抽出手段は間引き抽出手段としても良い。Here, the window width adjusting means is preferably a window width increasing means. Further, the partial data extracting means may be a thinning extracting means.
【0014】〔作用〕あるウインドウ幅で相関検定を行
い、その結果、検定無効が生じたときは、ウインドウ幅
調整手段によって、そのウインドウ幅を逓減又は逓増さ
せてやり直し相関検定を行うようにしている。このた
め、常に、測定環境に応じた適正のウインドウ幅で相関
検定を行うことができ、測定誤差を抑制することができ
る。特に、ウインドウ幅逓増手段を用いる場合は、部分
データ数を極力少なくできるので、相関計算処理の迅速
化を図ることができる。また、間引き抽出手段を用いる
場合には、相関検定のやり直しではウインドウ幅が拡張
しても、データ数の増大は抑制されているので、演算回
数の抑制により処理時間の高速化を図ることができる。[Operation] When a correlation test is performed within a certain window width, and the test is invalid, as a result, the window width is reduced or increased by the window width adjusting means, and the correlation test is performed again. . For this reason, the correlation test can always be performed with an appropriate window width according to the measurement environment, and the measurement error can be suppressed. In particular, when the window width increasing means is used, the number of partial data can be reduced as much as possible, so that the correlation calculation processing can be sped up. In addition, when the thinning-out extraction unit is used, even if the window width is expanded by performing the correlation test again, the increase in the number of data is suppressed, so that the processing time can be shortened by suppressing the number of calculations. .
【0015】[0015]
【0016】[0016]
【実施例】次に、本発明の実施例を添付図面に基づいて
説明する。Next, an embodiment of the present invention will be described with reference to the accompanying drawings.
【0017】〔第1実施例〕図1は本発明の第1実施例
に係る測距装置の論理部の構成を示すブロック図であ
る。本例の測距装置もまた、図4に示すように、被測定
物体Tに臨んで両眼視差を作る左右一対の結像レンズ
(正のレンズ)1R ,1L を含む複眼結像光学系と、距
離測定半導体集積回路5とから成る。この集積回路5
は、結像レンズ1R,1L の略焦平面上に配置されてそ
の結像(1次元照度分布)を電気信号列に変換する光電
変換素子としてのフォトセンサアレイ(例えばCCDな
ど)2R ,2L と、フォトセンサアレイ2R ,2L のセ
ンサ(セグメント)毎のアナログ出力信号を順次量子化
する量子化回路3R ,3L と、収集されたディジタル値
の左右一対の結像データ列DR ,DL を基に所要の論理
演算処理を行い距離信号を算出する論理部4とを有して
いる。[First Embodiment] FIG. 1 is a block diagram showing a configuration of a logic unit of a distance measuring apparatus according to a first embodiment of the present invention. As shown in FIG. 4, the distance measuring apparatus of the present embodiment also includes a pair of left and right imaging lenses (positive lenses) 1 R and 1 L that form a binocular parallax facing the measured object T. And a distance measuring semiconductor integrated circuit 5. This integrated circuit 5
Is a photosensor array (for example, a CCD) 2 R as a photoelectric conversion element which is arranged on a substantially focal plane of the imaging lenses 1 R and 1 L and converts the image (one-dimensional illuminance distribution) into an electric signal sequence. , 2 L and, photosensor array 2 R, 2 L quantization circuit 3 sequentially quantizes the analog output signal of each sensor (segment) of R, 3 L and a pair of left and right imaging data collected digital values A logic unit 4 for performing a required logical operation process based on the columns D R and D L to calculate a distance signal.
【0018】本例の論理部4は、図1に示すように、右
側の量子化回路3R からの右側結像データ列DR (最右
端セグメントデータR0 〜最左端セグメントデータ
Rn )のうち右側ウインドウWR 内に含まれる右側部分
データ列DRk(ウインドウ右端データRn-m-k 〜ウイン
ドウ左端データRn-k )を抽出する右側部分データ抽出
手段10と、左側の量子化回路3L からの左側結像デー
タ列DL (最右端セグメントデータL0 〜最左端セグメ
ントデータLn )のうち左側ウインドウWL 内に含まれ
る左側部分データ列DLj(ウインドウ右端データLj 〜
ウインドウ左端データLm+j )を抽出する左側部分デー
タ抽出手段20と、右側ウインドウWR と左側ウインド
ウWL の位置を左右交互にシフト動作するよう制御する
ウインドウ移動制御手段30と、右側部分データ列DRk
と左側部分データ列DLjの組合せCiに対し相関値計算
を行う相関検定手段40と、その相関検定手段40から
得られる相関関数Σ(i)を基に最大相関の組合せ番号
σを検出する最大相関検出手段50と、組合せ番号iに
ついての相関検定の有効性を判別する検定有効判別手段
60と、検定無効のときに右側ウインドウWR と左側ウ
インドウWL のウインドウ幅wを逓増させるウインドウ
幅調整手段(ウインドウ幅変更手段)70とを有する。[0018] The example logic unit 4, as shown in Figure 1, the right side image data string from the right of the quantization circuit 3 R D R of (rightmost segment data R 0 ~ leftmost segment data R n) of the right portion data extraction section 10 for extracting right partial data string D Rk (window rightmost data R NMK ~ window leftmost data R nk) included in the right side window W R, the left of the left imaging from the quantization circuit 3 L image data string D L left partial data string D Lj (window rightmost data L j ~ contained in the left window W L of the (rightmost segment data L 0 ~ leftmost segment data L n)
A left portion data extraction section 20 for extracting window leftmost data L m + j), a window movement control means 30 for controlling so as to shift operation the position of the right window W R and the left window W L alternately left and right, the right partial data Row D Rk
And a left side partial data sequence D Lj , a correlation test means 40 for calculating a correlation value for the combination C i, and a maximum correlation combination number σ is detected based on the correlation function Σ (i) obtained from the correlation test means 40. the maximum correlation detection means 50, the test enable determination means 60 for determining the validity of the correlation test for combination number i, window width for gradually increasing the right window W R and the left window W L of the window width w when invalid test Adjusting means (window width changing means) 70.
【0019】右側部分データ抽出手段10は、右側の量
子化回路3R からの右側結像データ列DR (最右端セグ
メントデータR0 〜最左端セグメントデータRn )を格
納する右側結像データ記憶部(RAM)12と、抽出す
べき右側部分データ列DRk(ウインドウ右端データR
n-m-k 〜ウインドウ左端データRn-k )のアドレスAD
(ウインドウ右端アドレスn−m−k〜ウインドウ左端
アドレスn−k)をクロック端子CLに加わるクロック
パルスCK毎に昇順で指定するプリセット付きアップカ
ウンタ(右側部分データ・アドレスカウンタ)14とを
有する。また、左側部分データ抽出手段20も、左側の
量子化回路3L からの左側結像データ列DL (最右端セ
グメントデータL0 〜最左端セグメントデータLn )を
格納する左側結像データ記憶部(RAM)22と、抽出
すべき左側部分データ列DLj(ウインドウ右端データL
j 〜ウインドウ左端データLm+j )のアドレスAD(ウ
インドウ右端アドレスj〜ウインドウ左端アドレスm+
j)をクロック端子CLに加わるクロックパルスCK毎
に昇順で指定るプリセット付きアップカウンタ(左側部
分データ・アドレスカウンタ)24とを有する。右側部
分データ抽出手段10及び左側部分データ抽出手段20
は、左右部分データ列DLj,DRkの組合せCiにおいて
対応するデータ同士の差を取るためのデータ突き合わせ
の終了を検出するプリセット付きダウンカウンタ(デー
タ突き合わせ終了検出回路)16と、それから出力され
るキャリー信号(突き合わせ終了信号)cを若干遅延さ
せてタイミング信号としてのキャリー遅延信号cDLを生
成する遅延回路18と、キャリー遅延信号CDL及び検定
開始信号STを2入力として出力をアップカウンタ1
4,24のプリセット端子PSに供給するオアゲート1
5とを有する。プリセット付きダウンカウンタ16はオ
アゲート19を介する検定開始信号ST又は遅延回路1
8のキャリー遅延信号cDLをプリセット端子PSに受け
るたびに後述するウインドウ幅調整手段70からのウイ
ンドウ幅対応値mがプリセットされて、クロック端子C
LにクロックパルスCKが加わる毎にカウントダウンす
る。キャリー遅延信号cDLはプリセット付きアップカウ
ンタ14,24のプリセット端子PSに供給されてお
り、キャリー遅延信号cDLの発生のたびに、プリセット
付きアップカウンタ14はウインドウ移動制御手段30
から供給される右側ウインドウWRにおけるウインドウ
右端データRn-m-k のウインドウ右端番号(n−m−
k)がプリセットされると共に、プリセット付きアップ
カウンタ24はウインドウ移動制御手段30から供給さ
れる左側ウインドウWL におけるウインドウ右端データ
Lj のウインドウ右端番号jがプリセットされる。The right-side partial data extracting means 10 stores right-side image data D R (right-most segment data R 0 to left-most segment data R n ) from the right quantization circuit 3 R. (RAM) 12 and a right partial data string D Rk (window right end data R
nmk- address AD of window left end data R nk )
(A right side data address counter) 14 that specifies (window right end address nmk to window left end address nk) in ascending order for each clock pulse CK applied to the clock terminal CL. Further, the left portion data extraction section 20 is also left image data storage unit for storing the left image data string from left quantization circuit 3 L D L (rightmost segment data L 0 ~ leftmost segment data L n) (RAM) 22 and the left partial data string D Lj to be extracted (the right end data L
j to the window left end data Lm + j ) address AD (window right end address j to window left end address m +
j) is specified in ascending order for each clock pulse CK applied to the clock terminal CL, and a preset up counter (left side data / address counter) 24 is provided. Right partial data extracting means 10 and left partial data extracting means 20
The left and right partial data sequence D Lj, and preset with the down counter (data butt end detecting circuit) 16 for detecting the end of the data butt for calculating the difference data between corresponding in combination C i of D Rk, then output Circuit 18 for generating a carry delay signal c DL as a timing signal by slightly delaying a carry signal (matching end signal) c, and a carry delay signal C DL and a test start signal ST as two inputs and an up counter 1 as an output.
OR gate 1 to supply to 4, 24 preset terminals PS
And 5. The down counter 16 with preset is used for the test start signal ST via the OR gate 19 or the delay circuit 1
Window width corresponding value m from the window width adjusting means 70 described later each time undergoing 8 carry delay signal c DL of the preset terminal PS and is preset, a clock terminal C
Every time the clock pulse CK is added to L, the countdown is performed. The carry delay signal c DL is supplied to a preset terminal PS of the up counters 14 and 24 with presets. Each time the carry delay signal c DL is generated, the up counter with presets 14 moves the window movement control means 30.
Window rightmost data R NMK window rightmost number in the right window W R supplied from the (n-m-
with k) is preset, the preset with up counter 24 the window right edge number j of the window right edge data L j in the left window W L supplied from the window movement control means 30 is preset.
【0020】ウインドウ移動制御手段30は、測距開始
信号STの発生によりウインドウ幅調整手段70から供
給される最初の組合せC0 の右側ウインドウ右端番号
(n−m)をプリセットするプリセット付きダウンカウ
ンタ(右側ウインドウ右端指定回路)31と、クリアC
R端子に加わる測距開始信号STにより最初の組合せC
0 の左側ウインドウ右端番号0に初期化されるアップカ
ウンタ(左側ウインドウ右端指定回路)32と、キャリ
ー信号cを1/2分周する1/2分周回路33と、その
1/2分周回路33の出力を反転させるインバータ34
とを有している。The window movement control means 30, the distance measuring start signal ST first combination C 0 right window rightmost number (n-m) preset with the down counter to preset the supplied from the window width adjusting means 70 by the occurrence of ( Right window right end designating circuit) 31 and clear C
The first combination C is determined by the ranging start signal ST applied to the R terminal.
0 up counter (left window right end designation circuit) 32 that is initialized to the left window rightmost number 0, the 1/2 frequency dividing circuit 33 which divided by 2 carry signal c, the 1/2 frequency divider Inverter 34 for inverting the output of 33
And
【0021】ダウンカウンタ31はそのクロック端子C
Lに加わる分周回路33の出力が高レベルになるたび
(キャリー信号cの偶数パルスの際)にカウントアップ
をすると共に、アップカウンタ32はそのクロック端子
CLに加わる反転信号が高レベルになるたび(キャリー
信号cの奇数パルスの際)にカウントダウンをする。The down counter 31 has its clock terminal C
Each time the output of the frequency divider 33 applied to L goes high (when an even pulse of the carry signal c), the count-up is performed, and the up-counter 32 sets the inverted signal applied to its clock terminal CL to high. At the time of the odd pulse of the carry signal c, the countdown is performed.
【0022】相関検定手段40は、部分データ列DLj,
DRkの組合せCi において対応するデータ同士の差を取
る減算回路42と、その差値の絶対値を取る絶対値化回
路44と、クロックパルスCKに同期して逐次加算する
加算回路46とを有する。加算回路46は部分データ列
DLj,DRkの組合せCi についての相関値(累積値)Σ
を計算する。加算回路46のクリア端子CRにはオアゲ
ート48を介したキャリー遅延信号cDLが印加される。The correlation test means 40 generates a partial data string D Lj ,
A subtraction circuit 42 for taking the difference between the corresponding data in the combination C i of D Rk , an absolute value circuit 44 for taking the absolute value of the difference value, and an addition circuit 46 for successively adding in synchronization with the clock pulse CK. Have. Addition circuit 46 is partial data sequence D Lj, the correlation value for the combination C i of D Rk (cumulative value) sigma
Is calculated. The carry delay signal c DL via the OR gate 48 is applied to the clear terminal CR of the adder circuit 46.
【0023】最大相関検出手段50は、キャリー信号c
をイネーブル端子ENに受けて加算回路46から与えら
れる相関値が相関値レジスター54から与えられる記憶
値よりも小さいか否かを比較して小さいときは小値検出
信号DTを発生する比較回路52と、その小値検出信号
DTをラッチ端子Lに受けてそのときの相関値Σを一時
記憶する相関値レジスター54と、キャリー信号Cをク
ロック端子CLに受けて部分データ列DLj,DRkの組合
せ番号iを計数するアップカウンタ56と、小値検出信
号DTをラッチ端子Lに受けてそのときの部分データ列
DLj,DRkの組合せ番号i=σを一時記憶する最高組合
せ番号レジスター58とを有する。The maximum correlation detecting means 50 outputs the carry signal c
And a comparison circuit 52 that generates a small value detection signal DT when the correlation value given from the adding circuit 46 is smaller than a storage value given from the correlation value register 54 when the correlation value given by the adding circuit 46 is smaller than the storage value given by the correlation value register 54. A combination of a correlation value register 54 which receives the small value detection signal DT at the latch terminal L and temporarily stores the correlation value と き at that time, and a partial data string D Lj and D Rk which receives the carry signal C at the clock terminal CL. An up counter 56 for counting the number i, and a maximum combination number register 58 for receiving the small value detection signal DT at the latch terminal L and temporarily storing the combination number i = σ of the partial data strings D Lj and D Rk at that time. Have.
【0024】検定有効判別手段60は、小値検出信号D
Tをセット端子Sに受けると共に測距開始信号STをリ
セット端子Rに受けるフリップ・フロップであり、小値
検出信号DTが一度発生するとセットされてQ出力が高
レベルとなり、検定有効を表す。小値検出信号DTが一
度も発生しないときは、Q(バー)出力が高レベルとな
り、検定無効を表す。The test validity determination means 60 outputs the small value detection signal D
This is a flip-flop that receives T at the set terminal S and receives the distance measurement start signal ST at the reset terminal R. When the small value detection signal DT is generated once, it is set and the Q output becomes high level, indicating that the test is valid. When the small value detection signal DT is never generated, the Q (bar) output becomes a high level, indicating that the test is invalid.
【0025】ウインドウ幅調整手段70は、外部から供
給されるか或いは内部で作成される初期ウインドウ幅設
定値w0 をウインドウ幅拡張制御信号CWがクロック端
子CLに加わるたびに加算してウインドウ幅wN (=N
w0 )を出力する逓倍回路(加算回路)71と、ウイン
ドウ幅wN と数値1との差を取りウインドウ幅対応値m
(=wN −1)を出力する減算回路72とを有してい
る。The window width adjusting means 70 adds the initial window width set value w 0 supplied from the outside or created internally each time the window width extension control signal CW is applied to the clock terminal CL, and adds the window width w. N (= N
w 0 ) and a window width corresponding value m by taking the difference between the window width w N and the numerical value 1
(= W N −1).
【0026】フォトセンサアレイの総セグメント数より
1だけ小さい値(総セグメント数対応値)nは外部から
与えられるか或いは内部で作成されるが、減算回路81
は総セグメント数対応値nとウインドウ幅対応値mの差
を取り、部分データ同士の最初の組合せC0 の右側ウイ
ンドウWR (右側部分データ列)のウインドウ右端番号
(n−m)を作る。その右側ウインドウ右端番号(n−
m)はプリセット付きダウンカウンタ31及び倍数回路
82に供給される。倍数回路82により得られた値2
(n−m)は左右ウインドウWR,WL の総シフト回数に
相当している。そして、比較回路83はキャリー信号c
がイネーブル端子ENに加わるたびにアップカウンタ5
6から供給される組合せ回数(シフト回数)iが倍数回
路82から供給される総シフト回数2(n−m)を超え
るか否かを比較し、超えるときはシフト終了信号EDを
出力する。A value n smaller than the total number of segments of the photosensor array by 1 (a value corresponding to the total number of segments) is given from the outside or created internally.
Takes the difference between the total number of segments corresponding value n and the window width corresponding value m, makes the window right edge to the right of the number window W R of the first combination C 0 between partial data (right partial data string) (n-m). The rightmost number of the right window (n-
m) is supplied to the preset down counter 31 and the multiple circuit 82. The value 2 obtained by the multiple circuit 82
(N-m) is equivalent to the total number of shifts of the left and right window W R, W L. Then, the comparison circuit 83 outputs the carry signal c
Every time is applied to the enable terminal EN.
A comparison is made as to whether the number of combinations (number of shifts) i supplied from 6 exceeds the total number of shifts 2 (nm) supplied from the multiple circuit 82, and if it exceeds, outputs a shift end signal ED.
【0027】ウインドウ幅調整手段70において、ウイ
ンドウ幅拡張制御信号CWは、検定有効判別手段60か
らのQ(バー)出力及びシフト終了信号EDを2入力と
するアンドゲート73で作成されるが、検定有効判別手
段60からのQ出力及びシフト終了信号EDを2入力と
するアンドゲート74では逓倍回路71のクリアー信号
が作成される。ウインドウ幅調整手段70はまたウイン
ドウ幅拡張確認回路75を有している。このウインドウ
幅拡張確認回路75は、ウインドウ幅wN を2倍にする
倍数回路75aと、ウインドウ幅拡張制御信号CWの発
生の際、その倍数値2wN が総セグメント数対応値nを
超えるか否かを比較し超えるときは測距離不能信号NG
を出力する比較回路75bとを有する。In the window width adjusting means 70, the window width extension control signal CW is generated by an AND gate 73 which receives the Q (bar) output from the test validity determining means 60 and the shift end signal ED as two inputs. In the AND gate 74 which receives the Q output from the validity determination means 60 and the shift end signal ED as two inputs, a clear signal of the multiplying circuit 71 is created. The window width adjusting means 70 also has a window width extension confirmation circuit 75. Whether this window width extended check circuit 75, a multiple circuit 75a to the window width w N to twice the time of occurrence of the window width extension control signal CW, the multiple value 2w N exceeds the corresponding value n the total number of segments If it exceeds, the distance measurement impossible signal NG
And a comparison circuit 75b that outputs
【0028】図2は本例の動作態様を表すフローチャー
トである。以下、本例の動作を図2を参照しつつ説明す
る。FIG. 2 is a flowchart showing the operation of the present embodiment. Hereinafter, the operation of this example will be described with reference to FIG.
【0029】測定動作が開始されると、右側の量子化回
路3R からの右側結像データ列DR(最右端セグメント
データR0 〜最左端セグメントデータRn )が右側結像
データ記憶部(RAM)12に格納されると共に、左側
の量子化回路3L からの左側結像データ列DL (最右端
セグメントデータL0 〜最左端セグメントデータLn)
も左側結像データ記憶部(RAM)22に格納される。
そしてまず、ステップS1の初期設定処理において、図
1に示す論理部4には総セグメント数対応値nの外、初
期ウインドウ幅w0 が与えられてウインドウ幅調整手段
70の逓倍回路71には初期ウインドウ幅w0 の値が設
定される。本例ではシフト前(基準位置)では無限遠測
定に相当しているため、初期ウインドウ幅w0 として、
遠距離の測距に適した狭いウインドウ幅とする。今説明
のために仮に、n=28 =256とすれば、前述したよ
うに取り得る最大のウインドウ幅は27 であるから、こ
こでは、w0 =25 =32とする。逓倍回路71の初期
の出力は、ウインドウ幅wN =w0 =25 となり、減算
回路72の出力(ウインドウ幅対応値)mは、wN−1
=w0 −1=25 −1となる。また、ウインドウ幅拡張
確認回路75の倍数回路75aの出力2wN は、2w0
=26 であるので、n>2w0 であり、ウインドウ幅拡
張確認回路75の比較回路75aは測距離不能信号NG
を発生せず、そのウインドウ幅wN =w0 での測距を許
容する。[0029] When the measurement operation is started, the right image data stream D R (rightmost segment data R 0 ~ leftmost segment data R n) on the right image data storage unit from the right side of the quantization circuit 3 R ( while being stored in the RAM) 12, the left side of the quantization circuit 3 the left image data string from L D L (rightmost segment data L 0 ~ leftmost segment data L n)
Are also stored in the left-side imaging data storage (RAM) 22.
The first, in the initial setting process in step S1, initial the multiplier circuit 71 of the logic unit 4 outside of the total number of segments corresponding value n, the initial window width w 0 is given window width adjusting means 70 shown in FIG. 1 the value of the window width w 0 is set. In this example, before shifting (reference position), which corresponds to infinity measurement, the initial window width w 0 is
A narrow window width suitable for long distance measurement. For the sake of explanation, if n = 2 8 = 256, the maximum possible window width is 2 7 as described above. Here, it is assumed that w 0 = 2 5 = 32. Early output of the multiplier circuit 71, window width w N = w 0 = 2 5, and the output of the subtracting circuit 72 (window width corresponding value) m is w N -1
= W 0 -1 = 2 5 -1. The output 2w N of the multiple circuit 75a of the window width extension confirmation circuit 75 is 2w 0
= 2 6 , n> 2w 0 , and the comparison circuit 75a of the window width extension confirmation circuit 75 outputs the distance measurement impossible signal NG
Does not occur, and the distance measurement with the window width w N = w 0 is allowed.
【0030】相関検定開始信号STが発生すると、ステ
ップS2において次のような相関検定が実行される。ま
ず、ウインドウ移動制御手段30のダウンカウンタ(右
側ウインドウ右端指定回路)31,右側部分データ抽出
手段10のアップカウンタ14,左側部分データ抽出手
段20のアップカウンタ24及びダウンカウンタ(デー
タ突き合わせ終了検出回路)16がプリセットされると
共に、アップカウンタ(左側ウインドウ右端指定回路)
32,相関検定手段40の加算回路46及び最大相関検
出手段50のアップカウンタ56がクリアーされる。ま
た、相関値レジスタ54が所定値にセットされ、検定有
効判別手段60がリセットされる。アップカウンタ56
がクリアーになると、計数値(組合せ番号)i=0で、
最初の組合せC0 を意味する。ダウンカウンタ31は、
減算回路81から与えられる最初の組合せC0 の右側ウ
インドウ右端番号(n−m−k)が(n−m)にプリセ
ットされる。そしてまた、右側部分データ抽出手段10
のアップカウンタ14も右側ウインドウ右端アドレス
(n−m)にプリセットされる。一方アップカウンタ3
2のカウント値はゼロにクリアーされるので、これは丁
度最初の組合せC0 の左側ウインドウ右端番号jが0に
プリセットされたことに相当している。そしてまた、左
側部分データ抽出手段20のアップカウンタ24も左側
ウインドウ右端アドレス0にプリセットされる。またダ
ウンカウンタ16はウインドウ幅対応値mがプリセット
される。これは最初の組合せC0 の相関値計算における
データ突き合わせの残り回数の指定を意味する。When the correlation test start signal ST is generated, the following correlation test is executed in step S2. First, a down counter (right window right end designating circuit) 31 of the window movement control means 30, an up counter 14 of the right partial data extracting means 10, an up counter 24 of the left partial data extracting means 20, and a down counter (data matching end detecting circuit). 16 is preset and the up counter (left window right end designation circuit)
32, the addition circuit 46 of the correlation test means 40 and the up counter 56 of the maximum correlation detection means 50 are cleared. Further, the correlation value register 54 is set to a predetermined value, and the test validity judging means 60 is reset. Up counter 56
Is clear, the count value (combination number) i = 0,
It refers to the first combination C 0. The down counter 31
Right window rightmost number of the first combination C 0 supplied from the subtracting circuit 81 (n-m-k) is preset to (n-m). The right partial data extracting means 10
Is also preset at the right end address (nm) of the right window. On the other hand, up counter 3
Since the count value of 2 is cleared to zero, this corresponds to the fact that the right end number j of the left window of the first combination C 0 has been preset to zero. Further, the up counter 24 of the left partial data extracting means 20 is also preset to the right end address 0 of the left window. The window counter value m is preset in the down counter 16. This means designation of the remaining number of times of data matching in the calculation of the correlation value of the first combination C 0 .
【0031】相関検定開始信号STが加わると、アドレ
スカウンタとしてのアップカウンタ14に(n−m)が
プリセットされるので、右側結像データ記憶部12のア
ドレス(n−m)のデータRn-m が読み出されると共
に、アップカウンタ24に0がプリセットされるので、
左側結像データ記憶部22のアドレス0のデータL0 が
読み出される。読み出された両データRn-m,L0 は相関
検定手段40の減算回路42で減算されて差値(L0 −
Rn-m )が得られ、続いて、絶対値化回路44で得られ
た絶対値|L0 −Rn-m |はそのまま加算回路46に格
納される。When the correlation test start signal ST is added, (nm) is preset in the up counter 14 as an address counter, so that the data R nm of the address ( nm ) in the right side imaging data storage section 12 is stored. Since it is read out and 0 is preset in the up counter 24,
The data L 0 at address 0 in the left imaging data storage unit 22 is read. The two read data R nm, L 0 are subtracted by the subtraction circuit 42 of the correlation test means 40 to obtain a difference value (L 0 −
R nm ), and the absolute value | L 0 −R nm | obtained by the absolute value conversion circuit 44 is stored in the addition circuit 46 as it is.
【0032】最初のクロックパルスCK1 が加わると、
ダウンカウンタ16の計数値(残り突き合わせ回数)は
m−1となり、アップカウンタ14,24がカウントア
ップするので、右側結像データ記憶部12のアドレス
(n−m+1)のデータRn-m+ 1 が読み出されると共
に、左側結像データ記憶部22のアドレス1のデータL
1が読み出される。読み出された両データRn-m+1,L1
は相関検定手段40の減算回路42で減算されて差値
(L1 −Rn-m+1 )が得られ、続いて、絶対値化回路4
4で得られた絶対値|L1 −Rn-m+1 |は加算回路46
で既値|L0 −Rn-m|と加算される。When the first clock pulse CK 1 is applied,
The count value of the down counter 16 (the number of remaining matches) becomes m-1, and the up counters 14 and 24 count up. Therefore, the data R n−m + 1 of the address (nm−1) of the right imaging data storage unit 12 is At the same time, the data L at the address 1 of the left
1 is read. Both read data R n-m + 1, L 1
Is subtracted by the subtraction circuit 42 of the correlation test means 40 to obtain a difference value (L 1 −R n−m + 1 ).
The absolute value | L 1 −R n−m + 1 |
Is added to the existing value | L 0 −R nm |.
【0033】このようにして、m番目のクロックパルス
CKm が加わると、ダウンカウンタ16の計数値(残り
突き合わせ回数)は0となり、アップカウンタ14の計
数値はn、アップカウンタ24の計数値はmとなる。こ
のため、右側結像データ記憶部12のアドレスnのデー
タRn が読み出されると共に、左側結像データ記憶部2
2のアドレスmのデータLm が読み出される。読み出さ
れた両データRn,Lmは相関検定手段40の減算回路4
2で減算されて差値(Lm −Rn )が得られ、続いて、
絶対値化回路44で得られた絶対値|Lm −Rn |は加
算回路46で既加算値(|L0 −Rn-m |+…+|L
m-1 −Rn-1 |)と加算され、総加算値Σ(0)=(|
L0 −Rn-m |+…+|Lm −Rn |)となる。Thus, when the m-th clock pulse CK m is applied, the count value of the down counter 16 (the number of remaining matches) becomes 0, the count value of the up counter 14 is n, and the count value of the up counter 24 is m. Therefore, the data R n of the address n of the right imaging data storage unit 12 is read out, the left image data storage unit 2
Data L m of second address m is read. The read data R n and L m are subtracted from the subtraction circuit 4 of the correlation test means 40.
Is subtracted by 2 difference value (L m -R n) is obtained, followed by
The absolute value | L m −R n | obtained by the absolute value converting circuit 44 is already added by the adding circuit 46 (| L 0 −R nm | +... + | L
m−1 −R n−1 |), and the total added value Σ (0) = (|
L 0 −R nm | +... + | L m −R n |).
【0034】次に、(m+1)番目のクロックパルスC
Km+1 が加わると、ダウンカウンタ16は最初のキャリ
ー信号c1 を発生し、最初の組合せC0 の突き合わせ計
算の終了を宣言する。このキャリー信号c1 を発生する
と、イネーブル信号として最大相関検出手段50の比較
回路52に加わるので、比較回路52は総加算値Σ
(0)が相関値レジスタ54のセット値よりも小さいか
否かを比較し、小さいときには小値検出信号DTを出力
する。ここで、小値検出信号DTが出力された場合、相
関値レジスタ54がその総加算値Σ(0)を一時記憶す
る。また、最高組合せ番号レジスタ58が組合せ番号i
=0を一時記憶する。小値検出信号DTが出力されない
場合、相関値レジスタ54にセット値がそのまま残る。
キャリー信号c1 が発生すると、アップカウンタ56の
計数値がi=2となり、次の組合せC2 を宣言する。更
に、最初のキャリー信号c1 が発生すると、1/2分周
回路33の出力は低レベルであるので、ダウンカウンタ
31は歩進しないが、アップカウンタ32のみが歩進し
て、次の組合せC2 の左側ウインドウ右端番号jが1に
なる。また更に、ダウンカウンタ16が再びmにプリセ
ットされる。この後、前述と同様に、組合せC2 の相関
計算が行われる。このようにして組合せC2(n-m)までの
相関計算が行われると、最小相関値Σ(σ)の組合せ番
号σが最高組合せ番号レジスタ58から出力され、また
組合せ番号i=2(n−m)となっているので、比較回
路83から組合せ終了信号EDが出力される。Next, the (m + 1) th clock pulse C
When K m + 1 is added, the down counter 16 generates the first carry signal c 1 and declares the end of the matching calculation of the first combination C 0 . When generating the carry signal c 1, since applied to the comparison circuit 52 of the maximum correlation detection means 50 as an enable signal, the comparator circuit 52 is the total sum value Σ
It is compared whether (0) is smaller than the set value of the correlation value register 54, and when it is smaller, a small value detection signal DT is output. Here, when the small value detection signal DT is output, the correlation value register 54 temporarily stores the total added value Σ (0). The highest combination number register 58 stores the combination number i.
= 0 is temporarily stored. When the small value detection signal DT is not output, the set value remains in the correlation value register 54 as it is.
A carry signal c 1 is generated, the count value is i = 2 next to the up-counter 56, the next combination C 2 declared. Further, when the first carry signal c 1 is generated, the output of the 1/2 frequency dividing circuit 33 is at low level, the down counter 31 is not incremented, only the up-counter 32 is incremented, the following combinations left window rightmost number j of C 2 becomes 1. Furthermore, the down counter 16 is preset to m again. Thereafter, in the same manner as described above, the correlation calculation of the combined C 2 is performed. When the correlation calculation up to the combination C 2 (nm) is performed in this manner, the combination number σ of the minimum correlation value Σ (σ) is output from the highest combination number register 58, and the combination number i = 2 (nm) ), The comparison circuit 83 outputs the combination end signal ED.
【0035】本例では最初の組合せC0 が無限遠の測定
に相当しており、その測定に適合する幅狭のウインドウ
幅wN =w0 で狭い視野角としてあるので、遠近混在す
る物体像を取り込む確率を低くでき、また部分データ列
のデータ数が少ないので相関検定の迅速化を図ることが
できる。本例では組合せ数1+2(n−m)の相関検定
処理のステップS3において、検定有効判別手段60に
より小値検出信号DTが発生したか否か判別される。検
定有効の場合、最高組合せ番号σを用いてステップS4
で距離演算が実行される。どの相関値Σ(i)も相関値
レジスタ54の初期値よりも大きく、最高組合せ番号σ
が存在せず、相関検定が不能であることを意味する。こ
れは幅狭のウインドウ幅w0 の狭視野でデータを取り込
むと、上述のように幅距離物体が存在する場合は都合が
良いが、近距離物体の測定には不向きで、検定不能にな
り易い。In the present example, the first combination C 0 corresponds to the measurement at infinity, and the narrow window width w N = w 0 and the narrow viewing angle suitable for the measurement are set. Can be reduced, and the number of data in the partial data string is small, so that the correlation test can be sped up. In this example, in step S3 of the correlation test processing of the number of combinations 1 + 2 (nm), the test validity determination means 60 determines whether or not the small value detection signal DT has been generated. If the test is valid, step S4 is performed using the highest combination number σ.
Performs the distance calculation. Any correlation value Σ (i) is larger than the initial value of the correlation value register 54, and the highest combination number σ
Does not exist, meaning that a correlation test is not possible. This is convenient when data is captured in a narrow field of view with a narrow window width w 0 , which is convenient when a wide-range object exists as described above, but is unsuitable for measurement of a short-range object and tends to be unable to be verified. .
【0036】そこで本例では、ステップ5において、相
関検定不能の場合、組合せ終了信号EDの出力を待って
ウインドウ幅拡張制御信号CWを出力させ、ウインドウ
幅調整手段70でウインドウ幅wN を2倍に拡張し、再
度のそのウインドウ幅wN =2w0 で部分データ列を抽
出し、相関検定をやり直すようにしている。Therefore, in this example, if the correlation test is not possible in step 5, the window width extension control signal CW is output after waiting for the output of the combination end signal ED, and the window width w N is doubled by the window width adjusting means 70. The partial data string is extracted again with the window width w N = 2w 0 , and the correlation test is performed again.
【0037】即ち、ウインドウ幅拡張制御信号CWが逓
倍回路71のクロック端子CLに加わると、逓倍回路7
1は既加算値w0 に初期ウインドウ幅の値w0 を加算す
る。That is, when the window width extension control signal CW is applied to the clock terminal CL of the multiplying circuit 71, the multiplying circuit 7
1 adds the value w 0 of the initial window width to the already added value w 0.
【0038】これによりウインドウ幅wN は2w0 =2
6 となる。そして、減算回路72の出力(ウインドウ幅
対応値)mは、wN −1=2w0 −1=26 −1とな
る。また、ステップ6において、ウインドウ幅拡張確認
回路75の倍数回路75aの出力2wN は、4w0 =2
7 であるので、n>4w0 であり、ウインドウ幅拡張確
認回路75の比較回路75aは測距離不能信号NGを発
生せず、そのウインドウ幅wN =2w0 での測距を許容
する。このやり直し相関検定では、部分データのデータ
数は2倍となる。前回の相関計算回数に比べて今回の回
数は増大するものの、視野角が拡大されるので、鮮鋭な
コントラストを含む照度パターンを抽出する確率が高く
なり、相関検出が近距離測定に適するようになる。As a result, the window width w N becomes 2w 0 = 2.
It becomes 6 . Then, the output m (the value corresponding to the window width) m of the subtraction circuit 72 becomes w N -1 = 2w 0 -1 = 2 6 -1. Further, in step 6, the output 2w N multiple circuit 75a of the window width extended check circuit 75, 4w 0 = 2
Since 7 is satisfied, n> 4w 0 , and the comparison circuit 75a of the window width extension confirmation circuit 75 does not generate the distance measurement impossible signal NG, and allows the distance measurement with the window width w N = 2w 0 . In the redo correlation test, the number of partial data is doubled. Although the number of times this time is increased compared to the number of times of the previous correlation calculation, the viewing angle is expanded, so that the probability of extracting an illuminance pattern including sharp contrast increases, and the correlation detection becomes suitable for short-range measurement. .
【0039】このウインドウ幅wN =2w0 の相関検定
でも検定有効判別手段60が不能を宣言するときは、更
にウインドウ幅wN =3w0 =3×25 での相関検定が
やり直される。なお、ウインドウ幅wN =5w0 は総セ
グメント数の半分27 を超えるので、ステップ7におい
て、その際は比較回路75が測距離不能信号NGを出力
し、ディフォルト処理を実行する。If the test validity discriminating means 60 declares impossible even in the correlation test with the window width w N = 2w 0 , the correlation test with the window width w N = 3w 0 = 3 × 25 is performed again. Since the window width w N = 5w 0 is more than half 2 7 of the total number of segments, in step 7, where outputs a distance disable signal NG measurement comparison circuit 75 performs a default process.
【0040】このように、本例の測距装置では、幅狭の
ウインドウ幅で相関検定を行い、検定不能のときはその
ウインドウ幅を逓増させてやり直し相関検定を行うよう
にしている。このため、常に、測定環境に応じた適正の
ウインドウ幅で相関検定を行うことができる。できるだ
け狭視野角でフォトセンサアレイ上の結像を切り出すこ
とができるので、遠近混在する物体像を取り込む確率が
低くなり、測定精度の向上を図ることができる。なお、
狭視野角では鮮鋭なコントラストを含む照度パターンを
抽出する確率は低くなり、近距離の物体像を全体的に把
握し難くなるが、外光三角方式では近距離測定の精度は
高いので、相対的に問題にならない。また、部分データ
数を極力少なくできるので、相関計算処理の迅速化を図
ることができる。As described above, in the distance measuring apparatus of the present embodiment, the correlation test is performed with a narrow window width, and when the test cannot be performed, the window width is gradually increased and the correlation test is performed again. Therefore, the correlation test can always be performed with an appropriate window width according to the measurement environment. Since an image formed on the photosensor array can be cut out with a viewing angle as narrow as possible, the probability of capturing an object image that is mixed in a distance is reduced, and the measurement accuracy can be improved. In addition,
At a narrow viewing angle, the probability of extracting an illuminance pattern containing a sharp contrast is low, making it difficult to grasp the object image at a short distance as a whole. Does not matter. Further, since the number of partial data can be reduced as much as possible, the correlation calculation process can be sped up.
【0041】なお、相関検定において、左右ウインドウ
を交互シフトさせるのではなく、一方のウインドウを固
定して他方のウインドウをシフトさせるようにした片側
シフト法を用いても良い。また、左右ウインドウを内側
から外側へシフトさせるのではなく、外側から内側にシ
フトさせるようにしても良い。最初の組合せを無限遠の
測定ではなく、至近距離の測定に対応させても良い。更
に、ウインドウ幅調整法は、ウインドウを逓増させるの
ではなく、最初に幅広のウインドウ幅を初期設定し、や
り直し相関検定ではウインドウを逓減させるようにして
も良い。In the correlation test, a one-sided shift method in which one window is fixed and the other window is shifted may be used instead of alternately shifting the left and right windows. Further, instead of shifting the left and right windows from the inside to the outside, the left and right windows may be shifted from the outside to the inside. The first combination may correspond to a measurement at a close distance instead of a measurement at infinity. Further, in the window width adjusting method, instead of gradually increasing the window, a wider window width may be initially set, and the window may be gradually reduced in the redo correlation test.
【0042】〔第2実施例〕図3は本発明の第2実施例
に係る測距装置の論理部の構成を示すブロック図であ
る。本例の測距装置における論理部4′は第1実施例の
論理部4と比べると、相関検定の演算回数を間引くため
に、分周比可変分周回路90が付加されている。分周比
可変分周回路90は、ウンドウ幅拡張制御信号CWが発
生するたびに分周比1/Nが逓増し、ダウンカウンタ1
6からのキャリー信号cのカウンタ14,24への印加
を間引く。最初にウンドウ幅拡張制御信号CWが発生す
ると、分周比は1/2となり、キャリー信号cは1パル
スおきにカウンタ14,24へ加わるので、ウインドウ
幅が2倍になっても、抽出される部分データ列のデータ
数はw0 個のままであり、相関検定の演算回数は同じで
ある。このため、相関検定のやり直しではウインドウ幅
が拡張するものの、データ数の増大は抑制されているの
で、演算回数の抑制により処理時間の高速化を図ること
ができる。[Second Embodiment] FIG. 3 is a block diagram showing a configuration of a logic unit of a distance measuring apparatus according to a second embodiment of the present invention. The logic unit 4 'in the distance measuring apparatus of this embodiment is different from the logic unit 4 of the first embodiment in that a frequency division ratio variable frequency dividing circuit 90 is added in order to reduce the number of calculations of the correlation test. The dividing ratio variable dividing circuit 90 increases the dividing ratio 1 / N every time the window width extension control signal CW is generated, and the down counter 1
The application of the carry signal c from 6 to the counters 14 and 24 is thinned out. When the window width expansion control signal CW is generated first, the frequency division ratio becomes 1/2 and the carry signal c is applied to the counters 14 and 24 every other pulse, so that the carry signal c is extracted even if the window width is doubled. The number of data in the partial data string remains w 0 , and the number of calculations of the correlation test is the same. For this reason, although the window width is expanded when the correlation test is performed again, the increase in the number of data is suppressed, so that the processing time can be shortened by suppressing the number of operations.
【0043】なお、一対の結像レンズ1R , 1L 及びフ
ォトセンサアレイ2R , 2L の取付け方向は左右方向に
限定されるものでなく、上下或いは斜め方向とすること
ができる。The mounting directions of the pair of image forming lenses 1 R and 1 L and the photosensor arrays 2 R and 2 L are not limited to the left and right directions, but may be up and down or oblique directions.
【0044】[0044]
【発明の効果】以上説明したように、本発明に係る測距
装置は、部分データ列の組合せについての相関検定の有
効性を判別する検定有効判別手段と、その検定が無効の
ときウインドウ幅を逓増又は逓減させるウインドウ幅調
整手段とを備え、測定中でのウインドウ幅の最適化を達
成するようウインドウ幅が可変する点を特徴としてい
る。従って、次のような効果を奏する。As described above, the distance measuring apparatus according to the present invention comprises a test validity determination means for determining the validity of a correlation test for a combination of partial data strings, and a window width when the test is invalid. A window width adjusting means for increasing or decreasing the window width, wherein the window width is variable so as to achieve optimization of the window width during measurement. Therefore, the following effects are obtained.
【0045】 相関検定が無効でも、ウインドウ幅調
整手段によって、そのウインドウ幅を逓減又は逓増させ
てやり直し相関検定を行うようにしている。このため、
常に、測定環境に応じた適正のウインドウ幅で相関検定
を有効的に行うことができ、測定誤差を抑制することが
できる。Even if the correlation test is invalid, the window width adjusting means reduces or increases the window width, and performs the correlation test again. For this reason,
The correlation test can always be performed effectively with an appropriate window width according to the measurement environment, and the measurement error can be suppressed.
【0046】 特に、ウインドウ幅逓増手段を用いる
場合は、部分データ数を極力少なくできるので、相関計
算処理の迅速化を図ることができる。In particular, when the window width increasing means is used, the number of partial data can be reduced as much as possible, so that the correlation calculation processing can be sped up.
【0047】 また、間引き抽出手段を用いる場合に
は、相関検定のやり直しではウインドウ幅が拡張して
も、データ数の増大は抑制されているので、演算回数の
抑制により処理時間の高速化を図ることができる。When the thinning-out extraction means is used, the increase in the number of data is suppressed even if the window width is expanded by performing the correlation test again, so that the processing time is shortened by suppressing the number of calculations. be able to.
【図1】本発明の第1実施例に係る測距装置における論
理部の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of a logic unit in a distance measuring apparatus according to a first embodiment of the present invention.
【図2】同測距装置の動作を説明するためのフローチャ
ートである。FIG. 2 is a flowchart illustrating an operation of the distance measuring apparatus.
【図3】本発明の第2実施例に係る測距装置における論
理部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a logic unit in a distance measuring apparatus according to a second embodiment of the present invention.
【図4】外光三角方式の測距装置の概略構成を示すブロ
ック図である。FIG. 4 is a block diagram showing a schematic configuration of an external light triangulation type distance measuring apparatus.
【図5】(a)は外光三角方式の測距装置の測定原理を
示す説明図、(b)はその測距装置の結像位置検出方法
を示す説明図である。FIG. 5A is an explanatory diagram showing a measurement principle of the external light triangular distance measuring device, and FIG. 5B is an explanatory diagram showing an imaging position detecting method of the distance measuring device.
T…被測定物体 1R ,1L …結像レンズ 2R ,2L …フォトセンサアレイ 3R ,3L …量子化回路 4,4′…論理部 5…距離測定半導体集積回路 10…右側部分データ抽出手段 12…右側結像データ記憶部(RAM) 14…プリセット付きアップカウンタ(右側部分データ
・アドレスカウンタ) 15…オアゲート 16…プリセット付きダウンカウンタ(データ突き合わ
せ終了検出回路) 18…遅延回路 19…オアゲート 20…左側部分データ抽出手段 22…左側結像データ記憶部(RAM) 24…プリセット付きアップカウンタ(左側部分データ
・アドレスカウンタ) 30…ウインドウ移動制御手段 31…プリセット付きダウンカウンタ(右側ウインドウ
右端指定回路) 32…アップカウンタ(左側ウインドウ右端指定回路) 33…1/2分周回路 34…インバータ 40…相関検定手段 42…減算回路 44…絶対値化回路 46…加算回路 48…オアゲート 50…最大相関検出手段 52…比較回路 54…相関値レジスタ 56…アップカウンタ 58…最高組合せ番号レジスター 60…検定有効判別手段 70…ウインドウ幅調整手段 71…逓倍回路(加算回路) 72…減算回路 73,74…アンドゲート 75…ウインドウ幅拡張確認回路 75a…倍数回路 75b…比較回路 81…減算回路 82…倍数回路 83…比較回路 90…分周比可変分周回路 DR …右側結像データ列(最右端セグメントデータR0
〜最左端セグメントデータRn ) DL …左側結像データ列(最右端セグメントデータL0
〜最左端セグメントデータLn ) WR …右側ウインドウ WL …左側ウインドウ DRk…右側部分データ列(ウインドウ右端データR
n-m-k 〜ウインドウ左端データRn-k ) DLj…左側部分データ列(ウインドウ右端データLj 〜
ウインドウ左端データLm+j ) Ci …部分データの組合せ i…組合せ番号 Σ(i)…相関関数 σ…最大相関の組合せ番号 c…キャリー信号(突き合わせ終了信号) cDL…キャリー遅延信号 DT…小値検出信号 CK…クロックパルス ST…相関検定開始信号 ED…組合せ終了信号 NG…測距離不能信号 CW…ウインドウ幅拡張制御信号 wN …ウインドウ幅 w0 …初期ウインドウ幅 m…ウインドウ幅対応値 n…総セグメント数対応値。T: object to be measured 1 R , 1 L ... imaging lens 2 R , 2 L ... photosensor array 3 R , 3 L ... quantization circuit 4, 4 '... logic unit 5 ... distance measuring semiconductor integrated circuit 10 ... right part Data extraction means 12 Right image data storage unit (RAM) 14 Up counter with preset (right side data / address counter) 15 OR gate 16 Down counter with preset (data matching end detection circuit) 18 Delay circuit 19 OR gate 20 left-side partial data extraction means 22 left-side imaging data storage unit (RAM) 24 up-counter with preset (left-part data address counter) 30 window movement control means 31 down-counter with preset (right window right end designation Circuit) 32 ... Up counter (Left window right end designation circuit) 3 3 1/2 frequency divider 34 inverter 40 correlation test means 42 subtraction circuit 44 absolute value conversion circuit 46 addition circuit 48 OR gate 50 maximum correlation detection means 52 comparison circuit 54 correlation value register 56 Up counter 58 ... Highest combination number register 60 ... Test validity discriminating means 70 ... Window width adjusting means 71 ... Multiplying circuit (addition circuit) 72 ... Subtraction circuit 73,74 ... And gate 75 ... Window width expansion confirmation circuit 75a ... Multiplication circuit 75b ... comparison circuit 81 ... subtracting circuit 82 ... multiple circuits 83 ... comparator circuit 90 ... dividing ratio variable frequency dividing circuit D R ... right image data sequence (the rightmost segment data R 0
To the leftmost segment data R n ) D L ... Left-side imaging data string (rightmost segment data L 0)
~ Leftmost segment data L n) W R ... right window W L ... left window D Rk ... right partial data string (window rightmost data R
nmk ~ window left end data R nk ) D Lj ... left partial data string (window right end data L j ~
Window left end data L m + j ) C i ... combination of partial data i ... combination number Σ (i) ... correlation function σ ... combination number of maximum correlation c ... carry signal (matching end signal) c DL ... carry delay signal DT ... small value detection signal CK ... clock pulse ST ... correlation test start signal ED ... combined end signal NG ... distance measuring impossible signal CW ... window width extended control signal w n ... window width w 0 ... initial window width m ... window width corresponding value n ... Value corresponding to the total number of segments.
フロントページの続き (56)参考文献 特開 平4−113211(JP,A) 特開 平4−243491(JP,A) 特開 平6−201379(JP,A) 特開 平5−157558(JP,A) (58)調査した分野(Int.Cl.7,DB名) G01C 3/06 G06T 1/00 G08G 1/16 Continuation of the front page (56) References JP-A-4-113211 (JP, A) JP-A-4-243349 (JP, A) JP-A-6-201379 (JP, A) JP-A-5-157558 (JP) , A) (58) Fields investigated (Int. Cl. 7 , DB name) G01C 3/06 G06T 1/00 G08G 1/16
Claims (3)
対の結像光学系と、一側の結像光学系による結像の空間
1次元照度分布を電気信号列に変換する一側の光電変換
センサアレイと、他側の結像光学系による結像の空間1
次元照度分布を電気信号列に変換する他側の光電変換セ
ンサアレイと、一側の光電変換センサアレイの電気信号
列から得られる結像データ列のうち一側ウインドウ内に
含まれる一側部分データ列を抽出する一側部分データ抽
出手段と、他側の光電変換センサアレイの電気信号列か
ら得られる結像データ列のうち他側ウインドウ内に含ま
れる他側部分データ列を抽出する他側部分データ抽出手
段と、前記一側ウインドウと前記他側ウインドウの相対
位置をシフト動作するよう制御するウインドウ移動制御
手段と、前記一側部分データ列と前記他側部分データ列
の組合せに対し相関値計算を行う相関検定手段と、前記
相関検定手段から得られる相関関数を基に最大相関の部
分データ列の組合せを検出する最大相関検出手段とを有
する測距装置において、 前記部分データ列の組合せについての相関検定の有効性
を判別する検定有効判別手段と、前記検定が無効のとき
前記ウインドウ幅を逓増又は逓減させるウインドウ幅調
整手段とを備えて成ることを特徴とする測距装置。1. A method for converting a spatial one-dimensional illuminance distribution of an image formed by a pair of image forming optical systems which form a parallax between images facing a distance measurement target into an electric signal sequence. Space 1 for imaging by the photoelectric conversion sensor array on the side and the imaging optical system on the other side
A photoelectric conversion sensor array on the other side that converts a two-dimensional illuminance distribution into an electric signal sequence, and one-side partial data included in one window of an imaging data sequence obtained from the electric signal sequence of the one-side photoelectric conversion sensor array One-side partial data extracting means for extracting a column, and another-side portion for extracting the other-side partial data sequence included in the other-side window from the imaging data sequence obtained from the electric signal sequence of the other-side photoelectric conversion sensor array Data extraction means, window movement control means for controlling a shift operation of the relative position between the one side window and the other side window, and correlation value calculation for a combination of the one side partial data string and the other side partial data string And a maximum correlation detecting means for detecting a combination of partial data strings of maximum correlation based on the correlation function obtained from the correlation testing means. A test validity determining means for determining the validity of a correlation test for the combination of the partial data strings; and a window width adjusting means for gradually increasing or decreasing the window width when the test is invalid. Distance measuring device.
整手段は前記ウインドウ幅を逓増するウインドウ幅逓増
手段であること特徴とする測距装置。2. A distance measuring apparatus according to claim 1, wherein said window width adjusting means is a window width increasing means for increasing said window width.
分データ抽出手段は、前記結像データを間引き抽出する
間引き抽出手段であることを特徴とする測距装置。3. The distance measuring apparatus according to claim 1, wherein said partial data extracting means is a thinning-out extracting means for thinning out and extracting said image data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP25491395A JP3291998B2 (en) | 1995-10-02 | 1995-10-02 | Distance measuring device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP25491395A JP3291998B2 (en) | 1995-10-02 | 1995-10-02 | Distance measuring device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0996524A JPH0996524A (en) | 1997-04-08 |
JP3291998B2 true JP3291998B2 (en) | 2002-06-17 |
Family
ID=17271599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP25491395A Expired - Fee Related JP3291998B2 (en) | 1995-10-02 | 1995-10-02 | Distance measuring device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3291998B2 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11281351A (en) * | 1998-01-28 | 1999-10-15 | Fuji Electric Co Ltd | Distance measuring device |
JP4554316B2 (en) * | 2004-09-24 | 2010-09-29 | 富士重工業株式会社 | Stereo image processing device |
JP5113343B2 (en) * | 2006-04-28 | 2013-01-09 | 東京計装株式会社 | Ultrasonic flow meter |
JP5071865B2 (en) * | 2008-06-03 | 2012-11-14 | 富士フイルム株式会社 | Distance measuring device, method and program |
JP5071866B2 (en) * | 2008-06-03 | 2012-11-14 | 富士フイルム株式会社 | Distance measuring device, method and program |
-
1995
- 1995-10-02 JP JP25491395A patent/JP3291998B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH0996524A (en) | 1997-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10024966B2 (en) | Efficient implementation of distance de-aliasing for ranging systems using phase domain computation | |
JP2012103109A (en) | Stereo image processing device, stereo image processing method and program | |
KR19980018429A (en) | Distance detection method using image | |
JP3491343B2 (en) | Focus detection device and focus detection method | |
JP3291998B2 (en) | Distance measuring device | |
JPH0690357B2 (en) | Deviation amount detector | |
JP2002207156A (en) | Range-finding device for camera | |
JPH0875986A (en) | Focus detector | |
JPH0328690B2 (en) | ||
JP2676953B2 (en) | Video position detector | |
JPH06250078A (en) | Detecting device for focused state or distance of object | |
JPH10243281A (en) | Device and method for measuring distance | |
JPH10311721A (en) | Range-finding device | |
JP2001004367A (en) | Distance calculation device | |
JP2554051B2 (en) | Autofocus device | |
JP3291996B2 (en) | Distance measuring device | |
JP2707569B2 (en) | Focus detection device | |
JPH0933248A (en) | Passive triangulation-type range finder | |
JPH0531085B2 (en) | ||
JP2004117296A (en) | Distance measuring apparatus and camera provided therewith | |
JP3414500B2 (en) | Focus detection device | |
JP2005195671A (en) | Range finder | |
JP2001174694A (en) | Range-finger | |
JP3559638B2 (en) | Distance measuring device | |
JP3117389B2 (en) | Distance measuring device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080329 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090329 Year of fee payment: 7 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |