JPH11183163A - Ranging device and computer-readable storage medium - Google Patents

Ranging device and computer-readable storage medium

Info

Publication number
JPH11183163A
JPH11183163A JP35773797A JP35773797A JPH11183163A JP H11183163 A JPH11183163 A JP H11183163A JP 35773797 A JP35773797 A JP 35773797A JP 35773797 A JP35773797 A JP 35773797A JP H11183163 A JPH11183163 A JP H11183163A
Authority
JP
Japan
Prior art keywords
distance
light
light receiving
distance measurement
calculation
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.)
Withdrawn
Application number
JP35773797A
Other languages
Japanese (ja)
Inventor
Yukihiro Matsumoto
如弘 松本
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP35773797A priority Critical patent/JPH11183163A/en
Priority to US09/208,656 priority patent/US6173122B1/en
Publication of JPH11183163A publication Critical patent/JPH11183163A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Measurement Of Optical Distance (AREA)
  • Automatic Focus Adjustment (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce the range-finding time of a range finder that uses a skin CCD and measures distance by correlation operation. SOLUTION: Pulse-shaped luminous flux is applied to an object 15 from an IRED 14, the reflected light is received by sensors A16 and B17, and correlation operation is made according to each of output 18 and 19. In this case, time until the amount of accumulated charge after light is received by each of sensors A, B16 and 17 exceeds a setting value is measured, and the starting and ending values of the shift of the correlation operation are changed corresponding to the measured time.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、スキム装置を用い
て測距を行うのに用いて好適な測距装置及びこの測距装
置で用いられるコンピュータ読み取り可能な記憶媒体に
関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to a distance measuring apparatus suitable for performing distance measurement using a skim apparatus and a computer-readable storage medium used in the distance measuring apparatus.

【0002】[0002]

【従来の技術】従来より、スキム装置を用いた測距装置
が知られている。スキム装置は、複数の電荷転送チャン
ネルをループ状に繋げて循環シフトレジスタを構成した
もので、電荷転送パルスに従って光電変換された信号電
荷を循環させつつ除々に信号電荷を加算するように動作
する。例えば、特公平5−22843号公報には、電荷
転送部をリング状にして信号を積分すると同時に、外光
を除去するスキム装置が提案されている。
2. Description of the Related Art A ranging device using a skim device has been known. The skim device includes a plurality of charge transfer channels connected in a loop to form a cyclic shift register, and operates so as to gradually add signal charges while circulating signal charges that have been photoelectrically converted in accordance with charge transfer pulses. For example, Japanese Patent Publication No. 5-22843 proposes a skim device in which a charge transfer section is formed in a ring shape to integrate a signal and at the same time remove external light.

【0003】図5は、スキム装置を用いた撮像素子(以
下スキムCCDという)の概略的な構成を示す。図5に
おいて、20は受光センサで、X、Y、Zの3個の光電
変換素子で構成され、各光電変換素子は入射光量に対応
して電荷を生成する。このスキムCCDは、発光素子と
してのIRED14をパルス状に点滅させて測距対象物
15に投光し、その反射光を受光センサ20で受けて電
荷を蓄積するアクティブモードと、IRED14を発光
させず、測距対象物15からの外光の反射光を用いて電
荷を蓄積するパッシブモードとの両方式で測距ができ
る。上記アクティブの測距動作で信頼性のある測距結果
が得られない場合には、上記パッシブ動作へ移行するハ
イブリッドタイプの測距装置である。
FIG. 5 shows a schematic configuration of an image pickup device (hereinafter referred to as a skim CCD) using a skim device. In FIG. 5, reference numeral 20 denotes a light receiving sensor, which is composed of three photoelectric conversion elements of X, Y, and Z, and each photoelectric conversion element generates an electric charge corresponding to the amount of incident light. This skim CCD has an active mode in which an IRED 14 as a light emitting element is turned on and off in a pulsed manner and projected on a distance measuring object 15 and the reflected light is received by a light receiving sensor 20 to accumulate electric charges. The distance can be measured both in a passive mode in which electric charges are accumulated using reflected light of external light from the object 15 to be measured. This is a hybrid type distance measuring device that shifts to the passive operation when a reliable distance measurement result cannot be obtained by the active distance measuring operation.

【0004】受光センサ20には、22のオン画素と2
3のオフ画素の各1個づつがX、Y、Zの各光電変換素
子に対応する構成となっており、受光センサ20で蓄積
された電荷は各オン/オフ画素22、23に転送され、
その後リング21に転送される。
The light receiving sensor 20 has 22 ON pixels and 2 ON pixels.
Each of the three OFF pixels has a configuration corresponding to each of the X, Y, and Z photoelectric conversion elements, and the charges accumulated by the light receiving sensor 20 are transferred to the ON / OFF pixels 22, 23,
Thereafter, it is transferred to the ring 21.

【0005】図6は各画素22、23の電荷転送のタイ
ミングチャートを示す。蓄積時間信号のHigh(オ
ン)の期間に受光センサ20に蓄積された電荷は、オン
画素転送信号のHighに同期してオン画素22に転送
され、蓄積時間信号のLow(オフ)の期間に受光セン
サ20に蓄積された電荷は、オフ画素転送信号のHig
hに同期してオフ画素23に転送される。X、Y、Zの
各画素(光電変換素子)の蓄積電荷がそれぞれのオン、
オフ画素22、23に転送された後、リング転送信号の
Highに同期して、各画像データはリング21に転送
される。このリング転送信号は、X画素のオン画素22
同しが加算されるように同期をとって出力される。
FIG. 6 is a timing chart of the charge transfer of the pixels 22 and 23. The charge accumulated in the light receiving sensor 20 during the High (ON) period of the accumulation time signal is transferred to the ON pixel 22 in synchronization with the High of the ON pixel transfer signal, and is received during the Low (OFF) period of the accumulation time signal. The electric charge accumulated in the sensor 20 is the Hig of the off-pixel transfer signal.
The data is transferred to the off pixel 23 in synchronization with h. The accumulated charge of each pixel (photoelectric conversion element) of X, Y, Z is turned on,
After being transferred to the off pixels 22 and 23, each image data is transferred to the ring 21 in synchronization with the High of the ring transfer signal. This ring transfer signal is the ON pixel 22 of the X pixel.
It is output in synchronization so that the same is added.

【0006】尚、アクティブ測距の場合は、IRED1
4の端子は、蓄積時間信号に同期してON/OFFし、
パッシブ測距の場合は、IRED14の端子は、蓄積時
間信号に係わらずOFFのままである。また、図中の数
字1、2、3はリング回数を示し、図7のリング1回、
2回、3回に相当する。
In the case of active distance measurement, the IRED1
Terminal 4 is turned on / off in synchronization with the accumulation time signal,
In the case of passive distance measurement, the terminal of the IRED 14 remains OFF regardless of the accumulation time signal. The numbers 1, 2, and 3 in the figure indicate the number of rings, and the number of rings in FIG.
Two or three times.

【0007】図7は、リング1回での蓄積電荷量と、リ
ング回数を増やした場合に、その蓄積電荷量が加算され
ていく様子を模式的に示したものである。リング回数と
は、画素信号がリングに転送された回数を言い、リング
1回とは、蓄積された電荷がリングに1回だけ転送され
て蓄積が1回だけ行われたことを表し、リング3回と
は、蓄積を3回行い、リングには3回の蓄積で得られた
蓄積電荷の総和が保存されていることになる。このよう
に、リング1回の信号電荷が十分なレベルにない場合
は、リングを回して(蓄積回数を増やして)順次信号電
荷を加算することにより、SN比の良好な信号電荷を得
ることができる。
FIG. 7 schematically shows a state in which the accumulated charge amount in one ring and the accumulated charge amount are added when the number of rings is increased. The number of rings refers to the number of times that the pixel signal has been transferred to the ring, and the term "one ring" means that the accumulated charge has been transferred only once to the ring and has been accumulated only once. In this case, the accumulation is performed three times, and the total of the accumulated charges obtained by the three accumulations is stored in the ring. As described above, when the signal charge of one ring is not at a sufficient level, the signal charge having a good SN ratio can be obtained by turning the ring (by increasing the number of accumulations) and sequentially adding the signal charges. it can.

【0008】また、逆に受光センサ20への入射光が多
い場合には、受光センサ20の飽和を防ぐために蓄積電
荷量を調節する必要がある。その調節方法としては、電
子シャッタ機能による蓄積時間の調節や、受光センサ2
0の駆動周波数を速くすることによる蓄積時間の調節が
ある。上記電子シャッタ機能による方法では、基準の蓄
積時間を100%とすると、測距対象物が明るい場合
は、その蓄積時間を70%、50%...というように
減らしていくことにより、電荷の蓄積量を減らすことが
できる。また、上記駆動周波数を高速化する方法では、
1MHzの周波数で電荷が飽和するのであれば、蓄積条
件が同じでも周波数を2MHzにしてやることで、蓄積
時間が半分になるので蓄積量を減らすことができる。
Conversely, when the amount of light incident on the light receiving sensor 20 is large, it is necessary to adjust the amount of accumulated charges in order to prevent the light receiving sensor 20 from being saturated. As the adjustment method, adjustment of the accumulation time by the electronic shutter function, the light receiving sensor 2
There is adjustment of the accumulation time by increasing the driving frequency of 0. In the method using the electronic shutter function, assuming that the reference accumulation time is 100%, if the object to be measured is bright, the accumulation time is 70%, 50%. . . Thus, the amount of accumulated charges can be reduced. In the method of increasing the driving frequency,
If the charge is saturated at a frequency of 1 MHz, the storage time can be reduced by half by setting the frequency to 2 MHz even under the same storage condition, so that the storage amount can be reduced.

【0009】図8は従来のカメラにおけるAF(オート
フォーカス)シーケンスを表すフローチャートである。
図8において、処理(701)でAFがスタートする
と、まず、(702)でアクティブの測距モードを設定
し、(703)では現在の測距モードがアクティブ/パ
ッシブのどちらかをチェックし、アクティブなら(70
4)に進み、パッシブなら(705)に進んで、各測距
モードに応じた初期設定を行う。設定終了後(706)
に進みICGモードを実行する。この1CGモードで
は、外光によって蓄積時に受光センサ20が飽和しない
ための蓄積条件(電子シャッタの設定、駆動周波数)を
決める。
FIG. 8 is a flowchart showing an AF (autofocus) sequence in a conventional camera.
In FIG. 8, when the AF is started in the process (701), first, an active ranging mode is set in (702), and in (703), it is checked whether the current ranging mode is active / passive. Nara (70
The process proceeds to 4), and if it is passive, the process proceeds to (705) to perform initial setting according to each ranging mode. After setting (706)
To execute the ICG mode. In the 1CG mode, a storage condition (setting of electronic shutter, drive frequency) for preventing the light receiving sensor 20 from being saturated at the time of storage by external light is determined.

【0010】蓄積の設定が決まったら(707)に進
み、像信号を蓄積するが、この蓄積時のリング回数と駆
動周波数を記憶しておくことにより、蓄積に要した時間
を知ることができる。信号の蓄積が終了したら(70
8)に進んで、受光センサ20で蓄積した信号をマイコ
ンに読み込み、(709)で読み込んだ像信号から被写
体距離を求めるための測距演算を行う。この測距演算は
相関演算という2つの像信号をシフトさせながら2像が
一致するシフト量を求め、そのシフト量から被写体距離
を求める方式で、2つの受光像の相対関係が距離によっ
て変化するのを利用したものである。
When the storage setting is determined, the process proceeds to step (707) where the image signal is stored. By storing the number of rings and the driving frequency during the storage, the time required for the storage can be known. When signal accumulation is completed (70
Proceeding to 8), the signal accumulated by the light receiving sensor 20 is read into the microcomputer, and a distance measurement calculation for obtaining the subject distance from the image signal read in (709) is performed. This distance measurement operation is a method of calculating a shift amount at which two images coincide with each other while shifting two image signals called a correlation operation, and obtaining a subject distance from the shift amount. It is a thing using.

【0011】測距演算後、(710)で測距モードのチ
ェックを行い、アクティブなら(712)に進んで、測
距演算の結果、距離OKかNGかをチェックし、アクテ
ィブの測距がNGの場合は、(713)に進んで測距モ
ードをパッシブに切り換えて(703)に戻り、再度測
距を行う。アクティブの測距がOKの場合は、アクティ
ブの測距を採用し、(711)に進んでAFを終了す
る。また、(710)で測距モードがパッシブなら測距
演算で得られた測距結果を採用し、(711)に進んで
AFを終了する。
After the distance measurement calculation, the distance measurement mode is checked at (710). If the distance measurement mode is active, the process proceeds to (712). As a result of the distance measurement operation, it is checked whether the distance is OK or NG. In the case of (1), the process proceeds to (713), switches the distance measurement mode to passive, returns to (703), and performs the distance measurement again. If the active distance measurement is OK, the active distance measurement is adopted, and the process proceeds to (711) to end the AF. If the distance measurement mode is passive in (710), the distance measurement result obtained by the distance measurement calculation is adopted, and the process proceeds to (711) to end the AF.

【0012】上記相関演算の原理を図9〜11を用いて
簡単に説明する。前記2つ像信号を右像、左像とした場
合、測距対象物が測距位置から遠い場合は図9(a)の
ように左右の像がほぼ同じ位置関係で出力されるが、、
測距対象物が(b)、(c)で示すように近くなると、
左右の像のズレ量が大きくなる。
The principle of the above-described correlation calculation will be briefly described with reference to FIGS. When the two image signals are a right image and a left image, and the distance measurement target is far from the distance measurement position, the left and right images are output in substantially the same positional relationship as shown in FIG.
When the object to be measured comes close as shown in (b) and (c),
The displacement between the left and right images is increased.

【0013】図10(a)で示されるような2像が得ら
れた場合のシフト量と論理積の結果をプロットした結果
が図10(b)である。
FIG. 10B shows the result of plotting the shift amount and the result of the logical product when two images as shown in FIG. 10A are obtained.

【0014】図11は、相関演算の概略を説明するため
のフローチャートで、(901)で測距演算のための相
関演算が開始されると、(902)で画素シフトの開始
値;Msを設定し、(903)で画素シフトの終了値;
Meを設定し、(904)で必要なRAMの初期化を行
う。
FIG. 11 is a flowchart for explaining the outline of the correlation operation. When the correlation operation for the distance measurement operation is started in (901), the pixel shift start value; Ms is set in (902). And (903) the end value of the pixel shift;
Me is set, and necessary RAM initialization is performed in (904).

【0015】次に(905)で右像をMsだけシフトし
て、(906)で左右の像の論理積;Sを求める。この
時求めた論理積の結果をシフト量と一緒にプロットした
のが図10(b)に示されており、その最小値が左右の
像が一致するシフト量であるので、(907)では、そ
の左右像を論理積の最小値をSminに保存するための
比較を行い、SminよりもSが小さい場合は(90
8)に進んでSminにSの値を代入し、(909)で
その時のシフト量;Msを記憶しておく。
Next, the right image is shifted by Ms in (905), and the logical product S of the left and right images is obtained in (906). FIG. 10B is a plot of the logical product obtained at this time together with the shift amount. Since the minimum value is the shift amount at which the left and right images coincide with each other, (907): The left and right images are compared to store the minimum value of the logical product in Smin, and when S is smaller than Smin, (90
Proceeding to 8), the value of S is substituted for Smin, and the shift amount at that time; Ms is stored in (909).

【0016】(910)でシフト量Msを1インクリメ
ントし、(911)でシフト量が設定された終了値を超
えていないかをチェックし、超えていなければ(90
5)に戻って同じ演算を繰り返し、超えていれば(91
2)に進んで相関演算を終了する。この相関演算の結果
としては、(909)で保存されているMの値(左右の
像の論理積が最小になるシフト量)で、この値から被写
体距離を知ることができる。
At (910), the shift amount Ms is incremented by one, and at (911), it is checked whether the shift amount has exceeded the set end value. If not, (90)
Returning to 5), the same operation is repeated.
Proceed to 2) to end the correlation calculation. As a result of this correlation operation, the subject distance can be known from the value of M (shift amount at which the logical product of the left and right images is minimized) stored in (909).

【0017】[0017]

【発明が解決しようとする課題】上述した測距演算での
相関演算では、遠くの測距対象物ほどシフト量が小さ
く、近い測距対象物ほどシフト量が大きくなるので、近
距離から遠距離までを一律カバーするとシフトする量が
多くなるが、相関演算する前に対象物までの距離を知る
手段がないため、近距離から遠距離のすべての範囲をシ
フトさせて距離を求めなければならなかったので、それ
だけ演算時間がかかるという問題があった。
In the above-described correlation operation in the distance measurement operation, the shift amount is smaller for a farther distance measurement object, and the shift amount is larger for a closer distance measurement object. Although the amount of shift increases when covering up to uniformly, since there is no means to know the distance to the target before performing the correlation operation, the distance must be obtained by shifting the entire range from short distance to long distance Therefore, there is a problem that it takes a long calculation time.

【0018】本発明は、上記の問題を解決して測距時間
の短縮を図ることを目的としている。
An object of the present invention is to solve the above-mentioned problem and shorten the distance measurement time.

【0019】[0019]

【課題を解決するための手段】本発明による測距装置に
おいては、測距対象物に向けて投光する投光手段と、上
記測距対象物からの上記投光による反射光を受光して電
気的な受光信号に変換する一対の受光手段と、上記一対
の受光手段の受光信号に基づき所定値を用いて測距演算
を行う演算手段と、上記受光信号の信号振幅が設定値を
超えたことを検出する検出手段と、上記信号振幅が上記
設定値を超えるまでの時間を計測する計測手段と、上記
計測した時間に応じて上記測距演算の所定値を変更する
変更手段とを設けている。
In a distance measuring apparatus according to the present invention, a light projecting means for projecting light toward an object to be measured, and a light receiving means for receiving reflected light from the object to be measured from the object to be measured. A pair of light receiving means for converting to an electric light receiving signal, a calculating means for performing a distance measurement operation using a predetermined value based on the light receiving signal of the pair of light receiving means, and a signal amplitude of the light receiving signal exceeds a set value. Detecting means for detecting that the signal amplitude exceeds the set value; measuring means for measuring the time until the signal amplitude exceeds the set value; and changing means for changing a predetermined value of the distance measurement calculation according to the measured time. I have.

【0020】本発明によるコンピュータ読み取り可能な
記憶媒体においては、測距対象物に向けて投光する投光
手順と、上記測距対象物からの上記投光による反射光を
一対の受光手段で受光して電気的な受光信号に変換する
受光手順と、上記一対の受光手段の受光信号に基づぎ所
定値を用いて測距演算を行う演算手段と、上記受光信号
の信号振幅が設定値を超えたことを検出する検出手順
と、上記信号振幅が上記設定値を超えるまでの時間を計
測する計測手順と、上記計測した時間に応じて上記測距
演算の所定値を変更する変更手順と実行するためのプロ
グラムを記憶している。
In the computer-readable storage medium according to the present invention, a light projecting procedure for projecting light toward the object to be measured and a light reflected by the light emitted from the object to be measured are received by a pair of light receiving means. A light receiving procedure for converting the light receiving signal into an electrical light receiving signal; a calculating means for performing a distance measurement calculation using a predetermined value based on the light receiving signals from the pair of light receiving means; A detection procedure for detecting that the signal amplitude has exceeded, a measurement procedure for measuring a time until the signal amplitude exceeds the set value, and a change procedure and execution for changing a predetermined value of the distance measurement calculation according to the measured time. The program for performing is stored.

【0021】[0021]

【発明の実施の形態】まず、本発明の実施の形態を原理
的に説明する。本来、パッシブ測距のような測距対象物
(被写体)からの外光の反射光で、受光センサ上に像を
形成する場合は、蓄積時間から測距対象物の遠近は判ら
ないが、アクティブ測距の場合は、測距対象物に光を投
射しその反射光を用いて像を形成するので、反射光の強
弱によって信号の蓄積時間が変わってくる。つまり、信
号の蓄積時間が短い場合は、反射光が強いのであるから
測距対象物が近くにいると判断して、シフト開始値を大
きくし、信号の蓄積時間が長い場合は、反射光が弱いの
であるから測距対象物が遠くにいると判断してシフト開
始値を小さくする。本実施の形態は、アクティブ測距時
は、信号の蓄積時間の変化から測距対象物の遠近を判断
し、そのシフト量の開始と終了の値を変えることによ
り、演算時間を短縮することを特徴とする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS First, an embodiment of the present invention will be described in principle. Originally, when an image is formed on a light receiving sensor by reflected light of external light from a distance measurement target (subject) such as passive distance measurement, the distance of the distance measurement target is not known from the accumulation time, but active. In the case of distance measurement, since light is projected on a distance measurement target and an image is formed using the reflected light, the signal accumulation time varies depending on the intensity of the reflected light. In other words, if the signal accumulation time is short, the reflected light is strong, so it is determined that the object to be measured is near, the shift start value is increased, and if the signal accumulation time is long, the reflected light is strong. Since it is weak, it is determined that the object to be measured is far away, and the shift start value is reduced. In this embodiment, at the time of active ranging, the calculation time is reduced by judging the distance of the object to be measured from the change of the accumulation time of the signal and changing the start and end values of the shift amount. Features.

【0022】図1は本発明の測距装置を適用したカメラ
の構成を示すブロック図である。図1において、1は全
体を制御するMPUで、不図示のRAM、演算手段、記
憶手段を有するマイコンを含む。2はカメラの電源をO
N/OFFするためのメインスイッチ、3はカメラの電
源がON状態の場合にカメラ鏡筒(不図示)をテレ側に
駆動させるためのテレスイッチ、4はカメラの電源がO
N状態の場合に鏡筒をワイド側に駆動させるためのワイ
ドスイッチ、5はカメラの電源がON状態の場合に撮影
準備を開始する準備開始スイッチで、このスイッチがO
Nすると測光・測距等の撮影準備を行い、撮影開始スイ
ッチのONを待つ。6は準備開始スイッチ5がONして
いる状態で、ONすると測距結果に応じてレンズピント
を合わせ露光し、フィルムを巻き上げるための巻上げス
イッチである。
FIG. 1 is a block diagram showing the configuration of a camera to which the distance measuring apparatus of the present invention is applied. In FIG. 1, reference numeral 1 denotes an MPU for controlling the whole, which includes a microcomputer (not shown) having a RAM, an arithmetic unit, and a storage unit. 2 is the camera power supply
A main switch for N / OFF, a tele switch 3 for driving a camera barrel (not shown) to the tele side when the power of the camera is on, and a power switch for the camera 4
A wide switch 5 for driving the lens barrel to the wide side in the N state, and a preparation start switch 5 for starting preparation for photographing when the power of the camera is ON.
If N, preparation for photographing such as photometry and distance measurement is performed, and the photographing start switch is turned on. Reference numeral 6 denotes a winding-up switch for turning on the lens when the preparation start switch 5 is turned on.

【0023】7は撮影時の外光輝度を測定するための測
光センサであり、不図示の温度センサを含み、外光輝度
に応じた信号をMPU1に出力する。24はスキムCC
Dであり、撮影時被写体距離を測定するための測距セン
サ制御部8と測距センサ9とからなる。10はシャッタ
駆動部であり、測光センサ7によって得られた測光値を
用いてシャッタの露光時間を制御する。11は不図示の
露光終了後のフィルムを1駒分巻上げるための給送駆動
部、12はテレスイッチ3やワイドスイッチ4のONに
よって焦点距離を変えるために鏡筒を駆動するための鏡
筒駆動部、13は測距結果を用いて被写体にピントを合
わせるために不図示のレンズを駆動するためのレンズ駆
動部である。14は本発明による記憶媒体としてのRO
Mであり、MPU1の後述する図4のフローチャートに
よる処理を含むプログラムを記憶している。この記憶媒
体としては半導体メモリ、光ディスク、光磁気ディス
ク、磁気媒体等が用いられる。
Reference numeral 7 denotes a photometric sensor for measuring the external light luminance at the time of photographing, which includes a temperature sensor (not shown), and outputs a signal corresponding to the external light luminance to the MPU 1. 24 is skim CC
D, which is composed of a distance measuring sensor control unit 8 and a distance measuring sensor 9 for measuring the object distance during photographing. Reference numeral 10 denotes a shutter drive unit that controls the exposure time of the shutter using the photometric value obtained by the photometric sensor 7. Reference numeral 11 denotes a feed driving unit (not shown) for winding up one frame of the film after exposure, and reference numeral 12 denotes a lens barrel for driving a lens barrel to change a focal length by turning on a tele switch 3 or a wide switch 4. A driving unit 13 is a lens driving unit for driving a lens (not shown) to focus on a subject using the distance measurement result. 14 is an RO as a storage medium according to the present invention.
M, and stores a program including a process of the MPU 1 according to a flowchart of FIG. As the storage medium, a semiconductor memory, an optical disk, a magneto-optical disk, a magnetic medium, or the like is used.

【0024】図2は本発明の測距システムの基本的な構
成を示す。図2において、IRED14は被写体15に
光を投光する。受光センサは所定間隔で配されたAセン
サ16とBセンサ17とから成る。Aセンサ16、Bセ
ンサ17は被写体15のIRED14からの反射光、ま
たは被写体15が反射する外光を受け、その受光量に応
じて電荷量に変換する光電変換素子から成り、Aセンサ
出力、Bセンサ出力は、各センサが光電変換した場合の
像出力を18、19として模式的に示している。本実施
の形態で用いられる測距方式は、2つのセンサ出力の位
相差から三角測距の原理を用いて被写体距離を求める位
相差検出方式である。
FIG. 2 shows a basic configuration of a distance measuring system according to the present invention. In FIG. 2, the IRED 14 emits light to the subject 15. The light receiving sensor includes an A sensor 16 and a B sensor 17 arranged at a predetermined interval. The A sensor 16 and the B sensor 17 each include a photoelectric conversion element that receives reflected light of the subject 15 from the IRED 14 or external light reflected by the subject 15 and converts the light into an electric charge according to the amount of received light. The sensor outputs schematically show image outputs 18 and 19 when each sensor performs photoelectric conversion. The distance measurement method used in the present embodiment is a phase difference detection method for obtaining a subject distance from a phase difference between two sensor outputs using the principle of triangulation.

【0025】図3は、アクティブ測距時に所定の信号量
を蓄積するために要する時間とその時の測距対象物(被
写体)との距離を示したもので、距離が同じでも反射率
の違いによって蓄積時間が異なってくるが、測距対象物
が近ければ総じて蓄積時間は短くなり,遠くなれば長く
なる。
FIG. 3 shows the time required to accumulate a predetermined signal amount during active distance measurement and the distance from the object to be measured (object) at that time. Although the accumulation time differs, the accumulation time generally becomes shorter when the object to be measured is closer, and longer when the object is farther away.

【0026】図4は、相関演算の概略を説明するための
フローチャートで、前記従来例で説明した一連のAFシ
ーケンスでの測距演算について示すものである。図4に
おいて、処理(301)で測距演算のための相関演算が
開始されると、(302)で所定量の信号を蓄積するた
めに要した時間と比較値とを比べ、それよりも短いよう
なら(303)で無限距離をカバーしないような開始シ
フト量Msを設定し、(304)で至近までをカバーす
る終了シフト量をMe設定する。次に、(302)で、
蓄積時間が所定時間よりも長い場合は、(305)で無
限距離をカバーするような開始シフト量Msを設定し、
(306)では至近距離はカバーしない終了シフト量を
Me設定する。(307)では必要なRAMの初期化を
行い、(308)で右像をMsだけシフトして、(30
9)で左右の像の論理積Sを求める。
FIG. 4 is a flow chart for explaining the outline of the correlation calculation, and shows the distance measurement calculation in a series of AF sequences described in the conventional example. In FIG. 4, when the correlation calculation for the ranging calculation is started in the process (301), the time required for accumulating a predetermined amount of signal is compared with the comparison value in (302), and the time is shorter than the time. If so, (303) sets the start shift amount Ms so as not to cover the infinite distance, and (304) sets the end shift amount Me to cover the close range. Next, in (302),
If the accumulation time is longer than the predetermined time, the start shift amount Ms is set to cover the infinite distance in (305),
In (306), the end shift amount that does not cover the close distance is set to Me. In (307), necessary RAM initialization is performed, and in (308), the right image is shifted by Ms.
In step 9), the logical product S of the left and right images is obtained.

【0027】(310)ではその左右像の論理積の最小
値をSminに保存するための比較を行い、Sminよ
りもSが小さい場合は(311)に進んでSminにS
の値を代入し、(312)でその時のシフト量Msを記
憶しておく。次に(313)でシフト量を1インクリメ
ントし、(314)でシフト量が設定された終了値を超
えていないかをチェックし、超えていなければ(30
8)に戻って同じ演算を繰り返し、超えていれば(31
5)に進んで相関演算を終了する。この相関演算の結果
としては、(312)で保存されているMの値(左右の
像の論理積が最小になるシフト量)で、この値から被写
体距離を知ることができる。
At (310), a comparison is made to store the minimum value of the logical product of the left and right images in Smin. If S is smaller than Smin, the process proceeds to (311) and Smin is added to Smin.
And the shift amount Ms at that time is stored in (312). Next, the shift amount is incremented by one in (313), and it is checked in (314) whether the shift amount has exceeded the set end value. If not, (30)
Return to 8) and repeat the same operation.
Proceed to 5) to end the correlation calculation. As a result of the correlation operation, the subject distance can be known from the value of M (shift amount at which the logical product of the left and right images is minimized) stored in (312).

【0028】[0028]

【発明の効果】以上のように本発明によれば、測距時に
信号が所定量蓄積されるまでの時間から測距対象物まで
の距離がある程度判るので、それを利用して相関演算等
の測距演算に用いられる時のシフト量等の所定値を適宜
変更するようにしたので、無駄な相関演算を省くことが
でき、これによって測距能力を損なうことなく、測距時
間の短縮を図ることができる。
As described above, according to the present invention, the distance to the object to be measured can be determined to some extent from the time until the signal is accumulated by a predetermined amount at the time of distance measurement. Since the predetermined value such as the shift amount used in the distance measurement calculation is appropriately changed, unnecessary correlation calculation can be omitted, thereby shortening the distance measurement time without impairing the distance measurement capability. be able to.

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

【図1】本発明による測距装置を適用したカメラの実施
の形態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a camera to which a distance measuring device according to the present invention is applied.

【図2】本発明による測距システムの構成図である。FIG. 2 is a configuration diagram of a distance measuring system according to the present invention.

【図3】所定の信号量を蓄積するまでの被写体距離と蓄
積時間との関係を示す特性図である。
FIG. 3 is a characteristic diagram illustrating a relationship between a subject distance and a storage time until a predetermined signal amount is stored.

【図4】本発明による相関演算のシーケンスを説明する
フローチャートである。
FIG. 4 is a flowchart illustrating a sequence of a correlation operation according to the present invention.

【図5】スキムCCDの原理を説明する構成図である。FIG. 5 is a configuration diagram illustrating the principle of a skim CCD.

【図6】スキムCCDの動作を示すタイミングチャート
である。
FIG. 6 is a timing chart showing the operation of the skim CCD.

【図7】受光センサの蓄積電荷量を説明する特性図であ
る。
FIG. 7 is a characteristic diagram illustrating the amount of charge stored in the light receiving sensor.

【図8】従来例と本発明の測距動作の概略を説明するフ
ローチャートである。
FIG. 8 is a flowchart illustrating an outline of a distance measuring operation according to a conventional example and the present invention.

【図9】遠距離、中距離、近距離における被写体の像波
形を示す波形図である。
FIG. 9 is a waveform diagram showing an image waveform of a subject at a long distance, a medium distance, and a short distance.

【図10】相関演算を説明するための擬似波形及び像を
シフトさせた時の論理積演算の結果を示す波形図であ
る。
FIG. 10 is a waveform diagram illustrating a pseudo waveform for explaining a correlation operation and a result of an AND operation when an image is shifted.

【図11】従来例の相関演算のシーケンスを説明するフ
ローチャートである。
FIG. 11 is a flowchart illustrating a sequence of a correlation operation according to a conventional example.

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

1 MPU 7 測光センサ 8 測距制御部 9 測距センサ 14 IRED 15 被写体 16 Aセンサ 17 Bセンサ 18 Aセンサ出力 19 Bセンサ出力 1 MPU 7 Photometry sensor 8 Distance measurement control unit 9 Distance measurement sensor 14 IRED 15 Subject 16 A sensor 17 B sensor 18 A sensor output 19 B sensor output

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 測距対象物に向けて投光する投光手段
と、 上記測距対象物からの上記投光による反射光を受光して
電気的な受光信号に変換する一対の受光手段と、 上記一対の受光手段の受光信号に基づき所定値を用いて
測距演算を行う演算手段と、 上記受光信号の信号振幅が設定値を超えたことを検出す
る検出手段と、 上記信号振幅が上記設定値を超えるまでの時間を計測す
る計測手段と、 上記計測した時間に応じて上記測距演算の所定値を変更
する変更手段とを設けたことを特徴とする測距装置。
1. A light projecting means for projecting light toward a distance measuring object, and a pair of light receiving means for receiving reflected light from the light projecting from the distance measuring object and converting the reflected light into an electric light receiving signal. Calculating means for performing a distance measurement operation using a predetermined value based on the light receiving signals of the pair of light receiving means; detecting means for detecting that the signal amplitude of the light receiving signal exceeds a set value; A distance measuring device, comprising: a measuring means for measuring a time until a set value is exceeded; and a changing means for changing a predetermined value of the distance measurement calculation according to the measured time.
【請求項2】 上記測距演算は相関演算であることを特
徴とする請求項1記載の測距装置。
2. The distance measuring apparatus according to claim 1, wherein said distance measuring operation is a correlation operation.
【請求項3】 上記測距演算の所定値とは、上記相関演
算のシフト終了値であることを特徴とする請求項2記載
の測距装置。
3. The distance measuring apparatus according to claim 2, wherein the predetermined value of the distance calculation is a shift end value of the correlation operation.
【請求項4】 上記測距演算の所定値とは、上記相関演
算のシフト開始値と終了値であることを特徴とする請求
項2記載の測距装置。
4. The distance measuring apparatus according to claim 2, wherein the predetermined value of the distance calculation is a shift start value and an end value of the correlation calculation.
【請求項5】 測距対象物に向けて投光する投光手順
と、 上記測距対象物からの上記投光による反射光を一対の受
光手段で受光して電気的な受光信号に変換する受光手順
と、 上記一対の受光手段の受光信号に基づぎ所定値を用いて
測距演算を行う演算手段と、 上記受光信号の信号振幅が設定値を超えたことを検出す
る検出手順と、 上記信号振幅が上記設定値を超えるまでの時間を計測す
る計測手順と、 上記計測した時間に応じて上記測距演算の所定値を変更
する変更手順と実行するためのプログラムを記憶したコ
ンピュータ読み取り可能な記憶媒体。
5. A light-projecting procedure for projecting light toward a distance-measuring object, and light reflected by the light-emitting from the distance-measuring object is received by a pair of light receiving means and converted into an electric light receiving signal. Light receiving procedure, calculating means for performing distance measurement calculation using a predetermined value based on the light receiving signals of the pair of light receiving means, and detecting procedure for detecting that the signal amplitude of the light receiving signal exceeds a set value, A computer readable program stored with a measurement procedure for measuring a time until the signal amplitude exceeds the set value, a change procedure for changing a predetermined value of the distance measurement calculation according to the measured time, and a program for executing the change procedure Storage media.
【請求項6】 上記測距演算は相関演算であることを特
徴とする請求項5記載のコンピュータ読み取り可能な記
憶媒体。
6. The computer-readable storage medium according to claim 5, wherein said distance measurement operation is a correlation operation.
【請求項7】 上記測距演算の所定値とは、上記相関演
算のシフト終了値であることを特徴とする請求項6記載
のコンピュータ読み取り可能な記憶媒体。
7. The computer-readable storage medium according to claim 6, wherein the predetermined value of the distance measurement operation is a shift end value of the correlation operation.
【請求項8】 上記測距演算の所定値とは、上記相関演
算のシフト開始値と終了値とであることを特徴とする請
求項6記載のコンピュータ読み取り可能な記憶媒体。
8. The computer-readable storage medium according to claim 6, wherein the predetermined value of the distance calculation is a shift start value and an end value of the correlation calculation.
JP35773797A 1997-12-16 1997-12-25 Ranging device and computer-readable storage medium Withdrawn JPH11183163A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP35773797A JPH11183163A (en) 1997-12-25 1997-12-25 Ranging device and computer-readable storage medium
US09/208,656 US6173122B1 (en) 1997-12-16 1998-12-10 Distance measuring apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35773797A JPH11183163A (en) 1997-12-25 1997-12-25 Ranging device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
JPH11183163A true JPH11183163A (en) 1999-07-09

Family

ID=18455665

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35773797A Withdrawn JPH11183163A (en) 1997-12-16 1997-12-25 Ranging device and computer-readable storage medium

Country Status (1)

Country Link
JP (1) JPH11183163A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003050120A (en) * 2001-08-06 2003-02-21 Seiko Precision Inc Distance-measuring apparatus and seat apparatus using the same
JPWO2016151918A1 (en) * 2015-03-26 2018-01-11 富士フイルム株式会社 Distance image acquisition device and distance image acquisition method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003050120A (en) * 2001-08-06 2003-02-21 Seiko Precision Inc Distance-measuring apparatus and seat apparatus using the same
JPWO2016151918A1 (en) * 2015-03-26 2018-01-11 富士フイルム株式会社 Distance image acquisition device and distance image acquisition method
US10908288B2 (en) 2015-03-26 2021-02-02 Fujifilm Corporation Distance image acquisition apparatus and distance image acquisition method

Similar Documents

Publication Publication Date Title
JP3779247B2 (en) Imaging device
US7664385B2 (en) Image capture device and associated method of compensating backlash
US20040183939A1 (en) Camera having AF function
US9210346B2 (en) Focus detection sensor and optical apparatus using the same
JP2002244027A (en) Range-finding device
JPH10229516A (en) Electronic still camera
US6173122B1 (en) Distance measuring apparatus and method
JP6045231B2 (en) FOCUS ADJUSTMENT DEVICE, IMAGING DEVICE, AND IMAGING DEVICE CONTROL METHOD
JP5676335B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
US5963308A (en) Distance measuring apparatus
US6614509B2 (en) Distance measuring apparatus
US5721977A (en) Distance measuring apparatus of camera improved in measuring process
JPH11183163A (en) Ranging device and computer-readable storage medium
JP2001305422A (en) Range finder
JP2010200138A (en) Photographic subject tracking device
US10091410B2 (en) Focus detection apparatus and method, and image capturing apparatus
JP2002206923A (en) Range finder
JPH1183474A (en) Distance measuring device
JP2004069953A (en) camera
JP3530669B2 (en) Distance measuring device
JPH03158812A (en) Automatic focusing device
JP2753891B2 (en) Auto focus camera
JP2007027830A (en) Electronic camera
JPH11211466A (en) Distance measuring device, photographing device, control method, and storage medium
JP4928236B2 (en) Imaging apparatus and imaging system

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20041221

Free format text: JAPANESE INTERMEDIATE CODE: A621

A761 Written withdrawal of application

Effective date: 20060405

Free format text: JAPANESE INTERMEDIATE CODE: A761