JP2019212952A - Imaging device and control method thereof - Google Patents

Imaging device and control method thereof Download PDF

Info

Publication number
JP2019212952A
JP2019212952A JP2018104668A JP2018104668A JP2019212952A JP 2019212952 A JP2019212952 A JP 2019212952A JP 2018104668 A JP2018104668 A JP 2018104668A JP 2018104668 A JP2018104668 A JP 2018104668A JP 2019212952 A JP2019212952 A JP 2019212952A
Authority
JP
Japan
Prior art keywords
phase difference
difference information
subject
imaging
rows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018104668A
Other languages
Japanese (ja)
Other versions
JP7175635B2 (en
Inventor
直樹 岩▲崎▼
Naoki Iwasaki
直樹 岩▲崎▼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2018104668A priority Critical patent/JP7175635B2/en
Publication of JP2019212952A publication Critical patent/JP2019212952A/en
Application granted granted Critical
Publication of JP7175635B2 publication Critical patent/JP7175635B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide an imaging device capable of acquiring phase difference information corresponding to a subject while suppressing a decrease in the frame rate.SOLUTION: A main body 200 of an imaging device includes an imaging element 201 and can acquire phase difference information. A signal can be read from a pixel portion of the imaging element 201 in units of rows. A system control unit 209 performs control to change the interval between read lines in accordance with the detection state of a subject. When a still object is photographed, the system control unit 209 makes the vertical period related to the read line of the phase difference information constant. In addition, when a moving object is photographed, the system control unit 209 dynamically changes the vertical period related to the read line of the phase difference information according to distance information of the subject, and sets read line of the phase difference information in a range including a subject region in the image.SELECTED DRAWING: Figure 1

Description

本発明は、撮像装置における位相差情報の取得処理に関するものである。   The present invention relates to phase difference information acquisition processing in an imaging apparatus.

デジタルカメラ等の撮像装置は、撮像素子から取得した位相差情報を用いてオートフォーカス(AF)用の演算を行う。精度の高い焦点検出を可能にする信号読み出しと、低消費電力かつ高速な信号読み出しとを両立させるために、撮像素子の読み出しに関する種々の方法が提案されている。   An imaging apparatus such as a digital camera performs an autofocus (AF) calculation using phase difference information acquired from an imaging element. In order to achieve both signal readout that enables highly accurate focus detection and low-power consumption and high-speed signal readout, various methods relating to readout of the image sensor have been proposed.

特許文献1では各画素部が複数の光電変換部を有し、全画素中の一部の画素部において複数の光電変換部の信号を独立に読み出し、残りの画素部では複数の光電変換部の信号を合成してから読み出す方法が開示されている。位相差情報は必要な領域のみで読み出されるので、動作時間の短縮および消費電力の削減を図ることができる。   In Patent Document 1, each pixel unit has a plurality of photoelectric conversion units, and signals of the plurality of photoelectric conversion units are independently read out in some pixel units in all pixels, and the remaining pixel units include a plurality of photoelectric conversion units. A method of synthesizing signals and then reading them is disclosed. Since the phase difference information is read out only in a necessary area, it is possible to shorten the operation time and the power consumption.

特許文献2では撮像範囲を複数の領域に分割し、焦点検出を行う必要がある第1の領域では位相差情報を読み出し、第2の領域では第1の領域における読み出しよりも、間引き率を大きくして読み出す方法が開示されている。これにより、消費電力を削減できる。   In Patent Document 2, the imaging range is divided into a plurality of areas, phase difference information is read out in the first area where focus detection needs to be performed, and the decimation rate is larger in the second area than in the first area. Thus, a method for reading out is disclosed. Thereby, power consumption can be reduced.

特許文献3では、分割された領域ごとの被写体像の空間周波数に基づいて読み出し方法を切り替えることが開示されている。高周波な被写体に対して精密なピント合わせが可能になり、低周波な被写体の撮影時に消費電力を抑制することができる。   Japanese Patent Application Laid-Open No. 2004-133867 discloses switching the reading method based on the spatial frequency of the subject image for each divided area. Precise focusing is possible for a high-frequency subject, and power consumption can be suppressed when shooting a low-frequency subject.

特開2013−211833号公報JP 2013-2111833 A 特開2015−79162号公報JP, 2015-79162, A 特開2015−165280号公報Japanese Patent Laying-Open No. 2015-165280

撮像装置において、撮像素子から得られる位相差情報は様々な場面での利用が可能である。従来の技術では、全画素中の一部の画素群から位相差情報を読み出す場合に1フレームの中で複数の機能に必要な条件を同時に満たすように読み出すことができなかった。また、画素全体から位相差情報を読み出す場合には複数の機能に利用することができるものの、フレームレートの低下が避けられない。
本発明の目的は、フレームレートの低下を抑制しつつ、被写体に応じた位相差情報を取得可能な撮像装置を提供することである。
In an imaging apparatus, phase difference information obtained from an imaging device can be used in various situations. In the conventional technique, when phase difference information is read out from a part of a group of pixels in all pixels, it is impossible to read out so as to simultaneously satisfy conditions necessary for a plurality of functions in one frame. In addition, when phase difference information is read from the entire pixel, it can be used for a plurality of functions, but a reduction in frame rate is unavoidable.
An object of the present invention is to provide an imaging apparatus capable of acquiring phase difference information corresponding to a subject while suppressing a decrease in frame rate.

本発明の実施形態の装置は、位相差情報の取得が可能な複数の画素部を有する撮像手段と、前記画素部から行単位で信号を読み出す制御を行う制御手段と、を備える。前記制御手段は被写体の距離情報を取得し、前記距離情報に対応する前記位相差情報の読み出し行の間隔を変更する制御を行う。   An apparatus according to an embodiment of the present invention includes an imaging unit having a plurality of pixel units capable of acquiring phase difference information, and a control unit that performs control to read out signals from the pixel units in units of rows. The control means obtains subject distance information and performs control to change the interval of the readout rows of the phase difference information corresponding to the distance information.

本発明によれば、フレームレートの低下を抑制しつつ、被写体に応じた位相差情報を取得可能な撮像装置を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the imaging device which can acquire the phase difference information according to a to-be-photographed object can be provided, suppressing the fall of a frame rate.

本発明の実施形態に係る撮像装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the imaging device which concerns on embodiment of this invention. 撮像素子内の画素配置を示す模式図である。It is a schematic diagram which shows pixel arrangement | positioning in an image pick-up element. 撮像素子の構成例を示すブロック図である。It is a block diagram which shows the structural example of an image pick-up element. 本実施形態の撮像装置の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the imaging device of this embodiment. 本実施形態のAF動作を説明するフローチャートである。It is a flowchart explaining AF operation | movement of this embodiment. 図5に続く処理を説明するフローチャートである。It is a flowchart explaining the process following FIG. 本実施形態の焦点検出処理を説明するフローチャートである。It is a flowchart explaining the focus detection process of this embodiment. 本実施形態のサーボAF制御を説明するフローチャートである。It is a flowchart explaining the servo AF control of this embodiment. 位相差情報の読み出し行の設定例を示す図である。It is a figure which shows the example of a setting of the reading line of phase difference information. 位相差情報の読み出し行の設定の別例を示す図である。It is a figure which shows another example of the setting of the reading line of phase difference information. 位相差情報の読み出し行の設定を説明するフローチャートである。It is a flowchart explaining the setting of the reading line of phase difference information. 図11に続く処理を説明するフローチャートである。It is a flowchart explaining the process following FIG.

以下に本発明の実施形態について、図面を参照して詳細に説明する。図1は、本実施形態に係る撮像装置の構成例を示すブロック図である。一例として、レンズ交換式のカメラシステムを説明するが、本発明は撮影レンズ部がカメラ本体部に組み込まれた構成の撮像装置に適用可能である。   Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram illustrating a configuration example of an imaging apparatus according to the present embodiment. As an example, an interchangeable lens type camera system will be described. However, the present invention is applicable to an imaging apparatus having a configuration in which a photographing lens unit is incorporated in a camera body unit.

デジタルカメラ本体部(以下、単に本体部という)200は、交換レンズであるレンズ装置100を装着可能である。レンズ装置100は、電気接点ユニット106を有する不図示のマウント部を介して、本体部200に対して着脱可能に取り付けられる。   A digital camera body (hereinafter simply referred to as a body) 200 can be mounted with a lens device 100 that is an interchangeable lens. The lens apparatus 100 is detachably attached to the main body part 200 via a mount part (not shown) having an electrical contact unit 106.

レンズ装置100は、ズーム機構を含む撮影レンズ部101と、光量を制御する絞りおよびシャッタ102と、焦点調節を行うフォーカスレンズ103を備える。モータ104は、レンズコントローラ105からの制御指令にしたがってフォーカスレンズ103を駆動する。レンズコントローラ105はCPU(中央演算処理装置)を備え、撮影レンズ部101内の可動レンズ、絞りおよびシャッタ102、フォーカスレンズ103の駆動制御を行う。   The lens apparatus 100 includes a photographing lens unit 101 including a zoom mechanism, an aperture and shutter 102 that controls the amount of light, and a focus lens 103 that performs focus adjustment. The motor 104 drives the focus lens 103 in accordance with a control command from the lens controller 105. The lens controller 105 includes a CPU (Central Processing Unit), and performs drive control of the movable lens, the diaphragm and shutter 102, and the focus lens 103 in the photographing lens unit 101.

本体部200は撮像素子201を備え、レンズ装置100を通して結像される被写体からの反射光を光電変換して電気信号を出力する。撮像素子201はCCD(電荷結合素子)型イメージセンサやCMOS(相補型金属酸化膜半導体)型イメージセンサである。A/D(アナログ/デジタル)変換部202は、撮像素子201の出力信号を取得してデジタル信号に変換する。A/D変換部202は、撮像素子201の出力ノイズを除去するCDS(相関2重サンプリング)回路やA/D変換前に増幅を行う非線形増幅回路を含む。   The main body 200 includes an image sensor 201, photoelectrically converts reflected light from a subject imaged through the lens device 100, and outputs an electrical signal. The imaging device 201 is a CCD (charge coupled device) image sensor or a CMOS (complementary metal oxide semiconductor) image sensor. An A / D (analog / digital) converter 202 acquires the output signal of the image sensor 201 and converts it into a digital signal. The A / D conversion unit 202 includes a CDS (correlated double sampling) circuit that removes output noise of the image sensor 201 and a non-linear amplification circuit that performs amplification before A / D conversion.

画像処理部203はA/D変換部202の出力を取得して画像補正処理や現像処理等を行う。AF信号処理部204はA/D変換部202の出力を取得し、焦点調節のためのAF信号処理を行う。   The image processing unit 203 acquires the output of the A / D conversion unit 202 and performs image correction processing, development processing, and the like. The AF signal processing unit 204 acquires the output of the A / D conversion unit 202 and performs AF signal processing for focus adjustment.

フォーマット変換部205は、画像処理部203により処理されたデータに対して所定のフォーマット変換を行い、変換後のデータをメモリ206に出力する。メモリ206は高速な内蔵メモリであり、例えばランダムアクセスメモリ(以下、DRAMと記す)が使用される。DRAMは画像データを一時的に記憶する高速バッファとして機能し、あるいは画像の圧縮または伸長における作業用メモリ等にも使用される。   The format conversion unit 205 performs a predetermined format conversion on the data processed by the image processing unit 203 and outputs the converted data to the memory 206. The memory 206 is a high-speed built-in memory, and for example, a random access memory (hereinafter referred to as DRAM) is used. The DRAM functions as a high-speed buffer that temporarily stores image data, or is used as a working memory for image compression or decompression.

画像記録部207は、メモリカード等の記録媒体とそのインターフェース部を備え、撮影画像データを記録媒体に記録する。タイミングジェネレータ208はシステム制御部209からの制御指令にしたがって、撮像素子201、A/D変換部202、その他の構成部にタイミング制御用信号を出力する。   The image recording unit 207 includes a recording medium such as a memory card and its interface unit, and records captured image data on the recording medium. The timing generator 208 outputs a timing control signal to the image sensor 201, the A / D converter 202, and other components in accordance with a control command from the system controller 209.

システム制御部209はCPUを備え、所定の制御プログラムを実行して撮影シーケンスの制御を行い、カメラシステム全体の制御を統括する。システム制御部209はレンズ通信部210を介してレンズ装置100のレンズコントローラ105と通信可能である。レンズ通信部210は本体部200とレンズ装置100との通信機能を有し、同期信号のタイミングでデータを送受する。   The system control unit 209 includes a CPU, executes a predetermined control program to control the shooting sequence, and controls the entire camera system. The system control unit 209 can communicate with the lens controller 105 of the lens apparatus 100 via the lens communication unit 210. The lens communication unit 210 has a communication function between the main body unit 200 and the lens apparatus 100, and transmits and receives data at the timing of the synchronization signal.

AE処理部211はシステム制御部209からの制御指令にしたがってAE(自動露出)処理を行う。画像表示用メモリ(以下、VRAMと記す)212はメモリ206と画像表示部213に接続され、画像表示用データを記憶する。画像表示部213はVRAM212から取得した画像表示用データにしたがって画像表示を行う他、操作補助のための表示やカメラ状態の表示を行い、撮影時に撮影画面と測距領域(焦点検出領域)を表示する。   The AE processing unit 211 performs AE (automatic exposure) processing according to a control command from the system control unit 209. An image display memory (hereinafter referred to as VRAM) 212 is connected to the memory 206 and the image display unit 213 and stores image display data. The image display unit 213 displays an image in accordance with the image display data acquired from the VRAM 212, displays an operation assist display and a camera state, and displays a shooting screen and a distance measurement area (focus detection area) at the time of shooting. To do.

操作部214は、ユーザが撮像装置を操作するための操作部材を備える。例えば操作部214は、撮像装置の撮影機能や画像再生時の設定等を行うためのメニュー操作スイッチや、表示画面上で使用されるタッチパネル等の操作手段である。撮影モードSW(スイッチ)215は、マクロモード、スポーツモード等の撮影モードをユーザが選択するための操作スイッチである。メインスイッチ216はカメラシステムに電源を投入する際に使用されるスイッチである。   The operation unit 214 includes an operation member for the user to operate the imaging apparatus. For example, the operation unit 214 is an operation unit such as a menu operation switch for performing a shooting function of the image pickup apparatus, setting for image reproduction, or a touch panel used on the display screen. The shooting mode SW (switch) 215 is an operation switch for the user to select a shooting mode such as a macro mode or a sports mode. The main switch 216 is a switch used when power is supplied to the camera system.

スイッチ217および218は、レリーズボタンの操作によってオン・オフされるスイッチである。第1スイッチ217は、AFやAE等の撮影スタンバイ動作を行うためのスイッチ(以下、SW1と記す)である。第2スイッチ218は、ユーザがSW1の操作後に撮影指示を行う撮影用スイッチ(以下、SW2と記す)である。   Switches 217 and 218 are switches that are turned on and off by operating the release button. The first switch 217 is a switch (hereinafter referred to as SW1) for performing a shooting standby operation such as AF or AE. The second switch 218 is a shooting switch (hereinafter referred to as SW2) that gives a shooting instruction after the user operates SW1.

本実施形態における撮像信号の取得処理について説明する。撮像素子201はレンズ装置100の撮像光学系を通過した光を受光し、フォトダイオードによって入射光量に応じた信号電荷への光電変換を行う。各フォトダイオードに蓄積された信号電荷は、システム制御部209の指令にしたがってタイミングジェネレータ208から与えられる駆動パルスに基づき、信号電荷に応じた電圧信号として撮像素子201から順次読み出される。   An imaging signal acquisition process in this embodiment will be described. The imaging element 201 receives light that has passed through the imaging optical system of the lens apparatus 100, and performs photoelectric conversion to a signal charge corresponding to the amount of incident light by a photodiode. The signal charge accumulated in each photodiode is sequentially read out from the image sensor 201 as a voltage signal corresponding to the signal charge based on a drive pulse supplied from the timing generator 208 in accordance with a command from the system control unit 209.

本実施形態では撮像素子201の各画素部が一対のフォトダイオードA,Bとこれら一対のフォトダイオードA,Bに対して共通に設けられた1つのマイクロレンズにより構成される例を説明する。つまり、入射光はマイクロレンズによって分割されて一対のフォトダイオードA,B上に一対の光学像が形成される。一対のフォトダイオードA,Bは後述するAF用信号の生成に用いられる一対の画素信号を出力する。フォトダイオードAが出力する画素信号をA信号とし、フォトダイオードBが出力する画素信号をB信号とする。A信号およびB信号を用いた位相差検出演算によって位相差情報を取得することができる。また、A信号とB信号とを加算することで、撮像用信号(A+B信号)を取得することができる。   In the present embodiment, an example in which each pixel portion of the image sensor 201 is configured by a pair of photodiodes A and B and one microlens provided in common to the pair of photodiodes A and B will be described. That is, the incident light is divided by the microlens to form a pair of optical images on the pair of photodiodes A and B. The pair of photodiodes A and B outputs a pair of pixel signals used for generating an AF signal described later. A pixel signal output from the photodiode A is an A signal, and a pixel signal output from the photodiode B is a B signal. The phase difference information can be acquired by the phase difference detection calculation using the A signal and the B signal. Further, by adding the A signal and the B signal, an imaging signal (A + B signal) can be acquired.

撮像面位相差検出方式によるAF(いわゆる撮像面位相差AF)では、複数の画素部からそれぞれ出力された複数のA信号と複数のB信号を信号別に合成することで、AF用信号(焦点検出および焦点調節用の信号)としての一対の像信号が得られる。AF信号処理部204は、取得した一対の像信号に対する相関演算を行い、一対の像信号のずれ量である位相差(以下、像ずれ量という)を算出する。AF信号処理部204は像ずれ量から撮像光学系のデフォーカス量およびデフォーカス方向を算出する。像ずれ量またはデフォーカス量に基づいて撮像光学系の結像関係式を用いて、撮像装置から被写体までの距離情報を取得することができる。   In AF using an imaging surface phase difference detection method (so-called imaging surface phase difference AF), a plurality of A signals and a plurality of B signals respectively output from a plurality of pixel units are combined for each signal, thereby generating an AF signal (focus detection). And a pair of image signals as a focus adjustment signal). The AF signal processing unit 204 performs a correlation operation on the acquired pair of image signals, and calculates a phase difference (hereinafter referred to as an image shift amount) that is a shift amount of the pair of image signals. The AF signal processing unit 204 calculates the defocus amount and defocus direction of the imaging optical system from the image shift amount. The distance information from the imaging device to the subject can be acquired using the imaging relational expression of the imaging optical system based on the image shift amount or the defocus amount.

図2および図3を参照して、撮像素子201の構成について説明する。図2は撮像素子201の画素アレイ300を部分的に示す。画素アレイ300は多数の単位画素301を行列方向に配した構成である。マイクロレンズ302は単位画素301に対応して配列される。光電変換手段としてのフォトダイオード(以下、PDと略記する)303a,303bはマイクロレンズ302下に配置されて単位画素301を構成する。PD303a,303bは瞳分割構成をとり、同一の被写体の異なる位相差を有する2像(以下、A像とB像という)の光が入射される。PD303aはA像用の光電変換部を構成し、PD303bはB像用の光電変換部を構成する。図2では各画素部が1つのマイクロレンズ302に対応する2つの光電変換部を備える構成を示すが、3以上に分割された光電変換部を備える構成でもよい。   The configuration of the image sensor 201 will be described with reference to FIGS. FIG. 2 partially shows the pixel array 300 of the image sensor 201. The pixel array 300 has a configuration in which a large number of unit pixels 301 are arranged in a matrix direction. The micro lenses 302 are arranged corresponding to the unit pixels 301. Photodiodes (hereinafter abbreviated as PD) 303 a and 303 b as photoelectric conversion means are arranged below the microlens 302 to constitute a unit pixel 301. The PDs 303a and 303b have a pupil division configuration, and light of two images (hereinafter referred to as an A image and a B image) having different phase differences from the same subject is incident thereon. The PD 303a constitutes a photoelectric conversion unit for A image, and the PD 303b constitutes a photoelectric conversion unit for B image. Although FIG. 2 shows a configuration in which each pixel unit includes two photoelectric conversion units corresponding to one microlens 302, a configuration including photoelectric conversion units divided into three or more may be used.

図3を参照して、撮像素子201の回路構成を説明する。画素アレイ300において、水平方向に(m+1)個の単位画素301が配置され、垂直方向に(n+1)個の単位画素301が配置されている。各画素の垂直走査は垂直走査回路制御部304および垂直走査回路306によって行われ、全画素から行単位で信号を読み出す制御が可能である。   With reference to FIG. 3, the circuit configuration of the image sensor 201 will be described. In the pixel array 300, (m + 1) unit pixels 301 are arranged in the horizontal direction, and (n + 1) unit pixels 301 are arranged in the vertical direction. The vertical scanning of each pixel is performed by the vertical scanning circuit control unit 304 and the vertical scanning circuit 306, and control for reading out signals from all pixels in units of rows is possible.

垂直走査回路制御部304は、第1の読み出し設定部305aおよび第2の読み出し設定部305bを備え、プログラムされた読み出し設定に基づいて垂直走査回路306を制御する。垂直走査回路306は、読み出し設定部305a,305bにしたがって単位画素301にそれぞれパルスを送ることで画素信号を転送する。   The vertical scanning circuit control unit 304 includes a first readout setting unit 305a and a second readout setting unit 305b, and controls the vertical scanning circuit 306 based on the programmed readout setting. The vertical scanning circuit 306 transfers a pixel signal by sending a pulse to each unit pixel 301 in accordance with the readout setting units 305a and 305b.

タイミングジェネレータ(TG)307は、システム制御部209のCPUによる設定にしたがって各回路部に対し、信号の読み出しに必要な制御パルスを供給する。各回路部とは垂直走査回路306、読み出し回路310、AD変換回路311、水平走査回路312等である。図3に例示するタイミングジェネレータ307は撮像素子201に内蔵されているが、撮像素子201の外部に配置される構成でも構わない。   A timing generator (TG) 307 supplies a control pulse necessary for reading a signal to each circuit unit according to the setting by the CPU of the system control unit 209. Each circuit unit includes a vertical scanning circuit 306, a reading circuit 310, an AD conversion circuit 311, a horizontal scanning circuit 312 and the like. The timing generator 307 illustrated in FIG. 3 is built in the image sensor 201, but may be configured outside the image sensor 201.

単位画素301で光電変換された画素信号は、垂直走査回路306から供給される駆動信号によって、垂直出力線308へ行ごとに出力される。垂直走査回路制御部304は特定の行での出力の取得に際して、垂直走査回路306が後述する第1の駆動モードと第2の駆動モードのどちらで画素信号を読み出すかを制御する。定電流源309は垂直出力線308に接続され、不図示の画素アンプ用トランジスタとともにソースフォロワ回路を形成する。   The pixel signal photoelectrically converted by the unit pixel 301 is output to the vertical output line 308 for each row by the drive signal supplied from the vertical scanning circuit 306. The vertical scanning circuit control unit 304 controls whether the vertical scanning circuit 306 reads a pixel signal in a first driving mode or a second driving mode, which will be described later, when acquiring an output in a specific row. The constant current source 309 is connected to the vertical output line 308 and forms a source follower circuit together with a pixel amplifier transistor (not shown).

読み出し回路310は、各画素列の垂直出力線308からの出力を増幅する機能を有する。AD変換回路311は、読み出し回路310の出力に対してA/D変換を行い、デジタル信号を出力する。AD変換回路311によって変換されたデジタル画像信号は、水平走査回路312によって順次に選択される。出力部313は選択された画素信号を処理して、撮像素子201の外部へ出力する。   The readout circuit 310 has a function of amplifying the output from the vertical output line 308 of each pixel column. The AD conversion circuit 311 performs A / D conversion on the output of the reading circuit 310 and outputs a digital signal. The digital image signals converted by the AD conversion circuit 311 are sequentially selected by the horizontal scanning circuit 312. The output unit 313 processes the selected pixel signal and outputs it to the outside of the image sensor 201.

図4は本実施形態における撮像装置の動作を説明するフローチャートである。以下の処理はシステム制御部209のCPUが所定のプログラムを実行することにより実現される。S301でAE処理部211は画像処理部203の出力を取得してAE処理を行い、S302の処理へ進む。   FIG. 4 is a flowchart for explaining the operation of the imaging apparatus according to this embodiment. The following processing is realized by the CPU of the system control unit 209 executing a predetermined program. In step S301, the AE processing unit 211 acquires the output of the image processing unit 203, performs AE processing, and proceeds to processing in step S302.

S302でシステム制御部209は、第1スイッチ217(SW1)の状態を調べてSW1がONであるか否かを判定する。SW1がONであると判定された場合、S303へ進み、SW1がOFFであると判定された場合にはS301の処理に戻る。S303では、後述するAF動作が行われ、次にS304へ進む。   In S302, the system control unit 209 checks the state of the first switch 217 (SW1) and determines whether SW1 is ON. If it is determined that SW1 is ON, the process proceeds to S303, and if it is determined that SW1 is OFF, the process returns to S301. In S303, an AF operation described later is performed, and then the process proceeds to S304.

S304でシステム制御部209は、第1スイッチ217(SW1)の状態を調べてSW1がONであるか否かを判定する。SW1がONであると判定された場合、S305へ進み、SW1がOFFであると判定された場合にはS301の処理に戻る。S305では後述するAF処理(以下、サーボAFという)が実行される。サーボAFは動体である被写体に対して焦点を合わせ続けながら撮像を行うことができる機能であり、移動被写体に対して焦点調節を行う際に有効である。本実施形態ではユーザの操作指示によってサーボAFの切り替えを任意に行える構成とする。その後、S306でシステム制御部209は、第2スイッチ218(SW2)の状態を調べてSW2がONであるか否かを判定する。SW2がONであると判定された場合、S307へ進み、SW2がOFFであると判定された場合にはS304の処理に戻る。S306にて撮影動作が行われた後でS301の処理へ戻る。   In S304, the system control unit 209 checks the state of the first switch 217 (SW1) and determines whether SW1 is ON. If it is determined that SW1 is ON, the process proceeds to S305. If it is determined that SW1 is OFF, the process returns to S301. In S305, an AF process (hereinafter referred to as servo AF) described later is executed. Servo AF is a function that enables imaging while continuing to focus on a moving subject, and is effective when performing focus adjustment on a moving subject. In the present embodiment, the servo AF can be arbitrarily switched by a user operation instruction. Thereafter, in S306, the system control unit 209 checks the state of the second switch 218 (SW2) and determines whether SW2 is ON. If it is determined that SW2 is ON, the process proceeds to S307, and if it is determined that SW2 is OFF, the process returns to S304. After the photographing operation is performed in S306, the process returns to S301.

図5および図6は、図3のS303(AF動作)を説明するフローチャートである。まず、図5のS401でAE処理部211は、画像処理部203の出力に基づいてAE処理を行い、S402へ進む。S402でAF信号処理部204およびシステム制御部209は焦点検出処理を行い、デフォーカス量およびデフォーカス方向、ならびにそれらの信頼度を検出し、S403へ進む。焦点検出処理の詳細については図7を用いて後述する。   5 and 6 are flowcharts for explaining S303 (AF operation) in FIG. First, in S401 of FIG. 5, the AE processing unit 211 performs AE processing based on the output of the image processing unit 203, and the process proceeds to S402. In S402, the AF signal processing unit 204 and the system control unit 209 perform focus detection processing, detect the defocus amount and defocus direction, and their reliability, and proceed to S403. Details of the focus detection process will be described later with reference to FIG.

S403でシステム制御部209は、S402で得られた焦点検出結果の信頼度を予め設定されている閾値と比較する。この閾値を信頼度閾値2とする。信頼度が信頼度閾値2よりも高いと判定された場合、S404へ進み、信頼度が信頼度閾値2以下である場合には図6のS410へ進む。信頼度が信頼度閾値2以下であると判定された場合、デフォーカス量の精度は保証できないが、デフォーカス方向に対応する被写体のピント位置の方向は保証できるものとする。   In step S403, the system control unit 209 compares the reliability of the focus detection result obtained in step S402 with a preset threshold value. This threshold is defined as a reliability threshold 2. When it is determined that the reliability is higher than the reliability threshold 2, the process proceeds to S404, and when the reliability is equal to or less than the reliability threshold 2, the process proceeds to S410 in FIG. When it is determined that the reliability is equal to or less than the reliability threshold value 2, the accuracy of the defocus amount cannot be guaranteed, but the direction of the focus position of the subject corresponding to the defocus direction can be guaranteed.

S404でシステム制御部209は、S402で検出されたデフォーカス量を予め設定されている閾値と比較する。この閾値をDef量閾値2とする。Def量閾値2については、例えばデフォーカス量がDef量閾値2以下である場合、その後のデフォーカス量に応じて所定回数(例えば3回)以内で焦点深度内にフォーカスレンズを制御できる値(例えば焦点深度の5倍の量)に設定される。デフォーカス量がDef量閾値2以下であると判定された場合、S405へ進み、デフォーカス量がDef量閾値2より大きいと判定された場合にはS409へ進む。   In step S404, the system control unit 209 compares the defocus amount detected in step S402 with a preset threshold value. This threshold is defined as Def amount threshold 2. For the Def amount threshold 2, for example, when the defocus amount is less than or equal to the Def amount threshold 2, a value (for example, the focus lens can be controlled within the depth of focus within a predetermined number of times (for example, 3 times) according to the subsequent defocus amount (for example, The amount is 5 times the depth of focus). If it is determined that the defocus amount is equal to or smaller than the Def amount threshold 2, the process proceeds to S405. If it is determined that the defocus amount is greater than the Def amount threshold 2, the process proceeds to S409.

S405でシステム制御部209は、S402で得られた焦点検出結果の信頼度を予め設定されている閾値と比較する。この閾値を信頼度閾値1とする。信頼度閾値1については、例えば信頼度が信頼度閾値1以上である場合、デフォーカス量の精度のばらつきが所定範囲内(例えば焦点深度内)となる値に設定される。信頼度が信頼度閾値1よりも高いと判定された場合、S406へ進み、信頼度閾値1以下であると判定された場合にはS409へ進む。   In step S405, the system control unit 209 compares the reliability of the focus detection result obtained in step S402 with a preset threshold value. This threshold is defined as a reliability threshold 1. For the reliability threshold 1, for example, when the reliability is equal to or greater than the reliability threshold 1, the variation in the accuracy of the defocus amount is set to a value within a predetermined range (for example, within the depth of focus). When it is determined that the reliability is higher than the reliability threshold 1, the process proceeds to S406, and when it is determined that the reliability is equal to or less than the reliability threshold 1, the process proceeds to S409.

S406でシステム制御部209は、S402で検出されたデフォーカス量を予め設定されている閾値と比較する。この閾値をDef量閾値1とする。Def量閾値1については、例えば検出されたデフォーカス量がDef量閾値1以下である場合、焦点深度内にフォーカスレンズ103の位置が制御される値に設定される。デフォーカス量がDef量閾値1以下であると判定された場合、S407へ進み、Def量閾値1より大きいと判定された場合にはS408へ進む。   In step S406, the system control unit 209 compares the defocus amount detected in step S402 with a preset threshold value. This threshold is defined as Def amount threshold 1. For example, if the detected defocus amount is equal to or less than the Def amount threshold 1, the Def amount threshold 1 is set to a value that controls the position of the focus lens 103 within the depth of focus. If it is determined that the defocus amount is less than or equal to the Def amount threshold value 1, the process proceeds to S407, and if it is determined that the defocus amount is greater than the Def amount threshold value 1, the process proceeds to S408.

S407でシステム制御部209は現在の焦点検出状態が合焦状態であると判断して、リターン処理へ移行する。またS408でシステム制御部209はレンズ通信部210を介して、S402で検出されたデフォーカス量に対応する駆動量の制御信号をレンズコントローラ105に送信する。レンズコントローラ105はレンズ通信部210から受信した制御信号にしたがってモータ104の駆動制御を行い、フォーカスレンズ103を駆動させる。S408の後、S402へ処理を戻す。   In step S407, the system control unit 209 determines that the current focus detection state is an in-focus state, and proceeds to return processing. In step S <b> 408, the system control unit 209 transmits a drive amount control signal corresponding to the defocus amount detected in step S <b> 402 to the lens controller 105 via the lens communication unit 210. The lens controller 105 controls the driving of the motor 104 according to the control signal received from the lens communication unit 210 and drives the focus lens 103. After S408, the process returns to S402.

S409でシステム制御部209はレンズ通信部210を介して、S402で検出されたデフォーカス量に対して所定の割合に対応する駆動量の制御信号をレンズコントローラ105に送信する。所定の割合とは、デフォーカス量に対してフォーカスレンズ103の駆動量が少なくなるように設定される割合であり、例えば8割程度に設定されるものとする。レンズコントローラ105はレンズ通信部210から受信した制御信号にしたがってモータ104の駆動制御を行い、フォーカスレンズ103を駆動させる。その際に設定されるフォーカスレンズ103の駆動速度は、例えば1フレームに対応する時間で丁度レンズの駆動が可能な速度よりも遅くなるように設定される。これにより、検出されたデフォーカス量が正確でない場合に被写体に焦点が合ったピント位置(合焦位置)を超えてフォーカスレンズ103が駆動されてしまうことを抑制できる。S409の後、S402へ処理を戻す。   In step S409, the system control unit 209 transmits a drive amount control signal corresponding to a predetermined ratio to the defocus amount detected in step S402 to the lens controller 105 via the lens communication unit 210. The predetermined ratio is a ratio that is set so that the drive amount of the focus lens 103 is smaller than the defocus amount, and is set to about 80%, for example. The lens controller 105 controls the driving of the motor 104 according to the control signal received from the lens communication unit 210 and drives the focus lens 103. The driving speed of the focus lens 103 set at that time is set to be slower than the speed at which the lens can be driven, for example, in a time corresponding to one frame. Thereby, when the detected defocus amount is not accurate, the focus lens 103 can be prevented from being driven beyond the focus position (focus position) where the subject is focused. After S409, the process returns to S402.

図6のS410でシステム制御部209は非合焦条件を満たしたかどうかを判定する。ここで非合焦条件とは、合焦すべき被写体が存在しないと判断するための条件である。例えばフォーカスレンズ103の可動範囲の全てにおいてレンズ駆動が完了した場合、つまりフォーカスレンズ103の駆動制御において遠側と近側の両方のレンズ端が検出されて初期位置に戻ったことが条件として設定される。非合焦条件を満たす場合、S411へ進み、非合焦条件を満たさない場合にはS412へ進む。S411でシステム制御部209は現在の焦点検出状態が非合焦状態であると判断してから、リターン処理に移行する。   In S410 of FIG. 6, the system control unit 209 determines whether or not the out-of-focus condition is satisfied. Here, the out-of-focus condition is a condition for determining that there is no subject to be focused. For example, when the lens drive is completed in the entire movable range of the focus lens 103, that is, it is set as a condition that both the far and near lens ends are detected and returned to the initial position in the drive control of the focus lens 103. The If the non-focus condition is satisfied, the process proceeds to S411. If the non-focus condition is not satisfied, the process proceeds to S412. In step S411, the system control unit 209 determines that the current focus detection state is an out-of-focus state, and then proceeds to return processing.

S412でシステム制御部209は、フォーカスレンズ103が遠側または近側のレンズ端に到達したかどうかを判定する。フォーカスレンズ103が遠側または近側のレンズ端に到達したと判定された場合、S413へ進み、フォーカスレンズ103が遠側または近側のレンズ端に到達していないと判定された場合、S414へ進む。   In step S412, the system control unit 209 determines whether the focus lens 103 has reached the far side or near side lens end. If it is determined that the focus lens 103 has reached the far or near lens end, the process proceeds to S413. If it is determined that the focus lens 103 has not reached the far or near lens end, the process proceeds to S414. move on.

S413でシステム制御部209はレンズコントローラ105に対して制御信号を送信し、フォーカスレンズ103の駆動方向を反転させる制御を行った後、図5のS402の処理へ進む。またS414でシステム制御部209はレンズコントローラ105に対して制御信号を送信し、フォーカスレンズ103を所定方向(順方向)に駆動させる制御を行った後、図5のS402の処理へ進む。フォーカスレンズ103の駆動速度については、例えばデフォーカス量を検出可能な状態になった時点で被写体の合焦位置を通過することがないように、レンズ駆動速度の許容範囲内で最速値に設定される。   In step S413, the system control unit 209 transmits a control signal to the lens controller 105, performs control to reverse the driving direction of the focus lens 103, and then proceeds to the process of step S402 in FIG. In step S414, the system control unit 209 transmits a control signal to the lens controller 105, performs control to drive the focus lens 103 in a predetermined direction (forward direction), and then proceeds to the process of step S402 in FIG. The drive speed of the focus lens 103 is set to the fastest value within the allowable range of the lens drive speed so that the focus position of the subject does not pass when the defocus amount can be detected, for example. The

次に図7を参照して、図5のS402(焦点検出処理)について説明する。まず、S501でシステム制御部209は位相差情報の読み出し行を設定する。設定処理の詳細については図9、図10、図11および図12を用いて後述する。S502では、S501で設定された読み出し行に対して撮像素子201から焦点検出用の一対の像信号(A像信号、B像信号)を取得する処理が行われる。S503でAF信号処理部204は、S502で取得された一対の像信号に対し、垂直方向の行加算平均処理を行う。この処理によって像信号のノイズの影響を抑制できる。   Next, S402 (focus detection process) in FIG. 5 will be described with reference to FIG. First, in step S501, the system control unit 209 sets a readout line for phase difference information. Details of the setting process will be described later with reference to FIGS. 9, 10, 11, and 12. In S502, processing for acquiring a pair of image signals (A image signal and B image signal) for focus detection from the image sensor 201 is performed on the readout row set in S501. In step S503, the AF signal processing unit 204 performs vertical row addition averaging processing on the pair of image signals acquired in step S502. By this processing, the influence of noise of the image signal can be suppressed.

S504でAF信号処理部204は、S503で垂直方向の行加算平均処理を行った信号に対するフィルタ処理を行い、所定の周波数帯域の信号成分を抽出する。次にS505へ進み、AF信号処理部204は、S504でフィルタ処理された信号を用いて位相差検出の相関演算を行って相関量を算出する。S506でAF信号処理部204は、S505で算出した相関量から相関変化量を算出し、次のS507では、相関変化量から像ずれ量を算出してS508へ進む。S508でAF信号処理部204は、算出した像ずれ量がどれだけ信頼できるのかを表す信頼度を算出する。S509では像ずれ量をデフォーカス量に変換する変換処理が行われた後、焦点検出処理を終了してリターン処理へ移行する。相関量、相関変化量、信頼度の算出、デフォーカス変換については公知であるため、それらの詳細な説明を割愛する。   In step S504, the AF signal processing unit 204 performs filter processing on the signal that has been subjected to the row addition averaging process in the vertical direction in step S503, and extracts a signal component in a predetermined frequency band. In step S505, the AF signal processing unit 204 calculates a correlation amount by performing correlation calculation for phase difference detection using the signal filtered in step S504. In S506, the AF signal processing unit 204 calculates a correlation change amount from the correlation amount calculated in S505. In the next S507, the image shift amount is calculated from the correlation change amount, and the process proceeds to S508. In step S <b> 508, the AF signal processing unit 204 calculates a reliability indicating how reliable the calculated image shift amount is. In S509, after the conversion process for converting the image shift amount into the defocus amount is performed, the focus detection process is terminated and the process proceeds to a return process. Since the correlation amount, the correlation change amount, the calculation of the reliability, and the defocus conversion are known, detailed description thereof will be omitted.

図8は、本実施形態におけるサーボAF制御を説明するフローチャートである。S600では図5および図6で説明したAF動作が行われる。S601でシステム制御部209は、S600で算出されたデフォーカス量のデータを取得してメモリ(DRAM)206に記憶する。S602では図7で説明した焦点検出処理が行われる。取得された最新のデフォーカス量のデータはメモリ206に記憶される。   FIG. 8 is a flowchart illustrating servo AF control in the present embodiment. In S600, the AF operation described in FIGS. 5 and 6 is performed. In step S <b> 601, the system control unit 209 acquires the defocus amount data calculated in step S <b> 600 and stores it in the memory (DRAM) 206. In S602, the focus detection process described in FIG. 7 is performed. The acquired latest defocus amount data is stored in the memory 206.

S603にてシステム制御部209は、メモリ206に記憶されているS601でのデフォーカス量と、S602で取得された最新のデフォーカス量とを比較し、所定値(閾値)以上にデフォーカス量が変化しているかどうかを判定する。デフォーカス量の変化量が閾値以上であると判定された場合、S604の処理に進み、デフォーカス量の変化量が閾値未満であると判定された場合にはS602に戻って処理を続行する。   In step S603, the system control unit 209 compares the defocus amount in step S601 stored in the memory 206 with the latest defocus amount acquired in step S602, and the defocus amount is greater than or equal to a predetermined value (threshold value). Determine if it has changed. If it is determined that the change amount of the defocus amount is equal to or greater than the threshold value, the process proceeds to S604. If it is determined that the change amount of the defocus amount is less than the threshold value, the process returns to S602 and the process is continued.

S604にてシステム制御部209は、S603で判定された所定値以上の変化、つまり、評価値であるデフォーカス量が所定値以上に変化した回数を計数して所定回数(閾値)と比較する。計数された回数が所定回数以上であると判定された場合、S600へ戻り、再度AF動作が行われる。例えば、ユーザが着目被写体や構図を変更した場合等においてAF動作の制御が開始される。また、S604で計数された回数が所定回数未満であると判定された場合には、S602へ戻って焦点検出動作が行われ、デフォーカス量の監視が継続する。合焦後に繰り返し焦点検出を行うことで、被写体の動きに追従した焦点調節動作を行うことができる。   In step S604, the system control unit 209 counts the number of changes greater than the predetermined value determined in step S603, that is, the number of times the defocus amount, which is an evaluation value, has changed to a predetermined value or more, and compares the number with a predetermined number (threshold). If it is determined that the counted number is equal to or greater than the predetermined number, the process returns to S600 and the AF operation is performed again. For example, when the user changes the subject of interest or the composition, the control of the AF operation is started. If it is determined that the number counted in S604 is less than the predetermined number, the process returns to S602, the focus detection operation is performed, and the defocus amount is continuously monitored. By performing focus detection repeatedly after focusing, it is possible to perform a focus adjustment operation that follows the movement of the subject.

図9および図10を参照して、図7のS501に示す位相差情報の読み出し行の設定について説明する。図9および図10は、図4のS303に示したAF動作とS305に示したサーボAFにおいて位相差情報を読み出す行を例示する図である。図9および図10に示す画像例において位相差情報の読み出し行を実線の横線で模式的に示す。システム制御部209は静止体を撮影する場合(または静止体が検出された場合)、位相差情報の読み出し行の間隔を一定とする。またシステム制御部209は位相差情報の読み出し行の行数に関し、静止体を撮影する場合よりも動体を撮影する場合(または動体が検出された場合)に多くする設定を行う。   With reference to FIGS. 9 and 10, the setting of the readout row for the phase difference information shown in S501 of FIG. 7 will be described. FIG. 9 and FIG. 10 are diagrams exemplifying rows for reading phase difference information in the AF operation shown in S303 of FIG. 4 and the servo AF shown in S305. In the image examples shown in FIGS. 9 and 10, the readout row of the phase difference information is schematically shown by a solid horizontal line. The system control unit 209 makes the interval between readout rows of phase difference information constant when photographing a stationary body (or when a stationary body is detected). In addition, the system control unit 209 performs setting so that the number of rows from which phase difference information is read is increased when a moving object is imaged (or when a moving object is detected) than when a stationary object is imaged.

図9は、レリーズボタンの操作によって第1スイッチSW1がONした直後の、AF動作における位相差情報の読み出し方法を説明するための画像例を示す。画面内のフォーカス枠(焦点状態検出枠)901が主被写体の顔領域に位置している。第1スイッチSW1がONになった直後のAF動作においては、なるべく位相差情報を読み出す行の間隔を広げ、垂直方向において読み出す行を均等に配置する設定である。例えば、検出可能な被写体の顔領域の最小サイズによって読み出し行の間隔が決定される。システム制御部209は最小の顔サイズに対して、1行以上の位相差情報を読み出す水平ラインが配置できるように行間隔Dを設定する。   FIG. 9 shows an example of an image for explaining a method of reading phase difference information in the AF operation immediately after the first switch SW1 is turned on by operating the release button. A focus frame (focus state detection frame) 901 in the screen is located in the face area of the main subject. In the AF operation immediately after the first switch SW1 is turned on, the interval between the rows for reading the phase difference information is increased as much as possible, and the rows to be read in the vertical direction are evenly arranged. For example, the interval between read lines is determined by the minimum size of the detectable face area of the subject. The system control unit 209 sets the row interval D so that a horizontal line for reading out phase difference information of one or more rows can be arranged for the minimum face size.

図10(A)は、図4のS305に示したサーボAFの開始時における位相差情報の読み出し方法を説明するための画像例を示す。画面内のフォーカス枠901は撮像装置から遠距離の被写体領域に位置している。位相差情報の読み出し行の行間隔Dが均等に配置された設定である。この設定は垂直走査回路306により第1の駆動モードで画素信号を読み出す制御に対応する。動体である被写体が遠方に位置している場合、サーボAFでは当該被写体に対して焦点を合わせつつ、図10(A)に示す位相差情報の読み出し方法が継続される。本実施形態では、例えば焦点合わせが行われたフォーカスレンズ位置から被写体の距離情報が算出される。使用しているレンズ装置100の焦点距離に係る所定の閾値倍率(例えば50倍)に対応する距離よりも遠方に被写体が位置する場合に図10(A)に示す位相差情報の読み出し方法が継続する。   FIG. 10A shows an example of an image for explaining a method of reading phase difference information at the start of servo AF shown in S305 of FIG. A focus frame 901 in the screen is located in a subject area at a long distance from the imaging device. This is a setting in which the line intervals D of the readout lines of the phase difference information are evenly arranged. This setting corresponds to the control for reading the pixel signal in the first drive mode by the vertical scanning circuit 306. When the moving subject is located far away, the servo AF continues the method of reading phase difference information shown in FIG. 10A while focusing on the subject. In the present embodiment, for example, the distance information of the subject is calculated from the focus lens position where the focusing is performed. The phase difference information reading method shown in FIG. 10A continues when the subject is located farther than a distance corresponding to a predetermined threshold magnification (for example, 50 times) related to the focal length of the lens apparatus 100 being used. To do.

図10(B)は、動体である被写体の距離情報が焦点距離に係る閾値倍率に対応する距離よりも近側に位置した場合の、位相差情報の読み出し方法を説明するための画像例を示す。画面内のフォーカス枠901は撮像装置から近距離の被写体の顔領域に位置している。この場合、被写体が近側で移動しているので、測距誤差を低減するためには、なるべく多くの位相差情報を読み出す必要がある。さらに撮像装置の消費電力を抑えるために、移動被写体が検出された場合に必要最低限の領域から信号を読み出すように行間隔Dが設定される。この設定は垂直走査回路306により第2の駆動モードで画素信号を読み出す制御に対応する。図10(B)では読み出し行が移動被写体の顔領域とその近傍領域に集中して配置され、行間隔Dが狭くなっている。このように画像内の限定された範囲で位相差情報を読み出すことにより、消費電力を抑えつつ、高速な位相差情報の読み出しを行い、焦点検出精度の高いAF制御を実現できる。   FIG. 10B shows an example of an image for explaining a method of reading phase difference information when distance information of a moving subject is positioned closer to the distance corresponding to the threshold magnification related to the focal length. . A focus frame 901 in the screen is located in the face area of the subject at a short distance from the imaging apparatus. In this case, since the subject is moving on the near side, it is necessary to read as much phase difference information as possible in order to reduce the ranging error. Further, in order to reduce the power consumption of the imaging apparatus, the row interval D is set so that a signal is read from the minimum necessary area when a moving subject is detected. This setting corresponds to the control for reading the pixel signal in the second drive mode by the vertical scanning circuit 306. In FIG. 10B, read lines are concentrated on the face area of the moving subject and its neighboring area, and the line interval D is narrowed. Thus, by reading out the phase difference information within a limited range in the image, it is possible to read out the phase difference information at high speed while suppressing power consumption, and to realize AF control with high focus detection accuracy.

図11および図12は、位相差情報の読み出し行数の設定、つまり、どのような本数で読み出し行を設定するかについて説明するフローチャートである。S801でシステム制御部209は現在のAF設定モードがワンショットモードであるか、またはサーボAFモードであるかを判断する。サーボAFモード以外のAF設定モードとして、焦点調節動作を1回行うワンショットモードを例示する。ユーザは操作部214を使用して、静止体に焦点を合わせる焦点調節の指示を行うときにワンショットモードを選択し、また動体に焦点を合わせる焦点調節の指示を行うときにサーボAFモードを選択することができる。システム制御部209はワンショットモードの設定であると判断した場合、S802へ進み、サーボAFモードの設定であると判断した場合、図12のS806へ進む。   11 and 12 are flowcharts for explaining the setting of the number of read rows of phase difference information, that is, the number of read rows to be set. In step S801, the system control unit 209 determines whether the current AF setting mode is the one-shot mode or the servo AF mode. As an AF setting mode other than the servo AF mode, a one-shot mode in which the focus adjustment operation is performed once is exemplified. The user uses the operation unit 214 to select the one-shot mode when instructing the focus adjustment to focus on the stationary object, and the servo AF mode when instructing the focus adjustment to focus on the moving object. can do. If the system control unit 209 determines that the one-shot mode is set, the process proceeds to S802. If it is determined that the servo AF mode is set, the process proceeds to S806 in FIG.

S802でシステム制御部209は、人物の顔等の被写体が検出されているかどうかを判定する。当該被写体が検出されていると判定された場合、S803へ進み、被写体が検出されていないと判定された場合にはS806へ進む。   In step S802, the system control unit 209 determines whether a subject such as a human face has been detected. If it is determined that the subject is detected, the process proceeds to S803. If it is determined that the subject is not detected, the process proceeds to S806.

S803でシステム制御部209は、測距枠内でのコントラスト値を算出する処理を実行する。測距枠は撮影画面内の焦点状態検出枠であり、測距枠内の画素値の最大値および最小値から既知の方法でコントラスト値を算出することができる。S803で算出された測距枠内(検出枠内)の画像のコントラスト値が所定の閾値以上であると判定された場合、S804へ進み、コントラスト値が所定の閾値未満であると判定された場合にはS805へ進む。   In step S803, the system control unit 209 executes processing for calculating a contrast value within the distance measurement frame. The distance measurement frame is a focus state detection frame in the shooting screen, and the contrast value can be calculated by a known method from the maximum value and the minimum value of the pixel values in the distance measurement frame. When it is determined that the contrast value of the image within the distance measurement frame (in the detection frame) calculated in S803 is equal to or greater than the predetermined threshold value, the process proceeds to S804, and it is determined that the contrast value is less than the predetermined threshold value The process proceeds to S805.

S804にてシステム制御部209は、位相差情報の読み出し行数XをX1に設定する。またS805にてシステム制御部209は、位相差情報の読み出し行数XをX2に設定する。「X1<X2」とする。S804、S805の次にS813へ進み、システム制御部209は最終的な設定行数を、算出された行数、つまりX1またはX2に設定する。この場合に位相差情報の読み出し行は画面全体において等間隔に配置される。この行配置は垂直走査回路306による第1の駆動モードに対応する。その後、読み出し行の設定処理を終了する。   In step S804, the system control unit 209 sets the number X of read rows of the phase difference information to X1. In step S805, the system control unit 209 sets the number X of read rows of the phase difference information to X2. Assume that “X1 <X2”. After S804 and S805, the process proceeds to S813, and the system control unit 209 sets the final set number of rows to the calculated number of rows, that is, X1 or X2. In this case, the readout lines of the phase difference information are arranged at equal intervals over the entire screen. This row arrangement corresponds to the first driving mode by the vertical scanning circuit 306. Thereafter, the readout row setting process is terminated.

一方、図12のS806でシステム制御部209は、測距枠内でのコントラスト値を算出して所定の閾値と比較する。算出されたコントラスト値が閾値以上であると判定された場合、S807へ進み、コントラスト値が閾値未満であると判定された場合にはS808へ進む。   On the other hand, in S806 of FIG. 12, the system control unit 209 calculates the contrast value within the distance measurement frame and compares it with a predetermined threshold value. If it is determined that the calculated contrast value is greater than or equal to the threshold value, the process proceeds to S807. If it is determined that the contrast value is less than the threshold value, the process proceeds to S808.

S807でシステム制御部209は位相差情報の読み出し行数YをY1に設定する。またS808でシステム制御部209は位相差情報の読み出し行数YをY2に設定する。「Y1<Y2」とする。   In step S807, the system control unit 209 sets the number Y of read phase difference information rows to Y1. In step S808, the system control unit 209 sets the number Y of read phase difference information rows to Y2. Assume that “Y1 <Y2”.

S807、S808の次にS809へ進み、システム制御部209は位相差情報の読み出し行を初めて設定するのかどうかを判断する。初回の読み出し行の設定を行う場合にはS810へ進み、2回目以降の読み出し行の設定を行う場合にはS811へ進む。   After S807 and S808, the process proceeds to S809, where the system control unit 209 determines whether or not to set a read line for phase difference information for the first time. When setting the first read line, the process proceeds to S810, and when setting the second and subsequent read lines, the process proceeds to S811.

S810でシステム制御部209は、算出された行数、つまりY1またはY2を設定し、画面全体において位相差情報の読み出し行を等間隔に配置して処理を終了する。本実施形態では読み出し行数XとYが、下記式(1)の関係を有する。
X1<X2≦Y1<Y2 式(1)
In step S810, the system control unit 209 sets the calculated number of rows, that is, Y1 or Y2, arranges read phase difference information rows at equal intervals in the entire screen, and ends the process. In the present embodiment, the read row numbers X and Y have the relationship of the following formula (1).
X1 <X2 ≦ Y1 <Y2 Formula (1)

S811でシステム制御部209は、現時点で算出されているデフォーカス量を用いて、撮像装置から被写体までの距離(被写体距離)が所定の閾値以上であるかどうかを判断する。例えば閾値を50f(焦点距離fの50倍)とする。被写体距離はデフォーカス量とレンズ装置の撮像光学系に係る結像関係式から算出することができる。S811にて被写体距離が所定の閾値より大きいと判定された場合には処理を終了する。また被写体距離が所定の閾値以下であると判定された場合、S812へ進む。   In step S811, the system control unit 209 determines whether the distance from the imaging device to the subject (subject distance) is equal to or greater than a predetermined threshold, using the defocus amount calculated at the present time. For example, the threshold value is 50f (50 times the focal length f). The subject distance can be calculated from the defocus amount and an imaging relational expression related to the imaging optical system of the lens apparatus. If it is determined in S811 that the subject distance is greater than the predetermined threshold value, the process ends. If it is determined that the subject distance is equal to or smaller than the predetermined threshold value, the process proceeds to S812.

S812でシステム制御部209は、位相差情報の読み出し行を被写体領域に集中して配置することで被写体領域を中心とする範囲に狭める処理を行う。この行配置は垂直走査回路306による第2の駆動モードに対応する。近側(撮像装置側)へ移動してくる被写体に対して余計な測距領域(焦点検出領域)を除外し、かつ重要な領域での位相差検出信号のS/N比(信号対ノイズ比)を高くすることができる。   In step S <b> 812, the system control unit 209 performs processing for narrowing the phase difference information readout rows to a range centered on the subject region by concentrating and arranging the readout rows of the phase difference information. This row arrangement corresponds to the second driving mode by the vertical scanning circuit 306. The S / N ratio (signal-to-noise ratio) of the phase difference detection signal in an important area is excluded while excluding an extra distance measurement area (focus detection area) for the subject moving to the near side (imaging device side) ) Can be increased.

本実施形態では位相差情報を取得可能な瞳分割型撮像素子において、読み出し行に係る垂直周期を被写体の距離情報に応じて動的に変更することにより、複数の機能に適合した信号読み出しを行う。これにより、フレームレートの低下を抑制しつつ、より精度の高い位相差検出を行うことができる。
以上、本発明の好ましい実施形態について説明したが、本発明は前記実施形態に限定されず、その要旨の範囲内で種々の変形および変更が可能である。
In the present embodiment, in a pupil-divided image sensor that can acquire phase difference information, the vertical period related to the readout row is dynamically changed in accordance with the distance information of the subject to perform signal readout suitable for a plurality of functions. . Thereby, phase difference detection with higher accuracy can be performed while suppressing a decrease in the frame rate.
As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to the said embodiment, A various deformation | transformation and change are possible within the range of the summary.

103 フォーカスレンズ
105 レンズコントローラ
201 撮像素子
204 AF信号処理部
209 システム制御部
302 マイクロレンズ
303a,303b 光電変換部
304 垂直走査回路制御部
306 垂直走査回路
DESCRIPTION OF SYMBOLS 103 Focus lens 105 Lens controller 201 Image pick-up element 204 AF signal processing part 209 System control part 302 Micro lens 303a, 303b Photoelectric conversion part 304 Vertical scanning circuit control part 306 Vertical scanning circuit

Claims (11)

位相差情報の取得が可能な複数の画素部を有する撮像手段と、
前記画素部から行単位で信号を読み出す制御を行う制御手段と、を備え、
前記制御手段は被写体の距離情報を取得し、前記距離情報に対応する前記位相差情報の読み出し行の間隔を変更する制御を行う
ことを特徴とする撮像装置。
Imaging means having a plurality of pixel units capable of acquiring phase difference information;
Control means for performing control to read out signals from the pixel unit in units of rows,
The image pickup apparatus, wherein the control unit acquires distance information of a subject and performs control to change an interval between read lines of the phase difference information corresponding to the distance information.
前記制御手段は、前記撮像手段により静止体である被写体を撮像する場合、前記位相差情報の読み出し行の間隔を一定とし、前記撮像手段により動体である被写体を撮像する場合、前記距離情報に基づく前記位相差情報の読み出し行の間隔を動的に変更する制御を行う
ことを特徴とする請求項1に記載の撮像装置。
When the imaging means captures a subject that is a stationary object, the control means uses a constant interval between readout rows of the phase difference information. When the imaging means captures a subject that is a moving object, the control means is based on the distance information. The imaging apparatus according to claim 1, wherein control is performed to dynamically change an interval between readout rows of the phase difference information.
前記制御手段は、動体の被写体領域を含む範囲に前記位相差情報の読み出し行を設定する
ことを特徴とする請求項2に記載の撮像装置。
The imaging apparatus according to claim 2, wherein the control unit sets a readout row of the phase difference information in a range including a subject area of a moving body.
前記制御手段は、前記位相差情報の読み出し行の数を、前記撮像手段により静止体を撮像する場合に比べて動体を撮像する場合に多くする
ことを特徴とする請求項2または請求項3に記載の撮像装置。
4. The control unit according to claim 2, wherein the control unit increases the number of readout rows of the phase difference information when imaging a moving object as compared to imaging a stationary object by the imaging unit. 5. The imaging device described.
前記制御手段は、動体である被写体が検出されている場合の前記位相差情報の読み出し行の数を、動体である被写体が検出されていない場合の前記位相差情報の読み出し行の数よりも多くする
ことを特徴とする請求項2から4のいずれか1項に記載の撮像装置。
The control means increases the number of readout lines of the phase difference information when a moving subject is detected, more than the number of readout lines of the phase difference information when a moving subject is not detected. The imaging apparatus according to any one of claims 2 to 4, wherein the imaging apparatus is characterized in that:
前記制御手段は、前記位相差情報の読み出し行数を、焦点状態の検出枠内における画像のコントラスト値が閾値よりも高い場合に第1の行数に設定し、前記コントラスト値が閾値以下である場合に前記第1の行数よりも多い第2の行数に設定する
ことを特徴とする請求項1から4のいずれか1項に記載の撮像装置。
The control means sets the number of readout rows of the phase difference information to the first number when the contrast value of the image in the focus state detection frame is higher than the threshold value, and the contrast value is equal to or less than the threshold value. The imaging apparatus according to any one of claims 1 to 4, wherein the second number of rows larger than the first number of rows is set in some cases.
前記制御手段は、動体である被写体の距離情報が閾値以下であるときの前記位相差情報の読み出し行の間隔を、前記被写体の距離情報が前記閾値より大きいときの前記位相差情報の読み出し行の間隔よりも狭くする
ことを特徴とする請求項2から4のいずれか1項に記載の撮像装置。
The control means sets the interval of the phase difference information readout row when the distance information of the moving subject is less than or equal to the threshold, and the phase difference information readout row when the subject distance information is greater than the threshold. The imaging apparatus according to claim 2, wherein the imaging apparatus is narrower than the interval.
被写体に対して焦点を合わせる焦点調節の指示を行う操作手段と、
前記操作手段により、動体である被写体に対して焦点を合わせる焦点調節の指示が行われた場合、前記位相差情報を用いて焦点検出を行い、前記動体である被写体に対する焦点調節を行う焦点調節手段を備える
ことを特徴とする請求項1から7のいずれか1項に記載の撮像装置。
Operating means for instructing focus adjustment to focus on the subject;
A focus adjustment unit that performs focus detection using the phase difference information and performs focus adjustment on the moving subject when the operation unit instructs the focus adjustment to focus on the moving subject. The imaging apparatus according to any one of claims 1 to 7, further comprising:
前記制御手段は、前記動体の被写体領域を含む範囲に設定する前記読み出し行の間隔を、静止体である被写体を撮像する場合に設定する前記読み出し行の間隔よりも狭く
ことを特徴とする請求項3に記載の撮像装置。
The control unit is characterized in that the interval between the readout rows set in a range including the subject area of the moving object is narrower than the interval between the readout rows set when imaging a subject that is a stationary body. The imaging apparatus according to 3.
前記撮像手段の画素部は、マイクロレンズと、前記マイクロレンズに対応する複数の光電変換部を備え、前記複数の光電変換部は前記位相差情報を有する複数の信号を出力する
ことを特徴とする請求項1から9のいずれか1項に記載の撮像装置。
The pixel unit of the imaging unit includes a microlens and a plurality of photoelectric conversion units corresponding to the microlens, and the plurality of photoelectric conversion units output a plurality of signals having the phase difference information. The imaging device according to any one of claims 1 to 9.
位相差情報の取得が可能な複数の画素部を有する撮像手段と、前記画素部から行単位で信号を読み出す制御を行う制御手段を備える撮像装置にて実行される制御方法であって、
前記制御手段が被写体の距離情報を取得する工程と、
前記被写体の距離情報に対応する前記位相差情報の読み出し行の間隔を前記制御手段が変更する制御を行う工程と、を有する
ことを特徴とする制御方法。


A control method that is executed in an imaging apparatus including an imaging unit having a plurality of pixel units capable of acquiring phase difference information and a control unit that performs control to read out signals from the pixel units in units of rows,
The control means acquiring distance information of the subject;
And a step of controlling the control means to change an interval between readout rows of the phase difference information corresponding to the distance information of the subject.


JP2018104668A 2018-05-31 2018-05-31 Imaging device and its control method Active JP7175635B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018104668A JP7175635B2 (en) 2018-05-31 2018-05-31 Imaging device and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018104668A JP7175635B2 (en) 2018-05-31 2018-05-31 Imaging device and its control method

Publications (2)

Publication Number Publication Date
JP2019212952A true JP2019212952A (en) 2019-12-12
JP7175635B2 JP7175635B2 (en) 2022-11-21

Family

ID=68847038

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018104668A Active JP7175635B2 (en) 2018-05-31 2018-05-31 Imaging device and its control method

Country Status (1)

Country Link
JP (1) JP7175635B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11337814A (en) * 1998-05-26 1999-12-10 Canon Inc Optical device
JP2017112423A (en) * 2015-12-14 2017-06-22 キヤノン株式会社 Imaging device and control method therefor
JP2017198943A (en) * 2016-04-28 2017-11-02 キヤノン株式会社 Imaging apparatus and control method of imaging apparatus
JP2018026768A (en) * 2016-08-12 2018-02-15 キヤノン株式会社 Imaging apparatus, control method of the same, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11337814A (en) * 1998-05-26 1999-12-10 Canon Inc Optical device
JP2017112423A (en) * 2015-12-14 2017-06-22 キヤノン株式会社 Imaging device and control method therefor
JP2017198943A (en) * 2016-04-28 2017-11-02 キヤノン株式会社 Imaging apparatus and control method of imaging apparatus
JP2018026768A (en) * 2016-08-12 2018-02-15 キヤノン株式会社 Imaging apparatus, control method of the same, and program

Also Published As

Publication number Publication date
JP7175635B2 (en) 2022-11-21

Similar Documents

Publication Publication Date Title
US8964061B2 (en) Image capturing apparatus with selection of thinning and readout mode in accordance with moving image recording mode
KR101745310B1 (en) Image capturing apparatus and method for controlling image capturing apparatus
US8817165B2 (en) Image capturing apparatus
JP6099904B2 (en) Imaging device
US20140118587A1 (en) Image pickup apparatus and driving method therefor
JPWO2009022458A1 (en) Imaging device and camera
JP5831070B2 (en) Imaging device
US10812704B2 (en) Focus detection device, method and storage medium, for controlling image sensor operations
JP5206292B2 (en) Imaging apparatus and image recording method
JP5206293B2 (en) Imaging apparatus and image recording method
JP2018056703A (en) Imaging device and imaging apparatus
JP6207293B2 (en) IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP4637029B2 (en) Imaging apparatus and control method thereof
JP2013113857A (en) Imaging device, and control method therefor
US20110052168A1 (en) Focus detection apparatus and focus detection method
JP7175635B2 (en) Imaging device and its control method
JP2010107662A (en) Imaging apparatus, range-finding device and range-finding method
JP6444254B2 (en) FOCUS DETECTION DEVICE, IMAGING DEVICE, FOCUS DETECTION METHOD, PROGRAM, AND STORAGE MEDIUM
JP2008015353A (en) Imaging device
JP2018050267A (en) Imaging apparatus and method of controlling imaging element
JP5963550B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
KR20100027943A (en) Imaging apparatus and imaging method
JP2009053540A (en) Imaging device
US20180020150A1 (en) Control apparatus, image capturing apparatus, control method, and storage medium
JP2019074634A (en) Imaging apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210528

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220317

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220405

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220530

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221109

R151 Written notification of patent or utility model registration

Ref document number: 7175635

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151