JP2006301006A - Control unit and method thereof, program, and camera - Google Patents

Control unit and method thereof, program, and camera Download PDF

Info

Publication number
JP2006301006A
JP2006301006A JP2005118350A JP2005118350A JP2006301006A JP 2006301006 A JP2006301006 A JP 2006301006A JP 2005118350 A JP2005118350 A JP 2005118350A JP 2005118350 A JP2005118350 A JP 2005118350A JP 2006301006 A JP2006301006 A JP 2006301006A
Authority
JP
Japan
Prior art keywords
evaluation value
value
unit
peak
constant
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.)
Pending
Application number
JP2005118350A
Other languages
Japanese (ja)
Inventor
Yujiro Ito
雄二郎 伊藤
Hidekazu Sudo
秀和 須藤
Shinji Takemoto
新治 竹本
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2005118350A priority Critical patent/JP2006301006A/en
Publication of JP2006301006A publication Critical patent/JP2006301006A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To improve focusing capability by improving evaluation value peak detection sensitivity. <P>SOLUTION: When acquiring a new evaluation value, an evaluation value peak detector 105 detects the peak of an evaluation value on whether a ratio of values of the subtracting results exceeds condition constant β by using a candidate of the maximum value of the evaluation value held in an evaluation value maximum value hold 104, subtracting constant α held in a subtracting constant holding part 106 and the condition constant β held in a condition constant holding part 107 to subtract the subtracting constant α respectively from the new evaluation value and the candidate of the maximum value of the evaluation value. The present invention can be applied to an imaging apparatus such as a digital camera and a video camera. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、制御装置および方法、プログラム、並びにカメラに関し、特に、評価値ピーク検出感度を向上させ、合焦能力を向上させることができるようにする制御装置および方法、プログラム、並びにカメラに関する。   The present invention relates to a control device and method, a program, and a camera, and more particularly, to a control device and method, a program, and a camera that can improve evaluation value peak detection sensitivity and improve focusing ability.

従来、例えば撮像装置等において、焦点を被写体に合焦させるフォーカス処理を自動的に行うオートフォーカス(以下、AF(Auto Focus)と称する)処理がある。このAF処理には、例えば、取り込み画像のコントラストを検出し、コントラストが最も高くなるようにレンズ位置を調整する方法(画像処理方式)がある(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, for example, in an imaging apparatus or the like, there is an autofocus (hereinafter referred to as AF (Auto Focus)) process that automatically performs a focus process for focusing a subject on a subject. This AF processing includes, for example, a method (image processing method) of detecting the contrast of a captured image and adjusting the lens position so that the contrast becomes the highest (see, for example, Patent Document 1).

例えば、撮像装置は、取り込み画像の所定の領域(評価枠)において、画像の「ぼけ」を評価するパラメータである評価値を、画像のコントラスト等から算出し、フォーカス位置を移動させながら、その評価値の最大値(ピーク値)を探索し、そのピーク値をとる位置に焦点を合焦させる。このようにすることにより、取り込み画像は、範囲内に写されている被写体に合焦する(ジャストピン)。   For example, the imaging apparatus calculates an evaluation value, which is a parameter for evaluating “blurring” of an image, in a predetermined area (evaluation frame) of the captured image from the contrast of the image and the evaluation while moving the focus position. The maximum value (peak value) is searched, and the focus is focused on the position where the peak value is obtained. In this way, the captured image is focused on the subject imaged within the range (just pin).

このような画像処理方式のAF処理の場合、その精度は、一般的に、撮影環境や被写体などの条件に(得られる撮影画像の内容に)大きく依存する。そこで、より的確なAF処理を行うために様々な方法が考えられている。例えば、最適なフォーカス位置を効率よく探索させるためにレンズを微小範囲で振動(ウォブリング)させ、その取り込み画像の評価値に基づいてフォーカスレンズの進行方向を判定する方法(例えば、特許文献2参照)や、幅広い撮影条件下において良好なAF処理を行うことができるように、条件に応じて評価値を算出する範囲である評価枠の枠サイズを変更する方法(例えば、特許文献3参照)等がある。   In the case of such an image processing type AF process, the accuracy generally depends largely on conditions such as a shooting environment and a subject (depending on the content of a captured image to be obtained). Therefore, various methods are considered to perform more accurate AF processing. For example, in order to efficiently search for the optimum focus position, the lens is vibrated (wobbed) in a minute range, and the traveling direction of the focus lens is determined based on the evaluation value of the captured image (see, for example, Patent Document 2). Or a method of changing the frame size of the evaluation frame, which is a range in which the evaluation value is calculated according to the conditions (see, for example, Patent Document 3) so that favorable AF processing can be performed under a wide range of shooting conditions. is there.

また、複数種類の評価値を用いてAF処理を行ったり、評価値の最大値(ピーク値)を検出する方法を複数用意したりする方法もある。例えば、撮像装置が、通常の被写体に対しては、フィールド画像間において評価値の差分値を算出し、その傾きにより最大値をとるフィールド(ピーク)を検出するようにし、この方法でピークを検出できない被写体、例えば、暗い被写体やコントラストが低い被写体に対しては、複数のフィールド間において、評価値の最大と最小の比を調べ、所定の値以上の比になっている場合にその最大値をとるフィールド(またはその付近のフィールド)をピークとして検出するようにする方法がある。   There are also methods of performing AF processing using a plurality of types of evaluation values and preparing a plurality of methods for detecting the maximum value (peak value) of evaluation values. For example, for a normal subject, the imaging device calculates a difference value of evaluation values between field images, detects a field (peak) having a maximum value based on the inclination, and detects a peak by this method. For subjects that cannot be performed, for example, subjects that are dark or have low contrast, the maximum and minimum ratios of the evaluation values are checked between multiple fields, and if the ratio is greater than or equal to a predetermined value, the maximum value is set. There is a method of detecting a field to be taken (or a field in the vicinity thereof) as a peak.

この、暗い被写体やコントラストが低い被写体に対するピーク検出方法においては、ノイズ成分のピークを識別し、正確な評価値のピークを検出するために、図1に示されるように、評価値ピークの大きさをEmaxとし、大ぼけ状態(明らかに合焦していない状態)での評価値の上限、すなわちノイズ成分のレベル(ノイズレベル)の上限をn_maxとし、その下限をn_minとすると、以下の式(1)および式(2)の2つの条件式の両方を満たす必要がある。   In this peak detection method for a dark subject or a low-contrast subject, in order to identify the peak of the noise component and detect the peak of the accurate evaluation value, as shown in FIG. Is Emax, the upper limit of the evaluation value in the blurred state (obviously not in focus), that is, the upper limit of the noise component level (noise level) is n_max, and the lower limit is n_min, the following formula ( It is necessary to satisfy both of the two conditional expressions 1) and (2).

Emax / n_min > β ・・・(1)
n_max / n_min ≦ β ・・・(2)
ただし、βは定数
Emax / n_min> β (1)
n_max / n_min ≦ β (2)
Where β is a constant

式(1)は、評価値のピークを検出するための条件式であり、式(2)はノイズによる変動で誤ったピークを検出しないようにするための条件式である。   Expression (1) is a conditional expression for detecting the peak of the evaluation value, and Expression (2) is a conditional expression for preventing an erroneous peak from being detected due to fluctuation due to noise.

近年においては技術の向上に伴い画像の高画質化も進み、HD(High Definition)画像に関する技術も普及し始めており、HD画像に対応するビデオカメラも存在する。このようなHD画像の場合、SD(Standard Definition)画像と比較して1フィールド画像における画素数も増大するので、ノイズレベルが上昇しS/N比が大幅に低下する。   In recent years, as the technology has improved, the quality of images has been improved, and technologies related to HD (High Definition) images have begun to spread, and there are video cameras that support HD images. In the case of such an HD image, the number of pixels in one field image increases as compared with an SD (Standard Definition) image, so that the noise level increases and the S / N ratio decreases significantly.

図2は、評価値のピークとノイズレベルの関係について、SD画像とHD画像とで比較する図である。   FIG. 2 is a diagram comparing the relationship between the evaluation value peak and the noise level between the SD image and the HD image.

図2Aに示されるSD画像の場合、評価値ピーク(時刻T2)における値(評価値B)に対して、ノイズレベル(時刻T1以前、および時刻T3以降)における値(評価値A)は十分に小さい。これに対して、図2Bに示されるように、HD画像の場合、ノイズレベル(時刻T1以前、および時刻T3以降)における値(評価値A')は、SD画像の場合と比較して、評価値ピーク(時刻T2)における値(評価値B)に対して無視できないほど大きくなる可能性がある。   In the case of the SD image shown in FIG. 2A, the value (evaluation value A) at the noise level (before time T1 and after time T3) is sufficiently larger than the value (evaluation value B) at the evaluation value peak (time T2). small. On the other hand, as shown in FIG. 2B, in the case of an HD image, the value (evaluation value A ′) at the noise level (before time T1 and after time T3) is evaluated as compared with the case of an SD image. There is a possibility that the value (evaluation value B) at the value peak (time T2) becomes so large that it cannot be ignored.

国際公開WO 97/25812International Publication WO 97/25812 特開平10−215403号公報JP-A-10-215403 特開平10−161016号公報Japanese Patent Laid-Open No. 10-161016

しかしながら、上述したように、正確な評価値ピークの検出のためには、式(1)および式(2)の条件を満たす必要がある。例えば、図2Bに示されるHD画像の場合のように、ノイズレベルが増加すると、Emaxに対するn_minの値が大きくなり、式(1)を満たすために値βをより小さく設定する必要があり、式(2)を満たすことが困難になる(式(2)を満たすためのマージンが小さくなる)恐れがある。   However, as described above, in order to detect an accurate evaluation value peak, the conditions of the expressions (1) and (2) must be satisfied. For example, as in the case of the HD image shown in FIG. 2B, when the noise level increases, the value of n_min with respect to Emax increases, and the value β needs to be set smaller to satisfy Equation (1). It may be difficult to satisfy (2) (the margin for satisfying equation (2) may be small).

つまり、HD画像の場合、SD画像の場合よりも、正確な評価値ピークの検出が困難になり、合焦能力が低下する恐れがあった。   That is, in the case of an HD image, it is more difficult to detect an accurate evaluation value peak than in the case of an SD image, and there is a possibility that the focusing ability may be reduced.

本発明はこのような状況に鑑みてなされたものであり、評価値ピーク検出感度を向上させ、合焦能力を向上させるようにするものである。   The present invention has been made in view of such a situation, and is intended to improve the evaluation value peak detection sensitivity and improve the focusing ability.

本発明の制御装置は、フォーカス位置の調整用のパラメータであり、被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出手段と、評価値算出手段により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、評価値算出手段により今回算出された現フィールドに対応する現在の評価値より減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる最大値を評価値のピークとして探索する評価値ピーク探索手段とを備えることを特徴とする。   The control device of the present invention is a parameter for adjusting the focus position, and is calculated in the past by an evaluation value calculation unit that calculates an evaluation value for evaluating the degree of blur of a captured image of a subject for each field image, and an evaluation value calculation unit. Is the maximum value of the evaluation value group corresponding to the past field image group, and the subtraction result when the subtraction constant, which is a predetermined value, is subtracted corresponds to the current field calculated this time by the evaluation value calculation means Evaluation value peak searching means for searching as a peak of the evaluation value a maximum value that is larger than a condition constant that is a predetermined ratio with respect to the subtraction result when the subtraction constant is subtracted from the current evaluation value. To do.

前記評価値ピーク探索手段は、過去のフィールド画像群に対応する評価値群を保持する評価値群保持手段と、最大値を保持する評価値最大値保持手段と、評価値最大値保持手段により保持されている最大値と、現在の評価値との値の大きさを比較し、大きい方を最大値として評価値最大値保持手段に保持させる評価値最大値判定手段と、減算定数を保持する減算定数保持手段と、条件定数を保持する条件定数保持手段と、評価値最大値保持手段により保持されている最大値、評価値算出手段により今回算出された現在の評価値、減算定数保持手段により保持されている減算定数、および条件定数保持手段により保持されている条件定数が、所定の条件式を満たすか否かを判定することにより、評価値のピークを検出する評価値ピーク検出手段とを備えるようにすることができる。   The evaluation value peak searching means is held by an evaluation value group holding means for holding an evaluation value group corresponding to a past field image group, an evaluation value maximum value holding means for holding a maximum value, and an evaluation value maximum value holding means. The evaluation value maximum value determination means for comparing the magnitude of the maximum value that has been set with the current evaluation value, and holding the larger value as the maximum value in the evaluation value maximum value holding means, and the subtraction that holds the subtraction constant Constant holding means, condition constant holding means for holding condition constants, maximum value held by evaluation value maximum value holding means, current evaluation value currently calculated by evaluation value calculating means, held by subtraction constant holding means Evaluation value peak detecting means for detecting the peak of the evaluation value by determining whether or not the subtracted constant and the condition constant held by the condition constant holding means satisfy a predetermined conditional expression It can be made to comprise a.

前記評価値ピーク探索手段は、評価値のノイズレベルを測定するノイズレベル測定手段と、ノイズレベル測定手段により測定されたノイズレベルの最大値および最小値、並びに条件定数に基づいて、減算定数を設定する減算定数設定手段とをさらに備えるようにすることができる。   The evaluation value peak search means sets a subtraction constant based on a noise level measurement means for measuring a noise level of the evaluation value, a maximum value and a minimum value of the noise level measured by the noise level measurement means, and a condition constant. It is possible to further include a subtraction constant setting means.

前記減算定数設定手段は、ノイズレベルの最大値より減算定数を減算した減算結果の、ノイズレベルの最小値より減算定数を減算した減算結果に対する比が条件定数以下となるように減算定数を設定するようにすることができる。   The subtraction constant setting means sets the subtraction constant so that the ratio of the subtraction result obtained by subtracting the subtraction constant from the maximum noise level to the subtraction result obtained by subtracting the subtraction constant from the minimum noise level is equal to or less than the condition constant. Can be.

前記評価値ピーク探索手段は、減算定数の代わりに評価値のノイズレベルの最小値の定数倍を最大値および現在の評価値よりそれぞれ減算することにより、評価値のピークを探索するようにすることができる。   The evaluation value peak search means searches for the peak of the evaluation value by subtracting a constant multiple of the minimum value of the noise level of the evaluation value from the maximum value and the current evaluation value instead of the subtraction constant. Can do.

前記評価値ピーク探索手段により探索されたピークに対応するフォーカス位置に合焦させるように駆動部を制御するフォーカス位置制御手段をさらに備えるようにすることができる。   A focus position control unit that controls the drive unit to focus on a focus position corresponding to the peak searched by the evaluation value peak search unit may be further provided.

前記評価値ピーク探索手段により探索されたピークと、過去のフィールド画像群に対応する評価値群とを用いて重心計算を行う重心計算手段をさらに備え、フォーカス位置制御手段は、重心計算手段により検索された、より正確なピークに対応するフォーカス位置に合焦させるように駆動部を制御するようにすることができる。   It further comprises centroid calculating means for calculating the centroid using the peak searched by the evaluation value peak searching means and the evaluation value group corresponding to the past field image group, and the focus position control means is searched by the centroid calculating means. The drive unit can be controlled to focus on the focus position corresponding to the more accurate peak.

本発明の制御方法は、フォーカス位置の調整用のパラメータであり、被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出ステップと、評価値算出ステップの処理により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、評価値算出ステップの処理により今回算出された現フィールドに対応する現在の評価値より減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる最大値を評価値のピークとして探索する評価値ピーク探索ステップとを含むことを特徴とする。   The control method of the present invention is a parameter for adjusting the focus position, and the evaluation value calculation step for calculating the evaluation value for evaluating the degree of blur of the captured image of the subject for each field image and the evaluation value calculation step in the past The subtraction result obtained by subtracting the subtraction constant, which is the maximum value of the evaluation value group corresponding to the past field image group and calculated as a predetermined value, was calculated this time by the processing of the evaluation value calculation step. An evaluation value peak searching step for searching for a maximum value that is larger than a condition constant that is a predetermined ratio with respect to a subtraction result when the subtraction constant is subtracted from the current evaluation value corresponding to the current field as a peak of the evaluation value. It is characterized by that.

本発明のプログラムは、フォーカス位置の調整用のパラメータであり、被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出ステップと、評価値算出ステップの処理により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、評価値算出ステップの処理により今回算出された現フィールドに対応する現在の評価値より減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる最大値を評価値のピークとして探索する評価値ピーク探索ステップとを含むことを特徴とする。   The program of the present invention is a parameter for adjusting the focus position, and an evaluation value calculation step for calculating an evaluation value for evaluating the degree of blur of a captured image of a subject for each field image and a process of the evaluation value calculation step in the past. The subtraction result obtained by subtracting the calculated subtraction constant, which is the maximum value of the evaluation value group corresponding to the past field image group, is calculated by the processing of the evaluation value calculation step. An evaluation value peak searching step for searching for a maximum value that is larger than a condition constant that is a predetermined ratio with respect to a subtraction result obtained by subtracting the subtraction constant from the current evaluation value corresponding to the field, as a peak of the evaluation value. It is characterized by.

本発明のカメラは、フォーカス位置の調整用のパラメータであり、被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出手段と、評価値算出手段により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、評価値算出手段により今回算出された現フィールドに対応する現在の評価値より減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる最大値を評価値のピークとして探索する評価値ピーク探索手段と、評価値ピーク探索手段により探索されたピークに対応するフォーカス位置に合焦させるように駆動部を制御するフォーカス位置制御手段とを備えることを特徴とする。   The camera of the present invention is a parameter for adjusting the focus position, and is calculated in the past by an evaluation value calculation unit that calculates an evaluation value for evaluating the degree of blur of a captured image of a subject for each field image, and an evaluation value calculation unit. Further, the subtraction result obtained by subtracting a subtraction constant that is a predetermined value, which is the maximum value of the evaluation value group corresponding to the past field image group, corresponds to the current field calculated this time by the evaluation value calculation means. An evaluation value peak searching means for searching for a maximum value that is larger than a condition constant that is a predetermined ratio with respect to a subtraction result obtained by subtracting a subtraction constant from the current evaluation value, and an evaluation value peak searching means And a focus position control means for controlling the drive unit so as to focus on the focus position corresponding to the searched peak.

本発明の制御装置および方法、プログラム、並びにカメラにおいては、フォーカス位置の調整用のパラメータであり、被写体の撮像画像のぼけ度合いを評価する評価値がフィールド画像毎に算出され、そのようにして過去に算出された過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、同様に今回算出された現フィールドに対応する現在の評価値より同じ減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる最大値が評価値のピークとして探索される。   In the control device and method, the program, and the camera of the present invention, an evaluation value that is a parameter for adjusting the focus position and that evaluates the degree of blur of the captured image of the subject is calculated for each field image. Is the maximum value of the evaluation value group corresponding to the past field image group calculated in the above, and the subtraction result when the subtraction constant, which is a predetermined value, is subtracted is the current value corresponding to the current field calculated this time. The maximum value that is larger than the condition constant that is a predetermined ratio with respect to the subtraction result when the same subtraction constant is subtracted from the evaluation value is searched for as the peak of the evaluation value.

本発明によれば、評価値ピーク検出感度を向上させ、合焦能力を向上させることができる。   According to the present invention, it is possible to improve the evaluation value peak detection sensitivity and improve the focusing ability.

以下に本発明の実施の形態を説明するが、本明細書に記載の発明と、発明の実施の形態との対応関係を例示すると、次のようになる。この記載は、請求項に記載されている発明をサポートする実施の形態が本明細書に記載されていることを確認するためのものである。従って、発明の実施の形態中には記載されているが、発明に対応するものとして、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その発明に対応するものではないことを意味するものではない。逆に、実施の形態が発明に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その発明以外の発明には対応しないものであることを意味するものでもない。   Embodiments of the present invention will be described below. The correspondence relationship between the invention described in this specification and the embodiments of the invention is exemplified as follows. This description is intended to assure that embodiments supporting the claimed invention are described in this specification. Therefore, although there is an embodiment which is described in the embodiment of the invention but is not described here as corresponding to the invention, it means that the embodiment is not It does not mean that it does not correspond to the invention. Conversely, even if an embodiment is described herein as corresponding to an invention, that means that the embodiment does not correspond to an invention other than the invention. Absent.

さらに、この記載は、本明細書に記載されている発明の全てを意味するものではない。換言すれば、この記載は、本明細書に記載されている発明であって、この出願では請求されていない発明の存在、すなわち、将来、分割出願されたり、補正により追加されたりする発明の存在を否定するものではない。   Further, this description does not mean all the inventions described in this specification. In other words, this description is an invention described in the present specification and is not claimed in this application, that is, an invention that will be filed in the future or added by amendment. Is not to deny.

本発明においては、撮像装置(例えば、図3の撮像装置)の光学素子(例えば、図3のフォーカスレンズやウォブリングレンズ)を駆動させて被写体を撮像する際のフォーカス位置を調整する駆動部(例えば、図3のAF駆動部)の制御に関する処理を実行する制御装置(例えば、図3のAF制御部)が提供される。この制御装置では、フォーカス位置の調整用のパラメータであり、被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出手段(例えば、図3の評価値算出部)と、評価値算出手段により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、評価値算出手段により今回算出された現フィールドに対応する現在の評価値より減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる最大値を評価値のピークとして探索する評価値ピーク探索手段(例えば、図3の評価値ピーク探索部)とを備える。   In the present invention, a drive unit (e.g., adjusting the focus position when imaging an object by driving an optical element (e.g., the focus lens or wobbling lens in Fig. 3) of an imaging device (e.g., the imaging device in Fig. 3)). , A control device (for example, the AF control unit in FIG. 3) that performs processing related to the control of the AF drive unit in FIG. 3 is provided. In this control apparatus, an evaluation value calculation unit (for example, the evaluation value calculation unit in FIG. 3) that calculates an evaluation value for each field image, which is a parameter for adjusting the focus position and evaluates the degree of blur of the captured image of the subject. The subtraction result obtained by subtracting the subtraction constant, which is the maximum value of the evaluation value group corresponding to the past field image group and calculated in the past by the evaluation value calculation unit, which is a predetermined value, is the evaluation value calculation unit. An evaluation value peak that searches for a maximum value that is larger than a condition constant that is a predetermined ratio with respect to the subtraction result when the subtraction constant is subtracted from the current evaluation value corresponding to the current field calculated this time as an evaluation value peak And a search means (for example, the evaluation value peak search unit in FIG. 3).

前記評価値ピーク探索手段は、過去のフィールド画像群に対応する評価値群を保持する評価値群保持手段(例えば、図4の評価値保持部)と、最大値を保持する評価値最大値保持手段(例えば、図4の評価値最大値保持部)と、評価値最大値保持手段により保持されている最大値と、現在の評価値との値の大きさを比較し、大きい方を最大値として評価値最大値保持手段に保持させる評価値最大値判定手段(例えば、図4の評価値最大値判定部)と、減算定数を保持する減算定数保持手段(例えば、図4の減算定数保持部)と、条件定数を保持する条件定数保持手段(例えば、図4の条件定数保持部)と、評価値最大値保持手段により保持されている最大値、評価値算出手段により今回算出された現在の評価値、減算定数保持手段により保持されている減算定数、および条件定数保持手段により保持されている条件定数が、所定の条件式を満たすか否かを判定することにより、評価値のピークを検出する評価値ピーク検出手段(例えば、図4の評価値ピーク検出部)とを備えるようにすることができる。   The evaluation value peak searching means includes an evaluation value group holding means (for example, an evaluation value holding unit in FIG. 4) that holds an evaluation value group corresponding to a past field image group, and an evaluation value maximum value holding that holds a maximum value. The maximum value held by the means (for example, the evaluation value maximum value holding unit in FIG. 4), the maximum value held by the evaluation value maximum value holding means, and the current evaluation value are compared. Evaluation value maximum value determination means (for example, the evaluation value maximum value determination section in FIG. 4) to be held in the evaluation value maximum value holding means, and subtraction constant holding means (for example, the subtraction constant holding section in FIG. 4) that holds the subtraction constant ), A condition constant holding means for holding the condition constant (for example, the condition constant holding unit in FIG. 4), the maximum value held by the evaluation value maximum value holding means, and the current value calculated this time by the evaluation value calculation means Evaluation value, retained by subtraction constant retention means The evaluation value peak detecting means (for example, detecting the peak of the evaluation value by determining whether or not the subtraction constant and the condition constant held by the condition constant holding means satisfy a predetermined conditional expression (for example, 4 (evaluation value peak detection unit in FIG. 4).

前記評価値ピーク探索手段は、評価値のノイズレベルを測定するノイズレベル測定手段(例えば、図10のノイズレベル測定部)と、ノイズレベル測定手段により測定されたノイズレベルの最大値および最小値、並びに条件定数に基づいて、減算定数を設定する減算定数設定手段(例えば、図10の減算定数設定部)とをさらに備えるようにすることができる。   The evaluation value peak searching means includes a noise level measuring means (for example, a noise level measuring section in FIG. 10) for measuring the noise level of the evaluation value, and a maximum value and a minimum value of the noise level measured by the noise level measuring means, In addition, subtraction constant setting means (for example, a subtraction constant setting unit in FIG. 10) for setting the subtraction constant based on the condition constant can be further provided.

前記評価値ピーク探索手段により探索されたピークに対応するフォーカス位置に合焦させるように駆動部を制御するフォーカス位置制御手段(例えば、図3のAF制御処理部)をさらに備えるようにすることができる。   A focus position control unit (for example, an AF control processing unit in FIG. 3) that controls the drive unit to focus on the focus position corresponding to the peak searched by the evaluation value peak search unit may be further provided. it can.

前記評価値ピーク探索手段により探索されたピークと、過去のフィールド画像群に対応する評価値群とを用いて重心計算を行う重心計算手段(例えば、図3の重心計算部)をさらに備え、フォーカス位置制御手段は、重心計算手段により検索された、より正確なピークに対応するフォーカス位置に合焦させるように駆動部を制御するようにすることができる。   Further provided is a centroid calculating means (for example, a centroid calculating unit in FIG. 3) for calculating the centroid using the peak searched by the evaluation value peak searching means and the evaluation value group corresponding to the past field image group. The position control unit can control the drive unit so as to focus on the focus position corresponding to the more accurate peak retrieved by the centroid calculation unit.

本発明においては、撮像装置(例えば、図3の撮像装置)の光学素子(例えば、図3のフォーカスレンズやウォブリングレンズ)を駆動させて被写体を撮像する際のフォーカス位置を調整する駆動部(例えば、図3のAF駆動部)の制御に関する処理を実行する制御装置(例えば、図3のAF制御部)の制御方法が提供される。この制御方法においては、フォーカス位置の調整用のパラメータであり、被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出ステップ(例えば、図6のステップS1)と、評価値算出ステップの処理により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、評価値算出ステップの処理により今回算出された現フィールドに対応する現在の評価値より減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる最大値を評価値のピークとして探索する評価値ピーク探索ステップ(例えば、図6のステップS2)とを含む。   In the present invention, a drive unit (e.g., adjusting the focus position when imaging an object by driving an optical element (e.g., the focus lens or wobbling lens in Fig. 3) of an imaging device (e.g., the imaging device in Fig. 3)). , A control method of a control device (for example, the AF control unit in FIG. 3) that executes processing related to control of the AF drive unit in FIG. 3 is provided. In this control method, an evaluation value calculating step (for example, step S1 in FIG. 6) for calculating, for each field image, an evaluation value that is a parameter for adjusting the focus position and that evaluates the degree of blur of the captured image of the subject. The maximum value of the evaluation value group corresponding to the past field image group calculated in the past by the processing of the evaluation value calculation step, and the subtraction result obtained by subtracting a predetermined subtraction constant is the evaluation value calculation. The maximum value that is larger than the condition constant, which is a predetermined ratio, is searched for as the peak of the evaluation value with respect to the subtraction result when the subtraction constant is subtracted from the current evaluation value corresponding to the current field calculated this time by the processing of the step. And an evaluation value peak search step (for example, step S2 in FIG. 6).

本発明のプログラムにおいても、各ステップが対応する実施の形態(但し一例)は、本発明の制御方法と同様である。   Also in the program of the present invention, the embodiment (however, an example) corresponding to each step is the same as the control method of the present invention.

本発明においては、被写体を撮像する撮像部(例えば、図3のCCD)と、光学素子(例えば、図3のフォーカスレンズやウォブリングレンズ)を駆動させて、前記撮像部により前記被写体を撮像する際のフォーカス位置を調整する駆動部(例えば、図3のAF駆動部)を有するカメラ(例えば、図3の撮像装置)が提供される。このカメラにおいては、フォーカス位置の調整用のパラメータであり、被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出手段(例えば、図3の評価値算出部)と、評価値算出手段により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、評価値算出手段により今回算出された現フィールドに対応する現在の評価値より減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる最大値を評価値のピークとして探索する評価値ピーク探索手段(例えば、図3の評価値ピーク探索部)と、評価値ピーク探索手段により探索されたピークに対応するフォーカス位置に合焦させるように駆動部を制御するフォーカス位置制御手段(例えば、図3のAF制御処理部)とを備える。   In the present invention, when an imaging unit (for example, the CCD in FIG. 3) that images a subject and an optical element (for example, the focus lens or wobbling lens in FIG. 3) are driven, the imaging unit captures the subject. A camera (for example, the imaging apparatus of FIG. 3) having a drive unit (for example, the AF drive unit of FIG. 3) for adjusting the focus position is provided. In this camera, an evaluation value calculating unit (for example, the evaluation value calculating unit in FIG. 3) that calculates an evaluation value for each field image, which is a parameter for adjusting the focus position and evaluates the degree of blur of the captured image of the subject. The subtraction result obtained by subtracting the subtraction constant, which is the maximum value of the evaluation value group corresponding to the past field image group and calculated in the past by the evaluation value calculation unit, which is a predetermined value, is the evaluation value calculation unit. An evaluation value peak that searches for a maximum value that is larger than a condition constant that is a predetermined ratio with respect to the subtraction result when the subtraction constant is subtracted from the current evaluation value corresponding to the current field calculated this time as an evaluation value peak A search unit (for example, the evaluation value peak search unit in FIG. 3) and a drive unit so as to focus on the focus position corresponding to the peak searched by the evaluation value peak search unit Comprising control focus position control means (e.g., AF control processor of FIG. 3) and a.

以下、本発明の実施の形態について図を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図3は、本発明を適用した撮像装置の一実施形態に係る構成例を示す図である。   FIG. 3 is a diagram illustrating a configuration example according to an embodiment of an imaging apparatus to which the present invention is applied.

図3において、撮像装置1は、AF(Auto Focus)駆動部11、画像処理部12、およびAF制御部13を有しており、被写体を撮像し、動画または静止画の画像データを得る装置である。撮像装置1は、得られた画像データを記録媒体に記録したり、外部に出力したりする。なお、図3においては、撮像装置1の構成の内、本発明に関わる部分のみを示している。   In FIG. 3, the imaging device 1 includes an AF (Auto Focus) driving unit 11, an image processing unit 12, and an AF control unit 13, and is a device that captures a subject and obtains image data of a moving image or a still image. is there. The imaging device 1 records the obtained image data on a recording medium or outputs it to the outside. In FIG. 3, only the part related to the present invention is shown in the configuration of the imaging apparatus 1.

AF駆動部11は、フォーカスレンズ21、ウォブリングレンズ22、レンズ駆動部23、駆動制御部24、センサ25、およびスイッチ(SW)26を有しており、AF制御部13の制御に基づいて、光学系を駆動させ、画像処理部12に取り込まれる光のフォーカス位置調整処理を行う。   The AF drive unit 11 includes a focus lens 21, a wobbling lens 22, a lens drive unit 23, a drive control unit 24, a sensor 25, and a switch (SW) 26, and is optically controlled based on the control of the AF control unit 13. The system is driven to perform a focus position adjustment process for light taken into the image processing unit 12.

フォーカスレンズ21は、画像処理部12に入射する光の光軸方向に駆動し、その光のフォーカス位置(得られる撮影画像のフォーカス位置)を制御する。ウォブリングレンズ22は、画像処理部12に入射する光の光軸方向に微小に振動(ウォブリング)し、撮影画像のフォーカス位置を微小にずらす。このウォブリングレンズ22は、焦点調整処理(フォーカス処理)中におけるフォーカスレンズ21の動かす向きを決定するのに利用される。なお、このフォーカスレンズ21とウォブリングレンズ22は、1組のレンズにより実現する(フォーカスレンズ21をウォブリングレンズ22としてウォブリング動作させる)ようにしてもよい。   The focus lens 21 is driven in the optical axis direction of the light incident on the image processing unit 12, and controls the focus position of the light (the focus position of the obtained captured image). The wobbling lens 22 minutely vibrates (wobbles) in the optical axis direction of the light incident on the image processing unit 12, and slightly shifts the focus position of the captured image. The wobbling lens 22 is used to determine the moving direction of the focus lens 21 during the focus adjustment process (focus process). The focus lens 21 and the wobbling lens 22 may be realized by a pair of lenses (the wobbling operation is performed using the focus lens 21 as the wobbling lens 22).

レンズ駆動部23は、駆動制御部24より供給される制御情報に基づいて、フォーカスレンズ21およびウォブリングレンズ22の位置や動作を制御することによりフォーカス位置を制御する(フォーカス位置を制御するための動作を行わせる)。駆動制御部24は、後述するようにAF制御部13のAF制御処理部44とシリアルバスで接続されており、AF制御処理部44より供給されるフォーカス制御指令やウォブリング制御指令等の制御情報に基づいて、レンズ駆動部23にフォーカスレンズ21およびウォブリングレンズ22の駆動に関する制御情報を供給する。例えば、駆動制御部24は、レンズ駆動部23に対して、制御情報を供給し、フォーカスレンズ21の位置を移動するように指示したり、ウォブリングレンズ22のウォブリング動作を開始させたりする。   The lens driving unit 23 controls the focus position by controlling the positions and operations of the focus lens 21 and the wobbling lens 22 based on the control information supplied from the drive control unit 24 (operation for controlling the focus position). To do). As will be described later, the drive control unit 24 is connected to the AF control processing unit 44 of the AF control unit 13 through a serial bus. Control information such as a focus control command and a wobbling control command supplied from the AF control processing unit 44 is supplied to the drive control unit 24. Based on this, control information relating to driving of the focus lens 21 and the wobbling lens 22 is supplied to the lens driving unit 23. For example, the drive control unit 24 supplies the control information to the lens drive unit 23 to instruct to move the position of the focus lens 21 or to start the wobbling operation of the wobbling lens 22.

また、駆動制御部24は、センサ25より供給されるアイリス値やフォーカス位置に関する情報を、シリアルバスを介して、AF制御処理部44に供給する。さらに、駆動制御部24は、スイッチ(SW)26の状態に応じて動作が制御される。例えば、スイッチ26がオン状態の場合のみ駆動制御部24は、上述した制御処理や通信処理を行い、スイッチ26がオフ状態の場合、駆動制御部24は、休止状態となり各処理を実行しない。   Further, the drive control unit 24 supplies the iris value and the information on the focus position supplied from the sensor 25 to the AF control processing unit 44 via the serial bus. Further, the operation of the drive control unit 24 is controlled according to the state of the switch (SW) 26. For example, the drive control unit 24 performs the above-described control process and communication process only when the switch 26 is in an on state, and when the switch 26 is in an off state, the drive control unit 24 is in a dormant state and does not execute each process.

センサ25は、フォーカス位置、ズーム位置(焦点距離)、およびアイリス値等を測定するセンサであり、測定したそれらの情報を、駆動制御部24を介してAF制御処理部44に供給する。スイッチ(SW)26は、AF処理を行うか否かをユーザが制御するためのスイッチであり、その状態を駆動制御部24に通知する。   The sensor 25 is a sensor that measures a focus position, a zoom position (focal length), an iris value, and the like, and supplies the measured information to the AF control processing unit 44 via the drive control unit 24. The switch (SW) 26 is a switch for the user to control whether or not to perform AF processing, and notifies the drive control unit 24 of the state.

画像処理部12は、撮像装置1に入射される光から電気信号の画像信号を生成する処理部であり、CCD(Charge Coupled Devices)31、増幅部32、および信号処理部33を有している。   The image processing unit 12 is a processing unit that generates an image signal of an electrical signal from light incident on the imaging apparatus 1, and includes a CCD (Charge Coupled Devices) 31, an amplification unit 32, and a signal processing unit 33. .

CCD31は、フォトダイオード等の光電変換素子を有するCCDを利用した撮像素子であり、フォーカスレンズ21およびウォブリングレンズ22を介して入射される入射光を光電変換し、入射光量に対応する電荷を蓄積すると、それを吐き出すことにより電気信号の画像信号を得る。CCD31は、その画像信号を増幅部32に供給する。増幅部32は、CDS回路(Correlated Double Sampling circuit)、AGC回路(Automatic Gain Control circuit)、およびA/D(Analog / Digital)変換回路等を含み、CCD31より供給される画像信号のリセットノイズを除去したり、画像信号を増幅したり、アナログ信号の画像信号をデジタル信号に変換したりした後、そのデジタルの画像信号を信号処理部33に供給する。   The CCD 31 is an imaging device using a CCD having a photoelectric conversion element such as a photodiode, and photoelectrically converts incident light incident through the focus lens 21 and the wobbling lens 22 and accumulates charges corresponding to the incident light amount. The image signal of the electric signal is obtained by discharging it. The CCD 31 supplies the image signal to the amplification unit 32. The amplifying unit 32 includes a CDS circuit (Correlated Double Sampling circuit), an AGC circuit (Automatic Gain Control circuit), an A / D (Analog / Digital) conversion circuit, and the like, and removes reset noise of the image signal supplied from the CCD 31. Or amplifying the image signal or converting the analog image signal into a digital signal, and then supplying the digital image signal to the signal processing unit 33.

信号処理部33は、供給された画像信号に対してAE(Auto Exposure)処理やAWB(Auto White Balance)処理や、γ補正等の画像処理等を施した後、その画像信号を後段に出力するとともに、AF制御部13の評価値算出部41に供給する。また、信号処理部33は、画像信号の水平同期信号や垂直同期信号、並びにシステムクロック信号等の制御用同期信号を、評価値算出部41および評価値ピーク探索部42に供給する。   The signal processing unit 33 performs AE (Auto Exposure) processing, AWB (Auto White Balance) processing, image processing such as γ correction, and the like on the supplied image signal, and then outputs the image signal to the subsequent stage. At the same time, it is supplied to the evaluation value calculation unit 41 of the AF control unit 13. Further, the signal processing unit 33 supplies a control synchronization signal such as a horizontal synchronization signal and a vertical synchronization signal of the image signal, and a system clock signal to the evaluation value calculation unit 41 and the evaluation value peak search unit 42.

AF制御部13は、画像処理部12より供給される画像信号等に基づいて、AF駆動部11を制御し、AF処理の制御に関する処理を行う。AF制御部13は、評価値算出部41、評価値ピーク探索部42、重心計算部43、およびAF制御処理部44を有している。   The AF control unit 13 controls the AF driving unit 11 based on the image signal supplied from the image processing unit 12 and performs processing related to control of AF processing. The AF control unit 13 includes an evaluation value calculation unit 41, an evaluation value peak search unit 42, a centroid calculation unit 43, and an AF control processing unit 44.

評価値算出部41は、画像処理部12の信号処理部33より供給される画像信号や同期信号、並びにAF制御処理部44より供給される設定データ等に基づいて、取り込み画像(画像信号)の「ぼけ」具合を評価する評価値を算出する。評価値算出部41は、算出した評価値を評価値ピーク探索部42に供給する。   The evaluation value calculation unit 41 determines the captured image (image signal) based on the image signal and synchronization signal supplied from the signal processing unit 33 of the image processing unit 12 and the setting data supplied from the AF control processing unit 44. An evaluation value for evaluating the degree of “blur” is calculated. The evaluation value calculation unit 41 supplies the calculated evaluation value to the evaluation value peak search unit 42.

評価値ピーク探索部42は、評価値算出部41より供給された評価値に基づいて、評価値のピーク(最大値)を探索する処理を行い、その探索結果を重心計算部43に供給する。重心計算部43は、評価値ピーク探索部42より供給された探索結果の重心を計算し、より正確なピークを検出する。評価値ピーク探索部42による探索はフィールド単位で行われる(サンプリング周波数がフィールド単位となる)が、評価値が真のピークをとるタイミングがそのサンプリングタイミングとずれることも考えられる。評価値ピーク探索部42は、サンプルデータを用いて重心計算により補間計算を行うことにより、評価値のピークのより正確な位置(フォーカス位置)を検出する。評価値ピーク探索部42は、その評価値がピークとなるフォーカス位置をAF制御処理部44に供給する。   The evaluation value peak search unit 42 performs a process of searching for a peak (maximum value) of the evaluation value based on the evaluation value supplied from the evaluation value calculation unit 41 and supplies the search result to the centroid calculation unit 43. The centroid calculating unit 43 calculates the centroid of the search result supplied from the evaluation value peak searching unit 42 and detects a more accurate peak. The search by the evaluation value peak search unit 42 is performed in field units (the sampling frequency is in field units), but the timing at which the evaluation value takes a true peak may deviate from the sampling timing. The evaluation value peak search unit 42 detects a more accurate position (focus position) of the peak of the evaluation value by performing interpolation calculation by centroid calculation using the sample data. The evaluation value peak search unit 42 supplies the AF control processing unit 44 with the focus position at which the evaluation value reaches a peak.

AF制御処理部44は、シリアルバスを介して駆動制御部24を制御し、評価値のピークの探索用の動作をフォーカスレンズ21およびウォブリングレンズ22に行わせる。また、AF制御処理部44は、重心計算部43より供給された評価値のピークの情報を取得すると、その情報に基づいて、シリアルバスを介して駆動制御部24を制御し、検出されたフォーカス位置に焦点を合焦させるように、フォーカスレンズ21およびウォブリングレンズ22を駆動させる。さらに、AF制御処理部44は、シリアルバスを介して、駆動制御部24よりフォーカス位置やアイリス値等のセンサ情報を取得し、それらに基づいて、評価値算出用の設定データを生成し、その設定データを評価値算出部41に供給する。   The AF control processing unit 44 controls the drive control unit 24 via the serial bus, and causes the focus lens 21 and the wobbling lens 22 to perform an operation for searching for an evaluation value peak. In addition, when the AF control processing unit 44 acquires the peak information of the evaluation value supplied from the center of gravity calculation unit 43, the AF control processing unit 44 controls the drive control unit 24 via the serial bus based on the information, and detects the detected focus. The focus lens 21 and the wobbling lens 22 are driven so as to focus on the position. Furthermore, the AF control processing unit 44 acquires sensor information such as a focus position and an iris value from the drive control unit 24 via the serial bus, and generates setting data for evaluation value calculation based on the sensor information. The setting data is supplied to the evaluation value calculation unit 41.

また、AF制御部13は、バス50、ROM(Read Only Memory)51、入力部52、出力部53、記憶部54、通信部55、およびドライブ56をさらに有している。評価値ピーク探索部42には、バス50が接続され、そのバス50を介して、ROM51乃至ドライブ56が接続される。   The AF control unit 13 further includes a bus 50, a ROM (Read Only Memory) 51, an input unit 52, an output unit 53, a storage unit 54, a communication unit 55, and a drive 56. The evaluation value peak search unit 42 is connected to the bus 50, and the ROM 51 to the drive 56 are connected via the bus 50.

ROM51は、読み出し専用の記憶媒体を有しており、評価値ピーク探索部42において実行されるプログラムやデータが予め記憶されている。ROM51に記憶されているプログラムやデータは、評価値ピーク探索部42により、バス50を介して必要に応じて読み出される。入力部52は、スイッチやボタン等の入力デバイスを有しており、例えばユーザにより入力された指示情報等を受け付け、それらを、バス50を介して評価値ピーク探索部42に供給する。出力部53は、LED(Light Emitting Diode)ディスプレイ、LCD(Liquid Crystal Display)、または有機EL(Electro Luminescence)ディスプレイ等よりなる表示部や、スピーカ等よりなる音声出力部を有しており、評価値ピーク探索部42よりバス50を介して供給された情報を表示したり出力したりする。   The ROM 51 has a read-only storage medium, and programs and data to be executed in the evaluation value peak search unit 42 are stored in advance. The program and data stored in the ROM 51 are read by the evaluation value peak searching unit 42 via the bus 50 as necessary. The input unit 52 includes an input device such as a switch or a button. For example, the input unit 52 receives instruction information input by the user, and supplies them to the evaluation value peak search unit 42 via the bus 50. The output unit 53 includes a display unit including an LED (Light Emitting Diode) display, an LCD (Liquid Crystal Display), or an organic EL (Electro Luminescence) display, and an audio output unit including a speaker. Information supplied from the peak search unit 42 via the bus 50 is displayed or output.

記憶部54は、ハードディスクや半導体メモリ等を有し、評価値ピーク探索部42により実行されるプログラムやデータが記憶されたり、評価値ピーク探索部42より供給されるデータ等を記憶したりする。通信部55は、例えば、モデム、LAN(Local Area Network)アダプタ、USB(Universal Serial Bus)インタフェース、IEEE(Institute of Electrical and Electronic Engineers)1394インタフェース、SCSI(Small Computer System Interface)、またはIEEE802.11xアダプタ等を有し、所定の通信規格に基づいたインタフェース処理を行い、ネットワークを介して他の装置と通信を行い、例えば、他の装置より情報を受信し、それを評価値ピーク探索部42に供給したり、評価値ピーク探索部42からの情報を他の装置に送信したりする。   The storage unit 54 includes a hard disk, a semiconductor memory, and the like, and stores programs and data executed by the evaluation value peak search unit 42 and stores data supplied from the evaluation value peak search unit 42. The communication unit 55 is, for example, a modem, a LAN (Local Area Network) adapter, a USB (Universal Serial Bus) interface, an IEEE (Institute of Electrical and Electronic Engineers) 1394 interface, a SCSI (Small Computer System Interface), or an IEEE 802.11x adapter. Etc., perform interface processing based on a predetermined communication standard, communicate with other devices via the network, for example, receive information from other devices and supply it to the evaluation value peak search unit 42 Or the information from the evaluation value peak search unit 42 is transmitted to another device.

ドライブ56は、磁気ディスク、光ディスク、光磁気ディスク、或いは半導体メモリなどのリムーバブルメディア57が適宜装着される読み出し書き込み処理部である。ドライブ56は、例えば、装着されたリムーバブルメディア57からプログラムやデータを読み出し、それを、必要に応じて記憶部54にインストールさせたり、評価値ピーク探索部42に供給したりする。また、ドライブ56は、例えば、バス50を介して評価値ピーク探索部42より取得したプログラムやデータを、装着されているリムーバブルメディア57に記録する。   The drive 56 is a read / write processing unit to which a removable medium 57 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory is appropriately attached. For example, the drive 56 reads a program and data from the mounted removable medium 57 and installs it in the storage unit 54 or supplies it to the evaluation value peak search unit 42 as necessary. Further, the drive 56 records, for example, the program and data acquired from the evaluation value peak search unit 42 via the bus 50 in the removable medium 57 that is mounted.

評価値ピーク探索部42が実行する処理をソフトウエアにより実行させる場合には、そのソフトウエアを構成するプログラムが、ネットワークや記録媒体からインストールされる。   When the processing executed by the evaluation value peak searching unit 42 is executed by software, a program constituting the software is installed from a network or a recording medium.

この記録媒体は、例えば、装置本体とは別に、ユーザにプログラムを配信するために配布される、プログラムが記録されている磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disk-Read Only Memory),DVD(Digital Versatile Disk)を含む)、光磁気ディスク(MD(Mini-Disk)(登録商標)を含む)、もしくは半導体メモリなどよりなるリムーバブルメディア57により構成されるだけでなく、装置本体に予め組み込まれた状態でユーザに配信される、プログラムが記録されているROM51や、記憶部54に含まれるハードディスクや半導体メモリ等で構成される。   This recording medium is, for example, a magnetic disk (including a flexible disk) on which a program is recorded, an optical disk (CD-ROM (Compact Disk-Read), which is distributed to distribute the program to the user separately from the apparatus main body. The apparatus is not only constituted by a removable medium 57 made of only memory), DVD (Digital Versatile Disk), magneto-optical disk (including MD (Mini-Disk) (registered trademark)), semiconductor memory, etc. It is composed of a ROM 51 on which a program is recorded and a hard disk and a semiconductor memory included in the storage unit 54, which are distributed to the user in a state of being incorporated in the main body in advance.

次に、動作について説明する。   Next, the operation will be described.

撮影が開始されると、画像処理部12のCCD31は、点線矢印61に示されるような光軸でAF駆動部11のフォーカスレンズ21およびウォブリングレンズ22を介して入射された光を光電変換し、電気信号の画像情報(画像信号)を得る。そしてCCD31は、矢印62のように、その画像信号を増幅部32に供給する。増幅部32は、その画像信号を所定の方法で増幅させると、その増幅済みの画像信号を矢印63のように信号処理部33に供給する。信号処理部33は、供給された画像信号に対して画像処理を施すなどした後、それを、矢印64Aに示されるように図示せぬ後段に出力するとともに、矢印64Bに示されるようにAF制御部13の評価値算出部41に供給する。また、信号処理部33は、矢印65に示されるように、同期信号を評価値算出部41に供給する。   When shooting is started, the CCD 31 of the image processing unit 12 photoelectrically converts light incident through the focus lens 21 and the wobbling lens 22 of the AF driving unit 11 along the optical axis as indicated by the dotted arrow 61, Obtain image information (image signal) of the electrical signal. Then, the CCD 31 supplies the image signal to the amplification unit 32 as indicated by an arrow 62. When the amplification unit 32 amplifies the image signal by a predetermined method, the amplification unit 32 supplies the amplified image signal to the signal processing unit 33 as indicated by an arrow 63. The signal processing unit 33 performs image processing on the supplied image signal, and then outputs the processed image signal to a subsequent stage (not shown) as indicated by an arrow 64A, and performs AF control as indicated by an arrow 64B. It supplies to the evaluation value calculation part 41 of the part 13. Further, the signal processing unit 33 supplies the synchronization signal to the evaluation value calculation unit 41 as indicated by an arrow 65.

評価値算出部41は、矢印70に示されるようにAF制御処理部44より供給される設定データ等に基づいて、信号処理部33より供給される画像信号に対応する取り込み画像の「ぼけ」具合を評価する評価値を所定の算出方法で算出する。例えば、評価値は、フレーム画像の一部の画像領域内(評価枠内)におけるコントラストの大きさを示す値であり、その評価枠内の高周波成分の合計値等に基づいて算出される。評価値算出部41は、このような評価値を算出すると、それを矢印66に示されるように評価値ピーク探索部42に供給する。   Based on the setting data supplied from the AF control processing unit 44 as indicated by the arrow 70, the evaluation value calculating unit 41 determines the degree of “blurring” of the captured image corresponding to the image signal supplied from the signal processing unit 33. An evaluation value for evaluating is calculated by a predetermined calculation method. For example, the evaluation value is a value indicating the magnitude of contrast in a part of the image area (in the evaluation frame) of the frame image, and is calculated based on the total value of the high frequency components in the evaluation frame. When the evaluation value calculation unit 41 calculates such an evaluation value, the evaluation value calculation unit 41 supplies the evaluation value to the evaluation value peak search unit 42 as indicated by an arrow 66.

評価値ピーク探索部42は、供給された評価値に基づいて、評価値の減少率から評価値のピークを探索し、その評価値ピークの情報を、矢印67に示されるように重心計算部43に供給する。重心計算部43は、評価値ピークの情報に基づいて重心計算を行い、より正確なピーク位置を検出し、その情報を矢印68に示されるようにAF制御処理部44に供給する。   Based on the supplied evaluation value, the evaluation value peak search unit 42 searches for the peak of the evaluation value from the rate of decrease of the evaluation value, and the information on the evaluation value peak is indicated by the centroid calculation unit 43 as indicated by an arrow 67. To supply. The centroid calculation unit 43 performs centroid calculation based on the evaluation value peak information, detects a more accurate peak position, and supplies the information to the AF control processing unit 44 as indicated by an arrow 68.

AF制御処理部44は、矢印69Bのようにシリアルバスを介して駆動制御部24より供給されるフォーカス位置やアイリス値等のセンサ情報に基づいて、評価値算出用の設定データを生成し、それを矢印70に示されるように評価値算出部41に供給する。また、AF制御処理部44は、矢印69Aに示されるようにシリアルバスを介して駆動制御部24を制御し、フォーカスレンズ21やウォブリングレンズ22を駆動させ、例えばウォブリング動作や、山登り判定等のAF処理を実行させる。さらにAF制御処理部44は、矢印69Aに示されるようにシリアルバスを介して駆動制御部24を制御し、フォーカスレンズ21やウォブリングレンズ22を駆動させ、評価値のピーク検出用動作を行わせ、CCD31に入射する入射光のフォーカス位置を変化させる。これにより評価値算出部41は、フォーカス位置が変化する画像信号の評価値をフレーム毎に算出する。また、AF制御処理部44は、重心計算部43より供給される評価値のピークに関する情報を取得すると、矢印69Aに示されるようにシリアルバスを介して駆動制御部24を制御し、取得した評価値のピークに関する情報に基づいて、CCD31において取り込まれる取り込み画像(または撮影画像)の評価値がピークとなるようにフォーカスレンズ21やウォブリングレンズ22を駆動させる。   The AF control processing unit 44 generates setting data for evaluation value calculation based on sensor information such as a focus position and an iris value supplied from the drive control unit 24 via the serial bus as indicated by an arrow 69B. Is supplied to the evaluation value calculation unit 41 as indicated by an arrow 70. Also, the AF control processing unit 44 controls the drive control unit 24 via the serial bus as indicated by an arrow 69A to drive the focus lens 21 and the wobbling lens 22, for example, AF for wobbling operation, hill climbing determination, and the like. Execute the process. Further, the AF control processing unit 44 controls the drive control unit 24 via a serial bus as indicated by an arrow 69A, drives the focus lens 21 and the wobbling lens 22, and performs an evaluation value peak detection operation, The focus position of incident light incident on the CCD 31 is changed. Thereby, the evaluation value calculation unit 41 calculates the evaluation value of the image signal whose focus position changes for each frame. Further, when the AF control processing unit 44 acquires information about the peak of the evaluation value supplied from the center of gravity calculation unit 43, the AF control processing unit 44 controls the drive control unit 24 via the serial bus as indicated by an arrow 69A, and acquires the acquired evaluation. Based on the information regarding the peak value, the focus lens 21 and the wobbling lens 22 are driven so that the evaluation value of the captured image (or captured image) captured by the CCD 31 reaches a peak.

駆動制御部24は、矢印71に示されるように、センサ25よりフォーカス位置やアイリス値等のセンサ情報を取得し、そのセンサ情報を、シリアルバスを介して、矢印69BのようにAF制御処理部44に供給する。また、駆動制御部24は、SW26より矢印72のようにAF処理の設定に関するユーザ指示を受け付け、その指示に基づいて、矢印69Aのようにシリアルバスを介してAF制御処理44より供給される制御情報を受け付け、その制御情報に基づいた処理を行い、矢印73のように、レンズ位置等を指示するレンズ駆動制御情報をレンズ駆動部23に供給する。レンズ駆動部23は、そのレンズ駆動制御情報に基づいて、矢印74のようにフォーカスレンズ21を駆動させたり、矢印75のようにウォブリングレンズ22を駆動させたりする。   The drive control unit 24 acquires sensor information such as a focus position and an iris value from the sensor 25 as indicated by an arrow 71, and the sensor information is sent to the AF control processing unit as indicated by an arrow 69B via a serial bus. 44. Further, the drive control unit 24 receives a user instruction regarding the setting of the AF process from the SW 26 as indicated by an arrow 72, and based on the instruction, a control supplied from the AF control process 44 via the serial bus as indicated by an arrow 69A. Information is received, processing based on the control information is performed, and lens drive control information for instructing the lens position and the like is supplied to the lens drive unit 23 as indicated by an arrow 73. The lens drive unit 23 drives the focus lens 21 as indicated by an arrow 74 or drives the wobbling lens 22 as indicated by an arrow 75 based on the lens drive control information.

撮像装置1においては、このようにAF処理が制御される。   In the imaging apparatus 1, the AF process is controlled in this way.

図4は、図3の評価値ピーク探索部42の詳細な構成例を示すブロック図である。   FIG. 4 is a block diagram illustrating a detailed configuration example of the evaluation value peak search unit 42 in FIG. 3.

図4において、評価値ピーク探索部42は、制御部101、評価値保持部102、評価値最大値判定部103、評価値最大値保持部104、評価値ピーク検出部105、減算定数保持部106、および条件定数保持部107を有している。   In FIG. 4, the evaluation value peak searching unit 42 includes a control unit 101, an evaluation value holding unit 102, an evaluation value maximum value determining unit 103, an evaluation value maximum value holding unit 104, an evaluation value peak detecting unit 105, and a subtraction constant holding unit 106. And a condition constant holding unit 107.

制御部101は、評価値ピーク探索部42の各部を制御し、評価値ピークの探索に関する処理を制御する。評価値保持部102は、評価値算出部41より供給される評価値を、一時的に保持し、必要に応じてそれを重心計算部43に供給する。評価値保持部102は、供給される評価値を、予め定められた最大数に達するまで、順次保持していく。そして、保持する評価値の数が最大数に達している場合、評価値保持部102は、最も古い評価値を削除して、新たに供給された評価値を保持する。つまり、評価値保持部102は、評価値算出部41より供給される、最新の、予め定められた所定の数の評価値を、一時的に保持する。   The control unit 101 controls each unit of the evaluation value peak search unit 42 and controls processing related to evaluation value peak search. The evaluation value holding unit 102 temporarily holds the evaluation value supplied from the evaluation value calculating unit 41 and supplies it to the centroid calculating unit 43 as necessary. The evaluation value holding unit 102 sequentially holds the supplied evaluation values until a predetermined maximum number is reached. If the number of evaluation values to be held reaches the maximum number, the evaluation value holding unit 102 deletes the oldest evaluation value and holds the newly supplied evaluation value. That is, the evaluation value holding unit 102 temporarily holds the latest predetermined number of evaluation values supplied from the evaluation value calculating unit 41.

評価値最大値判定部103は、評価値算出部41より供給される新たな評価値を、評価値最大値保持部104に保持されている最大値の候補(現時点における最大値)とその値の大きさを比較し、新たな評価値が最大値の候補となるか否かを判定する。そして、新たに取得した評価値の方が大きく、評価値の候補となると判定した場合、評価値最大値判定部103は、その評価値を評価値最大値保持部104に供給して評価値の最大値の候補(現時点における最大値)として保持させる。   The evaluation value maximum value determination unit 103 uses a new evaluation value supplied from the evaluation value calculation unit 41 as a maximum value candidate (current maximum value) held in the evaluation value maximum value holding unit 104 and the value thereof. The magnitudes are compared to determine whether the new evaluation value is a candidate for the maximum value. When it is determined that the newly acquired evaluation value is larger and is a candidate for the evaluation value, the evaluation value maximum value determination unit 103 supplies the evaluation value to the evaluation value maximum value holding unit 104 to obtain the evaluation value. It is held as a maximum value candidate (current maximum value).

評価値最大値保持部104は、評価値最大値判定部103より供給された評価値を、最大値の候補(現時点における最大値)として一時的に保持し、その値を、必要に応じて、重心計算部43や評価値ピーク検出部105に供給する。   The evaluation value maximum value holding unit 104 temporarily holds the evaluation value supplied from the evaluation value maximum value determining unit 103 as a candidate for the maximum value (maximum value at the present time), and the value is stored as necessary. This is supplied to the centroid calculation unit 43 and the evaluation value peak detection unit 105.

評価値ピーク検出部105は、評価値算出部41より供給される新たな評価値、評価値最大値保持部104に保持されている評価値の最大値の候補、減算定数保持部106に保持されている減算定数、および、条件定数保持部107に保持されている条件定数を取得すると、それらに基づいて評価値ピークの検出を行い、その検出結果を重心計算部43に供給する。また、その際、評価値ピーク検出部105は、制御部101を介して、評価値保持部102に保持されている評価値や、評価値最大値保持部104に保持されている評価値の最大値の候補等を重心計算部43に供給させる。   The evaluation value peak detection unit 105 is held in the new evaluation value supplied from the evaluation value calculation unit 41, the candidate for the maximum value of the evaluation value held in the evaluation value maximum value holding unit 104, and the subtraction constant holding unit 106. When the subtraction constant and the condition constant held in the condition constant holding unit 107 are acquired, the evaluation value peak is detected based on them, and the detection result is supplied to the centroid calculation unit 43. Further, at that time, the evaluation value peak detection unit 105, via the control unit 101, evaluates the evaluation value held in the evaluation value holding unit 102 or the maximum evaluation value held in the evaluation value maximum value holding unit 104. Value candidates and the like are supplied to the gravity center calculation unit 43.

減算定数保持部106は、予め定められた所定の値である減算定数αを保持している。減算定数αは、評価値ピーク検出部105において評価値ピークを検出するための条件式に用いられる、減算用の定数であり、減算定数保持部106は、その値を必要に応じて評価値ピーク検出部105に供給する。   The subtraction constant holding unit 106 holds a subtraction constant α that is a predetermined value. The subtraction constant α is a subtraction constant used in the conditional expression for detecting the evaluation value peak in the evaluation value peak detection unit 105. The subtraction constant holding unit 106 converts the value into the evaluation value peak as necessary. It supplies to the detection part 105.

条件定数保持部107は、予め定められた所定の値である条件定数β(例えば、1.5)を保持している。条件定数βは、評価値ピーク検出部105において評価値ピークを検出するための条件式の閾値に用いられる定数であり、条件定数保持部107は、その値を必要に応じて評価値ピーク検出部105に供給する。   The condition constant holding unit 107 holds a condition constant β (for example, 1.5) that is a predetermined value. The condition constant β is a constant used as a threshold value of a conditional expression for detecting the evaluation value peak in the evaluation value peak detection unit 105, and the condition constant holding unit 107 converts the value as needed into the evaluation value peak detection unit. It supplies to 105.

次に動作について説明する。   Next, the operation will be described.

評価値算出部41は、撮像装置1の取り込み画像に対して評価値を算出すると、その新たな評価値を評価値ピーク探索部42の評価値保持部102、評価値最大値判定部103、および評価値最大値保持部104に供給する。評価値保持部102は、その供給された新たな評価値を保持する。既に評価値を最大数保持している場合は、評価値保持部102は、最も古い評価値を削除してから、供給された新たな評価値を保持する。   When the evaluation value calculation unit 41 calculates the evaluation value for the captured image of the imaging device 1, the evaluation value holding unit 102 of the evaluation value peak search unit 42, the evaluation value maximum value determination unit 103, and The evaluation value is supplied to the maximum evaluation value holding unit 104. The evaluation value holding unit 102 holds the supplied new evaluation value. When the maximum number of evaluation values is already held, the evaluation value holding unit 102 deletes the oldest evaluation value and then holds the new evaluation value supplied.

また、新たな評価値を供給された評価値最大値判定部103は、その新たな評価値の大きさを評価値最大値保持部104に保持されている評価値の最大値の候補と比較し、新たな評価値の方が大きいと判定した場合、その新たな評価値を評価値最大値保持部104に供給して保持させる。また、評価値の最大値の候補の方が大きいと判定した場合、評価値最大値判定部103は、評価値ピーク検出部105にその旨を通知する。   Further, the evaluation value maximum value determination unit 103 supplied with the new evaluation value compares the size of the new evaluation value with the candidate of the maximum value of the evaluation value held in the evaluation value maximum value holding unit 104. When it is determined that the new evaluation value is larger, the new evaluation value is supplied to the evaluation value maximum value holding unit 104 and held. If it is determined that the candidate for the maximum evaluation value is larger, the evaluation value maximum value determination unit 103 notifies the evaluation value peak detection unit 105 to that effect.

評価値ピーク検出部105は、評価値最大値判定部103より通知を受けると、評価値算出部41より供給された新たな評価値E、評価値最大値保持部104が保持している評価値の最大値の候補Emax、減算定数保持部106に保持されている減算定数α、および条件定数保持部107に保持されている条件定数βを取得し、それらに基づいて、以下の式(3)に示されるような条件式を作成する。   When the evaluation value peak detection unit 105 receives a notification from the evaluation value maximum value determination unit 103, the new evaluation value E supplied from the evaluation value calculation unit 41 and the evaluation value held by the evaluation value maximum value holding unit 104 The maximum value candidate Emax, the subtraction constant α held in the subtraction constant holding unit 106, and the condition constant β held in the condition constant holding unit 107 are obtained, and based on these, the following formula (3) is obtained: Create a conditional expression as shown in.

(Emax−α)/(E−α)>β ・・・(3)   (Emax−α) / (E−α)> β (3)

この条件式が満たされると判定した場合、つまり、評価値の最大値の候補と減算定数の差分値(Emax−α)が、新たな(現在の)評価値と減算定数の差分値(E−α)の所定の倍数(β)を越えるまで、現在の評価値が低下したと判定した場合、評価値ピーク検出部105は、評価値の最大値の候補Emaxを評価値のピークとして検出する。そして、評価値ピーク検出部105は、その検出結果を評価値保持部102、評価値最大値保持部104、および重心計算部43に供給する。評価値保持部102は、その検出結果に基づいて、必要な評価値を重心計算部43に供給する。評価値最大値保持部104は、その検出結果に基づいて、保持している評価値の最大値の候補を重心計算部43に供給する。重心計算部43は、評価値ピーク検出部105より検出結果を取得すると、評価値保持部102より供給された評価値と、評価値最大値保持部104より供給された評価値の最大値の候補に基づいて重心計算を行い、評価値の真のピークを検出する。   If it is determined that this conditional expression is satisfied, that is, the difference value (Emax−α) between the candidate for the maximum evaluation value and the subtraction constant is the difference value (E−) between the new (current) evaluation value and the subtraction constant. When it is determined that the current evaluation value has decreased until a predetermined multiple (α) of α) is exceeded, the evaluation value peak detection unit 105 detects the candidate Emax of the maximum evaluation value as a peak of the evaluation value. Then, the evaluation value peak detection unit 105 supplies the detection result to the evaluation value holding unit 102, the evaluation value maximum value holding unit 104, and the centroid calculation unit 43. The evaluation value holding unit 102 supplies a necessary evaluation value to the centroid calculating unit 43 based on the detection result. The evaluation value maximum value holding unit 104 supplies a candidate of the maximum value of the evaluation value held to the centroid calculation unit 43 based on the detection result. When the center-of-gravity calculation unit 43 acquires the detection result from the evaluation value peak detection unit 105, the evaluation value supplied from the evaluation value holding unit 102 and the candidate of the maximum value of the evaluation value supplied from the evaluation value maximum value holding unit 104 The center of gravity is calculated based on, and the true peak of the evaluation value is detected.

また、式(3)が満たされないと判定した場合、評価値ピーク検出部105は、その旨を制御部101に通知する。制御部101は、その通知に基づいて、評価値算出部41に新たな評価値を算出させる。   When it is determined that the expression (3) is not satisfied, the evaluation value peak detection unit 105 notifies the control unit 101 to that effect. Based on the notification, the control unit 101 causes the evaluation value calculation unit 41 to calculate a new evaluation value.

つまり、評価値ピーク検出部105は、図5に示されるように、評価値の最大値Emax、ノイズ成分の最大値n_max、およびノイズ成分の最小値n_minに対して、減算定数αをオフセットとして利用する。このようにすることにより、評価値ピーク検出部105は、全ての評価値に含まれるノイズ成分を除去することができ、評価値全体に含まれるノイズ成分の割合を削減することができる。つまり、評価値ピーク検出部105は、減算定数αを削減することにより、いかに説明するように、ピーク検出の感度を向上させ、マージンを大きくすることができる。   That is, as shown in FIG. 5, the evaluation value peak detection unit 105 uses the subtraction constant α as an offset for the maximum value Emax of the evaluation value, the maximum value n_max of the noise component, and the minimum value n_min of the noise component. To do. By doing in this way, the evaluation value peak detection part 105 can remove the noise component contained in all the evaluation values, and can reduce the ratio of the noise component contained in the whole evaluation value. That is, the evaluation value peak detection unit 105 can improve the sensitivity of peak detection and increase the margin as described below by reducing the subtraction constant α.

評価値ピークの探索においては、上述したように、評価値ピークを正しく検出するために、以下の式(4)および式(5)に示される条件式が満たされていなければならない。   In the search for the evaluation value peak, as described above, in order to correctly detect the evaluation value peak, the following conditional expressions (4) and (5) must be satisfied.

Emax / n_min > β ・・・(4)
n_max / n_min ≦ β ・・・(5)
ただし、βは定数
Emax / n_min> β (4)
n_max / n_min ≦ β (5)
Where β is a constant

つまり、Emax / n_minの値とn_max / n_minの値との差が大きいほど(2つの値の開きが大きいほど)、評価値ピーク探索における誤動作に対するマージンが高くなることになる。つまり、より低い評価値ピークに対する検出能力が向上することになる。   That is, the larger the difference between the value of Emax / n_min and the value of n_max / n_min (the larger the difference between the two values), the higher the margin for malfunction in the evaluation value peak search. That is, the detection capability for a lower evaluation value peak is improved.

式(4)および式(5)に示される場合の条件式による、従来の方法の場合のマージンMg1は以下の式(6)のように示される。   The margin Mg1 in the case of the conventional method according to the conditional expressions shown in the expressions (4) and (5) is expressed as the following expression (6).

Mg1=(Emax / n_min)/(n_max / n_min)
=Emax / n_max ・・・(6)
Mg1 = (Emax / n_min) / (n_max / n_min)
= Emax / n_max (6)

これに対して評価値ピーク検出部105は、Emax,n_max、およびn_minのそれぞれから減算定数αを減算するので、そのマージンMg2は以下の式(7)のように示される。   On the other hand, since the evaluation value peak detection unit 105 subtracts the subtraction constant α from each of Emax, n_max, and n_min, the margin Mg2 is expressed by the following equation (7).

Mg2=(Emax−α)/(n_max−α) ・・・(7)   Mg2 = (Emax−α) / (n_max−α) (7)

従って、Mg2とMg1の差Mg3は、以下の(8)のように示される。   Therefore, the difference Mg3 between Mg2 and Mg1 is shown as (8) below.

Mg3=Mg2−Mg1
={(Emax−α)/(n_max−α)}−(Emax / n_max)
=α(Emax−n_max)/(n_max×(n_max−α))>0 ・・・(8)
Mg3 = Mg2-Mg1
= {(Emax−α) / (n_max−α)} − (Emax / n_max)
= Α (Emax−n_max) / (n_max × (n_max−α))> 0 (8)

このように、評価値ピーク検出部105の方法の場合の方が、従来の方法の場合よりもマージンが大きい。つまり、評価値ピーク検出部105は、上述した評価値ピークの検索方法を用いることにより、より高感度な評価値ピーク探索を行うことができる。すなわち、撮像装置1は、評価値ピーク検出感度を向上させ、合焦能力を向上させることができる。   Thus, the margin of the method of the evaluation value peak detection unit 105 is larger than that of the conventional method. That is, the evaluation value peak detection unit 105 can perform evaluation value peak search with higher sensitivity by using the above-described evaluation value peak search method. That is, the imaging device 1 can improve the evaluation value peak detection sensitivity and improve the focusing ability.

次に、上述した各処理の流れについて説明する。最初に、図6のフローチャートを参照して、AF制御部13により、上述したAF処理により焦点を合焦させるAF制御処理の流れの例を説明する。   Next, the flow of each process described above will be described. First, an example of the flow of an AF control process in which the AF control unit 13 focuses by the above-described AF process will be described with reference to the flowchart of FIG.

信号処理部33より画像信号(フィールド画像またはフレーム画像)が供給されると、AF制御部13の評価値算出部41は、ステップS1において、評価値を算出する。評価値ピーク探索部42は、ステップ2において評価値ピーク探索処理を実行する。評価値ピーク探索処理の詳細については、図7のフローチャートを参照して後述する。   When an image signal (field image or frame image) is supplied from the signal processing unit 33, the evaluation value calculation unit 41 of the AF control unit 13 calculates an evaluation value in step S1. The evaluation value peak search unit 42 executes an evaluation value peak search process in step 2. Details of the evaluation value peak search process will be described later with reference to the flowchart of FIG.

評価値ピーク探索処理を終了すると評価値ピーク探索部42は、処理をステップS3に進め、ステップS2の評価値ピーク探索処理により評価値ピークを検出したか否かを判定する。評価値ピークを検出したと判定した場合、評価値ピーク探索部42は、処理をステップS4に進める。ステップS4において重心計算部43は重心計算を行う。また、AF制御処理部44は、ステップS5において、フォーカス位置制御処理を実行し、焦点を合焦させるとAF制御処理を終了する。   When the evaluation value peak search process ends, the evaluation value peak search unit 42 advances the process to step S3, and determines whether or not an evaluation value peak is detected by the evaluation value peak search process in step S2. If it is determined that the evaluation value peak has been detected, the evaluation value peak searching unit 42 advances the process to step S4. In step S4, the center of gravity calculation unit 43 performs center of gravity calculation. In step S5, the AF control processing unit 44 executes the focus position control process, and when the focus is achieved, the AF control process ends.

また、ステップS3において評価値ピークを検出していないと判定した場合、評価値ピーク探索部42は、ステップS4およびステップS5の処理を省略し、AF制御処理を終了する。   If it is determined in step S3 that no evaluation value peak has been detected, the evaluation value peak searching unit 42 omits steps S4 and S5 and ends the AF control process.

次に、図7のフローチャートを参照して、図6のステップS2において実行される評価値ピーク探索処理の詳細な流れの例について図7のフローチャートを参照して説明する。   Next, an example of a detailed flow of the evaluation value peak search process executed in step S2 of FIG. 6 will be described with reference to the flowchart of FIG.

評価値算出部41より新たな評価値を供給された評価値保持部102は、ステップS21において、新たな評価値が保持可能であるか否かを判定する。既に最大数の評価値を保持しており、保持不可能であると判定した場合、評価値保持部102は、処理をステップS22に進め、最も古い評価値を削除し、ステップS23において、その新たな評価値を保持する。また、ステップS21において、新たな評価値が保持可能であると判定した場合、評価値保持部102は、ステップS22の処理を省略し、ステップS23に処理を進め、その新たな評価値を、現在保持されている評価値に追加的に保持する。   The evaluation value holding unit 102 supplied with a new evaluation value from the evaluation value calculating unit 41 determines whether or not a new evaluation value can be held in step S21. When it is determined that the maximum number of evaluation values is already held and cannot be held, the evaluation value holding unit 102 proceeds to step S22 to delete the oldest evaluation value, and in step S23, the new evaluation value is updated. Holds an evaluation value. If it is determined in step S21 that a new evaluation value can be held, the evaluation value holding unit 102 skips the process of step S22, proceeds to step S23, and sets the new evaluation value to the current value. In addition to the stored evaluation value.

また、評価値算出部41よりその新たな評価値を供給された評価値最大値判定部103は、ステップS24において、新たな評価値を、評価値最大値保持部104に保持されている評価値の最大値の候補と比較し、ステップS25において、その比較結果から、新たな評価値が評価値の最大値の候補より大きいか否かを判定する。新たな評価値が評価値の最大値の候補より大きいと判定した場合、評価値最大値判定部103は、処理をステップS26に進め、その新たな評価値を評価値最大値保持部104に供給して保持させる。ステップS26の処理を終了すると、制御部101は、評価値ピーク探索処理を終了し、処理を図6のステップS2に戻し、ステップS3以降の処理を実行させる。   The evaluation value maximum value determination unit 103 supplied with the new evaluation value from the evaluation value calculation unit 41 receives the new evaluation value in the evaluation value stored in the evaluation value maximum value holding unit 104 in step S24. In step S25, it is determined from the comparison result whether the new evaluation value is larger than the maximum evaluation value candidate. When it is determined that the new evaluation value is larger than the candidate for the maximum value of the evaluation value, the evaluation value maximum value determination unit 103 advances the process to step S26 and supplies the new evaluation value to the evaluation value maximum value holding unit 104. And hold it. When the process of step S26 ends, the control unit 101 ends the evaluation value peak search process, returns the process to step S2 of FIG. 6, and causes the processes after step S3 to be executed.

また、図7のステップS25において、比較結果から、評価値の最大値の候補が新たな評価値より大きいと判定した場合、評価値最大値判定部103は、処理をステップS27に進める。ステップS27において、評価値ピーク検出部105は、新たな評価値E、評価値の最大値の候補Emax、減算定数α、および条件定数βを用いて評価値ピーク検出処理を行う。制御部101は、ステップS27の処理を終了すると、処理を図6のステップS2に戻し、ステップS3以降の処理を実行させる。   In Step S25 of FIG. 7, when it is determined from the comparison result that the candidate for the maximum evaluation value is larger than the new evaluation value, the evaluation value maximum value determination unit 103 advances the process to Step S27. In step S27, the evaluation value peak detection unit 105 performs the evaluation value peak detection process using the new evaluation value E, the candidate value Emax of the maximum evaluation value, the subtraction constant α, and the condition constant β. When the process of step S27 ends, the control unit 101 returns the process to step S2 of FIG. 6 and executes the processes after step S3.

以上のように各処理を行うことにより、AF制御部13は、より高感度な評価値ピーク探索を行うことができる。すなわち、撮像装置1は、評価値ピーク検出感度を向上させ、合焦能力を向上させることができる。   By performing each processing as described above, the AF control unit 13 can perform evaluation value peak search with higher sensitivity. That is, the imaging apparatus 1 can improve the evaluation value peak detection sensitivity and improve the focusing ability.

なお、以上においては、減算定数αを予め定められた所定の値として説明したが、これに限らず、例えば、評価値ピーク探索部において設定されるようにしてもよい。その場合、減算定数αは、上述したノイズレベルの最大値n_maxと最小値n_minに基づいて設定される。   In the above description, the subtraction constant α has been described as a predetermined value. In this case, the subtraction constant α is set based on the above-described maximum value n_max and minimum value n_min of the noise level.

図8は、図3の評価値ピーク探索部の、他の詳細な構成例を示すブロック図である。   FIG. 8 is a block diagram illustrating another detailed configuration example of the evaluation value peak search unit in FIG. 3.

図8において、評価値ピーク探索部142は、図4の評価値ピーク探索部42の構成に加えて、ノイズレベル最大値保持部151、ノイズレベル最小値保持部152、および減算定数設定部153を有しており、減算定数保持部106に保持される減算定数αを設定することができるようになされている。   In FIG. 8, the evaluation value peak searching unit 142 includes a noise level maximum value holding unit 151, a noise level minimum value holding unit 152, and a subtraction constant setting unit 153 in addition to the configuration of the evaluation value peak searching unit 42 in FIG. And a subtraction constant α held in the subtraction constant holding unit 106 can be set.

ノイズレベル最大値保持部151は、評価値に含まれるノイズレベルの最大値であるノイズレベル最大値n_maxを保持する。このノイズレベル最大値n_maxは、予め定められた値であり、例えば、オートブラック調整時の黒画像のように、焦点が明らかに合焦していない(大ぼけ状態の)撮影画像における評価値(すなわち、ノイズレベル)の最大値として代表的な値が設定される。   The noise level maximum value holding unit 151 holds a noise level maximum value n_max that is the maximum value of the noise level included in the evaluation value. This noise level maximum value n_max is a predetermined value. For example, an evaluation value (in a blurred state) of a photographed image that is not clearly focused (such as a black image during auto black adjustment) ( That is, a representative value is set as the maximum value of the noise level.

ノイズレベル最小値保持部152は、評価値に含まれるノイズレベルの最小値であるノイズレベル最小値n_minを保持する。このノイズレベル最小値n_minも、予め定められた値であり、例えば、オートブラック調整時の黒画像のように、焦点が明らかに合焦していない(大ぼけ状態の)撮影画像における評価値(すなわち、ノイズレベル)の最小値として代表的な値が設定される。   The noise level minimum value holding unit 152 holds a noise level minimum value n_min that is the minimum value of the noise level included in the evaluation value. The noise level minimum value n_min is also a predetermined value. For example, an evaluation value (in a blurred state) of a photographed image that is not clearly in focus, such as a black image during auto black adjustment ( That is, a representative value is set as the minimum value of the noise level.

減算定数設定部153は、条件定数保持部107に保持される条件定数β、ノイズレベル最大値保持部151より取得したノイズレベル最大値n_max、および、ノイズレベル最小値保持部152より取得したノイズレベル最小値n_minに基づいて、以下の式(9)に示される条件式を満たすように、減算定数αが設定される。   The subtraction constant setting unit 153 includes the condition constant β held in the condition constant holding unit 107, the noise level maximum value n_max acquired from the noise level maximum value holding unit 151, and the noise level acquired from the noise level minimum value holding unit 152. Based on the minimum value n_min, the subtraction constant α is set so as to satisfy the conditional expression shown in the following expression (9).

(n_max−α)/(n_min−α)≦β ・・・(9)   (N_max−α) / (n_min−α) ≦ β (9)

なお、一般的には、減算定数αは、なるべく(n_max−α)/(n_min−α)が条件定数βに近づくような値の方が望ましい。   In general, the subtraction constant α is preferably a value such that (n_max−α) / (n_min−α) approaches the condition constant β as much as possible.

減算定数設定部153は、このように設定した減算定数αを減算定数保持部106に供給し、保持させる。評価値ピーク検出部105は、その減算定数保持部106に保持された減算定数αを用いて、図4乃至図7を参照して上述したように評価値のピークを探索する。   The subtraction constant setting unit 153 supplies the subtraction constant α set in this way to the subtraction constant holding unit 106 and holds it. The evaluation value peak detection unit 105 searches for the peak of the evaluation value using the subtraction constant α held in the subtraction constant holding unit 106 as described above with reference to FIGS.

図9のフローチャートを参照して、減算定数設定部153による減算定数設定処理の流れを説明する。   The flow of the subtraction constant setting process by the subtraction constant setting unit 153 will be described with reference to the flowchart of FIG.

減算定数設定部153は、ステップS41において、条件定数保持部107より条件定数βを取得し、ステップS42において、ノイズレベル最大値保持部151よりノイズレベル最大値を取得し、ステップS43において、ノイズレベル最小値保持部152よりノイズレベル最小値を取得する。   In step S41, the subtraction constant setting unit 153 acquires the condition constant β from the condition constant holding unit 107, in step S42, acquires the noise level maximum value from the noise level maximum value holding unit 151, and in step S43, the noise level. The minimum noise level value is acquired from the minimum value holding unit 152.

減算定数設定部153は、ステップS44において、例えば式(9)に示されるような減算定数αに関する条件式を作成し、ステップS45において、その条件式に基づいて減算定数αを決定し、それを減算定数保持部106に供給する。減算定数保持部106は、ステップS46において、その供給された減算定数αを保持し、減算定数設定処理を終了する。   In step S44, the subtraction constant setting unit 153 creates a conditional expression related to the subtraction constant α as shown in, for example, the equation (9). In step S45, the subtraction constant setting unit 153 determines the subtraction constant α based on the conditional expression. This is supplied to the subtraction constant holding unit 106. In step S46, the subtraction constant holding unit 106 holds the supplied subtraction constant α, and ends the subtraction constant setting process.

このように減算定数αを設定可能にすることにより、評価値ピーク探索部142は、例えば、条件定数保持部107、ノイズレベル最大値保持部151、またはノイズレベル最小値保持部152が交換される等して、上述した条件定数βや、ノイズレベルの最大値または最小値の値が変更された場合に、その値を減算定数αに反映することができる。   By making the subtraction constant α settable in this way, the evaluation value peak searching unit 142 is replaced with, for example, the condition constant holding unit 107, the noise level maximum value holding unit 151, or the noise level minimum value holding unit 152. For example, when the condition constant β described above or the maximum or minimum value of the noise level is changed, the value can be reflected in the subtraction constant α.

なお、減算定数設定部153が、これら以外のパラメータも含めて減算定数αを決定するようにしてももちろんよい。また、以上においては、ノイズレベル最大値保持部151が、ノイズレベルの最大値として代表的な値をノイズレベル最大値として保持し、ノイズレベル最小値保持部152が、ノイズレベルの最小値として代表的な値をノイズレベル最小値として保持するように説明した。しかしながら、通常、個々のカメラ(撮像装置)においては、その特性(性能)にばらつき(個体差)が発生する。つまり、通常、ノイズレベルも、測定するカメラによってばらつきが生じる。従って、このようなばらつきを考慮し、ノイズレベル最大値保持部151が、このようなばらつく全ノイズレベルの最大値n_max_maxをノイズレベル最大値として保持し、ノイズレベル最小値保持部152が、このようなばらつく全ノイズレベルの最小値n_min_minをノイズレベル最小値として保持するようにしてもよい。   Of course, the subtraction constant setting unit 153 may determine the subtraction constant α including parameters other than these. Further, in the above, the noise level maximum value holding unit 151 holds a representative value as the noise level maximum value as the noise level maximum value, and the noise level minimum value holding unit 152 represents as the noise level minimum value. It was explained that the typical value is held as the minimum noise level. However, usually, variations (individual differences) occur in the characteristics (performance) of individual cameras (imaging devices). In other words, the noise level usually varies depending on the camera to be measured. Therefore, in consideration of such variations, the noise level maximum value holding unit 151 holds the maximum value n_max_max of all the varying noise levels as the noise level maximum value, and the noise level minimum value holding unit 152 does You may make it hold | maintain the minimum value n_min_min of the total noise level which fluctuates as a noise level minimum value.

その場合、減算定数設定部153は、以下の式(10)に示されるような条件式を作成し、この条件式を満たすように減算定数αを設定する。   In that case, the subtraction constant setting unit 153 creates a conditional expression as shown in the following expression (10), and sets the subtraction constant α so as to satisfy this conditional expression.

(n_max_max−α)/(n_min_min−α)≦β ・・・(10)   (N_max_max−α) / (n_min_min−α) ≦ β (10)

なお、さらに、評価値ピーク探索部がノイズレベルを測定することができるようにしてもよい。   Furthermore, the evaluation value peak searching unit may be able to measure the noise level.

図10は、図3の評価値ピーク探索部の、さらに他の詳細な構成例を示すブロック図である。   FIG. 10 is a block diagram showing still another detailed configuration example of the evaluation value peak search unit of FIG.

図10において、評価値ピーク探索部242は、図8の評価値ピーク探索部142の構成に加えて、さらに、ノイズレベル測定部251を有しており、ノイズレベル最大値保持部151およびノイズレベル最小値保持部152に保持される値(ノイズレベル最大値およびノイズレベル最小値)を設定することができるようになされている。   In FIG. 10, the evaluation value peak search unit 242 further includes a noise level measurement unit 251 in addition to the configuration of the evaluation value peak search unit 142 of FIG. 8, and includes a noise level maximum value holding unit 151 and a noise level. Values held in the minimum value holding unit 152 (maximum noise level value and minimum noise level value) can be set.

ノイズレベル測定部251は、例えばAF制御処理部44を制御し、オートブラック調整等のノイズレベルを測定可能な所定の処理を実行させる。AF制御処理部44は、その指示に基づいて、ノイズレベルを測定するための所定の処理を実行する。評価値算出部41は、その処理により取り込まれた画像信号に対して評価値を算出し、それを評価値ピーク探索部242のノイズレベル測定部251に供給する。   The noise level measurement unit 251 controls the AF control processing unit 44, for example, to execute a predetermined process capable of measuring the noise level such as auto black adjustment. The AF control processing unit 44 executes a predetermined process for measuring the noise level based on the instruction. The evaluation value calculation unit 41 calculates an evaluation value for the image signal captured by the processing, and supplies it to the noise level measurement unit 251 of the evaluation value peak search unit 242.

ノイズレベル測定部251は、その評価値からノイズレベルを測定し、その最大値と最小値を抽出し、最大値をノイズレベル最大値保持部151に供給して保持させ、最小値をノイズレベル最小値保持部152に供給して保持させる。   The noise level measurement unit 251 measures the noise level from the evaluation value, extracts the maximum value and the minimum value, supplies the maximum value to the noise level maximum value holding unit 151, holds it, and sets the minimum value to the minimum noise level. The value is supplied to and held in the value holding unit 152.

減算定数設定部153は、このように設定されたノイズレベル最大値とノイズレベル最小値を用いて上述したように減算定数を設定する。   The subtraction constant setting unit 153 sets the subtraction constant as described above using the noise level maximum value and the noise level minimum value set in this way.

図11のフローチャートを参照して、ノイズレベル測定部251によるノイズレベル設定処理の流れを説明する。   The flow of the noise level setting process by the noise level measurement unit 251 will be described with reference to the flowchart of FIG.

ノイズレベル測定部251は、ステップS61において、評価値算出部41より供給される評価値を取得し、ノイズレベルを測定する。ステップS62において、ノイズレベル測定部251は、その測定結果に基づいて、ノイズレベルの最大値n_maxを設定し、それをノイズレベル最大値保持部151に供給する。ノイズレベル最大値保持部151は、ステップS63において、そのノイズレベル最大値n_maxを保持する。   In step S61, the noise level measurement unit 251 acquires the evaluation value supplied from the evaluation value calculation unit 41 and measures the noise level. In step S <b> 62, the noise level measurement unit 251 sets the maximum noise level n_max based on the measurement result, and supplies it to the noise level maximum value holding unit 151. In step S63, the noise level maximum value holding unit 151 holds the noise level maximum value n_max.

また、ステップS64において、ノイズレベル測定部251は、測定結果に基づいて、ノイズレベルの最小値n_minを設定し、それをノイズレベル最小値保持部152に供給する。ノイズレベル最小値保持部152は、ステップS65において、そのノイズレベル最小値n_minを保持する。   In step S <b> 64, the noise level measurement unit 251 sets the minimum noise level n_min based on the measurement result, and supplies it to the noise level minimum value holding unit 152. In step S65, the noise level minimum value holding unit 152 holds the noise level minimum value n_min.

ステップS65の処理が終了すると、ノイズレベル測定部251は、ノイズレベル設定処理を終了する。   When the process of step S65 ends, the noise level measurement unit 251 ends the noise level setting process.

以上のようにして、評価値ピーク探索部242は、ノイズレベルの最大値および最小値を設定することができる。これにより、撮像装置1は、例えば経年変化や環境変化等に対する耐性の強い評価値ピークの探索を行うことができる。すなわち、撮像装置1は、合焦能力を向上させることができる。   As described above, the evaluation value peak searching unit 242 can set the maximum value and the minimum value of the noise level. Thereby, the imaging device 1 can search for an evaluation value peak having strong resistance to, for example, secular change and environmental change. That is, the imaging device 1 can improve the focusing ability.

なお、例えば、式(3)等において、減算定数αの代わりに評価値ピーク探索期間内において得られる評価値の最小値に基づいて決定される値(例えば、その最小値の定数倍(例えば1/2倍等))を減算するようにしてももちろんよい。   For example, in the equation (3) or the like, a value determined based on the minimum value of the evaluation value obtained within the evaluation value peak search period instead of the subtraction constant α (for example, a constant multiple of the minimum value (for example, 1 Of course, it is also possible to subtract /).

さらに、以上において説明した重心処理部43を省略し、評価値ピーク探索部42において探索されたピーク(サンプリング周波数がフィールド単位となるピーク)を評価値ピークとするようにしてもよい。その場合、AF制御処理部44は、評価値ピーク探索部42において探索されたそのピークに対応するフォーカス位置に焦点を合焦させるようにAF駆動部11を制御する。   Furthermore, the center-of-gravity processing unit 43 described above may be omitted, and a peak searched by the evaluation value peak searching unit 42 (a peak at which the sampling frequency is a field unit) may be used as the evaluation value peak. In that case, the AF control processing unit 44 controls the AF driving unit 11 to focus on the focus position corresponding to the peak searched by the evaluation value peak searching unit 42.

上述した一連の処理は、ハードウェアにより実行させることもできるし、ソフトウエアにより実行させることもできる。上述した一連の処理をソフトウエアにより実行させる場合には、そのソフトウエアを構成するプログラムが、ネットワークや記録媒体からインストールされる。   The series of processes described above can be executed by hardware or can be executed by software. When the above-described series of processing is executed by software, a program constituting the software is installed from a network or a recording medium.

この記録媒体は、例えば、上述したように、装置本体とは別に、ユーザにプログラムを配信するために配布されるリムーバブルメディア57により構成されるだけでなく、装置本体に予め組み込まれた状態でユーザに配信される、プログラムが記録されているROM51や、記憶部54に含まれるハードディスクなどで構成される。   For example, as described above, this recording medium is not only composed of the removable medium 57 distributed to distribute the program to the user, but also the user in a state of being incorporated in the apparatus main body in advance. The ROM 51 that stores the program and the hard disk included in the storage unit 54 are configured.

なお、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   In the present specification, the step of describing the program recorded on the recording medium is not limited to the processing performed in chronological order according to the described order, but is not necessarily performed in chronological order. It also includes processes that are executed individually.

また、本明細書において、1つの装置として説明した構成を分割し、複数の装置として構成するようにしてもよい。逆に、以上において複数の装置として説明した構成をまとめて1つの装置として構成されるようにしてもよい。また、上述した以外の構成を付加するようにしてももちろんよい。さらに、装置全体としての構成や動作が実質的に同じであれば、ある部分の構成の一部を他の部分の構成に含めるようにしてもよい。   Further, in this specification, the configuration described as one device may be divided and configured as a plurality of devices. Conversely, the configurations described above as a plurality of devices may be combined into a single device. Of course, configurations other than those described above may be added. Further, if the configuration and operation of the entire apparatus are substantially the same, a part of the configuration of a certain part may be included in the configuration of the other part.

評価値ピークの検索に関するパラメータを説明する図である。It is a figure explaining the parameter regarding the search of an evaluation value peak. 画像による評価値のノイズレベルの違いを説明する図である。It is a figure explaining the difference in the noise level of the evaluation value by an image. 本発明を適用した撮像装置の一実施形態に係る構成例を示す図である。It is a figure which shows the structural example which concerns on one Embodiment of the imaging device to which this invention is applied. 図3の評価値ピーク探索部の詳細な構成例を示すブロック図である。It is a block diagram which shows the detailed structural example of the evaluation value peak search part of FIG. 減算定数αを説明する図である。It is a figure explaining the subtraction constant (alpha). AF制御処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of AF control processing. 評価値ピーク探索処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of an evaluation value peak search process. 図3の評価値ピーク探索部の他の構成例を示すブロック図である。It is a block diagram which shows the other structural example of the evaluation value peak search part of FIG. 減算定数設定処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of a subtraction constant setting process. 図3の評価値ピーク探索部の、さらに他の構成例を示すブロック図である。It is a block diagram which shows the further another structural example of the evaluation value peak search part of FIG. ノイズレベル設定処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of a noise level setting process.

符号の説明Explanation of symbols

1 撮像装置, 11 AF駆動部, 12 画像処理部, 13 AF制御部, 21 フォーカスレンズ, 22 ウォブリングレンズ, 23 レンズ駆動部, 24 駆動制御部, 33 信号処理部, 41 評価値算出部, 42 評価値ピーク探索部, 43 重心計算部, 44 AF制御処理部, 101 制御部, 102 評価値保持部, 103 評価値最大値判定部, 104 評価値最大値保持部, 105 評価値ピーク検出部, 106 減算定数保持部, 107 条件定数保持部, 142 評価値ピーク探索部, 151 ノイズレベル最大値保持部, 152 ノイズレベル最小値保持部, 153 減算定数設定部, 242 評価値ピーク探索部, 251 ノイズレベル測定部   DESCRIPTION OF SYMBOLS 1 Imaging device, 11 AF drive part, 12 Image processing part, 13 AF control part, 21 Focus lens, 22 Wobbling lens, 23 Lens drive part, 24 Drive control part, 33 Signal processing part, 41 Evaluation value calculation part, 42 Evaluation Value peak search unit, 43 center of gravity calculation unit, 44 AF control processing unit, 101 control unit, 102 evaluation value holding unit, 103 evaluation value maximum value determination unit, 104 evaluation value maximum value holding unit, 105 evaluation value peak detection unit, 106 Subtraction constant holding unit, 107 Condition constant holding unit, 142 Evaluation value peak searching unit, 151 Noise level maximum value holding unit, 152 Noise level minimum value holding unit, 153 Subtraction constant setting unit, 242 Evaluation value peak searching unit, 251 Noise level Measurement unit

Claims (10)

撮像装置の光学素子を駆動させて被写体を撮像する際のフォーカス位置を調整する駆動部の制御に関する処理を実行する制御装置において、
前記フォーカス位置の調整用のパラメータであり、前記被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出手段と、
前記評価値算出手段により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、前記評価値算出手段により今回算出された現フィールドに対応する現在の評価値より前記減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる前記最大値を前記評価値のピークとして探索する評価値ピーク探索手段と
を備えることを特徴とする制御装置。
In a control device that executes processing related to control of a drive unit that adjusts a focus position when driving an optical element of an imaging device to image a subject,
An evaluation value calculating unit that is an adjustment parameter for the focus position and calculates an evaluation value for evaluating the degree of blur of the captured image of the subject for each field image;
A subtraction result obtained by subtracting a subtraction constant that is a maximum value of the evaluation value group corresponding to the past field image group calculated in the past by the evaluation value calculation unit and is a predetermined value is the evaluation value calculation. The peak value of the evaluation value is searched for the maximum value that is larger than a condition constant that is a predetermined ratio with respect to a subtraction result obtained by subtracting the subtraction constant from the current evaluation value corresponding to the current field calculated this time by means. An evaluation value peak searching means for performing control.
前記評価値ピーク探索手段は、
前記過去のフィールド画像群に対応する評価値群を保持する評価値群保持手段と、
前記最大値を保持する評価値最大値保持手段と、
前記評価値最大値保持手段により保持されている前記最大値と、前記現在の評価値との値の大きさを比較し、大きい方を最大値として前記評価値最大値保持手段に保持させる評価値最大値判定手段と、
前記減算定数を保持する減算定数保持手段と、
前記条件定数を保持する条件定数保持手段と、
前記評価値最大値保持手段により保持されている前記最大値、前記評価値算出手段により今回算出された前記現在の評価値、前記減算定数保持手段により保持されている前記減算定数、および前記条件定数保持手段により保持されている前記条件定数が、所定の条件式を満たすか否かを判定することにより、前記評価値のピークを検出する評価値ピーク検出手段と
を備えることを特徴とする請求項1に記載の制御装置。
The evaluation value peak search means includes:
Evaluation value group holding means for holding an evaluation value group corresponding to the past field image group;
Evaluation value maximum value holding means for holding the maximum value;
An evaluation value for comparing the magnitude of the maximum value held by the evaluation value maximum value holding means with the current evaluation value and holding the larger one as the maximum value in the evaluation value maximum value holding means Maximum value judging means;
Subtraction constant holding means for holding the subtraction constant;
Condition constant holding means for holding the condition constant;
The maximum value held by the evaluation value maximum value holding means, the current evaluation value calculated this time by the evaluation value calculation means, the subtraction constant held by the subtraction constant holding means, and the condition constant The evaluation value peak detecting means for detecting the peak of the evaluation value by determining whether or not the condition constant held by the holding means satisfies a predetermined conditional expression. The control apparatus according to 1.
前記評価値ピーク探索手段は、
前記評価値のノイズレベルを測定するノイズレベル測定手段と、
前記ノイズレベル測定手段により測定された前記ノイズレベルの最大値および最小値、並びに前記条件定数に基づいて、前記減算定数を設定する減算定数設定手段と
をさらに備えることを特徴とする請求項2に記載の制御装置。
The evaluation value peak search means includes:
Noise level measuring means for measuring the noise level of the evaluation value;
The subtraction constant setting means for setting the subtraction constant based on the maximum and minimum values of the noise level measured by the noise level measurement means and the condition constant, further comprising: The control device described.
前記減算定数設定手段は、前記ノイズレベルの最大値より前記減算定数を減算した減算結果の、前記ノイズレベルの最小値より前記減算定数を減算した減算結果に対する比が前記条件定数以下となるように前記減算定数を設定する
ことを特徴とする請求項3に記載の制御装置。
The subtraction constant setting means is configured so that a ratio of a subtraction result obtained by subtracting the subtraction constant from the maximum value of the noise level to a subtraction result obtained by subtracting the subtraction constant from the minimum value of the noise level is equal to or less than the condition constant. The control device according to claim 3, wherein the subtraction constant is set.
前記評価値ピーク探索手段は、前記減算定数の代わりに前記評価値のノイズレベルの最小値の定数倍を前記最大値および前記現在の評価値よりそれぞれ減算することにより、前記評価値のピークを探索する
ことを特徴とする請求項1に記載の制御装置。
The evaluation value peak searching means searches for the peak of the evaluation value by subtracting a constant multiple of the minimum value of the noise level of the evaluation value from the maximum value and the current evaluation value instead of the subtraction constant. The control device according to claim 1, wherein:
前記評価値ピーク探索手段により探索された前記ピークに対応する前記フォーカス位置に合焦させるように前記駆動部を制御するフォーカス位置制御手段をさらに備える
ことを特徴とする請求項1に記載の制御装置。
The control apparatus according to claim 1, further comprising a focus position control unit that controls the drive unit so as to focus on the focus position corresponding to the peak searched by the evaluation value peak search unit. .
前記評価値ピーク探索手段により探索された前記ピークと、前記過去のフィールド画像群に対応する評価値群とを用いて重心計算を行う重心計算手段をさらに備え、
前記フォーカス位置制御手段は、前記重心計算手段により検索された、より正確なピークに対応する前記フォーカス位置に合焦させるように前記駆動部を制御する
ことを特徴とする請求項6に記載の制御装置。
Centroid calculation means for performing centroid calculation using the peak searched by the evaluation value peak search means and the evaluation value group corresponding to the past field image group,
The control according to claim 6, wherein the focus position control unit controls the drive unit to focus on the focus position corresponding to a more accurate peak searched by the centroid calculation unit. apparatus.
撮像装置の光学素子を駆動させて被写体を撮像する際のフォーカス位置を調整する駆動部の制御に関する処理を実行する制御装置の制御方法であって、
前記フォーカス位置の調整用のパラメータであり、前記被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出ステップと、
前記評価値算出ステップの処理により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、前記評価値算出ステップの処理により今回算出された現フィールドに対応する現在の評価値より前記減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる前記最大値を前記評価値のピークとして探索する評価値ピーク探索ステップと
を含むことを特徴とする制御方法。
A control method for a control device that executes processing related to control of a drive unit that adjusts a focus position when driving an optical element of an imaging device to image a subject,
An evaluation value calculating step for calculating, for each field image, an evaluation value for evaluating the degree of blur of the captured image of the subject, which is a parameter for adjusting the focus position;
A subtraction result obtained by subtracting a subtraction constant that is a maximum value of the evaluation value group corresponding to the past field image group calculated in the past by the processing of the evaluation value calculation step and that is a predetermined value is the evaluation value. The maximum value that is greater than the condition constant, which is a predetermined ratio, with respect to the subtraction result when the subtraction constant is subtracted from the current evaluation value corresponding to the current field calculated this time by the processing of the value calculation step, is the evaluation value. A control method comprising: an evaluation value peak searching step for searching as a peak.
撮像装置の光学素子を駆動させて被写体を撮像する際のフォーカス位置を調整する駆動部の制御に関する処理をコンピュータに行わせるプログラムであって、
前記フォーカス位置の調整用のパラメータであり、前記被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出ステップと、
前記評価値算出ステップの処理により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、前記評価値算出ステップの処理により今回算出された現フィールドに対応する現在の評価値より前記減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる前記最大値を前記評価値のピークとして探索する評価値ピーク探索ステップと
を含むことを特徴とするプログラム。
A program that causes a computer to perform processing related to control of a drive unit that adjusts a focus position when an optical element of an imaging device is driven to image a subject,
An evaluation value calculating step for calculating, for each field image, an evaluation value for evaluating the degree of blur of the captured image of the subject, which is a parameter for adjusting the focus position;
A subtraction result obtained by subtracting a subtraction constant that is a maximum value of the evaluation value group corresponding to the past field image group calculated in the past by the processing of the evaluation value calculation step and that is a predetermined value is the evaluation value. The maximum value that is greater than the condition constant, which is a predetermined ratio, with respect to the subtraction result when the subtraction constant is subtracted from the current evaluation value corresponding to the current field calculated this time by the processing of the value calculation step, is the evaluation value. An evaluation value peak searching step for searching as a peak of the program.
被写体を撮像する撮像部と、光学素子を駆動させて、前記撮像部により前記被写体を撮像する際のフォーカス位置を調整する駆動部を有するカメラにおいて、
前記フォーカス位置の調整用のパラメータであり、前記被写体の撮像画像のぼけ度合いを評価する評価値をフィールド画像毎に算出する評価値算出手段と、
前記評価値算出手段により過去に算出された、過去のフィールド画像群に対応する評価値群の最大値であって、所定の値である減算定数を減算したときの減算結果が、前記評価値算出手段により今回算出された現フィールドに対応する現在の評価値より前記減算定数を減算したときの減算結果に対して所定の比率である条件定数より大きくなる前記最大値を前記評価値のピークとして探索する評価値ピーク探索手段と、
前記評価値ピーク探索手段により探索された前記ピークに対応する前記フォーカス位置に合焦させるように前記駆動部を制御するフォーカス位置制御手段と
を備えることを特徴とするカメラ。
In a camera having an imaging unit that images a subject, and a drive unit that drives an optical element and adjusts a focus position when imaging the subject by the imaging unit.
An evaluation value calculating unit that is an adjustment parameter for the focus position and calculates an evaluation value for evaluating the degree of blur of the captured image of the subject for each field image;
A subtraction result obtained by subtracting a subtraction constant that is a maximum value of the evaluation value group corresponding to the past field image group calculated in the past by the evaluation value calculation unit and is a predetermined value is the evaluation value calculation. The peak value of the evaluation value is searched for the maximum value that is larger than a condition constant that is a predetermined ratio with respect to a subtraction result obtained by subtracting the subtraction constant from the current evaluation value corresponding to the current field calculated this time by means. Evaluation value peak searching means to perform,
And a focus position control means for controlling the drive unit so as to focus on the focus position corresponding to the peak searched by the evaluation value peak search means.
JP2005118350A 2005-04-15 2005-04-15 Control unit and method thereof, program, and camera Pending JP2006301006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005118350A JP2006301006A (en) 2005-04-15 2005-04-15 Control unit and method thereof, program, and camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005118350A JP2006301006A (en) 2005-04-15 2005-04-15 Control unit and method thereof, program, and camera

Publications (1)

Publication Number Publication Date
JP2006301006A true JP2006301006A (en) 2006-11-02

Family

ID=37469409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005118350A Pending JP2006301006A (en) 2005-04-15 2005-04-15 Control unit and method thereof, program, and camera

Country Status (1)

Country Link
JP (1) JP2006301006A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62163009A (en) * 1986-01-13 1987-07-18 Ricoh Co Ltd Auto focusing device
JPH05284414A (en) * 1992-04-01 1993-10-29 Olympus Optical Co Ltd Autoamtic focusing device
JPH06268895A (en) * 1993-03-12 1994-09-22 Mitsubishi Electric Corp Auto-focusing device
JPH07135596A (en) * 1993-11-11 1995-05-23 Canon Inc Video camera
JPH0815601A (en) * 1994-07-01 1996-01-19 Sony Corp Autofocus circuit
JPH08304697A (en) * 1995-04-28 1996-11-22 Fuji Photo Optical Co Ltd Automatic focusing device
JPH10213736A (en) * 1997-01-30 1998-08-11 Sony Corp Autofocusing device for video camera
JPH10215400A (en) * 1997-01-30 1998-08-11 Sony Corp Automatic focusing device for video camera
JP2001255457A (en) * 2000-03-10 2001-09-21 Sony Corp Image pickup device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62163009A (en) * 1986-01-13 1987-07-18 Ricoh Co Ltd Auto focusing device
JPH05284414A (en) * 1992-04-01 1993-10-29 Olympus Optical Co Ltd Autoamtic focusing device
JPH06268895A (en) * 1993-03-12 1994-09-22 Mitsubishi Electric Corp Auto-focusing device
JPH07135596A (en) * 1993-11-11 1995-05-23 Canon Inc Video camera
JPH0815601A (en) * 1994-07-01 1996-01-19 Sony Corp Autofocus circuit
JPH08304697A (en) * 1995-04-28 1996-11-22 Fuji Photo Optical Co Ltd Automatic focusing device
JPH10213736A (en) * 1997-01-30 1998-08-11 Sony Corp Autofocusing device for video camera
JPH10215400A (en) * 1997-01-30 1998-08-11 Sony Corp Automatic focusing device for video camera
JP2001255457A (en) * 2000-03-10 2001-09-21 Sony Corp Image pickup device

Similar Documents

Publication Publication Date Title
JP4979507B2 (en) Imaging apparatus and imaging method
CN101489037B (en) Imaging apparatus and its control method
JP4419084B2 (en) Control device and method, program, and camera
JP3848230B2 (en) AUTOFOCUS DEVICE, IMAGING DEVICE, AUTOFOCUS METHOD, PROGRAM, AND STORAGE MEDIUM
JP2004109150A (en) Focusing controller, image pickup device, program and storage medium
US7557855B2 (en) Focus position detection apparatus and method
JP5213813B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2011039454A (en) Automatic focusing device, automatic focusing method, and program
JP2009177503A (en) Imaging apparatus
JP2007036775A (en) Imaging apparatus and focus control apparatus
JP5217451B2 (en) Imaging device
JP4500789B2 (en) Focus adjustment apparatus and program
JP2006301003A (en) Control unit and method therefor, program, and camera
JP2011217311A (en) Imaging apparatus and method of controlling the same
JP2011217334A (en) Imaging apparatus and method of controlling the same
JP2006301006A (en) Control unit and method thereof, program, and camera
JP2002330335A (en) Still picture image pickup device
JP2010062825A (en) Imaging device and method of controlling imaging
JP2006243609A (en) Autofocus device
JP2019041414A (en) Electronic apparatus, imaging apparatus, and program
JP2014023054A (en) Image processing apparatus, imaging apparatus, and image processing program
JP2006301004A (en) Control unit and method therefor, program, and camera
JP5938967B2 (en) Imaging apparatus, imaging method, and program
JP6443486B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP3977406B2 (en) Autofocus device, autofocus method, imaging device, program, storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100615

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100809

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100928

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110301