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
JP7615835B2 - Camera control device and camera - Google Patents
[go: Go Back, main page]

JP7615835B2 - Camera control device and camera - Google Patents

Camera control device and camera Download PDF

Info

Publication number
JP7615835B2
JP7615835B2 JP2021058106A JP2021058106A JP7615835B2 JP 7615835 B2 JP7615835 B2 JP 7615835B2 JP 2021058106 A JP2021058106 A JP 2021058106A JP 2021058106 A JP2021058106 A JP 2021058106A JP 7615835 B2 JP7615835 B2 JP 7615835B2
Authority
JP
Japan
Prior art keywords
camera control
unit
control device
focus
lens
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
JP2021058106A
Other languages
Japanese (ja)
Other versions
JP2022154852A (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.)
Nikon Corp
Original Assignee
Nikon 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 Nikon Corp filed Critical Nikon Corp
Priority to JP2021058106A priority Critical patent/JP7615835B2/en
Publication of JP2022154852A publication Critical patent/JP2022154852A/en
Priority to JP2025001078A priority patent/JP2025041978A/en
Application granted granted Critical
Publication of JP7615835B2 publication Critical patent/JP7615835B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)

Description

本発明は、カメラ制御装置、およびカメラに関する。 The present invention relates to a camera control device and a camera.

デフォーカス量に基づいて、焦点調節を行うカメラが知られている(特許文献1参照)。従来より、焦点調節の精度向上が求められている。 Camera that adjusts focus based on the defocus amount is known (see Patent Document 1). There has been a demand for improving the accuracy of focus adjustment.

特開2014-206601号公報JP 2014-206601 A

本発明の第1の態様によるカメラ制御装置は、光学系を通過した被写体光を複数の光電変換部で受光して光電変換し、光電変換された複数の信号を出力する撮像部からの信号に基づき、前記被写体光の像の中に構造情報が含まれるか否か判定を行う判定部と、前記判定部で前記構造情報が含まれると判定されると、前記光学系のフォーカスレンズの移動可を設定し、前記判定部で前記構造情報が含まれないと判定されると、前記光学系のフォーカスレンズの動否を設定する移動可否設定部と、前記光学系の異なる瞳を通過した光束により形成された1組の像の位相差に基づいて前記光学系の焦点と前記撮像部の位置とのずれ量であるデフォーカス量を演算により検出する検出部と、を備え、前記検出部により前記デフォーカス量の検出ができず、かつ、前記移動可否設定部により前記フォーカスレンズの移動可が設定されている場合に、前記フォーカスレンズを所定の移動量だけ移動させる信号を前記光学系に送信し、前記フォーカスレンズが前記信号に応じて移動した後に、前記検出部により前記デフォーカス量を検出するための演算を再度実行する
本発明の第2の態様によるカメラは、第1の態様によるカメラ制御装置と、前記撮像部と、を備える。
A camera control device according to a first aspect of the present invention comprises a determination unit that determines whether or not structural information is included in an image of the subject light based on a signal from an imaging unit that receives subject light that has passed through an optical system using a plurality of photoelectric conversion units, photoelectrically converts the subject light, and outputs a plurality of photoelectrically converted signals; a movement possibility setting unit that sets a focus lens of the optical system to be movable if the determination unit determines that the structural information is included, and sets the focus lens of the optical system to be movable or not if the determination unit determines that the structural information is not included ; and a detection unit that detects by calculation an amount of defocus, which is the amount of deviation between the focus of the optical system and the position of the imaging unit, based on the phase difference between a set of images formed by light beams that have passed through different pupils of the optical system.If the detection unit is unable to detect the amount of defocus and the movement possibility setting unit has set the focus lens to be movable, a signal to move the focus lens a predetermined amount is sent to the optical system, and after the focus lens has moved in accordance with the signal, the detection unit re-executes calculation to detect the amount of defocus .
A camera according to a second aspect of the present invention includes the camera control device according to the first aspect and the imaging section .

第1の実施形態によるカメラシステムの要部構成を説明する模式図である。1 is a schematic diagram illustrating a configuration of a main part of a camera system according to a first embodiment. カメラ制御部が実行する処理の流れを例示するフローチャートである。11 is a flowchart illustrating the flow of a process executed by a camera control unit. 撮影範囲を例示する図である。FIG. 2 is a diagram illustrating an example of a shooting range. 図4(a)はフォーカスポイントP1に対応する撮像用画素信号を用いて生成されたヒストグラムを示す模式図、図4(b)はフォーカスポイントP2に対応する撮像用画素信号を用いて生成されたヒストグラムを示す模式図である。FIG. 4(a) is a schematic diagram showing a histogram generated using imaging pixel signals corresponding to focus point P1, and FIG. 4(b) is a schematic diagram showing a histogram generated using imaging pixel signals corresponding to focus point P2. 図5(a)は階級数(階級の幅)による度数分布の違いを例示する模式図、図5(b)はシフト量による度数分布の違いを例示する模式図である。FIG. 5A is a schematic diagram illustrating a difference in frequency distribution depending on the number of classes (class width), and FIG. 5B is a schematic diagram illustrating a difference in frequency distribution depending on the shift amount. フォーカスレンズの移動可否を設定する処理の流れを説明するフローチャートである。11 is a flowchart illustrating a process for setting whether or not the focus lens can be moved. ヒストグラムを用いた構造判定処理の流れを説明するフローチャートである。13 is a flowchart illustrating the flow of a structure determination process using a histogram. 第2の実施形態による、フォーカスレンズの移動可否を設定する処理の流れを説明するフローチャートである。10 is a flowchart illustrating a process for setting whether or not the focus lens can be moved according to a second embodiment.

以下、図面を参照して発明を実施するための形態について説明する。
本発明の一実施の形態によるカメラシステム1は、自動焦点(AF:Autofocus)調節機能を備え、デフォーカス量が大きくて被写体の像が大きくぼけている場合に、焦点調節可能な被写体であるか否かを判定し、判定結果に基づいてフォーカスレンズのスキャン移動の可否を決める。
以下の説明では、先にカメラシステム1の概要を説明し、その後で、焦点調節可能な被写体であるか否かの判定処理について説明する。
Hereinafter, an embodiment of the invention will be described with reference to the drawings.
A camera system 1 according to one embodiment of the present invention has an autofocus (AF) adjustment function, and when the defocus amount is large and the image of the subject is significantly blurred, it determines whether the subject is one for which focus can be adjusted, and decides whether or not to perform a scanning movement of the focus lens based on the determination result.
In the following description, an overview of the camera system 1 will be given first, and then the process of determining whether or not the subject is a focus adjustable subject will be described.

(第1の実施の形態)
図1は、第1の実施形態によるカメラシステム1の要部構成を説明する模式図である。カメラシステム1は、カメラボディ2に着脱可能な撮影レンズ(交換レンズ3と称する)を装着した例を説明するが、カメラボディ2と撮影レンズを一体に構成したカメラとしても構わない。
なお、図1において交換レンズ3の光軸Oと交差する面内の水平方向をX軸とし、鉛直方向をY軸とする。
(First embodiment)
1 is a schematic diagram illustrating the configuration of the main parts of a camera system 1 according to a first embodiment. The camera system 1 will be described as an example in which a detachable photographing lens (referred to as an interchangeable lens 3) is attached to a camera body 2, but the camera may also be one in which the camera body 2 and the photographing lens are integrated.
In FIG. 1, the horizontal direction in a plane intersecting with the optical axis O of the interchangeable lens 3 is defined as the X-axis, and the vertical direction is defined as the Y-axis.

<カメラボディ>
カメラボディ2は、カメラ制御部230、ボディ通信部240、撮像素子260、信号処理部270、操作部材280、および表示部290を有する。カメラ制御部230は、ボディ通信部240、撮像素子260、信号処理部270、操作部材280および表示部290と接続される。
<Camera body>
The camera body 2 has a camera control unit 230, a body communication unit 240, an image sensor 260, a signal processing unit 270, an operation member 280, and a display unit 290. The camera control unit 230 is connected to the body communication unit 240, the image sensor 260, the signal processing unit 270, the operation member 280, and the display unit 290.

カメラ制御部230は、マイクロコンピュータおよびその周辺回路等から構成される。カメラ制御部230は、カメラ制御部230が実行する制御プログラム等を記憶する記憶部235、AF信号処理部270bによる焦点検出演算を制御する焦点検出部230a、後述するフォーカスレンズ361のスキャン移動の可否を設定する移動可否設定部230b、後述するヒストグラムの生成条件を設定する条件設定部230c、ヒストグラムを生成する生成部230d、およびヒストグラムに基づいて被写体の像に構造情報が含まれているか否かを判定する構造判定部230eを含む。構造情報については後述する。カメラ制御部230は、記憶部235に記憶されている制御プログラムを実行してカメラボディ2内の各部を制御する。記憶部235は、カメラ制御部230によってデータの記録と読み出しが制御される。 The camera control unit 230 is composed of a microcomputer and its peripheral circuits. The camera control unit 230 includes a memory unit 235 that stores the control program executed by the camera control unit 230, a focus detection unit 230a that controls the focus detection calculation by the AF signal processing unit 270b, a movement permission setting unit 230b that sets whether or not the scan movement of the focus lens 361 described later is possible, a condition setting unit 230c that sets the generation conditions of a histogram described later, a generation unit 230d that generates a histogram, and a structure determination unit 230e that determines whether or not structural information is included in the image of the subject based on the histogram. The structural information will be described later. The camera control unit 230 executes the control program stored in the memory unit 235 to control each unit in the camera body 2. The recording and reading of data in the memory unit 235 is controlled by the camera control unit 230.

ボディ通信部240は、交換レンズ3のレンズ通信部340との間で所定の通信を行う。ボディ通信部240は、カメラ制御部230と接続される。 The body communication unit 240 performs predetermined communication with the lens communication unit 340 of the interchangeable lens 3. The body communication unit 240 is connected to the camera control unit 230.

交換レンズ3を透過した被写体からの光は、撮像素子260の撮像面260Sに導かれる。撮像素子260は、例えばCMOSイメージセンサやCCDイメージセンサ等の固体撮像素子である。撮像素子260は、カメラ制御部230からの制御信号により、撮像面260Sに形成される被写体の像を撮像して、被写体の像の輝度分布に対応した信号を出力する。カメラシステム1は、動画撮影と静止画撮影とが可能である。動画撮影には、動画を記録する他、表示部290で連続的にモニタ用の画像を表示させるための、いわゆるスルー画(ライブビュー画像とも称される)の撮影も含むものとする。 Light from the subject that passes through the interchangeable lens 3 is guided to the imaging surface 260S of the imaging element 260. The imaging element 260 is a solid-state imaging element such as a CMOS image sensor or a CCD image sensor. The imaging element 260 captures an image of the subject formed on the imaging surface 260S in response to a control signal from the camera control unit 230, and outputs a signal corresponding to the luminance distribution of the image of the subject. The camera system 1 is capable of capturing video and still images. In addition to recording video, video capture also includes capturing so-called through images (also called live view images) for continuously displaying images for monitoring on the display unit 290.

撮像素子260は、画像生成用の光電変換部と焦点検出用の光電変換部とを有する。画像生成用の光電変換部で生成された電荷に基づく撮像用画素信号は、信号処理部270の画像信号処理部270aによって画像データの生成に用いられる。また、焦点検出用の光電変換部で生成された電荷に基づく焦点検出用画素信号は、信号処理部270のAF信号処理部270bによって、撮影光学系360が形成する被写体の像の合焦状態、換言すると、光軸O方向における被写体の像の位置と撮像素子260の撮像面260Sの位置とのずれを検出する焦点検出演算(AF演算とも称される)に用いられる。
撮像素子260は、信号処理部270、カメラ制御部230と接続される。
The image sensor 260 has a photoelectric conversion unit for image generation and a photoelectric conversion unit for focus detection. An image pixel signal based on the charge generated by the photoelectric conversion unit for image generation is used to generate image data by an image signal processing unit 270a of the signal processing unit 270. A focus detection pixel signal based on the charge generated by the photoelectric conversion unit for focus detection is used by an AF signal processing unit 270b of the signal processing unit 270 for focus detection calculation (also called AF calculation) that detects the focus state of the subject image formed by the photographing optical system 360, in other words, the deviation between the position of the subject image in the optical axis O direction and the position of the imaging surface 260S of the image sensor 260.
The imaging element 260 is connected to the signal processing unit 270 and the camera control unit 230 .

信号処理部270は、画像信号処理部270aおよびAF信号処理部270bを含む。画像信号処理部270aは、撮像素子260から出力された撮像用画素信号に対して所定の画像処理を行って画像データを生成する。生成された画像データは、不図示の記憶媒体(メモリーカード等)に所定のファイル形式で記録されたり、撮影前のライブビュー画像の表示や撮影後の確認画像の表示に用いられたりする。 The signal processing unit 270 includes an image signal processing unit 270a and an AF signal processing unit 270b. The image signal processing unit 270a performs a predetermined image processing on the imaging pixel signals output from the imaging element 260 to generate image data. The generated image data is recorded in a predetermined file format on a storage medium (such as a memory card) (not shown), or is used to display a live view image before shooting or a confirmation image after shooting.

また、AF信号処理部270bは、撮像素子260から出力された焦点検出用画素信号を用いて位相差検出方式の焦点検出演算を行うことにより、デフォーカス量を算出する。デフォーカス量は、撮影光学系360が形成する被写体の像の位置と撮像面260Sとのずれ量である。
信号処理部270は、カメラ制御部230、撮像素子260、および表示部290と接続される。
In addition, the AF signal processing unit 270b calculates a defocus amount by performing focus detection calculation using a phase difference detection method using focus detection pixel signals output from the image sensor 260. The defocus amount is the amount of deviation between the position of the subject image formed by the photographing optical system 360 and the image pickup surface 260S.
The signal processing unit 270 is connected to the camera control unit 230 , the image pickup element 260 , and the display unit 290 .

レリーズボタンや操作スイッチ等を含む操作部材280は、カメラボディ2の外装面に設けられる。操作部材280は、ユーザの操作に応じた操作信号をカメラ制御部230へ送出する。ユーザは、操作部材280を操作することにより、撮影指示や撮影条件の設定指示等を行う。また、ユーザは、操作部材280によって、後述する「AFエリアモード」の切替えを指示することができる。 Operation members 280, including a release button and operation switches, are provided on the exterior surface of the camera body 2. The operation members 280 send operation signals to the camera control unit 230 in response to user operations. The user issues shooting instructions and shooting condition setting instructions by operating the operation members 280. The user can also use the operation members 280 to instruct switching of the "AF area mode" described below.

表示部290は、有機EL表示パネルや液晶表示パネルによって構成される。表示部290は、カメラ制御部230からの制御信号により、画像信号処理部270aによって処理された画像データに基づく画像や、操作メニュー画面等を表示する。また、表示部290にタッチパネルを備え、操作部材280の一部としてのタッチ操作部材290Aを構成してもよい。
表示部290は、カメラ制御部230と接続される。
The display unit 290 is configured with an organic EL display panel or a liquid crystal display panel. The display unit 290 displays an image based on image data processed by the image signal processing unit 270a, an operation menu screen, and the like, in response to a control signal from the camera control unit 230. The display unit 290 may also be provided with a touch panel to configure a touch operation member 290A as a part of the operation member 280.
The display unit 290 is connected to the camera control unit 230 .

<交換レンズ>
交換レンズ3は、レンズ制御部330、レンズ通信部340、撮影光学系360、レンズ駆動部370、および絞り駆動部380を有する。レンズ制御部330は、レンズ通信部340、レンズ駆動部370、絞り駆動部380と接続される。
<Interchangeable lenses>
The interchangeable lens 3 has a lens control unit 330, a lens communication unit 340, a photographing optical system 360, a lens driving unit 370, and an aperture driving unit 380. The lens control unit 330 is connected to the lens communication unit 340, the lens driving unit 370, and the aperture driving unit 380.

レンズ制御部330は、マイクロコンピュータおよびその周辺回路等から構成される。レンズ制御部330は、内部に記憶されている制御プログラムを実行し、AF動作時のフォーカスレンズ361の移動制御などの、交換レンズ3の各部を制御する。 The lens control unit 330 is composed of a microcomputer and its peripheral circuits. The lens control unit 330 executes a control program stored therein and controls each part of the interchangeable lens 3, such as controlling the movement of the focus lens 361 during AF operation.

レンズ通信部340は、ボディ通信部240との間で所定の通信を行う。レンズ通信部340とボディ通信部240との間で行われる通信により、フォーカスレンズ361などを移動させる指示等が、カメラボディ2から交換レンズ3へ送信される。また、レンズ通信部340とボディ通信部240との間で行われる通信により、フォーカスレンズ361の駆動状態などの情報が交換レンズ3からカメラボディ2へ送信される。 The lens communication unit 340 performs a predetermined communication with the body communication unit 240. Instructions to move the focus lens 361 and the like are sent from the camera body 2 to the interchangeable lens 3 through communication between the lens communication unit 340 and the body communication unit 240. In addition, information such as the drive state of the focus lens 361 is sent from the interchangeable lens 3 to the camera body 2 through communication between the lens communication unit 340 and the body communication unit 240.

撮影光学系360は、複数のレンズと絞り部材362とを含み、カメラボディ2の撮像素子260の撮像面260Sに被写体光を導く。上記複数のレンズのうちフォーカスレンズ361は、レンズ駆動部370により、光軸O方向に移動が可能に構成されている。フォーカスレンズ361が移動することにより、撮影光学系360が形成する被写体の像の位置が光軸O方向に移動する。これにより、合焦のためのレンズ駆動(合焦駆動)が行われる。 The photographing optical system 360 includes multiple lenses and an aperture member 362, and directs subject light to the imaging surface 260S of the image sensor 260 in the camera body 2. Of the multiple lenses, the focus lens 361 is configured to be movable in the direction of the optical axis O by a lens drive unit 370. As the focus lens 361 moves, the position of the subject image formed by the photographing optical system 360 moves in the direction of the optical axis O. This allows the lens to be driven (focus drive) for focusing.

絞り362は、撮像素子260に入射する光量を調節する。絞り362は、絞り駆動部380や手動操作により、絞り羽根が駆動され開口径(絞り値)を変化させることが可能に構成されている。 The aperture 362 adjusts the amount of light incident on the image sensor 260. The aperture 362 is configured so that the aperture blades can be driven by the aperture drive unit 380 or manually to change the aperture diameter (aperture value).

フォーカスレンズ361の移動方向や移動量、移動速度などの駆動指示は、カメラ制御部230から指示される。なお、カメラ制御部230からの情報に基づいて、レンズ制御部330がフォーカスレンズ361の移動方向や移動量、移動速度などの駆動指示を行うこととしてもよい。 Drive instructions such as the direction, amount, and speed of movement of the focus lens 361 are issued by the camera control unit 230. Note that the lens control unit 330 may issue drive instructions such as the direction, amount, and speed of movement of the focus lens 361 based on information from the camera control unit 230.

<カメラ動作の一例>
上述したカメラシステム1によるカメラ動作の一例を説明する。
図2は、カメラ制御部230が実行する処理の流れを例示するフローチャートである。カメラ制御部230は、例えば、メインスイッチのオン操作に伴う起動時に、図2のフローチャートによる処理を開始させる。
<Example of camera operation>
An example of the camera operation of the above-described camera system 1 will be described.
Fig. 2 is a flowchart illustrating the flow of processing executed by the camera control unit 230. The camera control unit 230 starts the processing according to the flowchart in Fig. 2, for example, at the time of startup following the turning on of a main switch.

ステップS10において、カメラ制御部230は、ライブビュー画像のための露出設定を行い、撮像素子260に対する蓄積制御(露光制御)を行ってステップS15へ進む。起動後1枚目の撮像の露出設定値は予め定めた初期値に制御し、撮像素子260に対する蓄積制御を行う。 In step S10, the camera control unit 230 sets the exposure for the live view image, performs accumulation control (exposure control) on the image sensor 260, and proceeds to step S15. The exposure setting value for the first image captured after startup is controlled to a predetermined initial value, and accumulation control is performed on the image sensor 260.

ステップS15において、カメラ制御部230は、撮像素子260から信号処理部270へ信号を読み出させてステップS20へ進む。カメラ制御部230は、ステップS20において露出演算を行うことにより、各制御値を算出する。すなわち、カメラ制御部230は、信号処理部270に入力された撮像用画素信号に基づいて被写体の明るさ情報(Bv値)を検出し、Bv値と、記憶部235に格納されているプログラム線図の情報とに基づいて、絞り値(Av値)、シャッタ速度(Tv値)、および感度(Sv値)を決定してステップS25へ進む。算出した各制御値は、記憶部235に記憶させておく。 In step S15, the camera control unit 230 causes the signal processing unit 270 to read out the signal from the image sensor 260, and proceeds to step S20. The camera control unit 230 calculates each control value by performing exposure calculation in step S20. That is, the camera control unit 230 detects brightness information (Bv value) of the subject based on the image pixel signal input to the signal processing unit 270, and determines the aperture value (Av value), shutter speed (Tv value), and sensitivity (Sv value) based on the Bv value and the program diagram information stored in the memory unit 235, and proceeds to step S25. Each calculated control value is stored in the memory unit 235.

ステップS25において、カメラ制御部230は、レンズ制御部330から絞り駆動部380を制御して絞り362を決定した絞り値に設定する。カメラ制御部230は、画像信号処理部270aに対し、撮像素子260から出力された撮像用画素信号を用いてライブビュー画像を生成させ、生成されたライブビュー画像を表示部290に表示させる。 In step S25, the camera control unit 230 controls the aperture drive unit 380 via the lens control unit 330 to set the aperture 362 to the determined aperture value. The camera control unit 230 causes the image signal processing unit 270a to generate a live view image using the imaging pixel signals output from the imaging element 260, and causes the display unit 290 to display the generated live view image.

ステップS30において、カメラ制御部230の焦点検出部230aは、AF信号処理部270bにAF演算を行わせてステップS40へ進む。AF演算により、撮像素子260から出力された焦点検出用画素信号に基づいてデフォーカス量が算出される。 In step S30, the focus detection unit 230a of the camera control unit 230 causes the AF signal processing unit 270b to perform AF calculations, and the process proceeds to step S40. The AF calculations calculate the defocus amount based on the focus detection pixel signals output from the image sensor 260.

カメラ制御部230の移動可否設定部230bは、AF演算(ステップS30)後のステップS40においてフォーカスレンズ361の移動可否を判定する。この判定処理は、AF演算でデフォーカス量を算出することができなかった場合において、無駄なフォーカスレンズ361のスキャン動作を避けるために行う。
従来から、フォーカスレンズ361のスキャン動作は、AF信号処理部270bがデフォーカス量を算出できない場合に行われ、フォーカスレンズ361を光軸O方向に予め定めた移動量だけ移動させて、デフォーカス量が算出される可能性を高める。つまり、被写体の像が大きくぼけてデフォーカス量を算出できないほどに被写体の像の輪郭や模様等が消失している状態から、被写体の像の輪郭や模様等がデフォーカス量を算出できる程度に現れるように被写体の像のぼけ状態を改善させるために、フォーカスレンズ361がスキャン動作される。なお、スキャン動作としてフォーカスレンズ361を至近から無限遠まで全域にわたり移動させてもよい。
The movement permission setting unit 230b of the camera control unit 230 determines in step S40 after the AF calculation (step S30) whether or not the focus lens 361 can be moved. This determination process is performed to avoid unnecessary scanning operation of the focus lens 361 when the defocus amount cannot be calculated by the AF calculation.
Conventionally, the scanning operation of the focus lens 361 is performed when the AF signal processing unit 270b cannot calculate the defocus amount, and the focus lens 361 is moved by a predetermined movement amount in the direction of the optical axis O to increase the possibility of calculating the defocus amount. In other words, the focus lens 361 is scanned in order to improve the blur state of the subject image from a state in which the subject image is so blurred that the contour, pattern, etc. of the subject image disappears to such an extent that the defocus amount cannot be calculated, so that the contour, pattern, etc. of the subject image appear to such an extent that the defocus amount can be calculated. Note that the scanning operation may involve moving the focus lens 361 over the entire range from close to infinity.

フォーカスレンズ361をスキャン動作させてもデフォーカス量が算出できない場合はスキャン動作が無駄となる。そこで、実施の形態では、レンズ移動を行っても被写体の像のぼけ状態が改善されない被写体についてはスキャン動作のレンズ移動を行わないこととしている。例えば、もともと被写体の輪郭や模様等が明瞭でないためにAF演算に必要な被写体の像の輪郭や模様等が現れない、または、もともと被写体の輪郭や模様等が明瞭でないためにAF演算に必要な被写体の像の輪郭や模様等が不足することによってデフォーカス量を算出することができない場合がある。このような場合には、スキャン動作のレンズ移動を行ったとしても、デフォーカス量が算出される可能性が見込めない。そのため、本実施の形態では、移動可否設定部230bがスキャン動作のレンズ移動可を設定しなかった場合には、スキャン動作のレンズ移動を行わないことにする。詳細は後述する。 If the defocus amount cannot be calculated even if the focus lens 361 is scanned, the scan operation is wasted. Therefore, in the embodiment, the lens movement of the scan operation is not performed for a subject for which the blur of the image of the subject is not improved even if the lens movement is performed. For example, the contour or pattern of the subject image required for AF calculation may not appear because the contour or pattern of the subject is not clear to begin with, or the contour or pattern of the subject image required for AF calculation may be insufficient because the contour or pattern of the subject is not clear to begin with, making it impossible to calculate the defocus amount. In such a case, even if the lens movement of the scan operation is performed, it is unlikely that the defocus amount will be calculated. Therefore, in the present embodiment, if the movement possibility setting unit 230b does not set the lens movement possibility of the scan operation, the lens movement of the scan operation is not performed. Details will be described later.

なお、AF演算(S30)でデフォーカス量を算出することができた場合には、移動可否設定部230bは、デフォーカス量に基づいたフォーカスレンズ361のレンズ移動可を設定し、すなわち焦点調節動作のレンズ移動可を設定し、フォーカスレンズ361を光軸O方向に合焦駆動させる(ステップS50)。
ステップS40でレンズ移動可が設定されるのは、デフォーカス量が演算されたとき、および、デフォーカス量が演算されないが被写体の像に構造情報を含むときの2通りである。前者の移動可設定により焦点調節動作としてレンズ移動動作が行われ、後者の移動可設定によりAF再演算のためのスキャン動作が行われる。本明細書では、前者を焦点調節動作のレンズ移動可と呼び、後者をスキャン動作のレンズ移動可と呼ぶ。構造情報については後述する。
ステップS40の設定結果は、焦点調節動作のレンズ移動可、スキャン動作のレンズ移動可、およびスキャン動作のレンズ移動否の3種類のフラグとして記憶され、後述のレンズ駆動制御処理で使用される。
以上のようなフォーカスレンズ361の移動可否を設定する処理(S40)の詳細については、図4~7を参照して後述する。
In addition, if the defocus amount can be calculated by the AF calculation (S30), the movement feasibility setting unit 230b sets the lens movement of the focus lens 361 based on the defocus amount, i.e., sets the lens movement of the focus adjustment operation, and drives the focus lens 361 to focus in the direction of the optical axis O (step S50).
There are two cases where the lens movement possible is set in step S40: when the defocus amount has been calculated, and when the defocus amount has not been calculated but the subject image contains structural information. The former movement possible setting causes a lens movement operation to be performed as a focus adjustment operation, and the latter movement possible setting causes a scan operation for AF recalculation. In this specification, the former is called lens movement possible for focus adjustment operation, and the latter is called lens movement possible for scan operation. The structural information will be described later.
The setting results of step S40 are stored as three types of flags: lens movement possible for focus adjustment operation, lens movement possible for scanning operation, and lens movement not possible for scanning operation, and are used in the lens drive control process described later.
The process of setting whether or not the focus lens 361 can be moved (S40) will be described in detail below with reference to FIGS.

カメラ制御部230は、ステップS40の設定処理の後、ステップS45に進む。ステップS45において、カメラ制御部230はレリーズボタンが半押し操作されたか否かを判定する。カメラ制御部230は、レリーズボタンが半押し操作されない場合にはステップS45を否定判定してステップS10へ戻る。これに対し、半押し操作された場合にはステップS45を肯定判定してステップS48に進む。ステップS48において、カメラ制御部230は、レンズ移動の可否を判定し、焦点調節動作のレンズ移動可のフラグが設定されていればステップS50に進み、焦点調節動作のレンズ移動可のフラグが設定されていなければステップS52に進む。 After the setting process of step S40, the camera control unit 230 proceeds to step S45. In step S45, the camera control unit 230 determines whether or not the release button has been half-pressed. If the release button has not been half-pressed, the camera control unit 230 makes a negative judgment in step S45 and returns to step S10. In contrast, if the release button has been half-pressed, the camera control unit 230 makes a positive judgment in step S45 and proceeds to step S48. In step S48, the camera control unit 230 determines whether or not the lens can be moved, and if the flag indicating that the lens can be moved for the focus adjustment operation is set, the camera control unit 230 proceeds to step S50, and if the flag indicating that the lens can be moved for the focus adjustment operation is not set, the camera control unit 230 proceeds to step S52.

焦点調節動作のレンズ移動可で進むステップS50において、カメラ制御部230は、ステップS30において算出されたフォーカスレンズ361の駆動量に対応する駆動信号を、ボディ通信部240から交換レンズ3へ送信させる。これにより、レンズ制御部330からレンズ駆動部370へフォーカスレンズ361の駆動指示が行われる、これは、合焦駆動の指示である。
カメラ制御部230はさらに、合焦駆動を行ったことをユーザに知らせる動作を行う。カメラ制御部230は、採用されているフォーカスポイントPを示す表示(AF枠)を、例えば所定時間点灯表示させる。その後、カメラ制御部230はステップS60へ進む。
In step S50, which is proceeded to when the focus adjustment operation is performed and the lens is movable, the camera control unit 230 causes a drive signal corresponding to the drive amount of the focus lens 361 calculated in step S30 to be transmitted from the body communication unit 240 to the interchangeable lens 3. As a result, the lens control unit 330 issues an instruction to the lens drive unit 370 to drive the focus lens 361, which is an instruction to drive the focus lens 361.
The camera control unit 230 further performs an operation to inform the user that the focus drive has been performed. The camera control unit 230 causes a display (AF frame) indicating the adopted focus point P to be lit for a predetermined period of time, for example. After that, the camera control unit 230 proceeds to step S60.

また、焦点調節動作のレンズ移動可のフラグが設定されていない場合はステップS48が否定判定され、ステップS52に進む。ステップS52では、スキャン動作のレンズ移動可または否のフラグが設定されているかを判定する。カメラ制御部230は、スキャン動作のレンズ移動可のフラグが設定されている場合、ステップS54に進む。ステップS54において、カメラ制御部230は、フォーカスレンズ361を光軸O方向にスキャン動作のために移動させる指示を、ボディ通信部240から交換レンズ3へ送信させる。これは、スキャン駆動の指示である。またカメラ制御部230は、ステップS30へ戻って上述したと同様にAF演算を実行し、その後ステップS40に進む。
一方、ステップS52においてスキャン動作のレンズ移動否のフラグが設定されている場合、ステップS58に進む。カメラ制御部230は、ステップS58において、合焦駆動を行うことができないことをユーザに知らせる動作を含む表示処理を行う。表示処理として、カメラ制御部230は、採用されているフォーカスポイントPを示す表示(AF枠)を、例えば所定時間点滅表示させる。その後、カメラ制御部230はステップS60へ進む。このように、スキャン動作のレンズ移動否のフラグが設定されていると、カメラ制御部230は交換レンズ3へフォーカスレンズ361の駆動指示を送らないので、フォーカスレンズ361の無駄な駆動を避けることができる。
Furthermore, if the flag indicating that the lens can be moved for the focus adjustment operation is not set, a negative judgment is made in step S48, and the process proceeds to step S52. In step S52, it is judged whether a flag indicating that the lens can be moved or not for the scan operation is set. If the flag indicating that the lens can be moved for the scan operation is set, the camera control unit 230 proceeds to step S54. In step S54, the camera control unit 230 causes the body communication unit 240 to transmit an instruction to move the focus lens 361 in the direction of the optical axis O for the scan operation to the interchangeable lens 3. This is an instruction for scan drive. Furthermore, the camera control unit 230 returns to step S30 to execute AF calculation in the same manner as described above, and then proceeds to step S40.
On the other hand, if the flag indicating that the lens is not to be moved in the scan operation is set in step S52, the process proceeds to step S58. In step S58, the camera control unit 230 performs a display process including an operation of informing the user that focus driving cannot be performed. As the display process, the camera control unit 230 causes a display (AF frame) indicating the focus point P being used to blink for a predetermined period of time, for example. Thereafter, the camera control unit 230 proceeds to step S60. In this way, if the flag indicating that the lens is not to be moved in the scan operation is set, the camera control unit 230 does not send a drive instruction for the focus lens 361 to the interchangeable lens 3, so that unnecessary driving of the focus lens 361 can be avoided.

ステップS60において、カメラ制御部230はレリーズボタンが全押し操作されたか否かを判定する。カメラ制御部230は、レリーズボタンが全押し操作された場合にステップS60を肯定判定してステップS65へ進み、全押し操作されない場合にはステップS60を否定判定してステップS10へ戻る。 In step S60, the camera control unit 230 determines whether the release button has been fully pressed. If the release button has been fully pressed, the camera control unit 230 makes a positive judgment in step S60 and proceeds to step S65, and if the release button has not been fully pressed, the camera control unit 230 makes a negative judgment in step S60 and returns to step S10.

ステップS10へ戻ったカメラ制御部230は、再びステップS10以降の処理を行う。ライブビュー画像の2コマ目以降の露出設定は、記憶部235に記憶されている絞り値と、記憶部235に記憶されているシャッタ速度(Tv値)および感度(Sv値)とを用いる。 After returning to step S10, the camera control unit 230 again performs the processes from step S10 onwards. The exposure settings for the second and subsequent frames of the live view image use the aperture value stored in the memory unit 235, and the shutter speed (Tv value) and sensitivity (Sv value) stored in the memory unit 235.

レリーズボタンが全押し操作された場合(ステップS60を肯定判定)に進むステップS65において、カメラ制御部230は、撮像素子260に対して、記録用の画像を撮像するための蓄積動作を行わせる。その際に、絞り362を記憶部235に記憶されている絞り値(Av値)に設定し、記憶部235に記憶されているシャッタ速度(Tv値)で撮像素子260の蓄積制御を行い、記憶部235に記憶されている感度(Sv値)を用いて処理を行う。 In step S65, which is reached when the release button is fully pressed (a positive judgment in step S60), the camera control unit 230 causes the image sensor 260 to perform a storage operation for capturing an image for recording. At that time, the aperture 362 is set to the aperture value (Av value) stored in the storage unit 235, storage control of the image sensor 260 is performed at the shutter speed (Tv value) stored in the storage unit 235, and processing is performed using the sensitivity (Sv value) stored in the storage unit 235.

ステップS70において、カメラ制御部230は、撮像素子260から信号処理部270へ信号を読み出してステップS75へ進む。ステップS75において、カメラ制御部230は、画像信号処理部270aに対し、撮像素子260から出力された撮像用画素信号に所定の画像処理を行わせ、記録用の画像を生成させる。これにより、画像信号処理部270aが所定の画像処理を行って記録用の画像を生成する。 In step S70, the camera control unit 230 reads out the signal from the imaging element 260 to the signal processing unit 270, and proceeds to step S75. In step S75, the camera control unit 230 causes the image signal processing unit 270a to perform a predetermined image processing on the imaging pixel signal output from the imaging element 260, and generate an image for recording. As a result, the image signal processing unit 270a performs the predetermined image processing to generate an image for recording.

ステップS80において、カメラ制御部230は画像表示を行う。すなわち、カメラ制御部230は、ステップS75で画像処理された画像を確認画像として表示部290に表示させる。
ステップS85において、カメラ制御部230は、画像信号処理部270aで処理された画像のファイルを不図示の記録ユニットに記録させる。
In step S80, the camera control unit 230 performs image display. That is, the camera control unit 230 causes the display unit 290 to display the image processed in step S75 as a confirmation image.
In step S85, the camera control unit 230 causes the file of the image processed by the image signal processing unit 270a to be recorded in a recording unit (not shown).

ステップS90において、カメラ制御部230は一連の処理を終了するか否かを判定する。カメラ制御部230は、例えばメインスイッチがオフ操作された場合に、ステップS90を肯定判定して図2による処理を終了する。カメラ制御部230は、図2による処理を終了しないでカメラ動作を継続する場合にはステップS90を否定判定してステップS10へ戻る。 In step S90, the camera control unit 230 determines whether or not to end the series of processes. For example, if the main switch is turned off, the camera control unit 230 makes a positive judgment in step S90 and ends the process in FIG. 2. If the camera control unit 230 does not want to end the process in FIG. 2 and wants to continue the camera operation, it makes a negative judgment in step S90 and returns to step S10.

なお、表示処理(S80)と記録処理(S85)は、処理の順番を入れ替えてもよいし、並行して行ってもよい。
また、図2の例では、ライブビュー表示(S25)が行われた後のAF演算(S30)でデフォーカス量の算出を行うが、露出演算(S20)と並行してAF演算(S30)、レンズ移動可否設定(S40)を行い、ステップS45で半押し操作がなされた後に、フォーカスレンズ361の駆動を交換レンズ3へ指示(S50)してもよい。
さらにまた、ライブビュー画像の各コマが取得されるごとに、露出演算(S20)と並行して、AF演算(S30)、レンズ移動可否設定(S40)、およびフォーカスレンズ361の駆動指示(S50)を行う構成にしても良い。
The display process (S80) and the recording process (S85) may be performed in a different order, or may be performed in parallel.
Also, in the example of Figure 2, the defocus amount is calculated in the AF calculation (S30) after the live view display (S25) is performed, but the AF calculation (S30) and lens movement enable/disable setting (S40) may be performed in parallel with the exposure calculation (S20), and after a half-press operation is performed in step S45, an instruction to drive the focus lens 361 may be given to the interchangeable lens 3 (S50).
Furthermore, each time a frame of a live view image is captured, AF calculation (S30), lens movement enable/disable setting (S40), and drive instructions for the focus lens 361 (S50) may be performed in parallel with the exposure calculation (S20).

<フォーカスポイント>
AF演算(S30)で用いられるフォーカスポイントについて説明する。
図3は、カメラボディ2の撮像素子260によって撮像される撮影範囲50を例示する図である。本実施の形態では、撮影範囲50に予め複数(例えば135点)のフォーカスポイントPが設けられており、図3では表示部290に表示されたライブビュー画像に重ねて、135点のフォーカスポイントPが表示されている。フォーカスポイントPは、撮影範囲50においてAF演算の対象となる位置を示し、焦点検出エリア、焦点検出位置、測距点とも称される。
なお、図示したフォーカスポイントPの数と撮影範囲50における位置は一例に過ぎず、図3の態様に限定されるものではない。
<Focus point>
The focus points used in the AF calculation (S30) will be described.
Fig. 3 is a diagram illustrating an example of a shooting range 50 imaged by the image sensor 260 of the camera body 2. In this embodiment, a plurality of (e.g., 135) focus points P are provided in advance in the shooting range 50, and in Fig. 3, the 135 focus points P are displayed superimposed on a live view image displayed on the display unit 290. The focus points P indicate positions in the shooting range 50 that are subject to AF calculation, and are also referred to as focus detection areas, focus detection positions, or distance measurement points.
It should be noted that the number of focus points P and their positions in the photographing range 50 shown in the figure are merely an example, and are not limited to the embodiment shown in FIG.

AF信号処理部270bがデフォーカス量の算出に用いるフォーカスポイントP、換言すると、AF演算の対象となるフォーカスポイントPは、全てのフォーカスポイントPの中から自動で選択することも、ユーザの操作によって指示されたフォーカスポイントPを選択することも可能である。本実施の形態では、全てのフォーカスポイントPの中からデフォーカス量の算出に用いるフォーカスポイントPを選択する選択方法の総称を、「AFエリアモード」と称する。 The focus point P that the AF signal processor 270b uses to calculate the defocus amount, in other words, the focus point P that is the subject of the AF calculation, can be automatically selected from among all focus points P, or can be selected from a focus point P designated by a user operation. In this embodiment, the selection method for selecting the focus point P to be used to calculate the defocus amount from among all focus points P is collectively referred to as the "AF area mode."

「AFエリアモード」には、ユーザの操作によって選ばれた1つのフォーカスポイントPだけを採用する「シングルポイントAF」、シングルポイントAFよりも広い範囲の複数のフォーカスポイントPを採用する「ワイドエリアAF」、全てのフォーカスポイントPが配置されている範囲から、カメラ制御部230が被写体を検出して、その被写体の範囲に位置するフォーカスポイントPを採用する「オートエリアAF」などが含まれる。「AFエリアモード」の切替えは、例えば、操作メニュー画面の中からユーザ操作によって選ぶことができる。 The "AF area modes" include "single-point AF", which uses only one focus point P selected by user operation, "wide-area AF", which uses multiple focus points P in a wider range than single-point AF, and "auto-area AF", in which the camera control unit 230 detects a subject from the range in which all focus points P are located and uses the focus point P located within the range of that subject. The "AF area mode" can be switched by the user's operation, for example, from the operation menu screen.

<AF演算>
AF演算(S30)を概説すると以下の通りである。AF信号処理部270bは、焦点検出用の光電変換部からの焦点検出用画素信号に基づいて、交換レンズ3を通過した光束により形成された被写体の像の位置と、カメラボディ2の撮像素子260の撮像面260Sの位置との光軸O方向のずれ量であるデフォーカス量を、AF演算によって算出する。AF信号処理部270bがAF演算に用いる焦点検出用画素信号は、撮像素子260の撮像面260S上において、上記「AFエリアモード」の切替えに従って採用されているフォーカスポイント(例えばP1)に対応する位置に配置された焦点検出用の光電変換部から出力された焦点検出用画素信号である。
<AF Calculation>
The AF calculation (S30) can be generally described as follows. The AF signal processing unit 270b calculates, by AF calculation, a defocus amount, which is the amount of deviation in the optical axis O direction between the position of the subject image formed by the light beam that has passed through the interchangeable lens 3 and the position of the imaging surface 260S of the image sensor 260 of the camera body 2, based on a focus detection pixel signal from a focus detection photoelectric conversion unit. The focus detection pixel signal used by the AF signal processing unit 270b for the AF calculation is a focus detection pixel signal output from a focus detection photoelectric conversion unit that is arranged on the imaging surface 260S of the image sensor 260 at a position corresponding to the focus point (e.g., P1) that is adopted in accordance with the switching of the above-mentioned "AF area mode."

AF信号処理部270bは、交換レンズ3の異なる領域(瞳)を通過した一組の光束による被写体の像の像ずれ量(位相差)をフォーカスポイントPごとに検出することができ、フォーカスポイントPごとにデフォーカス量を算出することができる。このような瞳分割位相差方式によるデフォーカス量演算は、カメラの分野において公知である。
焦点検出部230aは、AF信号処理部270bで算出されたデフォーカス量に基づき、フォーカスレンズ361の光軸O方向の駆動量を算出する。
The AF signal processing unit 270b can detect the amount of image shift (phase difference) of the subject image caused by a pair of light beams that have passed through different regions (pupils) of the interchangeable lens 3 for each focus point P, and can calculate the amount of defocus for each focus point P. Such defocus amount calculation using the pupil division phase difference method is well known in the field of cameras.
The focus detection unit 230a calculates the amount of drive of the focus lens 361 in the optical axis O direction based on the defocus amount calculated by the AF signal processing unit 270b.

本実施の形態では、レリーズボタンが半押し操作されたタイミングで交換レンズ3がフォーカスレンズ361を合焦駆動させる。具体的には、レリーズボタンが半押し操作されると、焦点検出部230aで算出された駆動量に対応するフォーカスレンズ361の駆動信号を、カメラ制御部230がボディ通信部240から交換レンズ3へ送信させる。交換レンズ3がボディ通信部240から送信された駆動信号に従ってフォーカスレンズ361を移動させることで、フォーカスポイントP1に対応する領域に存在する被写体の像の位置を撮像素子260の撮像面260Sの位置に合わせるように、合焦駆動が行われる。 In this embodiment, the interchangeable lens 3 drives the focus lens 361 to focus when the release button is pressed halfway. Specifically, when the release button is pressed halfway, the camera control unit 230 causes the body communication unit 240 to transmit a drive signal for the focus lens 361 corresponding to the drive amount calculated by the focus detection unit 230a to the interchangeable lens 3. The interchangeable lens 3 moves the focus lens 361 in accordance with the drive signal transmitted from the body communication unit 240, thereby performing focus drive so that the position of the image of the subject present in the area corresponding to the focus point P1 is aligned with the position of the imaging surface 260S of the image sensor 260.

カメラ制御部230は、合焦駆動を行ったことをユーザに視覚的に知らせることができる。具体的には、カメラ制御部230は、フォーカスレンズ361の駆動信号を交換レンズ3へ送信させた場合に、採用されているフォーカスポイントP1を示す表示(AF枠と称する)を、表示部290に表示されているライブビュー画像に重ねて所定時間点灯表示させる。図3の例は、フォーカスポイントP1を示すAF枠が、表示部290に表示されている状態を示す。 The camera control unit 230 can visually inform the user that focus driving has been performed. Specifically, when the camera control unit 230 transmits a drive signal for the focus lens 361 to the interchangeable lens 3, it causes a display (called an AF frame) indicating the focus point P1 being used to be displayed and lit for a predetermined period of time, superimposed on the live view image displayed on the display unit 290. The example in FIG. 3 shows a state in which the AF frame indicating the focus point P1 is displayed on the display unit 290.

<レンズ移動可否設定>
上述した一連のカメラ動作の中で行われる、レンズ移動可否設定(S40)について、図4~図7を参照して説明する。図4(a)、図4(b)は、レンズ移動可否設定(S40)で使用されるヒストグラムを例示する模式図であり、図4(a)は、図3のフォーカスポイントP1に対応する撮像用画素信号を用いて生成されたヒストグラム、図4(b)は、図3のフォーカスポイントP2に対応する撮像用画素信号を用いて生成されたヒストグラムである。
生成部230dは、撮像素子260から出力された撮像用画素信号のうち、採用されているフォーカスポイントPに対応する撮像用画素信号を用いて、以下の手順でヒストグラムを生成する。
<Lens movement setting>
The lens movement enable/disable setting (S40) performed in the series of camera operations described above will be described with reference to Figures 4 to 7. Figures 4(a) and 4(b) are schematic diagrams illustrating histograms used in the lens movement enable/disable setting (S40), where Figure 4(a) is a histogram generated using imaging pixel signals corresponding to focus point P1 in Figure 3, and Figure 4(b) is a histogram generated using imaging pixel signals corresponding to focus point P2 in Figure 3.
The generation section 230d generates a histogram using the imaging pixel signals corresponding to the adopted focus point P, among the imaging pixel signals output from the image sensor 260, in the following procedure.

手順(1)
生成部230dは、採用されているフォーカスポイントPに対応する撮像用画素信号を取得する。信号値が8ビットで表されている場合、撮像用画素信号の信号値は0から255で表される。フォーカスポイントPに対応する撮像用画素信号の数は、フォーカスポイントPの範囲が大きいほど多くなり、フォーカスポイントPの範囲が小さいほど少なくなる。
Step (1)
The generation unit 230d acquires imaging pixel signals corresponding to the adopted focus point P. When the signal value is represented in 8 bits, the signal value of the imaging pixel signal is represented by 0 to 255. The number of imaging pixel signals corresponding to the focus point P increases as the range of the focus point P increases, and decreases as the range of the focus point P decreases.

手順(2)
生成部230dは、条件設定部230cで設定されるヒストグラムの生成条件に基づき、取得した撮像用画素信号を複数の階級に分ける。例えば、撮像用画素信号の信号値が0から255であり、条件設定部230cによって階級の幅が18に設定される場合の階級数は14である。条件設定部230cは、階級数(階級の幅)を適宜変更することができる。
Step (2)
The generation section 230d divides the acquired imaging pixel signals into a plurality of classes based on the histogram generation conditions set by the condition setting section 230c. For example, when the signal values of the imaging pixel signals range from 0 to 255 and the class width is set to 18 by the condition setting section 230c, the number of classes is 14. The condition setting section 230c can change the number of classes (class width) as appropriate.

手順(3)
生成部230dは、各階級に含まれる撮像用画素信号の数を度数として、度数分布を示す柱状図(ヒストグラム)を生成する。なお、図4(a)、図4(b)は説明のために例示したものであり、図4(a)、図4(b)のような柱状図を実際に生成しなくても、柱状図の生成に必要なデータが生成されていればよい。
Step (3)
The generation unit 230d generates a histogram showing the frequency distribution, with the number of imaging pixel signals included in each class being the frequency. Note that Figures 4(a) and 4(b) are shown as examples for the purpose of explanation, and it is sufficient if data necessary for generating the histogram is generated, even if the histograms shown in Figures 4(a) and 4(b) are not actually generated.

<ヒストグラムの形状と被写体の像の構造情報の有無>
本実施の形態では、被写体の像に被写体の構造物(単に構造ともいう)を示す輪郭や模様等で示される所定の構造情報を含んでおり、AF演算に必要な情報が得られる場合、実施形態ではデフォーカス量が演算される場合を、上記被写体の像に構造情報が有るという。反対に、被写体の輪郭や模様等が現れておらず、AF演算に必要な情報が得られない、または不足している場合、実施形態ではデフォーカス量が演算されない場合を、上記被写体の像に構造情報が無いという。
<Histogram shape and presence or absence of structural information in the subject image>
In this embodiment, when the subject image contains predetermined structural information indicated by contours, patterns, etc. indicating the structure of the subject (also simply referred to as structure), and when information necessary for AF calculation is obtained, and in this embodiment, the defocus amount is calculated, it is said that the subject image has structural information. Conversely, when the subject's contours, patterns, etc. are not present and information necessary for AF calculation is not obtained or is insufficient, and in this embodiment, the defocus amount is not calculated, it is said that the subject image does not have structural information.

一般に、デフォーカス量が大きい(焦点が大きく外れている)、すなわち、被写体の像が大きくぼけていると、被写体の像に構造情報があるか否かの判定が難しくなる。本実施の形態では、このように被写体の像に構造情報があるか否かの判定が難しい場合において、撮像用画素信号から生成したヒストグラムに基づいて被写体の像の構造情報の有無を判定する。
上記ヒストグラムに基づいて行う被写体の像の構造情報の有無の判定は、以下の2つの考え方に基づく。
(i)被写体の像に構造情報がない場合は、図4(b)に例示するように、ヒストグラムのほぼ1つの階級に信号値が集中する(ヒストグラムの形状のピークがほぼ1つ)。
(ii)デフォーカス量が大きく、かつ、被写体の像に構造情報がある場合は、図4(a)に例示するように、ヒストグラムの複数の階級に信号値が分かれてヒストグラムの形状がブロード状(複数の階級に広がる)になる。
In general, when the defocus amount is large (the image is significantly out of focus), that is, when the image of the subject is significantly blurred, it becomes difficult to determine whether or not the image of the subject has structural information. In this embodiment, when it is difficult to determine whether or not the image of the subject has structural information, the presence or absence of structural information in the image of the subject is determined based on a histogram generated from the imaging pixel signals.
The determination of the presence or absence of structural information in the subject image, which is made based on the histogram, is based on the following two concepts.
(i) When there is no structural information in the subject image, the signal values are concentrated in approximately one class of the histogram (the histogram shape has approximately one peak), as shown in the example of FIG. 4(b).
(ii) When the defocus amount is large and the subject image contains structural information, the signal values are divided into multiple classes in the histogram, and the shape of the histogram becomes broad (spread across multiple classes), as shown in FIG. 4( a).

<被写体の像の構造情報の有無を判定する>
構造判定部230eは、生成部230dで生成されたヒストグラムに基づき、以下の2つの判定条件を満たすか否かによって被写体の像の構造情報の有無を判定する。
判定条件(1)
判定条件(1)は、ヒストグラムにおける第1のピークと、第2のピークとの比率が第1閾値(例えば10倍)より大きく、第1のピークが格段に大きいか否か、換言するといわゆるダントツであるか否かを判定するものである。第1のピークとは、度数が1番目に多い階級の度数のことであり、第2のピークとは、度数が2番目に多い階級の度数のことをいう。
<Determining the presence or absence of structural information in the image of the subject>
The structure determination section 230e determines the presence or absence of structural information of the subject image based on the histogram generated by the generation section 230d, depending on whether or not the following two determination conditions are satisfied.
Judgment condition (1)
The judgment condition (1) is to judge whether the ratio of the first peak to the second peak in the histogram is greater than a first threshold value (e.g., 10 times) and whether the first peak is remarkably greater, in other words, whether it is far superior. The first peak refers to the frequency of the class with the highest frequency, and the second peak refers to the frequency of the class with the second highest frequency.

判定条件(2)
判定条件(2)は、ヒストグラムにおいて、第1のピークの階級を除く第2のピーク以下の階級の度数の和の割合が、全体の度数の中で第2閾値(例えば10%)よりも小さい。換言すると、第1のピークの階級の度数が全体の90%を超えるか否かを判定するものである。
構造判定部230eは、判定条件(1)および判定条件(2)を同時に満たす場合に被写体の像に構造情報が無いと判定し、判定条件(1)および判定条件(2)のいずれか1つを満たさない場合には被写体の像に構造情報が有ると判定する。
Judgment condition (2)
The judgment condition (2) is that the ratio of the sum of the frequencies of the classes below the second peak, excluding the class of the first peak, in the histogram to the total frequency is smaller than a second threshold (e.g., 10%). In other words, it is judged whether the frequency of the class of the first peak exceeds 90% of the total.
The structure determination unit 230e determines that the subject image does not have structural information if the determination conditions (1) and (2) are simultaneously satisfied, and determines that the subject image has structural information if either the determination condition (1) or the determination condition (2) is not satisfied.

<判定を複数回行う>
本実施の形態では、被写体の像の構造情報の有無の誤判定を避けるために、異なる設定条件の下で生成した複数のヒストグラムに基づき、構造判定部230eで被写体の像の構造情報の有無の判定を複数回行う。構造判定部230eで複数回の判定を行った結果、いずれの判定結果も被写体の像の構造情報無しであると、移動可否設定部230bは構造判定部230eで「被写体の像の構造情報無し」が判定されていると判断する。
一方、構造判定部230eで被写体の像の構造情報の有無の判定を複数回行った結果、少なくとも1回、被写体の像の構造情報有りが判定されると、移動可否設定部230bは構造判定部230eで「被写体の像の構造情報有り」が判定されていると判断する。
<Make multiple judgments>
In this embodiment, in order to avoid erroneous determination of the presence or absence of structural information of the subject image, the structure determination unit 230e determines the presence or absence of structural information of the subject image multiple times based on multiple histograms generated under different setting conditions. If the result of multiple determinations by the structure determination unit 230e is that there is no structural information of the subject image, the movement permission setting unit 230b determines that the structure determination unit 230e has determined that "there is no structural information of the subject image."
On the other hand, if the structure determination unit 230e determines whether or not there is structural information on the subject image multiple times and determines that there is structural information on the subject image at least once, the movement feasibility setting unit 230b determines that the structure determination unit 230e has determined that "structural information on the subject image is present."

<ヒストグラムを生成する設定条件>
条件設定部230cは、ヒストグラムを生成する条件として、次の3つの条件を設定することができる。
設定条件(1)
条件設定部230cは、ヒストグラムの生成に使用する色を設定する。一般に、撮像素子260の光電変換部には、カラーフィルタが設けられている。カラーフィルタは、入射した光のうち第1の波長域(赤(R))の光を分光する分光特性を有するカラーフィルタと、入射した光のうち第2の波長域(緑(G))の光を分光する分光特性を有するカラーフィルタと、入射した光のうち第3の波長域(青(B))の光を分光する分光特性を有するカラーフィルタとのいずれかが設けられる。
生成部230dは、採用されているフォーカスポイントPに対応する撮像用画素信号のうち、条件設定部230cで設定された色、例えば緑(G)のカラーフィルタが設けられた光電変換部で生成された電荷に基づく撮像用画素信号を用いて、ヒストグラムを生成する。
<Conditions for generating a histogram>
The condition setting unit 230c can set the following three conditions as conditions for generating a histogram.
Setting condition (1)
The condition setting unit 230c sets the colors used to generate the histogram. In general, the photoelectric conversion unit of the image sensor 260 is provided with a color filter. The color filter is any one of a color filter having a spectral characteristic of separating light in a first wavelength range (red (R)) of the incident light, a color filter having a spectral characteristic of separating light in a second wavelength range (green (G)) of the incident light, and a color filter having a spectral characteristic of separating light in a third wavelength range (blue (B)) of the incident light.
The generation unit 230d generates a histogram using imaging pixel signals corresponding to the focus point P being adopted, which are based on charges generated by a photoelectric conversion unit provided with a color filter of the color set by the condition setting unit 230c, for example, green (G).

設定条件(2)
条件設定部230cは、ヒストグラムを生成する階級数(階級の幅)を設定する。図5(a)は、階級数(階級の幅)による度数分布の違いを例示する模式図である。図5(a)によると、下段に比べて上段の階級の幅が狭い。一般に、階級数が多過ぎる(階級の幅が狭過ぎる)と、ヒストグラムのピークがばらけてヒストグラムの特徴が現れにくい。反対に、階級数が少な過ぎてもヒストグラムのピークが現れにくい。
条件設定部230cは、例えば、階級数が概ね10から15になるように階級の幅を設定する。
Setting condition (2)
The condition setting unit 230c sets the number of classes (class width) for generating a histogram. Fig. 5(a) is a schematic diagram illustrating the difference in frequency distribution depending on the number of classes (class width). As shown in Fig. 5(a), the class width is narrower in the upper section than in the lower section. In general, if there are too many classes (the class width is too narrow), the peaks of the histogram are scattered and the characteristics of the histogram are difficult to see. Conversely, if there are too few classes, the peaks of the histogram are difficult to see.
The condition setting unit 230c sets the width of the classes so that the number of classes is approximately 10 to 15, for example.

設定条件(3)
条件設定部230cは、階級の境界のシフト量を設定する。シフトとは、階級の幅を変えずに階級の境界をずらすことをいう。図5(b)は、シフト量による度数分布の違いを例示する模式図である。図5(b)によると、下段に比べて上段の階級の境界が、階級の幅の半分だけシフトしている。換言すると、シフト量は階級の幅の1/2である。階級の境界のシフト量は、階級の境界の位相とも称する。
Setting condition (3)
The condition setting unit 230c sets the shift amount of the class boundary. Shifting refers to shifting the class boundary without changing the class width. Fig. 5(b) is a schematic diagram illustrating the difference in frequency distribution depending on the shift amount. According to Fig. 5(b), the class boundary in the upper section is shifted by half the class width compared to the lower section. In other words, the shift amount is 1/2 the class width. The shift amount of the class boundary is also called the phase of the class boundary.

<フローチャートの説明>
図6は、上述したフォーカスレンズ361の移動可否を設定する処理(S40)の流れを説明するフローチャートである。
カメラ制御部230は、図2のステップS40として、図6のフローチャートによる処理を開始させる。
<Explanation of the Flowchart>
FIG. 6 is a flowchart illustrating the flow of the process (S40) for setting whether or not the focus lens 361 can be moved.
The camera control unit 230 starts the process according to the flowchart of FIG. 6 as step S40 of FIG.

カメラ制御部230の移動可否設定部230bは、ステップS410において、採用されているフォーカスポイントPにおけるデフォーカス量を算出したか否かを判定する。一般に、被写体の像の輪郭や模様等が現れていると、AF信号処理部270bで上記被写体の像の像ずれ量(位相差)を検出することができ、検出した位相差に基づいてデフォーカス量を算出することができる。そのため、移動可否設定部230bは、AF信号処理部270bでデフォーカス量が算出された場合にはステップS410を肯定判定し、ステップS540へ進む。ステップS540へ進む場合は、デフォーカス量を算出できているので被写体の像の構造情報の有無を判定する必要がない。移動可否設定部230bは、ステップS540において、デフォーカス量に基づいたフォーカスレンズ361の移動可を示すフラグをセットして図6による処理を終了する。このフラグは、上述したとおり、焦点調節動作のレンズ移動可を表す。 In step S410, the movement permission setting unit 230b of the camera control unit 230 judges whether the defocus amount at the adopted focus point P has been calculated. In general, when the contour or pattern of the image of the subject appears, the AF signal processing unit 270b can detect the image shift amount (phase difference) of the image of the subject, and the defocus amount can be calculated based on the detected phase difference. Therefore, if the AF signal processing unit 270b has calculated the defocus amount, the movement permission setting unit 230b judges step S410 as positive and proceeds to step S540. If the process proceeds to step S540, it is not necessary to judge whether or not there is structural information of the image of the subject because the defocus amount has been calculated. In step S540, the movement permission setting unit 230b sets a flag indicating that the focus lens 361 can be moved based on the defocus amount, and ends the process in FIG. 6. As described above, this flag indicates whether the lens can be moved in the focus adjustment operation.

一方で、移動可否設定部230bは、AF信号処理部270bでデフォーカス量が算出されなかった場合はステップS410を否定判定し、ステップS420へ進む。ステップS420へ進む場合は、被写体に構造情報があるにもかかわらずデフォーカス量を算出できないほどに被写体の像が大きくぼけているのか、被写体に構造情報がないのかのいずれかであるため、両者を切り分けるためにステップS420以降の処理を行う。 On the other hand, if the AF signal processing unit 270b has not calculated the defocus amount, the movement permission setting unit 230b makes a negative judgment in step S410 and proceeds to step S420. If the process proceeds to step S420, either the image of the subject is so blurred that the defocus amount cannot be calculated despite the subject having structural information, or the subject does not have structural information, so the process from step S420 onwards is carried out to distinguish between the two cases.

カメラ制御部230の条件設定部230cは、ステップS420において、上述した設定条件(1)として、ヒストグラムの生成に使用する色を設定する。条件設定部230cは、例えば1回目に設定する色を緑、2回目に設定する色を青、3回目に設定する色を赤に、予め決めておく。本実施の形態では、色を変えて生成した複数のヒストグラムに基づき、被写体の像の構造情報の有無の判定を複数回行うことを「色スキャン」と称する。 In step S420, the condition setting unit 230c of the camera control unit 230 sets the colors to be used in generating the histogram as the above-mentioned setting condition (1). The condition setting unit 230c predetermines, for example, that the color to be set the first time is green, the color to be set the second time is blue, and the color to be set the third time is red. In this embodiment, the determination of the presence or absence of structural information of the subject image multiple times based on multiple histograms generated with different colors is referred to as a "color scan."

カメラ制御部230の条件設定部230cは、ステップS430において、上述した設定条件(2)として、ヒストグラムの生成に使用する階級を設定する。条件設定部230cは、例えば1回目に設定する階級、2回目に設定する階級、3回目に設定する階級を予め決めておく。本実施の形態では、階級を変えて生成した複数のヒストグラムに基づき、被写体の像の構造情報の有無の判定を複数回行うことを「階級スキャン」と称する。 In step S430, the condition setting unit 230c of the camera control unit 230 sets the class to be used in generating the histogram as the above-mentioned setting condition (2). The condition setting unit 230c predetermines, for example, the class to be set the first time, the class to be set the second time, and the class to be set the third time. In this embodiment, the determination of the presence or absence of structural information of the subject image multiple times based on multiple histograms generated with different classes is referred to as a "class scan."

カメラ制御部230の条件設定部230cは、ステップS440において、上述した設定条件(3)として、ヒストグラムの生成に使用する階級の境界の位相を設定する。条件設定部230cは、例えば1回目に設定する位相(上記シフト量)をゼロとし、2回目に設定する位相(上記シフト量)を階級の幅の1/2に予め決めておく。これにより、1回目の設定では階級の境界ずらしを行わず、2回目の設定では1回目に比べて階級の幅の1/2だけ階級の境界ずらしを行う。
本実施の形態では、位相を変えて生成した複数のヒストグラムに基づき、被写体の像の構造情報の有無の判定を複数回行うことを「位相スキャン」と称する。
なお、「色スキャン」、「階級スキャン」、「位相スキャン」における構造情報の有無を検出する画像は、ステップS410のAF演算で使用した画像と同じ画像である。
In step S440, the condition setting unit 230c of the camera control unit 230 sets the phase of the class boundary used to generate the histogram as the above-mentioned setting condition (3). The condition setting unit 230c predetermines, for example, that the phase (amount of shift) to be set the first time is zero, and the phase (amount of shift) to be set the second time is 1/2 the class width. As a result, the class boundary is not shifted in the first setting, and the class boundary is shifted by 1/2 the class width compared to the first setting in the second setting.
In this embodiment, the determination of the presence or absence of structural information of the subject image based on a plurality of histograms generated with different phases is referred to as a "phase scan."
The images used to detect the presence or absence of structural information in the "color scan,""classscan," and "phase scan" are the same images used in the AF calculation in step S410.

カメラ制御部230の構造判定部230eは、ステップS450において、生成部230dで生成されるヒストグラムに基づいて、判定処理を行う。ステップS450の構造判定処理は、上述したように、異なる設定条件の下で生成される複数のヒストグラムに対して複数回行われる。ステップS450の判定結果は、被写体の像に構造情報が有る、構造情報が無いの2通りであり、前者の場合は構造有無フラグに1が設定され、後者の場合は構造有無フラグにゼロ(0)が設定される。
ステップS450の詳細は図7を参照して後で詳細に説明する。
In step S450, the structure determination unit 230e of the camera control unit 230 performs a determination process based on the histogram generated by the generation unit 230d. As described above, the structure determination process in step S450 is performed multiple times for multiple histograms generated under different setting conditions. The determination result in step S450 is either that the subject image has structural information or that the subject image does not have structural information. In the former case, the structure presence/absence flag is set to 1, and in the latter case, the structure presence/absence flag is set to zero (0).
The details of step S450 will be described later with reference to FIG.

カメラ制御部230の移動可否設定部230bは、ステップS460において、構造判定部230eで被写体の像の構造情報有り判定がなされたか否か、すなわち構造有無フラグが1か否かを判定する。移動可否設定部230bは、直近のヒストグラムを用いた構造判定処理(S450)で被写体の像の構造情報有りが判定されてフラグに1が設定されている場合、ステップS460を肯定判定してステップS470へ進む。そして、移動可否設定部230bは、スキャン動作のレンズ移動可のフラグを設定して図6による処理を終了する。 In step S460, the movement permission setting unit 230b of the camera control unit 230 determines whether the structure determination unit 230e has determined that there is structural information on the subject image, i.e., whether the structure presence/absence flag is 1. If the structure determination process (S450) using the most recent histogram has determined that there is structural information on the subject image and the flag is set to 1, the movement permission setting unit 230b makes a positive judgment in step S460 and proceeds to step S470. The movement permission setting unit 230b then sets a flag indicating that the lens can be moved for the scan operation, and ends the processing in FIG. 6.

一方、移動可否設定部230bは、直近のヒストグラムを用いた構造判定処理(S450)で被写体の像の構造情報無しが判定された場合、すなわち、構造有無フラグにゼロが設定されている場合、異なる設定条件の下でヒストグラムを生成させるため、ステップS460を否定判定してステップS480へ進む。条件設定部230cは、ステップS480において、ヒストグラムの生成に使用する階級の境界の位相をずらして設定する。上述したように、条件設定部230cは、ステップS440で設定した位相(シフト量)に比べて、階級の幅の1/2だけ階級の境界をずらす。 On the other hand, if the structure determination process (S450) using the most recent histogram determines that there is no structural information about the subject image, i.e., if the structure presence/absence flag is set to zero, the movement possibility setting unit 230b makes a negative determination in step S460 and proceeds to step S480 in order to generate a histogram under different setting conditions. In step S480, the condition setting unit 230c shifts the phase of the class boundaries used to generate the histogram. As described above, the condition setting unit 230c shifts the class boundaries by 1/2 the class width compared to the phase (shift amount) set in step S440.

カメラ制御部230の構造判定部230eは、ステップS490において、位相ずらし後に生成部230dで生成されるヒストグラムに基づいて、被写体の像の構造判定処理を行う。構造判定の処理は、ステップS450と同様なので説明を省略する。構造有無判定結果はステップS450と同様に、フラグに1を設定するか、ゼロを設定するかで表される。 In step S490, the structure determination unit 230e of the camera control unit 230 performs structure determination processing of the subject image based on the histogram generated by the generation unit 230d after phase shifting. The structure determination processing is similar to step S450, so a description thereof will be omitted. As in step S450, the result of the structure presence/absence determination is represented by setting the flag to 1 or 0.

カメラ制御部230の移動可否設定部230bは、ステップS500において、構造判定部230eで被写体の像の構造情報有り判定がなされたか否かを判定する。移動可否設定部230bは、直近のヒストグラムを用いた構造判定処理(S490)で被写体の像の構造情報有りが判定された場合、換言すると構造有無フラグに1が設定されている場合、ステップS500を肯定判定してステップS470へ進む。そして、移動可否設定部230bは、スキャン動作のレンズ移動可フラグを設定して図6による処理を終了する。 In step S500, the movement permission setting unit 230b of the camera control unit 230 judges whether or not the structure determination unit 230e has determined that there is structural information on the subject image. If the structure determination process (S490) using the most recent histogram determines that there is structural information on the subject image, in other words, if the structure presence/absence flag is set to 1, the movement permission setting unit 230b judges step S500 to be positive and proceeds to step S470. Then, the movement permission setting unit 230b sets the lens movement permission flag for the scan operation and ends the processing in FIG. 6.

一方、移動可否設定部230bは、直近のヒストグラムを用いた構造判定処理(S490)で被写体の像の構造無しが判定された場合、すなわち構造有無フラグにゼロが設定されている場合、異なる設定条件の下でヒストグラムを生成させるため、ステップS500を否定判定してステップS510へ進む。条件設定部230cは、ステップS510において、「階級スキャン」が済んでいるか否かを判定する。条件設定部230cは、予め定められた階級を設定済みの場合にステップS510を肯定判定してステップS520へ進み、予め定められた階級を設定していない場合、前回に設定した階級と異なる階級を設定するためにステップS510を否定判定してステップS430へ戻る。ステップS430へ戻った場合、上述した処理を繰り返す。 On the other hand, if the structure determination process (S490) using the most recent histogram determines that the subject image has no structure, i.e., if the structure presence/absence flag is set to zero, the movement possibility setting unit 230b makes a negative judgment at step S500 and proceeds to step S510 in order to generate a histogram under different set conditions. In step S510, the condition setting unit 230c determines whether a "class scan" has been completed. If a predetermined class has been set, the condition setting unit 230c makes a positive judgment at step S510 and proceeds to step S520, and if a predetermined class has not been set, the condition setting unit 230c makes a negative judgment at step S510 and returns to step S430 in order to set a class different from the class set previously. If the process returns to step S430, the above-mentioned process is repeated.

条件設定部230cは、ステップS520において、「色スキャン」が済んでいるか否かを判定する。条件設定部230cは、予め定められた色を設定済みの場合にステップS520を肯定判定してステップS530へ進み、予め定められた色を設定していない場合、前回に設定した色と異なる色を設定するためにステップS520を否定判定してステップS420へ戻る。ステップS420へ戻った場合、上述した処理を繰り返す。 In step S520, the condition setting unit 230c determines whether or not a "color scan" has been completed. If a predetermined color has been set, the condition setting unit 230c makes a positive judgment at step S520 and proceeds to step S530. If a predetermined color has not been set, the condition setting unit 230c makes a negative judgment at step S520 and returns to step S420 in order to set a color different from the color previously set. If the condition setting unit 230c returns to step S420, the above-mentioned process is repeated.

ステップS530へ進む場合は、構造判定部230eで複数回の判定が行われた結果、全ての回の判定で被写体の像の構造情報無しが判定されている。そのため、移動可否設定部230bは、ステップS530においてスキャン動作のレンズ移動否のフラグを設定して図6による処理を終了する。 When proceeding to step S530, the structure determination unit 230e has performed multiple determinations, and as a result, it has been determined that there is no structural information on the subject image in all determinations. Therefore, the movement permission setting unit 230b sets a flag indicating that the lens should not be moved in the scanning operation in step S530, and ends the processing in FIG. 6.

図7は、ヒストグラムを用いた構造判定処理(S450)の流れを説明するフローチャートである。カメラ制御部230は、図6のステップS450として、図7のフローチャートによる処理を開始させる。
カメラ制御部230の生成部230dは、ステップS451において、条件設定部230cで設定されている上記設定条件(1)-(3)に従い、採用されているフォーカスポイントPに対応する撮像用画素信号を用いてヒストグラムを生成する。
7 is a flowchart for explaining the flow of the structure determination process (S450) using a histogram. The camera control unit 230 starts the process according to the flowchart in FIG.
In step S451, the generation unit 230d of the camera control unit 230 generates a histogram using the imaging pixel signals corresponding to the adopted focus point P in accordance with the above-mentioned setting conditions (1)-(3) set in the condition setting unit 230c.

カメラ制御部230の構造判定部230eは、ステップS452において、ヒストグラムから第1のピークと第2のピークとを検出する。
構造判定部230eは、ステップS453において、ヒストグラムにおける第1のピークと、第2のピークとの比率が第1閾値(例えば10倍)以上、すなわち上述した判定条件(1)を満たすか否かを判定する。構造判定部230eは、判定条件(1)を満たす場合にステップS453を肯定判定してステップS454へ進み、判定条件(1)を満たさない場合にはステップS453を否定判定してステップS457へ進む。
In step S452, the structure determination unit 230e of the camera control unit 230 detects a first peak and a second peak from the histogram.
In step S453, the structure determination unit 230e determines whether the ratio between the first peak and the second peak in the histogram is equal to or greater than a first threshold value (e.g., 10 times), i.e., whether the above-mentioned determination condition (1) is satisfied. If the determination condition (1) is satisfied, the structure determination unit 230e makes an affirmative determination in step S453 and proceeds to step S454, and if the determination condition (1) is not satisfied, the structure determination unit 230e makes a negative determination in step S453 and proceeds to step S457.

ステップS457へ進む場合は、デフォーカス量が大きいことによって被写体の輪郭や模様等が消失している状態に相当する。構造判定部230eは、ステップS457において、被写体の像の構造情報有りと認識して構造有無フラグに1を設定して図7による処理を終了する。 When the process proceeds to step S457, this corresponds to a state in which the outline or pattern of the subject has disappeared due to a large amount of defocus. In step S457, the structure determination unit 230e recognizes that there is structural information about the subject image, sets the structure presence/absence flag to 1, and ends the process shown in FIG. 7.

カメラ制御部230の構造判定部230eは、ステップS454において、ヒストグラムの中で第1のピークの階級を除く他の階級の度数の和を算出してステップS455へ進む。
構造判定部230eは、ステップS455において、全体の度数における算出した和の割合が第2閾値(例えば10%)よりも小さい、すなわち上述した判定条件(2)を満たすか否かを判定する。構造判定部230eは、判定条件(2)を満たす場合にステップS455を肯定判定してステップS456へ進み、判定条件(2)を満たさない場合にはステップS455を否定判定して上記ステップS457へ進む。
In step S454, the structure determination unit 230e of the camera control unit 230 calculates the sum of the frequencies of the classes other than the class of the first peak in the histogram, and proceeds to step S455.
In step S455, the structure determination unit 230e determines whether the ratio of the calculated sum in the total frequency is smaller than a second threshold value (e.g., 10%), i.e., whether the above-mentioned determination condition (2) is satisfied. If the determination condition (2) is satisfied, the structure determination unit 230e makes an affirmative determination in step S455 and proceeds to step S456, and if the determination condition (2) is not satisfied, the structure determination unit 230e makes a negative determination in step S455 and proceeds to the above-mentioned step S457.

ステップS456へ進む場合は、AF演算に必要な被写体の像の輪郭や模様等が現れていない、または不足する状態に相当する。カメラ制御部230の構造判定部230eは、ステップS456において、被写体の像の構造情報無しと認識して構造有無フラグにゼロを設定して図7による処理を終了する。 When the process proceeds to step S456, it corresponds to a state in which the contours or patterns of the subject image necessary for AF calculation are not present or are insufficient. In step S456, the structure determination unit 230e of the camera control unit 230 recognizes that there is no structural information about the subject image, sets the structure presence/absence flag to zero, and ends the process in FIG. 7.

以上説明したように実施の形態においては、デフォーカス量が算出できない場合に行われていたスキャン動作のレンズ移動について、被写体によってはスキャン動作のレンズ移動を行ってもデフォーカス量が算出できないことがある、と言う知見に基づくものである。すなわち、被写体の像に構造情報があればスキャン動作のレンズ移動でデフォーカス量が算出される可能性があり、構造情報がなければスキャン動作のレンズ移動を行ってもデフォーカス量が算出される可能性がない。そこで、撮像した被写体の像の中の構造情報の有無でスキャン動作のレンズ移動の可否を判定するようにした。構造情報のない場合はスキャン動作のレンズ移動を行わないので、無駄なレンズ移動制御が不要となる。 As described above, in the embodiment, the lens movement of the scan operation is performed when the defocus amount cannot be calculated, but this is based on the knowledge that, depending on the subject, the defocus amount may not be calculated even if the lens movement of the scan operation is performed. In other words, if there is structural information in the image of the subject, the defocus amount may be calculated by the lens movement of the scan operation, but if there is no structural information, there is no possibility of the defocus amount being calculated even if the lens movement of the scan operation is performed. Therefore, the presence or absence of structural information in the captured image of the subject determines whether or not the lens movement of the scan operation is possible. If there is no structural information, the lens movement of the scan operation is not performed, eliminating the need for unnecessary lens movement control.

以上説明した第1の実施形態によれば、以下の作用効果が得られる。
(1)カメラシステム1に搭載されるカメラ制御部230は、撮影光学系360を通過した被写体光を複数の光電変換部で受光して光電変換し、光電変換された複数の撮像用画素信号を出力する撮像素子260からの撮像用画素信号に基づき、被写体光の像の中に構造情報が含まれるか否かを判定する構造判定部230eと、構造判定部230eで判定された結果に基づき、撮影光学系360の移動可否を設定する移動可否設定部230bとを備える。
このように構成したので、デフォーカス量が算出される可能性が見込めない場合を適切に判定することができる。また、この判定結果に基づいて撮影光学系360の移動可否を設定したので、フォーカスレンズ361の無駄なスキャン動作を避けることが可能になる。
According to the first embodiment described above, the following advantageous effects can be obtained.
(1) The camera control unit 230 mounted on the camera system 1 is equipped with a structure determination unit 230e that determines whether or not structural information is included in the image of the subject light based on the imaging pixel signals from the image sensor 260, which receives and photoelectrically converts the subject light that has passed through the imaging optical system 360 using a plurality of photoelectric conversion units, and outputs a plurality of photoelectrically converted imaging pixel signals, and a movement feasibility setting unit 230b that sets whether or not the imaging optical system 360 can be moved based on the result determined by the structure determination unit 230e.
With this configuration, it is possible to appropriately determine a case where it is unlikely that the defocus amount can be calculated. In addition, since the possibility of moving the photographing optical system 360 is set based on the result of this determination, it is possible to avoid unnecessary scanning operations of the focus lens 361.

(2)構造判定部230eは、複数の撮像用画素信号に関する度数分布に基づき被写体光の像の中に構造情報が含まれるか否かを判定するので、例えば、撮像用画素信号の信号値の分布から、被写体の像の構造情報の有無を適切に判定することができる。 (2) The structure determination unit 230e determines whether or not structural information is included in the image of the subject light based on the frequency distribution of multiple imaging pixel signals, and can therefore appropriately determine the presence or absence of structural information in the image of the subject from, for example, the distribution of the signal values of the imaging pixel signals.

(3)構造判定部230eは、度数分布として複数の撮像用画素信号の強度値のヒストグラムを用いるので、ヒストグラムの度数分布に基づいて被写体の像の構造情報を示す輪郭または模様等の有無を適切に判定することができる。 (3) The structure determination unit 230e uses a histogram of the intensity values of multiple imaging pixel signals as a frequency distribution, and can therefore appropriately determine the presence or absence of contours, patterns, etc., that indicate structural information of the subject image, based on the frequency distribution of the histogram.

(4)カメラ制御部230は、生成部230dで強度値の階級の異なる幅でヒストグラムを複数生成し、構造判定部230eで複数のヒストグラムに基づき判定を行う。階級が異なる複数のヒストグラムに基づく判定を複数回行うようにしたことで、1つのヒストグラムに基づいた判定を1回だけ行う場合に比べて、判定確度を上げることができる。 (4) In the camera control unit 230, the generation unit 230d generates multiple histograms with different widths of intensity value classes, and the structure determination unit 230e performs a judgment based on the multiple histograms. By performing a judgment multiple times based on multiple histograms with different classes, it is possible to increase the accuracy of the judgment compared to a case where a judgment is performed only once based on a single histogram.

(5)カメラ制御部230は、生成部230dで強度値の階級の幅を変えずに階級の境界をずらしてヒストグラムを複数生成し、構造判定部230eで複数のヒストグラムに基づき判定を行う。階級の境界をずらした複数のヒストグラムに基づく判定を複数回行うようにしたことで、1つのヒストグラムに基づいた判断を1回だけ行う場合に比べて、判定確度を上げることができる。 (5) In the camera control unit 230, the generation unit 230d generates multiple histograms by shifting the class boundaries without changing the width of the intensity value classes, and the structure determination unit 230e performs a determination based on the multiple histograms. By performing a determination multiple times based on multiple histograms with shifted class boundaries, it is possible to increase the accuracy of the determination compared to a case where a determination is performed only once based on a single histogram.

(6)撮像素子260は、第1波長の光を透過させる第1フィルタを透過した光を光電変換して生成された電荷に基づく撮像用画素信号を出力する複数の第1光電変換部と、第2波長の光を透過させる第2フィルタを透過した光を光電変換して生成された電荷に基づく撮像用画素信号を出力する複数の第2光電変換部とを有する。そして、カメラ制御部230は、生成部230dで、複数の第1光電変換部からの信号に基づいて信号値の度数分布を示す第1のヒストグラムと、複数の第2光電変換部からの信号に基づいて信号値の度数分布を示す第2のヒストグラムとを生成し、構造判定部230eで、被写体の像の構造情報を示す輪郭または模様等の有無を、複数のヒストグラムに基づいて複数回判定する。異なる条件に基づく判定を複数回行うようにしたことで、1つのヒストグラムに基づいた判定を1回だけ行う場合に比べて、判定確度を上げることができる。 (6) The image sensor 260 has a plurality of first photoelectric conversion units that output image pixel signals based on charges generated by photoelectrically converting light transmitted through a first filter that transmits light of a first wavelength, and a plurality of second photoelectric conversion units that output image pixel signals based on charges generated by photoelectrically converting light transmitted through a second filter that transmits light of a second wavelength. The camera control unit 230 generates, in the generation unit 230d, a first histogram showing the frequency distribution of signal values based on signals from the plurality of first photoelectric conversion units, and a second histogram showing the frequency distribution of signal values based on signals from the plurality of second photoelectric conversion units, and determines, in the structure determination unit 230e, the presence or absence of contours or patterns that indicate structural information of the image of the subject multiple times based on the multiple histograms. By performing determinations based on different conditions multiple times, the accuracy of the determination can be increased compared to a case where a determination based on one histogram is performed only once.

(7)構造判定部230eは、ヒストグラムの階級の中で1番目と2番目に多い度数の比率が第1閾値より大きく、かつ、全体の度数の中で2番目以下の階級の度数の和の割合が第2閾値よりも小さいと、被写体の像の構造情報を示す輪郭または模様等が無いと判断する。このように構成したので、デフォーカス量が算出可能か、デフォーカス量が算出される可能性が見込めないかを、適切に判定することができる。 (7) The structure determination unit 230e determines that there are no contours or patterns or the like that indicate structural information of the subject image when the ratio of the first and second most frequent frequencies in the histogram classes is greater than a first threshold value and the ratio of the sum of the frequencies of the second and lower classes to the total frequency is less than a second threshold value. This configuration makes it possible to appropriately determine whether the defocus amount can be calculated or whether there is no possibility of calculating the defocus amount.

(8)カメラシステム1に搭載されるカメラ制御装置としてのカメラ制御部230は、撮影光学系360の異なる瞳を通過した光束により形成された、被写体の1組の像の位相差に基づいてデフォーカス量を検出する焦点検出部230a、AF信号処理部270bを備え、カメラ制御部230(生成部230d)は、焦点検出部230aでデフォーカス量が検出できないと、ヒストグラムを生成する。
このように構成したので、ヒストグラムの生成を、被写体の像に構造があるにもかかわらずデフォーカス量を算出できないほどに被写体の像が大きくぼけている場合に限ることができる。
(8) The camera control unit 230 as a camera control device mounted on the camera system 1 includes a focus detection unit 230a and an AF signal processing unit 270b that detect the amount of defocus based on the phase difference between a pair of images of a subject formed by light beams passing through different pupils of the shooting optical system 360, and the camera control unit 230 (generation unit 230d) generates a histogram when the focus detection unit 230a cannot detect the amount of defocus.
With this configuration, the generation of the histogram can be limited to cases where the subject image is so blurred that the defocus amount cannot be calculated, even though the subject image has a structure.

(9)移動可否設定部230bは、構造判定部230eで被写体の像の構造を示す輪郭または模様等の有りが判定されると、撮影光学系360のフォーカスレンズ361のスキャン移動可を設定し、構造判定部230eで被写体の像の構造を示す輪郭または模様等の無しが判定されると、撮影光学系360のフォーカスレンズ361の移動否を設定する。
このように構成したので、デフォーカス量が算出される可能性が見込める場合にはフォーカスレンズ361のスキャン動作のレンズ移動を行い、デフォーカス量が算出される可能性が見込めない場合にはフォーカスレンズ361の無駄なスキャン動作のレンズ移動を避けることができる。
(9) When the structure determination unit 230e determines that there is an outline, pattern, etc. that indicates the structure of the image of the subject, the movement possibility setting unit 230b sets the focus lens 361 of the shooting optical system 360 to be movable for scanning, and when the structure determination unit 230e determines that there is no outline, pattern, etc. that indicates the structure of the image of the subject, the movement possibility setting unit 230b sets the focus lens 361 of the shooting optical system 360 to be movable for scanning.
With this configuration, when it is expected that the defocus amount can be calculated, lens movement of the scanning operation of the focus lens 361 is performed, and when it is expected that the defocus amount can be calculated, unnecessary lens movement of the scanning operation of the focus lens 361 can be avoided.

次のような変形も本発明の範囲内であり、変形例の一つ、もしくは複数を上述の実施形態と組み合わせることも可能である。
(変形例1)
上述した実施の形態では、採用されているフォーカスポイントPを対象にヒストグラムを生成し、生成したヒストグラムに基づいて被写体の像の構造情報の有無を判断した。この代わりに、採用されているフォーカスポイントPと、採用されているフォーカスポイントPの周囲に配置されているフォーカスポイントPとを対象にヒストグラムを生成し、生成したヒストグラムに基づいて被写体の像の構造情報の有無を判断してもよい。採用されているフォーカスポイントPよりも広い範囲に対応する撮像用画素信号を用いてヒストグラムを生成することで、被写体のより広い部分に基づいて、被写体の像の構造情報の有無を判定することができる。
The following modifications are also within the scope of the present invention, and one or more of the modifications may be combined with the above-described embodiment.
(Variation 1)
In the above-described embodiment, a histogram is generated for the employed focus point P, and the presence or absence of structural information of the subject image is determined based on the generated histogram. Alternatively, a histogram may be generated for the employed focus point P and focus points P arranged around the employed focus point P, and the presence or absence of structural information of the subject image may be determined based on the generated histogram. By generating a histogram using imaging pixel signals corresponding to a range wider than the employed focus point P, the presence or absence of structural information of the subject image can be determined based on a wider portion of the subject.

(変形例2)
上述した実施の形態では、撮像素子260に、画像生成用の光電変換部と焦点検出用の光電変換部とが設けられる例を説明した。この代わりに、焦点検出用の光電変換部を有する焦点検出モジュールを、撮像素子260とは別に設ける構成にしてもよい。例えば、交換レンズ3から画像生成用の光電変換部を備えた撮像素子へ至る光路上にクイックリターンミラーを設け、クイックリターンミラーで折り曲げられた光を焦点検出モジュールで受光するカメラシステムを構成することができる。
(Variation 2)
In the above-described embodiment, an example has been described in which a photoelectric conversion unit for image generation and a photoelectric conversion unit for focus detection are provided in the image sensor 260. Alternatively, a focus detection module having a photoelectric conversion unit for focus detection may be provided separately from the image sensor 260. For example, a camera system can be configured in which a quick return mirror is provided on the optical path from the interchangeable lens 3 to the image sensor having a photoelectric conversion unit for image generation, and the focus detection module receives light bent by the quick return mirror.

焦点検出モジュールは、クイックリターンミラーで折り曲げられた光束であって、交換レンズ3の異なる領域(瞳)を通過した一組の光束による被写体の像を受光する。焦点検出モジュールは、一組の被写体の像を光電変換して、被写体の像の輝度分布に対応した焦点検出用画素信号を出力する。 The focus detection module receives an image of a subject formed by a set of light beams that are bent by a quick return mirror and pass through different areas (pupils) of the interchangeable lens 3. The focus detection module photoelectrically converts the set of subject images and outputs focus detection pixel signals that correspond to the luminance distribution of the subject images.

変形例2において、AF信号処理部270bは、焦点検出モジュールから出力される焦点検出用画素信号を用いて、上記一組の被写体の像の像ずれ量(位相差)を、焦点検出モジュールに配置された光電変換部に対応するフォーカスポイントPごとに検出し、フォーカスポイントPごとにデフォーカス量を算出することができる。 In the second modification, the AF signal processing unit 270b uses the focus detection pixel signals output from the focus detection module to detect the image shift amount (phase difference) of the image of the set of subjects for each focus point P corresponding to the photoelectric conversion unit arranged in the focus detection module, and can calculate the defocus amount for each focus point P.

移動可否設定部230bは、AF信号処理部270bでデフォーカス量が算出されなかった場合において図6のステップS420へ進み、被写体の像に構造情報があるにもかかわらず、デフォーカス量を算出できないほどに被写体の像が大きくぼけているのか、被写体の像に構造情報がないのかを切り分けるために、ステップS420以降の処理を行う。 If the AF signal processing unit 270b has not calculated the defocus amount, the movement permission setting unit 230b proceeds to step S420 in FIG. 6 and performs the processes from step S420 onward to distinguish whether the subject image has structural information but is so blurred that the defocus amount cannot be calculated, or whether the subject image has no structural information.

変形例2によれば、焦点検出用の光電変換部を有する焦点検出モジュールを撮像素子260とは別に設ける場合にも、上述した実施の形態と同様の作用効果を得ることができる。 According to the second modification, even if a focus detection module having a photoelectric conversion unit for focus detection is provided separately from the image sensor 260, the same effect as the above-described embodiment can be obtained.

(第2の実施の形態)
第2の実施の形態では、第1の実施の形態で行った「位相スキャン」、「階級スキャン」、「色スキャン」に加えて、フォーカスレンズ361の光軸O方向の位置を僅かに異ならせて生成した複数のヒストグラムに基づき、被写体の像の構造情報の有無の判定を複数回行う。
Second Embodiment
In the second embodiment, in addition to the "phase scan,""classscan," and "color scan" performed in the first embodiment, the presence or absence of structural information in the image of the subject is determined multiple times based on multiple histograms generated by slightly varying the position of the focus lens 361 in the direction of the optical axis O.

図8は、第2の実施の形態による、フォーカスレンズ361の移動可否を判定する処理(S40)の流れを説明するフローチャートである。第1の実施形態による判定処理(図6)と比べると、ステップS520とステップS530との間にステップS525およびステップS550が追加される点が相違するので、これらの相違点を中心に説明する。 Figure 8 is a flow chart illustrating the flow of the process (S40) for determining whether the focus lens 361 can be moved according to the second embodiment. Compared to the determination process (Figure 6) according to the first embodiment, the difference is that steps S525 and S550 are added between steps S520 and S530, so the following explanation will focus on these differences.

図8のS520を肯定判定して進むステップS525において、カメラ制御部230は、フォーカスレンズ361の微小駆動が済んでいるか否かを判定する。カメラ制御部230は、予め定められた微小移動量を駆動済みの場合にS525を肯定判定してステップS530へ進み、予め定められた微小移動量を駆動していない場合、ステップS525を否定判定してステップS550へ進む。微小移動量は、スキャン移動時の移動量よりも短い移動量のことである。 In step S525, which is reached after a positive judgment in S520 in FIG. 8, the camera control unit 230 judges whether or not the focus lens 361 has been micro-driven. If the focus lens 361 has been driven a predetermined micro-movement amount, the camera control unit 230 judges S525 as positive and proceeds to step S530, and if the focus lens 361 has not been driven a predetermined micro-movement amount, the camera control unit 230 judges S525 as negative and proceeds to step S550. The micro-movement amount is an amount of movement that is shorter than the amount of movement during scanning movement.

ステップS550において、カメラ制御部230は、フォーカスレンズ361を光軸O方向に微小駆動させる指示を、ボディ通信部240から交換レンズ3へ送信させてステップS420へ戻る。ステップS420へ戻った場合、カメラ制御部230は、微小駆動後のフォーカスレンズ361の位置でステップS420以降の処理を繰り返す。 In step S550, the camera control unit 230 causes the body communication unit 240 to send an instruction to the interchangeable lens 3 to micro-drive the focus lens 361 in the direction of the optical axis O, and the process returns to step S420. When the process returns to step S420, the camera control unit 230 repeats the process from step S420 onwards at the position of the focus lens 361 after the micro-drive.

以上説明した第2の実施形態によれば、第1の実施の形態で得られる作用効果に加えて、以下の作用効果が得られる。すなわち、カメラ制御部230の構造判定部230eは、フォーカスレンズ361を微小駆動することによって増加した条件の下で生成される、複数のヒストグラムに基づいて被写体の像の構造情報判定を複数回行うようにしたので、フォーカスレンズ361を微小駆動しない場合と比べて被写体の像の構造情報判定を行う回数が増える。そのため、より多くの判定回数に基づいて、被写体の像の構造情報の有無の判定を正確に行うことができる。 According to the second embodiment described above, in addition to the effects and advantages obtained in the first embodiment, the following effects and advantages are obtained. That is, the structure determination unit 230e of the camera control unit 230 performs a plurality of determinations of structural information of the subject image based on a plurality of histograms generated under increased conditions by minutely driving the focus lens 361, so that the number of times structural information determinations of the subject image are performed increases compared to the case where the focus lens 361 is not minutely driven. Therefore, the presence or absence of structural information of the subject image can be accurately determined based on a greater number of determinations.

(変形例3)
また、上述した実施の形態では、採用されたフォーカスポイントPを対象にヒストグラムを生成し、生成したヒストグラムに基づいてフォーカスレンズ361の移動可否を判断した。すなわち、ヒストグラムを生成するよりも前にフォーカスポイントPが採用される例を説明した。
変形例3では、全てのフォーカスポイントPを対象にヒストグラムを生成し、生成したヒストグラムに基づいて各フォーカスポイントPにおける被写体の像の構造情報の有無を判定しておく。そして、被写体の像の構造情報有りが判定されたフォーカスポイントPの中から、「AFエリアモード」に基づいてフォーカスポイントPを採用する。つまり、フォーカスポイントPを採用するよりも前にヒストグラムが生成される。
このように構成することにより、フォーカスレンズ361の移動可が判定され得るフォーカスポイントPの中から、採用するフォーカスポイントを選ぶことが可能になる。
(Variation 3)
In the above-described embodiment, a histogram is generated for the adopted focus point P, and whether or not to move the focus lens 361 is determined based on the generated histogram. That is, an example has been described in which the focus point P is adopted before the histogram is generated.
In the third modification, a histogram is generated for all focus points P, and the presence or absence of subject image structural information at each focus point P is determined based on the generated histogram. Then, from among the focus points P determined to have subject image structural information, a focus point P is selected based on the "AF area mode." In other words, the histogram is generated before selecting a focus point P.
With this configuration, it becomes possible to select a focus point to be adopted from among focus points P for which it can be determined that the focus lens 361 can be moved.

変形例3における焦点検出演算は、位相差検出方式に代えてコントラスト検出方式(いわゆる山登り方式)を採用してもよい。山登り方式では、被写体の像のコントラストが高くなる位置へフォーカスレンズ361を移動させる。しかしながら、もともと被写体の像の輪郭や模様等が明瞭でない場合は、山登り方式で合焦させることは困難である。そこで、フォーカスレンズ361の移動可が判定され得るフォーカスポイントを選ぶことで、山登り方式での合焦動作を行いやすくすることができる。 The focus detection calculation in variant 3 may employ a contrast detection method (so-called mountain climbing method) instead of a phase difference detection method. In the mountain climbing method, the focus lens 361 is moved to a position where the contrast of the subject image is high. However, if the contours or patterns of the subject image are not clear to begin with, it is difficult to achieve focus using the mountain climbing method. Therefore, by selecting a focus point where it can be determined that the focus lens 361 can be moved, it is possible to make it easier to perform the focus operation using the mountain climbing method.

(変形例4)
ステップS460で構造情報無しと判定されたとき、ステップS420,ステップS430、ステップS440などで設定した色、階級、位相を変更して複数のヒストグラムを生成して構造情報の有無を判定した。しかし、予め設定した色と階級で得た1つのヒストグラムだけで被写体の像の構造情報の有無を判定してもよい。ステップS460が否定されるとステップS530のスキャン動作のレンズ移動否と認識して処理を終了してもよい。
(変形例5)
ステップS500が否定判定された場合に階級を変更し、あるいは、色を変更して異なるヒストグラムを生成して構造情報の有無を判定した。しかし、ステップS500が否定されるとステップS530のスキャン動作のレンズ移動否と認識して処理を終了してもよい。
(Variation 4)
When it is determined in step S460 that there is no structural information, the color, class, and phase set in steps S420, S430, S440, etc. are changed to generate multiple histograms to determine the presence or absence of structural information. However, the presence or absence of structural information in the subject image may be determined using only one histogram obtained with a preset color and class. If step S460 is negative, it may be recognized that there has been no lens movement in the scanning operation of step S530, and the process may be terminated.
(Variation 5)
If the result of step S500 is negative, the class is changed or the color is changed to generate a different histogram and determine whether or not there is structural information. However, if the result of step S500 is negative, it may be recognized that the lens movement in the scanning operation of step S530 has not occurred and the process may be terminated.

1…カメラシステム、2…カメラボディ、3…交換レンズ、230…カメラ制御部、235…記憶部、260…撮像素子、270…信号処理部、280…操作部材、290…表示部、360…撮影光学系、361…フォーカスレンズ、370…レンズ駆動部 1...camera system, 2...camera body, 3...interchangeable lens, 230...camera control unit, 235...storage unit, 260...image sensor, 270...signal processing unit, 280...operation member, 290...display unit, 360...photographic optical system, 361...focus lens, 370...lens drive unit

Claims (12)

光学系を通過した被写体光を複数の光電変換部で受光して光電変換し、光電変換された複数の信号を出力する撮像部からの信号に基づき、前記被写体光の像の中に構造情報が含まれるか否か判定を行う判定部と、
前記判定部で前記構造情報が含まれると判定されると、前記光学系のフォーカスレンズの移動可を設定し、前記判定部で前記構造情報が含まれないと判定されると、前記光学系のフォーカスレンズの動否を設定する移動可否設定部と、
前記光学系の異なる瞳を通過した光束により形成された1組の像の位相差に基づいて前記光学系の焦点と前記撮像部の位置とのずれ量であるデフォーカス量を演算により検出する検出部と、
を備え
前記検出部により前記デフォーカス量の検出ができず、かつ、前記移動可否設定部により前記フォーカスレンズの移動可が設定されている場合に、前記フォーカスレンズを所定の移動量だけ移動させる信号を前記光学系に送信し、前記フォーカスレンズが前記信号に応じて移動した後に、前記検出部により前記デフォーカス量を検出するための演算を再度実行する、
カメラ制御装置。
a determination unit that determines whether or not structural information is included in an image of the subject light based on a signal from an imaging unit that receives the subject light that has passed through an optical system, photoelectrically converts the received light, and outputs a plurality of photoelectrically converted signals;
a movement permission setting unit that sets a focus lens of the optical system to be movable when the determination unit determines that the structural information is included, and sets a focus lens of the optical system to be movable or not movable when the determination unit determines that the structural information is not included;
a detection unit that detects, by calculation, a defocus amount that is a deviation amount between a focus of the optical system and a position of the imaging unit based on a phase difference between a pair of images formed by light beams that have passed through different pupils of the optical system;
Equipped with
when the detection unit is unable to detect the defocus amount and the movement permission setting unit has set the focus lens to be movable, a signal for moving the focus lens by a predetermined movement amount is transmitted to the optical system, and after the focus lens has moved in response to the signal, a calculation is performed again by the detection unit to detect the defocus amount.
Camera control device.
請求項1に記載のカメラ制御装置において、2. The camera control device according to claim 1,
前記検出部により前記デフォーカス量の検出ができず、かつ、前記移動可否設定部により前記フォーカスレンズの移動否が設定されている場合に、フォーカス駆動を行うことができないことをユーザに知らせるための表示処理を行う、カメラ制御装置。A camera control device that performs display processing to inform a user that focus driving cannot be performed when the detection unit is unable to detect the defocus amount and the movement feasibility setting unit has set the focus lens as not movable.
請求項1または2に記載のカメラ制御装置において、3. The camera control device according to claim 1,
前記検出部により前記デフォーカス量の検出ができず、かつ、前記移動可否設定部により前記フォーカスレンズの移動否が設定されている場合に、前記フォーカスレンズの駆動指示を前記光学系に送信しない、カメラ制御装置。A camera control device that does not send an instruction to drive the focus lens to the optical system when the detection unit cannot detect the defocus amount and the movement feasibility setting unit has set the focus lens to be movable or not.
請求項1に記載のカメラ制御装置において、
前記判定部は、前記複数の信号に関する度数分布に基づき前記判定を行う、カメラ制御装置。
2. The camera control device according to claim 1,
The determination unit performs the determination based on a frequency distribution of the plurality of signals.
請求項に記載のカメラ制御装置において、
前記判定部は、前記度数分布として前記複数の信号の強度値のヒストグラムを用いる、カメラ制御装置。
5. The camera control device according to claim 4 ,
The camera control device, wherein the determination unit uses a histogram of intensity values of the plurality of signals as the frequency distribution.
請求項5に記載のカメラ制御装置において、6. The camera control device according to claim 5,
前記判定部は、前記強度値の階級の幅、前記強度値の階級の境界の位相、前記ヒストグラムの生成に使用する色、の少なくとも1つが異なる複数の前記ヒストグラムを用いて前記判定を行う、カメラ制御装置。A camera control device, wherein the determination unit performs the determination using a plurality of histograms that differ in at least one of the width of the intensity value classes, the phase of the boundaries of the intensity value classes, and the color used to generate the histogram.
請求項6に記載のカメラ制御装置において、7. The camera control device according to claim 6,
前記判定部は、前記複数の前記ヒストグラムのすべてで所定の条件を満たす場合に、前記構造情報が含まれないと判定する、カメラ制御装置。The camera control device, wherein the determination unit determines that the structural information is not included when a predetermined condition is satisfied for all of the plurality of histograms.
請求項5から7のいずれか一項に記載のカメラ制御装置において、
前記判定部は、前記強度値の階級の異なる幅で複数の前記ヒストグラムを生成し、前記複数の前記ヒストグラムに基づき前記判定を行う、カメラ制御装置。
8. The camera control device according to claim 5 ,
The determination unit generates a plurality of the histograms with different widths of the intensity value classes, and performs the determination based on the plurality of the histograms.
請求項5から8のいずれか一項に記載のカメラ制御装置において、
前記判定部は、前記強度値の階級の幅を変えずに階級の境界をずらして複数の前記ヒストグラムを生成し、前記複数の前記ヒストグラムに基づき前記判定を行う、カメラ制御装置。
9. The camera control device according to claim 5 ,
The determination unit generates a plurality of the histograms by shifting class boundaries without changing the width of the intensity value classes, and performs the determination based on the plurality of the histograms.
請求項からのいずれか一項に記載のカメラ制御装置において、
前記撮像部は、第1波長の光を透過させる第1フィルタを透過した光を光電変換して生成された電荷に基づく信号を出力する複数の第1光電変換部と、第2波長の光を透過させる第2フィルタを透過した光を光電変換して生成された電荷に基づく信号を出力する複数の第2光電変換部とを有し、
前記判定部は、前記複数の第1光電変換部からの複数の信号に基づく第1のヒストグラムと、前記複数の第2光電変換部からの複数の信号に基づく第2のヒストグラムとに基づいて前記判定を行う、カメラ制御装置。
10. The camera control device according to claim 5 ,
the imaging unit includes a plurality of first photoelectric conversion units configured to output signals based on charges generated by photoelectrically converting light transmitted through a first filter that transmits light of a first wavelength, and a plurality of second photoelectric conversion units configured to output signals based on charges generated by photoelectrically converting light transmitted through a second filter that transmits light of a second wavelength,
A camera control device, wherein the judgment unit makes the judgment based on a first histogram based on a plurality of signals from the plurality of first photoelectric conversion units and a second histogram based on a plurality of signals from the plurality of second photoelectric conversion units.
請求項から10のいずれか一項に記載のカメラ制御装置において、
前記判定部は、前記強度値の階級の中で1番目と2番目に多い度数の比率が第1閾値より大きく、かつ、全体の度数の中で前記2番目以下の階級の度数の和の割合が第2閾値よりも小さいと前記構造情報が含まれないと判定する、カメラ制御装置。
11. The camera control device according to claim 5 ,
The judgment unit determines that the structural information is not included when the ratio of the first and second most frequent frequencies among the intensity value classes is greater than a first threshold value, and the proportion of the sum of the frequencies of the second and lower classes among the total frequencies is smaller than a second threshold value.
請求項1から11のいずれか一項に記載のカメラ制御装置と、前記撮像部と、を備えるカメラ。 A camera comprising: the camera control device according to claim 1 ; and the imaging unit .
JP2021058106A 2021-03-30 2021-03-30 Camera control device and camera Active JP7615835B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2021058106A JP7615835B2 (en) 2021-03-30 2021-03-30 Camera control device and camera
JP2025001078A JP2025041978A (en) 2021-03-30 2025-01-06 Camera control device, camera and imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021058106A JP7615835B2 (en) 2021-03-30 2021-03-30 Camera control device and camera

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2025001078A Division JP2025041978A (en) 2021-03-30 2025-01-06 Camera control device, camera and imaging device

Publications (2)

Publication Number Publication Date
JP2022154852A JP2022154852A (en) 2022-10-13
JP7615835B2 true JP7615835B2 (en) 2025-01-17

Family

ID=83556963

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2021058106A Active JP7615835B2 (en) 2021-03-30 2021-03-30 Camera control device and camera
JP2025001078A Pending JP2025041978A (en) 2021-03-30 2025-01-06 Camera control device, camera and imaging device

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2025001078A Pending JP2025041978A (en) 2021-03-30 2025-01-06 Camera control device, camera and imaging device

Country Status (1)

Country Link
JP (2) JP7615835B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006301150A (en) 2005-04-19 2006-11-02 Nikon Corp Autofocus device
JP2009115981A (en) 2007-11-05 2009-05-28 Sony Corp Imaging device, control method thereof, and program
JP2015148686A (en) 2014-02-05 2015-08-20 株式会社ニコン Subject detection device, imaging device, and image processing program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09230224A (en) * 1996-02-26 1997-09-05 Japan Steel Works Ltd:The Focus state determination method, automatic focusing method and automatic focusing device
JP2002214513A (en) * 2001-01-16 2002-07-31 Minolta Co Ltd Optical system controller, optical system control method, and recording medium
JP4939901B2 (en) * 2006-11-02 2012-05-30 富士フイルム株式会社 Distance image generation method and apparatus
JP5331661B2 (en) * 2009-11-25 2013-10-30 シャープ株式会社 Image processing method and image processing apparatus
JP5906629B2 (en) * 2011-09-20 2016-04-20 株式会社ニコン Adapter, camera system, and adapter control program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006301150A (en) 2005-04-19 2006-11-02 Nikon Corp Autofocus device
JP2009115981A (en) 2007-11-05 2009-05-28 Sony Corp Imaging device, control method thereof, and program
JP2015148686A (en) 2014-02-05 2015-08-20 株式会社ニコン Subject detection device, imaging device, and image processing program

Also Published As

Publication number Publication date
JP2025041978A (en) 2025-03-26
JP2022154852A (en) 2022-10-13

Similar Documents

Publication Publication Date Title
JP7708227B2 (en) Electronic devices and programs
JP4582212B2 (en) Imaging apparatus and program
JP3921069B2 (en) Imaging device
US7978968B2 (en) Auto focus device
US8711274B2 (en) Image processing apparatus and method configured to calculate defocus amount of designated area
JP2010282085A (en) Imaging device
JP6555857B2 (en) Imaging apparatus and control method thereof
JP2005215040A (en) Autofocus system
JP5896763B2 (en) Optical instrument and method for autofocusing
JP2008211630A (en) Imaging device
JP2013205675A (en) Imaging apparatus
JP2005345605A (en) Automatic focusing system
JP2008046354A (en) Subject tracking device and camera
JP2009042555A (en) Electronic camera
JP7615835B2 (en) Camera control device and camera
JP2017223760A (en) Imaging device and focus adjustment method
JP6188536B2 (en) IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP5239250B2 (en) Electronic camera
JP2009048123A (en) Image capturing apparatus and method for controlling image capturing apparatus
JP2016080738A (en) Imaging device, automatic focusing method
JP2017021177A (en) Range-finding point upon lens vignetting, range-finding area transition method
JP2009042556A (en) Electronic camera
JP6222976B2 (en) IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2019106725A (en) Imaging apparatus
JP7175704B2 (en) Imaging device and its control method

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20210423

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210715

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210812

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20231213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240702

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240830

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20241216

R150 Certificate of patent or registration of utility model

Ref document number: 7615835

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150