JP3949067B2 - Auto focus camera - Google Patents
Auto focus camera Download PDFInfo
- Publication number
- JP3949067B2 JP3949067B2 JP2003036824A JP2003036824A JP3949067B2 JP 3949067 B2 JP3949067 B2 JP 3949067B2 JP 2003036824 A JP2003036824 A JP 2003036824A JP 2003036824 A JP2003036824 A JP 2003036824A JP 3949067 B2 JP3949067 B2 JP 3949067B2
- Authority
- JP
- Japan
- Prior art keywords
- focus
- focus area
- threshold value
- area
- threshold
- 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
- 238000011156 evaluation Methods 0.000 claims description 39
- 238000001514 detection method Methods 0.000 claims description 19
- 238000000034 method Methods 0.000 description 122
- 230000008569 process Effects 0.000 description 108
- 230000008859 change Effects 0.000 description 61
- 238000012544 monitoring process Methods 0.000 description 18
- 238000012545 processing Methods 0.000 description 18
- 230000007246 mechanism Effects 0.000 description 9
- 101150036909 TAF1 gene Proteins 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 230000010354 integration Effects 0.000 description 5
- 238000005375 photometry Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 101150022916 TAF2 gene Proteins 0.000 description 3
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 230000007704 transition Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 239000002131 composite material Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004091 panning Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Images
Landscapes
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
- Studio Devices (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、オートフォーカスカメラに関し、特にたとえば被写界に割り当てられた複数のフォーカスエリアのいずれか1つを基準にフォーカスを調整する、オートフォーカスカメラに関する。
【0002】
【従来技術】
従来のこの種のオートフォーカスカメラとしては、被写界に割り当てられた複数のフォーカスエリアの各々についていわゆる山登りAFを実行し、最大フォーカス評価値が閾値を上回るフォーカスエリアの中から合焦位置が最も至近側にあるフォーカスエリアを特定し、そして特定されたフォーカスエリアの合焦位置にフォーカスレンズを設定するものがあった。
【0003】
【発明が解決しようとする課題】
しかし、従来技術では閾値が固定であったため、カメラの姿勢によっては主要被写体が存在しないフォーカスエリアを基準にフォーカスが調整される可能性があった。
【0004】
それゆえに、この発明の主たる目的は、カメラの姿勢に関係なくフォーカスを正確に調整できる、オートフォーカスカメラを提供することである。
【0005】
【課題を解決するための手段】
この発明に従うオートフォーカスカメラは、被写界の中心を基準として前記被写界に放射状に配置された複数のフォーカスエリアにそれぞれ対応する複数の最大高周波成分値を検出する検出手段、カメラ姿勢を検知する検知手段、検知手段の検知結果に応じて割り当て先が回転するように複数の閾値を複数のフォーカスエリアにそれぞれ割り当てる割り当て手段、検出手段によって検出された複数の最大高周波成分値を割り当て手段によって割り当てられた複数の閾値とそれぞれ比較する比較手段、比較手段による比較先の閾値を上回りかつフォーカス評価値が最大となるフォーカスレンズの位置が最も至近側に存在するフォーカスエリアを有効フォーカスエリアとして特定する特定手段、および特定手段によって特定された有効フォーカスエリアを基準としてフォーカスを調整する調整手段を備える。
【0006】
【作用】
複数のフォーカスエリアは、被写界の中心を基準として被写界に放射状に配置される。検出手段は、このような複数のフォーカスエリアにそれぞれ対応する複数の最大高周波成分値を検出する。また、カメラ姿勢は、検知手段によって検知される。複数の閾値は、検知手段の検知結果に応じて割り当て先が回転するように、割り当て手段によって複数のフォーカスエリアにそれぞれ割り当てられる。比較手段は、検出手段によって検出された複数の最大高周波成分値を割り当て手段によって割り当てられた複数の閾値とそれぞれ比較する。特定手段は、比較手段による比較先の閾値を上回りかつフォーカス評価値が最大となるフォーカスレンズの位置が最も至近側に存在するフォーカスエリアを有効フォーカスエリアとして特定する。フォーカスは、特定手段によって特定された有効フォーカスエリアを基準として、調整手段によって調整される。
【0007】
複数の閾値の割り当て先をカメラ姿勢に基づいて回転させることで、カメラがどのような姿勢をとっても、フォーカスを正確に調整することができる。
【0008】
好ましくは、検知手段は、フォーカス調整が指示された時点のカメラの姿勢を検知する。これによって、カメラ姿勢を常に検知する必要がなくなり、処理の負担を軽減することができる。
【0010】
さらに好ましくは、複数のフォーカスエリアは垂直方向および水平方向に所定個数ずつ配置され、検知手段はカメラ姿勢が正立状態および90°傾斜状態のいずれであるかを判別し、割り当て手段は複数の閾値の割り当て先を90°回転させる。複数のフォーカスエリアを垂直方向および水平方向に所定個数ずつ配置することで、検知手段が正立状態および90°傾斜状態しか判別できなくても、閾値の的確な割り当てが可能となる。
【0011】
好ましくは、複数の閾値の各々が示す数値が、被写界設定が既定の複数のシーンのいずれに設定されているかを判別する判別手段の判別結果に応じて、変更手段によって変更される。これによって、被写界設定に応じた正確なフォーカス調整が可能となる。
【0012】
【発明の効果】
この発明によれば、複数の閾値の割り当て先をカメラ姿勢に基づいて回転させるようにしたため、カメラがどのような姿勢をとっても、フォーカスを正確に調整することができる。
【0013】
この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。
【0014】
【実施例】
図1を参照して、この実施例のディジタルカメラ10は、フォーカスレンズ12および絞り機構14を含む。被写界の光学像は、これらの部材を介してCCD型のイメージセンサ16の受光面に入射される。受光面では、光電変換によって光学像に対応する電荷が生成される。
【0015】
LCD40が起動されると、スルー画像表示処理が実行される。まず、CPU24からTG(Timing Generator)18に対して、全体間引き読み出しが命令される。TG18は、1/30秒に1回の割合で垂直同期信号Vsyncを発生し、30fpsの周期でかつ間引き態様でイメージセンサ16から読み出す。イメージセンサ16からは、被写界の全体に対応する低解像度の生画像信号が1/30秒に1フレームの割合で出力される。
【0016】
CSD/AGC回路26は、イメージセンサ16から出力された各フレームの生画像信号に周知のノイズ除去およびレベル調整を施す。かかる処理が施された生画像信号はA/D変換器28によってディジタル信号である生画像データに変換され、変換された生画像データは信号処理回路28において色分離,白バランス調整,ガンマ補正,YUV変換などの一連の処理を施される。信号処理回路28からは、YUVデータが出力される。出力された各フレームのYUVデータは、メモリコントローラ32によってSDRAM34に書き込まれ、その後同じメモリコントローラ32によってSDRAM34から読み出される。読み出されたYUVデータはビデオエンコーダ38によってNTSC方式の複合画像信号に変換され、変換された複合画像信号はLCD40に与えられる。この結果、被写体のリアルタイム動画像(スルー画像)がLCD画面に表示される。
【0017】
信号処理回路30によって生成されたYUVデータのうち、Yデータは、AE/AF評価回路42にも入力される。AE/AF評価回路42は、入力されたYデータを1フレーム毎に積分して被写体の明るさの程度を表す輝度評価値Iy[i](i:0〜255のブロック番号)を算出するとともに、入力されたYデータの高域周波数成分を1フレーム毎に積分してフォーカスレンズ12の合焦の程度を表すフォーカス評価値Ih[j](j:0〜4のフォーカスエリア番号)を算出する。
【0018】
具体的には、AE/AF評価回路36は、図2に示すように被写界つまり画面を水平方向および垂直方向の各々において16分割し、分割された各々のブロックにラスタスキャン態様で“0”〜“255”のブロック番号を付与し、そしてYデータをブロック毎に積分することで256個の輝度評価値Iy[0]〜Iy[255]を算出する。AE/AF評価回路36はまた、被写界に5つのフォーカスエリアを割り当て、各々のフォーカスエリアに“0”〜“4”のフォーカスエリア番号を付与し、そしてYデータの高周波成分をフォーカスエリア毎に積分することでフォーカス評価値Ih[0]〜Ih[4]を算出する。
【0019】
なお、フォーカスエリア0は、被写界の略中央に位置する8ブロック“103”,“104”,“119”,“120”,“135”,“136”,“151”および“152”によって形成される。フォーカスエリア1は、被写界の左側に位置する8ブロック“99”,“100”,“115”,“116”,“131,“132”,“147”および“148”によって形成される。フォーカスエリア2は、被写界の右側に位置する8ブロック“107”,“108”,“123”,“124”,“139,“140”,“155”および“156”によって形成される。フォーカスエリア3は、被写界の下側に位置する8ブロック“182”〜“185”および“198”〜“201”によって形成される。フォーカスエリア4は、被写界の上側に位置する8ブロック“54”〜“57”および“70”〜“73”によって形成される。
【0020】
シャッタボタン44が半押しされると、ディジタルカメラ10の姿勢が傾斜センサ46の出力に基づいて判別される。これによって、ディジタルカメラ10が正立状態,右方向への90°傾斜状態および左方向への90°傾斜状態のいずれの状態にあるかが特定される。
【0021】
続いて、AE/AF回路42から出力された輝度評価値Iy[0]〜Iy[255]がCPU24によって取り込まれ、これに基づいて本露光用の最適露光期間Tsおよび最適絞り量Asが求められる。また、被写界の明るさに応じてイメージセンサ16の駆動方式が決定され、決定された駆動方式に適合するAF用露光期間が求められる。駆動方式として全体間引き読み出しが維持されるときはAF用露光期間Taf1が求められ、駆動方式が全体間引き読み出しから部分間引き読み出しに変更されたときはAF用露光期間Taf2が求められる。
【0022】
全体間引き読み出しでは、上述のように、イメージセンサ16の受光面全体が読み出しエリアとされ、電荷は30fpsの周期で間引き読み出しを施される。これに対して、部分間引き読み出しでは、イメージセンサ16の受光面のうち図2に示す中央エリアが読み出しエリアとされ、電荷は60fpsの周期で間引き読み出しを施される。なお、部分間引き読み出しでは、垂直同期信号Vsyncは1/60秒に1回の割合でTG18から出力される。
【0023】
さらに、図2に示すフォーカスエリア0〜4に割り当てられる閾値C[0]〜C[4]が、シーン選択キー48の選択状態と傾斜センサ46の出力とに基づいて決定する。シーン選択キー48によって選択できるシーンは、“ポートレートシーン”,“スポーツシーン”,“風景シーン”,“夕景シーン”、“夜景シーン”および“デフォルトシーン”の6つである。
【0024】
“ポートレートシーン”が選択された場合の閾値C[0]〜C[4]の設定状態を図3(A)〜図3(C)に示す。図3(A)に示す正立状態では、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[1],C[2]およびC[4]として設定され、そして閾値THdが閾値C[3]として設定される。図3(B)に示す左90°傾斜状態では、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[2],C[3]およびC[4]として設定され、そして閾値THdが閾値C[1]として設定される。図3(C)に示す右90°傾斜状態では、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[1],C[3]およびC[4]として設定され、そして閾値THdが閾値C[2]として設定される。
【0025】
“スポーツシーン”が選択された場合の閾値C[0]〜C[4]の設定状態を図4(A)〜図4(C)に示す。図4(A)に示す正立状態では、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[1],C[2]およびC[4]として設定され、そして閾値THcが閾値C[3]として設定される。図4(B)に示す左90°傾斜状態では、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[2],C[3]およびC[4]として設定され、そして閾値THcが閾値C[1]として設定される。図4(C)に示す右90°傾斜状態では、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[1],C[3]およびC[4]として設定され、そして閾値THcが閾値C[2]として設定される。
【0026】
“風景シーン”,“夕景シーン”または“夜景シーン”が選択された場合の閾値C[0]〜C[4]の設定状態を図5(A)〜図5(C)に示す。図5(A)に示す正立状態では、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[1]およびC[2]として設定され、閾値THcが閾値C[4]として設定され、そして閾値THdが閾値C[3]として設定される。図5(B)に示す左90°傾斜状態では、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[3]およびC[4]として設定され、閾値THcが閾値C[2]として設定され、そして閾値THdが閾値C[1]として設定される。図5(C)に示す右90°傾斜状態では、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[3]およびC[4]として設定され、閾値THcが閾値C[1]として設定され、そして閾値THdが閾値C[2]として設定される。
【0027】
“デフォルトシーン”が選択された場合の閾値C[0]〜C[4]の設定状態を図6(A)〜図6(C)に示す。正立状態,左90°傾斜状態および右90°傾斜状態のいずれにおいても、閾値THaが閾値C[0]として設定され、閾値THbが閾値C[1],C[2],C[3]およびC[4]として設定される。
【0028】
なお、閾値THa,THb,THcおよびTHdの間では、THa<THb<THc<THdの関係が成立する。
【0029】
閾値C[0]〜C[4]の設定が完了すると、フォーカスドライバ22によってフォーカスレンズ12が光軸方向に段階的に移動し、各ステップで撮影された被写界のフォーカス評価値Ih[0]〜Ih[4]がCPU24によって取り込まれる。イメージセンサ16が全体間引き読み出し方式で駆動されるときは、1/30秒に1回の割合でフォーカス評価値Ih[0]〜Ih[4]がCPU24に取り込まれ、イメージセンサ16が部分間引き読み出し方式で駆動されるときは、1/60秒に1回の割合でフォーカス評価値Ih[0]〜Ih[4]がCPU24に取り込まれる。
【0030】
CPU24は、各ステップで取得されたフォーカス評価値Ih[0]〜Ih[4]に基づいて、フォーカスエリア0〜4のいずれか1つを有効フォーカスエリアZcとして決定する。なお、有効フォーカスエリア以外のフォーカスエリアを、“無効フォーカスエリア”と定義する。
【0031】
具体的には、各々のレンズ位置で取得されるフォーカス評価値Ih[0]〜Ih[4]のうち最大値がレジスタ値Ih[0]max〜Ih[4]maxとして退避され、最大値が得られたときのフォーカスレンズ12の位置情報fposがレジスタ値f[0]〜f[4]として退避される。
【0032】
退避されたレジスタ値Ih[0]max〜Ih[4]maxは、上述の閾値C[0]〜C[4]と比較される。そして、Ih[j]max>閾値C[j]の条件を満たすフォーカスエリアのうち、レジスタ値f[j]が最大のフォーカスエリアつまり合焦点が最も至近側のフォーカスエリアが、有効フォーカスエリアZcとして決定される。さらに、決定した有効フォーカスエリアZc内の被写体にフォーカスが合わせられる。
【0033】
たとえば、ポートレートシーンが選択され、かつ図7(A)に示すように人物Hm1が捉えられた状態で、シャッタボタン44が半押しされると、フォーカスエリア0が有効フォーカスエリアZcとして決定される。また、ポートレートシーンが選択され、図7(B)に示すように遠くに存在する人物Hm2と近くに存在する人物Hm3とが捉えられた状態で、シャッタボタン44が半押しされると、フォーカスエリア2が有効フォーカスエリアZcとして決定される。
【0034】
スポーツシーンが選択され、かつ図8に示すように遠くを走る人物Hm5および近くを走る人物Hm6が捉えられた状態で、シャッタボタン44が半押しされると、フォーカスエリア1が有効フォーカスエリアZcとして決定される。
【0035】
風景シーン,夕景シーンまたは夜景シーンが選択され、かつ図9に示すように遠くに存在する家Hsと近くに存在する人物Hm4とが捉えられた状態で、シャッタボタン44が半押しされると、フォーカスエリア2が有効フォーカスエリアZcとして決定される。
【0036】
有効フォーカスエリアZcが決定されると、CPU22は、有効フォーカスエリアZcを示す枠をLCD画面上に表示する。オペレータは、現在どのフォーカスエリアが有効フォーカスエリアZcとされているのかを視覚的に把握することができる。
【0037】
なお、イメージセンサ16が部分間引き読み出し方式で駆動される場合、SDRAM34に格納されたYUVデータの読み出しは継続されるものの、イメージセンサ16から出力された生画像信号に基づくYUVデータのSDRAM34への書き込みは中止される。これによって、LCD40の表示はスルー画像からフリーズ画像に遷移する。
【0038】
ただし、フォーカス評価値Ih[0]〜Ih[4]に基づいて有効フォーカスエリアZcが決定されると、イメージセンサ16の駆動方式が部分間引き読み出しから全体間引き読み出しに戻され、かつイメージセンサ16から出力された生画像信号に基づくYUVデータのSDRAM34への書き込みが再開される。これによって、LCD40の表示もまたフリーズ画像からスルー画像に戻される。
【0039】
シャッタボタン44の半押し状態が継続されると、被写界内を移動する主要被写体にフォーカスを合わせ続ける自動追尾処理が実行される。自動追尾動作は、次の要領で実行される。
【0040】
まず、輝度評価値Iy[0]〜Iy[255]がCPU24によって数フレームに1回の割合で取り込まれ、今回取り込まれた輝度評価値Iy[0]〜Iy[255]と前回取り込まれた輝度評価値(レジスタ値)Iy[0]’〜Iy[255]’との差分である輝度差ΔIy[0]〜ΔIy[255]が算出される。さらに、レジスタ値Iy[0]’〜Iy[255]’と輝度差ΔIy[0]〜ΔIy[255]とに基づいてブロック毎の輝度変化率E[0]〜E[255]が算出され、その後フォーカスエリア毎の輝度変化率Ef[0]〜Ef[4]が算出される。
【0041】
主要被写体が有効フォーカスエリアZcから別のフォーカスエリアに移動したかどうかは、算出された輝度変化率Ef[0]〜Ef[4]に基づいて判定される。つまり、被写体に動きが生じると輝度が変化するため、有効フォーカスエリアZc以外のフォーカスエリアの輝度変化率Ef[j]に着目して、主要被写体の移動判定が行われる。
【0042】
具体的には、フォーカスエリア0が有効フォーカスエリアZcであれば、無効フォーカスエリア1〜4のうち輝度変化率Ef[j]が最大のフォーカスエリアが予想移動先エリアZtとして決定される。さらに、フォーカスエリア0を挟んで予想移動先エリアZtと反対側に位置するフォーカスエリアが監視対象エリアZmとして決定される。また、予想移動先エリアZtの輝度変化率Ef[j]と比較される閾値Kが、ディジタルカメラ10の姿勢に応じて次の要領で決定される。なお、監視対象エリアZmの輝度変化率Ef[j]と比較される閾値Lは、固定値とされる。
【0043】
図10(A)および図10(B)を参照して、ディジタルカメラ10が正立状態であれば、フォーカスエリア0上に存在する主要被写体Prは、フォーカスエリア3または4よりもむしろフォーカスエリア1または2に向かって移動すると思われる。これに対して、ディジタルカメラ10が90°傾斜状態であれば、フォーカスエリア0上に存在する主要被写体Prは、フォーカスエリア1または2よりもむしろフォーカスエリア3または4に向かって移動すると思われる。このため、ディジタルカメラ10が正立状態であれば、フォースエリア1または2に割り当てられる閾値Kが、フォーカスエリア3または4に割り当てられる閾値Kよりも低く設定される。また、ディジタルカメラ10が90°傾斜状態であれば、フォースエリア3または4に割り当てる閾値Kが、フォーカスエリア1または2に割り当てられる閾値Kよりも低く設定される。
【0044】
一方、フォーカスエリア1〜4のいずれか1つが有効フォーカスエリアZcであれば、有効フォーカスエリアZcに近接する3つの無効フォーカスエリアが予想移動先エリアZtの候補として決定される。つまり、フォーカスエリア1または2が有効フォーカスエリアZcであればフォーカスエリア0,3および4が候補とされ、フォーカスエリア3または4が有効フォーカスエリアZcであればフォーカスエリア0,1および2が候補とされる。そして、候補とされた3つのフォーカスエリアのうち輝度変化率Ef[j]が最大のフォーカスエリアが予想移動先エリアZtとして決定される。
【0045】
なお、フォーカスエリア0を挟んで予想移動先エリアZtと反対側に位置するフォーカスエリアが監視対象エリアZmとして決定される点、および監視対象エリアZmの輝度変化率Ef[j]と比較される閾値Lが固定値とされる点は、上述と同じである。ただし、予想移動先エリアZtの輝度変化率Ef[j]と比較される閾値Kは、次の要領で決定される。
【0046】
図11(A)および図11(B)を参照して、ディジタルカメラ10が正立状態であれば、フォーカスエリア1上に存在する主要被写体Prは、フォーカスエリア0,3または4のいずれにも移動すると思われる。また、ディジタルカメラ10が90°傾斜状態であれば、フォーカスエリア3上に存在する主要被写体Prは、フォーカスエリア0,1または2のいずれにも移動すると思われる。
【0047】
一方、図12(A)および図12(B)を参照して、ディジタルカメラ10が正立状態であれば、フォーカスエリア4上に存在する主要被写体Prは、フォーカスエリア0よりもむしろフォーカスエリア1または2に向かって移動すると思われる。また、ディジタルカメラ10が90°傾斜状態であれば、フォーカスエリア1上に存在する主要被写体Prは、フォーカスエリア0よりもむしろフォーカスエリア3または4に向かって移動すると思われる。
【0048】
このため、主要被写体が被写界の右側または左側に配置されたフォーカスエリア上に存在する場合は、予想移動先エリアZtの候補とされた3つのフォーカスエリアの全てに低目の閾値Kが割り当てられる。一方、主要被写体が被写界の上側または下側に配置されたフォーカスエリア上に存在する場合は、予想移動先エリアZtの候補とされた3つのフォーカスエリアのうち、フォーカスエリア0に高目の閾値Kが割り当てられ、残りの2つのフォーカスエリアに低目の閾値Kが割り当てられる。
【0049】
移動判定にあたって、予想移動先エリアZtの輝度変化率Ef[j]が閾値K以上でかつ監視対象エリアZmの輝度変化率Ef[j]が閾値L未満であれば、主要被写体について“移動あり”と判定される。これに対して、予想移動先エリアZtの輝度変化率Ef[j]が閾値K未満であるか、予想移動先エリアZtの輝度変化率Ef[j]および監視対象エリアZmの輝度変化率Ef[j]がそれぞれ閾値Kおよび閾値L以上であれば、主要被写体について“移動なし”と判定される。
【0050】
なお、予想移動先エリアZtの輝度変化率Ef[j]が閾値K以上でかつ監視対象エリアZmの輝度変化率Ef[j]が閾値L以上であるときに“移動なし”と判定するのは、この変化がパンニングやチルティングによるものと思われるからである。
【0051】
ただし、主要被写体の移動速度が遅い場合は、主要被写体が予想移動先エリアZtに向かって移動しているにも関わらず、予想移動先エリアの輝度変化率Ef[j]が閾値Kに達しない可能性がある。このため、上述の移動判定で“移動なし”と判定されたときは、輝度変化率Ef[0]〜Ef[4]の積算値(レジスタ値)S[0]〜S[4]に基づいて主要被写体の移動の有無が判定される。
【0052】
具体的には、フォーカスエリア1〜4のいずれか1つが有効フォーカスエリアZcであれば、積算値S[0]が閾値Xとして設定される。また、フォーカスエリア0が有効フォーカスエリアZcであれば、ディジタルカメラ10の姿勢に応じて積算値S[1]〜S[4]のいずれか1つが閾値Xとして設定される。つまり、ディジタルカメラ10が正立状態であれば積算値S[1]およびS[2]のうち大きい数値が閾値Xとして設定され、ディジタルカメラ10が90°傾斜状態であれば積算値S[3]およびS[4]のうち大きい数値が閾値Xとして設定される。
【0053】
したがって、図10(A)に示すようにディジタルカメラ10が正立状態にありかつ主要被写体Prがフォーカスエリア0上に存在するときは、積算値S[1]またはS[2]が閾値Xとして設定される。また、図10(B)に示すようにディジタルカメラ10が傾斜状態にありかつ主要被写体Prがフォーカスエリア0上に存在するときは、積算値S[3]またはS[4]のうち大きい方が閾値Xとして設定される。一方、図11(A),図11(B),図12(A)または図12(B)に示すように主要被写体Prがフォーカスエリア0以外のフォーカスエリア上に存在するときは、フォーカスエリア0の積算値S[0]が閾値Xとして設定される。
【0054】
そして、閾値Xが閾値Lに満たなければ主要被写体について“移動なし”と判定され、閾値Xが閾値L以上であれば主要被写体について“移動あり”と判定される。
【0055】
“移動あり”との判定結果が得られると、有効フォーカスエリアZcが予想移動先エリアZtに変更され、変更された有効フォーカスエリアZc上でフォーカスが調整される。“移動なし”との判定結果が得られたときは、現時点の有効フォーカスエリアZcに設定が維持される。
【0056】
なお、以上のような自動追尾処理を行うとき、絞り機構14は絞りドライバ20によって開放される。これは、絞り機構14の開口部における光の回折の影響を軽減し、追尾精度を向上させるためである。
【0057】
シャッタボタン44が半押し状態から全押し状態に移行すると、最適絞り量Asおよび最適露光期間Tsが絞り機構14およびTG18にそれぞれに設定され、記録処理が実行される。まず、CPU24からTG18に対して1フレームの本露光および全画素読み出しが命令され、CPU24から信号処理回路30に対して圧縮処理が命令される。TG18は、最適露光期間Tsに従う本露光を実行し、本露光によって生成された全ての電荷つまり1フレーム分の高解像度生画像信号をイメージセンサ16から読み出す。
【0058】
読み出された生画像信号は、CDS/AGC回路26およびA/D変換器28を介して信号処理回路30に入力され、上述の一連の処理によってYUVデータに変換される。変換されたYUVデータは、メモリコントローラ32によってSDRAM34に書き込まれる。信号処理回路30はその後、メモリコントローラ32を通してSDRAM34からYUVデータを読み出し、読み出されたYUVデータにJPEG圧縮を施し、JPEG圧縮によって生成された圧縮画像データをファイル形式でメモリカード36に記録する。
【0059】
図13(A)〜図11(C)を参照して、自動追尾動作の一例を説明する。図13(A)に示すように、主要被写体Prがフォーカスエリア1上に存在しかつ有効フォーカスエリアZcがフォーカスエリア1に設定されている状態から、主要被写体Prが図13(B)および図13(C)に示すようにディジタルカメラ10に向かって被写界を横断し、かつ図13(A)の時点では被写界内に存在しなかった2次的被写体Seが、図13(B)の時点で被写界内に侵入し、図13(B)の時点で被写界から外れる場合を想定する。
【0060】
図13(A)の時点ではフォーカスエリア0が予想移動先エリアZtとされ、フォーカスエリア2が監視対象エリアZmとされる。そして、輝度変化率Ef[0]およびEf[2]と輝度変化率Ef[0]の積算値Xとに基づいて、主要被写体Prがフォーカスエリア0に移動したか否かが判断される。図13(B)の時点では、フォーカスエリア2が予想移動先エリアZtとされ、フォーカスエリア1が監視対象エリアZmとされる。そして、輝度変化率Ef[2]およびEf[1]と輝度変化率Ef[2]の積算値に基づいて、主要被写体Prがフォーカスエリア2に移動したか否かが判断される。
【0061】
このように、予想移動先エリアZtおよび監視対象エリアZmは主要被写体Prが移動したか否かを検知するための移動検知エリアとされ、予想移動先エリアZtおよび監視対象エリアZmの輝度変化率Ef[j]に基づいて主要被写体Prの移動の有無が判断される。したがって、移動の有無の判断が2次的主要被写体Seによって乱されることはない。
【0062】
モードキー50の操作によって自動追尾機能が有効化された状態でシャッタボタン44が半押しされたとき、CPU24は、図14〜図32に示すフロー図に従う処理を実行する。なお、これらのフロー図に対応する制御プログラムは、フラッシュメモリ24aに記憶されている。
【0063】
図14を参照して、まずステップS1で傾斜センサ46を用いた姿勢検出処理を行う。これによって、ディジタルカメラ10が右方向への90°傾斜状態,左方向への90°傾斜状態および正立状態のいずれにあるのかが判別される。右方向への90°傾斜状態と判別されると姿勢係数SLPは“1”に設定され、左90°方向への傾斜状態と判別されると姿勢係数SLPは“2”に設定され、そして正立状態と判別されると姿勢係数SLPは“3”に設定される。
【0064】
続くステップS3では、AE/AF制御処理を実行する。このうち、AE制御処理によって最適露光期間Tsおよび最適絞り量Asが求められる。また、AF制御処理によってフォーカス調整が可能な被写界であるかどうかが判断され、判断結果が肯定的であれば、有効フォーカスエリアZcが決定されるとともに、決定された有効フォーカスエリアZc内の被写体にフォーカスが合わせられる。なお、フォーカス調整が可能であれば“Good”の判定結果が得られ、フォーカス調整が不可能であれば“NG”の判定結果が得られる。
【0065】
ステップS5ではAF制御処理によって得られた判定結果を判別し、ステップS7ではシャッタボタン44の半押し状態が継続しているかどうかを判別する。判定結果が“NG”であるとき、あるいは判定結果が“Good”であってもシャッタボタン34が半押し状態でなければ、ステップS25で本露光のために最適露光期間Tsおよび最適絞り量AsをTG18および絞り機構14に設定してから、処理を終了する。したがって、シャッタボタン34が半押し状態から全押し状態に移行したときは、ピントがあっているかどうかに関係なく記録処理が実行される。
【0066】
判定結果が“Good”でかつシャッタボタン44の半押し状態が継続されていれば、主要被写体の自動追尾を行うべく、ステップS9以降の処理を実行する。
【0067】
まずステップS9で、変数p,q,rおよびレジスタ値S[0]〜S[4]を“0”に設定する。ここで、変数pは、シャッタボタン44が半押しされてからYデータが安定するまでに要するフレーム数をカウントするための変数である。変数qは、輝度評価値Iy[0]〜Iy[255]の取り込み周期をカウントするための変数である。変数rは、輝度変化率Ef[0]〜Ef[4]の積算フレーム数をカウントするための変数である。レジスタ値S[0]〜S[4]はそれぞれ、輝度変化率Ef[0]〜Ef[4]の積算値である。
【0068】
ステップS11では、絞り機構14が開放状態であるか否かを判断する。YESと判断されたときはそのままステップS19に進むが、NOと判断されたときはステップS13〜S17の処理を経てステップS19に進む。
【0069】
ステップS13では、AE制御処理で求められた最適絞り量A(=As)をレジスタ値As’として退避させ、ステップS15では絞り機構14を開放状態とする。ステップS17では、AF用露光期間Taf1を算出し、算出されたAF用露光期間Taf1をTG18に設定する。
【0070】
ステップS19では垂直同期信号Vsyncの発生の有無を判別し、YESであればシャッタボタン44の半押し状態が維持されているかどうかをステップS25で判断する。半押し状態が解除されていれば、ステップS25の本露光設定を経て処理を終了する。
【0071】
シャッタボタン44の半押し状態が維持されていれば、ステップS25でAE/AF評価回路36から輝度評価値Iy[0]〜Iy[255]を取り込み、ステップS27で変数pが上限値P(=3)に達したか否かを判断する。変数pが未だ上限値Pに達していなければ、ステップS29で変数pをインクリメントし、ステップS31で現在の輝度評価値Iy[0]〜Iy[255]をレジスタ値Iy[0]’〜Iy[255]’として退避させてから、ステップS19に戻る。
【0072】
変数pが上限値Pに達すると、ステップS27からステップS33に進み、変数qが上限値Q(=3)に達したかどうかを判断する。変数qが未だ上限値Qに達していなければ、ステップS37で変数qをインクリメントしてからステップS19に戻る。変数qが上限値Qに達したときは、ステップS37で変数qを“0”に戻し、ステップS39で輝度変化検出処理を実行する。輝度変化検出処理によって、フォーカスエリア0〜4の輝度変化率Ef[0]〜Ef[4]が求められる。
【0073】
ステップS41では、第1移動判定処理を実行する。第1移動判定処理によって、予想移動先エリアZtおよび監視対象エリアZmが決定され、予想移動先エリアZtおよび監視対象エリアZmの輝度変化率Ef[j]に基づいて主要被写体の移動の有無が判定される。ステップS43では、第1移動判定処理の判定結果が“移動あり”および“移動なし”のいずれであるかを判断する。
【0074】
ここでNOと判断されたときは、ステップS45で第2移動判定処理を実行する。第2移動判定処理によって、輝度変化率Ef[0]〜Ef[4]が積算され、積算値S[0]〜S[4]に基づいて主要被写体の移動の有無が判定される。ステップS47では、第2移動判定処理の判定結果が“移動あり”および“移動なし”のいずれであるかを判断する。ここでNOと判断されたときは、主要被写体に移動は生じていないとみなし、そのままステップS19に戻る。
【0075】
これに対して、ステップS43およびS47のいずれか一方でYESと判断されたときは、ステップS49でAF再起動処理を実行する。AF再起動処理によって、有効フォーカスエリアZcが更新され、更新後の有効フォーカスエリアZcにおいてフォーカス調整が行われる。ステップS51ではレジスタ値S[0]〜S[4]を“0”に戻し、ステップS53では現在の輝度評価値Iy[i]をレジスタ値Iy[i]’として退避させる。退避処理が完了すると、ステップS19に戻る。
【0076】
図14に示すステップS1の姿勢検出処理は、図16に示すサブルーチンに従う。まずステップS61およびS63で、傾斜センサ46の出力に基づいてディジタルカメラ10の姿勢を判別する。傾斜センサ46の出力が“正立状態”を示していれば、ステップS61でYESと判断し、ステップS65で姿勢係数SLPを“3”に設定する。傾斜センサ46の出力が“右方向への90°傾斜状態”を示していれば、ステップS63でYESと判断し、ステップS67で姿勢係数SLPを“1”に設定する。傾斜センサ46の出力が“左方向への90°傾斜状態”を示していれば、ステップS63でNOと判断し、ステップS69で姿勢係数SLPを“2”に設定する。
【0077】
図14に示すステップS3のAE/AF制御処理は、図17〜図19に示すサブルーチンに従う。まずステップS71で、AE/AF評価回路42から256個の輝度評価値Iy[0]〜Iy[255]を取り込む。ステップS73では、取り込まれた輝度評価値Iy[0]〜Iy[255]に基づいて最適露光期間Tsを算出して、ステップS75では、算出された最適露光期間Tsをレジスタ値Ts’として退避させる。ステップS77では、取り込まれた輝度評価値Iy[0]〜Iy[255]に基づいて最適絞り量Asを算出し、絞りドライバ20を制御して絞り機構14に最適絞り量Asを設定する。なお、最適露光期間Tsおよび最適絞り量Asの算出は、現時点で有効化されている測光方式(多分割測光,中央重点測光,スポット測光など)に従って行われる。
【0078】
設定が完了すると、ステップS79で第1フリーズ処理を行う。これによって、イメージセンサ16の駆動方式が全体間引き読み出しおよび部分間引き読み出しのいずれか一方に決定される。つまり、被写界が明るければ全体間引き読み出しが維持され、被写界が暗ければ部分間引き読み出しが選択される。また、部分間引き読み出しが選択されたときは、メモリコントローラ32に対してデータ書き込みの中止が命令される。
【0079】
ステップS81では、閾値設定処理を実行する。これによって、閾値C[1]〜C[4]がフォーカスエリア0〜4に個別に割り当てられる。閾値C[1]〜C[4]の具体的な数値は、シーン選択キー48によって選択されたシーンとディジタルカメラ10の姿勢とに基づいて決定される。
【0080】
ステップS83ではフォーカスドライバ22を駆動してフォーカスレンズ12を無限位置に設定し、ステップS85ではフォーカス位置情報fposを無限位置に対応する“0”に設定する。続いて、ステップS87でレジスタ値Ih[0]max〜Ih[4]maxを“0”に設定し、ステップS89で垂直同期信号Vsyncの発生の有無を判別する。
【0081】
垂直同期信号Vsyncが発生したときは、ステップS91で変数jを“0”に設定し、ステップS93でAE/AF評価回路42からフォーカス評価値Ih[j]を取り込む。ステップS95では、取り込まれたフォーカス評価値Ih[j]をレジスタ値Ih[j]maxと比較する。ここでIh[j]<Ih[j]maxと判断されれば、そのままステップS101に進む。これに対して、Ih[j]≧Ih[j]maxと判断されれば、ステップS97でフォーカス評価値Ih[j]をレジスタ値Ih[i]maxとして設定し、ステップS99で現時点のフォーカス位置情報fposをレジスタ値f[j]として退避させ、その後ステップS101に進む。
【0082】
ステップS101では、変数jが“4”に達したかどうか判断する。変数jが“4”に達していなければ、ステップS103で変数jをインクリメントしてからステップS93に戻る。変数jが“4”に達すると、ステップS105でフォーカス位置情報fposを至近位置に対応する所定値NEARと比較する。ここでfpos<NEARであれば、フォーカスレンズ12は至近位置に到達していないとみなし、ステップS107でフォーカスレンズ12を1ステップ至近側に移動させるとともに、ステップS109でフォーカス位置情報fposをインクリメントする。ステップS109の処理が完了すると、ステップS99に戻る。
【0083】
以上のようなステップS89〜S109の処理の繰り返しによって、レジスタ値f[0]〜f[4]はそれぞれ、フォーカスエリア0〜4におけるフォーカスレンズ12の合焦位置を示す。
【0084】
フォーカスレンズ12が至近位置に達すると、ステップS105でYESと判断し、ステップS111で第2フリーズ処理を実行する。第2フリーズ処理によって、イメージセンサ16の駆動方式が全体間引き読み出しに戻される。
【0085】
ステップS113では、レジスタ値Ih[0]max〜レジスタ値Ih[4]maxを閾値C[0]〜C[4]とそれぞれ比較して、Ih[j]max≧C[j]の条件を満たすフォーカスエリアを検出する。ステップS115では、条件を満たすフォーカスエリアが検出されたかどうか判断し、判断結果に応じてステップS117およびステップS127のいずれか一方に進む。
【0086】
条件を満たすフォーカスエリアが検出されると、ステップS117で最適レジスタ値f[j]を特定する。具体的には、条件を満たすフォーカスエリアに対応するレジスタ値f[j]の中から、最も数値の大きいものつまり最も至近側のものを特定する。ステップS119では、最適レジスタ値f[j]に対応するフォーカスエリアを有効フォーカスエリアZcとして決定し、有効フォーカスエリアZcを示す枠をLCD40に表示する。ステップS121では最適レジスタ値f[j]をフォーカス位置情報fposとして復帰させ、ステップS123ではフォーカス位置情報fposが示す位置にフォーカスレンズ12を移動させ、そしてステップS125では判定結果“Good”を有効化する。
【0087】
一方、条件を満たすフォーカスエリアが検出されなければ、ステップS127で固定値をフォーカス位置情報fposに設定する。ステップS129ではフォーカス位置情報fposが示す位置にフォーカスレンズ12を移動させ、ステップS131では判定結果“NG”を有効化する。ステップS125またはS131の処理が完了すると、上階層のルーチンに復帰する。
【0088】
第1フリーズ処理は、図20に示すサブルーチンに従う。まずステップS141で、上述のステップS71で取得した輝度評価値Iy[0]〜Iy[255]に基づいて輝度レベルy_levelを算出する。算出方法は、現時点で有効化されている測光方式に従う。ステップS143では、上述のステップS73で算出された最適露光期間Ts,設定可能な最長露光期間TmaxおよびステップS141で算出された輝度レベルy_levelに基づいて、最長露光期間Tmaxに対応する輝度レベルy_level_maxを算出する。具体的には、数1の演算を実行する。
【0089】
【数1】
y_level_max=y_level×Tmax/Ts
ステップS145では、算出された輝度レベルy_level_maxを目標輝度レベルy_targetと比較する。y_level_max>y_targetであればステップS157で暗黒率night_ratioを“0”に設定し、y_level_max≦y_targetであればステップS159で暗黒率night_ratioを数2に従って算出する。
【0090】
【数2】
night_ratio=
100(1−y_level_max/y_target)
ステップS147またはS149の処理が完了すると、ステップS151で暗黒率night_ratioを閾値Bと比較する。そして、night_ratio>Bであれば、被写界は十分に明るいとみなし、ステップS163に進む。ステップS163では、現時点の駆動方式である全体間引き読み出しに適合するAF用露光期間Taf1を算出し、算出した露光期間Taf1をTG18に設定する。設定が完了すると、上階層のルーチンに復帰する。
【0091】
これに対して、night_ratio≦Bであれば、被写界の明るさは不十分であるとみなし、ステップS153で垂直同期信号Vsyncの発生を待つ。垂直同期信号Vsyncが発生すると、ステップS155でメモリコントローラ32にデータ書き込みの中止を命令する。メモリコントローラ32はデータ読み出しのみを行い、LCD40の表示はスルー画像からフリーズ画像(静止画像)に遷移する。ステップS157では部分間引き読み出しをTG18に命令し、ステップS159では垂直同期信号Vsyncの発生を待つ。垂直同期信号Vsyncが発生すると、ステップS161に進み、部分間引き読み出し方式に適合するAF用露光期間Taf2の算出と、算出した露光期間Taf2のTG18への設定とを行う。設定が完了すると、上階層のルーチンに復帰する。
【0092】
図17に示すステップS81の閾値設定処理は、図21に示すサブルーチンに従う。まずステップS171でシーン選択キー48の選択状態を検出し、ステップS173,S177およびS179でどのようなシーンが選択されているかを判別する。デフォルトシーンが選択されていれば、ステップS173からステップS175に進み、閾値C[0]として閾値THaを設定するとともに、閾値C[1]〜C[4]として閾値THbを設定する。ステップS175の処理が完了すると、上階層のルーチンに復帰する。
【0093】
ポートレートシーンが選択されていれば、ステップS177でYESと判断し、ステップS181で第1閾値決定処理を実行する。スポーツシーンが選択されていれば、ステップS179でYESと判断し、ステップS183で第2閾値決定処理を実行する。風景シーン,夕景シーンまたは夜景シーンが選択されていれば、ステップS179でNOと判断し、ステップS185で第3閾値決定処理を実行する。ステップS181,S183またはS185の処理が完了すると、上階層のルーチンに復帰する。
【0094】
ステップS181の第1閾値決定処理は、図22に示すサブルーチンに従う。
まずステップS201およびS205で傾斜係数SLPを判別する。傾斜係数SLPが“1”であれば、ステップS201からステップS203に進み、閾値C[0]として閾値THaを設定し、閾値C[1],C[3]またはC[4]として閾値THbを設定し、そして閾値C[2]として閾値THdを設定する。傾斜係数SLPが“2”であれば、ステップS205からステップS207に進み、閾値C[0]として閾値THaを設定し、閾値C[2],C[3]またはC[4]として閾値THbを設定し、そして閾値C[1]として閾値THdを設定する。
【0095】
傾斜係数SLPが“3”であれば、ステップS205からステップS209に進み、閾値C[0]として閾値THaを設定し、閾値C[1],C[2]またはC[4]として閾値THbを設定し、そして閾値C[3]として閾値THdを設定する。ステップS203,S207またはS209の処理が完了すると、上階層のルーチンに復帰する。
【0096】
ステップS183の第2閾値決定処理は、図23に示すサブルーチンに従う。
まずステップS211およびS215で傾斜係数SLPを判別する。傾斜係数SLPが“1”であれば、ステップS211からステップS213に進み、閾値C[0]として閾値THaを設定し、閾値C[1],C[3]またはC[4]として閾値THbを設定し、そして閾値C[2]として閾値THcを設定する。傾斜係数SLPが“2”であれば、ステップS215からステップS217に進み、閾値C[0]として閾値THaを設定し、閾値C[2],C[3]またはC[4]として閾値THbを設定し、そして閾値C[1]として閾値THcを設定する。
【0097】
傾斜係数SLPが“3”であれば、ステップS215からステップS219に進み、閾値C[0]として閾値THaを設定し、閾値C[1],C[2]またはC[4]として閾値THbを設定し、そして閾値C[3]として閾値THcを設定する。ステップS213,S217またはS219の処理が完了すると、上階層のルーチンに復帰する。
【0098】
ステップS185の第3閾値決定処理は、図24に示すサブルーチンに従う。
まずステップS221およびS225で傾斜係数SLPを判別する。傾斜係数SLPが“1”であれば、ステップS221からステップS223に進み、閾値C[0]として閾値THaを設定し、閾値C[3]またはC[4]として閾値THbを設定し、閾値C[1]として閾値THcを設定し、そして閾値C[2]として閾値THdを設定する。傾斜係数SLPが“2”であれば、ステップS215からステップS217に進み、閾値C[0]として閾値THaを設定し、閾値C[3]またはC[4]として閾値THbを設定し、閾値C[1]として閾値THdを設定し、そして閾値C[2]として閾値THcを設定する。
【0099】
傾斜係数SLPが“3”であれば、ステップS215からステップS219に進み、閾値C[0]として閾値THaを設定し、閾値C[1]またはC[2]として閾値THbを設定し、閾値C[3]として閾値THdを設定し、そして閾値C[4]として閾値THcを設定する。ステップS223,S227またはS229の処理が完了すると、上階層のルーチンに復帰する。
【0100】
図19に示すステップS111の第2フリーズ処理は、図25に示すサブルーチンに従う。まずステップS231で、メモリコントローラ32がデータ書き込みを中止しているかどうかを判別する。ここでNOと判断されると、そのまま上階層のルーチンに復帰する。
【0101】
これに対して、YESと判断されると、ステップS233で全体間引き読み出しをTG18に命令する。垂直同期信号Vsyncが発生すると、ステップS235からステップS237に進み、全体間引き読み出しに適合するAF用露光期間Taf1の算出と、算出した露光期間Taf1のTG18への設定とを行う。垂直同期信号Vsyncが再度発生するとステップS239からステップS241に進み、データ書き込みの再開をメモリコントローラ32に命令する。データ書き込みの再開によって、LCD40の表示はフリーズ画像からスルー画像に遷移する。ステップS241の処理が完了すると、上階層のルーチンに復帰する。
【0102】
図15に示すステップS39の輝度変化検出処理は、図26に示すサブルーチンに従う。まずステップS251で、図14のステップS23で取り込まれた輝度評価値Iy[0]〜Iy[255]とその前に図15のステップS31で退避されたレジスタ値Iy[0]’〜Iy[255]’とに数3に従う演算を施し、各ブロックの輝度差ΔIy[0]〜Iy[255]を求める。
【0103】
【数3】
ΔIy[i]=|Iy[i]−Iy[i]’|
ただし、i=0〜255
ステップS253では、数3に従って算出された輝度差ΔIy[0]〜Iy[255]とレジスタ値Iy[0]’〜Iy[255]’とに数4に従う演算を施し、各ブロックの輝度変化率E[0]〜E[255]を算出する。
【0104】
【数4】
E[i]=(ΔIy[i]/Iy[i]’)×100
ただし、i=0〜255
ステップS255では、フォーカスエリア0に属するブロックの輝度変化率E[i]を平均して輝度変化率Ef[0]を求め、フォーカスエリア1に属するブロックの輝度変化率E[i]を平均して輝度変化率Ef[1]を求め、フォーカスエリア2に属するブロックの輝度変化率E[i]を平均して輝度変化率Ef[2]を求める。また、フォーカスエリア3に属するブロックの輝度変化率E[i]を平均して輝度変化率Ef[3]を求め、フォーカスエリア4に属するブロックの輝度変化率E[i]を平均して輝度変化率Ef[4]を求める。ステップS255の処理が完了すると、上階層のルーチンに復帰する。
【0105】
図15に示すステップS41の第1移動判定処理は、図27〜図28に示すサブルーチンに従う。まずステップS261で、有効フォーカスエリアZcの設定先がフォーカスエリア0であるか否かを判断する。YESと判断されたときはステップS263に進み、無効フォーカスエリア1〜4のうち輝度変化率Ef[j]が最大のフォーカスエリアを予想移動先エリアZtとして決定する。続くステップS265では、傾斜係数SLPを判別する。
【0106】
ここで傾斜係数SPLが“3”であれば、ディジタルカメラ10は正立状態にあるとみなし、ステップS267で閾値Kを決定する。具体的には、フォーカスエリア1または2の閾値Kを所定値kに決定し、フォーカスエリア3または4の閾値Kを所定値kの2倍の値に決定する。一方、傾斜係数SPLが“1”または“2”であれば、ディジタルカメラ10は90°傾斜状態にあるとみなし、ステップS269で閾値Kを決定する。具体的には、フォーカスエリア1または2の閾値Kを所定値kの2倍の値に決定し、フォーカスエリア3または4の閾値Kを所定値kに決定する。
【0107】
ステップS267またはS269の処理が完了するとステップS271に進み、予想移動先エリアZtの輝度変化率Ef[j]および閾値Kを互いに比較する。そして、Ef[j]<Kであれば、ステップS279で主要被写体について“移動なし”と判定し、上階層のルーチンに復帰する。これに対して、Ef[j]≧Kであれば、ステップS273で監視対象エリアZmを決定する。具体的には、フォーカスエリア1が予想移動先エリアZtであればフォーカスエリア2を監視対象エリアZmとし、フォーカスエリア2が予想移動先エリアZtであればフォーカスエリア1を監視対象エリアZmとする。また、フォーカスエリア3が予想移動先エリアZtであればフォーカスエリア4を監視対象エリアZmとし、フォーカスエリア4が予想移動先エリアZtであればフォーカスエリア3を監視対象エリアZmとする。
【0108】
ステップS275では、決定された監視対象エリアZmにおける輝度変化率Ef[j]を閾値Lと比較する。そして、Ef[j]<Lであれば、ステップS277で主要被写体について“移動あり”と判別する。これに対して、Ef[j]≧Lであれば、ステップS279で主要被写体について“移動なし”と判定する。ステップS277またはS279の処理が完了すると、上階層のルーチンに復帰する。
【0109】
ステップS261でNOと判断されたときは、ステップS281で予想移動先エリアZtの候補を決定する。具体的には、フォーカスエリア1または2が有効フォーカスエリアZcであれば、無効フォーカスエリア0,3および4を予想移動先エリアZtの候補とする。また、フォーカスエリア3または4が有効フォーカスエリアZcであれば、無効フォーカスエリア0,1および2を予想移動先エリアZtの候補とする。ステップS283では、決定された複数の候補のうち、輝度変化率E[j]が最大のフォーカスエリアを予想移動先エリアZtとして決定する。
【0110】
ステップS285では、傾斜係数SLPを判別する。そして、傾斜係数SLPが“3”であればステップS287に進み、傾斜SLPが“1”または“2”であればステップS289に進む。ステップS287では、有効フォーカスエリアZcの設定先を判別する。そして、有効フォーカスエリアZcがフォーカスエリア1または2に設定されていればステップS291で予想移動先エリアZtの候補の閾値Kを決定し、有効フォーカスエリアZcがフォーカスエリア3または4に設定されていればステップS293で予想移動先エリアZtの候補の閾値Kを決定する。
【0111】
ステップS289でも、ステップS287と同じ要領で有効フォーカスエリアの設定先を判別する。そして、有効フォーカスエリアZcがフォーカスエリア1または2に設定されていればステップS295で予想移動先エリアZtの候補の閾値Kを決定し、有効フォーカスエリアZcがフォーカスエリア3または4に設定されていればステップS297で予想移動先エリアZtの候補の閾値Kを決定する。
【0112】
ステップS291では、フォーカスエリア0,3または4の閾値Kを所定値kに決定する。ステップS293では、フォーカスエリア0の閾値Kを所定値kの2倍の値に決定し、フォーカスエリア1または2の閾値Kを所定値kに決定する。 ステップS295では、フォーカスエリア0の閾値Kを所定値kの2倍の値に決定し、フォーカスエリア3または4の閾値Kを所定値kに決定する。ステップS297では、フォーカスエリア0,1または2の閾値Kを所定値kに決定する。
【0113】
ステップS291〜S297の処理が完了すると、ステップS299〜S307の処理を実行するが、これらの処理は上述のステップS271〜S279と同様であるため、重複した説明を省略する。
【0114】
図15に示すステップS45の第2移動判定処理は、図29〜図31に示すサブルーチンに従う。まずステップS311で変化率積算処理を行う。変化率積算処理によって、フォーカスエリア0〜4のうち、有効フォーカスエリアZcおよびディジタルカメラ10の姿勢に応じて特定されるフォーカスエリアの輝度変化率Ef[j]が積算される。輝度変化率Ef[0]〜Ef[4]の積算結果は、レジスタ値S[0]〜S[4]として保持される。また、変化率積算処理によって、変数rがインクリメントされる。
【0115】
ステップS313では変数rが上限値Rに達したかどうかを判別し、変数rが上限値Rに達していなければ、ステップS339で“移動なし”の判定結果を有効化してから上階層のルーチンに復帰する。
【0116】
変数rが上限値Rに達したときは、ステップS315で変数rを“0”に戻し、ステップS317でフォーカスエリア0が有効フォーカスエリアZcであるかどうか判断する。フォーカスエリア1〜4のいずれか1つが有効フォーカスエリアZcであれば、ステップS319でレジスタ値S[0]を積算値Xとして設定する。一方、フォーカスエリア0が有効フォーカスエリアZcであれば、ステップS321に進み、姿勢係数SLPに基づいてディジタルカメラ10の姿勢を判別する。
【0117】
姿勢係数SLPが“3”であれば、ディジタルカメラ10は正立状態であるとみなし、ステップS329でレジスタ値S[1]およびS[2]を互いに比較する。そして、S[1]≧S[2]であればステップS331でレジスタ値S[1]を積算値Xとして設定し、S[1]<S[2]であればステップS333でレジスタ値S[2]を積算値Xとして設定する。
【0118】
これに対して、姿勢係数SLPが“1”または“2”であれば、ディジタルカメラ10は90°傾斜状態であるとみなし、ステップS325でレジスタ値S[3]およびS[4]を互いに比較する。そして、S[3]≧S[4]であればステップS325でレジスタ値S[3]を積算値Xとして設定し、S[3]<S[4]であればステップS327でレジスタ値S[4]を積算値Xとして設定する。
【0119】
積算値Xが確定すると、ステップS335でこの積算値Xを閾値Mとを比較する。そして、積算値Xが閾値M以上であればステップS337で“移動あり”の判定結果を有効化してから上階層のルーチンに復帰し、積算値Xが閾値M未満であればステップS339で“移動なし”の判定結果を有効化してから上階層のルーチンに復帰する。
【0120】
ステップS311の変化率積算処理は、図30〜図31に示すサブルーチンに従う。まずステップS341で有効フォーカスエリアZcの設定先を判別する。フォーカスエリア0が有効フォーカスエリアZcであれば、ステップS343で傾斜係数SLPを判別する。傾斜係数SLPが“3”のときはステップS345に進み、フォーカスエリア1の輝度変化率Ef[1]およびフォーカスエリア2の輝度変化率Ef[2]を個別に積算する。具体的には、数5に従う演算を実行する。
【0121】
【数5】
S[1]=S[1]+Ef[1]
S[2]=S[2]+Ef[2]
傾斜係数SLPが“1”または“2”のときはステップS347に進み、フォーカスエリア3の輝度変化率Ef[3]およびフォーカスエリア4の輝度変化率Ef[4]を個別に積算する。具体的には、数6に従う演算を実行する。
【0122】
【数6】
S[3]=S[3]+Ef[3]
S[4]=S[4]+Ef[4]
数5または数6の演算が完了すると、ステップS349で変数rをインクリメントしてから上階層のルーチンに復帰する。
【0123】
フォーカスエリア1〜4のいずれか1つが有効フォーカスエリアZcであれば、ステップS351で傾斜係数SLPを判別する。傾斜係数SLPが“3”のときは、ステップS355で有効フォーカスエリアZcの設定先を判別する。フォーカスエリア3または4が有効フォーカスエリアZcであればそのままステップS359に移行するが、フォーカスエリア1または2が有効フォーカスエリアZcであれば、ステップS357で数7に従ってフォーカスエリア0の輝度変化率Ef[0]を積算してからステップS349に移行する。
【0124】
【数7】
S[0]=S[0]+Ef[0]
また、傾斜係数SLPが“1”または“2”のときは、ステップS353で有効フォーカスエリアZcの設定先を判別する。フォーカスエリア1または2が有効フォーカスエリアZcであればそのままステップS349に移行するが、フォーカスエリア3または4が有効フォーカスエリアZcであれば、ステップS357を経てステップS349に移行する。
【0125】
図15に示すステップS49のAF再起動処理は、図32に示すサブルーチンに従う。まずステップS361で、有効フォーカスエリアZcを現在の予想移動先エリアZtに変更し、変更された有効フォーカスエリアZcを示す枠をLCD40に表示する。ステップS363では変更された有効フォーカスエリアZc内でフォーカス調整を行い、調整が完了すると、ステップS365で変数pを“0”に戻してから上階層のルーチンに復帰する。なお、ステップS363のフォーカス調整では、イメージセンサ14は全体間引き読み出しを施される。
【0126】
以上の説明から分かるように、被写界に配置されたフォーカスエリア0〜4の中からフォーカス調整に用いる有効フォーカスエリアZcを最初に決定するとき、フォーカスエリア0〜4でそれぞれ求められた最大フォーカス評価値Ih[0]max〜Ih[4]maxが、フォーカスエリア0〜4にそれぞれ割り当てられた閾値C[0]〜C[4]と比較される。ここで、閾値C[0]〜C[4]として設定される閾値THa,THb,THcまたはTHdの割り当て先は、傾斜センサ46の検知結果つまりカメラ姿勢に基づいてCPU24によって変更される。つまり、フォーカスエリア0〜4は、被写界の中心を基準に放射状に配置され、閾値THa,THb,THcまたはTHdの割り当て先はカメラ姿勢に応じて回転される。
【0127】
このように、閾値THa,THb,THcまたはTHdの割り当て先をカメラ姿勢に基づいて変更することで、カメラ姿勢に関係なくフォーカスを正確に調整することができる。また、フォーカスエリア0〜4は垂直方向および水平方向に3個ずつ配置され、傾斜センサ46はカメラ姿勢が正立状態および90°傾斜状態のいずれであるかを判別し、CPU24は閾値THa,THb,THcまたはTHdの割り当て先を90°回転させるため、傾斜センサ46が正立状態および90°傾斜状態しか判別できない低性能のものであっても、閾値THa,THb,THcまたはTHdの的確な割り当てが可能となる。
【0128】
また、被写界の光学像に対応する電荷は、イメージセンサ16の受光面の全体から周期的に読み出される。SDRAM34には、イメージセンサ16から読み出された電荷に基づくYUVデータが書き込まれる。LCD40には、SDRAM34に格納されたYUVデータに基づく画像が表示される。ただし、シャッタボタン44が操作されると、被写界の明るさが判別される。そして、明るさが十分であれば、電荷をイメージセンサ16の受光面の中央エリアから読み出しかつSDRAM34へのYUVデータの書き込みを禁止する特定設定状態が、CPU24によって有効化される。
【0129】
フォーカスは、特定設定状態が有効化された後にイメージセンサ16から読み出された電荷に基づいて調整される。フォーカス調整が完了すると、特定設定状態がCPU24によって解除される。これによって、電荷はイメージセンサ16の受光面全体から周期的に読み出され、読み出された電荷に基づくYUVデータがSDRAM34に書き込まれる。LCD40の表示は、フリーズ画像から被写界のリアルタイム動画像に遷移する。
【0130】
電荷をイメージセンサ16の中央エリアから読み出すことによって、読み出し周期が短縮される。また、中央エリアから読み出された電荷に基づくYUVデータのSDRAM34への書き込みを禁止することによって、LCD40の表示は、被写界全体のスルー画像からフリーズ画像に移行する。読み出し周期が短縮されることで、フォーカス調整の高速化が可能となる。また、フリーズ画像ではあるものの、被写界全体の画像がLCD34に表示されるため、操作性の低下を抑制できる。
【0131】
なお、フォーカス調整の高速化が実現されるため、フリーズ画像が表示される時間は短く、オペレータに著しい不快感を与えることはない。また、特定設定状態はオペレータの手動操作に起因して有効化されるため、オペレータの意図しないタイミングでモニタ表示がスルー画像からフリーズ画像に遷移することはない。
【0132】
シャッタボタン44の半押し状態が継続すると、主要被写体の自動追尾機能が起動する。このとき、CPU24は、フォーカスエリア0〜4のうち有効フォーカスエリアZc以外の複数の無効フォーカスエリアについて輝度変化率Ef[j]を個別に算出し、この複数の無効フォーカスエリアに存在する被写体の動きを評価する。CPU24はさらに、算出された輝度変化率Ef[j]と複数の無効フォーカスエリアにそれぞれ割り当てられた複数の閾値Kとに基づいて、主要被写体の移動の有無を判別する。主要被写体が移動すると、有効フォーカスエリアZcが変更される。フォーカスは、こうして変更される有効フォーカスエリアZcを基準に調整される。ここで、複数の閾値Kの各々が示す数値は、主要被写体の移動可能性が反映されるように、有効フォーカスエリアZcの位置に応じて変更される。
【0133】
具体的には、ディジタルカメラ10が正立状態にあるときにフォーカスエリア3または4が有効フォーカスエリアZcであれば、フォーカスエリア1または2の閾値Kがフォーカスエリア0の閾値よりも低く設定される。これは、主要被写体が被写界の中央上側または中央下側に位置する場合、この主要被写体は被写界の垂直方向よりもむしろ斜め方向に移動することを考慮したものである。
【0134】
また、ディジタルカメラ10が正立状態にあるときにフォーカスエリア1または2が有効フォーカスエリアZcであれば、フォーカスエリア0,3および4の閾値Kが互い同じ数値に設定される。これは、主要被写体が被写界の中央右側または中央左側に位置する場合、この主要被写体は被写界の水平方向および斜め方向のいずれにも移動する可能性があることを考慮したものである。
【0135】
さらに、ディジタルカメラ10が正立状態にあるときにフォーカスエリア0が有効フォーカスエリアであれば、フォーカスエリア1または2の閾値Kがフォーカスエリア3または4閾値よりも低く設定される。これは、主要被写体が被写界の中央に位置する場合、この主要被写体は被写界の垂直方向よりもむしろ水平方向に移動することを考慮したものである。
【0136】
このように、主要被写体の移動可能性を考慮して閾値Kの値を変更することによって、主要被写体が移動したかどうかの判別精度が向上し、フォーカスを主要被写体に確実に合わせることが可能となる。
【0137】
なお、この実施例では、フォーカス調整にあたってフォーカスレンズ12のみを光軸方向に移動させるようにしているが、これに代えて、イメージセンサ16のみ、あるいはフォーカスレンズ12およびイメージセンサ16の両方を光軸方向に移動させるようにしてもよい。
【0138】
また、この実施例では、シーン選択キー48の操作に応じて被写界を選択するようにしているが、被写界は自動で判別するようにしてもよい。
【0139】
さらに、この実施例の傾斜センサ46は正立状態,右90°傾斜状態および左90°傾斜状態のいずれかしか判別できないが、さらに高精度のものを用いるようにしてもよい。そうすれば、被写界の中心から放射状に延びる無数のフォーカスエリアを被写界に配置することで、閾値C[0]〜C[4]が示す数値の割り当てを小刻みに回転させることが可能となる。
【図面の簡単な説明】
【図1】この発明の一実施例を示すブロック図である。
【図2】画面上に形成されたフォーカスエリア0〜4および中央エリアの分布状態の一例を示す図解図である。
【図3】(A)はポートレートシーンが選択されたときの閾値C[0]〜C[4]の設定状態の一例を示す図解図であり、(B)はポートレートシーンが選択されたときの閾値C[0]〜C[4]の設定状態の他の一例を示す図解図であり、(C)はポートレートシーンが選択されたときの閾値C[0]〜C[4]の設定状態のその他の一例を示す図解図である。
【図4】(A)はスポーツシーンが選択されたときの閾値C[0]〜C[4]の設定状態の一例を示す図解図であり、(B)はスポーツシーンが選択されたときの閾値C[0]〜C[4]の設定状態の他の一例を示す図解図であり、(C)はスポーツシーンが選択されたときの閾値C[0]〜C[4]の設定状態のその他の一例を示す図解図である。
【図5】(A)は風景シーン,夕景シーンまたは夜景シーンが選択されたときの閾値C[0]〜C[4]の設定状態の一例を示す図解図であり、(B)は風景シーン,夕景シーンまたは夜景シーンが選択されたときの閾値C[0]〜C[4]の設定状態の他の一例を示す図解図であり、(C)は風景シーン,夕景シーンまたは夜景シーンが選択されたときの閾値C[0]〜C[4]の設定状態のその他の一例を示す図解図である。
【図6】(A)はデフォルトシーンが選択されたときの閾値C[0]〜C[4]の設定状態の一例を示す図解図であり、(B)はデフォルトシーンが選択されたときの閾値C[0]〜C[4]の設定状態の他の一例を示す図解図であり、(C)はデフォルトシーンが選択されたときの閾値C[0]〜C[4]の設定状態のその他の一例を示す図解図である。
【図7】(A)ポートレートシーンが選択された状態で撮影される被写界の一例を示す図解図であり、(B)はポートレートシーンが選択された状態で撮影される被写界の他の一例を示す図解図である。
【図8】スポーツシーンが選択された状態で撮影される被写界の一例を示す図解図である。
【図9】風景モード,夕景モードまたは夜景シーンが選択された状態で撮影される被写界の一例を示す図解図である。
【図10】(A)は主要被写体の追尾動作の一例を示す図解図であり、(B)は主要被写体の追尾動作の他の一例を示す図解図である。
【図11】(A)は主要被写体の追尾動作のその他の一例を示す図解図であり、(B)は主要被写体の追尾動作のさらにその他の一例を示す図解図である。
【図12】(A)は主要被写体の追尾動作の他の一例を示す図解図であり、(B)は主要被写体の追尾動作のその他の一例を示す図解図である。
【図13】(A)は主要被写体を追尾する一連の動作の一部を示す図解図であり、(B)は主要被写体を追尾する一連の動作の他の一部を示す図解図であり、(C)は主要被写体を追尾する一連の動作のその他の一部を示す図解図である。
【図14】図1実施例の動作の一部を示すフロー図である。
【図15】図1実施例の動作の他の一部を示すフロー図である。
【図16】図1実施例の動作のその他の一部を示すフロー図である。
【図17】図1実施例の動作のさらにその他の一部を示すフロー図である。
【図18】図1実施例の動作の他の一部を示すフロー図である。
【図19】図1実施例の動作のその他の一部を示すフロー図である。
【図20】図1実施例の動作のさらにその他の一部を示すフロー図である。
【図21】図1実施例の動作の他の一部を示すフロー図である。
【図22】図1実施例の動作のその他の一部を示すフロー図である。
【図23】図1実施例の動作のさらにその他の一部を示すフロー図である。
【図24】図1実施例の動作の他の一部を示すフロー図である。
【図25】図1実施例の動作のその他の一部を示すフロー図である。
【図26】図1実施例の動作のさらにその他の一部を示すフロー図である。
【図27】図1実施例の動作の他の一部を示すフロー図である。
【図28】図1実施例の動作のその他の一部を示すフロー図である。
【図29】図1実施例の動作のさらにその他の一部を示すフロー図である。
【図30】図1実施例の動作の他の一部を示すフロー図である。
【図31】図1実施例の動作のその他の一部を示すフロー図である。
【図32】図1実施例の動作のさらにその他の一部を示すフロー図である。
【符号の説明】
10…ディジタルカメラ
12…フォーカスレンズ
14…絞り機構
24…CPU
42…AE/AF評価回路
44…傾斜センサ
48…シーン選択キー[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an autofocus camera, and more particularly to an autofocus camera that adjusts the focus with reference to any one of a plurality of focus areas assigned to an object scene.
[0002]
[Prior art]
In this type of conventional autofocus camera, so-called hill-climbing AF is performed for each of a plurality of focus areas assigned to the object scene, and the in-focus position is the most among the focus areas where the maximum focus evaluation value exceeds the threshold value. Some have specified a focus area on the near side, and set a focus lens at the in-focus position of the specified focus area.
[0003]
[Problems to be solved by the invention]
However, since the threshold value is fixed in the prior art, there is a possibility that the focus may be adjusted based on a focus area where there is no main subject depending on the posture of the camera.
[0004]
Therefore, a main object of the present invention is to provide an autofocus camera capable of accurately adjusting the focus regardless of the posture of the camera.
[0005]
[Means for Solving the Problems]
An autofocus camera according to the present invention has a detection means for detecting a plurality of maximum high-frequency component values respectively corresponding to a plurality of focus areas arranged radially in the scene with respect to the center of the scene, and detects a camera posture Allocating means for allocating a plurality of threshold values to a plurality of focus areas so that an allocation destination rotates according to a detection result of the detecting means, and allocating a plurality of maximum high-frequency component values detected by the detecting means by the allocating means A comparison means for comparing with each of a plurality of threshold values, exceeding a comparison destination threshold value by the comparison means, and The focus area where the focus lens position with the maximum focus evaluation value is closest is the effective focus area. Specific means to identify, and identified by the specific means Effectiveness Adjustment means for adjusting the focus with reference to the focus area is provided.
[0006]
[Action]
The plurality of focus areas are arranged radially in the field with the center of the field as a reference. The detecting means detects a plurality of maximum high frequency component values respectively corresponding to the plurality of focus areas. Further, the camera posture is detected by the detection means. The plurality of threshold values are respectively assigned to the plurality of focus areas by the assigning unit so that the assignment destination rotates according to the detection result of the detecting unit. The comparison means compares the plurality of maximum high-frequency component values detected by the detection means with the plurality of threshold values assigned by the assignment means. The specifying means exceeds the comparison target threshold value by the comparing means, and The focus area where the focus lens position with the maximum focus evaluation value is closest is the effective focus area. Identify. The focus was specified by a specific means Effectiveness Adjustment is performed by the adjusting means with reference to the focus area.
[0007]
Assign multiple thresholds based on camera posture Rotate Thus, the focus can be accurately adjusted regardless of the posture of the camera.
[0008]
Preferably, the detection unit detects the posture of the camera when the focus adjustment is instructed. As a result, it is not necessary to always detect the camera posture, and the processing burden can be reduced.
[0010]
More preferably, the plurality of focus areas are arranged in a predetermined number in the vertical direction and in the horizontal direction, and the detection unit determines whether the camera posture is in an upright state or a 90 ° tilt state, allocation The means rotates the assignment destinations of the plurality of thresholds by 90 °. By arranging a predetermined number of the plurality of focus areas in the vertical direction and the horizontal direction, the threshold value can be accurately assigned even if the detection means can determine only the upright state and the 90 ° tilt state.
[0011]
Preferably, the numerical value indicated by each of the plurality of threshold values is set to any of a plurality of scenes having a predetermined field setting. Is set It is changed by the changing means according to the determination result of the determining means for determining whether or not. By this, the object scene Setting The focus can be adjusted accurately according to the condition.
[0012]
【The invention's effect】
According to the present invention, the assignment destinations of a plurality of threshold values are based on the camera posture. Rotate Therefore, the focus can be accurately adjusted regardless of the posture of the camera.
[0013]
The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.
[0014]
【Example】
Referring to FIG. 1, a
[0015]
When the
[0016]
The CSD /
[0017]
Of the YUV data generated by the
[0018]
Specifically, as shown in FIG. 2, the AE /
[0019]
The
[0020]
When the
[0021]
Subsequently, the luminance evaluation values Iy [0] to Iy [255] output from the AE /
[0022]
In the total thinning readout, as described above, the entire light receiving surface of the
[0023]
Further, thresholds C [0] to C [4] assigned to the
[0024]
The setting states of the thresholds C [0] to C [4] when “portrait scene” is selected are shown in FIGS. In the upright state shown in FIG. 3A, the threshold THa is set as the threshold C [0], the threshold THb is set as the thresholds C [1], C [2], and C [4], and the threshold THd is It is set as the threshold value C [3]. In the left 90 ° tilt state shown in FIG. 3B, the threshold value THa is set as the threshold value C [0], the threshold value THb is set as the threshold values C [2], C [3], and C [4], and the threshold value THd is set as the threshold value C [1]. In the 90 ° right tilt state shown in FIG. 3C, the threshold THa is set as the threshold C [0], the threshold THb is set as the thresholds C [1], C [3], and C [4], and the threshold THd is set as the threshold value C [2].
[0025]
FIGS. 4A to 4C show the setting states of the thresholds C [0] to C [4] when “sport scene” is selected. In the upright state shown in FIG. 4A, the threshold value THa is set as the threshold value C [0], the threshold value THb is set as the threshold values C [1], C [2], and C [4], and the threshold value THc is set. It is set as the threshold value C [3]. 4B, the threshold THa is set as the threshold C [0], the threshold THb is set as the thresholds C [2], C [3], and C [4]. THc is set as the threshold value C [1]. 4C, the threshold THa is set as the threshold C [0], the threshold THb is set as the thresholds C [1], C [3], and C [4]. THc is set as the threshold value C [2].
[0026]
FIGS. 5A to 5C show the setting states of the thresholds C [0] to C [4] when “landscape scene”, “evening scene” or “night scene” is selected. In the upright state shown in FIG. 5A, the threshold value THa is set as the threshold value C [0], the threshold value THb is set as the threshold values C [1] and C [2], and the threshold value THc is set as the threshold value C [4]. Then, the threshold value THd is set as the threshold value C [3]. 5B, the threshold value THa is set as the threshold value C [0], the threshold value THb is set as the threshold values C [3] and C [4], and the threshold value THc is set as the threshold value C [2]. ] And the threshold THd is set as the threshold C [1]. 5C, the threshold THa is set as the threshold C [0], the threshold THb is set as the thresholds C [3] and C [4], and the threshold THc is the threshold C [1]. ] And the threshold value THd is set as the threshold value C [2].
[0027]
FIGS. 6A to 6C show the setting states of the thresholds C [0] to C [4] when “default scene” is selected. In any of the upright state, the left 90 ° inclination state, and the right 90 ° inclination state, the threshold value THa is set as the threshold value C [0], and the threshold value THb is set to the threshold values C [1], C [2], C [3]. And C [4].
[0028]
Note that a relationship of THa <THb <THc <THd is established among the thresholds THa, THb, THc, and THd.
[0029]
When the setting of the thresholds C [0] to C [4] is completed, the
[0030]
The
[0031]
Specifically, among the focus evaluation values Ih [0] to Ih [4] acquired at each lens position, the maximum value is saved as the register values Ih [0] max to Ih [4] max, and the maximum value is The obtained position information fpos of the
[0032]
The saved register values Ih [0] max to Ih [4] max are compared with the above-described threshold values C [0] to C [4]. Of the focus areas satisfying the condition of Ih [j] max> threshold value C [j], the focus area having the maximum register value f [j], that is, the focus area closest to the in-focus point is set as the effective focus area Zc. It is determined. Further, the subject in the determined effective focus area Zc is focused.
[0033]
For example, when the portrait scene is selected and the person Hm1 is captured as shown in FIG. 7A, when the
[0034]
When the sports scene is selected and the person Hm5 running far and the person Hm6 running near are captured as shown in FIG. 8, when the
[0035]
When a landscape scene, an evening scene, or a night scene is selected, and the
[0036]
When the effective focus area Zc is determined, the
[0037]
Note that when the
[0038]
However, when the effective focus area Zc is determined based on the focus evaluation values Ih [0] to Ih [4], the driving method of the
[0039]
When the half-pressed state of the
[0040]
First, the luminance evaluation values Iy [0] to Iy [255] are captured at a rate of once every several frames by the
[0041]
Whether or not the main subject has moved from the effective focus area Zc to another focus area is determined based on the calculated luminance change rates Ef [0] to Ef [4]. That is, since the luminance changes when the subject moves, the movement determination of the main subject is performed by paying attention to the luminance change rate Ef [j] of the focus area other than the effective focus area Zc.
[0042]
Specifically, if the
[0043]
Referring to FIGS. 10A and 10B, when
[0044]
On the other hand, if any one of the
[0045]
Note that a focus area located on the opposite side of the predicted movement destination area Zt across the
[0046]
11A and 11B, when the
[0047]
On the other hand, referring to FIGS. 12A and 12B, when the
[0048]
For this reason, when the main subject exists on the focus area arranged on the right side or the left side of the object scene, the lower threshold value K is assigned to all three focus areas that are candidates for the predicted destination area Zt. It is done. On the other hand, when the main subject is present on the focus area located above or below the object field, out of the three focus areas that are candidates for the expected destination area Zt, A threshold value K is assigned, and the lower threshold value K is assigned to the remaining two focus areas.
[0049]
In the movement determination, if the luminance change rate Ef [j] of the predicted destination area Zt is equal to or greater than the threshold value K and the luminance change rate Ef [j] of the monitoring target area Zm is less than the threshold value L, the main subject is “moved”. It is determined. On the other hand, the luminance change rate Ef [j] of the predicted destination area Zt is less than the threshold K, or the luminance change rate Ef [j] of the expected destination area Zt and the luminance change rate Ef [ If j] is greater than or equal to threshold value K and threshold value L, respectively, it is determined that the main subject is “no movement”.
[0050]
Note that it is determined that “no movement” when the luminance change rate Ef [j] of the predicted destination area Zt is equal to or greater than the threshold value K and the luminance change rate Ef [j] of the monitoring target area Zm is equal to or greater than the threshold value L. This change seems to be due to panning or tilting.
[0051]
However, when the moving speed of the main subject is slow, the luminance change rate Ef [j] of the predicted destination area does not reach the threshold value K even though the main subject is moving toward the predicted destination area Zt. there is a possibility. Therefore, when it is determined that there is no movement in the movement determination described above, based on the integrated values (register values) S [0] to S [4] of the luminance change rates Ef [0] to Ef [4]. It is determined whether or not the main subject has moved.
[0052]
Specifically, if any one of the
[0053]
Therefore, as shown in FIG. 10A, when the
[0054]
If the threshold value X is less than the threshold value L, the main subject is determined as “no movement”, and if the threshold value X is equal to or greater than the threshold value L, the main subject is determined as “moving”.
[0055]
When the determination result “with movement” is obtained, the effective focus area Zc is changed to the expected movement destination area Zt, and the focus is adjusted on the changed effective focus area Zc. When a determination result of “no movement” is obtained, the setting is maintained in the current effective focus area Zc.
[0056]
When the automatic tracking process as described above is performed, the
[0057]
When the
[0058]
The read raw image signal is input to the
[0059]
An example of the automatic tracking operation will be described with reference to FIGS. 13 (A) to 11 (C). As shown in FIG. 13A, from the state where the main subject Pr exists on the
[0060]
At the time of FIG. 13 (A), the
[0061]
As described above, the predicted movement destination area Zt and the monitoring target area Zm are movement detection areas for detecting whether or not the main subject Pr has moved, and the luminance change rate Ef of the predicted movement destination area Zt and the monitoring target area Zm. Based on [j], it is determined whether or not the main subject Pr has moved. Accordingly, the determination of the presence or absence of movement is not disturbed by the secondary main subject Se.
[0062]
When the
[0063]
Referring to FIG. 14, first, posture detection processing using
[0064]
In the subsequent step S3, AE / AF control processing is executed. Among these, the optimum exposure period Ts and the optimum aperture amount As are obtained by the AE control process. In addition, it is determined whether or not the object field is focus adjustable by AF control processing. If the determination result is affirmative, the effective focus area Zc is determined and the determined effective focus area Zc is determined. Focus on the subject. If focus adjustment is possible, a “Good” determination result is obtained, and if focus adjustment is not possible, an “NG” determination result is obtained.
[0065]
In step S5, the determination result obtained by the AF control process is determined. In step S7, it is determined whether the half-pressed state of the
[0066]
If the determination result is “Good” and the
[0067]
First, in step S9, variables p, q, r and register values S [0] to S [4] are set to “0”. Here, the variable p is a variable for counting the number of frames required until the Y data is stabilized after the
[0068]
In step S11, it is determined whether or not the
[0069]
In step S13, the optimum aperture amount A (= As) obtained in the AE control process is saved as the register value As ′, and in step S15, the
[0070]
In step S19, it is determined whether or not the vertical synchronization signal Vsync is generated. If YES, it is determined in step S25 whether or not the half-pressed state of the
[0071]
If the half-pressed state of the
[0072]
When the variable p reaches the upper limit value P, the process proceeds from step S27 to step S33, and it is determined whether or not the variable q has reached the upper limit value Q (= 3). If the variable q has not yet reached the upper limit Q, the variable q is incremented in step S37, and the process returns to step S19. When the variable q reaches the upper limit Q, the variable q is returned to “0” in step S37, and the luminance change detection process is executed in step S39. The luminance change rates Ef [0] to Ef [4] of the
[0073]
In step S41, a first movement determination process is executed. The predicted movement destination area Zt and the monitoring target area Zm are determined by the first movement determination process, and whether or not the main subject has moved is determined based on the luminance change rate Ef [j] of the predicted movement destination area Zt and the monitoring target area Zm. Is done. In step S43, it is determined whether the determination result of the first movement determination process is “with movement” or “without movement”.
[0074]
When it is determined NO, the second movement determination process is executed in step S45. Through the second movement determination process, the luminance change rates Ef [0] to Ef [4] are integrated, and whether or not the main subject has moved is determined based on the integrated values S [0] to S [4]. In step S47, it is determined whether the determination result of the second movement determination process is “with movement” or “without movement”. If NO is determined here, it is considered that no movement has occurred in the main subject, and the process directly returns to step S19.
[0075]
On the other hand, if YES is determined in any one of steps S43 and S47, AF restart processing is executed in step S49. By the AF restart process, the effective focus area Zc is updated, and focus adjustment is performed in the updated effective focus area Zc. In step S51, the register values S [0] to S [4] are returned to “0”, and in step S53, the current luminance evaluation value Iy [i] is saved as the register value Iy [i] ′. When the saving process is completed, the process returns to step S19.
[0076]
The posture detection process in step S1 shown in FIG. 14 follows a subroutine shown in FIG. First, in steps S61 and S63, the attitude of the
[0077]
The AE / AF control process in step S3 shown in FIG. 14 follows a subroutine shown in FIGS. First, in step S71, 256 luminance evaluation values Iy [0] to Iy [255] are fetched from the AE /
[0078]
When the setting is completed, a first freeze process is performed in step S79. As a result, the driving method of the
[0079]
In step S81, a threshold setting process is executed. Thus, threshold values C [1] to C [4] are individually assigned to the
[0080]
In step S83, the
[0081]
When the vertical synchronization signal Vsync is generated, the variable j is set to “0” in step S91, and the focus evaluation value Ih [j] is fetched from the AE /
[0082]
In step S101, it is determined whether or not the variable j has reached “4”. If the variable j has not reached “4”, the variable j is incremented in step S103, and the process returns to step S93. When the variable j reaches “4”, the focus position information fpos is compared with a predetermined value NEAR corresponding to the closest position in step S105. If fpos <NEAR, the
[0083]
By repeating the processes in steps S89 to S109 as described above, the register values f [0] to f [4] indicate the focus positions of the
[0084]
When the
[0085]
In step S113, register value Ih [0] max to register value Ih [4] max are compared with threshold values C [0] to C [4], respectively, and the condition of Ih [j] max ≧ C [j] is satisfied. Detect focus area. In step S115, it is determined whether a focus area that satisfies the condition is detected, and the process proceeds to one of step S117 and step S127 depending on the determination result.
[0086]
When a focus area satisfying the condition is detected, an optimum register value f [j] is specified in step S117. Specifically, the register value f [j] corresponding to the focus area that satisfies the condition is identified as having the largest numerical value, that is, the closest value. In step S119, the focus area corresponding to the optimum register value f [j] is determined as the effective focus area Zc, and a frame indicating the effective focus area Zc is displayed on the
[0087]
On the other hand, if a focus area that satisfies the condition is not detected, a fixed value is set in the focus position information fpos in step S127. In step S129, the
[0088]
The first freeze process follows a subroutine shown in FIG. First, in step S141, a luminance level y_level is calculated based on the luminance evaluation values Iy [0] to Iy [255] acquired in step S71 described above. The calculation method follows the photometry method that is currently valid. In step S143, a luminance level y_level_max corresponding to the longest exposure period Tmax is calculated based on the optimum exposure period Ts calculated in step S73 described above, the settable longest exposure period Tmax, and the luminance level y_level calculated in step S141. To do. Specifically, the calculation of
[0089]
[Expression 1]
y_level_max = y_level × Tmax / Ts
In step S145, the calculated luminance level y_level_max is compared with the target luminance level y_target. If y_level_max> y_target, the darkness ratio night_ratio is set to “0” in step S157, and if y_level_max ≦ y_target, the darkness ratio night_ratio is calculated in accordance with
[0090]
[Expression 2]
night_ratio =
100 (1-y_level_max / y_target)
When the process of step S147 or S149 is completed, the darkness ratio night_ratio is compared with the threshold value B in step S151. If night_ratio> B, it is considered that the object scene is sufficiently bright, and the process proceeds to step S163. In step S163, an AF exposure period Taf1 suitable for the entire thinning readout which is the current driving method is calculated, and the calculated exposure period Taf1 is set to TG18. When the setting is completed, the routine returns to the upper-level routine.
[0091]
On the other hand, if night_ratio ≦ B, it is considered that the brightness of the object scene is insufficient, and the generation of the vertical synchronization signal Vsync is awaited in step S153. When the vertical synchronization signal Vsync is generated, the
[0092]
The threshold value setting process in step S81 shown in FIG. 17 follows a subroutine shown in FIG. First, the selection state of the
[0093]
If a portrait scene has been selected, “YES” is determined in the step S177, and a first threshold value determining process is executed in a step S181. If a sports scene has been selected, “YES” is determined in the step S179, and a second threshold value determining process is executed in a step S183. If a landscape scene, an evening scene, or a night scene is selected, NO is determined in step S179, and the third threshold value determining process is executed in step S185. When the process of step S181, S183, or S185 is completed, the process returns to the upper layer routine.
[0094]
The first threshold value determination process in step S181 follows a subroutine shown in FIG.
First, the slope coefficient SLP is determined in steps S201 and S205. If the slope coefficient SLP is “1”, the process proceeds from step S201 to step S203, the threshold THa is set as the threshold C [0], and the threshold THb is set as the threshold C [1], C [3] or C [4]. Then, the threshold value THd is set as the threshold value C [2]. If the slope coefficient SLP is “2”, the process proceeds from step S205 to step S207, the threshold value THa is set as the threshold value C [0], and the threshold value THb is set as the threshold value C [2], C [3] or C [4]. Then, the threshold value THd is set as the threshold value C [1].
[0095]
If the slope coefficient SLP is “3”, the process proceeds from step S205 to step S209, the threshold THa is set as the threshold C [0], and the threshold THb is set as the threshold C [1], C [2] or C [4]. Then, the threshold value THd is set as the threshold value C [3]. When the process of step S203, S207 or S209 is completed, the process returns to the upper hierarchy routine.
[0096]
The second threshold value determination process in step S183 follows a subroutine shown in FIG.
First, the slope coefficient SLP is determined in steps S211 and S215. If the slope coefficient SLP is “1”, the process proceeds from step S211 to step S213, the threshold value THa is set as the threshold value C [0], and the threshold value THb is set as the threshold value C [1], C [3] or C [4]. Then, the threshold value THc is set as the threshold value C [2]. If the slope coefficient SLP is “2”, the process proceeds from step S215 to step S217, the threshold THa is set as the threshold C [0], and the threshold THb is set as the threshold C [2], C [3] or C [4]. Then, the threshold value THc is set as the threshold value C [1].
[0097]
If the slope coefficient SLP is “3”, the process proceeds from step S215 to step S219, where the threshold THa is set as the threshold C [0], and the threshold THb is set as the threshold C [1], C [2] or C [4]. Then, the threshold THc is set as the threshold C [3]. When the process of step S213, S217, or S219 is completed, the process returns to the upper hierarchy routine.
[0098]
The third threshold value determination process in step S185 follows a subroutine shown in FIG.
First, the slope coefficient SLP is determined in steps S221 and S225. If the slope coefficient SLP is “1”, the process proceeds from step S221 to step S223, the threshold THa is set as the threshold C [0], the threshold THb is set as the threshold C [3] or C [4], and the threshold C The threshold THc is set as [1], and the threshold THd is set as the threshold C [2]. If the slope coefficient SLP is “2”, the process proceeds from step S215 to step S217, the threshold THa is set as the threshold C [0], the threshold THb is set as the threshold C [3] or C [4], and the threshold C The threshold value THd is set as [1], and the threshold value THc is set as threshold value C [2].
[0099]
If the slope coefficient SLP is “3”, the process proceeds from step S215 to step S219, the threshold THa is set as the threshold C [0], the threshold THb is set as the threshold C [1] or C [2], and the threshold C The threshold value THd is set as [3], and the threshold value THc is set as threshold value C [4]. When the process of step S223, S227, or S229 is completed, the process returns to the upper layer routine.
[0100]
The second freeze process in step S111 shown in FIG. 19 follows a subroutine shown in FIG. First, in step S231, it is determined whether or not the
[0101]
On the other hand, if YES is determined, in step S233, the
[0102]
The luminance change detection process in step S39 shown in FIG. 15 follows a subroutine shown in FIG. First, in step S251, the luminance evaluation values Iy [0] to Iy [255] fetched in step S23 of FIG. 14 and the register values Iy [0] ′ to Iy [255] previously saved in step S31 of FIG. ] ′ And an arithmetic operation according to
[0103]
[Equation 3]
ΔIy [i] = | Iy [i] −Iy [i] ′ |
However, i = 0 to 255
In step S253, the luminance differences ΔIy [0] to Iy [255] and the register values Iy [0] ′ to Iy [255] ′ calculated according to the
[0104]
[Expression 4]
E [i] = (ΔIy [i] / Iy [i] ′) × 100
However, i = 0 to 255
In step S255, the luminance change rate E [i] of the blocks belonging to the
[0105]
The first movement determination process in step S41 shown in FIG. 15 follows a subroutine shown in FIGS. First, in step S261, it is determined whether or not the effective focus area Zc is set to the
[0106]
If the slope coefficient SPL is “3”, the
[0107]
When the process of step S267 or S269 is completed, the process proceeds to step S271, where the luminance change rate Ef [j] and the threshold value K of the predicted destination area Zt are compared with each other. If Ef [j] <K, it is determined in step S279 that the main subject is “no movement”, and the process returns to the upper hierarchy routine. On the other hand, if Ef [j] ≧ K, the monitoring target area Zm is determined in step S273. Specifically, if the
[0108]
In step S275, the luminance change rate Ef [j] in the determined monitoring target area Zm is compared with the threshold value L. If Ef [j] <L, the main subject is determined to be “moved” in step S277. On the other hand, if Ef [j] ≧ L, the main subject is determined as “no movement” in step S279. When the process of step S277 or S279 is completed, the process returns to the upper hierarchy routine.
[0109]
If NO is determined in step S261, a candidate for the predicted destination area Zt is determined in step S281. Specifically, if the
[0110]
In step S285, the slope coefficient SLP is determined. If the slope coefficient SLP is “3”, the process proceeds to step S287, and if the slope SLP is “1” or “2”, the process proceeds to step S289. In step S287, the setting destination of the effective focus area Zc is determined. If the effective focus area Zc is set to the
[0111]
Also in step S289, the effective focus area setting destination is determined in the same manner as in step S287. If the effective focus area Zc is set to the
[0112]
In step S291, the threshold value K of the
[0113]
When the processes of steps S291 to S297 are completed, the processes of steps S299 to S307 are executed. Since these processes are the same as the above-described steps S271 to S279, a duplicate description is omitted.
[0114]
The second movement determination process in step S45 shown in FIG. 15 follows the subroutine shown in FIGS. First, change rate integration processing is performed in step S311. Through the change rate integration process, the luminance change rate Ef [j] of the focus area specified according to the effective focus area Zc and the posture of the
[0115]
In step S313, it is determined whether or not the variable r has reached the upper limit value R. If the variable r has not reached the upper limit value R, the determination result of “no movement” is validated in step S339 and then the upper level routine is entered. Return.
[0116]
When the variable r reaches the upper limit value R, the variable r is returned to “0” in step S315, and it is determined whether or not the
[0117]
If the attitude coefficient SLP is “3”, the
[0118]
On the other hand, if the attitude coefficient SLP is “1” or “2”, the
[0119]
When the integrated value X is determined, the integrated value X is compared with a threshold value M in step S335. If the integrated value X is greater than or equal to the threshold value M, the determination result of “with movement” is validated in step S337, and then the process returns to the upper hierarchy routine. After enabling the determination result of “None”, the process returns to the upper-level routine.
[0120]
The change rate integration process in step S311 follows a subroutine shown in FIGS. First, in step S341, the setting destination of the effective focus area Zc is determined. If the
[0121]
[Equation 5]
S [1] = S [1] + Ef [1]
S [2] = S [2] + Ef [2]
When the slope coefficient SLP is “1” or “2”, the process proceeds to step S347, and the luminance change rate Ef [3] of the
[0122]
[Formula 6]
S [3] = S [3] + Ef [3]
S [4] = S [4] + Ef [4]
When the calculation of
[0123]
If any one of the
[0124]
[Expression 7]
S [0] = S [0] + Ef [0]
When the slope coefficient SLP is “1” or “2”, the setting destination of the effective focus area Zc is determined in step S353. If the
[0125]
The AF restart process in step S49 shown in FIG. 15 follows a subroutine shown in FIG. First, in step S361, the effective focus area Zc is changed to the current expected movement destination area Zt, and a frame indicating the changed effective focus area Zc is displayed on the
[0126]
As can be understood from the above description, when the effective focus area Zc used for focus adjustment is first determined from among the
[0127]
Thus, by changing the assignment destination of the thresholds THa, THb, THc, or THd based on the camera posture, the focus can be accurately adjusted regardless of the camera posture. Further, three
[0128]
Further, the charge corresponding to the optical image of the object scene is periodically read from the entire light receiving surface of the
[0129]
The focus is adjusted based on the electric charge read from the
[0130]
By reading out the electric charge from the central area of the
[0131]
Note that since the speed of focus adjustment is increased, the time for which the freeze image is displayed is short, and the operator is not significantly discomforted. Further, since the specific setting state is validated due to the manual operation of the operator, the monitor display does not transition from the through image to the frozen image at a timing not intended by the operator.
[0132]
When the half-pressed state of the
[0133]
Specifically, when the
[0134]
If the
[0135]
Further, if the
[0136]
In this way, by changing the value of the threshold value K in consideration of the possibility of movement of the main subject, it is possible to improve the accuracy of determining whether or not the main subject has moved, and to focus the main subject reliably. Become.
[0137]
In this embodiment, only the
[0138]
In this embodiment, the scene is selected according to the operation of the
[0139]
Further, the
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of the present invention.
FIG. 2 is an illustrative view showing one example of distribution states of
FIG. 3A is an illustrative view showing one example of setting states of threshold values C [0] to C [4] when a portrait scene is selected, and FIG. 3B is a diagram showing that a portrait scene is selected; FIG. 10 is an illustrative view showing another example of setting states of threshold values C [0] to C [4] when (C) shows threshold values C [0] to C [4] when a portrait scene is selected. It is an illustration figure which shows another example of a setting state.
4A is an illustrative view showing an example of a setting state of threshold values C [0] to C [4] when a sports scene is selected, and FIG. 4B is a diagram when a sports scene is selected. It is an illustration figure which shows another example of the setting state of threshold value C [0] -C [4], (C) is the setting state of threshold value C [0] -C [4] when a sports scene is selected. It is an illustration figure which shows another example.
5A is an illustrative view showing one example of setting states of threshold values C [0] to C [4] when a landscape scene, an evening scene, or a night scene is selected, and FIG. 5B is a landscape scene; , Is an illustrative view showing another example of a setting state of threshold values C [0] to C [4] when an evening scene or a night scene is selected, and (C) is a landscape scene, an evening scene or a night scene selected It is an illustration figure which shows another example of the setting state of threshold value C [0] -C [4] when being done.
6A is an illustrative view showing one example of setting states of threshold values C [0] to C [4] when a default scene is selected, and FIG. 6B is a diagram when a default scene is selected. It is an illustration figure which shows another example of the setting state of threshold value C [0] -C [4], (C) is the setting state of threshold value C [0] -C [4] when a default scene is selected. It is an illustration figure which shows another example.
FIG. 7A is an illustrative view showing an example of an object scene shot with a portrait scene selected, and FIG. 7B shows an object scene shot with a portrait scene selected. It is an illustration figure which shows another example.
FIG. 8 is an illustrative view showing one example of an object scene photographed in a state where a sports scene is selected.
FIG. 9 is an illustrative view showing one example of a scene that is shot in a state in which a landscape mode, an evening scene mode, or a night scene is selected.
FIG. 10A is an illustrative view showing one example of the tracking operation of the main subject, and FIG. 10B is an illustrative view showing another example of the tracking operation of the main subject.
11A is an illustrative view showing another example of the tracking operation of the main subject, and FIG. 11B is an illustrative view showing still another example of the tracking operation of the main subject.
12A is an illustrative view showing another example of the tracking operation of the main subject, and FIG. 12B is an illustrative view showing another example of the tracking operation of the main subject.
FIG. 13A is an illustrative view showing a part of a series of operations for tracking a main subject, and FIG. 13B is an illustrative view showing another part of a series of operations for tracking a main subject; (C) is an illustrative view showing another part of a series of operations for tracking a main subject.
FIG. 14 is a flowchart showing a part of the operation of FIG. 1 embodiment;
15 is a flowchart showing another portion of the operation of the embodiment in FIG. 1; FIG.
FIG. 16 is a flowchart showing still another portion of the operation of FIG. 1 embodiment;
FIG. 17 is a flowchart showing yet another portion of the operation of FIG. 1 embodiment;
FIG. 18 is a flowchart showing another portion of the operation of the embodiment in FIG. 1;
FIG. 19 is a flowchart showing still another portion of the operation of FIG. 1 embodiment;
FIG. 20 is a flowchart showing still another portion of the operation of the embodiment in FIG. 1;
FIG. 21 is a flowchart showing another portion of the operation of the embodiment in FIG. 1;
22 is a flowchart showing still another portion of the operation of FIG. 1 embodiment. FIG.
FIG. 23 is a flowchart showing yet another portion of the operation of the embodiment in FIG. 1;
24 is a flowchart showing another portion of the operation of the embodiment in FIG. 1; FIG.
FIG. 25 is a flowchart showing still another portion of the operation of the embodiment in FIG. 1;
FIG. 26 is a flowchart showing yet another portion of the operation of the embodiment in FIG. 1;
FIG. 27 is a flowchart showing another portion of the operation of the embodiment in FIG. 1;
FIG. 28 is a flowchart showing still another portion of the operation of FIG. 1 embodiment;
FIG. 29 is a flowchart showing yet another portion of the operation of FIG. 1 embodiment;
30 is a flowchart showing another portion of the operation of the embodiment in FIG. 1; FIG.
FIG. 31 is a flowchart showing still another portion of the operation of FIG. 1 embodiment;
32 is a flowchart showing yet another portion of the operation of the embodiment in FIG. 1. FIG.
[Explanation of symbols]
10. Digital camera
12 ... Focus lens
14 ... Aperture mechanism
24 ... CPU
42 ... AE / AF evaluation circuit
44 ... Tilt sensor
48 ... Scene selection key
Claims (4)
カメラ姿勢を検知する検知手段、
前記検知手段の検知結果に応じて割り当て先が回転するように複数の閾値を前記複数のフォーカスエリアにそれぞれ割り当てる割り当て手段、
前記検出手段によって検出された複数の最大高周波成分値を前記割り当て手段によって割り当てられた複数の閾値とそれぞれ比較する比較手段、
前記比較手段による比較先の閾値を上回りかつフォーカス評価値が最大となるフォーカスレンズの位置が最も至近側に存在するフォーカスエリアを有効フォーカスエリアとして特定する特定手段、および
前記特定手段によって特定された前記有効フォーカスエリアを基準としてフォーカスを調整する調整手段を備える、オートフォーカスカメラ。Detecting means for detecting a plurality of maximum high frequency component values respectively corresponding to a plurality of focus areas arranged radially in the object field with reference to the center of the object field;
Detection means for detecting the camera posture;
Assigning means for assigning a plurality of threshold values to the plurality of focus areas, respectively, so that an assignment destination rotates according to a detection result of the detecting means;
Comparing means for comparing a plurality of maximum high-frequency component values detected by the detecting means with a plurality of threshold values assigned by the assigning means;
It said specified by the specifying means, and said specifying means and the focus evaluation value exceeds the threshold value of the comparison target is specified as the effective focus area the focus area is present in the most near side position of the focus lens having a maximum by the comparison means An autofocus camera including an adjustment unit that adjusts the focus with reference to an effective focus area.
前記検知手段は前記カメラ姿勢が正立状態および90°傾斜状態のいずれであるかを判別し、
前記割り当て手段は前記複数の閾値の割り当て先を90°回転させる、請求項1または2記載のオートフォーカスカメラ。The plurality of focus areas are arranged in a predetermined number in the vertical direction and the horizontal direction,
The detection means determines whether the camera posture is an upright state or a 90 ° tilt state,
3. The autofocus camera according to claim 1, wherein the assigning unit rotates the assignment destinations of the plurality of thresholds by 90 °.
前記判別手段の判別結果に応じて前記複数の閾値の各々が示す数値を変更する変更手段をさらに備える、請求項1ないし3のいずれかに記載のオートフォーカスカメラ。A discriminating means for discriminating which of a plurality of predetermined scene settings are set; and a changing means for changing a numerical value indicated by each of the plurality of thresholds according to a discrimination result of the discriminating means. The autofocus camera according to claim 1, further comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003036824A JP3949067B2 (en) | 2003-02-14 | 2003-02-14 | Auto focus camera |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003036824A JP3949067B2 (en) | 2003-02-14 | 2003-02-14 | Auto focus camera |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004246160A JP2004246160A (en) | 2004-09-02 |
| JP3949067B2 true JP3949067B2 (en) | 2007-07-25 |
Family
ID=33021811
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003036824A Expired - Fee Related JP3949067B2 (en) | 2003-02-14 | 2003-02-14 | Auto focus camera |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3949067B2 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4775644B2 (en) * | 2006-06-20 | 2011-09-21 | カシオ計算機株式会社 | Imaging apparatus and program thereof |
| JP4761146B2 (en) | 2006-06-30 | 2011-08-31 | カシオ計算機株式会社 | Imaging apparatus and program thereof |
| KR101336235B1 (en) | 2007-02-05 | 2013-12-03 | 삼성전자주식회사 | Method and apparatus of detecting attitude of digital image processing device using automatic focusing |
| JP6234261B2 (en) * | 2014-02-10 | 2017-11-22 | オリンパス株式会社 | Focus adjustment apparatus and control method |
| JP2016081019A (en) * | 2014-10-22 | 2016-05-16 | 株式会社 日立産業制御ソリューションズ | Focus control device, imaging apparatus, and focus control method |
| CN110830709A (en) * | 2018-08-14 | 2020-02-21 | Oppo广东移动通信有限公司 | Image processing method and device, terminal device and computer readable storage medium |
-
2003
- 2003-02-14 JP JP2003036824A patent/JP3949067B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004246160A (en) | 2004-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4518131B2 (en) | Imaging method and apparatus | |
| US8284300B2 (en) | Electronic camera | |
| JP4819001B2 (en) | Imaging apparatus and method, program, image processing apparatus and method, and program | |
| US8768063B2 (en) | Image processing apparatus, image management apparatus and image management method, and computer program | |
| JP4957943B2 (en) | Imaging apparatus and program thereof | |
| US20100026836A1 (en) | Imaging Apparatus and Imaging Method | |
| EP2148499A2 (en) | Imaging apparatus and method | |
| US7796163B2 (en) | System for and method of taking image based on objective body in a taken image | |
| KR20100012822A (en) | Imaging apparatus and imaging method | |
| JP3949067B2 (en) | Auto focus camera | |
| JP2008054297A (en) | Imaging apparatus, method, and program | |
| JP3949066B2 (en) | Auto focus camera | |
| JP3949000B2 (en) | Auto focus camera | |
| JP2011223378A (en) | Electronic camera | |
| JP2004248050A (en) | Video camera | |
| JP5421682B2 (en) | Imaging apparatus and method | |
| JP3738231B2 (en) | camera | |
| JP3588353B2 (en) | camera | |
| JP3754390B2 (en) | camera | |
| JP4275001B2 (en) | Electronic camera | |
| JP3754391B2 (en) | camera | |
| KR101442152B1 (en) | User adaptive image capturing device and control method thereof | |
| JP5065165B2 (en) | Electronic camera | |
| JP2009053462A (en) | Video camera | |
| JP2009053469A (en) | Video camera |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060714 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060725 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060920 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20061024 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061222 |
|
| A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20070219 |
|
| 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: 20070320 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070417 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110427 Year of fee payment: 4 |
|
| LAPS | Cancellation because of no payment of annual fees |