JP4434375B2 - Ranging device - Google Patents
Ranging device Download PDFInfo
- Publication number
- JP4434375B2 JP4434375B2 JP26424799A JP26424799A JP4434375B2 JP 4434375 B2 JP4434375 B2 JP 4434375B2 JP 26424799 A JP26424799 A JP 26424799A JP 26424799 A JP26424799 A JP 26424799A JP 4434375 B2 JP4434375 B2 JP 4434375B2
- Authority
- JP
- Japan
- Prior art keywords
- distance measuring
- area
- image
- microcomputer
- subject
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 230000010354 integration Effects 0.000 claims description 31
- 238000000605 extraction Methods 0.000 claims description 24
- 238000003384 imaging method Methods 0.000 claims description 14
- 239000000284 extract Substances 0.000 claims 1
- 230000001678 irradiating effect Effects 0.000 claims 1
- 238000000034 method Methods 0.000 description 91
- 238000012545 processing Methods 0.000 description 60
- 238000005259 measurement Methods 0.000 description 50
- 238000001514 detection method Methods 0.000 description 38
- 238000010586 diagram Methods 0.000 description 30
- 238000004364 calculation method Methods 0.000 description 19
- 238000002372 labelling Methods 0.000 description 9
- 230000003287 optical effect Effects 0.000 description 8
- 238000003708 edge detection Methods 0.000 description 6
- 238000012937 correction Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 230000005236 sound signal Effects 0.000 description 5
- 238000005375 photometry Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000007499 fusion processing Methods 0.000 description 3
- 238000009499 grossing Methods 0.000 description 3
- 238000004804 winding Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000000994 depressogenic effect Effects 0.000 description 2
- 230000004069 differentiation Effects 0.000 description 2
- 238000000691 measurement method Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 238000012850 discrimination method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Measurement Of Optical Distance (AREA)
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、測距装置、詳しくは、カメラ等に利用可能な測距装置に関する。
【0002】
【従来の技術】
従来、複数の測距ポイントについて測距を行うオートフォーカス機能を有するカメラは種々提案されている。たとえば特開平10−142490号公報には、撮影画面内の広い範囲にわたり多数の測距ポイントを有し、撮影毎にその全ての測距ポイントを測距する測距装置を備えるカメラが開示されている。
【0003】
さらに近年、背景の影響を受けないように工夫されたカメラも提案されている。特開平5−7326号公報には、撮影画面内のエッジ部分を検出してゲート信号を発生して測距枠を設定し、背景の影響を受けないように工夫する測距装置が提案されている。
【0004】
【発明が解決しようとする課題】
しかしながら、上記特開平10−142490号公報に開示された測距装置は、撮影毎に全ての測距ポイントにおいて測距を行うので、非常にタイムラグが大きくなり使い勝手が悪いという問題がある。
【0005】
また、タイムラグを短縮するために、非常に高速な処理回路やマイコン等を使用すると、大きなコストアップとなり、汎用的なカメラには採用できないという問題がある。
【0006】
さらに上記特開平5−7326号公報に開示された測距装置は、ビデオ信号から高域成分を検出するコントラスト方式による山登りオートフォーカス装置に限定されている。このコントラスト方式はフォーカスレンズをスキャンしながら、最も高周波成分が大きくなるフォーカスレンズの位置を検出するので、非常にタイムラグが大きくシャッタチャンスを逃してしまうという問題がある。
【0007】
本発明はかかる問題点に鑑みてなされたものであり、広範囲な測距領域を有する測距装置であってもタイムラグを増大させることなく、かつ背景に影響を受けずに主要被写体に対して正確なオートフォーカス処理を行い得る測距装置を提供することを目的とする。
【0008】
【課題を解決するための手段】
上記の目的を達成するために本発明の第1の測距装置は、複数の画像を有し、被写体像を撮像して撮像信号を出力する撮像素子と、上記撮像素子の出力に基づいて主要被写体を検出し、当該主要被写体の輪郭を抽出する輪郭抽出手段と、上記撮像素子の画素の積分量を示すモニタ信号の抽出範囲を設定するモニタ選択手段と、上記モニタ選択手段の設定する範囲のモニタ信号に基づいて、上記撮像信号の積分動作を制御する積分制御手段と、上記積分制御手段が上記撮像素子の積分制御を実行して上記撮像素子より得られた、被写体像を2像に分割した撮像信号に関して相関演算を行うことにより測距動作を行う測距手段と、を具備し、上記モニタ選択手段は、上記輪郭抽出手段により抽出された主要被写体領域に対する適正な撮像信号が得られるように、上記モニタ信号の抽出範囲を上記主要被写体領域の抽出された輪郭の内部に対応する上記撮像素子の画素領域に設定することを特徴とする。
【0009】
上記の目的を達成するために本発明の第2の測距装置は、被写体に補助光を照射する補助光手段と、上記撮像素子の出力より定常光成分を除去する定常光除去手段と、をさらに備え、上記輪郭抽出手段は、上記補助光手段で被写体を照射し、上記定常光除去手段で定常光成分を除去した撮像素子の出力に基づいて被写体の輪郭を抽出することを特徴とする。
【0012】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態を説明する。
【0013】
図1は、本発明の第1の実施形態である測距装置の構成を示したブロック図である。
【0014】
図に示すように、本実施形態の測距装置は、当該測距装置を備えるカメラ全体における各回路の制御を司るマイクロコンピュータ11と、後述する測距光学系100により形成される被写体像を撮像して電気信号であるセンサデータに変換するAFエリアセンサ12と、フォーカシーングレンズ14を駆動するフォーカスレンズ駆動部13と、該フォーカシーングレンズ14の移動量に対応するパルス信号を発生するフォーカスレンズエンコーダ15と、撮影画面に対応し、複数に分割された測光用受光素子23aの発生する光電流信号を処理して測光出力を発生する測光部23と、シャッタを駆動してフィルムに対する露出を行うシャッタ駆動部16と、撮影時の補助光源としてストロボ20aを発光させるストロボ回路部20と、カメラ内部の情報をLCD等の表示素子により表示する表示部19と、レリーズボタンに連動したスイッチである1RSW(ファーストレリーズスイッチ)17及び2RSW(セカンドレリーズスイッチ)18と、オートロード、1駒巻き上げ、巻き戻しのフィルム駆動動作を行うフィルム駆動部21と、撮影レンズのズーム動作を行うズームレンズ駆動部22と、カメラの姿勢(縦、横)を検出し、マイクロコンピュータ11に対して出力するカメラ姿勢検出部120と、で主要部が構成される。
【0015】
マイクロコンピュータ11は、その内部に、CPU(中央処理装置)11a、ROM11b,RAM11c,A/DコンバータADC11dを有する。このうちCPU11aは、ROM11bに格納されたシーケンスプログラムに従って一連の動作を行う。
【0016】
マイクロコンピュータ11はさらにEEPROM11eを有しており、オートフォーカス(AF)、測光・露出演算等に関する補正データをカメラ毎に記憶している。また、EEPROM11eには、後述する撮影画面内の主要被写体を検出するための各種パラメータ等が格納されている。
【0017】
AFエリアセンサ12は、撮像領域12aである水平方向と垂直方向に二次元状に配置された受光素子群とその処理回路12bとを備えている。そして、受光素子(フォトダイオード)への入射光により発生する電荷を画素毎の画素増幅回路により電圧に変換するとともに増幅して出力する。マイクロコンピュータ11は、このAFエリアセンサ12の積分動作の制御、センサデータの読み出し制御を行い、AFエリアセンサ12の出力するセンサデータを処理して測距演算を行なうようになっている。
【0018】
またAFエリアセンサ12は、定常光除去回路12cを有している。この定常光除去回路12cは、マイクロコンピュータ11の制御下に定常光を除去するか否かを切り換る機能を有する。
【0019】
フォーカスレンズ駆動部13は、撮影レンズ130の一部であるフォーカシーングレンズ14を駆動し、フォーカスレンズエンコーダ15は、該フォーカシーングレンズ14の移動量に対応するパルス信号を発生する。マイクロコンピュータ11は測距演算結果に基づき、フォーカスレンズ駆動部13に駆動信号を出力し、フォーカスエンコーダ15の出力をモニタしてフォーカスレンズ14の位置制御を行う。
【0020】
測光部23は、撮影画面に対応し、複数に分割された測光用受光素子23aの発生する光電流信号を処理して測光出力を発生する。マイクロコンピュータ11はこの測光出力を上記ADコンバータADC11dによりAD変換して測光・露出演算を行う。
【0021】
シャッタ駆動部16は、マイクロコンピュータ11の制御下にシャッタを駆動してフィルムに対する露出を行う。
【0022】
ストロボ回路部20は、撮影時の補助光源としてストロボ20aを発光させる機能を備え、マイクロコンピュータ11の制御下にストロボ20a発光のための充電、発光制御がなされる。またストロボ回路部20は、ストロボ20aを測距動作時のオートフォーカス補助光として使用する際に、マイクロコンピュータ11の制御下に発光制御を行う。
【0023】
表示部19は、マイクロコンピュータ11の制御下にカメラ内部の情報をLCD等の表示素子により表示する。
【0024】
1RSW(ファーストレリーズスイッチ)17、2RSW(セカンドレリーズスイッチ)18はレリーズボタンに連動したスイッチであって、レリーズボタンの第1段階の押し下げにより1RSW17がオンし、引き続いて第2段階の押し下げで2RSW18がオンする。マイクロコンピュータ11は1RSW17のオンでAF,測光動作を行い、2RSW18のオンで露出動作、フィルム巻き上げ動作を行う。
【0025】
フィルム駆動部21は、マイクロコンピュータ11の制御下にオートロード、1駒巻き上げ、巻き戻しのフィルム駆動動作を行い、ズームレンズ駆動部22は、同じくマイクロコンピュータ11の制御下に撮影レンズのズーム動作を行う。また、マイクロコンピュータ11に対して撮影レンズの焦点距離情報を出力する。
【0026】
カメラ姿勢検出部120は、カメラの姿勢(縦、横)を検出し、マイクロコンピュータ11に対して出力する。
【0027】
次に、このような構成を成す本実施形態の測距装置の動作について説明する。
図2は、本実施形態の測距装置において、マイクロコンピュータ11のメインルーチンを示すフローチャートである。
【0028】
まず、不図示の電源SWがオンされるかあるいは電池が挿入されるとマイクロコンピュータ11が動作を開始し、ROM11bに格納されたシーケンスプログラムを実行する。そして、マイクロコンピュータ11はカメラ内の各ブロックの初期化、EEPROM11e内のAF、測光等の調整・補正データをRAM11cに展開する(ステップS101)。
【0029】
次にマイクロコンピュータ11は1RSW17の状態を検出し、該1RSW17がオン操作を待つ(ステップS102)。ここで、該1RSW17がオンされるとマイクロコンピュータ11はオートフォーカス(AF)動作を行うよう該当回路を制御する(ステップS103)。続いて測光・露出演算処理(ステップS104)を行い、2RSW18の状態を検出する(ステップS105)。
【0030】
このステップS105で2RSW18がオンされると、マイクロコンピュータ11はシャッタ動作を行うよう指示してフィルムに露出し(ステップS106)、フィルムを1駒巻き上げる(ステップS107)。
【0031】
一方、上記ステップS102において1RSW17がオンしていないとき、マイクロコンピュータ11は1RSW17、2RSW18以外のスイッチの入力を検出する(ステップS108)。ここで他のスイッチ入力を検出すると当該スイッチ入力に応じた処理、たとえばズームスイッチのアップ、ダウンスイッチ入力に対してはズームアップ、ダウン処理を行うよう各回路に指示する(ステップS109)。
【0032】
次に、本実施形態の測距装置における測距光学系について説明する。
図3は、本実施形態の測距装置における測距光学系100を示した説明図であり、光学系、AFエリアセンサ配置を示している。また、図4は、三角測距の原理により被写体距離を求める方法を説明するための図である。
【0033】
当該測距光学系100は、いわゆる外光パッシブ方式により被写体までの距離を測定するようになっており、図3に示すように、受光レンズ101、102は基線長Bを隔てて配置され、被写体103の像を2像に分割してAFエリアセンサ12の受光領域12aに結像させるようになっている。
【0034】
図4に示すように上記2像の相対的な位置差xは三角測距の原理によって、受光レンズの焦点距離fと基線長Bとから、被写体距離Lは以下の式による。
【0035】
L=(B・f)/x
上述した測距演算はマイクロコンピュータ11によって行われる。より具体的には、AFエリアセンサ12の受光領域12aに測距ブロックを設定して2像に対応するセンサデータを用いて相関演算を行い、上記2像の相対的な位置差xを検出する。
【0036】
次に、図5を参照して上記AFエリアセンサ12の構成について説明する。
図5に示すように、AFエリアセンサ12は、撮影画面に対応する複数の画素53と、積分動作を制御するためにモニタ選択回路57と、水平シフトレジスタ56、垂直シフトレジスタ54と、固定パターンノイズ除去回路55とを備える。
【0037】
上述したようにAFエリアセンサ12には、撮影画面に対応して複数の画素53が配置されるが、この複数の画素のうち一画素50は、受光素子であるフォトダイオード52と、フォトダイオード52の出力する信号電荷を電圧信号に変換するための増幅器51(蓄積容量58を含む)と、を備えている。なお増幅器51には定常光成分を除去する機能も含まれている。
【0038】
上記モニタ選択回路57は、マイクロコンピュータ11からの司令に基づく画素範囲について積分量を示すモニタ信号を作成し出力する。
【0039】
水平シフトレジスタ56、垂直シフトレジスタ54は、マイクロコンピュータ11からの司令により制御され、各画素の信号出力を選択して出力する。
【0040】
固定パターンノイズ除去回路55は、各画素の信号出力に含まれる固定パターンノイズを除去するための回路である。
【0041】
次に、図6を参照して、本実施形態における撮影画面(ワイドとテレ)と測距領域との関係について説明する。
上述したように、本実施形態の測距装置は外光測距方式を採用しているので、撮影画面と測距領域とにはパララックスが存在する。このため本実施形態では撮影光学系の焦点距離情報(ズーム情報)に応じて測距に使用する領域を限定する。このような焦点距離の変化に応じた測距エリア位置補正データはEEPROM11eに予め記憶されており、マイクロコンピュータ11の初期化とともにRAM11dに展開されている。そして、ズーム動作に応じてこの補正データを参照してAFエリアセンサ12の受光領域内の測距動作に使用する測距領域を決定する。さらにこの測距領域範囲内のセンサデータにより測距演算を行う。
【0042】
またマイクロコンピュータ11はAFエリアセンサ12に対してこの測距領域内に対応する積分制御用ピークモニタを発生するように制御信号を出力する。そしてAFエリアセンサ12は、指定された測距エリアの範囲内のピーク信号をマイクロコンピュータ11に対して出力する。マイクロコンピュータ11はこのモニタ信号を参照して積分量が所定のレベルとなるように制御する。
【0043】
本実施形態ではかかる工夫により撮影画面外において被写体の影響を受けないようにすることが可能となった。また、センサデータを読み出す際にも、上記撮影画面に対応する測距領域補正データを参照して不要な撮影画面外のセンサデータは読みとばしてRAM11cに格納しない。あるいはAFエリアセンサ12に読み出し範囲設定信号を出力して設定された範囲内のセンサデータだけ出力するようにしている。
【0044】
次に、図7のフローチャートを参照して、本実施形態の測距装置におけるオートフォーカス(AF)ルーチンを説明する。
【0045】
まず、マイクロコンピュータ11はAFエリアセンサ12に積分制御信号を出力して、積分動作を行うよう指示する(ステップS201)。次にAFエリアセンサ12から所定範囲内のピーク(最も明るい画素)出力に対応するモニタ信号が出力される。マイクロコンピュータ11はこのモニタ信号を参照しながら、AFエリアセンサ12の受光部の受光量が適正となるように積分時間を調節する。
【0046】
この後マイクロコンピュータ11は、AFエリアセンサ12に読み出しクロックCLKを出力し(ステップS202)、センサデータ(画素データ)をADコンバータADC11dに出力させ、AD変換して読み出しRAM11cに格納する。
【0047】
さらにマイクロコンピュータ11は、主要被写体を抽出する処理を行い(ステップS203)、抽出された主要被写体領域内に複数の測距エリアを設定する(ステップS204)。また、上記複数の測距エリアについて測距演算を行い(ステップS205)、得られた測距データが所定の条件(信頼性の有無等)を満足するか否かを判別する(ステップS206)。
【0048】
このステップS206で測距結果が所定の条件を満足していれば、マイクロコンピュータ11は、この所定の条件を満たす複数の測距データについて平均処理を行い(ステップS207)、その結果得られた測距データを採用する。そして、上記採用した測距データに基づいてフォーカシングレンズ14を駆動(ステップS208)して、リターンする。
【0049】
一方、上記ステップS206において測距結果が所定の条件を満足しない場合は、マイクロコンピュータ11は、上記主要被写体領域内のセンサデータが適正となるように制御して再度積分を行う。すなわち、AFエリアセンサ12内のモニタ選択回路57を制御して、主要被写体領域内に対応する画素のみについてモニタ信号を取得し、たとえばそれらの最大値をモニタ出力としてマイクロコンピュータ11に出力させるように設定する(ステップS209)。
【0050】
そしてこの後、再びステップS201に戻り、再度積分、読み出し、測距処理をやり直す。この場合は、主要被写体の領域内のセンサデータが測距演算を行うために適正となるよう積分制御を行うので、主要被写体について良好な測距データが得られる。
【0051】
次に、図8のフローチャートを参照して、本実施形態の測距装置における主要被写体検出動作について説明する。
【0052】
この主要被写体検出ルーチンでは、特に主要被写体として人物を想定して、人物を検出する。なお、AFエリアセンサ12により2個の画像が得られるが、主要被写体検出に使用する画像データ(センサデータ)はどちらか一方の画像でもよいし、両方の画像を使用してもよい。AFエリアセンサ12のセンサデータは、マイクロコンピュータ11内のRAM11cに格納されており、このセンサデータに基づいて以下の処理を行う。
【0053】
まず、処理の概要について説明する。
最初にマイクロコンピュータ11は平滑化処理を行う(ステップS301)。この処理は画像中のランダムノイズを除去する処理であり、当該ノイズをフィルタ処理やフーリエ変換によって除去する。なお除去されるランダムノイズはAFエリアセンサ12自体が有するランダムノイズや、AFエリアセンサ12の電源電圧変動等の外的ノイズにより発生するノイズである。
【0054】
次にマイクロコンピュータ11は差分処理を行う(ステップS302)。この処理においてマイクロコンピュータ11はセンサデータに対して差分処理を行い、エッジ検出を行う処理でエッジの候補領域とその強度が与えられる。
【0055】
この後マイクロコンピュータ11は2値化処理を行う(ステップS303)。この処理においてマイクロコンピュータ11は画像に対して閾値処理によりある値以下の部分を抽出して2値画像を求める。
【0056】
さらにマイクロコンピュータ11は連結・図形融合処理(ステップS304)を行い、続いて細線化処理(ステップS305)を行う。この処理によりエッジに対応するある幅を有する図形が得られるので、細線化アルゴリズムを適用して、線幅を約1にする。
【0057】
この後マイクロコンピュータ11は、画像の形状を判別して主要被写体を抽出する形状判定処理を行い(ステップS306)、リターンする。
【0058】
次に上記各ステップの処理についてさらに詳しく説明する。
(1)ステップS301:平滑化処理
この平滑化処理は画像内に混入するランダムノイズを除去する処理である。この処理には種々の方法が知られるが、近傍領域内の画素値の中央値(メディアン)を求めるメディアンフィルタや、近傍領域を小領域に分け、小領域毎に分散を求めて分散が最小の小領域を求め、その平均値を出力するエッジ保存フィルタ等が有効である。
【0059】
上記メディアンフィルタは、画像のエッジがなまってしまう副作用があるが、エッジ保存フィルタはエッジがなまらないのでより有効である。また、その他にフーリエ変換による方法もある。
【0060】
(2)ステップS302:差分処理によるエッジ検出処理
このステップでは、マイクロコンピュータ11はセンサデータs(i,j)について(図23参照)、以下のような処理を行うことによりエッジ検出を行う。
【0061】
1次微分オペレータによる手法では、x方向の微分およびy方向の微分をそれぞれ以下の式により計算する。
Δxs(i,j)=s(i,j)−s(i−1,j)
Δys(i,j)=s(i,j)−s(i,j−1)
この結果、図9(a)に示すようなデータが得られる。
【0062】
また、2次微分オペレータによる手法では以下の式により求められる。
Δ^2xs(i,j)=s(i−1,j)−2s(i,j)−s(i+1,j)
Δ^2ys(i,j)=s(i,j−1)−2s(i,j)−s(i,j+1)
2次微分オペレータの一種であるラプラシアン・オペレータは、エッジの肩の部分を強調するので、正の領域から負の領域に移行する。そして“0”になる部分を求めることによってエッジが求められる(図9(b))。
【0063】
具体的な処理方法としては、空間フィルタテーブル(重みテーブル)との積和演算を行う。
図10は、上記空間フィルタテーブルの例を示した説明図である。この図10中、
図10(a)は1次微分オペレータ(横方向)
図10(b)は1次微分オペレータ(縦方向)
図10(c)はラプラシアンオペレータ
図10(d)はソーベルオペレータ(X方向、Y方向の1次微分、絶対値データ変換、加算)
をそれぞれ示す。
【0064】
また、当該処理の演算式は以下に示す通りである。
【数1】
本実施形態では、以上の空間フィルタを、状況に応じて適宜選択して使用する。
【0065】
なお、全画像について差分処理をする場合は、比較的演算が簡単で高速な1次微分オペレータ、ラプラシアンオペレータを使用する。一方、撮影画面内の一部の画像に関して差分処理を行う場合は、演算がやや複雑で演算時間が大きいが効果は大きいソーベルオペレータを選択して使用する。
【0066】
また、低輝度でAFエリアセンサ12の積分時間が長い場合は、1次微分オペレータまたはラプラシアンオペレータを使用し、一方高輝度で積分時間が小さい場合は、ソーベルオペレータを使用することによりAFタイムラグとしてのバランスをとってもよい。
【0067】
(3)ステップS303:2値化処理(閾値処理)
この2値化処理を図11に示すフローチャートを参照して説明する。
当該2値化処理においてマイクロコンピュータ11はまず、画像内の各輝度を示す画素値の出現頻度を表わすヒストグラムを作成し(ステップS401)、次に閾値設定処理を行う(ステップS402)。ここで、ヒストグラムに基づいて閾値を決定する手法は種々知られているが、たとえばモード法では、上記のうちで頻度が最小の輝度値を閾値(スレッシュレベル)として、2値化処理を行なう(図12参照)。
【0068】
上記ステップS402において閾値が設定された後、マイクロコンピュータ11は2値化を行う(ステップS403)。
【0069】
なお、閾値設定の他の手法としては、取り出す図形の面積がある程度わかっている場合に有効なp−タイル法、図形の境界部分に閾値が設定されるように定める微分ヒストグラム法、濃度値の集合を2つのクラスに分けたときのクラス間の分離が最もよくなるようにパラメータtを求める判別分析法、画像位置に応じて閾値を変化させる可変閾値法等の手法が知られている。
【0070】
本実施形態では、これらの手法を状況に応じて適宜選択して使用する。たとえばヒストグラムの形状を判別して明確な最小値が存在するか否かを判定し、明確な場合はモード法を採用する。一方、不明確な場合は判別分析法を採用する。
【0071】
このようにヒストグラムの形状判別を行い、その結果に応じて閾値設定方法を変更する。ヒストグラムの形状判別方法については、図13に示すようにたとえば(谷)極値でありかつ頻度最小値a、2番目に小さい値bを求め、その差b−aを判別値dthと比較して、所定値dthより大きい場合、最小値aの輝度値を閾値として採用する。一方、所定値以下の場合は、画像位置に応じて閾値を変化させる可変閾値法を採用する。
【0072】
ここで、上記閾値設定処理を図13及び図14に示すフローチャートを参照して詳しく説明する。
マイクロコンピュータ11は、図13に示す如き最小値aと2番目に小さい頻度bを求める(ステップS501)。次に、この差(b−a)と所定の判定値dthとを比較する(ステップS502)。そして、差(b−a)が判定値dthより大きい場合は、最小値aに対応する輝度値Baを閾値として採用する(ステップS504)。一方、差(b−a)が判定値dth以下の場合は可変閾値法を採用する(ステップS505)。
【0073】
撮影画面全体に対応する画像での2値化の場合は、最初にモード法により閾値を設定して2値化処理を行う。そして、2値化画像を評価した結果が良好ではない場合は画像を複数のブロックに分割して、分割ブロック毎にヒストグラムを作成し、改めて分割ブロック毎に閾値を設定するようにしてもよい。
【0074】
(4)ステップS304:ラベリング・図形融合処理
マイクロコンピュータ11は、画像中で同じ輝度値の画素が互いに連結している連結部分の魂に対してラベリングを行う。つまり異なる連結部分に対して異なるラベルを貼り付けて区別して領域(連結領域)を分離する(図17ラベリング1〜9参照)。
【0075】
また図形融合処理では、画像に含まれている穴のような面積の小さい図形や点状の図形は、本質的に有効でないばかりか、ノイズとして後の処理に悪影響を及ぼす可能性があるので、除去する必要がある。そのためマイクロコンピュータ11は、元の図形を膨らませたり縮めたりしてノイズ成分を除去する。
【0076】
(5)ステップS305:細線化処理
この処理は、得られた2値画像を対象としてその中に含まれる各々の連結領域に対して連結性を損なうことなく線幅1の線図形まで細める処理である。すなわち、任意の太さの線状の図形において、その幅方向の画素を順次取り除くことにより線図形の中心線を求める。
【0077】
(6)ステップS306:形状判断処理
ここで連結領域の面積はその連結領域に属する画素の個数である。周囲長は連結領域のまわりに境界に位置する画素の個数である。ただし、斜め方向は水平、垂直方向に対して√2倍に補正する。
【0078】
画像の形状を判定するために、以下の係数eが使用される。
【0079】
e=(周囲長)^2/(面積)
eは、形状が円形の時に最小値を示し、形状が複雑になるほど大きい値を示す。
【0080】
人物の顔はほぼ円形に近いと考えられるので、上記eと所定値とを比較して対称画像が人物の顔か否かを判定する。
【0081】
また上記連結領域面積も所定値と比較して、対称画像人物の顔か否かを判定する。また、形状判定に先立ち、面積を所定範囲の値と比較して所定範囲以外の場合は人物ではない画像と判別して、形状判定処理を行わないようにしてもよい。このようにして演算量を減少させてAFタイムラグを縮小させることができる。
【0082】
図15は、上記形状判定処理ルーチンを示したフローチャートである。
図に示すように、マイクロコンピュータ11は、抽出領域があるか否かを判別し(ステップS601)、抽出領域がない場合はリターンする。ここで抽出領域がある場合は抽出領域の面積Sを求め、所定範囲内であるか否かを判別する(ステップS602)。そして抽出領域面積Sが所定範囲の場合はステップS603に移行し、所定範囲内ではない場合はステップS607に移行する
上記ステップS602において抽出領域面積Sが所定範囲の場合は、マイクロコンピュータ11は形状判定値eを算出し、所定範囲内か否かを判別する(ステップS603)。そして、所定範囲内の場合は人物であると判定する(ステップS604)。
【0083】
この後マイクロコンピュータ11は、全抽出領域について形状判定したか否かを判別し(ステップS605)、終了している場合はリターンする。一方、終了していない場合は、次の抽出領域を設定して(ステップS606)、上記ステップS602に移行して上記処理を繰り返し実行する。
【0084】
一方、マイクロコンピュータ11は、上記ステップS602において抽出領域面積Sが所定範囲にない場合、及び上記ステップS603において形状判定値eが所定範囲内にない場合は、共に人物以外の被写体と判定する(ステップS607)。この後、上記同様に全抽出領域について形状判定したか否かを判別する(ステップS605)。
【0085】
ここで、図16乃至図18を参照して本実施形態における人物判定画像について説明する。
【0086】
図16は、本実施形態における人物判定画像の一例を示した図であり、撮影画面の対応するAFエリアセンサ12の画像領域当該画像である。なお、この画像を原画像とする。
【0087】
図17は、図16に示す原画像を用いて差分処理、2値化処理を施した後の画像を示す図である。
図に示すようにエッジ部分(輪郭)のみ抽出された画像となっている。また、抽出エリアにラベリング処理を施している(ラベリング1〜9)。
【0088】
図18は、本実施形態における人物判定領域および人物判定領域内の設定した複数の測距エリアを示す説明図である。
図に示すように、本実施形態では、人物の顔と判定された領域301が抽出され、人物判定領域301内の複数の測距エリアを設定し測距するようになっている。
【0089】
なお、図7のステップS209において、マイクロコンピュータ11は人物判定領域301内の画素に対応する領域にモニタ範囲を設定するようAFエリアセンサ12に対して司令を出力する。
【0090】
この領域のモニタ信号に基づいて再度積分動作を行うことにより、逆光時の高輝度背景の影響を受けて人物判定領域のセンサデータがつぶれてしまうのを防止でき、人物判定領域301に対して最適なセンサデータが得られ、高精度な測距演算を行うことが可能となる。
【0091】
次に形状判定の別の手法として、予め主要被写体のパターンを記憶しておき基準画像とし、この基準画像とパターンマッチング処理を行うことによって抽出する手法を、図19乃至図21を参照して説明する。
【0092】
図19は、形状判定の別の手法において使用する人物判定画像の例を示した図であり、撮影画面の対応するAFエリアセンサ12の画像領域当該画像である。なお、この画像を原画像として以下、形状判定の別の手法を説明する。
【0093】
図20は、図19に示す原画像を用いて差分処理、2値化処理を施した後の画像を示す図である。
【0094】
図に示すようにエッジ部分(輪郭)のみ抽出された画像となっている。また、抽出エリアにラベリング処理を施している(ラベリング1〜9)。当該別手法においては、予めEEPROM11eに記憶されている主要被写体のパターン300を基準画像とし(図22参照)、この基準画像300と、上記2値化処理後の画像との間でパターンマッチング処理(相関演算)を行うことによって、人物像を抽出する。
【0095】
上記基準画像300は、図22に示すように、被写体距離変化に対応して複数の相似パターンA、B…が準備されており、撮影レンズの焦点距離(ズーム駆動部22からの情報)等の条件に応じて選択される。
【0096】
また、カメラの姿勢に応じて複数のパターンが準備されており、カメラ姿勢検出部120の出力に基づいて姿勢を判別し、パターンを選択することができる。
【0097】
さらに人物パターンに限らず、さまざまな物体のパターンが準備されており、人物パターンが検出できない場合に、予め決められた優先順位に従って選択されたパターンマッチング処理がなされる。
【0098】
図21は、当該別手法における人物判定領域および人物判定領域内の設定した複数の測距エリアを示す説明図である。
【0099】
図に示すように、当該別手法では、人物と判定された領域が抽出され人物判定領域302内の複数の測距エリアを設定して測距を行う。これら複数の測距エリアの測距結果は、平均処理や最至近選択等の処理により一個の測距データにまとめられレンズ駆動が行われる。
【0100】
なお、図7のステップS209においては、マイクロコンピュータ11は人物判定領域302内の画素に対応する領域にモニタ範囲を設定するようAFエリアセンサ12に対して司令を出力する。そして、この領域のモニタ信号に基づいて再度AFエリアセンサ12の積分動作を行うことにより、人物判定領域302に対して最適なセンサデータが得られ、高精度な測距演算が可能である。
【0101】
以上説明したように、本第1の実施形態の測距装置によると、主要被写体の輪郭を検出し、広範囲な測距エリアのうちで輪郭内について重点的に測距を行うので、背景に影響されることなく主要被写体に正確にピントをあわせることが可能となり、かつ、タイムラグを縮小した測距装置を提供することができる。
【0102】
次に、本発明の第2の実施形態について説明する。
この第2の実施形態は、その構成は図1に示す限りにおいて上記第1の実施形態と同様である。したがってここでは差異のみの言及に留め、作用において異なる部分のみを説明する。
【0103】
本第2の実施形態の測距装置は、上記第1の実施形態に比して主要被写体検出ルーチンのみを異にし、その他の構成、作用は第1の実施形態と同様であるので、ここでの詳しい説明は省略する。
【0104】
図24は、本第2の実施形態の測距装置における主要被写体検出ルーチンを示したフローチャートである。
【0105】
図に示すように、まずマイクロコンピュータ11は、プリ主要被写体検出を行い(ステップS701)、撮影画面全体に対応するAFエリアセンサ12のセンサデータよりおおまかに主要被写体の位置を求める。次に、マイクロコンピュータ11は、本主要被写体検出を行い(ステップS702)、プリ主要被写体検出の結果に基づいて検出ブロックを新たに設定し、このブロック内で詳細に主要被写体本検出を行う。
【0106】
ここで、上記プリ主要被写体検出(プリ検出)ルーチンについて図25を参照して詳しく説明する。
【0107】
このプリ主要被写体検出では、マイクロコンピュータ11は、まず全領域内のセンサデータについて差分処理を行う(ステップS801)。その後、全領域内のセンサデータに関するヒストグラムを作成し、閾値を設定して2値化処理を行う(ステップS802)。さらに、2値化処理結果についてラベリング処理を行い(ステップS803)、ラベリングされた連結領域につい形状判定処理を行う(ステップS804)。
【0108】
この後、マイクロコンピュータ11は上記ステップS804において求めた形状判定処理結果より抽出エリアを仮決定する(ステップS805)。なお、本第2の実施形態においては、処理時間短縮のために当該プリ検出を行う際、センサデータを所定画素毎に間引いたり、加算平均をとって処理画素数を減らすようにしている。
【0109】
次に、上記主要被写体本検出(本検出)ルーチンについて図26を参照して詳しく説明する。
【0110】
この主要被写体本検出では、マイクロコンピュータ11は、まず上記プリ主要被写体検出処理の結果に基づいて、抽出エリアを含む検出ブロック305を設定する(ステップS901、図27参照)。次に、マイクロコンピュータ11は上記検出ブロック内について差分処理を行い(ステップS902)、該ブロック内のセンサデータに基づいてヒストグラムを作成してブロック毎に閾値を決定する(ステップS903)。
【0111】
この後マイクロコンピュータ11はブロック毎に2値化処理(ステップS904)、ラベリング処理(ステップS905)、形状判定処理(ステップS906)を行い、抽出エリアを決定する(ステップS907)。
【0112】
このように撮影画面に対応するAFエリアセンサ12の画素部分のセンサデータ全体について、エッジ検出して輪郭より主要被写体をおおまかに検出する。
【0113】
そして、その結果に基づいて検出領域付近に新たな検出ブロックを設定し、詳細に主要被写体検出を行うので、閾値を最適に設定することができ、良好な2値化画像が得られ、主要被写体検出精度を大幅に向上させることができる。
【0114】
また、処理時間がやや長くなるのを許容するならば、最初から撮影画面に対応するAFエリアセンサ12の画素領域を複数のブロックに分割して、ブロック毎に本検出(図26参照)を行ってもよい。すなわち、ブロック毎にヒストグラム作成、閾値設定、2値化処理、形状判定処理を行い、主要被写体エリアを抽出する。このとき分割ブロックの大きさを、撮影レンズの焦点距離(ズーム駆動部22からの情報)等の条件に応じて可変(広角側で大、望遠側で小)としてもよい。
【0115】
また、ストロボ20a、ストロボ回路部20による被写体への投光動作と同時に、AFエリアセンサ12による積分動作を行い、かつ定常光除去回路12cを動作させて得られるセンサデータについて主要被写体検出を行ってもよい。
【0116】
主要被写体と背景の輝度が非常に近く、エッジ(輪郭)を検出しにくい場合であっても、上記投光により距離の差による反射光量の差が発生するので、精度よくエッジ(輪郭)検出を行うことができる。
【0117】
このように、本第2の実施形態の測距装置によると、主要被写体の輪郭を検出して広範囲な測距エリアのうちで輪郭内について重点的に測距を行うので、背景に影響されることなく主要被写体に正確にピントをあわせることが可能となり、かつ、タイムラグを縮小した測距装置を提供することができる。
【0118】
次に、本発明の第3の実施形態の測距装置について説明する。
図28は、本第3の実施形態である測距装置を備えるカメラの主要構成を示したブロック図である。
当該カメラは、いわゆるスーパーコンビネーションAFと称されるオートフォーカス方式を採用したカメラであって、カメラ全体の制御を司るCPU501と、被写体像を受像して光電変換した後に上記CPU501に測距情報を提供する測距部502と、CPU501の制御下に被写体に向けてストロボ光を発光する発光源505aと、この発光源505aの発光を制御する回路505と、測距種別情報あるいは主要被写体の判別の可否情報を音声として発する音声信号発生回路507と、で主要部が構成される。
【0119】
上記測距部502は、2つの受光レンズから被写体光を入射して光電変換するエリアセンサ502a、502bと、このエリアセンサ502a、502bの出力をA/D変換して各画素のデジタル値をカメラ制御用のマイクロコンピュータである上記CPU501に対して出力するA/D変換回路502cと、CPU501の制御下にエリアセンサ502a、502bの出力より定常光を除去する定常光除去回路511と、を備えている。
【0120】
上記定常光除去回路511は被写体から定常的に入射する直流的な光の信号を除去する回路であり、エリアセンサ502a、502bで受光した発光源505aからのパルス光のみを出力信号とする作用をする回路である。
【0121】
CPU501の制御の下、定常光除去回路511を作動させた状態で発光回路505により発光源505aが発光すると、被写体520からの反射信号光を受けたエリアセンサ502a上には、図29に示す如き像が結ばれる。なお、この図29において、黒で示す部分が光を入射したところを示している。
【0122】
また、CPU501には、上述の如きエリアセンサ上の像のパターンを分析するソフトウェア(パターン判別プログラム501a)が組み込まれている。このパターン判別プログラム501aにより、被写体像が人間の形であると判定されれば、これを主要被写体と考えることができることになる。なお、パターン判別プログラムは、上記第1実施形態における図10に示す「主要被写体検出」と同様の処理を行う。
【0123】
次に、本実施形態の測距装置による測距動作を図30に示すフローチャートを参照して説明する。
【0124】
図30は、本第3の実施形態の測距装置における測距ルーチンを示したフローチャートである。
【0125】
CPU501は、まず測距に先立って、いわゆるプリ発光のために発光源505aを作動させて補助光照射を行うとともに、定常光除去回路511を作動させてエリアセンサ502a、502bからの出力より定常光を除去する(ステップS1101)。このプリ発光、定常光除去動作により被写体520の反射信号光のパターンのみが図29に示す如く抽出される。CPU501はその内部プログラムであるパターン判別プログラム501aに基づいて当該反射信号光より被写体像が人間の形であるか否かを判別する(ステップS1102)。
【0126】
次にCPU501は、上記パターン判別プログラム501aに基づく処理により主要被写体の位置を検出する(ステップS1103)。ここでCPU501は、被写体像が人間の形であると判別できる場合には、当該被写体は主要被写体であるとの判定を行いステップS1104に移行する。このときCPU501は、上記パターンを形成する光信号が弱いか否かあるいは十分なコントラストがあるかに基づいてかかる判別を行う。
【0127】
ステップS1104においてCPU501は、測距方式がいわゆるアクティブ方式(信号光をカメラ側から投射して、その反射信号光を用いて測距するタイプ)と、パッシブタイプ(被写体の像信号をもとに測距するタイプ)のいずれの方式を用いるかの選択を行なう。ここで像信号のコントラストが弱いときには再度測距用光(発光源505aによる補助光)を照射して(ステップS1110)、その反射信号光によるアクティブオートフォーカスを、先に求められた主要被写体位置、具体的には主要被写体の輪郭領域内部に複数の測距エリアを設定して重点的に行う(ステップS1111)。
【0128】
この後、CPU501は音声信号発生回路507を制御して、アクティブオートフォーカスによる測距であること、および主要被写体の判別の可否情報を音声として発して(ステップS1112)、リターンする。なお、かかる情報に対応した音声パターンを(音声パターン3)とする。
【0129】
一方、上記ステップS1104において、被写体からの反射信号光が弱いと判断された場合、CPU501は、パッシブオートフォーカスの方が適しているとしてステップS1105に分岐する。このステップでは、すでに求められた主要被写体位置の像信号の輪郭領域内に複数の測距エリアを設定し重点的に用いたパッシブ方式による測距を行う。
【0130】
この後、CPU501は音声信号発生回路507を制御して、パッシブオートフォーカスによる測距であること、および主要被写体の判別の可否情報を音声として発して(ステップS1106)、リターンする。なお、かかる情報に対応した音声パターンを(音声パターン2)とする。
【0131】
また、上記ステップS1103において主要被写体を検出することができなかった場合は、輝度情報等を加味してアクティブ方式またはパッシブ方式を選択した後、被写体の存在確率の高い画面中央部を重点的に測距する(ステップS1120)。
【0132】
この後、CPU501は音声信号発生回路507を制御して、中央測距による測距であることおよび主要被写体の判別の可否情報を音声として発して(ステップS1121)、リターンする。なお、かかる情報に対応した音声パターンを(音声パターン1)とする。
【0133】
このように、各測距方式、すなわちステップS1105におけるパッシブオートフォーカス、ステップS1111におけるアクティブオートフォーカス、ステップS1120における中央測距の各測距方式毎に、測距種別の情報および主要被写体の判別の可否情報が音声信号発生回路507から発せされる。
【0134】
また、本実施形態は、単にアクティブ方式とパッシブ方式とをハイブリッド的に組み合わせたのではなく、2つの方式を用いて、主要被写体検知まで行っていることを特徴とするものである。
【0135】
以上説明したように、本第3の実施形態によると、ユーザーにわかりやすく、安心感のある測距を行い得るカメラを提供することができる。
【0136】
以上述べたように、上記各実施形態の測距装置によると、主要被写体の輪郭を検出し、広範囲な測距エリアのうちで輪郭内について重点的に測距を行うので、背景に影響されることなく主要被写体に正確にピントをあわせることが可能であり、かつタイムラグを縮小可能な測距装置を提供することができる。
【0137】
なお、本実施形態の測距装置は外光式測距装置としているが、これに限らず、TTL方式の測距装置にも適用することができ、同様の効果を奏する。
【0138】
[付記]
以上詳述した如き本発明の実施形態によれば、以下の如き構成を得ることができる。即ち、
(1)
二次元領域内を撮像する積分型エリアセンサと、
この積分型エリアセンサの積分動作を制御する積分制御手段と、
上記積分型エリアセンサの出力に基づいて、上記二次元領域内に存在する主要被写体を含む領域を抽出する領域抽出手段と、
この領域抽出手段により抽出された領域に対して測距演算を行う測距演算手段と、
この測距演算手段により得られた測距結果を所定の判定条件と比較する比較手段と、
この比較手段による比較結果が所定条件に合致しない場合、上記積分制御手段による制御パラメータを変更してから上記積分型エリアセンサの積分動作を再度実行させる制御手段と、
を具備したことを特徴とする測距装置。
【0139】
(2)
上記領域抽出手段は、上記積分型エリアセンサから出力される画像データに所定の演算処理を行い、画像データに含まれる物体像同士をそれぞれ分離し、分離された各データと特定のパターンとを照合して物体像が人物像であるか否かを判定すると共に、人物像と判定した領域の情報を出力することを特徴とする(1)に記載の測距装置。
【0140】
(3)
上記所定の演算処理は、エッジ抽出処理および二値化処理を含むことを特徴とする(2)に記載の測距装置。
【0141】
【発明の効果】
以上説明したように本発明によれば、広範囲な測距領域を有する測距装置であっても、主要被写体の領域内に対応する画素のモニタ信号に応じた積分制御を行い、タイムラグを増大させることなく、かつ背景に影響を受けずに主要被写体に対して正確なオートフォーカス処理を行い得る測距装置を提供することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施形態である測距装置の構成を示したブロック図である。
【図2】上記第1の実施形態の測距装置において、マイクロコンピュータのメインルーチンを示すフローチャートである。
【図3】上記第1の実施形態の測距装置における測距光学系を示した説明図である。
【図4】三角測距の原理により被写体距離を求める方法を説明するための図である。
【図5】上記第1の実施形態の測距装置において、AFエリアセンサの構成を示したブロック図である。
【図6】上記第1の実施形態の測距装置における撮影画面(ワイドとテレ)と測距領域との関係について説明した図である。
【図7】上記第1の実施形態の測距装置におけるオートフォーカス(AF)ルーチンを示したフローチャートである。
【図8】上記第1の実施形態の測距装置における主要被写体検出動作を示したフローチャートである。
【図9】上記第1の実施形態の測距装置において、差分処理によるエッジ検出処理の前後画像を示した線図である。
【図10】上記第1の実施形態の測距装置において、差分処理における空間フィルタテーブルの例を示した説明図である。
【図11】上記第1の実施形態の測距装置において、2値化処理を示したフローチャートである。
【図12】上記第1の実施形態の測距装置において、2値化処理の過程でモード法により閾値を決定する手法を説明するための線図である。
【図13】上記第1の実施形態の測距装置において、閾値設定処理を説明するための線図である。
【図14】上記第1の実施形態の測距装置において、閾値設定処理を示したフローチャートである。
【図15】上記第1の実施形態の測距装置において、形状判定処理ルーチンを示したフローチャートである。
【図16】上記第1の実施形態の測距装置において、人物判定画像の一例を示した図である。
【図17】上記第1の実施形態の測距装置において、図16に示す原画像を用いて差分処理、2値化処理を施した後の画像を示す図である。
【図18】上記第1の実施形態の測距装置において、人物判定領域および人物判定領域内の設定した複数の測距エリアを示す説明図である。
【図19】上記第1の実施形態の測距装置において、形状判定の別の手法において使用する人物判定画像の例を示した図である。
【図20】上記第1の実施形態の測距装置において、図19に示す原画像を用いて差分処理、2値化処理を施した後の画像を示す図である。
【図21】上記第1の実施形態の測距装置において、形状判定の別の手法における人物判定領域および人物判定領域内の設定した複数の測距エリアを示す説明図である。
【図22】上記第1の実施形態の測距装置におけるEEPROMに記憶されている、形状判定の別の手法における主要被写体のパターンの一例を示した説明図である。
【図23】上記第1の実施形態の測距装置において、差分処理によるエッジ検出処理の際に用いるセンサデータs(i,j)について示した説明図である。
【図24】本発明の第2の実施形態の測距装置における主要被写体検出ルーチンを示したフローチャートである。
【図25】上記第2の実施形態の測距装置におけるプリ主要被写体検出(プリ検出)ルーチンを示したフローチャートである。
【図26】上記第2の実施形態の測距装置における主要被写体本検出(本検出)ルーチンを示したフローチャートである。
【図27】上記第2の実施形態の測距装置における主要被写体本検出において、新たな検出ブロックの一例を示した説明図である。
【図28】本発明の第3の実施形態の測距装置を備えるカメラの主要構成を示したブロック図である。
【図29】上記第3の実施形態の測距装置におけるたエリアセンサ上に結像される像の一例を示した図である。
【図30】上記第3の実施形態の測距装置における測距ルーチンを示したフローチャートである。
【符号の説明】
11…マイクロコンピュータ
12…AFエリアセンサ
12a…画像領域
12b…処理回路
12c…定常光除去回路
13…フォーカスレンズ駆動部
14…フォーカスレンズ
15…フォーカスレンズエンコーダ
16…シャッタ駆動部
17…1RSW
18…2RSW
19…表示部
20…ストロボ回路部
21…フィルム駆動部
22…ズームレンズ駆動部
23…測光部
120…カメラ姿勢検出部[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a distance measuring device, and more particularly to a distance measuring device that can be used for a camera or the like.
[0002]
[Prior art]
Conventionally, various cameras having an autofocus function for measuring a distance at a plurality of distance measuring points have been proposed. For example, Japanese Patent Laid-Open No. 10-142490 discloses a camera having a distance measuring device that has a number of distance measuring points over a wide range in a shooting screen and measures all the distance measuring points for each shooting. Yes.
[0003]
In recent years, cameras that have been devised so as not to be affected by the background have been proposed. Japanese Patent Laid-Open No. 5-7326 proposes a distance measuring device that detects an edge portion in a shooting screen, generates a gate signal to set a distance measuring frame, and is devised so as not to be affected by the background. Yes.
[0004]
[Problems to be solved by the invention]
However, the distance measuring device disclosed in the above-mentioned Japanese Patent Application Laid-Open No. 10-142490 has a problem that the time lag becomes very large and the usability is inconvenient because distance measurement is performed at every distance measuring point for each photographing.
[0005]
In addition, if a very high-speed processing circuit or microcomputer is used in order to shorten the time lag, there is a problem that the cost is greatly increased and it cannot be adopted for a general-purpose camera.
[0006]
Further, the distance measuring device disclosed in the above Japanese Patent Laid-Open No. 5-7326 is limited to a hill-climbing autofocus device using a contrast method for detecting a high frequency component from a video signal. This contrast method detects the position of the focus lens at which the highest frequency component is greatest while scanning the focus lens, so there is a problem that the time lag is very large and a photo opportunity is missed.
[0007]
The present invention has been made in view of such problems, and even a distance measuring device having a wide range of distance measurement does not increase the time lag and is not affected by the background. An object of the present invention is to provide a distance measuring device capable of performing an automatic focusing process.
[0008]
[Means for Solving the Problems]
In order to achieve the above object, a first distance measuring device of the present invention mainly includes an image sensor that has a plurality of images, picks up a subject image, and outputs an image pickup signal, based on an output of the image sensor. Contour extraction means for detecting a subject and extracting the contour of the main subject, monitor selection means for setting a monitor signal extraction range indicating the integration amount of pixels of the image sensor, and a range set by the monitor selection means Based on the monitor signal, the integration control means for controlling the integration operation of the imaging signal, and the integration control means executes the integration control of the imaging element to divide the subject image obtained from the imaging element into two images A distance measuring unit that performs a distance measuring operation by performing a correlation operation on the captured image signal, and the monitor selecting unit obtains an appropriate image signal for the main subject region extracted by the contour extracting unit. As the extraction range of the monitor signal of the main subject areaOf the extracted contourInsideIn the corresponding pixel area of the image sensorIt is characterized by setting.
[0009]
In order to achieve the above object, the second distance measuring device of the present invention provides:An auxiliary light unit that irradiates the subject with auxiliary light; and a stationary light removal unit that removes a stationary light component from the output of the image sensor, wherein the contour extraction unit irradiates the subject with the auxiliary light unit, The contour of the subject is extracted based on the output of the image sensor from which the steady light component has been removed by the steady light removing means.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
[0013]
FIG. 1 is a block diagram showing the configuration of the distance measuring apparatus according to the first embodiment of the present invention.
[0014]
As shown in the figure, the distance measuring device of the present embodiment captures a subject image formed by a
[0015]
The
[0016]
The
[0017]
The
[0018]
The
[0019]
The focus
[0020]
The
[0021]
The shutter driving unit 16 drives the shutter under the control of the
[0022]
The
[0023]
The
[0024]
1RSW (first release switch) 17 and 2RSW (second release switch) 18 are interlocked with the release button, and
[0025]
The
[0026]
The camera posture detection unit 120 detects the posture (vertical, horizontal) of the camera and outputs it to the
[0027]
Next, the operation of the distance measuring apparatus of the present embodiment having such a configuration will be described.
FIG. 2 is a flowchart showing a main routine of the
[0028]
First, when a power switch (not shown) is turned on or a battery is inserted, the
[0029]
Next, the
[0030]
When the
[0031]
On the other hand, when the
[0032]
Next, the distance measuring optical system in the distance measuring apparatus of this embodiment will be described.
FIG. 3 is an explanatory view showing the distance measuring
[0033]
The distance measuring
[0034]
As shown in FIG. 4, the relative position difference x between the two images is based on the principle of triangulation, and the subject distance L is obtained from the focal length f and the base length B of the light receiving lens according to the following equation.
[0035]
L = (B · f) / x
The distance measurement calculation described above is performed by the
[0036]
Next, the configuration of the
As shown in FIG. 5, the
[0037]
As described above, the
[0038]
The
[0039]
The
[0040]
The fixed pattern noise removal circuit 55 is a circuit for removing fixed pattern noise included in the signal output of each pixel.
[0041]
Next, with reference to FIG. 6, the relationship between the photographing screen (wide and tele) and the distance measurement area in this embodiment will be described.
As described above, since the distance measuring device of the present embodiment employs the outside light distance measuring method, there is a parallax between the shooting screen and the distance measuring area. For this reason, in this embodiment, the area | region used for ranging is limited according to the focal distance information (zoom information) of an imaging optical system. Distance measurement area position correction data corresponding to such a change in focal length is stored in advance in the
[0042]
Further, the
[0043]
In the present embodiment, it is possible to prevent the influence of the subject from being influenced outside the shooting screen by such a device. Also, when reading sensor data, unnecessary sensor data outside the shooting screen is read out and stored in the RAM 11c with reference to the distance measurement area correction data corresponding to the shooting screen. Alternatively, a readout range setting signal is output to the
[0044]
Next, an autofocus (AF) routine in the distance measuring apparatus of the present embodiment will be described with reference to the flowchart of FIG.
[0045]
First, the
[0046]
Thereafter, the
[0047]
Further, the
[0048]
If the distance measurement result satisfies the predetermined condition in step S206, the
[0049]
On the other hand, if the distance measurement result does not satisfy the predetermined condition in step S206, the
[0050]
Thereafter, the process returns to step S201 again, and integration, reading, and distance measurement processing are performed again. In this case, since integration control is performed so that the sensor data in the area of the main subject is appropriate for performing the distance measurement calculation, good distance measurement data can be obtained for the main subject.
[0051]
Next, the main subject detection operation in the distance measuring apparatus of the present embodiment will be described with reference to the flowchart of FIG.
[0052]
In this main subject detection routine, a person is detected assuming a person as the main subject. Although two images are obtained by the
[0053]
First, an overview of the process will be described.
First, the
[0054]
Next, the
[0055]
Thereafter, the
[0056]
Further, the
[0057]
Thereafter, the
[0058]
Next, the process of each step will be described in more detail.
(1) Step S301: Smoothing process
This smoothing process is a process for removing random noise mixed in the image. Various methods are known for this process, but the median filter that obtains the median of the pixel values in the neighborhood area or the neighborhood area is divided into small areas, and the variance is obtained for each small area to minimize the variance. An edge preserving filter that obtains a small area and outputs the average value is effective.
[0059]
The median filter has a side effect that the edge of the image is blurred, but the edge preserving filter is more effective because the edge is not blurred. In addition, there is a method using Fourier transform.
[0060]
(2) Step S302: Edge detection processing by difference processing
In this step, the
[0061]
In the method using the first-order differential operator, the x-direction differentiation and the y-direction differentiation are calculated by the following equations, respectively.
Δxs (i, j) = s (i, j) −s (i−1, j)
Δys (i, j) = s (i, j) −s (i, j−1)
As a result, data as shown in FIG. 9A is obtained.
[0062]
Further, in the method using the second-order differential operator, it is obtained by the following equation.
Δ ^ 2xs (i, j) = s (i−1, j) −2s (i, j) −s (i + 1, j)
Δ ^ 2ys (i, j) = s (i, j−1) −2s (i, j) −s (i, j + 1)
A Laplacian operator, which is a kind of second-order differential operator, emphasizes the shoulder portion of the edge, and therefore shifts from a positive region to a negative region. Then, an edge is obtained by obtaining a portion that becomes “0” (FIG. 9B).
[0063]
As a specific processing method, a product-sum operation with a spatial filter table (weight table) is performed.
FIG. 10 is an explanatory diagram showing an example of the spatial filter table. In FIG. 10,
FIG. 10A shows the first-order differential operator (lateral direction).
FIG. 10B shows a first-order differential operator (vertical direction).
FIG. 10C shows a Laplacian operator.
FIG. 10 (d) shows a Sobel operator (first derivative in X direction and Y direction, absolute value data conversion, addition).
Respectively.
[0064]
Further, the arithmetic expression of the processing is as shown below.
[Expression 1]
In the present embodiment, the above spatial filter is appropriately selected and used according to the situation.
[0065]
Note that, when the difference processing is performed on all images, a first-order differential operator and a Laplacian operator that are relatively simple and high-speed are used. On the other hand, when the difference process is performed on a part of the images on the shooting screen, a Sobel operator is selected and used because the calculation is slightly complicated and the calculation time is long but the effect is large.
[0066]
When the integration time of the
[0067]
(3) Step S303: Binarization processing (threshold processing)
This binarization processing will be described with reference to the flowchart shown in FIG.
In the binarization process, the
[0068]
After the threshold is set in step S402, the
[0069]
Other methods for setting the threshold include a p-tile method that is effective when the area of the figure to be extracted is known to some extent, a differential histogram method that determines that a threshold is set at the boundary of the figure, and a set of density values. There are known methods such as a discriminant analysis method for obtaining the parameter t so that the separation between the two classes is best, and a variable threshold method for changing the threshold according to the image position.
[0070]
In this embodiment, these methods are appropriately selected according to the situation and used. For example, the shape of the histogram is discriminated to determine whether or not there is a clear minimum value. If it is clear, the mode method is adopted. On the other hand, discriminant analysis is adopted when it is unclear.
[0071]
In this way, the shape of the histogram is determined, and the threshold setting method is changed according to the result. For example, as shown in FIG. 13, the histogram shape discrimination method is (valley) extreme value and frequency minimum value a, the second smallest value b is obtained, and the difference b−a is compared with the discrimination value dth. If the value is larger than the predetermined value dth, the luminance value of the minimum value a is adopted as the threshold value. On the other hand, when the value is equal to or smaller than the predetermined value, a variable threshold method is adopted in which the threshold is changed according to the image position.
[0072]
Here, the threshold value setting process will be described in detail with reference to the flowcharts shown in FIGS.
The
[0073]
In the case of binarization with an image corresponding to the entire shooting screen, first, a threshold value is set by the mode method and binarization processing is performed. If the result of evaluating the binarized image is not good, the image may be divided into a plurality of blocks, a histogram may be created for each divided block, and a threshold may be set for each divided block.
[0074]
(4) Step S304: Labeling and figure fusion processing
The
[0075]
In addition, in figure fusion processing, small-area figures such as holes and dot-like figures included in the image are not essentially effective, but they may adversely affect the subsequent processing as noise. Need to be removed. Therefore, the
[0076]
(5) Step S305: Thinning process
This process is a process of narrowing down the line figure having a line width of 1 with respect to each connected area included in the obtained binary image without losing the connectivity. That is, the center line of a line figure is obtained by sequentially removing pixels in the width direction of a line figure having an arbitrary thickness.
[0077]
(6) Step S306: Shape determination process
Here, the area of the connection region is the number of pixels belonging to the connection region. The perimeter is the number of pixels located at the boundary around the connected area. However, the diagonal direction is corrected to √2 times the horizontal and vertical directions.
[0078]
In order to determine the shape of the image, the following coefficient e is used.
[0079]
e = (perimeter length) ^ 2 / (area)
e indicates a minimum value when the shape is circular, and indicates a larger value as the shape becomes more complicated.
[0080]
Since the person's face is considered to be almost circular, the e is compared with a predetermined value to determine whether or not the symmetric image is a person's face.
[0081]
Also, the area of the connected region is compared with a predetermined value to determine whether or not the face is a symmetric image person. Prior to shape determination, the area may be compared with a value within a predetermined range, and if it is outside the predetermined range, it may be determined that the image is not a person and the shape determination process may not be performed. In this way, the amount of calculation can be reduced and the AF time lag can be reduced.
[0082]
FIG. 15 is a flowchart showing the shape determination processing routine.
As shown in the figure, the
If the extraction area S is within the predetermined range in step S602, the
[0083]
Thereafter, the
[0084]
On the other hand, if the extraction area S is not in the predetermined range in step S602 and the shape determination value e is not in the predetermined range in step S603, the
[0085]
Here, the person determination image in the present embodiment will be described with reference to FIGS.
[0086]
FIG. 16 is a diagram showing an example of a person determination image in the present embodiment, which is the image area corresponding to the
[0087]
FIG. 17 is a diagram illustrating an image after performing difference processing and binarization processing using the original image illustrated in FIG. 16.
As shown in the figure, only an edge portion (contour) is extracted. Moreover, the labeling process is performed to the extraction area (labeling 1-9).
[0088]
FIG. 18 is an explanatory diagram showing a person determination area and a plurality of distance measurement areas set in the person determination area in the present embodiment.
As shown in the figure, in this embodiment, an
[0089]
In step S209 in FIG. 7, the
[0090]
By performing the integration operation again based on the monitor signal in this area, it is possible to prevent the sensor data in the person determination area from being crushed due to the influence of the high-luminance background during backlighting. Sensor data can be obtained, and highly accurate ranging calculation can be performed.
[0091]
Next, as another method of shape determination, a method of storing a pattern of a main subject in advance and using it as a reference image and performing pattern matching processing with the reference image will be described with reference to FIGS. 19 to 21. To do.
[0092]
FIG. 19 is a diagram illustrating an example of a person determination image used in another method of shape determination, and is an image area corresponding image of the
[0093]
FIG. 20 is a diagram illustrating an image after performing difference processing and binarization processing using the original image illustrated in FIG. 19.
[0094]
As shown in the figure, only an edge portion (contour) is extracted. Moreover, the labeling process is performed to the extraction area (labeling 1-9). In the other method, the main
[0095]
As shown in FIG. 22, the
[0096]
Also, a plurality of patterns are prepared according to the camera posture, and the posture can be determined based on the output of the camera posture detection unit 120 and the pattern can be selected.
[0097]
Furthermore, not only a person pattern but also various object patterns are prepared, and when a person pattern cannot be detected, a pattern matching process selected according to a predetermined priority order is performed.
[0098]
FIG. 21 is an explanatory diagram showing a person determination area and a plurality of distance measurement areas set in the person determination area in the different method.
[0099]
As shown in the figure, in this other method, an area determined to be a person is extracted, and distance measurement is performed by setting a plurality of distance measuring areas in the
[0100]
In step S209 of FIG. 7, the
[0101]
As described above, according to the distance measuring apparatus of the first embodiment, the outline of the main subject is detected, and the distance is focused on the inside of the outline within a wide range of distance measurement areas. Accordingly, it is possible to focus on the main subject accurately, and to provide a distance measuring device with a reduced time lag.
[0102]
Next, a second embodiment of the present invention will be described.
The configuration of the second embodiment is the same as that of the first embodiment as far as the configuration is shown in FIG. Therefore, only the differences will be mentioned here, and only the portions that differ in operation will be described.
[0103]
The distance measuring apparatus according to the second embodiment differs from the first embodiment only in the main subject detection routine, and other configurations and operations are the same as those in the first embodiment. Detailed description of is omitted.
[0104]
FIG. 24 is a flowchart showing a main subject detection routine in the distance measuring apparatus according to the second embodiment.
[0105]
As shown in the figure, the
[0106]
Now, the pre-main subject detection (pre-detection) routine will be described in detail with reference to FIG.
[0107]
In this pre-main subject detection, the
[0108]
Thereafter, the
[0109]
Next, the main subject main detection (main detection) routine will be described in detail with reference to FIG.
[0110]
In this main subject main detection, the
[0111]
Thereafter, the
[0112]
As described above, edge detection is performed on the entire sensor data of the pixel portion of the
[0113]
Based on the result, a new detection block is set in the vicinity of the detection area, and the main subject is detected in detail. Therefore, the threshold can be set optimally, and a good binarized image can be obtained. The detection accuracy can be greatly improved.
[0114]
If the processing time is allowed to be slightly longer, the pixel area of the
[0115]
Also, simultaneously with the light projecting operation to the subject by the
[0116]
Even when the brightness of the main subject and the background are very close and it is difficult to detect the edge (contour), the difference in the amount of reflected light due to the difference in distance occurs due to the light projection, so the edge (contour) can be detected accurately. It can be carried out.
[0117]
As described above, according to the distance measuring apparatus of the second embodiment, the contour of the main subject is detected and the distance is focused on the contour within the wide distance measuring area, which is influenced by the background. Thus, it is possible to focus on the main subject accurately, and to provide a distance measuring device with a reduced time lag.
[0118]
Next, a distance measuring apparatus according to a third embodiment of the present invention will be described.
FIG. 28 is a block diagram illustrating a main configuration of a camera including the distance measuring apparatus according to the third embodiment.
The camera employs an auto-focus method called a so-called super combination AF, and provides distance measurement information to the
[0119]
The
[0120]
The stationary
[0121]
When the light emission source 505a emits light by the
[0122]
The
[0123]
Next, the distance measuring operation by the distance measuring apparatus of the present embodiment will be described with reference to the flowchart shown in FIG.
[0124]
FIG. 30 is a flowchart showing a distance measurement routine in the distance measuring apparatus according to the third embodiment.
[0125]
Prior to ranging, the
[0126]
Next, the
[0127]
In step S1104, the
[0128]
Thereafter, the
[0129]
On the other hand, if it is determined in step S1104 that the reflected signal light from the subject is weak, the
[0130]
Thereafter, the
[0131]
If the main subject cannot be detected in step S1103, the active method or passive method is selected in consideration of luminance information and the like, and then the center of the screen with a high probability of existence of the subject is intensively measured. The distance is set (step S1120).
[0132]
After that, the
[0133]
As described above, the distance type information and the main subject can be discriminated for each distance measurement method, that is, each of the distance measurement methods of passive autofocus in step S1105, active autofocus in step S1111, and center distance measurement in step S1120. Information is emitted from the audio
[0134]
In addition, the present embodiment is characterized in that the main subject detection is performed using two methods instead of simply combining the active method and the passive method in a hybrid manner.
[0135]
As described above, according to the third embodiment, it is possible to provide a camera that is easy to understand for the user and can perform distance measurement with a sense of security.
[0136]
As described above, according to the distance measuring apparatus of each of the embodiments described above, the outline of the main subject is detected, and the distance measurement is focused on the inside of the outline within a wide range of distance measurement areas. Thus, it is possible to provide a distance measuring device that can accurately focus on the main subject without reducing the time lag.
[0137]
Although the distance measuring device of the present embodiment is an outside light type distance measuring device, the present invention is not limited to this and can be applied to a TTL distance measuring device, and the same effect can be obtained.
[0138]
[Appendix]
According to the embodiment of the present invention as described in detail above, the following configuration can be obtained. That is,
(1)
An integral area sensor for imaging in a two-dimensional area;
Integration control means for controlling the integration operation of the integration type area sensor;
A region extracting means for extracting a region including a main subject existing in the two-dimensional region based on an output of the integral area sensor;
Ranging calculation means for performing a ranging calculation on the area extracted by the area extracting means;
A comparison means for comparing the distance measurement result obtained by the distance calculation means with a predetermined determination condition;
If the comparison result by the comparison means does not meet a predetermined condition, the control means for changing the control parameter by the integration control means and then executing the integration operation of the integration type area sensor again;
A distance measuring device comprising:
[0139]
(2)
The region extracting means performs predetermined arithmetic processing on the image data output from the integral area sensor, separates object images included in the image data, and collates each separated data with a specific pattern. The distance measuring device according to (1), wherein whether or not the object image is a person image is determined, and information on a region determined to be a person image is output.
[0140]
(3)
The distance measuring apparatus according to (2), wherein the predetermined calculation process includes an edge extraction process and a binarization process.
[0141]
【The invention's effect】
As described above, according to the present invention, even a ranging device having a wide ranging area can be used., Integral control according to the monitor signal of the corresponding pixel in the area of the main subject,It is possible to provide a distance measuring device that can perform an accurate autofocus process on a main subject without increasing a time lag and without being affected by the background.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a distance measuring apparatus according to a first embodiment of the present invention.
FIG. 2 is a flowchart showing a main routine of the microcomputer in the distance measuring apparatus according to the first embodiment.
FIG. 3 is an explanatory diagram showing a distance measuring optical system in the distance measuring apparatus according to the first embodiment.
FIG. 4 is a diagram for explaining a method of obtaining a subject distance based on the principle of triangulation.
FIG. 5 is a block diagram showing a configuration of an AF area sensor in the distance measuring apparatus according to the first embodiment.
FIG. 6 is a diagram illustrating a relationship between a shooting screen (wide and tele) and a distance measurement area in the distance measuring device according to the first embodiment.
FIG. 7 is a flowchart showing an autofocus (AF) routine in the distance measuring apparatus according to the first embodiment.
FIG. 8 is a flowchart showing a main subject detection operation in the distance measuring apparatus according to the first embodiment.
FIG. 9 is a diagram showing images before and after edge detection processing by difference processing in the distance measuring apparatus according to the first embodiment.
FIG. 10 is an explanatory diagram showing an example of a spatial filter table in difference processing in the distance measuring apparatus according to the first embodiment.
FIG. 11 is a flowchart showing binarization processing in the distance measuring apparatus according to the first embodiment.
FIG. 12 is a diagram for explaining a method of determining a threshold value by a mode method in the course of binarization processing in the distance measuring apparatus according to the first embodiment.
FIG. 13 is a diagram for explaining threshold setting processing in the distance measuring apparatus according to the first embodiment.
FIG. 14 is a flowchart showing threshold setting processing in the distance measuring apparatus according to the first embodiment.
FIG. 15 is a flowchart showing a shape determination processing routine in the distance measuring apparatus according to the first embodiment.
FIG. 16 is a diagram showing an example of a person determination image in the distance measuring apparatus according to the first embodiment.
17 is a diagram showing an image after performing difference processing and binarization processing using the original image shown in FIG. 16 in the distance measuring apparatus according to the first embodiment. FIG.
FIG. 18 is an explanatory diagram showing a person determination area and a plurality of distance measurement areas set in the person determination area in the distance measuring apparatus according to the first embodiment.
FIG. 19 is a diagram illustrating an example of a person determination image used in another shape determination method in the distance measuring apparatus according to the first embodiment.
20 is a diagram showing an image after performing difference processing and binarization processing using the original image shown in FIG. 19 in the distance measuring apparatus according to the first embodiment. FIG.
FIG. 21 is an explanatory diagram showing a person determination area and a plurality of distance measurement areas set in the person determination area in another shape determination method in the distance measuring apparatus according to the first embodiment.
FIG. 22 is an explanatory diagram showing an example of a pattern of a main subject in another method for shape determination, which is stored in an EEPROM in the distance measuring apparatus according to the first embodiment.
FIG. 23 is an explanatory diagram showing sensor data s (i, j) used in edge detection processing by difference processing in the distance measuring apparatus according to the first embodiment.
FIG. 24 is a flowchart showing a main subject detection routine in the distance measuring apparatus according to the second embodiment of the present invention.
FIG. 25 is a flowchart showing a pre-main subject detection (pre-detection) routine in the distance measuring apparatus according to the second embodiment.
FIG. 26 is a flowchart showing a main subject main detection (main detection) routine in the distance measuring apparatus according to the second embodiment;
FIG. 27 is an explanatory diagram showing an example of a new detection block in main subject main detection in the distance measuring apparatus according to the second embodiment.
FIG. 28 is a block diagram illustrating a main configuration of a camera including a distance measuring device according to a third embodiment of the present invention.
FIG. 29 is a diagram showing an example of an image formed on an area sensor in the distance measuring apparatus according to the third embodiment.
FIG. 30 is a flowchart showing a distance measurement routine in the distance measuring apparatus according to the third embodiment.
[Explanation of symbols]
11 ... Microcomputer
12 ... AF area sensor
12a: Image area
12b ... Processing circuit
12c ... Stationary light removal circuit
13: Focus lens drive unit
14 ... Focus lens
15 ... Focus lens encoder
16 ... Shutter drive section
17 ... 1RSW
18 ... 2RSW
19 ... Display section
20: Strobe circuit section
21 ... Film drive unit
22 ... Zoom lens drive unit
23. Metering section
120 ... Camera posture detection unit
Claims (2)
上記撮像素子の出力に基づいて主要被写体を検出し、当該主要被写体の輪郭を抽出する輪郭抽出手段と、
上記撮像素子の画素の積分量を示すモニタ信号の抽出範囲を設定するモニタ選択手段と、
上記モニタ選択手段の設定する範囲のモニタ信号に基づいて、上記撮像信号の積分動作を制御する積分制御手段と、
上記積分制御手段が上記撮像素子の積分制御を実行して上記撮像素子より得られた、被写体像を2像に分割した撮像信号に関して相関演算を行うことにより測距動作を行う測距手段と、
を具備し、
上記モニタ選択手段は、上記輪郭抽出手段により抽出された主要被写体領域に対する適正な撮像信号が得られるように、上記モニタ信号の抽出範囲を上記主要被写体領域の抽出された輪郭の内部に対応する上記撮像素子の画素領域に設定する
ことを特徴とする測距装置。An imaging device having a plurality of images, imaging a subject image and outputting an imaging signal;
Contour extraction means for detecting a main subject based on the output of the image sensor and extracting the contour of the main subject;
Monitor selection means for setting an extraction range of a monitor signal indicating an integration amount of pixels of the image sensor;
Integration control means for controlling the integration operation of the imaging signal based on a monitor signal in a range set by the monitor selection means;
A distance measuring means for performing a distance measuring operation by performing a correlation operation on an imaging signal obtained by dividing the subject image into two images obtained by the integration control means by executing integration control of the image sensor;
Comprising
The monitor selection means corresponds to the extraction range of the monitor signal corresponding to the inside of the extracted outline of the main subject area so that an appropriate imaging signal for the main subject area extracted by the outline extraction means can be obtained. A distance measuring device characterized by being set in a pixel region of an image sensor .
上記撮像素子の出力より定常光成分を除去する定常光除去手段と、
をさらに備え、
上記輪郭抽出手段は、上記補助光手段で被写体を照射し、上記定常光除去手段で定常光成分を除去した撮像素子の出力に基づいて被写体の輪郭を抽出する
ことを特徴とする請求項1に記載の測距装置。An auxiliary light means for irradiating the subject with auxiliary light;
A stationary light removing means for removing a stationary light component from the output of the imaging device;
Further comprising
The contour extracting unit extracts the contour of the subject based on the output of the imaging device that irradiates the subject with the auxiliary light unit and removes the stationary light component by the stationary light removing unit. The described distance measuring device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26424799A JP4434375B2 (en) | 1999-09-17 | 1999-09-17 | Ranging device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26424799A JP4434375B2 (en) | 1999-09-17 | 1999-09-17 | Ranging device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2001091820A JP2001091820A (en) | 2001-04-06 |
| JP4434375B2 true JP4434375B2 (en) | 2010-03-17 |
Family
ID=17400536
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP26424799A Expired - Fee Related JP4434375B2 (en) | 1999-09-17 | 1999-09-17 | Ranging device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4434375B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5544755B2 (en) * | 2009-05-15 | 2014-07-09 | リコーイメージング株式会社 | Imaging device |
| JP5548048B2 (en) * | 2010-06-30 | 2014-07-16 | アズビル株式会社 | Signal determination apparatus and signal determination method |
| JP5548055B2 (en) * | 2010-07-07 | 2014-07-16 | アズビル株式会社 | Signal determination apparatus and signal determination method |
| CN117835077A (en) * | 2022-09-27 | 2024-04-05 | 华为终端有限公司 | Shooting method, electronic device and medium |
-
1999
- 1999-09-17 JP JP26424799A patent/JP4434375B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2001091820A (en) | 2001-04-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101241222B (en) | Focus adjusting device, image pickup apparatus, and focus adjustment method | |
| JP5609270B2 (en) | IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, AND PROGRAM | |
| JP2002051255A (en) | Main object detectable camera | |
| JP6116277B2 (en) | Imaging apparatus and control method thereof | |
| JP3679693B2 (en) | Auto focus camera | |
| JP2005241805A (en) | Autofocus device and program thereof | |
| JP6474693B2 (en) | Focus detection apparatus, focus detection method, and recording medium | |
| JP5166370B2 (en) | Imaging apparatus and imaging method | |
| US12597221B2 (en) | Image processing apparatus and electronic apparatus | |
| CN101494735B (en) | Imaging apparatus, imaging apparatus control method | |
| JP2001221633A (en) | Distance-measuring apparatus | |
| JP4504492B2 (en) | Camera with main subject detection function | |
| JP2001304855A (en) | Range finder | |
| KR20070113973A (en) | Imaging Device and Imaging Control Method | |
| JP2001249265A (en) | Distance measuring device | |
| JP2000180709A (en) | Range-finding device | |
| JP5367129B2 (en) | Imaging apparatus, control apparatus, and control method thereof | |
| JP4434375B2 (en) | Ranging device | |
| JP5676335B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
| JP5359930B2 (en) | Imaging apparatus, display method, and program | |
| JP2001305413A (en) | Range-finding device | |
| JP2001264621A (en) | Range-finding device | |
| JP2000307932A (en) | Automatic focusing device | |
| JP5930792B2 (en) | Imaging apparatus and control method thereof | |
| JP2012220890A (en) | Focus adjustment device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060606 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090409 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090414 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090615 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090811 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091013 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20091201 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20091222 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140108 Year of fee payment: 4 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |