JPS6318315A - Focus detecting device - Google Patents

Focus detecting device

Info

Publication number
JPS6318315A
JPS6318315A JP16082686A JP16082686A JPS6318315A JP S6318315 A JPS6318315 A JP S6318315A JP 16082686 A JP16082686 A JP 16082686A JP 16082686 A JP16082686 A JP 16082686A JP S6318315 A JPS6318315 A JP S6318315A
Authority
JP
Japan
Prior art keywords
focus
amount
focus detection
lens
image
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
JP16082686A
Other languages
Japanese (ja)
Other versions
JP2671206B2 (en
Inventor
Akira Akashi
明石 彰
Akira Ishizaki
明 石崎
Yasuo Suda
康夫 須田
Ichiro Onuki
一朗 大貫
Keiji Otaka
圭史 大高
Takashi Koyama
剛史 小山
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 JP61160826A priority Critical patent/JP2671206B2/en
Publication of JPS6318315A publication Critical patent/JPS6318315A/en
Application granted granted Critical
Publication of JP2671206B2 publication Critical patent/JP2671206B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

PURPOSE:To obtain a focus detecting device which eliminates the need to adjust a photoelectric converting means mechanically by providing a storage means which stores an effective picture element range wherein an effective photoelectric conversion signal is generated in an arithmetic means, and performing focus detection on the basis of the stored effective picture element range. CONSTITUTION:The effective picture element range SA wherein the photoelectric conversion signal corresponding to a finder distance measurement frame FFRM is checked previously in an adjusting process and stored in an EEPROM. Consequently, the need for the mechanical adjustment is eliminated and operation efficiency is improved greatly; even when only the finder distance measurement frame is changed to a different frame in a camera of the same constitution, the change is easily made. Further, if it is found that sensor has an irregularity in sensitivity after assembly, or that an AF optical system has an aberration, the camera is easily used while the part is evaded.

Description

【発明の詳細な説明】 (発明の利用分野) 本発明は、物体の2像の相対的位置関係より焦点状態を
検出する焦点検出装置の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Application of the Invention) The present invention relates to an improvement in a focus detection device that detects a focus state from the relative positional relationship between two images of an object.

(発明の背景) 従来、カメラの焦点検出装置の一つのタイプとして、撮
影レンズの射出瞳を分割し、各瞳領域を通過した光束が
形成する対の像の相対位置変位を観測することで、合焦
状態を判別する、いわゆる「像ずれ型」が知られている
(Background of the Invention) Conventionally, as one type of focus detection device for a camera, the exit pupil of a photographic lens is divided and the relative positional displacement of a pair of images formed by a beam of light passing through each pupil area is observed. A so-called "image shift type" method that determines the in-focus state is known.

像信号から像ずれ量を検出する信号処理方法としては、
特開昭58−142306号公報、米国特許第4333
007号公報等が開示されているが、いずれもセンサよ
り出力される総て或いは固定の範囲内の信号を用いて焦
点検出処理を行うものであった。このため、ファインダ
ー内に設けられている焦点検出範囲、即ち測距枠がセン
サの全領域よりも小さく、且つセンサの列方向に組立上
ずれている場合には、被写体が測距枠内に位置しても焦
点が検出できなかったり、逆に測距枠外のものの焦点検
出を行ってしまうような不都合があった。換言すれば、
目視している視野と実際に焦点検出される視野とが異な
っているような場合には、正確な焦点検出を行えなかっ
た。
The signal processing method for detecting the amount of image shift from the image signal is as follows:
JP-A-58-142306, U.S. Patent No. 4333
No. 007 and the like are disclosed, but all of them perform focus detection processing using all or a fixed range of signals output from the sensor. For this reason, if the focus detection range provided in the finder, that is, the distance measurement frame, is smaller than the entire area of the sensor, and the sensor is misaligned in the row direction due to assembly, the subject may not be located within the distance measurement frame. However, there are disadvantages in that the focus cannot be detected even when the focus is detected, or the focus may be detected on objects outside the distance measurement frame. In other words,
In cases where the visual field of view and the field of view where the focus is actually detected are different, accurate focus detection cannot be performed.

前述の様な点に対処するために従来は、機械的な方法に
よりセンサと測距枠の位置合わせをいちいち行っていた
。このため、非常に手間がかかリ、作業能率の悪いもの
であった。また、例えば何らかの事情により異なる測距
枠に変更したいという様な事もあり得るが、この様な場
合には前記の事が顕著であった。
In order to deal with the above-mentioned problems, in the past, the positioning of the sensor and the distance measuring frame was performed one by one using a mechanical method. For this reason, it was extremely time-consuming and inefficient. Further, for example, there may be a case where the user wants to change to a different distance measurement frame due to some circumstances, and in such a case, the above-mentioned problem is noticeable.

(発明の目的) 本発明は、上述した問題点を解決し、光電変換手段の機
械的調整を不用とすると共に、設計変更に対応すること
のできる焦点検出装置を提供することである。
(Object of the Invention) An object of the present invention is to provide a focus detection device that solves the above-mentioned problems, eliminates the need for mechanical adjustment of photoelectric conversion means, and can accommodate design changes.

(発明の特@) 上記目的を達成するために、本発明は、演算手段中に、
有効な光電変換信号を発生する有効画素範囲を記憶する
記憶手段を設け、以て、前記記憶手段に記憶された有効
画素範囲に基づいて焦点検出処理を行うようにしたこと
を特徴とする。
(Features of the invention@) In order to achieve the above object, the present invention provides the following features:
The present invention is characterized in that a storage means for storing an effective pixel range that generates an effective photoelectric conversion signal is provided, and focus detection processing is performed based on the effective pixel range stored in the storage means.

(発明の実施例) まず初めに、この種の装置における焦点検出原理を第1
5図を用いて説明する。焦点検出されるべき撮影レンズ
FLNSと光軸を同じくしてフィールドレンズFLDが
配置される。その後方の、光軸に関して対称な位置に、
2個の二次結像レンズFCLA  、  FCLBが配
置される。更にその後方にセンサ列SAA 、 SAB
が配置される。二次結像レンズFCLA  、  FC
LBの近傍には絞りorA 、 oraが設けられる。
(Embodiment of the Invention) First, the focus detection principle in this type of device will be explained as follows.
This will be explained using Figure 5. A field lens FLD is placed on the same optical axis as the photographing lens FLNS whose focus is to be detected. Behind it, in a symmetrical position with respect to the optical axis,
Two secondary imaging lenses FCLA and FCLB are arranged. Further behind it are sensor rows SAA and SAB.
is placed. Secondary imaging lens FCLA, FC
A diaphragm orA and ora are provided near LB.

フィールドレンズFLDは撮影レンズFLNSの射出瞳
を2 (IIの二次結像レンズFCLA 、  FCL
Bの臆面にほぼ結像する。その結果、二次結像レンズF
CLA  、  FCLBにそれぞれ入射する光線束は
、撮影レンズFLNSの射出瞳面上において各二次結像
レンズFCLA 、  FCLBに対応する。
The field lens FLD has the exit pupil of the photographing lens FLNS 2 (secondary imaging lenses FCLA, FCL
The image is almost focused on the face of B. As a result, the secondary imaging lens F
The light beams incident on CLA and FCLB respectively correspond to the secondary imaging lenses FCLA and FCLB on the exit pupil plane of the photographing lens FLNS.

互いに重なり合うことのない等面積の領域から射出され
たものとなる。フィールドレンズFLDの近傍に形成さ
れた空中像が二次結像レンズFCLA 。
They are emitted from areas of equal area that do not overlap each other. The aerial image formed near the field lens FLD is the secondary imaging lens FCLA.

FCLBによりセンサ列SAA 、 SABの面上に再
結像されると、光軸方向の空中像位置の変位に基づき、
センサ列SAA 、 SAB上の2像はその位置を変え
ることになる。従って、2像の相対的位置の変位(ずれ
)を検出すれば、撮影レンズFt、83の焦点状態を知
ることができる。
When the image is re-imaged on the surface of the sensor arrays SAA and SAB by FCLB, based on the displacement of the aerial image position in the optical axis direction,
The two images on the sensor arrays SAA and SAB will change their positions. Therefore, by detecting the displacement (shift) of the relative positions of the two images, the focal state of the photographing lens Ft, 83 can be known.

前記センサ列SAA 、 SABより出力される像信号
から像ずれ量を検出する信号処理方法としては、特開昭
58−142306号公報、特開昭59−107313
号公報、特開昭60−101513号公報などが本願出
願人により開示されている。
As a signal processing method for detecting the amount of image shift from the image signals output from the sensor arrays SAA and SAB, Japanese Patent Laid-Open No. 58-142306 and Japanese Patent Laid-Open No. 59-107313 are known.
No. 60-101513, etc. are disclosed by the applicant of the present invention.

具体的には、センサ列SAA又はSABを構成する画素
数をNとし、i番目(i =O、・・・、N−1)のセ
ンサ列SAA 、 SABからの像信号をA(i) 、
 B(i)とするとき X(k)−II: wax (A(i) 、 B(i+
tkl+1))−εwax (μ0         
                  1→A(++1
) 、 B(i÷1kl))       (k <O
)−T:、 mat (A(i+k) 、 B(++1
)) −T、 ll1ax (I@OI@。
Specifically, the number of pixels constituting the sensor array SAA or SAB is N, and the image signal from the i-th (i = O, ..., N-1) sensor array SAA, SAB is A(i),
When B(i), X(k)-II: wax (A(i), B(i+
tkl+1))−εwax (μ0
1 → A (++1
), B(i÷1kl)) (k<O
)−T:, mat(A(i+k), B(++1
)) -T, ll1ax (I@OI@.

A(i+に+1)、  日(i))         
  (k≧0 )・xl(k)   X2(k)   
’      (L)あるいは Y(k)−Σ:   win  (A(i)  、  
B(i+Ikl+1))   −Σ:m1n(io  
                         
    ’→A(++1) 、 B(i+1kl)) 
       (k<O)−Z  ll1n  (A(
i+k)、B(++1))  −!:  min  (
++6                      
        1″A(i◆に+1) 、 5(i)
)        (k≧O)=  Ys (k)  
 Y2 (k)          (2)なる式を、
k1≦に≦に2について演算する。尚Mは(M = N
 −1kl−1)で表される演算画素数であり、又には
相対変位量と呼ばれ、k l * k 2は通常−N/
2.N/2にとられることが多い、ここで wax(a
、b)なる演算子はa、bの向火なるものを抽出するこ
とを表し、win(a、blなる演算子はa、bの内示
なるものを抽出することを表す、従って、前記(1)、
(2)式における頁X+ (k)  、x2(k)  
+Y1 (k)  、Y2 (k) ハ広義の相関量と
考えることができる。更に、前記(1)。
A (+1 to i+), day (i))
(k≧0)・xl(k) X2(k)
' (L) or Y(k)-Σ: win (A(i),
B(i+Ikl+1)) -Σ:m1n(io

'→A(++1), B(i+1kl))
(k<O)−Z ll1n (A(
i+k), B(++1)) −! : min (
++6
1″A (+1 to i◆), 5(i)
) (k≧O)= Ys (k)
The formula Y2 (k) (2) is
Calculations are performed for k1≦≦2. Furthermore, M is (M = N
-1kl-1), or called the relative displacement amount, and kl*k2 is usually -N/
2. It is often taken as N/2, where wax(a
, b) represents the extraction of the positive effect of a, b, and the operator win(a, bl represents the extraction of the connotation of a, b). Therefore, the above (1 ),
Page X+ (k), x2(k) in equation (2)
+Y1 (k), Y2 (k) C can be considered as correlation amounts in a broad sense. Furthermore, (1) above.

(2)式を詳細に見ると、X+ (k)  、 Yr 
(k)は現実には(k−1)変位における上記夫々の定
義にヨル相関量を、X2 (k)  、 Y2 (k)
は(k+1)の変位における相関量を、それぞれ表して
いる。
Looking at formula (2) in detail, we find that X+ (k), Yr
In reality, (k) is the correlation amount for each of the above definitions at (k-1) displacement, X2 (k), Y2 (k)
represent the amount of correlation at the displacement (k+1), respectively.

それゆえ、Xs (k)  、 X2 (k)の差であ
る評価量X (k)は相対変位量kにおける像信号A(
i)、B(i)の相関量の変化量を意味する。
Therefore, the evaluation amount X (k), which is the difference between Xs (k) and X2 (k), is the image signal A (
i), means the amount of change in the correlation amount of B(i).

X+ (k)  、 X2 (k)なる相関量は上記定
義から明らかなように2像の相関が最も高いときに最小
となる。よってその変化量であるX (k)は相関最高
のときに「0」で、且つ傾きは負となるはずである。と
ころがX (k)は離散データであるから、実際には X(kp) ≧O、X(kp+1) < O(3)且つ
X(kp) −X(kp+1)が最大なる相対変位の区
間[kp 、 kp+11に相関量のピークが存在する
と考えて、 の補間演算を行うことにより、画素単位以下の像ずれ量
PRを検出することができる。
As is clear from the above definition, the correlation amounts X+ (k) and X2 (k) are minimum when the correlation between the two images is highest. Therefore, the amount of change, X(k), should be "0" when the correlation is highest, and the slope should be negative. However, since X (k) is discrete data, in reality, the relative displacement interval [kp By assuming that the peak of the correlation amount exists at , kp+11 and performing the interpolation calculation, it is possible to detect the image shift amount PR on a pixel basis or less.

一方、Yl(k)  、 Y2 (k)なる相関量は上
記定義より2像の相関が最も高いとき、XL (k) 
On the other hand, according to the above definition, when the correlation between the two images is highest, the correlation amounts Yl(k) and Y2(k) are XL(k)
.

x2(k)とは逆に最大となる。よってその変化量であ
るY (k)は相関最高のときに「0」で、且つ傾きは
正となるはずである。Y(k)もX (k)と同様に Y(kp)≦O、Y(kp◆1)>O(1)で且つY(
kp) −YCkp◆1)が最大のときの補間演算を行
うことにより、画素単位以下の像ずれ量PRを検出する
ことができる。
In contrast to x2(k), it is the maximum. Therefore, the amount of change, Y (k), should be "0" when the correlation is at its highest, and the slope should be positive. Similarly to X (k), Y(k) also satisfies Y(kp)≦O, Y(kp◆1)>O(1), and Y(
By performing the interpolation calculation when kp) -YCkp◆1) is maximum, it is possible to detect the image shift amount PR in units of pixels or less.

また、X(k)  、 Y(k)のいずれの焦点評価量
を用いても像ずれ量の検出は可能であるが、特開昭60
−101513号公報かられかる様に、1x(kp)−
X (kp+1)l> l Y (kp+1) −Y 
(kP)+(7) 時ニtti点評価量X (k) ヲ
、 lx (kp) −X (kp+1)l>IY(k
p+1) −Y (kp)lの時には焦点評価量Y(わ
を用いて像ずれ量PRを求めた方がS/N的に精度が良
い。
Furthermore, although it is possible to detect the amount of image shift using either the focus evaluation amount of X(k) or Y(k),
-1x(kp)-
X (kp+1)l> l Y (kp+1) -Y
(kP) + (7) Time point evaluation amount X (k) wo, lx (kp) -X (kp+1)l>IY(k
p+1) -Y (kp)l, it is more accurate in terms of S/N to calculate the image shift amount PR using the focus evaluation amount Y (kp).

第1図は本発明の一実施例を示すブロック図である。 
PRSはカメラの制御回路で、例えば内部にcpu (
中央演算処理部)、RAM、  ROM、EEFROM
(電気的消去可能プログラマブルROM) 、入出力ボ
ート及びA/D変換機能付アナログ入力ポート等が配置
されたlチップマイクロコンピュータであり、前記RO
M内にはカメラのシーケンス、AF(自動焦点)、AE
(自動露出)制御用のソフトウェアが、EEPROM内
にはAF、AE制御に必要なパラメータが格納されてい
る。  SHTは前記制御回路PRSより制御信号C5
H丁が入力している間データバスDBUSを介して入力
するデータを受は付け、該データに基づいて不図示のシ
ャッタ先幕及び後幕の走行制御を行うシャッタ制御回路
、APRは制御信号CAPRが入力している間データバ
スDBUSを介して入力するデータを受は付け、該デー
タに基づいて不図示の絞り機構を制御する絞り制御回路
、DSPは制御信号cDspが入力している間データバ
スDBUSを介して入力するデータを受は付け、該デー
タに基づいて各種撮影情報を表示する表示回路、 SW
Sは不図示のレリーズスイッチ。
FIG. 1 is a block diagram showing one embodiment of the present invention.
PRS is a camera control circuit, for example, an internal CPU (
central processing unit), RAM, ROM, EEFROM
(Electrically erasable programmable ROM), an input/output board, an analog input port with an A/D conversion function, etc. are arranged, and the RO
Camera sequence, AF (auto focus), AE
(Automatic exposure) control software and parameters necessary for AF and AE control are stored in the EEPROM. SHT receives the control signal C5 from the control circuit PRS.
A shutter control circuit that accepts data input via the data bus DBUS while the H-block is input, and controls the travel of the shutter front curtain and rear curtain (not shown) based on the data; APR is a control signal CAPR. The aperture control circuit receives data input via the data bus DBUS while the data bus DBUS is being input, and controls an aperture mechanism (not shown) based on the data. A display circuit that accepts data input via DBUS and displays various photographic information based on the data, SW
S is a release switch (not shown).

シャッタ、絞り等各種情報設定用のスイッチなどカメラ
の外部並びに内部に配置されたスイッチ群である。
This is a group of switches placed on the outside and inside of the camera, including switches for setting various information such as the shutter and aperture.

SPCは測光回路であり、その出力であるアナログ測光
信号5SPCは前記制御回路PRSのA/D変換機能付
アナログ入力ボートへ送られ、A/D変換されて前述の
シャッタ制御回路5)IT及び絞り制御回路APRを制
御するための測光データとして用いられる。 LCOM
は制御信号CLCOにが入力している間データバスDB
USを介して入力するデータを受は付け、該データに基
づいて後述するレンズユニットとシリアル通信を行うレ
ンズ通信回路で、クロー7り信号LCKに同期して撮影
レンズFLNSの光軸方向への移動量を示すレンズ駆動
用のデータDCLを後述するレンズ内制御回路へ伝送し
、又この時同時に該レンズ内制御回路から撮影レンズF
LNSの非合焦量対レンズ移動量の係数等のレンズ情報
DCLがシリアル入力する。 BSYは撮影レンズFL
NSが移動中であるか否かをカメラ側に知らせるための
信号で、この信号が“’H”(ハイレベル)の時は前記
シリアル通信は不可能となる。
SPC is a photometry circuit, and its output analog photometry signal 5SPC is sent to the analog input port with A/D conversion function of the control circuit PRS, where it is A/D converted and sent to the above-mentioned shutter control circuit 5) IT and aperture. It is used as photometric data for controlling the control circuit APR. LCOM
is input to the control signal CLCO while the data bus DB is input to the control signal CLCO.
A lens communication circuit that receives data input via the US and performs serial communication with the lens unit described later based on the data, and moves the photographing lens FLNS in the optical axis direction in synchronization with the claw signal LCK. The data DCL for driving the lens indicating the amount is transmitted to the lens control circuit described later, and at the same time, the lens drive data DCL indicating the amount is transmitted to the lens control circuit described later.
Lens information DCL such as a coefficient of the amount of defocusing of the LNS versus the amount of lens movement is serially input. BSY is FL photography lens
This signal informs the camera side whether or not the NS is moving. When this signal is "'H" (high level), the serial communication is disabled.

LNSUはレンズユニット、LPRSはシリアル入力し
たデータDLCに基づいてモータMTRを駆動し、撮影
レンズFLMSを光軸方向に移動させるレンズ内制御回
路、ENCは例えば撮影レンズFLNSを保持している
レンズ鏡筒の移動に伴って発生するパルス信号を検出し
、撮影レンズFLNSのその時々の位置情報としてエン
コーダパルス信号EPLをレンズ内制御回路LPRSへ
出力するエンコーダ回路。
LNSU is a lens unit, LPRS is a control circuit within the lens that drives the motor MTR based on serially input data DLC to move the photographing lens FLMS in the optical axis direction, and ENC is a lens barrel holding the photographing lens FLNS, for example. An encoder circuit that detects a pulse signal generated as the lens moves, and outputs an encoder pulse signal EPL to an in-lens control circuit LPRS as position information of the photographing lens FLNS at any given time.

SDRは前記制御回路PRSより入力する各信号STR
、GKに従って2つのセンナ列SAA、SABを有する
、例えばCODなどのラインセンサSNSを制御するセ
ンサ駆動回路である。
SDR is each signal STR input from the control circuit PRS.
, GK, and has two sensor arrays SAA and SAB, and controls a line sensor SNS, such as a COD, for example.

次に、動作について第2〜14図を用いて説明する。な
お、前記シャッタ制御回路SHT 、絞り制御回路AP
R、表示回路DSP及び測光回路SPCの動作は本発明
とは直接関係ないので、ここでは詳細な説明は省略する
。又木実施例では、カメラのシーケンス・フローからr
 AFJフローがサブルーチンとしてコールされる形式
をとっている。
Next, the operation will be explained using FIGS. 2 to 14. Note that the shutter control circuit SHT and the aperture control circuit AP
Since the operations of the display circuit DSP and the photometry circuit SPC are not directly related to the present invention, detailed explanations thereof will be omitted here. In the tree embodiment, r
The AFJ flow is called as a subroutine.

AFの動作が開始されると、先ずフラグRCFLGとフ
ラグNRSDFLGの2つのフラグを“N” (N。
When the AF operation starts, first, two flags, the flag RCFLG and the flag NRSDFLG, are set to "N" (N.

を意味する)とする(第2図ステップ10)、前記フラ
グRCFLG 、NRSDFLGの働きについては後述
する0次に像信号読み込みのサブルーチンr IMAG
E」をコールする(ステップ11)、ここでは。
(step 10 in FIG. 2), the functions of the flags RCFLG and NRSDFLG will be described later in the 0-order image signal reading subroutine r IMAG.
E" (step 11), here.

センサ駆動回路SDRを介してラインセンサSNSが駆
動され、2像の像信号A(i) 、B(i)が得られる
。この時のセンサ駆動回路SDR及びラインセンサSN
S等の動作を第1.3図を用いて節単に説明する。制御
回路PRSより“H”の蓄積開始信号STRが出力され
ると(第3図ステップ50)、センサ駆動回路SDRよ
りクリア信号OLがラインセンサSNSへ出力され、セ
ンサ列SAA、SABの各光電変換部の電荷がクリアさ
れる。するとラインセンサSNSにて前段に配置されて
いる二次結像レンズ等(第1図では図示していないが、
第15図の如き状態で配置されている)によってセンサ
列SAA、SAB上に形成される光像の光電変換及び電
荷蓄積動作が開始される。前記の動作が開始されてから
所定の時間が経過すると、センサ駆動回路SDRから転
送信号SHがラインセンサSNSへ出力され、光電変換
部に蓄積された電荷がCCD部へ転送される。同時に前
記センサ駆動回路SDRにはH=の蓄積終了信号IEN
IIが発生し、該信号は制御回路PRSに入力される(
ステップ51)、その後制御回路PRSからCCD駆動
クロックGKが出力されると、センサ駆動回路SDRか
らCCD駆動信号φ1 、φ2が出力される。これによ
り、ラインセンサSNSからこの信号に従ってアナログ
像信号5SNSが制御回路PR3へ出力され、これを受
けて制御回路PRSはCCD駆動クロックGKに同期し
てアナログ像信号5SNSをA/D変換し、2像の像信
号A(i)、B(i)としてRAM内の所定のアドレス
に格納する(ステップ52〜55)、ここでセンサ列S
AA 、 SABの画素数は40と仮定している。
The line sensor SNS is driven via the sensor drive circuit SDR, and two image signals A(i) and B(i) are obtained. Sensor drive circuit SDR and line sensor SN at this time
The operations of S, etc. will be briefly explained using FIG. 1.3. When the control circuit PRS outputs the accumulation start signal STR of "H" (step 50 in FIG. 3), the sensor drive circuit SDR outputs the clear signal OL to the line sensor SNS, and each photoelectric conversion of the sensor arrays SAA and SAB is performed. The charge on the part is cleared. Then, the secondary imaging lens, etc. (not shown in Fig. 1) placed in the front stage of the line sensor SNS,
(arranged as shown in FIG. 15), photoelectric conversion and charge accumulation operations of the optical images formed on the sensor arrays SAA and SAB are started. When a predetermined period of time has elapsed after the start of the above operation, a transfer signal SH is outputted from the sensor drive circuit SDR to the line sensor SNS, and the charges accumulated in the photoelectric conversion section are transferred to the CCD section. At the same time, the sensor drive circuit SDR receives an H= accumulation end signal IEN.
II is generated, and the signal is input to the control circuit PRS (
In step 51), when the CCD drive clock GK is then output from the control circuit PRS, the CCD drive signals φ1 and φ2 are output from the sensor drive circuit SDR. As a result, the analog image signal 5SNS is output from the line sensor SNS to the control circuit PR3 in accordance with this signal, and in response to this, the control circuit PRS A/D converts the analog image signal 5SNS in synchronization with the CCD drive clock GK. The image signals A(i) and B(i) of the image are stored at predetermined addresses in the RAM (steps 52 to 55).
It is assumed that the number of pixels in AA and SAB is 40.

再び第2図に戻って、ステップ12は非合焦状態によっ
て全画素を処理対象範囲として焦点検出演算を行うか、
一部の画素を処理対象範囲として焦点検出演算かを、つ
まり焦点検出演算を行う処理対象画素範囲の設定を行う
フラグVSNで、°“WD”  (大なる非合焦量を意
味する)の時は焦点検出用サブルーチンrWPRED」
を、“NR”  (合焦近傍を意味する)の時は焦点検
出用サブルーチンr NRPREDJをコールする(ス
テップ12)、例えば、第4図のように像信号が合焦か
ら大きくずれている場合にはサブルーチンrWPRED
」を採用し、第5図のように合焦近傍になるとサブルー
チンr NRPREDJを採用する。なお、電源投入時
フラグMSNは“WD”に設定(最初の時点であり、非
合焦状態がわからないため)されており、AFの動作が
開始されると、その時点における焦点状態によりWD”
あるいは“NR”に再設定される。この再設定について
は後述する。
Returning to FIG. 2 again, in step 12, focus detection calculation is performed with all pixels as the processing target range depending on the out-of-focus state, or
Flag VSN that determines whether focus detection calculation is to be performed using some pixels as the processing target range, that is, setting the processing target pixel range in which focus detection calculation is performed. is the focus detection subroutine rWPRED”
When the value is "NR" (meaning near focus), the focus detection subroutine r NRPREDJ is called (step 12). For example, when the image signal is significantly out of focus as shown in Figure 4, is subroutine rWPRED
'' is adopted, and when the focus is near as shown in FIG. 5, the subroutine rNRPREDJ is adopted. Note that the power-on flag MSN is set to "WD" (because it is the first time and the out-of-focus state is unknown), and when the AF operation starts, the flag MSN is set to "WD" depending on the focus state at that time.
Or it is reset to "NR". This resetting will be described later.

サブルーチンrWPRED Jがコールされた時の焦点
検出処理を第6図のフローに従って述べる。
The focus detection process when the subroutine rWPRED J is called will be described according to the flowchart in FIG.

ステップ100〜105では、相対変位量kを「−20
〜20」の範囲内で変えた時の焦点評価量X (k)を
求めている。ここで相対変位量kを−20から20の範
囲としているのは、前述の如くセンサ列SAA、SAB
の画素数を「40」と仮定しているからであるが、この
処理対象画素範囲は使用される撮影レンズFLNSの焦
点距離に応じて可変としても良い。
In steps 100 to 105, the relative displacement amount k is set to "-20".
The focus evaluation amount X (k) is calculated when the focus is changed within the range of .about.20''. Here, the reason why the relative displacement k is in the range of -20 to 20 is because the sensor arrays SAA and SAB
This is because the number of pixels is assumed to be "40", but this processing target pixel range may be variable depending on the focal length of the photographing lens FLNS used.

まずステップ101ではM= 39−1klという式で
演算画素数Mを計算する。演算画素数Mは相対変位量k
に応じて可変であり、kの絶対値が大きい程小さくなる
。これは相対変位量kが大きくなるにつれて対応するセ
ンサの出力が端部から欠落していくからである、ステッ
プ102で相対変位量にの符号(正か負か)を調べ、次
いでその符号に応じてA像、B像の演算を開始する先頭
の画素位置FA 、FBをステップ103或いは104
で計算する。ステップ105では焦点評価量X (k)
の演算を行う。
First, in step 101, the number M of pixels to be operated is calculated using the formula M=39-1kl. The number of calculated pixels M is the relative displacement amount k
It is variable depending on k, and the larger the absolute value of k, the smaller it becomes. This is because as the relative displacement amount k increases, the output of the corresponding sensor is missing from the end.In step 102, the sign (positive or negative) of the relative displacement amount is checked, and then Step 103 or 104 selects the first pixel positions FA and FB at which to start calculation of images A and B.
Calculate with. In step 105, focus evaluation amount X (k)
Perform the calculation.

ここで前記ステップ100〜105での処理過程を第7
図を用いて説明する。第7図(a)は2つの像信号A(
i)  、 B(i)を表している。第7図(b)はに
=−20における相関演算のセンサ列の対応関係を表し
ており、この時M= 39−1201=19で、FAは
rOJ、FBは「20」である。
Here, the processing steps in steps 100 to 105 are explained in the seventh step.
This will be explained using figures. FIG. 7(a) shows two image signals A(
i) represents B(i). FIG. 7(b) shows the correspondence of sensor arrays in the correlation calculation when 2=-20, where M=39-1201=19, FA is rOJ, and FB is "20".

即ち相対変位量には負の値であるのでB像かに画素(−
200画素だけ相対的に左側へ変位している。この対応
関係から更にB像を1画素左側へ変位した対応間係で演
算したのがX (−20)を求める場合の式の第1項に
、逆にA像を1画素左側へ変位した対応関係で演算した
のが第1項に、それぞれ相当する。この第1項、第2項
でA像、B像を各1画素ずつ左へ変位して演算するため
、前記演算画素数Mを計算する時、M= 40−1kl
としないでM= 39−1klとしている。第7図(c
)はに=0の時の対応関係を表している。第7図(d)
はに:20における相関演算の対応関係を表しており、
前記第7図(b)とは逆にA像が200画素け左側に変
位している。
In other words, since the relative displacement amount is a negative value, the B-image crab pixel (-
It is relatively displaced to the left by 200 pixels. From this correspondence relationship, the first term of the equation when calculating X (-20) is calculated using the correspondence relationship in which the B image is further shifted to the left by one pixel, and conversely, the correspondence is calculated by displacing the A image to the left by one pixel. The calculations based on the relationships correspond to the first term. In the first and second terms, the A image and B image are each shifted to the left by one pixel for calculation, so when calculating the number of calculation pixels M, M = 40-1kl.
M = 39-1 kl instead of . Figure 7 (c
) represents the correspondence when ni=0. Figure 7(d)
It represents the correspondence of correlation calculations in Hani:20,
Contrary to FIG. 7(b), the A image is displaced to the left by 200 pixels.

前述のようにして演算した焦点評価量X (k)をプロ
ットしたものの一例を第8図に示す。
FIG. 8 shows an example of a plot of the focus evaluation amount X (k) calculated as described above.

第6図のフローに戻って、ステー、プ110では焦点評
価量X (k)から2像A、Hの画素単位の像ずれ量の
ピーク値kpを検出する。以下、ステップ120〜14
6で画素単位以下の像ずれ量PRを求めるわけであるが
、前記ステップ110で求めたピーク値kpに基づいて
、ステップ120〜135では2つの焦点評価量X(k
) 、 Y(k)を再演算する。この理由は二つある。
Returning to the flow shown in FIG. 6, the step 110 detects the peak value kp of the image shift amount in pixel units of the two images A and H from the focus evaluation amount X (k). Below, steps 120-14
In step 6, the image shift amount PR of less than a pixel unit is determined. Based on the peak value kp determined in step 110, in steps 120 to 135, two focus evaluation amounts X(k
), recalculate Y(k). There are two reasons for this.

一つは、kpを求める先のステップでは演算画素数Mが
相変位置kに応じて可変であり、この様に可変となる演
算範囲にて演算した焦点評価量X (k)を補間して画
素単位以下の像ずれ量PRを求めると、演算画素数Mが
一致していないことに起因する誤差を含む恐れがある。
One is that in the previous step of calculating kp, the number of calculated pixels M is variable according to the phase change position k, and the focus evaluation amount X (k) calculated in this variable calculation range is interpolated. If the image shift amount PR is calculated in units of pixels or less, there is a risk that it will include an error due to the fact that the number of calculated pixels M does not match.

今一つは、焦点評価量X (k)のみで像ずれ量PRを
求めるよりも、X(k) 、 Y(k)を組み合わせて
用いた方が先DIN(特開昭60−101513号公報
)にて述べた様に被写体の信号パターンによってはS/
N的にすぐれているからである0以上のことから、ステ
ップ120〜135では、kpを基に演算画素数Mを一
定にしくステップ120)、焦点評価量x(k) 、 
Y(k)を同時に求めている。
Another point is that it is better to use a combination of X(k) and Y(k) than to calculate the image shift amount PR using only the focus evaluation amount As mentioned above, depending on the signal pattern of the subject, the S/
Since it is superior in terms of N, which is greater than 0, in steps 120 to 135, the number of pixels M to be calculated is made constant based on kp (step 120), and the focus evaluation amount x(k),
Y(k) is calculated at the same time.

まずステップ120ではM= 38−1k piなる計
算をして演算画素数Mの値を決める0次いでステップ1
30〜135では先に求めたkPを中心にして、k=k
p−1、kp 、kp+1の3点で焦点評価量x(k)
 、 Y(k)を先と同様に演算する。尚前記演算画素
数Mを求める時、M=38−Ikplとしたのは、k=
kp−1、kp 、kp+1の3点のうち絶対値が最大
の相対変位量における演算画素数Mに固定するためであ
る0次に、前述のようにして求めた焦点評価量X(k)
 、 Y(k)から再び各々の焦点評価量による画素単
位の像ずれ量kpm、kpyを検出する(ステップ14
0゜141)、、m(71時昨冬点評価量X(k) 、
 Y(k)のコントラスト評価量を概ね表すXD (X
D −X(kpm) −X(kpx+1) )とY D
 (YD = Y(kpx+1) −Y(kpx) )
も求めておく、これは、この実施例では先願にて開示し
た様な演算方法に従って相対変位毎に端部の像信号の大
小を比較するのではなく(演算処理が複雑になるため)
、非合焦量が大きい時に、端部の像信号の情報も考慮さ
れたコントラスト評価量XD、YDをみることであたか
も相対変位毎の端部の像信号をみているかの如き情報が
得られることに着目して該情報を用いるためであり、コ
ントラスト評価量XD、YDが大きい程S/N的にすぐ
れていることになる。それ故ステップ142で二つのコ
ントラスト評価量XD。
First, in step 120, M = 38-1k pi is calculated to determine the number of pixels M to be calculated.
For 30 to 135, centering on kP obtained earlier, k=k
Focus evaluation amount x(k) at three points p-1, kp, kp+1
, Y(k) are calculated in the same way as before. In addition, when calculating the number of calculation pixels M, M=38-Ikpl is set because k=
This is to fix the number of calculation pixels M at the relative displacement amount with the largest absolute value among the three points kp-1, kp, and kp+1.0 Next, the focus evaluation amount X(k) obtained as described above is
, Y(k) to detect image shift amounts kpm and kpy in pixel units based on each focus evaluation amount (step 14).
0゜141),,m(71:00 last winter point evaluation amount X(k),
XD (X
D −X(kpm) −X(kpx+1) ) and Y D
(YD = Y(kpx+1) −Y(kpx) )
This is because in this embodiment, the magnitude of the image signal at the end is not compared for each relative displacement according to the calculation method disclosed in the previous application (because the calculation process becomes complicated).
, When the amount of out-of-focus is large, by looking at the contrast evaluation amounts XD and YD, which also take into account the information of the image signal at the edge, it is possible to obtain information as if you were looking at the image signal at the edge for each relative displacement. This is to focus on and use this information, and the larger the contrast evaluation amounts XD and YD, the better the S/N. Therefore, in step 142, two contrast evaluation quantities XD are calculated.

YDを比較して、XD≧YDの時は焦点評価量X(k)
 ヲ採用L(ステップ143)、XD<YD(7)時は
焦点評価量Y (k)を採用する(ステップ144)、
ステップ145,146では、採用したZD (Z I
  Z2 )  、 kzを用いてPR冨kz +lz
、 / 201 の補間演算を行い、画素単位以下の像ずれ量PRを求め
る。この過程を第9図に示している。この図の様な例で
は、XD<YDの関係にあるので焦点評価量Y(k)が
採用され、画素単位以下の像ずれ量PR@’j1時には
kz = kpy、 Zs =Y(kp)。
Compare YD and when XD≧YD, focus evaluation amount X(k)
wo is adopted L (step 143), and when XD<YD (7), the focus evaluation amount Y (k) is adopted (step 144).
In steps 145 and 146, the adopted ZD (Z I
Z2), PR using kz +lz
, /201 is performed to obtain the image shift amount PR in pixel units or less. This process is shown in FIG. In the example shown in this figure, since there is a relationship of XD<YD, the focus evaluation amount Y(k) is adopted, and when the image shift amount PR@'j1 is less than the pixel unit, kz = kpy, Zs = Y(kp).

Z2=Y(kp+1)が用いられる。Z2=Y(kp+1) is used.

ステップ150〜158は焦点状態を判定する処理であ
り、まずステップ150で4つのフラグLCFLG 、
 5DFLG、 NJFFLG 、 JFFLG を“
N”にセットする。夫々のフラグの意味を定性的に述べ
ると、rLCFLG Jは被写体像信号が低コントラス
トであることを表すフラグであり、r 5DFLGJは
2像のずれ量が比較的小さい、すなわち撮影レンズFL
NSの非合焦量が比較的小さいことを表すフラグであり
、r NJFFLG Jは2像のずれ量がかなり小さい
、すなわち撮影レンズFLNSが略合焦であることを表
すフラグであり、r JFFLGJは2像のずれ量がほ
とんどない、すなわち合焦であることを表すフラグであ
る。
Steps 150 to 158 are processes for determining the focus state. First, in step 150, four flags LCFLG,
5DFLG, NJFFLG, JFFLG“
To describe the meaning of each flag qualitatively, rLCFLGJ is a flag indicating that the subject image signal has low contrast, and r5DFLGJ is a flag indicating that the amount of deviation between the two images is relatively small, i.e. Photography lens FL
This is a flag indicating that the amount of out-of-focus of NS is relatively small. This flag indicates that there is almost no deviation between the two images, that is, that the two images are in focus.

次に、採用した焦点評価量のコントラスト評価量ZDと
所定値LOTHを比較する(ステップ151)。この結
果ZD<LCTHの場合にはコントラストが低いとみな
し、  rLcFLG Jを“Y′” (YESを意味
する)とし、サブルーチンrWPRED Jを終了する
。ZD≧LC:THの場合には焦点検出を行うのに十分
なコントラストであるとみなし1次のステップ153へ
移行する。ステップ153では、像ずれ量PRの絶対値
PRと所定値「3」を比較し、PR>3の場合、即ち像
ずれ量が3画素以上である時にはサブルーチンrWPR
ED Jを終了する。PR≦3の場合は比較的非合焦量
が小さいのでr 5DFLGJを“Y”としくステップ
154)、次いでPRと所定値「1」を比較する(ステ
ップ155)、この結果PR>1の場合、即ち像ずれ量
が1画素以上である時にはここでサブJl/ −5−ン
rWPREII Jを終了する。PR>1(7)場合に
は略合焦であるとしてr NJFFLG Jを“Y”と
しくステップ158)、最後にPRと所定値JFTHを
比較する(ステップ157)、尚所定値JFTHは像ず
れ量PRが合焦とみなし得る値である。
Next, the contrast evaluation amount ZD of the adopted focus evaluation amount is compared with a predetermined value LOTH (step 151). As a result, if ZD<LCTH, it is assumed that the contrast is low, rLcFLG J is set to "Y'" (meaning YES), and subroutine rWPRED J is ended. If ZD≧LC:TH, it is assumed that the contrast is sufficient to perform focus detection, and the process moves to the first step 153. In step 153, the absolute value PR of the image shift amount PR is compared with a predetermined value "3", and if PR>3, that is, the image shift amount is 3 pixels or more, the subroutine rWPR
Exit ED J. If PR≦3, the amount of out-of-focus is relatively small, so set r5DFLGJ to “Y” (step 154), then compare PR with a predetermined value “1” (step 155), and as a result, if PR>1 , that is, when the image shift amount is one pixel or more, the sub Jl/-5-rWPREII J ends here. If PR > 1 (7), it is assumed that the focus is almost in focus and r NJFFLG J is set to "Y" (step 158), and finally, PR is compared with a predetermined value JFTH (step 157), where the predetermined value JFTH is the image shift. The amount PR is a value that can be considered to be in focus.

この結果PR>JFTHの場合にはここでサブルーチン
rWPRED Jを終了する。PR≦JFTHの場合に
は合焦であるとみなしてr JFFLGJを“Y”とし
くステップ158)、サブルーチンrWPRED Jを
終了する。なお、前記4つのフラグLCFLG 、  
5DFLG、  NJFFLG 、  JFFLG  
の働きについては後述する。
As a result, if PR>JFTH, the subroutine rWPRED J is ended here. If PR≦JFTH, it is assumed that the lens is in focus, and rJFFLGJ is set to "Y" (step 158), and the subroutine rWPREDJ is ended. Note that the four flags LCFLG,
5DFLG, NJFFLG, JFFLG
The function of this will be explained later.

続いてサブルーチンrNPRED Jについて説明する
。  rNPRED Jは合焦近傍になると適用される
焦点検出処理で、全センサのうち、ファインダー内の測
距枠に相当する範囲内のデータでのみ焦点検出処理を行
う、このことをファインダーとセンサ列SAの位置関係
を示している第1O図を用いて説明する。線図において
FFRMはファインダー上の測距枠である。サブルーチ
ンrNPRED Jでは測距枠FFRにの範囲をさらに
R1+ R2、R3にて示す様に3つの領域に分割し、
各部毎に測距枠FFRに内の領域RI  * R2+ 
R3がセンサ列SAのどの画素に位置しているかは各部
の先頭に相当する画素位置N Rs  、 N R2、
N R3を調整工程で予め調べておき、制御回路PRS
内のEEPROMに記憶させておく、この時各部に含ま
れるNNPXは同じ(Rr =R2=R3) テあり、
コノ値NNPXモ同mにEEPROMに記憶させておく
、この実施例ではNNPX= 12 テ、N Rs  
、 N R2、N R3は夫々r8J  、、rl 4
J  、r2Qjであり、(NNPX +k〕がこの場
合の処理対象範囲となる(第12図の斜線部分)、これ
らの値は焦点検出用光学系並びにラインセンサSNSの
取り付は状況に応じて数画素ずれることがあるが、前記
の如< EEPROMに記憶させているため、測距枠F
FRMと焦点検出処理を行う演算の範囲を一致させるこ
とができる。
Next, the subroutine rNPRED J will be explained. rNPRED J is focus detection processing that is applied when the focus is near, and focus detection processing is performed only on data within the range corresponding to the distance measurement frame in the finder among all sensors. This will be explained using FIG. 1O, which shows the positional relationship between the two. In the diagram, FFRM is a distance measurement frame on the finder. In the subroutine rNPRED J, the range of the distance measurement frame FFR is further divided into three areas as shown by R1+R2 and R3.
Area RI * R2+ in distance measurement frame FFR for each part
The pixel in the sensor array SA where R3 is located is determined by the pixel positions N Rs , N R2 , and N R2 corresponding to the beginning of each part.
N R3 is checked in advance in the adjustment process, and the control circuit PRS
At this time, the NNPX contained in each part is the same (Rr = R2 = R3).
In this embodiment, the value NNPX is also stored in the EEPROM.
, N R2 and N R3 are respectively r8J ,, rl 4
J, r2Qj, and (NNPX +k) is the range to be processed in this case (the shaded area in Figure 12). Pixels may shift, but as described above, since it is stored in EEPROM, the distance measurement frame F
The calculation range for FRM and focus detection processing can be matched.

前記第5図の像信号に対して示しているRItR2+ 
R3が上記サブ)Lt −チンrNPREI] J 処
Fl ニおける分割領域である。
RItR2+ shown for the image signal in FIG.
R3 is the divided region in the above-mentioned sub)Lt-chinrNPREI].

サブルーチンrNPRED Jがコールされた時の動作
を第11図のフローに従って述べる。ステップ200で
演算画素数MをNNPXとする。前述したサブルーチン
rWPRED Jでは相対変位量kに応じて演算画素数
Mは可変であったが、この焦点検出処理ではNNPXに
固定である。これは、rwpRED Jが全画素出力を
演算に用いるのに対して、rNPRED Jではセンサ
列SAの一部の出力を用いるために、変位によって対応
するセンサ出力の端のデータが欠落することがないから
である。それ故rNPRED Jでは、rWPRED 
Jのステップ120〜141で行った演算画素数Mを一
定にした再演算を行うことはない、また、再演算を行わ
ないと言うことから、最初から評価量X(k)  、 
Y(k)を同時に求めていく。
The operation when subroutine rNPRED J is called will be described according to the flowchart of FIG. In step 200, the number M of pixels to be calculated is set to NNPX. In the subroutine rWPRED J described above, the number of calculated pixels M was variable according to the relative displacement amount k, but in this focus detection process, it is fixed to NNPX. This is because while rwpRED J uses all pixel outputs for calculations, rNPRED J uses a part of the output of the sensor array SA, so data at the end of the corresponding sensor output will not be lost due to displacement. It is from. Therefore, in rNPRED J, rWPRED
There is no recalculation performed with the number of calculated pixels M constant in steps 120 to 141 of J, and since no recalculation is performed, the evaluation amount X(k),
Find Y(k) at the same time.

ステップ210〜221は領域R1の像データに対する
焦点検出処理である0図中rWPRED Jと同一の処
理部分は同じステップ番号を付しである。サブルーチン
rNPRED Jでは相対変位量にの範囲を(−4〜4
)としている、これはr NPRED」が合焦近傍で適
用されるものであるため、もともと像ずれ量が小さいか
らである。この場合ステップ212,213に示した様
に、領域R1の先頭位置NR,が考慮されている。この
処理過程を第13図(a)に示す0図中実線が焦点評価
量X(k)を、又破線がY (k)を表す。rltlP
i’lEI] Jにて説明したのと同様の処理(ステッ
プ140〜146)により領域R1における像ずれ量P
R,を求る。ステップ221−r!像ずれ量PR,とコ
ントラスト評価量ZD1を制御回路PR9内のRAMに
記憶しておく、同様に、ステップ230〜241では領
域R2におけるにおける像ずれ量PR2、コントラスト
評価量ZD2 (第13図(b)参照)を求め、ステッ
プ250〜261では領域R3における像ずれ量PR3
、コントラスト評価量ZD3 (第13図(C)参照)
を求め、これらも制御回路PR5内のRAMに記憶して
おく。
Steps 210 to 221 are focus detection processing for the image data of the region R1. In Figure 0, the same processing parts as rWPRED J are given the same step numbers. In the subroutine rNPRED J, the range of relative displacement amount is (-4 to 4).
), this is because the amount of image shift is originally small since r NPRED is applied near focus. In this case, as shown in steps 212 and 213, the starting position NR of the region R1 is taken into consideration. This processing process is shown in FIG. 13(a), in which the solid line represents the focus evaluation amount X(k), and the broken line represents Y(k). rltlP
i'lEI] The image shift amount P in the region R1 is determined by the same process (steps 140 to 146) as explained in J.
Find R. Step 221-r! The image shift amount PR, and the contrast evaluation amount ZD1 are stored in the RAM in the control circuit PR9.Similarly, in steps 230 to 241, the image shift amount PR2 and the contrast evaluation amount ZD2 in the area R2 are stored in the RAM in the control circuit PR9. ) is calculated, and in steps 250 to 261, the image shift amount PR3 in the region R3 is calculated.
, contrast evaluation amount ZD3 (see Figure 13(C))
These are also stored in the RAM in the control circuit PR5.

ステップ270〜278では前述のようにして求めた3
つの領域RI 、R2、R3の像ずれ量PR+  、P
H1、PH1のうち、いずれの像ずれ量を最終的な像ず
れ量PRとするかといった判断を行っている。即ち、本
実施例では3つの領域のうち、コントラストが十分に高
くて、且つ最大の償ずれ量を採用するようにしている。
In steps 270 to 278, the 3
Image shift amounts PR+ and P of the three regions RI, R2, and R3
It is determined which of H1 and PH1 the image shift amount should be set as the final image shift amount PR. That is, in this embodiment, among the three regions, the one with sufficiently high contrast and the largest amount of compensation shift is used.

ここで最大の像ずれ量を採用する意味は、像ずれ量が正
の時は後ピントであり、最も後ピントの被写体とは最も
至近側の被写体であり、その被写体にピントを合わせる
ということである。最終的な像ずれ量PRとコントラス
ト評価量ZDを求めた後、ステップ280で焦点状態の
判定を行う、ここでの処理はrWPRED Jにて説明
した処理と同様であるので、その説明は省略する。
The meaning of adopting the maximum amount of image shift here is that when the amount of image shift is positive, it is back in focus, and the subject that is most back in focus is the closest subject, and the focus is on that subject. be. After determining the final image shift amount PR and contrast evaluation amount ZD, the focus state is determined in step 280. The processing here is the same as the processing explained in rWPRED J, so the explanation thereof will be omitted. .

以上のように、非合焦量が大きい様な状態にあってはサ
ブルーチンrWPRED」により、合焦近傍状態にあっ
てはサブルーチンrNPRED Jにより、その時の像
ずれ量、すなわち撮影レンズFLNSの非合焦量の検出
を行うことができる。
As described above, in a state where the amount of out-of-focus is large, the subroutine rWPRED is used to determine the amount of image shift at that time, that is, the out-of-focus amount of the photographing lens FLNS is determined by the subroutine rNPRED J when the amount of defocus is large. Quantity detection can be performed.

第2図に戻って、ステップ15よりの説明を続ける。ス
テップ15はフラグLCFLGを見て先に行われた「讐
PRED J或いはrNPRED Jの焦点検出処理時
でのコントラストをチェックする。LCFLGが“Y”
の時はコントラストが低いとして次回の焦点検出処理は
rWPRED Jを用いるようにフラグvSNを“WD
”としくステップ35)、表示すブルーチンrDIsP
J 、レンズ制御サブルーチンr LENSJを実行す
る(ステップ19.20)、前記表示すブルーチンrD
IsPJは本発明とは直接関係ないのでここでは割愛す
るが、レンズ制御サブルーチンr LENSJについて
は後述する。
Returning to FIG. 2, the explanation from step 15 is continued. In step 15, the flag LCFLG is checked to check the contrast during the focus detection process of PRED J or rNPRED J that was performed earlier. LCFLG is "Y".
, the contrast is low and the flag vSN is set to “WD” so that the next focus detection process uses rWPRED J.
” then step 35), the blue routine rDIsP to display
J, execute the lens control subroutine r LENSJ (step 19.20), and execute the aforementioned display routine rD.
Since IsPJ is not directly related to the present invention, it will be omitted here, but the lens control subroutine rLENSJ will be described later.

ステップ16では再びフラグVSNをチェックする。 
VSNが“’WD”の時にはステップ17以下の処理を
行い、“”NR”の時にはステップ28以下の処理を行
う。
In step 16, the flag VSN is checked again.
When the VSN is "'WD", the processing from step 17 onwards is performed, and when the VSN is "'NR", the processing from step 28 onwards is performed.

まずVSN=“WO”の時の処理を説明する。VSN=
“”WD”とは、先の焦点検出処理をrWPRED J
で行ったことを表す、ステップ17ではフラグRCFL
Gをチェックする。 RCFLGはrAFJのルーチン
内で2回焦点検出処理をするときは“Y”となっている
1本実施例では、  rAFJのルーチンを実行する時
、最初は前回のrAFJで設定されたVSNでrWPR
ED J或いはr NPREDノいずれかを実行する(
なおレリーズが行われた初期においてはVSNは°“w
o”となっている)が、その結果である像ずれ量がそれ
ぞれの条件にふされしくない時、VSNを設定し直して
フラグRCFLGを“Yパとして今度は異tt6焦点検
出処理rNPRED J或いはrWPRED Jを実行
するようになる。 RCFLGはそのためのフラグであ
る。 VSHの再設定については後述する。
First, the processing when VSN="WO" will be explained. VSN=
“WD” refers to the previous focus detection process.
In step 17, the flag RCFL is set.
Check G. RCFLG is "Y" when focus detection processing is performed twice in the rAFJ routine. In this embodiment, when executing the rAFJ routine, rWPR is initially set at the VSN set in the previous rAFJ.
Execute either ED J or r NPRED (
In addition, in the early stage when the release was performed, VSN was °“w
o"), but when the resulting image shift amount is not suitable for each condition, reset the VSN and set the flag RCFLG to "Ypa" and then perform a different tt6 focus detection process rNPRED J or rWPRED J will now be executed. RCFLG is a flag for this purpose. VSH resetting will be described later.

フラグRC:FLGがN”、即ち第1回目の焦点検出処
理の時、フラグ5DFLGをチェックする(ステップ1
8 ) 、 5DFLGは前述した様にrlilPRE
D J或いはrNPREI) J中で設定されるフラグ
で(このステップでの5DFLGはrWPRED J中
に設定されている)、このフラグが“Y” (3画素以
内)の時は現在の焦点状態が比較的合焦に近いことを意
味Lテ1..’ル、従ッテ、VSNが“WD” テ5D
FLGが”N”  (3画素以上) ナラ1f、rWP
RE[] J +[i切であったとして表示すブルーチ
ンrDIsPJ 、レンズ制御サブルーチンr LEN
SJの実行へと移行する。一方、5DFLGが“Y”で
あればrNPRED Jで再演算した方が適切である、
即ち精度の良い像ずれ量PRを得ることができると考え
て、VSNを”NR’“にしくステップ21)、像ずれ
量PRをバッファBPRに一時格納しくステップ22)
、RCFLGを°゛Y″として(ステップ23)、再度
ステップ12よりのルーチン(実際はステップ12→ス
テツプ14→ステツプ15→ステツプ16−ステップ2
8→ステツプ33→)の実行へと移行する。前記ステッ
プ22において像ずれ量PRをバッファBPRに一時格
納する理由は1次のサブルーチンrNPRED Jにて
演算した結果が適切でない場合、つまりrNPRED 
Jにて演算した結果、ステップ33での5DFLGが“
N”(3画素以上)であった場合、サブルーチンrWP
RED J 1回目で得た像ずれ量PRを採用するため
である(ステップ34→ステツプ27→)。
When flag RC:FLG is N'', that is, during the first focus detection process, flag 5DFLG is checked (step 1).
8), 5DFLG is rlilPRE as mentioned above.
D J or rNPREI) A flag set in J (5DFLG at this step is set in rWPRED J), and when this flag is “Y” (within 3 pixels), the current focus state is compared. Lte means close to focus 1. .. 'Ru, Jutte, VSN is "WD" Te5D
FLG is “N” (3 pixels or more) Oak 1f, rWP
RE[] J + [i Blue routine to display as being off rDIsPJ, lens control subroutine r LEN
Move on to SJ execution. On the other hand, if 5DFLG is "Y", it is more appropriate to recalculate with rNPRED J.
That is, thinking that it is possible to obtain a highly accurate image shift amount PR, set VSN to "NR" (step 21), and temporarily store the image shift amount PR in the buffer BPR (step 22).
, RCFLG is set to ``Y'' (step 23), and the routine starts again from step 12 (actually, step 12 → step 14 → step 15 → step 16 - step 2).
8→Step 33→) is executed. The reason why the image shift amount PR is temporarily stored in the buffer BPR in step 22 is that the result calculated in the primary subroutine rNPRED J is not appropriate, that is, rNPRED
As a result of calculation in J, 5DFLG in step 33 is “
N” (more than 3 pixels), subroutine rWP
RED J This is to use the image shift amount PR obtained at the first time (step 34→step 27→).

ステップ17でRCFLGが°Y゛′の時、即ち2回目
の焦点検出処理の時は、ステップ24へ移行しここでS
t]FLGをチェックする。その結果S[1FLGが“
N”の場合はこの時の焦点検出処理がrWPRED」で
あるからここでの焦点検出処理は適切であるとして表示
すブルーチンrorsp」、レンズ制御サブルーチンr
 LENJJの実行へと移行する。又5DFLGが’Y
”の場合は、RCFLGがY”テVSNが“WD”であ
るから、1回目の焦点検出処理はrNPRED Jで行
われ、且つ結果がrNPRED Jでは適切でなかった
ことになる。後述するが、rNPRED Jの1回目で
は、フラグNJFFLGが“Y”、すなわち略合焦でな
ければ適切でないと判断しているが、 5DFLGが“
Y”であればフラグNRSDFLGを“Y′° (合焦
ではないが1画素以内である)としている、っまり N
RSDFLGが“Y”であれば、rNPRED Jの1
回目において、略合焦ではないが比較的合焦に近かった
ことを意味している。この時「NPRED Jでの像ず
れ量PRはバッファBPRに一時格納されている。従っ
てステップ24で5DFLGが″“Y”ならば、rWP
RED J 2回目で比較的合焦に近いということであ
るので、rNPRED J 1回目の結果を参照すべく
ステップ25でフラグNR9DFLGをチェックする。
When RCFLG is °Y' in step 17, that is, when the second focus detection process is performed, the process moves to step 24, where S
t] Check FLG. As a result, S[1FLG is “
In the case of "N", the focus detection processing at this time is "rWPRED", so the focus detection processing here is displayed as being appropriate.
Move on to the execution of LENJJ. Also 5DFLG is 'Y
”, RCFLG is Y and VSN is “WD”, so the first focus detection process was performed with rNPRED J, and the result was not appropriate with rNPRED J. As will be explained later, in the first rNPRED J, it is determined that the flag NJFFLG is "Y", that is, it is not appropriate unless it is almost in focus, but 5DFLG is "
If it is “Y”, the flag NRSDFLG is set to “Y′° (not in focus, but within 1 pixel), which means N
If RSDFLG is “Y”, 1 of rNPRED J
This means that although it was not almost in focus, it was relatively close to being in focus. At this time, the image shift amount PR at NPRED J is temporarily stored in the buffer BPR. Therefore, if 5DFLG is "Y" in step 24, rWP
Since the second RED J is relatively close to focus, the flag NR9DFLG is checked in step 25 to refer to the result of the first rNPRED J.

ここでNRSDFLGが“N” (1画素以上)ならば
、1回目は適切でないことになり、rWPRED J 
2回目の像ずれ量PRを用いて表示すブルーチンrDI
SPJ 、  レンズ制御サブルーチンrLENsJの
実行へと移行する。  NRSDFLGが“Y″ならば
、次回のrAFJでは1回目の焦点検出処理をrNPR
ED Jにすべ(VSNを“’NR”としくステップ2
6)、バッファBPR内に既に格納済みのrNPRED
 J 1回目での像ずれ量PRを取り出して(ステップ
27)、表示すブルーチンrDISPJ 、  レンズ
制御サブルーチンrLENsJの実行へ一時と移行する
If NRSDFLG is "N" (1 pixel or more), the first time is not appropriate, and rWPRED J
Blue routine rDI displayed using the second image shift amount PR
SPJ, the process moves to execution of the lens control subroutine rLENsJ. If NRSDFLG is "Y", the first focus detection process will be performed at rNPR in the next rAFJ.
ED J (set VSN to “'NR” Step 2
6) rNPRED already stored in buffer BPR
J The first image shift amount PR is taken out (step 27), and the process temporarily moves to execution of a display blue routine rDISPJ and a lens control subroutine rLENsJ.

フローを逆上って、ステップ16でVSNが“NR”と
判断された場合はステップ28でフラグRCFLGをチ
ェックする。ここでRCFLGが°°N°゛の時はrN
PRED J 1回目を、Y”の時はr NPREDJ
Z回目を意味している。N”の場合にはステーyプ29
 テ5DFLGヲf ニックt ル、  5DFLIJ
<“N′”の時はrNPRED Jでは適切でないとし
て、2回目の焦点検出処理をrWPRED Jで行わせ
るべく VSNを“1110”としくステップ30) 
、  rWPRED」での像ずれ量PRをバッファBP
Rに一時格納しくステップ22)、 RCFLGを°“
Y”として(ステップ23)、再びステップ12よりの
ルーチンの実行へと移行する(実際はステップ12→ス
テツプ13→ステツプ15→ステツプ17→ステツプ2
4→)の実行へと移行する。ステップ29で5DFLG
がY”であった時はステップ31でフラグNJFFLG
をチェックする。これは先のステップ25でも説明した
が、rNPRED J 1回目ではNJFFLGによっ
て焦点検出処理が適切であったか否かを判定している。
Reversing the flow, if the VSN is determined to be "NR" in step 16, the flag RCFLG is checked in step 28. Here, when RCFLG is °°N°゛, rN
PRED J If the first time is Y”, r NPREDJ
It means the Zth time. If “N”, step 29
Te5DFLGwof Nickt Le, 5DFLIJ
<When it is "N'", rNPRED J is not appropriate, so in order to perform the second focus detection process on rWPRED J, set VSN to "1110" (Step 30)
, rWPRED' image shift amount PR is buffer BP.
Step 22) to temporarily store RCFLG in R.
Y" (step 23), and the routine returns to step 12 (actually, step 12 → step 13 → step 15 → step 17 → step 2)
The process moves on to the execution of 4→). 5DFLG in step 29
is Y”, flag NJFFLG is set in step 31.
Check. This was explained in step 25 above, but in the first rNPRED J, it is determined by NJFFLG whether the focus detection process was appropriate.

ステップ31でNJFFLGが“”N”(1画素以上、
3画素以内)ならば略合焦ではないが比較的合焦に近い
ということで、もしもの場合を考えて再度行う焦点検出
処理r WPREDJZ回目のステップ25において使
用するために、フラグNRSDFLGを“Y 11とし
てステップ3゜へと移行する。またステップ22でバッ
ファBRPに一時格納されるrNPRED J i回目
の像ずれ量PRは必要に応じて、即ちrWPREI] 
J 2回目のステップ27において使用される。
In step 31, NJFFLG is set to “”N” (1 pixel or more,
If the focus is within 3 pixels), it means that the focus is not substantially focused, but it is relatively close to the focus, so the focus detection process is performed again in case the situation arises. 11, the process moves to step 3°.In addition, in step 22, the rNPREDJ i-th image shift amount PR, which is temporarily stored in the buffer BRP, is determined as necessary, that is, rWPREI]
J Used in the second step 27.

前記ステップ28でRCFLGが“Y”の詩はrNPR
ED J Z回目であり、前述からもわかるように1回
目はrWPRED Jにおいて結果が不適切と判定され
たことを意味する。又前述した様に、ステー2ブ33で
5DFLGをチェックして“Y′°ならばr NPRE
DJ2回目は適切と判定し、そのままの像ずれ量PRで
表示すブルーチンrDISPJ 、レンズ制御サブルー
チンr LENSJの実行へと移行する。5DFLGが
N IIであればrNPRED J 2回目は不適切と
して、次回のrAFJにおける焦点検出処理をr WP
RED」に設定すべ(VSNを“WD”としくステップ
34)、rWPRED J  1回目で一時記憶バッフ
ァBPRに格納されている像ずれ量PRを取り出して(
ステップ27)、表示すブルーチンrDISPJ 、レ
ンズ制御サブルーチンrLENSJの実行へと移行する
Poems for which RCFLG is “Y” in step 28 are rNPR.
This is the Z-th time of ED J, and as can be seen from the above, the first time means that the result was determined to be inappropriate in rWPRED J. Also, as mentioned above, check the 5DFLG in the stave 233, and if it is "Y'°, r NPRE
The second DJ is determined to be appropriate, and the routine moves to execution of a blue routine rDISPJ for displaying the image shift amount PR as it is, and a lens control subroutine r LENSJ. If 5DFLG is N II, rNPRED J The second time is considered inappropriate, and the focus detection process in the next rAFJ is r WP
RED" (set VSN to "WD" and step 34), rWPRED J At the first time, take out the image shift amount PR stored in the temporary storage buffer BPR (
In step 27), the process moves to execution of the display blue routine rDISPJ and the lens control subroutine rLENSJ.

以上のr AFJの処理の流れを簡単にまとめると、 
 rAFJがコールされると、センサ列SAの像信号t
[l込ミ(rIMAGE J ) 、 fi焦点1処理
rWPRED J或いはrNPRED Jを行うわけで
あるが、「WPRED Jは非合焦量が大きい時に、r
NPRED Jは合焦近傍時に適用されるという前提の
もとに、検出された像ずれ量がその時の処理に不適切な
場合、適切な処理方式にて同一像信号を再演算し、結局
レンズ制御に採用する像ずれ量PRは、非合焦量が大き
い時にはrWPRED Jにより、合焦近傍時にはrN
PRED Jにより演算されたものとなる。
To briefly summarize the process flow of r AFJ above,
When rAFJ is called, the image signal t of sensor array SA
[Includes rIMAGE J, fi focus 1 processing rWPRED J or rNPRED J.
Based on the premise that NPRED J is applied when the focus is near, if the detected image shift amount is inappropriate for the processing at that time, the same image signal is recalculated using an appropriate processing method, and eventually the lens control The image shift amount PR used is rWPRED J when the amount of out-of-focus is large, and rN when it is close to focusing.
It is calculated by PRED J.

つまり、非合焦量が大きい時にはrWPRED Jによ
り焦点検出処理を行った方が非合焦状態が良くわかり、
この結果が合焦近傍時であると判断された場合にはrN
PRED Jにより焦点検出処理を行った方が焦点検出
精度を高めることができるからである。
In other words, when the amount of out-of-focus is large, it is better to perform focus detection processing using rWPRED J, so that the out-of-focus state can be better understood.
If this result is determined to be near focus, rN
This is because focus detection accuracy can be improved by performing focus detection processing using PRED J.

次に、第14図のフローを用いてサブルーチンr LE
NSJについて説明する。ステップ60でフラグLCF
LGをチェックする。このフラグは前述した様に焦点検
出処理の対象となる像信号のコントラスト評価量が高い
時は°°N”となっている、 LCFLGがN”の時は
、像信号には焦点検出処理に十分なコントラストがあっ
たとして、処理結果である像ずれ量PRに基づいて撮影
レンズFLNSの制御を行う、まずレンズ通信回路LC
OMに入力する信号BSYをチェックする(ステップ6
1)、この信号BSYが“H′”の間はレンズ内制御回
路LPRSとは通信不能であるので、該信号BSYが“
L” (ローレベル)になるまで待つ、前記信号BSY
がL°′になると、レンズ内制御回路LPRSから撮影
レンズFLNSのデフォーカス対レンズ移動量の係数S
を信号DLCより入力する(ステップ62)6次に像ず
れ量PRから撮影レンズFLNSのデフォーカス量DE
Fを、DEF=に・PRなる式にて計算する(ステップ
63)、には焦点検出用光学系によって設定される値で
、予め設定されている。続いてデフォーカス量DEFと
係数Sから撮影レンズFLNSの移動量FPを、FP=
DEF/Sで計算する(ステップ64)、FPはエンコ
ーダ回路ENCのカウントaに相当する。そして、ステ
ップ65で再び信号日SYのチェックを行い、信号BS
YがL′”となると。
Next, using the flow shown in FIG. 14, subroutine r LE
Let me explain about NSJ. At step 60, the flag LCF is
Check out LG. As mentioned above, this flag is set to °°N'' when the contrast evaluation amount of the image signal to be subjected to focus detection processing is high.When LCFLG is N'', the image signal is sufficient for focus detection processing. First, the lens communication circuit LC controls the photographing lens FLNS based on the image shift amount PR, which is the processing result.
Check the signal BSY input to OM (step 6
1) While this signal BSY is "H'", it is impossible to communicate with the in-lens control circuit LPRS, so the signal BSY is "H'".
The signal BSY waits until it becomes L” (low level).
When becomes L°', the in-lens control circuit LPRS transmits the coefficient S of the defocus versus lens movement amount of the photographing lens FLNS.
is input from the signal DLC (step 62).Next, the defocus amount DE of the photographing lens FLNS is determined from the image shift amount PR.
F is calculated using the formula DEF=PR (step 63), which is a value set in advance by the focus detection optical system. Next, from the defocus amount DEF and the coefficient S, the movement amount FP of the photographing lens FLNS is calculated as FP=
Calculated by DEF/S (step 64), FP corresponds to the count a of the encoder circuit ENC. Then, in step 65, the signal date SY is checked again, and the signal BS
When Y becomes L'''.

前記レンズ移動量FP(信号DCL )をレンズ内制御
回路LPRSへ通信する(ステップ66)、一方、LC
:FLGが“Y”の時は、コントラストが十分でないで
ないとして、サーチ動作を行うべく撮影レンズFLNS
(7)移動量FPを、F P =CDEF/S テ計算
する(ステップ67) 、 C:DEFは1回のサーチ
動作で移動させるレンズ移動量をデフォーカス量に換算
してものであり、予め設定されている。
The lens movement amount FP (signal DCL) is communicated to the intra-lens control circuit LPRS (step 66), while the LC
: When FLG is "Y", it is assumed that the contrast is not sufficient, and the photographing lens FLNS is set to perform a search operation.
(7) Calculate the movement amount FP as F P =CDEF/S (step 67), C:DEF is the amount of lens movement to be moved in one search operation converted into a defocus amount, and is It is set.

レンズ内制御回路LPR9は前記レンズ移動量FPが入
力すると、該情報に基づいて撮影レンズFLNSの駆動
制御を行う、撮影レンズFLNSが停止することにより
、像信号A(i)  、 B(i)の入力から始まった
焦点調節の一連のrAFJ処理が終了する。
When the lens movement amount FP is input, the in-lens control circuit LPR9 controls the drive of the photographing lens FLNS based on the information.When the photographing lens FLNS is stopped, the image signals A(i) and B(i) are controlled. A series of rAFJ processing for focus adjustment that started from the input is completed.

本実施例によれば、ファインダ測距枠に対応する画素の
範囲(有効範囲)を調整工程で予め調べておき、EEP
ROM内に記憶させておく様にしているため、機械的調
整が不用となり、作業能率が非常に良いものとなる。ま
た、同一の構成から成るカメラで、ファインダー測距枠
のみを異なるもの(マット面、スブリフトイメージ)に
変更したい様な場合でも、その変更が容易となる。更に
、組立て終了後、センサに感度ムラがあることがわかっ
た場合、或いはAF光学系に収差があることがわかった
場合等、その部分を避けて使用するといったことを容易
にできる。
According to this embodiment, the range of pixels (effective range) corresponding to the finder distance measurement frame is checked in advance in the adjustment process, and the EEP
Since it is stored in the ROM, no mechanical adjustment is required, resulting in very high work efficiency. Furthermore, even if you want to change only the finder distance measurement frame to a different one (matte surface, subrift image) in cameras with the same configuration, it is easy to do so. Further, after the assembly is completed, if it is found that the sensor has uneven sensitivity, or if it is found that the AF optical system has aberrations, it is possible to easily avoid that part and use it.

(発明と実施例の対応) 本実施例において、撮影レンズFLNSが本発明の結像
光学系に、フィールドレンズFLD 、二次結像レンズ
FCLA 、 FCLHが光学系に、センサ列SAA 
、 SABが複数画素から成る光電変換手段に、CPU
が演算手段に、EEPROMが記憶手段に相当する。
(Correspondence between the invention and the embodiments) In this embodiment, the photographic lens FLNS is included in the imaging optical system of the present invention, the field lens FLD, the secondary imaging lenses FCLA and FCLH are included in the optical system, and the sensor array SAA is included in the optical system.
, SAB is a photoelectric conversion means consisting of a plurality of pixels, and a CPU
corresponds to the calculation means, and the EEPROM corresponds to the storage means.

(変形例) 本実施例では、「像ずれ型」の装置について説明したが
、これに限定されるものではなく、焦点面でコントラス
ト変化を検出する、いわゆる「鮮鋭度型」の焦点検出装
置にも適用することが可能である。
(Modified example) In this embodiment, an "image shift type" device has been described, but the present invention is not limited to this, and a so-called "sharpness type" focus detection device that detects a contrast change on a focal plane can be used. can also be applied.

(発明の効果) 以上説明したように、本発明によれば、有効な光電変換
信号を発生する有効画素範囲を記憶する記憶手段を設け
、以て、前記記憶手段に記憶された有効画素範囲に基づ
いて焦点検出処理を行うようにしたから、光電変換手段
の機械的調整を不用とすると共に、設計変更に対応する
ことができる。
(Effects of the Invention) As explained above, according to the present invention, a storage means for storing an effective pixel range that generates an effective photoelectric conversion signal is provided, and the effective pixel range stored in the storage means is stored. Since the focus detection process is performed based on this, mechanical adjustment of the photoelectric conversion means is not required, and design changes can be accommodated.

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

第1図は本発明を実施するのに好適なカメラの焦点?A
節装置の一例を示すブロック図、第2図はその一部のフ
ローチャート、第3図は同じく一部のフローチャート、
第4図及び第5図はセンナ列より出力される像信号の一
例を示す図、第6図は一部のフローチャート、第7図は
焦点検出演算時の2像の対応関係を示す図、第8図は評
価量の変化を示す図、第9図は同じく一部の評価量の変
化を示す図、第1も図は一部のフローチャート、第1(
図はファインダー測距枠とセンサ列の位置間係を示す図
、第12図は焦点検出演算時の2像の対応関係を示す図
、第13図は一部の評価量の変化を示す図、第14図は
一部のフローチャート。 第15図は一般的な二次結像方式焦点検出装置の光学系
を示す配置図である。 PR9・・・・・・制御回路、LCOM・・・・・・レ
ンズ通信回路、LNSU・・・・・・レンズユニット、
SDR・・・・・・センサ駆動回路、SAA、SAB・
・・・・・センサ列、 FLNS・・・・・・撮影レン
ズ、k・・・・・・相対変位量。 第7図 第8図 を 第10図 ]3 第14図 C蓮より NPRED−1第11図1 ゛ 第12図 A(PA) A(PA) シ 第13図 (a)         (b)         (
c)第15図
FIG. 1 shows the focal point of a camera suitable for implementing the present invention? A
A block diagram showing an example of a joint device, FIG. 2 is a flowchart of a part of it, and FIG. 3 is a flowchart of a part of it.
4 and 5 are diagrams showing an example of the image signal output from the sensor array, FIG. 6 is a partial flow chart, and FIG. 7 is a diagram showing the correspondence between two images during focus detection calculation. Figure 8 is a diagram showing changes in evaluation quantities, Figure 9 is a diagram also showing changes in some evaluation quantities, Figure 1 is a partial flowchart, Figure 1 (
The figure shows the relationship between the positions of the finder rangefinder frame and the sensor array, Figure 12 shows the correspondence between two images during focus detection calculation, and Figure 13 shows changes in some evaluation quantities. FIG. 14 is a partial flowchart. FIG. 15 is a layout diagram showing an optical system of a general secondary imaging type focus detection device. PR9... Control circuit, LCOM... Lens communication circuit, LNSU... Lens unit,
SDR・・・Sensor drive circuit, SAA, SAB・
...Sensor row, FLNS...Photographing lens, k...Relative displacement amount. Fig. 7, Fig. 8, Fig. 10] 3 Fig. 14 C NPRED-1 Fig. 11 1 ゛ Fig. 12 A (PA) A (PA)
c) Figure 15

Claims (1)

【特許請求の範囲】[Claims] (1)複数画素から成る光電変換手段と、結像光学系を
通過した光を前記光電変換手段に結像させる光学系と、
前記光電変換手段よりの光電変換信号に所定の焦点検出
処理を行うことにより、前記結像光学系の焦点状態を検
出する演算手段とを備えた焦点検出装置において、前記
演算手段中に、有効な光電変換信号を発生する有効画素
範囲を記憶する記憶手段を設けたことを特徴とする焦点
検出装置。
(1) a photoelectric conversion means consisting of a plurality of pixels; an optical system that images the light passing through the imaging optical system on the photoelectric conversion means;
A focus detection device comprising: a calculation means for detecting a focus state of the imaging optical system by performing predetermined focus detection processing on a photoelectric conversion signal from the photoelectric conversion means; A focus detection device comprising a storage means for storing an effective pixel range for generating a photoelectric conversion signal.
JP61160826A 1986-07-10 1986-07-10 Optical device Expired - Lifetime JP2671206B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61160826A JP2671206B2 (en) 1986-07-10 1986-07-10 Optical device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61160826A JP2671206B2 (en) 1986-07-10 1986-07-10 Optical device

Publications (2)

Publication Number Publication Date
JPS6318315A true JPS6318315A (en) 1988-01-26
JP2671206B2 JP2671206B2 (en) 1997-10-29

Family

ID=15723245

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61160826A Expired - Lifetime JP2671206B2 (en) 1986-07-10 1986-07-10 Optical device

Country Status (1)

Country Link
JP (1) JP2671206B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015138089A (en) * 2014-01-21 2015-07-30 キヤノン株式会社 Image capturing device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58150918A (en) * 1982-03-03 1983-09-07 Canon Inc Focus detector

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58150918A (en) * 1982-03-03 1983-09-07 Canon Inc Focus detector

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015138089A (en) * 2014-01-21 2015-07-30 キヤノン株式会社 Image capturing device

Also Published As

Publication number Publication date
JP2671206B2 (en) 1997-10-29

Similar Documents

Publication Publication Date Title
JPS6318314A (en) Focus detecting device
JP2597961B2 (en) Automatic focusing device
US6311019B1 (en) Automatic focus adjusting system capable of adjusting focus of moving subject
JPS6318312A (en) Focus detector
US5930532A (en) Automatic focusing device of camera having highly reliable movement prediction feature
JPH0629895B2 (en) Focus state determination device
US6081668A (en) Camera
JPS6318313A (en) Focus detector
JPS6318315A (en) Focus detecting device
US4800261A (en) Apparatus for detecting focusing state of objective lens
JPH11337814A (en) Optical device
JP3096828B2 (en) camera
JP4610714B2 (en) Multi-point autofocus camera
JPS62133412A (en) Focus detecting system
JPS62133409A (en) Focus detecting system
JP3117793B2 (en) Focus adjustment device
JPS62133410A (en) Focus detecting system
JP2964586B2 (en) Camera image blur detection device
JP2671206C (en)
JPH07301747A (en) Optical devices provided with focus detection device
JPS62133411A (en) Focus detecting system
JPH11271598A (en) Optical device
JPH087324B2 (en) Automatic focus adjustment device
JPH085905A (en) Camera with focus detecting device
JPH0643356A (en) Focus detector

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term