JP2002311325A - Automatic focusing device and method - Google Patents

Automatic focusing device and method

Info

Publication number
JP2002311325A
JP2002311325A JP2001112861A JP2001112861A JP2002311325A JP 2002311325 A JP2002311325 A JP 2002311325A JP 2001112861 A JP2001112861 A JP 2001112861A JP 2001112861 A JP2001112861 A JP 2001112861A JP 2002311325 A JP2002311325 A JP 2002311325A
Authority
JP
Japan
Prior art keywords
evaluation value
lens
focus
search
peak
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
JP2001112861A
Other languages
Japanese (ja)
Inventor
Akihiro Uchida
亮宏 内田
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
Fuji Photo Film Co Ltd
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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2001112861A priority Critical patent/JP2002311325A/en
Publication of JP2002311325A publication Critical patent/JP2002311325A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an automatic focusing device capable of focusing a subject existing on the closest side at a high speed by using an evaluation value calculated from the high frequency component of a picture signal. SOLUTION: A focusing area 94 is divided into a plurality of blocks (1 to 4) to detect the peak of the evaluation value concerning the respective blocks. When the moving direction of a lens in the case of AF search is a direction from infinity to vicinity, searching operation is finished when the peak of the evaluation value is detected in all the divided blocks, and a lens position corresponding to a peak detected finally is judged to be a focusing position. In the case of searching operation from vicinity to infinity, searching operation is finished when the peak of the evaluation value with respect to one of the plurality of blocks is detected, and the lens position corresponding to a peak detected first is judged to be a focusing position. Furthermore, the evaluation value of the area 94 before division is combined and the interruption judgment of searching operation is performed to attain high speed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は自動焦点調節装置及
びその方法に係り、特に、撮像素子からの出力信号に基
づいて、画像の高周波成分を検出し、その検出結果を利
用してオートフォーカス(AF)制御を行う技術に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic focusing apparatus and a method therefor, and more particularly, to detecting a high-frequency component of an image based on an output signal from an image sensor, and using the detection result to perform auto-focusing. The present invention relates to a technique for performing AF) control.

【0002】[0002]

【従来の技術】被写体を撮像し、その映像信号を出力す
るビデオカメラでは、撮影光学系のうち焦点調節に作用
するフォーカスレンズを移動させながら撮像を行い、そ
の出力映像信号から高周波成分を抽出して合焦のための
評価値を算出する。フォーカスレンズの移動の結果、評
価値が増加する場合には同方向に駆動し続け、反対にレ
ンズ移動に伴い評価値が減少する場合には、逆方向に駆
動して評価値のピークを探すという、いわゆる「山登り
サーボ方式」が採用されている。
2. Description of the Related Art In a video camera which captures an image of a subject and outputs a video signal thereof, the video camera captures an image while moving a focus lens of a photographic optical system which acts on focus adjustment, and extracts a high-frequency component from the output video signal. To calculate an evaluation value for focusing. When the evaluation value increases as a result of the movement of the focus lens, the lens continues to be driven in the same direction, and when the evaluation value decreases with the movement of the lens, it is driven in the opposite direction to search for the peak of the evaluation value. That is, a so-called "hill climbing servo system" is employed.

【0003】また、デジタルスチルカメラにおいては、
被写体の至近から無限遠距離までフォーカスレンズを駆
動し、評価値が最大になるところに、フォーカスレンズ
を駆動して合焦させる「コントラストAF方式」が採用
されている。
In a digital still camera,
A “contrast AF method” is employed in which a focus lens is driven from a point close to an object to infinity and the focus lens is driven and focused where the evaluation value is maximized.

【0004】[0004]

【発明が解決しようとする課題】従来のコントラストA
F方式において、フォーカスエリア内に距離の異なる複
数の被写体が存在した場合に、撮影者が意図する被写体
に合焦させる方法として、特開平6−113187号公
報及び特開平7−168083号公報では、画面内に複
数設けられているフォーカスエリアの中から撮影者が意
図するフォーカスエリアを選択し、当該選択されたフォ
ーカスエリアについて自動焦点調節を行う方法が提案さ
れている。また、特開平9−197252号公報は、複
数のフォーカスエリアのうち、あるエリアから得られる
評価値に基づいて一度フォーカスレンズ位置を調節した
後、当該レンズ位置における他のエリアでの評価値の増
加傾向を検出して、最も至近側の被写体に合焦させる方
法が提案されている。
The conventional contrast A
In the F method, when a plurality of subjects having different distances exist in a focus area, as a method of focusing on a subject intended by a photographer, JP-A-6-113187 and JP-A-7-168083 disclose a method. There has been proposed a method of selecting a focus area intended by a photographer from a plurality of focus areas provided in a screen and performing automatic focus adjustment on the selected focus area. Also, Japanese Patent Application Laid-Open No. H9-197252 discloses that after a focus lens position is once adjusted based on an evaluation value obtained from a certain area among a plurality of focus areas, an evaluation value increases in another area at the lens position. There has been proposed a method of detecting a tendency and focusing on the closest object.

【0005】しかしながら、これら従来の方法は、意図
する被写体に合焦されることのみを目的としていたり、
あるエリアに合焦させた後、更に近距離の被写体を探す
処理を行うために、合焦までに時間がかかってしまうと
いう問題がある。
However, these conventional methods aim at focusing only on an intended subject,
After focusing on a certain area, there is a problem that it takes a long time to focus because a process of searching for an object at a shorter distance is performed.

【0006】本発明はこのような事情に鑑みてなされた
もので、最も至近側に存在する被写体に対して高速に合
焦させることができる自動焦点調節装置及び方法を提供
することを目的とする。
The present invention has been made in view of such circumstances, and has as its object to provide an automatic focus adjustment apparatus and method capable of focusing on a subject located closest to the nearest side at high speed. .

【0007】[0007]

【課題を解決するための手段】本発明は前記目的を達成
するために、レンズを介して入射する被写体の光学像を
電気信号に変換する撮像手段を有し、前記撮像手段から
出力される画像信号を用いて算出される画像の鮮鋭度を
示す評価値に基づいて前記レンズの焦点位置を調節する
自動焦点調節装置において、該装置は、撮影画面のうち
前記評価値の算出対象エリアとなるフォーカスエリアを
設定するフォーカスエリア設定手段と、前記フォーカス
エリアを複数のブロックに分割するブロック分割手段
と、前記レンズを焦点調節領域内で移動させるレンズ移
動手段と、前記レンズ移動手段によって移動される各レ
ンズ位置毎に、前記分割されたそれぞれのブロックにつ
いて前記画像信号から被写体のコントラスト成分を抽出
し、該コントラスト成分から前記評価値を算出する評価
値算出手段と、前記レンズを移動させながら各レンズ位
置で前記評価値を取得するサーチ動作を制御する一方、
前記複数のブロックについてそれぞれ算出される評価値
を監視し、前記複数のブロックのうち前記サーチ動作の
レンズ移動方向に応じて設定されるブロック数以上のブ
ロックについて評価値のピークが検出された時点で前記
サーチ動作を中断し、最も至近側で評価値がピークとな
るレンズ位置を合焦位置と判定し、当該合焦位置に前記
レンズを移動させるように前記レンズ移動手段を制御す
る制御手段と、を備えたことを特徴としている。
In order to achieve the above object, the present invention has an image pickup means for converting an optical image of a subject incident through a lens into an electric signal, and an image output from the image pickup means. In an automatic focus adjustment device that adjusts a focal position of the lens based on an evaluation value indicating a sharpness of an image calculated using a signal, the device includes a focus which is a calculation target area of the evaluation value in a shooting screen. Focus area setting means for setting an area; block dividing means for dividing the focus area into a plurality of blocks; lens moving means for moving the lens within a focus adjustment area; and each lens moved by the lens moving means For each position, a contrast component of a subject is extracted from the image signal for each of the divided blocks. An evaluation value calculation means for calculating the evaluation value min, while controlling the search operation to obtain the evaluation value at each lens position while moving the lens,
Monitoring the evaluation value calculated for each of the plurality of blocks, and when a peak of the evaluation value is detected for blocks equal to or more than the number of blocks set according to the lens movement direction of the search operation among the plurality of blocks. Control means for interrupting the search operation, determining the lens position at which the evaluation value has a peak on the closest side as a focus position, and controlling the lens moving means to move the lens to the focus position; It is characterized by having.

【0008】本発明によれば、フォーカスエリアを複数
のブロックに分割して、各ブロック毎に評価値を求め、
それぞれのブロックで評価値のピーク検出状況を監視す
る。フォーカスエリアを細分化したことで、1つのブロ
ック内には距離の異なる複数の被写体が混在する確率が
低くなる。つまり、距離の異なる複数の被写体はそれぞ
れ異なるブロックに分かれて検出される可能性が高く、
距離の異なる被写体による評価値のピークを個別に(ブ
ロック別に)検出できる。逆に言うと、そのような個別
検出に適したブロックサイズとなるようにフォーカスエ
リアの分割数が設定されることが望ましい。
According to the present invention, the focus area is divided into a plurality of blocks, and an evaluation value is obtained for each block.
The peak detection status of the evaluation value is monitored in each block. By dividing the focus area, the probability that a plurality of subjects having different distances are mixed in one block is reduced. In other words, it is highly likely that a plurality of subjects at different distances will be detected separately in different blocks,
The peaks of the evaluation values of the subjects at different distances can be detected individually (by blocks). In other words, it is desirable that the number of divisions of the focus area be set so as to have a block size suitable for such individual detection.

【0009】評価値を取得するサーチ動作のレンズ移動
方向(サーチ方向)は、無限遠から至近に向かう方向
(NEAR方向)と、至近から無限遠に向かう方向(FAR 方
向)の2種類があるが、NEAR方向のサーチ動作の場合
は、分割した全てのブロックで評価値のピークが検出さ
れた時点でサーチ動作を終了できる。
There are two types of lens movement directions (search directions) in the search operation for obtaining the evaluation value: a direction from infinity to infinity (NEAR direction) and a direction from infinity to infinity (FAR direction). In the case of the search operation in the NEAR direction, the search operation can be ended when the peak of the evaluation value is detected in all the divided blocks.

【0010】全てのブロックで評価値のピークが検出さ
れると、その位置よりも更に至近側で被写体のピークが
検出される可能性は低い。したがって、その時点でサー
チ動作を終了し、最後に検出されたピークに対応するレ
ンズ位置又はその近傍を合焦位置と判断できる。なお、
実際に評価値を算出したレンズ位置のみならず、所定の
移動間隔毎に離散的に取得される評価値から補間演算等
によって評価値のピークに対応するレンズ位置を求めて
もよい。
When the peak of the evaluation value is detected in all the blocks, it is unlikely that the peak of the subject is detected further closer to the position than the position. Therefore, the search operation is terminated at that time, and the lens position corresponding to the last detected peak or its vicinity can be determined as the focus position. In addition,
The lens position corresponding to the peak of the evaluation value may be obtained by interpolation or the like from the evaluation value discretely obtained at each predetermined movement interval, as well as the lens position at which the evaluation value is actually calculated.

【0011】また、FAR 方向のサーチ動作を行う場合
は、分割された複数のブロックのうちどれか1つのブロ
ックについて評価値のピークが検出された時点で前記サ
ーチ動作を中断し、当該最初に検出されたピークに対応
するレンズ位置又はその近傍を合焦位置と判定すること
ができる。
When a search operation in the FAR direction is performed, the search operation is interrupted when a peak of the evaluation value is detected for any one of the plurality of divided blocks, and the search operation is performed first. The lens position corresponding to the detected peak or the vicinity thereof can be determined as the focus position.

【0012】このように、サーチ方向によって評価値の
ピークを検出するブロック数を切り替えることで、不要
なサーチ動作を省略でき、最も至近側の被写体に高速に
合焦させることが可能になる。
As described above, by switching the number of blocks for detecting the peak of the evaluation value depending on the search direction, unnecessary search operations can be omitted, and it becomes possible to focus on the closest object at high speed.

【0013】本発明の他の態様に係る自動焦点調節装置
は、前記焦点調節領域内を比較的大きな間隔で移動しな
がら各位置で評価値を取得する第1のサーチ手段と、前
記第1のサーチ手段によって得られた評価値のピークが
検出された位置の近傍に前記レンズを移動させた後、当
該ピークが検出された位置の近傍を前記第1のサーチ手
段よりも小さな間隔で移動しながら各位置で評価値を取
得する第2のサーチ手段と、を備え、前記第1のサーチ
手段によるサーチ動作中に、前記複数のブロックについ
ての評価値のピーク検出とサーチ動作の中断判定とを実
行し、当該第1のサーチ手段のサーチ動作において検出
された評価値のピークのうち最も至近側で検出されたピ
ークに対応するレンズ位置の近傍について前記第2のサ
ーチ手段による評価値の取得動作を実行し、当該第2の
サーチ手段によって得られる評価値のピークに対応する
レンズ位置を合焦位置と判定し、当該合焦位置に前記レ
ンズを移動させることを特徴としている。
According to another aspect of the present invention, there is provided an automatic focusing apparatus, wherein first searching means for obtaining an evaluation value at each position while moving in the focusing area at relatively large intervals, and the first searching means. After moving the lens near the position where the peak of the evaluation value obtained by the search means is detected, the lens is moved near the position where the peak is detected at a smaller interval than the first search means. Second search means for obtaining an evaluation value at each position, wherein during the search operation by the first search means, peak detection of the evaluation values for the plurality of blocks and determination of interruption of the search operation are executed. The second search means evaluates the vicinity of the lens position corresponding to the peak detected on the closest side among the peaks of the evaluation values detected in the search operation of the first search means. Run the operation of obtaining a value, it determines that the focus position of the lens position corresponding to the peak of the evaluation values obtained by the second search unit, is characterized by moving the lens to the focus position.

【0014】すなわち、まず、サーチポイントの間隔
(サーチステップ)が大きい第1のサーチ動作(ラフサ
ーチ)を行い、その結果得られたピーク付近をサーチス
テップの小さい第2のサーチ動作(詳細サーチ)で詳細
にサーチするAF方式を採用する場合に、第1のサーチ
動作において上述した複数ブロックのピーク検出判定を
行ってサーチ動作の中断を判定し、最も至近側のピーク
位置を検出する。その後、第2のサーチ手段によって、
そのピーク位置近傍をより詳細にサーチして正確な合焦
位置を得る。これにより、AF処理の一層の高速化を達
成できる。
That is, first, a first search operation (rough search) with a large search point interval (search step) is performed, and the vicinity of the peak obtained as a result is subjected to a second search operation (fine search) with a small search step. When the AF method for performing a detailed search is adopted, the above-described peak detection determination of a plurality of blocks is performed in the first search operation to determine whether the search operation has been interrupted, and a peak position on the closest side is detected. Then, by the second search means,
An accurate focus position is obtained by searching the vicinity of the peak position in more detail. Thereby, the AF processing can be further speeded up.

