JP2001154083A - Range finder - Google Patents

Range finder

Info

Publication number
JP2001154083A
JP2001154083A JP33417299A JP33417299A JP2001154083A JP 2001154083 A JP2001154083 A JP 2001154083A JP 33417299 A JP33417299 A JP 33417299A JP 33417299 A JP33417299 A JP 33417299A JP 2001154083 A JP2001154083 A JP 2001154083A
Authority
JP
Japan
Prior art keywords
value
distance
distance measurement
measurement value
reliability
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.)
Granted
Application number
JP33417299A
Other languages
Japanese (ja)
Other versions
JP4512173B2 (en
Inventor
Naohito Nakahara
尚人 中原
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.)
Pentax Corp
Original Assignee
Asahi Kogaku Kogyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Asahi Kogaku Kogyo Co Ltd filed Critical Asahi Kogaku Kogyo Co Ltd
Priority to JP33417299A priority Critical patent/JP4512173B2/en
Publication of JP2001154083A publication Critical patent/JP2001154083A/en
Application granted granted Critical
Publication of JP4512173B2 publication Critical patent/JP4512173B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a range finder capable of improving the range finding accuracy. SOLUTION: This range finder is provided with a range finding sensor 36 for finding a range in plural range finding areas, and a range finding calculation is executed by a CPU 21, based on a pair of range finding data obtained by the range finding sensor 36, and first the effectiveness of the obtained range finding value is determined. Next, the range finding value at the closest range is detected out of the effective range finding values, and the range finding value of the highest reliability is selected from among the detected value on the closest range side and the range finding value on the long range side whose difference from the range finding value on the closest range side is smaller than a prescribed value.

Description

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

【0001】[0001]

【発明の技術分野】本発明は、複数の測距エリアについ
て測距可能な測距装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distance measuring apparatus capable of measuring a plurality of distance measuring areas.

【0002】[0002]

【従来技術およびその問題点】近年では、複数の測距エ
リアについて測距可能な測距装置が種々開発されてお
り、このような測距装置を備えたカメラでは、複数の測
距エリアから自動的または手動で選択した測距エリアの
測距値に基づいて被写体に合焦させ撮影を行っている。
使用者がカメラに測距エリアを自動的に選択させるとき
には、測距エリア内に存在する被写体の中で使用者の所
望する被写体が最もカメラの近くに存在していることを
前提として、求めた測距値の有効性を判断し、有効な測
距値の中で最も近距離側の測距値を選択させているもの
もある。しかし、使用者の所望する被写体が必ずしも最
も近距離側の測距値が得られた測距エリアに含まれると
は限らないため、所望する被写体からピントがずれてし
まうことがあった。
2. Description of the Related Art In recent years, various types of distance measuring devices capable of measuring distances in a plurality of distance measuring areas have been developed. Focusing is performed on the subject based on the distance measurement value of the distance measurement area selected manually or manually, and shooting is performed.
When the user causes the camera to automatically select the ranging area, the determination is made on the assumption that the object desired by the user is present closest to the camera among the objects existing in the ranging area. In some cases, the validity of the measured distance value is determined, and the closest measured distance value is selected from the effective measured distance values. However, the subject desired by the user is not always included in the ranging area where the closest ranging value is obtained, so that the desired subject may be out of focus.

【0003】[0003]

【発明の目的】本発明は、測距精度を向上させることが
できる測距装置を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a distance measuring apparatus capable of improving the distance measuring accuracy.

【0004】[0004]

【発明の概要】上記問題点を解決するために、本発明
は、複数の測距エリアについて測距値する測距手段と、
前記測距手段が測距した測距値の有効性を判断し、有効
と判断した測距値の信頼性を求める信頼性測定手段と、
該信頼性測定手段が有効と判断した測距値の中で最も近
距離側の測距値と、該最も近距離側の測距値との差が所
定値よりも小さい遠距離側の測距値の中から、最も信頼
性の高い測距値を選択する選択手段とを有することに特
徴を有する。また、本発明は、前記所定値を前記最も近
距離側の測距値の被写体の距離に応じて変更する構成と
することもできる。前記測距手段は、前記複数の測距エ
リア内の被写体の像をそれぞれ一対のラインセンサの対
応する受光領域に投影して該各一対の受光領域から画素
単位で出力するセンサ手段と、前記一対の受光領域の一
方の受光領域から出力された信号と他方の受光領域から
出力された信号の画素毎の差分の絶対値の総和を求める
演算を、前記一方の受光領域から出力された信号を基準
として他方の受光領域から出力された信号を画素単位で
ずらしながら実行して、該ずらし量と前記総和に関する
相関関数を求め、さらに該相関関数の値が画素単位で最
小となる第1の値と2番目に小さい第2の値を求め、該
第1の値と該第2の値を挟む第3の値と第4の値を求
め、該第1の値及び該第1の値に近い第3の値を通る第
1の直線と該第2の値及び該第2の値に近い第4の値を
通る第2の直線の交点を求め、該交点に対応するずらし
量から前記各測距エリア内の被写体の像の間隔を求め、
該像の間隔に基づいて被写体の距離を演算する演算手段
とを備えていることが望ましく、また前記信頼性測定手
段は、前記演算手段が前記測距値を検出するために設定
した2直線の傾きの急峻度を求め、該急峻度に基づいて
信頼性を判断することが望ましい。なお、2直線の傾き
の急峻度とは、言い替えれば、前記演算手段が前記像の
間隔を検出するために設定した2直線のなす角度の小さ
さのことで、該角度が小さい程急峻であり、前記信頼性
測定手段は、2直線の傾きの平均値が急峻であるほど信
頼性が高いと判断する。上記の構成によれば、より信頼
性の高い測距値を得ることができ、測距精度の向上を図
ることができる。
SUMMARY OF THE INVENTION In order to solve the above problems, the present invention provides a distance measuring means for measuring distances for a plurality of distance measuring areas,
The reliability measuring means for determining the validity of the measured distance value measured by the distance measuring means, and determining the reliability of the measured distance value determined to be effective,
Among the distance measurement values determined by the reliability measurement means to be effective, a difference between the closest distance measurement value and the closest distance measurement value is smaller than a predetermined value. Selecting means for selecting the most reliable distance measurement value from the values. Further, the present invention may be configured such that the predetermined value is changed in accordance with the distance to the subject having the closest distance measurement value. The distance measuring unit projects the images of the objects in the plurality of distance measuring areas onto the corresponding light receiving areas of the pair of line sensors, and outputs the image in pixel units from the pair of light receiving areas. The calculation for obtaining the sum of the absolute values of the differences between the signals output from one of the light receiving areas and the signal output from the other light receiving area for each pixel is performed based on the signal output from the one light receiving area. As described above, the signal output from the other light receiving area is executed while being shifted in pixel units, a correlation function relating to the shift amount and the sum is obtained, and further, a first value in which the value of the correlation function is minimized in pixel units A second value that is the second smallest is obtained, a third value and a fourth value sandwiching the first value and the second value are obtained, and a first value and a fourth value that are close to the first value are obtained. 3 to the first straight line passing through the second value and the second value. Seeking have intersection of the second straight line passing through the fourth value, determine the spacing of the image of the subject of the respective distance measuring area from a shift amount corresponding to the intersection point,
It is preferable that the reliability measuring means includes a calculating means for calculating the distance to the subject based on the interval between the images, and the reliability measuring means includes two straight lines set by the calculating means to detect the distance measurement value. It is desirable to determine the steepness of the slope and determine reliability based on the steepness. The steepness of the inclination of the two straight lines is, in other words, a small angle between the two straight lines set by the arithmetic means to detect the interval between the images. The smaller the angle, the steeper the angle. The reliability measuring means determines that the steeper the average value of the slopes of the two straight lines, the higher the reliability. According to the above configuration, a more reliable ranging value can be obtained, and the ranging accuracy can be improved.

【0005】[0005]

【発明の実施の形態】以下図面に基づいて本発明を説明
する。図1〜図3は、本発明を適用したレンズシャッタ
式カメラの一実施の形態を示す外観図である。このレン
ズシャッタ式カメラのカメラボディ1は、図1に示すよ
うに、正面にズームレンズ2を備え、その上方には、A
F用補助投光窓3、パッシブAF受光窓4、ファインダ
窓5、測光窓6を備えている。なお、これらの窓3〜6
の後方カメラボディ1内には、図示しないが公知のよう
に、AF用補助光源、測距センサ、ファインダ光学系、
測光センサがそれぞれ配置されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. 1 to 3 are external views showing an embodiment of a lens shutter camera to which the present invention is applied. As shown in FIG. 1, a camera body 1 of this lens shutter camera includes a zoom lens 2 on the front, and an A
An auxiliary light projecting window 3 for F, a passive AF light receiving window 4, a finder window 5, and a photometric window 6 are provided. In addition, these windows 3-6
In the rear camera body 1, an AF auxiliary light source, a distance measurement sensor, a finder optical system,
Photometric sensors are arranged respectively.

