Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6929752B2 - Focus detection device and focus detection method - Google Patents
[go: Go Back, main page]

JP6929752B2 - Focus detection device and focus detection method - Google Patents

Focus detection device and focus detection method Download PDF

Info

Publication number
JP6929752B2
JP6929752B2 JP2017197849A JP2017197849A JP6929752B2 JP 6929752 B2 JP6929752 B2 JP 6929752B2 JP 2017197849 A JP2017197849 A JP 2017197849A JP 2017197849 A JP2017197849 A JP 2017197849A JP 6929752 B2 JP6929752 B2 JP 6929752B2
Authority
JP
Japan
Prior art keywords
pixel
focus detection
pixel signal
pupil division
division direction
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
JP2017197849A
Other languages
Japanese (ja)
Other versions
JP2019071590A (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.)
Olympus Corp
Original Assignee
Olympus Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Corp filed Critical Olympus Corp
Priority to JP2017197849A priority Critical patent/JP6929752B2/en
Priority to US16/157,023 priority patent/US10582112B2/en
Publication of JP2019071590A publication Critical patent/JP2019071590A/en
Application granted granted Critical
Publication of JP6929752B2 publication Critical patent/JP6929752B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)
  • Studio Devices (AREA)

Description

本発明は、焦点検出装置及び焦点検出方法に関する。 The present invention relates to a focus detection device and a focus detection method.

従来、撮像素子で生成された画素信号を利用して位相差方式の焦点検出を行う焦点検出装置が知られている。この種の焦点検出装置の中で、ライブビュー表示中にも焦点検出を行うことができるようにする焦点検出装置も知られている。例えば、特許文献1において提案されている撮像装置は、撮像素子上で位相差方式の焦点検出を行うために必要な行の露光時間をその他の行の露光時間と変えることで、画像の生成のために必要な画素信号と位相差方式の焦点検出を行うために必要な画素信号とを生成している。 Conventionally, a focus detection device that performs a phase difference type focus detection using a pixel signal generated by an image sensor is known. Among this type of focus detection device, a focus detection device that enables focus detection even during live view display is also known. For example, the image pickup apparatus proposed in Patent Document 1 generates an image by changing the exposure time of a row required for performing a phase difference type focus detection on an image pickup element with the exposure time of another row. The pixel signal required for this purpose and the pixel signal required for performing the focus detection by the phase difference method are generated.

特開2015−161906号公報Japanese Unexamined Patent Publication No. 2015-161906

特許文献1の撮像装置は、撮像素子の行毎に露光時間を変えるものであり、基本的には、水平方向の位相差の検出を前提とした構成である。したがって、特許文献1の撮像装置の手法をそのまま用いても垂直方向の位相差の検出については時間がかかり易い。このため、焦点検出性能の確保のために水平方向と垂直方向の両方で位相差を検出しようとすると、連写中等ではライブビュー表示のための十分な時間を確保できなくなる可能性が生じる。 The image pickup apparatus of Patent Document 1 changes the exposure time for each row of the image pickup element, and is basically configured on the premise of detecting a phase difference in the horizontal direction. Therefore, even if the method of the image pickup apparatus of Patent Document 1 is used as it is, it tends to take time to detect the phase difference in the vertical direction. Therefore, if an attempt is made to detect the phase difference in both the horizontal direction and the vertical direction in order to secure the focus detection performance, there is a possibility that a sufficient time for the live view display cannot be secured during continuous shooting or the like.

本発明は、前記の事情に鑑みてなされたものであり、位相差方式の焦点検出性能を確保しながら、ライブビュー表示のための時間も確保することができる焦点検出装置及び焦点検出方法を提供することを目的とする。 The present invention has been made in view of the above circumstances, and provides a focus detection device and a focus detection method capable of securing time for live view display while ensuring the focus detection performance of the phase difference method. The purpose is to do.

前記の目的を達成するために、本発明の第1の態様の焦点検出装置は、1個のマイクロレンズに対して撮像光学系の異なる射出瞳領域を通過するそれぞれの光束を光電変換して画素信号を生成するように第1の瞳分割方向及び前記第1の瞳分割方向と異なる第2の瞳分割方向に分割された複数の受光部が配置されている画素部を有する撮像部と、前記画素信号に基づいて生成される表示のための表示画素信号に基づいて画像を表示するための処理をする画像処理回路と、前記画素信号に基づいて生成される焦点検出のための焦点検出画素信号に基づいて焦点検出のための処理をする焦点検出回路と、それぞれが前記画素信号の生成と読み出しとを含む第1の動作と第2の動作とを交互に行うように前記撮像部を制御する制御回路とを具備し、前記制御回路は、前記第1の動作においては前記第1の瞳分割方向に関する前記焦点検出画素信号が生成されるように前記撮像部を制御し、前記第2の動作においては前記表示画素信号と前記第2の瞳分割方向に関する前記焦点検出画素信号とが生成されるように前記撮像部を制御する。 In order to achieve the above object, the focus detection device of the first aspect of the present invention photoelectrically converts each light beam passing through different ejection pupil regions of the imaging optical system to one microlens to obtain a pixel. An imaging unit having a pixel unit in which a plurality of light receiving units divided in a first pupil division direction and a second pupil division direction different from the first pupil division direction so as to generate a signal are arranged, and the image pickup unit. Display for display generated based on pixel signal An image processing circuit that performs processing for displaying an image based on a pixel signal, and a focus detection pixel signal for focus detection generated based on the pixel signal. The image pickup unit is controlled so that the focus detection circuit that performs the process for focus detection based on the above and the first operation and the second operation including the generation and reading of the pixel signal are alternately performed. The control circuit includes a control circuit, and the control circuit controls the imaging unit so that the focus detection pixel signal relating to the first pupil division direction is generated in the first operation, and the second operation. In, the imaging unit is controlled so that the display pixel signal and the focus detection pixel signal relating to the second pupil division direction are generated.

前記の目的を達成するために、本発明の第2の態様の焦点検出方法は、1個のマイクロレンズに対して撮像光学系の異なる射出瞳領域を通過するそれぞれの光束を光電変換して画素信号を生成するように第1の瞳分割方向及び前記第1の瞳分割方向と異なる第2の瞳分割方向に分割された複数の受光部が配置されている画素部を有する撮像部を用いた焦点検出方法であって、前記画素信号に基づいて生成される表示のための表示画素信号に基づいて画像を表示するための処理をすることと、前記画素信号に基づいて生成される焦点検出のための焦点検出画素信号に基づいて焦点検出のための処理をすることと、それぞれが前記画素信号の生成と読み出しとを含む第1の動作と第2の動作とを交互に行うように前記撮像部を制御することとを具備し、前記撮像部を制御することは、前記第1の動作において前記第1の瞳分割方向に関する前記焦点検出画素信号が生成されるように前記撮像部を制御することと、前記第2の動作において前記表示画素信号と前記第2の瞳分割方向に関する前記焦点検出画素信号とが生成されるように前記撮像部を制御することとを含む。 In order to achieve the above object, in the focus detection method of the second aspect of the present invention, each light beam passing through different ejection pupil regions of the imaging optical system is photoelectrically converted into a pixel for one microlens. An imaging unit having a pixel unit in which a plurality of light receiving units divided in a first pupil division direction and a second pupil division direction different from the first pupil division direction are arranged so as to generate a signal was used. In the focus detection method, processing for displaying an image based on a display pixel signal for display generated based on the pixel signal, and focus detection generated based on the pixel signal are performed. Focus detection for the purpose The imaging is performed so that the process for focusing detection is performed based on the pixel signal, and the first operation and the second operation including the generation and reading of the pixel signal are alternately performed. Controlling the imaging unit includes controlling the unit, and controlling the imaging unit controls the imaging unit so that the focus detection pixel signal relating to the first pupil division direction is generated in the first operation. This includes controlling the imaging unit so that the display pixel signal and the focus detection pixel signal related to the second pupil division direction are generated in the second operation.

本発明によれば、位相差方式の焦点検出性能を確保しながら、ライブビュー表示のための時間も確保することができる焦点検出装置及び焦点検出方法を提供することができる。 According to the present invention, it is possible to provide a focus detection device and a focus detection method that can secure time for live view display while ensuring the focus detection performance of the phase difference method.

図1は、本発明の一実施形態に係る焦点検出装置を含む撮像装置の構成の一例を示すブロック図である。FIG. 1 is a block diagram showing an example of a configuration of an image pickup apparatus including a focus detection apparatus according to an embodiment of the present invention. 図2は、一例の撮像素子の構成を示す図である。FIG. 2 is a diagram showing a configuration of an image sensor of an example. 図3は、画素部の詳細な構成を示す図である。FIG. 3 is a diagram showing a detailed configuration of the pixel portion. 図4Aは、画素を左右開口画素として取り扱うときの画素信号の加算について示した図である。FIG. 4A is a diagram showing addition of pixel signals when the pixels are treated as left and right opening pixels. 図4Bは、画素を上下開口画素として取り扱うときの画素信号の加算について示した図である。FIG. 4B is a diagram showing addition of pixel signals when the pixels are treated as upper and lower opening pixels. 図5Aは、実施形態に係る撮像装置の動作について示すフローチャートである。FIG. 5A is a flowchart showing the operation of the image pickup apparatus according to the embodiment. 図5Bは、実施形態に係る撮像装置の動作について示すフローチャートである。FIG. 5B is a flowchart showing the operation of the image pickup apparatus according to the embodiment. 図6は、AF及びLV表示のための撮像と読み出し処理について説明するためのタイミングチャートである。FIG. 6 is a timing chart for explaining imaging and readout processing for AF and LV display. 図7は、第1の動作における画素加算の設定の例を示す図である。FIG. 7 is a diagram showing an example of setting pixel addition in the first operation. 図8は、第1の動作によってDRAMに記憶される画素データを示した図である。FIG. 8 is a diagram showing pixel data stored in the DRAM by the first operation. 図9は、第2の動作における画素加算の設定の例を示す図である。FIG. 9 is a diagram showing an example of setting pixel addition in the second operation. 図10は、第2の動作によってDRAMに記憶される画素データを示した図である。FIG. 10 is a diagram showing pixel data stored in the DRAM by the second operation. 図11は、AFモードがシングルAFモードであるときの撮像装置の動作を示すフローチャートである。FIG. 11 is a flowchart showing the operation of the image pickup apparatus when the AF mode is the single AF mode. 図12は、画素信号の読み出しの変形例を示す図である。FIG. 12 is a diagram showing a modified example of reading out a pixel signal. 図13は、図12の読み出しによってDRAMに記憶される画素データを示した図である。FIG. 13 is a diagram showing pixel data stored in the DRAM by reading out FIG. 図14Aは、変形例3について説明するための図である。FIG. 14A is a diagram for explaining the modified example 3. 図14Bは、変形例3について説明するための図である。FIG. 14B is a diagram for explaining the modified example 3.

以下、図面を参照して本発明の実施形態について説明する。図1は、本発明の一実施形態に係る焦点検出装置を含む撮像装置の構成の一例を示すブロック図である。なお、図1中において、矢印付き実線はデータの流れを、矢印付き破線は制御信号の流れをそれぞれ示している。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an example of a configuration of an image pickup apparatus including a focus detection apparatus according to an embodiment of the present invention. In FIG. 1, the solid line with an arrow indicates the flow of data, and the broken line with an arrow indicates the flow of a control signal.

図1に示すように、撮像装置1は、交換式レンズ100と、カメラ本体200とを有する。交換式レンズ100は、カメラ本体200に着脱できるように構成されている。交換式レンズ100とカメラ本体200とは、交換式レンズ100がカメラ本体200に装着されたときに、互いに通信できるように接続される。なお、撮像装置1は、必ずしもレンズ交換式の撮像装置でなくてもよい。例えば、撮像装置1は、レンズ一体型の撮像装置であってもよい。 As shown in FIG. 1, the image pickup apparatus 1 includes an interchangeable lens 100 and a camera body 200. The interchangeable lens 100 is configured so that it can be attached to and detached from the camera body 200. The interchangeable lens 100 and the camera body 200 are connected so that they can communicate with each other when the interchangeable lens 100 is attached to the camera body 200. The image pickup device 1 does not necessarily have to be an interchangeable lens type image pickup device. For example, the image pickup device 1 may be a lens-integrated image pickup device.

交換式レンズ100は、撮像光学系102と、駆動部104と、レンズCPU106と、レンズ側記憶部108とを備える。ここで、交換式レンズ100の各ブロックは、例えばハードウェアによって構成されている。しかしながら、必ずしもハードウェアによって構成されている必要はなく、一部はソフトウェアによって構成されていてもよい。また、交換式レンズ100の各ブロックは、単一のハードウェア又はソフトウェアによって構成されていなくてもよく、複数のハードウェア又はソフトウェアによって構成されていてもよい。 The interchangeable lens 100 includes an imaging optical system 102, a driving unit 104, a lens CPU 106, and a lens-side storage unit 108. Here, each block of the interchangeable lens 100 is composed of, for example, hardware. However, it does not necessarily have to be configured by hardware, and a part may be configured by software. Further, each block of the interchangeable lens 100 does not have to be composed of a single hardware or software, and may be composed of a plurality of hardware or software.

撮像光学系102は、被写体からの光束をカメラ本体200の撮像素子208に結像させるための光学系である。撮像光学系102は、フォーカスレンズ1021と、絞り1022とを有する。フォーカスレンズ1021は、光軸方向に移動することによって、撮像光学系102の焦点位置を調節できるように構成されている。 The image pickup optical system 102 is an optical system for forming a luminous flux from a subject on the image pickup element 208 of the camera body 200. The imaging optical system 102 includes a focus lens 1021 and an aperture 1022. The focus lens 1021 is configured so that the focal position of the imaging optical system 102 can be adjusted by moving in the optical axis direction.

絞り1022は、フォーカスレンズ1021の光軸上に配置される。絞り1022の口径は可変である。絞り1022は、フォーカスレンズ1021を通過して撮像素子208に入射する被写体からの光束の量を調節する。駆動部104は、レンズCPU106から出力される制御信号に基づいて、フォーカスレンズ1021と絞り1022とを駆動する。ここで、撮像光学系102は、ズームレンズとして構成されていてもよい。この場合、駆動部104はズーム駆動も行う。 The diaphragm 1022 is arranged on the optical axis of the focus lens 1021. The aperture 1022 has a variable aperture. The aperture 1022 adjusts the amount of light flux from the subject that passes through the focus lens 1021 and is incident on the image sensor 208. The drive unit 104 drives the focus lens 1021 and the aperture 1022 based on the control signal output from the lens CPU 106. Here, the imaging optical system 102 may be configured as a zoom lens. In this case, the drive unit 104 also performs zoom drive.

レンズCPU106は、インターフェイス(I/F)110を介してカメラ本体200のCPU212との間で通信できるように構成されている。レンズCPU106は、カメラ本体200のCPU212の制御に従って駆動部104を制御する。また、レンズCPU106は、I/F110を介して絞り1022の絞り値(F値)及びレンズ側記憶部108に記憶されているレンズ情報といった情報をCPU212に送信する。なお、レンズCPU106は、必ずしもCPUとして構成されていなくてもよい。すなわち、レンズCPU106と同様の機能は、ASIC、FPGA等によって実現されてもよい。また、レンズCPU106と同様の機能は、ソフトウェアによって実現されてもよい。 The lens CPU 106 is configured to be able to communicate with the CPU 212 of the camera body 200 via the interface (I / F) 110. The lens CPU 106 controls the drive unit 104 according to the control of the CPU 212 of the camera body 200. Further, the lens CPU 106 transmits information such as the aperture value (F value) of the aperture 1022 and the lens information stored in the lens side storage unit 108 to the CPU 212 via the I / F 110. The lens CPU 106 does not necessarily have to be configured as a CPU. That is, the same function as the lens CPU 106 may be realized by an ASIC, FPGA, or the like. Further, the same function as the lens CPU 106 may be realized by software.

レンズ側記憶部108は、交換式レンズ100に関するレンズ情報を記憶している。レンズ情報は、例えば撮像光学系102の焦点距離の情報や収差の情報を含む。 The lens-side storage unit 108 stores lens information regarding the interchangeable lens 100. The lens information includes, for example, information on the focal length of the imaging optical system 102 and information on aberrations.

カメラ本体200は、メカシャッター202と、駆動部204と、操作部206と、撮像素子208と、手振れ補正回路210と、CPU212と、画像処理回路214と、画像圧縮展開部216と、焦点検出回路218と、露出制御回路220と、表示部222と、バス224と、DRAM226と、本体側記憶部228と、記録媒体230とを有する。ここで、カメラ本体200の各ブロックは、例えばハードウェアによって構成されている。しかしながら、必ずしもハードウェアによって構成されている必要はなく、一部はソフトウェアによって構成されていてもよい。また、カメラ本体200の各ブロックは、単一のハードウェア又はソフトウェアによって構成されていなくてもよく、複数のハードウェア又はソフトウェアによって構成されていてもよい。 The camera body 200 includes a mechanical shutter 202, a drive unit 204, an operation unit 206, an image sensor 208, an image stabilization circuit 210, a CPU 212, an image processing circuit 214, an image compression expansion unit 216, and a focus detection circuit. It has 218, an exposure control circuit 220, a display unit 222, a bus 224, a DRAM 226, a main body side storage unit 228, and a recording medium 230. Here, each block of the camera body 200 is composed of, for example, hardware. However, it does not necessarily have to be configured by hardware, and a part may be configured by software. Further, each block of the camera body 200 does not have to be composed of a single hardware or software, and may be composed of a plurality of hardware or software.

メカシャッター202は、開閉自在に構成され、撮像素子208への被写体からの光束の入射時間(撮像素子208の露光時間)を調節する。メカシャッター202としては、例えばフォーカルプレーンシャッターが採用される。駆動部204は、CPU212からの制御信号に基づいてメカシャッター202を駆動する。 The mechanical shutter 202 is configured to be openable and closable, and adjusts the incident time of the light flux from the subject on the image sensor 208 (exposure time of the image sensor 208). As the mechanical shutter 202, for example, a focal plane shutter is adopted. The drive unit 204 drives the mechanical shutter 202 based on the control signal from the CPU 212.

操作部206は、電源ボタン、レリーズボタン、動画ボタン、再生ボタン、メニューボタンといった各種の操作ボタン及びタッチパネル等の各種の操作部材を含む。この操作部206は、各種の操作部材の操作状態を検知し、検知結果を示す信号をCPU212に出力する。 The operation unit 206 includes various operation buttons such as a power button, a release button, a moving image button, a play button, and a menu button, and various operation members such as a touch panel. The operation unit 206 detects the operation state of various operation members and outputs a signal indicating the detection result to the CPU 212.

撮像素子208は、撮像光学系102の光軸上であって、メカシャッター202の後方で、かつ、撮像光学系102によって被写体からの光束が結像される位置に配置されている。撮像素子208は、被写体を撮像して被写体に係る画素信号を生成する。撮像素子208については後で詳しく説明する。 The image sensor 208 is arranged on the optical axis of the image pickup optical system 102, behind the mechanical shutter 202, and at a position where a light flux from the subject is imaged by the image pickup optical system 102. The image pickup device 208 takes an image of the subject and generates a pixel signal related to the subject. The image sensor 208 will be described in detail later.

手振れ補正回路210は、カメラ本体200に発生した手振れが抑制されるように、撮像素子208をその受光面と平行な方向に移動させる。手振れに従って撮像素子208が移動されることにより、手振れに起因して画像データに発生する被写体像のぶれが抑制される。なお、手振れ補正回路は、交換式レンズ100に設けられていてもよい。この場合の手振れ補正回路は、撮像光学系102に含まれる手振れ補正光学系を移動させるように構成される。 The camera shake correction circuit 210 moves the image sensor 208 in a direction parallel to the light receiving surface thereof so that the camera shake generated in the camera body 200 is suppressed. By moving the image sensor 208 according to the camera shake, the blurring of the subject image generated in the image data due to the camera shake is suppressed. The camera shake correction circuit may be provided in the interchangeable lens 100. The camera shake correction circuit in this case is configured to move the camera shake correction optical system included in the image pickup optical system 102.

CPU212は、本体側記憶部228に記憶されているプログラムに従ってカメラ本体200の全体制御を行う。CPU212は、例えば撮像素子208による撮像を制御する。また、CPU212は、焦点検出回路218によって検出されたフォーカスレンズ1021の焦点状態に応じて、フォーカスレンズ1021を駆動するための制御信号をレンズCPU106に対して出力する。また、CPU212は、露出制御回路220によって算出された露出設定値をレンズCPU106及び撮像素子208に対して出力する。ここで、CPU212は、必ずしもCPUとして構成されていなくてもよい。すなわち、CPU212と同様の機能は、ASIC、FPGA等によって実現されてもよい。また、CPU212と同様の機能は、ソフトウェアによって実現されてもよい。 The CPU 212 controls the entire camera main body 200 according to a program stored in the main body side storage unit 228. The CPU 212 controls, for example, imaging by the image sensor 208. Further, the CPU 212 outputs a control signal for driving the focus lens 1021 to the lens CPU 106 according to the focus state of the focus lens 1021 detected by the focus detection circuit 218. Further, the CPU 212 outputs the exposure set value calculated by the exposure control circuit 220 to the lens CPU 106 and the image sensor 208. Here, the CPU 212 does not necessarily have to be configured as a CPU. That is, the same function as the CPU 212 may be realized by an ASIC, FPGA, or the like. Further, the same function as the CPU 212 may be realized by software.

画像処理回路214は、画素データに対して各種の画像処理を施す。例えば画像処理回路214は、静止画撮影の際には、静止画記録用の画像処理を施して静止画データを生成する。同様に、画像処理回路214は、動画撮影の際には、動画記録用の画像処理を施して動画データを生成する。さらに、画像処理回路214は、ライブビュー表示時には、表示用の画像処理を施して表示画像データを生成する。 The image processing circuit 214 performs various image processing on the pixel data. For example, when shooting a still image, the image processing circuit 214 performs image processing for recording a still image to generate still image data. Similarly, the image processing circuit 214 performs image processing for moving image recording to generate moving image data at the time of moving image shooting. Further, the image processing circuit 214 performs display image processing to generate display image data at the time of live view display.

画像圧縮展開部216は、画像データの記録時には、画像処理回路214で生成された画像データ(静止画データ又は動画データ)を圧縮する。また、画像データの再生時には、記録媒体230に圧縮状態で記録された画像データを伸張する。 When recording the image data, the image compression expansion unit 216 compresses the image data (still image data or moving image data) generated by the image processing circuit 214. Further, when the image data is reproduced, the image data recorded on the recording medium 230 in a compressed state is decompressed.

焦点検出回路218は、撮像素子208から出力される焦点検出画素データを用いた公知の位相差方式によってフォーカスレンズ1021の焦点検出を行う。 The focus detection circuit 218 detects the focus of the focus lens 1021 by a known phase difference method using the focus detection pixel data output from the image sensor 208.

測光部としての露出制御回路220は、撮像素子208の画素データに基づいて露出設定値を算出する。この露出制御回路220は、撮像素子208の画素データから被写体輝度を測定し、測定した被写体輝度から撮影時の被写体の輝度を適正値にするために必要な露出設定値を算出する。露出設定値は、絞り1022の開口量(絞り値)、撮像素子208の露光時間(シャッタースピード)を含む。 The exposure control circuit 220 as a photometric unit calculates an exposure set value based on the pixel data of the image sensor 208. The exposure control circuit 220 measures the subject brightness from the pixel data of the image sensor 208, and calculates the exposure setting value necessary for adjusting the brightness of the subject at the time of shooting to an appropriate value from the measured subject brightness. The exposure set value includes the aperture amount (aperture value) of the aperture 1022 and the exposure time (shutter speed) of the image sensor 208.

表示部222は、例えば液晶ディスプレイや有機ELディスプレイといった表示部であって、例えばカメラ本体200の背面に配置される。この表示部222は、CPU212の制御に従って画像を表示する。表示部222は、ライブビュー表示や記録済み画像の表示等に使用される。 The display unit 222 is a display unit such as a liquid crystal display or an organic EL display, and is arranged on the back surface of the camera body 200, for example. The display unit 222 displays an image under the control of the CPU 212. The display unit 222 is used for live view display, display of recorded images, and the like.

バス224は、撮像素子208、CPU212、画像処理回路214、画像圧縮展開部216、焦点検出回路218、露出制御回路220、表示部222、DRAM226、本体側記憶部228、記録媒体230に接続され、これらのブロックで発生した各種のデータを転送するための転送路として動作する。 The bus 224 is connected to an image sensor 208, a CPU 212, an image processing circuit 214, an image compression expansion unit 216, a focus detection circuit 218, an exposure control circuit 220, a display unit 222, a DRAM 226, a main body side storage unit 228, and a recording medium 230. It operates as a transfer path for transferring various data generated in these blocks.

DRAM226は、電気的に書き換えできるメモリであり、撮像素子208から出力される画素データ、静止画データ、動画データ、表示画像データ、CPU212における処理データといった各種データを一時的に記憶する。なお、一時記憶用としてSDRAMが用いられてもよい。 The DRAM 226 is an electrically rewritable memory, and temporarily stores various data such as pixel data, still image data, moving image data, display image data, and processing data in the CPU 212 output from the image sensor 208. Note that SDRAM may be used for temporary storage.

本体側記憶部228は、CPU212で使用されるプログラム、カメラ本体200の調整値等の各種データを記憶している。記録媒体230は、カメラ本体200に内蔵されるか又は装填されるように構成されており、記録用の画像データを所定の形式の画像ファイルとして記録する。なお、DRAM226、本体側記憶部228及び記録媒体230は、それぞれ1つのメモリ等で構成されてもよいし、複数のメモリ等が組み合わされて構成されてもよい。 The main body side storage unit 228 stores various data such as a program used by the CPU 212 and adjustment values of the camera main body 200. The recording medium 230 is configured to be built in or loaded in the camera body 200, and records image data for recording as an image file in a predetermined format. The DRAM 226, the main body side storage unit 228, and the recording medium 230 may each be configured by one memory or the like, or may be configured by combining a plurality of memories or the like.

次に、撮像素子208について説明する。図2は、一例の撮像素子208の構成を示す図である。図2に示すように、撮像素子208は、入力回路301と、制御回路302と、画素部303と、垂直走査回路304と、アナログ処理回路305と、アナログデジタル変換(ADC)処理回路306と、メモリ回路307と、水平走査回路308と、出力回路309とを有する。ここで、本実施形態における撮像部は、画素部303を有して構成されている。撮像部は、垂直走査回路304、アナログ処理回路305、ADC処理回路306、メモリ回路307をさらに有していてもよい。また、アナログ処理回路305及びADC処理回路306は、撮像素子208の外部に設けられていてもよい。 Next, the image sensor 208 will be described. FIG. 2 is a diagram showing a configuration of an example image sensor 208. As shown in FIG. 2, the image sensor 208 includes an input circuit 301, a control circuit 302, a pixel unit 303, a vertical scanning circuit 304, an analog processing circuit 305, an analog-to-digital conversion (ADC) processing circuit 306, and the like. It has a memory circuit 307, a horizontal scanning circuit 308, and an output circuit 309. Here, the imaging unit in the present embodiment is configured to include the pixel unit 303. The imaging unit may further include a vertical scanning circuit 304, an analog processing circuit 305, an ADC processing circuit 306, and a memory circuit 307. Further, the analog processing circuit 305 and the ADC processing circuit 306 may be provided outside the image pickup device 208.

入力回路301は、CPU212から撮像素子208の動作に係る制御信号を受け取って、制御回路302に入力する。この動作に係る制御信号は、同期信号(垂直同期信号及び水平同期信号)及び基準クロック並びに撮像素子208の動作設定の信号を含む。 The input circuit 301 receives a control signal related to the operation of the image sensor 208 from the CPU 212 and inputs the control signal to the control circuit 302. The control signal related to this operation includes a synchronization signal (vertical synchronization signal and horizontal synchronization signal), a reference clock, and a signal for setting the operation of the image sensor 208.

制御回路302は、例えばCPU又はASICによって構成され、入力回路301から入力された制御信号に基づいて撮像素子208の各部の動作を制御する。 The control circuit 302 is composed of, for example, a CPU or an ASIC, and controls the operation of each part of the image pickup device 208 based on the control signal input from the input circuit 301.

画素部303は、2次元状に複数配置され、入射光を光電変換して画素信号を生成する。図3は、画素部303の詳細な構成を示す図である。ここで、図3の左側は画素部303を正面から見た図を示し、図3の右側は画素部303を側面から見た図を示している。図3に示すように、画素部303は、マイクロレンズ303aと、カラーフィルタ303bと、画素303cとを有している。 A plurality of pixel units 303 are arranged two-dimensionally, and incident light is photoelectrically converted to generate a pixel signal. FIG. 3 is a diagram showing a detailed configuration of the pixel unit 303. Here, the left side of FIG. 3 shows a view of the pixel portion 303 as viewed from the front, and the right side of FIG. 3 shows a view of the pixel portion 303 as viewed from the side surface. As shown in FIG. 3, the pixel unit 303 includes a microlens 303a, a color filter 303b, and a pixel 303c.

マイクロレンズ303aは、撮像光学系102を通過した光束を対応する画素303cの受光部に集光させる。後で説明するように、1個の画素303cは、水平2個×垂直2個に瞳分割された4個の受光部によって構成されている。マイクロレンズ303aは、撮像光学系102の異なる射出瞳領域を通過した光束を異なる受光部に集光させる。 The microlens 303a collects the light flux that has passed through the imaging optical system 102 on the light receiving portion of the corresponding pixel 303c. As will be described later, one pixel 303c is composed of four light receiving portions whose pupils are divided into two horizontal × two vertical. The microlens 303a concentrates the light flux that has passed through the different exit pupil regions of the imaging optical system 102 on different light receiving units.

カラーフィルタ303bは、例えば原色系のベイヤ配列のカラーフィルタである。原色系のベイヤ配列は、赤(R)フィルタ及び緑(Gr)フィルタを交互に配列した行と、青(B)フィルタ及び緑(Gb)フィルタを交互に配列した行とを列方向に交互に配置した配列である。図3に示すように、カラーフィルタ303bの1色は、1個の画素303cと対応している。したがって、画素303cを構成する4個の受光部には同じ色の光が入射する。なお、カラーフィルタ303bは、必ずしも原色系のベイヤ配列のカラーフィルタでなくてもよい。 The color filter 303b is, for example, a color filter having a Bayer array of primary colors. In the primary color system bayer arrangement, rows in which red (R) filters and green (Gr) filters are alternately arranged and rows in which blue (B) filters and green (Gb) filters are alternately arranged are alternately arranged in the column direction. It is an arranged array. As shown in FIG. 3, one color of the color filter 303b corresponds to one pixel 303c. Therefore, light of the same color is incident on the four light receiving portions constituting the pixel 303c. The color filter 303b does not necessarily have to be a color filter having a Bayer array of primary colors.

画素303cは、第1の瞳分割方向である水平方向と第2の瞳分割方向である垂直方向とのそれぞれに分割して配置された4個の受光部lt、rt、lb、rbによって構成されている。図では、「lt」、「rt」、「lb」、「rb」の表記は、カラーフィルタの色を表す「R」、「Gr」、「Gb」、「B」に添えて記されている。受光部lt、rt、lb、rbは、被写体の同一の部分から射出された光束を受光する。受光部lt、rt、lb、rbのそれぞれは例えばフォトダイオードによって構成され、受光した光束に応じて蓄積された電荷に基づく画素信号を出力する。ここで、受光部ltは、射出された光束のうち、撮像光学系102の右下の射出瞳領域を通過した光束を受光する。受光部rtは、射出された光束のうち、撮像光学系102の左下の射出瞳領域を通過した光束を受光する。受光部lbは、射出された光束のうち、撮像光学系102の右上の射出瞳領域を通過した光束を受光する。受光部rbは、射出された光束のうち、撮像光学系102の左上の射出瞳領域を通過した光束を受光する。 The pixel 303c is composed of four light receiving portions lt, rt, lb, and rb which are divided and arranged in the horizontal direction which is the first pupil division direction and the vertical direction which is the second pupil division direction. ing. In the figure, the notation of "lt", "rt", "lb", and "rb" is attached to "R", "Gr", "Gb", and "B" indicating the color of the color filter. .. The light receiving units lt, rt, lb, and rb receive the light flux emitted from the same portion of the subject. Each of the light receiving units lt, rt, lb, and rb is composed of, for example, a photodiode, and outputs a pixel signal based on the accumulated charge according to the received light flux. Here, the light receiving unit lt receives the light flux that has passed through the exit pupil region at the lower right of the imaging optical system 102 among the emitted light flux. The light receiving unit rt receives the light flux that has passed through the exit pupil region at the lower left of the imaging optical system 102 among the emitted light flux. The light receiving unit lb receives the light flux that has passed through the exit pupil region on the upper right of the imaging optical system 102 among the emitted light flux. The light receiving unit rb receives the light flux that has passed through the exit pupil region on the upper left of the imaging optical system 102 among the emitted light flux.

画素303cが4個の受光部lt、rt、lb、rbに分割されている構造により、画素303cを位相差検出のための左右開口画素と上下開口画素の何れとしても扱うことができる。左右開口画素とは、撮像光学系の左側の射出瞳領域を通過した光束を受光する画素と撮像光学系の右側の射出瞳領域を通過した光束を受光する画素との対である。上下開口画素とは、撮像光学系の上側の射出瞳領域を通過した光束を受光する画素と撮像光学系の下側の射出瞳領域を通過した光束を受光する画素との対である。画素303cを左右開口画素と上下開口画素の何れとして扱うかは、制御回路302からの制御信号によって切り替えられる。 Due to the structure in which the pixel 303c is divided into four light receiving units lt, rt, lb, and rb, the pixel 303c can be treated as either a left-right opening pixel or a top-bottom opening pixel for phase difference detection. The left and right aperture pixels are a pair of a pixel that receives a light flux that has passed through the exit pupil region on the left side of the imaging optical system and a pixel that receives a light flux that has passed through the exit pupil region on the right side of the imaging optical system. The upper and lower aperture pixels are a pair of a pixel that receives a light flux that has passed through the upper exit pupil region of the imaging optical system and a pixel that receives a light flux that has passed through the lower exit pupil region of the imaging optical system. Whether the pixel 303c is treated as a left-right opening pixel or a top-bottom opening pixel is switched by a control signal from the control circuit 302.

画素303cが左右開口画素として取り扱われるときには、制御回路302は、図4Aの左側で示すようにして左半分の受光部である受光部lt(Rlt、Grlt、Gblt、Blt)の画素信号と受光部lb(Rlb、Grlb、Gblb、Blb)の画素信号とを加算(混合)して出力させるとともに、右半分の受光部である受光部rt(Rrt、Grrt、Gbrt、Brt)の画素信号と受光部rb(Rrb、Grrb、Gbrb、Brb)の画素信号とを加算して出力させる。これにより、図4Aの右側で示すようにして、撮像光学系の右側の射出瞳領域を通過した光束の情報を有する左開口画素信号l(Rl、Grl、Gbl、Bl)と撮像光学系の左側の射出瞳領域を通過した光束の情報を有する右開口画素信号r(Rr、Grr、Gbr、Br)とがそれぞれ出力される。 When the pixel 303c is treated as a left and right opening pixel, the control circuit 302 is a pixel signal and a light receiving part of a light receiving part lt (Rlt, Grlt, Gblt, Blt) which is a light receiving part of the left half as shown on the left side of FIG. 4A. The pixel signals of lb (Rlb, Grlb, Gblb, Blb) are added (mixed) and output, and the pixel signals of the light receiving part rt (Rrt, Grrt, Gbrt, Brt) and the light receiving part, which are the light receiving parts of the right half, are output. The pixel signals of rb (Rrb, Grrb, Gbrb, Brb) are added and output. As a result, as shown on the right side of FIG. 4A, the left aperture pixel signal l (Rl, Grl, Gbl, Bl) having the information of the luminous flux passing through the exit pupil region on the right side of the imaging optical system and the left side of the imaging optical system. Right aperture pixel signals r (Rr, Grr, Gbr, Br) having information on the luminous flux passing through the exit pupil region of the above are output, respectively.

画素303cが上下開口画素として取り扱われるときには、制御回路302は、図4Bの左側で示すようにして上半分の受光部である受光部lt(Rlt、Grlt、Gblt、Blt)の画素信号と受光部rt(Rrt、Grrt、Gbrt、Brt)の画素信号とを加算(混合)して出力させるとともに、下半分の受光部である受光部lb(Rlb、Grlb、Gblb、Blb)の画素信号と受光部rb(Rrb、Grrb、Gbrb、Brb)の画素信号とを加算して出力させる。これにより、図4Bの右側で示すようにして、撮像光学系の下側の射出瞳領域を通過した光束の情報を有する上開口画素信号t(Rt、Grt、Gbt、Bt)と撮像光学系の上側の射出瞳領域を通過した光束の情報を有する下開口画素信号b(Rb、Grb、Gbb、Bb)とがそれぞれ出力される。 When the pixel 303c is treated as the upper and lower opening pixels, the control circuit 302 has a pixel signal and a light receiving part of the light receiving part lt (Rlt, Grlt, Gblt, Blt) which is the light receiving part of the upper half as shown on the left side of FIG. 4B. The pixel signals of rt (Rrt, Grrt, Gbrt, Brt) are added (mixed) and output, and the pixel signals of the light receiving part lb (Rlb, Grlb, Gblb, Blb), which is the light receiving part of the lower half, and the light receiving part The pixel signals of rb (Rrb, Grrb, Gbrb, Brb) are added and output. As a result, as shown on the right side of FIG. 4B, the upper aperture pixel signal t (Rt, Grt, Gbt, Bt) having the information of the luminous flux passing through the exit pupil region on the lower side of the imaging optical system and the imaging optical system Lower aperture pixel signals b (Rb, Grb, Gbb, Bb) having information on the luminous flux passing through the upper exit pupil region are output, respectively.

さらに、本実施形態の画素部303は、異なる画素部303の間でも画素信号を加算して出力できるようにも構成されていてよい。例えば、画素部303は、水平方向又は垂直方向に存在する複数の左開口画素同士又は右開口同士の画素信号を加算して出力したり、水平方向又は垂直方向に存在する複数の上開口同士又は下開口画素同士の画素信号を加算して出力したりするように構成されていてもよい。画素信号の加算数は、例えば制御回路302によって設定される。画素信号を加算してから読み出すことにより、読み出し時間を短縮することができる。なお、読み出し時間に余裕があるときには、画素部303の間での画素信号の加算は行われなくてもよい。 Further, the pixel unit 303 of the present embodiment may be configured so that pixel signals can be added and output even between different pixel units 303. For example, the pixel unit 303 adds and outputs pixel signals of a plurality of left-opening pixels or right-opening pixels existing in the horizontal or vertical direction, or a plurality of upper openings existing in the horizontal or vertical direction or It may be configured to add and output the pixel signals of the lower aperture pixels. The addition number of pixel signals is set by, for example, the control circuit 302. The read time can be shortened by adding the pixel signals and then reading. When there is a margin in the read time, the pixel signals may not be added between the pixel units 303.

垂直走査回路304は、制御回路302からの制御信号としての蓄積開始信号を受ける毎に1行ずつ画素部303の画素303cに蓄積された電荷をリセットしてから画素部303における電荷の蓄積を開始させる。また、垂直走査回路304は、制御回路302からの制御信号としての蓄積終了信号を受ける毎に1行ずつ画素部303の画素303cにおける電荷の蓄積を終了させ、蓄積された電荷を画素信号としてアナログ処理回路305に転送させる。 Each time the vertical scanning circuit 304 receives a storage start signal as a control signal from the control circuit 302, the vertical scanning circuit 304 resets the electric charge accumulated in the pixel 303c of the pixel unit 303 one line at a time, and then starts accumulating the electric charge in the pixel unit 303. Let me. Further, the vertical scanning circuit 304 ends the accumulation of electric charges in the pixel 303c of the pixel unit 303 one line at a time each time it receives an accumulation end signal as a control signal from the control circuit 302, and the accumulated electric charge is analog as a pixel signal. It is transferred to the processing circuit 305.

アナログ処理回路305は、画素部303から順次に転送された画素信号に対してアナログ処理をする。アナログ処理回路305は、例えば、画素信号をアナログ的に増幅するプリアンプ、画素信号からリセットノイズを除去する相関二重サンプリング(CDS)処理回路等を含む。 The analog processing circuit 305 performs analog processing on the pixel signals sequentially transferred from the pixel unit 303. The analog processing circuit 305 includes, for example, a preamplifier that amplifies the pixel signal in an analog manner, a correlated double sampling (CDS) processing circuit that removes reset noise from the pixel signal, and the like.

ADC処理回路306は、制御回路302からの制御信号に従ってアナログ処理回路305から出力された画素信号をデジタル信号である画素データに変換する。このADC処理回路306は、例えばカラム型ADC処理回路として構成されている。 The ADC processing circuit 306 converts the pixel signal output from the analog processing circuit 305 into pixel data which is a digital signal according to the control signal from the control circuit 302. The ADC processing circuit 306 is configured as, for example, a column-type ADC processing circuit.

メモリ回路307は、制御回路302からの制御信号に従ってADC処理回路306から出力された画素データを一時的に記憶する。メモリ回路307は、揮発性メモリ等で構成されている。メモリ回路307は、画素データのデジタル加算を行うように構成されていてもよい。この場合、メモリ回路307は、ADC処理回路306から出力される画素データの加算値を記憶するように構成される。 The memory circuit 307 temporarily stores the pixel data output from the ADC processing circuit 306 according to the control signal from the control circuit 302. The memory circuit 307 is composed of a volatile memory or the like. The memory circuit 307 may be configured to perform digital addition of pixel data. In this case, the memory circuit 307 is configured to store the added value of the pixel data output from the ADC processing circuit 306.

水平走査回路308は、制御回路302からの制御信号を受けてメモリ回路307に記憶されている画素データを列順で出力回路309に転送させる。 The horizontal scanning circuit 308 receives the control signal from the control circuit 302 and transfers the pixel data stored in the memory circuit 307 to the output circuit 309 in column order.

出力回路309は、水平走査回路308によって転送された画素データを配列して画素データ列を生成する。また、出力回路309は、画素データ列をシリアル信号及び差動信号等の所定の出力信号形式に変換して出力する。 The output circuit 309 arranges the pixel data transferred by the horizontal scanning circuit 308 to generate a pixel data string. Further, the output circuit 309 converts the pixel data string into a predetermined output signal format such as a serial signal and a differential signal and outputs the signal.

以下、本実施形態に係る撮像装置1の動作を説明する。図5A及び図5Bは、本実施形態に係る撮像装置の動作について示すフローチャートである。ここで、図5A及び図5Bは、撮像装置1のAFモードがコンティニュアスAFモードであるときの動作を示している。コンティニュアスAFモードは、動く被写体に対して適したAFモードであり、被写体に追従するようにピント合わせを続けるAFモードである。 Hereinafter, the operation of the image pickup apparatus 1 according to the present embodiment will be described. 5A and 5B are flowcharts showing the operation of the image pickup apparatus according to the present embodiment. Here, FIGS. 5A and 5B show the operation when the AF mode of the image pickup apparatus 1 is the continuous AF mode. The continuous AF mode is an AF mode suitable for a moving subject, and is an AF mode that keeps focusing so as to follow the subject.

図5A及び図5Bの動作は、ユーザによる撮像装置1の電源のオン操作が検出されたときに開始される。電源のオン操作が検出されると、ステップS101において、CPU212は、レリーズボタンの1stレリーズスイッチがオンの状態であるか否かを判定する。1stレリーズスイッチは、例えばユーザによるレリーズボタンの半押し操作に応答してオンの状態となるスイッチである。ステップS101において、1stレリーズスイッチがオンの状態であると判定されたときには、処理はステップS104に移行する。ステップS101において、1stレリーズスイッチがオンの状態でないと判定されたときには、処理はステップS102に移行する。 The operations of FIGS. 5A and 5B are started when the user's power-on operation of the image pickup apparatus 1 is detected. When the power-on operation is detected, in step S101, the CPU 212 determines whether or not the 1st release switch of the release button is in the on state. The 1st release switch is, for example, a switch that is turned on in response to a half-press operation of the release button by the user. When it is determined in step S101 that the 1st release switch is in the ON state, the process proceeds to step S104. When it is determined in step S101 that the 1st release switch is not in the ON state, the process proceeds to step S102.

ステップS102において、CPU212は、ライブビュー(LV)表示のための表示画素データの取り込みを行う。このとき、CPU212は、メカシャッター202を全開状態とするように駆動部204に対して制御信号を出力するとともに、絞り1022を所定量(例えば開放絞り)だけ駆動するようにレンズCPU106に対して制御信号を出力する。その後、CPU212は、撮像素子208に対して制御信号を出力して撮像素子208によるLV表示のための撮像を開始させる。そして、LV表示のための撮像が完了する毎に、制御回路302は、画素部303からの画素信号の読み出しを開始させる。なお、画素信号の読み出しに際し、制御回路302は、画素部303の画素303cから出力される同一開口(同色)の画素信号を加算させるようにしてもよい。撮像素子208から出力された表示画素データは、DRAM226に記憶される。 In step S102, the CPU 212 captures display pixel data for live view (LV) display. At this time, the CPU 212 outputs a control signal to the drive unit 204 so that the mechanical shutter 202 is fully opened, and controls the lens CPU 106 to drive the aperture 1022 by a predetermined amount (for example, an open aperture). Output a signal. After that, the CPU 212 outputs a control signal to the image pickup device 208 to start imaging for LV display by the image pickup device 208. Then, each time the imaging for LV display is completed, the control circuit 302 starts reading the pixel signal from the pixel unit 303. When reading out the pixel signal, the control circuit 302 may add the pixel signals of the same aperture (same color) output from the pixel 303c of the pixel unit 303. The display pixel data output from the image sensor 208 is stored in the DRAM 226.

ステップS103において、CPU212はLV表示を行う。このとき、CPU212は、画像処理回路214に表示画像データを生成させる。これを受けて、画像処理回路214は、表示画素データに対して必要な処理を行って表示のための表示画像データを生成する。表示画像データは、同一の画素部303に属する受光部lt、rt、lb、rbの画素データを加算平均することで得られる。CPU212は、画像処理回路214で生成された表示画像データに基づいて表示部222にLV画像を表示させる。その後、処理は、ステップS126に移行する。 In step S103, the CPU 212 displays the LV. At this time, the CPU 212 causes the image processing circuit 214 to generate display image data. In response to this, the image processing circuit 214 performs necessary processing on the display pixel data to generate display image data for display. The display image data is obtained by adding and averaging the pixel data of the light receiving units lt, rt, lb, and rb belonging to the same pixel unit 303. The CPU 212 causes the display unit 222 to display the LV image based on the display image data generated by the image processing circuit 214. After that, the process proceeds to step S126.

ステップS104において、CPU212は、オートフォーカス(AF)及びLV表示のための撮像と読み出しを行う。ステップS104のAF及びLV表示のための撮像と読み出し処理については後で詳しく説明する。ここでは、AFのための撮像と読み出しによってAFのための焦点検出画素データがDRAM226に記憶され、LVのための撮像と読み出しによって表示のための表示画素データがDRAM226に記憶されたものとして説明を続ける。 In step S104, the CPU 212 performs imaging and reading for autofocus (AF) and LV display. The imaging and readout processing for AF and LV display in step S104 will be described in detail later. Here, it is assumed that the focus detection pixel data for AF is stored in the DRAM 226 by imaging and readout for AF, and the display pixel data for display is stored in the DRAM 226 by imaging and readout for LV. continue.

ステップS105において、CPU212は、LV表示を行う。 In step S105, the CPU 212 displays the LV.

ステップS106において、CPU212は、焦点検出回路218による焦点検出演算を実行させる。焦点検出回路218は、DRAM226に記憶されている焦点検出画素データのうちの対をなす焦点検出画素データを用いて相関演算を行う。水平方向の位相差検出の場合の対をなす焦点検出画素データは左開口画素データlと右開口画素データrであり、垂直方向の位相差の検出の場合の対をなす焦点検出画素データは上開口画素データtと下開口画素データbである。相関演算の後、焦点検出回路218は、焦点検出の信頼性判定を行う。信頼性判定は、例えば画素データから得られるコントラスト、相関演算の結果として算出される相関値に基づいて判定される。 In step S106, the CPU 212 causes the focus detection circuit 218 to execute the focus detection operation. The focus detection circuit 218 performs a correlation calculation using a pair of focus detection pixel data among the focus detection pixel data stored in the DRAM 226. The paired focus detection pixel data in the case of horizontal phase difference detection is the left aperture pixel data l and the right aperture pixel data r, and the paired focus detection pixel data in the case of vertical phase difference detection is above. The opening pixel data t and the lower opening pixel data b. After the correlation calculation, the focus detection circuit 218 determines the reliability of the focus detection. The reliability determination is determined based on, for example, the contrast obtained from the pixel data and the correlation value calculated as a result of the correlation calculation.

ステップS107において、焦点検出回路218は、ピントずれ量演算を行う。すなわち、焦点検出回路218は、ステップS106における信頼性判定の結果、信頼性が高いと判定された焦点検出領域における2像間隔値(相関値の極値に対応した像ずれ量)からフォーカスレンズ1021の合焦位置に対するピントずれ量を算出する。その後、処理はステップS108に移行する。 In step S107, the focus detection circuit 218 calculates the amount of focus shift. That is, the focus detection circuit 218 is focused on the focus lens 1021 from the two image spacing values (the amount of image shift corresponding to the extreme value of the correlation value) in the focus detection region determined to be highly reliable as a result of the reliability determination in step S106. Calculate the amount of focus shift with respect to the in-focus position of. After that, the process proceeds to step S108.

ステップS108において、焦点検出回路218は、フォーカスレンズ1021の駆動に用いるフォーカスレンズ位置に対応する焦点検出領域を選択するためのエリア選択処理を行う。エリア選択処理の後、処理はステップS109に移行する。エリア選択処理は、例えば、最も近い被写体距離に対応した(すなわち最至近の)フォーカスレンズ位置に対応するピントずれ量を示す焦点検出領域を選択することで行われる。 In step S108, the focus detection circuit 218 performs an area selection process for selecting a focus detection region corresponding to the focus lens position used to drive the focus lens 1021. After the area selection process, the process proceeds to step S109. The area selection process is performed, for example, by selecting a focus detection area that indicates the amount of focus shift corresponding to the (that is, the closest) focus lens position corresponding to the closest subject distance.

ステップS109において、CPU212は、フォーカスレンズ1021が合焦状態であるか否かを判定する。ステップS109における判定は、例えばエリア選択処理において選択された焦点検出領域におけるピントずれ量(現在のフォーカスレンズ位置と選択されたフォーカスレンズ位置との差に対応する)が予め定められた許容範囲内であるか否かを判定することによって行われる。ピントずれ量が許容範囲内であるときには合焦状態であると判定される。ステップS109において、フォーカスレンズ1021が合焦状態でないと判定されたときには処理はステップS110に移行する。ステップS109において、フォーカスレンズ1021が合焦状態であると判定されたときには処理はステップS111に移行する。 In step S109, the CPU 212 determines whether or not the focus lens 1021 is in focus. In the determination in step S109, for example, the amount of focus shift (corresponding to the difference between the current focus lens position and the selected focus lens position) in the focus detection area selected in the area selection process is within a predetermined allowable range. It is done by determining whether or not there is. When the out-of-focus amount is within the permissible range, it is determined that the subject is in focus. When it is determined in step S109 that the focus lens 1021 is not in the focused state, the process proceeds to step S110. When it is determined in step S109 that the focus lens 1021 is in the focused state, the process proceeds to step S111.

ステップS110において、CPU212は、ステップS108において選択された焦点検出領域について算出されたフォーカスレンズ位置に応じてフォーカスレンズ1021が駆動されるよう、レンズCPU106に対して制御信号を出力する。レンズCPU106は、この制御信号を受けて、駆動部104を介してフォーカスレンズ1021を駆動する。その後、処理は、ステップS126へ移行する。 In step S110, the CPU 212 outputs a control signal to the lens CPU 106 so that the focus lens 1021 is driven according to the focus lens position calculated for the focus detection region selected in step S108. The lens CPU 106 receives this control signal and drives the focus lens 1021 via the drive unit 104. After that, the process proceeds to step S126.

ステップS111において、CPU212は、ステップS104と同様のオートフォーカス(AF)及びLV表示のための撮像と読み出しを行う。ここでは、AFのための撮像と読み出しによって焦点検出画素データがDRAM226に記憶され、LVのための撮像と読み出しによって表示画素データがDRAM226に記憶されたものとして説明を続ける。 In step S111, the CPU 212 performs imaging and reading for autofocus (AF) and LV display in the same manner as in step S104. Here, the description will be continued assuming that the focus detection pixel data is stored in the DRAM 226 by imaging and reading for AF, and the display pixel data is stored in the DRAM 226 by imaging and reading for LV.

ステップS112において、CPU212は、LV表示を行う。 In step S112, the CPU 212 displays the LV.

ステップS113において、CPU212は、焦点検出回路218による焦点検出演算を実行させる。焦点検出回路218は、DRAM226に記憶されている焦点検出画素データのうちの対をなす焦点検出画素データを用いて相関演算を行う。相関演算の後、焦点検出回路218は、焦点検出の信頼性判定を行う。ステップS114において、焦点検出回路218は、ピントずれ量演算を行う。ステップS115において、焦点検出回路218は、エリア選択処理を行う。 In step S113, the CPU 212 causes the focus detection circuit 218 to execute the focus detection operation. The focus detection circuit 218 performs a correlation calculation using a pair of focus detection pixel data among the focus detection pixel data stored in the DRAM 226. After the correlation calculation, the focus detection circuit 218 determines the reliability of the focus detection. In step S114, the focus detection circuit 218 calculates the amount of focus shift. In step S115, the focus detection circuit 218 performs an area selection process.

ステップS116において、焦点検出回路218は、焦点検出に係る情報を履歴情報として例えばDRAM226に保存する。焦点検出に係る情報は、例えばステップS114で算出されたピントずれ量の情報及びステップS115で選択された焦点検出領域の情報を含む。 In step S116, the focus detection circuit 218 stores the information related to the focus detection as history information in, for example, DRAM 226. The information related to focus detection includes, for example, information on the amount of focus shift calculated in step S114 and information on the focus detection region selected in step S115.

ステップS117において、CPU212は、2ndレリーズスイッチがオンされているか否かを判定する。2ndレリーズスイッチは、例えばユーザによるレリーズボタンの全押し操作に応答してオンの状態となるスイッチである。ステップS117において、2ndレリーズスイッチがオンの状態でないと判定されたときには、処理はステップS118に移行する。ステップS117において、2ndレリーズスイッチがオンの状態であると判定されたときには、処理はステップS120に移行する。 In step S117, the CPU 212 determines whether or not the 2nd release switch is turned on. The 2nd release switch is, for example, a switch that is turned on in response to a user's full press operation of the release button. When it is determined in step S117 that the 2nd release switch is not in the ON state, the process proceeds to step S118. When it is determined in step S117 that the 2nd release switch is in the ON state, the process proceeds to step S120.

ステップS118において、CPU212は、フォーカスレンズ1021が合焦状態であるか否かを判定する。ステップS118において、フォーカスレンズ1021が合焦状態でないと判定されたときには処理はステップS119に移行する。ステップS118において、フォーカスレンズ1021が合焦状態であると判定されたときには処理はステップS125に移行する。 In step S118, the CPU 212 determines whether or not the focus lens 1021 is in focus. When it is determined in step S118 that the focus lens 1021 is not in the focused state, the process proceeds to step S119. When it is determined in step S118 that the focus lens 1021 is in the focused state, the process proceeds to step S125.

ステップS119において、CPU212は、ステップS115において選択された焦点検出領域について算出されたフォーカスレンズ位置に応じてフォーカスレンズ1021が駆動されるよう、レンズCPU106に対して制御信号を出力する。レンズCPU106は、この制御信号を受けて、駆動部104を介してフォーカスレンズ1021を駆動する。その後、処理は、ステップS125に移行する。 In step S119, the CPU 212 outputs a control signal to the lens CPU 106 so that the focus lens 1021 is driven according to the focus lens position calculated for the focus detection region selected in step S115. The lens CPU 106 receives this control signal and drives the focus lens 1021 via the drive unit 104. After that, the process proceeds to step S125.

ステップS120において、CPU212は、焦点検出回路218よる動体予測演算を実行させる。これを受けて、焦点検出回路218は、動体予測演算を行う。動体予測演算は、ステップS116で記憶させておいた過去のピントずれ量演算の結果(フォーカスレンズ位置)の履歴から今回のフォーカスレンズ1021の駆動すべき位置を予測する処理である。 In step S120, the CPU 212 causes the moving object prediction calculation by the focus detection circuit 218 to be executed. In response to this, the focus detection circuit 218 performs a moving object prediction calculation. The moving object prediction calculation is a process of predicting the position to be driven of the focus lens 1021 this time from the history of the result (focus lens position) of the past focus shift amount calculation stored in step S116.

ステップS121において、CPU212は、静止画取得のための撮像(本露光)を行うために、メカシャッター202の動作を開始させる。このメカシャッター202の動作は、本露光の前後のメカシャッター202の開閉動作と、本露光の後でライブビュー及びAFのための撮像を開始するためのメカシャッター202の全開動作とを含む。CPU212は、まず、メカシャッター202を全閉状態とするように駆動部204の制御信号を切り替える。そして、ステップS123で本露光を行った後に、CPU212は、メカシャッター202を全開状態とするように駆動部204を制御する。 In step S121, the CPU 212 starts the operation of the mechanical shutter 202 in order to perform imaging (main exposure) for acquiring a still image. The operation of the mechanical shutter 202 includes an opening / closing operation of the mechanical shutter 202 before and after the main exposure, and a fully opening operation of the mechanical shutter 202 for starting imaging for live view and AF after the main exposure. First, the CPU 212 switches the control signal of the drive unit 204 so that the mechanical shutter 202 is fully closed. Then, after performing the main exposure in step S123, the CPU 212 controls the drive unit 204 so that the mechanical shutter 202 is fully opened.

ステップS122において、CPU212は、レンズCPU106に対してフォーカスレンズ1021及び絞り1022を同時駆動させるように指示して動作を開始させる。ここで、フォーカスレンズ1021の駆動位置は、ステップS120の動体予測演算において予測された位置である。また、絞り1022の開口量は、直前の測光演算によって測定された被写体輝度に基づいて算出された絞り値に応じた開口量である。 In step S122, the CPU 212 instructs the lens CPU 106 to simultaneously drive the focus lens 1021 and the aperture 1022 to start the operation. Here, the drive position of the focus lens 1021 is the position predicted in the moving object prediction calculation in step S120. Further, the opening amount of the aperture 1022 is an opening amount according to the aperture value calculated based on the subject brightness measured by the immediately preceding photometric calculation.

ステップS123において、CPU212は、本露光を開始させる。本露光は、記録用の画像データを取得するための撮像である。本露光において、CPU212は、撮像素子208の撮像を開始させる。露光期間の終了後、制御回路302は、撮像素子208の各受光部からの画素信号を読み出す。画素信号の読み出し後、CPU212は、記録用の静止画データを生成するための処理を画像処理回路214に行わせる。これを受けて、画像処理回路214は、記録用の画像データの生成に必要な処理を行って記録用の静止画データを生成する。画像処理の完了後、CPU212は、画像圧縮展開部216によって記録用の静止画データを圧縮する。圧縮の完了後、CPU212は、圧縮された記録用の静止画データを画像ファイルとして記録媒体230に記録する。 In step S123, the CPU 212 starts the main exposure. This exposure is an imaging for acquiring image data for recording. In this exposure, the CPU 212 starts imaging of the image sensor 208. After the end of the exposure period, the control circuit 302 reads out the pixel signals from each light receiving unit of the image sensor 208. After reading out the pixel signal, the CPU 212 causes the image processing circuit 214 to perform a process for generating still image data for recording. In response to this, the image processing circuit 214 performs processing necessary for generating image data for recording to generate still image data for recording. After the image processing is completed, the CPU 212 compresses the still image data for recording by the image compression expansion unit 216. After the compression is completed, the CPU 212 records the compressed still image data for recording as an image file on the recording medium 230.

ステップS124において、CPU212は、レンズCPU106に対して絞り1022を開放させるように指示する。 In step S124, the CPU 212 instructs the lens CPU 106 to open the aperture 1022.

ステップS125において、CPU212は、1stレリーズスイッチがオンの状態であるか否かを判定する。ステップS125において、1stレリーズスイッチがオンの状態であると判定されたときには、処理はステップS111に戻る。ステップS125において、1stレリーズスイッチがオンの状態でないと判定されたときには、処理はステップS126に移行する。 In step S125, the CPU 212 determines whether or not the 1st release switch is in the ON state. When it is determined in step S125 that the 1st release switch is in the ON state, the process returns to step S111. When it is determined in step S125 that the 1st release switch is not in the ON state, the process proceeds to step S126.

ステップS126おいて、CPU212は、カメラ本体200の電源をオフするか否かを判定する。例えば、ユーザの操作部206の操作によって電源のオフが指示された場合又は所定時間のユーザの操作部206の操作がない場合には電源をオフすると判定される。ステップS126において、カメラ本体200の電源をオフしないと判定されたときには、処理はステップS101に戻る。ステップS126において、カメラ本体200の電源をオフすると判定されたときには、処理は終了する。 In step S126, the CPU 212 determines whether or not to turn off the power of the camera body 200. For example, it is determined that the power is turned off when the power is instructed to be turned off by the operation of the user's operation unit 206 or when the user's operation unit 206 is not operated for a predetermined time. When it is determined in step S126 that the power of the camera body 200 is not turned off, the process returns to step S101. When it is determined in step S126 that the power of the camera body 200 is turned off, the process ends.

次に、ステップS104及びステップS111の処理について説明する。図6は、ステップS104及びステップS111のAF及びLV表示のための撮像と読み出し処理について説明するためのタイミングチャートである。ここで、図6の「VD」は、制御回路302に入力される同期信号(垂直同期信号)のタイミングを示している。VD(1)はAFのための撮像と読み出しとを含む第1の動作のタイミングを示す垂直同期信号であり、VD(2)はLV表示のための撮像と読み出しとを含む第2の動作のタイミングを示す垂直同期信号である。VD(1)とVD(2)とは1フレームの間に1回ずつ制御回路302に入力される。この場合、ステップS104の処理は1フレーム毎に行われる。なお、1フレームの長さは、LV表示の画面の更新間隔及び連写時の連写間隔を示す連写速度等に応じて決められる。以下、第1の動作及び第2の動作のそれぞれについて詳しく説明する。 Next, the processing of step S104 and step S111 will be described. FIG. 6 is a timing chart for explaining the imaging and readout processing for AF and LV display in steps S104 and S111. Here, “VD” in FIG. 6 indicates the timing of the synchronization signal (vertical synchronization signal) input to the control circuit 302. VD (1) is a vertical synchronization signal indicating the timing of the first operation including imaging and readout for AF, and VD (2) is a second operation including imaging and readout for LV display. It is a vertical synchronization signal indicating the timing. The VD (1) and the VD (2) are input to the control circuit 302 once during one frame. In this case, the process of step S104 is performed every frame. The length of one frame is determined according to the update interval of the LV display screen, the continuous shooting speed indicating the continuous shooting interval at the time of continuous shooting, and the like. Hereinafter, each of the first operation and the second operation will be described in detail.

まず、第1の動作について説明する。図6のAF(rl)で示す第1の動作は、第1の瞳分割方向に関する焦点検出画素信号の生成と読み出しのための動作である。第1の瞳分割方向は、例えば画素部303の水平方向である。第1の動作に先立って、制御回路302は、画素部303から左開口画素信号l(Rl、Grl、Gbl、Bl)と右開口画素信号r(Rr、Grr、Gbr、Br)とが出力されるように画素部303の設定を切り替える。また、制御回路302は、画素信号の読み出し時間の短縮を図るために、画素部303の間の画素加算の設定を行う。図7は、第1の動作における画素加算の設定の例を示している。図7に示すように、第1の動作では、第1の瞳分割方向である水平方向については加算が行われずに、第2の瞳分割方向である垂直方向についてだけ加算が行われるように設定がされる。図7の例では、垂直方向に並ぶ同一開口(左開口同士又は右開口同士)の画素信号を6個ずつ加算するように設定されている。画素信号の加算数は例えばフレームレートに応じて適宜に設定される。 First, the first operation will be described. The first operation shown by AF (rl) in FIG. 6 is an operation for generating and reading a focus detection pixel signal with respect to the first pupil division direction. The first pupil division direction is, for example, the horizontal direction of the pixel unit 303. Prior to the first operation, the control circuit 302 outputs a left-opening pixel signal l (Rl, Grl, Gbl, Bl) and a right-opening pixel signal r (Rr, Grr, Gbr, Br) from the pixel unit 303. The setting of the pixel unit 303 is switched so as to be. Further, the control circuit 302 sets the pixel addition between the pixel units 303 in order to shorten the pixel signal reading time. FIG. 7 shows an example of setting the pixel addition in the first operation. As shown in FIG. 7, in the first operation, addition is not performed in the horizontal direction, which is the first pupil division direction, and addition is performed only in the vertical direction, which is the second pupil division direction. Will be done. In the example of FIG. 7, it is set to add 6 pixel signals of the same aperture (left openings or right openings) arranged in the vertical direction. The number of pixel signal additions is appropriately set according to, for example, the frame rate.

図7の設定により、画素信号の行数が6分の1に圧縮される。画素信号の行数が減ることにより、画素信号の読み出し時間は短縮される。一方で、画素信号の列数は変わらないので水平方向の位相差の検出精度は確保される。 By the setting of FIG. 7, the number of lines of the pixel signal is compressed to 1/6. By reducing the number of rows of the pixel signal, the read time of the pixel signal is shortened. On the other hand, since the number of columns of pixel signals does not change, the detection accuracy of the phase difference in the horizontal direction is ensured.

図7のような設定の後、CPU212は、撮像素子208に対して焦点検出画素信号を生成するために必要な露光時間での撮像を行うように制御信号を出力する。この露光時間は、被写体輝度等に基づいて設定される。 After the settings as shown in FIG. 7, the CPU 212 outputs a control signal to the image pickup device 208 so as to perform imaging at the exposure time required to generate the focus detection pixel signal. This exposure time is set based on the subject brightness and the like.

CPU212からの制御信号の入力を受けて、制御回路302は、画素部303の行毎に撮像(電荷の蓄積)を開始させる。そして、制御回路302は、垂直走査回路304を制御し、撮像が完了した行の画素部303から順次に画素信号を出力させる。 Upon receiving the input of the control signal from the CPU 212, the control circuit 302 starts imaging (accumulation of electric charge) for each row of the pixel unit 303. Then, the control circuit 302 controls the vertical scanning circuit 304 to sequentially output pixel signals from the pixel unit 303 of the row in which imaging is completed.

ここで、水平方向の位相差の検出は、例えばGrの左開口画素信号Grlと右開口画素信号Grrの対及びGbの左開口画素信号Gblと右開口画素信号Gbrの対を用いて行われる。すなわち、Rの左開口画素信号Rlと右開口画素信号Rrの対及びBの左開口画素信号Blと右開口画素信号Brの対は必ずしも読み出される必要はない。したがって、読み出しの際には、図8に示すようにして左開口画素信号Grlと右開口画素信号Grrの対及び左開口画素信号Gblと右開口画素信号Gbrの対だけが詰めて読み出されてもよい。勿論、左開口画素信号Rlと右開口画素信号Rrの対及び左開口画素信号Gblと右開口画素信号Gbrの対も併せて読み出されてもよい。 Here, the detection of the phase difference in the horizontal direction is performed using, for example, a pair of Gr's left-opening pixel signal Gr and right-opening pixel signal Grr and a pair of Gb's left-opening pixel signal Gbl and right-opening pixel signal Gbr. That is, the pair of the left opening pixel signal Rl of R and the right opening pixel signal Rr and the pair of the left opening pixel signal Bl of B and the right opening pixel signal Br do not necessarily have to be read out. Therefore, at the time of reading, only the pair of the left opening pixel signal Grl and the right opening pixel signal Grr and the pair of the left opening pixel signal Gbl and the right opening pixel signal Gbr are packed and read as shown in FIG. May be good. Of course, the pair of the left opening pixel signal Rl and the right opening pixel signal Rr and the pair of the left opening pixel signal Gbl and the right opening pixel signal Gbr may also be read together.

画素部303から読み出された画素信号は、アナログ処理回路305においてアナログ処理される。アナログ処理された画素信号は、ADC処理回路306においてデジタル信号である画素データに変換される。画素データは、メモリ回路307に記憶される。前述したように、図7で示した加算は、メモリ回路307において行われてもよい。 The pixel signal read from the pixel unit 303 is analog-processed in the analog processing circuit 305. The analog-processed pixel signal is converted into pixel data which is a digital signal in the ADC processing circuit 306. The pixel data is stored in the memory circuit 307. As described above, the addition shown in FIG. 7 may be performed in the memory circuit 307.

水平走査回路308は、制御回路302からの制御信号を受けてメモリ回路307に記憶されている画素データを列順で出力回路309に転送させる。出力回路309は、水平走査回路308によって転送された画素データを配列して画素データ列を生成し、生成した画素データ列をシリアル信号及び差動信号等の所定の出力信号形式に変換して出力する。この画素データ列は、例えば図8に示すようにしてDRAM226に記憶される。このようにして第1の動作は完了する。 The horizontal scanning circuit 308 receives the control signal from the control circuit 302 and transfers the pixel data stored in the memory circuit 307 to the output circuit 309 in column order. The output circuit 309 arranges the pixel data transferred by the horizontal scanning circuit 308 to generate a pixel data string, converts the generated pixel data string into a predetermined output signal format such as a serial signal and a differential signal, and outputs the data. do. This pixel data string is stored in the DRAM 226 as shown in FIG. 8, for example. In this way, the first operation is completed.

第1の動作によってDRAM226に記憶された画素データ列は、ピントずれ量算出のための相関演算に用いられる。焦点検出回路218は、DRAM226に記憶されている左開口画素データGrlと右開口画素データGrrの対及び左開口画素データGblと右開口画素データGbrの対を用いて相関演算を行う。 The pixel data string stored in the DRAM 226 by the first operation is used for the correlation calculation for calculating the out-of-focus amount. The focus detection circuit 218 performs the correlation calculation using the pair of the left aperture pixel data Grl and the right aperture pixel data Grr and the pair of the left aperture pixel data Gbl and the right aperture pixel data Gbr stored in the DRAM 226.

次に、第2の動作について説明する。図6のLV+AF(tb)で示す第2の動作は、表示画素信号の生成と読み出し(LV)を主とした動作である。ただし、本実施形態では、第2の動作において第2の瞳分割方向に関する焦点検出画素信号の生成と読み出し(AF(tb))も行われる。第2の動作に先立って、制御回路302は、画素部303から上開口画素信号t(Rt、Grt、Gbt、Bt)と下開口画素信号b(Rb、Grb、Gbb、Bb)とが出力されるように画素部303の設定を切り替える。また、制御回路302は、画素信号の読み出し時間の短縮を図るために、画素部303の間の画素加算の設定を行う。図9は、第2の動作における画素加算の設定の例を示している。図9に示すように、第2の動作では、第1の瞳分割方向である水平方向及び第2の瞳分割方向である垂直方向の両方で加算が行われるように設定がされる。図9の例では、水平方向に並ぶ3個の同一開口(上開口同士又は下開口同士)の画素信号を加算するとともに、垂直方向に並ぶ3個の同一開口(上開口同士又は下開口同士)の画素信号を加算するように設定されている。図9の例では、2行目と3、4列目については加算が行われないように設定されている。これは、単に画素部303の行数及び列数が3の倍数でないために生じる余りである。 Next, the second operation will be described. The second operation shown by LV + AF (tb) in FIG. 6 is an operation mainly for generating and reading (LV) a display pixel signal. However, in the present embodiment, the generation and reading (AF (tb)) of the focus detection pixel signal regarding the second pupil division direction are also performed in the second operation. Prior to the second operation, the control circuit 302 outputs the upper opening pixel signal t (Rt, Grt, Gbt, Bt) and the lower opening pixel signal b (Rb, Grb, Gbb, Bb) from the pixel unit 303. The setting of the pixel unit 303 is switched so as to be. Further, the control circuit 302 sets the pixel addition between the pixel units 303 in order to shorten the pixel signal reading time. FIG. 9 shows an example of setting the pixel addition in the second operation. As shown in FIG. 9, in the second operation, the addition is set so that the addition is performed in both the horizontal direction which is the first pupil division direction and the vertical direction which is the second pupil division direction. In the example of FIG. 9, the pixel signals of three identical openings (upper openings or lower openings) arranged in the horizontal direction are added, and three identical openings (upper openings or lower openings) arranged in the vertical direction are added. It is set to add the pixel signals of. In the example of FIG. 9, addition is not performed for the second row, the third and fourth columns. This is a remainder caused simply because the number of rows and the number of columns of the pixel unit 303 is not a multiple of 3.

図9の設定により、画素信号の行数及び列数はそれぞれ約3分の1に圧縮される。画素信号の行数及び列数が減ることにより、画素信号の読み出し時間は短縮される。なお、画素信号の加算数はこれに限定されない。ただし、第2の動作では、画素信号の加算数が多くなると表示の際の画質は劣化する。また、垂直方向の画素信号の加算数が多くなると、垂直方向の位相差の検出精度も低下する。したがって、画素信号の加算数は、読み出し時間と表示の際の画質及び垂直方向の位相差の検出精度とのトレードオフによって適宜に決められることが望ましい。 By the setting of FIG. 9, the number of rows and the number of columns of the pixel signal are each compressed to about one-third. By reducing the number of rows and columns of the pixel signal, the read time of the pixel signal is shortened. The number of pixel signals to be added is not limited to this. However, in the second operation, the image quality at the time of display deteriorates as the number of additions of the pixel signals increases. Further, as the number of additions of the pixel signals in the vertical direction increases, the accuracy of detecting the phase difference in the vertical direction also decreases. Therefore, it is desirable that the number of pixel signal additions is appropriately determined by a trade-off between the readout time, the image quality at the time of display, and the detection accuracy of the phase difference in the vertical direction.

図9のような設定の後、CPU212は、撮像素子208に対して焦点検出画素信号を生成するために必要な露光時間での撮像を行うように制御信号を出力する。この露光時間は、被写体輝度等に基づいて設定される。 After the settings as shown in FIG. 9, the CPU 212 outputs a control signal to the image pickup device 208 so as to perform imaging at the exposure time required to generate the focus detection pixel signal. This exposure time is set based on the subject brightness and the like.

CPU212からの制御信号の入力を受けて、制御回路302は、画素部303の行毎に撮像(電荷の蓄積)を開始させる。そして、制御回路302は、垂直走査回路304を制御し、撮像が完了した行の画素部303から順次に画素信号を出力させる。 Upon receiving the input of the control signal from the CPU 212, the control circuit 302 starts imaging (accumulation of electric charge) for each row of the pixel unit 303. Then, the control circuit 302 controls the vertical scanning circuit 304 to sequentially output pixel signals from the pixel unit 303 of the row in which imaging is completed.

画素部303から読み出された画素信号は、アナログ処理回路305においてアナログ処理される。アナログ処理された画素信号は、ADC処理回路306においてデジタル信号である画素データに変換される。画素データは、メモリ回路307に記憶される。第2の動作では、表示画像データのためR、Gr、Gb、Bの画素信号が必要となる。このため、メモリ回路307には、上開口画素信号Rt、Grt、Gbt、Btと下開口画素信号Rb、Grb、Gbb、Bbのそれぞれが詰められずに記憶される。 The pixel signal read from the pixel unit 303 is analog-processed in the analog processing circuit 305. The analog-processed pixel signal is converted into pixel data which is a digital signal in the ADC processing circuit 306. The pixel data is stored in the memory circuit 307. In the second operation, pixel signals of R, Gr, Gb, and B are required for the display image data. Therefore, the upper aperture pixel signals Rt, Grt, Gbt, and Bt and the lower aperture pixel signals Rb, Grb, Gbb, and Bb are stored in the memory circuit 307 without being packed.

水平走査回路308は、制御回路302からの制御信号を受けてメモリ回路307に記憶されている画素データを列順で出力回路309に転送させる。出力回路309は、水平走査回路308によって転送された画素データを配列して画素データ列を生成し、生成した画素データ列をシリアル信号及び差動信号等の所定の出力信号形式に変換して出力する。この画素データ列は、例えば図10に示すようにしてDRAM226に記憶される。このようにして第2の動作は完了する。 The horizontal scanning circuit 308 receives the control signal from the control circuit 302 and transfers the pixel data stored in the memory circuit 307 to the output circuit 309 in column order. The output circuit 309 arranges the pixel data transferred by the horizontal scanning circuit 308 to generate a pixel data string, converts the generated pixel data string into a predetermined output signal format such as a serial signal and a differential signal, and outputs the data. do. This pixel data string is stored in the DRAM 226 as shown in FIG. 10, for example. In this way, the second operation is completed.

第2の動作によってDRAM226に記憶された画素データ列は、LV表示に用いられる。前述したように、表示画像データは、同一の画素部303に属する受光部lt、rt、lb、rbの画素データを加算平均することで得られる。したがって、画像処理回路214は、上開口画素データt(Rt、Grt、Gbt、Bt)と下開口画素データb(Rb、Grb、Gbb、Bb)とを加算平均して表示画像データを生成する。 The pixel data string stored in the DRAM 226 by the second operation is used for the LV display. As described above, the display image data is obtained by adding and averaging the pixel data of the light receiving units lt, rt, lb, and rb belonging to the same pixel unit 303. Therefore, the image processing circuit 214 generates display image data by adding and averaging the upper aperture pixel data t (Rt, Grt, Gbt, Bt) and the lower aperture pixel data b (Rb, Grb, Gbb, Bb).

また、第2の動作によってDRAM226に記憶された画素データ列は、ピントずれ量算出のための相関演算に用いられる。焦点検出回路218は、DRAM226に記憶されている上開口画素データGrt及び下開口画素データGrbの対を用いて相関演算を行う。また、焦点検出回路218は、DRAM226に記憶されている上開口画素データGbt及び下開口画素データGbbの対を用いて相関演算を行う。すなわち、上下開口画素データGrt、Grb、Gbt、Gbbは、DRAM226から2回読み出される。 Further, the pixel data string stored in the DRAM 226 by the second operation is used for the correlation calculation for calculating the out-of-focus amount. The focus detection circuit 218 performs the correlation calculation using the pair of the upper aperture pixel data Grt and the lower aperture pixel data Grb stored in the DRAM 226. Further, the focus detection circuit 218 performs the correlation calculation using the pair of the upper aperture pixel data Gbt and the lower aperture pixel data Gbb stored in the DRAM 226. That is, the upper and lower opening pixel data Grt, Grb, Gbt, and Gbb are read out twice from the DRAM 226.

以上説明したように本実施形態では、位相差AFのための第1の動作において第1の瞳分割方向に関する焦点検出画素データが生成されるように画素信号の読み出しが行われる。また、LV表示のための第2の動作において読み出される表示画素データを第2の瞳分割方向に関する焦点検出画素データとしても使用できるように画素信号の読み出しが行われる。すなわち、本実施形態では、第2の瞳分割方向に関する位相差を検出することができるように画素部から上下開口の画素信号を出力させ、この上下開口の画素信号を用いてLV表示のための表示画素データと第2の瞳分割方向に関するAFのための焦点検出画素データとが生成される。これにより、画素信号の読み出し時間を短縮しつつ、第1の瞳分割方向に関する位相差検出と第2の瞳分割方向に関する位相差検出の双方を行うことができる。このようにして、本実施形態では、位相差方式の焦点検出性能を確保しながら、ライブビュー表示のための時間も確保することができる。 As described above, in the present embodiment, the pixel signal is read out so that the focus detection pixel data relating to the first pupil division direction is generated in the first operation for the phase difference AF. Further, the pixel signal is read out so that the display pixel data read in the second operation for LV display can also be used as the focus detection pixel data related to the second pupil division direction. That is, in the present embodiment, the pixel signals of the upper and lower openings are output from the pixel portion so that the phase difference related to the second pupil division direction can be detected, and the pixel signals of the upper and lower openings are used for LV display. The display pixel data and the focus detection pixel data for AF regarding the second pupil division direction are generated. As a result, both the phase difference detection regarding the first pupil division direction and the phase difference detection regarding the second pupil division direction can be performed while shortening the pixel signal reading time. In this way, in the present embodiment, it is possible to secure the time for the live view display while ensuring the focus detection performance of the phase difference method.

また、本実施形態では同一開口の画素信号を加算してから読み出すことにより、画素信号の読み出し時間がさらに短縮される。このとき、第1の動作では、第1の瞳分割方向について同一開口の画素信号の加算をしないようにすることで水平方向の位相差検出性能を確保することができる。また、第2の動作では、第2の瞳分割方向についての同一開口の画素信号の加算数を減らすことで読み出し時間と垂直方向の位相差検出性能の両方を確保することができる。 Further, in the present embodiment, the pixel signal reading time is further shortened by adding and then reading the pixel signals of the same aperture. At this time, in the first operation, the phase difference detection performance in the horizontal direction can be ensured by not adding the pixel signals of the same aperture in the first pupil division direction. Further, in the second operation, both the read time and the phase difference detection performance in the vertical direction can be ensured by reducing the number of additions of the pixel signals of the same aperture in the second pupil division direction.

[変形例1]
以下、本実施形態の変形例を説明する。図5A及び図5Bで示した例は、撮像装置のAFモードがコンティニュアスAFモードであるときの動作を示している。前述した本実施形態の技術は、撮像装置のAFモードがコンティニュアスAFモードでないときであっても、LV表示とAFとが短い期間に繰り返されるときには適用され得る。例えば、本実施形態の技術は、撮像装置のAFモードがシングルAFモードにおいても適用され得る。シングルAFモードは、1stレリーズスイッチがオンされた後、被写体にピントが合うまでAFが行われ、合焦後はAF動作を停止させるAFモードである。図11は、AFモードがシングルAFモードであるときの撮像装置1の動作を示すフローチャートである。なお、図11において、図5A及び図5Bと重複する部分については適宜に説明を省略する。
[Modification 1]
Hereinafter, a modified example of the present embodiment will be described. The examples shown in FIGS. 5A and 5B show the operation when the AF mode of the image pickup apparatus is the continuous AF mode. The technique of the present embodiment described above can be applied when the LV display and AF are repeated in a short period of time even when the AF mode of the image pickup apparatus is not the continuous AF mode. For example, the technique of the present embodiment can be applied even when the AF mode of the image pickup apparatus is a single AF mode. The single AF mode is an AF mode in which after the 1st release switch is turned on, AF is performed until the subject is in focus, and after focusing, the AF operation is stopped. FIG. 11 is a flowchart showing the operation of the image pickup apparatus 1 when the AF mode is the single AF mode. In FIG. 11, the description of the portion overlapping with FIGS. 5A and 5B will be omitted as appropriate.

図11の動作は、ユーザによる撮像装置1の電源のオン操作が検出されたときに開始される。電源のオン操作が検出されると、ステップS201において、CPU212は、レリーズボタンの1stレリーズスイッチがオンの状態であるか否かを判定する。ステップS201において、1stレリーズスイッチがオンの状態であると判定されたときには、処理はステップS204に移行する。ステップS201において、1stレリーズスイッチがオンの状態でないと判定されたときには、処理はステップS202に移行する。 The operation of FIG. 11 is started when a user's power-on operation of the image pickup apparatus 1 is detected. When the power-on operation is detected, in step S201, the CPU 212 determines whether or not the 1st release switch of the release button is in the on state. When it is determined in step S201 that the 1st release switch is in the ON state, the process proceeds to step S204. When it is determined in step S201 that the 1st release switch is not in the ON state, the process proceeds to step S202.

ステップS202において、CPU212は、ライブビュー(LV)表示のための表示画素データの取り込みを行う。ステップS203において、CPU212はLV表示を行う。その後、処理は、ステップS218に移行する。 In step S202, the CPU 212 captures display pixel data for live view (LV) display. In step S203, the CPU 212 displays the LV. After that, the process proceeds to step S218.

ステップS204において、CPU212は、AF及びLV表示のための撮像と読み出しを行う。ステップS204の処理については、前述した実施形態と同様にして行われる。ステップS205において、CPU212は、LV表示を行う。 In step S204, the CPU 212 performs imaging and reading for AF and LV display. The process of step S204 is performed in the same manner as in the above-described embodiment. In step S205, the CPU 212 displays the LV.

ステップS206において、CPU212は、焦点検出回路218による焦点検出演算を実行させる。焦点検出回路218は、DRAM226に記憶されている焦点検出画素データのうちの対をなす焦点検出画素データを用いて相関演算を行う。相関演算の後、焦点検出回路218は、焦点検出の信頼性判定を行う。ステップS207において、焦点検出回路218は、ピントずれ量演算を行う。ステップS208において、焦点検出回路218は、エリア選択処理を行う。 In step S206, the CPU 212 causes the focus detection circuit 218 to execute the focus detection operation. The focus detection circuit 218 performs a correlation calculation using a pair of focus detection pixel data among the focus detection pixel data stored in the DRAM 226. After the correlation calculation, the focus detection circuit 218 determines the reliability of the focus detection. In step S207, the focus detection circuit 218 calculates the amount of focus shift. In step S208, the focus detection circuit 218 performs an area selection process.

ステップS209において、CPU212は、フォーカスレンズ1021が合焦状態であるか否かを判定する。ステップS209において、フォーカスレンズ1021が合焦状態でないと判定されたときには処理はステップS210に移行する。ステップS209において、フォーカスレンズ1021が合焦状態であると判定されたときには処理はステップS211に移行する。 In step S209, the CPU 212 determines whether or not the focus lens 1021 is in the focused state. When it is determined in step S209 that the focus lens 1021 is not in the focused state, the process proceeds to step S210. When it is determined in step S209 that the focus lens 1021 is in the focused state, the process proceeds to step S211.

ステップS210において、CPU212は、ステップS208において選択された焦点検出領域について算出されたフォーカスレンズ位置に応じてフォーカスレンズ1021が駆動されるよう、レンズCPU106に対して制御信号を出力する。レンズCPU106は、この制御信号を受けて、駆動部104を介してフォーカスレンズ1021を駆動する。その後、処理は、ステップS218へ移行する。 In step S210, the CPU 212 outputs a control signal to the lens CPU 106 so that the focus lens 1021 is driven according to the focus lens position calculated for the focus detection region selected in step S208. The lens CPU 106 receives this control signal and drives the focus lens 1021 via the drive unit 104. After that, the process proceeds to step S218.

ステップS211において、CPU212は、LV表示のための表示画素データの取り込みを行う。ステップS212において、CPU212はLV表示を行う。 In step S211 the CPU 212 acquires display pixel data for LV display. In step S212, the CPU 212 displays the LV.

ステップS213において、CPU212は、2ndレリーズスイッチがオンされているか否かを判定する。ステップS213において、2ndレリーズスイッチがオンの状態でないと判定されたときには、処理はステップS217に移行する。ステップS213において、2ndレリーズスイッチがオンの状態であると判定されたときには、処理はステップS214に移行する。 In step S213, the CPU 212 determines whether or not the 2nd release switch is turned on. When it is determined in step S213 that the 2nd release switch is not in the ON state, the process proceeds to step S217. When it is determined in step S213 that the 2nd release switch is in the ON state, the process proceeds to step S214.

ステップS214において、CPU212は、レンズCPU106に対して絞り1022を駆動させるように指示して動作を開始させる。ここで、絞り1022の開口量は、直前の測光演算によって測定された被写体輝度に基づいて算出された絞り値に応じた開口量である。 In step S214, the CPU 212 instructs the lens CPU 106 to drive the diaphragm 1022 and starts the operation. Here, the aperture amount of the aperture 1022 is an aperture amount corresponding to the aperture value calculated based on the subject brightness measured by the immediately preceding photometric calculation.

ステップS215において、CPU212は、本露光を開始させる。本露光において、CPU212は、予め決定された露光期間だけメカシャッター202を開閉させるように駆動部204を制御する。そして、CPU212は、露光期間中に撮像素子208の撮像を開始させる。露光期間の終了後、制御回路302は、撮像素子208の各受光部からの画素信号を読み出す。画素信号の読み出し後、CPU212は、記録用の静止画データを生成するための処理を画像処理回路214に行わせる。これを受けて、画像処理回路214は、記録用の画像データの生成に必要な処理を行って記録用の静止画データを生成する。画像処理の完了後、CPU212は、画像圧縮展開部216によって記録用の静止画データを圧縮する。圧縮の完了後、CPU212は、圧縮された記録用の静止画データを画像ファイルとして記録媒体230に記録する。 In step S215, the CPU 212 starts the main exposure. In the main exposure, the CPU 212 controls the drive unit 204 so as to open and close the mechanical shutter 202 for a predetermined exposure period. Then, the CPU 212 starts imaging of the image pickup device 208 during the exposure period. After the end of the exposure period, the control circuit 302 reads out the pixel signals from each light receiving unit of the image sensor 208. After reading out the pixel signal, the CPU 212 causes the image processing circuit 214 to perform a process for generating still image data for recording. In response to this, the image processing circuit 214 performs processing necessary for generating image data for recording to generate still image data for recording. After the image processing is completed, the CPU 212 compresses the still image data for recording by the image compression expansion unit 216. After the compression is completed, the CPU 212 records the compressed still image data for recording as an image file on the recording medium 230.

ステップS216において、CPU212は、レンズCPU106に対して絞り1022を開放させるように指示する。 In step S216, the CPU 212 instructs the lens CPU 106 to open the aperture 1022.

ステップS217において、CPU212は、1stレリーズスイッチがオンの状態であるか否かを判定する。ステップS217において、1stレリーズスイッチがオンの状態であると判定されたときには、処理はステップS211に戻る。ステップS217において、1stレリーズスイッチがオンの状態でないと判定されたときには、処理はステップS218に移行する。 In step S217, the CPU 212 determines whether or not the 1st release switch is in the ON state. When it is determined in step S217 that the 1st release switch is in the ON state, the process returns to step S211. When it is determined in step S217 that the 1st release switch is not in the ON state, the process proceeds to step S218.

ステップS218おいて、CPU212は、カメラ本体200の電源をオフするか否かを判定する。ステップS218において、カメラ本体200の電源をオフしないと判定されたときには、処理はステップS201に戻る。ステップS218において、カメラ本体200の電源をオフすると判定されたときには、処理は終了する。 In step S218, the CPU 212 determines whether or not to turn off the power of the camera body 200. When it is determined in step S218 that the power of the camera body 200 is not turned off, the process returns to step S201. When it is determined in step S218 that the power of the camera body 200 is turned off, the process ends.

このように、シングルAFモードでは、1stレリーズスイッチがオンされてから被写体に対してピントが合うまでの間、LV表示とAFとが繰り返される。したがって、本実施形態の技術が有効である。 In this way, in the single AF mode, the LV display and AF are repeated from the time when the 1st release switch is turned on until the subject is in focus. Therefore, the technique of this embodiment is effective.

[変形例2]
前述した第2の動作においては、表示画像データは、DRAM226に記憶されている同一の画素部303に属する受光部lt、rt、lb、rbから読み出された上下開口画素データt、bを加算平均することによって生成される。これは、DRAM226に記憶されている上下開口画素データt、bを第2の瞳分割方向に関する焦点検出画素データとしても読み出せるようにするためである。
[Modification 2]
In the second operation described above, the display image data is the sum of the upper and lower opening pixel data t and b read from the light receiving units lt, rt, lb and rb belonging to the same pixel unit 303 stored in the DRAM 226. Generated by averaging. This is so that the upper and lower aperture pixel data t and b stored in the DRAM 226 can also be read as focus detection pixel data related to the second pupil division direction.

これに対し、図12に示すようにして例えば第2の瞳分割方向に関する位相差の検出に必要とならない上下開口画素信号t及びb(図の「+」で結ばれている画素信号)については加算し、第2の瞳分割方向に関する位相差の検出に必要となる上下開口画素信号t及びb(図の「+」で結ばれていない画素信号)についてだけ加算せずに画素部303から出力させるように撮像素子208が構成されていてもよい。この場合、DRAM226には、図13に示すようにして画素データが記憶されることになる。このようにして画素部303において加算できるものを予め加算してしまうことで、DRAM226に記憶される画素データのデータ数は削減される。また、画像処理回路214における表示画像データの生成のための加算平均処理も省略される。一方で、第2の瞳分割方向に関する位相差の検出は適切に行われ得る。 On the other hand, as shown in FIG. 12, for example, the upper and lower opening pixel signals t and b (pixel signals connected by “+” in the figure) which are not necessary for detecting the phase difference in the second pupil division direction It is added and output from the pixel unit 303 without adding only the upper and lower opening pixel signals t and b (pixel signals not connected by "+" in the figure) required for detecting the phase difference in the second pupil division direction. The image pickup device 208 may be configured to allow the image sensor 208 to be set. In this case, the pixel data is stored in the DRAM 226 as shown in FIG. By adding what can be added in the pixel unit 303 in advance in this way, the number of pixel data stored in the DRAM 226 is reduced. Further, the addition averaging process for generating the display image data in the image processing circuit 214 is also omitted. On the other hand, the detection of the phase difference with respect to the second pupil division direction can be appropriately performed.

[変形例3]
第1の動作では、第2の瞳分割方向である垂直方向に並ぶ同一開口の画素信号を加算してから画素部303から出力させることによって読み出し時間の短縮を図っている。これに対し、画素信号を間引いて読み出すことでも読み出し時間は短縮され得る。例えば、連写速度等に応じて設定されるフレームレートが所定値よりも高速であるときには、図14Aに示すように50%の行だけ画素信号が読み出され、フレームレートが所定値よりも低速であるときには、図14Bに示すように100%の行の画素信号が読み出されるといった処理を行うことができる。画素加算読み出しと間引き読み出しとは併用されてもよい。また、第1の動作に対する間引き読み出しだけではフレームレートの維持が困難である場合等では、第2の動作においても間引き読み出しが行われてもよい。
[Modification 3]
In the first operation, the read-out time is shortened by adding pixel signals of the same aperture arranged in the vertical direction, which is the second pupil division direction, and then outputting them from the pixel unit 303. On the other hand, the read time can be shortened by thinning out the pixel signals and reading them. For example, when the frame rate set according to the continuous shooting speed or the like is faster than the predetermined value, the pixel signal is read out by 50% of the rows as shown in FIG. 14A, and the frame rate is slower than the predetermined value. When is, it is possible to perform processing such as reading out a pixel signal of 100% of rows as shown in FIG. 14B. Pixel addition reading and thinning reading may be used together. Further, when it is difficult to maintain the frame rate only by the thinning-out reading for the first operation, the thinning-out reading may be performed in the second operation as well.

[その他の変形例]
前述した実施形態では、第1の瞳分割方向を水平方向とし、第2の瞳分割方向を垂直方向としている。逆に、第1の瞳分割方向を垂直方向とし、第2の瞳分割方向を水平方向としてもよい。この場合、第1の動作においては上下開口画素信号が出力されるように画素部303の設定がなされるとともに、第2の動作においては左右開口画素信号が出力されるように画素部303の設定がなされる。
[Other variants]
In the above-described embodiment, the first pupil division direction is the horizontal direction and the second pupil division direction is the vertical direction. On the contrary, the first pupil division direction may be the vertical direction and the second pupil division direction may be the horizontal direction. In this case, the pixel unit 303 is set so that the upper and lower opening pixel signals are output in the first operation, and the pixel unit 303 is set so that the left and right opening pixel signals are output in the second operation. Is done.

また、前述した実施形態では、画素部303における画素加算の設定等は、撮像素子208の内部に設けられた制御回路302によって行われる。制御回路302は、撮像素子208の外部に設けられていてもよい。この場合、例えばCPU212が制御回路302と同じ処理を実行できるように構成されていてもよい。 Further, in the above-described embodiment, the pixel addition setting and the like in the pixel unit 303 are performed by the control circuit 302 provided inside the image pickup device 208. The control circuit 302 may be provided outside the image pickup device 208. In this case, for example, the CPU 212 may be configured to perform the same processing as the control circuit 302.

以上実施形態に基づいて本発明を説明したが、本発明は上述した実施形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形や応用が可能なことは勿論である。 Although the present invention has been described above based on the embodiments, the present invention is not limited to the above-described embodiments, and it goes without saying that various modifications and applications are possible within the scope of the gist of the present invention.

また、前述の各動作フローチャートの説明において、便宜上「まず」、「次に」等を用いて動作を説明しているが、この順で動作を実施することが必須であることを意味するものではない。 Further, in the explanation of each operation flowchart described above, the operation is described using "first", "next", etc. for convenience, but it does not mean that it is essential to perform the operation in this order. No.

また、上述した実施形態による各処理は、コンピュータであるCPU212又は制御回路302に実行させることができるプログラムとして記憶させておくこともできる。この他、磁気ディスク、光ディスク、半導体メモリ等の外部記憶装置の記憶媒体に格納して配布することができる。そして、CPU212又は制御回路302は、この外部記憶装置の記憶媒体に記憶されたプログラムを読み込み、この読み込んだプログラムによって動作が制御されることにより、上述した処理を実行することができる。 Further, each process according to the above-described embodiment can be stored as a program that can be executed by the CPU 212 or the control circuit 302, which is a computer. In addition, it can be stored and distributed in a storage medium of an external storage device such as a magnetic disk, an optical disk, or a semiconductor memory. Then, the CPU 212 or the control circuit 302 reads the program stored in the storage medium of the external storage device, and the operation is controlled by the read program, so that the above-described processing can be executed.

本発明は、上記実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、各実施形態は適宜組み合わせて実施してもよく、その場合組み合わせた効果が得られる。更に、上記実施形態には種々の発明が含まれており、開示される複数の構成要件から選択された組み合わせにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件からいくつかの構成要件が削除されても、課題が解決でき、効果が得られる場合には、この構成要件が削除された構成が発明として抽出され得る。 The present invention is not limited to the above-described embodiment, and can be variously modified at the implementation stage without departing from the gist thereof. In addition, each embodiment may be carried out in combination as appropriate, in which case the combined effect can be obtained. Further, the above-described embodiment includes various inventions, and various inventions can be extracted by a combination selected from a plurality of disclosed constituent requirements. For example, even if some constituent requirements are deleted from all the constituent requirements shown in the embodiment, if the problem can be solved and the effect is obtained, the configuration in which the constituent requirements are deleted can be extracted as an invention.

1 撮像装置、100 交換式レンズ、102 撮像光学系、104 駆動部、106 レンズCPU、108 レンズ側記憶部、110 インターフェイス(I/F)、200 カメラ本体、202 メカシャッター、204 駆動部、206 操作部、208 撮像素子、210 手振れ補正回路、212 CPU、214 画像処理回路、216 画像圧縮展開部、218 焦点検出回路、220 露出制御回路、222 表示部、224 バス、226 DRAM、228 本体側記憶部、230 記録媒体、301 入力回路、302 制御回路、303 画素部、303a マイクロレンズ、303b カラーフィルタ、303c 画素、304 垂直走査回路、305 アナログ処理回路、306 アナログデジタル変換(ADC)処理回路、307 メモリ回路、308 水平走査回路、309 出力回路、1021 フォーカスレンズ、1022 絞り。 1 Image sensor, 100 interchangeable lens, 102 image sensor, 104 drive unit, 106 lens CPU, 108 lens side storage unit, 110 interface (I / F), 200 camera body, 202 mechanical shutter, 204 drive unit, 206 operation Unit, 208 image sensor, 210 camera shake correction circuit, 212 CPU, 214 image processing circuit, 216 image compression expansion unit, 218 focus detection circuit, 220 exposure control circuit, 222 display unit, 224 bus, 226 DRAM, 228 main unit side storage unit , 230 Recording medium, 301 input circuit, 302 control circuit, 303 pixel section, 303a microlens, 303b color filter, 303c pixel, 304 vertical scanning circuit, 305 analog processing circuit, 306 analog-to-digital conversion (ADC) processing circuit, 307 memory Circuit, 308 horizontal scanning circuit, 309 output circuit, 1021 focus lens, 1022 aperture.

Claims (7)

1個のマイクロレンズに対して撮像光学系の異なる射出瞳領域を通過するそれぞれの光束を光電変換して画素信号を生成するように第1の瞳分割方向及び前記第1の瞳分割方向と異なる第2の瞳分割方向に分割された複数の受光部が配置されている画素部を有する撮像部と、
前記画素信号に基づいて生成される表示のための表示画素信号に基づいて画像を表示するための処理をする画像処理回路と、
前記画素信号に基づいて生成される焦点検出のための焦点検出画素信号に基づいて焦点検出のための処理をする焦点検出回路と、
それぞれが前記画素信号の生成と読み出しとを含む第1の動作と第2の動作とを交互に行うように前記撮像部を制御する制御回路と、
を具備し、
前記制御回路は、前記第1の動作においては前記第1の瞳分割方向に関する前記焦点検出画素信号が生成されるように前記撮像部を制御し、前記第2の動作においては前記表示画素信号と前記第2の瞳分割方向に関する前記焦点検出画素信号とが生成されるように前記撮像部を制御する焦点検出装置。
It is different from the first pupil division direction and the first pupil division direction so as to generate a pixel signal by photoelectric conversion of each light flux passing through different exit pupil regions of the imaging optical system for one microlens. An imaging unit having a pixel unit in which a plurality of light receiving units divided in the second pupil division direction are arranged, and an imaging unit.
Display for display generated based on the pixel signal An image processing circuit that performs processing for displaying an image based on the pixel signal, and an image processing circuit.
Focus detection for focus detection generated based on the pixel signal A focus detection circuit that performs processing for focus detection based on the pixel signal, and
A control circuit that controls the imaging unit so that the first operation and the second operation including the generation and reading of the pixel signal are alternately performed, respectively.
Equipped with
The control circuit controls the imaging unit so that the focus detection pixel signal relating to the first pupil division direction is generated in the first operation, and the display pixel signal and the display pixel signal in the second operation. A focus detection device that controls the imaging unit so that the focus detection pixel signal with respect to the second pupil division direction is generated.
前記制御回路は、前記第1の動作においては前記第2の瞳分割方向に分割された前記受光部からの前記画素信号が加算され、前記第2の動作においては前記第1の瞳分割方向に分割された前記受光部からの前記画素信号が加算されるように前記撮像部を制御する請求項1に記載の焦点検出装置。 In the first operation, the control circuit adds the pixel signal from the light receiving unit divided in the second pupil division direction, and in the second operation, the pixel signal is added in the first pupil division direction. The focus detection device according to claim 1, wherein the imaging unit is controlled so that the pixel signals from the divided light receiving units are added. 前記制御回路は、前記第1の動作では、複数の前記画素部から出力される前記画素信号が前記第1の瞳分割方向については加算されずに、前記第2の瞳分割方向については加算されるように前記撮像部を制御する請求項1又は2に記載の焦点検出装置。 In the first operation, the control circuit does not add the pixel signals output from the plurality of pixel units in the first pupil division direction, but adds them in the second pupil division direction. The focus detection device according to claim 1 or 2, wherein the imaging unit is controlled so as to. 前記制御回路は、前記第2の動作では、複数の前記画素部から出力される前記画素信号が前記第1の瞳分割方向及び前記第2の瞳分割方向の両方について加算されるように前記撮像部を制御する請求項1又は2に記載の焦点検出装置。 In the second operation, the control circuit performs the imaging so that the pixel signals output from the plurality of pixel units are added in both the first pupil division direction and the second pupil division direction. The focus detection device according to claim 1 or 2, which controls a unit. 前記制御回路は、前記第1の動作では、前記第2の瞳分割方向については一部の前記画素信号だけが読み出されるように前記撮像部を制御する請求項1又は2に記載の焦点検出装置。 The focus detection device according to claim 1 or 2, wherein the control circuit controls the imaging unit so that in the first operation, only a part of the pixel signals are read out in the second pupil division direction. .. 前記制御回路は、前記第1の動作に係るフレームレートが所定値よりも高速であるときに、前記第2の瞳分割方向について一部の前記画素信号だけが読み出されるように前記撮像部を制御する請求項5に記載の焦点検出装置。 The control circuit controls the imaging unit so that only a part of the pixel signals are read out in the second pupil division direction when the frame rate related to the first operation is faster than a predetermined value. The focus detection device according to claim 5. 1個のマイクロレンズに対して撮像光学系の異なる射出瞳領域を通過するそれぞれの光束を光電変換して画素信号を生成するように第1の瞳分割方向及び前記第1の瞳分割方向と異なる第2の瞳分割方向に分割された複数の受光部が配置されている画素部を有する撮像部を用いた焦点検出方法であって、
前記画素信号に基づいて生成される表示のための表示画素信号に基づいて画像を表示するための処理をすることと、
前記画素信号に基づいて生成される焦点検出のための焦点検出画素信号に基づいて焦点検出のための処理をすることと、
それぞれが前記画素信号の生成と読み出しとを含む第1の動作と第2の動作とを交互に行うように前記撮像部を制御することと、
を具備し、
前記撮像部を制御することは、前記第1の動作において前記第1の瞳分割方向に関する前記焦点検出画素信号が生成されるように前記撮像部を制御することと、前記第2の動作において前記表示画素信号と前記第2の瞳分割方向に関する前記焦点検出画素信号とが生成されるように前記撮像部を制御することとを含む焦点検出方法。
It is different from the first pupil division direction and the first pupil division direction so as to generate a pixel signal by photoelectric conversion of each light flux passing through different exit pupil regions of the imaging optical system for one microlens. A focus detection method using an imaging unit having a pixel unit in which a plurality of light receiving units divided in the second pupil division direction are arranged.
Display for display generated based on the pixel signal Processing for displaying an image based on the pixel signal and
Focus detection for focus detection generated based on the pixel signal Processing for focus detection based on the pixel signal and
Controlling the imaging unit so that the first operation and the second operation including the generation and reading of the pixel signal are alternately performed, respectively.
Equipped with
Controlling the imaging unit means controlling the imaging unit so that the focus detection pixel signal with respect to the first pupil division direction is generated in the first operation, and controlling the imaging unit in the second operation. A focus detection method including controlling the imaging unit so that a display pixel signal and the focus detection pixel signal with respect to the second pupil division direction are generated.
JP2017197849A 2017-10-11 2017-10-11 Focus detection device and focus detection method Active JP6929752B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2017197849A JP6929752B2 (en) 2017-10-11 2017-10-11 Focus detection device and focus detection method
US16/157,023 US10582112B2 (en) 2017-10-11 2018-10-10 Focus detection device, focus detection method, and storage medium storing focus detection program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017197849A JP6929752B2 (en) 2017-10-11 2017-10-11 Focus detection device and focus detection method

Publications (2)

Publication Number Publication Date
JP2019071590A JP2019071590A (en) 2019-05-09
JP6929752B2 true JP6929752B2 (en) 2021-09-01

Family

ID=66441416

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017197849A Active JP6929752B2 (en) 2017-10-11 2017-10-11 Focus detection device and focus detection method

Country Status (1)

Country Link
JP (1) JP6929752B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006071656A (en) * 2004-08-31 2006-03-16 Canon Inc Focus detection device
WO2014118868A1 (en) * 2013-01-30 2014-08-07 パナソニック株式会社 Image capture device and solid state image capture device
JP6271842B2 (en) * 2013-02-18 2018-01-31 キヤノン株式会社 Ranging device, ranging method, and imaging device
JP6671130B2 (en) * 2014-12-02 2020-03-25 キヤノン株式会社 Imaging device, imaging device, focus detection device, image processing device, and control method therefor
JP6553881B2 (en) * 2015-02-05 2019-07-31 キヤノン株式会社 Image processing device

Also Published As

Publication number Publication date
JP2019071590A (en) 2019-05-09

Similar Documents

Publication Publication Date Title
JP6476065B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
US10582112B2 (en) Focus detection device, focus detection method, and storage medium storing focus detection program
JP6944846B2 (en) Imaging device, control method of imaging device
US10560623B2 (en) Imaging element and imaging device
JP2013218297A (en) Focus adjustment device and focus adjustment method
US8902294B2 (en) Image capturing device and image capturing method
JP5620196B2 (en) Imaging device
JP2020012879A (en) Imaging element, focus detection device, imaging method, and focus detection method
JP2020098968A (en) Imaging element, imaging apparatus, and imaging method
JP2020053771A (en) Image processing apparatus and imaging apparatus
JP6702777B2 (en) Imaging device, imaging method, and program
JP2022044285A (en) Detection device and detection method
US10491803B2 (en) Imaging element, focus detection apparatus, and focus detection method
JP7277284B2 (en) Focus adjustment device and focus adjustment method
JP2017194558A (en) Imaging apparatus and imaging method
CN109964479A (en) Camera device and control method thereof
JP7027133B2 (en) Focus detection device and focus detection method
JP5354879B2 (en) camera
JP7079161B2 (en) Imaging device and its control method
JP6929752B2 (en) Focus detection device and focus detection method
JP6672006B2 (en) Imaging device
JP2023121622A (en) Detection device and detection method
US12238434B2 (en) Imaging device and imaging method for autofocus control
JP5929362B2 (en) Imaging apparatus and imaging method
JP2013161012A (en) Imaging apparatus and control method therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200924

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210531

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210811

R151 Written notification of patent or utility model registration

Ref document number: 6929752

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250