【0015】本発明の更に他の態様に係る自動焦点調節
装置は、上記した構成に加えて、分割する前の前記フォ
ーカスエリアについて前記評価値を算出する手段と、前
記分割前のフォーカスエリアについて算出された評価値
に基づいて、サーチ動作の中断を決定する中断判定手段
と、を備え、前記制御手段は、前記中断判定手段によっ
てサーチ動作を中断した場合には、既に検出されている
評価値のピークのうち最も至近側で検出されている評価
値のピークに対応するレンズ位置又はその近傍を合焦位
置と判定し、当該合焦位置に前記レンズを移動させるよ
うに前記レンズ移動手段を制御することを特徴としてい
る。
An automatic focusing apparatus according to still another aspect of the present invention, in addition to the above-described configuration, means for calculating the evaluation value for the focus area before division, and calculating for the focus area before division. Interruption determination means for determining the interruption of the search operation based on the evaluation value obtained, the control means, when the search operation is interrupted by the interruption determination means, the evaluation value of the already detected evaluation value The lens position corresponding to the peak of the evaluation value detected on the closest side of the peak or the vicinity thereof is determined as the focus position, and the lens moving means is controlled so as to move the lens to the focus position. It is characterized by:

【0016】かかる態様によれば、分割した複数のブロ
ックでのピーク検出状況と、分割前のフォーカスエリア
全体の評価値とを組合せてサーチ動作の中断の可否を判
断している。既述の通り、無限遠から至近に向かうサー
チ動作で最も至近側の被写体を検出する場合、全てのブ
ロックで評価値のピークが検出された時点でサーチ動作
を中断するが、何れかのブロックでコントラストの低い
部分が含まれ、評価値のピークが現れないブロックが存
在してしまうと、至近端までサーチ動作を続けてしまう
ことがある。これでは、サーチ動作に時間がかかってし
まう。
According to this aspect, it is determined whether or not the search operation can be interrupted by combining the peak detection status in the plurality of divided blocks and the evaluation value of the entire focus area before the division. As described above, when the closest object is detected in the search operation from infinity to the closest, the search operation is interrupted when the peak of the evaluation value is detected in all the blocks. If there is a block including a low-value portion and a peak of the evaluation value does not appear, the search operation may be continued to the nearest end. In this case, the search operation takes a long time.

【0017】このような問題を解決するため、分割され
たそれぞれのブロックの評価値のピーク検出判定と、分
割前のフォーカスエリア全体の評価値を組合せてサーチ
動作の中断可否を判断している。すなわち、ピークが検
出されたレンズ位置から一定量離れたレンズ位置でのフ
ォーカスエリア全体の評価値が所定の閾値以下である場
合には、それより至近側に被写体が存在しないものとし
てサーチ動作を中断する。これにより、最も至近側に存
在する被写体に対し、一層高速に合焦させることができ
る。
In order to solve such a problem, the peak detection judgment of the evaluation value of each divided block and the evaluation value of the entire focus area before division are combined to determine whether the search operation can be interrupted. That is, when the evaluation value of the entire focus area at a lens position that is a certain distance from the lens position where the peak is detected is equal to or smaller than a predetermined threshold, the search operation is interrupted assuming that no subject exists closer to that. I do. This makes it possible to focus on the subject closest to the nearest side at a higher speed.

【0018】また、焦点調節領域の端点(至近端及び無
限遠のうち少なくとも一方)から所定量以上離れた位置
での評価値に増加傾向が認められなければ、その先に被
写体は存在しないと判断でき、その時点でAFサーチを
中断することによってAF処理の高速化を図ることがで
きる。
If there is no tendency to increase the evaluation value at a position that is at least a predetermined amount away from the end point (at least one of the closest end and infinity) of the focus adjustment area, it is assumed that the subject does not exist before that. The determination can be made, and the AF processing can be speeded up by interrupting the AF search at that time.

【0019】上記した目的を達成する方法発明を提供す
るため、本発明は、レンズを介して入射する被写体の光
学像を撮像手段によって電気信号に変換し、前記撮像手
段から出力される画像信号を用いて画像の鮮鋭度を示す
評価値を算出し、得られた評価値に基づいて前記レンズ
の焦点位置を調節する自動焦点調節方法において、該方
法は、撮影画面のうち前記評価値の算出対象エリアとな
るフォーカスエリアを設定する工程と、前記フォーカス
エリアを複数のブロックに分割する工程と、前記レンズ
を焦点調節領域内で移動させる工程と、前記レンズを移
動させながら各レンズ位置毎に、前記分割されたそれぞ
れのブロックについて前記画像信号から被写体のコント
ラスト成分を抽出し、該コントラスト成分から前記評価
値を算出する評価値算出工程と、前記レンズを移動させ
ながら各レンズ位置で前記評価値を取得するサーチ動作
を制御する工程と、前記複数のブロックについてそれぞ
れ算出される評価値を監視し、前記複数のブロックのう
ち前記サーチ動作のレンズ移動方向に応じて設定される
ブロック数以上のブロックについて評価値のピークが検
出された時点で前記サーチ動作を中断する工程と、最も
至近側で前記評価値がピークとなるレンズ位置を合焦位
置と判定し、当該合焦位置に前記レンズを移動させる工
程と、を含むことを特徴としている。
In order to provide a method for achieving the above object, the present invention converts an optical image of a subject incident through a lens into an electric signal by an image pickup means, and converts an image signal output from the image pickup means into an electric signal. Calculating an evaluation value indicating the sharpness of an image by using the obtained evaluation value, and adjusting the focal position of the lens based on the obtained evaluation value. Setting a focus area to be an area, dividing the focus area into a plurality of blocks, moving the lens within a focus adjustment area, and moving each of the lenses while moving the lens. An evaluation for extracting a contrast component of a subject from the image signal for each of the divided blocks and calculating the evaluation value from the contrast component A calculating step, a step of controlling a search operation for acquiring the evaluation value at each lens position while moving the lens, and monitoring an evaluation value calculated for each of the plurality of blocks; A step of interrupting the search operation when a peak of the evaluation value is detected for blocks equal to or more than the number of blocks set according to the lens movement direction of the search operation; and Is determined as an in-focus position, and the lens is moved to the in-focus position.

【0020】[0020]

【発明の実施の形態】以下添付図面に従って本発明に係
る自動焦点調節装置及び方法の好ましい実施の形態につ
いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of an automatic focusing apparatus and method according to the present invention will be described below with reference to the accompanying drawings.

【0021】図1は、本発明が適用されたデジタルカメ
ラの外観図である。デジタルカメラ10の前面には、撮
影レンズ12、ファインダー窓14、ストロボ発光部1
6が設けられ、カメラ上面には、シャッターボタン18
及び電源スイッチ20が配設されている。また、グリッ
プ部22と反対側のカメラ側面には、メモリカード24
を装着するためのカードスロット26が設けられてい
る。
FIG. 1 is an external view of a digital camera to which the present invention is applied. A photographing lens 12, a viewfinder window 14, a strobe light emitting unit 1
6, a shutter button 18 is provided on the top of the camera.
And a power switch 20. A memory card 24 is provided on the side of the camera opposite to the grip 22.
Is provided with a card slot 26 for mounting the card.

【0022】撮影レンズ12には焦点距離可変のレンズ
(例えば、ズームレンズ)が適用され、撮影レンズ12
の後方にCCDイメージセンサ(図1中不図示、図3に
おいて符号52として記載、以下、CCDという。)が
配置されている。シャッターボタン18は押し込む位置
によって2段階に分かれており、押し込む位置の浅いS
1 が押されると、自動ピント合わせ(AF)及び自動露
出制御(AE)が行われ、S1 から更に押し込む位置の
深いS2 が押されると、記録用の撮影動作(露光、読み
出し)が実行される。
A variable focal length lens (for example, a zoom lens) is applied to the photographing lens 12.
A CCD image sensor (not shown in FIG. 1; described as 52 in FIG. 3; hereinafter, referred to as CCD) is disposed behind the image sensor. The shutter button 18 is divided into two stages depending on the position where the shutter button is pressed.
When 1 is pressed, automatic focusing (AF) and automatic exposure control (AE) are performed, and when S2, which is deeper than S1, is pressed, photographing operations for recording (exposure and reading) are performed. .

【0023】電源スイッチ20は、モード切換スイッチ
と兼用されており、電源OFFとなる「OFF位置」、
静止画撮影モードで電源ONとなる「撮影ON位置」、
及び再生モードで電源ONとなる「再生ON位置」の3
ポジションを切り替えることができる。なお、本例のよ
うな電源スイッチ(以下、電源兼用モードスイッチとい
う。)20に代えて、電源ON/OFFのみの電源スイ
ッチと、静止画撮影モード及び再生モードを切り替える
モードダイヤル等のモード切替手段を設けてもよい。
The power switch 20 is also used as a mode changeover switch.
"Shooting ON position" which is turned on in still image shooting mode,
And the "reproduction ON position" which is turned on in the reproduction mode.
You can switch positions. Instead of the power switch (hereinafter referred to as a power / mode switch) 20 as in the present embodiment, a power switch for only power ON / OFF and a mode switching means such as a mode dial for switching between a still image shooting mode and a reproduction mode. May be provided.

【0024】図2は、デジタルカメラ10の背面側外観
図である。デジタルカメラ10の背面には、ファインダ
ー28、液晶モニタ30、ズームスイッチ32、十字ボ
タン34、メニューキー38、実行キー40及びキャン
セルキー42が設けられている。液晶モニタ30は、撮
影時に画角確認用の電子ファインダーとして使用できる
とともに、撮影した画像のプレビュー画やメモリカード
24から読み出した再生画像等を表示可能な表示手段で
ある。また、十字ボタン34を使用したメニューの選択
や各メニューにおける各種項目の設定なども液晶モニタ
30の表示画面を用いて行われる。
FIG. 2 is an external view of the back side of the digital camera 10. On the back of the digital camera 10, a finder 28, a liquid crystal monitor 30, a zoom switch 32, a cross button 34, a menu key 38, an execution key 40, and a cancel key 42 are provided. The liquid crystal monitor 30 is a display means that can be used as an electronic finder for confirming the angle of view during photographing, and can display a preview image of a photographed image, a reproduced image read from the memory card 24, and the like. Selection of menus using the cross button 34 and setting of various items in each menu are also performed using the display screen of the liquid crystal monitor 30.

【0025】ズームスイッチ32は、上下方向に操作可
能なレバースイッチで構成され、該スイッチを上方向に
操作することで望遠(TELE)方向にズーム移動し、下方
向に操作することで広角(WIDE)方向にズーム移動す
る。十字ボタン34は、上下左右の4方向の指示を入力
可能な多機能ボタンであり、メニュー画面における各種
設定項目の選択や設定内容の変更を指示する操作ボタン
として使用されるとともに、電子ズームの倍率調整や再
生コマの送り/戻しを指示する手段として用いられる。
The zoom switch 32 is composed of a lever switch that can be operated in the up and down direction. The switch is zoomed in the telephoto (TELE) direction by operating the switch upward, and is wide-angle (WIDE) by operating the switch downward. ) Zoom in the direction. The cross button 34 is a multi-function button capable of inputting four directions of up, down, left, and right. The cross button 34 is used as an operation button for instructing selection of various setting items on the menu screen and changing of setting contents. It is used as a means for instructing adjustment and forwarding / returning of a playback frame.

【0026】メニューキー38は、各モードの通常画面
からメニュー画面へ遷移させる時に使用される。実行キ
ー40は、選択内容の確定、処理の実行(確認)指示の
時などに使用される。キャンセルキー42は、メニュー
から選んだ項目の取消し(キャンセル)や1つ前の操作
状態に戻る時などに使用される。
The menu key 38 is used to make a transition from the normal screen of each mode to the menu screen. The execution key 40 is used, for example, when confirming the selected contents or instructing execution (confirmation) of processing. The cancel key 42 is used to cancel (cancel) an item selected from the menu or to return to the previous operation state.

【0027】撮影者は、ファインダー28又は液晶モニ
タ30に映し出されるリアルタイム画像(スルー画)を
確認しながら、ズームスイッチ32を操作して画角を決
定し、シャッターボタン18を押下して撮影を行う。
The photographer operates the zoom switch 32 to determine the angle of view while confirming the real-time image (through image) displayed on the viewfinder 28 or the liquid crystal monitor 30, and presses the shutter button 18 to perform photographing. .

【0028】図3は、デジタルカメラ10の内部構成を
示すブロック図である。撮影レンズ12は、固定レンズ
44、変倍レンズ46A、補正レンズ46B及びフォー
カスレンズ48の4群型インナーフォーカス式ズームレ
ンズで構成されている。
FIG. 3 is a block diagram showing the internal configuration of the digital camera 10. The taking lens 12 includes a four-group inner-focus zoom lens including a fixed lens 44, a variable power lens 46A, a correction lens 46B, and a focus lens 48.

【0029】変倍レンズ46Aと補正レンズ46Bは、
図示せぬカム機構によって両者の位置関係が規制されな
がら光軸に沿って移動し、焦点距離を変更する。なお、
説明の便宜上、変倍レンズ46Aと補正レンズ46Bか
ら成る変倍光学系を「ズームレンズ46」と呼ぶことに
する。
The zoom lens 46A and the correction lens 46B
The camera moves along the optical axis while the positional relationship between the two is regulated by a cam mechanism (not shown), and changes the focal length. In addition,
For convenience of description, a variable power optical system including a variable power lens 46A and a correction lens 46B will be referred to as a "zoom lens 46".

【0030】撮影レンズ12を通過した光は、絞り50
により光量が調節された後、CCD52に入射する。C
CD52の受光面には、フォトセンサが平面的に配列さ
れており、撮影レンズ12を介してCCD52の受光面
に結像された被写体像は、各フォトセンサによって入射
光量に応じた量の信号電荷に変換される。なお、CCD
52は、シャッターゲートパルスのタイミングによって
各フォトセンサの電荷蓄積時間(シャッタースピード)
を制御する、いわゆる電子シャッター機能を有してい
る。
The light that has passed through the taking lens 12 is
After the light amount is adjusted by the above, the light enters the CCD 52. C
Photosensors are arranged in a plane on the light-receiving surface of the CD 52. The subject image formed on the light-receiving surface of the CCD 52 via the photographing lens 12 has a signal charge corresponding to the amount of incident light by each photosensor. Is converted to In addition, CCD
Reference numeral 52 denotes the charge accumulation time (shutter speed) of each photosensor according to the timing of the shutter gate pulse.
, Which is a so-called electronic shutter function.

【0031】各フォトセンサに蓄積された信号電荷は、
CCDドライバ54から与えられるパルスに基づいて信
号電荷に応じた電圧信号(画像信号)として順次読み出
される。CCD52から出力された画像信号は、アナロ
グ処理部56に送られる。アナログ処理部56は、サン
プリングホールド回路、色分離回路、ゲイン調整回路等
の信号処理回路を含み、このアナログ処理部56におい
て、相関二重サンプリング(CDS)処理並びにR,
G,Bの各色信号に色分離処理され、各色信号の信号レ
ベルの調整(プリホワイトバランス処理)が行われる。
The signal charge stored in each photo sensor is
The signals are sequentially read out as voltage signals (image signals) corresponding to the signal charges based on the pulses supplied from the CCD driver 54. The image signal output from the CCD 52 is sent to the analog processing unit 56. The analog processing unit 56 includes a signal processing circuit such as a sampling hold circuit, a color separation circuit, and a gain adjustment circuit. In the analog processing unit 56, correlated double sampling (CDS) processing,
Each of the G and B color signals is subjected to color separation processing, and the signal level of each color signal is adjusted (pre-white balance processing).

【0032】アナログ処理部56から出力された信号
は、A/D変換器58によりデジタル信号に変換された
後、メモリ60に格納される。タイミングジェネレータ
(TG)62は、CPU64の指令に従ってCCDドラ
イバ54、アナログ処理部56及びA/D変換器58に
対してタイミング信号を与えており、このタイミング信
号によって各回路の同期がとられている。
The signal output from the analog processing section 56 is converted into a digital signal by the A / D converter 58 and stored in the memory 60. The timing generator (TG) 62 gives a timing signal to the CCD driver 54, the analog processing unit 56, and the A / D converter 58 in accordance with a command from the CPU 64, and the circuits are synchronized by the timing signal. .

【0033】メモリ60に格納されたデータは、バス6
6を介して信号処理部68に送られる。信号処理部68
は、輝度・色差信号生成回路、ガンマ補正回路、シャー
プネス補正回路、コントラスト補正回路、ホワイトバラ
ンス補正回路等を含むデジタルシグナルプロセッサ(D
SP)で構成された画像処理手段であり、CPU64か
らのコマンドに従って画像信号を処理する。
The data stored in the memory 60 is transmitted to the bus 6
6 to the signal processing section 68. Signal processing unit 68
Is a digital signal processor (D) including a luminance / color difference signal generation circuit, a gamma correction circuit, a sharpness correction circuit, a contrast correction circuit, a white balance correction circuit, and the like.
SP), and processes an image signal in accordance with a command from the CPU 64.

【0034】信号処理部68に入力された画像データ
は、輝度信号(Y信号)及び色差信号(Cr,Cb 信号)
に変換されるとともに、ガンマ補正等の所定の処理が施
された後、メモリ60に格納される。撮影画像を表示出
力する場合、メモリ60から画像データが読み出され、
表示用メモリ70に転送される。表示用メモリ70に記
憶されたデータは、表示用の所定方式の信号(例えば、
NTSC方式のカラー複合映像信号)に変換された後、
D/A変換器72を介して液晶モニタ(LCD)30に
出力される。こうして、当該画像データの画像内容が液
晶モニタ30の画面上に表示される。
The image data input to the signal processing unit 68 includes a luminance signal (Y signal) and color difference signals (Cr, Cb signals).
After being converted to, and subjected to predetermined processing such as gamma correction, the data is stored in the memory 60. When displaying the captured image, the image data is read from the memory 60,
The data is transferred to the display memory 70. The data stored in the display memory 70 is a signal of a predetermined system for display (for example,
After being converted to an NTSC color composite video signal)
The data is output to the liquid crystal monitor (LCD) 30 via the D / A converter 72. Thus, the image content of the image data is displayed on the screen of the liquid crystal monitor 30.

【0035】CCD52から出力される画像信号によっ
てメモリ60内の画像データが定期的に書き換えられ、
その画像データから生成される映像信号が液晶モニタ3
0に供給されることにより、CCD52を介して入力す
る画像がリアルタイムに液晶モニタ30に表示される。
The image data in the memory 60 is periodically rewritten by the image signal output from the CCD 52,
The video signal generated from the image data is transmitted to the liquid crystal monitor 3
By being supplied to 0, an image input via the CCD 52 is displayed on the liquid crystal monitor 30 in real time.

【0036】撮影者がズームスイッチ32を操作する
と、その指示信号がCPU64に入力され、CPU64
はズームスイッチ32からの信号に基づいてズーム駆動
部74を制御してズームレンズ46をテレ(TELE)方向
又はワイド(WIDE)方向に移動させる。ズーム駆動部7
4は図示せぬモータを含み、該モータの駆動力によって
ズームレンズ46が駆動される。ズームレンズ46の位
置(ズーム位置)は、ズーム位置センサ76によって検
出され、該センサ76の検出信号はCPU64に入力さ
れる。
When the photographer operates the zoom switch 32, an instruction signal is input to the CPU 64,
Controls the zoom drive unit 74 based on the signal from the zoom switch 32 to move the zoom lens 46 in the tele (TELE) direction or the wide (WIDE) direction. Zoom drive 7
Reference numeral 4 includes a motor (not shown), and the zoom lens 46 is driven by the driving force of the motor. The position (zoom position) of the zoom lens 46 is detected by a zoom position sensor 76, and a detection signal from the sensor 76 is input to the CPU 64.

【0037】同様に、フォーカス駆動部78は図示せぬ
モータを含み、該モータの駆動力によってフォーカスレ
ンズ48が光軸に沿って前後動する。フォーカスレンズ
48の位置(フォーカス位置)は、フォーカス位置セン
サ80によって検出され、該センサ80の検出信号はC
PU64に入力される。
Similarly, the focus driving section 78 includes a motor (not shown), and the focus lens 48 moves back and forth along the optical axis by the driving force of the motor. The position of the focus lens 48 (focus position) is detected by a focus position sensor 80, and the detection signal of the sensor 80 is C
It is input to PU64.

【0038】電源兼用モードスイッチ20によって静止
画撮影モードが設定され、シャッターボタン18が「半
押し」されると(S1 =ON)、AE及びAF処理が行
われる。すなわち、CPU64は、後述する評価値演算
の結果に基づいてフォーカス駆動部78を制御してフォ
ーカスレンズ48を合焦位置に移動させるとともに、絞
り50の開口径やCCD52の電子シャッター値を算出
する。AF時には被写体を追従するため、被写体像が液
晶モニタ30に動画として表示される。
When the still image shooting mode is set by the power / mode switch 20 and the shutter button 18 is "half-pressed" (S1 = ON), AE and AF processes are performed. That is, the CPU 64 controls the focus driving unit 78 to move the focus lens 48 to the in-focus position based on the result of the evaluation value calculation described later, and calculates the aperture diameter of the diaphragm 50 and the electronic shutter value of the CCD 52. The subject image is displayed as a moving image on the liquid crystal monitor 30 to follow the subject during AF.

【0039】シャッターボタン18が「全押し」操作さ
れると(S2 =ON)、撮影開始指示(レリーズON)
信号が発せられる。CPU64は、レリーズON信号を
検知して記録用の撮像動作を実行する。すなわち、CP
U64は、AE演算の結果に基づいて露出制御を行い、
また、必要に応じてストロボ制御回路82にコマンドを
送り、ストロボ発光部16の発光を制御する。
When the shutter button 18 is fully pressed (S2 = ON), a photographing start instruction (release ON)
A signal is emitted. The CPU 64 detects a release ON signal and executes an imaging operation for recording. That is, CP
U64 performs exposure control based on the result of the AE operation,
A command is sent to the flash control circuit 82 as needed to control the light emission of the flash light emitting unit 16.

【0040】こうして、シャッターボタン18の押下操
作に応動して、記録用の画像データの取り込みが開始さ
れ、所要の信号処理が行われる。画像データを圧縮記録
するモードが選択されている場合、CPU64は圧縮伸
張回路84にコマンドを送る。圧縮伸張回路84は、メ
モリ60に取り込まれた画像データをJPEGその他の
所定の形式に従って圧縮する。
In this way, in response to the pressing operation of the shutter button 18, the capture of the image data for recording is started, and the required signal processing is performed. When the mode for compressing and recording image data is selected, the CPU 64 sends a command to the compression / expansion circuit 84. The compression / expansion circuit 84 compresses the image data taken into the memory 60 according to JPEG or another predetermined format.

【0041】圧縮された画像データは、カードインター
フェース86を介してメモリカード24に記録される。
非圧縮の画像データを記録するモード(非圧縮モード)
が選択されている場合には、圧縮伸張回路84による圧
縮処理は省略され、非圧縮のまま画像データがメモリカ
ード24に記録される。
The compressed image data is recorded on the memory card 24 via the card interface 86.
Mode for recording uncompressed image data (uncompressed mode)
Is selected, the compression processing by the compression / expansion circuit 84 is omitted, and the image data is recorded on the memory card 24 without being compressed.

【0042】本例のデジタルカメラ10では、画像デー
タを保存する手段として、例えばスマートメディア(So
lid-State Floppy Disk Card)が適用される。記録メデ
ィアの形態はこれに限定されず、PCカード、コンパク
トフラッシュ(登録商標)、磁気ディスク、光ディス
ク、光磁気ディスク、メモリスティックなどでもよく、
電子的、磁気的、若しくは光学的、又はこれらの組合せ
による方式に従って読み書き可能な種々の媒体を用いる
ことができる。使用される媒体に応じた信号処理手段と
インターフェースが適用される。異種、同種の記録メデ
ィアを問わず、複数の媒体を装着可能な構成にしてもよ
い。また、画像を保存する手段は、リムーバブルメディ
アに限らず、デジタルカメラ10に内蔵された記録媒体
(内部メモリ)であってもよい。内部メモリに画像を保
存する態様の場合、データをパソコン等の外部機器に転
送するための通信用インターフェースが設けられる。
In the digital camera 10 of the present embodiment, for example, smart media (So
lid-State Floppy Disk Card) is applied. The form of the recording medium is not limited to this, and may be a PC card, a compact flash (registered trademark), a magnetic disk, an optical disk, a magneto-optical disk, a memory stick, or the like.
Various media that can be read and written according to an electronic, magnetic, or optical method, or a combination thereof can be used. Signal processing means and interfaces corresponding to the medium used are applied. A configuration may be adopted in which a plurality of media can be mounted irrespective of different types or the same type of recording media. The means for storing images is not limited to a removable medium, but may be a recording medium (internal memory) built in the digital camera 10. In the case of storing images in the internal memory, a communication interface for transferring data to an external device such as a personal computer is provided.

【0043】電源兼用モードスイッチ20によって再生
モードが設定されると、メモリカード24から画像ファ
イルが読み出される。読み出された画像データは、必要
に応じて圧縮伸張回路84によって伸張処理され、表示
用メモリ70を介して液晶モニタ30に出力される。
When the reproduction mode is set by the power / mode switch 20, an image file is read from the memory card 24. The read image data is subjected to expansion processing by a compression / expansion circuit 84 as necessary, and output to the liquid crystal monitor 30 via the display memory 70.

【0044】CPU64は、本カメラシステムの各回路
を統括制御する制御部である。CPU64は、電源兼用
モードスイッチ20、シャッターボタン18、ズームス
イッチ32その他の操作部から受入する入力信号に基づ
き、対応する回路の動作を制御するとともに、液晶モニ
タ30における表示制御、オートフォーカス(AF)制
御及び自動露出(AE)制御等を行う。なお、メモリ6
0は、CPU64の作業領域として兼用され、評価値デ
ータその他の演算に必要なデータ等はメモリ60に記憶
される。
The CPU 64 is a control section for controlling the entire circuits of the camera system. The CPU 64 controls the operation of the corresponding circuits based on input signals received from the power / mode switch 20, the shutter button 18, the zoom switch 32, and other operation units, and controls display on the liquid crystal monitor 30, auto focus (AF). Control and automatic exposure (AE) control are performed. Note that the memory 6
0 is also used as a work area of the CPU 64, and evaluation value data and other data necessary for calculation are stored in the memory 60.

【0045】ここでオートフォーカス制御について説明
する。A/D変換器58によってデジタル信号に変換さ
れた画像信号は、評価値演算部88に入力される。評価
値演算部88は、高周波成分抽出回路90と積算回路9
2を有し、入力される画像信号のうちG成分のデータを
サンプリングしてAF検出対象エリア(図4中符号94
として記載、以下、フォーカスエリアという。)内での
高周波成分を抽出するとともにその絶対値をとり、設定
されたエリア内で絶対値データを積算して得られた値
(評価値に相当)をCPU64に提供する。
Here, the auto focus control will be described. The image signal converted into a digital signal by the A / D converter 58 is input to the evaluation value calculation unit 88. The evaluation value calculation unit 88 includes a high frequency component extraction circuit 90 and an integration circuit 9
2, the G component data of the input image signal is sampled, and the AF detection target area (reference numeral 94 in FIG. 4) is used.
Hereinafter, it is referred to as a focus area. ), The absolute value of the high frequency component is extracted, and the absolute value data is integrated within the set area, and a value (corresponding to an evaluation value) obtained by the integration is provided to the CPU 64.

【0046】AF検出の対象エリアは、画像領域の全体
である必要はなく、図4に示したように、画像の中央部
分の一部領域がフォーカスエリア94として設定されて
いる。AF処理時にCPU64は、フォーカスレンズ4
8を焦点調節領域内で無限遠から至近(又は至近から無
限遠)の方向に移動させながら、複数のAF検出ポイン
ト(サーチポイント)で画像中央部分のコントラストを
検出し、評価値を算出する。
The target area for AF detection does not need to be the entire image area. As shown in FIG. 4, a partial area at the center of the image is set as the focus area 94. During the AF process, the CPU 64
While moving 8 from infinity to close (or from close to infinity) in the focus adjustment area, the contrast of the central part of the image is detected at a plurality of AF detection points (search points), and the evaluation value is calculated.

【0047】なお、撮影レンズ12の焦点距離が長くな
るにつれて、また、絞り50の開口径が大きくなるに従
って被写界深度が浅くなり、無限遠から至近までのレン
ズ駆動量が多くなるため、焦点距離に応じAF検出ポイ
ントの間隔(サーチ間隔)が変更される。
As the focal length of the taking lens 12 becomes longer and the aperture diameter of the diaphragm 50 becomes larger, the depth of field becomes shallower, and the amount of lens drive from infinity to close range increases. , The interval between AF detection points (search interval) is changed.

【0048】図5には撮影レンズ12の焦点距離と焦点
調節領域300との関係が示されている。同図は、焦点
距離を7mmから21mmまで段階的に変更できる撮影
レンズ12の例が示され、撮影レンズ12の焦点距離が
長くなるに従ってフォーカスレンズ48による焦点調節
領域300が広くなっている。例えば、焦点距離7mm
の時には、無限遠から最至近までのフォーカスレンズ4
8の移動可能範囲は8.17μm、焦点距離21mmの
ときの焦点調節領域300は735μmである。
FIG. 5 shows the relationship between the focal length of the taking lens 12 and the focus adjustment area 300. FIG. 3 shows an example of the photographing lens 12 in which the focal length can be changed stepwise from 7 mm to 21 mm. As the focal length of the photographing lens 12 increases, the focus adjustment area 300 of the focus lens 48 increases. For example, focal length 7mm
In the case of, focus lens 4 from infinity to the nearest
The movable range of 8 is 8.17 μm, and the focus adjustment area 300 when the focal length is 21 mm is 735 μm.

【0049】CPU64は、撮影レンズ12の焦点距離
に対応して可変する焦点調節領域300に応じて、評価
値を算出するレンズ位置(サーチポイント)の幅を示す
AFステップ幅302とステップ段数(検出ポイント
数)を設定する。
The CPU 64 has an AF step width 302 indicating the width of the lens position (search point) for calculating the evaluation value and the number of steps (detection) in accordance with the focus adjustment area 300 which varies according to the focal length of the photographing lens 12. Points).