【0006】カメラボディ1の上飾り板7には、レリー
ズボタン8が設けられている。レリーズボタン8は、測
光スイッチSWS及びレリーズスイッチSWRと連動し
ていて、半押しで測光スイッチSWSがオンし、全押し
でレリーズスイッチSWRがオンする。カメラボディ1
の背面には、その中央部に電源をオン/オフするメイン
スイッチレバー10が設けられ、その上部にテレ側また
はワイド側に倒すとズームレンズ2をテレ方向またはワ
イド方向にズーミングできるズームレンズレバー9が設
けられている。このズームレンズレバー9は、テレスイ
ッチSWT及びワイドスイッチSWWと連動していて、
ズームレンズレバー9がテレ側に倒されるとテレスイッ
チSWTがオンし、ワイド側に倒されるとワイドスイッ
チSWWがオンする。また、カメラボディ1の背面の接
眼窓12近傍には点灯または点滅により測距結果を報知
する緑ランプ11が設けられている。
A release button 8 is provided on the upper decorative plate 7 of the camera body 1. The release button 8 is linked with the photometry switch SWS and the release switch SWR. The photometry switch SWS is turned on when the release button 8 is half-pressed, and the release switch SWR is turned on when fully pressed. Camera body 1
A main switch lever 10 for turning on / off the power is provided at the center of the rear surface of the zoom lens. Is provided. The zoom lens lever 9 is linked with the tele switch SWT and the wide switch SWW,
When the zoom lens lever 9 is tilted to the tele side, the tele switch SWT is turned on, and when the zoom lens lever 9 is tilted to the wide side, the wide switch SWW is turned on. In addition, a green lamp 11 is provided near the eyepiece window 12 on the back of the camera body 1 to notify the result of distance measurement by lighting or blinking.

【0007】次に、カメラボディ1の制御系の構成につ
いて、図4に示したブロック図を参照してより詳細に説
明する。CPU21は、カメラの機能に関するプログラ
ム等が書き込まれたROM及び制御用または演算用の各
種パラメータなどを一時的に記憶するRAMを内蔵して
おり、カメラボディ1の動作を総括的に制御する制御手
段として機能するほかに、信頼性測定手段、選択手段、
変更手段としての機能も有する。
Next, the configuration of the control system of the camera body 1 will be described in more detail with reference to the block diagram shown in FIG. The CPU 21 has a built-in ROM in which programs related to the functions of the camera are written and a RAM in which various parameters for control or calculation are temporarily stored, and a control means for generally controlling the operation of the camera body 1. In addition to functioning as a reliability measure,
It also has a function as changing means.

【0008】CPU21には、スイッチ類として、メイ
ンスイッチレバー10に連動するメインスイッチSW
M、ズームレンズレバー9に連動するテレスイッチSW
T及びワイドスイッチSWW、レリーズボタン8に連動
する測光スイッチSWS及びレリーズスイッチSWRが
接続されている。メインスイッチレバー10がオン操作
されてメインスイッチSWMがオンすると、CPU21
は、電池23を電源として、各入出力ポートに接続され
ている周辺回路に電力供給を開始し、操作されたスイッ
チに応じた処理を実行する。ズームレバー9に連動する
テレスイッチSWTまたはワイドスイッチSWWがオン
すると、CPU21はズームレンズ駆動回路29を介し
てズームモータ30を駆動させ、ズームレンズ2をテレ
ズームまたはワイドズームさせる。ズームモータ30
は、電源オフ時にはズームレンズ2のレンズ鏡筒がカメ
ラボディ1の外観内に収まる収納位置まで駆動し、電源
オン時にはズームレンズ2がワイド端位置に移動するま
で駆動する。ズームレンズ2の焦点距離は、ズームコー
ド入力回路43によって検知される。
The CPU 21 includes, as switches, a main switch SW interlocked with the main switch lever 10.
M, tele switch SW linked to zoom lens lever 9
T, the wide switch SWW, and the photometric switch SWS and the release switch SWR linked to the release button 8 are connected. When the main switch SWM is turned on by turning on the main switch lever 10, the CPU 21
Starts power supply to a peripheral circuit connected to each input / output port using the battery 23 as a power supply, and executes a process corresponding to the operated switch. When the tele switch SWT or the wide switch SWW linked to the zoom lever 9 is turned on, the CPU 21 drives the zoom motor 30 via the zoom lens drive circuit 29 to cause the zoom lens 2 to perform tele zoom or wide zoom. Zoom motor 30
When the power is off, the lens barrel of the zoom lens 2 is driven to a storage position where the lens barrel fits within the external appearance of the camera body 1, and when the power is on, the zoom lens 2 is driven until the zoom lens 2 moves to the wide end position. The focal length of the zoom lens 2 is detected by a zoom code input circuit 43.

【0009】レリーズボタン8が半押しされて測光スイ
ッチSWSがオンすると、先ず、CPU21は測光回路
37を介して被写体輝度を求める。測光回路37は、図
示しない測光センサを備えていて、測光窓6から入射し
た被写体光を測光センサで受光し、被写体輝度に応じた
測光信号をCPU21に出力する回路である。CPU2
1は、求めた被写体輝度及びDXコード入力回路45を
介して入力したISO感度などに基づいて適正シャッタ
速度及び適正絞り値を演算する。DXコード入力回路4
5は、カメラボディ1に装填されたフィルムのパトロー
ネに書き込まれたDXコードを読み込み、ISO感度、
撮影枚数などの情報をCPU21に出力する回路であ
る。
When the release button 8 is half-pressed and the photometric switch SWS is turned on, first, the CPU 21 obtains the subject brightness via the photometric circuit 37. The photometric circuit 37 is provided with a photometric sensor (not shown), receives the subject light incident from the photometric window 6 with the photometric sensor, and outputs a photometric signal corresponding to the subject brightness to the CPU 21. CPU2
1 calculates an appropriate shutter speed and an appropriate aperture value based on the obtained subject luminance and the ISO sensitivity input via the DX code input circuit 45, and the like. DX code input circuit 4
5 reads the DX code written in the patrone of the film loaded in the camera body 1,
This is a circuit that outputs information such as the number of shots to the CPU 21.

【0010】そして、CPU21は、測距回路35から
測距データを入力し、入力した測距データに基づいて測
距演算を実行して測距値を求め、後述する所定条件を満
たす測距値を選択できたときは、フォーカスモータ32
のフォーカシングレンズ駆動量を算出し、フォーカス駆
動回路31を介して駆動するとともに、緑ランプ11を
点灯させる。所定条件を満たす測距値を選択できなかっ
たときは、緑ランプ11を点滅させて測距エラーを報知
し、使用者に注意を促す。
The CPU 21 receives the distance measurement data from the distance measurement circuit 35, executes a distance measurement operation based on the input distance measurement data, obtains a distance measurement value, and obtains a distance measurement value satisfying a predetermined condition described later. Can be selected, the focus motor 32
Is driven through the focus drive circuit 31, and the green lamp 11 is turned on. When a distance measurement value that satisfies the predetermined condition cannot be selected, the green lamp 11 is blinked to notify a distance measurement error and alert the user.

【0011】測距回路35は、各測距エリアに含まれる
被写体の焦点状態を検出する回路であり、被写体光束を
受光し電気的な測距データに変換して出力する測距セン
サ36を有している。この測距センサ36は、図5に示
すように、被写体光束を一対のセパレータレンズ(結像
レンズ)36aによって分割して、Aセンサ及びBセン
サからなる一対のラインセンサ36b上で受光する。一
対のセパレータレンズ36aは、被写体距離に応じた間
隔で一対の被写体像をラインセンサ36b上に形成し、
ラインセンサ36bは、詳細は図示しないが、多数の光
電変換素子(受光素子)を有し、各光電変換素子が被写
体光束を受光して光電変換し、光電変換した電荷を積分
(蓄積)して、積分した電荷を画素単位の信号(測距デ
ータ)として順番に出力する。また、測距回路35は、
被写体輝度に応じてラインセンサ36bの積分時間をコ
ントロールするモニタセンサ(図示せず)を備えてい
る。CPU21は、モニタセンサの出力を検知して、ラ
インセンサ36bの積分時間、つまり積分終了をコント
ロールする。本実施形態では、撮影画面に対応させて5
個の測距エリアE[0]〜E[4]を設定してある。C
PU21は、各測距エリア内E[0]〜E[4]の被写
体の像が形成される一対のラインセンサ36a、36b
の各受光領域e[0]〜e[4]から出力される測距デ
ータに基づいて被写体像の間隔を求め、さらに被写体の
距離を求めている。図7に、5個の測距エリアE[0]
〜E[4]と一方のラインセンサの受光領域e[0]〜
e[4]との関係を示した。
The distance measuring circuit 35 is a circuit for detecting the focus state of the object included in each of the distance measuring areas, and has a distance measuring sensor 36 for receiving the light beam of the object, converting the light into electrical distance measurement data, and outputting the data. are doing. As shown in FIG. 5, the distance measuring sensor 36 divides the subject light beam by a pair of separator lenses (imaging lenses) 36a and receives the light on a pair of line sensors 36b including an A sensor and a B sensor. The pair of separator lenses 36a form a pair of subject images on the line sensor 36b at intervals according to the subject distance,
Although not shown in detail, the line sensor 36b has a large number of photoelectric conversion elements (light receiving elements). Each of the photoelectric conversion elements receives a subject luminous flux, performs photoelectric conversion, and integrates (accumulates) the photoelectrically converted charge. , And sequentially outputs the integrated charges as a signal (distance measurement data) for each pixel. The distance measuring circuit 35
A monitor sensor (not shown) that controls the integration time of the line sensor 36b according to the subject brightness is provided. The CPU 21 detects the output of the monitor sensor and controls the integration time of the line sensor 36b, that is, the integration end. In the present embodiment, 5
The distance measuring areas E [0] to E [4] are set. C
The PU 21 includes a pair of line sensors 36a and 36b on which images of the subjects E [0] to E [4] are formed in each ranging area.
The distance between the subject images is obtained based on the distance measurement data output from each of the light receiving areas e [0] to e [4], and the distance to the subject is obtained. FIG. 7 shows five distance measurement areas E [0].
E [4] and the light receiving area e [0] of one of the line sensors
The relationship with e [4] was shown.

【0012】AF補助投光回路39は、被写体輝度が低
いとき、または被写体のコントラストが低いとCPU2
1が判断したときに、CPU21の制御下で被写体に向
けてコントラストパターンを照射する回路である。
When the brightness of the subject is low, or when the contrast of the subject is low, the AF auxiliary
1 is a circuit for irradiating a contrast pattern toward a subject under the control of the CPU 21 when it is determined.

【0013】レリーズボタン8が全押しされてレリーズ
スイッチSWRがオンすると、CPU21は、算出した
適正絞り値に基づいて絞り制御回路25を作動させてズ
ームレンズ2の絞りを絞り込み、シャッタ速度に基づい
てシャッタ制御回路33を介してシャッタモータ34を
駆動させて露出する。露出が終了すると、CPU21は
フィルム給送信号入力回路41によりフィルム給送信号
を入力し、フィルム給送回路27を介してフィルム給送
モータ28を作動させてフィルムを1コマ分巻き上げる
が、フィルム残量がないときは、フィルム給送回路27
を介してフィルム給送モータ28を作動させてフィルム
の巻戻しを行う。
When the release button 8 is fully depressed and the release switch SWR is turned on, the CPU 21 operates the aperture control circuit 25 based on the calculated appropriate aperture value to narrow down the aperture of the zoom lens 2 and based on the shutter speed. A shutter motor 34 is driven via a shutter control circuit 33 to expose the image. When the exposure is completed, the CPU 21 inputs a film feed signal through the film feed signal input circuit 41 and operates the film feed motor 28 via the film feed circuit 27 to wind up the film by one frame. When there is no amount, the film feeding circuit 27
, The film feed motor 28 is operated to rewind the film.

【0014】以上は、本カメラの主要部材であるが、本
カメラは、セルフタイマ動作を表示するセルフランプ、
CPU21の制御下でストロボを発光させるストロボ装
置、各種情報を表示するLCD表示パネルなど、公知の
部材を備えている。
The main components of the camera have been described above. The camera has a self-lamp for displaying a self-timer operation,
A known device such as a flash device for emitting a flash under the control of the CPU 21 and an LCD display panel for displaying various information is provided.

【0015】図6には、CPU21が測距処理で測距値
を選択する概要を示してある。図において、縦軸は測距
値の信頼度を、横軸は被写体の距離を表している。CP
U21は、各測距エリアE[0]〜E[4]の各測距デ
ータに基づき測距演算を実行して測距値SE[0]〜S
E[4]を求めるとともに、その有効性及び信頼性を判
断する。有効性及び信頼性の判断についての詳細は後述
するが、図6では、CPU21が信頼性なしと判断する
信頼性のデフォルト範囲を斜線部で表してあり、求めた
測距値SE[0]〜SE[4]を丸印で表してある。
FIG. 6 shows an outline in which the CPU 21 selects a distance measurement value in the distance measurement processing. In the figure, the vertical axis represents the reliability of the distance measurement value, and the horizontal axis represents the distance to the subject. CP
U21 performs a distance measurement operation based on each distance measurement data of each of the distance measurement areas E [0] to E [4], and performs a distance measurement value SE [0] to S.
E [4] is determined, and its validity and reliability are determined. Although details of the determination of the validity and the reliability will be described later, in FIG. 6, a default range of the reliability in which the CPU 21 determines that there is no reliability is indicated by hatched portions, and the obtained distance measurement values SE [0] to SE [4] is represented by a circle.

【0016】次にCPU21は、最も近距離側の測距値
(以下、「最近距離測距値」という。)を検出する。本
実施形態では、各測距エリアに対応する受光領域上に結
像した被写体像の像間隔を検出し、その像間隔を測距値
としている。したがって、測距値は、近距離側ほど大き
な値になるので、CPU21は最も値の大きい測距値を
最近距離測距値として検出する。図6では、測距値SE
[2]が最近距離測距値として検出される。最近距離測
距値を検出すると、次にCPU21は、最近距離測距値
が得られた被写体よりも遠方に位置する被写体の測距値
であるが、その差が所定値Lよりも小さい範囲(以下、
「近距離範囲」という。)に含まれる測距値を検出す
る。図6では、近距離範囲は網掛部で示される。
Next, the CPU 21 detects a distance measurement value on the closest distance side (hereinafter, referred to as a "nearest distance measurement value"). In the present embodiment, the image interval of the subject image formed on the light receiving area corresponding to each distance measurement area is detected, and the image interval is used as a distance measurement value. Therefore, since the distance measurement value becomes larger as the distance becomes shorter, the CPU 21 detects the largest distance measurement value as the closest distance measurement value. In FIG. 6, the distance measurement value SE is shown.
[2] is detected as the closest distance measurement value. When the latest distance measurement value is detected, the CPU 21 next determines the distance measurement value of the subject located farther than the subject for which the latest distance measurement value has been obtained, but the difference is smaller than the predetermined value L ( Less than,
It is called "short distance range". ) Is detected. In FIG. 6, the short distance range is indicated by a shaded portion.

【0017】そしてCPU21は、この近距離範囲内で
最も信頼性が高い測距値を選択する。図6(a)では、
近距離範囲内に測距値SE[2]しか含まれないので測
距値SE[2](図中;黒丸)を選択する。図6(b)
では、近距離範囲内に測距値SE[2]と測距値SE
[1]の2点が含まれる。この場合、測距値SE[2]
は最近測距値ではあるが、より信頼性の高い測距値SE
[1](図中;黒丸)を選択する。被写体が複数存在す
る場合に、使用者の所望する被写体が必ずしもカメラに
対して最も近距離側に位置しているとは限らないので、
近距離側で最も信頼性の高い測距値を選択し、測距精度
を向上させるためである。なお、所定値Lを一定とする
と、最近距離測距値が小さい場合、つまり被写体の距離
が遠い場合には、近距離範囲が広くなり過ぎる。これを
防ぐため、本実施形態では、最近距離測距値の被写体の
距離に応じて所定値Lを変更する構成とし、近距離範囲
を制限している。
Then, the CPU 21 selects the most reliable distance measurement value within the short distance range. In FIG. 6A,
Since only the distance measurement value SE [2] is included in the short distance range, the distance measurement value SE [2] (black circle in the figure) is selected. FIG. 6 (b)
Now, the distance measurement value SE [2] and the distance measurement value SE
The two points of [1] are included. In this case, the distance measurement value SE [2]
Is a recent ranging value, but a more reliable ranging value SE
Select [1] (in the figure; black circle). When there are a plurality of subjects, the subject desired by the user is not always located closest to the camera, so that
This is for selecting the most reliable distance measurement value on the short distance side and improving the distance measurement accuracy. If the predetermined value L is constant, the short distance range becomes too wide when the latest distance measurement value is small, that is, when the distance to the subject is long. In order to prevent this, in the present embodiment, the predetermined value L is changed in accordance with the subject distance of the closest distance measurement value, and the short distance range is limited.

【0018】次に、測距演算及び測距値の有効性・信頼
性の判断について説明する。CPU21は、先ず、一対
の測距データに基づいて相関関数f(N)を求める。相
関関数f(N)は、ラインセンサ36bのAセンサデー
タとBセンサデータを重ね合わせて各画素データ毎の差
分の絶対値の総和(これを「相関値」という。)を求め
る演算を、Aセンサデータを基準としてBセンサデータ
を1画素分ずつずらしながら実行することにより得られ
る関数であり、このずらし量と相関値に関する関数であ
る。CPU21は、この相関関数f(N)の極小値を検
出し、この極小値をとるときのAセンサデータに対する
Bセンサデータのずらし量、即ち像間隔を測距値として
検出する。なお、この相関関数f(N)からはラインセ
ンサ36bの光電変換素子単位でしか相関値を求めるこ
とができないため、通常は、さらに、得られた相関関数
f(N)に基づいて補間計算を実行し、より精度の高い
極小値を求める。図8には、相関関数f(N)から補間
計算により極小値を求める概要を示してある。補間計算
では、光電変換素子単位で相関値が最小となる第1の点
(x1,y1)と相関値が2番目に小さい第2の点(x
2,y2)の2点を求め、さらに、求めた2点(x1,
y1)、(x2,y2)を挟む第3の点(x0,y0)
と第4の点(x3,y3)を求め、この合計4点を使っ
て、極小値を求める。即ち、第1の点(x1,y1)及
びこの第1の点(x1,y1)に近い第3の点(x0,
y0)を通る第1の直線と第2の点(x2,y2)及び
この第2の点に近い第4の点(x3,y3)を通る第2
の直線の交点(x,y)を求め、この交点のX座標を像
間隔、即ち測距値として求めている。また、補間計算で
は、この2直線の傾きD1、D2を求めている。なお、
図において、X座標はAセンサデータとBセンサデータ
のずらし量(間隔)、Y座標は差分の絶対値の総和(相
関値)を示している。
Next, a description will be given of the calculation of the distance measurement and the determination of the validity / reliability of the distance measurement value. First, the CPU 21 obtains a correlation function f (N) based on a pair of distance measurement data. The correlation function f (N) is obtained by superimposing the A sensor data and the B sensor data of the line sensor 36b to obtain the sum of the absolute values of the differences for each pixel data (this is referred to as “correlation value”). This is a function obtained by executing the B sensor data while shifting it by one pixel on the basis of the sensor data, and is a function relating to the shift amount and the correlation value. The CPU 21 detects the minimum value of the correlation function f (N), and detects the shift amount of the B sensor data with respect to the A sensor data when the minimum value is obtained, that is, detects the image interval as the distance measurement value. Since a correlation value can be obtained from the correlation function f (N) only for each photoelectric conversion element of the line sensor 36b, interpolation calculation is usually further performed based on the obtained correlation function f (N). Execute to find a more accurate minimum value. FIG. 8 shows an outline of obtaining a minimum value by interpolation calculation from the correlation function f (N). In the interpolation calculation, the first point (x1, y1) at which the correlation value is the smallest for each photoelectric conversion element and the second point (x
2, y2), and further, the obtained two points (x1,
y1), a third point (x0, y0) sandwiching (x2, y2)
And a fourth point (x3, y3), and a minimum value is determined using the total of the four points. That is, the first point (x1, y1) and the third point (x0, y1) close to the first point (x1, y1)
y0), a first straight line passing through a second point (x2, y2) and a second point passing through a fourth point (x3, y3) close to the second point.
The intersection (x, y) of this straight line is obtained, and the X coordinate of this intersection is obtained as the image interval, that is, the distance measurement value. In the interpolation calculation, the slopes D1 and D2 of these two straight lines are obtained. In addition,
In the figure, the X coordinate indicates the shift amount (interval) between the A sensor data and the B sensor data, and the Y coordinate indicates the total sum (correlation value) of the absolute values of the differences.

【0019】測距値が求められると、CPU21は、先
ず、各測距値の有効性を判断する。測距値が有効である
か否かは、相関関数f(N)の極小値の数、相関関数f
(N)の極小値の大きさに基づいて判断される。CPU
21が有効でないと判断する場合としては、例えば、相
関関数f(N)の極小値が2つ以上存在する場合や極小
値の値が予め設定されている所定値よりも大きかった場
合等である。次に、CPU21は、有効と判断した各測
距値の信頼性を判断する。測距値の信頼性の高さは、補
間計算(図8)で求めた2直線の傾きの絶対値(以下、
「相関関数f(N)の傾き」という。)D1、D2に基
づいて判断される。相関関数f(N)の傾きD1、D2
は以下により求められる。 D1=|(y1−y0)/(x1−x0)| D2=|(y3−y2)/(x3−x2)| CPU21は、この傾きD1、D2を平均した値が大き
いほど測距値の信頼性は高いと判断する。なお、信頼性
の判断は、求めた極小値の大小比較などに行っても良い
が、本実施形態のように相関関数f(N)の傾きの急峻
度に基づいて判断したほうが検出精度の点で優れてお
り、望ましい。
When the distance measurement values are obtained, the CPU 21 first determines the validity of each distance measurement value. Whether the distance measurement value is valid or not is determined by the number of the minimum values of the correlation function f (N), the correlation function f
The determination is made based on the magnitude of the minimum value of (N). CPU
The case where it is determined that 21 is not valid is, for example, a case where there are two or more minimum values of the correlation function f (N) or a case where the value of the minimum value is larger than a predetermined value. . Next, the CPU 21 determines the reliability of each distance measurement value determined to be valid. The reliability of the distance measurement value is determined by the absolute value of the slope of the two straight lines obtained by the interpolation calculation (FIG. 8).
This is referred to as “the slope of the correlation function f (N)”. ) It is determined based on D1 and D2. Slope D1, D2 of correlation function f (N)
Is determined by: D1 = | (y1-y0) / (x1-x0) | D2 = | (y3-y2) / (x3-x2) | The CPU 21 increases the reliability of the distance measurement value as the average value of the slopes D1 and D2 increases. Judgment is high. Note that the reliability may be determined by comparing the obtained minimum values with each other. However, the determination based on the steepness of the slope of the correlation function f (N) as in the present embodiment improves the detection accuracy. Excellent and desirable.

【0020】次に、カメラボディ1の動作について、図
9〜図15に示したフローチャートを参照してより詳細
に説明する。図9は、撮影処理に関するフローチャート
であり、この処理は測光スイッチSWSがオンされたと
きに実行される。この処理に入ると先ず、測光処理を実
行して被写体輝度を求め、測距処理を実行して測距値を
求める(S11、S13)。測距処理は、詳細は後述す
るが、各測距エリアの測距データから測距値を演算し、
各測距値から所定条件を満たす測距値を選択し、選択し
た測距値に基づいて図示しないフォーカシングレンズを
移動させる処理である。
Next, the operation of the camera body 1 will be described in more detail with reference to the flowcharts shown in FIGS. FIG. 9 is a flowchart relating to the photographing process, which is executed when the photometric switch SWS is turned on. When this process is started, first, a photometric process is executed to obtain a subject luminance, and a distance measuring process is executed to obtain a distance measurement value (S11, S13). The details of the ranging process will be described later, but the ranging value is calculated from the ranging data of each ranging area,
This is a process of selecting a ranging value satisfying a predetermined condition from each ranging value, and moving a focusing lens (not shown) based on the selected ranging value.

【0021】測距処理後、測距エラーフラグがセットさ
れているかどうかをチェックする(S15)。測距エラ
ーフラグがセットされているとき、つまり測距処理で所
定条件を満たす測距値を選択できなかったときは、使用
者に注意を促すため緑ランプ11を点滅し、AE演算処
理を実行して適正シャッタ速度及び絞り値を設定する
(S15;Y、S19、S21)。測距エラーフラグが
クリアされているときは、緑ランプ11を点灯してAE
演算処理を実行する(S15;N、S17、S21)。
After the distance measurement process, it is checked whether a distance measurement error flag is set (S15). When the distance measurement error flag is set, that is, when a distance measurement value satisfying a predetermined condition cannot be selected in the distance measurement processing, the green lamp 11 blinks to call the user's attention, and the AE calculation processing is executed. To set an appropriate shutter speed and aperture value (S15; Y, S19, S21). When the distance measurement error flag is cleared, the green lamp 11 is turned on and the AE
The arithmetic processing is executed (S15; N, S17, S21).

【0022】そして、測光スイッチSWSがオンしてい
るかどうかをチェックする(S23)。測光スイッチS
WSがオンしていないときは、そのままリターンする
(S23;N)。測光スイッチSWSがオンしていると
きは、レリーズスイッチSWRがオンしているかどうか
をチェックする(S23;Y、S25)。レリーズスイ
ッチSWRがオンしていないときは、S23へ戻り、レ
リーズ指令待機状態となる(S25;N、S23)。レ
リーズスイッチSWRがオンしているときは、緑ランプ
11を消灯し、算出した適正絞り値に基づいて絞り制御
回路25を作動させてズームレンズ2の絞りを絞り込
み、適正シャッタ速度に基づいてシャッタ制御回路33
を介してシャッタモータ34を駆動させて露出する露出
制御処理を実行する(S25;Y、S27、S29)。
露出制御処理終了後は、フィルム給送回路27を介して
フィルム給送モータ28を作動させてフィルムを1コマ
分巻き上げるが、フィルム残量がない場合は、フィルム
をすべて巻戻しリターンする(S31)。
Then, it is checked whether the photometric switch SWS is on (S23). Photometric switch S
If the WS is not on, the process returns (S23; N). If the photometric switch SWS is on, it is checked whether the release switch SWR is on (S23; Y, S25). If the release switch SWR is not turned on, the process returns to S23, and enters a release command standby state (S25; N, S23). When the release switch SWR is ON, the green lamp 11 is turned off, the aperture control circuit 25 is operated based on the calculated appropriate aperture value, the aperture of the zoom lens 2 is reduced, and the shutter control is performed based on the appropriate shutter speed. Circuit 33
(S25; Y, S27, S29).
After the exposure control process is completed, the film feed motor 28 is operated via the film feed circuit 27 to wind up the film by one frame. If there is no remaining film, the entire film is rewound and returned (S31). .

【0023】S13で実行される測距処理について図1
0に示されるフローチャートを参照してより詳細に説明
する。この処理に入ると先ず、S11で求めた被写体輝
度が所定値以上かどうかをチェックする(S51)。被
写体輝度が所定値よりも低かったときは、AF用補助投
光装置39を介して補助光を所定間隔で所定時間発光さ
せて(S51;Y、S53)、被写体輝度が所定値以上
であったときは補助光を発光させずに(S51;N)、
ラインセンサ36bのAセンサ及びBセンサが被写体光
を受光し光電変換して積分した積分値を、Aセンサデー
タ及びBセンサデータとして入力する(S55)。
FIG. 1 shows the distance measuring process executed in S13.
This will be described in more detail with reference to the flowchart shown in FIG. In this process, first, it is checked whether or not the subject luminance obtained in S11 is equal to or more than a predetermined value (S51). When the subject brightness is lower than the predetermined value, auxiliary light is emitted at predetermined intervals via the AF auxiliary light emitting device 39 for a predetermined time (S51; Y, S53), and the subject brightness is equal to or higher than the predetermined value. Sometimes, the auxiliary light is not emitted (S51; N),
The integral values obtained by the A sensor and the B sensor of the line sensor 36b receiving the subject light, photoelectrically converting and integrating the subject light are input as the A sensor data and the B sensor data (S55).

【0024】CPU21は、入力したAセンサデータ及
びBセンサデータに基づき相関関数f(N)を算出して
測距値を求める測距演算を実行する(S57)。測距値
が求まると、次に測距値選択処理を実行する(S5
9)。測距値選択処理では、詳細は後述するが、求めた
測距値の中から、近距離範囲内で最も信頼性の高い測距
値を検出して選択する処理である。
The CPU 21 calculates a correlation function f (N) based on the input A-sensor data and B-sensor data to execute a distance measurement operation for obtaining a distance measurement value (S57). When the distance measurement value is obtained, a distance measurement value selection process is executed next (S5).
9). Although the details will be described later, the ranging value selection process is a process of detecting and selecting the most reliable ranging value within a short distance range from the determined ranging values.

【0025】測距値選択処理(S59)を実行した結
果、近距離範囲内で最も信頼性の高い測距値を選択でき
たときは、測距エラーフラグをクリアし、選択した測距
値からLLデータ(フォーカスモータ30を駆動させる
パルス数)を算出し、求めたLLデータに基づきフォー
カスモータ30を駆動させ、図示しないフォーカシング
レンズを合焦位置まで移動させるレンズ駆動処理を実行
してリターンする(S61;Y、S63、S65、S6
7)。測距値を選択できなかったときは、測距エラーフ
ラグをセットしてリターンする(S61;N、S6
9)。
As a result of executing the ranging value selection processing (S59), if the most reliable ranging value within the short range can be selected, the ranging error flag is cleared and the selected ranging value is used. LL data (the number of pulses for driving the focus motor 30) is calculated, the focus motor 30 is driven based on the obtained LL data, a lens driving process for moving a focusing lens (not shown) to a focusing position is executed, and the process returns ( S61; Y, S63, S65, S6
7). If a distance measurement value cannot be selected, a distance measurement error flag is set and the routine returns (S61; N, S6).
9).

【0026】S59で実行される測距値選択処理につい
て図11に示されるフローチャート及び図6(b)を参
照してより詳細に説明する。この処理では、先ず求めた
測距値から有効と判断する有効測距値を抽出し、次に求
めた有効測距値の中から最近距離測距値を検出し、そし
て検出した最近距離測距値と所定の近距離範囲内に含ま
れる測距値の中で信頼性が最も高い測距値を選択する。
The ranging value selection processing executed in S59 will be described in more detail with reference to the flowchart shown in FIG. 11 and FIG. 6B. In this processing, first, an effective ranging value determined to be valid is extracted from the obtained ranging values, a nearest distance ranging value is detected from the determined effective ranging values, and the detected nearest ranging value is detected. The most reliable distance measurement value is selected from the value and the distance measurement values included in the predetermined short distance range.

【0027】この処理に入ると、変数i及び変数jに初
期値0を設定して(S101)、有効測距値抽出ループ
処理を実行する。ただし、変数iは、測距値レジスタS
Eにメモリされている測距値のアドレス番号で、変数j
は有効測距値レジスタSにメモリした測距値の総数であ
る。
In this process, an initial value 0 is set for the variables i and j (S101), and an effective distance measurement value extraction loop process is executed. However, the variable i is the distance value register S
The address number of the distance measurement value stored in E
Is the total number of distance measurement values stored in the effective distance measurement value register S.

【0028】このループ処理に入ると先ず、測距値レジ
スタSEにメモリされているi番目の測距値SE[i]
が有効かどうかをチェックする(S103)。CPU2
1は、測距値を得た相関関数f(N)の極小値が2つ以
上存在する場合、極小値が所定値よりも大きい場合等に
有効でないと判断する(図6参照)。測距値SE[i]
が有効であると判断したときは、有効測距値レジスタS
に測距値SE[i]をメモリし、変数jに1加算して、
S107に進む(S103;Y、S105)。測距値S
E[i]を有効でないと判断したときは(S103;
N)、S105をスキップしてS107に進む。そし
て、変数iに1加算して(S107)、変数iが変数k
より小さいかどうかをチェックする(S109)。変数
kは、測距エリアの総数である。なお、本実施形態では
5個の測距エリアを有するので、変数kには、5がメモ
リされる。変数iが変数kより小さいときは、次の測距
値SE[i]をチェックするために、S103へ戻り、
上記処理を繰り返す(S109;Y、S103)。この
処理により、求めた測距値の中から有効測距値のみを抽
出できる。図6(b)の場合では、測距値SE[0]〜
SE[3]の4個が有効であると判断され、測距値SE
[0]〜SE[3]は有効測距値S[0]〜S[3]と
してメモリされる。また、このとき変数jには有効と判
断された測距値の総数4がメモリされている。
When entering this loop processing, first, the i-th distance value SE [i] stored in the distance value register SE.
Is checked (S103). CPU2
1 determines that the correlation function f (N) is not valid when there are two or more minimum values of the correlation function f (N) from which the distance measurement value is obtained, or when the minimum value is larger than a predetermined value (see FIG. 6). Distance value SE [i]
Is valid, the effective distance value register S
Is stored in the memory, and 1 is added to the variable j.
The process proceeds to S107 (S103; Y, S105). Distance value S
When it is determined that E [i] is not valid (S103;
N), skip S105 and proceed to S107. Then, 1 is added to the variable i (S107), and the variable i is changed to the variable k.
It is checked whether it is smaller than (S109). The variable k is the total number of distance measurement areas. In this embodiment, since five distance measurement areas are provided, 5 is stored in the variable k. If the variable i is smaller than the variable k, the process returns to S103 to check the next distance value SE [i],
The above processing is repeated (S109; Y, S103). By this processing, only the effective distance measurement value can be extracted from the obtained distance measurement values. In the case of FIG. 6B, the distance measurement values SE [0] to
Four of SE [3] are determined to be valid, and the distance measurement value SE is determined.
[0] to SE [3] are stored as effective distance measurement values S [0] to S [3]. At this time, the total number 4 of the distance measurement values determined to be valid is stored in the variable j.

【0029】変数iが変数k以上になったとき、本実施
形態では変数iが5になったときは、メモリされている
全ての測距値について上記のチェックを行ったので、次
に変数jが0であるかどうかをチェックする(S10
9;N、S111)。変数jが0であったときは(S1
11;Y)、有効測距値レジスタSにはなにもメモリさ
れていないので、リターンする。この場合、リターン後
にS61でEf測距値なしと判断される。変数jが0で
なかったときは、次に変数jが1であるかどうかをチェ
ックする(S111;N、S113)。変数jが1であ
ったときは、有効測距値レジスタSにメモリされている
のは有効測距値S[0]だけなので、最近距離測距値s
dataに有効測距値S[0]をメモリしてリターンす
る(S113;Y、S115)。この場合、リターン後
のS61でEf測距値ありと判断される。
When the variable i becomes equal to or larger than the variable k, and when the variable i becomes 5 in the present embodiment, the above check is performed for all the distance measurement values stored in the memory. Is checked to see if it is 0 (S10
9; N, S111). When the variable j is 0 (S1
11; Y), since nothing is stored in the effective distance measurement value register S, the process returns. In this case, it is determined that there is no Ef distance measurement value in S61 after the return. If the variable j is not 0, it is checked whether the variable j is 1 (S111; N, S113). When the variable j is 1, only the effective distance measurement value S [0] is stored in the effective distance measurement value register S.
The effective distance measurement value S [0] is stored in data, and the process returns (S113; Y, S115). In this case, it is determined that the Ef distance measurement value exists in S61 after the return.

【0030】変数jが1でなかったときは(S113;
N)、有効測距値レジスタSにメモリした測距値SE
[i]が2つ以上あるので、その中から最も近距離側の
測距値;最近距離測距値sdataを選択するため、最
近距離測距値sdataに先ず有効測距値S[0]をメ
モリし、変数hに1を設定し、変数dirに0を設定し
て(S117)、最近距離測距値検出ループ処理を実行
する。ただし、変数hは有効測距値レジスタSのアドレ
ス番号、変数dirは最近距離測距値sdataにメモ
リした有効測距値S[h]のアドレス番号であり、変数
jは有効測距値レジスタSにメモリされている測距値の
総数である。なお本実施形態では、ラインセンサ36b
上の像間隔を測距値として検出しているため、近距離側
の測距値ほど大きな値をとる。
When the variable j is not 1 (S113;
N), the distance measurement value SE stored in the effective distance measurement value register S
Since there are two or more [i], the effective distance value S [0] is first set to the nearest distance value sdata in order to select the nearest distance value sdata from the closest distance value. The memory is set, the variable h is set to 1, the variable dir is set to 0 (S117), and the closest distance measurement value detection loop processing is executed. However, the variable h is the address number of the effective distance value register S, the variable dir is the address number of the effective distance value S [h] stored in the latest distance value sdata, and the variable j is the effective distance value register S Is the total number of distance measurement values stored in the memory. In the present embodiment, the line sensor 36b
Since the upper image interval is detected as a distance measurement value, the distance measurement value on the short distance side has a larger value.

【0031】このループ処理に入ると先ず、最近距離測
距値sdataの値が有効測距値レジスタSのアドレス
番号hにメモリされている有効測距値S[h]の値より
小さいかどうかをチェックする(S119)。最近距離
測距値sdataが有効測距値S[h]より小さいとき
は(S119;Y)、より近距離側の測距値を検出する
ため最近距離測距値sdataに有効測距値S[h]を
上書きし、最近距離測距値sdataにメモリしてある
有効測距値S[h]を識別できるように変数dirにこ
のときの変数hをメモリして(S121)、S123へ
進む。最近距離測距値sdataが有効測距値S[h]
以上であるときは(S119;N)、最近距離測距値s
dataのほうが近距離側なので、S121をスキップ
してS123へ進む。そして、変数hに1加算し(S1
23)、変数hが変数jより小さいかどうかをチェック
する(S125)。変数hが変数jよりも小さいとき
は、S119のチェックを実行していない有効測距値S
[h]があるので、S119に戻る(S125;Y)。
この処理により、最も値の大きい有効測距値を最近距離
測距値sdataとして最終的に検出することができ
る。図6(b)の場合では、有効測距値S[2](測距
値SE[2])が最近距離測距値sdataとしてメモ
リされ、変数dirにはこのアドレス番号2がメモリさ
れる。
In this loop processing, first, it is determined whether or not the value of the latest distance measurement value sdata is smaller than the value of the effective distance measurement value S [h] stored in the address number h of the effective distance measurement value register S. Check (S119). When the latest distance measurement value sdata is smaller than the effective distance measurement value S [h] (S119; Y), the effective distance measurement value S [ h] is overwritten, the variable h is stored in the variable dir so that the effective distance measurement value S [h] stored in the latest distance measurement value sdata can be identified (S121), and the process proceeds to S123. The latest distance measurement value sdata is the effective distance measurement value S [h].
If it is equal to or greater than (S119; N), the nearest distance measurement value s
Since data is on the short distance side, S121 is skipped and the process proceeds to S123. Then, 1 is added to the variable h (S1
23) It is checked whether the variable h is smaller than the variable j (S125). When the variable h is smaller than the variable j, the effective distance measurement value S for which the check in S119 is not performed is performed.
Since there is [h], the process returns to S119 (S125; Y).
By this processing, the effective distance measurement value having the largest value can be finally detected as the latest distance measurement value sdata. In the case of FIG. 6B, the effective distance measurement value S [2] (the distance measurement value SE [2]) is stored as the nearest distance measurement value sdata, and the address number 2 is stored in the variable dir.

【0032】そして変数hが変数j以上となったとき
は、変数hを0にセットしなおし、近距離範囲設定処理
を実行する(S125;N、S127、S129)。近
距離範囲設定処理は、図12に示すように、最近距離測
距値sdataの値の大きさ、すなわち被写体の距離に
応じて近距離範囲を規制する所定値Lを設定して、近距
離範囲が広くなり過ぎないように制限する処理である。
なお、本実施形態では最近距離測距値sdataを3つ
の距離範囲に分割し、近距離側の範囲に含まれる測距値
ほど所定値Lが大きい値をとるように設定してある。図
12では、最近距離測距値sdataの距離範囲を設定
する定数A、B、所定値Lを設定する定数a、b、cの
大小関係をA<B、0<a<b<cとしている。
When the variable h is equal to or larger than the variable j, the variable h is reset to 0, and the short distance range setting process is executed (S125; N, S127, S129). As shown in FIG. 12, the short distance range setting process sets a predetermined value L that regulates the short distance range according to the magnitude of the value of the latest distance measurement value sdata, that is, the distance to the subject. Is a process for restricting the value from becoming too wide.
In the present embodiment, the nearest distance measurement value sdata is divided into three distance ranges, and the predetermined value L is set to be larger as the distance measurement value included in the range on the short distance side. In FIG. 12, A <B, 0 <a <b <c, where A <B and 0 <a <b <c, constants A and B for setting the distance range of the latest distance measurement value sdata, and constants a, b and c for setting the predetermined value L. .

【0033】この処理に入ると先ず、最近距離測距値s
dataの値が定数Aより小さいかどうかをチェックす
る(S201)。最近距離測距値sdataが定数Aよ
り小さいときは、最近距離測距値sdataがやや遠距
離側なので、所定値Lに1番小さい定数aを設定してリ
ターンする(S201;Y、S203)。最近距離測距
値sdataが定数A以上であるときは、次に定数Bよ
り小さいかどうかをチェックする(S205)。最近距
離測距値sdataが定数Bより小さいときは、最近距
離測距値sdataが比較的近距離側なので、所定値L
に定数bを設定してリターンする(S205;Y、S2
07)。最近距離測距値sdataが定数B以上である
ときは、最近距離測距値sdataはより近距離側なの
で、所定値Lに1番大きい定数cを設定してリターンす
る(S205;N、S209)。
When entering this process, first, the nearest distance measurement value s
It is checked whether the value of data is smaller than the constant A (S201). When the latest distance measurement value sdata is smaller than the constant A, since the latest distance measurement value sdata is slightly longer, the smallest constant a is set to the predetermined value L and the process returns (S201; Y, S203). If the latest distance measurement value sdata is equal to or larger than the constant A, it is checked whether it is smaller than the constant B (S205). When the latest distance measurement value sdata is smaller than the constant B, since the latest distance measurement value sdata is relatively short, the predetermined value L
Is set to a constant b, and the process returns (S205; Y, S2
07). If the latest distance measurement value sdata is equal to or larger than the constant B, the closest distance measurement value sdata is closer to the short distance, so the largest constant c is set to the predetermined value L and the process returns (S205; N, S209). .

【0034】そして、Ef測距値検出ループ処理に入る
と、先ず、変数dirと変数hが一致しているかどうか
をチェックする(S131)。変数dirと変数hが一
致しているときは、最近距離測距値sdataとしてメ
モリされている有効測距値とS133またはS137で
比較する有効測距値S[h]が同じなので、S133〜
S139をスキップしてS141に進む(S131;
Y)。変数dirと変数hが一致していないときは(S
131;N)、最近距離測距値sdataと有効測距値
S[h]の差がS129で設定した所定値Lよりも小さ
いかどうかをチェックする(S133)。最近距離測距
値sdataと有効測距値S[h]の差が所定値L以上
であったときは(S133;N)、有効測距値S[h]
は近距離範囲内に含まれていないので、S135〜S1
39をスキップしてそのままS141に進む。最近距離
測距値sdataと有効測距値S[h]の差が所定値L
より小さいときは(S133;Y)、有効測距値S
[h]は近距離範囲内に含まれているので、次に最近距
離測距値sdataと有効測距値S[h]の信頼性の高
さを判断するため、信頼性演算処理を実行する(S13
5)。
When entering the Ef distance detection value detection loop processing, first, it is checked whether or not the variable dir and the variable h match (S131). When the variable dir and the variable h match, the effective distance value S [h] to be compared in S133 or S137 is the same as the effective distance value stored as the latest distance value sdata.
Skip to S139 and proceed to S141 (S131;
Y). When the variable dir and the variable h do not match (S
131; N), it is checked whether or not the difference between the latest distance measurement value sdata and the effective distance measurement value S [h] is smaller than the predetermined value L set in S129 (S133). When the difference between the latest distance measurement value sdata and the effective distance measurement value S [h] is equal to or greater than the predetermined value L (S133; N), the effective distance measurement value S [h].
Are not included in the short distance range, so that S135 to S1
The process skips 39 and proceeds directly to S141. The difference between the latest distance measurement value sdata and the effective distance measurement value S [h] is a predetermined value L
If smaller (S133; Y), the effective distance value S
Since [h] is included in the short distance range, a reliability calculation process is executed next to determine the high reliability of the latest distance measurement value sdata and the effective distance measurement value S [h]. (S13
5).

【0035】信頼性演算処理では、図13に示すよう
に、最近距離測距値sdataを得た測距エリアの相関
関数fs(N)において、相関関数fs(N)の傾きD
s1,Ds2の平均値dsを求める(S301)。ま
た、有効測距値S[h]を得た測距エリアの相関関数f
h(N)において、相関関数fh(N)の傾きDh1,
Dh2の平均値dhを求める(S302)(図8参
照)。なお、相関関数fs(N)またはfh(N)の傾
きの平均値dsまたはdhは、その値が大きいほど、信
頼性が高いということができる。
In the reliability calculation processing, as shown in FIG. 13, in the correlation function fs (N) of the ranging area where the latest distance measurement value sdata is obtained, the slope D of the correlation function fs (N) is obtained.
An average value ds of s1 and Ds2 is obtained (S301). Further, the correlation function f of the ranging area where the effective ranging value S [h] is obtained.
h (N), the slope Dh1, of the correlation function fh (N)
An average value dh of Dh2 is obtained (S302) (see FIG. 8). The average value ds or dh of the slope of the correlation function fs (N) or fh (N) can be said to have higher reliability as the average value ds or dh increases.

【0036】そして、有効測距値S[h]の信頼性dh
が最近距離測距値sdataの信頼性dsより高いかど
うかをチェックする(S137)。有効測距値S[h]
の信頼性dhが最近距離測距値sdataの信頼性ds
よりも高かったときは、より信頼性の高い測距値を得る
ため、最近距離測距値sdataに有効測距値S[h]
を上書きしてS141に進む(S137;Y、S13
9)。有効測距値S[h]の信頼性dhが最近距離測距
値sdataの信頼性ds以下であったときは、S13
9をスキップしてそのままS141に進む(S137;
N)。
Then, the reliability dh of the effective distance measurement value S [h] is obtained.
Is higher than the reliability ds of the latest distance measurement value sdata (S137). Effective distance value S [h]
Is the reliability ds of the nearest distance measurement value sdata
If it is higher than the effective distance value S [h], the latest distance value sdata is added to obtain a more reliable distance value.
And the process proceeds to S141 (S137; Y, S13
9). When the reliability dh of the effective distance measurement value S [h] is equal to or less than the reliability ds of the latest distance measurement value sdata, S13.
Skip to step S141 and proceed directly to step S141 (S137;
N).

【0037】そして、変数hに1加算し(S141)、
変数hが変数jより小さいかどうかをチェックする(S
143)。変数hが変数jより小さいときは、S133
またはS137のチェックを実行していない有効測距値
S[h]があるので、S129へ戻り、上記の処理を繰
り返す(S143;Y、S129)。そして、変数hが
変数j以上となったときは、リターンする(S143;
N)。この場合、リターン後のS61でEf測距値あり
と判断される。図6(b)の場合では、近距離範囲内に
最近距離測距値sdata(測距値SE[2])のほか
に有効測距値S[1](測距値SE[1])が含まれる
ので、より信頼性の高い有効測距値S[1]が最近距離
測距値sdataとして上書きメモリされ、この有効測
距値S[1]が最終的に選択される。
Then, 1 is added to the variable h (S141).
Check whether variable h is smaller than variable j (S
143). If the variable h is smaller than the variable j, S133
Alternatively, since there is an effective distance measurement value S [h] for which the check in S137 has not been performed, the process returns to S129, and the above processing is repeated (S143; Y, S129). When the variable h is equal to or larger than the variable j, the process returns (S143;
N). In this case, it is determined that the Ef distance measurement value exists in S61 after the return. In the case of FIG. 6B, the effective distance value S [1] (the distance value SE [1]) in addition to the latest distance value sdata (the distance value SE [2]) in the short distance range. Since it is included, the more reliable effective distance value S [1] is overwritten and stored as the latest distance value sdata, and this effective distance value S [1] is finally selected.

【0038】以上のように、本実施形態では、最近距離
測距値sdata及び最近距離測距値sdataとのラ
インセンサ36b上の間隔が所定値Lよりも小さい近距
離範囲内に含まれる測距値の中から、最も信頼性の高い
測距値を選択するので、測距精度を向上させることがで
きる。なお、以上では、本発明をレンズシャッタ式カメ
ラに適用した形態について説明したが、本発明はこれに
限定されないのは勿論であり、一眼レフカメラ等にも適
用可能である。
As described above, in this embodiment, the distance measurement is performed when the distance between the nearest distance measurement value sdata and the nearest distance measurement value sdata on the line sensor 36b is within the short distance range smaller than the predetermined value L. Since the most reliable distance measurement value is selected from the values, the distance measurement accuracy can be improved. Although the embodiment in which the present invention is applied to the lens shutter type camera has been described above, the present invention is of course not limited to this, and can be applied to a single-lens reflex camera and the like.

【0039】[0039]

【発明の効果】以上の説明から明らかなとおり、本発明
は、有効と判断した測距値の中で最も近距離側の測距値
と、該最も近距離側の測距値との差が所定値よりも小さ
い遠距離側の測距値の中から、最も信頼性の高い測距値
を選択するので、測距精度を向上させることができる。
As is apparent from the above description, according to the present invention, the difference between the closest measured distance value and the closest measured distance value among the measured distance values determined to be effective is described. Since the most reliable distance measurement value is selected from the distance measurement values on the long distance side smaller than the predetermined value, the distance measurement accuracy can be improved.

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

【図1】 本発明を適用したレンズシャッタ式カメラの
正面図を示す図である。
FIG. 1 is a front view of a lens shutter camera to which the present invention is applied.

【図2】 同レンズシャッタ式カメラの上面図を示す図
である。
FIG. 2 is a diagram showing a top view of the lens shutter camera.

【図3】 同レンズシャッタ式カメラの背面図を示す図
である。
FIG. 3 is a diagram showing a rear view of the lens shutter camera.

【図4】 同レンズシャッタ式カメラの制御系の主要構
成の一実施の形態をブロックで示す図である。
FIG. 4 is a block diagram showing one embodiment of a main configuration of a control system of the lens shutter camera.

【図5】 同レンズシャッタ式カメラの測距センサの概
要を示す図である。
FIG. 5 is a diagram showing an outline of a distance measuring sensor of the lens shutter type camera.

【図6】 同レンズシャッタ式カメラの測距処理により
測距値を選択する概要を示す図である。
FIG. 6 is a diagram showing an outline of selecting a distance measurement value by the distance measurement processing of the lens shutter camera.

【図7】 測距エリアとラインセンサ上の受光領域との
関係を示す図である。
FIG. 7 is a diagram showing a relationship between a distance measurement area and a light receiving area on a line sensor.

【図8】 相関関数f(N)から補間計算により極小値
を求める概要を示す図である。
FIG. 8 is a diagram showing an outline of obtaining a minimum value by interpolation calculation from a correlation function f (N).

【図9】 同レンズシャッタ式カメラの撮影処理に関す
るフローチャートを示す図である。
FIG. 9 is a flowchart showing a photographing process of the lens shutter camera.

【図10】 同レンズシャッタ式カメラの測距処理に関
するフローチャートを示す図である。
FIG. 10 is a view showing a flowchart relating to a distance measuring process of the lens shutter type camera.

【図11】 同レンズシャッタ式カメラの測距値選択処
理に関するフローチャートの一部を示す図である。
FIG. 11 is a diagram showing a part of a flowchart relating to distance measurement value selection processing of the lens shutter camera.

【図12】 同レンズシャッタ式カメラの近距離範囲設
定処理に関するフローチャートを示す図である。
FIG. 12 is a view showing a flowchart relating to a short distance range setting process of the lens shutter camera.

【図13】 同レンズシャッタ式カメラの信頼性演算処
理に関するフローチャートを示す図である。
FIG. 13 is a view showing a flowchart concerning reliability calculation processing of the lens shutter camera.

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

1 カメラボディ 2 ズームレンズ 9 レリーズボタン 21 CPU 25 絞り制御回路 29 ズームレンズ駆動回路 31 フォーカス駆動回路 35 測距回路 36 測距センサ 36a セパレータレンズ 36b ラインセンサ 37 測光回路 DESCRIPTION OF SYMBOLS 1 Camera body 2 Zoom lens 9 Release button 21 CPU 25 Aperture control circuit 29 Zoom lens drive circuit 31 Focus drive circuit 35 Distance measurement circuit 36 Distance measurement sensor 36a Separator lens 36b Line sensor 37 Photometry circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の測距エリアについて測距する測距
手段と、 該測距手段が測距した測距値の有効性を判断し、有効と
判断した測距値の信頼性を求める信頼性測定手段と、 前記信頼性測定手段が有効と判断した測距値の中で最も
近距離側の測距値と、該最も近距離側の測距値との差が
所定値よりも小さい遠距離側の測距値の中から、最も信
頼性の高い測距値を選択する選択手段と、を有すること
を特徴とする測距装置。
1. A distance measuring means for measuring a distance in a plurality of distance measuring areas, and a reliability for judging the validity of the measured distance value measured by the distance measuring means and determining the reliability of the measured distance value determined to be effective. The distance measurement value between the closest distance measurement value and the closest measurement value among the distance measurement values determined by the reliability measurement means to be valid. Selecting means for selecting the most reliable ranging value from the ranging values on the distance side.
【請求項2】 請求項1記載の測距装置において、 前記最も近距離側の測距値の被写体の距離に応じて、前
記所定値を変更する変更手段を有することを特徴とする
測距装置。
2. The distance measuring apparatus according to claim 1, further comprising a change unit that changes the predetermined value in accordance with a distance of the subject having the closest distance measurement value. .
【請求項3】 請求項1または2記載の測距装置におい
て、 前記測距手段は、前記複数の測距エリア内の被写体の像
をそれぞれ一対のラインセンサの対応する受光領域に投
影して該各一対の受光領域から画素単位で出力するセン
サ手段と、前記一対の受光領域の一方の受光領域から出
力された信号と他方の受光領域から出力された信号の画
素毎の差分の絶対値の総和を求める演算を、前記一方の
受光領域から出力された信号を基準として他方の受光領
域から出力された信号を画素単位でずらしながら実行し
て、該ずらし量と前記総和に関する相関関数を求め、さ
らに該相関関数の値が画素単位で最小となる第1の値と
2番目に小さい第2の値を求め、該第1の値と該第2の
値を挟む第3の値と第4の値を求め、該第1の値及び該
第1の値に近い第3の値を通る第1の直線と該第2の値
及び該第2の値に近い第4の値を通る第2の直線の交点
を求め、該交点に対応するずらし量から前記各測距エリ
ア内の被写体の像の間隔を求め、該像の間隔に基づいて
被写体の距離を演算する演算手段とを備え、 前記信頼性測定手段は、前記第1の直線または前記第2
の直線のうち少なくとも一方の直線の傾きの急峻度を求
め、該急峻度に基づいて信頼性を求めることを特徴とす
る測距装置。
3. The distance measuring apparatus according to claim 1, wherein the distance measuring means projects images of the subject in the plurality of distance measuring areas onto corresponding light receiving areas of a pair of line sensors, respectively. Sensor means for outputting a pixel from each pair of light receiving areas, and a sum of absolute values of differences between pixels of a signal output from one light receiving area and a signal output from the other light receiving area of the pair of light receiving areas Is performed while shifting the signal output from the other light receiving region on a pixel-by-pixel basis with reference to the signal output from the one light receiving region to obtain a correlation function regarding the shift amount and the sum, A first value at which the value of the correlation function is the smallest in pixel units and a second value that is the second smallest are obtained, and a third value and a fourth value sandwiching the first value and the second value are obtained. And determine the first value and the value close to the first value. An intersection of a first straight line passing through a third value and a second straight line passing through the second value and a fourth value close to the second value is determined, and the measurement is performed based on the shift amount corresponding to the intersection. Calculating means for calculating the distance between the images of the subject in the distance area and calculating the distance to the subject based on the distance between the images, wherein the reliability measuring means includes the first straight line or the second line.
A steepness of the slope of at least one of the straight lines is obtained, and reliability is obtained based on the steepness.
【請求項4】 請求項3の測距装置において、 前記信頼性測定手段は、前記第1の直線及び前記第2の
直線の傾きの急峻度をそれぞれ求め、該急峻度の平均値
に基づいて信頼性を求めることを特徴とする測距装置。
4. The distance measuring apparatus according to claim 3, wherein the reliability measuring means obtains the steepness of the slope of each of the first straight line and the second straight line, based on an average value of the steepness. A distance measuring device characterized by seeking reliability.
JP33417299A 1999-11-25 1999-11-25 Ranging device Expired - Fee Related JP4512173B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33417299A JP4512173B2 (en) 1999-11-25 1999-11-25 Ranging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33417299A JP4512173B2 (en) 1999-11-25 1999-11-25 Ranging device

Publications (2)

Publication Number Publication Date
JP2001154083A true JP2001154083A (en) 2001-06-08
JP4512173B2 JP4512173B2 (en) 2010-07-28

Family

ID=18274351

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33417299A Expired - Fee Related JP4512173B2 (en) 1999-11-25 1999-11-25 Ranging device

Country Status (1)

Country Link
JP (1) JP4512173B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7502556B2 (en) 2005-06-23 2009-03-10 Hoya Corporation Photographing device with auto focusing function
US7526192B2 (en) 2004-10-07 2009-04-28 Hoya Corporation Focus detection method and focus detection apparatus
US7580208B2 (en) 2005-12-01 2009-08-25 Hoya Corporation Focus adjustment apparatus
US7787759B2 (en) 2005-09-26 2010-08-31 Hoya Corporation Camera with autofocus system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02178641A (en) * 1988-12-29 1990-07-11 Nikon Corp Focus detecting device
JPH07120668A (en) * 1993-10-22 1995-05-12 Minolta Co Ltd Focus detecting device
JPH08262312A (en) * 1995-03-24 1996-10-11 Canon Inc Optical instrument provided with function of detecting line of sight
JPH08327884A (en) * 1995-05-26 1996-12-13 Asahi Optical Co Ltd Range-finding device
JPH10332365A (en) * 1997-05-27 1998-12-18 Minolta Co Ltd Distance measuring equipment
JPH11119088A (en) * 1997-10-15 1999-04-30 Minolta Co Ltd Automatic focusing detector
JPH11153750A (en) * 1997-11-19 1999-06-08 Olympus Optical Co Ltd Multi-point range-finder

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02178641A (en) * 1988-12-29 1990-07-11 Nikon Corp Focus detecting device
JPH07120668A (en) * 1993-10-22 1995-05-12 Minolta Co Ltd Focus detecting device
JPH08262312A (en) * 1995-03-24 1996-10-11 Canon Inc Optical instrument provided with function of detecting line of sight
JPH08327884A (en) * 1995-05-26 1996-12-13 Asahi Optical Co Ltd Range-finding device
JPH10332365A (en) * 1997-05-27 1998-12-18 Minolta Co Ltd Distance measuring equipment
JPH11119088A (en) * 1997-10-15 1999-04-30 Minolta Co Ltd Automatic focusing detector
JPH11153750A (en) * 1997-11-19 1999-06-08 Olympus Optical Co Ltd Multi-point range-finder

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7526192B2 (en) 2004-10-07 2009-04-28 Hoya Corporation Focus detection method and focus detection apparatus
US7502556B2 (en) 2005-06-23 2009-03-10 Hoya Corporation Photographing device with auto focusing function
US7787759B2 (en) 2005-09-26 2010-08-31 Hoya Corporation Camera with autofocus system
US7580208B2 (en) 2005-12-01 2009-08-25 Hoya Corporation Focus adjustment apparatus

Also Published As

Publication number Publication date
JP4512173B2 (en) 2010-07-28

Similar Documents

Publication Publication Date Title
JP2002244027A (en) Range-finding device
JP2001091819A (en) Range-finding device for camera
JP2000330002A (en) Range finder
JP2009246774A (en) Imaging apparatus, control method, and program
JP4512173B2 (en) Ranging device
JP3630965B2 (en) Focus detection apparatus, camera, and focus detection method
US5870637A (en) Auxiliary light emitting device and focusing condition detecting device
JP2004004449A (en) Exposure control system for camera
JPH11118477A (en) Distance measuring device
US5418596A (en) Photometry apparatus in a camera
US6195509B1 (en) Exposure control apparatus for a camera
JP2000330001A (en) Range finder
JP3955201B2 (en) Auto focus camera
JP4550211B2 (en) camera
JP3793403B2 (en) Ranging device
JP3645800B2 (en) Ranging device
JP3746944B2 (en) Ranging device
JP2001154089A (en) Range finder
JP2000338388A (en) Range finder
JP2000330000A (en) Range-finding device
JP2000194028A (en) Photometric device
JPH1172818A (en) Multi-point range finder
JP2006146058A (en) Photometry apparatus for camera
JP2002072072A (en) Range finder
JP2001154087A (en) Range finder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061018

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080425

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091027

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100119

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100323

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100413

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100508

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

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20140514

Year of fee payment: 4

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees