[go: up one dir, main page]

JP2016126124A - Control apparatus, imaging apparatus, control method, program, and storage medium - Google Patents

Control apparatus, imaging apparatus, control method, program, and storage medium Download PDF

Info

Publication number
JP2016126124A
JP2016126124A JP2014266103A JP2014266103A JP2016126124A JP 2016126124 A JP2016126124 A JP 2016126124A JP 2014266103 A JP2014266103 A JP 2014266103A JP 2014266103 A JP2014266103 A JP 2014266103A JP 2016126124 A JP2016126124 A JP 2016126124A
Authority
JP
Japan
Prior art keywords
focus
correction value
control device
defocus amount
threshold 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.)
Granted
Application number
JP2014266103A
Other languages
Japanese (ja)
Other versions
JP6521629B2 (en
JP2016126124A5 (en
Inventor
鈴木 康之
Yasuyuki Suzuki
康之 鈴木
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 JP2014266103A priority Critical patent/JP6521629B2/en
Publication of JP2016126124A publication Critical patent/JP2016126124A/en
Publication of JP2016126124A5 publication Critical patent/JP2016126124A5/en
Application granted granted Critical
Publication of JP6521629B2 publication Critical patent/JP6521629B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)
  • Focusing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a control apparatus having an improved defocus detection accuracy.SOLUTION: A control apparatus 210 determines a focusing position of a focus lens through a focusing operation, and, subsequently using a focus detector 207, calculates a dispersion value of the defocus amount on the basis of the focus bracket photography and the detection of a plurality of focuses at shooting positions with reference to the focusing position. The control apparatus selects one image determined to be in the sharpest focus from an image group obtained by the focus bracket photography, and calculates a focus correction value used for correcting the defocus amount.SELECTED DRAWING: Figure 1

Description

本発明は、一眼レフカメラなどの自動焦点調節(AF)が可能な撮像装置に関する。   The present invention relates to an imaging apparatus capable of automatic focus adjustment (AF) such as a single-lens reflex camera.

位相差検出方式による自動焦点調節機能(AF)を有する一眼レフカメラでは、カメラ本体と撮影レンズの双方に製造誤差や調整誤差などの誤差が含まれており、許容量よりも大きなピント誤差が発生する可能性がある。このため、一眼レフカメラには、ユーザがAFのピント補正値を任意に微調節する機能(AFマイクロアジャストメント)を有するものがある。しかしAFマイクロアジャストメントの際には、ユーザは、微調節の結果が正しいか否かを確認するため、撮影と確認の作業を繰り返す必要がある。   In a single-lens reflex camera that has an automatic focus adjustment function (AF) using a phase difference detection method, errors such as manufacturing errors and adjustment errors are included in both the camera body and the taking lens, and a focus error larger than the allowable amount occurs. there's a possibility that. For this reason, some single-lens reflex cameras have a function (AF microadjustment) in which the user arbitrarily finely adjusts the AF focus correction value. However, at the time of AF micro-adjustment, the user needs to repeat the photographing and checking operations in order to check whether the fine adjustment result is correct.

特許文献1には、画像に撮影レンズのデフォーカス量を関連付け、ユーザがピントが合っていると判定した画像に関連付けられたデフォーカス量に基づいてピント補正値を算出する撮像装置が開示されている。   Patent Document 1 discloses an imaging apparatus that associates a defocus amount of a photographing lens with an image and calculates a focus correction value based on the defocus amount associated with the image that the user determines to be in focus. Yes.

特開2005−109621号公報JP 2005-109621 A

しかしながら、特許文献1の撮像装置では、画像に関連付けられたデフォーカス量のデフォーカス検出誤差や画像の選択誤差などの誤差要因により、誤った補正値が算出され、デフォーカス検出精度が劣化する場合がある。   However, in the imaging apparatus of Patent Document 1, an incorrect correction value is calculated due to an error factor such as a defocus detection error of a defocus amount associated with an image or an image selection error, and the defocus detection accuracy is deteriorated. There is.

そこで本発明は、デフォーカス検出精度を向上させた制御装置、撮像装置、制御方法、プログラム、および、プログラムを提供する。   Therefore, the present invention provides a control device, an imaging device, a control method, a program, and a program with improved defocus detection accuracy.

本発明の一側面としての制御装置は、デフォーカス量の補正値を算出する算出手段と、複数のデフォーカス量のばらつきと所定の閾値との関係に基づいて、前記補正値を用いて前記デフォーカス量を補正するか否かを判定する判定手段とを有する。   A control device according to an aspect of the present invention includes a calculating unit that calculates a defocus amount correction value, and the defocus amount using the correction value based on a relationship between a plurality of defocus amount variations and a predetermined threshold value. Determination means for determining whether or not to correct the focus amount.

本発明の他の側面としての撮像装置は、レンズを介して光学像を光電変換する撮像素子と、デフォーカス量を検出する焦点検出手段と、前記デフォーカス量の補正値を算出する算出手段と、複数のデフォーカス量のばらつきと所定の閾値との関係に基づいて、前記補正値を用いて前記デフォーカス量を補正するか否かを判定する判定手段とを有する。   An imaging apparatus according to another aspect of the present invention includes an imaging element that photoelectrically converts an optical image via a lens, a focus detection unit that detects a defocus amount, and a calculation unit that calculates a correction value of the defocus amount. Determining means for determining whether or not to correct the defocus amount using the correction value based on a relationship between a plurality of defocus amount variations and a predetermined threshold value.

本発明の他の側面としての制御方法は、デフォーカス量の補正値を算出するステップと、複数のデフォーカス量のばらつきと所定の閾値との関係に基づいて、前記補正値を用いて前記デフォーカス量を補正するか否かを判定するステップとを有する。   According to another aspect of the present invention, there is provided a control method, comprising: calculating a defocus amount correction value; and using the correction value based on a relationship between a plurality of defocus amount variations and a predetermined threshold value. Determining whether or not to correct the focus amount.

本発明の他の側面としてのプログラムは、デフォーカス量の補正値を算出するステップと、複数のデフォーカス量のばらつきと所定の閾値との関係に基づいて、前記補正値を用いて前記デフォーカス量を補正するか否かを判定するステップと、をコンピュータに実行させる。   According to another aspect of the present invention, there is provided a program for calculating a defocus amount correction value, and using the correction value based on a relationship between a plurality of defocus amount variations and a predetermined threshold. Determining whether to correct the amount, and causing the computer to execute.

本発明の他の側面としての記憶媒体は、前記プログラムを記憶している。   A storage medium according to another aspect of the present invention stores the program.

本発明の他の目的及び特徴は、以下の実施例において説明される。   Other objects and features of the present invention are illustrated in the following examples.

本発明によれば、デフォーカス検出精度を向上させた制御装置、撮像装置、制御方法、プログラム、および、プログラムを提供することができる。   According to the present invention, it is possible to provide a control device, an imaging device, a control method, a program, and a program with improved defocus detection accuracy.

各実施例における撮像装置の概略構成図である。It is a schematic block diagram of the imaging device in each Example. 各実施例におけるフォーカスブラケット撮影動作の説明図である。It is explanatory drawing of the focus bracket imaging | photography operation | movement in each Example. 各実施例におけるフォーカスブラケット撮影動作のフローチャートである。It is a flowchart of the focus bracket photographing operation in each embodiment. 各実施例におけるピント補正値の記憶判定動作のフローチャートである。It is a flowchart of the memory | storage determination operation | movement of a focus correction value in each Example. 実施例1、2において、ピント補正値の記憶判定の際に用いられる第2の閾値の決定方法の説明図である。In Example 1, 2, it is explanatory drawing of the determination method of the 2nd threshold value used at the time of the memory | storage determination of a focus correction value. 実施例3において、撮影レンズの種類に応じて第2の閾値を変更するための画面である。In Example 3, it is a screen for changing a 2nd threshold value according to the kind of imaging lens. 実施例4において、撮像装置の種類に応じて第2の閾値を変更するための画面である。In Example 4, it is a screen for changing a 2nd threshold value according to the kind of imaging device.

以下、本発明の実施例について、図面を参照しながら詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

まず、図1を参照して、本発明の実施例1における撮像装置の構成について説明する。図1は、本実施例における撮像装置200(カメラ)の概略構成図である。   First, with reference to FIG. 1, the configuration of the imaging apparatus according to the first embodiment of the present invention will be described. FIG. 1 is a schematic configuration diagram of an imaging apparatus 200 (camera) in the present embodiment.

図1に示されるように、本実施例の撮像装置200には、撮影レンズ100が不図示のマウント部のレンズ装着機構を介して着脱可能に取り付けられる。マウント部には、電気接点ユニット104が設けられている。撮像装置200は、電気接点ユニット104を介して、撮影レンズ100(レンズ装置)と通信を行い、撮影レンズ100のフォーカスレンズ101を制御する。なお図1において、撮影レンズ100のレンズとしてフォーカスレンズ101のみが示されているが、フォーカスレンズ101に加えて、変倍レンズや固定レンズが設けられる場合がある。   As shown in FIG. 1, a photographing lens 100 is detachably attached to the imaging apparatus 200 of the present embodiment via a lens mounting mechanism of a mount unit (not shown). An electrical contact unit 104 is provided in the mount portion. The imaging device 200 communicates with the photographing lens 100 (lens device) via the electrical contact unit 104 to control the focus lens 101 of the photographing lens 100. In FIG. 1, only the focus lens 101 is shown as the lens of the photographing lens 100. However, in addition to the focus lens 101, a variable power lens or a fixed lens may be provided.

被写体(不図示)からの光束は、撮影レンズ100のフォーカスレンズ101を介して、撮像装置200のメインミラー201に導かれる。メインミラー201は、撮影光路内において、光軸OAに対して斜めに配置されている。そしてメインミラー201は、被写体からの光束を上方のファインダ光学系に導く第1の位置(図1で示されるダウン位置)と、撮影光路外に退避する第2の位置(アップ位置)との間で移動可能である。メインミラー201の中央部は、ハーフミラーである。   A light beam from a subject (not shown) is guided to the main mirror 201 of the imaging apparatus 200 via the focus lens 101 of the photographing lens 100. The main mirror 201 is disposed obliquely with respect to the optical axis OA in the photographing optical path. The main mirror 201 is between a first position (down position shown in FIG. 1) for guiding the light beam from the subject to the upper viewfinder optical system and a second position (up position) for retreating from the photographing optical path. It is possible to move with. The central part of the main mirror 201 is a half mirror.

メインミラー201が第1の位置(ダウン位置)にある場合、被写体からの光束の一部がハーフミラーを透過する。メインミラー201(ハーフミラー)を透過した光束は、メインミラー201の背面側に設けられたサブミラー202により反射し、焦点検出装置207(焦点検出手段)に導かれる。また、メインミラー201により反射された光束は、撮像素子209と光学的に共役な位置に配置されたピント板203上に結像する。ピント板203において拡散して透過した光(被写体像)は、ペンタプリズム204により正立像に変換される。正立像は、接眼レンズ205によって拡大され、ユーザにより観察される。   When the main mirror 201 is at the first position (down position), a part of the light beam from the subject passes through the half mirror. The light beam transmitted through the main mirror 201 (half mirror) is reflected by the sub mirror 202 provided on the back side of the main mirror 201 and guided to the focus detection device 207 (focus detection means). Further, the light beam reflected by the main mirror 201 forms an image on the focus plate 203 arranged at a position optically conjugate with the image sensor 209. Light (subject image) diffused and transmitted through the focus plate 203 is converted into an erect image by the pentaprism 204. The erect image is magnified by the eyepiece 205 and observed by the user.

一方、メインミラー201が第2の位置(アップ位置)にある場合、サブミラー202はメインミラー201に対して折り畳まれて撮影光路外に退避する。このため、撮影レンズ100からの光束は、機械シャッタであるフォーカルプレーンシャッタ208を通過し、撮像素子209に入射する。フォーカルプレーンシャッタ208は、撮像素子209に入射する光量を制限する。撮像素子209は、撮影レンズ100により形成された被写体像(光学像)を光電変換して画像データを生成し、この画像データ(電気信号)を出力するCCDセンサやCMOSセンサなどの光電変換素子である。   On the other hand, when the main mirror 201 is in the second position (up position), the sub mirror 202 is folded with respect to the main mirror 201 and retracts out of the photographing optical path. For this reason, the light beam from the photographing lens 100 passes through the focal plane shutter 208 which is a mechanical shutter and enters the image sensor 209. The focal plane shutter 208 limits the amount of light incident on the image sensor 209. The imaging element 209 is a photoelectric conversion element such as a CCD sensor or a CMOS sensor that photoelectrically converts a subject image (optical image) formed by the photographing lens 100 to generate image data and outputs the image data (electrical signal). is there.

210は、撮像装置200における各種演算や各種動作の制御を行う制御装置(制御手段)である。制御装置210は、撮像装置200の全体の制御を司り、CPUやMPUなどにより構成され、後述する各回路などの動作を制御する。本実施例において、制御装置210は、算出手段210aおよび判定手段210bを有する。算出手段210aは、デフォーカス量の補正値を算出する。判定手段210bは、所定の閾値(第1の閾値、第2の閾値)に基づいて、補正値を用いてデフォーカス量を補正するか否かを判定する。   Reference numeral 210 denotes a control device (control means) that controls various calculations and various operations in the imaging apparatus 200. The control device 210 is responsible for overall control of the imaging device 200, is configured by a CPU, an MPU, and the like, and controls operations of circuits and the like described later. In the present embodiment, the control device 210 includes a calculation unit 210a and a determination unit 210b. The calculating unit 210a calculates a defocus amount correction value. The determination unit 210b determines whether or not to correct the defocus amount using a correction value based on a predetermined threshold (first threshold, second threshold).

また制御装置210は、電気接点ユニット104を介して、撮影レンズ100内のレンズ制御回路103と通信を行う。レンズ制御回路103は、制御装置210からの信号に応じて、フォーカスレンズ101を光軸OAに沿った方向(光軸方向)に駆動してピント合わせ(フォーカシング)を行うレンズ駆動機構102を制御する。レンズ駆動機構102は、ステッピングモータを駆動源として有する。また制御装置210には、撮像装置200を制御する際に調整が必要なパラメータ、撮像装置200の個体識別を行うためのカメラ識別情報、撮影に関するパラメータの調整値などを記憶したEEPROM211(記憶手段)が接続されている。   The control device 210 communicates with the lens control circuit 103 in the taking lens 100 via the electrical contact unit 104. The lens control circuit 103 controls the lens driving mechanism 102 that performs focusing by driving the focus lens 101 in the direction (optical axis direction) along the optical axis OA in accordance with a signal from the control device 210. . The lens driving mechanism 102 has a stepping motor as a driving source. The control device 210 also includes an EEPROM 211 (storage means) that stores parameters that need to be adjusted when controlling the imaging device 200, camera identification information for performing individual identification of the imaging device 200, adjustment values of parameters related to imaging, and the like. Is connected.

表示装置212(表示手段)は、撮像素子209により撮像された画像データを表示し、また、ユーザが設定する項目を表示する装置であり、一般的にはカラーの液晶表示素子を備えて構成される。制御装置210には、ユーザの意思を撮像装置200に伝えるための操作検出部213と、カウンター214とが接続されている。操作検出部213は、不図示のレリーズボタン、選択ボタン、後述するフォーカスブラケット撮影により得られた複数の画像の中から1つを選択するためのボタンなどの操作を検出する。カウンター214は、ブラケット撮影を行う際の撮影回数をカウントするためのカウンターである。カウンター214の計数値リセットは、制御装置210により行われる。   The display device 212 (display means) is a device that displays image data captured by the image sensor 209 and displays items set by the user, and is generally configured to include a color liquid crystal display element. The The control device 210 is connected to an operation detection unit 213 for transmitting a user's intention to the imaging device 200 and a counter 214. The operation detection unit 213 detects operations such as a release button (not shown), a selection button, and a button for selecting one of a plurality of images obtained by focus bracket photographing described later. The counter 214 is a counter for counting the number of shootings when performing bracket shooting. The count value reset of the counter 214 is performed by the control device 210.

レンズ制御回路103には、撮影レンズ100の焦点距離や開放絞り値などの性能情報、撮影レンズ100を識別するためのレンズID(レンズ識別情報)、および、制御装置210から通信により受信した情報を記憶するメモリ(図示せず)が設けられている。撮影レンズ100の性能情報およびレンズIDは、撮影レンズ100を撮像装置200へ装着した際の初期通信により、レンズ制御回路103から制御装置210へ送信される。そして制御装置210は、レンズ制御回路103から受信した性能情報およびレンズIDをEEPROM211に記憶させる。   The lens control circuit 103 receives performance information such as a focal length and an open aperture value of the photographing lens 100, a lens ID (lens identification information) for identifying the photographing lens 100, and information received from the control device 210 through communication. A memory (not shown) for storing is provided. The performance information and the lens ID of the photographing lens 100 are transmitted from the lens control circuit 103 to the control device 210 by initial communication when the photographing lens 100 is attached to the imaging device 200. The control device 210 stores the performance information and the lens ID received from the lens control circuit 103 in the EEPROM 211.

次に、図2を参照して、本実施例における撮像装置200によるブラケット撮影について説明する。図2は、本実施例におけるブラケット撮影動作(フォーカスブラケット撮影動作)の説明図である。図2において、上下方向の矢印301〜310は、撮影レンズ100の駆動方向および駆動量を示している。図2中の破線300は、合焦位置を示している。撮像装置200は、破線300で示される合焦位置から、一方向(至近側または無限側)に所定量だけレンズを移動(駆動)し、所定量だけ移動した後の位置を起点として、より細かく所定量ずつレンズを駆動させる。本実施例において、この所定量は、矢印302〜310の合計9回であるが、これに限定されるものではない。また矢印301は、至近側に矢印302〜306で示される各々の駆動量の5倍の駆動量を示している。このため、矢印302〜306で示される駆動量だけ駆動した後、破線300で示される元の合焦位置に戻るように制御されることが理想的である。その結果、最初の合焦位置(破線300)に対して、至近側および無限側の両方に同じ駆動量(矢印302〜306および矢印307〜310)を割り振ったことになる。   Next, with reference to FIG. 2, bracket shooting by the image pickup apparatus 200 in the present embodiment will be described. FIG. 2 is an explanatory diagram of the bracket shooting operation (focus bracket shooting operation) in the present embodiment. In FIG. 2, vertical arrows 301 to 310 indicate the driving direction and driving amount of the photographing lens 100. A broken line 300 in FIG. 2 indicates a focus position. The imaging apparatus 200 moves (drives) the lens by a predetermined amount in one direction (closest side or infinity side) from the in-focus position indicated by the broken line 300, and starts with the position after moving by the predetermined amount as a starting point. The lens is driven by a predetermined amount. In this embodiment, the predetermined amount is a total of nine times of arrows 302 to 310, but is not limited to this. An arrow 301 indicates a driving amount that is five times the driving amount indicated by the arrows 302 to 306 on the closest side. For this reason, it is ideal that control is performed so as to return to the original in-focus position indicated by the broken line 300 after being driven by the drive amount indicated by the arrows 302 to 306. As a result, the same drive amount (arrows 302 to 306 and arrows 307 to 310) is assigned to both the near side and the infinite side with respect to the first in-focus position (broken line 300).

通常、矢印301で示される駆動量は、レンズの合焦幅を基準として決定され、例えばレンズの合焦幅の2倍や3倍に設定される。この駆動量が大き過ぎると、ピントの変化が粗くなる。一方、この駆動量が小さいとピントの変化が細か過ぎ、後の工程で一つの画像を選択して絞ることが困難となる。図2中の線311〜319は、それぞれ、撮影動作を行う位置を示している。すなわち撮像装置200は、最初の合焦位置(破線300)に対して、至近側および無限側の両方に同じ駆動量(矢印302〜306、矢印307〜310)だけレンズ駆動が行われたそれぞれの位置で撮影を行い、後から最もピントの合った画像を選択する。   Usually, the driving amount indicated by the arrow 301 is determined based on the focusing width of the lens, and is set to, for example, twice or three times the focusing width of the lens. If this drive amount is too large, the focus change becomes rough. On the other hand, if the drive amount is small, the change in focus is too small, and it is difficult to select and narrow down one image in a later process. Lines 311 to 319 in FIG. 2 indicate positions where the photographing operation is performed. That is, the imaging apparatus 200 is driven by the same amount of driving (arrows 302 to 306 and arrows 307 to 310) on both the near side and the infinite side with respect to the first in-focus position (broken line 300). Take a picture at the position and select the most focused image later.

次に、図3を参照して、フォーカスブラケット撮影動作について詳述する。図3は、フォーカスブラケット撮影動作のフローチャートである。図3の各ステップは、主に、制御装置210の指令に基づいて算出手段210aまたは判定手段210bにより実行される。   Next, the focus bracket photographing operation will be described in detail with reference to FIG. FIG. 3 is a flowchart of the focus bracket photographing operation. Each step of FIG. 3 is mainly executed by the calculation unit 210a or the determination unit 210b based on a command from the control device 210.

まずステップS101において、制御装置210は、合焦動作を行い、例えば図2中の破線300で示される合焦位置で合焦させる。続いて、ステップS102において、制御装置210は、焦点検出装置207を用いてステップS101にて決定された合焦位置で焦点検出を複数回行い、複数の焦点検出結果に基づいてデフォーカス量の分散値(ばらつき)を算出する。   First, in step S101, the control device 210 performs a focusing operation, for example, focusing at a focusing position indicated by a broken line 300 in FIG. Subsequently, in step S102, the control device 210 performs focus detection a plurality of times at the in-focus position determined in step S101 using the focus detection device 207, and distributes the defocus amount based on the plurality of focus detection results. A value (variation) is calculated.

続いて、ステップS103において、制御装置210は、ステップ102にて算出されたデフォーカス量の分散値(ばらつき)が第1の閾値未満であるか否かを判定する。デフォーカス量の分散値が第1の閾値未満である場合、ステップS104へ進む。ステップS104において、制御装置210は、カウンター214をリセットする(すなわち、カウント値n=0にする)。   Subsequently, in step S103, the control device 210 determines whether or not the defocus amount dispersion value (variation) calculated in step 102 is less than a first threshold value. When the dispersion value of the defocus amount is less than the first threshold value, the process proceeds to step S104. In step S104, the control device 210 resets the counter 214 (that is, sets the count value n = 0).

続いて、ステップS106において、制御装置210は、レンズ制御回路103およびレンズ駆動機構102を介して、フォーカスブラケット開始位置までフォーカスレンズ101を駆動する。最終的には、後述のステップS115において、フォーカスブラケット撮影により得られた画像群からピントが最も合っていると判定される1枚の画像を選択することになる。このとき、ピントが合った画像が含まれるためには、撮像装置200(制御装置210)により判定された合焦位置を基準としてフォーカスブラケット撮影を行うことが好ましい。レンズの合焦幅を基準としたブラケット間隔をs、ブラケット撮影枚数をm(図2ではm=9)と設定してフォーカスブラケット撮影を行う場合、フォーカスブラケット開始位置は合焦位置から{s×(m−1)}/2至近方向の位置である。この位置にレンズを駆動することにより、撮像装置200により判定される合焦位置を基準としてフォーカスブラケット撮影を行うことができる。   Subsequently, in step S106, the control device 210 drives the focus lens 101 to the focus bracket start position via the lens control circuit 103 and the lens drive mechanism 102. Eventually, in step S115, which will be described later, one image that is determined to be the best in focus is selected from the image group obtained by focus bracket photography. At this time, in order to include an in-focus image, it is preferable to perform focus bracket photographing with reference to the in-focus position determined by the imaging device 200 (control device 210). When focus bracket shooting is performed with the bracket interval based on the lens focus width set to s and the number of bracket shots set to m (m = 9 in FIG. 2), the focus bracket start position is {s × (M-1)} / 2 is a position in the closest direction. By driving the lens to this position, it is possible to perform focus bracket photographing with reference to the in-focus position determined by the imaging apparatus 200.

続いてステップS107において、制御装置210は、焦点検出装置207を用いて、ステップS106にて駆動したレンズ位置(フォーカスレンズ101の位置)におけるデフォーカス量を検出(算出)する。このとき制御装置210、複数回のデフォーカス検出を行い、その検出結果の平均値をデフォーカス量としてもよい。そしてステップS108において、制御装置210は、撮像素子209を用いて撮影(静止画撮影)を行う。制御装置210は、ステップS108にて撮影された画像を、ステップS107にて検出されたデフォーカス量に関連付けて内部メモリに記憶する。   Subsequently, in step S107, the control device 210 uses the focus detection device 207 to detect (calculate) the defocus amount at the lens position (position of the focus lens 101) driven in step S106. At this time, the control device 210 may perform defocus detection a plurality of times, and an average value of the detection results may be used as the defocus amount. In step S108, the control device 210 performs shooting (still image shooting) using the image sensor 209. The control device 210 stores the image captured in step S108 in the internal memory in association with the defocus amount detected in step S107.

続いてステップS109において、制御装置210は、カウンター214のカウント値nを1にカウントアップする(n=1)。そしてステップS110において、制御装置210は、レンズ制御回路103およびレンズ駆動機構102を介して、ブラケット間隔sの量だけフォーカスレンズ101を駆動する。続いてステップS111において、制御装置210は、焦点検出装置207を用いて、ステップS110にて駆動したレンズ位置におけるデフォーカス量を検出する。そしてステップS112において、制御装置210は、撮像素子209を用いて撮影(静止画撮影)を行う。制御装置210は、ステップS112にて撮影された画像を、ステップS111にて検出されたデフォーカス量に関連付けて内部メモリに記憶する。   Subsequently, in step S109, the control device 210 increments the count value n of the counter 214 to 1 (n = 1). In step S110, the control device 210 drives the focus lens 101 by the amount of the bracket interval s via the lens control circuit 103 and the lens driving mechanism 102. Subsequently, in step S111, the control device 210 uses the focus detection device 207 to detect the defocus amount at the lens position driven in step S110. In step S112, the control device 210 performs shooting (still image shooting) using the image sensor 209. The control device 210 stores the image captured in step S112 in the internal memory in association with the defocus amount detected in step S111.

続いてステップS113において、制御装置210は、カウンター214のカウント値nを1つカウントアップする(n=n+1)。そしてステップS114において、制御装置210は、カウンター214のカウント値nがブラケット撮影枚数mに達したか否か(n=m?)を判定する。カウント値がブラケット撮影枚数mに達している場合(n=m)、ステップS115へ進む。一方、カウント値nがブラケット撮影枚数mに達していない場合(n<m)、ステップS110へ戻り、ステップS110〜S114を繰り返す。   Subsequently, in step S113, the control device 210 increments the count value n of the counter 214 by one (n = n + 1). In step S114, the control device 210 determines whether or not the count value n of the counter 214 has reached the bracket shooting number m (n = m?). If the count value has reached the number m of bracket shots (n = m), the process proceeds to step S115. On the other hand, if the count value n has not reached the number m of bracket shots (n <m), the process returns to step S110 and steps S110 to S114 are repeated.

ステップS115において、ユーザにより画像(ピント補正用画像)が選択される。ここでは、フォーカスブラケット撮影により得られたピント補正用画像が表示装置212に表示される。そしてユーザは、表示装置212に表示されたピント補正用画像の中から、ピントが最も合っていると判定される1枚のピント補正用画像を選択する。   In step S115, an image (focus correction image) is selected by the user. Here, a focus correction image obtained by focus bracket shooting is displayed on the display device 212. Then, the user selects one focus correction image that is determined to be in focus from the focus correction images displayed on the display device 212.

続いてステップS116において、制御装置210は、補正値(ピント補正値)を算出する。本実施例において、制御装置210は、ステップS115にてユーザが選択したピント補正用画像に関連付けられて内部メモリに記憶されているデフォーカス量に基づいて、ピント補正値を算出する。そしてステップS117へ進み、本フローは終了する。ステップS116にて算出されたピント補正値は、焦点検出装置207が検出する撮影レンズ100のデフォーカス量を補正する際に用いられる。   Subsequently, in step S116, the control device 210 calculates a correction value (focus correction value). In this embodiment, the control device 210 calculates a focus correction value based on the defocus amount stored in the internal memory in association with the focus correction image selected by the user in step S115. Then, the process proceeds to step S117, and this flow ends. The focus correction value calculated in step S116 is used when correcting the defocus amount of the photographing lens 100 detected by the focus detection device 207.

一方、ステップS103において、ステップS102にて算出されたデフォーカス量の分散値が第1の閾値以上である場合、ステップS105へ進む。ステップS105において、制御装置210は、フォーカスブラケット撮影を中止し、ステップS117へ進む。ステップS102にて算出されたデフォーカス量の分散値が大きい(第1の閾値以上である)ということは、焦点検出の度にデフォーカス量が大きく変化しており、ステップS101にて合焦させた被写体に対する焦点検出結果の信頼性が低いことを意味する。被写体に対する焦点検出結果の信頼性が低いと、ステップS104以降のフォーカスブラケット撮影を行って算出されたピント補正値の信頼性も低く、正しいデフォーカス量の補正を行うことができない。このため制御装置210は、この場合にはフォーカスブラケット撮影を中止する。好ましくは、制御装置210は、フォーカスブラケット撮影を中止するとともに、フォーカスブラケット撮影を中止することを表示装置212に表示し、ブラケット撮影を実行しないことをユーザに通知する。   On the other hand, when the variance value of the defocus amount calculated in step S102 is greater than or equal to the first threshold value in step S103, the process proceeds to step S105. In step S105, the control device 210 stops focus bracket shooting and proceeds to step S117. If the dispersion value of the defocus amount calculated in step S102 is large (greater than or equal to the first threshold value), the defocus amount changes greatly every time focus is detected, and the focus is adjusted in step S101. This means that the reliability of the focus detection result for the subject is low. If the reliability of the focus detection result for the subject is low, the reliability of the focus correction value calculated by performing the focus bracket photographing after step S104 is also low, and the correct defocus amount cannot be corrected. Therefore, in this case, the control device 210 stops focus bracket shooting. Preferably, the control device 210 cancels the focus bracket shooting, displays the stop of the focus bracket shooting on the display device 212, and notifies the user that the bracket shooting is not performed.

次に、図4を参照して、デフォーカス量の補正に用いられるピント補正値(図3のステップS116にて算出された補正値)の記憶判定動作について説明する。図4は、ピント補正値の記憶判定動作のフローチャートである。図4の各ステップは、主に、制御装置210の指令に基づいて判定手段210bにより実行される。   Next, with reference to FIG. 4, a memory determination operation for the focus correction value (the correction value calculated in step S116 in FIG. 3) used for correcting the defocus amount will be described. FIG. 4 is a flowchart of the focus correction value storage determination operation. Each step of FIG. 4 is mainly executed by the determination unit 210b based on a command from the control device 210.

まずステップS201において、制御装置210は、フォーカスブラケット撮影(図3のステップS116)にてピント補正値を算出したか否かを判定する。ピント補正値が算出されていない場合(フォーカスブラケット撮影を中止した場合)、ステップS205へ進み、本フローを終了する。一方、ピント補正値が算出されている場合、ステップS202へ進む。   First, in step S201, the control device 210 determines whether or not a focus correction value has been calculated in focus bracket shooting (step S116 in FIG. 3). When the focus correction value has not been calculated (when focus bracket shooting is stopped), the process proceeds to step S205, and this flow ends. On the other hand, when the focus correction value is calculated, the process proceeds to step S202.

ステップS202において、制御装置210は、ピント補正値が第2の閾値未満であるか否かを判定する。ピント補正値が第2の閾値未満である場合、ステップS203へ進み、制御装置210は、ピント補正値をEEPROM211(記憶手段)に記憶しない。一方、ピント補正値が第2の閾値以上である場合、ステップS204へ進み、制御装置210は、ピント補正値をEEPROM211に記憶する。ステップS203またはステップS204を経てステップS205へ進み、本フローを終了する。   In step S202, the control device 210 determines whether or not the focus correction value is less than the second threshold value. When the focus correction value is less than the second threshold value, the process proceeds to step S203, and the control device 210 does not store the focus correction value in the EEPROM 211 (storage means). On the other hand, when the focus correction value is greater than or equal to the second threshold value, the process proceeds to step S204, and the control device 210 stores the focus correction value in the EEPROM 211. The process proceeds to step S205 via step S203 or step S204, and this flow is terminated.

フォーカスブラケット調整を行う際には、デフォーカス検出誤差や、ユーザの画像選択誤差などの誤差要因が含まれる。このため、その誤差の範囲内においては、ピント補正値を適用することにより誤ったピント補正値が算出され、デフォーカス検出精度が劣化する可能性がある。本実施例では、このような精度の劣化の可能性を低減させるため、誤差によりピント補正値がばらつくと想定される値と同程度の閾値(補正閾値としての第2の閾値)を予め設定しておく。これにより、撮像装置200(制御装置210)により算出されたピント補正値によりデフォーカス検出精度の劣化の可能性を低減することができる。   When performing the focus bracket adjustment, error factors such as a defocus detection error and a user image selection error are included. For this reason, within the range of the error, an incorrect focus correction value may be calculated by applying the focus correction value, and the defocus detection accuracy may deteriorate. In this embodiment, in order to reduce the possibility of such deterioration in accuracy, a threshold value (second threshold value as a correction threshold value) that is approximately the same as a value that is assumed to vary the focus correction value due to an error is set in advance. Keep it. Thereby, the possibility of defocus detection accuracy degradation can be reduced by the focus correction value calculated by the imaging apparatus 200 (control apparatus 210).

次に、図5を参照して、ピント補正値を記憶するか否かの基準となる第2の閾値(図4のステップS202での判定の際に用いられる第2の閾値)の決定方法について説明する。図5(a)は、第2の閾値の決定方法の説明図である。図5(b)は図5(a)と比べてデフォーカス量の分散値(ばらつき)が小さい場合、図5(c)は図5(a)と比べてデフォーカス量の分散値(ばらつき)が大きい場合をそれぞれ示している。   Next, referring to FIG. 5, a method for determining a second threshold value (second threshold value used in the determination in step S <b> 202 in FIG. 4) serving as a criterion for determining whether or not to store the focus correction value. explain. FIG. 5A is an explanatory diagram of a method for determining the second threshold value. FIG. 5B shows a case where the defocus amount dispersion value (variation) is smaller than that in FIG. 5A, and FIG. 5C shows a defocus amount dispersion value (variation) compared to FIG. Each shows a large case.

図5(a)において、401は、制御装置210により判定されるフォーカスブラケットの基準位置である合焦位置である。402は、制御装置210(算出手段210a)により算出されたピント補正値である。403は、第2の閾値である。ピント補正値402が第2の閾値403の範囲内に収まっている(第2の閾値未満である)場合、制御装置210は、ピント補正値をEEPROM211(記憶手段)に記憶しない。一方、ピント補正値402が第2の閾値403の範囲外である(第2の閾値以上である)場合、制御装置210は、ピント補正値402をEEPROM211に記憶する。第2の閾値は任意に変更可能な値である。本実施例の制御装置210は、合焦位置401において複数回焦点検出して得られたデフォーカス量の分散値に基づいて第2の閾値403を決定する。   In FIG. 5A, 401 is a focus position that is a reference position of the focus bracket determined by the control device 210. Reference numeral 402 denotes a focus correction value calculated by the control device 210 (calculation means 210a). Reference numeral 403 denotes a second threshold value. When the focus correction value 402 is within the range of the second threshold 403 (less than the second threshold), the control device 210 does not store the focus correction value in the EEPROM 211 (storage means). On the other hand, when the focus correction value 402 is outside the range of the second threshold 403 (is greater than or equal to the second threshold), the control device 210 stores the focus correction value 402 in the EEPROM 211. The second threshold is a value that can be arbitrarily changed. The control device 210 according to the present exemplary embodiment determines the second threshold 403 based on the defocus amount dispersion value obtained by performing focus detection a plurality of times at the in-focus position 401.

図5(b)は、合焦位置401において複数回焦点検出して得られたデフォーカス量の分散値が小さい場合(図5(a)よりも小さい場合)の説明図である。デフォーカス量の分散値が小さい場合、デフォーカス検出誤差が小さいことを示している。この場合、ピント補正値を適用することによりデフォーカス検出精度が劣化する可能性が低い。このため制御装置210は、図5(a)に示される第2の閾値403よりもその幅が狭い(範囲が小さい)第2の閾値404を決定する。   FIG. 5B is an explanatory diagram when the dispersion value of the defocus amount obtained by performing focus detection a plurality of times at the in-focus position 401 is small (when it is smaller than FIG. 5A). A small defocus amount dispersion value indicates a small defocus detection error. In this case, the possibility that the defocus detection accuracy is deteriorated by applying the focus correction value is low. Therefore, the control device 210 determines a second threshold 404 having a narrower width (smaller range) than the second threshold 403 shown in FIG.

図5(c)は、合焦位置401において複数回焦点検出して得られたデフォーカス量の分散値が大きい場合(図5(a)よりも大きい)の説明図である。デフォーカス量の分散値が大きい場合、デフォーカス検出誤差が大きいことを示している。この場合、ピント補正値を適用することによりデフォーカス検出精度が劣化する可能性が高い。このため制御装置210は、図5(a)に示される第2の閾値403よりもその幅が広い(範囲が大きい)第2の閾値405を決定する。なお本実施例において、第2の閾値を決定する際の基準となるデフォーカス量の分散値は、図3のステップS103にてフォーカスブラケット撮影を中止するか否かを判定する際の基準となる第1の閾値よりも小さい。   FIG. 5C is an explanatory diagram when the dispersion value of the defocus amount obtained by performing focus detection a plurality of times at the in-focus position 401 is large (larger than FIG. 5A). A large defocus amount variance value indicates a large defocus detection error. In this case, there is a high possibility that the defocus detection accuracy is deteriorated by applying the focus correction value. Therefore, the control device 210 determines a second threshold value 405 that is wider (having a larger range) than the second threshold value 403 shown in FIG. In this embodiment, the dispersion value of the defocus amount, which is a reference when determining the second threshold value, becomes a reference when determining whether or not to stop focus bracket shooting in step S103 of FIG. It is smaller than the first threshold value.

次に、本発明の実施例2について説明する。本実施例は、ピント補正値を記憶するか否かの基準となる第2の閾値(図4のステップS202での判定の際に用いられる第2の閾値)の決定方法が実施例1とは異なる。他の構成および方法は実施例1と同様であるため、それらの説明は省略する。   Next, a second embodiment of the present invention will be described. The present embodiment is different from the first embodiment in the method of determining the second threshold value (second threshold value used in the determination in step S202 of FIG. 4) as a reference for determining whether or not to store the focus correction value. Different. Since other configurations and methods are the same as those in the first embodiment, description thereof will be omitted.

本実施例において、制御装置210は、フォーカスブラケット撮影した画像群の中からユーザにより選択された1枚の画像に基づくピント補正値が算出されたフォーカス位置で、複数回焦点検出して得られたデフォーカス量のばらつきに応じて第2の閾値を決定する。ここでデフォーカス量の分散値(ばらつき)が小さい場合、デフォーカス検出誤差が小さいことを示しており、ピント補正値を適用することによりデフォーカス検出精度が劣化する可能性が低い。この場合、制御装置210は、図5(b)に示されるように幅が狭い(範囲が小さい)第2の閾値404を決定する。   In this embodiment, the control device 210 is obtained by performing focus detection a plurality of times at a focus position where a focus correction value based on a single image selected by the user from a group of images taken with focus bracketing is calculated. The second threshold value is determined according to the variation in the defocus amount. Here, when the dispersion value (variation) of the defocus amount is small, it indicates that the defocus detection error is small, and it is unlikely that the defocus detection accuracy is deteriorated by applying the focus correction value. In this case, the control device 210 determines the second threshold 404 having a narrow width (small range) as shown in FIG.

一方、デフォーカス量の分散値(ばらつき)が大きい場合、デフォーカス検出誤差が大きいことを示しており、ピント補正値を適用することによりデフォーカス検出精度が劣化する可能性が高い。この場合、制御装置210は、図5(c)に示されるように幅が広い(範囲が大きい)第2の閾値405を決定する。なお本実施例において、第2の閾値を決定する際の基準となるデフォーカス量の分散値は、図3のステップS103にてフォーカスブラケット撮影を中止するか否かを判定する際の基準となる第1の閾値よりも小さい。   On the other hand, when the dispersion value (variation) of the defocus amount is large, it indicates that the defocus detection error is large, and there is a high possibility that the defocus detection accuracy is deteriorated by applying the focus correction value. In this case, the control device 210 determines a second threshold 405 having a wide width (a large range) as shown in FIG. In this embodiment, the dispersion value of the defocus amount, which is a reference when determining the second threshold value, becomes a reference when determining whether or not to stop focus bracket shooting in step S103 of FIG. It is smaller than the first threshold value.

次に、図6を参照して、本発明の実施例3について説明する。本実施例は、ピント補正値を記憶するか否かの基準となる第2の閾値(図4のステップS202での判定の際に用いられる第2の閾値)を、撮影レンズ100(フォーカスレンズ)の種類に応じて決定する点で、前述の各実施例とは異なる。他の構成および方法は前述の各実施例と同様であるため、それらの説明は省略する。   Next, Embodiment 3 of the present invention will be described with reference to FIG. In the present embodiment, the second threshold value (second threshold value used in the determination in step S202 of FIG. 4) serving as a reference for storing the focus correction value is set as the photographing lens 100 (focus lens). This is different from the above-described embodiments in that it is determined according to the type. Other configurations and methods are the same as those of the above-described embodiments, and thus description thereof is omitted.

図6は、第2の閾値をレンズ(撮影レンズ100)の種類に応じて変更するための画面である。図6(a)は、フォーカスブラケット調整のメニューにおいて、全レンズ一律調整を選択した場合(第1のモード)の画面である。第1のモードが選択されると、レンズの種類に関係なくピントを一律にフォーカスブラケット調整が可能である。   FIG. 6 is a screen for changing the second threshold according to the type of the lens (photographing lens 100). FIG. 6A is a screen when all lens uniform adjustment is selected in the focus bracket adjustment menu (first mode). When the first mode is selected, the focus bracket can be adjusted uniformly regardless of the type of lens.

全レンズ一律調整モードの場合、種々のフォーカスレンズで一律にフォーカスブラケット調整が可能である。フォーカスレンズの中には、入力された位置指令信号に対して実際にフォーカスレンズが駆動される位置の誤差が大きいフォーカスレンズも含まれる。このように制御性が比較的良好ではないフォーカスレンズを用いて実行するフォーカスブラケット調整では、得られたピント補正値が正しいピント補正値ではない可能性が高い。このため、容易にピント補正を行うとピント精度が劣化する可能性が高い。そこで、全レンズ一律調整モードでは、第2の閾値の幅を広く設定する。その結果、ピント補正値を算出した場合でも容易にピント補正しないように制御することができる。   In the all-lens uniform adjustment mode, the focus bracket can be adjusted uniformly with various focus lenses. The focus lens includes a focus lens in which an error in a position where the focus lens is actually driven is large with respect to an input position command signal. In focus bracket adjustment performed using a focus lens with relatively poor controllability as described above, there is a high possibility that the obtained focus correction value is not the correct focus correction value. For this reason, if the focus correction is easily performed, the focus accuracy is likely to deteriorate. Therefore, in the all-lens uniform adjustment mode, the width of the second threshold is set wide. As a result, even when the focus correction value is calculated, control can be performed so that the focus correction is not easily performed.

図6(b)は、フォーカスブラケット調整のメニューにおいて、フォーカスレンズの種類ごとにピントの調整が可能な第2のモードである。第2のモードでは、ユーザが意思を持って装着したフォーカスレンズのフォーカスブラケット調整を個別に行うため、フォーカスレンズの制御性に係わらずユーザが選択した画像に基づいてピント補正が可能であることが好ましい。このとき、第2の閾値の幅を狭く設定し、できるだけユーザが選択した画像でピント補正を実行可能にする。   FIG. 6B shows a second mode in which the focus can be adjusted for each type of focus lens in the focus bracket adjustment menu. In the second mode, since the focus bracket adjustment of the focus lens that the user intentionally wears is performed individually, focus correction may be possible based on the image selected by the user regardless of the controllability of the focus lens. preferable. At this time, the width of the second threshold is set to be narrow so that the focus correction can be executed with the image selected by the user as much as possible.

次に、図7を参照して、本発明の実施例4について説明する。本実施例は、ピント補正値を記憶するか否かの基準となる第2の閾値(図4のステップS202での判定の際に用いられる第2の閾値)を、撮像装置200の種類に応じて決定する点で、前述の各実施例とは異なる。他の構成および方法は前述の各実施例と同様であるため、それらの説明は省略する。   Next, Embodiment 4 of the present invention will be described with reference to FIG. In the present embodiment, the second threshold value (second threshold value used in the determination in step S202 in FIG. 4) serving as a reference for determining whether or not to store the focus correction value is set according to the type of the imaging apparatus 200. It is different from the above-described embodiments in that it is determined by the above. Other configurations and methods are the same as those of the above-described embodiments, and thus description thereof is omitted.

図7は、撮像装置200の種類に応じて第2の閾値(設定幅)を変更するための画面である。図7に示されるように、本実施例では、撮像装置200のクラス(種類)がプロ、ミドル、エントリーに応じて、第2の閾値の設定幅(「狭い」、「デフォルト設定」、「広い」)をそれぞれ変更する。   FIG. 7 is a screen for changing the second threshold value (setting width) according to the type of the imaging apparatus 200. As shown in FIG. 7, in this embodiment, the class (type) of the imaging apparatus 200 is set to the second threshold setting width (“narrow”, “default setting”, “wide” depending on professional, middle, and entry. )) Respectively.

撮像装置200の種類(機種クラス)がエントリー系の場合、第2の閾値の設定幅を狭くする。一般的に、プロ系のカメラを使用するユーザは、ピント精度の評価に厳しく、ピントの精度を正しく評価することができるユーザである。このため、フォーカスブラケット撮影された画像群からピントが最も合っている画像を選択する誤差は小さい。従って、プロ系カメラの場合、第2の閾値の設定幅を狭く設定してユーザが選択した画像でピント補正を容易にできるようにする。   When the type (model class) of the imaging apparatus 200 is an entry system, the setting range of the second threshold is narrowed. In general, a user who uses a professional-type camera is a user who can strictly evaluate the focus accuracy and is strict in evaluating the focus accuracy. For this reason, there is little error in selecting an image that is in focus from the group of images taken with focus bracketing. Therefore, in the case of a professional camera, the setting range of the second threshold is set narrow so that the focus correction can be easily performed with the image selected by the user.

一方、エントリー系のカメラを使用するユーザは、プロ系カメラのユーザに比べると、ピント精度の評価に厳しくない。このため、フォーカスブラケット撮影された画像群からピントが最も合っている画像を選択する誤差が大きい。この場合、ユーザが選択した画像が正しいピント位置の画像ではない場合が多い。このため、ユーザが選択した画像のピント補正値でピント補正を行うと、ピント精度が劣化する可能性が高い。そこで本実施例では、エントリー系カメラの場合、第2の閾値の幅を広く設定することにより、容易にピント補正を実行させないようにする。   On the other hand, a user who uses an entry camera is not strict in evaluating the focus accuracy compared to a professional camera user. For this reason, there is a large error in selecting an image that is in best focus from a group of images taken with focus bracketing. In this case, the image selected by the user is often not the image at the correct focus position. For this reason, if the focus correction is performed with the focus correction value of the image selected by the user, the focus accuracy is likely to deteriorate. Therefore, in the present embodiment, in the case of an entry-type camera, the focus correction is not easily performed by setting the width of the second threshold value wide.

また、ミドル系のカメラを使用するユーザは、プロ系ユーザとエントリー系ユーザとの中間に位置するユーザである。このため、ピント精度の評価も、プロ系ユーザとエントリー系ユーザとの中間の厳しさであると想定され、第2の閾値の幅も両クラスの中間の幅に設定するのが好ましい。なお本実施例において、第2の閾値は、撮像装置200の種類(クラス)に応じて撮像装置200に予め設定されている構成に限定されるものではなく、アプリケーション上から任意に設定可能に構成してもよい。   A user who uses a middle camera is a user positioned between a professional user and an entry user. For this reason, it is assumed that the evaluation of the focus accuracy is also an intermediate severity between the professional user and the entry user, and the width of the second threshold is preferably set to an intermediate width between both classes. In the present embodiment, the second threshold value is not limited to the configuration preset in the imaging device 200 according to the type (class) of the imaging device 200, and can be arbitrarily set from the application. May be.

このように各実施例において、制御装置210は、算出手段210aおよび判定手段210bを有する。算出手段210aは、デフォーカス量(焦点検出に基づく評価値)の補正値(ピント補正値)を算出する。判定手段210bは、複数のデフォーカス量のばらつきと所定の閾値(第1の閾値、第2の閾値)との関係に基づいて、補正値を用いてデフォーカス量を補正するか否かを判定する。好ましくは、判定手段210bは、補正値を用いてデフォーカス量を補正すると判定した場合、補正値を記憶手段(EEPROM211)に記憶する。一方、判定手段210bは、補正値を用いてデフォーカス量を補正しないと判定した場合、補正値を記憶手段に記憶しない。   Thus, in each embodiment, the control device 210 includes a calculation unit 210a and a determination unit 210b. The calculating unit 210a calculates a correction value (focus correction value) of the defocus amount (an evaluation value based on focus detection). The determination unit 210b determines whether or not to correct the defocus amount using the correction value based on the relationship between the variation in the plurality of defocus amounts and a predetermined threshold (first threshold, second threshold). To do. Preferably, when the determination unit 210b determines to correct the defocus amount using the correction value, the correction unit 210b stores the correction value in the storage unit (EEPROM 211). On the other hand, when the determination unit 210b determines not to correct the defocus amount using the correction value, the determination unit 210b does not store the correction value in the storage unit.

好ましくは、判定手段210bは、所定のレンズ位置(フォーカスレンズ101の位置)で得られた複数のデフォーカス量のばらつきと、所定の閾値としての第1の閾値との関係に応じて、ブラケット撮影を実行するか否かを判定する(S103)。より好ましくは、判定手段210bは、複数のデフォーカス量のばらつきが第1の閾値を超える場合、ブラケット撮影を実行しないことをユーザに通知する(S105)。   Preferably, the determination unit 210b performs bracket shooting according to a relationship between a plurality of defocus amount variations obtained at a predetermined lens position (a position of the focus lens 101) and a first threshold value as a predetermined threshold value. It is determined whether or not to execute (S103). More preferably, the determination unit 210b notifies the user that bracket shooting is not executed when the variation in the plurality of defocus amounts exceeds the first threshold (S105).

好ましくは、判定手段210bは、所定のレンズ位置で得られた複数のデフォーカス量のばらつきに応じて、所定の閾値としての第2の閾値を変更する。より好ましくは、判定手段210bは、複数のデフォーカス量のばらつきが小さいほど第2の閾値で決定される不感帯の幅(第2の閾値の設定幅)を狭くする。また好ましくは、所定のレンズ位置は、合焦位置であると判定されたレンズ位置である。   Preferably, the determination unit 210b changes the second threshold value as the predetermined threshold value according to variations in the plurality of defocus amounts obtained at the predetermined lens position. More preferably, the determination unit 210b narrows the dead zone width (second threshold setting width) determined by the second threshold as the variation in the plurality of defocus amounts is smaller. Preferably, the predetermined lens position is a lens position determined to be a focus position.

好ましくは、複数のデフォーカス量のばらつきは、算出手段210aが補正値を算出した際に得られる。より好ましくは、補正値は、ブラケット撮影で得られた複数の画像から選択された1枚の画像に基づいて算出された補正値(第1の補正値)である。そして判定手段210bは、第1の補正値が算出されたレンズ位置で得られた複数のデフォーカス量のばらつきに応じて、第2の閾値を変更する。   Preferably, the plurality of defocus amount variations are obtained when the calculation unit 210a calculates the correction value. More preferably, the correction value is a correction value (first correction value) calculated based on one image selected from a plurality of images obtained by bracket shooting. Then, the determination unit 210b changes the second threshold value according to the variation in the plurality of defocus amounts obtained at the lens position where the first correction value is calculated.

好ましくは、判定手段210bは、レンズ(撮影レンズ100)の種類に応じて第2の閾値を変更する。より好ましくは、判定手段210bは、第2の閾値を一定にする第1のモード(全レンズに対して一律に調整を行うモード)と、レンズの種類に応じて第2の閾値を変更する第2のモード(レンズごとに調整を行うモード)とを有する。より好ましくは、判定手段210bは、第1のモードの場合と比較して、第2のモードの場合に第2の閾値で決定される不感帯の幅(第2の閾値の設定幅)を狭くする。   Preferably, the determination unit 210b changes the second threshold according to the type of the lens (the photographic lens 100). More preferably, the determination unit 210b has a first mode in which the second threshold is constant (a mode in which adjustment is performed uniformly for all lenses) and a second mode in which the second threshold is changed according to the type of lens. 2 modes (modes in which adjustment is performed for each lens). More preferably, the determination unit 210b narrows the dead zone width (second threshold setting width) determined by the second threshold value in the second mode, as compared to the first mode. .

好ましくは、判定手段210bは、撮像装置200の種類に応じて第2の閾値を変更する。より好ましくは、第2の閾値は、アプリケーション上で任意に設定可能である。   Preferably, the determination unit 210b changes the second threshold according to the type of the imaging device 200. More preferably, the second threshold value can be arbitrarily set on the application.

(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
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.

各実施例によれば、デフォーカス検出精度を向上させた制御装置、撮像装置、制御方法、プログラム、および、プログラムを提供することができる。   According to each embodiment, it is possible to provide a control device, an imaging device, a control method, a program, and a program with improved defocus detection accuracy.

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

210 制御装置
210a 算出手段
210b 判定手段
210 Controller 210a Calculation unit 210b Determination unit

Claims (18)

デフォーカス量の補正値を算出する算出手段と、
複数のデフォーカス量のばらつきと所定の閾値との関係に基づいて、前記補正値を用いて前記デフォーカス量を補正するか否かを判定する判定手段と、を有することを特徴とする制御装置。
A calculating means for calculating a defocus amount correction value;
And a determination unit that determines whether to correct the defocus amount using the correction value based on a relationship between a plurality of defocus amount variations and a predetermined threshold value. .
前記判定手段は、
前記補正値を用いて前記デフォーカス量を補正すると判定した場合、該補正値を記憶手段に記憶し、
前記補正値を用いて前記デフォーカス量を補正しないと判定した場合、該補正値を前記記憶手段に記憶しない、ことを特徴とする請求項1に記載の制御装置。
The determination means includes
When it is determined that the defocus amount is corrected using the correction value, the correction value is stored in a storage unit;
The control device according to claim 1, wherein when it is determined that the defocus amount is not corrected using the correction value, the correction value is not stored in the storage unit.
前記判定手段は、所定のレンズ位置で得られた前記複数のデフォーカス量のばらつきと、前記所定の閾値としての第1の閾値との関係に応じて、ブラケット撮影を実行するか否かを判定することを特徴とする請求項1または2に記載の制御装置。   The determination unit determines whether or not to perform bracket shooting according to a relationship between the variation in the plurality of defocus amounts obtained at a predetermined lens position and the first threshold value as the predetermined threshold value. The control device according to claim 1, wherein: 前記判定手段は、前記複数のデフォーカス量のばらつきが前記第1の閾値を超える場合、前記ブラケット撮影を実行しないことをユーザに通知することを特徴とする請求項3に記載の制御装置。   4. The control device according to claim 3, wherein the determination unit notifies the user that the bracket photographing is not executed when a variation in the plurality of defocus amounts exceeds the first threshold value. 5. 前記判定手段は、所定のレンズ位置で得られた前記複数のデフォーカス量のばらつきに応じて、前記所定の閾値としての第2の閾値を変更することを特徴とする請求項1乃至4のいずれか1項に記載の制御装置。   5. The method according to claim 1, wherein the determination unit changes the second threshold value as the predetermined threshold value according to variations in the plurality of defocus amounts obtained at a predetermined lens position. The control device according to claim 1. 前記判定手段は、前記複数のデフォーカス量のばらつきが小さいほど前記第2の閾値で決定される不感帯の幅を狭くすることを特徴とする請求項5に記載の制御装置。   The control device according to claim 5, wherein the determination unit narrows the width of the dead zone determined by the second threshold as the variation in the plurality of defocus amounts is smaller. 前記所定のレンズ位置は、合焦位置であると判定されたレンズ位置であることを特徴とする請求項5または6に記載の制御装置。   The control device according to claim 5, wherein the predetermined lens position is a lens position determined to be an in-focus position. 前記複数のデフォーカス量のばらつきは、前記算出手段が前記補正値を算出した際に得られることを特徴とする請求項5または6に記載の制御装置。   The control device according to claim 5, wherein the variation in the plurality of defocus amounts is obtained when the calculation unit calculates the correction value. 前記補正値は、ブラケット撮影で得られた複数の画像から選択された1枚の画像に基づいて算出された第1の補正値であり、
前記判定手段は、前記第1の補正値が算出されたレンズ位置で得られた前記複数のデフォーカス量のばらつきに応じて、前記第2の閾値を変更することを特徴とする請求項8に記載の制御装置。
The correction value is a first correction value calculated based on one image selected from a plurality of images obtained by bracket shooting,
9. The determination unit according to claim 8, wherein the determination unit changes the second threshold value according to variations in the plurality of defocus amounts obtained at the lens position where the first correction value is calculated. The control device described.
前記判定手段は、レンズの種類に応じて前記第2の閾値を変更することを特徴とする請求項5乃至9のいずれか1項に記載の制御装置。   The control device according to claim 5, wherein the determination unit changes the second threshold according to a type of lens. 前記判定手段は、
前記第2の閾値を一定にする第1のモードと、
前記レンズの種類に応じて前記第2の閾値を変更する第2のモードと、を有することを特徴とする請求項10に記載の制御装置。
The determination means includes
A first mode in which the second threshold is constant;
The control device according to claim 10, further comprising: a second mode in which the second threshold value is changed according to a type of the lens.
前記判定手段は、前記第1のモードの場合と比較して、前記第2のモードの場合に前記第2の閾値で決定される不感帯の幅を狭くすることを特徴とする請求項11に記載の制御装置。   The said determination means narrows the width | variety of the dead zone determined by the said 2nd threshold value in the case of the said 2nd mode compared with the case of the said 1st mode. Control device. 前記判定手段は、撮像装置の種類に応じて前記第2の閾値を変更することを特徴とする請求項5乃至12のいずれか1項に記載の制御装置。   The control device according to claim 5, wherein the determination unit changes the second threshold according to a type of the imaging device. 前記第2の閾値は、アプリケーション上で任意に設定可能であることを特徴とする請求項13に記載の制御装置。   The control device according to claim 13, wherein the second threshold value can be arbitrarily set on an application. レンズを介して光学像を光電変換する撮像素子と、
デフォーカス量を検出する焦点検出手段と、
前記デフォーカス量の補正値を算出する算出手段と、
複数のデフォーカス量のばらつきと所定の閾値との関係に基づいて、前記補正値を用いて前記デフォーカス量を補正するか否かを判定する判定手段と、を有することを特徴とする撮像装置。
An image sensor that photoelectrically converts an optical image via a lens;
Focus detection means for detecting a defocus amount;
Calculating means for calculating a correction value of the defocus amount;
An image pickup apparatus comprising: a determination unit configured to determine whether to correct the defocus amount using the correction value based on a relationship between a plurality of defocus amount variations and a predetermined threshold value. .
デフォーカス量の補正値を算出するステップと、
複数のデフォーカス量のばらつきと所定の閾値との関係に基づいて、前記補正値を用いて前記デフォーカス量を補正するか否かを判定するステップと、を有することを特徴とする制御方法。
Calculating a defocus amount correction value;
And determining whether to correct the defocus amount using the correction value based on a relationship between a plurality of defocus amount variations and a predetermined threshold value.
デフォーカス量の補正値を算出するステップと、
複数のデフォーカス量のばらつきと所定の閾値との関係に基づいて、前記補正値を用いて前記デフォーカス量を補正するか否かを判定するステップと、をコンピュータに実行させることを特徴とするプログラム。
Calculating a defocus amount correction value;
Determining whether to correct the defocus amount using the correction value based on a relationship between a plurality of defocus amount variations and a predetermined threshold value. program.
請求項17に記載のプログラムを記憶していることを特徴とする記憶媒体。   A storage medium storing the program according to claim 17.
JP2014266103A 2014-12-26 2014-12-26 CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM Expired - Fee Related JP6521629B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014266103A JP6521629B2 (en) 2014-12-26 2014-12-26 CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014266103A JP6521629B2 (en) 2014-12-26 2014-12-26 CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM

Publications (3)

Publication Number Publication Date
JP2016126124A true JP2016126124A (en) 2016-07-11
JP2016126124A5 JP2016126124A5 (en) 2018-02-01
JP6521629B2 JP6521629B2 (en) 2019-05-29

Family

ID=56359118

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014266103A Expired - Fee Related JP6521629B2 (en) 2014-12-26 2014-12-26 CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP6521629B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0862484A (en) * 1994-08-24 1996-03-08 Nikon Corp Focus adjustment device
JPH1010416A (en) * 1996-06-26 1998-01-16 Nikon Corp Focus adjustment device
JP2007121780A (en) * 2005-10-28 2007-05-17 Nikon Corp Electronic camera, lens that can be attached to and detached from the electronic camera
JP2007286438A (en) * 2006-04-18 2007-11-01 Canon Inc Imaging apparatus and control method thereof
JP2010113073A (en) * 2008-11-05 2010-05-20 Canon Inc Image capturing apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0862484A (en) * 1994-08-24 1996-03-08 Nikon Corp Focus adjustment device
JPH1010416A (en) * 1996-06-26 1998-01-16 Nikon Corp Focus adjustment device
JP2007121780A (en) * 2005-10-28 2007-05-17 Nikon Corp Electronic camera, lens that can be attached to and detached from the electronic camera
JP2007286438A (en) * 2006-04-18 2007-11-01 Canon Inc Imaging apparatus and control method thereof
JP2010113073A (en) * 2008-11-05 2010-05-20 Canon Inc Image capturing apparatus

Also Published As

Publication number Publication date
JP6521629B2 (en) 2019-05-29

Similar Documents

Publication Publication Date Title
JP5906235B2 (en) Imaging device
US9699369B2 (en) Focus detection apparatus and control method for the same
JP5366643B2 (en) Imaging device
US9781330B2 (en) Focus detection apparatus and control method for focus detection apparatus
US10277799B2 (en) Image capturing apparatus, and control method and storage medium thereof
US9924089B2 (en) Image capturing apparatus, method of displaying image, and storage medium storing program
JP2016142924A (en) Imaging apparatus, control method therefor, program, and storage medium
JP5930683B2 (en) Imaging apparatus, control method thereof, and program
JP2006065080A (en) Imaging device
US11778324B2 (en) Aberration correction method, computer-readable storage medium, and image pickup apparatus
US9699368B2 (en) Focus detection apparatus and control method for the same
JP6487679B2 (en) Focus detection apparatus and control method thereof
JP6521629B2 (en) CONTROL DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM
JP6355348B2 (en) IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
US9930245B2 (en) Focus control apparatus and control method for the same
JP2016114720A (en) Imaging apparatus and method of controlling the same
US10834307B2 (en) Image pickup apparatus
JP6391448B2 (en) Imaging apparatus and control method thereof
JP2016114721A (en) Imaging apparatus and method of controlling the same
JP2013231883A (en) Imaging device
JP5619227B2 (en) IMAGING DEVICE AND CONTROL METHOD OF IMAGING DEVICE
JP2013113967A (en) Imaging apparatus, control method thereof, and program
JP2016157027A (en) Imaging device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171215

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180620

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180807

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181009

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190423

R151 Written notification of patent or utility model registration

Ref document number: 6521629

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees