JP2007025559A - Focusing position detecting method and device - Google Patents

Focusing position detecting method and device Download PDF

Info

Publication number
JP2007025559A
JP2007025559A JP2005211390A JP2005211390A JP2007025559A JP 2007025559 A JP2007025559 A JP 2007025559A JP 2005211390 A JP2005211390 A JP 2005211390A JP 2005211390 A JP2005211390 A JP 2005211390A JP 2007025559 A JP2007025559 A JP 2007025559A
Authority
JP
Japan
Prior art keywords
focus
value
difference
photometric
focus evaluation
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
JP2005211390A
Other languages
Japanese (ja)
Inventor
Shui O
守偉 王
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.)
Fujifilm Holdings Corp
Original Assignee
Fujifilm Holdings 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 Fujifilm Holdings Corp filed Critical Fujifilm Holdings Corp
Priority to JP2005211390A priority Critical patent/JP2007025559A/en
Publication of JP2007025559A publication Critical patent/JP2007025559A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To accurately detect a focusing position even when a high-luminance point light source exists such as in night view photography. <P>SOLUTION: A focus evaluated value and a photometric value are acquired all over the area from a close range to infinity, and a position X<SB>0</SB>where the focus evaluated value shows a peak is detected to acquire the photometric values Y<SB>1</SB>and Y<SB>2</SB>at positions X<SB>1</SB>and X<SB>2</SB>before and behind the position X<SB>0</SB>. A difference ΔY<SB>1-2</SB>between the acquired photometric values Y<SB>1</SB>and Y<SB>2</SB>is calculated, and the calculated difference ΔY<SB>1-2</SB>is compared with an allowable value α. When the difference ΔY<SB>1-2</SB>is under the allowable value α, the position X<SB>0</SB>where the focus evaluated value shows the peak is set as the focusing position. When the difference ΔY<SB>1-2</SB>is equal to or above the allowable value α, a position X<SB>3</SB>where the photometric value is minimum is detected and is set as the focusing position. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は合焦位置検出方法及び装置に係り、特に撮像素子から得られる映像信号を利用して合焦位置を検出する合焦位置検出方法及び装置に関する。   The present invention relates to a focus position detection method and apparatus, and more particularly to a focus position detection method and apparatus for detecting a focus position using a video signal obtained from an image sensor.

デジタルカメラの合焦位置検出方法の一つとして、いわゆるコントラスト検出方式が知られている。このコントラスト検出方式は、撮像素子から得られる映像信号の高周波成分を抽出して焦点評価値を取得し、その焦点評価値がピークとなる位置を検出して合焦位置とするものである(たとえば、特許文献1、2)。   A so-called contrast detection method is known as one of in-focus position detection methods for digital cameras. In this contrast detection method, a high-frequency component of a video signal obtained from an image sensor is extracted to obtain a focus evaluation value, and a position where the focus evaluation value reaches a peak is detected and set as a focus position (for example, Patent Documents 1 and 2).

このコントラスト検出方式では、夜景撮影時など、高輝度の点光源がフォーカスエリア内に存在すると、正確な検出ができなくなるという欠点がある。これは通常の適正露出レベルで合焦位置検出を行うと、点光源部分の信号出力が飽和してしまい、フォーカスレンズの位置が変化しても、高周波成分が変動しないことに原因がある。   This contrast detection method has a drawback that accurate detection cannot be performed if a high-luminance point light source is present in the focus area, such as during night scene photography. This is because if the focus position is detected at a normal appropriate exposure level, the signal output of the point light source portion is saturated, and the high frequency component does not fluctuate even if the position of the focus lens changes.

そこで、特許文献3では、適正露出レベルで合焦位置検出をして、合焦位置を検出できなかった場合、適正露出よりも露光量を減らして合焦位置検出を行うことにより、点光源による撮像信号の飽和を回避して、合焦位置検出を行うことを提案している。
特開2000−13666号公報 特開平7−287162号公報 特開2002−196220号公報
Therefore, in Patent Document 3, when the in-focus position is detected at an appropriate exposure level and the in-focus position cannot be detected, the focus position is detected by reducing the exposure amount below the appropriate exposure. It has been proposed to perform in-focus position detection while avoiding saturation of the imaging signal.
JP 2000-13666 A JP 7-287162 A JP 2002-196220 A

しかしながら、特許文献3の方法では、合焦位置検出動作を複数回行わなければならず、合焦位置の検出に時間がかかってしまうという欠点がある。   However, the method of Patent Document 3 has a drawback that it takes time to detect the in-focus position because the in-focus position detection operation must be performed a plurality of times.

本発明は、このような事情に鑑みてなされたもので、夜景撮影時など高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる合焦位置検出方法及び装置を提供することを目的とする。   The present invention has been made in view of such circumstances, and provides an in-focus position detection method and apparatus capable of accurately detecting an in-focus position even when a high-luminance point light source is present, such as during night scene photography. The purpose is to do.

請求項1に係る発明は、前記目的を達成するために、至近から無限遠まで全域で焦点評価値と測光値を取得し、焦点評価値がピークの位置Xを検出し、焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、取得した測光値Y、Yの差分ΔY1−2を算出し、算出した差分ΔY1−2を許容値αと比較し、算出した差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置とし、算出した差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、測光値が最小の位置Xを合焦位置とすることを特徴とする合焦位置検出方法を提供する。 The invention according to claim 1, in order to achieve the object, obtains the focus evaluation value and the photometric value in the entire region from close to infinity, the focus evaluation value detecting the position X 0 of the peak, the focus evaluation value The photometric values Y 1 and Y 2 of the positions X 1 and X 2 before and after the peak position X 0 are acquired, the difference ΔY 1-2 between the acquired photometric values Y 1 and Y 2 is calculated, and the calculated difference ΔY 1 -2 compared with allowable values alpha, if the difference [Delta] Y 1-2 calculated is less than the allowable value alpha, the focus position of the position X 0 of the peak focus evaluation value, the calculated difference [Delta] Y 1-2 are allowable value Provided is an in-focus position detection method characterized in that if it is α or more, the position X 3 with the smallest photometric value is detected and the position X 3 with the smallest photometric value is set as the in-focus position.

請求項1に係る発明では、焦点評価値がピークの位置Xを検出し、その前後の位置X、Xの測光値Y、Yを取得する。そして、取得した測光値Y、Yの差分ΔY1−2を算出し、算出した差分ΔY1−2を許容値αと比較する。差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置とする。一方、差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、その位置Xを合焦位置とする。すなわち、本発明では、焦点評価値がピークを示した位置であっても、その前後の位置の測光値の差分ΔY1−2が許容値α以上だと、その位置Xは点光源による擬似ピークとみなし、測光値が最小の位置Xを真の合焦位置に設定する。これにより、高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。 In the first aspect of the invention, the focus evaluation value detects the peak position X 0 , and obtains the photometric values Y 1 and Y 2 of the positions X 1 and X 2 before and after that. Then, a difference ΔY 1-2 between the acquired photometric values Y 1 and Y 2 is calculated, and the calculated difference ΔY 1-2 is compared with an allowable value α. If the difference [Delta] Y 1-2 is less than the allowable value alpha, the focus evaluation value and the focus position of the position X 0 of the peak. On the other hand, if the difference [Delta] Y 1-2 are allowable value α or more, the photometric value to detect the lowest position X 3, to the position X 3 and focus position. That is, in the present invention, even in a position where the focus evaluation value and a peak, when it difference [Delta] Y 1-2 photometry value of the position of the front and rear than the allowable value α that its position X 0 is a pseudo by point source regarded as a peak, the photometric value sets the minimum position X 3 to the true focus position. Thereby, it is possible to accurately detect the in-focus position even when a high-luminance point light source exists.

請求項2に係る発明は、前記目的を達成するために、至近から無限遠まで全域で焦点評価値と測光値を取得し、焦点評価値がピークの位置Xを検出し、焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、取得した測光値Y、Yの差分ΔY1−2を算出し、算出した差分ΔY1−2を許容値αと比較し、算出した差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置とし、算出した差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、測光値が最小の位置Xの前後の位置X、Xの測光値Y、Yを取得し、取得した測光値Y、Yの差分ΔY4−5を算出し、算出した差分ΔY4−5を許容値βと比較し、算出した差分ΔY4−5が許容値β未満ならば、測光値が最小の位置Xを合焦位置とし、算出した差分ΔY4−5が許容値β以上ならば、パンフォーカス位置を合焦位置とすることを特徴とする合焦位置検出方法を提供する。 The invention according to claim 2, in order to achieve the object, obtains the focus evaluation value and the photometric value in the entire region from close to infinity, the focus evaluation value detecting the position X 0 of the peak, the focus evaluation value The photometric values Y 1 and Y 2 of the positions X 1 and X 2 before and after the peak position X 0 are acquired, the difference ΔY 1-2 between the acquired photometric values Y 1 and Y 2 is calculated, and the calculated difference ΔY 1 -2 compared with allowable values alpha, if the difference [Delta] Y 1-2 calculated is less than the allowable value alpha, the focus position of the position X 0 of the peak focus evaluation value, the calculated difference [Delta] Y 1-2 are allowable value if more alpha, photometric value detects the minimum position X 3, photometric values obtains the photometric value Y 4, Y 5 a minimum position before and after the position X 3 X 4, X 5, obtained photometric value The difference ΔY 4-5 between Y 4 and Y 5 is calculated, the calculated difference ΔY 4-5 is compared with the allowable value β, and the calculated difference ΔY 4 is calculated. If -5 is less than the allowable value beta, the photometric value focus position the minimum position X 3 is, if the calculated difference [Delta] Y 4-5 are allowable value beta above that the focus position of the pan-focus position A featured focus position detection method is provided.

請求項2に係る発明では、焦点評価値がピークの位置Xを検出し、その前後の位置X、Xの測光値Y、Yを取得する。そして、取得した測光値Y、Yの差分ΔY1−2を算出し、算出した差分ΔY1−2を許容値αと比較する。差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置とする。一方、差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、その前後の位置X、Xの測光値Y、Yを取得し、その差分ΔY4−5を算出する。そして、算出した差分ΔY4−5を許容値βと比較し、差分ΔY4−5が許容値β未満ならば、測光値が最小の位置Xを合焦位置とし、差分ΔY4−5が許容値β以上ならば、パンフォーカス位置を合焦位置とする。すなわち、本発明では、焦点評価値がピークを示した位置であっても、その前後の位置の測光値の差分ΔY1−2が許容値α以上だと、その位置Xは点光源による擬似ピークとみなす。そして、測光値が最小の位置Xを検出して、その前後の位置の測光値の差分ΔY4−5を求め、許容値ベータと比較し、差分ΔY4−5が許容値β未満の場合は、測光値が最小の位置Xを合焦位置に設定する。一方、差分ΔY4−5が許容値β以上の場合は、パンフォーカス位置を合焦位置に設定する。これにより、高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。 In the invention according to claim 2, detects the position X 0 of the peak focus evaluation value, obtains the photometric value Y 1, Y 2 position X 1, X 2 before and after. Then, a difference ΔY 1-2 between the acquired photometric values Y 1 and Y 2 is calculated, and the calculated difference ΔY 1-2 is compared with an allowable value α. If the difference [Delta] Y 1-2 is less than the allowable value alpha, the focus evaluation value and the focus position of the position X 0 of the peak. On the other hand, if the difference [Delta] Y 1-2 are allowable value α or more, the photometric value to detect the lowest position X 3, obtains the photometric value Y 4, Y 5 position X 4, X 5 before and after, the difference ΔY 4-5 is calculated. Then, the calculated difference ΔY 4-5 is compared with the allowable value β. If the difference ΔY 4-5 is less than the allowable value β, the position X 3 with the smallest photometric value is set as the in-focus position, and the difference ΔY 4-5 is If it is greater than or equal to the allowable value β, the pan focus position is set as the in-focus position. That is, in the present invention, even in a position where the focus evaluation value and a peak, when it difference [Delta] Y 1-2 photometry value of the position of the front and rear than the allowable value α that its position X 0 is a pseudo by point source Consider it a peak. Then, the photometric value to detect the lowest position X 3, the difference [Delta] Y 4-5 photometric value of its longitudinal position determined is compared with the allowable value beta, when the difference [Delta] Y 4-5 is less than the allowable value β the photometric value sets the minimum position X 3 to the in-focus position. On the other hand, if the difference ΔY 4-5 is greater than or equal to the allowable value β, the pan focus position is set to the in-focus position. Thereby, it is possible to accurately detect the in-focus position even when a high-luminance point light source exists.

請求項3に係る発明は、前記目的を達成するために、至近から無限遠まで全域で焦点評価値と測光値を取得し、焦点評価値がピークの位置Xを検出し、焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、取得した測光値Y、Yの差分ΔY1−2を算出し、算出した差分ΔY1−2を許容値αと比較し、算出した差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置とし、算出した差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、測光値が最小の位置Xの付近で焦点評価値がピークの位置Xを検出し、焦点評価値がピークの位置Xを合焦位置とすることを特徴とする合焦位置検出方法を提供する。 In order to achieve the above object, the invention according to claim 3 obtains the focus evaluation value and the photometric value in the entire region from the nearest to infinity, detects the position X 0 where the focus evaluation value is the peak, and the focus evaluation value is The photometric values Y 1 and Y 2 of the positions X 1 and X 2 before and after the peak position X 0 are acquired, the difference ΔY 1-2 between the acquired photometric values Y 1 and Y 2 is calculated, and the calculated difference ΔY 1 -2 compared with allowable values alpha, if the difference [Delta] Y 1-2 calculated is less than the allowable value alpha, the focus position of the position X 0 of the peak focus evaluation value, the calculated difference [Delta] Y 1-2 are allowable value if more alpha, photometric value detects the minimum position X 3, photometric values detected position X 6 focus evaluation value of the peak in the vicinity of the minimum position X 3, peak focus evaluation value positions X 6 The focus position detection method is characterized in that is set as a focus position.

請求項3に係る発明では、焦点評価値がピークの位置Xを検出し、その前後の位置X、Xの測光値Y、Yを取得し、取得した測光値Y、Yの差分ΔY1−2を算出する。そして、算出した差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置とする。一方、差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、その付近で焦点評価値がピークの位置Xを検出し、合焦位置とする。すなわち、請求項3に係る発明では、焦点評価値がピークを示した位置であっても、その前後の位置の測光値の差分ΔY1−2が許容値α以上だと、その位置Xは点光源による擬似ピークとみなす。そして、測光値が最小の位置Xを検出し、その前後の付近で焦点評価値がピークの位置Xを検出し、合焦位置とする。これにより、高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。 In the invention according to claim 3, the focus evaluation value detects the peak position X 0 , acquires the photometric values Y 1 and Y 2 of the positions X 1 and X 2 before and after that, and the acquired photometric values Y 1 and Y to calculate a second difference ΔY 1-2. Then, the difference [Delta] Y 1-2 calculated compared with the allowable value alpha, the difference [Delta] Y 1-2 is if less than the allowable value alpha, the focus evaluation value and the focus position of the position X 0 of the peak. On the other hand, if the difference [Delta] Y 1-2 are allowable value α or more, the photometric value to detect the lowest position X 3, near its focus evaluation value detecting the position X 6 peak, the focus position. That is, in the invention according to claim 3, even the position where the focus evaluation value and a peak, when it difference [Delta] Y 1-2 photometric value of its longitudinal position is larger than the allowable value alpha, the position X 0 is Considered as a pseudo peak due to a point light source. Then, the photometric value to detect the lowest position X 3, the focus evaluation value in the vicinity of its front and rear detects the position X 6 peak, the focus position. Thereby, it is possible to accurately detect the in-focus position even when a high-luminance point light source exists.

請求項4に係る発明は、前記目的を達成するために、測光値が最小の位置Xの付近で焦点評価値にピークの位置がない場合、パンフォーカス位置を合焦位置とすることを特徴とする請求項3に記載の合焦位置検出方法を提供する。 Invention, in order to achieve the object, when the photometric value is not the position of the peak in the focus evaluation value in the vicinity of the minimum position X 3, characterized in that the focus position of the pan-focus position according to claim 4 An in-focus position detection method according to claim 3 is provided.

請求項4に係る発明では、請求項3に係る発明において、測光値が最小の位置Xの付近に焦点評価値のピークの位置がない場合、パンフォーカス位置を合焦位置に設定する。 The invention according to claim 4, in the invention according to claim 3, when the photometric value is not the position of the peak of the focus evaluation value in the vicinity of the minimum position X 3, to set the pan-focus position in the focus position.

請求項5に係る発明は、前記目的を達成するために、フォーカスエリアを複数のエリアに分割し、各エリアについて至近から無限遠まで全域で焦点評価値を取得し、得られた各エリアの焦点評価値の情報に基づいて合焦位置を検出する合焦位置検出方法において、各エリアについて至近から無限遠まで全域で焦点評価値と測光値を取得し、各エリアにおける測光値の最大値と最小値とを検出し、各エリアにおける測光値の最大値と最小値との差分を算出し、算出した差分が許容値以上のエリアの焦点評価値の情報を除外して合焦位置を検出することを特徴とする合焦位置検出方法を提供する。   In order to achieve the above object, the invention according to claim 5 divides the focus area into a plurality of areas, acquires focus evaluation values in the entire area from the nearest to infinity for each area, and obtains the focus of each area obtained. In the in-focus position detection method that detects the in-focus position based on the evaluation value information, the focus evaluation value and the photometric value are obtained over the entire area from the closest to infinity for each area, and the maximum and minimum photometric values in each area. Value is detected, the difference between the maximum value and the minimum value of the photometric value in each area is calculated, and the focus position is detected by excluding information on the focus evaluation value of the area where the calculated difference is greater than or equal to the allowable value. A focus position detection method characterized by the above is provided.

請求項5に係る発明では、分割された各エリアについて至近から無限遠まで全域で焦点評価値と測光値を取得し、各エリアにおける測光値の最大値と最小値とを検出する。そして、その最大値と最小値との差分を算出し、算出した差分が許容値以上のエリアを除外して合焦位置を検出する。すなわち、本発明では、測光値の最大値と最小値の差分が許容値以上のエリアには、高輝度の点光源が存在するものとみなし、そのエリアを除外して合焦位置の検出を行う。これにより、フォーカスエリア内に高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。   In the invention according to claim 5, the focus evaluation value and the photometric value are obtained in the whole area from the nearest to infinity for each divided area, and the maximum value and the minimum value of the photometric value in each area are detected. Then, a difference between the maximum value and the minimum value is calculated, and an in-focus position is detected by excluding an area where the calculated difference is an allowable value or more. That is, in the present invention, it is assumed that a high-brightness point light source exists in an area where the difference between the maximum value and the minimum value of the photometric value is an allowable value or more, and the in-focus position is detected by excluding that area. . Thereby, even if a high-luminance point light source exists in the focus area, the in-focus position can be accurately detected.

請求項6に係る発明は、前記目的を達成するために、フォーカスエリアを複数のエリアに分割し、各エリアについて至近から無限遠まで全域で焦点評価値を取得し、得られた各エリアの焦点評価値の情報に基づいて合焦位置を検出する合焦位置検出方法において、各エリアについて至近から無限遠まで全域で焦点評価値を取得し、各エリアにおける焦点評価値のピーク位置を検出し、各エリア同士の焦点評価値のピーク位置のズレ量を算出し、ズレ量が許容値以上のエリアの焦点評価値の情報を除外して合焦位置を検出することを特徴とする合焦位置検出方法を提供する。   In order to achieve the above object, the invention according to claim 6 divides the focus area into a plurality of areas, obtains focus evaluation values over the entire area from close to infinity for each area, and obtains the focus of each area obtained. In the in-focus position detection method for detecting the in-focus position based on the information of the evaluation value, the focus evaluation value is obtained in the entire area from the nearest to infinity for each area, and the peak position of the focus evaluation value in each area is detected. Focus position detection characterized by calculating the amount of deviation of the peak position of the focus evaluation value between each area and detecting the in-focus position by excluding information on the focus evaluation value of the area where the amount of deviation is greater than or equal to the allowable value Provide a method.

請求項6に係る発明では、分割された各エリアについて至近から無限遠まで全域で焦点評価値を取得し、各エリアにおける焦点評価値のピーク位置を検出する。そして、各エリア同士のピーク位置のズレ量を算出し、ズレ量が許容値以上のエリアを除外して合焦位置を検出する。すなわち、本発明では、焦点評価値のピーク位置のズレ量が許容値以上のエリアには、高輝度の点光源が存在するものとみなし、そのエリアを除外して合焦位置の検出を行う。これにより、フォーカスエリア内に高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。   In the invention according to claim 6, the focus evaluation values are acquired in the entire region from the nearest to infinity for each of the divided areas, and the peak position of the focus evaluation value in each area is detected. Then, the shift amount of the peak position between the areas is calculated, and the in-focus position is detected by excluding the area where the shift amount is equal to or larger than the allowable value. That is, in the present invention, it is assumed that a high-luminance point light source exists in an area where the deviation amount of the peak position of the focus evaluation value is greater than or equal to an allowable value, and the focus position is detected by excluding that area. Thereby, even if a high-luminance point light source exists in the focus area, the in-focus position can be accurately detected.

請求項7に係る発明は、前記目的を達成するために、至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、至近から無限遠まで全域で測光値を取得する測光値取得手段と、焦点評価値がピークの位置Xを検出するピーク位置検出手段と、測光値が最小の位置Xを検出する最小位置検出手段と、焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、その差分ΔY1−2を算出する差分演算手段と、差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満の場合は、焦点評価値がピークの位置Xに合焦位置を設定し、差分ΔY1−2が許容値α以上の場合は、測光値が最小の位置Xに合焦位置を設定する合焦位置設定手段と、を備えたことを特徴とする合焦位置検出装置を提供する。 In order to achieve the above object, the invention according to claim 7 is a focus evaluation value acquisition means for acquiring a focus evaluation value in the entire area from the closest to infinity, and a photometric value for acquiring a photometric value in the entire area from the closest to infinity. an acquiring unit, the peak position detecting means for the focus evaluation value for detecting the position X 0 of the peak, the minimum position detection means for photometric value to detect the lowest position X 3, before and after the focus evaluation value of the position X 0 of the peak It gets the position X 1, X photometric value Y 1 of 2, Y 2, compares the difference calculation means for calculating the difference [Delta] Y 1-2, the difference [Delta] Y 1-2 and allowed values alpha, difference [Delta] Y 1- When 2 is less than the allowable value α, the focus evaluation value is set at the peak position X 0 , and when the difference ΔY 1-2 is greater than or equal to the allowable value α, the photometric value is at the minimum position X 3 . And a focus position setting means for setting a focus position. To provide a device.

請求項7に係る発明によれば、焦点評価値取得手段で至近から無限遠まで全域で焦点評価値が取得され、ピーク位置検出手段で焦点評価値がピークの位置Xが検出される。また、測光値取得手段で至近から無限遠まで全域で測光値が取得され、最小位置検出手段で測光値が最小の位置Xが検出される。そして、焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yの差分ΔY1−2が差分演算手段で算出される。合焦位置設定手段は、差分演算手段が算出した差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満の場合は、焦点評価値がピークの位置Xに合焦位置を設定する。一方、差分ΔY1−2が許容値α以上の場合は、測光値が最小の位置Xに合焦位置を設定する。すなわち、本発明では、焦点評価値がピークを示した位置であっても、その前後の位置の測光値の差分ΔY1−2が許容値α以上だと、その位置Xは点光源による擬似ピークとみなし、測光値が最小の位置Xを真の合焦位置に設定する。これにより、高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。 According to the invention of claim 7, the acquired focus evaluation value throughout from close in focus evaluation value acquiring unit to infinity, the focus evaluation value at the peak position detection means positioned X 0 of the peak is detected. Further, photometric values measured light value is obtained by the obtaining unit in the entire region from close to infinity, the photometric value is detected minimum position X 3 at the minimum position detection means. Then, the difference calculation means calculates a difference ΔY 1-2 between the photometric values Y 1 and Y 2 of the positions X 1 and X 2 before and after the peak position X 0 of the focus evaluation value. Focus position setting means, the difference [Delta] Y 1-2 of difference calculation means has calculated compared with the allowable value alpha, if the difference [Delta] Y 1-2 is less than the allowable value alpha, the position X 0 of the peak focus evaluation value Set the in-focus position. On the other hand, the difference [Delta] Y 1-2 is equal to or larger than the allowable value alpha, the photometric value sets the focus position to the minimum position X 3. That is, in the present invention, even in a position where the focus evaluation value and a peak, when it difference [Delta] Y 1-2 photometry value of the position of the front and rear than the allowable value α that its position X 0 is a pseudo by point source regarded as a peak, the photometric value sets the minimum position X 3 to the true focus position. Thereby, it is possible to accurately detect the in-focus position even when a high-luminance point light source exists.

請求項8に係る発明は、前記目的を達成するために、至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、至近から無限遠まで全域で測光値を取得する測光値取得手段と、焦点評価値がピークの位置Xを検出するピーク位置検出手段と、焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、その差分ΔY1−2を算出する第1差分演算手段と、測光値が最小の位置Xを検出する最小位置検出手段と、測光値が最小の位置Xの前後の位置X、Xの測光値Y、Yを取得し、その差分ΔY4−5を算出する第2差分演算手段と、差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満の場合は、焦点評価値がピークの位置Xに合焦位置を設定し、差分ΔY1−2が許容値α以上の場合は、更に差分ΔY4−5を許容値βと比較し、差分ΔY4−5が許容値β未満の場合は、測光値が最小の位置Xに合焦位置を設定し、差分ΔY4−5が許容値β以上の場合は、パンフォーカス位置に合焦位置を設定する合焦位置設定手段と、を備えたことを特徴とする合焦位置検出装置を提供する。 In order to achieve the above object, the invention according to claim 8 is a focus evaluation value acquisition means for acquiring a focus evaluation value in the entire region from the nearest to infinity, and a photometric value for acquiring a photometric value in the entire region from the closest to infinity. Acquisition means, peak position detection means for detecting a peak position X 0 having a focus evaluation value, and photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the peak position X 0 having a focus evaluation value are acquired. and its a first difference calculating means for calculating a difference [Delta] Y 1-2, the minimum position detection unit, before and after the position X 4 of the photometric value minimum position X 3 photometric value to detect the lowest position X 3, get the photometric value Y 4, Y 5 of X 5, compares the second difference calculating means for calculating the difference [Delta] Y 4-5, the difference [Delta] Y 1-2 and allowed values alpha, difference [Delta] Y 1-2 are acceptable when it is less than the value alpha, it sets the focus position the focus evaluation value at the position X 0 of the peak, the difference Δ 1-2 is equal to or greater than the allowable value alpha, further compares the difference [Delta] Y 4-5 and tolerance beta, if the difference [Delta] Y 4-5 is less than the allowable value beta, if the photometric value to the minimum position X 3 A focus position setting device that sets a focus position and sets a focus position at a pan focus position when the difference ΔY 4-5 is equal to or greater than an allowable value β; I will provide a.

請求項8に係る発明によれば、焦点評価値取得手段で至近から無限遠まで全域で焦点評価値が取得され、ピーク位置検出手段で焦点評価値がピークの位置Xが検出される。また、測光値取得手段で至近から無限遠まで全域で測光値が取得され、最小位置検出手段で測光値が最小の位置Xが検出される。そして、焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yの差分ΔY1−2が第1差分演算手段で算出され、測光値が最小の位置Xの前後の位置X、Xの測光値Y、Yの差分ΔY4−5が第2差分演算手段で算出される。合焦位置設定手段は、第1差分演算手段で算出された差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満の場合は、焦点評価値がピーク位置のXに合焦位置を設定する。一方、第1差分演算手段で算出された差分ΔY1−2が許容値α以上の場合は、更に第2差分演算手段で算出された差分ΔY4−5を許容値βと比較し、差分ΔY4−5が許容値β未満の場合は、測光値が最小の位置Xに合焦位置を設定する。また、差分ΔY4−5が許容値β以上の場合は、パンフォーカス位置に合焦位置を設定する。これにより、高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。 According to the invention of claim 8, the acquired focus evaluation value throughout from close in focus evaluation value acquiring unit to infinity, the focus evaluation value at the peak position detection means positioned X 0 of the peak is detected. Further, photometric values measured light value is obtained by the obtaining unit in the entire region from close to infinity, the photometric value is detected minimum position X 3 at the minimum position detection means. Then, the difference [Delta] Y 1-2 position X 1, the photometry value Y 1 of X 2, Y 2 before and after the position X 0 of the peak focus evaluation value is calculated by the first difference calculation means, the position of the photometric value is minimum A difference ΔY 4-5 between the photometric values Y 4 and Y 5 of the positions X 4 and X 5 before and after X 3 is calculated by the second difference calculation means. The in-focus position setting unit compares the difference ΔY 1-2 calculated by the first difference calculating unit with the allowable value α, and when the difference ΔY 1-2 is less than the allowable value α, the focus evaluation value is the peak position. to set the focus position to X 0. On the other hand, if the difference ΔY 1-2 calculated by the first difference calculation means is equal to or larger than the allowable value α, the difference ΔY 4-5 calculated by the second difference calculation means is further compared with the allowable value β, and the difference ΔY 4-5 If there is less than the allowable value beta, the photometric value sets the focus position to the minimum position X 3. When the difference ΔY 4-5 is equal to or larger than the allowable value β, the in-focus position is set as the pan focus position. Thereby, it is possible to accurately detect the in-focus position even when a high-luminance point light source exists.

請求項9に係る発明は、前記目的を達成するために、至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、至近から無限遠まで全域で測光値を取得する測光値取得手段と、焦点評価値がピークの位置Xを検出する第1ピーク位置検出手段と、焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、その差分ΔY1−2を算出する第1差分演算手段と、測光値が最小の位置Xを検出する最小位置検出手段と、測光値が最小の位置Xの付近で焦点評価値がピークの位置Xを検出する第2ピーク位置検出手段と、差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満の場合は、焦点評価値がピークの位置Xに合焦位置を設定し、差分ΔY1−2が許容値α以上の場合は、測光値が最小の位置Xの付近で焦点評価値がピークの位置Xに合焦位置を設定する合焦位置設定手段と、を備えたことを特徴とする合焦位置検出装置を提供する。 In order to achieve the above object, the invention according to claim 9 is a focus evaluation value acquisition means for acquiring a focus evaluation value in the entire region from close to infinity, and a photometric value for acquiring a photometric value in the entire region from close to infinity. An acquisition unit, a first peak position detection unit that detects a peak position X 0 having a focus evaluation value, and photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the peak evaluation value X 0. acquires a first difference calculating means for calculating the difference [Delta] Y 1-2, the minimum position detection unit photometric value to detect the lowest position X 3, the focus evaluation photometric value in the vicinity of the minimum position X 3 a second peak position detector value for detecting the position X 6 peak, the difference [Delta] Y 1-2 compared with allowable values alpha, if the difference [Delta] Y 1-2 is less than the allowable value alpha, a peak focus evaluation value field to set the focus position to position X 0, the difference ΔY 1-2 is equal to or greater than the permissible value α Is a focus position detecting device characterized by photometry value has and a focus position setting means for the focus evaluation value to set the focus position to the position X 6 of the peaks near the lowest position X 3 provide.

請求項9に係る発明によれば、焦点評価値取得手段によって至近から無限遠まで全域で焦点評価値が取得される。また、第1ピーク位置検出手段で焦点評価値がピークの位置Xが検出、第2ピーク位置検出手段で測光値が最小の位置X付近で焦点評価値がピークの位置Xが検出される。また、測光値取得手段で至近から無限遠まで全域で測光値が取得され、最小位置検出手段で測光値が最小の位置Xが検出される。そして、差分演算手段で焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yの差分ΔY1−2が算出される。合焦位置設定手段は、差分演算手段で算出された差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満の場合は、焦点評価値がピークの位置Xに合焦位置を設定する。一方、差分ΔY1−2が許容値α以上の場合は、第2ピーク位置検出手段で検出された測光値が最小の位置X付近での焦点評価値がピークの位置Xに合焦位置を設定する。これにより、高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。 According to the ninth aspect of the present invention, the focus evaluation value is acquired by the focus evaluation value acquisition means in the entire area from the nearest to infinity. The position X 0 of the focus evaluation value at the first peak position detecting means peak detection, the focus evaluation value photometric value is close to the minimum position X 3 in the second peak position detection means detects the position X 6 peaks The Further, photometric values measured light value is obtained by the obtaining unit in the entire region from close to infinity, the photometric value is detected minimum position X 3 at the minimum position detection means. Then, the difference calculation means calculates the difference ΔY 1-2 between the photometric values Y 1 and Y 2 of the positions X 1 and X 2 before and after the peak position X 0 of the focus evaluation value. The in-focus position setting unit compares the difference ΔY 1-2 calculated by the difference calculation unit with the allowable value α, and when the difference ΔY 1-2 is less than the allowable value α, the focus evaluation value is the peak position X 0. Set the in-focus position. On the other hand, when the difference [Delta] Y 1-2 is larger than the allowable value alpha, the focus evaluation value focus position to the position X 6 of the peak of photometric values detected in the vicinity of the lowest position X 3 in the second peak position detecting means Set. Thereby, it is possible to accurately detect the in-focus position even when a high-luminance point light source exists.

請求項10に係る発明は、前記目的を達成するために、前記合焦位置設定手段は、測光値が最小の位置Xの付近で焦点評価値にピークの位置がない場合、パンフォーカス位置に合焦位置を設定することを特徴とする請求項9に記載の合焦位置検出装置を提供する。 The invention according to claim 10, in order to achieve the object, the focus position setting unit, when the photometric value is not the position of the peak in the focus evaluation value in the vicinity of the minimum position X 3, the pan-focus position The in-focus position detecting device according to claim 9, wherein an in-focus position is set.

請求項10に係る発明では、請求項9に係る発明において、測光値が最小の位置Xの付近に焦点評価値のピークの位置がない場合、パンフォーカス位置が合焦位置に設定される。 In the invention according to claim 10, in the invention according to claim 9, when the photometric value is not the position of the peak of the minimum of the focus evaluation value in the vicinity of the position X 3, pan-focus position is set to the focus position.

請求項11に係る発明は、前記目的を達成するために、複数に分割されたフォーカスエリアの各エリアにおいて、至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、前記各エリアにおいて、至近から無限遠まで全域で測光値を取得する測光値取得手段と、前記各エリアにおける測光値の最大値と最小値とを検出する検出手段と、各エリアにおける測光値の最大値と最小値との差分を算出する演算手段と、前記演算手段で算出した差分が許容値以上のエリアを抽出する抽出手段と、前記抽出手段で抽出されたエリア以外の焦点評価値の情報に基づいて合焦位置を検出する合焦位置検出手段と、を備えたことを特徴とする合焦位置検出装置を提供する。   According to an eleventh aspect of the present invention, in order to achieve the above object, in each of the focus areas divided into a plurality, focus evaluation value acquisition means for acquiring a focus evaluation value in the entire region from the nearest to infinity, In the area, a photometric value acquisition means for acquiring a photometric value in the entire region from close to infinity, a detection means for detecting the maximum value and the minimum value of the photometric value in each area, and a maximum value of the photometric value in each area Based on calculation means for calculating a difference from the minimum value, extraction means for extracting an area in which the difference calculated by the calculation means is an allowable value or more, and information on focus evaluation values other than the area extracted by the extraction means An in-focus position detecting device is provided that includes in-focus position detecting means for detecting the in-focus position.

請求項11に係る発明によれば、焦点評価値取得手段で各エリアについて至近から無限遠まで全域で焦点評価値が取得され、測光値取得手段で各エリアについて至近から無限遠まで全域で測光値が取得される。また、各エリアにおける測光値の最大値と最小値が検出手段で検出され、その最大値と最小値との差分が演算手段で算出される。そして、差分が許容値以上のエリアが抽出手段で抽出され、抽出されたエリア以外の焦点評価値の情報に基づいて合焦位置検出手段で合焦位置が検出される。これにより、フォーカスエリア内に高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。   According to the eleventh aspect of the present invention, the focus evaluation value acquisition unit acquires the focus evaluation value for the entire area from the nearest to infinity, and the photometric value acquisition unit acquires the photometric value for the entire area from the closest to infinity. Is acquired. Further, the maximum and minimum photometric values in each area are detected by the detecting means, and the difference between the maximum value and the minimum value is calculated by the calculating means. Then, an area where the difference is equal to or larger than the allowable value is extracted by the extracting unit, and the in-focus position is detected by the in-focus position detecting unit based on the focus evaluation value information other than the extracted area. Thereby, even if a high-luminance point light source exists in the focus area, the in-focus position can be accurately detected.

請求項12に係る発明は、前記目的を達成するために、複数に分割されたフォーカスエリアの各エリアにおいて、至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、前記各エリアにおいて、至近から無限遠まで全域で測光値を取得する測光値取得手段と、前記各エリアにおける焦点評価値がピークの位置を検出する検出手段と、前記各エリア同士の焦点評価値のピークの位置のズレ量を算出する演算手段と、ズレ量が許容値以上のエリアを抽出する抽出手段と、前記抽出手段で抽出されたエリア以外の焦点評価値の情報に基づいて合焦位置を検出する合焦位置検出手段と、を備えたことを特徴とする合焦位置検出装置を提供する。   In order to achieve the above object, the invention according to claim 12 is the focus evaluation value acquisition means for acquiring the focus evaluation value in the entire area from the closest to infinity in each of the divided focus areas, In the area, the photometric value acquisition means for acquiring the photometric value in the entire area from the nearest to infinity, the detection means for detecting the position of the peak of the focus evaluation value in each area, the peak of the focus evaluation value of each area An in-focus position is detected based on calculation means for calculating a positional deviation amount, an extracting means for extracting an area where the deviation amount is an allowable value or more, and focus evaluation value information other than the area extracted by the extracting means. An in-focus position detecting device is provided.

請求項12に係る発明によれば、各エリアにおいて、焦点評価値取得手段で至近から無限遠まで全域で焦点評価値が取得され、測光値取得手段で至近から無限遠まで全域で測光値が取得される。また、各エリアにおける焦点評価値のピークの位置が検出手段で検出され、検出された各エリア同士の焦点評価値のピークの位置のズレ量が演算手段で算出される。そして、ズレ量が許容値以上のエリアが抽出手段で抽出され、抽出されたエリア以外の焦点評価値の情報に基づいて合焦位置が合焦位置検出手段で検出される。これにより、フォーカスエリア内に高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。   According to the twelfth aspect of the invention, in each area, the focus evaluation value acquisition unit acquires the focus evaluation value over the entire range from the nearest to infinity, and the photometric value acquisition unit acquires the photometric value over the entire range from the closest to infinity. Is done. Further, the position of the peak of the focus evaluation value in each area is detected by the detecting means, and the amount of deviation of the position of the peak of the focus evaluation value in each detected area is calculated by the calculating means. Then, an area where the amount of deviation is greater than or equal to the allowable value is extracted by the extracting means, and the in-focus position detecting means detects the in-focus position based on the focus evaluation value information other than the extracted area. Thereby, even if a high-luminance point light source exists in the focus area, the in-focus position can be accurately detected.

本発明に係る合焦位置検出方法及び装置によれば、夜景撮影時など高輝度の点光源が存在する場合であっても正確に合焦位置を検出できる。   According to the focus position detection method and apparatus according to the present invention, the focus position can be accurately detected even when a high-luminance point light source is present, such as during night scene photography.

以下、添付図面に従って本発明に係る合焦位置検出方法及び装置を実施するための最良の形態について説明する。   The best mode for carrying out a focus position detection method and apparatus according to the present invention will be described below with reference to the accompanying drawings.

図1は、本発明が適用されるデジタルカメラの電気的構成を示すブロック図である。同図に示すように、本実施の形態のデジタルカメラ10は、撮影光学系12、撮像素子14、タイミングジェネレータ(TG)16、アナログ信号処理部18、A/D変換器20、画像入力コントローラ22、デジタル信号処理部24、エンコーダ28、画像表示部30、圧縮・伸張処理部32、メディアコントローラ34、記憶メディア36、AE検出部38、AF検出部40、CPU42、ROM44、RAM46、フラッシュROM48、操作部50等で構成されている。   FIG. 1 is a block diagram showing an electrical configuration of a digital camera to which the present invention is applied. As shown in the figure, the digital camera 10 of the present embodiment includes a photographing optical system 12, an image sensor 14, a timing generator (TG) 16, an analog signal processing unit 18, an A / D converter 20, and an image input controller 22. , Digital signal processing unit 24, encoder 28, image display unit 30, compression / decompression processing unit 32, media controller 34, storage medium 36, AE detection unit 38, AF detection unit 40, CPU 42, ROM 44, RAM 46, flash ROM 48, operation It consists of part 50 etc.

デジタルカメラ10の全体の動作は、CPU42によって統括制御されており、CPU42は操作部50からの入力に基づき所定のプログラムに従ってデジタルカメラ10の各部を制御する。   The overall operation of the digital camera 10 is comprehensively controlled by the CPU 42, and the CPU 42 controls each unit of the digital camera 10 according to a predetermined program based on an input from the operation unit 50.

操作部50は、電源スイッチ、シャッタボタン、ズームボタン等の操作ボタンを含み、各操作ボタンの操作に応じた信号をCPU42に出力する。なお、シャッタボタンは、いわゆる半押しと全押しの二段式のスイッチで構成され、半押しでAE(Automatic Exposure:自動露出)、AF(Auto Focus:自動焦点合わせ)が作動し、全押しで撮影記録が実行される。   The operation unit 50 includes operation buttons such as a power switch, a shutter button, and a zoom button, and outputs a signal corresponding to the operation of each operation button to the CPU 42. The shutter button consists of a two-stage switch, so-called half-press and full-press. The half-press activates AE (Automatic Exposure) and AF (Auto Focus). Shooting recording is executed.

ROM44には、このCPU42が実行するプログラムの他、プログラム線図等の各種制御に必要なデータが格納されている。CPU42は、このROM44に格納されたプログラムをRAM46に展開し、RAM46を作業メモリとして使用しながら各種処理を実行する。また、フラッシュROM48には、ユーザ設定情報等のデジタルカメラ10の動作に関する各種設定情報等が格納されている。   In addition to the program executed by the CPU 42, the ROM 44 stores data necessary for various controls such as a program diagram. The CPU 42 develops the program stored in the ROM 44 in the RAM 46, and executes various processes while using the RAM 46 as a working memory. The flash ROM 48 stores various setting information relating to the operation of the digital camera 10 such as user setting information.

撮影光学系12は、ズームレンズ12z、フォーカスレンズ12f、絞り(たとえば、虹彩絞り)12iを含み、それぞれズームモータ60z、フォーカスモータ60f、アイリスモータ60iに駆動されて作動する。すなわち、ズームレンズ12zは、ズームモータ60zに駆動されて撮影光軸上を前後移動し、これにより、焦点距離を変化させる。また、フォーカスレンズ12fは、フォーカスモータ60fに駆動されて撮影光軸上を前後移動し、これにより結像位置を変化させる。また、絞り12iは、アイリスモータ60iに駆動されて開口量が段階的に変化し、これにより絞り値を変化させる。CPU42は、ズームモータドライバ62z、フォーカスモータドライバ62f、アイリスモータドライバ62iを介してズームモータ60z、フォーカスモータ60f、アイリスモータ60iの駆動を制御し、ズームレンズ12z、フォーカスレンズ12f、絞り12iの動作を制御する。   The photographing optical system 12 includes a zoom lens 12z, a focus lens 12f, and a diaphragm (for example, iris diaphragm) 12i, and is operated by being driven by a zoom motor 60z, a focus motor 60f, and an iris motor 60i, respectively. That is, the zoom lens 12z is driven by the zoom motor 60z to move back and forth on the photographing optical axis, thereby changing the focal length. The focus lens 12f is driven by the focus motor 60f to move back and forth on the photographic optical axis, thereby changing the imaging position. In addition, the aperture 12i is driven by the iris motor 60i so that the opening amount changes stepwise, thereby changing the aperture value. The CPU 42 controls the driving of the zoom motor 60z, the focus motor 60f, and the iris motor 60i via the zoom motor driver 62z, the focus motor driver 62f, and the iris motor driver 62i, and performs operations of the zoom lens 12z, the focus lens 12f, and the aperture 12i. Control.

撮像素子14は、所定のカラーフィルタ配列(たとえば、ベイヤ配列)のカラーCCDで構成されている。撮影光学系12を介して撮像素子14の受光面に入射した光は、その受光面に配列された各フォトダイオードによって入射光量に応じた量の信号電荷に変換される。そして、各フォトダイオードに蓄積された信号電荷は、タイミングジェネレータ(TG)16から加えられるタイミング信号に従って読み出され、電圧信号(画像信号)として撮像素子14から順次出力される。   The image sensor 14 is composed of a color CCD having a predetermined color filter array (for example, a Bayer array). Light incident on the light receiving surface of the image sensor 14 via the photographing optical system 12 is converted into signal charges in an amount corresponding to the amount of incident light by the photodiodes arranged on the light receiving surface. The signal charges accumulated in each photodiode are read according to the timing signal applied from the timing generator (TG) 16 and sequentially output from the image sensor 14 as a voltage signal (image signal).

アナログ信号処理部18は、サンプリングホールド回路、色分離回路、ゲイン調整回路等を含み、撮像素子14から順次出力される画像信号を相関二重サンプリング(CDS)処理並びにRGBの各色信号に色分離処理し、各色信号の信号レベルの調整(プリホワイトバランス処理)を行う。   The analog signal processing unit 18 includes a sampling hold circuit, a color separation circuit, a gain adjustment circuit, and the like. The image signal sequentially output from the image sensor 14 is correlated double sampling (CDS) processing and color separation processing into RGB color signals. The signal level of each color signal is adjusted (pre-white balance processing).

A/D変換器20は、このアナログ信号処理部18から出力されたアナログの画像信号をデジタルの画像信号に変換する。   The A / D converter 20 converts the analog image signal output from the analog signal processing unit 18 into a digital image signal.

画像入力コントローラ22は、所定容量のバッファメモリを内蔵しており、A/D変換器20から出力された画像信号を1コマ分蓄積して、RAM46に格納する。   The image input controller 22 includes a buffer memory having a predetermined capacity, accumulates one frame of the image signal output from the A / D converter 20, and stores it in the RAM 46.

デジタル信号処理部24は、同時化回路、ガンマ補正回路、輪郭補正回路、輝度・色差信号生成回路等を含み、CPU42からの指令に従ってRAM46に格納された画像信号を処理し、輝度信号と色差信号とからなるYUV信号を生成する。   The digital signal processing unit 24 includes a synchronization circuit, a gamma correction circuit, a contour correction circuit, a luminance / color difference signal generation circuit, and the like, processes the image signal stored in the RAM 46 in accordance with a command from the CPU 42, and outputs the luminance signal and color difference signal A YUV signal consisting of

画像表示部30にスルー画像を表示させる場合は、撮像素子14で画像を連続的に撮像し、得られた画像信号をデジタル信号処理部24で連続的に処理してYUV信号を生成する。生成されたYUV信号は、RAM46を介してエンコーダ28に加えられ、表示用の信号形式に変換されて画像表示部30に出力される。これにより、画像表示部30にスルー画像が表示される。   When displaying a through image on the image display unit 30, images are continuously captured by the image sensor 14, and the obtained image signal is continuously processed by the digital signal processing unit 24 to generate a YUV signal. The generated YUV signal is applied to the encoder 28 via the RAM 46, converted into a signal format for display, and output to the image display unit 30. As a result, a through image is displayed on the image display unit 30.

画像を記録する場合は、操作部50からの撮影指令に応じて撮像素子14で画像を撮像し、得られた画像信号を処理してYUV信号を生成する。生成されたYUV信号は、圧縮・伸張処理部32に加えられ、所定の圧縮画像データ(たとえば、JPEG)とされたのち、メディアコントローラ34を介して記憶メディア36に格納される。   When an image is recorded, an image is picked up by the image pickup device 14 in accordance with a shooting command from the operation unit 50, and the obtained image signal is processed to generate a YUV signal. The generated YUV signal is added to the compression / decompression processing unit 32, converted into predetermined compressed image data (for example, JPEG), and then stored in the storage medium 36 via the media controller 34.

記憶メディア36に格納された圧縮画像データは、再生指令に応じて記憶メディア36から読み出され、圧縮・伸張処理部32で非圧縮のYUV信号とされたのち、エンコーダ28を介して画像表示部30に出力される。これにより、記憶メディア36に記録された画像が画像表示部30に再生表示される。   The compressed image data stored in the storage medium 36 is read from the storage medium 36 in accordance with a reproduction command, converted into an uncompressed YUV signal by the compression / expansion processing unit 32, and then an image display unit via the encoder 28. 30 is output. As a result, the image recorded in the storage medium 36 is reproduced and displayed on the image display unit 30.

AE検出部38は、CPU42からの指令に従い、撮像素子14から得た画像信号に基づきAE制御に必要な物理量を算出する。すなわち、たとえば、AE検出部38は、撮像素子14からアナログ信号処理部18、A/D変換器20、画像入力コントローラ22を介して取り込んだ1コマ分の画像信号に対して、1画面を複数のエリア(例えば、16×16)に分割し、分割したエリアごとにRGBの画像信号の積算値を算出する。CPU42は、このAE検出部38で算出された積算値を取得し、被写体の明るさを検出して、測光値(EV値)を算出する。そして、求めたEV値に基づいて撮影時の露出(感度、絞り、シャッタ速度)を設定する。   The AE detection unit 38 calculates a physical quantity necessary for AE control based on an image signal obtained from the image sensor 14 in accordance with a command from the CPU 42. That is, for example, the AE detection unit 38 provides a plurality of one screens for one frame of image signals captured from the image sensor 14 via the analog signal processing unit 18, the A / D converter 20, and the image input controller 22. Area (for example, 16 × 16), and an integrated value of RGB image signals is calculated for each divided area. The CPU 42 acquires the integrated value calculated by the AE detection unit 38, detects the brightness of the subject, and calculates a photometric value (EV value). Then, the exposure (sensitivity, aperture, shutter speed) at the time of shooting is set based on the obtained EV value.

AF検出部40は、CPU42からの指令に従い、撮像素子14から得た画像信号に基づきAF制御に必要な物理量を算出する。本実施の形態のデジタルカメラ10では、画像のコントラストによりAF制御を行うものとし、AF検出部40は、入力された画像信号から画像の鮮鋭度を示す焦点評価値を算出する。このAF検出部40は、図2に示すように、主としてハイパスフィルタ70、絶対値化処理部72、フォーカスエリア抽出部74及び積算部76で構成されている。ハイパスフィルタ70は、画像入力コントローラ22を介して取り込まれたRGBの画像信号からG信号の高周波成分のみを通過させる処理を行う。絶対値化処理部72は、ハイパスフィルタ70からの出力信号の絶対値をとる処理を行い、フォーカスエリア抽出部74は、画面内にあらかじめ設定されたフォーカスエリア内の信号を切り出す処理を行う。積算部76は、フォーカスエリア内の絶対値データを積算し、得られた積算値(焦点評価値)をCPU42に出力する。CPU42は、フォーカスレンズ12fを移動させて、複数の検出ポイントでAF検出部40から焦点評価値を取得し、取得した焦点評価値に基づいて合焦位置を検出する。そして、求めた合焦位置にフォーカスレンズ12fが移動するようにフォーカスモータドライバ62fを介してフォーカスモータ60fを駆動する。   The AF detection unit 40 calculates a physical quantity necessary for AF control based on an image signal obtained from the image sensor 14 in accordance with a command from the CPU 42. In the digital camera 10 of the present embodiment, it is assumed that AF control is performed based on the contrast of the image, and the AF detection unit 40 calculates a focus evaluation value indicating the sharpness of the image from the input image signal. As shown in FIG. 2, the AF detection unit 40 mainly includes a high-pass filter 70, an absolute value processing unit 72, a focus area extraction unit 74, and an integration unit 76. The high-pass filter 70 performs processing to pass only the high-frequency component of the G signal from the RGB image signal captured via the image input controller 22. The absolute value processing unit 72 performs processing for obtaining the absolute value of the output signal from the high-pass filter 70, and the focus area extraction unit 74 performs processing for cutting out a signal within a focus area set in advance on the screen. The integrating unit 76 integrates absolute value data in the focus area, and outputs the obtained integrated value (focus evaluation value) to the CPU 42. The CPU 42 moves the focus lens 12f, acquires focus evaluation values from the AF detection unit 40 at a plurality of detection points, and detects a focus position based on the acquired focus evaluation values. Then, the focus motor 60f is driven via the focus motor driver 62f so that the focus lens 12f moves to the obtained in-focus position.

前記のごとく構成された本実施の形態のデジタルカメラ10における撮影時の処理動作は以下の通りである。   Processing operations at the time of shooting in the digital camera 10 of the present embodiment configured as described above are as follows.

まず、シャッタボタンが半押しされると、操作部50からCPU42にS1オン信号が出力される。CPU42は、この操作部50からのS1オン信号に応動して、AE、AF制御を実行する。   First, when the shutter button is half-pressed, an S1 ON signal is output from the operation unit 50 to the CPU 42. The CPU 42 executes AE and AF control in response to the S1 ON signal from the operation unit 50.

すなわち、AE制御として、AE用の画像を撮像素子14で撮像し、アナログ信号処理部18、A/D変換器20、画像入力コントローラ22を介してAE検出部38に加える。AE検出部38は、入力された画像信号から積算値を算出し、CPU42に出力する。CPU42は、このAE検出部38から得た積算値から被写体の明るさを検出し、EV値を算出する。そして、算出したEV値に基づいて露出を設定する。   That is, as the AE control, an image for AE is picked up by the image pickup device 14 and added to the AE detection unit 38 via the analog signal processing unit 18, the A / D converter 20, and the image input controller 22. The AE detector 38 calculates an integrated value from the input image signal and outputs the integrated value to the CPU 42. The CPU 42 detects the brightness of the subject from the integrated value obtained from the AE detector 38 and calculates the EV value. Then, the exposure is set based on the calculated EV value.

また、AF制御として、フォーカスレンズ12fを移動させながらAF用の画像を撮像素子14で撮像し、アナログ信号処理部18、A/D変換器20、画像入力コントローラ22を介してAF検出部40に加える。AF検出部40は、入力された画像信号から焦点評価値を算出し、CPU42に出力する。CPU42は、このAF検出部40から得た焦点評価値に基づいて合焦位置を検出し、検出した合焦位置にフォーカスレンズ12fが移動するようにフォーカスモータドライバ62fを介してフォーカスモータ60fの駆動を制御する。なお、このAF制御時における合焦位置の検出方法については、後に詳述する。   Further, as AF control, an image for AF is picked up by the image pickup device 14 while moving the focus lens 12f, and is sent to the AF detection unit 40 via the analog signal processing unit 18, the A / D converter 20, and the image input controller 22. Add. The AF detection unit 40 calculates a focus evaluation value from the input image signal and outputs it to the CPU 42. The CPU 42 detects the focus position based on the focus evaluation value obtained from the AF detection unit 40, and drives the focus motor 60f via the focus motor driver 62f so that the focus lens 12f moves to the detected focus position. To control. A method for detecting the focus position during the AF control will be described in detail later.

この後、シャッタボタンが全押しされると、操作部50からCPU42にS2オン信号が入力される。CPU42は、この操作部50から入力されるS2オン信号に応動して、画像の撮影、記録処理を実行する。すなわち、記録用の画像を撮像素子14で撮像し、アナログ信号処理部18、A/D変換器20、画像入力コントローラ22を介してRAM46に取り込み、デジタル信号処理部24に加える。デジタル信号処理部24は、入力された画像信号に所要の信号処理を施してYUV信号を作成する。作成されたYUV信号は、圧縮・伸張処理部32で圧縮処理され、メディアコントローラ34を介して記憶メディア36に記録される。   Thereafter, when the shutter button is fully pressed, an S2 ON signal is input from the operation unit 50 to the CPU 42. In response to the S2 ON signal input from the operation unit 50, the CPU 42 performs image shooting and recording processing. That is, an image for recording is picked up by the image pickup device 14, fetched into the RAM 46 via the analog signal processing unit 18, the A / D converter 20, and the image input controller 22 and added to the digital signal processing unit 24. The digital signal processing unit 24 performs necessary signal processing on the input image signal to create a YUV signal. The created YUV signal is compressed by the compression / decompression processing unit 32 and recorded in the storage medium 36 via the media controller 34.

以上一連の工程で画像が撮影され、撮影された画像が記憶メディア36に記録される。記憶メディア36に記録された画像は、操作部50から入力される再生指示に応じて記憶メディア36から読み出され、圧縮・伸張処理部32で伸張処理されたのちエンコーダ28を介して画像表示部30に出力される。これにより、記憶メディア36に記録された画像が画像表示部30に再生表示される。   An image is photographed in the series of steps described above, and the photographed image is recorded in the storage medium 36. The image recorded on the storage medium 36 is read from the storage medium 36 in accordance with a reproduction instruction input from the operation unit 50, decompressed by the compression / expansion processing unit 32, and then the image display unit via the encoder 28. 30 is output. As a result, the image recorded in the storage medium 36 is reproduced and displayed on the image display unit 30.

次に、本実施の形態のデジタルカメラ10における合焦位置の検出方法について説明する。   Next, a method for detecting a focus position in the digital camera 10 of the present embodiment will be described.

・第1の方法
第1の方法では、至近から無限遠まで全域で焦点評価値と測光値を取得し、焦点評価値がピークの位置Xを検出し、その前後の位置X、Xの測光値Y、Yを取得する。そして、取得した測光値Y、Yの差分ΔY1−2を算出し、算出した差分ΔY1−2を許容値αと比較する。算出した差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置に設定する。一方、算出した差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、その位置Xを合焦位置に設定する。
First Method In the first method, a focus evaluation value and a photometric value are obtained in the entire region from close to infinity, the position X 0 at which the focus evaluation value is a peak is detected, and positions X 1 and X 2 before and after that are detected. The photometric values Y 1 and Y 2 are obtained. Then, a difference ΔY 1-2 between the acquired photometric values Y 1 and Y 2 is calculated, and the calculated difference ΔY 1-2 is compared with an allowable value α. If the difference [Delta] Y 1-2 the calculated is less than the allowable value alpha, the focus evaluation value to set the position X 0 of the peak in-focus position. On the other hand, the difference [Delta] Y 1-2 were calculated if allowable value α or more, the photometric value to detect the lowest position X 3, and sets the position X 3 to the in-focus position.

図3は、フォーカスエリア中に高輝度な点光源が存在しない場合における至近から無限遠までの焦点評価値(同図(a))と測光値(同図(b))の変化を示す図である。   FIG. 3 is a diagram showing changes in the focus evaluation value (FIG. 3 (a)) and the photometric value (FIG. 3 (b)) from close to infinity when a high-luminance point light source does not exist in the focus area. is there.

同図に示すように、一般に高輝度な点光源がフォーカスエリア中に存在しない場合、至近から無限遠までフォーカスレンズを移動させて、焦点評価値を取得すると、焦点評価値は一つの山を描いて変化する。そして、その山のピークの位置Xが合焦位置となる。この合焦位置Xの前後では、測光値がほとんど変化しない。 As shown in the figure, when a high-luminance point light source does not exist in the focus area, when the focus evaluation value is obtained by moving the focus lens from the closest distance to infinity, the focus evaluation value draws one mountain. Change. Then, the position X 0 of the peak of the mountain becomes the focus position. Before and after the focus position X 0, hardly changes photometry value.

図4は、フォーカスエリア中に高輝度な点光源が存在する場合における至近から無限遠までの焦点評価値(同図(a))と、測光値(同図(b))と、点光源の大きさ(同図(c))と、信号レベルの大きさ(同図(d))の変化を示す図である。   FIG. 4 shows a focus evaluation value from the closest to infinity (a diagram (a)), a photometric value (a diagram (b)), and a point light source when a high-luminance point light source is present in the focus area. It is a figure which shows the change of a magnitude | size (the figure (c)) and the magnitude | size of a signal level (the figure (d)).

同図に示すように、一般に高輝度な点光源がフォーカスエリア中に存在する場合、至近から無限遠までフォーカスレンズを移動させて、焦点評価値を取得すると、山が二箇所に現れる。これは点光源の存在により、擬似ピークが発生するためである。すなわち、フォーカスエリア中に高輝度な点光源が存在すると、その点光源の部分で画像信号出力が飽和する範囲が発生する。そして、その画像信号出力が飽和する範囲で擬似ピークが発生するとともに、画像信号出力が飽和しない範囲でも真の合焦位置でピークが発生する。この結果、山が二箇所に現れる。   As shown in the figure, when a high-luminance point light source is generally present in the focus area, when a focus evaluation value is obtained by moving the focus lens from the closest distance to infinity, peaks appear at two locations. This is because a pseudo peak occurs due to the presence of the point light source. That is, when a high-luminance point light source exists in the focus area, a range in which the image signal output is saturated occurs at the point light source portion. A pseudo peak is generated in a range where the image signal output is saturated, and a peak is generated at a true in-focus position even in a range where the image signal output is not saturated. As a result, mountains appear in two places.

ここで、測光値の変化を見ると、擬似ピークの付近では、測光値が大きく変化するのに対して、真の合焦位置を示すピーク位置(画像信号出力が飽和しない範囲でのピーク位置)では、測光値が最小となり、その付近ではほとんど測光値が変化しない。これは、焦点位置に応じて点光源の大きさが変化することによるものであり、擬似ピークの位置では点光源の大きさが大きく変化し、この結果、測光値も大きく変化する。   Here, looking at the change in the photometric value, the photometric value changes greatly in the vicinity of the pseudo peak, whereas the peak position indicating the true in-focus position (the peak position in the range where the image signal output is not saturated) Then, the photometric value is minimum, and the photometric value hardly changes in the vicinity thereof. This is because the size of the point light source changes according to the focal position, and the size of the point light source changes greatly at the position of the pseudo peak, and as a result, the photometric value also changes greatly.

したがって、焦点評価値がピークの位置を検出し、そのピーク位置付近における測光値の変化を調べれば、検出されたピーク位置が擬似ピークであるか否かを判別することができる。そして、検出されたピーク位置が擬似ピークの場合は、測光値が最小の位置を合焦位置とすれば、フォーカスエリア中に高輝度な点光源が存在する場合であっても、正確に合焦位置合せを行うことができる。   Therefore, if the focus evaluation value detects the peak position and examines the change in the photometric value near the peak position, it can be determined whether or not the detected peak position is a pseudo peak. When the detected peak position is a pseudo peak, if the position with the smallest photometric value is set as the in-focus position, the in-focus state can be accurately obtained even when a high-luminance point light source exists in the focus area. Alignment can be performed.

そこで、第1の方法では、図5に示すように、至近から無限遠まで全域で焦点評価値と測光値を取得し、焦点評価値がピークの位置Xを検出し、その前後の位置X、Xの測光値Y、Yを取得し、取得した測光値Y、Yの差分ΔY1−2を算出し、算出した差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置に設定する。一方、算出した差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、その位置Xを合焦位置に設定する。 Therefore, in the first method, as shown in FIG. 5, the focus evaluation value and the photometric value are obtained in the entire region from close to infinity, the focus evaluation value detects the peak position X 0, and the position X before and after that is detected. 1 , X 2 photometric values Y 1 , Y 2 are acquired, a difference ΔY 1-2 of the acquired photometric values Y 1 , Y 2 is calculated, the calculated difference ΔY 1-2 is compared with an allowable value α, if the difference [Delta] Y 1-2 is less than the allowable value alpha, the focus evaluation value to set the position X 0 of the peak in-focus position. On the other hand, the difference [Delta] Y 1-2 were calculated if allowable value α or more, the photometric value to detect the lowest position X 3, and sets the position X 3 to the in-focus position.

図6は、第1の方法による合焦位置合せの処理手順を示すフローチャートである。   FIG. 6 is a flowchart showing a processing procedure for focusing alignment by the first method.

上記のように、AF制御はシャッタボタンの半押しにより実行されることから、まず、CPU42は、シャッタボタンの半押しを検出する。すなわち、操作部50からS1オン信号の入力の有無を判定する(ステップS10)。   As described above, since the AF control is executed by half-pressing the shutter button, first, the CPU 42 detects half-pressing of the shutter button. That is, it is determined whether or not an S1 ON signal is input from the operation unit 50 (step S10).

S1オン信号が入力されると、CPU42は、至近から無限遠までの全域で焦点評価値と測光値を取得する(ステップS11)。取得した至近から無限遠までの焦点評価値と測光値の情報はRAM46に格納される。   When the S1 ON signal is input, the CPU 42 acquires the focus evaluation value and the photometric value in the entire area from the close range to the infinity range (step S11). The acquired information on the focus evaluation value and the photometric value from the nearest to infinity is stored in the RAM 46.

次に、CPU42は、取得した焦点評価値と測光値の情報に基づいて焦点評価値がピークの位置Xを検出し、その焦点評価値がピークの位置Xの前後の位置X、X(焦点評価値がピークの位置Xから至近側に所定距離Δx離れた位置をXとし、無限遠側に所定距離Δx離れた位置をXとする)での測光値Y、Yを検出する(ステップS12)。 Next, the CPU 42 detects the position X 0 where the focus evaluation value is the peak based on the acquired information on the focus evaluation value and the photometric value, and the focus evaluation value is the positions X 1 and X before and after the peak position X 0. 2 (photometric evaluation values Y 1 and Y at a position where the focus evaluation value is a predetermined distance Δx away from the peak position X 0 on the closest side is X 1 and a position a predetermined distance Δx away from the infinity side is X 2 ) 2 is detected (step S12).

この際、CPU42は、測光、測距の結果得られた至近から無限遠までの焦点評価値と測光値の情報をRAM46に格納し、このRAM46に格納した情報に基づいて焦点評価値がピークの位置X、その焦点評価値がピークの位置Xでの測光値Y、焦点評価値がピークの位置Xの前後の位置X、Xでの測光値Y、Y、及び、測光値が最小の位置Xを検出する。 At this time, the CPU 42 stores information on the focus evaluation value and the photometry value from close to infinity obtained as a result of photometry and distance measurement in the RAM 46, and the focus evaluation value has a peak based on the information stored in the RAM 46. position X 0, the photometric value Y 0 of the focus evaluation value at the position X 0 of the peak, the photometry value Y 1 at position X 1, X 2 before and after the position X 0 of the peak focus evaluation value, Y 2 and, photometric value to detect the lowest position X 3.

次に、検出した焦点評価値がピークの位置Xの前後の位置X、Xでの測光値Y、Yの差分(絶対値)ΔY1−2(ΔY1−2=|Y−Y|)を算出する(ステップS13)。そして、算出した差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満か否かを判定する(ステップS14)。 Next, the difference (absolute value) ΔY 1-2 (ΔY 1-2 = | Y) between the photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the detected focus evaluation value is the peak position X 0. 1− Y 2 |) is calculated (step S13). Then, the difference [Delta] Y 1-2 calculated compared with the allowable value alpha, determines the difference [Delta] Y 1-2 is whether less than the allowable value alpha (Step S14).

なお、この許容値αは、実験やシミュレーション等で判定に最適な数値を求めて設定するものとし、あらかじめROM44に格納しておく。CPU42は、このROM44に格納された許容値αを読み出して、差分ΔY1−2と比較する。 The allowable value α is set by obtaining an optimal numerical value for determination through experiments, simulations, and the like, and is stored in the ROM 44 in advance. CPU42 reads the allowable value α stored in the ROM 44, is compared with the difference [Delta] Y 1-2.

ステップS14の判定の結果、差分ΔY1−2が許容値α未満と判定すると、CPU42は、焦点評価値がピークの位置Xを真の合焦位置と判断し、その位置Xを合焦位置に設定する(ステップS15)。そして、その合焦位置にフォーカスレンズを移動させる(ステップS16)。 Is determined in step S14, when the difference [Delta] Y 1-2 is determined to less than the allowable value alpha, CPU 42 determines the position X 0 of the peak and the true focus position the focus evaluation value, the focus and the position X 0 The position is set (step S15). Then, the focus lens is moved to the in-focus position (step S16).

一方、ステップS14の判定で差分ΔY1−2が許容値α以上と判定すると、CPU42は、焦点評価値がピークの位置Xを擬似ピークと判断し、測光値が最小の位置Xを検出する(ステップS17)。そして、その測光値が最小の位置Xを合焦位置に設定する(ステップS18)。そして、その合焦位置にフォーカスレンズを移動させる(ステップS16)。 On the other hand, when the difference [Delta] Y 1-2 is determined in step S14 it is determined that the allowable value α or more, CPU 42 determines that the pseudo peak position X 0 of the peak focus evaluation value, a photometric value detected minimum position X 3 (Step S17). Then, the photometric value sets the minimum position X 3 to the in-focus position (step S18). Then, the focus lens is moved to the in-focus position (step S16).

すなわち、上記のように焦点評価値がピークの位置であっても、その前後で測光値が大きく変化するときは、フォーカスエリア内に高輝度な点光源が存在し、その点光源によって擬似ピークが発生しているものとみなせるので、この場合は、焦点評価値がピークの位置Xを合焦位置ではないものと判断する。一方、真の合焦位置では、その前後で測光値がほとんど変化しなくなるので、擬似ピークが発生している場合は、測光値が最小の位置を合焦位置と判断し、この位置にフォーカスレンズを移動させる。 That is, even when the focus evaluation value is at the peak position as described above, when the photometric value changes greatly before and after the focus evaluation value, a high-luminance point light source exists in the focus area, and a pseudo peak is generated by the point light source. because regarded as what is occurring, in this case, the focus evaluation value is determined as not the focus position of the position X 0 of the peak. On the other hand, at the true focus position, the photometric value hardly changes before and after that, so if a pseudo peak occurs, the position where the photometric value is the smallest is determined as the focus position, and the focus lens is at this position. Move.

以上説明したように、第1の方法では、焦点評価値がピークの位置が擬似ピークか否かを判定した上で合焦位置合わせを行うので、フォーカスエリア内に高輝度な点光源が存在する場合であっても、正確に合焦位置合わせを行うことができる。   As described above, in the first method, the focus evaluation is performed after determining whether or not the position of the peak of the focus evaluation value is a pseudo peak, so that a high-luminance point light source exists in the focus area. Even in this case, it is possible to accurately perform the in-focus position alignment.

なお、本例では、差分ΔY1−2が許容値α以上のときに初めて測光値が最小の位置Xを検出しているが、焦点評価値がピークの位置を検出するときと同じ
(ステップS12)で測光値が最小の位置Xを検出してもよい。
In the present embodiment, the same (step as when it first photometric value when the difference [Delta] Y 1-2 is larger than the allowable value α is detecting the lowest position X 3, the focus evaluation value for detecting the position of the peak photometric value may detect the minimum position X 3 in S12).

また、測光値Y、Yを検出する位置X、Xについては、実験やシミュレーション等で最適な位置(焦点評価値がピークの位置Xから最適な範囲)を求めて、設定することが好ましい。 Further, the positions X 1 and X 2 for detecting the photometric values Y 1 and Y 2 are obtained by setting the optimum position (the optimum range of the focus evaluation value from the peak position X 0 ) by experiments or simulations. It is preferable.

・第2の方法
上記第1の方法では、焦点評価値がピークの位置Xが擬似ピークのとき、測光値が最小の位置Xを合焦位置に設定しているが、第2の方法では、焦点評価値がピークの位置Xが擬似ピークのとき、測光値が最小の位置Xを検出し、その付近における測光値の変化を調べ、測光値がほとんど変化していなければ、測光値が最小の位置Xを合焦位置に設定する。一方、大きく変化していれば、あらかじめ設定されたパンフォーカス位置を合焦位置に設定する。
· In the second method the first method, when the focus evaluation value position X 0 of the peak of the pseudo peak, although the photometry value has set the minimum position X 3 to the in-focus position, the second method So when the focus evaluation value position X 0 of the peak of the pseudo peak, photometric value detects the minimum position X 3, examine the change in photometry value in the vicinity thereof, when the photometric value has not changed little, photometry value sets the minimum position X 3 to the in-focus position. On the other hand, if there is a significant change, a preset pan focus position is set as the in-focus position.

具体的には、図7に示すように、測光値が最小の位置Xを検出し、その前後の位置X、Xの測光値Y、Yを取得し、その差分(絶対値)ΔY4−5(ΔY4−5=|Y−Y|)を算出する。そして、算出した差分ΔY4−5を許容値βと比較し、差分ΔY4−5が許容値β未満か否かを判定する。差分ΔY4−5が許容値β未満であれば、測光値が最小の位置Xを合焦位置に設定し、差分ΔY4−5が許容値β以上であれば、あらかじめ設定されたパンフォーカス位置を合焦位置に設定する。 Specifically, as shown in FIG. 7, the photometric value to detect the lowest position X 3, obtains the photometric value Y 4, Y 5 position X 4, X 5 before and after, the difference (absolute value ) ΔY 4-5 (ΔY 4-5 = | Y 4 −Y 5 |) is calculated. Then, the calculated difference ΔY 4-5 is compared with the allowable value β, and it is determined whether or not the difference ΔY 4-5 is less than the allowable value β. If the difference [Delta] Y 4-5 is less than the allowable value beta, it sets the photometric value is the minimum position X 3 to the in-focus position, if the difference [Delta] Y 4-5 are allowable value beta or pan focus preset Set the position to the in-focus position.

図8は、第2の方法による合焦位置合せの処理手順を示すフローチャートである。なお、第1の方法と同じ処理については、同じ符号を付している。   FIG. 8 is a flowchart showing a processing procedure for focusing alignment by the second method. In addition, the same code | symbol is attached | subjected about the process same as a 1st method.

まず、CPU42は、シャッタボタンの半押しを検出する。すなわち、S1オン信号の入力の有無を判定する(ステップS10)。   First, the CPU 42 detects a half-press of the shutter button. That is, it is determined whether or not an S1 ON signal is input (step S10).

S1オン信号が入力されると、CPU42は、至近から無限遠までの全域で焦点評価値と測光値を取得する(ステップS11)。そして、焦点評価値がピークの位置Xを検出し、その前後の位置X、Xでの測光値Y、Yを検出する(ステップS12)。 When the S1 ON signal is input, the CPU 42 acquires the focus evaluation value and the photometric value in the entire area from the close range to the infinity range (step S11). Then, to detect the position X 0 of the peak focus evaluation value, for detecting photometric values Y 1, Y 2 at position X 1, X 2 before and after (step S12).

次に、検出した焦点評価値がピークの位置Xの前後の位置X、Xでの測光値Y、Yの差分(絶対値)ΔY1−2(ΔY1−2=|Y−Y|)を算出する(ステップS13)。そして、算出した差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満か否かを判定する(ステップS14)。 Next, the difference (absolute value) ΔY 1-2 (ΔY 1-2 = | Y) between the photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the detected focus evaluation value is the peak position X 0. 1− Y 2 |) is calculated (step S13). Then, the difference [Delta] Y 1-2 calculated compared with the allowable value alpha, determines the difference [Delta] Y 1-2 is whether less than the allowable value alpha (Step S14).

この判定の結果、差分ΔY1−2が許容値α未満と判定すると、CPU42は、焦点評価値がピークの位置Xを真の合焦位置と判断し、その位置Xを合焦位置に設定する(ステップS15)。そして、その合焦位置にフォーカスレンズを移動させる(ステップS16)。 As a result of the determination, when the difference [Delta] Y 1-2 is determined to less than the allowable value alpha, CPU 42 has the position X 0 of the peak focus evaluation value is determined as the true focus position, the position X 0 to the focus position Set (step S15). Then, the focus lens is moved to the in-focus position (step S16).

一方、ステップS14の判定で差分ΔY1−2が許容値α以上と判定すると、CPU42は、焦点評価値がピークの位置Xを擬似ピークと判断する。そして、測光値が最小の位置Xを検出し(ステップS20)、その前後の位置X、X(測光値が最小の位置Xから至近側に所定距離Δx離れた位置をXとし、無限遠側に所定距離Δx離れた位置をXとする)における測光値Y、Yを検出する(ステップS21)。 On the other hand, when the difference [Delta] Y 1-2 is determined that the allowable value α or more is determined in step S14, CPU 42 is the focus evaluation value to determine the position X 0 of the peak and quasi-peak. Then, the photometric value to detect the lowest position X 3 (step S20), and the position a predetermined distance away Δx from the position X 4, X 5 (photometric value minimum position X 3 before and after the near side and X 4 Then, photometric values Y 4 and Y 5 at a position separated by a predetermined distance Δx on the infinity side are defined as X 5 (step S21).

CPU42は、検出した測光値Y、Yの差分(絶対値)ΔY4−5(ΔY4−5=|Y−Y|)を算出し(ステップS22)、算出した差分ΔY4−5を許容値βと比較して、差分ΔY4−5が許容値β未満か否かを判定する(ステップS23)。 The CPU 42 calculates a difference (absolute value) ΔY 4-5 (ΔY 4-5 = | Y 4 −Y 5 |) between the detected photometric values Y 4 and Y 5 (step S22), and calculates the calculated difference ΔY 4− 5 is compared with the allowable value β, and it is determined whether or not the difference ΔY 4-5 is less than the allowable value β (step S23).

なお、この許容値βは、許容値αと同様に実験やシミュレーション等で判定に最適な数値を求めて設定するものとし、あらかじめROM44に格納しておく。CPU42は、このROM44に格納された許容値βを読み出して、差分ΔY4−5と比較する。 As with the allowable value α, the allowable value β is obtained by setting an optimal numerical value for determination through experiments, simulations, or the like, and is stored in the ROM 44 in advance. The CPU 42 reads the allowable value β stored in the ROM 44 and compares it with the difference ΔY 4-5 .

この判定の結果、差分ΔY4−5が許容値β未満ならば、測光値が最小の位置Xを合焦位置に設定する(ステップS24)。一方、差分ΔY4−5が許容値β以上ならば、あらかじめ設定されたパンフォーカス位置を合焦位置に設定する(ステップS25)。そして、設定した合焦位置にフォーカスレンズを移動させる(ステップS16)。 The result of this determination, the difference [Delta] Y 4-5 is if less than the allowable value beta, the photometric value sets the minimum position X 3 to the in-focus position (step S24). On the other hand, if the difference ΔY 4-5 is greater than or equal to the allowable value β, a preset pan focus position is set as the in-focus position (step S25). Then, the focus lens is moved to the set focus position (step S16).

以上のように、第2の方法では、焦点評価値がピークの位置が擬似ピークのとき、測光値が最小の位置Xを検出し、その付近における測光値の変化を調べ、測光値がほとんど変化していなければ、測光値が最小の位置Xを合焦位置に設定し、大きく変化していれば、あらかじめ設定されたパンフォーカス位置を合焦位置に設定するので、より正確に合焦位置合せを行うことができる。 As described above, in the second method, when the focus evaluation value peak positions are pseudo peak, photometric value detects the minimum position X 3, examine the change in photometry value in the vicinity thereof, the photometric value is almost if not changed, and sets the minimum position X 3 photometric value to the in-focus position, if the large change so set the pan-focus position set in advance in the focus position more precisely focused Alignment can be performed.

なお、本例では、差分ΔY1−2が許容値α以上のときに初めて測光値が最小の位置Xを検出しているが、焦点評価値がピークの位置を検出するときと同じステップ(ステップS12)で測光値が最小の位置X、及び、その前後の位置X、Xにおける測光値Y、Yを検出してもよい。 In this example, the same steps as when it first photometric value when the difference [Delta] Y 1-2 is larger than the allowable value α is detecting the lowest position X 3, the focus evaluation value for detecting the position of the peak ( In step S12), the photometric values Y 4 and Y 5 at the position X 3 having the smallest photometric value and the positions X 4 and X 5 before and after the position X 3 may be detected.

また、許容値αと許容値βを別々に設定しているが、許容値αと許容値βは、同じ値であってもよい。   Moreover, although the allowable value α and the allowable value β are set separately, the allowable value α and the allowable value β may be the same value.

・第3の方法
上記第1の方法では、焦点評価値がピークの位置Xが擬似ピークのとき、測光値が最小の位置Xを合焦位置に設定しているが、第3の方法では、図9に示すように、焦点評価値がピークの位置Xが擬似ピークのとき、測光値が最小の位置Xを検出し、その付近における焦点評価値がピークの位置Xを検出し、その位置を合焦位置に設定する。
- In the third method the first method, when the focus evaluation value is the position X 0 of the peak of the pseudo peak, although the photometry value has set the minimum position X 3 to the in-focus position, the third method in, as shown in FIG. 9, when the focus evaluation value position X 0 of the peak of the pseudo peak, photometric value detects the minimum position X 3, the focus evaluation value in the vicinity thereof to detect the position X 6 peaks Then, the position is set as the in-focus position.

図10は、第3の方法による合焦位置合せの処理手順を示すフローチャートである。なお、第1の方法と同じ処理については、同じ符号を付している。   FIG. 10 is a flowchart showing a processing procedure for focusing alignment by the third method. In addition, the same code | symbol is attached | subjected about the process same as a 1st method.

まず、CPU42は、シャッタボタンの半押しを検出する。すなわち、S1オン信号の入力の有無を判定する(ステップS10)。   First, the CPU 42 detects a half-press of the shutter button. That is, it is determined whether or not an S1 ON signal is input (step S10).

S1オン信号が入力されると、CPU42は、至近から無限遠までの全域で焦点評価値と測光値を取得する(ステップS11)。そして、焦点評価値がピークの位置Xを検出し、その前後の位置X、Xでの測光値Y、Yを検出する(ステップS12)。 When the S1 ON signal is input, the CPU 42 acquires the focus evaluation value and the photometric value in the entire area from the close range to the infinity range (step S11). Then, to detect the position X 0 of the peak focus evaluation value, for detecting photometric values Y 1, Y 2 at position X 1, X 2 before and after (step S12).

次に、検出した焦点評価値がピークの位置Xの前後の位置X、Xでの測光値Y、Yの差分(絶対値)ΔY1−2(ΔY1−2=|Y−Y|)を算出し(ステップS13)、算出した差分ΔY1−2を許容値αと比較する。そして、差分ΔY1−2が許容値α以上か否かを判定する(ステップS14)。 Next, the difference (absolute value) ΔY 1-2 (ΔY 1-2 = | Y) between the photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the detected focus evaluation value is the peak position X 0. 1− Y 2 |) is calculated (step S13), and the calculated difference ΔY 1-2 is compared with the allowable value α. Then, it is determined whether the difference [Delta] Y 1-2 are allowable value α or more (step S14).

この判定の結果、差分ΔY1−2が許容値α未満と判定すると、CPU42は、焦点評価値がピークの位置Xを真の合焦位置と判断し、その位置Xを合焦位置に設定する(ステップS15)。そして、その合焦位置にフォーカスレンズを移動させる(ステップS16)。 As a result of the determination, when the difference [Delta] Y 1-2 is determined to less than the allowable value alpha, CPU 42 has the position X 0 of the peak focus evaluation value is determined as the true focus position, the position X 0 to the focus position Set (step S15). Then, the focus lens is moved to the in-focus position (step S16).

一方、ステップS14の判定で差分ΔY1−2が許容値α以上と判定すると、CPU42は、焦点評価値がピークの位置Xを擬似ピークと判断する。そして、測光値が最小の位置Xを検出し(ステップS30)、その付近で焦点評価値がピークの位置Xを検出する(ステップS31)。 On the other hand, when the difference [Delta] Y 1-2 is determined that the allowable value α or more is determined in step S14, CPU 42 is the focus evaluation value to determine the position X 0 of the peak and quasi-peak. Then, the photometric value to detect the lowest position X 3 (step S30), near its focus evaluation value for detecting the position X 6 peaks (step S31).

ここで、焦点評価値のサーチ範囲は、測光値が最小の位置Xから前後に微小距離Δd離れた狭い範囲に設定するものとし、その範囲内で焦点評価値がピークの位置Xを検出する。 Here, the search range of the focus evaluation value, it is assumed that the photometric value is set to a narrow range apart a small distance Δd in front and rear from the minimum position X 3, detected focus evaluation value within that range the position X 6 peaks To do.

このサーチの結果から、CPU42は焦点評価値がピークの位置Xの有無を判定する(ステップS32)。そして、焦点評価値がピークの位置Xがあると判定すると、CPU42は、その焦点評価値がピークの位置Xを合焦位置に設定する(ステップS33)。一方、焦点評価値がピークの位置Xがないと判定すると、CPU42は、あらかじめパンフォーカス位置を合焦位置に設定する(ステップS34)。そして、設定した合焦位置にフォーカスレンズを移動させる(ステップS16)。 The results of this search, CPU 42 is the focus evaluation value determines the presence or absence of the position X 6 peaks (step S32). When the focus evaluation value determining that there is a position X 6 peak, CPU 42, the focus evaluation value is set to the position X 6 peaks focus position (step S33). On the other hand, the focus evaluation value when it is determined that there is no position X 6 peak, CPU 42 sets in advance the pan-focus position in the focus position (step S34). Then, the focus lens is moved to the set focus position (step S16).

以上のように、第3の方法では、焦点評価値がピークの位置が擬似ピークのとき、測光値が最小の位置Xを検出し、その付近で焦点評価値がピークの位置Xを検出し、検出した位置Xを合焦位置に設定するので、より正確に合焦位置合せを行うことができる。 As described above, in the third method, when the focus evaluation value peak positions are pseudo peak, photometric value detects the minimum position X 3, near its focus evaluation value detection position X 6 peaks and, since setting a position X 6 detected in-focus position, it is possible to perform combined and more accurate focus position.

なお、本例では差分ΔY1−2が許容値α以上のときに初めて測光値が最小の位置Xを検出しているが、焦点評価値がピークの位置Xを検出するときと同じステップ(ステップS12)で測光値が最小の位置X、及び、その付近での焦点評価値がピークの位置Xを検出してもよい。 Incidentally, the same steps as when in this example and the first photometric value when the difference [Delta] Y 1-2 is larger than the allowable value α is detecting the lowest position X 3, the focus evaluation value for detecting the position X 0 of the peak In step S12, the position X 3 having the smallest photometric value and the position X 6 having the peak focus evaluation value in the vicinity thereof may be detected.

また、焦点評価値がピークの位置Xは、最初に取得した全域の焦点評価値の情報に基づいて検出してもよいし、測光値が最小の位置付近で焦点評価値の検出処理を再度実行し(測光値が最小の位置付近でフォーカスレンズを移動させ、焦点評価値を取得する)、得られた焦点評価値の情報に基づいてピーク位置Xを検出してもよい。 The position X 6 peaks focus evaluation value may be detected on the basis of the information of the first focus evaluation value of the acquired whole, the process of detecting the focus evaluation value photometric value is in the vicinity of the minimum position again executed (moving the focus lens photometric value in the vicinity of the minimum position, and acquires the focus evaluation value), it may detect the peak position X 6 based on the information of the obtained focus evaluation values.

・第4の方法
第4の方法では、フォーカスエリアを複数のエリアに分割し、分割された各エリアについて至近から無限遠まで全域で焦点評価値と測光値を取得し、各エリアにおける測光値の最大値と最小値とを検出する。そして、その最大値と最小値との差分を算出し、算出した差分が許容値以上のエリアを除外して合焦位置を検出する。すなわち、本発明では、測光値の最大値と最小値の差分が許容値以上のエリアには、高輝度の点光源が存在するものとみなし、そのエリアを除外して合焦位置の検出を行う。
-Fourth method In the fourth method, the focus area is divided into a plurality of areas, and focus evaluation values and photometric values are obtained over the entire area from the nearest to infinity for each divided area. Detect maximum and minimum values. Then, a difference between the maximum value and the minimum value is calculated, and an in-focus position is detected by excluding an area where the calculated difference is an allowable value or more. That is, in the present invention, it is assumed that a high-brightness point light source exists in an area where the difference between the maximum value and the minimum value of the photometric value is an allowable value or more, and the in-focus position is detected by excluding that area. .

たとえば、図11に示すように、画面中央にフォーカスエリアを設定し、そのフォーカスエリア内を十字に区切り四分割する。分割したエリアをエリアA、B、C、Dとし、エリアBに高輝度な点光源が存在すると仮定する。   For example, as shown in FIG. 11, a focus area is set at the center of the screen, and the focus area is divided into four and divided into four. Assume that the divided areas are areas A, B, C, and D, and a high-brightness point light source exists in area B.

各エリアA、B、C、Dについて、至近から無限遠まで全域で焦点評価値を取得すると、各エリアの焦点評価値は、たとえば図12に示すように変化する。この場合、点光源を有するエリアBにおいて、擬似ピークが発生する。   For each area A, B, C, and D, when focus evaluation values are acquired in the entire region from close to infinity, the focus evaluation values in each area change as shown in FIG. 12, for example. In this case, a pseudo peak occurs in area B having a point light source.

また、この四つのエリアA、B、C、Dの焦点評価値を平均すると、焦点評価値は、図13(a)に示すように変化する。この場合、エリアBが含まれていることにより、エリアBにおける擬似ピークの影響を受け、平均した焦点評価値も擬似ピークが発生する。そして、この平均した焦点評価値に基づいて合焦位置検出を行うと、擬似ピークを合焦位置とみなしてしまい、ピンぼけ写真が撮影されてしまう。   Further, when the focus evaluation values of the four areas A, B, C, and D are averaged, the focus evaluation value changes as shown in FIG. In this case, since the area B is included, the average focus evaluation value also has a pseudo peak due to the influence of the pseudo peak in the area B. If focus position detection is performed based on the average focus evaluation value, the pseudo peak is regarded as the focus position, and a defocused photograph is taken.

一方、エリアBを除いた残り三つのエリアA、C、Dの焦点評価値を平均すると、焦点評価値は、同図(b)に示すように変化する。この場合、点光源による擬似ピークの影響を受けないため、焦点評価値がピークの位置を合焦位置とみなすことができる。   On the other hand, when the focus evaluation values of the remaining three areas A, C, and D excluding the area B are averaged, the focus evaluation value changes as shown in FIG. In this case, since it is not influenced by the pseudo peak due to the point light source, the position of the peak of the focus evaluation value can be regarded as the in-focus position.

したがって、分割した各エリアの焦点評価値に基づいて合焦位置を検出する場合は、点光源を含むエリアを除外して検出する必要がある。   Therefore, when the focus position is detected based on the focus evaluation value of each divided area, it is necessary to exclude the area including the point light source.

ここで、各エリアA、B、C、Dについて、至近から無限遠まで全域で測光値を取得すると、測光値は、たとえば図14に示すように変化する。すなわち、高輝度な点光源を有するエリアBにおいて、測光値が大きく変化する。これは焦点位置が変化することによって、点光源の大きさが変化し、この結果、測光値も大きく変化することによる。   Here, for each of the areas A, B, C, and D, when the photometric value is acquired in the entire area from the close range to the infinity, the photometric value changes as shown in FIG. 14, for example. That is, the photometric value changes greatly in area B having a high-luminance point light source. This is because the size of the point light source changes as the focal position changes, and as a result, the photometric value also changes greatly.

したがって、各エリアについて至近から無限遠まで全域で測光値を取得し、その変化を調べれば、各エリアに点光源が含まれるか否かを判定することができる。   Therefore, if a photometric value is acquired for the entire area from close to infinity and the change is examined, it can be determined whether or not a point light source is included in each area.

そこで、第4の方法では、分割された各エリアについて至近から無限遠まで全域で測光値を取得し、各エリアにおける測光値の最大値と最小値を検出して、その差分を求め、求めた差分が許容値以上のエリアを除外して合焦位置を検出する。これにより、点光源の影響を受けずに正確に合焦位置検出を行うことができる。   Therefore, in the fourth method, for each divided area, photometric values are obtained in the entire area from the nearest to infinity, the maximum and minimum photometric values in each area are detected, and the difference is obtained and obtained. An in-focus position is detected by excluding an area where the difference is greater than or equal to an allowable value. Thereby, it is possible to accurately detect the in-focus position without being affected by the point light source.

図15は、第4の方法による合焦位置合せの処理手順を示すフローチャートである。   FIG. 15 is a flowchart showing a processing procedure for in-focus position alignment according to the fourth method.

まず、CPU42は、シャッタボタンの半押しを検出する。すなわち、S1オン信号の入力の有無を判定する(ステップS40)。   First, the CPU 42 detects a half-press of the shutter button. That is, it is determined whether or not an S1 ON signal is input (step S40).

S1オン信号が入力されると、CPU42は、各エリアA、B、C、Dについて、至近から無限遠までの全域で焦点評価値と測光値を取得する(ステップS41)。取得した各エリアA、B、C、Dの焦点評価値と測光値の情報はRAM46に格納される。   When the S1 ON signal is input, the CPU 42 acquires a focus evaluation value and a photometric value for each of the areas A, B, C, and D in the entire area from the nearest to infinity (step S41). Information about the obtained focus evaluation values and photometric values of the areas A, B, C, and D is stored in the RAM 46.

次に、CPU42は、取得した各エリアA、B、C、Dの測光値の情報に基づいて、各エリアA、B、C、Dにおける測光値の最大値AMAX、BMAX、CMAX、DMAXと最小値AMIN、BMIN、CMIN、DMINを検出する(ステップS42)。そして、検出した各エリアA、B、C、Dにおける測光値の最大値AMAX、BMAX、CMAX、DMAXと最小値AMIN、BMIN、CMIN、DMINの差分(絶対値)|AMAX−AMIN|、|BMAX−BMIN|、|CMAX−CMIN|、|DMAX−DMIN|を算出する(ステップS43)。 Next, the CPU 42 determines the maximum photometric values A MAX , B MAX , C MAX in the areas A, B, C, D based on the acquired photometric value information of the areas A, B, C, D. D MAX and the minimum values A MIN , B MIN , C MIN , and D MIN are detected (step S42). Then, the difference (absolute value) between the maximum photometric value A MAX , B MAX , C MAX , D MAX and the minimum value A MIN , B MIN , C MIN , D MIN in each detected area A, B, C, D. | a MAX -A MIN |, | B MAX -B MIN |, | C MAX -C MIN |, | D MAX -D MIN | is calculated (step S43).

次に、CPU42は、エリアAにおける測光値の最大値AMAXと最小値AMINの差分|AMAX−AMIN|を規定の許容値γと比較し、差分|AMAX−AMIN|が許容値γ未満か否かを判定する(ステップS43)。 Then, CPU 42 is the difference between the maximum value A MAX and the minimum value A MIN of the photometric value in the area A | A MAX -A MIN | is compared with specified tolerance gamma, the difference | A MAX -A MIN | permissible It is determined whether or not the value is less than γ (step S43).

なお、この許容値γは、実験やシミュレーション等で判定に最適な数値を求めて設定するものとし、あらかじめROM44に格納しておく。CPU42は、このROM44に格納された許容値γを読み出して、差分|AMAX−AMIN|と比較する。 Note that the allowable value γ is set by obtaining an optimal value for determination through experiments, simulations, or the like, and is stored in the ROM 44 in advance. The CPU 42 reads the allowable value γ stored in the ROM 44 and compares it with the difference | A MAX −A MIN |.

この判定の結果、差分|AMAX−AMIN|が、許容値γ以上であると判定すると、CPU42は、後に実施する合焦位置検出からエリアAを除外する(ステップS44)。すなわち、エリアAの焦点評価値の情報を用いずに合焦位置検出を実施する。 As a result of this determination, if it is determined that the difference | A MAX −A MIN | is greater than or equal to the allowable value γ, the CPU 42 excludes the area A from focus position detection to be performed later (step S44). That is, focus position detection is performed without using information on the focus evaluation value of area A.

一方、差分|AMAX−AMIN|が、許容値γ未満であると判定すると、次に、CPU42は、エリアBにおける測光値の最大値BMAXと最小値BMINの差分|BMAX−BMIN|を規定の許容値γと比較し、差分|BMAX−BMIN|が許容値γ未満か否かを判定する(ステップS45)。 On the other hand, if it is determined that the difference | A MAX −A MIN | is less than the allowable value γ, then the CPU 42 determines the difference | B MAX −B between the maximum photometric value B MAX and the minimum value B MIN in the area B. MIN | is compared with a prescribed allowable value γ, and it is determined whether or not the difference | B MAX −B MIN | is less than the allowable value γ (step S45).

この判定の結果、差分|BMAX−BMIN|が、許容値γ以上であると判定すると、CPU42は、後に実施する合焦位置検出からエリアBを除外する(ステップS46)。 As a result of this determination, if it is determined that the difference | B MAX −B MIN | is greater than or equal to the allowable value γ, the CPU 42 excludes the area B from focus position detection to be performed later (step S46).

一方、差分|BMAX−BMIN|が、許容値γ未満であると判定すると、次に、CPU42は、エリアCにおける測光値の最大値CMAXと最小値CMINの差分|CMAX−CMIN|を規定の許容値γと比較し、差分|CMAX−CMIN|が許容値γ未満か否かを判定する(ステップS47)。 On the other hand, if it is determined that the difference | B MAX −B MIN | is less than the allowable value γ, the CPU 42 then determines the difference | C MAX −C between the maximum photometric value C MAX and the minimum value C MIN in the area C. MIN | is compared with a prescribed allowable value γ, and it is determined whether or not the difference | C MAX −C MIN | is less than the allowable value γ (step S47).

この判定の結果、差分|CMAX−CMIN|が、許容値γ以上であると判定すると、CPU42は、後に実施する合焦位置検出からエリアCを除外する(ステップS48)。 As a result of this determination, if the difference | C MAX −C MIN | is determined to be greater than or equal to the allowable value γ, the CPU 42 excludes the area C from focus position detection to be performed later (step S48).

一方、差分|CMAX−CMIN|が、許容値γ未満であると判定すると、次に、CPU42は、エリアDにおける測光値の最大値DMAXと最小値DMINの差分|DMAX−DMIN|を規定の許容値γと比較し、差分|DMAX−DMIN|が許容値γ未満か否かを判定する(ステップS49)。 On the other hand, if it is determined that the difference | C MAX −C MIN | is less than the allowable value γ, then the CPU 42 determines the difference | D MAX −D between the maximum photometric value D MAX and the minimum value D MIN in the area D. MIN | is compared with a prescribed allowable value γ, and it is determined whether or not the difference | D MAX −D MIN | is less than the allowable value γ (step S49).

この判定の結果、差分|DMAX−DMIN|が、許容値γ以上であると判定すると、CPU42は、後に実施する合焦位置検出からエリアDを除外する(ステップS50)。 As a result of this determination, if it is determined that the difference | D MAX −D MIN | is greater than or equal to the allowable value γ, the CPU 42 excludes the area D from focus position detection to be performed later (step S50).

このように全てのエリアA、B、C、Dについて、測光値の最大値と最小値の差分を許容値と比較し、差分が許容値以上のエリアを合焦位置検出から除外する。そして、除外されていない残りのエリアの焦点評価値の情報に用いて合焦位置を検出する(ステップS51)。すなわち、たとえば、エリアBにおいて、測光値の最大値BMAXと最小値BMINの差分|BMAX−BMIN|が許容値γ以上の場合、エリアBが合焦位置検出から除外されるので、残りのエリアA、C、Dの焦点評価値の情報に基づいて合焦位置検出が行われる。また、たとえば、エリアBとエリアCにおいて、測光値の最大値と最小値の差分が許容値以上の場合、エリアBとエリアCが合焦位置検出から除外されるので、残りのエリアA、Dの焦点評価値の情報に基づいて合焦位置検出が行われる。 As described above, for all areas A, B, C, and D, the difference between the maximum and minimum photometric values is compared with the allowable value, and the area where the difference is equal to or larger than the allowable value is excluded from the focus position detection. Then, the focus position is detected using the focus evaluation value information of the remaining areas that are not excluded (step S51). That is, for example, in the area B, if the difference | B MAX −B MIN | of the photometric value maximum value B MAX and the minimum value B MIN is equal to or larger than the allowable value γ, the area B is excluded from the focus position detection. In-focus position detection is performed based on the focus evaluation value information of the remaining areas A, C, and D. Further, for example, in areas B and C, if the difference between the maximum and minimum photometric values is greater than or equal to the allowable value, area B and area C are excluded from in-focus position detection, so the remaining areas A and D The focus position is detected based on the information of the focus evaluation value.

ここで、合焦位置検出は、除外されていない残りのエリアの焦点評価値を平均し、その平均した焦点評価値のピーク位置を検出する。そして、このようにして求めた合焦位置にフォーカスレンズを移動させ、合焦位置合せを行う(ステップS52)。   Here, in the focus position detection, the focus evaluation values of the remaining areas that are not excluded are averaged, and the peak position of the averaged focus evaluation value is detected. Then, the focus lens is moved to the in-focus position thus determined, and the in-focus position is adjusted (step S52).

以上のように第4の方法では、点光源が存在するエリアを除外して合焦位置検出を行うので、フォーカスエリアに点光源が存在する場合であっても正確に合焦位置合せを行うことができる。   As described above, in the fourth method, since the focus position is detected by excluding the area where the point light source exists, the focus position can be accurately adjusted even when the point light source exists in the focus area. Can do.

なお、本例では合焦位置を検出する際、除外されていない残りのエリアの焦点評価値を平均し、その平均した焦点評価値のピーク位置を検出しているが、合焦位置を検出する方法については、これに限定されるものではない。たとえば、エリアごとに焦点評価値がピークの位置を検出し、そのピーク位置を平均して、合焦位置を検出してもよい。また、フォーカスエリアを移動できるようにしてもよい。   In this example, when the focus position is detected, the focus evaluation values of the remaining areas that are not excluded are averaged, and the peak position of the average focus evaluation value is detected, but the focus position is detected. The method is not limited to this. For example, the focus evaluation value may be detected by detecting the peak position of the focus evaluation value for each area and averaging the peak positions. Further, the focus area may be moved.

また、本例ではフォーカスエリアを中央に設定し、そのフォーカスエリア内を四分割する場合を例に説明したが、フォーカスエリアの設定方法、及び、そのフォーカスエリアの分割方法については、特に限定されるものではない。たとえば、画面全体をフォーカスエリアとし、8×8で64分割するようにしてもよい。   In this example, the focus area is set to the center and the inside of the focus area is divided into four. However, the focus area setting method and the focus area dividing method are particularly limited. It is not a thing. For example, the entire screen may be a focus area and may be divided into 64 by 8 × 8.

また、本例では点光源が存在するエリアを除外し、残りのエリアの焦点評価値の情報に基づいて合焦位置検出を行っているが、残りのエリアの焦点評価値の情報から合焦位置を検出できない場合には、パンフォーカス位置を合焦位置に設定するようにしてもよい。   In this example, the area where the point light source exists is excluded, and the focus position is detected based on the focus evaluation value information of the remaining area. However, the focus position is detected based on the focus evaluation value information of the remaining area. If the camera cannot be detected, the pan focus position may be set to the in-focus position.

・第5の方法
第5の方法では、フォーカスエリアを複数のエリアに分割し、分割した各エリアについて至近から無限遠まで全域で焦点評価値を取得し、各エリアにおける焦点評価値のピーク位置を検出する。そして、各エリア同士のピーク位置のズレ量を算出し、ズレ量が許容値以上のエリアを除外して合焦位置を検出する。すなわち、第5の方法では、焦点評価値のピーク位置のズレ量が許容値以上のエリアには、高輝度の点光源が存在するものとみなし、そのエリアを除外して合焦位置の検出を行う。
-Fifth method In the fifth method, the focus area is divided into a plurality of areas, and focus evaluation values are obtained for the divided areas from the nearest to infinity, and the peak position of the focus evaluation value in each area is obtained. To detect. Then, the shift amount of the peak position between the areas is calculated, and the in-focus position is detected by excluding the area where the shift amount is equal to or larger than the allowable value. That is, in the fifth method, it is considered that a high-luminance point light source exists in an area where the deviation amount of the peak position of the focus evaluation value is equal to or larger than the allowable value, and the focus position is detected by excluding that area. Do.

たとえば、図16に示すように、画面中央にフォーカスエリアを設定し、そのフォーカスエリア内を三分割する。分割したエリアをエリアA、B、Cとし、エリアCに高輝度な点光源が存在すると仮定する。   For example, as shown in FIG. 16, a focus area is set at the center of the screen, and the focus area is divided into three. Assume that the divided areas are areas A, B, and C, and that a high-luminance point light source exists in area C.

各エリアA、B、Cについて、至近から無限遠まで全域で焦点評価値を取得すると、各エリアの焦点評価値は、たとえば図17に示すように変化する。この場合、点光源を有するエリアCにおいて、擬似ピークが発生する。   For each area A, B, and C, when focus evaluation values are acquired in the entire region from close to infinity, the focus evaluation values in each area change, for example, as shown in FIG. In this case, a pseudo peak occurs in area C having a point light source.

また、この三つのエリアA、B、Cの焦点評価値を平均すると、焦点評価値は、図18(a)に示すように変化する。この場合、エリアCが含まれていることにより、エリアCにおける擬似ピークの影響を受け、平均した焦点評価値も擬似ピークが発生する。そして、この平均した焦点評価値に基づいて合焦位置検出を行うと、擬似ピークを合焦位置とみなしてしまい、ピンぼけ写真が撮影されてしまう。   Further, when the focus evaluation values of the three areas A, B, and C are averaged, the focus evaluation value changes as shown in FIG. In this case, since the area C is included, it is affected by the pseudo peak in the area C, and the average focus evaluation value also generates the pseudo peak. If focus position detection is performed based on the average focus evaluation value, the pseudo peak is regarded as the focus position, and a defocused photograph is taken.

一方、エリアCを除いた残り二つのエリアA、Bの焦点評価値を平均すると、焦点評価値は、同図(b)に示すように変化する。この場合、点光源による擬似ピークの影響を受けないため、焦点評価値がピークの位置を合焦位置とみなすことができる。   On the other hand, when the focus evaluation values of the remaining two areas A and B excluding the area C are averaged, the focus evaluation value changes as shown in FIG. In this case, since it is not influenced by the pseudo peak due to the point light source, the position of the peak of the focus evaluation value can be regarded as the in-focus position.

したがって、分割した各エリアの焦点評価値に基づいて合焦位置を検出する場合は、点光源を含むエリアを除外して検出する必要がある。   Therefore, when the focus position is detected based on the focus evaluation value of each divided area, it is necessary to exclude the area including the point light source.

ここで、各エリアA、B、Cについて、焦点評価値がピークの位置X、X、Xを比較すると、図19に示すように、点光源を有するエリアCのピーク位置Xが、他のエリアのピーク位置X、Xから大きくずれる。 Here, for each of the areas A, B, and C, when the focus evaluation values of the peak positions X A , X B , and X C are compared, the peak position X C of the area C having the point light source is as shown in FIG. , Greatly deviate from the peak positions X A and X B in other areas.

したがって、各エリアA、B、Cについて、焦点評価値がピークの位置X、X、Xを求め、その位置を比較し、大きくずれるエリアを検出すれば、点光源を含むエリアを検出することができる。 Therefore, for each of the areas A, B, and C, the position X A , X B , and X C at which the focus evaluation value is a peak is obtained, the positions are compared, and an area that greatly deviates is detected. can do.

そこで、第5の方法では、分割された各エリアについて焦点評価値がピークの位置を検出し、各エリア同士のピーク位置のズレ量を算出して、点光源を含むエリアを求め、求めたエリアを除外して合焦位置を検出する。これにより、点光源の影響を受けずに正確に合焦位置検出を行うことができる。   Therefore, in the fifth method, the position of the peak of the focus evaluation value is detected for each divided area, the shift amount of the peak position between the areas is calculated, the area including the point light source is obtained, and the obtained area And the in-focus position is detected. Thereby, it is possible to accurately detect the in-focus position without being affected by the point light source.

図20は、第5の方法による合焦位置合せの処理手順を示すフローチャートである。   FIG. 20 is a flowchart illustrating a processing procedure for in-focus position alignment according to the fifth method.

まず、CPU42は、シャッタボタンの半押しを検出する。すなわち、S1オン信号の入力の有無を判定する(ステップS60)。   First, the CPU 42 detects a half-press of the shutter button. That is, it is determined whether or not an S1 ON signal is input (step S60).

S1オン信号が入力されると、CPU42は、各エリアA、B、Cについて、至近から無限遠まで全域で焦点評価値を取得する(ステップS61)。取得した各エリアA、B、Cの焦点評価値の情報はRAM46に格納される。   When the S1 ON signal is input, the CPU 42 acquires focus evaluation values for the areas A, B, and C from the closest range to the infinity range (step S61). Information about the obtained focus evaluation values of the areas A, B, and C is stored in the RAM 46.

次に、CPU42は、取得した各エリアA、B、Cの焦点評価値の情報に基づいて焦点評価値がピークの位置X、X、Xを検出する(ステップS62)。そして、検出した各エリアA、B、C同士のピーク位置のズレ量(絶対値)XAB、XBC、XCAを算出する(ステップS63)。 Next, the CPU 42 detects positions X A , X B , and X C at which the focus evaluation values are peaks based on the acquired information on the focus evaluation values of the areas A, B, and C (step S62). Then, deviation amounts (absolute values) X AB , X BC , X CA of the detected peak positions of the areas A, B, C are calculated (step S63).

次に、CPU42は、算出した各エリア同士のピーク位置のズレ量XAB、XBC、XCAを規定の許容値δと比較し、各ズレ量XAB、XBC、XCAが、すべて許容値δ未満であるという条件(XAB<δ、かつ、XBC<δ、かつ、XCA<δ)を満足するか否か判定する(ステップS64)。 Next, the CPU 42 compares the calculated deviation amounts X AB , X BC , X CA of the peak positions between the respective areas with a prescribed allowable value δ, and the deviation amounts X AB , X BC , X CA are all allowable. It is determined whether or not a condition that the value is less than δ (X AB <δ, X BC <δ, and X CA <δ) is satisfied (step S64).

なお、この許容値δは、実験やシミュレーション等で判定に最適な数値を求めて設定するものとし、あらかじめROM44に格納しておく。CPU42は、このROM44に格納された許容値δを読み出して、ズレ量XAB、XBC、XCAと比較する。 The allowable value δ is set by obtaining an optimal numerical value for determination through experiments or simulations, and is stored in the ROM 44 in advance. The CPU 42 reads the allowable value δ stored in the ROM 44 and compares it with the deviation amounts X AB , X BC , X CA.

この判定の結果、各ズレ量XAB、XBC、XCAが、すべて許容値δ未満という条件を満足すると判定すると、CPU42は、各エリアA、B、Cに高輝度な点光源は存在しないものと判断し、すべてのエリアの焦点評価値の情報に基づいて合焦位置を検出する(ステップS65)。 As a result of this determination, if it is determined that the deviation amounts X AB , X BC , X CA all satisfy the condition of less than the allowable value δ, the CPU 42 does not have a high-luminance point light source in each area A, B, C. The focus position is detected based on the focus evaluation value information of all areas (step S65).

ここで、合焦位置検出は、除外されていない残りのエリアの焦点評価値を平均し、その平均した焦点評価値のピーク位置を検出する。そして、このようにして求めた合焦位置にフォーカスレンズを移動させ、合焦位置合せを行う(ステップS66)。   Here, in the focus position detection, the focus evaluation values of the remaining areas that are not excluded are averaged, and the peak position of the averaged focus evaluation value is detected. Then, the focus lens is moved to the in-focus position thus obtained, and the in-focus position is adjusted (step S66).

一方、上記ステップS64で各ズレ量XAB、XBC、XCAが、すべて許容値δ未満という条件を満足していないと判定すると、次に、CPU42は、ズレ量XABとズレ量XBCが許容値δ以上で、かつ、ズレ量XCAが許容値δ未満という条件(XAB≧δ、かつ、XBC≧δ、かつ、XCA<δ)を満足するか否か判定する(ステップS67)。 On the other hand, if it is determined in step S64 that each of the deviation amounts X AB , X BC , X CA does not satisfy the condition that it is less than the allowable value δ, the CPU 42 then makes a deviation amount X AB and a deviation amount X BC. Is determined to satisfy the condition that X is greater than or equal to the allowable value δ and the deviation amount X CA is less than the allowable value δ (X AB ≧ δ, X BC ≧ δ, and X CA <δ) (step) S67).

この判定の結果、ズレ量XABとズレ量XBCが許容値δ以上で、かつ、ズレ量XCAが許容値δ未満という条件を満足すると判定すると、CPU42は、エリアBに高輝度な点光源が存在するものと判断し、エリアBを合焦位置検出から除外する(ステップS68)。そして、エリアB以外のエリア、すなわちエリアA、Cの焦点評価値の情報に基づいて合焦位置を検出し(ステップS65)、求めた合焦位置にフォーカスレンズを移動させ、合焦位置合せを行う(ステップS66)。 As a result of this determination, if it is determined that the deviation amount X AB and the deviation amount X BC are greater than or equal to the allowable value δ and the deviation amount X CA is less than the allowable value δ, the CPU 42 It is determined that a light source is present, and area B is excluded from focus position detection (step S68). Then, the focus position is detected based on the focus evaluation value information of areas other than area B, that is, areas A and C (step S65), the focus lens is moved to the obtained focus position, and the focus position is adjusted. This is performed (step S66).

一方、ズレ量XABとズレ量XBCが許容値δ以上で、かつ、ズレ量XCAが許容値δ未満という条件を満足していないと判定すると、次に、CPU42は、ズレ量XABが許容値δ未満で、かつ、ズレ量XBCとズレ量XCAが許容値δ以上という条件(XAB<δ、かつ、XBC≧δ、かつ、XCA≧δ)を満足するか否か判定する(ステップS69)。 On the other hand, if it is determined that the condition that the deviation amount X AB and the deviation amount X BC are equal to or larger than the allowable value δ and the deviation amount X CA is less than the allowable value δ, then the CPU 42 determines that the deviation amount X AB is not satisfied. Is less than the allowable value δ, and the condition (X AB <δ and X BC ≧ δ and X CA ≧ δ) that the deviation amount X BC and the deviation amount X CA are greater than or equal to the tolerance value δ is satisfied. (Step S69).

この判定の結果、ズレ量XABが許容値δ未満で、かつ、ズレ量XBCとズレ量XCAが許容値δ以上という条件を満足すると判定すると、CPU42は、エリアCに高輝度な点光源が存在するものと判断し、エリアCを合焦位置検出から除外する(ステップS70)。そして、エリアC以外のエリア、すなわちエリアA、Bの焦点評価値の情報に基づいて合焦位置を検出し(ステップS65)、求めた合焦位置にフォーカスレンズを移動させ、合焦位置合せを行う(ステップS66)。 As a result of this determination, if it is determined that the deviation amount X AB is less than the allowable value δ and the deviation amount X BC and the deviation amount X CA satisfy the allowable value δ or more, the CPU 42 determines that the area C has a high brightness point. It is determined that a light source is present, and area C is excluded from focus position detection (step S70). Then, the focus position is detected based on the focus evaluation value information of areas other than area C, that is, areas A and B (step S65), the focus lens is moved to the obtained focus position, and the focus position is adjusted. This is performed (step S66).

一方、ズレ量XABが許容値δ未満で、かつ、ズレ量XBCとズレ量XCAが許容値δ以上という条件を満足していないと判定すると、CPU42は、エリアAに高輝度な点光源が存在するものと判断し、エリアAを合焦位置検出から除外する(ステップS71)。すなわち、この場合、ズレ量XBCが許容値δ未満で、かつ、ズレ量XABとズレ量XCAが許容値δ以上となるので、CPU42は、エリアAに高輝度な点光源が存在するものと判断し、エリアAを合焦位置検出から除外する(ステップS71)。そして、エリアC以外のエリア、すなわちエリアA、Bの焦点評価値の情報に基づいて合焦位置を検出し(ステップS65)、求めた合焦位置にフォーカスレンズを移動させ、合焦位置合せを行う(ステップS66)。 On the other hand, if it is determined that the condition that the deviation amount X AB is less than the allowable value δ and the deviation amount X BC and the deviation amount X CA are not less than the allowable value δ is satisfied, the CPU 42 It is determined that there is a light source, and area A is excluded from focus position detection (step S71). That is, in this case, less than the deviation amount X BC allowable value [delta], and, since the deviation amount X AB and amount of deviation X CA becomes the allowable value [delta] above, CPU 42 is a high brightness point source is located in the area A The area A is excluded from the focus position detection (step S71). Then, the focus position is detected based on the focus evaluation value information of areas other than area C, that is, areas A and B (step S65), the focus lens is moved to the obtained focus position, and the focus position is adjusted. This is performed (step S66).

以上のように第5の方法では、点光源が存在するエリアを除外して合焦位置検出を行うので、フォーカスエリアに点光源が存在する場合であっても正確に合焦位置合せを行うことができる。   As described above, in the fifth method, since the focus position is detected by excluding the area where the point light source exists, the focus position can be accurately adjusted even when the point light source exists in the focus area. Can do.

なお、本例では合焦位置を検出する際、除外されていない残りのエリアの焦点評価値を平均し、その平均した焦点評価値のピーク位置を検出しているが、合焦位置を検出する方法については、これに限定されるものではない。たとえば、エリアごとに焦点評価値がピークの位置を検出し、そのピーク位置を平均して、合焦位置を検出してもよい。   In this example, when the focus position is detected, the focus evaluation values of the remaining areas that are not excluded are averaged, and the peak position of the average focus evaluation value is detected, but the focus position is detected. The method is not limited to this. For example, the focus evaluation value may be detected by detecting the peak position of the focus evaluation value for each area and averaging the peak positions.

また、本例ではフォーカスエリアを中央に設定し、そのフォーカスエリア内を三分割する場合を例に説明したが、フォーカスエリアの設定方法、及び、そのフォーカスエリアの分割方法については、特に限定されるものではない。たとえば、画面全体をフォーカスエリアとし、8×8で64分割するようにしてもよい。また、フォーカスエリアを移動できるようにしてもよい。   In this example, the focus area is set at the center, and the focus area is divided into three. However, the focus area setting method and the focus area dividing method are particularly limited. It is not a thing. For example, the entire screen may be a focus area and may be divided into 64 by 8 × 8. Further, the focus area may be moved.

また、本例では点光源が存在するエリアを除外し、残りのエリアの焦点評価値の情報に基づいて合焦位置検出を行っているが、残りのエリアの焦点評価値の情報から合焦位置を検出できない場合には、パンフォーカス位置を合焦位置に設定するようにしてもよい。   In this example, the area where the point light source exists is excluded, and the focus position is detected based on the focus evaluation value information of the remaining area. However, the focus position is detected based on the focus evaluation value information of the remaining area. If the camera cannot be detected, the pan focus position may be set to the in-focus position.

以上説明したように、本発明に係る合焦位置検出方法及び装置によれば、フォーカスエリアに高輝度な点光源が存在する場合であっても、正確に合焦位置合せを行うことができる。   As described above, according to the focus position detection method and apparatus according to the present invention, it is possible to accurately perform focus position adjustment even when a high-luminance point light source exists in the focus area.

なお、上記の実施の形態では、本発明をデジタルカメラに適用した場合を例に説明したが、本発明の適用は、これに限定されるものではない。コントラスト検出方式にて合焦位置を検出するものであれば、全ての撮影機器に適用することができる。   In the above embodiment, the case where the present invention is applied to a digital camera has been described as an example. However, the application of the present invention is not limited to this. As long as the in-focus position is detected by the contrast detection method, the present invention can be applied to all photographing apparatuses.

本発明が適用されるデジタルカメラの電気的構成を示すブロック図1 is a block diagram showing an electrical configuration of a digital camera to which the present invention is applied. AF検出部の構成を示すブロック図Block diagram showing the configuration of the AF detection unit フォーカスエリア中に高輝度な点光源が存在しない場合における至近から無限遠までの焦点評価値(a)と測光値(b)の変化を示す図The figure which shows the change of the focus evaluation value (a) and the photometry value (b) from the nearest to infinity when a high-luminance point light source does not exist in a focus area. フォーカスエリア中に高輝度な点光源が存在する場合における至近から無限遠までの焦点評価値(a)と、測光値(b)と、点光源の大きさ(c)と、信号レベルの大きさ(d)の変化を示す図Focus evaluation value (a), photometry value (b), point light source size (c), and signal level from close to infinity when a high-luminance point light source is present in the focus area The figure which shows the change of (d) フォーカスエリア中に高輝度な点光源が存在する場合における至近から無限遠までの焦点評価値(a)と測光値(b)の変化を示す図The figure which shows the change of the focus evaluation value (a) and the photometry value (b) from the nearest to infinity when a high-luminance point light source exists in a focus area. 第1の方法による合焦位置合せの処理手順を示すフローチャートThe flowchart which shows the process sequence of the focusing position alignment by a 1st method フォーカスエリア中に高輝度な点光源が存在する場合における至近から無限遠までの焦点評価値(a)と測光値(b)の変化を示す図The figure which shows the change of the focus evaluation value (a) and the photometry value (b) from the nearest to infinity when a high-luminance point light source exists in a focus area. 第2の方法による合焦位置合せの処理手順を示すフローチャートThe flowchart which shows the process sequence of the focusing position alignment by a 2nd method フォーカスエリア中に高輝度な点光源が存在する場合における至近から無限遠までの焦点評価値(a)と測光値(b)の変化を示す図The figure which shows the change of the focus evaluation value (a) and the photometry value (b) from the nearest to infinity when a high-luminance point light source exists in a focus area. 第3の方法による合焦位置合せの処理手順を示すフローチャートThe flowchart which shows the process sequence of the focusing position alignment by a 3rd method フォーカスエリアの分割方法の説明図Illustration of focus area division method 分割した各エリアの焦点評価値の変化を示す図The figure which shows the change of the focus evaluation value of each divided area すべてのエリアを平均した時(a)と点光源を含むエリアを除外して平均した時(b)の焦点評価値の変化を示す図The figure which shows the change of the focus evaluation value of the time (a) which averaged all the areas, and the time (b) which excluded and averaged the area containing a point light source 分割した各エリアの測光値の変化を示す図The figure which shows the change of the photometric value of each divided area 第4の方法による合焦位置合せの処理手順を示すフローチャートThe flowchart which shows the process sequence of the focusing position alignment by a 4th method フォーカスエリアの分割方法の説明図Illustration of focus area division method 分割した各エリアの焦点評価値の変化を示す図The figure which shows the change of the focus evaluation value of each divided area すべてのエリアを平均した時(a)と点光源を含むエリアを除外して平均した時(b)の焦点評価値の変化を示す図The figure which shows the change of the focus evaluation value of the time (a) which averaged all the areas, and the time (b) which excluded and averaged the area containing a point light source 各エリア同士の焦点評価値のピーク位置の比較方法の説明図Explanatory drawing of the comparison method of the peak position of the focus evaluation value between each area 第5の方法による合焦位置合せの処理手順を示すフローチャートThe flowchart which shows the process sequence of the focusing position alignment by a 5th method

符号の説明Explanation of symbols

10…デジタルカメラ、12…撮影光学系、12z…ズームレンズ、12f…フォーカスレンズ、12i…絞り、14…撮像素子、16…タイミングジェネレータ(TG)、18…アナログ信号処理部、20…A/D変換器、22…画像入力コントローラ、24…デジタル信号処理部、28…エンコーダ、30…画像表示部、32…圧縮・伸張処理部、34…メディアコントローラ、36…記憶メディア、38…AE検出部、40…AF検出部、42…CPU、44…ROM、46…RAM、48…フラッシュROM、50…操作部、60z…ズームモータ、60f…フォーカスモータ、60i…アイリスモータ、62z…ズームモータドライバ、62f…フォーカスモータドライバ、62i…アイリスモータドライバ、70…ハイパスフィルタ、72…絶対値化処理部、74…フォーカスエリア抽出部、76…積算部
DESCRIPTION OF SYMBOLS 10 ... Digital camera, 12 ... Imaging optical system, 12z ... Zoom lens, 12f ... Focus lens, 12i ... Aperture, 14 ... Image sensor, 16 ... Timing generator (TG), 18 ... Analog signal processing part, 20 ... A / D Converter: 22 ... Image input controller, 24 ... Digital signal processing unit, 28 ... Encoder, 30 ... Image display unit, 32 ... Compression / decompression processing unit, 34 ... Media controller, 36 ... Storage medium, 38 ... AE detection unit, 40 ... AF detection unit, 42 ... CPU, 44 ... ROM, 46 ... RAM, 48 ... flash ROM, 50 ... operation unit, 60z ... zoom motor, 60f ... focus motor, 60i ... iris motor, 62z ... zoom motor driver, 62f ... Focus motor driver, 62i ... Iris motor driver, 70 ... High pass Motor, 72 ... absolute value processing unit, 74 ... focus area extraction unit, 76 ... integrating unit

Claims (12)

至近から無限遠まで全域で焦点評価値と測光値を取得し、
焦点評価値がピークの位置Xを検出し、
焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、
取得した測光値Y、Yの差分ΔY1−2を算出し、
算出した差分ΔY1−2を許容値αと比較し、
算出した差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置とし、
算出した差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、測光値が最小の位置Xを合焦位置とすることを特徴とする合焦位置検出方法。
Focus evaluation values and photometric values are obtained in the entire area from close to infinity,
Focus evaluation value is detected the position X 0 of the peak,
The focus evaluation values obtain photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the peak position X 0 ,
The difference ΔY 1-2 between the obtained photometric values Y 1 and Y 2 is calculated,
Compare the calculated difference ΔY 1-2 with the tolerance α,
If the difference [Delta] Y 1-2 the calculated is less than the allowable value alpha, the focus evaluation value and the focus position of the position X 0 of the peak,
If the difference [Delta] Y 1-2 the calculated allowable value α or more, the photometric value to detect the lowest position X 3, focus position detection, characterized in that the photometric value is the lowest position X 3 and focus position Method.
至近から無限遠まで全域で焦点評価値と測光値を取得し、
焦点評価値がピークの位置Xを検出し、
焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、
取得した測光値Y、Yの差分ΔY1−2を算出し、
算出した差分ΔY1−2を許容値αと比較し、
算出した差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置とし、
算出した差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、
測光値が最小の位置Xの前後の位置X、Xの測光値Y、Yを取得し、
取得した測光値Y、Yの差分ΔY4−5を算出し、
算出した差分ΔY4−5を許容値βと比較し、
算出した差分ΔY4−5が許容値β未満ならば、測光値が最小の位置Xを合焦位置とし、
算出した差分ΔY4−5が許容値β以上ならば、パンフォーカス位置を合焦位置とすることを特徴とする合焦位置検出方法。
Focus evaluation values and photometric values are obtained in the entire area from close to infinity,
Focus evaluation value is detected the position X 0 of the peak,
The focus evaluation values obtain photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the peak position X 0 ,
The difference ΔY 1-2 between the obtained photometric values Y 1 and Y 2 is calculated,
Compare the calculated difference ΔY 1-2 with the tolerance α,
If the difference [Delta] Y 1-2 the calculated is less than the allowable value alpha, the focus evaluation value and the focus position of the position X 0 of the peaks,
If calculated difference [Delta] Y 1-2 was allowable value α or more, the photometric value to detect the lowest position X 3,
Obtain photometric values Y 4 and Y 5 at positions X 4 and X 5 before and after the position X 3 having the smallest photometric value,
The difference ΔY 4-5 between the obtained photometric values Y 4 and Y 5 is calculated,
Compare the calculated difference ΔY 4-5 with the allowable value β,
If the calculated difference ΔY 4-5 is less than the allowable value β, the position X 3 with the smallest photometric value is set as the in-focus position,
If the calculated difference ΔY 4-5 is greater than or equal to the allowable value β, the focus position detection method is characterized in that the pan focus position is set as the focus position.
至近から無限遠まで全域で焦点評価値と測光値を取得し、
焦点評価値がピークの位置Xを検出し、
焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、
取得した測光値Y、Yの差分ΔY1−2を算出し、
算出した差分ΔY1−2を許容値αと比較し、
算出した差分ΔY1−2が許容値α未満ならば、焦点評価値がピークの位置Xを合焦位置とし、
算出した差分ΔY1−2が許容値α以上ならば、測光値が最小の位置Xを検出し、
測光値が最小の位置Xの付近で焦点評価値がピークの位置Xを検出し、
焦点評価値がピークの位置Xを合焦位置とすることを特徴とする合焦位置検出方法。
Focus evaluation values and photometric values are obtained in the entire area from close to infinity,
Focus evaluation value is detected the position X 0 of the peak,
The focus evaluation values obtain photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the peak position X 0 ,
The difference ΔY 1-2 between the obtained photometric values Y 1 and Y 2 is calculated,
Compare the calculated difference ΔY 1-2 with the tolerance α,
If the difference [Delta] Y 1-2 the calculated is less than the allowable value alpha, the focus evaluation value and the focus position of the position X 0 of the peak,
If calculated difference [Delta] Y 1-2 was allowable value α or more, the photometric value to detect the lowest position X 3,
Focus evaluation value in the vicinity of the photometric value of the minimum position X 3 detects the position X 6 peaks,
Focus position detecting method characterized by the focus evaluation value and focus position of the position X 6 peak.
測光値が最小の位置Xの付近で焦点評価値にピークの位置がない場合、パンフォーカス位置を合焦位置とすることを特徴とする請求項3に記載の合焦位置検出方法。 If the photometric value is not the position of the peak in the focus evaluation value in the vicinity of the minimum position X 3, focus position detection method according to claim 3, characterized in that the focus position of the pan-focus position. フォーカスエリアを複数のエリアに分割し、各エリアについて至近から無限遠まで全域で焦点評価値を取得し、得られた各エリアの焦点評価値の情報に基づいて合焦位置を検出する合焦位置検出方法において、
各エリアについて至近から無限遠まで全域で焦点評価値と測光値を取得し、
各エリアにおける測光値の最大値と最小値とを検出し、
各エリアにおける測光値の最大値と最小値との差分を算出し、
算出した差分が許容値以上のエリアの焦点評価値の情報を除外して合焦位置を検出することを特徴とする合焦位置検出方法。
Focus position that divides the focus area into multiple areas, obtains the focus evaluation value for each area from the nearest to infinity, and detects the focus position based on the obtained focus evaluation value information for each area In the detection method,
Focus evaluation values and photometric values are obtained for each area from close to infinity,
Detect the maximum and minimum photometric values in each area,
Calculate the difference between the maximum and minimum photometric values in each area,
An in-focus position detection method comprising: detecting an in-focus position by excluding information on a focus evaluation value of an area where the calculated difference is equal to or greater than an allowable value.
フォーカスエリアを複数のエリアに分割し、各エリアについて至近から無限遠まで全域で焦点評価値を取得し、得られた各エリアの焦点評価値の情報に基づいて合焦位置を検出する合焦位置検出方法において、
各エリアについて至近から無限遠まで全域で焦点評価値を取得し、
各エリアにおける焦点評価値のピーク位置を検出し、
各エリア同士の焦点評価値のピーク位置のズレ量を算出し、
ズレ量が許容値以上のエリアの焦点評価値の情報を除外して合焦位置を検出することを特徴とする合焦位置検出方法。
Focus position that divides the focus area into multiple areas, obtains the focus evaluation value for each area from the nearest to infinity, and detects the focus position based on the obtained focus evaluation value information for each area In the detection method,
For each area, obtain focus evaluation values from close to infinity,
Detect the peak position of the focus evaluation value in each area,
Calculate the deviation of the peak position of the focus evaluation value between each area,
An in-focus position detection method comprising: detecting an in-focus position by excluding information on a focus evaluation value of an area where a deviation amount is an allowable value or more.
至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、
至近から無限遠まで全域で測光値を取得する測光値取得手段と、
焦点評価値がピークの位置Xを検出するピーク位置検出手段と、
測光値が最小の位置Xを検出する最小位置検出手段と、
焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、その差分ΔY1−2を算出する差分演算手段と、
差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満の場合は、焦点評価値がピークの位置Xに合焦位置を設定し、差分ΔY1−2が許容値α以上の場合は、測光値が最小の位置Xに合焦位置を設定する合焦位置設定手段と、
を備えたことを特徴とする合焦位置検出装置。
A focus evaluation value acquisition means for acquiring a focus evaluation value in the entire region from close to infinity,
A photometric value acquisition means for acquiring a photometric value in the entire region from close to infinity,
A peak position detecting means for detecting the position X 0 of the peak as the focus evaluation value;
And the minimum position detection unit photometric value to detect the lowest position X 3,
A difference calculation means for obtaining photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the peak position X 0 of the focus evaluation value, and calculating a difference ΔY 1-2 thereof;
The difference [Delta] Y 1-2 compared with allowable values alpha, if the difference [Delta] Y 1-2 is less than the allowable value alpha, sets the focus position the focus evaluation value at the position X 0 of the peak, the difference [Delta] Y 1-2 is If exceeding the allowable value α is, the focus position setting means for photometric value sets the focus position to the minimum position X 3,
An in-focus position detecting device comprising:
至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、
至近から無限遠まで全域で測光値を取得する測光値取得手段と、
焦点評価値がピークの位置Xを検出するピーク位置検出手段と、
焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、その差分ΔY1−2を算出する第1差分演算手段と、
測光値が最小の位置Xを検出する最小位置検出手段と、
測光値が最小の位置Xの前後の位置X、Xの測光値Y、Yを取得し、その差分ΔY4−5を算出する第2差分演算手段と、
差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満の場合は、焦点評価値がピークの位置Xに合焦位置を設定し、差分ΔY1−2が許容値α以上の場合は、更に差分ΔY4−5を許容値βと比較し、差分ΔY4−5が許容値β未満の場合は、測光値が最小の位置Xに合焦位置を設定し、差分ΔY4−5が許容値β以上の場合は、パンフォーカス位置に合焦位置を設定する合焦位置設定手段と、
を備えたことを特徴とする合焦位置検出装置。
A focus evaluation value acquisition means for acquiring a focus evaluation value in the entire region from close to infinity,
A photometric value acquisition means for acquiring a photometric value in the entire region from close to infinity,
A peak position detecting means for detecting the position X 0 of the peak as the focus evaluation value;
First difference calculation means for obtaining photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the peak position X 0 of the focus evaluation value, and calculating a difference ΔY 1-2 thereof;
And the minimum position detection unit photometric value to detect the lowest position X 3,
Second difference calculation means for obtaining photometric values Y 4 and Y 5 at positions X 4 and X 5 before and after the position X 3 having the smallest photometric value, and calculating a difference ΔY 4-5 ;
The difference [Delta] Y 1-2 compared with allowable values alpha, if the difference [Delta] Y 1-2 is less than the allowable value alpha, sets the focus position the focus evaluation value at the position X 0 of the peak, the difference [Delta] Y 1-2 is If exceeding the allowable value α is further compares the difference [Delta] Y 4-5 and tolerance beta, when the difference [Delta] Y 4-5 is less than the permissible value beta is set to focus position photometric value to the minimum position X 3 If the difference ΔY 4-5 is greater than or equal to the allowable value β, the focus position setting means for setting the focus position at the pan focus position;
An in-focus position detecting device comprising:
至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、
至近から無限遠まで全域で測光値を取得する測光値取得手段と、
焦点評価値がピークの位置Xを検出する第1ピーク位置検出手段と、
焦点評価値がピークの位置Xの前後の位置X、Xの測光値Y、Yを取得し、その差分ΔY1−2を算出する第1差分演算手段と、
測光値が最小の位置Xを検出する最小位置検出手段と、
測光値が最小の位置Xの付近で焦点評価値がピークの位置Xを検出する第2ピーク位置検出手段と、
差分ΔY1−2を許容値αと比較し、差分ΔY1−2が許容値α未満の場合は、焦点評価値がピークの位置Xに合焦位置を設定し、差分ΔY1−2が許容値α以上の場合は、測光値が最小の位置Xの付近で焦点評価値がピークの位置Xに合焦位置を設定する合焦位置設定手段と、
を備えたことを特徴とする合焦位置検出装置。
A focus evaluation value acquisition means for acquiring a focus evaluation value in the entire region from close to infinity,
A photometric value acquisition means for acquiring a photometric value in the entire region from close to infinity,
A first peak position detecting means for the focus evaluation value for detecting the position X 0 of the peak,
First difference calculation means for obtaining photometric values Y 1 and Y 2 at positions X 1 and X 2 before and after the peak position X 0 of the focus evaluation value, and calculating a difference ΔY 1-2 thereof;
And the minimum position detection unit photometric value to detect the lowest position X 3,
A second peak position detecting means for the focus evaluation value in the vicinity of the photometric value of the minimum position X 3 detects the position X 6 peaks,
The difference [Delta] Y 1-2 compared with allowable values alpha, if the difference [Delta] Y 1-2 is less than the allowable value alpha, sets the focus position the focus evaluation value at the position X 0 of the peak, the difference [Delta] Y 1-2 is If exceeding the allowable value α is, the focus position setting means for photometric value sets the focus position to the position X 6 peaks focus evaluation value in the vicinity of the minimum position X 3,
An in-focus position detecting device comprising:
前記合焦位置設定手段は、測光値が最小の位置Xの付近で焦点評価値にピークの位置がない場合、パンフォーカス位置に合焦位置を設定することを特徴とする請求項9に記載の合焦位置検出装置。 The focus position setting unit, when the photometric value is not the position of the peak in the focus evaluation value in the vicinity of the minimum position X 3, claim 9, characterized in that to set the focus position to the pan-focus position In-focus position detection device. 複数に分割されたフォーカスエリアの各エリアにおいて、至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、
前記各エリアにおいて、至近から無限遠まで全域で測光値を取得する測光値取得手段と、
前記各エリアにおける測光値の最大値と最小値とを検出する検出手段と、
各エリアにおける測光値の最大値と最小値との差分を算出する演算手段と、
前記演算手段で算出した差分が許容値以上のエリアを抽出する抽出手段と、
前記抽出手段で抽出されたエリア以外の焦点評価値の情報に基づいて合焦位置を検出する合焦位置検出手段と、
を備えたことを特徴とする合焦位置検出装置。
In each of the focus areas divided into a plurality of areas, a focus evaluation value acquisition means for acquiring a focus evaluation value in the entire area from the nearest to infinity,
In each area, a photometric value acquisition means for acquiring a photometric value in the entire area from close to infinity,
Detection means for detecting the maximum and minimum photometric values in each area;
An arithmetic means for calculating a difference between the maximum and minimum photometric values in each area;
Extracting means for extracting an area where the difference calculated by the calculating means is equal to or greater than an allowable value;
A focus position detection means for detecting a focus position based on information of a focus evaluation value other than the area extracted by the extraction means;
An in-focus position detecting device comprising:
複数に分割されたフォーカスエリアの各エリアにおいて、至近から無限遠まで全域で焦点評価値を取得する焦点評価値取得手段と、
前記各エリアにおいて、至近から無限遠まで全域で測光値を取得する測光値取得手段と、
前記各エリアにおける焦点評価値がピークの位置を検出する検出手段と、
前記各エリア同士の焦点評価値のピークの位置のズレ量を算出する演算手段と、
ズレ量が許容値以上のエリアを抽出する抽出手段と、
前記抽出手段で抽出されたエリア以外の焦点評価値の情報に基づいて合焦位置を検出する合焦位置検出手段と、
を備えたことを特徴とする合焦位置検出装置。
In each of the focus areas divided into a plurality of areas, a focus evaluation value acquisition means for acquiring a focus evaluation value in the entire area from the nearest to infinity,
In each area, a photometric value acquisition means for acquiring a photometric value in the entire area from close to infinity,
Detecting means for detecting a position of a peak of the focus evaluation value in each area;
A calculation means for calculating a shift amount of a peak position of the focus evaluation value between the areas;
An extraction means for extracting an area where the deviation amount is equal to or greater than an allowable value;
A focus position detection means for detecting a focus position based on information of a focus evaluation value other than the area extracted by the extraction means;
An in-focus position detecting device comprising:
JP2005211390A 2005-07-21 2005-07-21 Focusing position detecting method and device Pending JP2007025559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005211390A JP2007025559A (en) 2005-07-21 2005-07-21 Focusing position detecting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005211390A JP2007025559A (en) 2005-07-21 2005-07-21 Focusing position detecting method and device

Publications (1)

Publication Number Publication Date
JP2007025559A true JP2007025559A (en) 2007-02-01

Family

ID=37786363

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005211390A Pending JP2007025559A (en) 2005-07-21 2005-07-21 Focusing position detecting method and device

Country Status (1)

Country Link
JP (1) JP2007025559A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100315514A1 (en) * 2009-06-15 2010-12-16 Akihiro Uchida Imaging apparatus and imaging control method
JP2011150281A (en) * 2009-12-25 2011-08-04 Canon Inc Imaging apparatus, method for controlling the imaging apparatus, and computer program
JP2012159795A (en) * 2011-02-02 2012-08-23 Nikon Corp Focus adjustment device and imaging apparatus
JP2013097082A (en) * 2011-10-31 2013-05-20 Hitachi Ltd Image signal processing device
JP2013140297A (en) * 2012-01-06 2013-07-18 Hitachi Ltd Image signal processor
JP2013160919A (en) * 2012-02-06 2013-08-19 Hitachi Ltd Image signal processing device and image signal processing method
JP2016200700A (en) * 2015-04-09 2016-12-01 キヤノン株式会社 Imaging apparatus, control method thereof, program and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100315514A1 (en) * 2009-06-15 2010-12-16 Akihiro Uchida Imaging apparatus and imaging control method
US8243191B2 (en) * 2009-06-15 2012-08-14 Fujifilm Corporation Imaging apparatus and imaging control method for focusing by determining a focusing position
JP2011150281A (en) * 2009-12-25 2011-08-04 Canon Inc Imaging apparatus, method for controlling the imaging apparatus, and computer program
JP2012159795A (en) * 2011-02-02 2012-08-23 Nikon Corp Focus adjustment device and imaging apparatus
JP2013097082A (en) * 2011-10-31 2013-05-20 Hitachi Ltd Image signal processing device
JP2013140297A (en) * 2012-01-06 2013-07-18 Hitachi Ltd Image signal processor
JP2013160919A (en) * 2012-02-06 2013-08-19 Hitachi Ltd Image signal processing device and image signal processing method
JP2016200700A (en) * 2015-04-09 2016-12-01 キヤノン株式会社 Imaging apparatus, control method thereof, program and storage medium

Similar Documents

Publication Publication Date Title
JP4588583B2 (en) Imaging apparatus and focus control method
US8199203B2 (en) Imaging apparatus and imaging method with face detection based on scene recognition results
JP5322783B2 (en) IMAGING DEVICE AND CONTROL METHOD OF IMAGING DEVICE
US7764321B2 (en) Distance measuring apparatus and method
JP2006208558A (en) Imaging device
KR101542436B1 (en) Imaging apparatus and imaging method
JP4645413B2 (en) Imaging device
JP2007025559A (en) Focusing position detecting method and device
US8339473B2 (en) Video camera with flicker prevention
JP4949717B2 (en) In-focus position determining apparatus and method
JP2007225897A (en) Focusing position determination device and method
JP4565370B2 (en) Electronic camera and autofocus control method
JP2010062987A (en) Imaging apparatus and method
JP6351255B2 (en) Imaging apparatus, imaging method, program, and storage medium
JP2004341095A (en) Automatic focusing camera
JP5264541B2 (en) Imaging apparatus and control method thereof
KR100819807B1 (en) Image pickup apparatus and method of picking up images
JP2008028956A (en) Imaging apparatus and method for generating image signal for detecting target therein
JP2006243609A (en) Autofocus device
JP2006039254A (en) Camera
US20220400210A1 (en) Image processing apparatus, image pickup apparatus, image processing method, and recording medium
JP4578157B2 (en) camera
JP4823964B2 (en) Imaging apparatus and imaging method
JP4905797B2 (en) Imaging apparatus and imaging method
JP2005242271A (en) Autofocus camera

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20070117