【0050】フォーカス段数は、各焦点距離における焦
点調節領域300をAFステップ幅302で等分割して
もよいし、近距離(至近限界)側のAFステップ幅30
2を無限遠側よりも短くして、近距離側でのサーチポイ
ントを多くして、焦点精度を高めるように設定してもよ
い。
The number of focus steps may be such that the focus adjustment area 300 at each focal length is equally divided by the AF step width 302, or the AF step width 30 on the short distance (closest limit) side.
2 may be set to be shorter than the infinity side, to increase the number of search points on the short distance side, and to increase the focus accuracy.

【0051】こうして、各サーチポイントで算出された
評価値を総合して、評価値がピーク(最大値又は極大
値)となるレンズ位置を合焦位置として決定し、求めた
合焦位置にフォーカスレンズ48を移動させるようにフ
ォーカス駆動部78を制御する。
In this way, the evaluation value calculated at each search point is integrated, the lens position at which the evaluation value reaches a peak (maximum value or local maximum value) is determined as the focus position, and the focus lens is located at the obtained focus position. The focus drive unit 78 is controlled so as to move the focus drive unit 48.

【0052】図6は、AFサーチによって評価値を取得
した例が示されている。フォーカスエリア94内に主要
な被写体が1つだけ存在する場合には、図6のように評
価値のピークは1つだけ現れる。この場合、ピークが検
出されたレンズ位置(P)を合焦位置として、ここにフ
ォーカスレンズ48を移動させればよい。これに対し、
図7に示すように、フォーカスエリア94内に複数の被
写体が存在する場合には、両方の被写体に対して合焦さ
せることができず、どちらか一方の被写体についてピン
ト合わせを行う必要がある。一般に距離の異なる複数の
被写体が検出された場合は、至近側の被写体にピントを
合わせることが行われる。
FIG. 6 shows an example in which evaluation values are obtained by AF search. When only one main subject exists in the focus area 94, only one peak of the evaluation value appears as shown in FIG. In this case, the lens position (P) at which the peak is detected is set as the focus position, and the focus lens 48 may be moved here. In contrast,
As shown in FIG. 7, when there are a plurality of subjects in the focus area 94, it is not possible to focus on both subjects, and it is necessary to focus on one of the subjects. Generally, when a plurality of subjects having different distances are detected, focusing is performed on the subject on the closest side.

【0053】図8は、フォーカスエリア94内に複数の
被写体が存在する場合の評価値の取得結果の一例であ
る。図7に示すようにフォーカスエリア94内に複数の
被写体が存在する場合には、評価値の曲線において複数
のピークが存在する。1つの山を検出してAFサーチを
終了してしまう場合は、片方の山のみしか検出できず、
複数の山を検出できない。例えば、図8において、無限
遠側からAFサーチ動作を開始し、無限遠側のピークを
検出した時点でAFサーチ動作を終了してしまうと、至
近側にある別のピークを検出することができず、至近側
の主要被写体にピントを合わせることができない。
FIG. 8 shows an example of a result of obtaining an evaluation value when a plurality of subjects exist in the focus area 94. As shown in FIG. 7, when there are a plurality of subjects in the focus area 94, there are a plurality of peaks in the evaluation value curve. If one mountain is detected and the AF search is terminated, only one mountain can be detected.
Multiple mountains cannot be detected. For example, in FIG. 8, if the AF search operation is started from the infinity side and the AF search operation is ended when the peak at the infinity side is detected, another peak on the close side can be detected. Therefore, it is not possible to focus on the main subject on the close side.

【0054】そこで、本実施の形態では、効率的なAF
サーチ動作を実現するために、図9に示したように、フ
ォーカスエリア94を複数の領域(ブロック)に分割し
(同図では4分割)、各分割ブロック〜について評
価値を求めている。もちろん、フォーカスエリア94の
形状、大きさ、分割方法及び分割数は、同図に示した例
に限定されない。距離の異なる被写体がなるべく別々の
ブロックで検出されるように、フォーカスエリア全体の
形状と分割形態が設計される。
Therefore, in the present embodiment, an efficient AF
In order to realize the search operation, as shown in FIG. 9, the focus area 94 is divided into a plurality of regions (blocks) (four in FIG. 9), and evaluation values are obtained for each divided block. Of course, the shape, size, division method, and division number of the focus area 94 are not limited to the example shown in FIG. The shape and division form of the entire focus area are designed so that subjects at different distances are detected in different blocks as much as possible.

【0055】図10には、図9で示した4つのブロック
に分割されたフォーカスエリア94のそれぞれのブロッ
クから得られる評価値の例が示されている。とのブ
ロックには、近距離の被写体のみが含まれており、図1
0に示したように評価値のピークは近距離側に現れる。
一方、とのブロックは遠距離の被写体のみを含むた
め、評価値のピークは遠距離側に現れる。無限遠側から
サーチ動作を実施した場合は、〜の全ての分割ブロ
ックでピークが検出された時点でAFサーチを終了し、
最も至近側で検出されたピーク位置を合焦位置として、
当該位置にフォーカスレンズ48を駆動する。この方法
によれば、フォーカスエリア94内に距離の異なる複数
の被写体が存在する場合、存在しない場合に関わらず、
最も至近側の被写体に対して高速に合焦させることが可
能になる。
FIG. 10 shows an example of an evaluation value obtained from each block of the focus area 94 divided into four blocks shown in FIG. 1 includes only a short-distance subject, and FIG.
As shown by 0, the peak of the evaluation value appears on the short distance side.
On the other hand, since the block including only the subject at a long distance, the peak of the evaluation value appears on the long distance side. When the search operation is performed from the infinity side, the AF search is terminated when peaks are detected in all of the divided blocks, and
The peak position detected on the closest side is taken as the focus position,
The focus lens 48 is driven to the position. According to this method, regardless of whether a plurality of subjects having different distances exist in the focus area 94 or not.
It is possible to focus on the closest object at high speed.

【0056】また、至近側からAFサーチを実行した場
合は、最初に検出したピーク位置に合焦させればよいた
め、分割ブロックのうち少なくとも1つのブロックで評
価値のピークが検出された時点でAFサーチを終了する
ように制御すればよい。このように、AFのサーチ方向
によって、ピークを検出するブロック数を切り替えるこ
とで、より高速にAFを行うことができる。
When the AF search is executed from the closest side, it is only necessary to focus on the peak position detected first. Therefore, when the peak of the evaluation value is detected in at least one of the divided blocks. What is necessary is just to control so as to end the AF search. In this way, by switching the number of blocks for which the peak is detected depending on the AF search direction, it is possible to perform AF at higher speed.

【0057】図11に、本例におけるAF時のフローチ
ャートを示す。シャッターボタン18の半押し操作(S
1 =ON)により、AF処理がスタートすると、CPU
64は、まず、フォーカスエリア94の設定を行い、当
該フォーカスエリア94をn個のブロックに分割する
(ステップS101)。
FIG. 11 is a flowchart at the time of AF in this example. Pressing the shutter button 18 halfway (S
1 = ON), the AF process starts, the CPU
In step 64, the focus area 94 is first set, and the focus area 94 is divided into n blocks (step S101).

【0058】次いで、撮影レンズ12の焦点距離の現在
値、すなわち、現在のズーム位置(ZOOMPOS)の情報を取
得する(ステップS102)。ステップS102の後
は、ステップS104に進み、AFサーチ方向を決定す
るための演算処理を行う。本実施形態では、現在のフォ
ーカス位置と焦点調節領域300の関係に応じてAFサ
ーチ方向を決定するものとする。現在のフォーカス位置
が焦点調節領域300の中間位置Mよりも遠距離側(無
限遠側)にあるときは、まず無限遠にフォーカス駆動し
て、無限遠から至近に向かってAFサーチ(NEAR方向サ
ーチ) を実行する。逆に、現在のフォーカス位置が中間
位置Mよりも近距離側(至近側)にあるときは、まず、
至近側にフォーカス駆動し、至近限界から無限遠に向か
ってAFサーチ(FAR方向サーチ) を実行する。現在のフ
ォーカス位置から判断して、より近いフォーカス端をサ
ーチの初期位置(開始位置)とするようにAFサーチ方
向を自動選択したことにより、サーチ開始位置に駆動す
る平均時間を短縮できる。
Next, the current value of the focal length of the photographing lens 12, that is, information on the current zoom position (ZOOMPOS) is obtained (step S102). After step S102, the process proceeds to step S104 to perform an arithmetic process for determining the AF search direction. In the present embodiment, the AF search direction is determined according to the relationship between the current focus position and the focus adjustment area 300. When the current focus position is on the far side (infinity side) from the intermediate position M of the focus adjustment area 300, first, the focus is driven to infinity, and the AF search is performed from infinity to a close distance (NEAR direction search). Execute Conversely, when the current focus position is closer (closer) than the intermediate position M, first,
The focus is driven to the closest side, and an AF search (FAR direction search) is executed from the closest limit to infinity. Judging from the current focus position, the AF search direction is automatically selected such that the closer focus end is set as the initial position (start position) of the search, so that the average time for driving to the search start position can be reduced.

【0059】サーチ方向の決定方法は、上記の例に限定
されない。例えば、ズーム機能を搭載したカメラにおい
て撮影距離を考えた場合、テレ側では被写体は遠い距離
にある場合が多く、ワイド側では至近側にある場合が多
い。かかる観点から、焦点距離によってフォーカスのサ
ーチ方向を変更することにより、高速なフォーカスサー
チが可能となる。現在のズーム位置がワイド側にあると
きはサーチ開始位置を至近側とし、至近から無限遠に向
かうサーチ方向を選択する。一方、現在のズーム位置が
テレ側にあるときはサーチ開始位置を無限遠側とし、無
限遠から至近に向かうサーチ方向を選択する態様があ
る。
The method for determining the search direction is not limited to the above example. For example, when considering the shooting distance of a camera equipped with a zoom function, the subject is often far away on the telephoto side, and is very close on the wide side. From this viewpoint, by changing the focus search direction according to the focal length, high-speed focus search can be performed. When the current zoom position is on the wide side, the search start position is set to the closest side, and a search direction from the closest to infinity is selected. On the other hand, when the current zoom position is on the tele side, there is a mode in which the search start position is set to the infinity side, and a search direction from infinity to the closest is selected.

【0060】また、現在のフォーカス位置及びズーム位
置に基づいて焦点調節動作時のレンズ移動方向を決定す
る態様も好ましい。この場合、フォーカス位置及びズー
ム位置の組合せに対応するレンズ移動方向を規定したテ
ーブルを利用する態様がある。
It is also preferable that the lens moving direction during the focus adjustment operation is determined based on the current focus position and zoom position. In this case, there is a mode in which a table that defines a lens moving direction corresponding to a combination of a focus position and a zoom position is used.

【0061】ステップS104においてAFサーチ方向
が決定すると、その決定に基づいて、ピーク検出ブロッ
ク数の閾値mを設定する処理を行う(ステップS10
6)。無限遠から至近側に向かうサーチ動作が選択され
た場合には、閾値mにフォーカスエリア94の分割数
「n」(分割したブロックの総数、図9の例においてn
=4)をセットする。至近から無限遠側に向かうサーチ
動作が選択された場合には、閾値mに「1」をセットす
る。その後、ステップS108に進み、フォーカスレン
ズ48をサーチ初期位置に移動する。
When the AF search direction is determined in step S104, a process for setting a threshold value m for the number of peak detection blocks is performed based on the determination (step S10).
6). When the search operation from infinity to the closest side is selected, the threshold m is set to the number of divisions “n” of the focus area 94 (total number of divided blocks, n in the example of FIG. 9).
= 4) is set. When the search operation from the closest to the infinity side is selected, “1” is set to the threshold value m. Thereafter, the process proceeds to step S108, where the focus lens 48 is moved to the search initial position.

【0062】続く、ステップS110において、現在の
フォーカス段(サーチポイント)における評価値が算出
され、得られた評価値はCPU64に入力される。CP
U64は、当該サーチポイントにおける評価値をメモリ
60に記憶する。
In the following step S 110, an evaluation value at the current focus stage (search point) is calculated, and the obtained evaluation value is input to the CPU 64. CP
U64 stores the evaluation value at the search point in memory 60.

【0063】次いでステップS122に進み、nブロッ
クについてピーク検出判定処理を行う。この判定処理の
内容を図12に示す。同図に示したピーク検出判定処理
のサブルーチンがスタートすると、まず、評価値が連続
して所定回数減少したか否かを判定する(ステップS2
10)。ステップS210においてYES判定を得た場
合は、ステップS212に進む。ステップS212で
は、AFサーチ動作によって算出された評価値の最大値
(AFmax )と最小値(AFmin)との差が所定の値Lよりも
大きいか否かが判定される。評価値の差が所定の値Lよ
りも大きい場合(YES判定時)には、ステップS21
4に進み、「ピーク有りフラグ」をONにセットすると
とも、ピークを検出したフォーカス位置(ピーク位置)
を示す変数Pのデータを更新する。その後、図11に示
したフローチャートに復帰する。
Then, the process proceeds to a step S122, wherein a peak detection judgment process is performed for the n blocks. FIG. 12 shows the contents of this determination processing. When the subroutine of the peak detection determination process shown in the figure starts, first, it is determined whether or not the evaluation value continuously decreases a predetermined number of times (step S2)
10). If a YES determination is obtained in step S210, the process proceeds to step S212. In step S212, it is determined whether the difference between the maximum value (AFmax) and the minimum value (AFmin) of the evaluation values calculated by the AF search operation is larger than a predetermined value L. If the difference between the evaluation values is larger than the predetermined value L (when YES is determined), step S21 is performed.
4. Go to step 4 and set the "Peak flag" to ON, and set the focus position (peak position) where the peak was detected.
Is updated. Thereafter, the process returns to the flowchart shown in FIG.

【0064】また、図12に示したステップS212に
おいてNO判定を得た場合、又はステップS210にお
いてNO判定を得た場合は、そのまま図11に示したフ
ローチャートに復帰する。
When a NO determination is obtained in step S212 shown in FIG. 12 or a NO determination is obtained in step S210, the process returns to the flowchart shown in FIG.

【0065】図11のフローチャートに戻り、ステップ
S124ではピークを検出しているブロックの数と閾値
mを比較する。ピーク検出しているブロック数が閾値m
よりも小さい場合(ステップS124においてNO判定
時)、ステップS126に進み、フォーカスレンズ48
がサーチポイントの最終段の位置に到達したか否かが判
定される。
Returning to the flowchart of FIG. 11, in step S124, the number of blocks for which peaks are detected is compared with a threshold value m. The number of blocks for which peak detection is performed is a threshold value m
If it is smaller than (when NO is determined in step S124), the process proceeds to step S126, and the focus lens 48
Is determined whether or not has reached the position of the last stage of the search point.

【0066】ステップS126において、NO判定を得
た場合には、ステップS128に進み、現在のフォーカ
ス段からサーチステップの1ステップ分(AFステップ
幅302)だけフォーカスレンズ48を移動し、ステッ
プS110に戻る。こうして、次のサーチポイントへ移
動され、フォーカス位置の異なるフレーム画像データか
ら評価値が算出される。焦点調節領域300内の各ポイ
ントについてステップS110〜S128の処理が繰り
返され、各ポイントの評価値が順次取得される。
If a NO determination is obtained in step S126, the process proceeds to step S128, in which the focus lens 48 is moved by one search step (AF step width 302) from the current focus stage, and returns to step S110. . In this manner, the evaluation value is moved to the next search point, and the evaluation value is calculated from the frame image data having different focus positions. The processing of steps S110 to S128 is repeated for each point in the focus adjustment area 300, and the evaluation value of each point is sequentially acquired.

【0067】ステップS124においてピーク検出して
いるブロック数が閾値m以上となった場合(ステップS
124においてYES判定時)、又はステップS126
でフォーカスレンズ48が最終段の位置に到達した場
合、ステップS130に移行する。ステップS130で
は、各サーチポイントで得た評価値の結果から、最大の
評価値が得られる位置(合焦位置)が求められ、その合
焦位置にフォーカスレンズ48が移動される。
When the number of blocks for which peak detection is performed is equal to or larger than the threshold value m in step S124 (step S124).
124 (YES) or step S126
If the focus lens 48 has reached the position of the last stage in step S <b> 130, the process proceeds to step S <b> 130. In step S130, a position (focus position) at which the maximum evaluation value is obtained is obtained from the result of the evaluation value obtained at each search point, and the focus lens 48 is moved to the focus position.

【0068】すなわち、サーチ方向がNEAR方向の時は閾
値mが「1」に設定されるため、n個の分割ブロックの
うち何れか1つのブロックにおいてピークが検出された
時点でステップS124がYES判定となり、その最初
に検出された評価値のピーク位置が合焦位置として判定
される。サーチ方向がFAR 方向の時は閾値mが「n」に
設定されるため、n個の分割ブロック全てについてピー
クが検出された時点でステップS124がYES判定と
なる。この場合、最後に検出されたピーク位置が合焦位
置として判断され、当該位置にフォーカスレンズ48を
移動する。なお、評価値のピークが得られる合焦位置を
検知できない場合には、予め定められているパンフォー
カス位置(例えば、被写体距離3mにピントが合う位置
などの所定位置)にフォーカスレンズ48を移動する。
That is, when the search direction is the NEAR direction, the threshold value m is set to "1", so that when a peak is detected in any one of the n divided blocks, the determination in step S124 is YES. The peak position of the evaluation value detected first is determined as the focus position. When the search direction is the FAR direction, the threshold value m is set to “n”, so that when all the n divided blocks have peaks detected, the determination in step S124 is YES. In this case, the last detected peak position is determined as the focus position, and the focus lens 48 is moved to this position. If the in-focus position where the peak of the evaluation value is obtained cannot be detected, the focus lens 48 is moved to a predetermined pan focus position (for example, a predetermined position such as a position where the object distance is 3 m). .

【0069】ステップS130において、フォーカスレ
ンズ48が合焦位置に駆動されると、シャッターボタン
18の半押し状態が解除されるまでフォーカスレンズ4
8はその合焦位置に保持される。それとともに、評価値
演算部88の動作が停止され、撮影記録許可の状態とな
る(ステップS132)。こうして、自動焦点調節処理
が終了する。
In step S130, when the focus lens 48 is driven to the in-focus position, the focus lens 4 is released until the shutter button 18 is half-pressed.
8 is held at the in-focus position. At the same time, the operation of the evaluation value calculation unit 88 is stopped, and the photographing / recording is permitted (step S132). Thus, the automatic focus adjustment processing ends.

【0070】撮影記録許可な状態が得られると、CPU
64によってシャッターボタン18の操作状態が確認さ
れ、シャッターボタン18の全押しに応動して、現在の
ズーム位置及び合焦されたフォーカス位置によって被写
体が撮像され、所定の信号処理を経た画像データが付属
情報とともにメモリカード24に記録される。
When the photographing and recording permission state is obtained, the CPU
The operation state of the shutter button 18 is confirmed by 64, and in response to the full depression of the shutter button 18, the subject is imaged at the current zoom position and the focused focus position, and image data that has undergone predetermined signal processing is attached. The information is recorded on the memory card 24 together with the information.

【0071】次に、AF処理の更なる高速化を達成し得
る制御例を説明する。図5で説明した通り、撮影レンズ
12の焦点距離が長くなるにつれ、焦点調節領域300
(無限遠から至近まで)のフォーカス送り量(モータ駆
動のパルス数)が多くなり、AF時間が長くなる。そこ
で、最初にフォーカス送り量(サーチ間隔)を大きくし
たAFサーチステップで評価値を取得する「ラフサー
チ」を行い、ラフサーチによっておよその合焦位置を検
出したらその近傍領域について、更にフォーカス送り量
を小さくしたサーチステップで評価値を取得する「詳細
サーチ」を行うことが好ましい。
Next, a description will be given of a control example capable of achieving a higher speed of the AF processing. As described in FIG. 5, as the focal length of the taking lens 12 increases, the focus adjustment area 300
The focus feed amount (the number of motor drive pulses) (from infinity to a close distance) increases, and the AF time becomes longer. Therefore, first, a "rough search" for obtaining an evaluation value in an AF search step in which the focus feed amount (search interval) is increased is performed, and when an approximate in-focus position is detected by the rough search, the focus feed amount is further reduced in a nearby area. It is preferable to perform a “detailed search” for obtaining an evaluation value in the search step performed.

【0072】図13にラフサーチと詳細サーチの概念図
を示す。例えば、無限遠から至近までのフォーカス送り
量が240パルスであり、ラフサーチ時のフォーカス送
りパルス数は20パルス、詳細サーチ時のフォーカス送
りパルス数は2パルスに設定されているものとする。同
図によれば、まず、無限遠からNEAR方向にラフサーチが
開始される。ラフサーチは、20パルス毎にサーチポイ
ントが変更され、各ポイントで評価値の算出を行うとと
もに、図11乃至図12で説明したような各ブロックで
のピーク検出処理を行う。
FIG. 13 is a conceptual diagram of the rough search and the detailed search. For example, it is assumed that the focus feed amount from infinity to close distance is 240 pulses, the number of focus feed pulses during rough search is set to 20, and the number of focus feed pulses during detailed search is set to 2 pulses. According to the figure, first, a rough search is started from infinity in the NEAR direction. In the rough search, a search point is changed every 20 pulses, an evaluation value is calculated at each point, and a peak detection process in each block as described with reference to FIGS. 11 and 12 is performed.

【0073】ラフサーチにおいてピークが検出され、例
えば、100パルスのポジションで評価値取得処理の中
断が決定されると、詳細サーチの初期位置(Pds) にフ
ォーカス移動され、ここからFAR 方向に詳細サーチが開
始される。詳細サーチでは2パルス毎にサーチポイント
が変更され、各ポイントで評価値の算出を行い、ピーク
検出後、連続して所定回数評価値が減少したら評価値取
得処理の中断を決定し、ピーク位置(合焦位置)にフォ
ーカスレンズ48を駆動する。
When a peak is detected in the rough search and, for example, the interruption of the evaluation value acquisition processing is determined at the position of 100 pulses, the focus is moved to the initial position (Pds) of the detailed search, from which the detailed search is performed in the FAR direction. Be started. In the detailed search, the search point is changed every two pulses, the evaluation value is calculated at each point, and after the peak is detected, if the evaluation value continuously decreases a predetermined number of times, it is determined that the evaluation value acquisition processing is to be interrupted, and the peak position ( The focus lens 48 is driven to the (focus position).

【0074】図14にはラフサーチと詳細サーチを組合
せたAF制御のフローチャートが示されている。同図中
図11と同一又は類似する工程には同一のステップ番号
を付し、その説明は省略する。ただし、ステップS12
8において、フォーカスレンズ48を20パルスステッ
プのサーチ間隔で駆動するものとする。
FIG. 14 is a flowchart of the AF control combining the rough search and the detailed search. In the figure, steps that are the same as or similar to those in FIG. 11 are given the same step numbers, and descriptions thereof are omitted. However, step S12
In 8, it is assumed that the focus lens 48 is driven at a search interval of 20 pulse steps.

【0075】ステップS124において、ピーク検出し
ているブロック数が閾値m以上であることが検出された
場合(YES判定時)、又はステップS126において
フォーカス段の最終位置に到達した時(ラフサーチでピ
ーク検出ブロック数が閾値mに満たないままフォーカス
最終段まで到達した場合)は、ステップS140に進
む。ステップS140では、ラフサーチの結果を基に詳
細サーチの範囲を求める演算を行う。詳細サーチの範囲
は、例えば、ラフサーチで検出された評価値のピーク対
応位置を含むその前後の所定範囲とされる。また、ラフ
サーチで評価値のピークが検出されない場合には、焦点
調節領域の全範囲を詳細サーチ範囲とし、最至近(又は
無限遠)などの所定の初期位置から詳細サーチを開始す
るものとする。
In step S124, when it is detected that the number of blocks for which the peak is detected is equal to or greater than the threshold value m (when YES is determined), or when the final position of the focus stage is reached in step S126 (when peak detection is performed in the rough search). If the number of blocks has reached the final focus stage without reaching the threshold value m), the process proceeds to step S140. In step S140, an operation for obtaining a range of the detailed search based on the result of the rough search is performed. The range of the detailed search is, for example, a predetermined range before and after the peak corresponding position of the evaluation value detected by the rough search. If no peak of the evaluation value is detected in the rough search, the entire range of the focus adjustment area is set as the detailed search range, and the detailed search is started from a predetermined initial position such as the closest (or infinity).

【0076】次いで、ステップS142において、詳細
サーチにおけるフォーカスエリアの設定を行う。例え
ば、ラフサーチ処理で最も至近側のピークを検出したブ
ロックが詳細サーチのフォーカスエリアとして選択され
る。その後、ステップS140で求めた詳細サーチ範囲
に従い、フォーカスレンズ48を詳細サーチ開始位置
(詳細サーチ初期位置)に駆動する処理を行う(ステッ
プS144)。こうして、詳細サーチがスタートし、当
該サーチポイントにおける評価値が算出される(ステッ
プS146)。得られた評価値はCPU64に入力さ
れ、CPU64は、当該サーチポイントにおける評価値
をレンズ位置とともにメモリ60に記憶する。
Next, in step S142, a focus area is set in the detailed search. For example, a block in which the nearest peak is detected in the rough search processing is selected as a focus area for the detailed search. Thereafter, a process of driving the focus lens 48 to the detailed search start position (detailed search initial position) is performed according to the detailed search range obtained in step S140 (step S144). Thus, the detailed search starts, and the evaluation value at the search point is calculated (step S146). The obtained evaluation value is input to the CPU 64, and the CPU 64 stores the evaluation value at the search point in the memory 60 together with the lens position.

【0077】次いで、ステップS148に進み、AFサ
ーチ(詳細サーチ)を中断するか否かの判定処理を行
う。この「中断判定」の内容を図15に示す。
Then, the process proceeds to a step S148, wherein a process for determining whether or not to suspend the AF search (detailed search) is performed. FIG. 15 shows the contents of the “interruption determination”.

【0078】図15に示した中断判定処理がスタートす
ると、まず、レジスタCに現在の焦点距離[ZOOMPOS] に
対応するテーブル値「C _TABLE 」がセットされる(ス
テップS310)。これは、各フォーカス段(サーチポ
イント)で算出される評価値が連続して減少した場合
に、AFサーチを中断することを決定するための判断基
準となる中断判定値Cを設定する処理である。
When the interruption determination processing shown in FIG. 15 starts, first, a table value “C_TABLE” corresponding to the current focal length [ZOOMPOS] is set in the register C (step S310). This is a process of setting an interruption determination value C as a criterion for determining to suspend the AF search when the evaluation value calculated at each focus stage (search point) continuously decreases. .

【0079】中断判定値Cは、短焦点側(ワイド側)で
はフォーカス段数と同じ数値(図5の例では「4」)若
しくはそれに近い値が設定され、実質的には中断処理を
行わないように設定されている。また、長焦点側(テレ
側)に近づくにつれて中断判定値Cは大きな値となり、
フォーカス段数の約50%〜30%の整数値に設定され
る。
The interruption determination value C is set to the same numerical value as the number of focus steps ("4" in the example of FIG. 5) or a value close to it on the short focus side (wide side), so that the interruption processing is not substantially performed. Is set to In addition, the interruption determination value C becomes larger as approaching the long focal length side (tele side),
It is set to an integer value of about 50% to 30% of the number of focus steps.

【0080】次いで、ステップS312に進み、取得さ
れた評価値が減少したか否かの判定を行う。評価値が減
少していないとき(NO判定時)は、AFサーチの継続
を決定して(ステップS322)、本サブルーチンを抜
け、図14のフローチャートに復帰する。
Next, the flow advances to step S312 to determine whether or not the obtained evaluation value has decreased. If the evaluation value has not decreased (NO determination), the continuation of the AF search is determined (step S322), the process exits this subroutine, and returns to the flowchart of FIG.

【0081】図15のステップS312において評価値
が減少しているとの判定を得たときは(YES判定
時)、レジスタn(初期値はn=0とする。なお、この
「n」はフォーカスエリア94の分割数とは無関係のパ
ラメータである。)の値に1が加算され(ステップS3
14)、続くステップS316においてレジスタnの値
がレジスタCの値を超えているか否かが判定される。レ
ジスタnの値がレジスタCの値以下の場合(NO判定
時)には、ステップS322に進んでAFサーチの継続
を決定し、図14のフローチャートに復帰する。これに
より、評価値が連続してC回減少するまで、AFサーチ
が継続される。
When it is determined in step S312 in FIG. 15 that the evaluation value has decreased (when the determination is YES), register n (initial value is set to n = 0. Note that "n" is the focus. 1 is added to the value of the parameter (independent of the number of divisions of the area 94) (step S3).
14) In the following step S316, it is determined whether or not the value of the register n exceeds the value of the register C. If the value of the register n is equal to or less than the value of the register C (NO determination), the process proceeds to step S322 to determine continuation of the AF search, and returns to the flowchart of FIG. Thus, the AF search is continued until the evaluation value continuously decreases C times.

【0082】図15のステップS316においてYES
判定を得た場合、すなわち、評価値が連続してC回減少
したことが検出されると、ステップS318に進む。ス
テップS318では、AFサーチ動作によって算出され
た評価値の最大値(AFmax )と最小値(AFmin)との差が
所定の値Kよりも大きいか否かが判定される。評価値の
差が所定の値Kよりも大きい場合(YES判定時)に
は、所定のコントラストがあることを示しているので、
AFサーチの中断が決定される(ステップS320)。
また、評価値の差が所定の値K以下の場合(NO判定
時)は、ステップS322に進み、AFサーチの継続が
決定される。
YES in step S316 in FIG.
When the determination is obtained, that is, when it is detected that the evaluation value continuously decreases C times, the process proceeds to step S318. In step S318, it is determined whether the difference between the maximum value (AFmax) and the minimum value (AFmin) of the evaluation values calculated by the AF search operation is larger than a predetermined value K. When the difference between the evaluation values is larger than the predetermined value K (when YES is determined), it indicates that there is a predetermined contrast, so that
The interruption of the AF search is determined (step S320).
If the difference between the evaluation values is equal to or smaller than the predetermined value K (NO determination), the process proceeds to step S322, and continuation of the AF search is determined.

【0083】ステップS320又はステップS322に
よって「中断」又は「継続」の決定が行われると、本サ
ブルーチンを終了して、図14のフローチャートに復帰
する。
When "interruption" or "continuation" is determined in step S320 or S322, the present subroutine ends, and the process returns to the flowchart in FIG.

【0084】その後、図14に示したように、中断判定
処理(ステップS148)の結果に基づいて、CPU6
4はAFサーチの中断又は継続を判断する(ステップS
150)。ステップS150で「継続」との判定を得た
時は、ステップS152に進み、サーチポイントの最終
位置に到達したか否かが判定される。
Thereafter, as shown in FIG. 14, based on the result of the interruption determination processing (step S148), the CPU 6
4 judges whether the AF search is interrupted or continued (step S
150). When the determination of “continue” is obtained in step S150, the process proceeds to step S152, and it is determined whether the final position of the search point has been reached.

【0085】ステップS152において、NO判定を得
た場合には、ステップS154に進み、現在のフォーカ
ス位置からAFサーチステップの1ステップ分(2パル
ス)だけフォーカスレンズ48を移動し、ステップS1
46に戻る。こうして、次のサーチポイントへ移動さ
れ、フォーカス位置の異なるフレーム画像データから評
価値が算出される。詳細サーチ範囲の各ポイントについ
てステップS146〜S154の処理が繰り返され、各
サーチポイントの評価値が取得される。
If a NO determination is obtained in step S152, the flow advances to step S154 to move the focus lens 48 by one step (two pulses) of the AF search step from the current focus position.
Return to 46. In this manner, the evaluation value is moved to the next search point, and the evaluation value is calculated from the frame image data having different focus positions. The processing of steps S146 to S154 is repeated for each point in the detailed search range, and the evaluation value of each search point is obtained.

【0086】ステップS152でフォーカスレンズ48
がサーチポイントの最終位置に到達した場合、又はステ
ップS150において「中断」の判定を得た場合にはス
テップS160に移行する。ステップS160では、各
ポイントで得た評価値の結果から、評価値が最大となる
位置が求められ、その位置(合焦位置)にフォーカスレ
ンズ48が移動される。こうして、撮影記録許可の状態
となり(ステップS162)、自動焦点調節処理が終了
する。
In step S152, the focus lens 48
Has reached the final position of the search point, or when the determination of “interruption” has been obtained in step S150, the process proceeds to step S160. In step S160, a position at which the evaluation value is maximized is obtained from the result of the evaluation value obtained at each point, and the focus lens 48 is moved to that position (in-focus position). In this manner, a state where photographing and recording are permitted is set (step S162), and the automatic focus adjustment processing ends.

【0087】次に、AF処理の他の制御例を説明する。
無限遠側からサーチする場合の別の方法として、分割し
たブロック毎の評価値と、分割前のフォーカスエリア9
4全体の評価値とを比較する方法もある。分割したブロ
ックのみで最も至近側の被写体を検出する場合、何れか
のブロックにコントラストの低い被写体が存在すると、
ピークが検出されず、至近までサーチすることになり時
間がかかってしまう。
Next, another control example of the AF processing will be described.
As another method for searching from the infinity side, an evaluation value for each divided block and a focus area 9 before division are set.
4 There is also a method of comparing with the evaluation value of the whole. When detecting the closest object on the basis of only the divided blocks, if an object with low contrast exists in any of the blocks,
The peak is not detected, and the search is performed up to the nearest point, which takes time.

【0088】この問題を解決するため、分割した各ブロ
ックの評価値を用いる上記手法と、分割前のフォーカス
エリア全体の評価値を用いる後述の手法とを組合せて最
も至近側の被写体を検出する。
In order to solve this problem, the closest object is detected by combining the above-mentioned method using the evaluation value of each divided block and the method described later using the evaluation value of the entire focus area before division.

【0089】分割前のフォーカスエリア94全体につい
て、距離の異なる複数の被写体が存在する場合の評価値
のグラフ(図8)と、フォーカスエリア94内に唯一の
被写体が存在する場合(距離の異なる他の被写体が存在
しない場合)の評価値のグラフ(図6)とを比較すると
明らかなように、図6のグラフでは、無限遠から至近へ
向かうAFサーチ動作によって評価値のピークを検出し
た後、更に同方向のレンズ移動で評価値を取得した場
合、フォーカスレンズ48がピーク位置Pから一定の距
離dだけ離れると評価値がゼロレベル近くまで下がるの
に対し、図8のように複数の被写体が存在するときは、
第1のピークを検出した以後、評価値がゼロレベル近く
まで下がりきらずに、再度増加に転じている。
A graph (FIG. 8) of the evaluation value when a plurality of objects having different distances exist in the entire focus area 94 before the division, and a case where only one object exists in the focus area 94 (other distances are different). As shown in FIG. 6, when the peak of the evaluation value is detected by the AF search operation from infinity to the closest distance, the graph is further compared with the evaluation value graph of FIG. When the evaluation value is obtained by moving the lens in the same direction, when the focus lens 48 is separated from the peak position P by a certain distance d, the evaluation value decreases to near the zero level. On the other hand, as shown in FIG. When I do it,
After the detection of the first peak, the evaluation value does not decrease to near the zero level but starts to increase again.

【0090】かかる事実に注目して、評価値のピークを
検出したレンズ位置から一定の距離dだけ離れた位置で
の評価値が所定の閾値TH 以下ならば、その先に被写体
が存在しないと判断し、AFサーチを終了するととも
に、検出した最初のピーク位置にフォーカスレンズ48
を駆動する。
By paying attention to this fact, if the evaluation value at a position separated by a certain distance d from the lens position where the peak of the evaluation value is detected is equal to or less than a predetermined threshold value TH, it is determined that the subject does not exist beyond that. Then, the AF search is completed, and the focus lens 48 is moved to the first detected peak position.
Drive.

【0091】その一方、評価値のピークを検出したレン
ズ位置から一定の距離dだけ離れた位置での評価値が所
定の閾値TH よりも大きい値ならば、その先に別の被写
体が存在する可能性があると判断し、更にNEAR側のAF
サーチ動作を継続する。なお、ピーク位置Pからの距離
dは、許容錯乱円の約10倍〜20倍程度に設定するこ
とが好ましい。そして、かかるAFサーチ動作によって
複数のピークが検出された場合には、最も近距離のピー
ク位置を合焦位置として決定する。
On the other hand, if the evaluation value at a position separated by a certain distance d from the lens position at which the peak of the evaluation value is detected is a value larger than the predetermined threshold value TH, another subject may exist ahead of it. The NEAR side AF
Continue the search operation. Note that the distance d from the peak position P is preferably set to about 10 to 20 times the allowable circle of confusion. If a plurality of peaks are detected by the AF search operation, the closest peak position is determined as the focus position.

【0092】ところで、被写体が暗い場合など、撮像信
号のノイズが発生し、図16に示すように、ピークは1
つのみでも評価値が閾値TH 以下にならない状況が起こ
り得る。しかしながら、図16と図8を比較すると分か
るように、至近側に別の被写体が存在する場合(図8)
は、最至近(至近端)よりもある程度手前の位置から評
価値が増加する傾向が認められる。これに対し、ノイズ
等の原因で評価値が低下しない場合(図16)には、最
至近よりも一定の距離w以上手前であっても評価値は増
加傾向に転じない。
By the way, the noise of the image pickup signal occurs when the subject is dark or the like, and as shown in FIG.
A situation can occur in which the evaluation value does not fall below the threshold value TH. However, as can be seen by comparing FIG. 16 and FIG. 8, when another subject exists on the close side (FIG. 8)
Indicates that the evaluation value tends to increase from a position slightly before the nearest point (closest end). On the other hand, if the evaluation value does not decrease due to noise or the like (FIG. 16), the evaluation value does not change to an increasing tendency even if the evaluation value is at least a certain distance w from the closest distance.

【0093】したがって、最至近から一定距離w以遠で
評価値が増加方向にあるか否かを判断することよって至
近側に別の被写体が存在するか否かの判別が可能であ
る。最至近から一定距離w以遠での評価値が増加方向に
無ければ、至近側に被写体が存在しないものとして、A
Fサーチ動作を終了し、ピークを検出したレンズ位置に
フォーカス駆動する。なお、一定距離wは、許容錯乱円
の約5倍〜10倍程度に設定することが好ましい。図1
6では至近側を説明したがFAR 方向のAFサーチ動作に
ついても同様に無限遠から一定距離wだけ離れた位置で
評価値が増加傾向になければ、無限遠側に被写体が存在
しないものと判断できる。
Therefore, it is possible to determine whether another subject exists on the close side by determining whether or not the evaluation value is in the increasing direction at a distance more than a certain distance w from the closest. If there is no evaluation value in the increasing direction at a distance more than a certain distance w from the closest distance, it is determined that no subject exists on the close side and A
The F search operation is completed, and focus driving is performed to the lens position where the peak is detected. Note that the fixed distance w is preferably set to be about 5 to 10 times the permissible circle of confusion. FIG.
In the AF search operation in the FAR direction, similarly, if the evaluation value does not tend to increase at a position separated from the infinity by a certain distance w, it can be determined that the subject does not exist on the infinity side.

【0094】図17には、分割したブロック及び分割前
のフォーカスエリアの組合せによるAF処理のフローチ
ャートが示されている。同図中図11と同一又は類似の
処理には同一のステップ番号を付し、その説明は省略す
る。図17のステップS108において、フォーカスレ
ンズ48をサーチ初期位置に移動した後、ステップS1
10に進み、各分割ブロック及び分割前のフォーカスエ
リア94全体(以下、「分割前エリア」という。)につ
いて評価値の算出処理を行う。なお、各分割ブロックに
ついての評価値を全て加算したものが分割前エリアの評
価値に相当する。続いて、分割前エリアについて中断判
定(2)処理を行う(ステップS112)。図18に中
断判定(2)処理のサブルーチンのフローチャートを示
す。この中断判定(2)処理がスタートすると、まず、
評価値が増加から減少に転じるピークが検出されたか否
かの判定を行う(ステップS510)。この判定は、後
述の「ピーク有りフラグ」の状態に基づいて判断され
る。
FIG. 17 is a flowchart of an AF process based on a combination of a divided block and a focus area before division. In the figure, the same or similar processing as in FIG. 11 is denoted by the same step number, and the description is omitted. After moving the focus lens 48 to the search initial position in step S108 of FIG.
Then, the process proceeds to step S10, where an evaluation value is calculated for each divided block and the entire focus area 94 before division (hereinafter, referred to as "area before division"). The sum of all the evaluation values for each divided block corresponds to the evaluation value of the pre-division area. Subsequently, an interruption determination (2) process is performed for the pre-division area (step S112). FIG. 18 shows a flowchart of a subroutine of the interruption determination (2) processing. When the interruption determination (2) process starts, first,
It is determined whether a peak at which the evaluation value changes from increasing to decreasing is detected (step S510). This determination is made based on the state of a “peak presence flag” described later.

【0095】ステップS510において、ピークが検出
されなければ(NO判定時)、ステップS512に進
み、評価値が減少したか否かの判定を行う。ステップS
512でNO判定を得たときは評価値取得処理の継続を
決定し(ステップS518)、本サブルーチンを終了し
て図17のフローチャートに復帰する。
If no peak is detected in step S510 (NO), the process advances to step S512 to determine whether the evaluation value has decreased. Step S
If a negative determination is obtained in 512, continuation of the evaluation value acquisition process is determined (step S518), and this subroutine is terminated, and the flow returns to the flowchart of FIG.

【0096】図18のステップS512において、評価
値が減少したことが検出されると、ステップS514に
分岐する。ステップS514では、減少する前の評価値
が増加傾向にあったか否かの判定を行う。ステップS5
14でYES判定を得た場合には、AFサーチ動作によ
って算出された評価値の最大値(AFmax )と最小値(AF
min)との差が所定の値K′よりも大きいか否かが判定さ
れる(ステップS515)。ステップS515において
YES判定を得た場合には、「ピーク有りフラグ」をO
Nにセットするとともに、ピークを検出したフォーカス
位置(ピーク位置)を示す変数Pのデータを更新する
(ステップS516)。ステップS516の後、又はス
テップS515においてNO判定を得た場合には、ステ
ップS518へ進み、評価値取得処理の継続を決定す
る。
If it is detected in step S512 in FIG. 18 that the evaluation value has decreased, the flow branches to step S514. In step S514, it is determined whether or not the evaluation value before the decrease has been increasing. Step S5
If a YES determination is made in step 14, the maximum (AFmax) and minimum (AFmax) evaluation values calculated by the AF search operation are calculated.
It is determined whether or not the difference from (min) is greater than a predetermined value K '(step S515). If a YES determination is obtained in step S515, the "peak presence flag" is set to O.
N is set, and the data of the variable P indicating the focus position (peak position) at which the peak is detected is updated (step S516). After step S516, or if a NO determination is obtained in step S515, the process proceeds to step S518, and continuation of the evaluation value acquisition process is determined.

【0097】「ピーク有りフラグ」がONにセットされ
ると、ステップS510においてYES判定となる。こ
の場合、ステップS520に進み、サーチ方向がNEAR方
向であるか否かの判定を行う。サーチ方向がNEAR方向で
あるとき(YES判定時)は、現在のフォーカス位置
(サーチポイント)が、ピーク位置Pから所定の距離
(d)を超えて至近側にあるか否かの判定を行う(ステ
ップS522)。現在位置がピーク位置Pから所定距離
d以内の範囲にあれば(NO判定時)、ステップS52
8へ進み、サーチ方向についての残り検出ポイント数が
所定の値(u)よりも小さいか否かの判定を行う。この
所定値uは図16で説明した距離wに相当する値であ
る。
When the "peak presence flag" is set to ON, a YES determination is made in step S510. In this case, the process proceeds to step S520, and it is determined whether the search direction is the NEAR direction. When the search direction is the NEAR direction (when YES is determined), it is determined whether or not the current focus position (search point) is closer than a predetermined distance (d) from the peak position P to the nearest side ( Step S522). If the current position is within a predetermined distance d from the peak position P (NO determination), step S52 is performed.
Then, it is determined whether the number of remaining detection points in the search direction is smaller than a predetermined value (u). This predetermined value u is a value corresponding to the distance w described in FIG.

【0098】ステップS528において、残り検出ポイ
ント数が所定値u以上であるときは(NO判定時)、評
価値取得処理の継続を決定し(ステップS532)、図
17のフローチャートに復帰する。その一方、図18の
ステップS528でYES判定を得たときは、ステップ
S530に進み、評価値が増加したか否かを判定する。
In step S528, when the number of remaining detection points is equal to or greater than the predetermined value u (NO determination), continuation of the evaluation value acquisition processing is determined (step S532), and the process returns to the flowchart of FIG. On the other hand, if a YES determination is obtained in step S528 in FIG. 18, the process proceeds to step S530, and it is determined whether the evaluation value has increased.

【0099】ステップS530で評価値の増加が検出さ
れると(YES判定時)、ステップS532に進んで評
価値取得処理の継続を決定するが(ステップS53
2)、ステップS530において評価値が増加していな
ければ(NO判定時)、ステップS536に移行して評
価値取得処理の中断を決定し、図17のフローチャート
へ復帰する。
If an increase in the evaluation value is detected in step S530 (when YES is determined), the flow advances to step S532 to determine continuation of the evaluation value acquisition process (step S53).
2) If the evaluation value has not increased in step S530 (NO determination), the process proceeds to step S536 to determine the interruption of the evaluation value acquisition process, and returns to the flowchart of FIG.

【0100】また、図18のステップS522において
現在のフォーカス位置がピーク位置Pから所定距離dを
超えて至近側にあるとき(YES判定時)は、ステップ
S524に分岐する。ステップS524では、現在のフ
ォーカス位置における評価値が所定の閾値TH よりも小
さい値であるか否かを判定する。
If the current focus position is closer than the peak position P by a predetermined distance d in step S522 in FIG. 18 (YES determination), the flow branches to step S524. In step S524, it is determined whether the evaluation value at the current focus position is smaller than a predetermined threshold value TH.

【0101】ステップS524で評価値が閾値TH 以上
であれば(NO判定時)、現在位置よりも至近側に被写
体が存在する可能性に配慮してステップS528に進
む。その一方、ステップS524において評価値が閾値
TH よりも小さい値のときは(YES判定時)、現在位
置よりも至近側に被写体は存在しないものと判断し、評
価値取得処理の中断を決定する(ステップS536)。
If the evaluation value is equal to or larger than the threshold value TH in step S524 (when NO is determined), the process proceeds to step S528 in consideration of the possibility that the subject exists closer to the current position. On the other hand, when the evaluation value is smaller than the threshold value TH in step S524 (when YES is determined), it is determined that the subject does not exist closer to the current position than the current position, and the interruption of the evaluation value acquisition process is determined ( Step S536).

【0102】ステップS520でNO判定の場合、すな
わち、サーチ方向がFAR 方向であるときは、ステップS
526へ進む。ステップS526では、評価値が連続し
て所定回数減少したか否かの判定を行う。連続減少回数
の判断基準となる基準値は被写界深度等を考慮して適宜
設定される。
If the determination in step S520 is NO, that is, if the search direction is the FAR direction, step S520
Proceed to 526. In step S526, it is determined whether the evaluation value has continuously decreased a predetermined number of times. A reference value serving as a criterion for determining the number of continuous reductions is appropriately set in consideration of the depth of field and the like.

【0103】ステップS526においてNO判定を得た
場合には、ステップS528へ進み、上述したステップ
S528〜S536によって中断又は継続の決定が行わ
れる。その一方、ステップS526においてYES判定
を得た場合には、ステップS538へ進み、評価値取得
処理の中断を決定し、図17のフローチャートへ復帰す
る。図18に示した中断判定(2)処理に従うことでNE
AR方向及びFAR 方向の何れのサーチ方向についても、被
写体に対応する評価値のピークを正確、かつ高速に検出
することができ、AF処理の高速化を実現できる。
If a negative determination is obtained in step S526, the flow advances to step S528, and a determination of interruption or continuation is made in steps S528 to S536 described above. On the other hand, if a YES determination is obtained in step S526, the process advances to step S538 to determine interruption of the evaluation value acquisition process, and the process returns to the flowchart in FIG. By following the interruption determination (2) processing shown in FIG.
In any of the AR direction and the FAR direction, the peak of the evaluation value corresponding to the subject can be detected accurately and at high speed, and the AF processing can be speeded up.

【0104】図18で説明した中断判定(2)処理を終
了して、図17のフローチャートに復帰したら、ステッ
プS114に進む。ステップS114では、上述の中断
判定(2)処理の結果に基づいてサーチ動作の中断又は
継続を判定する。「中断」の判定を得た場合は、AFサ
ーチ動作を終了してステップS130に進み、評価値の
最大値が得られるレンズ位置にフォーカスレンズ48を
移動させる。
When the interruption determination (2) process described with reference to FIG. 18 is completed and the process returns to the flowchart in FIG. 17, the process proceeds to step S114. In step S114, interruption or continuation of the search operation is determined based on the result of the above-described interruption determination (2) processing. When the determination of “interruption” is obtained, the AF search operation is terminated and the process proceeds to step S130, and the focus lens 48 is moved to a lens position where the maximum evaluation value is obtained.

【0105】他方、ステップS114において「継続」
の判定を得た場合は、ステップS122に進む。以後の
処理は図11及び図12で説明した通りである。
On the other hand, in step S114, "continue"
Is obtained, the process proceeds to step S122. Subsequent processing is as described with reference to FIGS.

【0106】更にAFの高速化を図るため、図13及び
図14で説明したラフサーチと詳細サーチを実施するA
F制御において、各分割ブロックの評価値と分割前エリ
アの評価値とを組合せて利用する制御方法を適用する態
様を説明する。図19にそのフローチャートを示す。同
図中図14と同一又は類似の工程には同一のステップ番
号を付し、その説明は省略する。
In order to further increase the speed of AF, the rough search and the detailed search described with reference to FIGS.
An aspect in which a control method using a combination of the evaluation value of each divided block and the evaluation value of the pre-division area in F control will be described. FIG. 19 is a flowchart of the operation. In the figure, the same or similar steps as those in FIG. 14 are denoted by the same step numbers, and the description thereof is omitted.

【0107】図19のステップS108において、フォ
ーカスレンズ48をサーチ初期位置に移動した後、ステ
ップS110に進み、各分割ブロック及び分割前エリア
について評価値の算出処理を行う。次いで、分割前のエ
リアについて中断判定処理(2)を行う。中断判定処理
(2)の内容は図18で説明した通りである。
In step S108 in FIG. 19, after moving the focus lens 48 to the initial search position, the flow advances to step S110 to calculate an evaluation value for each divided block and the pre-division area. Next, an interruption determination process (2) is performed on the area before the division. The content of the interruption determination process (2) is as described in FIG.

【0108】続くステップS114では、中断判定
(2)処理の結果に基づいてサーチ動作の中断又は継続
を判定する。「中断」の判定を得た場合は、ラフサーチ
動作を終了してステップS140に進む。他方、ステッ
プS114において「継続」の判定を得た場合は、ステ
ップS122に進む。
In the following step S114, interruption or continuation of the search operation is determined based on the result of the interruption determination (2) processing. When the determination of “interruption” is obtained, the rough search operation ends, and the process proceeds to step S140. On the other hand, when the determination of “continuation” is obtained in step S114, the process proceeds to step S122.

【0109】ステップS140において詳細サーチ範囲
の演算を行った後は、ステップS143に進み、詳細サ
ーチにおけるフォーカスエリアの設定を行う。ここで
は、分割前エリアをフォーカスエリアとして選択する。
その後の処理は、図14で説明した通りである。
After calculating the detailed search range in step S140, the flow advances to step S143 to set a focus area in the detailed search. Here, the area before division is selected as the focus area.
Subsequent processing is as described in FIG.

【0110】[0110]

【発明の効果】以上説明したように本発明によれば、フ
ォーカスエリアを複数のブロックに分割し、分割された
それぞれのブロックについて評価値のピークを検出し、
サーチ方向に応じて設定されているブロック数以上のブ
ロックで評価値のピークが検出された時点でサーチ動作
を中断するようにしたので、最も至近側に存在する被写
体に対して高速に合焦させることができる。
As described above, according to the present invention, the focus area is divided into a plurality of blocks, and the peak of the evaluation value is detected for each of the divided blocks.
The search operation is interrupted when the peak of the evaluation value is detected in blocks equal to or greater than the number of blocks set according to the search direction, so that the subject closest to the nearest side is focused at high speed. be able to.

【0111】また、分割前のフォーカスエリア全体につ
いて評価値を算出し、フォーカスエリア全体の評価値
と、分割された複数のブロックの評価値とを組合せてサ
ーチ動作の中断を判断することにより、一層の高速化を
達成できる。
Further, the evaluation value is calculated for the entire focus area before the division, and the evaluation value of the entire focus area is combined with the evaluation values of the plurality of divided blocks to determine whether to interrupt the search operation. Speedup can be achieved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施形態に係るデジタルカメラの正面
側外観図
FIG. 1 is a front external view of a digital camera according to an embodiment of the present invention.

【図2】図1に示したデジタルカメラの背面側外観図FIG. 2 is a rear view of the digital camera shown in FIG. 1;

【図3】本例のデジタルカメラの内部構成を示すブロッ
ク図
FIG. 3 is a block diagram showing an internal configuration of the digital camera of the present embodiment.

【図4】画面中央部に設定されたフォーカスエリアの例
を示す図
FIG. 4 is a diagram showing an example of a focus area set at the center of the screen;

【図5】ズーム位置及びフォーカス位置に応じたAFサ
ーチステップ幅の変化を示す図
FIG. 5 is a diagram showing a change in an AF search step width according to a zoom position and a focus position.

【図6】フォーカスレンズの移動に伴って変化する評価
値の例を示すグラフ
FIG. 6 is a graph showing an example of an evaluation value that changes as the focus lens moves.

【図7】フォーカスエリア内に複数の被写体が存在する
様子を示した図
FIG. 7 is a diagram showing a state in which a plurality of subjects are present in a focus area.

【図8】複数の被写体が存在する場合にフォーカスレン
ズの移動に伴って変化する評価値の例を示すグラフ
FIG. 8 is a graph showing an example of an evaluation value that changes with movement of a focus lens when a plurality of subjects exist.

【図9】フォーカスエリアの分割例を示す図FIG. 9 is a diagram showing an example of dividing a focus area.

【図10】分割されたそれぞれのブロックについて算出
される評価値の例を示す図
FIG. 10 is a diagram illustrating an example of an evaluation value calculated for each divided block.

【図11】本例のAF制御の手順を示すフローチャートFIG. 11 is a flowchart illustrating a procedure of AF control according to the present embodiment.

【図12】図11中のピーク検出判定処理のフローチャ
ート
FIG. 12 is a flowchart of a peak detection determination process in FIG. 11;

【図13】ラフサーチと詳細サーチを組合せたAF方式
の概念図
FIG. 13 is a conceptual diagram of an AF method combining a rough search and a detailed search.

【図14】ラフサーチと詳細サーチを行うAF方式の制
御手順を示すフローチャート
FIG. 14 is a flowchart showing a control procedure of an AF method for performing a rough search and a detailed search.

【図15】図14中の中断判定処理のフローチャートFIG. 15 is a flowchart of an interruption determination process in FIG. 14;

【図16】ノイズ等の影響によって評価値が下がらない
現象を例示したグラフ
FIG. 16 is a graph illustrating a phenomenon in which the evaluation value does not decrease due to the influence of noise or the like.

【図17】分割したブロック及び分割前のフォーカスエ
リアの組合せによるAF処理の制御手順を示すフローチ
ャート
FIG. 17 is a flowchart illustrating a control procedure of an AF process based on a combination of a divided block and a focus area before the division.

【図18】図17中の中断判定(2)処理のフローチャ
ート
FIG. 18 is a flowchart of an interruption determination (2) process in FIG. 17;

【図19】ラフサーチと詳細サーチとを行うAF方式に
おいて、分割したブロック及び分割前のフォーカスエリ
アの組合せによるAF処理を適用する場合の制御手順を
示すフローチャート
FIG. 19 is a flowchart showing a control procedure in the case of applying AF processing by combining a divided block and a focus area before division in an AF method for performing a rough search and a detailed search.

【符号の説明】[Explanation of symbols]

10…デジタルカメラ、12…撮影レンズ、18…シャ
ッターボタン、48…フォーカスレンズ、52…CCD
(撮像手段)、64…CPU(フォーカスエリア設定手
段、ブロック分割手段、制御手段、中断判定手段)、7
8…フォーカス駆動部(レンズ移動手段)、88…評価
値演算部(評価値算出手段)、94…フォーカスエリア
10 digital camera, 12 photographing lens, 18 shutter button, 48 focus lens, 52 CCD
(Imaging means), 64 CPU (focus area setting means, block dividing means, control means, interruption determining means), 7
8 focus drive unit (lens moving means), 88 evaluation value calculation unit (evaluation value calculation means), 94 focus area

フロントページの続き Fターム(参考) 2H011 AA01 BA31 BB04 2H051 BA45 BA47 CB22 DA07 DA31 DB01 5C022 AB29 AB30 AB44 AC03 AC42 AC54 AC74 Continued on the front page F term (reference) 2H011 AA01 BA31 BB04 2H051 BA45 BA47 CB22 DA07 DA31 DB01 5C022 AB29 AB30 AB44 AC03 AC42 AC54 AC74

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 レンズを介して入射する被写体の光学像
を電気信号に変換する撮像手段を有し、前記撮像手段か
ら出力される画像信号を用いて算出される画像の鮮鋭度
を示す評価値に基づいて前記レンズの焦点位置を調節す
る自動焦点調節装置において、該装置は、 撮影画面のうち前記評価値の算出対象エリアとなるフォ
ーカスエリアを設定するフォーカスエリア設定手段と、 前記フォーカスエリアを複数のブロックに分割するブロ
ック分割手段と、 前記レンズを焦点調節領域内で移動させるレンズ移動手
段と、 前記レンズ移動手段によって移動されるレンズ位置毎
に、前記分割されたそれぞれのブロックについて前記画
像信号から被写体のコントラスト成分を抽出し、該コン
トラスト成分から前記評価値を算出する評価値算出手段
と、 前記レンズを移動させながら各レンズ位置で前記評価値
を取得するサーチ動作を制御する一方、前記複数のブロ
ックについてそれぞれ算出される評価値を監視し、前記
複数のブロックのうち前記サーチ動作のレンズ移動方向
に応じて設定されるブロック数以上のブロックについて
評価値のピークが検出された時点で前記サーチ動作を中
断し、最も至近側で評価値がピークとなるレンズ位置を
合焦位置と判定し、当該合焦位置に前記レンズを移動さ
せるように前記レンズ移動手段を制御する制御手段と、 を備えたことを特徴とする自動焦点調節装置。
An evaluation value indicating an image sharpness calculated using an image signal output from the imaging unit, the imaging unit comprising: an imaging unit configured to convert an optical image of a subject incident through a lens into an electric signal. An automatic focus adjustment device that adjusts a focal position of the lens based on a focus area setting unit that sets a focus area to be a calculation target area of the evaluation value in a shooting screen; A block dividing unit that divides the lens into blocks; a lens moving unit that moves the lens within the focus adjustment area; and a lens position that is moved by the lens moving unit. Evaluation value calculation means for extracting a contrast component of the subject and calculating the evaluation value from the contrast component; While controlling a search operation for acquiring the evaluation value at each lens position while moving a lens, monitoring the evaluation value calculated for each of the plurality of blocks and monitoring the lens movement direction of the search operation among the plurality of blocks. When the peak of the evaluation value is detected for blocks equal to or more than the number of blocks set according to the above, the search operation is interrupted, and the lens position where the evaluation value becomes the peak on the closest side is determined as the in-focus position. Control means for controlling the lens moving means so as to move the lens to a focus position.
【請求項2】 無限遠から至近に向かってレンズを移動
しながら評価値を算出するサーチ動作の場合は、前記ブ
ロック数として前記フォーカスエリアの分割数と同数が
設定され、前記制御手段は、前記分割された全てのブロ
ックについて評価値のピークが検出された時点で前記サ
ーチ動作を中断し、最後に検出されたピークに対応する
レンズ位置又はその近傍を前記合焦位置と判定すること
を特徴とする請求項1に記載の自動焦点調節装置。
2. In the case of a search operation in which an evaluation value is calculated while moving a lens from infinity to a close distance, the same number as the number of blocks of the focus area is set as the number of blocks. When the peak of the evaluation value is detected for all the blocks, the search operation is interrupted, and the lens position corresponding to the last detected peak or the vicinity thereof is determined as the in-focus position. The automatic focusing device according to claim 1.
【請求項3】 至近から無限遠に向かってレンズを移動
しながら評価値を算出するサーチ動作の場合は、前記ブ
ロック数として「1」が設定され、前記制御手段は、前
記分割された複数のブロックのうち少なくとも1つのブ
ロックについて評価値のピークが検出された時点で前記
サーチ動作を中断し、当該最初に検出されたピークに対
応するレンズ位置又はその近傍を前記合焦位置と判定す
ることを特徴とする請求項1に記載の自動焦点調節装
置。
3. In the case of a search operation in which an evaluation value is calculated while moving a lens from a closest point to an infinity point, “1” is set as the number of blocks, and the control unit controls the plurality of divided blocks. When the peak of the evaluation value is detected for at least one of the blocks, the search operation is interrupted, and the lens position corresponding to the first detected peak or its vicinity is determined to be the focus position. The automatic focusing device according to claim 1, wherein
【請求項4】 請求項1乃至3の何れか1項に記載の自
動焦点調節装置において、該装置は、前記焦点調節領域
内を比較的大きな間隔で移動しながら各位置で評価値を
取得する第1のサーチ手段と、 前記第1のサーチ手段によって得られた評価値のピーク
が検出された位置の近傍に前記レンズを移動させた後、
当該ピークが検出された位置の近傍を前記第1のサーチ
手段よりも小さな間隔で移動しながら各位置で評価値を
取得する第2のサーチ手段と、を備え、 前記第1のサーチ手段によるサーチ動作中に、前記複数
のブロックについての評価値のピーク検出とサーチ動作
の中断判定とを実行し、当該第1のサーチ手段のサーチ
動作において検出された評価値のピークのうち最も至近
側で検出されたピークに対応するレンズ位置の近傍につ
いて前記第2のサーチ手段による評価値の取得動作を実
行し、当該第2のサーチ手段によって得られる評価値の
ピークに対応するレンズ位置を合焦位置と判定し、当該
合焦位置に前記レンズを移動させることを特徴とする自
動焦点調節装置。
4. The automatic focusing device according to claim 1, wherein the automatic focusing device acquires an evaluation value at each position while moving in the focusing region at relatively large intervals. After moving the lens to a position near a position where a peak of the evaluation value obtained by the first search means is detected,
A second search means for obtaining an evaluation value at each position while moving in the vicinity of the position where the peak is detected at a smaller interval than the first search means, and a search by the first search means. During the operation, peak detection of the evaluation values for the plurality of blocks and determination of interruption of the search operation are executed, and the peak of the evaluation values detected in the search operation of the first search means is detected on the closest side. An operation of acquiring an evaluation value by the second search means is performed in the vicinity of the lens position corresponding to the detected peak, and the lens position corresponding to the peak of the evaluation value obtained by the second search means is defined as an in-focus position. An automatic focus adjustment device, which determines and moves the lens to the in-focus position.
【請求項5】 請求項1乃至4の何れか1項に記載の自
動焦点調節装置において、該装置は、分割する前の前記
フォーカスエリアについて前記評価値を算出する手段
と、 前記分割前のフォーカスエリアについて算出された評価
値に基づいて、サーチ動作の中断を決定する中断判定手
段と、 を備え、前記制御手段は、前記中断判定手段によってサ
ーチ動作を中断した場合には、既に検出されている評価
値のピークのうち最も至近側で検出されている評価値の
ピークに対応するレンズ位置又はその近傍を合焦位置と
判定し、当該合焦位置に前記レンズを移動させるように
前記レンズ移動手段を制御することを特徴とする自動焦
点調節装置。
5. The automatic focus adjustment device according to claim 1, wherein the device calculates the evaluation value for the focus area before the division, and the focus before the division. And interruption determination means for determining interruption of the search operation based on the evaluation value calculated for the area.If the search operation is interrupted by the interruption determination means, A lens position corresponding to the peak of the evaluation value detected on the closest side among the peaks of the evaluation value or the vicinity thereof is determined as a focus position, and the lens moving means is configured to move the lens to the focus position. An automatic focus adjustment device characterized by controlling the following.
【請求項6】 請求項5に記載の自動焦点調節装置にお
いて、前記中断判定手段は、前記分割前のフォーカスエ
リアについて算出された評価値のピークが得られたレン
ズ位置から一定量離れた位置での評価値と、予め定めら
れている所定の閾値とを比較し、当該評価値が前記閾値
以下のときは、サーチ動作を中断する旨の判定を行うこ
とを特徴とする自動焦点調節装置。
6. The automatic focus adjustment device according to claim 5, wherein the interruption determination unit is arranged at a position separated by a predetermined distance from a lens position at which a peak of an evaluation value calculated for the focus area before the division is obtained. An automatic focus adjustment device, which compares an evaluation value of the search result with a predetermined threshold value, and when the evaluation value is equal to or less than the threshold value, determines that the search operation is interrupted.
【請求項7】 請求項5又は6に記載の自動焦点調節装
置において、前記中断判定手段は、 前記焦点調節領域の端点から所定量以上離れたレンズ位
置での前記フォーカスエリア全体の評価値の変化を検出
する評価値変化検出手段を有し、前記評価値変化検出手
段によって当該評価値の増加傾向が検出されない場合
に、サーチ動作を中断する旨の判定を行うことを特徴と
する自動焦点調節装置。
7. The automatic focus adjustment device according to claim 5, wherein the interruption determination unit changes the evaluation value of the entire focus area at a lens position separated from an end point of the focus adjustment area by a predetermined amount or more. An automatic focus adjustment device having an evaluation value change detecting means for detecting a search operation, and determining that the search operation is to be interrupted when the evaluation value change detecting means does not detect an increasing tendency of the evaluation value. .
【請求項8】 レンズを介して入射する被写体の光学像
を撮像手段によって電気信号に変換し、前記撮像手段か
ら出力される画像信号を用いて画像の鮮鋭度を示す評価
値を算出し、得られた評価値に基づいて前記レンズの焦
点位置を調節する自動焦点調節方法において、該方法
は、 撮影画面のうち前記評価値の算出対象エリアとなるフォ
ーカスエリアを設定する工程と、 前記フォーカスエリアを複数のブロックに分割する工程
と、 前記レンズを焦点調節領域内で移動させる工程と、 前記レンズを移動させながら各レンズ位置毎に、前記分
割されたそれぞれのブロックについて前記画像信号から
被写体のコントラスト成分を抽出し、該コントラスト成
分から前記評価値を算出する評価値算出工程と、 前記レンズを移動させながら各レンズ位置で前記評価値
を取得するサーチ動作を制御する工程と、 前記複数のブロックについてそれぞれ算出される評価値
を監視し、前記複数のブロックのうち前記サーチ動作の
レンズ移動方向に応じて設定されるブロック数以上のブ
ロックについて評価値のピークが検出された時点で前記
サーチ動作を中断する工程と、 最も至近側で前記評価値がピークとなるレンズ位置を合
焦位置と判定し、当該合焦位置に前記レンズを移動させ
る工程と、 を含むことを特徴とする自動焦点調節方法。
8. An optical image of a subject incident through a lens is converted into an electric signal by an imaging unit, and an evaluation value indicating a sharpness of an image is calculated using an image signal output from the imaging unit. In the automatic focus adjustment method for adjusting the focal position of the lens based on the obtained evaluation value, the method includes: setting a focus area to be a calculation target area of the evaluation value in a shooting screen; Dividing the lens into a plurality of blocks; moving the lens within a focus adjustment area; and moving the lens for each lens position. For each of the divided blocks, a contrast component of a subject from the image signal for each of the divided blocks. Extracting, and calculating an evaluation value from the contrast component, an evaluation value calculating step; and moving each of the lens positions while moving the lens. Controlling the search operation for obtaining the evaluation value; and monitoring the evaluation value calculated for each of the plurality of blocks, and setting the number of blocks in the plurality of blocks to be set according to a lens moving direction of the search operation. A step of interrupting the search operation when a peak of the evaluation value is detected for the above blocks; and determining a lens position at which the evaluation value has a peak on the closest side as an in-focus position. Moving the lens.
JP2001112861A 2001-04-11 2001-04-11 Automatic focusing device and method Pending JP2002311325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001112861A JP2002311325A (en) 2001-04-11 2001-04-11 Automatic focusing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001112861A JP2002311325A (en) 2001-04-11 2001-04-11 Automatic focusing device and method

Publications (1)

Publication Number Publication Date
JP2002311325A true JP2002311325A (en) 2002-10-23

Family

ID=18964188

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001112861A Pending JP2002311325A (en) 2001-04-11 2001-04-11 Automatic focusing device and method

Country Status (1)

Country Link
JP (1) JP2002311325A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005214994A (en) * 2004-01-27 2005-08-11 Sanyo Electric Co Ltd Camera
JP2006106484A (en) * 2004-10-07 2006-04-20 Pentax Corp Focus detection method
JP2007322978A (en) * 2006-06-05 2007-12-13 Pentax Corp Focus detection method and focus detection device
JP2008107665A (en) * 2006-10-27 2008-05-08 Pentax Corp Camera with hand shake correcting device
US7382411B2 (en) 2002-08-21 2008-06-03 Nikon Corporation Method for focus adjusting and camera
JP2009025770A (en) * 2007-07-24 2009-02-05 Hoya Corp Focusing method and device
JP2009042621A (en) * 2007-08-10 2009-02-26 Ricoh Co Ltd Imaging apparatus and method
CN100526968C (en) * 2004-08-06 2009-08-12 三星Techwin株式会社 Automatic focusing method and digital photographing apparatus using the same
CN100541311C (en) * 2004-08-06 2009-09-16 三星Techwin株式会社 The digital photographing apparatus of automatic focusing method and the automatic focusing method of use
US7738028B2 (en) 2006-08-31 2010-06-15 Hoya Corporation Camera having a focusing adjusting system
US7773874B2 (en) * 2006-06-05 2010-08-10 Hoya Corporation Focus detection method and focus detection device
US8169530B2 (en) 2007-06-19 2012-05-01 Pentax Ricoh Imaging Company Camera having an autofocusing system
CN109696788A (en) * 2019-01-08 2019-04-30 武汉精立电子技术有限公司 A kind of fast automatic focusing method based on display panel
CN115242965A (en) * 2022-05-06 2022-10-25 福建星网智慧软件有限公司 Automatic focusing method, device, equipment and medium for variable step length of camera

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7382411B2 (en) 2002-08-21 2008-06-03 Nikon Corporation Method for focus adjusting and camera
JP2005214994A (en) * 2004-01-27 2005-08-11 Sanyo Electric Co Ltd Camera
CN100541311C (en) * 2004-08-06 2009-09-16 三星Techwin株式会社 The digital photographing apparatus of automatic focusing method and the automatic focusing method of use
CN100526968C (en) * 2004-08-06 2009-08-12 三星Techwin株式会社 Automatic focusing method and digital photographing apparatus using the same
JP2006106484A (en) * 2004-10-07 2006-04-20 Pentax Corp Focus detection method
US7657169B2 (en) 2006-06-05 2010-02-02 Hoya Corporation Focus detection method and focus detection device
JP2007322978A (en) * 2006-06-05 2007-12-13 Pentax Corp Focus detection method and focus detection device
US7773874B2 (en) * 2006-06-05 2010-08-10 Hoya Corporation Focus detection method and focus detection device
US7738028B2 (en) 2006-08-31 2010-06-15 Hoya Corporation Camera having a focusing adjusting system
US7830415B2 (en) 2006-10-27 2010-11-09 Hoya Corporation Camera having an image stabilizer
JP2008107665A (en) * 2006-10-27 2008-05-08 Pentax Corp Camera with hand shake correcting device
US8169530B2 (en) 2007-06-19 2012-05-01 Pentax Ricoh Imaging Company Camera having an autofocusing system
JP2009025770A (en) * 2007-07-24 2009-02-05 Hoya Corp Focusing method and device
US7831138B2 (en) * 2007-07-24 2010-11-09 Hoya Corporation Focus adjusting method and focus adjusting device
JP2009042621A (en) * 2007-08-10 2009-02-26 Ricoh Co Ltd Imaging apparatus and method
CN109696788A (en) * 2019-01-08 2019-04-30 武汉精立电子技术有限公司 A kind of fast automatic focusing method based on display panel
CN115242965A (en) * 2022-05-06 2022-10-25 福建星网智慧软件有限公司 Automatic focusing method, device, equipment and medium for variable step length of camera

Similar Documents

Publication Publication Date Title
JP2002318341A (en) Device and method for automatic focusing
JP4957943B2 (en) Imaging apparatus and program thereof
US7889985B2 (en) Imaging apparatus
KR100914084B1 (en) Image capture device and image capture method
JP5394296B2 (en) Imaging apparatus and image processing method
US7433586B2 (en) Camera with an auto-focus function
JP4649715B2 (en) Automatic focus adjustment device
US7298411B2 (en) Digital camera
JP2002311325A (en) Automatic focusing device and method
JP4645413B2 (en) Imaging device
US7796163B2 (en) System for and method of taking image based on objective body in a taken image
JP3952254B2 (en) Method and apparatus for generating focused sound
JP2009282541A (en) Image capture device and program
JP5409483B2 (en) Imaging device
US20070195190A1 (en) Apparatus and method for determining in-focus position
JP4320767B2 (en) Automatic focusing apparatus and method
JP4902577B2 (en) Auto focus system
JP4949717B2 (en) In-focus position determining apparatus and method
JP4565370B2 (en) Electronic camera and autofocus control method
JP2006235059A (en) Photographing device
JP2006157604A (en) Camera apparatus and automatic photographing control program
JP5048559B2 (en) Auto focus system
JP2003295042A (en) Camera
JP5069076B2 (en) Imaging apparatus and continuous imaging method
JP2001116978A (en) Image pickup device, image pickup method, and storage medium