JP4122865B2 - Autofocus device - Google Patents
Autofocus device Download PDFInfo
- Publication number
- JP4122865B2 JP4122865B2 JP2002193478A JP2002193478A JP4122865B2 JP 4122865 B2 JP4122865 B2 JP 4122865B2 JP 2002193478 A JP2002193478 A JP 2002193478A JP 2002193478 A JP2002193478 A JP 2002193478A JP 4122865 B2 JP4122865 B2 JP 4122865B2
- Authority
- JP
- Japan
- Prior art keywords
- focus
- value
- skin color
- image
- focus evaluation
- 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
Images
Landscapes
- Studio Devices (AREA)
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、画像信号を入力して、撮影レンズのフォーカス制御を行うオートフォーカス装置に関する。
【0002】
【従来の技術】
一般に、デジタルカメラにおけるオートフォーカス制御では、被写体を撮影して得られる画像信号より、画像のコントラストを検出し、そのコントラスト値がピークを示すレンズ位置に撮影レンズを駆動することで、画像を合焦状態に導く方法が用いられている。
【0003】
この方法は、主被写体の画像がぼけた状態であると画像のコントラストは低く、主被写体の画像が合焦状態に近づくにつれて次第にコントラストが上昇し、完全な合焦状態となってところでコントラストが最大になるという原理に基づくものである。そのため、このオートフォーカス制御においては、撮影レンズを所定ピッチで駆動しつつ各レンズ位置においてコントラストの検出を行い、コントラストがピークを示すレンズ位置を撮影レンズの合焦位置として特定し、その合焦位置に撮影レンズ(より厳密にはフォーカシングレンズ)を移動させるような制御形態が採用されている。このような制御形態は、フォーカシングレンズを移動させながら、コントラストなどのAF用の評価値が最適化(多くの場合、最大化)される位置を撮影レンズの合焦位置として特定することから、「山登り方式」と称せられているものである。
【0004】
このような制御技術においては、コントラストなどのAF用評価値の算出を行う合焦評価領域(以下、「AFエリア」とも称する)として、単一のエリアだけではなく、複数のエリアを設けるものが存在する。その場合、複数のAFエリアのうちのいずれかをフォーカス制御の対象領域(対象エリア)として選択し、当該AFエリア内の被写体が合焦状態となるように制御される。
【0005】
【発明が解決しようとする課題】
ところで、複数のAFエリアを設ける場合には、主被写体である人物以外の被写体を撮影しているAFエリアがフォーカス制御の対象エリアとして選択されると、当該対象エリア内の非人物の被写体が合焦状態になってしまう。この結果、本来、合焦状態とすべき主被写体が非合焦状態(いわゆるピンぼけ状態)になってしまうことがある。
【0006】
たとえば、図15に示すように、撮影画像G1内に設けられた複数のAFエリアFRiのうちのいずれかのAFエリア(図ではFR5)において、主被写体としての人物HM以外の背景被写体(図では樹木TR)のみが含まれている場合において、そのAFエリア(FR5)でAF用評価値の局所的な最大値が検出されると、その最大値に対応するレンズ位置が合焦位置として決定される。
【0007】
しかしながら、このレンズ位置は、背景被写体を合焦状態とするレンズ位置であり、主被写体を合焦状態とするレンズ位置ではない。したがって、背景被写体と主被写体とがカメラから互いに異なる距離を有する位置に存在するときには、この主被写体は合焦状態にはならない。すなわち、非主被写体を合焦状態にするレンズ位置を、主被写体を合焦状態にするレンズ位置として誤検出してしまうことなり、いわゆる「擬合焦」が生じることになる。
【0008】
このように、複数のAFエリアの中からフォーカス制御の対象エリアが的確に選択されないときには、主被写体を合焦状態にするレンズ位置が正確に検出されないことがあるという問題がある。
【0009】
また、上記のような問題に加えて、対象エリアの選択をコントラストのみを用いて行う場合には、コントラストの変化曲線における疑似的なピークに起因して、疑似的な合焦状態を本来の合焦状態と誤認識してしまうという問題がある。
【0010】
デジタルカメラを用いて撮影する時には、手ぶれや被写体ぶれ等が発生すると、あるレンズ位置において瞬間的に別の被写体が画像中に含まれる場合があり、そのような場合にはそのレンズ位置においてコントラストが擬似的にピークを示すことになる。そのため、従来のオートフォーカス制御によってコントラストがピークを示すレンズ位置を検出したとしても、そのピークは手ぶれ等による疑似ピークであって実際に主被写体が合焦状態であることを示すピークではない可能性があり、その場合は主被写体を適切に合焦させることができなくなるという問題が発生する。特に近年、デジタルカメラの撮影レンズにおいて高倍率のズーム化が進んでおり、この問題は大きなものとなってきている。
【0011】
このように、コントラストに関する疑似的なピークを誤検出することに起因して、AF制御が正確に行われないという問題がある。
【0012】
そこで、この発明は、上記課題に鑑みてなされたものであって、疑似ピークによる影響を解消しつつ、主被写体としての人物をより的確に合焦状態にすることが可能なオートフォーカス装置(自動合焦装置)を提供することを目的とする。
【0013】
【課題を解決するための手段】
上記目的を達成するため、請求項1の発明は、被写体像を光電変換して得た画像信号で構成される画像に基づいて、撮影レンズのフォーカス制御を行うオートフォーカス装置であって、前記画像内に予め設定された複数の合焦評価領域のそれぞれにおけるエッジ数を検出するエッジ数検出手段と、前記複数の合焦評価領域のそれぞれにおける肌色情報を検出する肌色情報検出手段と、各合焦評価領域の前記エッジ数および前記肌色情報に基づいて前記複数の合焦評価領域の中から前記フォーカス制御の対象領域を選択し、当該選択された対象領域に関する情報に基づいて前記フォーカス制御を行う制御手段と、を備えることを特徴とする。
【0014】
請求項2の発明は、請求項1の発明に係るオートフォーカス装置において、前記複数の合焦評価領域のそれぞれにおけるエッジ幅重心値を求めるエッジ幅重心値演算手段、をさらに備え、前記制御手段は、各合焦評価領域の前記エッジ幅重心値にも基づいて、前記対象領域を前記複数の合焦評価領域の中から選択することを特徴とする。
【0015】
請求項3の発明は、請求項1の発明に係るオートフォーカス装置において、前記肌色情報は肌色画素数であり、前記制御手段は、前記複数の合焦評価領域のうち、所定の第1閾値よりも大きな肌色画素数を有するという第1条件と所定の第2閾値よりも大きなエッジ数を有するという第2条件との両方の条件を満たす合焦評価領域を、前記対象領域として選択することを特徴とする。
【0016】
請求項4の発明は、請求項3の発明に係るオートフォーカス装置において、前記制御手段は、前記複数の合焦評価領域のうち2以上の合焦評価領域が前記第1条件および前記第2条件の両条件を満たす場合には、当該両条件を満たす合焦評価領域のうち最大のエッジ数を有する合焦評価領域を、前記対象領域として選択することを特徴とする。
【0017】
請求項5の発明は、請求項1の発明に係るオートフォーカス装置において、前記制御手段は、前記複数の合焦評価領域のうち、所定の第1閾値よりも大きな肌色画素数を有するという第1条件を満たす合焦評価領域である肌色領域が少なくとも1つ存在する場合において、所定の第2閾値よりも大きなエッジ数を有するという第2条件を全ての肌色領域が満たさないときには、主被写体の画像が合焦状態に近くないと判定し、肌色領域のいずれかが前記第2条件を満たすときに比べて前記撮影レンズを高速に駆動することを特徴とする。
【0018】
【発明の実施の形態】
以下、本発明の実施形態を図面に基づいて説明する。
【0019】
<A.構成>
<構成概要>
図1はこの発明にかかるオートフォーカス装置が適用されたデジタルカメラ1の構成を示すブロック図である。
【0020】
デジタルカメラ1は、被写体を撮影するための撮影機能を実現する撮影機能部10と、撮影機能部10において撮影動作が行われて生成される画像信号を入力して、撮影レンズ11のフォーカス制御を行うオートフォーカス制御部20と、撮影機能部10及びオートフォーカス制御部20を含むデジタルカメラ1の全体的な動作を制御する全体制御部50と、シャッタボタン等の操作ボタンを含む操作部60と、オートフォーカス制御部20からの制御信号に基づいて撮影レンズ11を駆動するレンズ駆動部70とを備えて構成される。
【0021】
撮影機能部10は、レンズ駆動部70の駆動によって光軸方向に沿って移動可能なフォーカシングレンズ12を含む撮影レンズ11、撮影レンズ11を介して入射する被写体像を光電変換して画像データ(画素ごとの画素データの配列からなるデータ)を生成するCCD撮像素子13、CCD撮像素子13からの画像データを一時的に格納するための画像メモリ14、画像メモリ14から得られる画像データに対して色変換処理や画像圧縮処理等の所定の画像処理を行う画像処理部15、画像処理部15において画像表示用の画像処理が施された表示用画像を表示する液晶表示部16、及び、画像処理部15において画像記録用の画像処理が施された撮影画像を記録する記録メディア17、を備えて構成される。
【0022】
撮影機能部10は、全体制御部50の制御によって、本撮影前にライブビュー画像を液晶表示部16に表示させるためのライブビュー画像撮影動作と、シャッタボタンが全押しされたときに記録メディア17に記録するための画像撮影を行う本撮影動作とを行うように構成される。なお、ライブビュー画像撮影動作時には、本撮影動作時に比べて画像処理部15において比較的簡単な画像処理が施される。また、液晶表示部16がオフ状態であったとしても、少なくともオートフォーカス制御時にはCCD撮像素子13による撮影動作が行われる。
【0023】
また、オートフォーカス制御部20は、画像の合焦状態を評価するために予め設定された複数の合焦評価領域(以下、「AFエリア」とも称する)に基づいて画像メモリ14から合焦評価領域の画像成分を抽出する合焦評価領域抽出部21と、各合焦評価領域の画像成分に基づいて画像のコントラスト値Cを求めるコントラスト演算部22と、各合焦評価領域の画像成分に基づいて画像のエッジ成分に関する演算を行い、エッジ数ENとエッジ幅重心値EWを求めるエッジ演算部23と、各合焦評価領域の画像成分に基づいて画像の肌色画素数を求める肌色画素数演算部24と、コントラスト値C、エッジ数EN、エッジ幅重心値EW、および肌色画素数SVに基づいて画像の合焦状態を判定し、撮影レンズ11の合焦位置を特定するとともに、レンズ駆動部70に対してレンズ駆動のための制御信号を送出する合焦制御部25とを備えて構成される。なお、オートフォーカス制御部20における上記各部の機能は、CPUが所定のプログラムを実行することによって実現されるように構成してもよい。
【0024】
全体制御部50は、例えばシャッタボタンが半押し状態にされたときに合焦評価領域の画像成分が適切な合焦状態となるようにオートフォーカス制御部20を機能させ、全押し状態にされたときに撮影機能部10において本撮影動作を行うように制御する。また、全体制御部50は本撮影前にはライブビュー画像撮影動作として撮影機能部10において逐次画像撮影を行わせ、逐次更新される画像を液晶表示部16に表示させたり、オートフォーカス制御部20に与えるように制御する。
【0025】
レンズ駆動部70はオートフォーカス制御部20の合焦制御部25から与えられる制御信号に基づいてフォーカシングレンズ12を例えば遠側から近側に向けて移動させる。このときの駆動ピッチは合焦制御部25によって指定される。そしてオートフォーカス制御部20において合焦評価領域の画像成分が合焦状態となるレンズ位置(合焦位置)が特定され、レンズ駆動部70が合焦制御部25よりその合焦位置が指定された場合には、その指定されたレンズ位置にフォーカシングレンズ12を移動させて合焦評価領域の画像成分が合焦した状態の画像をCCD撮像素子13に結像させる。
【0026】
以上のような構成のデジタルカメラ1においてオートフォーカス制御を行う際には、フォーカシングレンズ12が駆動されるごとにオートフォーカス制御部20において合焦評価領域の画像成分から画像のコントラストを評価するだけでなく、その画像成分のエッジ成分からフォーカシングレンズ12が合焦位置の近傍にあるか否かを判断し、エッジ成分からフォーカシングレンズ12が合焦位置近傍にないと判断される場合には、コントラストがピークを示す場合であってもそのピーク位置を合焦位置に採用しないように構成される。また、複数の合焦評価領域の中から、撮影レンズのフォーカス制御の対象となるエリア(以下、対象エリアないし対象領域とも称する)が選択され、この対象エリアの情報(コントラスト値など)に基づいてオートフォーカス制御が行われる。なお、対象領域は、「合焦動作に用いるべき合焦評価領域」とも表現することができる。
【0027】
<合焦評価領域>
図2(a)は複数の合焦評価領域の一例を示す図である。ここでは、合焦評価領域FRとして、7つの合焦評価領域FR1〜FR7が例示されている。画像G1は、CCD撮像素子13の撮影動作によって得られる画像である。
【0028】
この実施の形態では、図2(a)に示すように画像G1のほぼ中央部分に合焦評価領域FR1〜FR7が設定され、オートフォーカス制御部20においてはこの合焦評価領域FR1〜FR7に含まれる画像成分に基づいて画像のコントラスト及びエッジ成分が評価される。なお、図2(a)に示す合焦評価領域FR1〜FR7は一例であり、実際にデジタルカメラ1等に適用する際には他の合焦評価領域を設定してもよい。また、複数の合焦評価領域は、互いに重ね合わせられて設けられてもよい。たとえば、図2(b)に示すように、複数の合焦評価領域FR1〜FR11が、その一部が互いに重ね合わせられた状態で設けられてもよい。
【0029】
合焦制御部25は、これらの複数の合焦評価領域FRi(i=1,...,K;ここではK=7)の中から、所定の条件(後述)を満たす領域を撮影レンズのフォーカス制御の対象エリア(対象領域)として選択し、当該選択された対象エリアに関するコントラスト値に基づいて撮影レンズのフォーカス制御を行う。
【0030】
オートフォーカス制御部20においては、まず、合焦評価領域抽出部21が画像メモリ14に格納された画像から複数の合焦評価領域FRiに対応する画像成分を抽出する。
【0031】
CCD撮像素子13は、いわゆるベイヤー配列の画素配列構造となっており、CCD撮像素子13で撮影動作が行われると、ベイヤー配列に従った全画面分のR(赤),G(緑),B(青)各色成分の画素データが画像メモリ14に格納される。
【0032】
このため、合焦評価領域抽出部21が合焦評価領域FRiの画像成分を抽出する際には、合焦評価領域FRiに対応する各色成分の画素データを抽出することになる。
【0033】
そして、合焦評価領域抽出部21によって抽出された画像成分は、コントラスト演算部22、エッジ演算部23、および肌色画素数演算部24に与えられる。コントラスト演算部22によりコントラスト値Cが算出され、エッジ演算部23によりエッジ数ENおよびエッジ幅重心値EWが算出され、肌色画素数演算部24により肌色画素数SVが算出される。
【0034】
つぎに、これらの各値C,EN,EW,SVおよび各値の算出動作等について説明する。
【0035】
<肌色エリア>
まず、肌色画素数SVについて説明する。
【0036】
肌色画素数演算部24は、色成分(R,G,B)の画素データを次の数1に基づいて別の色空間表現(Y,U,V)に変換し、変換後のUV空間の所定範囲内にある画素を肌色画素として検出する。
【0037】
【数1】
【0038】
より具体的には、肌色画素数演算部24は、肌色画素に対応する(U,V)の組合せがUV空間における第2象限の所定範囲内に存在するという性質を利用して、肌色画素を検出する。詳細には、肌色画素数演算部24は、その(U,V)の組合せが領域RAおよび領域RB(図3参照)の少なくとも一方に存在する画素を、肌色画素として検出する。ここで、図3に示すように、領域RAは、TH14<U<TH12、且つ、TH16<V<TH18、を満たす矩形領域であり、領域RBは、TH13<U<TH11、且つ、TH15<V<TH17、を満たす矩形領域である。領域RAおよび領域RBの和領域(領域RAおよび領域RBの両方を包含する領域)は、UV平面における肌色領域を近似した領域に相当する。このような近似を用いることにより、合焦評価領域FRiの各画素が肌色画素であるか否かを的確かつ高速に検出することができる。
【0039】
そして、合焦制御部25は、各合焦評価領域FRi内の肌色画素数SVが所定の閾値TH20よりも大きい(SV>TH20)ときに、その合焦評価領域FRiが肌色成分を多く含む領域(以下、肌色エリア(ないし肌色領域)とも称する)であると判定する。言い換えれば、各合焦評価領域FRi内の全画素に対する肌色画素数の割合が所定の閾値よりも大きくなると、その合焦評価領域FRiは肌色エリアと判定される。このように、合焦制御部25は、SV>TH20という条件D1を満たす領域を肌色エリアとして判定する。
【0040】
また、合焦制御部25は、複数の合焦評価領域FRiのうちの肌色エリアの有無に応じて、フォーカス制御を変更する。
【0041】
具体的には、少なくとも1つの肌色エリアが存在する場合には、その少なくとも1つの肌色エリアのうち条件D2(後述)を満たすものが存在するときにのみ主被写体の画像が合焦状態に近いと判定する一方で、全ての肌色エリアが条件D2を満たさないときには主被写体の画像が合焦状態に近くないと判定する。これにより、肌色の被写体(主被写体)と肌色でない被写体(非主被写体)とが存在する場合において、肌色でない被写体(非主被写体)のみが合焦状態になる「擬合焦」の発生確率を低減して、肌色の人物をより的確に合焦状態にすることができる。
【0042】
また、複数の合焦評価領域FRiのうち1つも肌色エリアが存在しない場合には、条件D2(後述)を満たす合焦評価領域FRiが存在するときにのみ主被写体の画像が合焦状態に近いと判定する一方で、条件D2を満たす合焦評価領域FRiが1つも存在しないときには主被写体の画像が合焦状態に近くないと判定する。これにより、人物以外のみを被写体とする場合において、その被写体をより的確に合焦状態にすることができる。
【0043】
<コントラスト値>
次に、コントラスト値Cについて説明する。
【0044】
コントラスト演算部22は、図4に示すような構成となっている。すなわち、コントラスト演算部22は、注目画素と、その注目画素の近隣に位置し、かつ注目画素と一定の位置関係を有する画素との差分絶対値を求める差分演算部221、及び、その差分演算結果を累積加算していく累積加算部222、を備えて構成される。差分演算部221は合焦評価領域FRiに含まれる全ての画素が注目画素として選択されるまで演算を行い、累積加算部222は合焦評価領域FRiに含まれる各画素が注目画素として選択されたときに求められる差分絶対値を順次累積加算していき、最終的に合焦評価領域FRiについてのコントラスト値Cを求める。
【0045】
なお、コントラスト演算部22においてコントラスト値Cを求める際には、画像メモリ14から得られるR,G,Bの各色成分の画素データに基づいて演算を行うようにしてもよいし、また、R,G,Bの各色成分の画素データから一旦輝度データを生成し、その輝度データに基づいて演算を行うようにしてもよい。
【0046】
図5は、フォーカシングレンズ12のレンズ位置を遠側から近側に移動させた場合に、各レンズ位置において撮影される画像からコントラスト演算部22がコントラスト値Cを求めた場合のコントラスト値Cの変化を示す図である。図5に示すように、コントラスト値Cは合焦評価領域FRiの画像成分が合焦状態となるときに最大値を示す。このため、図5に示すコントラスト曲線においては、レンズ位置PAが合焦位置となる。
【0047】
また、図5に示すように、レンズ位置PBにおいては手ぶれ等が発生し、コントラスト値Cに疑似ピークが発生している。一般に、コントラスト方式のオートフォーカス制御を行う場合においてコントラスト値Cが一定値C1よりも小さい場合にはローコントラストであると判断してそのようなピーク位置を合焦位置と特定することはないが、疑似ピークが一定値C1以上の値を示している場合には、そのような疑似ピークを誤って合焦位置と判断する可能性がある。
【0048】
このような疑似ピークに起因する悪影響は、次述するエッジ成分を考慮することによって低減することができる。この実施の形態では、上記のような疑似ピークを誤って合焦位置と判断することがないようにするために、エッジ演算部23においてエッジ成分に関する演算が行われる。
【0049】
<エッジ数、エッジ幅重心値>
次に、エッジ数EN、エッジ幅重心値EWについて説明する。
【0050】
図6はエッジ演算部23の構成を示すブロック図である。エッジ演算部23は合焦評価領域FRiの画像成分について水平方向に隣接画素間での差分値を求めることによってエッジ成分が存在するか否かを判定し、エッジ成分が存在する場合にはそのエッジ数EN及びエッジ幅重心値EWを求めるように構成される。このため、エッジ演算部23は、差分演算部231、エッジ幅検出部232、エッジ数カウント部233、ヒストグラム作成部234、及びエッジ幅重心値演算部235を備える。
【0051】
図7はエッジ演算部23における演算処理の概念を示す図である。なお、図7において画素X1〜X9は合焦評価領域FRiにおいて水平方向に連続して配置される画素を示している。
【0052】
差分演算部231は水平方向に隣接する画素の各色成分の画素データを入力すると、その画素に対応する輝度値を求め、その直前の画素の輝度値との差分値を求める。例えば、図7において差分演算部231が画素X2についての各色成分の画素データを入力すると、画素X2の輝度値を求め、画素X1の輝度値と画素X2の輝度値との差分値(X2−X1)を求める。
【0053】
このときの差分演算は、例えば、注目画素の輝度値からその直前の画素の輝度値を減算するという演算が行われ、演算結果となる差分値の符号が正であれば右肩上がりのエッジ成分が検出され、負であれば右肩下がりのエッジ成分が検出されることになる。ただし、この実施の形態では最終的にエッジ数ENとエッジ幅重心値EWとを求めればよく、各エッジ成分が右肩上がりか右肩下がりかを厳密に区別する必要はない。
【0054】
そして差分演算部231は画素X3についての画素データを入力すると、その輝度値を求めて、画素X3の輝度値と画素X2の輝度値との差分値を求める。以後、差分演算部231は、水平方向に分布する画素X4,X5,X6,…の画素データを順次入力する都度、輝度値の算出演算を行うとともに、その画素の輝度値とその直前の画素の輝度値との差分演算処理を行う。
【0055】
差分演算部231で算出される差分値はエッジ幅検出部232に与えられる。エッジ幅検出部232には、第1の閾値TH1と第2の閾値TH2とが予め設定されている。第1の閾値TH1は隣接画素間での差分値がエッジ成分を構成するか否かを判断するための閾値であり、第2の閾値TH2はそのエッジ成分が十分な強度を有しているか否かを判断するための閾値である。
【0056】
エッジ幅検出部232は、差分演算部231から輝度値の差分値が得られると、その差分値と閾値TH1とを比較する。この結果、差分値が閾値TH1以上であれば、その画素はエッジ成分を構成するものとしてエッジ幅カウント値を1だけ増加させる。例えば、図7に示す画素X4と画素X3との差分値を入力した場合、その差分値は閾値TH1を超えているため、エッジ幅検出部232はエッジ幅カウント値を1だけ増加させる。以後同様の処理を繰り返し、画素X5と画素X4との差分値、画素X6と画素X5との差分値、及び、画素X7と画素X6との差分値のそれぞれは、閾値TH1を超えているため、エッジ幅検出部232はそれぞれの判定処理においてエッジ幅カウント値を1だけ増加させることになる。
【0057】
そして、画素X8と画素X7との差分値が得られると、その差分値は閾値TH1よりも小さいため、エッジ成分の終端部であることを認識し、それまでエッジ幅カウント値を増加させてきた、差分値の総和と第2の閾値TH2とを比較する。図7の場合は、画素X7と画素X3との輝度値の差分値が閾値TH2以上であるため、十分な強度を有するエッジ成分であることが検出される。そして、エッジ幅検出部232はそれまでカウントされたエッジ幅カウント値をそのエッジ成分のエッジ幅として特定する。このように隣接画素間の差分値が閾値TH1よりも小さくなった場合であってエッジ幅カウント値が1以上である場合には、エッジ成分が検出されていることとなり、そのエッジ成分の強度が所定の強度(閾値TH2)以上であれば、そのエッジ成分を有効なエッジ成分として認識する。
【0058】
一方、隣接画素間の差分値が閾値TH1よりも小さくなった場合であってエッジ幅カウント値が1以上である場合であっても、そのエッジ成分の強度が所定の強度(閾値TH2)未満であれば、そのエッジ成分は有効なエッジ成分ではないものと認定する。
【0059】
なお、隣接画素間の差分値が閾値TH1よりも小さい場合であってもエッジ幅カウント値が0であれば、エッジ成分が有効であるか否かの判断は行う必要がなく、順次に入力する差分値が閾値TH1以上であるか否かの判定を進めていけばよい。
【0060】
図7の例の場合は、画素X4と画素X3との差分値が得られたときにはじめてエッジ幅カウント値が1となり、その後順次エッジ幅カウント値が増加していき、最終的に画素X8と画素X7との差分値が得られてエッジ成分の終端部が認識されたときにはエッジ幅カウント値は4となっている。そして、画素X3〜X7によって構成されるエッジ成分が閾値TH2を超えているため、該エッジ成分は有効なものとして認識されることになる。
【0061】
そして、エッジ幅検出部232において有効なエッジ成分が検出された場合には、その検出されたエッジ成分のエッジ幅カウント値がヒストグラム作成部234に与えられるとともに、エッジ数カウント部233にエッジ数のカウント指示が与えられる。
【0062】
エッジ幅検出部232はヒストグラム作成部234に対してエッジ幅カウント値を与えると、エッジ幅カウント値を0にリセットし、それ以後に入力する差分値に基づいてエッジ幅検出処理を繰り返すことで、合焦評価領域FRiの画像成分全体について有効なエッジ成分の検出を行う。
【0063】
エッジ数カウント部233は、予めエッジ数カウント値を0に初期化しており、エッジ幅検出部232からエッジ数のカウント指示が与えられる度に、エッジ数カウント値を1だけ増加させていく。これにより、合焦評価領域FRiの画像成分に含まれる有効なエッジ成分を計数していくことが可能になり、最終的にエッジ数ENが出力される。
【0064】
図8はフォーカシングレンズ12の各レンズ位置において得られる画像からエッジ数ENを求めた場合のレンズ位置とエッジ数との関係を示す図である。図8に示すように、合焦評価領域FRiに含まれる画像成分が合焦状態にあるときには鮮鋭な画像が得られるため、エッジ数は最大値を示す。このため、フォーカシングレンズ12のレンズ位置PAが合焦位置となる。また、合焦評価領域FRiに含まれる画像成分が合焦状態から遠ざかるにつれて画像の鮮鋭度は低下し、ある程度ぼけた状態となると、合焦評価領域FRiの画像成分からは有効なエッジ成分は検出されなくなる。このため、ノイズの影響がないものとすると、フォーカシングレンズ12がレンズ位置PC〜PDの範囲内の位置にあるときにはエッジ数ENは0以外の値を示すが、レンズ位置PC〜PDの範囲外の位置にあるときにはエッジ数ENは0となる。
【0065】
また、ノイズの影響をある程度考慮したとしても、合焦評価領域FRiの画像成分が合焦状態に近い状態にあるときには、エッジ数ENは閾値N1より大きな値をとり、合焦状態に近い状態にないときには、エッジ数ENは閾値N1以下の値をとることが多いと考えられる。
【0066】
したがって、エッジ数カウント部233においてカウントされるエッジ数ENの値を参照すれば、フォーカシングレンズ12があるレンズ位置にあるときに、合焦評価領域FRiの画像成分が合焦状態に近い状態にあるか否かを判断することが可能になる。
【0067】
また、ヒストグラム作成部234は、エッジ幅検出部232から得られるエッジ幅カウント値に基づいて、合焦評価領域FRiに含まれるエッジ成分のヒストグラムを作成する。
【0068】
図9はエッジ成分のヒストグラムを示す図である。なお、図9において分布曲線H1は合焦評価領域FRiの画像成分が合焦状態に近い状態にあるときを示しており、また、分布曲線H2は合焦評価領域FRiの画像成分が合焦状態に近い状態にないときを示している。
【0069】
図9に示すように、ヒストグラム作成部234は、エッジ幅検出部232から得られるエッジ幅カウント値に基づいて、フォーカシングレンズ12があるレンズ位置にあるときの画像成分からエッジ幅に関するヒストグラムを作成すると、エッジ幅の分布状態は画像成分の合焦状態に応じた分布を示す。つまり、合焦評価領域FRiの画像成分が合焦状態に近い状態にあるときには、画像の鮮鋭度が増すのでエッジ幅は全体的に小さくなり、エッジ幅の分布状態もエッジ幅の比較的小さい領域に分布することになる。これに対して、合焦評価領域FRiの画像成分が合焦状態から遠ざかるにつれて画像の鮮鋭度は低下し、エッジ幅の分布状態はエッジ幅の比較的大きな領域に分布するように移行する。そして、ある程度ぼけた状態となると、合焦評価領域FRiの画像成分からは有効なエッジ成分は検出されなくなるため、エッジ幅分布曲線は全く得られなくなる。
【0070】
ヒストグラム作成部234においてエッジ成分のヒストグラムが作成されると、エッジ幅重心値演算部235が機能し、そのヒストグラムからエッジ幅重心値EWが求められる。エッジ幅重心値演算部235は、エッジ成分のヒストグラム分布に基づいて加重平均演算を行うことにより、エッジ幅の平均値を求め、その結果得られる値をエッジ幅重心値EWとする。
【0071】
例えば、図9の分布曲線H2に示すヒストグラム分布の場合、エッジ幅重心値演算部235は加重平均演算を行うことによってエッジ幅重心値EW2を求める。また、図9の分布曲線H1に示すヒストグラム分布の場合、エッジ幅重心値演算部235は加重平均演算を行うことによってエッジ幅重心値EW1を求める。
【0072】
なお、エッジ幅重心値EW1は、画像成分が合焦状態に近づくにつれて次第に小さくなり、ある値に収束していくこととなる。
【0073】
図10は、フォーカシングレンズ12の各レンズ位置において得られる画像からエッジ幅重心値EWを求めた場合のレンズ位置とエッジ幅重心値との関係を示す図である。図10に示すように、合焦評価領域FRiに含まれる画像成分が合焦状態にあるときには鮮鋭な画像が得られるため、エッジ幅重心値は極小値を示す。このため、フォーカシングレンズ12のレンズ位置PAが合焦位置となる。また、合焦評価領域FRiに含まれる画像成分が合焦状態から遠ざかるにつれて画像の鮮鋭度は低下するのでエッジ幅重心値EWは増加し、ある程度ぼけた状態となると、合焦評価領域FRiの画像成分からは有効なエッジ成分は検出されなくなる。つまり、エッジ幅重心値EWとレンズ位置との関係をみると、図10に示すようにエッジ幅重心値EWはM字型特性を示す。
【0074】
このため、ノイズの影響がないものとすると、フォーカシングレンズ12がレンズ位置PE〜PFの範囲内の位置にあるときにはエッジ幅重心値EWは0以外の値を示すが、レンズ位置PE〜PFの範囲外の位置にあるときにはエッジ幅重心値EWは0となる。なお、レンズ位置PEは図8に示したレンズ位置PCにほぼ一致し、レンズ位置PFは図8に示したレンズ位置PDにほぼ一致する。
【0075】
また、ノイズの影響をある程度考慮したとしても、合焦評価領域FRiの画像成分が合焦状態に近い状態にあるときには、エッジ幅重心値EWは閾値W1より大きくかつ閾値W2より小さな値をとり、合焦状態に近い状態にないときには、エッジ幅重心値EWは閾値W1以下又は閾値W2以上の値をとることが多いと考えられる。
【0076】
したがって、エッジ幅重心値演算部235において求められるエッジ幅重心値EWの値を参照すれば、フォーカシングレンズ12があるレンズ位置にあるときに、合焦評価領域FRiの画像成分が合焦状態に近い状態にあるか否かを判断することが可能になる。
【0077】
合焦制御部25は、エッジ演算部23から得られるエッジ数EN及びエッジ幅重心値EWに基づいて合焦評価領域FRiの合焦状態を評価する。
【0078】
合焦制御部25は撮影レンズ11に含まれるフォーカシングレンズ12を段階的に駆動させ、或るレンズ位置における画像内の或る合焦評価領域FRiから導かれるエッジ数ENが所定値(図8に示す閾値N1)より大きな値を示し、かつ、そのときのエッジ幅重心値EWが所定範囲(図10に示す閾値W1より大きくかつ閾値W2未満)内の値を示すという条件D2を満たす場合には、そのレンズ位置が合焦位置PAに近い位置にあると判断する。つまり、合焦制御部25は、エッジ数ENが所定値(図8に示す閾値N1)より大きな値を示し、かつ、そのときのエッジ幅重心値EWが所定範囲(図10に示す閾値W1より大きくかつ閾値W2未満)内の値を示すという条件が、レンズ位置が合焦位置の近傍にあると判定する条件(合焦位置近傍判定条件)であるとして、合焦位置近傍判定を行うのである。
【0079】
そして合焦位置近傍判定によってレンズ位置が合焦位置PAに近い位置にないと判断した場合には、コントラスト値Cが増加するようなレンズ駆動方向を特定してその方向にフォーカシングレンズ12を高速駆動する。この高速駆動によって、効率的に合焦位置近傍にフォーカシングレンズ12を移動させることができ、効率的にオートフォーカス制御を行って合焦評価領域FRiの画像成分を迅速に合焦状態に導くことが可能になる。
【0080】
上記のような構成により、合焦評価領域抽出部21はフォーカシングレンズ12が或るレンズ位置にあるときの画像信号から合焦評価領域の画像成分を抽出し、そしてコントラスト演算部22はその画像成分に基づいてコントラスト値Cを求めて、合焦制御部25に与えることができる。また、エッジ演算部23はその画像成分に基づいてエッジ数EN及びエッジ幅重心値EWを求め、合焦制御部25に与えることができる。そして合焦制御部25は、エッジ演算部23から得られるエッジ数EN及びエッジ幅重心値EWに基づいてフォーカシングレンズ12が合焦位置近傍に位置するか否かを判断し、合焦位置近傍に位置しないと判断される場合にはコントラスト値Cがピークを示していてもそのレンズ位置を合焦位置として採用しないように実現される。
【0081】
この結果、疑似ピークを示すレンズ位置が合焦位置として誤検知されることを良好に防止することが可能になる。これは、デフォーカス量が大きい場合にはエッジ成分が検出されない、という性質を利用するものである。より具体的には、デフォーカス量が大きい場合には、エッジ数ENおよびエッジ幅重心値EWが、それぞれ、ゼロないし非常に小さな値となるため、合焦位置近傍に位置すると判断するための条件が満たされなくなるのである。
【0082】
<B.動作>
次に、上記のような構成のデジタルカメラ1においてオートフォーカス制御を行う際の処理シーケンスについて説明する。図11〜図14はオートフォーカス制御の処理シーケンスを示すフローチャートである。図11は、オートフォーカス制御の全体の流れを示すフローチャートであり、図12、図13、図14は、それぞれ、その一部の流れを示す図である。
【0083】
まず、シャッタボタンが半押し状態にされてオートフォーカス制御が開始されると、オートフォーカス制御部20は撮影レンズ11内のフォーカシングレンズ12をレンズ初期位置に移動させ、そのレンズ初期位置においてCCD撮像素子13から得られる画像からコントラスト値を求める。
【0084】
そして、レンズ微小駆動ルーチン(ステップS10)が実行される。具体的には、合焦制御部25は、フォーカシングレンズ12をレンズ初期位置から近側に12Fδ分移動させる方向判定駆動を行う(図12、ステップS11)。ここで、Fは撮影レンズ11のFナンバであり、δはいわゆる許容錯乱円であり、デジタルカメラ1の場合はCCD撮像素子13の1〜2画素間のピッチに相当する。そしてオートフォーカス制御部20は、そのレンズ位置においてCCD撮像素子13から得られる画像からコントラスト値を求める。
【0085】
なお、ステップS11においてコントラスト値を求める際には、オートフォーカス制御部20においてコントラスト演算部22が機能することになる。また、方向判定駆動量は12Fδ分に限るものではない。
【0086】
次に、オートフォーカス制御部20において合焦制御部25が機能し、レンズ初期位置におけるコントラスト値と12Fδ駆動後のレンズ位置におけるコントラスト値とを比較してフォーカシングレンズ12のレンズ駆動方向を決定する(ステップS12)。すなわち、レンズ初期位置におけるコントラスト値と12Fδ駆動後のレンズ位置におけるコントラスト値とのうちのコントラスト値が大きくなる方向にフォーカシングレンズ12の合焦位置が存在するものと推定し、コントラスト値が大きくなる方向をレンズ駆動方向として決定する。
【0087】
続いて、オートフォーカス制御部20はレンズ駆動形態を決定する(ステップS13,S14,S21〜S23)。レンズ駆動形態には、フォーカシングレンズ12の合焦位置を検出するためにフォーカシングレンズ12を微小駆動させる駆動形態と、フォーカシングレンズ12を粗いピッチで高速駆動することによってフォーカシングレンズ12を合焦位置近傍に高速移動させる駆動形態とがある。
【0088】
オートフォーカス制御部20のエッジ演算部23は、その時点で得られる画像に基づいて、各合焦評価領域FRiにおけるエッジ数EN及びエッジ幅重心値EWを算出する(ステップS13)。また、肌色画素数演算部24は、その時点で得られる画像に基づいて、各合焦評価領域FRiにおける肌色画素数SVを算出する(ステップS14)。
【0089】
その後、合焦制御部25は、フォーカシングレンズ12が合焦位置近傍に位置するか否かを判断する(ステップS21〜S23)。
【0090】
具体的には、まず、複数の合焦評価領域FRiの中で「肌色エリア」が存在するか否かが判定される(ステップS21)。より詳細には、上述したように、その肌色画素数SVが所定の閾値TH20よりも大きい(SV>TH20)という条件D1を満たす合焦評価領域FRiは、肌色エリアであると判定される。
【0091】
このような肌色エリアが少なくとも1つ存在するときにはステップS22に進み、肌色エリアが1つも存在しないときにはステップS23に進む。
【0092】
ステップS22においては、高速スキャンルーチン(ステップS30)に移行するか、近傍スキャンルーチン(ステップS50)に移行するかを決定する。
【0093】
具体的には、「肌色エリア(すなわち、条件D1を満たす合焦評価領域FRi)」のうち、エッジ数ENが所定値N1より大きな値を示し、かつ、エッジ幅重心値EWが所定範囲(閾値W1より大きくかつ閾値W2未満)内の値を示すという条件D2(すなわち、EN>N1、且つ、W1<EW<W2)を満たすものが1つでも存在する場合には、合焦制御部25は、主被写体(より正確には被写体の画像)が合焦状態に近いと判定し、近傍スキャンルーチン(ステップS50)へ進む。
【0094】
一方、肌色エリアは存在するにもかかわらず、いずれの肌色エリアもこの条件D2を満たさない場合には、合焦制御部25は、主被写体が合焦状態に近くないものと判定し、高速スキャンルーチン(ステップS30)へ進む。
【0095】
このように、肌色エリアが存在する場合において、近傍スキャンルーチンへ進むのは、条件D2を満たす肌色エリアが存在するときのみである。そして、「肌色エリア以外の合焦評価領域」(以下、非肌色エリアとも称する)が条件D2を満たすときであっても、近傍スキャンルーチンには進まず、高速スキャンルーチンに進む。すなわち、非肌色エリアの情報を基準にして近傍スキャンルーチンに進むことがないので、非肌色エリアの被写体(たとえば背景被写体)のみが合焦状態になる「擬合焦」の発生確率を低減することができる。
【0096】
ステップS23においても、高速スキャンルーチン(ステップS30)に移行するか、近傍スキャンルーチン(ステップS50)に移行するかを決定する。ここで、ステップS23に進んでくるのは、肌色エリアが存在しないときである。
【0097】
このステップS23では、複数の合焦評価領域FRiのうち、エッジ数ENが所定値N1より大きな値を示し、かつ、エッジ幅重心値EWが所定範囲(閾値W1より大きくかつ閾値W2未満)内の値を示すという条件D2(すなわち、EN>N1、且つ、W1<EW<W2)を満たす合焦評価領域FRiが1つでも存在する場合には、合焦制御部25は、主被写体が合焦状態に近いと判定して、近傍スキャンルーチン(ステップS50)へ進む。一方、いずれの合焦評価領域FRiもこの条件D2を満たさない場合には、合焦制御部25は、主被写体は合焦状態に近くないものと判定して、高速スキャンルーチン(ステップS30)へ進む。
【0098】
つぎに、高速スキャンルーチン(ステップS30)について説明する。高速スキャンルーチンの詳細な処理手順は図13のフローチャートに示されている。
【0099】
まず、合焦制御部25はレンズ駆動方向に対してフォーカシングレンズ12を高速駆動するための残り駆動量が十分にあるかどうかを判定し(ステップS31)、十分な残り駆動量が存在する場合にはステップS33に進み、十分な残り駆動量が存在しない場合にはステップS32に進んでレンズ駆動方向を反転させる。この実施の形態では、高速駆動を行う際の駆動量として駆動ピッチが20Fδに設定されるため、ステップS31における判断では、フォーカシングレンズ12の残り駆動量が20Fδ以上存在するか否かを確認する処理となる。そして20Fδ以上の残り駆動量が存在しない場合には、ステップS32においてレンズ駆動方向を反転させてステップS33に進む。
【0100】
そして、合焦制御部25は、決定されたレンズ駆動方向にフォーカシングレンズ12を駆動ピッチ=20Fδで高速駆動する(ステップS33)。これにより、合焦位置近傍にないフォーカシングレンズ12が微小ピッチ(例えば4Fδ)で駆動されて合焦位置を検出するまでに長時間を要することを回避することができ、オートフォーカス制御の効率化を図ることが可能になる。
【0101】
つぎに、複数の合焦評価領域(AFエリア)FRiのそれぞれについて、コントラスト値Cが算出される(ステップS34)。コントラスト値Cは、コントラスト演算部22によって、高速駆動後のレンズ位置において得られる画像に基づいて算出される。
【0102】
そして、このとき得られたコントラスト値が前回求められたコントラスト値よりも小さいか否かの判定を行う(ステップS35)。この判定によって、高速駆動によってフォーカシングレンズ12が合焦位置を超えたかどうかを判定すること、言い換えれば、コントラストの変化曲線におけるピークを超えたかどうかを判定することができる。
【0103】
このレンズ移動前後のコントラスト値の比較動作(ステップS35)は、複数の合焦評価領域FRiの全てについて行われる。
【0104】
そして、いずれの合焦評価領域FRiのコントラスト値も前回求められたコントラスト値よりも小さくならない場合には、コントラストの変化曲線におけるピークを越えていない、すなわちフォーカシングレンズ12が合焦位置を未だ超えていないと判断し、ステップS33に戻り、再び、ステップS33,S34,S35の処理が繰り返される。
【0105】
一方、いずれかの合焦評価領域FRiのコントラスト値が前回求められたコントラスト値よりも小さくなった場合には、コントラストの変化曲線におけるピークを越えた、すなわちフォーカシングレンズ12が合焦位置を超えたと判断し、ステップS36に進む。
【0106】
ステップS36においては、複数の合焦評価領域(AFエリア)FRiのそれぞれについて、エッジ数EN、エッジ幅重心値EW、および肌色画素数SVが算出される(ステップS34)。エッジ数ENはエッジ数カウント部233により算出され、エッジ幅重心値EWはエッジ幅重心値演算部235により算出され、肌色画素数SVは肌色画素数演算部24により算出される。複数の合焦評価領域FRiにおける各値は、高速駆動後のレンズ位置において得られる画像に基づいて算出される。
【0107】
その後、合焦制御部25は、フォーカシングレンズ12が合焦位置近傍に位置するか否かを判断する(ステップS37〜S39)。これらの動作は、ステップS21〜ステップS23と同様の動作である。
【0108】
具体的には、まず、複数の合焦評価領域FRiの中で「肌色エリア」が存在するか否かが判定される(ステップS37)。より詳細には、上述したように、条件D1(SV>TH20)を満たす合焦評価領域FRiは、肌色エリアであると判定される。
【0109】
このような肌色エリアが少なくとも1つ存在するときにはステップS38に進み、肌色エリアが1つも存在しないときにはステップS39に進む。
【0110】
ステップS38においては、高速スキャンルーチン(ステップS30)を続行するか、近傍スキャンルーチン(ステップS50)に移行するかを決定する。具体的には、肌色エリアのうち、条件D2(すなわち、EN>N1、且つ、W1<EW<W2)を満たすものが1つでも存在する場合には、合焦制御部25は、主被写体が合焦状態に近いと判定し、近傍スキャンルーチン(ステップS50)へ進む。一方、肌色エリアは存在するにもかかわらず、いずれの肌色エリアもこの条件D2を満たさない場合には、合焦制御部25は、主被写体が合焦状態に近くないものと判定し、ステップS40に進み、高速スキャンルーチンを続行する。
【0111】
このように、肌色エリアが存在する場合において、近傍スキャンルーチンへ進むのは、条件D2を満たす肌色エリアが少なくとも1つ存在するときのみである。そして、「肌色エリア以外の合焦評価領域」(すなわち非肌色エリア)が条件D2を満たすときであっても、近傍スキャンルーチンには進まず、高速スキャンルーチンを続行する。すなわち、非肌色エリアの情報を基準にして近傍スキャンルーチンに進むことがないので、非肌色エリアの被写体(たとえば背景被写体)のみが合焦状態になる「擬合焦」の発生確率を低減することができる。
【0112】
ステップS39においても、高速スキャンルーチン(ステップS30)を続行するか、近傍スキャンルーチン(ステップS50)に移行するかを決定する。ステップS39に進んでくるのは、肌色エリアが存在しないときである。ここでは、複数の合焦評価領域FRiのうち、条件D2(すなわち、EN>N1、且つ、W1<EW<W2)を満たす合焦評価領域FRiが1つでも存在する場合には、合焦制御部25は、主被写体が合焦状態に近いと判定して、近傍スキャンルーチン(ステップS50)へ進む。一方、いずれの合焦評価領域FRiもこの条件D2を満たさない場合には、合焦制御部25は、主被写体は合焦状態に近くないものと判定して、ステップS40に進み、高速スキャンルーチンを続行する。
【0113】
ステップS40において、合焦制御部25は、フォーカシングレンズ12の移動可能範囲内の全域についてフォーカシングレンズ12を高速駆動したか、すなわち全域スキャンを終了したかを判断する。
【0114】
そしてフォーカシングレンズ12を高速駆動するための可動範囲が未だ残されている場合には、ステップS33に戻って、フォーカシングレンズ12を駆動ピッチ=20Fδで高速駆動し、ステップS34以降の処理を再び行う。
【0115】
これに対し、現在のレンズ駆動方向に対して高速駆動するための可動領域が残されていない場合には、ステップS41に進む。ステップS41においては、合焦制御部25は、それまでに得られたコントラスト値のうちから最大値を決定し、その最大値を示すレンズ位置近傍へフォーカシングレンズ12を駆動させる。
【0116】
デジタルカメラ1で被写体を撮影する場合、被写体の種類によってはエッジ成分を良好に抽出することが出来ない場合もある。そのため、エッジ数EN及びエッジ幅重心値EWが合焦位置近傍判定条件(条件D2)を満たさない場合に、オートフォーカス制御が不可能であるとするよりも、コントラスト値に基づいてオートフォーカス制御を行う方が好ましいと考えられる。そのため、この実施の形態では、フォーカシングレンズ12を全域スキャンさせても合焦位置近傍判定条件D2を満足するような合焦位置近傍のレンズ位置を特定することができなかった場合に、ステップS41においてコントラスト値が最大値を示すレンズ位置近傍にフォーカシングレンズ12を駆動することで、エッジ成分を良好に抽出することができないような被写体を撮影する場合にも、合焦位置近傍にフォーカシングレンズ12を移動させてオートフォーカス制御を行うことができるように構成している。
【0117】
以上のような処理が終了すると、高速スキャンルーチンの処理は終了する。
【0118】
続いて図14のフローチャートを参照しながら、近傍スキャンルーチンについて説明する。図14は、近傍スキャンルーチンの詳細な処理手順を示すフローチャートである。
【0119】
まず、合焦制御部25は所定の微小ピッチp(例えばp=4Fδ)でフォーカシングレンズ12をコントラスト値が大きくなる方向に駆動させる(ステップS51)。そしてコントラスト演算部22が、その移動後のレンズ位置においてCCD撮像素子13から得られる画像に基づいてコントラスト値を求める(ステップS52)。また、コントラスト値Cとともにエッジ数ENも求められる。エッジ数ENは、エッジ数カウント部233により算出される。
【0120】
ここで、値C,ENは、全ての合焦評価領域FRiについて求める必要はない。たとえば、条件D1を満たす合焦評価領域FRi(すなわち肌色エリア)が存在する場合には、複数の合焦評価領域FRiのうち肌色エリアについてのみ値C,ENを求めるようにしてもよい。たとえば、複数の合焦評価領域FRiのうちに3つの肌色エリアが存在する場合には、この3つの肌色エリアについてのみ値C,ENを求めるようにしてもよい。あるいは、条件D2をさらに満たす肌色エリアについてのみ値C,ENを求めるようにしてもよい。このように、値C,ENを算出すべき合焦評価領域FRiの数を減らすことにより、演算処理の負荷を軽減することができる。
【0121】
ステップS53に進み、合焦制御部25は、複数のエリアの中から、撮影レンズのフォーカス制御の対象となるエリア(対象エリア)を選択する。
【0122】
具体的には、条件D1を満たす合焦評価領域FRi(すなわち肌色エリア)が存在する場合には、肌色エリアが対象エリアとして選択される。
【0123】
また、複数の肌色エリアが存在する場合には、それら複数の肌色エリアのうち、最もそのエッジ数ENが大きな肌色エリアが対象エリアとして選択されることが好ましい。これは、人物をより鮮明な画像(いわゆるピントがあった画像)として表現するためには、コントラスト曲線におけるピーク値が大きくなるような被写体に対応する肌色エリアを選択し、その選択した肌色エリアの情報を基準にしてオートフォーカス制御を行うことが好ましいからである。たとえば、人物の顔のうち、目、鼻、口、などのエッジ数が大きくなる部分の方が、頬などのエッジ数が小さくなる部分に比べて、そのコントラスト曲線のピーク値も高くなると考えられる。そのため、エッジ数が大きな肌色エリアを対象エリアとして選択することによって、コントラスト曲線のピーク値が大きくなるエリアを対象エリアとして選択することを意図するのである。このように、被写体の状況をエッジ数で判別することによって、対象エリアを複数の合焦評価領域の中からより的確に選択することが可能である。
【0124】
また、条件D1を満たす合焦評価領域FRi(すなわち肌色エリア)が存在しない場合には、好ましくは、複数の合焦評価領域FRiのうち、最もそのエッジ数ENが大きな合焦評価領域FRiが対象エリアとして選択される。
【0125】
つぎに、ステップS54,S55において、合焦制御部25は対象エリアのコントラスト値の評価処理(ステップS54)を行うとともに、その評価結果に基づいて分岐処理(ステップS55)を行う。
【0126】
具体的には、合焦制御部25は、対象エリアのコントラスト値がピークを示すレンズ位置(合焦位置)を特定することが可能かどうかを判断する。
【0127】
今回算出されたコントラスト値が前回値に比べて大きくなっている場合には、合焦制御部25は、未だピーク位置は検知されておらず合焦位置を特定することができないと判断する。この場合には、ステップS51に戻り、コントラスト値が増加するレンズ駆動方向に対して微小ピッチ(p=4Fδ)でのレンズ駆動およびコントラスト値の演算処理等(ステップS52〜S55)を繰り返すことになる。
【0128】
これに対して今回算出されたコントラスト値が前回値よりも小さくなった場合には、合焦制御部25は、前回のコントラスト値に対応するレンズ位置をピーク位置として検知する。そして、ステップS56に進んで、特定された合焦位置へ撮影レンズ11のフォーカシングレンズ12を駆動する。なお、このとき必要に応じてコントラスト値の補間処理を行ってコントラスト値が最大値を示すレンズ位置を求め、そのレンズ位置を合焦位置として特定するようにしてもよい。
【0129】
なお、微小ピッチでのレンズ駆動を所定回数行っても合焦位置を特定することができない場合には、被写体自体のコントラストが低いものとして特定のレンズ位置にフォーカシングレンズ12を駆動するように構成してもよい。なお、特定のレンズ位置としては、例えばオートフォーカス制御を開始する前のレンズ位置や、無限遠方に被写体が存在するものと仮定して最も遠側のレンズ位置等とすることが考えられる。
【0130】
このように、近傍スキャンルーチンにおいては、対象エリアに関する情報(具体的にはコントラスト値)に基づいてフォーカス制御が行われる。
【0131】
以上で、この実施の形態におけるオートフォーカス制御が終了する。上記のオートフォーカス制御では、各合焦評価領域の肌色画素数に基づいて複数の合焦評価領域の中から対象エリアを選択し、選択された対象エリアに関する情報に基づいて撮影レンズのフォーカス制御が行われる。したがって、フォーカス制御の対象となるエリアである対象エリアを複数の合焦評価領域の中から的確に選択することが可能になる。すなわち、主被写体としての人物をより的確に合焦状態にすることが可能である。
【0132】
また、エッジ数EN及びエッジ幅重心値EWを評価した上で対象エリアを選択して、フォーカシングレンズ12が合焦位置近傍に位置するか否かを判断しているので、コントラスト値Cが疑似ピークを示す場合であってもそのような疑似ピークが存在するレンズ位置付近は合焦位置近傍であると判断される可能性は低い。そのため、この実施の形態におけるオートフォーカス制御を適用することによって、疑似ピーク位置を合焦位置と誤認識することを防止することができ、疑似ピークによる影響を解消して被写体を適切に合焦状態とすることが可能になる。
【0133】
このように、このデジタルカメラ1によれば、疑似ピークによる影響を解消しつつ、主被写体としての人物をより的確に合焦状態にすることが可能である。すなわち、より正確なAF制御を行うことが可能である。
【0134】
また、上記のオートフォーカス制御では、複数の合焦評価領域FRiのうち、所定の閾値TH20よりも大きな肌色画素数SVを有するという条件D1(SV>TH20)を満たす合焦評価領域(すなわち肌色エリア)が少なくとも1つ存在する場合において、条件D2(すなわち、EN>N1、且つ、W1<EW<W2)を全ての肌色エリアが満たさないときには、この条件D2を肌色エリアのいずれかが満たす場合に比べて撮影レンズが高速に駆動される。したがって、フォーカシングレンズ12を合焦位置近傍に迅速に移動させることができ、オートフォーカス制御の迅速化を達成することができる。また、肌色エリアが少なくとも1つ存在する場合において、条件D2を満たす非肌色エリアが仮に存在したとしても全ての肌色エリアが条件D2を満たさないときには、合焦制御部25は、そのような非肌色エリアを対象エリアとして選択せず且つ主被写体の画像が合焦状態に近くないと判定するので、人物以外の背景被写体のみが合焦状態になる「擬合焦」の発生確率を低減することができる。
【0135】
<C.その他>
以上、この発明の実施の形態について説明したが、この発明は上記説明した内容のものに限定されるものではない。
【0136】
たとえば、判定処理における等号成立時には、いずれの分岐処理を行うようにしてもよい。たとえば、条件D1として、SV>TH20ではなく、SV≧TH20を採用するようにしてもよい。あるいは、条件D2として、EN≧N1、且つ、W1≦EW≦W2、などを採用するようにしてもよい。
【0137】
また、上記実施形態においては、合焦制御部25がエッジ成分の評価を行う際にエッジ数EN及びエッジ幅重心値EWの双方を評価対象としている。具体的には、条件D2として、EN>N1、且つ、W1<EW<W2、を採用している。これは、一般に、画像のエッジ成分は画像の高周波成分であることからノイズの影響を受けやすいという性質を有しているためである。このように、上記実施形態では、エッジ成分に関する異なる指標値として、エッジ数EN及びエッジ幅重心値EWという2つの指標値を用いることにより、ノイズの影響を低減して、より信頼性の高い合焦位置近傍判定を行うように実現しているのである。
【0138】
ただし、これに限定されず、エッジ数EN及びエッジ幅重心値EWのうちの一方のみに基づいて合焦位置近傍判定を行うようにしてもよい。たとえば、エッジ数ENが所定値(図8に示す閾値N1)より大きな値を示すこと(EN>N1)のみを条件D2として採用してもよい。なお、エッジ幅重心値EWはエッジ数ENに比べて合焦位置近傍でノイズの影響を受けやすくなるので、エッジ数EN及びエッジ幅重心値EWのうちの一方を評価対象とする場合には、エッジ数ENを評価対象とすることが好ましい。
【0139】
さらに、上記実施形態においては、図13のステップS34,S35において、コントラスト値がピークを越えたか否かを判定しているが、このような判定処理を行わないようにしても良い。
【0140】
また、上記実施形態においては、高速スキャンルーチンと近傍スキャンルーチンとを組み合わせてオートフォーカス制御を行っているが、これに限定されない。ただし、上記実施形態のように両ルーチンを組み合わせることによれば、より高速なオートフォーカス制御を実現することが可能になる。
【0141】
さらに、上記実施形態においては、図14のステップS53において、1つの合焦評価領域を対象エリアとして選択しているが、これに限定されない。たとえば、所定の閾値N1より大きなエッジ数ENを有する複数の肌色エリアを選択しておき、その後、選択した複数の肌色エリアについてのコントラストのピーク値のうちの最大値に対応するレンズ位置にフォーカシングレンズ12を駆動するようにしてもよい。
【0142】
また、上記実施形態においては、近傍スキャンルーチンにおいて、対象エリアのコントラスト値Cに基づいてフォーカス制御を行う場合について例示したが、これに限定されない。たとえば、対象エリアのコントラスト値Cを考慮せず、対象エリアのエッジ数EN(およびエッジ幅重心値EW)に基づいて、フォーカス制御を行うようにしてもよい。ただし、一般に、エッジ成分はノイズの影響を受けやすいのに対してコントラスト値はノイズの影響を受けにくいため、合焦位置近傍ではコントラスト値に基づいて合焦状態の評価を行うことが好ましい。合焦位置近傍に到達すれば擬合焦の発生可能性は少なくなるので、合焦位置近傍ではコントラスト値Cに基づいてフォーカス制御を行うことにより、さらに高精度に合焦位置を特定することが可能である。
【0143】
さらに、上述したオートフォーカス制御部20はオートフォーカス制御を行うためのオートフォーカス装置としても機能し、カメラ等の撮影装置に適用されれば、複数の合焦評価領域の中から適切に対象エリアを選択し、疑似ピークを合焦位置として誤認識することのない適切なオートフォーカス制御を行うことが可能になる。そのため、上述したオートフォーカス制御部20はデジタルカメラ1以外の装置に対しても適用することが可能である。
【0144】
また、上記実施形態においては、シャッタボタンが半押し状態とされたタイミングでオートフォーカス制御を行う場合を例示したが、オートフォーカス制御を行うタイミングはそれに限定されるものではない。たとえば、撮影時のライブビュー画像の表示時において常にオートフォーカス制御を行うようにしてもよい。
【0145】
【発明の効果】
以上のように、請求項1ないし請求項5に記載の発明によれば、各合焦評価領域のエッジ数および肌色情報に基づいて複数の合焦評価領域の中からフォーカス制御の対象領域が選択され、当該選択された対象領域に関する情報に基づいてフォーカス制御が行われるので、疑似ピークによる影響を解消しつつ、主被写体としての人物をより的確に合焦状態にすることが可能である。
【0146】
特に、請求項2に記載の発明によれば、フォーカス制御の対象領域を複数の合焦評価領域の中からより的確に選択することが可能である。
【0147】
また、請求項4に記載の発明によれば、対象領域を複数の合焦評価領域の中からより的確に選択することが可能である。
【0148】
さらに、請求項5に記載の発明によれば、肌色エリアが少なくとも1つ存在する場合においては、非肌色エリアのいずれかが第2条件を満たすときであっても肌色エリアの全てが第2条件を満たさないときには、主被写体の画像が合焦状態に近くないと判定されるので、擬合焦の発生確率を低減することができる。また、このとき、肌色領域のいずれかが第2条件を満たすときに比べて撮影レンズが高速に駆動されるので、撮影レンズを効率的に合焦位置近傍に移動させ、フォーカス制御の迅速化を図ることができる。
【図面の簡単な説明】
【図1】デジタルカメラの構成を示すブロック図である。
【図2】合焦評価領域の一例を示す図である。
【図3】UV平面における肌色画素の分布状態を示す図である。
【図4】コントラスト演算部の詳細構成を示すブロック図である。
【図5】コントラスト値の変化の一例を示す図である。
【図6】エッジ演算部の詳細構成を示すブロック図である。
【図7】エッジ演算部における演算処理の概念を示す図である。
【図8】レンズ位置とエッジ数との関係を示す図である。
【図9】エッジ幅のヒストグラムを示す図である。
【図10】レンズ位置とエッジ幅重心値との関係を示す図である。
【図11】オートフォーカス制御動作の流れを示すフローチャートである。
【図12】レンズ微小駆動ルーチンにおける動作を示すフローチャートである。
【図13】高速スキャンルーチンにおける動作を示すフローチャートである。
【図14】近傍スキャンルーチンにおける動作を示すフローチャートである。
【図15】従来技術の問題点を説明する概念図である。
【符号の説明】
1 デジタルカメラ
10 撮影機能部
11 撮影レンズ
12 フォーカシングレンズ
20 オートフォーカス制御部
C コントラスト値
EN エッジ数
EW エッジ幅重心値
FRi 合焦評価領域
G1 画像
HM 人物
SV 肌色画素数
TR 樹木
X1〜X9 画素[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an autofocus device that inputs an image signal and performs focus control of a photographing lens.
[0002]
[Prior art]
In general, in autofocus control in a digital camera, the contrast of an image is detected from an image signal obtained by photographing a subject, and the image is focused by driving the photographing lens to a lens position where the contrast value shows a peak. A method that leads to a condition is used.
[0003]
In this method, the contrast of the image is low when the image of the main subject is blurred, the contrast gradually increases as the image of the main subject approaches the in-focus state, and the contrast becomes maximum when the image is completely in-focus. It is based on the principle of becoming. Therefore, in this autofocus control, the contrast is detected at each lens position while driving the photographing lens at a predetermined pitch, the lens position where the contrast reaches a peak is specified as the in-focus position of the photographing lens, and the in-focus position. In addition, a control mode is adopted in which the photographic lens (more precisely, the focusing lens) is moved. Such a control form specifies the position where the evaluation value for AF such as contrast is optimized (in many cases maximized) as the focusing position of the photographing lens while moving the focusing lens. This is called “mountain climbing method”.
[0004]
In such a control technique, a focus evaluation area (hereinafter also referred to as “AF area”) for calculating an AF evaluation value such as contrast is provided not only with a single area but also with a plurality of areas. Exists. In that case, one of the plurality of AF areas is selected as a focus control target area (target area), and control is performed so that the subject in the AF area is in focus.
[0005]
[Problems to be solved by the invention]
By the way, when providing a plurality of AF areas, if an AF area that is shooting a subject other than the main subject is selected as a focus control target area, a non-human subject within the target area is combined. It will be in a focus state. As a result, the main subject that should originally be in focus may be out of focus (so-called out of focus).
[0006]
For example, as shown in FIG. 15, a background subject other than a person HM as a main subject (in the figure, FR5) in any one of a plurality of AF areas FRi provided in the photographed image G1 (FR5 in the figure). When only the tree TR) is included, when the local maximum value of the AF evaluation value is detected in the AF area (FR5), the lens position corresponding to the maximum value is determined as the focus position. The
[0007]
However, this lens position is a lens position where the background subject is in focus, and is not a lens position where the main subject is in focus. Therefore, when the background subject and the main subject are present at positions having different distances from the camera, the main subject is not in focus. That is, the lens position that brings the non-main subject into focus is erroneously detected as the lens position that brings the main subject into focus, and so-called “pseudo-focus” occurs.
[0008]
As described above, when the focus control target area is not accurately selected from the plurality of AF areas, there is a problem in that the lens position that brings the main subject into focus may not be accurately detected.
[0009]
In addition to the above-described problems, when the target area is selected using only the contrast, the pseudo focus state is changed to the original focus due to the pseudo peak in the contrast change curve. There is a problem of misrecognizing it as a focus state.
[0010]
When shooting with a digital camera, if camera shake, subject blur, etc. occur, another subject may be included in the image instantaneously at a certain lens position. A pseudo peak will be shown. Therefore, even if the lens position where the contrast shows a peak is detected by the conventional autofocus control, the peak may be a pseudo peak due to camera shake or the like and not a peak indicating that the main subject is actually in focus. In this case, there arises a problem that the main subject cannot be properly focused. In particular, in recent years, zooming at a high magnification has been advanced in a photographing lens of a digital camera, and this problem has become serious.
[0011]
Thus, there is a problem that AF control is not performed accurately due to erroneous detection of a pseudo peak related to contrast.
[0012]
Accordingly, the present invention has been made in view of the above problems, and is an autofocus device (automatic) that can more accurately bring a person as a main subject into focus while eliminating the influence of a pseudo peak. It is an object to provide a focusing device.
[0013]
[Means for Solving the Problems]
In order to achieve the above object, an invention according to
[0014]
According to a second aspect of the present invention, in the autofocus device according to the first aspect of the present invention, the autofocus device further comprises an edge width centroid value calculating means for obtaining an edge width centroid value in each of the plurality of focus evaluation areas, The target area is selected from the plurality of focus evaluation areas based on the edge width centroid value of each focus evaluation area.
[0015]
According to a third aspect of the present invention, in the autofocus device according to the first aspect of the invention, the skin color information is the number of skin color pixels, and the control means is based on a predetermined first threshold value among the plurality of focus evaluation areas. A focus evaluation area that satisfies both the first condition that the number of flesh-color pixels is larger and the second condition that the number of edges is larger than a predetermined second threshold is selected as the target area. And
[0016]
According to a fourth aspect of the present invention, in the autofocus device according to the third aspect of the invention, the control means is configured such that two or more focusing evaluation areas of the plurality of focusing evaluation areas are the first condition and the second condition. If both conditions are satisfied, a focus evaluation area having the maximum number of edges is selected as the target area from among the focus evaluation areas satisfying both the conditions.
[0017]
According to a fifth aspect of the present invention, in the autofocus device according to the first aspect of the invention, the control means has a first skin color pixel number greater than a predetermined first threshold value among the plurality of focus evaluation regions. When there is at least one skin color area that is a focus evaluation area that satisfies the condition, and all the skin color areas do not satisfy the second condition that the number of edges is larger than a predetermined second threshold, the image of the main subject Is determined to be close to the in-focus state, and the photographing lens is driven at a higher speed than when any one of the skin color regions satisfies the second condition.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0019]
<A. Configuration>
<Outline of configuration>
FIG. 1 is a block diagram showing a configuration of a
[0020]
The
[0021]
The photographing
[0022]
The
[0023]
In addition, the
[0024]
For example, when the shutter button is half-pressed, the
[0025]
The lens driving unit 70 moves the focusing
[0026]
When performing autofocus control in the
[0027]
<Focus evaluation area>
FIG. 2A is a diagram illustrating an example of a plurality of focus evaluation areas. Here, seven focus evaluation areas FR1 to FR7 are illustrated as the focus evaluation area FR. The image G1 is an image obtained by the photographing operation of the
[0028]
In this embodiment, as shown in FIG. 2A, focus evaluation areas FR1 to FR7 are set at substantially the center of the image G1, and the
[0029]
The focus control unit 25 selects a region satisfying a predetermined condition (described later) from the plurality of focus evaluation regions FRi (i = 1,..., K; here K = 7). A focus control target area (target area) is selected, and the focus control of the photographic lens is performed based on the contrast value related to the selected target area.
[0030]
In the
[0031]
The CCD
[0032]
For this reason, when the focus evaluation
[0033]
The image components extracted by the focus evaluation
[0034]
Next, each of these values C, EN, EW, SV and the calculation operation of each value will be described.
[0035]
<Skin color area>
First, the skin color pixel number SV will be described.
[0036]
The skin color pixel
[0037]
[Expression 1]
[0038]
More specifically, the skin color pixel
[0039]
Then, when the skin color pixel number SV in each focus evaluation area FRi is larger than a predetermined threshold value TH20 (SV> TH20), the focus control area 25 includes an area where the focus evaluation area FRi contains a lot of skin color components. (Hereinafter, also referred to as a skin color area (or skin color area)). In other words, when the ratio of the number of skin color pixels to all the pixels in each focus evaluation area FRi becomes larger than a predetermined threshold, the focus evaluation area FRi is determined as a skin color area. In this way, the focus control unit 25 determines a region that satisfies the condition D1 of SV> TH20 as a skin color area.
[0040]
Further, the focus control unit 25 changes the focus control according to the presence or absence of a skin color area in the plurality of focus evaluation areas FRi.
[0041]
Specifically, when at least one skin color area exists, the image of the main subject is close to the in-focus state only when at least one skin color area satisfies the condition D2 (described later). On the other hand, when all the skin color areas do not satisfy the condition D2, it is determined that the image of the main subject is not close to the focused state. As a result, when there is a skin-colored subject (main subject) and a non-skin-colored subject (non-main subject), the occurrence probability of “pseudo-focus” in which only the non-skin-colored subject (non-main subject) is in focus is reduced. It can reduce and it can make a skin-colored person into a focused state more correctly.
[0042]
If no flesh color area exists among the plurality of focus evaluation areas FRi, the image of the main subject is close to the focus state only when the focus evaluation area FRi that satisfies the condition D2 (described later) exists. On the other hand, when there is no in-focus evaluation area FRi that satisfies the condition D2, it is determined that the image of the main subject is not close to the in-focus state. As a result, when only a subject other than a person is used as a subject, the subject can be brought into focus more accurately.
[0043]
<Contrast value>
Next, the contrast value C will be described.
[0044]
The
[0045]
Note that when the
[0046]
FIG. 5 shows a change in the contrast value C when the
[0047]
Further, as shown in FIG. 5, camera shake or the like occurs at the lens position PB, and a pseudo peak occurs in the contrast value C. In general, when contrast-type autofocus control is performed, if the contrast value C is smaller than a certain value C1, it is determined that the contrast is low contrast, and such a peak position is not specified as an in-focus position. When the pseudo peak indicates a value equal to or greater than the predetermined value C1, such a pseudo peak may be erroneously determined as the in-focus position.
[0048]
The adverse effect caused by such a pseudo peak can be reduced by considering the edge component described below. In this embodiment, in order to prevent the false peak as described above from being erroneously determined as the in-focus position, the
[0049]
<Number of edges, center value of edge width>
Next, the number of edges EN and the edge width centroid value EW will be described.
[0050]
FIG. 6 is a block diagram showing the configuration of the
[0051]
FIG. 7 is a diagram showing the concept of calculation processing in the
[0052]
When the
[0053]
The difference calculation at this time is, for example, an operation of subtracting the luminance value of the immediately preceding pixel from the luminance value of the target pixel, and if the sign of the difference value resulting from the calculation is positive, the edge component that rises to the right Is detected, and if it is negative, a falling edge component is detected. However, in this embodiment, the number of edges EN and the edge width centroid value EW need only be finally obtained, and it is not necessary to strictly distinguish whether each edge component rises to the right or to the right.
[0054]
When the
[0055]
The difference value calculated by the
[0056]
When the difference value of the brightness value is obtained from the
[0057]
When the difference value between the pixel X8 and the pixel X7 is obtained, the difference value is smaller than the threshold value TH1, so that it is recognized that the edge component is the terminal portion, and the edge width count value has been increased until then. The sum of the difference values is compared with the second threshold value TH2. In the case of FIG. 7, since the difference value of the luminance value between the pixel X7 and the pixel X3 is equal to or greater than the threshold value TH2, it is detected that the edge component has sufficient strength. Then, the edge
[0058]
On the other hand, even when the difference value between adjacent pixels is smaller than the threshold value TH1 and the edge width count value is 1 or more, the strength of the edge component is less than a predetermined strength (threshold value TH2). If there is, it is determined that the edge component is not an effective edge component.
[0059]
Even if the difference value between adjacent pixels is smaller than the threshold value TH1, if the edge width count value is 0, it is not necessary to determine whether or not the edge component is valid, and input sequentially. The determination of whether or not the difference value is greater than or equal to the threshold value TH1 may be advanced.
[0060]
In the case of the example in FIG. 7, the edge width count value becomes 1 only when the difference value between the pixel X4 and the pixel X3 is obtained, and then the edge width count value sequentially increases. The edge width count value is 4 when the difference value from the pixel X7 is obtained and the end portion of the edge component is recognized. Since the edge component constituted by the pixels X3 to X7 exceeds the threshold value TH2, the edge component is recognized as effective.
[0061]
When an effective edge component is detected by the edge
[0062]
When the edge
[0063]
The edge
[0064]
FIG. 8 is a diagram showing the relationship between the lens position and the number of edges when the number of edges EN is obtained from an image obtained at each lens position of the focusing
[0065]
Even if the influence of noise is taken into consideration to some extent, when the image component in the focus evaluation area FRi is in a state close to the in-focus state, the edge number EN takes a value larger than the threshold value N1, and the state is close to the in-focus state. When there is no edge, it is considered that the edge number EN often takes a value equal to or less than the threshold value N1.
[0066]
Therefore, referring to the value of the edge number EN counted by the edge
[0067]
Further, the
[0068]
FIG. 9 is a diagram showing a histogram of edge components. In FIG. 9, the distribution curve H1 shows a state where the image component in the focus evaluation area FRi is in a state close to the focus state, and the distribution curve H2 shows the image component in the focus evaluation area FRi in the focus state. It shows when not in a state close to.
[0069]
As shown in FIG. 9, the
[0070]
When the histogram of the edge component is created in the
[0071]
For example, in the case of the histogram distribution indicated by the distribution curve H2 in FIG. 9, the edge width
[0072]
Note that the edge width centroid value EW1 gradually decreases as the image component approaches the in-focus state, and converges to a certain value.
[0073]
FIG. 10 is a diagram showing the relationship between the lens position and the edge width centroid value when the edge width centroid value EW is obtained from the image obtained at each lens position of the focusing
[0074]
Therefore, if there is no influence of noise, when the focusing
[0075]
Even if the influence of noise is considered to some extent, when the image component of the focus evaluation area FRi is in a state close to the focus state, the edge width centroid value EW takes a value larger than the threshold W1 and smaller than the threshold W2. When the state is not close to the in-focus state, it is considered that the edge width centroid value EW often takes a value equal to or less than the threshold value W1 or equal to or greater than the threshold value W2.
[0076]
Therefore, referring to the value of the edge width centroid value EW obtained by the edge width centroid
[0077]
The focus control unit 25 evaluates the focus state of the focus evaluation area FRi based on the number of edges EN and the edge width centroid value EW obtained from the
[0078]
The focus control unit 25 drives the focusing
[0079]
If it is determined by the focus position vicinity determination that the lens position is not close to the focus position PA, a lens drive direction in which the contrast value C increases is specified, and the focusing
[0080]
With the above-described configuration, the focus evaluation
[0081]
As a result, it is possible to satisfactorily prevent the lens position showing the pseudo peak from being erroneously detected as the in-focus position. This utilizes the property that edge components are not detected when the defocus amount is large. More specifically, when the defocus amount is large, the number of edges EN and the edge width centroid value EW are zero or very small values, respectively, and therefore the condition for determining that the position is in the vicinity of the in-focus position. Will not be satisfied.
[0082]
<B. Operation>
Next, a processing sequence when performing autofocus control in the
[0083]
First, when the shutter button is pressed halfway and the autofocus control is started, the
[0084]
Then, a lens minute driving routine (step S10) is executed. Specifically, the focus control unit 25 performs direction determination driving for moving the focusing
[0085]
When the contrast value is obtained in step S11, the
[0086]
Next, the focusing control unit 25 functions in the
[0087]
Subsequently, the
[0088]
The
[0089]
Thereafter, the focus control unit 25 determines whether or not the focusing
[0090]
Specifically, first, it is determined whether or not a “skin color area” exists in the plurality of focus evaluation areas FRi (step S21). More specifically, as described above, the focus evaluation area FRi that satisfies the condition D1 that the number of skin color pixels SV is larger than the predetermined threshold value TH20 (SV> TH20) is determined to be a skin color area.
[0091]
When at least one such skin color area exists, the process proceeds to step S22, and when no skin color area exists, the process proceeds to step S23.
[0092]
In step S22, it is determined whether to move to a high-speed scan routine (step S30) or to a neighborhood scan routine (step S50).
[0093]
Specifically, in the “skin color area (that is, the focus evaluation area FRi that satisfies the condition D1)”, the edge number EN indicates a value larger than the predetermined value N1, and the edge width centroid value EW is within a predetermined range (threshold value). When there is even one satisfying the condition D2 (that is, EN> N1 and W1 <EW <W2) indicating a value within the range greater than W1 and less than the threshold value W2, the focus control unit 25 Then, it is determined that the main subject (more precisely, the image of the subject) is close to the in-focus state, and the process proceeds to the proximity scan routine (step S50).
[0094]
On the other hand, when none of the flesh color areas satisfy the condition D2 even though the flesh color area exists, the focus control unit 25 determines that the main subject is not close to the in-focus state, and performs high-speed scanning. Proceed to the routine (step S30).
[0095]
As described above, when the skin color area exists, the process proceeds to the neighborhood scan routine only when the skin color area that satisfies the condition D2 exists. Even when the “focus evaluation area other than the skin color area” (hereinafter also referred to as a non-skin color area) satisfies the condition D2, the process does not proceed to the neighborhood scan routine but proceeds to the high speed scan routine. That is, since the process does not proceed to the neighborhood scan routine based on the information of the non-skin color area, the probability of occurrence of “pseudo-focus” in which only the subject in the non-skin color area (for example, the background subject) is in focus is reduced. Can do.
[0096]
Also in step S23, it is determined whether to shift to the high-speed scan routine (step S30) or to the vicinity scan routine (step S50). Here, the process proceeds to step S23 when there is no skin color area.
[0097]
In this step S23, among the plurality of focus evaluation areas FRi, the edge number EN indicates a value larger than the predetermined value N1, and the edge width centroid value EW is within a predetermined range (greater than the threshold W1 and less than the threshold W2). If there is at least one in-focus evaluation area FRi that satisfies the condition D2 indicating value (that is, EN> N1 and W1 <EW <W2), the focus control unit 25 focuses the main subject in focus. It is determined that the state is close, and the process proceeds to the neighborhood scan routine (step S50). On the other hand, when none of the focus evaluation areas FRi satisfy the condition D2, the focus control unit 25 determines that the main subject is not close to the focus state, and proceeds to the high-speed scan routine (step S30). move on.
[0098]
Next, the high-speed scan routine (step S30) will be described. The detailed processing procedure of the high-speed scan routine is shown in the flowchart of FIG.
[0099]
First, the focus control unit 25 determines whether or not there is a remaining drive amount for driving the focusing
[0100]
Then, the focusing control unit 25 drives the focusing
[0101]
Next, the contrast value C is calculated for each of the plurality of focus evaluation areas (AF areas) FRi (step S34). The contrast value C is calculated by the
[0102]
Then, it is determined whether or not the contrast value obtained at this time is smaller than the previously obtained contrast value (step S35). This determination makes it possible to determine whether or not the focusing
[0103]
This contrast value comparison operation before and after the lens movement (step S35) is performed for all of the plurality of focus evaluation regions FRi.
[0104]
If the contrast value of any focus evaluation area FRi does not become smaller than the previously obtained contrast value, it does not exceed the peak in the contrast change curve, that is, the focusing
[0105]
On the other hand, when the contrast value of any focus evaluation area FRi is smaller than the previously obtained contrast value, the peak in the contrast change curve is exceeded, that is, the focusing
[0106]
In step S36, the number of edges EN, the edge width centroid value EW, and the number of skin color pixels SV are calculated for each of the plurality of focus evaluation areas (AF areas) FRi (step S34). The edge number EN is calculated by the edge
[0107]
Thereafter, the focus control unit 25 determines whether or not the focusing
[0108]
Specifically, first, it is determined whether or not a “skin color area” exists in the plurality of focus evaluation areas FRi (step S37). More specifically, as described above, the focus evaluation area FRi that satisfies the condition D1 (SV> TH20) is determined to be a skin color area.
[0109]
When at least one skin color area exists, the process proceeds to step S38, and when no skin color area exists, the process proceeds to step S39.
[0110]
In step S38, it is determined whether to continue the high-speed scan routine (step S30) or shift to the neighborhood scan routine (step S50). Specifically, when there is at least one skin color area that satisfies the condition D2 (that is, EN> N1 and W1 <EW <W2), the focus control unit 25 determines that the main subject is It is determined that the in-focus state is close, and the process proceeds to the proximity scan routine (step S50). On the other hand, when none of the flesh-color areas satisfies the condition D2 even though the flesh-color area exists, the focus control unit 25 determines that the main subject is not close to the focus state, and step S40. Go to and continue the fast scan routine.
[0111]
As described above, when the skin color area exists, the process proceeds to the neighborhood scan routine only when there is at least one skin color area that satisfies the condition D2. Even when the “focus evaluation area other than the skin color area” (that is, the non-skin color area) satisfies the condition D2, the high-speed scan routine is continued without proceeding to the neighborhood scan routine. That is, since the process does not proceed to the neighborhood scan routine based on the information of the non-skin color area, the probability of occurrence of “pseudo-focus” in which only the subject (eg, the background subject) in the non-skin color area is in focus is reduced. Can do.
[0112]
Also in step S39, it is determined whether to continue the high-speed scan routine (step S30) or shift to the neighborhood scan routine (step S50). The process proceeds to step S39 when there is no skin color area. Here, when there is at least one in-focus evaluation area FRi that satisfies the condition D2 (that is, EN> N1 and W1 <EW <W2) among the plurality of in-focus evaluation areas FRi, the focus control is performed. The unit 25 determines that the main subject is close to the in-focus state, and proceeds to the proximity scan routine (step S50). On the other hand, if none of the focus evaluation areas FRi satisfy the condition D2, the focus control unit 25 determines that the main subject is not close to the focus state, and proceeds to step S40 to perform a high-speed scan routine. To continue.
[0113]
In step S40, the focusing control unit 25 determines whether the focusing
[0114]
If there is still a movable range for driving the focusing
[0115]
On the other hand, if there is no remaining movable area for high-speed driving in the current lens driving direction, the process proceeds to step S41. In step S41, the focusing control unit 25 determines the maximum value from the contrast values obtained so far, and drives the focusing
[0116]
When a subject is photographed with the
[0117]
When the above process is completed, the high-speed scan routine process is completed.
[0118]
Next, the neighborhood scan routine will be described with reference to the flowchart of FIG. FIG. 14 is a flowchart showing a detailed processing procedure of the neighborhood scan routine.
[0119]
First, the focus control unit 25 drives the focusing
[0120]
Here, the values C and EN do not have to be obtained for all the focus evaluation areas FRi. For example, when there is a focus evaluation area FRi (that is, a skin color area) that satisfies the condition D1, the values C and EN may be obtained only for the skin color area of the plurality of focus evaluation areas FRi. For example, when there are three skin color areas in the plurality of focus evaluation areas FRi, the values C and EN may be obtained only for these three skin color areas. Alternatively, the values C and EN may be obtained only for the skin color area that further satisfies the condition D2. In this way, by reducing the number of focus evaluation areas FRi for which the values C and EN are to be calculated, the processing load can be reduced.
[0121]
Proceeding to step S53, the focus control unit 25 selects an area (target area) to be subject to focus control of the taking lens from a plurality of areas.
[0122]
Specifically, when a focus evaluation area FRi (that is, a skin color area) that satisfies the condition D1 exists, the skin color area is selected as the target area.
[0123]
When there are a plurality of skin color areas, it is preferable that a skin color area having the largest edge number EN is selected as the target area among the plurality of skin color areas. In order to express a person as a clearer image (a so-called focused image), a skin color area corresponding to a subject whose peak value in the contrast curve is large is selected, and the selected skin color area is selected. This is because it is preferable to perform autofocus control based on information. For example, in a person's face, a portion where the number of edges such as eyes, nose, mouth, etc. is large is considered to have a higher peak value of the contrast curve than a portion where the number of edges such as cheeks is small. . Therefore, by selecting a skin color area with a large number of edges as the target area, it is intended to select an area where the peak value of the contrast curve is large as the target area. As described above, by determining the state of the subject based on the number of edges, the target area can be more accurately selected from a plurality of focus evaluation regions.
[0124]
In addition, when there is no focus evaluation area FRi (that is, a skin color area) that satisfies the condition D1, it is preferable to focus on the focus evaluation area FRi having the largest edge number EN among the plurality of focus evaluation areas FRi. Selected as an area.
[0125]
Next, in steps S54 and S55, the focusing control unit 25 performs a contrast value evaluation process (step S54) of the target area, and performs a branch process (step S55) based on the evaluation result.
[0126]
Specifically, the focus control unit 25 determines whether it is possible to specify a lens position (focus position) at which the contrast value of the target area exhibits a peak.
[0127]
When the contrast value calculated this time is larger than the previous value, the focus control unit 25 determines that the peak position has not been detected yet and the focus position cannot be specified. In this case, the process returns to step S51, and the lens drive and contrast value calculation processing (steps S52 to S55) at a minute pitch (p = 4Fδ) are repeated in the lens drive direction in which the contrast value increases. .
[0128]
On the other hand, when the contrast value calculated this time becomes smaller than the previous value, the focus control unit 25 detects the lens position corresponding to the previous contrast value as the peak position. In step S56, the focusing
[0129]
If the in-focus position cannot be specified even after a predetermined number of times of lens driving at a minute pitch, the focusing
[0130]
Thus, in the proximity scan routine, focus control is performed based on information (specifically, contrast value) regarding the target area.
[0131]
This completes the autofocus control in this embodiment. In the above autofocus control, a target area is selected from a plurality of focus evaluation areas based on the number of skin color pixels in each focus evaluation area, and focus control of the photographing lens is performed based on information on the selected target area. Done. Therefore, it is possible to accurately select a target area, which is an area to be subjected to focus control, from a plurality of focus evaluation areas. That is, it is possible to bring the person as the main subject into a focused state more accurately.
[0132]
In addition, since the target area is selected after evaluating the edge number EN and the edge width centroid value EW, it is determined whether or not the focusing
[0133]
As described above, according to the
[0134]
In the autofocus control described above, a focus evaluation area (that is, a skin color area) that satisfies a condition D1 (SV> TH20) having a skin color pixel number SV larger than a predetermined threshold TH20 among a plurality of focus evaluation areas FRi. ) Is present, and when all skin color areas do not satisfy the condition D2 (that is, EN> N1 and W1 <EW <W2), if any one of the skin color areas satisfies the condition D2 In comparison, the photographic lens is driven at high speed. Therefore, the focusing
[0135]
<C. Other>
Although the embodiments of the present invention have been described above, the present invention is not limited to the contents described above.
[0136]
For example, any branching process may be performed when an equal sign is established in the determination process. For example, instead of SV> TH20, SV ≧ TH20 may be adopted as the condition D1. Alternatively, EN ≧ N1 and W1 ≦ EW ≦ W2 may be adopted as the condition D2.
[0137]
In the above embodiment, when the focus control unit 25 evaluates the edge component, both the number of edges EN and the edge width centroid value EW are evaluated. Specifically, EN> N1 and W1 <EW <W2 are adopted as the condition D2. This is because the edge component of an image is generally a high-frequency component of an image and thus has a property of being easily affected by noise. As described above, in the above embodiment, by using two index values, ie, the edge number EN and the edge width centroid value EW, as different index values regarding the edge component, the influence of noise is reduced, and a more reliable condition value is obtained. This is realized so that the vicinity of the focal position is determined.
[0138]
However, the present invention is not limited to this, and the focus position vicinity determination may be performed based only on one of the edge number EN and the edge width centroid value EW. For example, only the fact that the edge number EN is larger than a predetermined value (threshold value N1 shown in FIG. 8) (EN> N1) may be adopted as the condition D2. Note that the edge width centroid value EW is more susceptible to noise in the vicinity of the in-focus position than the edge number EN. Therefore, when one of the edge number EN and the edge width centroid value EW is to be evaluated, The number of edges EN is preferably an evaluation target.
[0139]
Furthermore, in the above embodiment, it is determined whether or not the contrast value exceeds the peak in steps S34 and S35 in FIG. 13, but such determination processing may not be performed.
[0140]
In the above embodiment, the autofocus control is performed by combining the high-speed scan routine and the proximity scan routine. However, the present invention is not limited to this. However, by combining both routines as in the above embodiment, it is possible to realize faster autofocus control.
[0141]
Furthermore, in the said embodiment, although one focus evaluation area | region was selected as an object area in step S53 of FIG. 14, it is not limited to this. For example, a plurality of skin color areas having an edge number EN larger than a predetermined threshold N1 are selected, and then the focusing lens is set at a lens position corresponding to the maximum value of the contrast peak values for the selected plurality of skin color areas. 12 may be driven.
[0142]
Further, in the above embodiment, the case where the focus control is performed based on the contrast value C of the target area in the vicinity scan routine is illustrated, but the present invention is not limited to this. For example, focus control may be performed based on the number of edges EN (and edge width centroid value EW) of the target area without considering the contrast value C of the target area. However, in general, the edge component is easily affected by noise, whereas the contrast value is hardly affected by noise. Therefore, it is preferable to evaluate the in-focus state in the vicinity of the in-focus position based on the contrast value. Since the possibility of pseudo-focusing decreases if the vicinity of the in-focus position is reached, it is possible to specify the in-focus position with higher accuracy by performing focus control based on the contrast value C in the vicinity of the in-focus position. Is possible.
[0143]
Further, the above-described
[0144]
In the above embodiment, the case where the autofocus control is performed at the timing when the shutter button is half-pressed is illustrated, but the timing at which the autofocus control is performed is not limited thereto. For example, the autofocus control may always be performed when a live view image is displayed during shooting.
[0145]
【The invention's effect】
As described above, according to the first to fifth aspects, the focus control target region is selected from the plurality of focus evaluation regions based on the number of edges and the skin color information of each focus evaluation region. Since focus control is performed based on the information regarding the selected target region, it is possible to more accurately bring the person as the main subject into focus while eliminating the influence of the pseudo peak.
[0146]
In particular, according to the second aspect of the present invention, it is possible to more accurately select a focus control target region from a plurality of focus evaluation regions.
[0147]
According to the invention described in
[0148]
Further, according to the fifth aspect of the present invention, when at least one skin color area exists, even if any of the non-skin color areas satisfies the second condition, all of the skin color areas are in the second condition. When the above condition is not satisfied, it is determined that the image of the main subject is not close to the in-focus state, so that the probability of occurrence of pseudo-in-focus can be reduced. At this time, since the photographing lens is driven at a higher speed than when any one of the skin tone regions satisfies the second condition, the photographing lens is efficiently moved to the vicinity of the in-focus position, thereby speeding up the focus control. Can be planned.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a digital camera.
FIG. 2 is a diagram illustrating an example of a focus evaluation area.
FIG. 3 is a diagram illustrating a distribution state of skin color pixels on a UV plane.
FIG. 4 is a block diagram illustrating a detailed configuration of a contrast calculation unit.
FIG. 5 is a diagram illustrating an example of a change in contrast value.
FIG. 6 is a block diagram illustrating a detailed configuration of an edge calculation unit.
FIG. 7 is a diagram illustrating a concept of calculation processing in an edge calculation unit.
FIG. 8 is a diagram illustrating a relationship between a lens position and the number of edges.
FIG. 9 is a diagram showing a histogram of edge widths.
FIG. 10 is a diagram illustrating a relationship between a lens position and an edge width centroid value.
FIG. 11 is a flowchart showing a flow of an autofocus control operation.
FIG. 12 is a flowchart showing an operation in a lens micro-driving routine.
FIG. 13 is a flowchart showing an operation in a high-speed scan routine.
FIG. 14 is a flowchart showing an operation in a neighborhood scan routine.
FIG. 15 is a conceptual diagram illustrating a problem of the conventional technology.
[Explanation of symbols]
1 Digital camera
10 Shooting function section
11 Shooting lens
12 Focusing lens
20 Autofocus control unit
C Contrast value
EN Number of edges
EW Edge width centroid value
FRi focusing evaluation area
G1 image
HM person
SV number of skin color pixels
TR Tree
X1 to X9 pixels
Claims (5)
前記画像内に予め設定された複数の合焦評価領域のそれぞれにおけるエッジ数を検出するエッジ数検出手段と、
前記複数の合焦評価領域のそれぞれにおける肌色情報を検出する肌色情報検出手段と、
各合焦評価領域の前記エッジ数および前記肌色情報に基づいて前記複数の合焦評価領域の中から前記フォーカス制御の対象領域を選択し、当該選択された対象領域に関する情報に基づいて前記フォーカス制御を行う制御手段と、
を備えることを特徴とするオートフォーカス装置。An autofocus device that performs focus control of a photographing lens based on an image composed of image signals obtained by photoelectrically converting a subject image,
An edge number detection means for detecting the number of edges in each of a plurality of focus evaluation areas set in advance in the image;
Skin color information detecting means for detecting skin color information in each of the plurality of focus evaluation areas;
The focus control target region is selected from the plurality of focus evaluation regions based on the number of edges and the skin color information of each focus evaluation region, and the focus control is performed based on information on the selected target region. Control means for performing
An autofocus device comprising:
前記複数の合焦評価領域のそれぞれにおけるエッジ幅重心値を求めるエッジ幅重心値演算手段、
をさらに備え、
前記制御手段は、各合焦評価領域の前記エッジ幅重心値にも基づいて、前記対象領域を前記複数の合焦評価領域の中から選択することを特徴とするオートフォーカス装置。The autofocus device according to claim 1,
An edge width centroid value calculating means for obtaining an edge width centroid value in each of the plurality of focus evaluation areas;
Further comprising
The control means selects the target area from the plurality of focus evaluation areas based on the edge width centroid value of each focus evaluation area.
前記肌色情報は、肌色画素数であり、
前記制御手段は、前記複数の合焦評価領域のうち、所定の第1閾値よりも大きな肌色画素数を有するという第1条件と所定の第2閾値よりも大きなエッジ数を有するという第2条件との両方の条件を満たす合焦評価領域を、前記対象領域として選択することを特徴とするオートフォーカス装置。The autofocus device according to claim 1,
The skin color information is the number of skin color pixels,
The control means includes a first condition that the number of skin color pixels is larger than a predetermined first threshold value and a second condition that the number of edges is larger than a predetermined second threshold value among the plurality of focus evaluation regions. A focus evaluation area that satisfies both of the conditions is selected as the target area.
前記制御手段は、前記複数の合焦評価領域のうち2以上の合焦評価領域が前記第1条件および前記第2条件の両条件を満たす場合には、当該両条件を満たす合焦評価領域のうち最大のエッジ数を有する合焦評価領域を、前記対象領域として選択することを特徴とするオートフォーカス装置。In the autofocus device according to claim 3,
The control means, when two or more focusing evaluation areas among the plurality of focusing evaluation areas satisfy both the first condition and the second condition, An autofocus device, wherein a focusing evaluation area having the maximum number of edges is selected as the target area.
前記制御手段は、前記複数の合焦評価領域のうち、所定の第1閾値よりも大きな肌色画素数を有するという第1条件を満たす合焦評価領域である肌色領域が少なくとも1つ存在する場合において、所定の第2閾値よりも大きなエッジ数を有するという第2条件を全ての肌色領域が満たさないときには、主被写体の画像が合焦状態に近くないと判定し、肌色領域のいずれかが前記第2条件を満たすときに比べて前記撮影レンズを高速に駆動することを特徴とするオートフォーカス装置。The autofocus device according to claim 1,
In the case where there is at least one skin color region that is a focus evaluation region satisfying a first condition that the number of skin color pixels is larger than a predetermined first threshold among the plurality of focus evaluation regions. When all the skin color areas do not satisfy the second condition that the number of edges is larger than the predetermined second threshold, it is determined that the image of the main subject is not close to the in-focus state, and any one of the skin color areas is An autofocus device that drives the photographing lens at a higher speed than when two conditions are satisfied.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002193478A JP4122865B2 (en) | 2002-07-02 | 2002-07-02 | Autofocus device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002193478A JP4122865B2 (en) | 2002-07-02 | 2002-07-02 | Autofocus device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004037733A JP2004037733A (en) | 2004-02-05 |
| JP4122865B2 true JP4122865B2 (en) | 2008-07-23 |
Family
ID=31702430
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002193478A Expired - Fee Related JP4122865B2 (en) | 2002-07-02 | 2002-07-02 | Autofocus device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4122865B2 (en) |
Families Citing this family (24)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4565549B2 (en) * | 2004-06-03 | 2010-10-20 | 株式会社リコー | Imaging apparatus and focus control method thereof |
| US8035721B2 (en) | 2004-08-05 | 2011-10-11 | Panasonic Corporation | Imaging apparatus |
| JP5318321B2 (en) * | 2004-08-05 | 2013-10-16 | パナソニック株式会社 | Imaging device |
| JP4674471B2 (en) | 2005-01-18 | 2011-04-20 | 株式会社ニコン | Digital camera |
| US7769285B2 (en) | 2005-02-07 | 2010-08-03 | Panasonic Corporation | Imaging device |
| CN100539645C (en) * | 2005-02-07 | 2009-09-09 | 松下电器产业株式会社 | Image forming apparatus with a plurality of image forming units |
| JP4992215B2 (en) * | 2005-09-21 | 2012-08-08 | カシオ計算機株式会社 | Imaging apparatus and program |
| JP2007199633A (en) * | 2006-01-30 | 2007-08-09 | Olympus Corp | Focusing detector |
| JP2007322560A (en) | 2006-05-30 | 2007-12-13 | Kyocera Corp | Imaging device, manufacturing apparatus and manufacturing method thereof |
| JP4749959B2 (en) | 2006-07-05 | 2011-08-17 | 京セラ株式会社 | Imaging device, manufacturing apparatus and manufacturing method thereof |
| JP2008048293A (en) | 2006-08-18 | 2008-02-28 | Kyocera Corp | Imaging device and method for manufacturing the same |
| JP4749984B2 (en) | 2006-09-25 | 2011-08-17 | 京セラ株式会社 | Imaging device, manufacturing apparatus and manufacturing method thereof |
| JP4749985B2 (en) | 2006-09-28 | 2011-08-17 | 京セラ株式会社 | Imaging device, manufacturing apparatus and manufacturing method thereof |
| WO2008081903A1 (en) | 2006-12-27 | 2008-07-10 | Kyocera Corporation | Imaging device and information code reading device |
| US8567678B2 (en) | 2007-01-30 | 2013-10-29 | Kyocera Corporation | Imaging device, method of production of imaging device, and information code-reading device |
| EP1986421A3 (en) | 2007-04-04 | 2008-12-03 | Nikon Corporation | Digital camera |
| JP2009010730A (en) | 2007-06-28 | 2009-01-15 | Kyocera Corp | Image processing method and imaging apparatus using the image processing method |
| US8363129B2 (en) | 2008-06-27 | 2013-01-29 | Kyocera Corporation | Imaging device with aberration control and method therefor |
| JP4658162B2 (en) | 2008-06-27 | 2011-03-23 | 京セラ株式会社 | Imaging apparatus and electronic apparatus |
| US8502877B2 (en) | 2008-08-28 | 2013-08-06 | Kyocera Corporation | Image pickup apparatus electronic device and image aberration control method |
| JP4743553B2 (en) | 2008-09-29 | 2011-08-10 | 京セラ株式会社 | Lens unit, imaging device, and electronic device |
| JP6525792B2 (en) * | 2015-07-29 | 2019-06-05 | キヤノン株式会社 | Lens control device and control method of lens control device |
| KR102415063B1 (en) * | 2017-07-24 | 2022-06-30 | 한화테크윈 주식회사 | Auto-focusing method and camera |
| CN113556470B (en) * | 2021-09-18 | 2021-12-31 | 浙江宇视科技有限公司 | Lens focusing method and device, computer equipment and storage medium |
-
2002
- 2002-07-02 JP JP2002193478A patent/JP4122865B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004037733A (en) | 2004-02-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4122865B2 (en) | Autofocus device | |
| US6738197B2 (en) | Autofocusing apparatus | |
| JP4582212B2 (en) | Imaging apparatus and program | |
| JP3541820B2 (en) | Imaging device and imaging method | |
| US20020114015A1 (en) | Apparatus and method for controlling optical system | |
| US10033919B2 (en) | Focus adjusting apparatus, focus adjusting method, image capturing apparatus, and storage medium | |
| JP6116277B2 (en) | Imaging apparatus and control method thereof | |
| US7957633B2 (en) | Focus adjusting apparatus and focus adjusting method | |
| JP2010078810A (en) | Automatic focusing device and focus adjustment method | |
| CN110572535B (en) | Image pickup apparatus and image pickup method | |
| JP2009069696A (en) | Imaging apparatus and focus control method | |
| JP2003262783A (en) | Autofocus device and imaging device | |
| JP3555583B2 (en) | Optical system control device, optical system control method, recording medium, and imaging device | |
| JP2004309586A (en) | Imaging device | |
| US7046289B2 (en) | Automatic focusing device, camera, and automatic focusing method | |
| US10747089B2 (en) | Imaging apparatus and control method of the same | |
| JP2004219461A (en) | Imaging device and autofocus device | |
| JP6200240B2 (en) | Imaging apparatus, control method therefor, program, and storage medium | |
| JP3628648B2 (en) | Optical system controller | |
| JP2003156679A (en) | Focus detector | |
| JP6464553B2 (en) | Lens drive control device, electronic camera, and lens drive control program | |
| JP2016099432A (en) | Focus detection apparatus and method, program, and storage medium | |
| JP2011253099A (en) | Focus detector | |
| JP2013213875A (en) | Focus adjustment device, imaging device, and focus adjustment program | |
| JP7458723B2 (en) | Image processing device, imaging device, control method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040917 |
|
| A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20040917 |
|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20041217 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070507 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070731 |
|
| A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A711 Effective date: 20070827 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070928 |
|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20070928 |
|
| 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: 20080408 |
|
| 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: 20080421 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110516 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120516 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120516 Year of fee payment: 4 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130516 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130516 Year of fee payment: 5 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |