JP2009086030A - Imaging apparatus, method and program - Google Patents

Imaging apparatus, method and program Download PDF

Info

Publication number
JP2009086030A
JP2009086030A JP2007252247A JP2007252247A JP2009086030A JP 2009086030 A JP2009086030 A JP 2009086030A JP 2007252247 A JP2007252247 A JP 2007252247A JP 2007252247 A JP2007252247 A JP 2007252247A JP 2009086030 A JP2009086030 A JP 2009086030A
Authority
JP
Japan
Prior art keywords
focus
peak
unit
imaging
main subject
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007252247A
Other languages
Japanese (ja)
Other versions
JP4997043B2 (en
Inventor
Koichi Tanaka
康一 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2007252247A priority Critical patent/JP4997043B2/en
Publication of JP2009086030A publication Critical patent/JP2009086030A/en
Application granted granted Critical
Publication of JP4997043B2 publication Critical patent/JP4997043B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To acquire an image in a focused state intended by a photographer even if the focused results by automatic focusing is not proper. <P>SOLUTION: A focusing position detection part 150 finds a focusing curve showing relationship between respective lens positions and a focusing evaluated value based on a calculated focusing evaluated value. A peak position detection part 2 detects the position of a maximal point (peak) of the focusing curve. A number-of-peaks detection part 1 counts the number of peaks and determines whether a plurality of peaks exist. When the plurality of peaks exist, a condition for focus bracket photographing is set according to the state of the peak. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、自動合焦機能を有する撮影装置に関する。   The present invention relates to a photographing apparatus having an automatic focusing function.

特許文献1では、撮影範囲中に存在する複数の被写体をそれぞれ複数回合焦させるためにレンズ群又はCCDの撮像面の複数の移動位置が測定可能なフォーカス位置情報測定手段を設け、測定手段により測定された各フォーカス位置にレンズ群又はCCDの撮像面を順次移動させるAFモータと、レンズ群又はCCD撮像面が各フォーカス位置に移動するごとに撮影する撮影手段とを備える。   In Patent Document 1, a focus position information measuring unit capable of measuring a plurality of moving positions of a lens group or an imaging surface of a CCD in order to focus a plurality of subjects existing in a shooting range a plurality of times is measured by the measuring unit. An AF motor for sequentially moving the lens group or the CCD image pickup surface to each focus position, and a photographing means for photographing each time the lens group or the CCD image pickup surface moves to each focus position.

特許文献2では、多点測距手段と、自動焦点調節手段と、連続撮影手段とを備えたカメラにおいて、上記多点測距手段により測定された複数の測距データの内、2以上の各測距データに基づいて上記自動焦点調節手段および上記連続撮影手段を駆動してブラケット撮影を実行するブラケット制御手段を備える。
特開2001−116979号公報 特開平7−318785号公報
In Patent Document 2, in a camera provided with a multipoint distance measuring means, an automatic focus adjusting means, and a continuous photographing means, two or more of the plurality of distance measurement data measured by the multipoint distance measuring means. There is provided a bracket control means for executing bracket photographing by driving the automatic focus adjusting means and the continuous photographing means based on the distance measurement data.
JP 2001-116979 A JP 7-318785 A

デジタルカメラなどの自動合焦機能の備わった撮像装置において、ある被写体を撮影する際、合焦を評価する画像領域内に複数の被写体が写っていた場合、撮影者がフォーカスを合わせたい主要被写体にフォーカスが合いにくい場合がある。このように自動合焦が撮影者の意図した通りに動作しにくいシーンでの撮影時に、得られた画像が適切な合焦状態になっておらず、撮影者は不快な思いをすることがあった。   In an imaging device equipped with an automatic focusing function, such as a digital camera, when shooting a subject, if there are multiple subjects in the image area to be evaluated for focusing, the main subject that the photographer wants to focus on It may be difficult to focus. Thus, when shooting in a scene where autofocus is difficult to operate as intended by the photographer, the obtained image is not in the proper focus state, and the photographer may feel uncomfortable. It was.

この点、特許文献1の発明では、複数の被写体のそれぞれにフォーカスを合わせ、それぞれのフォーカス位置で撮影を行うことで、撮影者が意図した合焦状態の画像を得ることができるとする。しかしながら、合焦を評価する画像領域内に、複数の被写体が混在する状況においては、それぞれの被写体の高周波成分がお互いに影響しあうため、自動合焦の結果得られた合焦位置が必ずしも最適であるとは限らない。   In this regard, in the invention of Patent Document 1, it is assumed that an in-focus image intended by the photographer can be obtained by focusing on each of a plurality of subjects and shooting at each focus position. However, in a situation where multiple subjects are present in the image area where focus is evaluated, the high-frequency components of each subject affect each other, so the focus position obtained as a result of automatic focusing is not necessarily optimal. Not necessarily.

本発明は上記の問題点を鑑みて創案されたものであり、自動合焦による合焦結果が適切でない場合においても撮影者の意図する合焦状態にある画像を取得することを目的とする。   The present invention has been made in view of the above-described problems, and an object of the present invention is to obtain an image in a focused state intended by a photographer even when a focusing result by automatic focusing is not appropriate.

本発明に係る撮像装置は、被写体像を所定の結像面上に結像させる撮像光学系と、撮像光学系を駆動して焦点位置を変化させる駆動部と、結像面に結像された被写体像を光電変換して画像信号を出力する撮像部と、出力された画像信号に基づいて画像データを生成する生成部と、撮影準備操作に応じて駆動部により撮像光学系の焦点位置を所定の位置に変化させるごとに生成される画像データから合焦評価値を算出する合焦評価値算出部と、合焦評価値算出部の算出した合焦評価値から極大値を検出する極大値検出部と、極大値に応じて主要被写体の合焦位置を検出する合焦位置検出部と、撮影操作に応じて駆動部および撮像部を制御し、撮像光学系の焦点位置を変化させながら画像データの生成を繰り返すフォーカスブラケット撮影を実施する撮像制御部と、極大値検出部が検出した極大値の個数を検出するピーク数検出部と、ピーク数検出部が複数の極大値を検出した場合、複数の極大値の分布状況に応じてフォーカスブラケット撮影実施条件を設定する条件設定部と、を備え、撮像制御部は、条件設定部の設定したフォーカスブラケット撮影実施条件に従い、少なくとも主要被写体の合焦位置の近傍でフォーカスブラケット撮影を実施する。   An imaging apparatus according to the present invention forms an image on an imaging plane, an imaging optical system that forms a subject image on a predetermined imaging plane, a drive unit that drives the imaging optical system to change a focal position, and An imaging unit that photoelectrically converts a subject image and outputs an image signal; a generation unit that generates image data based on the output image signal; and a drive unit that determines a focal position of the imaging optical system according to a shooting preparation operation A focus evaluation value calculation unit that calculates a focus evaluation value from image data generated each time the position is changed to a position, and a maximum value detection that detects a maximum value from the focus evaluation value calculated by the focus evaluation value calculation unit Image data while controlling the focus position of the imaging optical system by controlling the driving position and the imaging unit in accordance with the shooting operation. Focus bracket shooting is repeated The imaging control unit, the peak number detection unit for detecting the number of maximum values detected by the maximum value detection unit, and the peak number detection unit when detecting a plurality of maximum values, depending on the distribution state of the plurality of maximum values A condition setting unit for setting a focus bracket shooting execution condition, and the imaging control unit performs focus bracket shooting at least near the focus position of the main subject according to the focus bracket shooting execution condition set by the condition setting unit .

この発明によると、合焦評価値の極大値が複数ある場合、複数の被写体の存在により、主要被写体の合焦位置を示す極大点が、本来の合焦位置からずれていると想定される。そこで本発明は、この場合、少なくとも主要被写体の合焦位置の近傍でフォーカスブラケット撮影を実施する。これにより、主要被写体にピンぼけのない、最適な合焦状態にある画像を得ることができる。   According to the present invention, when there are a plurality of maximum values of the focus evaluation value, it is assumed that the maximum point indicating the focus position of the main subject is deviated from the original focus position due to the presence of a plurality of subjects. Therefore, in this case, the present invention performs focus bracket photographing at least near the focus position of the main subject. As a result, it is possible to obtain an image in an optimally focused state in which the main subject is not out of focus.

極大値に対応する撮像光学系の焦点位置であるピーク位置を検出するピーク位置検出部をさらに備えてもよい。   You may further provide the peak position detection part which detects the peak position which is a focus position of the imaging optical system corresponding to local maximum.

主要被写体の合焦位置と主要被写体の合焦位置以外のピーク位置との間の距離を算出するピーク間距離算出部をさらに備え、条件設定部は、ピーク間距離算出部の算出した距離に応じてフォーカスブラケット撮影実施条件を設定してもよい。   It further includes a peak-to-peak distance calculation unit that calculates a distance between the focus position of the main subject and a peak position other than the focus position of the main subject, and the condition setting unit is responsive to the distance calculated by the peak-to-peak distance calculation unit. The focus bracket shooting execution condition may be set.

主要被写体の合焦位置と他のピーク位置との間の距離が短いと、それだけ、主要被写体の合焦位置を示す極大点が、本来の合焦位置からずれると想定される。そこで、その距離に応じて、適切なフォーカスブラケット撮影実施条件をする。これにより、主要被写体にピンぼけのない、最適な合焦状態にある画像を得ることができる。   As the distance between the focus position of the main subject and the other peak positions is short, the local maximum point indicating the focus position of the main subject is assumed to deviate from the original focus position. Therefore, an appropriate focus bracket shooting execution condition is set according to the distance. As a result, it is possible to obtain an image in an optimally focused state in which the main subject is not out of focus.

条件設定部は、距離に応じて撮像光学系の焦点位置の駆動範囲および生成部の出力する画像データの枚数のうち少なくとも1つを設定してもよい。   The condition setting unit may set at least one of the driving range of the focal position of the imaging optical system and the number of image data output from the generation unit according to the distance.

条件設定部は、距離が所定の閾値を上回る場合、主要被写体の合焦位置のみを撮像光学系の駆動範囲に設定してもよい。   The condition setting unit may set only the focus position of the main subject as the driving range of the imaging optical system when the distance exceeds a predetermined threshold.

つまり、当該距離が長ければ、主要被写体の合焦位置の本来の合焦位置からのずれは小さく、主要被写体の合焦位置だけで撮像を実施しても、ピンボケのない画像が得られるから、無駄なフォーカスブラケット撮影を防げる。   In other words, if the distance is long, the shift of the focus position of the main subject from the original focus position is small, and even if imaging is performed only at the focus position of the main subject, an image without blur is obtained. Prevent unnecessary focus bracket shooting.

条件設定部は、主要被写体の合焦位置と主要被写体の合焦位置以外のピーク位置との相対的位置関係を検出するピーク相対位置検出部をさらに備え、ピーク相対位置検出部の検出した相対的位置関係に応じてフォーカスブラケット撮影実施条件を設定してもよい。   The condition setting unit further includes a peak relative position detection unit that detects a relative positional relationship between a focus position of the main subject and a peak position other than the focus position of the main subject, and the relative detection detected by the peak relative position detection unit The focus bracket shooting execution condition may be set according to the positional relationship.

条件設定部は、主要被写体の合焦位置が主要被写体の合焦位置以外のピーク位置よりも至近側に存在する場合、撮像光学系の焦点位置の駆動範囲を主要被写体の合焦位置よりも至近側に設定するとよい。   If the focus position of the main subject is closer to the peak position than the focus position of the main subject, the condition setting unit sets the drive range of the focal position of the imaging optical system closer to the focus position of the main subject. Set to the side.

主要被写体の合焦位置が主要被写体の合焦位置以外のピーク位置よりも至近側に存在する場合、主要被写体の合焦位置は、本来の合焦位置から無限遠側にずれていると想定される。そこで本発明は、フォーカスブラケット撮影の駆動範囲を主要被写体の合焦位置よりも至近側に設定する。これにより、主要被写体にピンぼけのない、最適な合焦状態にある画像を得ることができる。また、適切なフォーカスブラケット条件を設定し、無駄に撮影回数が増えることを防げる。   If the focus position of the main subject is closer to the peak position than the focus position of the main subject, the focus position of the main subject is assumed to be shifted from the original focus position to the infinity side. The Therefore, the present invention sets the drive range of focus bracket shooting closer to the focus position of the main subject. As a result, it is possible to obtain an image in an optimally focused state in which the main subject is not out of focus. In addition, an appropriate focus bracket condition can be set to prevent an unnecessary increase in the number of shootings.

条件設定部は、主要被写体の合焦位置が主要被写体の合焦位置以外のピーク位置よりも無限遠側に存在する場合、撮像光学系の焦点位置の駆動範囲を主要被写体の合焦位置よりも無限遠側に設定するとよい。   When the focus position of the main subject is on the infinity side of the peak position other than the focus position of the main subject, the condition setting unit sets the drive range of the focal position of the imaging optical system to be greater than the focus position of the main subject. It should be set to infinity.

主要被写体の合焦位置が主要被写体の合焦位置以外のピーク位置よりも無限遠側に存在する場合、主要被写体の合焦位置は、本来の合焦位置から至近側にずれていると想定される。そこで本発明は、フォーカスブラケット撮影の駆動範囲を主要被写体の合焦位置よりも無限遠側に設定する。これにより、主要被写体にピンぼけのない、最適な合焦状態にある画像を得ることができる。また、適切なフォーカスブラケット条件を設定し、無駄に撮影回数が増えることを防げる。     When the focus position of the main subject is on the infinity side of the peak position other than the focus position of the main subject, it is assumed that the focus position of the main subject is shifted from the original focus position to the closest side. The Therefore, the present invention sets the drive range of focus bracket shooting to the infinity side with respect to the focus position of the main subject. As a result, it is possible to obtain an image in an optimally focused state in which the main subject is not out of focus. In addition, an appropriate focus bracket condition can be set to prevent an unnecessary increase in the number of shootings.

主要被写体の合焦位置以外のピーク位置近傍の合焦曲線の幅を算出するピーク幅算出部をさらに備え、条件設定部は、ピーク幅算出部の算出した幅に応じてフォーカスブラケット撮影実施条件を設定するとよい。   It further includes a peak width calculation unit that calculates the width of the focus curve near the peak position other than the focus position of the main subject, and the condition setting unit sets the focus bracket shooting execution condition according to the width calculated by the peak width calculation unit. It is good to set.

主要被写体の合焦位置以外のピーク位置近傍の合焦曲線の幅が大きいと、それだけ主要被写体の合焦位置のずれに与える影響が大きい。そこで本発明は、当該幅に応じてフォーカスブラケット撮影実施条件を設定する。これにより、主要被写体にピンぼけのない、最適な合焦状態にある画像を得ることができる。また、適切なフォーカスブラケット条件を設定し、無駄に撮影回数が増えることを防げる。   If the width of the focus curve near the peak position other than the focus position of the main subject is large, the influence on the shift of the focus position of the main subject is large. Therefore, the present invention sets the focus bracket shooting execution condition according to the width. As a result, it is possible to obtain an image in an optimally focused state in which the main subject is not out of focus. In addition, an appropriate focus bracket condition can be set to prevent an unnecessary increase in the number of shootings.

条件設定部は、幅に応じて撮像光学系の焦点位置の駆動範囲および生成部の出力する画像データの枚数のうち少なくとも1つを設定する。   The condition setting unit sets at least one of the driving range of the focal position of the imaging optical system and the number of image data output from the generation unit according to the width.

被写界深度を算出する被写界深度算出部をさらに備え、条件設定部は、被写界深度算出部の算出した被写界深度に応じてフォーカスブラケット撮影実施条件を設定するとよい。   A depth-of-field calculating unit that calculates the depth of field may be further provided, and the condition setting unit may set the focus bracket shooting execution condition according to the depth of field calculated by the depth-of-field calculating unit.

つまり、被写界深度が浅い場合にはフォーカスブラケット撮影の駆動範囲を狭めることで、撮影回数と画像処理時間を縮減できる。   That is, when the depth of field is shallow, the number of times of photographing and the image processing time can be reduced by narrowing the drive range of focus bracket photographing.

本発明に係る撮像方法は、撮影準備操作に応じて、被写体像を所定の結像面上に結像させる撮像光学系の焦点位置を所定の位置に変化させるごとに、結像面に結像された被写体像を光電変換して画像信号を出力するステップと、出力された画像信号に基づいて画像データを生成するステップと、画像データから合焦評価値を算出するステップと、合焦評価値から極大値を検出するステップと、極大値に応じて主要被写体の合焦位置を検出するステップと、検出した極大値の個数を検出するステップと、複数の極大値が検出された場合、複数の極大値の分布状況に応じてフォーカスブラケット撮影実施条件を設定するステップと、撮影操作に応じて、設定したフォーカスブラケット撮影実施条件に従い、少なくとも主要被写体の合焦位置の近傍でフォーカスブラケット撮影を実施するステップと、を含む。   The imaging method according to the present invention forms an image on the imaging surface every time the focus position of the imaging optical system that forms the subject image on the predetermined imaging surface is changed to a predetermined position in accordance with the shooting preparation operation. A step of photoelectrically converting the image of the subject image and outputting an image signal; a step of generating image data based on the output image signal; a step of calculating a focus evaluation value from the image data; and a focus evaluation value Detecting the local maximum from the step, detecting the focus position of the main subject according to the local maximum, detecting the number of detected local maximums, and if a plurality of local maximums are detected, Steps for setting focus bracket shooting conditions according to the distribution of local maximum values, and at least near the focus position of the main subject according to the focus bracket shooting conditions set according to the shooting operation Comprising a step of performing the focus bracketing, and.

上記の撮像方法をコンピュータに実行させるための撮像プログラムも本発明に含まれる。   An imaging program for causing a computer to execute the above imaging method is also included in the present invention.

合焦評価値の極大値が複数ある場合、複数の被写体の存在により、主要被写体の合焦位置を示す極大点が、本来の合焦位置からずれていると想定される。そこで、本発明では、この場合、少なくとも主要被写体の合焦位置の近傍でフォーカスブラケット撮影を実施する。これにより、主要被写体にピンぼけのない、最適な合焦状態にある画像を得ることができる。   When there are a plurality of local maximum evaluation values, it is assumed that the local maximum point indicating the focus position of the main subject is deviated from the original focus position due to the presence of a plurality of subjects. Therefore, according to the present invention, in this case, focus bracket shooting is performed at least near the focus position of the main subject. As a result, it is possible to obtain an image in an optimally focused state in which the main subject is not out of focus.

<第1実施形態>
図1はデジタルカメラの構成を示したブロック図である。デジタルカメラ10は、レンズ12、絞り13、CCD撮像素子14、アナログフロントエンド(AFE)16、垂直駆動回路(Vドライバ)136、デジタル信号処理部20、メインメモリ22、CPU100を備えている。CPU100は、このカメラ10全体の制御を行なう。
<First Embodiment>
FIG. 1 is a block diagram showing the configuration of a digital camera. The digital camera 10 includes a lens 12, an aperture 13, a CCD image pickup device 14, an analog front end (AFE) 16, a vertical drive circuit (V driver) 136, a digital signal processing unit 20, a main memory 22, and a CPU 100. The CPU 100 controls the entire camera 10.

CCD撮像素子14から出力された被写体のアナログ画像信号は、アナログフロントエンド(AFE)16に送られる。AFE16は、CCD撮像素子14の出力信号を後段のデジタル信号処理部20での処理に適した信号形態に変換する前処理を行う信号処理部であり、相関二重サンプリング(CDS)処理、色分離、ゲイン調整などを行うとともに、アナログ画像信号をデジタル信号に変換して、デジタル信号処理部20に出力する。  The analog image signal of the subject output from the CCD image sensor 14 is sent to an analog front end (AFE) 16. The AFE 16 is a signal processing unit that performs preprocessing for converting the output signal of the CCD image pickup device 14 into a signal format suitable for processing in the subsequent digital signal processing unit 20, and includes correlated double sampling (CDS) processing and color separation. In addition to performing gain adjustment and the like, the analog image signal is converted into a digital signal and output to the digital signal processing unit 20.

CCD撮像素子14の詳細な構造は図示しないが、CCD撮像素子14は、入射光量に応じた電荷量の信号電荷を蓄積する多数のフォトダイオード(光電変換素子)が2次元的に配列されるとともに、各フォトダイオードに蓄積された信号電荷を垂直方向に転送する垂直転送CCD(V−CCD)と、垂直転送CCDで転送された信号電荷を1ラインごとに水平方向に転送する水平転送CCD(H−CCD)と、を備えている。また、各フォトダイオードに対応して赤(R)、緑(G)、青(B)の原色カラーフィルタが所定の配列構造(ベイヤー、Gストライプなど)で配置されている。   Although the detailed structure of the CCD image sensor 14 is not shown, the CCD image sensor 14 has a two-dimensional array of a large number of photodiodes (photoelectric conversion elements) that accumulate signal charges having a charge amount corresponding to the amount of incident light. A vertical transfer CCD (V-CCD) for transferring the signal charges accumulated in each photodiode in the vertical direction, and a horizontal transfer CCD (H for transferring the signal charges transferred by the vertical transfer CCD for each line in the horizontal direction. -CCD). Also, red (R), green (G), and blue (B) primary color filters are arranged in a predetermined arrangement structure (Bayer, G stripe, etc.) corresponding to each photodiode.

垂直駆動回路136は、CCD14を駆動するための垂直同期信号VD,高速掃き出しパルスPを含む駆動信号を出力する。垂直駆動回路136には、CPU100からの制御信号が入力され、この制御信号に応じて駆動する。   The vertical drive circuit 136 outputs a drive signal including a vertical synchronization signal VD for driving the CCD 14 and a high-speed sweep pulse P. A control signal from the CPU 100 is input to the vertical drive circuit 136 and is driven according to the control signal.

レンズ12とCCD14との間には、赤外線カットフィルタ18が配置されている。この赤外線カットフィルタ18は、CCD14への赤外線の入射を遮断する。   An infrared cut filter 18 is disposed between the lens 12 and the CCD 14. The infrared cut filter 18 blocks infrared rays from entering the CCD 14.

更に赤外線カットフィルタ18の後方には、モアレの発生を防止するために光の高周波成分を除去する光学ローパスフィルタ19が配置されている。   Further, an optical low-pass filter 19 for removing high-frequency components of light is disposed behind the infrared cut filter 18 in order to prevent the occurrence of moire.

レンズ12は、ズーミングや焦点調整を行うレンズ駆動回路111により駆動される。絞り13は、絞り調整を行う絞り駆動回路112により開閉駆動される。   The lens 12 is driven by a lens driving circuit 111 that performs zooming and focus adjustment. The aperture 13 is driven to open and close by an aperture drive circuit 112 that performs aperture adjustment.

積算部151は、カメラ操作部104のレリーズボタンが半押しされると、CCD14によって周期的(1/30秒から1/60秒ごと)に得られる画像データ(スルー画像)に基づいて被写体の明るさの測光(EV値の算出)を行う。   When the release button of the camera operation unit 104 is half-pressed, the integrating unit 151 determines the brightness of the subject based on image data (through image) periodically (every 1/30 second to 1/60 second) obtained by the CCD 14. Then, photometry (calculation of EV value) is performed.

即ち、積算部151は、デジタル信号処理部20から出力されたR、G、Bの画像データを積算し、その積算値をCPU100に提供する。CPU100は、積算部151から入力する積算値に基づいて被写体の平均的な明るさ(被写体輝度)を検出し、撮影に適した露出値(EV値)を算出する。   That is, the integrating unit 151 integrates the R, G, and B image data output from the digital signal processing unit 20 and provides the integrated value to the CPU 100. The CPU 100 detects the average brightness (subject luminance) of the subject based on the integrated value input from the integrating unit 151, and calculates an exposure value (EV value) suitable for photographing.

そして、CPU100は、得られたEV値に基づいて絞り13の絞り値(F値)及びCCD14の電子シャッタ(シャッタスピード)を含む露出値を所定のプログラム線図にしたがって決定する。   Then, the CPU 100 determines an exposure value including an aperture value (F value) of the aperture 13 and an electronic shutter (shutter speed) of the CCD 14 based on the obtained EV value according to a predetermined program diagram.

レリーズボタンが全押しされると、記録用の画像データ取得が開始される。CPU100は、その決定した絞り値に基づいて絞り131を駆動し、絞り131の開口径を制御するとともに、決定したシャッタスピードに基づき、垂直駆動回路136を介してCCD14での電荷蓄積時間を制御する(AE動作)。なおCPU100は、必要に応じて閃光発光用の発光部101を発光させる。   When the release button is fully pressed, acquisition of image data for recording is started. The CPU 100 drives the aperture 131 based on the determined aperture value, controls the aperture diameter of the aperture 131, and controls the charge accumulation time in the CCD 14 via the vertical drive circuit 136 based on the determined shutter speed. (AE operation). Note that the CPU 100 causes the light emitting unit 101 for flash emission to emit light as necessary.

AE動作は、絞り優先AE,シャッタ速度優先AE,プログラムAEなどがあるが、いずれにおいても、被写体輝度を測定し、この被写体輝度の測光値に基づいて決められた露出値、すなわち絞り値とシャッタスピードとの組み合わせで撮影を行うことにより、適正な露光量で撮像されるように制御しており、面倒な露出決定の手間を省くことができる。   The AE operation includes an aperture priority AE, a shutter speed priority AE, a program AE, etc. In any case, the subject brightness is measured, and an exposure value determined based on the photometric value of the subject brightness, that is, an aperture value and a shutter. By taking a picture in combination with the speed, control is performed so that an image is taken with an appropriate exposure amount, and it is possible to save troublesome determination of exposure.

合焦位置検出部150は、レリーズボタンの半押しに応じ、デジタル信号処理部20の画像データから、CPU100により選定された検出範囲に対応する画像データを抽出する。焦点位置を検出する方法は、合焦位置で画像データの高周波成分が最大振幅になるという特徴を利用して行う。合焦位置検出部150は、抽出された画像データの高周波成分を1フィールド期間積分することにより、振幅値を算出する。合焦位置検出部150は、CPU100がレンズ駆動部111を駆動制御してレンズ12を可動範囲内、即ち無限遠側の端点(INF点)から至近側の端点(NEAR点)の間で移動させている間に順次振幅値の計算を実行し、最大振幅を検出した時に検出値をCPU100に送信する。   The focus position detection unit 150 extracts image data corresponding to the detection range selected by the CPU 100 from the image data of the digital signal processing unit 20 in response to the release button being pressed halfway. The method of detecting the focal position is performed using the feature that the high frequency component of the image data has the maximum amplitude at the in-focus position. The focus position detection unit 150 calculates the amplitude value by integrating the high-frequency component of the extracted image data for one field period. The in-focus position detection unit 150 causes the CPU 100 to drive and control the lens driving unit 111 to move the lens 12 within the movable range, that is, from the end point on the infinity side (INF point) to the end point on the closest side (NEAR point). During this time, the calculation of the amplitude value is executed sequentially, and the detected value is transmitted to the CPU 100 when the maximum amplitude is detected.

CPU100は、この検出値を取得して対応する合焦位置に、レンズ12を移動させるようにレンズ駆動部111に指令を出す。レンズ駆動部111は、CPU100の指令に応じてレンズ12に含まれるフォーカスレンズを合焦位置に移動させる(AF動作)。   The CPU 100 acquires this detection value and issues a command to the lens driving unit 111 to move the lens 12 to the corresponding in-focus position. The lens driving unit 111 moves the focus lens included in the lens 12 to the in-focus position according to a command from the CPU 100 (AF operation).

CPU100は、カメラ操作部104のレリーズボタンと接続されており、ユーザによりレリーズボタンが半押しされた時に、この合焦位置の検出が行われる。また、CPU100には、レンズ駆動部111が接続されており、カメラ操作部104のズームスイッチによってユーザからのTELE方向又はWIDE方向へのズームの指令を取得した場合に、レンズ駆動部111を駆動させることにより、レンズ12に含まれるズームレンズをWIDE端とTELE端との間で移動させる。   The CPU 100 is connected to the release button of the camera operation unit 104, and the in-focus position is detected when the release button is half-pressed by the user. The lens driving unit 111 is connected to the CPU 100, and the lens driving unit 111 is driven when a zoom command from the user in the TELE direction or the WIDE direction is acquired by the zoom switch of the camera operation unit 104. Thus, the zoom lens included in the lens 12 is moved between the WIDE end and the TELE end.

圧縮・伸長処理部143は、レリーズボタンの全押しに応じてメインメモリ22に格納された画像データを、バスライン142を介して読み出して圧縮し、外部記録部24の記録メディアに出力する。また、圧縮・伸長処理部143は、外部記録部24の記録メディアに格納された画像データを読み出して伸長し、メインメモリ22に格納する。   The compression / decompression processing unit 143 reads and compresses the image data stored in the main memory 22 via the bus line 142 in response to the full release button being pressed, and outputs the compressed image data to the recording medium of the external recording unit 24. The compression / decompression processing unit 143 reads out and decompresses the image data stored in the recording medium of the external recording unit 24 and stores it in the main memory 22.

表示部147は、CCD14から周期的に得られる画像信号に基づいてデジタル信号処理部20で生成されたカラー映像信号YCを3色のRGB信号に変換して図示しないモニタに出力する。こうして、スルー画像がモニタに表示される。   The display unit 147 converts the color video signal YC generated by the digital signal processing unit 20 based on the image signal periodically obtained from the CCD 14 into an RGB signal of three colors and outputs it to a monitor (not shown). In this way, the through image is displayed on the monitor.

ピーク数計数部1およびピーク位置検出部2の処理は後述する。   Processing of the peak number counting unit 1 and the peak position detecting unit 2 will be described later.

図2はカメラ10で実行される撮影処理の流れを示す。この処理はCPU100によって制御される。この処理は、特定のモードがカメラ操作部104から設定された場合に限り実行するようにしてもよい。また、この処理を規定するプログラムは、メインメモリ22に記憶されている。   FIG. 2 shows a flow of photographing processing executed by the camera 10. This process is controlled by the CPU 100. This process may be executed only when a specific mode is set from the camera operation unit 104. A program that defines this processing is stored in the main memory 22.

S1では、カメラ操作部104のレリーズボタンが半押しされたか否かを判断する。レリーズボタンが半押しされたと判断された場合、S2に進む。   In S1, it is determined whether or not the release button of the camera operation unit 104 is half-pressed. If it is determined that the release button has been pressed halfway, the process proceeds to S2.

S2では、レンズ駆動部111を制御し、レンズ12に含まれるフォーカスレンズの位置を初期位置に移動させる。   In S2, the lens driving unit 111 is controlled to move the position of the focus lens included in the lens 12 to the initial position.

S3では、スルー画像を取得し、合焦評価値を算出する。合焦評価値の算出は、例えば、コントラストAF方式では、レンズ12を合焦のための動作範囲内(例えば、至近側から無限遠側まで)でステップ駆動により所定単位ずつ(例えば至近側から無限遠側までの動作範囲を50の段階に等分割した場合の1単位)移動させ、所定単位ずつステップ駆動されるごとに画像データを取得し、取得された画像データのうち所定のエリア(例えば画面中心近傍の矩形領域や、顔検出領域)の画像データに基づいて被写体像の鮮鋭度を示す合焦評価値を算出する。   In S3, a through image is acquired and a focus evaluation value is calculated. For example, in the contrast AF method, the focus evaluation value is calculated by a predetermined unit (for example, infinite from the closest side) by step driving within the operating range for focusing the lens 12 (for example, from the close side to the infinity side). The operation range to the far side is moved by one unit when equally divided into 50 stages, and image data is acquired every time the unit is step-driven by a predetermined unit, and a predetermined area (for example, a screen) of the acquired image data A focus evaluation value indicating the sharpness of the subject image is calculated based on image data of a rectangular region near the center or a face detection region.

S4では、全てのフォーカスレンズ位置で合焦評価値を算出したか否かを判断する。全てのフォーカスレンズ位置で合焦評価値を算出していないと判断した場合、S5に進む。全てのフォーカスレンズ位置で合焦評価値を算出したと判断した場合、S6に進む。   In S4, it is determined whether or not focus evaluation values have been calculated at all focus lens positions. If it is determined that focus evaluation values have not been calculated at all focus lens positions, the process proceeds to S5. When it is determined that the focus evaluation values have been calculated at all the focus lens positions, the process proceeds to S6.

S5では、フォーカスレンズの位置を未だ合焦評価値を算出していない位置に移動する。そして、S3に戻り、合焦評価値を算出する。   In S5, the position of the focus lens is moved to a position where a focus evaluation value has not yet been calculated. Then, returning to S3, a focus evaluation value is calculated.

S6では、合焦位置検出部150は、算出した合焦評価値に基づいて、各レンズ位置と合焦評価値との関係を表す合焦曲線を求める。ピーク位置検出部2は、当該合焦曲線の極大点(ピーク)の位置を検出する。そして、ピーク数計数部1は、ピークの数を計数し、ピークが複数あるか否かを判断する。ピークが複数ある場合はS7、ピークが複数ない場合はS10に進む。   In S6, the focus position detection unit 150 obtains a focus curve representing the relationship between each lens position and the focus evaluation value based on the calculated focus evaluation value. The peak position detection unit 2 detects the position of the maximum point (peak) of the focusing curve. Then, the peak number counting unit 1 counts the number of peaks and determines whether there are a plurality of peaks. If there are a plurality of peaks, the process proceeds to S7, and if there are not a plurality of peaks, the process proceeds to S10.

S7では、ブラケット撮影条件を設定するサブルーチンを実施する。フォーカスブラケット撮影は、レンズ駆動部11によって移動されるフォーカスレンズのピント位置を、最大ピークを中心として、所定ステップa単位で前後にs段階(sは1以上の整数)ずつ移動させた位置に設定して撮影を繰り返すことである。ブラケット撮影条件は、所定ステップaの幅や、移動段階数sなどであり、ピークの状態に応じて設定される。ブラケット撮影条件設定サブルーチンの詳細は後述する。   In S7, a subroutine for setting bracket shooting conditions is executed. In focus bracket shooting, the focus position of the focus lens that is moved by the lens driving unit 11 is set to a position that is moved back and forth by a predetermined step a unit by s steps (s is an integer of 1 or more) around the maximum peak. And repeat the shooting. The bracket shooting conditions are the width of the predetermined step a, the number of moving steps s, and the like, and are set according to the peak state. Details of the bracket shooting condition setting subroutine will be described later.

S8では、カメラ操作部104のレリーズボタンが全押しされたか否かを判断する。全押しされた場合はS9に進む。   In S8, it is determined whether or not the release button of the camera operation unit 104 has been fully pressed. If it is fully pressed, the process proceeds to S9.

S9では、S7で設定された条件に従ってフォーカスブラケット撮影を行う。フォーカスブラケット撮影は、複数のピークのうちの少なくとも1つについて行われる。例えば、ピークのうち最も広角側(至近側)にあるもの、あるいは、最も至近側から数えて所定個数(2つあるいは3つなど)までにある各ピークについて、あるいは全ピークについて、フォーカスブラケット撮影を行う。   In S9, focus bracket shooting is performed according to the conditions set in S7. Focus bracket imaging is performed for at least one of the plurality of peaks. For example, focus bracket photography is performed for the peak that is on the widest angle side (closest side) of the peaks, or for each peak that is up to a predetermined number (two or three, etc.) from the closest side, or for all peaks. Do.

S10では、合焦曲線のピークに対応するレンズ位置にフォーカスレンズを移動する。   In S10, the focus lens is moved to the lens position corresponding to the peak of the focusing curve.

S11では、カメラ操作部104のレリーズボタンが全押しされたか否かを判断する。全押しされた場合はS12に進む。   In S11, it is determined whether or not the release button of the camera operation unit 104 has been fully pressed. If it is fully pressed, the process proceeds to S12.

S12では、撮影を行う。   In S12, shooting is performed.

図3は、本処理で撮影する被写体の例を示し、図4は各被写体に対応する合焦曲線の例を示す。   FIG. 3 shows an example of a subject to be photographed by this processing, and FIG. 4 shows an example of a focusing curve corresponding to each subject.

図3(A)では、合焦評価値算出領域Z内に、撮影者がピントを合わせたい主要被写体である人物と木の2つの被写体が存在する。図3(B)では、合焦評価値算出領域Z内に、人物の被写体が存在する。図3(C)では、合焦評価値算出領域Z内に、木の被写体が存在する。   In FIG. 3A, in the focus evaluation value calculation area Z, there are two subjects, a person who is a main subject that the photographer wants to focus on and a tree. In FIG. 3B, a person's subject exists in the focus evaluation value calculation area Z. In FIG. 3C, a tree subject exists in the focus evaluation value calculation area Z.

図4に示すように、人物と木の2つの被写体が存在する場合、その合焦曲線Aは、人物被写体の合焦曲線Bと木の被写体の合焦曲線Cが加算されものとなり、複数のピークPA・PCが存在する。人物のみが被写体の合焦曲線Bは1つのピークPBが存在し、木のみが被写体の合焦曲線Cは1つのピークPCが存在する。   As shown in FIG. 4, when there are two subjects of a person and a tree, the focusing curve A is obtained by adding the focusing curve B of the person subject and the focusing curve C of the subject of the tree. There is a peak PA · PC. The focus curve B for a person only subject has one peak PB, and the focus curve C for a subject only tree has one peak PC.

合焦曲線AのピークPAは、合焦曲線Bの影響により、本来の人物被写体の合焦位置を示すピークPBとずれた位置になる。よって、ピークPAにフォーカスレンズ位置を設定して撮影を行っても、主要被写体たる人物にピントが合っておらず、撮影者は不快な思いをすることがある。   The peak PA of the focusing curve A is shifted from the peak PB indicating the focusing position of the original human subject due to the influence of the focusing curve B. Therefore, even when shooting is performed with the focus lens position set to the peak PA, the person who is the main subject is not in focus and the photographer may feel uncomfortable.

そこで、上記処理では、合焦曲線Aのピークを計数し、複数のピークが存在する場合は、ピークのずれが生じたものとみなし、主要被写体の合焦位置に対応するピークPAの近傍でフォーカスブラケット撮影を行う。そうすると、本来のピークPBにより近いピント位置で撮影がされ、主要被写体に対する適切な合焦状態の画像を得ることができる。   Therefore, in the above processing, the peak of the focusing curve A is counted, and if there are a plurality of peaks, it is considered that the peak has shifted, and the focus is set near the peak PA corresponding to the focusing position of the main subject. Perform bracket shooting. If it does so, imaging | photography will be carried out in the focus position close | similar to the original peak PB, and the image of the suitable focus state with respect to a main to-be-photographed object can be obtained.

<第2実施形態>
図5は第2実施形態に係るデジタルカメラの要部構成を示す。
Second Embodiment
FIG. 5 shows a main configuration of a digital camera according to the second embodiment.

ピーク位置検出部2とCPU100とを接続するデータ転送ラインの間には、スイッチ4があり、その下流側には、ピーク間距離算出部3が配置されている。スイッチ4のオンオフは、ピーク数計数部1によって制御される。   A switch 4 is provided between the data transfer lines connecting the peak position detection unit 2 and the CPU 100, and a peak-to-peak distance calculation unit 3 is disposed on the downstream side. The on / off of the switch 4 is controlled by the peak number counting unit 1.

ピーク間距離算出部3は、合焦曲線内に存在する複数のピーク間の距離Lpを算出する。   The peak-to-peak distance calculation unit 3 calculates a distance Lp between a plurality of peaks existing in the focusing curve.

また、CPU100の実行するプログラムの機能として、撮影フォーカスレンズ位置設定部100a、フォーカスレンズ制御部100bが存在する。ピーク数計数部1、ピーク位置検出部2、ピーク間距離算出部3、撮影フォーカスレンズ位置設定部100a、フォーカスレンズ制御部100bは、ワンチップマイコンなどで構成されていてもよい。   Further, as functions of a program executed by the CPU 100, there are a photographing focus lens position setting unit 100a and a focus lens control unit 100b. The peak number counting unit 1, the peak position detecting unit 2, the inter-peak distance calculating unit 3, the photographing focus lens position setting unit 100a, and the focus lens control unit 100b may be configured by a one-chip microcomputer or the like.

撮影フォーカスレンズ位置設定部100aは、ピーク間距離算出部3の算出した距離Lpに応じてフォーカスレンズの位置をフォーカスレンズ制御部100bに設定する。フォーカスレンズ制御部100bは、設定された位置にフォーカスレンズを移動させるようにレンズ駆動部111を制御する。   The photographing focus lens position setting unit 100a sets the position of the focus lens in the focus lens control unit 100b according to the distance Lp calculated by the inter-peak distance calculation unit 3. The focus lens control unit 100b controls the lens driving unit 111 to move the focus lens to a set position.

図6は、本実施形態のカメラ10で実施されるブラケット条件設定サブルーチン(S7)の詳細を示す。この処理の実施にあたり、ピーク数検出部1は、ピーク位置検出部2が複数のピークを検出したことに応じてスイッチ4をオンにし、ピーク位置検出部2が検出したピークの位置が、ピーク間距離算出部3に伝送される。   FIG. 6 shows details of a bracket condition setting subroutine (S7) executed by the camera 10 of the present embodiment. In carrying out this processing, the peak number detection unit 1 turns on the switch 4 in response to the peak position detection unit 2 detecting a plurality of peaks, and the peak position detected by the peak position detection unit 2 is changed between peaks. It is transmitted to the distance calculation unit 3.

S21では、複数ピークのうち、主要被写体の合焦位置に対応する合焦曲線のピークと、それ以外の被写体の合焦位置に対応する合焦曲線のピークとを識別する。以下、前者を主ピーク、後者を副ピークと呼ぶ。主ピークと副ピークの識別は任意である。例えば、コントラストAFにおける山登り方式で最初に検出されたピークを主ピークとする。あるいは、主要被写体が人物被写体である場合は、各種顔検出AF技術(例えば本出願人による特開2007−226141号公報)を用いて得られた、顔の合焦位置と対応するピークを主ピークとする。あるいは人物撮影モードなどの所定の撮影モードが設定されており、主要被写体が最も近い位置に存在するとみなしうる場合は、最も至近側のピークを主ピークと識別したりする。   In S21, the peak of the focusing curve corresponding to the focusing position of the main subject and the peak of the focusing curve corresponding to the focusing position of other subjects are identified among the plurality of peaks. Hereinafter, the former is called a main peak and the latter is called a sub peak. The discrimination between the main peak and the sub peak is arbitrary. For example, the peak first detected by the hill-climbing method in contrast AF is set as the main peak. Alternatively, when the main subject is a human subject, a peak corresponding to the in-focus position of the face obtained by using various face detection AF techniques (for example, Japanese Patent Application Laid-Open No. 2007-226141 by the present applicant) is a main peak. And Alternatively, when a predetermined shooting mode such as a person shooting mode is set and the main subject can be considered to be present at the closest position, the closest peak is identified as the main peak.

S22では、ピーク間距離算出部3は、主ピークと副ピークの間の距離Lpを算出する。副ピークが複数ある場合、主ピークに最も近い副ピークと主ピークとの距離をLpとする。これは、主ピークに最も近い副ピークが、主要被写体の本来のピークのずれに最も影響を与えると考えられるからである。さらに、主ピークに最も近い副ピークが複数あれば(主要被写体が前景と背景に挟まれ、副ピークが主ピークを境に至近側と無限遠側の双方にあるような場合)、どちらの距離もLpとなる。   In S22, the peak-to-peak distance calculation unit 3 calculates the distance Lp between the main peak and the sub peak. When there are a plurality of sub-peaks, the distance between the sub-peak closest to the main peak and the main peak is Lp. This is because the sub peak closest to the main peak is considered to most affect the deviation of the original peak of the main subject. In addition, if there are multiple sub-peaks closest to the main peak (when the main subject is sandwiched between the foreground and the background, and the sub-peak is on both the near side and the infinity side of the main peak), which distance Is also Lp.

S23では、距離Lpが、所定の閾値L1(例えば、合焦評価値算出時のレンズ駆動単位で30ステップ分)以上であるか否かを判断する、Lp>L1の場合はS24、Lp≦L1の場合はS25に進む。   In S23, it is determined whether or not the distance Lp is equal to or greater than a predetermined threshold L1 (for example, 30 steps in the lens driving unit when calculating the focus evaluation value). If Lp> L1, S24, Lp ≦ L1 In this case, the process proceeds to S25.

S24では、撮影フォーカスレンズ位置設定部100aは、フォーカスレンズの移動位置を主ピーク位置のみに設定する。   In S24, the photographing focus lens position setting unit 100a sets the movement position of the focus lens only to the main peak position.

S25では、撮影フォーカスレンズ位置設定部100aは、Lpに応じてブラケット条件を設定する。例えば、図7に示すように、Lp>L1の場合は駆動範囲は「10」のレンズ位置のみとし、L1≧Lp>L2(L2は閾値であり、例えば、合焦評価値算出時のレンズ駆動単位で20ステップ分)の場合は駆動範囲は「9」〜「11」のレンズ位置で3枚撮影することとし、L2≧Lpの場合は駆動範囲は「7」〜「13」のレンズ位置で7枚撮影することとする。つまり、ピーク間距離が短いほど、本来のピークのずれ量が大きいとみなし、駆動範囲と撮影枚数を多くとる。   In S25, the photographing focus lens position setting unit 100a sets a bracket condition according to Lp. For example, as shown in FIG. 7, when Lp> L1, the driving range is only the lens position “10”, and L1 ≧ Lp> L2 (L2 is a threshold value. For example, lens driving at the time of calculating the focus evaluation value In the case of 20 steps), three images are taken at a lens position of “9” to “11” in the driving range, and when L2 ≧ Lp, the driving range is at the lens position of “7” to “13”. Seven pictures are taken. In other words, the shorter the peak-to-peak distance, the larger the original peak deviation amount, and the larger the driving range and the number of shots.

図8および9は、合焦曲線Aの主ピークと副ピークの距離Lpと本来のピークの位置との関係を示す。図8では、人物と木が合焦評価値算出領域に存在するため(図3)、合焦曲線Aに2つのピークPA・PCが現れており、それらの距離Lpは比較的短い。   8 and 9 show the relationship between the main peak and sub peak distance Lp of the focusing curve A and the original peak position. In FIG. 8, since a person and a tree exist in the focus evaluation value calculation region (FIG. 3), two peaks PA · PC appear in the focus curve A, and their distance Lp is relatively short.

ピーク間の距離Lpが短いと、それだけ、複数の被写体のコントラスト成分が干渉しあい、本来の合焦位置のずれが大きくなる。よってこの場合、フォーカスブラケット撮影をする。   When the distance Lp between the peaks is short, the contrast components of a plurality of subjects interfere with each other, and the shift of the original in-focus position increases. Therefore, in this case, focus bracket shooting is performed.

図9では、人物と木が合焦評価値算出領域に存在し、合焦曲線Aに2つのピークPA・PCが現れるが、両者の距離Lpは長い。ピーク間の距離Lpが長いと、それだけ、複数の被写体のコントラスト成分の干渉が小さく、本来のピークのずれも微小になる。よってこの場合、フォーカスブラケット撮影は行わない。こうすることで、無駄なくブラケット撮影ができ、撮影時間の短縮が可能となる。   In FIG. 9, a person and a tree exist in the focus evaluation value calculation area, and two peaks PA · PC appear on the focus curve A, but the distance Lp between them is long. The longer the distance Lp between peaks, the smaller the interference of contrast components of a plurality of subjects, and the smaller the deviation of the original peak. Therefore, in this case, focus bracket shooting is not performed. In this way, bracket shooting can be performed without waste, and the shooting time can be shortened.

<第3実施形態>
図10は第3実施形態に係るデジタルカメラの要部構成を示す。
<Third Embodiment>
FIG. 10 shows a main configuration of a digital camera according to the third embodiment.

ピーク位置検出部2とCPU100とを接続するデータ転送ラインの間には、スイッチ4があり、その下流側には、ピーク相対位置算出部5が配置されている。スイッチ4のオンオフは、ピーク数計数部1によって制御される。ピーク相対位置算出部5はワンチップマイコンなどで構成されていてもよい。   A switch 4 is provided between the data transfer lines connecting the peak position detection unit 2 and the CPU 100, and a peak relative position calculation unit 5 is disposed downstream thereof. The on / off of the switch 4 is controlled by the peak number counting unit 1. The peak relative position calculation unit 5 may be composed of a one-chip microcomputer or the like.

図11は、本実施形態のカメラ10で実施されるブラケット条件設定サブルーチン(S7)の詳細を示す。この処理の実施にあたり、ピーク数計数部1は、ピーク位置検出部2が複数のピークを検出したことに応じてスイッチ4をオンにし、ピーク位置検出部2が検出したピークの位置が、ピーク相対位置算出部5に伝送される。   FIG. 11 shows details of a bracket condition setting subroutine (S7) executed by the camera 10 of the present embodiment. In performing this process, the peak number counting unit 1 turns on the switch 4 in response to the peak position detecting unit 2 detecting a plurality of peaks, and the peak position detected by the peak position detecting unit 2 is the peak relative value. It is transmitted to the position calculation unit 5.

S31では、ピーク相対位置算出部5は、主ピークと副ピークを識別する。   In S31, the peak relative position calculation unit 5 identifies the main peak and the sub peak.

S32では、ピーク相対位置算出部5は、主ピークと副ピークの相対的位置を算出する。つまり、主ピークが副ピークよりも至近側にあるか無限遠側にあるかを決める。   In S32, the peak relative position calculation unit 5 calculates the relative position of the main peak and the sub peak. That is, it is determined whether the main peak is closer to the infinity side than the sub peak.

S33では、主ピーク位置が副ピーク位置よりも至近側にあるか否かを判断する。主ピーク位置が副ピーク位置よりも至近側にある場合はS34、主ピーク位置が副ピーク位置よりも無限遠側にある場合はS35に進む。   In S33, it is determined whether or not the main peak position is closer to the sub-peak position. When the main peak position is closer to the sub peak position, the process proceeds to S34, and when the main peak position is closer to the infinity side than the sub peak position, the process proceeds to S35.

S34では、撮影フォーカスレンズ位置設定部100aは、ブラケット条件におけるレンズ駆動範囲を、主ピーク位置よりも至近側に設定する。   In S34, the photographing focus lens position setting unit 100a sets the lens driving range in the bracket condition closer to the main peak position.

S35では、撮影フォーカスレンズ位置設定部100aは、ブラケット条件におけるレンズ駆動範囲を、主ピーク位置よりも無限遠側に設定する。   In S35, the photographing focus lens position setting unit 100a sets the lens driving range in the bracket condition to the infinity side from the main peak position.

なお、図示は省略するが、主ピークに最も近い副ピークが複数あり(主要被写体が前景背景に挟まれ、副ピークが主ピークを境に至近側と無限遠側の双方にあるような場合)、主ピーク位置が副ピーク位置よりも至近側にあるとも無限遠側にあるとも判定されない場合、レンズ駆動範囲は、主ピーク位置を中心にした無限遠側と至近側の両方に設定してもよい。   Although illustration is omitted, there are a plurality of sub-peaks closest to the main peak (when the main subject is sandwiched between the foreground and the background, and the sub-peak is on both the near side and the infinity side of the main peak) If it is not determined that the main peak position is closer to the infinity side or the infinity side than the sub peak position, the lens drive range may be set to both the infinity side and the near side centered on the main peak position. Good.

図12は、合焦曲線Aの主ピークと副ピークの相対位置と本来のピークの位置との関係を示す。主ピークが副ピークよりも至近側にあるということは、副ピークの焦点距離にある被写体が、主ピークの主要被写体よりも遠い場所にあり、その結果、両者の混在する合焦曲線の主ピークは、主要被写体のみの合焦曲線のピークよりも無限遠側にずれる。そこで上記処理では、そのずれ方向と反対の至近側に向けて(本来のピークに向けて)フォーカスブラケット撮影のレンズ駆動範囲を設定する。   FIG. 12 shows the relationship between the relative positions of the main peak and the sub peak of the focusing curve A and the original peak position. The fact that the main peak is closer to the sub-peak means that the subject at the focal length of the sub-peak is farther than the main subject of the main peak, and as a result, the main peak of the focusing curve where both are mixed Is shifted to the infinity side from the peak of the focusing curve of only the main subject. Therefore, in the above processing, the lens drive range for focus bracket shooting is set toward the close side opposite to the direction of the shift (toward the original peak).

一方、図示は省略するが、主ピークが副ピークよりも無限遠側にあるということは、副ピークの焦点距離にある被写体が、主ピークの主要被写体よりも近い場所にあり、その結果、両者の混在する合焦曲線の主ピークは、主要被写体のみの合焦曲線のピークよりも至近側にずれる。そこで上記処理では、そのずれ方向と反対の無限遠側に向けて(本来のピークに向けて)フォーカスブラケット撮影のレンズ駆動範囲を設定する。   On the other hand, although illustration is omitted, the fact that the main peak is on the infinity side of the sub peak means that the subject at the focal length of the sub peak is closer to the main subject of the main peak. The main peak of the in-focus curve is shifted closer to the focus curve peak of only the main subject. Therefore, in the above processing, the lens drive range for focus bracket shooting is set toward the infinity side opposite to the direction of the shift (toward the original peak).

このように、本来のピークがずれた方向にフォーカスブラケット撮影のレンズ駆動範囲を設定することで、無駄なくブラケット撮影ができ、撮影時間の短縮が可能となる。   Thus, by setting the lens drive range for focus bracket shooting in the direction in which the original peak is shifted, bracket shooting can be performed without waste, and the shooting time can be shortened.

<第4実施形態>
図13は第4実施形態に係るデジタルカメラの要部構成を示す。
<Fourth embodiment>
FIG. 13 shows a main configuration of a digital camera according to the fourth embodiment.

ピーク位置検出部2とCPU100とを接続するデータ転送ラインの間には、スイッチ4があり、その下流側には、ピーク幅算出部6が配置されている。スイッチ4のオンオフは、ピーク数計数部1によって制御される。ピーク幅算出部6はワンチップマイコンなどで構成されていてもよい。   A switch 4 is provided between the data transfer lines connecting the peak position detection unit 2 and the CPU 100, and a peak width calculation unit 6 is disposed downstream thereof. The on / off of the switch 4 is controlled by the peak number counting unit 1. The peak width calculation unit 6 may be composed of a one-chip microcomputer or the like.

図14は、本実施形態のカメラ10で実施されるブラケット条件設定サブルーチン(S7)の詳細を示す。この処理の実施にあたり、ピーク数計数部1は、ピーク位置検出部2が複数のピークを検出したことに応じてスイッチ4をオンにし、ピーク位置検出部2が検出したピークの位置が、ピーク幅算出部6に伝送される。   FIG. 14 shows details of a bracket condition setting subroutine (S7) executed by the camera 10 of the present embodiment. In performing this process, the peak number counting unit 1 turns on the switch 4 in response to the peak position detecting unit 2 detecting a plurality of peaks, and the peak position detected by the peak position detecting unit 2 is the peak width. It is transmitted to the calculation unit 6.

S41では、ピーク幅算出部6は、主ピークと副ピークを識別する。   In S41, the peak width calculation unit 6 identifies a main peak and a sub peak.

S42では、ピーク幅算出部6は、副ピークを極大値とする副ピーク近傍の合焦曲線の幅(ピーク幅)を算出する。例えば副ピーク近傍の合焦曲線の半値半幅や半値全幅の8割などを求め、これをピーク幅PWとする。あるいは、ピークを関数で近似し、その関数の微分係数によってピークの急激さを判定し、このピークの急激さをピーク幅の代わりに用いてもよい。ピークが急激であればピーク幅が短い場合、ピークが緩やかであればピーク幅が長い場合に相当する。あるいは、副ピーク近傍の曲線を正規分布で近似し、この尖度を求める。尖度が大きいと、裾の広がりが大きく、ピーク幅が長くなる。   In S <b> 42, the peak width calculation unit 6 calculates the width (peak width) of the focusing curve near the sub peak where the sub peak is the maximum value. For example, the half-width at half maximum of the focusing curve near the sub-peak, 80% of the full width at half maximum, and the like are obtained and set as the peak width PW. Alternatively, the peak may be approximated by a function, the peak sharpness may be determined by the differential coefficient of the function, and the peak sharpness may be used instead of the peak width. If the peak is abrupt, the peak width is short. If the peak is gentle, the peak width is long. Alternatively, the kurtosis is obtained by approximating a curve near the sub-peak with a normal distribution. When the kurtosis is large, the spread of the skirt is large and the peak width is long.

S43では、撮影フォーカスレンズ位置設定部100aは、ピーク幅PWに応じてブラケット条件を設定する。例えば、図15に示すように、PW1≦PW<PW2の場合、駆動範囲は「10」〜「11」とし、また、撮影枚数は「10」「11」位置での2枚とする。PW2≦PW<PW3の場合、駆動範囲は「8」〜「12」とし、撮影枚数は「8」「9」「10」「11」での5枚とする。PW3≦PWの場合、駆動範囲は「7」〜「15」とし、撮影枚数は「7」「8」「9」「10」「11」「12」「13」「14」「15」での9枚とする。つまり、ピーク幅が広いほど、駆動範囲と撮影枚数を多くとる。   In S43, the photographing focus lens position setting unit 100a sets the bracket condition according to the peak width PW. For example, as shown in FIG. 15, when PW1 ≦ PW <PW2, the driving range is “10” to “11”, and the number of shots is two at the positions “10” and “11”. In the case of PW2 ≦ PW <PW3, the drive range is “8” to “12”, and the number of shots is five, “8”, “9”, “10”, and “11”. When PW3 ≦ PW, the driving range is “7” to “15”, and the number of shots is “7” “8” “9” “10” “11” “12” “13” “14” “15”. Nine. That is, the wider the peak width, the larger the driving range and the number of shots.

ここで、PW1、PW2、PW3は閾値であり、例えば、PW1=合焦評価値算出時のレンズ駆動単位で10ステップ、PW2=15ステップ、PW3=20ステップである。   Here, PW1, PW2, and PW3 are threshold values. For example, PW1 = 10 steps in the lens driving unit when the focus evaluation value is calculated, PW2 = 15 steps, and PW3 = 20 steps.

図16および17は、本処理におけるピーク幅と駆動範囲との関係を示す。   16 and 17 show the relationship between the peak width and the drive range in this process.

図16に示すように、副ピーク近傍のピーク幅が広い場合、主要被写体の合焦位置を示すピーク位置のずれに与える影響が大きい。そこで本処理では、フォーカスブラケット撮影の駆動範囲を広くとる。   As shown in FIG. 16, when the peak width near the sub-peak is wide, the influence on the shift of the peak position indicating the focus position of the main subject is large. Therefore, in this process, the drive range for focus bracket shooting is widened.

一方、図17に示すように、副ピーク近傍のピーク幅が狭い場合、主要被写体の合焦位置を示すピーク位置のずれに与える影響が小さい。そこで本処理では、フォーカスブラケット撮影の駆動範囲を狭くとる。   On the other hand, as shown in FIG. 17, when the peak width near the sub-peak is narrow, the influence on the shift of the peak position indicating the focus position of the main subject is small. Therefore, in this process, the drive range for focus bracket shooting is narrowed.

このように、ブラケット条件を設定するにあたり、副ピークのピーク幅を考慮することで、主ピークの位置のずれを推測し、適切なフォーカスレンズの駆動位置あるいはブラケット撮影の枚数を設定するから、無駄なくブラケット撮影ができ、撮影時間の短縮が可能となる。   In this way, when setting the bracket condition, it is not necessary to estimate the deviation of the main peak position by considering the peak width of the sub peak and set the appropriate focus lens drive position or the number of bracket shots. Bracketing can be performed without shortening the shooting time.

<第5実施形態>
第1〜4実施形態において、さらに、被写界深度に応じてレンズ駆動範囲やブラケット枚数を設定してもよい。
<Fifth Embodiment>
In the first to fourth embodiments, the lens driving range and the number of brackets may be set according to the depth of field.

図18は第5実施形態に係るデジタルカメラの要部構成を示す。   FIG. 18 shows a main configuration of a digital camera according to the fifth embodiment.

ピーク位置検出部2とCPU100とを接続するデータ転送ラインの間には、スイッチ4があり、その下流側には、ズーム位置・絞り値取得部7が配置されている。スイッチ4のオンオフは、ピーク数計数部1によって制御される。ズーム位置・絞り値取得部7はワンチップマイコンなどで構成されていてもよい。   A switch 4 is provided between the data transfer lines connecting the peak position detection unit 2 and the CPU 100, and a zoom position / aperture value acquisition unit 7 is disposed downstream thereof. The on / off of the switch 4 is controlled by the peak number counting unit 1. The zoom position / aperture value acquisition unit 7 may be composed of a one-chip microcomputer or the like.

図19は、本実施形態のカメラ10で実施されるブラケット条件設定サブルーチン(S7)の詳細を示す。この処理は、第1〜4実施形態のブラケット条件設定サブルーチンの一部に組み込むことができる。   FIG. 19 shows details of a bracket condition setting subroutine (S7) executed by the camera 10 of the present embodiment. This process can be incorporated into a part of the bracket condition setting subroutine of the first to fourth embodiments.

S51では、ズーム位置・絞り値取得部7は、現在のズームレンズの位置(焦点距離)fを取得する。   In S51, the zoom position / aperture value acquisition unit 7 acquires the current position (focal length) f of the zoom lens.

S52では、ズーム位置・絞り値取得部7は、絞り13に設定されている現在の絞り値Fを取得する。   In S <b> 52, the zoom position / aperture value acquisition unit 7 acquires the current aperture value F set for the aperture 13.

S53では、撮影フォーカスレンズ位置設定部100aは、焦点距離fと絞り値Fから被写界深度を算出する。そして、当該被写界深度に応じてブラケット条件を設定する。   In S53, the photographing focus lens position setting unit 100a calculates the depth of field from the focal length f and the aperture value F. Then, bracket conditions are set according to the depth of field.

例えば図20に示すように、被写界深度が浅い場合、レンズ駆動範囲は、「9」〜「11」、撮影枚数は3枚と少なくとる。また、被写界深度が深い場合、レンズ駆動範囲は、「7」〜「11」、撮影枚数は5枚と多くとる。これは、例えば、第3実施形態のS34のように、至近側にレンズ駆動範囲が設定されている場合に、その駆動範囲やブラケット枚数をさらに限定する働きがある。   For example, as shown in FIG. 20, when the depth of field is shallow, the lens driving range is “9” to “11”, and the number of shots is as small as three. When the depth of field is deep, the lens drive range is “7” to “11”, and the number of shots is as large as five. For example, when the lens driving range is set on the close side as in S34 of the third embodiment, the driving range and the number of brackets are further limited.

図21および図22は、本処理における被写界深度と駆動範囲との関係を示す。   21 and 22 show the relationship between the depth of field and the driving range in this process.

図21に示すように、被写界深度が深い場合、背景である木はピンボケを起こしていない。この場合、図23に示すように、木のコントラスト成分が主要被写体である人物の合焦位置を示すピーク位置のずれに与える影響は大きい。そこで本処理では、被写界深度が深い場合、レンズ駆動範囲を広くとる。なお、ステップ幅を広くとることで駆動範囲を広げてもよい。これは、被写界深度が深い場合、多少ステップ幅を広くとっても、ピントに与える影響は小さいからである。   As shown in FIG. 21, when the depth of field is deep, the background tree is not out of focus. In this case, as shown in FIG. 23, the influence of the contrast component of the tree on the shift of the peak position indicating the focus position of the person who is the main subject is large. Therefore, in this processing, when the depth of field is deep, the lens driving range is widened. Note that the drive range may be expanded by increasing the step width. This is because, when the depth of field is deep, the influence on the focus is small even if the step width is somewhat wide.

一方、図22に示すように、被写界深度が浅い場合、背景である木はピンボケを起こす。この場合、図24に示すように、木のコントラスト成分による合焦曲線が主要被写体である人物の合焦位置を示すピーク位置のずれに与える影響は小さい。そこで本処理では、被写界深度が浅い場合、レンズ駆動範囲を狭くとり、撮影枚数を少なくとる。   On the other hand, as shown in FIG. 22, when the depth of field is shallow, the tree that is the background causes blurring. In this case, as shown in FIG. 24, the influence of the focusing curve by the contrast component of the tree on the shift of the peak position indicating the focusing position of the person who is the main subject is small. Therefore, in this process, when the depth of field is shallow, the lens drive range is narrowed and the number of shots is reduced.

このように、ブラケット条件を設定するにあたり、被写界深度を考慮することで、適切なフォーカスレンズの駆動位置あるいはブラケット撮影の枚数を設定するから、無駄なくブラケット撮影ができ、撮影時間の短縮が可能となる。   In this way, when setting the bracket conditions, considering the depth of field, the appropriate focus lens drive position or the number of bracket shots are set, so bracket shooting can be done without waste and the shooting time can be shortened. It becomes possible.

デジタルカメラの電気的構成を示すブロック図Block diagram showing the electrical configuration of the digital camera 第1実施形態に係る撮影処理のフローチャートFlowchart of photographing process according to the first embodiment 被写体像の一例を示す図A figure showing an example of a subject image 被写体像に応じた合焦曲線の一例を示す図The figure which shows an example of the focusing curve according to a to-be-photographed object image 第2実施形態に係るデジタルカメラの要部構成を示す図The figure which shows the principal part structure of the digital camera which concerns on 2nd Embodiment. 第2実施形態に係るブラケット条件設定サブルーチンのフローチャートFlowchart of bracket condition setting subroutine according to the second embodiment ピーク間距離とブラケット条件の設定例を示す図Diagram showing setting example of distance between peaks and bracket condition 合焦曲線のピーク間距離(短)を例示した図Figure illustrating the distance between the peaks of the focusing curve (short) 合焦曲線のピーク間距離(長)を例示した図A diagram illustrating the distance (length) between the peaks of the focusing curve 第3実施形態に係るデジタルカメラの要部構成を示す図The figure which shows the principal part structure of the digital camera which concerns on 3rd Embodiment. 第3実施形態に係るブラケット条件設定サブルーチンのフローチャートFlowchart of bracket condition setting subroutine according to the third embodiment 合焦曲線のピークのずれを例示した図Diagram illustrating the shift of the peak of the focusing curve 第4実施形態に係るデジタルカメラの要部構成を示す図The figure which shows the principal part structure of the digital camera which concerns on 4th Embodiment. 第4実施形態に係るブラケット条件設定サブルーチンのフローチャートFlowchart of bracket condition setting subroutine according to the fourth embodiment ピーク幅とブラケット条件の設定例を示す図Diagram showing setting example of peak width and bracket condition ピーク幅(大)と合焦曲線のピークのずれの関係を例示した図Diagram illustrating the relationship between the peak width (large) and the peak shift of the in-focus curve ピーク幅(小)と合焦曲線のピークのずれの関係を例示した図Figure illustrating the relationship between the peak width (small) and the peak shift of the in-focus curve 第5実施形態に係るデジタルカメラの要部構成を示す図The figure which shows the principal part structure of the digital camera which concerns on 5th Embodiment. 第5実施形態に係るブラケット条件設定サブルーチンのフローチャートFlowchart of bracket condition setting subroutine according to the fifth embodiment 被写界深度とブラケット条件の設定例を示す図Diagram showing setting example of depth of field and bracket condition 被写界深度が深い場合の被写体像の一例を示す図The figure which shows an example of a to-be-photographed object when the depth of field is deep 被写界深度が浅い場合の被写体像の一例を示す図The figure which shows an example of a to-be-photographed object when a depth of field is shallow 被写界深度が深い場合の合焦曲線の一例を示す図The figure which shows an example of the focusing curve when the depth of field is deep 被写界深度が浅い場合の合焦曲線の一例を示す図The figure which shows an example of the focusing curve when the depth of field is shallow

符号の説明Explanation of symbols

1:ピーク数検出部、2:ピーク位置検出部、3:ピーク間距離算出部、5:ピーク相対位置算出部、6:ピーク幅算出部、7:ズーム位置・絞り値取得部、10:デジタルカメラ、12:レンズ、13:絞り、14:CCD 1: peak number detection unit, 2: peak position detection unit, 3: peak distance calculation unit, 5: peak relative position calculation unit, 6: peak width calculation unit, 7: zoom position / aperture value acquisition unit, 10: digital Camera, 12: Lens, 13: Aperture, 14: CCD

Claims (13)

被写体像を所定の結像面上に結像させる撮像光学系と、
前記撮像光学系を駆動して焦点位置を変化させる駆動部と、
前記結像面に結像された被写体像を光電変換して画像信号を出力する撮像部と、
前記出力された画像信号に基づいて画像データを生成する生成部と、
撮影準備操作に応じて前記駆動部により前記撮像光学系の焦点位置を所定の位置に変化させるごとに生成される画像データから合焦評価値を算出する合焦評価値算出部と、
前記合焦評価値算出部の算出した合焦評価値から極大値を検出する極大値検出部と、
前記極大値に応じて主要被写体の合焦位置を検出する合焦位置検出部と、
撮影操作に応じて前記駆動部および前記撮像部を制御し、前記撮像光学系の焦点位置を変化させながら画像データの生成を繰り返すフォーカスブラケット撮影を実施する撮像制御部と、
前記極大値検出部が検出した極大値の個数を検出するピーク数検出部と、
前記ピーク数検出部が複数の極大値を検出した場合、前記複数の極大値の分布状況に応じてフォーカスブラケット撮影実施条件を設定する条件設定部と、を備え、
前記撮像制御部は、前記条件設定部の設定したフォーカスブラケット撮影実施条件に従い、少なくとも前記主要被写体の合焦位置の近傍で前記フォーカスブラケット撮影を実施する撮像装置。
An imaging optical system that forms an image of a subject on a predetermined imaging plane;
A drive unit for driving the imaging optical system to change a focal position;
An imaging unit that photoelectrically converts the subject image formed on the imaging surface and outputs an image signal;
A generating unit that generates image data based on the output image signal;
A focus evaluation value calculation unit that calculates a focus evaluation value from image data generated each time the drive unit changes the focal position of the imaging optical system to a predetermined position according to a shooting preparation operation;
A maximum value detection unit for detecting a maximum value from the focus evaluation value calculated by the focus evaluation value calculation unit;
An in-focus position detector that detects an in-focus position of the main subject in accordance with the maximum value;
An imaging control unit that controls the drive unit and the imaging unit in accordance with a shooting operation, and performs focus bracket shooting that repeats generation of image data while changing a focal position of the imaging optical system;
A peak number detection unit for detecting the number of maximum values detected by the maximum value detection unit;
When the peak number detection unit detects a plurality of maximum values, a condition setting unit that sets a focus bracket shooting execution condition according to the distribution status of the plurality of maximum values,
The imaging apparatus, wherein the imaging control unit performs the focus bracket imaging at least in the vicinity of the focus position of the main subject according to the focus bracket imaging execution condition set by the condition setting unit.
前記極大値に対応する前記撮像光学系の焦点位置であるピーク位置を検出するピーク位置検出部をさらに備えた請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, further comprising a peak position detection unit that detects a peak position that is a focal position of the imaging optical system corresponding to the maximum value. 前記主要被写体の合焦位置と前記主要被写体の合焦位置以外のピーク位置との間の距離を算出するピーク間距離算出部をさらに備え、
前記条件設定部は、前記ピーク間距離算出部の算出した距離に応じて前記フォーカスブラケット撮影実施条件を設定する請求項2に記載の撮像装置。
A peak-to-peak distance calculation unit that calculates a distance between the focus position of the main subject and a peak position other than the focus position of the main subject;
The imaging apparatus according to claim 2, wherein the condition setting unit sets the focus bracket shooting execution condition according to the distance calculated by the peak-to-peak distance calculation unit.
前記条件設定部は、前記距離に応じて前記撮像光学系の焦点位置の駆動範囲および前記生成部の出力する画像データの枚数のうち少なくとも1つを設定する請求項3に記載の撮像装置。   The imaging apparatus according to claim 3, wherein the condition setting unit sets at least one of a driving range of a focal position of the imaging optical system and the number of image data output from the generation unit according to the distance. 前記条件設定部は、前記距離が所定の閾値を上回る場合、前記主要被写体の合焦位置のみを前記撮像光学系の駆動範囲に設定する請求項4に記載の撮像装置。   The imaging apparatus according to claim 4, wherein the condition setting unit sets only a focus position of the main subject as a driving range of the imaging optical system when the distance exceeds a predetermined threshold. 前記条件設定部は、前記主要被写体の合焦位置と前記主要被写体の合焦位置以外のピーク位置との相対的位置関係を検出するピーク相対位置検出部をさらに備え、
前記ピーク相対位置検出部の検出した相対的位置関係に応じて前記フォーカスブラケット撮影実施条件を設定する請求項2に記載の撮像装置。
The condition setting unit further includes a peak relative position detection unit that detects a relative positional relationship between an in-focus position of the main subject and a peak position other than the in-focus position of the main subject,
The imaging apparatus according to claim 2, wherein the focus bracket photographing execution condition is set according to a relative positional relationship detected by the peak relative position detection unit.
前記条件設定部は、前記主要被写体の合焦位置が前記主要被写体の合焦位置以外のピーク位置よりも至近側に存在する場合、前記撮像光学系の焦点位置の駆動範囲を前記主要被写体の合焦位置よりも至近側に設定する請求項6に記載の撮像装置。   When the focus position of the main subject is closer to the peak position than the focus position of the main subject, the condition setting unit sets the drive range of the focus position of the imaging optical system to the focus range of the main subject. The imaging apparatus according to claim 6, wherein the imaging apparatus is set closer to the focal position. 前記条件設定部は、前記主要被写体の合焦位置が前記主要被写体の合焦位置以外のピーク位置よりも無限遠側に存在する場合、前記撮像光学系の焦点位置の駆動範囲を前記主要被写体の合焦位置よりも無限遠側に設定する請求項6または7に記載の撮像装置。   When the focus position of the main subject is on the infinity side with respect to a peak position other than the focus position of the main subject, the condition setting unit sets the drive range of the focus position of the imaging optical system of the main subject. The imaging apparatus according to claim 6, wherein the imaging apparatus is set on the infinity side with respect to the focus position. 前記主要被写体の合焦位置以外のピーク位置近傍の合焦曲線の幅を算出するピーク幅算出部をさらに備え、
前記条件設定部は、前記ピーク幅算出部の算出した幅に応じて前記フォーカスブラケット撮影実施条件を設定する請求項2に記載の撮像装置。
A peak width calculation unit for calculating a width of a focusing curve near a peak position other than the focusing position of the main subject;
The imaging apparatus according to claim 2, wherein the condition setting unit sets the focus bracket shooting execution condition according to a width calculated by the peak width calculation unit.
前記条件設定部は、前記幅に応じて前記撮像光学系の焦点位置の駆動範囲および前記生成部の出力する画像データの枚数のうち少なくとも1つを設定する請求項9に記載の撮像装置。   The imaging apparatus according to claim 9, wherein the condition setting unit sets at least one of a driving range of a focal position of the imaging optical system and the number of image data output from the generation unit according to the width. 被写界深度を算出する被写界深度算出部をさらに備え、
前記条件設定部は、前記被写界深度算出部の算出した被写界深度に応じて前記フォーカスブラケット撮影実施条件を設定する請求項1〜10のいずれかに記載の撮像装置。
A depth of field calculation unit for calculating the depth of field;
The imaging apparatus according to claim 1, wherein the condition setting unit sets the focus bracket shooting execution condition according to the depth of field calculated by the depth of field calculation unit.
撮影準備操作に応じて、被写体像を所定の結像面上に結像させる撮像光学系の焦点位置を所定の位置に変化させるごとに、前記結像面に結像された被写体像を光電変換して画像信号を出力するステップと、
前記出力された画像信号に基づいて画像データを生成するステップと、
前記画像データから合焦評価値を算出するステップと、
前記合焦評価値から極大値を検出するステップと、
前記極大値に応じて主要被写体の合焦位置を検出するステップと、
前記検出した極大値の個数を検出するステップと、
複数の極大値が検出された場合、前記複数の極大値の分布状況に応じてフォーカスブラケット撮影実施条件を設定するステップと、
撮影操作に応じて、前記設定したフォーカスブラケット撮影実施条件に従い、少なくとも前記主要被写体の合焦位置の近傍で前記フォーカスブラケット撮影を実施するステップと、
を含む撮像方法。
Each time the focus position of the imaging optical system that forms a subject image on a predetermined imaging surface is changed to a predetermined position according to the shooting preparation operation, the subject image formed on the imaging surface is photoelectrically converted. And outputting an image signal,
Generating image data based on the output image signal;
Calculating a focus evaluation value from the image data;
Detecting a local maximum value from the focus evaluation value;
Detecting a focus position of a main subject according to the maximum value;
Detecting the number of detected maximum values;
When a plurality of local maximum values are detected, setting focus bracket shooting execution conditions according to the distribution state of the local maximum values;
Performing the focus bracket shooting at least in the vicinity of the focus position of the main subject in accordance with the shooting operation according to the set focus bracket shooting execution condition;
An imaging method including:
請求項12に記載の撮像方法をコンピュータに実行させるための撮像プログラム。   An imaging program for causing a computer to execute the imaging method according to claim 12.
JP2007252247A 2007-09-27 2007-09-27 Imaging apparatus, method and program Expired - Fee Related JP4997043B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007252247A JP4997043B2 (en) 2007-09-27 2007-09-27 Imaging apparatus, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007252247A JP4997043B2 (en) 2007-09-27 2007-09-27 Imaging apparatus, method and program

Publications (2)

Publication Number Publication Date
JP2009086030A true JP2009086030A (en) 2009-04-23
JP4997043B2 JP4997043B2 (en) 2012-08-08

Family

ID=40659587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007252247A Expired - Fee Related JP4997043B2 (en) 2007-09-27 2007-09-27 Imaging apparatus, method and program

Country Status (1)

Country Link
JP (1) JP4997043B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009213123A (en) * 2008-02-05 2009-09-17 Ricoh Co Ltd Imaging device and method for its image processing
WO2012132486A1 (en) * 2011-03-31 2012-10-04 富士フイルム株式会社 Imaging device, imaging method, program, and program storage medium
CN102841486A (en) * 2012-09-03 2012-12-26 重庆大学 Automatic focusing method for digital optical imaging system based on bilateral forecasting intersection
JP2016046562A (en) * 2014-08-20 2016-04-04 株式会社東芝 Electronic apparatus, method and program
US10798284B2 (en) 2015-07-07 2020-10-06 Sony Corporation Image processing apparatus and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6347675B2 (en) 2014-06-06 2018-06-27 キヤノン株式会社 Image processing apparatus, imaging apparatus, image processing method, imaging method, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005128156A (en) * 2003-10-22 2005-05-19 Canon Inc Focusing device and method
JP2006227605A (en) * 2005-01-21 2006-08-31 Canon Inc Imaging apparatus, method of detecting focused position and recording medium readable by information processor
JP2006308813A (en) * 2005-04-27 2006-11-09 Victor Co Of Japan Ltd Imaging apparatus with focus bracket function
JP2007213047A (en) * 2006-01-13 2007-08-23 Nikon Corp Focusing apparatus, optical apparatus and focusing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005128156A (en) * 2003-10-22 2005-05-19 Canon Inc Focusing device and method
JP2006227605A (en) * 2005-01-21 2006-08-31 Canon Inc Imaging apparatus, method of detecting focused position and recording medium readable by information processor
JP2006308813A (en) * 2005-04-27 2006-11-09 Victor Co Of Japan Ltd Imaging apparatus with focus bracket function
JP2007213047A (en) * 2006-01-13 2007-08-23 Nikon Corp Focusing apparatus, optical apparatus and focusing method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009213123A (en) * 2008-02-05 2009-09-17 Ricoh Co Ltd Imaging device and method for its image processing
WO2012132486A1 (en) * 2011-03-31 2012-10-04 富士フイルム株式会社 Imaging device, imaging method, program, and program storage medium
US8648927B2 (en) 2011-03-31 2014-02-11 Fujifilm Corporation Imaging device, imaging method and program storage medium
JP5484631B2 (en) * 2011-03-31 2014-05-07 富士フイルム株式会社 Imaging apparatus, imaging method, program, and program storage medium
CN102841486A (en) * 2012-09-03 2012-12-26 重庆大学 Automatic focusing method for digital optical imaging system based on bilateral forecasting intersection
JP2016046562A (en) * 2014-08-20 2016-04-04 株式会社東芝 Electronic apparatus, method and program
US10798284B2 (en) 2015-07-07 2020-10-06 Sony Corporation Image processing apparatus and method

Also Published As

Publication number Publication date
JP4997043B2 (en) 2012-08-08

Similar Documents

Publication Publication Date Title
JP4444927B2 (en) Ranging apparatus and method
JP5322783B2 (en) IMAGING DEVICE AND CONTROL METHOD OF IMAGING DEVICE
US7706674B2 (en) Device and method for controlling flash
US8466992B2 (en) Image processing apparatus, image processing method, and program
TWI423664B (en) Imaging apparatus and exposure control method
JP5325966B2 (en) Imaging apparatus and imaging method
JP4997043B2 (en) Imaging apparatus, method and program
JP2013057761A (en) Distance measuring device, imaging device, and distance measuring method
JP6808333B2 (en) Display control device and method, and imaging device
JP2007233113A (en) Distance measuring device and method
JP2007235640A (en) Photographing device and method
US20070195190A1 (en) Apparatus and method for determining in-focus position
JP4949717B2 (en) In-focus position determining apparatus and method
KR101747304B1 (en) A digital photographing apparatus, a method for auto-focusing, and a computer-readable storage medium for executing the method
JP2004085936A (en) Camera
JP2011090143A (en) Focal point detecting device and camera
JP2013186293A (en) Image generation device and image display method
CN106993110B (en) Image pickup apparatus and control method thereof
JP6604216B2 (en) Imaging device
JP2008244991A (en) Imaging apparatus and imaging method
JP2012141549A (en) Imaging device
JP2007226141A (en) Photographing device and method
JP2005091456A (en) Digital camera
JP2011112741A (en) Camera
JP2003287673A (en) Focusing state detecting device for photographic lens

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110517

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110518

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110714

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: 20120426

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: 20120514

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150518

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4997043

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees