JP6463207B2 - Imaging apparatus, control method therefor, program, and storage medium - Google Patents

Imaging apparatus, control method therefor, program, and storage medium Download PDF

Info

Publication number
JP6463207B2
JP6463207B2 JP2015080347A JP2015080347A JP6463207B2 JP 6463207 B2 JP6463207 B2 JP 6463207B2 JP 2015080347 A JP2015080347 A JP 2015080347A JP 2015080347 A JP2015080347 A JP 2015080347A JP 6463207 B2 JP6463207 B2 JP 6463207B2
Authority
JP
Japan
Prior art keywords
focus
contrast evaluation
evaluation value
focus detection
value
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.)
Active
Application number
JP2015080347A
Other languages
Japanese (ja)
Other versions
JP2016200700A (en
Inventor
西尾 彰宏
彰宏 西尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2015080347A priority Critical patent/JP6463207B2/en
Publication of JP2016200700A publication Critical patent/JP2016200700A/en
Application granted granted Critical
Publication of JP6463207B2 publication Critical patent/JP6463207B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、コントラスト検知方式の焦点検出を行う撮像装置に関するものである。   The present invention relates to an imaging apparatus that performs focus detection using a contrast detection method.

従来からデジタルカメラのような撮像素子を有した撮像装置においては、自動的に焦点調整を行うようなオートフォーカス方法として、コントラスト検知方式が知られている。コントラスト検知方式では、撮像素子に結像される被写体像の画像信号から、指定された焦点検出範囲の一方向に走査を行い、高周波信号成分を抽出し、コントラスト値を算出する。そして、焦点検出範囲内でのコントラスト値の総和をコントラスト評価値とする。このようなコントラスト評価値を、フォーカス移動に伴うデフォーカス状態を変化させて順次算出することで、コントラスト評価値が最大となる焦点位置を最も画像の鮮鋭度が高い状態と判断して、合焦位置とする。   2. Description of the Related Art Conventionally, in an imaging apparatus having an imaging element such as a digital camera, a contrast detection method is known as an autofocus method for automatically performing focus adjustment. In the contrast detection method, scanning is performed in one direction of a designated focus detection range from an image signal of a subject image formed on an image sensor, a high-frequency signal component is extracted, and a contrast value is calculated. Then, the sum of the contrast values within the focus detection range is used as the contrast evaluation value. By sequentially calculating such a contrast evaluation value while changing the defocus state accompanying the focus movement, it is determined that the focus position where the contrast evaluation value is the maximum is the state where the sharpness of the image is the highest, and the in-focus state is obtained. Position.

また、近年のデジタルカメラは様々な撮影シーンに応じた機能が備わってきている。その一つとして、天体を撮影するための星空撮影モードのような撮影シーンモードが備わった機種も普及してきている。   In addition, recent digital cameras have functions corresponding to various shooting scenes. As one of them, models equipped with a shooting scene mode such as a starry sky shooting mode for shooting a celestial body are also becoming popular.

星空は物体距離が無限遠であるため、通常は撮影光学系のフォーカス位置を無限遠の位置に設定して撮影を行えば良い。特許文献1には、そのような星空撮影を行う場合に、焦点位置を無限遠状態にするような特定の撮影条件を設定することが提案されている。   Since the starry sky has an object distance of infinity, it is usually sufficient to shoot with the focus position of the photographic optical system set to the infinity position. Japanese Patent Application Laid-Open No. 2004-133830 proposes setting a specific imaging condition for setting the focal position to infinity when such starry sky imaging is performed.

しかしながら、星空の撮影は夜間に屋外で行うため、例えば撮像装置を暖かい室内から低温である屋外へ持ち出すことにより、撮像装置に急激な温度変化が生じる場合がある。そのような場合、温度変化に起因して、撮影光学系の鏡筒の膨張、収縮が起こり、無限遠のフォーカス位置が変化してしまう。また、連続した星空撮影では露光時間が長くなるため、イメージセンサの駆動による発熱等により、撮影光学系の鏡筒の経時的な温度変化が生じる。これを防止するため、特許文献2には、撮像装置内に温度計を配置して、その温度情報に基づいて無限遠へのフォーカス位置補正を行うような焦点位置補正方法が提案されている。   However, since shooting of the starry sky is performed outdoors at night, for example, when the imaging device is taken out of a warm room to a cold outdoor, a rapid temperature change may occur in the imaging device. In such a case, due to the temperature change, the lens barrel of the photographing optical system expands and contracts, and the focus position at infinity changes. Further, in continuous starry sky photography, since the exposure time becomes long, the temperature of the lens barrel of the photographing optical system changes with time due to heat generated by driving the image sensor. In order to prevent this, Patent Document 2 proposes a focus position correction method in which a thermometer is arranged in the imaging apparatus and focus position correction to infinity is performed based on the temperature information.

しかし、通常は焦点検出装置により正確な合焦位置を得ることが望ましく、星空の撮影に関しても焦点検出を行って高精度な合焦状態とすることが望まれている。特に天体撮影の専門家では無い一般ユーザーが星空の撮影を行う場合には、室内やカメラケースから温度環境の異なる屋外に撮像装置を取り出し、鏡筒温度の安定を待たずに直ぐに撮影を開始することが多い。この場合、温度変化により流動的に鏡筒が変形する状態で焦点位置補正を行っても、正確な無限遠状態にならないことになる。そのため、星空の撮影においても、なるべく本撮影時に近い状態でコントラスト検知方式による焦点調節を行うことが望まれる。   However, it is usually desirable to obtain an accurate in-focus position with a focus detection device, and it is also desired to perform focus detection for starry sky photography to achieve a highly accurate in-focus state. When a general user who is not an astronomical photographer shoots the starry sky, take the image pickup device indoors or outdoors in a different temperature environment and start shooting immediately without waiting for the lens barrel temperature to stabilize. There are many cases. In this case, even if the focus position correction is performed in a state where the lens barrel is fluidly deformed due to a temperature change, an accurate infinity state is not obtained. For this reason, it is desirable to perform focus adjustment using a contrast detection method in a state as close as possible to the actual photographing even when photographing a starry sky.

特開平4−15629号公報JP-A-4-15629 特許第4043250号公報Japanese Patent No. 4043250

低輝度である星像に対してコントラスト検知方式のフォーカス制御を行う場合、デフォーカス量の変化に対して山形状になるようなコントラスト評価値を取得するためには、長時間露光が必要となる。しかしながら、長時間露光を行っている最中に、高輝度の飛行機や流星や人工衛星等の飛翔物体が焦点検出範囲内を通過する場合がある。また、天候があまり良くない場合には、長時間露光の最中に星が雲に覆われたり、雲形状が変形するようなこともある。星像の焦点検出動作中に、デフォーカス状態の飛翔物体が焦点検出範囲を横切ると、その飛翔物体の輝度が高い場合には高コントラストを有した被写体として認識されてしまう。すなわち、合焦位置とは異なるフォーカス状態で、コントラスト評価値に極大値(部分的なピーク)が発生してしまう。   When performing contrast detection focus control on low brightness star images, long exposure is required to obtain a contrast evaluation value that has a mountain shape with respect to changes in the defocus amount. . However, flying objects such as high-intensity airplanes, meteors, and artificial satellites may pass through the focus detection range during long exposure. In addition, when the weather is not good, stars may be covered with clouds or the cloud shape may be deformed during long exposure. If the flying object in the defocus state crosses the focus detection range during the focus detection operation of the star image, if the brightness of the flying object is high, it is recognized as a subject having high contrast. That is, a maximum value (partial peak) occurs in the contrast evaluation value in a focus state different from the in-focus position.

また焦点検出領域に雲が発生していると、星像で取得されるコントラスト評価値と雲の輪郭で取得されるコントラスト評価値との競合が発生する。特に雲の輪郭はボケ状態(グラデーション状態)の輪郭成分を有しているため、雲の僅かな輪郭変化でコントラスト評価値が変動してしまう。そのため、コントラスト評価値の形状はノイズのように波を打った形状となる可能性が大きく、合焦位置が定まらない問題を生じる。   If a cloud is generated in the focus detection area, a conflict occurs between the contrast evaluation value acquired by the star image and the contrast evaluation value acquired by the outline of the cloud. In particular, since the outline of the cloud has an outline component in a blurred state (gradation state), the contrast evaluation value fluctuates due to a slight change in the outline of the cloud. Therefore, there is a high possibility that the shape of the contrast evaluation value becomes a waved shape such as noise, which causes a problem that the in-focus position cannot be determined.

本発明は上述した課題に鑑みてなされたものであり、その目的は、星空に対してコントラスト検知方式の焦点検出を行う場合に、突発的に発生する高輝度の飛翔物体や雲が原因となる誤焦点検出を防止することである。   The present invention has been made in view of the above-described problems, and its purpose is caused by a suddenly high-intensity flying object or cloud that is generated suddenly when performing contrast detection focus detection on the starry sky. This is to prevent misfocus detection.

本発明に係わる撮像装置は、星空に対して無限遠のピント位置の近傍でコントラスト検知方式により焦点検出を行う撮像装置であって、被写体像を撮像する撮像手段と、前記撮像手段の画面内に複数の焦点検出範囲を設定する設定手段と、撮影光学系のフォーカスレンズを、ピント位置を変化させる方向に移動させながら、それぞれのフォーカスレンズの位置で前記撮像手段により画像を撮像し、前記複数の焦点検出範囲ごとに、前記フォーカスレンズの位置に対応する前記画像のコントラスト評価値を算出する算出手段と、前記複数の焦点検出範囲ごとに、前記フォーカスレンズの位置と前記コントラスト評価値の関係を表わす曲線の形状に基づいて、前記コントラスト評価値の極大値を求め、前記曲線が複数の極大値を有するか否かを判定する判定手段と、前記判定手段により前記曲線が複数の極大値を有することが検出された焦点検出範囲については、該焦点検出範囲のコントラスト評価値を焦点検出に用いず、前記曲線が複数の極大値を持たない焦点検出範囲のコントラスト評価値を用いて焦点検出を行う焦点検出手段と、を備えることを特徴とする。   An imaging apparatus according to the present invention is an imaging apparatus that performs focus detection by a contrast detection method in the vicinity of a focus position at infinity with respect to the starry sky, and includes an imaging unit that captures a subject image and a screen of the imaging unit. While the setting means for setting a plurality of focus detection ranges and the focus lens of the photographing optical system are moved in the direction of changing the focus position, an image is picked up by the image pickup means at the position of each focus lens, The calculation means for calculating the contrast evaluation value of the image corresponding to the position of the focus lens for each focus detection range, and the relationship between the position of the focus lens and the contrast evaluation value for each of the plurality of focus detection ranges Based on the shape of the curve, a maximum value of the contrast evaluation value is obtained, and it is determined whether or not the curve has a plurality of maximum values. And a focus detection range in which the curve is detected by the determination unit to detect a plurality of maximum values, the contrast evaluation value of the focus detection range is not used for focus detection, and the curve has a plurality of maximum values. Focus detection means for performing focus detection using a contrast evaluation value of a focus detection range having no value.

本発明によれば、星空に対してコントラスト検知方式の焦点検出を行う場合に、突発的に発生する高輝度の飛翔物体や雲が原因となる誤焦点検出を防止することが可能となる。   According to the present invention, it is possible to prevent erroneous focus detection caused by a suddenly generated high-intensity flying object or cloud when performing contrast detection focus detection on the starry sky.

本発明の一実施形態に係わる撮像装置の構成を示すブロック図。1 is a block diagram illustrating a configuration of an imaging apparatus according to an embodiment of the present invention. 飛翔物体が出現した状態の星空の観念図。An illustration of the starry sky with flying objects. 図2における各焦点検出範囲でのコントラスト評価値形状を示した図。The figure which showed the contrast evaluation value shape in each focus detection range in FIG. 雲が掛った状態の星空の観念図。An illustration of the starry sky with clouds. 図4における各焦点検出範囲でのコントラスト評価値形状を示した図。The figure which showed the contrast evaluation value shape in each focus detection range in FIG. 図5のコントラスト評価値において雲が掛った焦点検出範囲での複数極大値判断の説明を行うための図。FIG. 6 is a diagram for explaining determination of a plurality of maximum values in a focus detection range in which a cloud is applied in the contrast evaluation value of FIG. 5. コントラスト評価値を加算して極大値を求める例を示した図。The figure which showed the example which calculates | requires local maximum value by adding contrast evaluation value. 各焦点検出範囲での合焦位置の平均を求める例を示した図。The figure which showed the example which calculates | requires the average of the focus position in each focus detection range. 焦点検出から合焦に至るまでの動作のフローチャート。The flowchart of operation | movement from a focus detection to focusing. 第1の複数極大値検出方法を示すフローチャート。The flowchart which shows the 1st multiple maximum value detection method. 第2の複数極大値検出方法を示すフローチャート。The flowchart which shows the 2nd multiple maximum value detection method.

以下、本発明の一実施形態について、添付図面を参照して詳細に説明する。図1は本発明の一実施形態に係わる撮像装置の構成を示すブロック図である。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 is a block diagram showing a configuration of an imaging apparatus according to an embodiment of the present invention.

図1において、撮像装置100は、撮像素子を有した撮像装置本体と撮影光学系とが一体となったデジタルカメラである。この撮像装置100は、コントラスト検知方式の焦点検出装置を有しており、公知の山登り方式の焦点検出を行う。そして、以下の説明におけるコントラスト評価値とは、設定した焦点検出範囲内で被写体画像を一定方向に走査したときの、被写体画像のエッジ成分から生成されるコントラスト値の積分量とする。   In FIG. 1, an imaging apparatus 100 is a digital camera in which an imaging apparatus main body having an imaging element and a photographing optical system are integrated. The imaging apparatus 100 includes a contrast detection type focus detection apparatus, and performs known hill-climbing focus detection. The contrast evaluation value in the following description is the integral amount of the contrast value generated from the edge component of the subject image when the subject image is scanned in a certain direction within the set focus detection range.

図1において、101は撮影光学系を示している。102は光彩絞りで、その開口径を調節することで撮影時の光量調節を行なうとともに、静止画撮影時には露光秒時調節用シャッターとしても機能する。103はフォーカスレンズ群で、光軸方向の移動により、焦点調節を行なう。104はC−MOSセンサやCCDで構成され、光電変換により画像信号を取得する撮像素子である。105は画像信号抽出部であり、撮像素子104の光電変換信号から画像信号を抽出する。   In FIG. 1, reference numeral 101 denotes a photographing optical system. A glow stop 102 adjusts the light amount at the time of shooting by adjusting the aperture diameter, and also functions as an exposure time adjustment shutter at the time of still image shooting. Reference numeral 103 denotes a focus lens group that performs focus adjustment by movement in the optical axis direction. Reference numeral 104 denotes an image sensor that is configured by a C-MOS sensor or a CCD and acquires an image signal by photoelectric conversion. An image signal extraction unit 105 extracts an image signal from a photoelectric conversion signal of the image sensor 104.

測光部106は、画像信号抽出部105により抽出された信号から指定された画像領域の測光評価を行う。露光量決定部107は、測光部106による測光の結果から、撮影のための適正な露光量の演算を行う。そして撮影画像が適正な露光状態になるようにゲイン調整部108により撮像素子の出力信号の強度を調整する。また同時に、絞り制御部109により光彩絞り102の開口径を制御する。そして、再び撮像素子104からの光電変換信号の変化に対して最適な露光量になるように上記の処理を繰り返し、フィードバック制御を行う。そして、最適な露光量の条件が決定された後に、記録用画像生成部110により、保存するための記録画像が生成され、画像記録部111でフラッシュメモリーやハードディスク等の記録媒体に記録される。   The photometry unit 106 performs photometric evaluation of an image area designated from the signal extracted by the image signal extraction unit 105. The exposure amount determination unit 107 calculates an appropriate exposure amount for photographing from the result of photometry by the photometry unit 106. Then, the gain adjustment unit 108 adjusts the intensity of the output signal of the image sensor so that the captured image is in an appropriate exposure state. At the same time, the aperture control unit 109 controls the aperture diameter of the iris diaphragm 102. Then, the above process is repeated so that the optimal exposure amount is obtained with respect to the change in the photoelectric conversion signal from the image sensor 104 again, and feedback control is performed. After the optimum exposure amount condition is determined, a recording image for storage is generated by the recording image generation unit 110 and is recorded on a recording medium such as a flash memory or a hard disk by the image recording unit 111.

次に焦点検出を行って合焦動作を行うまでの手順について説明する。先ず画像信号抽出部105で得られた画像信号について、焦点検出範囲決定部112によって焦点検出を行う焦点検出範囲を決定する。焦点検出範囲は、撮像装置に組み込まれているアルゴリズムに沿って自動的に決定する方法でも良く、撮影者が手動により指定する方法でも良い。なお、本実施形態における星空の焦点検出時には、焦点検出範囲として、特定の分割領域が設定されるものとして以下説明する。   Next, the procedure from focus detection to focusing operation will be described. First, for the image signal obtained by the image signal extraction unit 105, the focus detection range determination unit 112 determines a focus detection range in which focus detection is performed. The focus detection range may be automatically determined according to an algorithm incorporated in the imaging apparatus, or may be manually designated by the photographer. Note that the following description will be made assuming that a specific divided region is set as the focus detection range when the starry sky focus is detected in the present embodiment.

焦点検出範囲が決定された後に、設定された焦点検出範囲について、コントラスト評価値算出部113によりコントラスト評価値の算出を行う。この時、フォーカスレンズ群103の走査によるコントラスト評価値の変化数が規定数分得られている場合には、合焦判定を行うためのコントラスト評価値の情報が整ったと判断する。そして、コントラスト評価値形状判定部114により、コントラスト評価値の変化形状の極大値となるようなフォーカス位置を判定するとともに、複数極大値検出方法を用いてコントラスト評価値の変化形状に極大値が複数存在していないかを検出する。なお、複数極大値検出方法が必要である理由とその内容に関しては後述する。   After the focus detection range is determined, the contrast evaluation value calculation unit 113 calculates the contrast evaluation value for the set focus detection range. At this time, if the specified number of changes in contrast evaluation values due to scanning of the focus lens group 103 have been obtained, it is determined that information on the contrast evaluation values for performing in-focus determination has been prepared. Then, the contrast evaluation value shape determination unit 114 determines a focus position at which the maximum shape of the change shape of the contrast evaluation value is obtained, and a plurality of maximum values are used for the change shape of the contrast evaluation value using the multiple maximum value detection method. Detect if it does not exist. The reason why the multiple maximum value detection method is necessary and the contents thereof will be described later.

そして、コントラスト評価値が極大値となるフォーカス位置が探索された場合には、合焦位置決定部115により各フォーカス位置で得られているコントラスト評価値の補間計算を行って正確なコントラスト評価値の最大値を算出する。この最大値に対応するフォーカス位置を探索した後に、フォーカス駆動設定部116により合焦のためのフォーカス駆動量を求めて、フォーカス駆動部121によりフォーカスレンズ群103を駆動して合焦状態にする。   When a focus position at which the contrast evaluation value becomes a maximum value is searched, the focus position determination unit 115 performs an interpolation calculation of the contrast evaluation value obtained at each focus position to obtain an accurate contrast evaluation value. Calculate the maximum value. After searching for the focus position corresponding to this maximum value, the focus drive setting unit 116 obtains the focus drive amount for focusing, and the focus drive unit 121 drives the focus lens group 103 to bring it into focus.

一方、コントラスト評価値の変化形状に明確な最大値が見つからなかった場合には、合焦位置決定部115で合焦位置を決定する動作は行わない。ここで明確な最大値を判別する方法としては、例えばコントラスト評価値の最大値と最小値の差分値に閾値を設けてその比較結果で判定するような方法がある。そして、フォーカス駆動設定部116において現状のフォーカス状態に応じて引き続きフォーカス駆動を継続してコントラスト評価値計算を行うか、またはフォーカス域の全体駆動により被写体をサーチする状態に移行するかを決定する。   On the other hand, when a clear maximum value is not found in the change shape of the contrast evaluation value, the operation for determining the focus position by the focus position determination unit 115 is not performed. Here, as a method for discriminating a clear maximum value, for example, there is a method in which a threshold value is provided for a difference value between the maximum value and the minimum value of the contrast evaluation value and the determination result is used. Then, the focus drive setting unit 116 determines whether to continue focus drive according to the current focus state and perform contrast evaluation value calculation, or to shift to a state of searching for an object by driving the entire focus area.

次に、撮影モード選択部118により、本実施形態における星空の撮影モードが選択された場合での合焦動作に関して説明を行う。まず、撮影モード選択部118により星空の撮影モードが選択されると、露出方法選択部117により星空での焦点検出のための最適な露出方法を決定する。   Next, the focusing operation when the shooting mode selection unit 118 selects the shooting mode of the starry sky in the present embodiment will be described. First, when the shooting mode selection unit 118 selects a starry sky shooting mode, the exposure method selection unit 117 determines an optimal exposure method for focus detection in the starry sky.

露出方法選択部117で得られた露出条件に基づいて、露光量決定部107がゲイン調整部108と絞り・シャッター制御部109とを制御する。ここでゲイン調整部108は、ゲインを上げ過ぎることで画像信号にノイズが発生して星空への合焦精度に支障をきたさないようにして、ゲイン量を調整する。そして、絞り・シャッター制御部109は、光彩絞り102を開放状態に設定するとともに、星像に対して合焦検知が行えるような露光時間になるようにシャッターの開放時間を調整する。   Based on the exposure condition obtained by the exposure method selection unit 117, the exposure amount determination unit 107 controls the gain adjustment unit 108 and the aperture / shutter control unit 109. Here, the gain adjustment unit 108 adjusts the gain amount so that noise is not generated in the image signal due to an excessive increase in gain and the focusing accuracy on the starry sky is not affected. Then, the aperture / shutter control unit 109 sets the iris diaphragm 102 to the open state and adjusts the shutter open time so that the exposure time is such that focus detection can be performed on the star image.

なお、星空を撮影する場合は、山登り方式のコントラスト検知を行うためのフォーカスレンズの走査幅は、無限遠の近傍のピント位置を中心にして設定すれば良い。しかしながら、前述したように撮影光学系の鏡筒に温度変化が生じると、鏡筒の膨張や収縮により撮影レンズ群の相対位置が変化し、ピント変化が起きる。そのため、鏡筒内に設置された鏡筒温度取得部119(温度計)により鏡筒温度を取得し、その温度情報に基づいて、無限フォーカス位置補正部120により、物体距離を無限遠とする補正情報を取得する。そして、その補正情報をフォーカス駆動設定部116に送り、補正された無限遠の位置がフォーカスレンズの走査範囲の中心になるようにフォーカスレンズの走査範囲を決定する。そして決定したフォーカス走査範囲を用いて、予め設定されている焦点検出範囲におけるコントラスト評価値を取得する動作を行う。   When photographing the starry sky, the scanning width of the focus lens for performing the hill-climbing contrast detection may be set around the focus position near infinity. However, as described above, when a temperature change occurs in the lens barrel of the photographic optical system, the relative position of the photographic lens group changes due to expansion and contraction of the lens barrel, and a focus change occurs. Therefore, the lens barrel temperature is acquired by the lens barrel temperature acquisition unit 119 (thermometer) installed in the lens barrel, and the object distance is corrected to infinity by the infinite focus position correction unit 120 based on the temperature information. Get information. Then, the correction information is sent to the focus drive setting unit 116, and the focus lens scanning range is determined so that the corrected infinity position is the center of the focus lens scanning range. Then, using the determined focus scanning range, an operation of acquiring a contrast evaluation value in a preset focus detection range is performed.

次に、取得したフォーカスレンズ103の位置変化に対してのコントラスト評価値の変化の形状を、コントラスト評価値形状判定部114で判定し、合焦位置決定部115により、有効となる焦点検出範囲を選択する。この詳細については後述する。以上の動作により、有効とした焦点検出範囲でのコントラスト評価値の結果を用いることで、星空への精度の良い合焦動作を行うことができる。   Next, the contrast evaluation value shape determining unit 114 determines the shape of the contrast evaluation value change with respect to the acquired position change of the focus lens 103, and the focus position determining unit 115 determines the effective focus detection range. select. Details of this will be described later. By using the result of the contrast evaluation value in the effective focus detection range by the above operation, it is possible to perform an accurate focusing operation to the starry sky.

次に予め設定されている複数の焦点検出範囲において、得られたコントラスト評価値を用いる場合とそうでない場合の判定に関して説明する。   Next, a description will be given of determination when the obtained contrast evaluation value is used and when it is not used in a plurality of focus detection ranges set in advance.

図2は、星空に対してコントラスト検知方式での焦点検出動作を行った場合の被写体の状況を示す図である。ここでは、コントラスト検知方式の焦点検出を行うためにフォーカス位置を変化させながら、各フォーカス位置で長秒露光を行ってコントラスト評価画像を取得している最中に、画面内に高輝度光源を有した飛行機(飛行体)が通過した状況を表している。   FIG. 2 is a diagram illustrating the state of the subject when the focus detection operation is performed on the starry sky using the contrast detection method. Here, a high-intensity light source is provided in the screen while a contrast evaluation image is acquired by performing a long-second exposure at each focus position while changing the focus position to perform focus detection by contrast detection. It shows the situation that the airplane (aircraft) that passed through.

図2において、STで示した十字形状は星像を表している。F1〜F9は設定されている焦点検出範囲を示し、PLは飛行機を、Lは飛行機が画面内に通過した際の飛行機の翼灯の軌跡を示している。具体的には、コントラスト評価値を取得中に、F2、F3、F6で示した焦点検出範囲を飛行機が通過して、翼灯の軌跡が写り込んでいる状態を示している。   In FIG. 2, the cross shape indicated by ST represents a star image. F1 to F9 indicate a set focus detection range, PL indicates an airplane, and L indicates a trajectory of an airplane wing light when the airplane passes through the screen. Specifically, while the contrast evaluation value is being acquired, the airplane passes through the focus detection range indicated by F2, F3, and F6, and the trajectory of the wing lamp is reflected.

図3は、図2の焦点検出状態において、各焦点検出範囲F1〜F9に対応したコントラスト評価値の変化形状のグラフを曲線Cで示したものである。ここで図3のグラフの縦軸はコントラスト評価値を示し、グラフの横軸はフォーカスレンズ群103を走査してコントラスト評価値を取得した時のフォーカス位置を示している。   FIG. 3 shows a graph of a change shape of the contrast evaluation value corresponding to each of the focus detection ranges F1 to F9 in the focus detection state of FIG. Here, the vertical axis of the graph of FIG. 3 indicates the contrast evaluation value, and the horizontal axis of the graph indicates the focus position when the focus lens group 103 is scanned to acquire the contrast evaluation value.

ここで、図2においては、フォーカスレンズが図3のグラフの横軸の4番目のフォーカス位置にある場合に、星空が最良の合焦状態になるものとする。そして、フォーカスレンズが図3のグラフの横軸の6番目のフォーカス位置にある場合に、露光動作中に飛行機がF2、F3、F6の焦点検出範囲を通過したものとする。   Here, in FIG. 2, it is assumed that the starry sky is in the best focus state when the focus lens is at the fourth focus position on the horizontal axis of the graph of FIG. When the focus lens is at the sixth focus position on the horizontal axis of the graph of FIG. 3, it is assumed that the airplane passes through the focus detection ranges of F2, F3, and F6 during the exposure operation.

図3のコントラスト評価値の形状の説明を続けると、各焦点検出範囲F1〜F9において星像STのみが存在している焦点検出範囲F1、F4、F5、F7〜F9はグラフの横軸の4番目のフォーカス位置でコントラスト評価値が極大値となっている。そのため、星像への正確な合焦位置の検知を行なえる。しかしながら、フォーカスレンズが合焦状態から外れた6番目のフォーカス位置にいるときに飛行機が通過した焦点検出範囲F2、F3、F6では、星像に対して輝度が高い翼灯が線状の軌跡として画像記録される。そのため、この翼灯は焦点が合っていない画像であるにも関わらず、エッジ成分の多さと背景との輝度差が大きいことにより、コントラスト評価値が高くなる。すなわち、星像が合焦状態の画像のコントラスト評価値よりも、ボケ状態の翼灯軌跡がある画像のコントラスト評価値の方が高くなる。   Continuing the description of the shape of the contrast evaluation value in FIG. 3, the focus detection ranges F1, F4, F5, and F7 to F9 in which only the star image ST exists in each focus detection range F1 to F9 are 4 on the horizontal axis of the graph. The contrast evaluation value is a maximum value at the second focus position. Therefore, it is possible to accurately detect the in-focus position on the star image. However, in the focus detection ranges F2, F3, and F6 through which the airplane has passed when the focus lens is at the sixth focus position out of focus, the wing lamp having a higher brightness than the star image is a linear locus. An image is recorded. Therefore, despite the fact that this wing light is an out-of-focus image, the contrast evaluation value is increased due to the large difference in luminance between the edge component and the background. That is, the contrast evaluation value of an image having a wing lamp locus in a blurred state is higher than the contrast evaluation value of an image in which the star image is in focus.

飛行機の翼灯軌跡が画像信号として取得された焦点検出範囲F2、F3、F6では、6番目もしくは6番目に近いフォーカス位置でコントラスト評価値が極大値をとるため、星像に対してはピントが外れた状態を合焦状態と誤判定してしまうことになる。つまり、全ての焦点検出範囲におけるコントラスト評価値や合焦位置判定結果を用いて最終的な星空への合焦位置を決定すると、合焦精度を低下させる場合がある。   In the focus detection ranges F2, F3, and F6 in which the airplane wing light trajectory is acquired as an image signal, the contrast evaluation value has a maximum value at the sixth or near sixth focus position. A state of being out of focus is erroneously determined as an in-focus state. That is, if the final focus position on the starry sky is determined using the contrast evaluation values and focus position determination results in all focus detection ranges, the focus accuracy may be reduced.

この問題を回避するためには、複数極大値検出方法を用いて、設定した各焦点検出範囲におけるフォーカス位置変化に対するコントラスト評価値の変化形状が複数の極大値を持つか否かの検出を行う。そして、極大値を複数有している焦点検出範囲については、その焦点検出範囲でのコントラスト評価値結果は、誤焦点検出を招くものとして合焦位置検出には用いない。そして、残った焦点検出範囲でのコントラスト評価値を用いて、星空に対する合焦状態となるようなフォーカス位置を探索し、星空撮影を行うための最終合焦位置とする。   In order to avoid this problem, it is detected whether or not the change shape of the contrast evaluation value with respect to the focus position change in each set focus detection range has a plurality of maximum values using a plurality of maximum value detection method. For the focus detection range having a plurality of maximum values, the contrast evaluation value result in the focus detection range is not used for in-focus position detection because it causes erroneous focus detection. Then, using the contrast evaluation value in the remaining focus detection range, a focus position that is in a focused state with respect to the starry sky is searched for, and is set as a final focus position for performing starry sky photographing.

以上により、コントラスト検知方式の焦点検出動作中に、突発的な高輝度の飛翔物体の侵入による誤合焦現象を防止することが可能となる。また以上説明したようなコントラスト評価値の変化形状から複数の極大値を検出する方法を、第1の複数極大値検出方法と呼ぶことにする。なお、飛行機の他に露光中に画面内を通過して星像への合焦の妨げになる飛翔物体としては、流星や人工衛衛星等が考えられる。   As described above, it is possible to prevent an in-focus phenomenon due to sudden intrusion of a high-intensity flying object during the focus detection operation of the contrast detection method. The method for detecting a plurality of maximum values from the change shape of the contrast evaluation value as described above will be referred to as a first plurality of maximum value detection method. In addition to airplanes, meteors, artificial satellites, and the like are conceivable as flying objects that pass through the screen during exposure and interfere with focusing on the star image.

次に、星空への合焦動作を行うにあたり、コントラスト評価値の変化形状を乱す要因として、飛翔物体の他に雲が考えられる。雲の形状はエッジ成分がボケたような輪郭形状であるものが大部分である。そのため、雲に対してのコントラスト評価値は、デフォーカスを大きくしても、デフォーカスの変化によるボケ成分と、もともと雲が有している輪郭形状のボケ成分とが混在して、大きなボケ状態変化が発生し難くなり、コントラスト評価値の変化は鈍くなる。そのため、コントラスト検知を行う際にデフォーカス量の変化を与えても、コントラスト評価値の変化形状が、明確な極大値を有する山形状を形成し難くなる。   Next, in performing the focusing operation on the starry sky, clouds other than flying objects can be considered as factors that disturb the change shape of the contrast evaluation value. Most of the cloud shapes have a contoured shape with blurred edge components. Therefore, even if the defocus is increased, the contrast evaluation value for the cloud has a large blurring state because the blur component due to the change in defocus and the blur component of the contour shape originally possessed by the cloud are mixed. The change hardly occurs and the change in the contrast evaluation value becomes dull. Therefore, even if a change in the defocus amount is given when performing contrast detection, it is difficult to form a mountain shape in which the change shape of the contrast evaluation value has a clear maximum value.

また、コントラスト評価値を取得している最中に雲の形状が変化することで、雲の輪郭像特性が変化してしまい、そのエッジ成分変化によって、コントラスト評価値の変化形状に乱れが生じることもある。特に画面全体に薄雲が掛った状態においては、星空のコントラスト状態が時間的に変化するため、コントラスト評価値の変化形状がノイズ成分に近いような形状となってしまい、波打つような複数の極大値を有するようになる場合もある。   In addition, when the cloud shape changes while acquiring the contrast evaluation value, the contour image characteristics of the cloud change, and the change of the edge component causes disturbance in the change shape of the contrast evaluation value. There is also. In particular, in the state where thin clouds are applied to the entire screen, the contrast state of the starry sky changes over time, so the change shape of the contrast evaluation value becomes a shape close to the noise component, and multiple maximal waves It may also have a value.

そして、このような状態においては、先に説明した第1の複数極大値検出方法で複数極大値を検出すると、全ての焦点検出範囲において複数極大値が存在するとの検出結果を得てしまう。そのため、結果として全ての焦点検出範囲でのコントラスト評価値を用いないことになってしまい、星空に対して焦点検出動作が行えないことになってしまう。   In such a state, if a plurality of maximum values are detected by the first method for detecting a plurality of maximum values described above, a detection result that there are a plurality of maximum values in all focus detection ranges is obtained. Therefore, as a result, the contrast evaluation values in the entire focus detection range are not used, and the focus detection operation cannot be performed on the starry sky.

そこで、星像で得られるコントラスト評価値と雲の輪郭によって得られるコントラスト評価値が混在するような焦点検出範囲においては、第1の複数極大値検出方法とは判定基準が異なる第2の複数極大値検出方法を用いる。これにより、雲の輪郭によって得られるコントラスト評価値は用いないようにして、星像で得られるコントラスト評価値結果のみで合焦位置を取得するようにする。   Therefore, in the focus detection range where the contrast evaluation value obtained by the star image and the contrast evaluation value obtained by the outline of the cloud are mixed, the second multiple maximum is different from the first multiple maximum detection method. A value detection method is used. Thus, the contrast evaluation value obtained from the outline of the cloud is not used, and the in-focus position is obtained only from the contrast evaluation value result obtained from the star image.

図4は、星空への焦点検出時に雲が焦点検出範囲の一部分に掛った状態を示したものである。さらに、雲の形状は焦点検出を行うための露光中に変形するものとする。図2と同様に、STは星像を示し、F1〜F9は分割した焦点検出範囲を示す。また、CLは雲を表しており、図4の状態は雲CLが焦点検出範囲F5、F6、F8、F9に侵入している状態を示している。   FIG. 4 shows a state where a cloud is applied to a part of the focus detection range at the time of detecting the focus on the starry sky. Further, it is assumed that the cloud shape is deformed during exposure for focus detection. Similarly to FIG. 2, ST indicates a star image, and F1 to F9 indicate divided focus detection ranges. CL represents a cloud, and the state of FIG. 4 shows a state in which the cloud CL has entered the focus detection ranges F5, F6, F8, and F9.

図5は、図2と図3の関係と同様に、図4で設定されている各焦点検出範囲F1〜F9に対応したコントラスト評価値の変化形状Cを示している。またP1、P2は、詳細内容については後述するが、星空の真の合焦位置P1と雲が原因となる偽の極大値位置P2を示している。ここで、図3と同様に、縦軸はコントラスト評価値を示し、横軸はフォーカスレンズが走査されるフォーカス位置を示している。また、フォーカス位置が4の位置が、星像STに対して最良の合焦状態になるものとする。   5 shows the change shape C of the contrast evaluation value corresponding to each of the focus detection ranges F1 to F9 set in FIG. 4, similarly to the relationship between FIG. 2 and FIG. P1 and P2 indicate the true in-focus position P1 of the starry sky and the false maximum position P2 caused by clouds, although the details will be described later. Here, as in FIG. 3, the vertical axis indicates the contrast evaluation value, and the horizontal axis indicates the focus position where the focus lens is scanned. In addition, it is assumed that the focus position 4 is the best in-focus state with respect to the star image ST.

焦点検出範囲F1〜F4、F7は、雲が侵入していない状態の焦点検出範囲であり、焦点検出範囲に存在している星像STのみのコントラスト評価値の変化が検知されるため、明瞭な山形状のコントラスト評価値の変化形状が取得されている。   The focus detection ranges F1 to F4 and F7 are focus detection ranges in a state where no cloud has entered, and a change in the contrast evaluation value of only the star image ST existing in the focus detection range is detected. The change shape of the mountain-shaped contrast evaluation value is acquired.

一方、焦点検出範囲F5、F6、F8、F9には雲が侵入しているため、前述したように、雲のボケ形状のエッジ成分についてコントラスト評価値を取得することになり、コントラスト評価値が明瞭な山形状にならない。   On the other hand, since the cloud has entered the focus detection ranges F5, F6, F8, and F9, as described above, the contrast evaluation value is acquired for the edge component having the cloud blur shape, and the contrast evaluation value is clear. It does not become a mountain shape.

その中で、焦点検出範囲F5では雲に掛っていない星像が存在しているため、星像に対して合焦状態にあるフォーカス位置4でコントラスト評価値形状が極大値P1をとる。しかしながら、星像が合焦状態から外れてデフォーカス量が大きくなってくると、星像がボケ状態になりコントラスト評価値が低くなる。他方、雲が時系列的な変形によってエッジ成分量の多い状態になると雲が要因となるコントラスト評価値の影響が大きくなってくる。そのため、星像の合焦位置とは異なる図5のP2のフォーカス位置で、P1とは異なる雲が要因の第2のコントラスト評価値の極大値を発生してしまう。   Among them, in the focus detection range F5, there is a star image that is not covered with a cloud, and therefore, the contrast evaluation value shape takes the maximum value P1 at the focus position 4 in the focused state with respect to the star image. However, when the star image is out of focus and the defocus amount increases, the star image becomes blurred and the contrast evaluation value decreases. On the other hand, when the cloud has a large amount of edge components due to time-series deformation, the influence of the contrast evaluation value caused by the cloud increases. Therefore, at the focus position of P2 in FIG. 5 different from the in-focus position of the star image, a maximum value of the second contrast evaluation value is generated due to a cloud different from P1.

特に薄曇り状態のように、画面一面に雲が掛っていて星像に雲が掛ったり外れたりするような状態では、全ての焦点検出範囲が上記のF5のような複数極大値を有したコントラスト評価値の変化形状になる可能性が高い。そのため、単純に複数極大値が検出された焦点検出範囲のコントラスト評価値を用いないことは晴天状態である星空に対しては有効であるが、雲が発生している星空に適用すると、全ての焦点検出範囲でのコントラスト評価値を用いないことになる可能性が高くなる。   In particular, in a state where a cloud is applied to the entire surface of the screen and a star image is clouded or detached, such as in a lightly cloudy state, the contrast evaluation in which all focus detection ranges have a plurality of maximum values such as F5 described above. There is a high possibility that the value changes. Therefore, simply not using the contrast evaluation value of the focus detection range where multiple maxima are detected is effective for a starry sky in a clear sky state, but when applied to a starry sky where clouds are generated, There is a high possibility that the contrast evaluation value in the focus detection range will not be used.

そこで、焦点検出範囲F6、F8、F9は信頼性の低いコントラスト評価値として合焦位置検出に用いないことが望ましいが、焦点検出範囲F5のように完全には雲に掛っていない星像が含まれるコントラスト評価値は合焦位置検出に用いることが望ましい。   Therefore, it is desirable that the focus detection ranges F6, F8, and F9 are not used for in-focus position detection as a low-reliability contrast evaluation value, but a star image that is not completely covered with a cloud like the focus detection range F5 is included. It is desirable to use the contrast evaluation value for detecting the in-focus position.

そのためには、星像が存在している状態においては、星像の合焦状態近辺のコントラスト評価値は、同一焦点検出範囲内の雲によるコントラスト評価値よりも大きな値を発生すると想定する。そして、コントラスト評価値の変化形状に複数極大値があった場合でも、星像のコントラスト成分によってコントラスト評価値の変化形状に極大値を得ていると想定し、そのコントラスト評価値を用いて最終合焦位置を判定することが望ましい。   For this purpose, it is assumed that in the state where the star image exists, the contrast evaluation value in the vicinity of the in-focus state of the star image generates a value larger than the contrast evaluation value by the clouds in the same focus detection range. Even if there are multiple maximum values in the contrast evaluation value change shape, it is assumed that the maximum value is obtained in the contrast evaluation value change shape by the contrast component of the star image. It is desirable to determine the focal position.

そのための方法として、本実施形態では、複数極大値がある場合に、コントラスト評価値の上位値の抽出を行う。そして抽出された上位値のコントラスト評価値の間に上位抽出されていないコントラスト評価値が存在するか否かを判定する。抽出された上位値のコントラスト評価値の間に上位抽出されていないコントラスト評価値が存在する状態であった場合には、複数極大値を有すると判定する。   As a method for this, in this embodiment, when there are a plurality of maximum values, the upper value of the contrast evaluation value is extracted. Then, it is determined whether or not there is a contrast evaluation value that has not been extracted at the upper level among the extracted upper-level contrast evaluation values. If there is a contrast evaluation value that has not been extracted at the upper level among the extracted upper-level contrast evaluation values, it is determined that there are multiple maximum values.

次に上記の判定を行う方法に関して図6を用いて説明する。図6は図5において、雲が侵入している焦点検出範囲F5、F6、F8、F9のコントラスト評価値の変化特性を詳細に示したものである。以下に、上記の第2の複数極大値検出方法による各焦点検出範囲での複数極大値の有無判定方法について説明する。   Next, a method for performing the above determination will be described with reference to FIG. FIG. 6 shows in detail the change characteristics of the contrast evaluation values in the focus detection ranges F5, F6, F8, and F9 into which the cloud has entered in FIG. Hereinafter, a method for determining the presence / absence of a plurality of maximum values in each focus detection range according to the second plurality of maximum values detection method will be described.

まず、図6ではコントラスト評価値の上位値を全7箇所のフォーカス位置中の第4位まで抽出し、上記の複数極大値判定を行うものとする。なお、上位値の個数は、フォーカス移動幅によるデフォーカス量の変化量や、事前に星空の状態が検知可能である場合にはその状態によって変更してもかまわない。また、図6において、各フォーカス位置で得られたコントラスト評価値は丸形状のマーカーで示されており、マーカーに記した数値はコントラスト評価値の上位第4位までの順位を示している。   First, in FIG. 6, it is assumed that the upper value of the contrast evaluation value is extracted up to the fourth position among all seven focus positions, and the above-mentioned multiple maximum value determination is performed. Note that the number of upper values may be changed depending on the amount of change in the defocus amount due to the focus movement width, or if the starry sky state can be detected in advance. In FIG. 6, the contrast evaluation values obtained at the respective focus positions are indicated by circular markers, and the numerical values indicated on the markers indicate the ranks up to the fourth highest contrast evaluation value.

上記の方法に則って複数極大値の有無判定を行うと、焦点検出範囲F5はコントラスト評価値の上位第1位〜4位におけるフォーカス位置は隣接した状態となっている。そして、この状態の場合、第2の複数極大値検出方法では、複数極大値は無いものと判定する。そして、この焦点検出範囲でのコントラスト評価値は用いるものとする。他方、焦点検出範囲F6、F8、F9はコントラスト評価値の上位第1位〜4位でのフォーカス位置間には順位第5位以下のコントラスト評価値が入り込んでいる状態となっている。よって、第2の複数極大値検出方法では、それぞれの焦点検出範囲において複数極大値が有るものと判断する。そのため、この焦点検出範囲におけるコントラスト評価値は合焦評価対象として用いないものとする。   When the presence / absence determination of a plurality of maximum values is performed according to the above method, the focus detection range F5 is in a state where the focus positions at the first to fourth ranks of the contrast evaluation value are adjacent. In this state, the second multiple maximum value detection method determines that there are no multiple maximum values. The contrast evaluation value in this focus detection range is used. On the other hand, the focus detection ranges F6, F8, and F9 are in a state in which the contrast evaluation value of the fifth or lower rank is inserted between the first to fourth focus positions of the contrast evaluation value. Therefore, in the second multiple maximum value detection method, it is determined that there are multiple maximum values in each focus detection range. Therefore, the contrast evaluation value in this focus detection range is not used as a focus evaluation target.

また、図6の焦点検出範囲F5において合焦位置を求めるには、コントラスト評価値の極大値を単純に合焦位置としても良いが、多項式近似補間で極大値を求めても良い。また、図中Gで示した位置を合焦位置とするようなコントラスト評価値の重心位置を求める方式を採用しても良い。この場合は星像の真の合焦位置である4番目のフォーカス位置に対して若干ズレを生じるが、ほぼ問題の無い位置を合焦位置と判断することになる。以上のような方法を用いることで、星空に雲が掛った状態においても、星像に対して精度の良い合焦を行うことが可能となる。   In order to obtain the in-focus position in the focus detection range F5 in FIG. 6, the maximum value of the contrast evaluation value may be simply set as the in-focus position, but the maximum value may be obtained by polynomial approximation interpolation. In addition, a method of obtaining the position of the center of gravity of the contrast evaluation value such that the position indicated by G in the figure is the in-focus position may be employed. In this case, a slight shift occurs with respect to the fourth focus position, which is the true focus position of the star image, but a position having almost no problem is determined as the focus position. By using the method as described above, it is possible to focus on the star image with high accuracy even in a state where the starry sky is clouded.

以上、星空へのコントラスト検知方式の焦点検出に関して、個々の焦点検出範囲でのコントラスト評価値から複数極大値を検出し、その結果から焦点検出範囲でのコントラスト評価値を用いるかどうかの判定を行う2種類の複数極大値検出方法について説明した。ここで、実際に2種類の複数極大値検出方法を用いる場合、星空の状態に応じて、この2種類を使い分ける必要がある。そのためには、まず星空を測光して、星空の状態を推定すると良い。なお、測光時のフォーカス状態は、撮像装置が無限遠とするプリセットされたフォーカス位置に設定すれば良いものとする。   As described above, regarding the focus detection of the contrast detection method for the starry sky, a plurality of maximum values are detected from the contrast evaluation values in the individual focus detection ranges, and it is determined whether or not the contrast evaluation values in the focus detection range are used from the results. Two types of multiple maximum value detection methods have been described. Here, when two types of multiple maximum value detection methods are actually used, it is necessary to use the two types depending on the state of the starry sky. For that purpose, it is good to first measure the starry sky and estimate the starry sky. Note that the focus state at the time of photometry may be set to a preset focus position at which the imaging apparatus is set to infinity.

測光値を用いて星空の状態を推測する場合、次のようなことが考えられる。例えば、晴天の星空に対し、雲が存在している星空には雲の白色成分が多く存在しているため、空全体の輝度値が高くなる傾向がある。そこで、所定の測光閾値を設定しておき、閾値以上の測光値であった場合には、測光を行った焦点検出領域には雲が存在していると判断することができる。   When estimating the starry sky using photometric values, the following can be considered. For example, in a starry sky where there is a cloud against a clear sky, there are many white components of the cloud, so the brightness value of the entire sky tends to increase. Accordingly, a predetermined photometric threshold value is set, and if the photometric value is equal to or greater than the threshold value, it can be determined that a cloud exists in the focus detection area where the photometry is performed.

そのため、閾値よりも測光値が小さい場合は、その焦点検出範囲の星空は晴天状態であり、コントラスト評価値に発生する複数極大値は飛翔物体以外の要素が無いと判断して、前述した第1の複数極大値検出方法を選択する。他方、測光値が閾値よりも大きい場合は、星空に雲が掛った状態であると判断して、前述した第2の複数極大値検出方法を選択する。   Therefore, when the photometric value is smaller than the threshold value, the starry sky in the focus detection range is in a clear sky state, and it is determined that there are no elements other than the flying object in the multiple maximum values generated in the contrast evaluation value. Select multiple local maximum detection method. On the other hand, if the photometric value is larger than the threshold value, it is determined that the starry sky is clouded, and the second multiple maximum value detection method described above is selected.

このように、星空の状態に対して最適な複数極大値検出方法を選択することで、精度の良い合焦を行うことが可能となる。なお、測光を行う領域は撮影画面全体でも良いが、焦点検出範囲に対応した複数領域毎で行うようにして、各焦点検出範囲毎に複数極大値検出方法を選択するようにすれば、より多様な星空の状態に対応した焦点検出を行うことができる。   As described above, it is possible to perform focusing with high accuracy by selecting an optimum multiple maximum value detection method for the starry sky state. The area for photometry may be the entire shooting screen, but it is more diverse if it is performed for each of the plurality of areas corresponding to the focus detection range and the multiple maximum value detection method is selected for each focus detection range. Focus detection corresponding to the condition of a starry sky can be performed.

次に、取得された各焦点検出範囲でのコントラスト評価値を用いて、最終的に全体の焦点検出範囲での合焦位置を得る合焦位置取得方法について説明する。   Next, a focus position acquisition method for finally obtaining a focus position in the entire focus detection range using the acquired contrast evaluation value in each focus detection range will be described.

1番目の方法としては、採用された焦点検出範囲のコントラスト評価値を、設定されているフォーカス位置毎に加算して、新たなコントラスト評価値形の変化状を生成し、新たに得られたコントラスト評価値から極大値となるようなフォーカス位置を探索してその位置を最終合焦位置とするものである。   As a first method, the contrast evaluation value of the adopted focus detection range is added for each set focus position to generate a new contrast evaluation value shape change, and the newly obtained contrast A focus position where the maximum value is obtained from the evaluation value is searched, and that position is set as the final focus position.

図7(A)は、図2で示した状態の星空で有効と判断された焦点検出範囲F1、F4、F5、F7〜F9のコンラスト評価値を加算して新たなコントラスト評価値としたものである。図7(B)は、図4で示した状態の星空で有効と判断された焦点検出範囲F1〜F5、F7のコンラスト評価値を加算して新たなコントラスト評価値としたものである。   FIG. 7A shows a new contrast evaluation value obtained by adding the contrast evaluation values of the focus detection ranges F1, F4, F5, and F7 to F9 determined to be effective in the starry sky in the state shown in FIG. is there. FIG. 7B shows a new contrast evaluation value by adding the contrast evaluation values of the focus detection ranges F1 to F5 and F7 determined to be effective in the starry sky in the state shown in FIG.

両図でのPは、コントラスト評価値が極大値となるフォーカス位置を示していて、複数極大値を有すると判断されたコントラスト評価値は用いないようにしたものである。これにより、コントラスト評価値の変化形状が平滑な山形状になって、その極大値位置でのフォーカス位置を合焦状態とすることにより、星空に対して精度の良い合焦を行うことができる。   P in both figures indicates a focus position where the contrast evaluation value is a maximum value, and a contrast evaluation value determined to have a plurality of maximum values is not used. Thereby, the change shape of the contrast evaluation value becomes a smooth mountain shape, and the focus position at the local maximum position is brought into a focused state, so that the starry sky can be focused with high accuracy.

また、第2の方法は、各焦点検出範囲での合焦位置を平均化することで星空に対して精度の良い合焦を行う方法である。   In addition, the second method is a method of performing high-precision focusing on the starry sky by averaging the in-focus positions in the respective focus detection ranges.

図8(A)は、図2で示したコントラスト評価値が有効であると判断された焦点検出範囲F1、F4、F5、F7〜F9において、合焦状態のフォーカス位置を平均して最終的な合焦位置とする計算を示した図である。同様に、図8(B)は、図4で示した状態の星空で有効であると判断された焦点検出範囲F1〜F5、F7において、合焦状態のフォーカス位置を平均して最終的な合焦位置とする計算を示した図である。以上の平均化して得られた新たなフォーカス位置を最終合焦状態とすることで、星空に対して精度の良い合焦を行うことができる。   FIG. 8A shows an average of the focused focus positions in the focus detection ranges F1, F4, F5, and F7 to F9 in which the contrast evaluation values shown in FIG. It is the figure which showed the calculation made into a focus position. Similarly, FIG. 8B shows an average focus position in the focus detection ranges F1 to F5 and F7 determined to be effective in the starry sky in the state shown in FIG. It is the figure which showed the calculation made into a focal position. By setting the new focus position obtained by the above averaging to the final in-focus state, it is possible to focus on the starry sky with high accuracy.

以上説明した方法を用いることで、星空に対して精度の良い焦点調節を行うことが可能となる。   By using the method described above, it is possible to perform precise focus adjustment on the starry sky.

次に、図1の撮像装置100に関して、撮影モード選択部118で星空撮影モードが選択された場合における処理の流れについて、図9を参照して説明する。ここで、図9のフローチャートは、予め設定されている複数の焦点検出範囲において、各焦点検出範囲毎に測光を行い、得られた測光結果に応じて、コントラスト評価値の複数極大値検出方法を変更する方式であるものとする。   Next, with respect to the imaging apparatus 100 of FIG. 1, the flow of processing when the shooting mode selection unit 118 selects the starry sky shooting mode will be described with reference to FIG. 9. Here, the flowchart of FIG. 9 shows a method for detecting a plurality of maximum values of contrast evaluation values in a plurality of preset focus detection ranges by performing photometry for each focus detection range, and according to the obtained photometry results. It is assumed that the method is changed.

図9において、まず、ステップS1において、設定されている複数焦点検出範囲から順次焦点検出範囲を選択する。そして、ステップS2において、選択された焦点検出範囲について測光処理を行い、ステップS3において、取得した測光値を予め設定されている閾値と比較する。そして、測光値が閾値以上であった場合には、ステップS5において、選択されている焦点検出範囲に後に第2の複数極大値検出方法を適用するためのフラグを立てる。一方、取得した測光値が閾値未満であった場合には、ステップS4において、選択されている焦点検出範囲に後に第1の複数極大値検出方法を適用するためのフラグを立てる。上記のステップS1〜S5の処理を全ての焦点検出範囲について行うように繰り返す。   In FIG. 9, first, in step S1, focus detection ranges are sequentially selected from the set multiple focus detection ranges. In step S2, photometry processing is performed for the selected focus detection range, and in step S3, the obtained photometric value is compared with a preset threshold value. If the photometric value is equal to or greater than the threshold value, a flag for applying the second multiple maximum value detection method later is set in the selected focus detection range in step S5. On the other hand, if the acquired photometric value is less than the threshold value, in step S4, a flag is set for applying the first multiple maximum value detection method later to the selected focus detection range. The processes in steps S1 to S5 are repeated for all focus detection ranges.

以上の処理により、設定されている全ての焦点検出範囲に対して、後に第1か第2の複数極大値検出方法のどちらの処理を行うかの処理方法指定フラグを設定する。そして、ステップS6において、星空撮影モード用に設定されているフォーカス移動動作とコントラスト評価値取得動作を行って各焦点検出範囲毎でのコントラスト評価値情報を取得する。   Through the above processing, a processing method designation flag indicating whether to perform the first or second multiple maximum value detection method later for all the focus detection ranges that have been set is set. In step S6, the focus movement operation and the contrast evaluation value acquisition operation set for the starry sky shooting mode are performed to acquire the contrast evaluation value information for each focus detection range.

その後、ステップS7において、上記のフラグが第1の複数極大値検出方法を行うものか第2の複数極大値検出方法を行うものかに応じて、各焦点検出範囲において複数極大値検出方法を変更する。なお、第1の複数極大値検出方法と第2の複数極大値検出方法に関しては個別のフローチャートを用いて説明する。   Thereafter, in step S7, the multiple maximum value detection method is changed in each focus detection range depending on whether the flag performs the first multiple maximum value detection method or the second multiple maximum value detection method. To do. The first multiple maximum value detection method and the second multiple maximum value detection method will be described using individual flowcharts.

図10は第1の複数極大値検出方法に関してのフローチャートである。第1の複数極大値検出方法が開始されると、まずステップS31において、図9のステップS6で得られているコントラスト評価値情報を取得する。そして、ステップS32において、フォーカスレンズを移動したフォーカス開始位置から終了位置までのコントラスト評価値の変化形状を走査して、評価値に極大値がいくつ存在したかをカウントする。   FIG. 10 is a flowchart regarding the first multiple maximum value detection method. When the first multiple maximum value detection method is started, first, in step S31, the contrast evaluation value information obtained in step S6 of FIG. 9 is acquired. In step S32, the change shape of the contrast evaluation value from the focus start position to the end position where the focus lens is moved is scanned to count how many maximum values exist in the evaluation value.

ステップS33では、上記のカウント処理により極大値が1つだけカウントされている場合は、コントラスト評価値の変化形状は単一山形状であって複数極大値を有していないと判断する。そして、選択されている焦点検出範囲での合焦位置を正確に求める処理を進めるために、ステップS34において、コントラスト評価値が最大値となるフォーカス位置を補間処理等で求める処理を行う。そのフォーカス位置情報からステップS35で合焦位置を取得し、第1の複数極大値検出方法を終了する。なお、ステップS34とS35は、コントラスト評価値を加算してコントラスト評価値形状の最大値を探索するような方法を後処理で用いる際には、省略してもよい。   In step S33, when only one maximum value is counted by the above counting process, it is determined that the change shape of the contrast evaluation value is a single mountain shape and does not have a plurality of maximum values. Then, in order to proceed with the process of accurately obtaining the in-focus position in the selected focus detection range, in step S34, the process of obtaining the focus position where the contrast evaluation value is the maximum value is performed by interpolation processing or the like. The focus position is acquired from the focus position information in step S35, and the first multiple maximum value detection method is terminated. Note that steps S34 and S35 may be omitted when a method of adding the contrast evaluation values and searching for the maximum value of the contrast evaluation value shape is used in post-processing.

説明を戻して、ステップS32のカウント数からステップS33で極大値が複数存在すると判定された場合には、ステップS36において、現在設定している焦点検出範囲のコントラスト評価値は用いない処理を行って、第1の複数極大値検出方法を終了する。   Returning to the description, if it is determined in step S33 that there are a plurality of local maximum values from the count in step S32, in step S36, processing is performed that does not use the contrast evaluation value of the currently set focus detection range. The first multiple maximum value detection method is terminated.

次に、図9のステップS7において、第2の複数極大値検出方法を行うフラグが立っている焦点検出範囲については、第2の複数極大値検出方法を行う。図11のフローチャートを用いて、第2の複数極大値検出方法での処理の流れについて説明する。   Next, in step S7 of FIG. 9, the second multiple maximum value detection method is performed for the focus detection range in which the flag for performing the second multiple maximum value detection method is set. The flow of processing in the second multiple maximum value detection method will be described using the flowchart of FIG.

図11において、まず、第2の複数極大値検出方法を行うに際しては、定数Nは設定フォーカス位置数(コントラスト評価値を取得する点数)未満の2以上の整数であり、コントラスト評価値の複数極大値検出条件を変更するための定数として予め設定されているものとする。   In FIG. 11, when performing the second multiple maximum value detection method, the constant N is an integer of 2 or more less than the set focus position number (the number of points for obtaining the contrast evaluation value), and the multiple maximum of the contrast evaluation value. It is assumed that a constant for changing the value detection condition is set in advance.

ステップS41では、図10のステップS31と同様に、図9のステップS6で得られたコントラスト評価値情報を取得する。次に、ステップS42では、取得したコントラスト評価値を降順(値の大きい順)にソートする。そして、ステップS43では、ステップS42でソートされたコントラスト評価値の上位N位を取得する。ここでNは、上記のように予め設定された定数である。   In step S41, the contrast evaluation value information obtained in step S6 in FIG. 9 is acquired as in step S31 in FIG. Next, in step S42, the acquired contrast evaluation values are sorted in descending order (in descending order). In step S43, the top N ranks of the contrast evaluation values sorted in step S42 are acquired. Here, N is a constant set in advance as described above.

次にステップS44では、上位N位のコントラスト評価値の各フォーカス位置が隣接状態であるかを判定する。ここで言う隣接状態とは、図6で説明したように、取得された上位N位以外のコントラスト評価値のフォーカス位置が上位N位でのフォーカス位置間に割り込んでいない状態である。   Next, in step S44, it is determined whether or not each focus position of the top N contrast evaluation values is in an adjacent state. The adjacent state referred to here is a state in which the focus positions of the contrast evaluation values other than the acquired top N positions do not interrupt between the top N positions as described in FIG.

ステップS44において、上位N位のフォーカス位置が隣接状態であると判断された場合には、設定されている焦点検出範囲でのコントラスト評価値の変化形状は複数極大値では無いと判定して以後の処理を続ける。そして、ステップS45とS46において、図10のステップS34とS35と同様に、コントラスト評価値が極大値となるようなフォーカス位置を補間処理等で正確に求めた合焦位置を取得して終了する。なお、ステップS45とS46に関しても、前述したようにコントラスト評価値を加算して極大値を探索するような方法を後処理で用いる際には省略してもよい。   If it is determined in step S44 that the upper N-th focus position is in the adjacent state, it is determined that the change shape of the contrast evaluation value in the set focus detection range is not a plurality of maximum values, and the subsequent steps Continue processing. Then, in steps S45 and S46, as in steps S34 and S35 of FIG. 10, the focus position where the focus position at which the contrast evaluation value becomes the maximum value is accurately obtained by interpolation processing or the like is acquired, and the process ends. Note that steps S45 and S46 may also be omitted when using a method of searching for a maximum value by adding contrast evaluation values as described above in post-processing.

説明を戻して、ステップS44において、コントラスト評価値形状が複数極大値を有していると判断された場合には、ステップS47において、現在設定している焦点検出範囲のコントラスト評価値は用いない処理を行って、第2の複数極大値検出方法を終了する。   Returning to the description, if it is determined in step S44 that the contrast evaluation value shape has a plurality of maximum values, processing in which the contrast evaluation value of the currently set focus detection range is not used in step S47. To end the second multiple maximum value detection method.

以上が第1の複数極大値検出方法と第2の複数極大値検出方法の詳細説明である。   The above is the detailed description of the first multiple maximum value detection method and the second multiple maximum value detection method.

説明を図9に戻して、ステップS8では、ステップS7の処理で、全ての焦点検出範囲のコントラスト評価値を用いない状態になっていないかを判定する。ここで、全ての焦点検出範囲でのコントラスト評価値を用いない場合には、コントラスト検知方式での焦点検出は行なえないため、予めプリセットされている無限遠位置にフォーカスレンズを移動させて、一連の星空への合焦処理を終了する。   Returning to FIG. 9, in step S8, it is determined whether or not the contrast evaluation values of all focus detection ranges are not used in the process of step S7. Here, when the contrast evaluation values in the entire focus detection range are not used, focus detection cannot be performed using the contrast detection method. Therefore, the focus lens is moved to a preset infinity position, and a series of operations are performed. Finish the process of focusing on the starry sky.

他方、コントラスト評価値が有効な焦点検出範囲が存在する場合には、ステップS9において、有効と判定した各焦点検出範囲でのコントラスト評価値をフォーカス位置毎に加算する。そして、必要であれば、ステップS10において、コントラスト評価値が極大値になる正確なフォーカス位置を補間処理等で求め、そのフォーカス位置を最終合焦位置とする。そして、得られたフォーカス位置にフォーカスレンズの移動を行って、星空への合焦処理を終了する。   On the other hand, if there is a focus detection range in which the contrast evaluation value is valid, in step S9, the contrast evaluation value in each focus detection range determined to be valid is added for each focus position. If necessary, in step S10, an accurate focus position at which the contrast evaluation value becomes a maximum value is obtained by interpolation processing or the like, and the focus position is set as the final focus position. Then, the focus lens is moved to the obtained focus position, and the focusing process to the starry sky is ended.

以上説明したように、星空撮影モードが選択された場合においては、上記の処理の流れによって星空への合焦動作を行う。   As described above, when the starry sky shooting mode is selected, the focusing operation to the starry sky is performed by the above processing flow.

以上説明したように、本発明によれば、星空へのコントラスト検知方式の合焦を行う際に、飛翔物体や雲が存在して、コントラスト評価値にノイズが発生している焦点検出範囲のコントラスト評価値は用いない。これにより、星空への精度のよい合焦動作を行うことが可能となる。   As described above, according to the present invention, when the contrast detection method is focused on the starry sky, the contrast of the focus detection range in which flying objects and clouds are present and noise is generated in the contrast evaluation value The evaluation value is not used. Thereby, it is possible to perform a focusing operation with high accuracy to the starry sky.

(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

本発明は、デジタルカメラのようなコントラスト検知方法による焦点検出装置を備えた撮像装置に有効なものである。   The present invention is effective for an image pickup apparatus including a focus detection apparatus using a contrast detection method such as a digital camera.

100:撮像装置、101:撮影光学系、102:光彩絞り、103:フォーカスレンズ群 100: imaging device 101: photographing optical system 102: iris diaphragm 103: focus lens group

Claims (12)

星空に対して無限遠のピント位置の近傍でコントラスト検知方式により焦点検出を行う撮像装置であって、
被写体像を撮像する撮像手段と、
前記撮像手段の画面内に複数の焦点検出範囲を設定する設定手段と、
撮影光学系のフォーカスレンズを、ピント位置を変化させる方向に移動させながら、それぞれのフォーカスレンズの位置で前記撮像手段により画像を撮像し、前記複数の焦点検出範囲ごとに、前記フォーカスレンズの位置に対応する前記画像のコントラスト評価値を算出する算出手段と、
前記複数の焦点検出範囲ごとに、前記フォーカスレンズの位置と前記コントラスト評価値の関係を表わす曲線の形状に基づいて、前記コントラスト評価値の極大値を求め、前記曲線が複数の極大値を有するか否かを判定する判定手段と、
前記判定手段により前記曲線が複数の極大値を有することが検出された焦点検出範囲については、該焦点検出範囲のコントラスト評価値を焦点検出に用いず、前記曲線が複数の極大値を持たない焦点検出範囲のコントラスト評価値を用いて焦点検出を行う焦点検出手段と、
を備えることを特徴とする撮像装置。
An imaging apparatus that performs focus detection by a contrast detection method in the vicinity of a focus position at infinity with respect to the starry sky,
Imaging means for capturing a subject image;
Setting means for setting a plurality of focus detection ranges in the screen of the imaging means;
While moving the focus lens of the photographic optical system in the direction of changing the focus position, the image is picked up by the imaging means at the position of each focus lens, and the focus lens position is set for each of the plurality of focus detection ranges. Calculating means for calculating a contrast evaluation value of the corresponding image;
For each of the plurality of focus detection ranges, a maximum value of the contrast evaluation value is obtained based on a curve shape representing a relationship between the position of the focus lens and the contrast evaluation value, and whether the curve has a plurality of maximum values. Determining means for determining whether or not;
For the focus detection range in which the curve is detected by the determining means to have a plurality of maximum values, the contrast evaluation value of the focus detection range is not used for focus detection, and the focus does not have a plurality of maximum values. Focus detection means for performing focus detection using the contrast evaluation value of the detection range;
An imaging apparatus comprising:
前記算出手段は、前記フォーカスレンズを無限遠の近傍のピント位置を中心に移動させることを特徴とする請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the calculation unit moves the focus lens around a focus position near infinity. 前記判定手段は、星空の状態に応じて、前記曲線が複数の極大値を有するか否かを判定する基準が異なる第1の判定方法と、第2の判定方法とを切り替えて用いることを特徴とする請求項1または2に記載の撮像装置。   The determination means switches between a first determination method and a second determination method that are different in criteria for determining whether or not the curve has a plurality of maximum values according to the starry sky state. The imaging apparatus according to claim 1 or 2. 前記第1の判定方法では、前記曲線が単純に複数の極大値を有する場合に、前記曲線が複数の極大値を有すると判定することを特徴とする請求項3に記載の撮像装置。   The imaging apparatus according to claim 3, wherein the first determination method determines that the curve has a plurality of maximum values when the curve simply has a plurality of maximum values. 前記第2の判定方法では、前記曲線において、コントラスト評価値の大きさが上位N位(Nは予め定められた2以上の整数)までの値となる前記フォーカスレンズの位置が互いに隣接していない場合に、前記曲線が複数の極大値を有すると判定することを特徴とする請求項3に記載の撮像装置。   In the second determination method, the positions of the focus lenses in which the magnitude of the contrast evaluation value is the value up to the top N (N is a predetermined integer equal to or greater than 2) are not adjacent to each other in the curve. In this case, it is determined that the curve has a plurality of maximum values. 前記判定手段は、前記星空の測光値が所定の閾値未満である場合に、前記第1の判定方法を用い、前記星空の測光値が前記所定の閾値以上である場合に、前記第2の判定方法を用いることを特徴とする請求項3乃至5のいずれか1項に記載の撮像装置。   The determination means uses the first determination method when the photometric value of the starry sky is less than a predetermined threshold, and the second determination when the photometric value of the starry sky is equal to or greater than the predetermined threshold. 6. The imaging apparatus according to claim 3, wherein a method is used. 前記星空を飛行体が通過する場合には、前記第1の判定方法を用い、前記星空に雲が存在する場合には、前記第2の判定方法を用いることを特徴とする請求項3乃至6のいずれか1項に記載の撮像装置。   7. The method according to claim 3, wherein the first determination method is used when a flying object passes through the starry sky, and the second determination method is used when a cloud exists in the starry sky. The imaging device according to any one of the above. 前記焦点検出手段は、前記判定手段により前記曲線が複数の極大値を持たないと判定された焦点検出範囲のコントラスト評価値を加算し、加算したコントラスト評価値が最大となるフォーカスレンズの位置を合焦位置と判断することを特徴とする請求項1乃至7のいずれか1項に記載の撮像装置。   The focus detection unit adds the contrast evaluation values of the focus detection range in which the curve is determined not to have a plurality of maximum values by the determination unit, and matches the position of the focus lens where the added contrast evaluation value is maximum. The imaging apparatus according to claim 1, wherein the imaging apparatus is determined to be a focal position. 前記焦点検出手段は、前記判定手段により前記曲線が複数の極大値を持たないと判定された焦点検出範囲のコントラスト評価値からコントラスト評価値が最大となるフォーカス位置を算出し、算出されたフォーカス位置の平均を合焦位置と判断することを特徴とする請求項1乃至7のいずれか1項に記載の撮像装置。   The focus detection unit calculates a focus position at which a contrast evaluation value is maximized from a contrast evaluation value of a focus detection range in which the determination unit determines that the curve does not have a plurality of maximum values, and calculates the calculated focus position. The imaging apparatus according to claim 1, wherein an average of the positions is determined as a focus position. 被写体像を撮像する撮像手段を有し、星空に対して無限遠のピント位置の近傍でコントラスト検知方式により焦点検出を行う撮像装置を制御する方法であって、
前記撮像手段の画面内に複数の焦点検出範囲を設定する設定工程と、
撮影光学系のフォーカスレンズを、ピント位置を変化させる方向に移動させながら、それぞれのフォーカスレンズの位置で前記撮像手段により画像を撮像し、前記複数の焦点検出範囲ごとに、前記フォーカスレンズの位置に対応する前記画像のコントラスト評価値を算出する算出工程と、
前記複数の焦点検出範囲ごとに、前記フォーカスレンズの位置と前記コントラスト評価値の関係を表わす曲線の形状に基づいて、前記コントラスト評価値の極大値を求め、前記曲線が複数の極大値を有するか否かを判定する判定工程と、
前記判定工程において前記曲線が複数の極大値を有することが検出された焦点検出範囲については、該焦点検出範囲のコントラスト評価値を焦点検出に用いず、前記曲線が複数の極大値を持たない焦点検出範囲のコントラスト評価値を用いて焦点検出を行う焦点検出工程と、
を有することを特徴とする撮像装置の制御方法。
A method for controlling an imaging apparatus having an imaging means for imaging a subject image and performing focus detection by a contrast detection method in the vicinity of a focus position at infinity with respect to the starry sky,
A setting step of setting a plurality of focus detection ranges in the screen of the imaging means;
While moving the focus lens of the photographic optical system in the direction of changing the focus position, the image is picked up by the imaging means at the position of each focus lens, and the focus lens position is set for each of the plurality of focus detection ranges. A calculation step of calculating a contrast evaluation value of the corresponding image;
For each of the plurality of focus detection ranges, a maximum value of the contrast evaluation value is obtained based on a curve shape representing a relationship between the position of the focus lens and the contrast evaluation value, and whether the curve has a plurality of maximum values. A determination step of determining whether or not,
For the focus detection range in which it is detected in the determination step that the curve has a plurality of maximum values, the contrast evaluation value of the focus detection range is not used for focus detection, and the focus does not have a plurality of maximum values. A focus detection step of performing focus detection using the contrast evaluation value of the detection range;
A method for controlling an imaging apparatus, comprising:
請求項10に記載の制御方法の各工程をコンピュータに実行させるためのプログラム。   The program for making a computer perform each process of the control method of Claim 10. 請求項10に記載の制御方法の各工程をコンピュータに実行させるためのプログラムを記憶したコンピュータが読み取り可能な記憶媒体。   A computer-readable storage medium storing a program for causing a computer to execute each step of the control method according to claim 10.
JP2015080347A 2015-04-09 2015-04-09 Imaging apparatus, control method therefor, program, and storage medium Active JP6463207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015080347A JP6463207B2 (en) 2015-04-09 2015-04-09 Imaging apparatus, control method therefor, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015080347A JP6463207B2 (en) 2015-04-09 2015-04-09 Imaging apparatus, control method therefor, program, and storage medium

Publications (2)

Publication Number Publication Date
JP2016200700A JP2016200700A (en) 2016-12-01
JP6463207B2 true JP6463207B2 (en) 2019-01-30

Family

ID=57424032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015080347A Active JP6463207B2 (en) 2015-04-09 2015-04-09 Imaging apparatus, control method therefor, program, and storage medium

Country Status (1)

Country Link
JP (1) JP6463207B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7274726B2 (en) 2019-01-31 2023-05-17 株式会社RedDotDroneJapan Shooting method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0415629A (en) * 1990-05-09 1992-01-21 Fuji Photo Optical Co Ltd Camera having photographing mode for constellation
US20040233521A1 (en) * 2003-05-14 2004-11-25 Mcwilliams Rick Automatic telescope
JP2005326680A (en) * 2004-05-14 2005-11-24 Pentax Corp Focus detecting method and focus detector
JP2006106484A (en) * 2004-10-07 2006-04-20 Pentax Corp Focus detection method
JP2006195037A (en) * 2005-01-12 2006-07-27 Nikon Corp Camera
JP2007025559A (en) * 2005-07-21 2007-02-01 Fujifilm Holdings Corp Focusing position detecting method and device
KR101624654B1 (en) * 2010-03-15 2016-05-26 삼성전자주식회사 Focusing apparatus and Focusing method
JP6338347B2 (en) * 2012-10-29 2018-06-06 キヤノン株式会社 Imaging apparatus and control method thereof
JP5561392B2 (en) * 2013-02-01 2014-07-30 カシオ計算機株式会社 Imaging apparatus, focusing method, and program
JP6262958B2 (en) * 2013-08-14 2018-01-17 キヤノン株式会社 Imaging apparatus and control method thereof

Also Published As

Publication number Publication date
JP2016200700A (en) 2016-12-01

Similar Documents

Publication Publication Date Title
EP2357788B1 (en) Autofocus with confidence measure
EP2615484B1 (en) Automatic focusing apparatus and method with calibration and slope correction
US8848094B2 (en) Optimal blur matching selection for depth estimation
US20120200725A1 (en) Autofocus Method
JP5635844B2 (en) Focus adjustment apparatus and imaging apparatus
JP4364078B2 (en) Imaging method and imaging apparatus
TW201312249A (en) Image processing system and automatic focusing method
TWI515470B (en) Auto-focus system for multiple lens and method thereof
JP5374119B2 (en) Distance information acquisition device, imaging device, and program
US8411195B2 (en) Focus direction detection confidence system and method
JP6415196B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP7289621B2 (en) Control device, imaging device, control method, and program
JP2009015185A (en) Image detection device, focusing device and image pickup apparatus
JP5950664B2 (en) Imaging apparatus and control method thereof
US8861950B2 (en) Imaging apparatus and control method thereof
JP6463207B2 (en) Imaging apparatus, control method therefor, program, and storage medium
US10747089B2 (en) Imaging apparatus and control method of the same
JP2004234010A (en) Camera showing focusing measure as function of focal distance
JP6429724B2 (en) Imaging apparatus and control method thereof
JP2016142924A (en) Imaging apparatus, method of controlling the same, program, and storage medium
JP5871196B2 (en) Focus adjustment device and imaging device
JP2010072559A (en) Imaging apparatus and object area extracting method
JP2015075648A (en) Focus detection device, control method therefor, control program and imaging device
JP5447579B2 (en) Tracking device, focus adjustment device, and photographing device
TWI333115B (en) Method for auto focus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180403

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181029

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181228

R151 Written notification of patent or utility model registration

Ref document number: 6463207

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151