Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2754471B2 - Focus detection device - Google Patents
[go: Go Back, main page]

JP2754471B2 - Focus detection device - Google Patents

Focus detection device

Info

Publication number
JP2754471B2
JP2754471B2 JP23236795A JP23236795A JP2754471B2 JP 2754471 B2 JP2754471 B2 JP 2754471B2 JP 23236795 A JP23236795 A JP 23236795A JP 23236795 A JP23236795 A JP 23236795A JP 2754471 B2 JP2754471 B2 JP 2754471B2
Authority
JP
Japan
Prior art keywords
data
focus detection
focus
auxiliary light
tertiary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP23236795A
Other languages
Japanese (ja)
Other versions
JPH08201684A (en
Inventor
洋介 日下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP23236795A priority Critical patent/JP2754471B2/en
Publication of JPH08201684A publication Critical patent/JPH08201684A/en
Application granted granted Critical
Publication of JP2754471B2 publication Critical patent/JP2754471B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、カメラ等の焦点検出装
置に関する。 【0002】 【従来の技術】従来イメージセンサを用いて被写体像の
輝度分布を示すデータ情報を得て、このデータ情報を処
理することにより焦点検出を行なう焦点検出装置が知ら
れている。以下、従来の焦点検出装置について説明す
る。図17は、カメラにおけるこの種の焦点検出装置の
構成例である。図17 において、符号1は1眼レフカ
メラを示し、被写体からの光束は、撮影レンズ2、ハー
フミラー3を通過した後サブミラー4により反射され、
フィルム面5と等価な位置に検出面をもつ焦点検出光学
系モジュール6へ導かれる。焦点検出光学系モジュール
6は、例えば図18において破線内部に示す構成となっ
ている。図18において、符号2は図17に示したもの
と同じ撮影光学系である。撮影光学系2の射出瞳の第1
部分28及び第2部分29をそれぞれ通過した光束のそ
れぞれは、撮影光学系2の予定結像面27(前記フィル
ム面5と等価な面)の近傍に第1及び第2の被写体像を
各々形成する。 【0003】この第1及び第2の被写体像の各々は、フ
ィールドレンズ22を介して、第1及び第2の再結像レ
ンズ23、24により第1及び第2のイメージセンサ2
5、26上に再結像される。イメージセンサ25、26
は例えばCCD等によって構成されており、被写体輝度
に応じた電荷蓄積を行ないイメージセンサ25、26上
の被写体像の光強度分布に関する信号を出力する。 【0004】以上のように図17において焦点検出光学
系モジュール6から出力された被写体像の光強度分布に
関する信号は、A/D変換手段8によりA/D変換さ
れ、中央処理手段9に被写体像データとして取り込まれ
る。中央処理手段9は、取り込まれた被写体像に対して
所定の焦点検出演算を施こし、撮影光学系2の結像面と
フィルム面5との焦点調節状態(検出不能、前ピン、後
ピン、合焦、デフォーカス量等)に関する情報を得、そ
れらに応じて表示手段11,撮影レンズ駆動手段10,
カメラに着脱可能な電子閃光装置に内蔵された補助光手
段12(被写体が暗い場合に特定のパターンを被写体上
に投影する手段)等を駆動制御する。又前記イメージセ
ンサ25、26の電荷蓄積制御等も中央処理手段9によ
って行なわれる。 【0005】以上のようなシステムにおいて中央処理手
段9はマイコン等によって構成されており、その動作シ
ーケンスは図19に示すようなフローチャートになって
いる。電源投入等で、ステップ1でスタートすると次に
ステップ2でセンサー25,26の電荷蓄積制御を行な
う。この場合、中央処理手段9はセンサー25,26に
対して電荷蓄積開始を指令し、被写体輝度に応じた時間
の後電荷蓄積を終了させ、被写体像に関する信号を掃き
出させる。次にステップ3でこの信号をA/D変換し1
次データとしてメモリに格納する。A/D変換は何ビッ
トで行ってもよいが、通常8ビット程度で充分で、それ
以上のビットで行ってもノイズを考慮すると意味がな
く、又データを格納する際にメモリをむやみに浪費する
ことになってしまう。1次データは1対の(l+1)ケ
のデータa(o)〜a(l),a'(0)〜a'(l)で表
わすと、一般被写体に対しては例えば図20(a)のよ
うになっている。但し、a'(0)〜a'(l)は図示して
いない。 【0006】ステップ4ではこれらの1次データに対し
て次式のような演算を行ない、図20(b)に示すよう
な1対の(m+1)ケの2次データb(0)〜b
(m),b'(0)〜b'(m)を作成する。 【0007】 【数1】 【0008】(1)式のような演算を行なう目的は、焦点
検出演算に悪影響を及ぼす1次データに含まれた高周波
成分や低周波成分を除去するとともに、この後のステッ
プで行なう焦点検出演算に用いるデータ個数を少なく
し、演算時間を短縮するためである。ステップ5では、
得られた2次データを用いて焦点検出演算を行ない、焦
点調節状態(焦点検出不能、前ピン、後ピン、合焦、デ
フォーカス量等)に関する情報を得る。 【0009】ステップ6では、得られた焦点調節状態
(検出不能、前ピン、後ピン、合焦等)に応じて表示手
段、レンズ駆動手段を制御する。ステップ7では、検出
不能の場合はステップ8へ進み、検出不能でなかった場
合はステップ2に戻り次回の焦点検出動作を開始する。
ステップ8では、補助光手段が有り、それが準備完了で
あった場合にはステップ9に進み、それ以外の場合はス
テップ2へ戻る。 【0010】ステップ9では、補助光手段を作動させ、
次回の焦点検出動作に先立ち検出不能被写体に補助照明
光、あるいは補助照明パターンを投影し、ステップ2へ
戻り新たに次回の焦点検出シーケンスを開始する。ステ
ップ5の焦点検出演算は、例えば、以下に述べるような
方法で行なわれる。 【0011】先ず1対の(m+1)ケの2次データb
(o)〜b(m),b'(o)〜b'(m)に対して次式の
ような相関演算を行ない、相関量H(L)をシフト量L
を順次変化させて求める。 【0012】 【数2】 【0013】(2)式のq及びrは、総和演算(Σ)のパ
ラメータの上限と下限を規定する定数である。図21
(a)は(2)式のようにしてLを−6から+6まで移動
しながら相関量H(L)を求めた場合のグラフである。
図においてLを連続量として仮定した場合の相関量H
(L)の最小値を与えるLが1対の2次データの相対的
シフト量となる。この相対的シフト量Lは、イメージセ
ンサ25、26上に形成された1対の被写体像の光軸と
直角方向の横ズレ量に対応している。 【0014】相関値H(L)はLが整数の値について離
散的に求められているので、例えば図21(b)のよう
な内挿法により、相関値H(L)の最小値を与える真の
シフト量Lexが求められる。例えば、シフト量Lexの両
側の相関関数H(L)の傾き(直線l1、l2で示す)
が等しいとして、Lexの近傍の3点R−1,R,R+1
の整数シフト量における相関値H(R−1),H
(R),H(R+1)から、相関関数H(L)の最小値
HexおよびLexを求めるものである。 【0015】HexおよびLexは次式で求められる。 【0016】 【数3】 【0017】(3)式において、パラメータDL、Eは図
21(b)に示す量を表すもので次式で求められる。 【0018】 【数4】 【0019】このようにしてシフト量Lexが求まると、
デフォーカス量d(被写体像の結像面と予定結像面との
光軸方向のずれ量)は、 【0020】 【数5】 【0021】として求められる。ここで、βはイメージ
センサ25,26の光電変換部の配列ピッチP、焦点検
出光学系のパラメータによって定まる値である。デフォ
ーカス量dの符号によって、前ピン、後ピン状態が検出
でき、又デフォーカス量dの絶対値が所定値以内である
ことを判定し、合焦状態であることを検出する。焦点検
出不能であることの検出は、例えば以下のようにして行
なわれる。 【0022】被写体が低コントラストである場合、イメ
ージセンサから得られる1次データも図20(c)に示
すように変化がないものであり、1次データを演算して
得られる2次データも図20(d)に示すように、全体
的に小さな値となってしまう。このような2次データに
対して、(2)式に示した焦点検出演算を行なうと得られ
る相関量H(L)は図21(c)のようになり、図21
(a)の相関量H(L)と比較するとレベルが低いもの
になってしまい、最小値を示すH(R)がないのでシフ
ト量Lexが求められない場合があり、この場合は検出不
能と判定する。 【0023】又、シフト量Lexが求められた場合でも、
誤差を多く含んでいて信頼性が欠けるので検出不能と判
定する。判定基準の例としては図21(d)においてパ
ラメータEの値が所定値以下、あるいは最小値Hexをパ
ラメータEで規格化した値Hex/Eが所定値以下である
ことを検出して検出不能と判定する。 【0024】 【発明の解決しようとする問題点】以上のような従来の
焦点検出装置は以下のような欠点を有していた。即ち、
焦点検出不能であった場合には、補助光手段を作動させ
て焦点検出を行うが、被写体上に投影される補助光手段
の特定パターンが被写体パターンとの関係により検出し
ずらい状況もあり、このような状況においては正確に焦
点検出できないような欠点があった。 【0025】本発明の目的は、従来の焦点検出装置では
焦点検出不能であった被写体に対しても補助光手段に適
した焦点検出処理をして高精度な焦点検出が可能な焦点
検出装置を提供することにある。 【0026】 【問題点を解決するための手段】本発明は、焦点検出不
能時に使用する補助光手段を作動させた場合と、不作動
の場合とにおいて、焦点検出のための演算処理を変更す
ることを特徴とするものである。 【0027】 【作用】本発明は、焦点検出不能時に使用する補助光手
段を作動させた場合と、不作動の場合とにおいて、焦点
検出のための演算処理を変更することにより、より高精
度な焦点検出が可能となる。 【0028】 【実施例】以下に述べる本発明による焦点検出装置の構
成は図17と同じであるが、中央処理手段9の動作が異
なるのでそのフローを実施例として説明する。 〈第1実施例〉図1は本発明の第1の実施例であって、
ステップ11でスタートすると、ステップ12で検出不
能フラグを0にイニシャライズする。次にステップ13
でループカウンタKを0にセットし、後述する3次デー
タをクリアする。尚、検出不能フラグは焦点検出装置が
検出不能状態であったことを識別するためのフラグであ
り、またループカウンタKは、中央処理手段がイメージ
センサーの出力を何回受け取ったかを計数するためのカ
ウンタである。 【0029】ステップ14では検出不能フラグをテスト
し、検出不能フラグが1の場合、即ち検出不能な場合に
はステップ15に進み、また検出不能フラグが0の場
合、即ち検出可能な場合にはステップ17へ進む。ステ
ップ15では図17に示すように補助光手段は電子閃光
装置内に内蔵されている為に、電子閃光装置の電源がオ
ンして補助光手段が準備完了である場合には、ステップ
16へ進み、それ以外の場合はステップ17へ進む。 【0030】ステップ16では補助光手段を作動して、
検出不能被写体に対して補助光を発光させる。ステップ
17ではセンサーの電荷蓄積制御を行なう。ステップ1
8ではセンサーが出力した被写体の光強度分に関する信
号をA/Dを変換した1次データをメモリに格納する。
例えば1次データは1対の(l+1)ケのデータ(a
(o)〜a(l),a'(o)〜a'(l))からなり、図
20(a)に示すように一般の被写体に対しては変化成
分を多く含むデータとなっているが、低コントラスト被
写体に対しては図20(c)に示すように、バイアス成
分に比較してコントラスト変化成分が少ないデータとな
っている。 【0031】ステップ19では得られた1次データ(a
(0)〜a(l),a'(0)〜a'(l))から(1)式に
示す演算によって、1対の(m+1)ケの2次データ
(b(o)〜b(m),b'(o)〜b'(m))を作成す
る。図20(a)及び図20(c)の1次データに対応
する2次データは各々図20(b)及び図20(d)に
示すようになり、一般の被写体に対してはコントラスト
変化成分を多く含み、低コントラスト被写体に対しては
コントラスト変化成分の少ないものとなっている。 【0032】ステップ20では、ループカウンタK=0
の場合は、3次データと2次データは等しくなってお
り、前述の1対の(m+1)ケの3次データ{c(o)
〜c(m),c'(o)〜c'(m)}に各々2次データ
{b(o)〜b(m),b'(o)〜b'(m)}を加算す
る。ステップ21では、ループカウンタKをインクリメ
ントする。 【0033】ステップ22では3次データ{c(o)〜
c(m),c'(o)〜c'(m)}に対して、(2)〜(5)式
に示したような焦点検出演算を行ない、焦点調節状態
(検出不能、前ピン、後ピン、合焦等)を検出する。ス
テップ23にて焦点検出が不能であった場合は、ステッ
プ25に進み検出不能フラグを1にセットしてステップ
26に進む。又、焦点検出が可能であった場合は、検出
不能フラグを0にリセットしてステップ27に進む。 【0034】ステップ26ではループカウンタKが最大
カウントKmax になったかテストし、なっていない場合
はステップ14へ戻り、次回の焦点検出ループをくり返
し、3次データに2次データを加算していく(加算モー
ドと呼ぶ)。又、ループカウンタKが最大カウントKma
x に達していた場合にはステップ27へ進む。ステップ
27は、ループカウンタKがKmax になるまでに焦点検
出が可能となった場合と、Kmax に達しても検出不能だ
った場合に実行され、焦点調節状態に応じて表示手段、
レンズ駆動手段を制御する。そして、ステップ13に戻
り、ループカウンタKを0にリセット、3次データをク
リアして加算モードをイニシャライズして新たに次回の
焦点検出シーケンスをくり返すことになる。 【0035】以上のように構成されているので、一般被
写体に対しては、3次データもコントラスト変化成分を
多く含むので、ループカウンタKが1の時点(即ち1回
目)で検出可能となり加算モードにはならないが、低コ
ントラスト被写体に対しては、ループカウンタKが1の
時点では3次データは図20(e)に示すようにコント
ラスト変化成分が少なく、1回目では検出不能となりス
テップ23からステップ25、26を通りステップ14
へ戻るルートを通り加算モードとなる。3次データは加
算モードをくり返す度に増巾されていき、例えばS回目
には図20(f)に示すように1回目の3次データが約
S倍に増巾された3次データとなる。このように加算モ
ードで3次データが増巾されていくと、何回目かには焦
点検出可能なレベルになり、焦点検出演算の結果、検出
可能と判定され、ステップ23からステップ24、27
へ進み、ステップ13へ戻るルートに入り、加算モード
から抜け出す。 【0036】従って、従来の焦点検出装置では焦点検出
不能と判定されていた低コントラスト被写体に対して
も、本実施例の焦点検出装置では加算モードになり3次
データの変化成分が増巾されるので焦点検出が可能とな
る。又、補助光としてパターン照明した場合でも、従来
の焦点検出装置では被写体がある程度輝度があった場合
にパターンが回りの輝度分布に埋もれてしまい検出不能
であったが、本実施例では加算モードにより焦点検出が
可能となる。 〈第2実施例〉次に本発明の第2の実施例について述べ
る。 【0037】第1の実施例において、3次データに対す
る焦点検出演算を毎回行っていたのに対し、第2の実施
例はループカウントKがKmax に達するまで焦点検出演
算を行なわず、演算時間の短縮をはかり応答性を向上さ
せた所に違いがある。第2の実施例は第1の実施例にお
けるステップ22、23、24、25、26が第1の実
施例と異なっているので、図2にその部分だけを示す。 【0038】ステップ21までは第1の実施例の説明と
同じであるので省略する。ステップ21よりステップ3
1に進み、ループカウントKがKmax に達したかテスト
する。Kmax に達していなかった場合にはステップ14
へ戻り、加算モードをKmax に達するまでくり返す。
又、Kmax に達した場合はステップ32に進み、加算さ
れた3次データに対して焦点検出演算を行ない焦点調節
状態を検出する。 【0039】ステップ33では検出不能であるかをテス
トし、検出不能であった場合にはステップ35に進み検
出不能フラグをセットし、それ以外はステップ34で検
出不能フラグを0にリセットしてステップ27へ進む。
それ以降は第1の実施例と同じである。 〈第3実施例〉第3の実施例は第1の実施例において3
次データは2次データを加算したものであったのに対し
て、3次データが1次データ又は1次データからバイア
ス成分を引いたデータ(1.5次データと呼ぶ)を加算し
たものであることが異なる。第3の実施例は、第1の実
施例におけるステップ19、20、21、22だけが第
1の実施例と異なっているので、図3にその部分だけを
示す。 【0040】ステップ18までは第1の実施例の説明と
同じなので省略する。ステップ18よりステップ41に
進み、3次データに1次データ(1.5次データ)を加算
する。低コントラスト被写体に対する1次データは例え
ば、図11(a)及び図12(a)のようになってお
り、3次データに1次データを加算する場合には3次デ
ータのビット数は1次データのビット数より大きくして
おく必要がある。例えば、1次データとして8ビット
(1バイト)、3次データとして16ビット(2バイ
ト)としてメモリ中に格納領域を確保しておく。図11
(b)は1次データをS回加算した時の3次データを示
している。 【0041】3次データとして1.5次データを加算する
場合には、例えば図12(a)に示すように1次データ
中の最小値a(x)をバイアスとして1次データの全て
からバイアスを引いたものが図12(b)に示す1.5次
データとなる。3次データは、このようにして求められ
た1.5次データを加算したものとなり、S回目の加算時
には図12(c)に示したようになる。 【0042】ステップ42ではループカウンタKをイン
クリメントする。ステップ43では得られた3次データ
に対して、(1)式に示した演算を行なうことにより4次
データを作成する。3次データとして1次データを加算
したものを利用する場合には、3次データのビット数が
多いので3次データ中の最小値をバイアスとして、3次
データ全てから最小値c(x)をバイアスを引き、1次
データと同程度のビット数にしたデータ(図11(c)
に示す)に対して(1)式に示した演算を行ない、図11
(d)に示すような4次データd(o)〜d(m)、d
(o)〜d'(m)を作成する。 【0043】又、3次データとして1.5次データを加算
したものを利用する場合は、3次データに対して直接
(1)式の演算を行ない、図12(d)に示すような4次
データd(o)〜〜d(m)、d'(o)〜d'(m)を作
成する。ステップ44では得られた4次データに対して
(2)〜(5)式で示した焦点検出演算を行ない、焦点調節状
態を検出し、ステップ23へ進む。以降のシーケンスは
第1の実施例と同じである。 〈第4実施例〉次に本発明の第4の実施例について説明
する。第4の実施例は第2の実施例において3次データ
として2次データを加算したものを利用していたのに対
して、3次データとして1次データ(1.5次データ)を
利用している所が異なる。 【0044】第4の実施例は第2の実施例におけるステ
ップ19、20、21、31、32、だけが第2の実施
例と異なっているので、図4にその部分だけを示す。ス
テップ18までは第2の実施例(第1の実施例)と同じ
なので省略する。ステップ51では3次データに1次デ
ータ(1.5次データ)を加算する。この部分の詳細な説
明は第3の実施例と同じなので省略する。ステップ52
では、ループカウンタKをインクリメントする。ステッ
プ53では、ループカウンタKがKmax に達しているか
テストし、達していない場合にはステップ14へ戻り加
算モードをくり返す。Kmax に達した場合には、ステッ
プ54に進み、3次データから4次データを作成する。
この部分の詳細な説明は第3の実施例と同じなので省略
する。 【0045】ステップ55では、得られた4次データに
対して(2)〜(5)式の焦点検出演算を行ない、焦点調節状
態を検出し、ステップ33へ進む。ステップ33以降
は、第2の実施例と同じシーケンスである。第4の実施
例の場合、第2の実施例と比較すると1次データから2
次データを作成する(1)式の演算が加算モードループの
外に出るので、加算モードの演算時間が短縮でき応答性
が向上する。 〈第5実施例〉次に本発明の第5の実施例について述べ
る。 【0046】第1の実施例〜第4の実施例においては、
焦点検出演算(2)〜(5)は常に3次データに対して行なわ
れていたのに対し、第5の実施例は先ず2次データに対
して行ない、その結果焦点検出不能であった場合にだけ
加算モードとなり、3次データに対して焦点検出演算を
行なう点に相違がある。このように構成することによ
り、被写体の動作や手ぶれ等で焦点検出不能状態から焦
点検出可能状態に突然移行した場合等にも安定かつ迅速
に対応ができる。 【0047】第5の実施例の動作のフローを図5に示
す。図5においてステップ61〜69は第1実施例の図
1のステップ11〜19と同一なので説明を省略する。
ステップ69で2次データが得られると、ステップ70
で得られた2次データに対して(2)〜(5)式の焦点検出演
算を行ない、焦点調節状態を検出する。即ちステップ7
0までで1回のセンサ電荷蓄積で得られた情報から焦点
調節状態(検出不能、前ピン、後ピン、合焦)を検出す
る。 【0048】ステップ71では、ステップ70の結果、
焦点検出不能であった場合にはステップ74に進み、そ
れ以外の場合にはステップ72で検出不能のフラグを0
に、更にステップ73で焦点調節状態に応じて表示手
段、レンズ駆動手段を制御し、ステップ63に戻り次回
の焦点検出シーケンスを始める。一方焦点検出不能であ
った場合は加算モードとなり、ステップ74で検出不能
フラグに1をセットする。 【0049】ステップ75では、ループカウンタKをイ
ンクリメントする。ステップ76では、3次データに2
次データを加算する。このステップの詳細な説明は第1
の実施例と同一なので省略する。ステップ77では、ル
ープカウンタKが1であればステップ80に進み、1以
外であればステップ78を実行する。即ち1回目には2
次データと3次データが同一で、焦点検出演算の結果は
ステップ70で実行した結果と同じなので、1回目につ
いては3次データに対しての焦点検出演算を省略する。 【0050】ステップ78では、得られた3次データ
(2次データを加算したもの)に対して(2)〜(5)式で示
した焦点検出演算を行ない焦点調節状態を検出する。ス
テップ79では、ステップ78で3次データに対して焦
点検出が可能であった場合には、加算モードを抜け出し
ステップ73に進み、その時の焦点調節状態に応じて表
示手段、レンズ駆動手段を制御しステップ63に戻り、
次回の焦点検出シーケンスを始める。ステップ79で焦
点検出不能であった場合には、ステップ80に進む。ス
テップ80ではループカウンタKがKmax に達したかど
うかテストし、達していた場合には加算モードを抜け出
しステップ73に戻る。達していない場合にはステップ
64に戻り加算モードをくり返す。 【0051】以上のように第5の実施例においては、1
回毎にセンサー電荷蓄積から得られる2次データに対し
て、先ず焦点検出演算を行なうので、被写体が急変して
も追従でき、応答性が向上し、誤動作をすることもな
い。又、焦点検出が難しい低コントラスト被写体に対し
ても、加算モードにより焦点検出が可能であるという利
点も第1〜第4の実施例と同様に備えている。 〈第6実施例〉第6の実施例は、第5の実施例が加算モ
ード時にイメージセンサの電荷蓄積の1回毎に3次デー
タに対して焦点検出演算を行っていたのに対し、ループ
カウンタKがKmax に達するまで焦点検出演算を行なわ
ず、演算時間の短縮をはかり応答性をさらに向上させた
点に違いがある。 【0052】第6の実施例は第5の実施例とステップ6
1〜76、ステップ79,80は同一なのでその部分の
説明は省略し、相違部分のみ図6に示す。第6の実施例
では、加算モードの場合ステップ76で3次データに2
次データが加算された後ステップ81へ進み、ループカ
ウンタKがKmax に達したかテストし、Kmax に達して
ない場合にはステップ64へ進み加算モードを繰り返
す。Kmax に達した場合にはステップ82に進み、2次
データをKmax に加算した3次データに対して焦点検出
演算を行ない、焦点調節状態を検出し、ステップ73へ
進み加算モードから抜け出す。 〈第7実施例〉次に第7の実施例について述べる。 【0053】第5の実施例では、3次データが2次デー
タを加算したものであったのに対し、第7の実施例では
3次データが1次データ又は1.5次データを加算したも
のである点が異なる。第7の実施例は第5の実施例とス
テップ61〜75、ステップ79,80は同じなので説
明は省略し、相違部分だけを図7に示す。 【0054】第7の実施例では加算モードの場合、ステ
ップ75でループカウンタKをインクリメントした後、
ステップ91で3次データに1次データ又は1.5次デー
タを加算する。この部分の詳細な説明は第3の実施例と
同じ動作なので省略する。次にステップ92でループカ
ウンタKが1であるかテストし、1の場合はステップ8
0へ進む。1以外の場合はステップ93へ進み得られた
3次データから4次データを作成する。この部分の詳細
な説明は第3の実施例の動作と同じなので省略する。 【0055】ステップ94では得られた4次データにつ
いて焦点検出演算を行ないステップ79へ進む。以降の
動作は第5の実施例と同一である。 〈第8実施例〉次に第8の実施例について説明する。第
8の実施例は第6の実施例の改良であって、第6の実施
例では3次データとして2次データを加算したものを用
いていたのに対し、第8の実施例では、3次データとし
て1次又は1.5次データを加算したものを用いる点が異
なっている。 【0056】第8の実施例は第6の実施例とステップ6
1〜75は同一なので説明は省略し、相違部分だけを図
8に示す。第8の実施例において加算モードの場合、ス
テップ75でループカウンタKをインクリメントした
後、ステップ101で3次データに1次データ又は1.5
次データを加算する。この部分の詳細な説明は第3の実
施例と同じ動作なので省略する。次にステップ102で
ループカウンタKがKmax に達したかテストと達してい
ない場合にはステップ64へ戻り加算モードをくり返
す。 【0057】Kmax に達した場合にはステップ103へ
進み、得られた3次データから4次データを作成する。
この部分の詳細な説明は第3の実施例の動作と同じなの
で省略する。ステップ104では、得られた4次データ
について焦点検出演算を行ないステップ73へ進み、加
算モードを抜け出す以降の動作は第6の実施例と同じで
ある。 【0058】第8の実施例では第6の実施例に比較し
て、2次データを求める演算を加算モード中毎回行なう
ことがないので、演算時間が短縮し応答性が向上する。 〈第9実施例〉第1〜第8の実施例においては加算モー
ドに入ると2次データ(あるいは1次データ、1.5次デ
ータ)を3次データに加え始め、焦点検出可能となると
加算モードを抜け出し、3次データをクリアしていた。
このように構成すると、次回に検出可能となるためには
再び加算モードで何回か加算を行なわなければならなか
った。第10の実施例では加算モードでは過去所定回数
分のイメージセンサデータから得た情報(2次データ又
は1次データ又は1.5次データ)を記憶しておいて、現
在から過去にさかのぼって何回分からのデータを加算し
て3次データを作り、得られた3次データに対して焦点
検出演算を行ない焦点調節状態に関する情報を得るの
で、加算モードでの応答性が高められる。 【0059】図9は第5の実施例に応用した時の動作フ
ローであり、焦点検出演算で検出不能とならない場合の
シーケンス(図9ステップ121〜ステップ134)は
第5の実施例(図5ステップ61〜73)と同じである
ので説明は省略する。但し、第9の実施例では3次デー
タをクリアする必要がないので、ステップ123ではル
ープカウンタKを0にリセットし、又ステップ134で
検出可能と判断された場合は、ステップ133で新ため
てループカウンタKを0にリセットしている。 【0060】次に第10の実施例の特徴である加算モー
ドについて説明する。ステップ131で得られた2次デ
ータに対する焦点検出演算の結果が検出不能と判断され
た場合には加算モードとなり、ステップ135に進み検
出不能フラグを1にセットする。ステップ136では、
ループカウンタKが所定値Kmax に達しているかどうか
を判定し、達していない場合にはステップ138に進み
ループカウンタKをインクリメントし、更にステップ1
39で得られた2次データを格納し、ステップ140に
進む。2次データを格納するメモリは図13(a),
(b)のように所定値Kmax ケのメモリ領域M(1)〜M
(Kmax )から構成されており、ループカウンタKがK
max に達するまではステップ136→ステップ138→
ステップ139のルーテンを通り、2次データはループ
カウンタKに対応したメモリ領域M(K)に格納されて
いく。 【0061】一方、ステップ136でループカウンタK
がKmax に達していた場合には、ステップ137に進
み、図13に示すメモリ領域M(2)〜M(Kmax )に格
納されている(Kmax −1)組の過去の2次データが1
つずつ順次メモリ領域をずらされて、図13に示すメモ
リ領域M(1)〜M(Kmax −1)に再格納される。そし
てステップ139に進み、最新の2次データがメモリ領
域M(Kmax )に格納される。 【0062】次にステップ140では、メモリ領域M
(1)からループカウンタKに対応するメモリ領域M
(K)までに格納されている2次データを(6)式のよう
に加算して3次データを作成する。 【0063】 【数6】 【0064】(6)式においてc(n),c'(n)は3次データ
(但しnは0〜l)、又b(n,s) ,b'(n,s) はメモリ
領域Sに格納されている2次データを示す。ステップ1
41では得られた3次データに対して、焦点検出演算を
行ない焦点調節状態(検出不能、前ピン、後ピン、合
焦)を検出する。ステップ142では、ループカウンタ
KがKmax に達しているか判定し、達している場合には
ステップ134に進み、得られた焦点調節状態に応じて
表示・駆動手段を制御し、次にステップ124に進み、
以降第5の実施例と同じシーケンスとなる。 【0065】又、ステップ142でループカウンタKが
Kmax に達していない場合にはステップ143に進み検
出不能と判定された場合にのみ表示駆動をせずにステッ
プ124に戻り、それ以外の場合はステップ134に進
み、表示・駆動手段を制御した後にステップ124に戻
る。第9の実施例の加算モードでは、以上のような動作
シーケンスとなっているので、ループカウンタKが一旦
所定値Kmax に達した後もクリアされて0に戻ることは
なく、加算モードを通る度にメモリに記憶されている過
去Kmax 組の2次データから3次データを作成し、該3
次データに対して焦点検出演算を行ない焦点調節状態に
関する情報が得られるので、表示・駆動手段の制御の応
答性が向上することが期待できる。 【0066】以上の説明では、第9の実施例を第5の実
施例に応用した場合であったが、前記第1〜第8の実施
例にも応用できることはいうまでもない。以上第1の実
施例から第9の実施例において、ループカウンタの最大
値Kmaxは固定値であっても良いし、被写体輝度に応じ
て変化させても良い。例えば(7)式のように定めれば低
輝度被写体に対して加算モードになっても、応答性が悪
くなることはない。 【0067】 【数7】 【0068】(7)式においてINTTは被写体輝度に対
応した時間、例えばイメージセンサの電荷蓄積時間であ
り、Txは所定時間を表わす。このようにすれば低輝度
時にはKmax が小さくなり、加算モードから早く抜け出
すことができる。又、加算モードを抜け出す判定として
ループカウンタKがKmax に達したかどうかをテストす
るのではなく、加算により変化成分が増巾されていく3
次データから変化成分の大きさに関する情報を検出し
て、加算モードを抜け出すようにしてもよいし、ループ
カウンタKによる判定と組み合わせてもよい。 【0069】3次データから情報を検出して判定する方
法としては例えば次のような方法がある。3次データを
1対の(m+1)ケのデータb(o)〜b(m),b
(o)〜b(m)とすると(8)式のように各対のデータ
の(最大値−最小値)の値が所定値を越えたかどうか、
あるいは(8)式のように隣接したデータの差の絶対値、
最大値が所定値を越えたかどうかによって加算モードを
抜け出すかどうかの判定する。 【0070】 【数8】 【0071】 【数9】 【0072】(8),(9)式において、bmax ,bmin は3
次データb(o)〜b(m)の最大値,最小値。b'
max ,b'min は3次データb'(o)〜b'(m)の最大
値,最小値。M1、M2は各々3次データのコントラス
ト変化成分に関する情報量、T1、T2はその基準値で
ある。又、ループカウンタKの最大値Kmax をループカ
ウンタK=1の時の情報量M1、M2及び(4)式で得ら
れたパラメータE、及びEに対する基準値T3によって
(10),(11), (12)式のように定めてもよい。 【0073】 【数10】 【0074】 【数11】 【0075】 【数12】 【0076】以上のように加算モードを抜け出すかいな
かの判定を3次データのコントラスト変化成分の大きさ
に関する情報パラメータEに対応させると、(8)〜(12)
式の基準値T1、T2、T3を適宜定めることにより、
無駄に加算モードをくり返すことがなく応答性が向上す
る。第1〜第9の実施例において、補助光手段の制御に
関する動作、例えば第1の実施例におけるステップ14
〜16は必ずしも必要ではなく、なくてもよい。又、補
助光手段の作動制御をイメージセンサ電荷蓄積開始直前
に毎回行なうのではなく、1度作動したらイメージセン
サの何回かの電荷蓄積の間、同じ動作を保持するように
構成しても良い。又、補助光手段の作動を補助光手段不
作動時の被写体輝度にのみ関連づけてもよい。 〈第10実施例〉次に、第10の実施例は、補助光手段
として被写体上に特定のパターンを投影する手段を用い
て焦点検出を行った場合である。 【0077】特定パターンを低コントラスト被写体上に
投影した場合、被写体輝度が比較的高いと特定パターン
が被写体輝度の中に埋もれてしまい、従来の焦点検出装
置では焦点検出が不能になってしまっていた。第10の
実施例では補助光手段を用いて、被写体上に特定パター
ンを投影した場合のイメージセンサから得られる1次デ
ータから、補助光手段を用いない場合のイメージセンサ
から得られる1次データを差し引いたものを改めて1次
データとすることにより、特定パターンによる微弱な変
化成分を検出、それを加算モードにより増巾してから焦
点検出を行なうので比較的高輝度の低コントラストパタ
ーンに対しても焦点検出可能となる。 【0078】第10の実施例は、前述の第1〜第9の実
施例に応用できるもので、例えば第1の実施例に応用す
る場合について説明すると図1においてステップ11〜
13、ステップ19〜27は第1の実施例と同一であ
り、ステップ14〜18が異なるのでその異なった部分
のみを図10に示す。ステップ111に来た時点では、
加算モードとなっていた場合には検出不能フラグは1に
セットされ、加算モードになっていない場合は0にセッ
トされている。ステップ111で検出不能フラグが0の
場合は補助光手段を作動させずステップ117へ進む。
検出不能フラグが1の場合には、ステップ112に進
む。 【0079】ステップ112にて補助光手段が装着さ
れ、且つ作動準備完了している場合にはステップ113
へ進み、それ以外はステップ117へ進む。ステップ1
13ではループカウンタKが1かどうかテストし、1の
場合にはステップ114へ進み、0の場合にはステップ
116へ進む。ステップ114ではイメージセンサ電荷
蓄積制御を行ない、ステップ115でイメージセンサ出
力をA/D変換してそのデータを1対の(l+1)ケの
補正データg(o)〜g(l),g'(o)〜g'(l)と
して格納する。図14(a)に補正データg(o)〜g
(l)を示す。 【0080】従って、ステップ113、114、115
にて補助光手段を作動させない時の補正データとして、
ループカウンタKが1の時の被写体像のデータを採用す
ることになる。ステップ116では補助光手段を作動さ
せ、被写体上に特定パターンを投影する。 【0081】ステップ117ではイメージセンサ電荷蓄
積制御を行ない、ステップ118ではイメージセンサ出
力をA/D変換して1対の(l+1)ケの1次データa
(o)〜a(l),a'(o)〜a'(l)として格納す
る。それを図14(b)に1次データa(o)〜a
(l)として示す。 【0082】ステップ119では補助光手段を作動させ
た場合にはステップ120へ進み、作動させない場合は
ステップ19へ進む。ステップ120では、補助光手段
を作動させて得た図14(b)の1次データから補助光
手段を作動させないで得た図14(a)の補正データを
(12)式のように差し引き、改めて1対の(l+1)ケの
1次データa(o)〜a(l),a'(o)〜a'(l)を
求める。 【0083】 【数13】 【0084】図14(c)にそのようにして求めた1次
データa(o)〜a(l)を示す。ステップ120で1
次データを求めると、ステップ19に進み後は第1の実
施例と同様なシーケンスとなる。従って、加算モードの
場合の図14(c)に示した1次データから2次データ
を求めると、図14(d)のようになり、加算モードを
S回くり返し2次データがS回加算された3次データ
は、図14(e)に示すようになり被写体に投影された
特定パターンのコントラスト変化成分が増巾され焦点検
出が可能となる。 【0085】第10の実施例を加算モードとして、3次
データに1次又は(1.5次)データを加算する第3の実
施例に適用した場合について述べる。補助光を作動しな
かった場合の補正データは、図15(a)に示すように
なり、補助光を作動した場合の1次データは図15
(b)に示すものとなる。補助光を作動した場合の1次
データから補助光を作動しなかった場合の補正データを
差し引いたものを改めて1次データとすると図15
(c)に示すものとなる。 【0086】1対の(l+1)ケの3次データc(o)
〜c(l)、c'(o)〜c'(l)は1次データを加算し
たものになりS回加算すると図15(d)に示すよう
に、変化成分が増巾された被写体上に投影された特定パ
ターンに対応したものとなる。このようにして得られた
3次データに(1)式のような演算を行ない1対の(m+
1)ケの4次データd(o)〜d(m),d'(o)〜
d'(m)を求めると、十分焦点検出可能なレベルになっ
ている。図15(e)に4次データのようすを示す。 【0087】以上の第10の実施例の説明において、補
正データg(o)〜g(l),g'(o)〜g'(l)はル
ープカウンタKが1の時だけ採集するようにしていた
が、ループカウンタKが1でない時も毎回補正データを
採集して補助光作動時の1次データから差し引いても良
い。その場合図10においてステップ113は削除され
る。 【0088】又、補正データを採集する時のイメージセ
ンサの蓄積時間は等しくして固定するか、あるいは後者
を少し長目にとっておく。以上の説明したように本発明
の実施例には種々の変形が考えられるが、次にこれらの
複数の実施例を切り換えて使用する際の実施例について
述べる。通常、第1〜第10の実施例はマイコン内部あ
るいは外部の記憶手段(ROM)に書き込まれたプログ
ラム(ソフトウェア)によって実現される。図16にお
いてP1、P2、P3は異なるプログラムあるいはそれ
を記憶した記憶手段を表わしている。 【0089】図16(a)に示した第11の実施例にお
いては、焦点検出装置を含む装置30の内部のROM3
2に複数のプログラムP1、P2、P3を書き込んでお
いて、外部操作手段31を選択切換することにより複数
のプログラムP1、P2、P3の中から使用者の選択し
たプログラムに切換えるものである。図16(b)に示
した第12の実施例においては単一のプログラムP1、
P2が書かれたROM、あるいはROMを含むマイコン
33、34を焦点検出装置を含む装置30に対して取り
はずし、取り付け可能な構造とし、使用者が好みのプロ
グラムを書き込んだROMあるいはROMを含むマイコ
ン33、34を焦点検出装置を含む装置30に取り付け
ることによりプログラムの切り換えが可能になる。 【0090】第12の実施例におけるROMのかわり
に、書き変え可能な記憶手段(例えばEPROM)を使
用し、外部で所望のプログラムを書き込んだものを焦点
検出装置を含む装置30に取り付けることによって、プ
ログラムの選択切換えを行なうようにしてもよい。図1
6(c)に示した第13の実施例においては図16
(a)に示した第11の実施例における記憶手段を書き
かえ可能な記憶手段35によって構成し、使用者は外部
書き込み装置36によって所望のプログラムP1、P2
を書き込むことにより、プログラムの選択切換を可能に
したものである。 【0091】第12、第13の実施例のように構成すれ
ば焦点検出装置を含む装置を発売した後に、プログラム
上にバグが発見されても焦点検出装置を分解せずに修正
可能であるし、プログラムを随時パージョンアップして
改造していくことも容易である。又、焦点検出装置に制
御される周辺装置、例えばレンズ駆動手段、表示手段、
補助光手段等もマイコン上のプログラムで構成され、焦
点検出装置のマイコンとのデータ交信によりその動作が
制御される場合には、周辺装置側のプログラム記憶手段
も第12〜第13実施例のように書き変え可能又は取り
変え可能に構成しておけば、焦点検出装置及び周辺装置
からなる全体システムの一部に変更が生じてお互いにプ
ログラムを一部変更しなければならなくなった場合に
も、対応が容易である。 【0092】 【発明の効果】以上のように本発明によれば、焦点検出
不能時に使用する補助光手段を作動させた場合と、不作
動の場合とにおいて、焦点検出のための焦点検出演算処
理を変更することにより、従来では補助光を照射したに
も拘わらず焦点検出が失敗してしまうような状況にあっ
ても、焦点検出を可能とし、更に通常の焦点検出演算と
補助光使用時の焦点検出演算とを別々なアルゴリズムと
することによってそれぞれの焦点検出状況に適した処理
が可能となって、より高精度な装置が実現できる。 【0093】尚、実施例によれば、従来の焦点検出装置
では1回のイメージセンサ出力に対して1回焦点検出演
算して行っていたのでイメージセンサ出力にのったラン
ダムノイズの影響を受けやすかったが、本発明の焦点検
出装置の加算モードでは、イメージセンサから得られる
情報を複数回に渡って加算するためランダムノイズが平
均化されるので、ランダムノイズの影響を受けにくいと
いう利点も有している。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a focus detecting device such as a camera.
About the installation. 2. Description of the Related Art Conventionally, a subject image is
Obtain data information indicating the luminance distribution and process this data information.
The focus detection device that performs focus detection
Have been. Hereinafter, a conventional focus detection device will be described.
You. FIG. 17 shows a focus detection device of this type in a camera.
It is a structural example. In FIG. 17, reference numeral 1 denotes a single-lens reflex camera.
And the luminous flux from the subject is
After passing through the mirror 3, the light is reflected by the sub-mirror 4,
Focus detection optics with a detection surface at a position equivalent to the film surface 5
It is led to the system module 6. Focus detection optical system module
6 is, for example, the configuration shown inside the broken line in FIG.
ing. In FIG. 18, reference numeral 2 is the one shown in FIG.
This is the same photographic optical system. First exit pupil of imaging optical system 2
Of the luminous flux passing through the portion 28 and the second portion 29, respectively.
Each is a planned image plane 27 of the photographing optical system 2 (the
The first and second subject images are located near the image plane 5).
Each is formed. Each of the first and second subject images is
Through the field lens 22, the first and second re-imaging
First and second image sensors 2 by
Re-imaged on 5, 26. Image sensors 25, 26
Is constituted by, for example, a CCD or the like.
Accumulates charges according to the image sensors 25 and 26
A signal relating to the light intensity distribution of the subject image is output. As described above, in FIG.
The light intensity distribution of the subject image output from the system module 6
A / D converted by the A / D conversion means 8
The image data is captured by the central processing unit 9 as subject image data.
You. The central processing means 9 performs processing on the captured subject image.
By performing a predetermined focus detection calculation, the imaging surface of the photographing optical system 2 is
Focus adjustment state with film surface 5 (not detectable, front pin, rear
Pin, focus, defocus amount, etc.)
The display means 11, the photographing lens drive means 10,
Auxiliary light hand built into the electronic flash device detachable from the camera
Step 12 (specify a specific pattern on the subject when the subject is dark)
And the like. Also, the image
The central processing means 9 also controls the charge accumulation of the sensors 25 and 26.
It is done. In the above system, the central processing unit
Stage 9 is composed of a microcomputer or the like, and its operation
Sequence is a flowchart as shown in FIG.
I have. After turning on the power and starting in step 1,
In step 2, charge accumulation control of the sensors 25 and 26 is performed.
U. In this case, the central processing means 9 controls the sensors 25 and 26
Command the start of charge accumulation, and the time corresponding to the subject brightness
To stop charge accumulation and sweep the signal related to the subject image
Let out. Next, in step 3, this signal is A / D converted to 1
It is stored in the memory as the next data. How many bits of A / D conversion
May be done by default, but usually about 8 bits is sufficient.
It does not make sense to consider the noise even when performing with the above bits.
Uselessly waste memory when storing data
It will be. The primary data is a pair of (l + 1)
Data a (o) to a (l) and a '(0) to a' (l)
In other words, for a general subject, for example, as shown in FIG.
Swelling. However, a ′ (0) to a ′ (l) are shown in the drawing.
Not in. In step 4, these primary data are
The following calculation is performed, and as shown in FIG.
A pair of (m + 1) secondary data b (0) to b (b)
(M), b ′ (0) to b ′ (m) are created. [0007] The purpose of performing an operation such as equation (1) is
High frequency included in the primary data that adversely affects the detection calculation
Components and low-frequency components, and
The number of data used for focus detection calculation
However, this is to reduce the calculation time. In step 5,
A focus detection calculation is performed using the obtained secondary data,
Point adjustment status (Focus not detectable, front focus, rear focus, focus, defocus
Focus amount). In step 6, the obtained focus adjustment state is obtained.
(Not detectable, front focus, rear focus, focus, etc.)
The step controls the lens driving means. In step 7, the detection
If not, proceed to step 8;
If so, the process returns to step 2 to start the next focus detection operation.
In step 8, there is an auxiliary light means, which is ready
If there is, go to step 9;
Return to Step 2. In step 9, the auxiliary light means is operated,
Auxiliary lighting for undetectable subjects prior to the next focus detection operation
Project light or auxiliary lighting pattern and go to step 2
Return to start the next focus detection sequence. Stay
The focus detection calculation of step 5 is performed, for example, as described below.
Done in a way. First, a pair of (m + 1) secondary data b
(O) to b (m), b '(o) to b' (m)
By performing such a correlation operation, the correlation amount H (L) is changed to the shift amount L
Are sequentially changed. ## EQU2 ## The q and r in the equation (2) are the parameters of the sum operation (Σ).
It is a constant that defines the upper and lower limits of the parameter. FIG.
(A) moves L from -6 to +6 as in equation (2)
It is a graph in the case where the correlation amount H (L) was obtained while calculating.
In the figure, the correlation amount H when L is assumed to be a continuous amount
L that gives the minimum value of (L) is the relative value of a pair of secondary data
The shift amount. This relative shift amount L is determined by
Optical axes of a pair of subject images formed on the sensors 25 and 26;
It corresponds to the amount of lateral displacement in the perpendicular direction. The correlation value H (L) is different when L is an integer.
Since it is obtained sporadically, for example, as shown in FIG.
A true interpolation that gives the minimum value of the correlation value H (L) by a simple interpolation method
The shift amount Lex is obtained. For example, the shift amount Lex
The slope of the correlation function H (L) on the side (shown by straight lines 11 and 12)
Are equal, three points R-1, R, R + 1 near Lex
Correlation values H (R-1), H at an integer shift amount of
From (R) and H (R + 1), the minimum value of the correlation function H (L)
Hex and Lex are obtained. Hex and Lex are obtained by the following equations. [Equation 3] In equation (3), parameters DL and E are
It represents the quantity shown in FIG. 21 (b) and is obtained by the following equation. [Equation 4] When the shift amount Lex is obtained in this manner,
The defocus amount d (between the imaging plane of the subject image and the planned imaging plane)
The amount of displacement in the optical axis direction is: Is obtained. Where β is the image
Array pitch P of photoelectric conversion units of sensors 25 and 26, focus detection
This is a value determined by the parameters of the output optical system. Default
The front and rear focus states are detected based on the sign of the focus amount d.
And the absolute value of the defocus amount d is within a predetermined value.
It is determined that the camera is in focus. Focus examination
The detection of inability to exit is performed, for example, as follows.
Be done. When the object has low contrast,
The primary data obtained from the image sensor is also shown in FIG.
It does not change much, so it calculates the primary data
As shown in FIG. 20 (d), the obtained secondary data is
Will be a small value. For such secondary data
On the other hand, the focus detection calculation shown in equation (2)
The correlation amount H (L) is as shown in FIG.
(A) a level lower than the correlation amount H (L)
, And there is no H (R) indicating the minimum value.
In some cases, the detection amount Lex may not be obtained.
No. Even when the shift amount Lex is obtained,
Since it contains many errors and lacks reliability, it is
Set. As an example of the criterion, FIG.
Parameter E is less than or equal to a predetermined value, or
The value Hex / E standardized by the parameter E is equal to or less than a predetermined value.
Is detected and it is determined that detection is impossible. Problems to be Solved by the Invention
The focus detection device has the following disadvantages. That is,
If the focus cannot be detected, activate the auxiliary light means.
Auxiliary light means projected on the subject
Specific pattern is detected based on the relationship with the subject pattern.
In some situations, it is difficult to accurately
There was a drawback that point detection was not possible. An object of the present invention is to provide a conventional focus detection apparatus.
Suitable for auxiliary light means even for subjects for which focus cannot be detected.
Focus that can perform high-precision focus detection by performing focused focus detection processing
A detection device is provided. According to the present invention, focus detection is not performed.
Activating the auxiliary light means used when activating
Change the calculation process for focus detection
It is characterized by that. According to the present invention, there is provided an auxiliary light hand used when focus detection is impossible.
Focus on whether the step is activated or deactivated
By changing the calculation processing for detection,
Accurate focus detection becomes possible. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The structure of a focus detection device according to the present invention described below will be described.
The configuration is the same as that of FIG. 17, but the operation of the central processing unit 9 is different.
Therefore, the flow will be described as an example. <First Embodiment> FIG. 1 shows a first embodiment of the present invention.
When starting in step 11, detection is not performed in step 12.
Function flag is initialized to 0. Then step 13
To set the loop counter K to 0,
Clear the data. The undetectable flag is set by the focus detection device.
This flag is used to identify that detection was impossible.
The loop counter K is based on the central processing means.
A key to count how many times the sensor output has been received.
Unta. Step 14 tests the undetectable flag.
When the undetectable flag is 1, that is, when the
Goes to step 15, and if the undetectable flag is 0,
In other words, if it can be detected, the process proceeds to step 17. Stay
In step 15, as shown in FIG.
The power of the electronic flash device is turned off because it is built into the device.
If the auxiliary light means is ready and
Proceed to step 16, otherwise proceed to step 17. In step 16, the auxiliary light means is operated,
Auxiliary light is emitted for an undetectable subject. Steps
At 17, the charge accumulation control of the sensor is performed. Step 1
8 is a signal related to the light intensity of the subject output by the sensor.
The primary data obtained by subjecting the signal to A / D conversion is stored in a memory.
For example, the primary data is a pair of (l + 1) data (a
(O) -a (l), a '(o) -a' (l))
As shown in FIG.
Data containing many minutes, but low contrast
As shown in FIG.
Data with less contrast change component than
ing. In step 19, the obtained primary data (a
(0) -a (l), a '(0) -a' (l)) to equation (1)
By the operation shown, a pair of (m + 1) secondary data
(B (o) -b (m), b '(o) -b' (m))
You. Corresponds to the primary data in FIGS. 20 (a) and 20 (c)
20 (b) and FIG. 20 (d) respectively.
As shown in the figure, contrast for general subjects
For a low-contrast subject that contains many change components
The contrast change component is small. At step 20, the loop counter K = 0.
In the case of, the tertiary data and the secondary data are equal
Thus, the pair of (m + 1) tertiary data {c (o)
~ C (m), c '(o) ~ c' (m)}
Add {b (o)-b (m), b '(o)-b' (m)}
You. In step 21, the loop counter K is incremented.
To At step 22, the tertiary data $ c (o) ~
For c (m), c ′ (o) to c ′ (m)}, equations (2) to (5)
Perform the focus detection calculation as shown in
(Not detectable, front focus, rear focus, focus, etc.). S
If focus detection is not possible in step 23,
Go to step 25 and set the undetectable flag to 1
Proceed to 26. If focus detection is possible,
The inability flag is reset to 0, and the routine proceeds to step 27. In step 26, the loop counter K is set to the maximum
Test if count Kmax has been reached, if not
Returns to step 14 and repeats the next focus detection loop.
And add the secondary data to the tertiary data (addition mode
C). In addition, the loop counter K has a maximum count Kma.
If it has reached x, the process proceeds to step 27. Steps
27 is focus detection until the loop counter K reaches Kmax.
When it is possible to go out, it is impossible to detect even if it reaches Kmax
Display means according to the focus adjustment state,
Control the lens driving means. Then, return to step 13.
Resets the loop counter K to 0 and clears tertiary data.
To initialize the addition mode and add a new
The focus detection sequence will be repeated. With the configuration described above, the general
For the object, the tertiary data also has a contrast change component.
Since the loop counter K is 1 (ie, once
Eye) and it does not enter the addition mode.
For the contrast object, the loop counter K is set to 1
At this point, the tertiary data is controlled as shown in FIG.
The last change component is small and cannot be detected at the first time.
From step 23, go through steps 25 and 26 and go to step 14
It goes into the addition mode through the route returning to. Tertiary data is added
It is increased each time the calculation mode is repeated.
In FIG. 20 (f), the first tertiary data is approximately
The tertiary data is amplified by S times. In this way,
As the tertiary data is amplified by the mode,
The point detection level is reached, and the focus detection calculation results
It is determined that it is possible, and Steps 23 to 24 and 27
Go to step 13 and return to step 13
Get out of Therefore, in the conventional focus detection device, focus detection is performed.
For low-contrast subjects that were determined to be impossible
In the focus detection device of the present embodiment,
Since the change component of the data is amplified, focus detection becomes possible.
You. Also, even when pattern illumination is used as auxiliary light,
When the subject has some brightness with the focus detection device of
Undetectable because the pattern is buried in the surrounding luminance distribution
However, in this embodiment, the focus detection is performed by the addition mode.
It becomes possible. <Second Embodiment> Next, a second embodiment of the present invention will be described.
You. In the first embodiment, tertiary data
The focus detection calculation was performed every time.
The example shows focus detection until the loop count K reaches Kmax.
Reduces calculation time and improves responsiveness without performing calculations
There is a difference in the place where it was made. The second embodiment is similar to the first embodiment.
Steps 22, 23, 24, 25, and 26
Since this is different from the embodiment, only that part is shown in FIG. Up to step 21, the description of the first embodiment and
Since they are the same, the description is omitted. Step 21 to Step 3
Go to 1 and test if loop count K has reached Kmax
I do. If Kmax has not been reached, step 14
And repeat the addition mode until it reaches Kmax.
If Kmax has been reached, the process proceeds to step 32, where
Focus adjustment by performing focus detection calculation on the selected tertiary data
Detect state. In step 33, a test is performed to determine whether or not detection is possible.
If it cannot be detected, the process proceeds to step 35.
Set the inaccessible flag, otherwise detect in step 34
The exit impossible flag is reset to 0, and the routine proceeds to step 27.
Subsequent steps are the same as in the first embodiment. <Third Embodiment> The third embodiment is similar to the first embodiment except that
Whereas the next data was the sum of the secondary data
Tertiary data is primary data or via from primary data
Data (referred to as 1.5th order data)
Are different. The third embodiment is similar to the first embodiment.
Only steps 19, 20, 21, and 22 in the embodiment are the
3 is different from the embodiment of FIG.
Show. Step 18 is the same as that of the first embodiment.
It is omitted because it is the same. From step 18 to step 41
Advance, add primary data (1.5-order data) to tertiary data
I do. Primary data for low contrast subjects
11 (a) and 12 (a).
When adding primary data to tertiary data, tertiary data
The number of data bits should be larger than the number of primary data bits.
Need to be kept. For example, 8 bits as primary data
(1 byte) 16 bits (2 bytes) as tertiary data
(G) to secure a storage area in the memory. FIG.
(B) shows tertiary data when primary data is added S times
doing. Add 1.5-order data as tertiary data
In this case, for example, as shown in FIG.
All the primary data with the minimum value a (x) in the bias
The bias minus the 1.5 order shown in FIG. 12 (b)
Data. Tertiary data is obtained in this way
1.5th data is added, at the time of S-th addition
Is as shown in FIG. In step 42, the loop counter K is turned on.
To increment. In step 43, the obtained tertiary data
By performing the operation shown in equation (1),
Create data. Add primary data as tertiary data
In the case of using the tertiary data,
Since there are many, the minimum value in the tertiary data is biased to the tertiary data
Bias the minimum value c (x) from all data,
Data having the same number of bits as the data (FIG. 11C)
11), the calculation shown in equation (1) is performed, and FIG.
Fourth-order data d (o) to d (m), d as shown in FIG.
(O) to d '(m) are created. Also, add the 1.5th order data as the 3rd order data
When using the tertiary data,
By performing the operation of the expression (1), the fourth order as shown in FIG.
Create data d (o) ~~ d (m), d '(o) ~ d' (m)
To achieve. In step 44, the obtained fourth order data
Perform the focus detection calculation shown in equations (2) to (5), and
State is detected, and the process proceeds to step 23. The subsequent sequence is
This is the same as the first embodiment. <Fourth Embodiment> Next, a fourth embodiment of the present invention will be described.
I do. The fourth embodiment is similar to the second embodiment except that the third data
Was used as the sum of the secondary data
Then, as primary data, primary data (1.5-order data)
They use different places. The fourth embodiment is a modification of the second embodiment.
Only the steps 19, 20, 21, 31, 32 are the second implementation
Since this is different from the example, only that part is shown in FIG. S
Same as the second embodiment (first embodiment) up to step 18.
Therefore, it is omitted. In step 51, the primary data is added to the tertiary data.
Data (1.5 order data). Detailed theory of this part
The description is omitted because it is the same as that of the third embodiment. Step 52
Then, the loop counter K is incremented. Step
In step 53, whether the loop counter K has reached Kmax
Test, if not, return to step 14
Repeat calculation mode. If Kmax is reached,
Proceeding to step 54, quaternary data is created from the tertiary data.
The detailed description of this part is omitted since it is the same as that of the third embodiment.
I do. In step 55, the obtained fourth order data is
Perform focus detection calculations of equations (2) to (5) for
State is detected, and the routine proceeds to step 33. After step 33
Is the same sequence as in the second embodiment. Fourth implementation
In the case of the example, when compared with the second embodiment, 2
The operation of formula (1) that creates the next data is performed in the addition mode loop.
Since it is outside, the operation time of addition mode can be shortened and responsiveness
Is improved. <Fifth Embodiment> Next, a fifth embodiment of the present invention will be described.
You. In the first to fourth embodiments,
Focus detection calculations (2) to (5) are always performed on tertiary data
In contrast, the fifth embodiment first deals with the secondary data.
Only if the focus cannot be detected as a result
In addition mode, focus detection calculation is performed on tertiary data.
There are differences in what they do. With this configuration,
From the focus detection disabled state due to motion of the subject or camera shake.
Stable and quick even when suddenly entering the point detectable state
Can respond to FIG. 5 shows the flow of the operation of the fifth embodiment.
You. In FIG. 5, steps 61 to 69 are diagrams of the first embodiment.
Steps 1 to 19 are the same as those in step 1 and description thereof is omitted.
When the secondary data is obtained in step 69, step 70
(2) to (5) on the secondary data obtained in
Calculation is performed to detect the focus adjustment state. That is, step 7
Focus on information obtained in one sensor charge accumulation up to 0
Detects adjustment status (undetectable, front focus, rear focus, focus)
You. In step 71, as a result of step 70,
If the focus cannot be detected, the process proceeds to step 74, where
Otherwise, the undetectable flag is set to 0 in step 72.
Further, in step 73, the display hand is displayed in accordance with the focus adjustment state.
The step and the lens driving means are controlled, and the process returns to the step 63 for the next time.
Starts the focus detection sequence. On the other hand,
Is set, the mode becomes the addition mode, and the detection is not possible in step 74.
Set 1 to the flag. In step 75, the loop counter K is reset.
Increment. In step 76, 2 is added to the tertiary data.
Add the next data. A detailed description of this step
The description is omitted because it is the same as the embodiment. In step 77,
If the loop counter K is 1, the process proceeds to step 80,
If not, step 78 is executed. That is, the first time is 2
The next data and the third data are the same, and the result of the focus detection calculation is
Since the result is the same as that executed in step 70,
Therefore, the focus detection calculation for the tertiary data is omitted. In step 78, the obtained tertiary data
(To which the secondary data has been added)
The focus adjustment is performed to detect the focus adjustment state. S
In step 79, the tertiary data is focused in step 78.
If point detection is possible, exit the addition mode
Proceed to step 73 and display according to the focus adjustment state at that time.
Controlling the indicating means and the lens driving means and returning to step 63,
Start the next focus detection sequence. In Step 79
If the point cannot be detected, the process proceeds to step 80. S
In step 80, check if the loop counter K has reached Kmax
Test to see if it's reached and exit add mode
Then, the process returns to step 73. Step if not reached
Returning to 64, the addition mode is repeated. As described above, in the fifth embodiment, 1
For each time the secondary data obtained from sensor charge accumulation
First, since the focus detection calculation is performed, the subject changes suddenly.
Can respond, improving responsiveness and preventing malfunctions.
No. Also, for low contrast subjects where focus detection is difficult
However, the focus detection is possible in the addition mode.
The point is provided similarly to the first to fourth embodiments. <Sixth Embodiment> The sixth embodiment is different from the fifth embodiment in that the
3rd data every time the charge of the image sensor is stored
The focus detection calculation was
Focus detection calculation is performed until the counter K reaches Kmax
Response time was further improved by shortening the calculation time.
There are differences. The sixth embodiment is different from the fifth embodiment in that step 6
1 to 76 and steps 79 and 80 are the same,
The description is omitted, and only the differences are shown in FIG. Sixth embodiment
Then, in the case of the addition mode, 2 is added to the tertiary data in step 76.
After the next data is added, the routine proceeds to step 81, where the loop
Tests whether Unta K has reached Kmax and reaches Kmax
If not, proceed to step 64 and repeat the addition mode.
You. If Kmax has been reached, the routine proceeds to step 82, where the secondary
Focus detection for tertiary data obtained by adding data to Kmax
Performs an operation to detect the focus adjustment state, and proceeds to step 73
Exit from the forward addition mode. <Seventh Embodiment> Next, a seventh embodiment will be described. In the fifth embodiment, the tertiary data is converted to the secondary data.
However, in the seventh embodiment,
The tertiary data is the sum of the primary data or the 1.5th data
Is different. The seventh embodiment is different from the fifth embodiment in that
Steps 61 to 75 and steps 79 and 80 are the same
The description is omitted, and only the differences are shown in FIG. In the seventh embodiment, in the case of the addition mode,
After incrementing the loop counter K at step 75,
In step 91, the primary data or the 1.5th data is added to the tertiary data.
Data. The detailed description of this part is the same as that of the third embodiment.
The same operation is omitted. Next, at step 92
Test whether the counter K is 1 and if so, step 8
Go to 0. In the case other than 1, it was possible to proceed to step 93.
Create quaternary data from tertiary data. Details of this part
The detailed description is the same as the operation of the third embodiment, and will not be repeated. In step 94, the obtained fourth order data is
Then, the focus detection calculation is performed, and the routine proceeds to step 79. Later
The operation is the same as in the fifth embodiment. <Eighth Embodiment> Next, an eighth embodiment will be described. No.
The eighth embodiment is an improvement of the sixth embodiment, and is a modification of the sixth embodiment.
In the example, the data obtained by adding the secondary data as the tertiary data is used
In contrast, in the eighth embodiment, tertiary data
Is that the data obtained by adding the primary or 1.5th order data is used.
Has become. The eighth embodiment is different from the sixth embodiment in that step 6
Since 1 to 75 are the same, the description is omitted, and only the differences are illustrated.
FIG. In the case of the addition mode in the eighth embodiment,
In step 75, the loop counter K was incremented
Thereafter, in step 101, the tertiary data is converted to the primary data or 1.5.
Add the next data. A detailed description of this part
Since the operation is the same as that of the embodiment, the description is omitted. Next in step 102
Loop counter K has reached Kmax or has reached test
If not, return to step 64 and repeat the addition mode.
You. If Kmax is reached, go to step 103
The process proceeds to create quaternary data from the obtained tertiary data.
The detailed description of this part is the same as the operation of the third embodiment.
Omitted. In step 104, the obtained fourth order data
The focus detection calculation is performed for
The operation after exiting the calculation mode is the same as in the sixth embodiment.
is there. The eighth embodiment is different from the sixth embodiment in that:
To calculate the secondary data every time during the addition mode
Therefore, the operation time is shortened and the response is improved. <Ninth Embodiment> In the first to eighth embodiments, the addition mode
When entering the secondary data (or primary data, 1.5
Data) to the tertiary data and focus detection becomes possible
Exited the addition mode and cleared the tertiary data.
With this configuration, in order to be able to detect next time,
Do I have to do addition several times in addition mode again?
Was. In the tenth embodiment, a predetermined number of past times in the addition mode
Information (secondary data or
Is the primary data or 1.5-order data)
Add data from a number of times from the past to the past
To create tertiary data and focus on the obtained tertiary data
Perform detection calculations to obtain information about the focus state.
Thus, the response in the addition mode is improved. FIG. 9 shows an operation flow when applied to the fifth embodiment.
Low and the focus detection calculation does not disable detection.
The sequence (steps 121 to 134 in FIG. 9)
This is the same as the fifth embodiment (steps 61 to 73 in FIG. 5).
Therefore, the description is omitted. However, in the ninth embodiment, the third order data
Since it is not necessary to clear the
Resets the loop counter K to 0, and at step 134
If it is determined that detection is possible, a new
Thus, the loop counter K is reset to 0. Next, an addition mode which is a feature of the tenth embodiment is described.
Will be described. The secondary data obtained in step 131
The focus detection calculation result for the
In this case, the mode is set to the addition mode, and the routine proceeds to step 135 for detection.
Set the disabling flag to 1. In step 136,
Whether the loop counter K has reached a predetermined value Kmax
Is determined, and if not reached, the process proceeds to step 138.
The loop counter K is incremented, and step 1 is performed.
The secondary data obtained in step 39 is stored, and
move on. The memory for storing the secondary data is shown in FIG.
Memory areas M (1) to M (M) having a predetermined value Kmax as shown in FIG.
(Kmax), and the loop counter K is K
Step 136 → Step 138 →
Go through the routine of step 139 and loop the secondary data
Stored in the memory area M (K) corresponding to the counter K
Go. On the other hand, at step 136, the loop counter K
Has reached Kmax, the routine proceeds to step 137.
Only the memory areas M (2) to M (Kmax) shown in FIG.
(Kmax -1) sets of past secondary data are 1
The memory area is shifted sequentially one by one,
It is stored again in the storage areas M (1) to M (Kmax-1). Soshi
To step 139, and the latest secondary data is stored in the memory area.
It is stored in the area M (Kmax). Next, at step 140, the memory area M
The memory area M corresponding to the loop counter K from (1)
The secondary data stored up to (K) is expressed as in equation (6).
To create tertiary data. [Equation 6] In equation (6), c (n) and c ′ (n) are tertiary data
(Where n is 0 to l), and b (n, s) and b '(n, s) are memory
The secondary data stored in the area S is shown. Step 1
At 41, focus detection calculation is performed on the obtained tertiary data.
Focus adjustment state (not detectable, front focus, rear focus,
Is detected. In step 142, the loop counter
Determine if K has reached Kmax, and if so,
Proceeding to step 134, according to the obtained focus adjustment state
Control the display / drive means, and then proceed to step 124,
Thereafter, the sequence is the same as that of the fifth embodiment. Also, at step 142, the loop counter K
If Kmax has not been reached, proceed to step 143 to check
Only when it is determined that the display cannot be
Return to step 124, otherwise proceed to step 134.
Return to step 124 after controlling the display / drive means.
You. In the addition mode of the ninth embodiment, the above operation is performed.
Since it is a sequence, once the loop counter K
Even after reaching the predetermined value Kmax, it is cleared and returns to 0.
Each time it passes the addition mode, the
Tertiary data is created from the Kmax pairs of secondary data,
Performs focus detection calculation on the next data and enters focus adjustment state
Information on the display and drive means.
It is expected that responsiveness will be improved. In the above description, the ninth embodiment is described in the fifth embodiment.
Although the case where the present invention is applied to the embodiment, the first to eighth embodiments are described.
It goes without saying that it can be applied to the examples. The first fruit
In the embodiment to the ninth embodiment, the maximum value of the loop counter
The value Kmax may be a fixed value or may vary depending on the subject brightness.
May be changed. For example, if defined as in equation (7),
Response is poor even when the mode is set to Add
It won't be. [Mathematical formula-see original document] In the equation (7), INTT corresponds to the subject brightness.
Response time, for example, the charge accumulation time of the image sensor.
Tx represents a predetermined time. This way, low brightness
Sometimes Kmax is small and you get out of addition mode quickly
Can be Also, as a judgment to exit the addition mode
Tests whether the loop counter K has reached Kmax
Instead, the change component is amplified by addition.
Detects information about the magnitude of the change component from the next data
To exit the addition mode
The determination by the counter K may be combined. A method for detecting and judging information from tertiary data
For example, the following methods are available. Tertiary data
A pair of (m + 1) data b (o) to b (m), b
Assuming (o) to b (m), each pair of data as shown in equation (8)
Whether the value of (maximum value-minimum value) exceeds a predetermined value,
Or the absolute value of the difference between adjacent data as in equation (8),
Addition mode depends on whether the maximum value exceeds the specified value.
It is determined whether to exit. [Mathematical formula-see original document] [Mathematical formula-see original document] In equations (8) and (9), b max , B min Is 3
Maximum and minimum values of the next data b (o) to b (m). b '
max , B ' min Is the maximum of the tertiary data b '(o) to b' (m)
Value, minimum value. M1 and M2 are tertiary data contrasts
The information amount of the change component, T1 and T2 are the reference values.
is there. Also, the maximum value Kmax of the loop counter K is
The amount of information M1 and M2 when the counter K = 1 is obtained by the equation (4).
By the parameter E and the reference value T3 for E
Equations (10), (11), and (12) may be used. [Mathematical formula-see original document] [Equation 11] (Equation 12) It is necessary to exit the addition mode as described above.
The size of the contrast change component of the tertiary data
(8) to (12)
By appropriately setting the reference values T1, T2, T3 of the equation,
Responsiveness is improved without unnecessary addition mode repetition
You. In the first to ninth embodiments, the control of the auxiliary light means
Related operations, for example, step 14 in the first embodiment.
The numbers 16 to 16 are not always necessary and need not be provided. In addition,
Controlling the operation of the light assist means immediately before the start of image sensor charge accumulation
Instead of every time, once activated,
To maintain the same operation during several charge accumulations
You may comprise. Also, the operation of the auxiliary light means is not required.
It may be associated only with the object brightness at the time of operation. <Tenth Embodiment> Next, a tenth embodiment will be described.
Using a means to project a specific pattern on the subject
In this case, focus detection is performed. A specific pattern is placed on a low-contrast subject.
When projecting, if the subject brightness is relatively high, a specific pattern
Is buried in the brightness of the subject, and
In this case, focus detection became impossible. Tenth
In this embodiment, a specific pattern is formed on the subject by using the auxiliary light means.
Primary data obtained from the image sensor when
Image sensor without auxiliary light means
Primary data obtained by subtracting the primary data obtained from
By using data, small changes due to specific patterns
Is detected in the addition mode, and
Performs point detection, so relatively high-brightness low-contrast patterns
Focus detection is also possible for the The tenth embodiment is similar to the first to ninth embodiments.
Applicable to the embodiment, for example, applied to the first embodiment.
In FIG. 1, steps 11 to 11 are described.
13. Steps 19 to 27 are the same as in the first embodiment.
And steps 14 to 18 are different,
Only one is shown in FIG. At the time of step 111,
In the case of the addition mode, the undetectable flag is set to 1.
Set to 0 if not in addition mode
Have been In step 111, the undetectable flag is set to 0.
In this case, the operation proceeds to step 117 without operating the auxiliary light means.
If the undetectable flag is 1, proceed to step 112.
No. At step 112, the auxiliary light means is mounted.
If the operation is ready and the operation is ready, step 113
Otherwise, go to step 117. Step 1
At 13 the loop counter K is tested to see if it is 1 and 1
If yes, go to step 114; if zero, go to step 114
Proceed to 116. In step 114, the image sensor charge
The accumulation control is performed, and the image sensor is output in step 115.
A / D converting the force and converting the data into a pair of (l + 1)
Correction data g (o) to g (l), g '(o) to g' (l)
And store. FIG. 14A shows the correction data g (o) to g.
(L) is shown. Therefore, steps 113, 114, 115
As correction data when the auxiliary light means is not operated at
Use data of subject image when loop counter K is 1
Will be. In step 116, the auxiliary light means is activated.
And project a specific pattern on the subject. In step 117, the image sensor charge storage is performed.
Product control is performed.
A / D conversion of the force and a pair of (l + 1) primary data a
(O) to a (l) and a '(o) to a' (l)
You. FIG. 14B shows the primary data a (o) to a
(L). In step 119, the auxiliary light means is operated.
If not, go to step 120, if not
Proceed to step 19. In step 120, the auxiliary light means
From the primary data of FIG. 14B obtained by operating
The correction data of FIG. 14 (a) obtained without operating the means is
Deducted as in equation (12), and a new pair of (l + 1)
Primary data a (o) to a (l), a '(o) to a' (l)
Ask. ## EQU13 ## FIG. 14C shows the primary order obtained in this way.
Data a (o) to a (l) are shown. 1 in step 120
When the next data is obtained, the process proceeds to step 19 and thereafter the first data is obtained.
The sequence is similar to that of the embodiment. Therefore, the addition mode
From the primary data to the secondary data shown in FIG.
Is obtained as shown in FIG. 14 (d).
Tertiary data with S repeated secondary data added S times
Is projected on the subject as shown in FIG.
Focus change by increasing the contrast change component of a specific pattern
It is possible to go out. The tenth embodiment is defined as an addition mode,
The third factor that adds the primary or (1.5th) data to the data
A case where the present invention is applied to the embodiment will be described. Do not activate the auxiliary light
The correction data in the case of
The primary data when the auxiliary light is activated is shown in FIG.
The result is as shown in FIG. Primary when auxiliary light is activated
The correction data for when the auxiliary light was not activated
When the subtracted data is used as primary data again, FIG.
(C) is obtained. A pair of (l + 1) tertiary data c (o)
~ C (l), c '(o) ~ c' (l) add primary data
And when added S times, as shown in FIG.
In addition, a specific pattern projected on the subject whose variation component is amplified
It corresponds to the turn. Obtained in this way
An operation such as equation (1) is performed on the tertiary data, and a pair of (m +
1) Fourth order data d (o) to d (m), d '(o) to
When d '(m) is obtained, the focus becomes a level at which the focus can be detected sufficiently.
ing. FIG. 15E shows the state of the fourth order data. In the above description of the tenth embodiment,
The positive data g (o) to g (l) and g '(o) to g' (l) are
Gathered only when loop counter K is 1
However, even when the loop counter K is not 1, the correction data is
Can be collected and subtracted from primary data when auxiliary light is activated
No. In this case, step 113 is deleted in FIG.
You. Further, an image cell for collecting correction data is provided.
The storage time of the sensor should be equal and fixed, or the latter
A little longer. As described above, the present invention
Various modifications can be considered in the embodiment of
Embodiments when switching and using multiple embodiments
State. Normally, the first to tenth embodiments are not
Or a program written in external storage means (ROM)
It is realized by RAM (software). FIG.
And P1, P2 and P3 are different programs or different programs
Is stored in the storage means. The eleventh embodiment shown in FIG.
The ROM 3 in the device 30 including the focus detection device.
2 and write multiple programs P1, P2, P3
And the external operation means 31 is selectively switched.
Of the user from among the programs P1, P2, P3
This is to switch to the program that was used. As shown in FIG.
In the twelfth embodiment, a single program P1,
ROM with P2 written, or microcomputer containing ROM
33 and 34 to the device 30 including the focus detection device.
Remove and attach to a structure that the user can use
ROM containing the program or myco containing ROM
Attach the devices 33 and 34 to the device 30 including the focus detection device
This makes it possible to switch programs. Instead of ROM in the twelfth embodiment
Using rewritable storage means (eg, EPROM)
Focus on what you have written the desired program externally
By attaching to the device 30 containing the detection device,
The selection of the program may be switched. FIG.
In the thirteenth embodiment shown in FIG.
The storage means in the eleventh embodiment shown in FIG.
The storage means 35 is configured to be replaceable.
Desired programs P1, P2 by the writing device 36
To enable program selection switching
It was done. The structure is the same as in the twelfth and thirteenth embodiments.
If a device including a focus detection device is released, the program
Fix a bug detected above without disassembling the focus detection device
Yes, it is possible to upgrade the program at any time
It is easy to remodel. Also, the focus detection device is controlled.
Peripheral devices controlled, such as lens driving means, display means,
Auxiliary light means etc. are also configured by a program on the microcomputer,
The data communication with the microcomputer of the point detection device
If controlled, the program storage means on the peripheral device side
Can be rewritten or read as in the twelfth and thirteenth embodiments.
If it is configured to be changeable, the focus detection device and the peripheral device
Changes in part of the overall system
If you need to change some programs
However, it is easy to respond. As described above, according to the present invention, focus detection
When the auxiliary light means used when disabled is
Focus detection calculation processing for focus detection
By changing the process, conventionally, the auxiliary light
However, in situations where focus detection fails
Even if focus detection is possible,
Separate algorithm for focus detection calculation when using auxiliary light
Processing suitable for each focus detection situation
And a more accurate device can be realized. According to the embodiment, the conventional focus detecting device
Now, one focus detection operation for one image sensor output
Calculation, so the run on the image sensor output
Although it was susceptible to dam noise, the focus detection of the present invention
In the addition mode of the output device, it is obtained from the image sensor.
Since information is added multiple times, random noise is
So it is less susceptible to random noise
It also has such an advantage.

【図面の簡単な説明】 【図1】図1は本発明の第1実施例であり、焦点検出装
置のフローチャート図を示す。 【図2】図2は本発明の第1実施例であり、焦点検出装
置のフローチャート図を示す。 【図3】図3は本発明の第1実施例であり、焦点検出装
置のフローチャート図を示す。 【図4】図4は本発明の第1実施例であり、焦点検出装
置のフローチャート図を示す。 【図5】図5は本発明の第1実施例であり、焦点検出装
置のフローチャート図を示す。 【図6】図6は本発明の第1実施例であり、焦点検出装
置のフローチャート図を示す。 【図7】図7は本発明の第1実施例であり、焦点検出装
置のフローチャート図を示す。 【図8】図8は本発明の第1実施例であり、焦点検出装
置のフローチャート図を示す。 【図9】図9は本発明の第1実施例であり、焦点検出装
置のフローチャート図を示す。 【図10】図10は本発明の第1実施例であり、焦点検
出装置のフローチャート図を示す。 【図11】図11はイメージセンサーにより検出される
被写体像のデータ情報を示す図である。 【図12】図12はイメージセンサーにより検出される
被写体像のデータ情報を示す図である。 【図13】図13は焦点検出装置の記憶装置のメモリ領
域を示すメモリマップ図である。 【図14】図14はイメージセンサーにより検出される
被写体像のデータ情報を示す図である。 【図15】図15はイメージセンサーにより検出される
被写体像のデータ情報を示す図である。 【図16】図16は本発明が適用される焦点検出装置の
ブロック図である。 【図17】図17は焦点検出装置のブロック図である。 【図18】図18は焦点検出装置の原理を示す概略図で
ある。 【図19】図19は従来の焦点検出装置の動作シーケン
を示すフローチャート図である。 【図20】図20はイメージセンサーにより検出される
被写体像のデータ情報を示す図である。 【図21】図21は焦点検出装置の相関演算を説明する
説明図である。 【符号の説明】 1…カメラ 2…撮影レンズ 3…ハーフミラー4…サ
ブミラー 5…フィルム面 6…焦点検出光学系モジュ
ール 8…A/D変換手段 9…中央処理手段 10…レンズ駆動手段 11…表示手段 12…補助光
手段
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a first embodiment of the present invention and shows a flowchart of a focus detection device. FIG. 2 shows a first embodiment of the present invention, and is a flowchart of a focus detection device. FIG. 3 is a flowchart of a focus detection device according to a first embodiment of the present invention. FIG. 4 is a flowchart of a focus detection apparatus according to a first embodiment of the present invention. FIG. 5 is a first embodiment of the present invention, and shows a flowchart of a focus detection device. FIG. 6 is a flowchart of a focus detection apparatus according to a first embodiment of the present invention. FIG. 7 is a flowchart of a focus detection device according to a first embodiment of the present invention. FIG. 8 is a flowchart of a focus detection device according to a first embodiment of the present invention. FIG. 9 is a flowchart of a focus detection device according to a first embodiment of the present invention. FIG. 10 is a flowchart of a focus detection apparatus according to a first embodiment of the present invention. FIG. 11 is a diagram illustrating data information of a subject image detected by an image sensor. FIG. 12 is a diagram illustrating data information of a subject image detected by an image sensor. FIG. 13 is a memory map diagram showing a memory area of a storage device of the focus detection device. FIG. 14 is a diagram illustrating data information of a subject image detected by an image sensor. FIG. 15 is a diagram showing data information of a subject image detected by an image sensor. FIG. 16 is a block diagram of a focus detection device to which the present invention is applied. FIG. 17 is a block diagram of a focus detection device. FIG. 18 is a schematic diagram showing the principle of a focus detection device. FIG. 19 is a flowchart showing an operation sequence of a conventional focus detection device. FIG. 20 is a diagram illustrating data information of a subject image detected by an image sensor; FIG. 21 is an explanatory diagram illustrating a correlation operation of the focus detection device. [Description of Signs] 1 ... Camera 2 ... Photographing lens 3 ... Half mirror 4 ... Sub-mirror 5 ... Film surface 6 ... Focus detection optical system module 8 ... A / D conversion means 9 ... Central processing means 10 ... Lens driving means 11 ... Display Means 12: auxiliary light means

Claims (1)

(57)【特許請求の範囲】 (1) イメージセンサーから得られる被写体像の輝度分
布に関するデータ情報を処理することにより焦点検出を
行う焦点検出手段を備えた焦点検出装置において、 前
記焦点検出のために被写界側へ補助光を照射する補助光
手段と、 前記補助光手段を作動状態に設定する設定手段と、 前記焦点検出手段の演算処理として第一演算処理と、該
第一演算処理と異なる第二演算処理とを切り換え制御す
る焦点演算制御手段とを有し、 前記設定手段が前記補助光手段を作動状態に設定した時
には、前記焦点演算制御手段が前記第一演算処理に切り
換え、逆に前記設定手段が前記補助手段を作動状態に設
定しない時には、前記焦点演算制御手段が前記第二演算
処理に切り換えることを特徴とする焦点検出装置。 (2) 前記補助光手段は、前記被写体側へ特定パターン
を投影し、また、前記設定手段は、焦点検出不能である
判断すると前記補助光手段を作動状態に設定することを
特徴とする特許請求の範囲第(1)項記載の焦点検出装
置。
(57) [Claims] (1) In a focus detection device provided with focus detection means for performing focus detection by processing data information relating to luminance distribution of a subject image obtained from an image sensor, Auxiliary light means for irradiating auxiliary light to the object scene side; setting means for setting the auxiliary light means to an operating state; first arithmetic processing as arithmetic processing of the focus detection means; and the first arithmetic processing. Focus operation control means for controlling switching between different second arithmetic processing, and when the setting means sets the auxiliary light means to the operating state, the focus arithmetic control means switches to the first arithmetic processing, and Wherein the focus calculation control means switches to the second calculation processing when the setting means does not set the auxiliary means to the operating state. (2) The auxiliary light unit projects a specific pattern on the subject side, and the setting unit sets the auxiliary light unit to an operating state when it is determined that focus detection is impossible. The focus detection device according to item (1).
JP23236795A 1995-09-11 1995-09-11 Focus detection device Expired - Lifetime JP2754471B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23236795A JP2754471B2 (en) 1995-09-11 1995-09-11 Focus detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23236795A JP2754471B2 (en) 1995-09-11 1995-09-11 Focus detection device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP61137642A Division JPH0823620B2 (en) 1986-06-13 1986-06-13 Focus detection device

Publications (2)

Publication Number Publication Date
JPH08201684A JPH08201684A (en) 1996-08-09
JP2754471B2 true JP2754471B2 (en) 1998-05-20

Family

ID=16938113

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23236795A Expired - Lifetime JP2754471B2 (en) 1995-09-11 1995-09-11 Focus detection device

Country Status (1)

Country Link
JP (1) JP2754471B2 (en)

Also Published As

Publication number Publication date
JPH08201684A (en) 1996-08-09

Similar Documents

Publication Publication Date Title
JP2002244027A (en) Range-finding device
JP2003169246A (en) camera
JPH0915491A (en) Automatic focusing device
JP3630965B2 (en) Focus detection apparatus, camera, and focus detection method
JP2754471B2 (en) Focus detection device
US20030063907A1 (en) Camera
US7102681B1 (en) Focus detecting apparatus
US7283736B2 (en) Imaging apparatus and imaging method
JP3944287B2 (en) Ranging device
JP2000111791A (en) Auxiliary light control device for autofocus and autofocus camera
JP4512173B2 (en) Ranging device
JPH0823620B2 (en) Focus detection device
JPH0728121A (en) Camera system
JP3127543B2 (en) Camera system having flash means and focus detection means
JP4509280B2 (en) camera
JP2002072065A (en) Range finder
JP4315708B2 (en) camera
US6327435B1 (en) Focus adjusting apparatus
JP3955201B2 (en) Auto focus camera
JP3120955B2 (en) Distance measuring device
JP2883691B2 (en) Camera automatic exposure control device
JP2757396B2 (en) camera
JP2615224B2 (en) Camera self-photographing method and device
JP3793403B2 (en) Ranging device
JP2005115058A (en) Photometric device for camera

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term