JPH10215401A - Auto-focus device for video camera - Google Patents

Auto-focus device for video camera

Info

Publication number
JPH10215401A
JPH10215401A JP9017059A JP1705997A JPH10215401A JP H10215401 A JPH10215401 A JP H10215401A JP 9017059 A JP9017059 A JP 9017059A JP 1705997 A JP1705997 A JP 1705997A JP H10215401 A JPH10215401 A JP H10215401A
Authority
JP
Japan
Prior art keywords
evaluation value
lens
value
determination
focus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9017059A
Other languages
Japanese (ja)
Other versions
JP3794086B2 (en
Inventor
Yujiro Ito
雄二郎 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP01705997A priority Critical patent/JP3794086B2/en
Publication of JPH10215401A publication Critical patent/JPH10215401A/en
Application granted granted Critical
Publication of JP3794086B2 publication Critical patent/JP3794086B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To grasp the change of evaluation value that is caused by the movement of a focus lens by reducing relatively the changing rate of the evaluation value despite the mutual shakes which are caused between a video camera and its object. SOLUTION: An AF(autofocus) block 137 has an AF-IC 139 and an AF CPU 138. The AF-IC 139 includes a luminance signal generation circuit and 14 evaluation value generation circuits. Every evaluation value generation circuit generates the evaluation value by the luminance signal Y of the luminance signal generation circuit and the HD, VD and CK timing signals of a timing signal generation circuit 125. The CPU 138 performs the calculation and every processing in response to the algorithm corresponding to each evaluation value. The shake is decided based on the evaluation value showing the changing rate of the evaluation value per field and the normalized difference value of the luminance addition value. Then the speed of an AF lens is controlled based on the shake decision result.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、報道用又は業務用
ビデオカメラの自動焦点調節(オートフォーカス。以
下、「AF」と略す。)に関する。焦点調節とは、いわ
ゆるジャストピント状態(以下、「JP」と略す。)を
決定することである。更に具体的には、本発明は、放送
局や業務用に使用されるビデオカメラ等(テレビカメ
ラ,スタジオカメラ,ENGカメラ等を含む。)によっ
て撮影される被写体の位置を自動的に認識する被写体認
識装置、及び、その被写体認識装置を利用して被写体に
対してフォーカスを合わせる撮像装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to automatic focus adjustment (auto focus; hereinafter, abbreviated as "AF") of a news or professional video camera. Focus adjustment is to determine a so-called just focus state (hereinafter abbreviated as "JP"). More specifically, the present invention relates to an object for automatically recognizing a position of an object photographed by a broadcast station, a video camera used for business use (including a television camera, a studio camera, an ENG camera, etc.). The present invention relates to a recognition device and an imaging device that focuses on a subject using the subject recognition device.

【0002】[0002]

【従来の技術】従来、ビデオカメラにおける被写体に対
してフォーカスを自動的に合わせるAF機構に関して
は、既に民生用ビデオカメラの分野で実現されている。
2. Description of the Related Art Conventionally, an AF mechanism for automatically focusing on a subject in a video camera has already been realized in the field of consumer video cameras.

【0003】このとき、フォーカスがあっているか否か
を検出するためには、撮像信号のコントラストが高いか
低いかを判断すればよいことは良く知られている。即
ち、コントラストが高いとフォーカスが合っており、コ
ントラストが低いとフォーカスがずれていることにな
る。撮像信号の高周波成分を取り出して、画面内の所定
の設定エリア内に存在するこの高周波成分を積分したデ
ータを生成し、この積分したデータを利用することによ
って、コントラストの高低が判断できる。この積分され
たデータは、その設定エリア内にどれだけ高周波成分が
存在するかを示すデータであって、一般に、このデータ
を評価値と呼んでいる。従って、評価値が最大となるよ
うに、即ち、コントラストが最大になるようにフォーカ
スレンズを駆動することにより、AFが実現できる。
At this time, it is well known that it is only necessary to determine whether the contrast of the image signal is high or low in order to detect whether or not the image is in focus. That is, when the contrast is high, the focus is on, and when the contrast is low, the focus is off. By extracting the high frequency component of the imaging signal, generating data by integrating the high frequency component present in a predetermined setting area in the screen, and using the integrated data, it is possible to determine the level of the contrast. This integrated data is data indicating how many high-frequency components are present in the set area, and this data is generally called an evaluation value. Therefore, AF can be realized by driving the focus lens so that the evaluation value is maximized, that is, the contrast is maximized.

【0004】[0004]

【発明が解決しようとする課題】民生用ビデオカメラ
は、その性質上、それほど精密なAF機構は要求されて
いない。現状の民生用ビデオカメラに備えられたAF機
構は、被写体が急激に変化・変動した時、それに追従す
る時間は比較的短いものの、その後、被写体を探るよう
な状態が継続し、映像を精細に観察すればピントが合っ
た状態(JP)とずれた状態(ボケ状態)が継続的に繰
り返されている。
Consumer video cameras do not require a very precise AF mechanism due to their properties. With the AF mechanism provided in current consumer video cameras, when the subject changes or fluctuates rapidly, the time to follow it is relatively short, but after that, the state of searching for the subject continues, and the image is finely defined. According to observation, the in-focus state (JP) and the out-of-focus state (blurred state) are continuously repeated.

【0005】この原因は、現在のAF機構が、目標被写
体のフォーカス状態の変化だけでなく、映像の背景,明
るさ等の種々の要因の変化に対しても評価値が変化して
いることにある。これらの要因を評価値の値から区別す
ることは出来ず、このような方法で抽出された評価値
は、決して被写体のフォーカス状態を表す正確な評価値
ではない。簡易なAF機構でこの問題を解決することは
非常に難しい。
[0005] This is because the evaluation value of the current AF mechanism is changed not only by the change of the focus state of the target subject but also by the change of various factors such as the background and brightness of the image. is there. These factors cannot be distinguished from the value of the evaluation value, and the evaluation value extracted by such a method is by no means an accurate evaluation value representing the focus state of the subject. It is very difficult to solve this problem with a simple AF mechanism.

【0006】また、民生用機器は価格が安いことが大き
なセールスポイントであり、民生用ビデオカメラに関し
て一層精密ではあるが高価なものとなるようなAF機構
を要望する声は聞かれない。
A major selling point is that consumer electronics are inexpensive, and there has been no request for an AF mechanism that is more precise but more expensive for consumer video cameras.

【0007】しかし、放送局等で使用される業務用又は
プロ用機器は、その性質上、非常に高い精度・精細さが
要求される。例えば、放送局や業務用に使用されるビデ
オカメラにおいては、撮影された映像をライブ中継(生
放送)で家庭に伝送することがある。もし、このような
ライブ中継をおこなっている時に、迅速に且つ精度の良
い評価値を得ることが出来ないならば、AF操作に時間
がかかってしまい、また、ピントのぼやけた撮像信号を
家庭に伝送してしまうことになる。
However, professional or professional equipment used in broadcasting stations and the like requires extremely high precision and definition due to its properties. For example, in a video camera used for a broadcasting station or for business use, a captured video may be transmitted to a home through live broadcasting (live broadcasting). If it is not possible to obtain a quick and accurate evaluation value during such live broadcasting, AF operation takes time, and an in-focus blurred image signal is transmitted to the home. Will be transmitted.

【0008】従って、放送局や業務用に使用されるビデ
オカメラは、民生用ビデオカメラに採用されているよう
な簡易型や廉価な小型のAF装置とは全く異なるもので
あり、現状の民生用ビデオカメラのAF機構をそのまま
導入することは出来ない。
Therefore, a video camera used for a broadcasting station or for business use is completely different from a simple and inexpensive small AF device used in a consumer video camera. The AF mechanism of a video camera cannot be introduced as it is.

【0009】更に、民生用ビデオカメラでは、それほど
鮮明な画像は必要ないのでレンズが小さく被写界深度が
非常に深い状態で使用されており、その分フォーカス調
節が容易である。即ち、被写体の距離が10数mを越す
場合レンズから被写体までの距離がJPの前後1m強変
化しても、画面上では「ボケ」とは判定されない。
Furthermore, since a consumer video camera does not require such a clear image, the camera is used in a state where the lens is small and the depth of field is very deep, so that the focus can be easily adjusted. In other words, when the distance to the subject exceeds 10 m, even if the distance from the lens to the subject changes by a little over 1 m before and after JP, it is not determined as "blur" on the screen.

【0010】これに対して、放送局のカメラは、非常に
鮮明な画像を必要としているためレンズが大きく被写界
深度が非常に浅い状態で使用されいる。即ち、レンズか
ら被写体までの距離が前後にほんの僅かに変化しても、
「ボケ」と判定されてしまう。従って、被写体深度が浅
い分だけ一層精度良くフォーカスを調節しなければなら
ない。
On the other hand, a camera of a broadcasting station requires a very clear image and is used in a state where a lens is large and a depth of field is very shallow. That is, even if the distance from the lens to the subject changes slightly back and forth,
It is determined to be "blurred". Therefore, it is necessary to adjust the focus more accurately by the shallow depth of the subject.

【0011】ここで、「被写界深度」及び後で出てくる
「焦点深度」について簡単に説明する。被写界深度
(「被写体深度」ともいう。)とは、カメラレンズを或
るレンズセット位置に固定したとき、ボケがなく、鮮明
であると受け入れられるようなカメラから最も近い点と
最も遠い点との距離をいう。即ち、レンズを或る特定の
距離に対して焦点を合わせた時、満足すべき鮮明度が得
られる全体の距離をいう。民生用ビデオカメラに対し
て、業務用ビデオカメラは一層深い被写界深度の撮影条
件がとり得る。一般に、カメラの焦点調節特性は、被写
界深度で表される。AF機能付きカメラでは、測距誤差
が撮影に用いたビデオカメラの被写界深度内に収まって
いれば(|被写界深度|>|測距誤差|)、ピントがあ
ったと思える良い映像が撮れる。
Here, "depth of field" and "depth of focus" which will be described later will be briefly described. The depth of field (also referred to as the "depth of subject") is the point closest to and farthest from the camera that is accepted as being sharp without blur when the camera lens is fixed at a certain lens set position. And the distance. That is, the total distance at which satisfactory sharpness is obtained when the lens is focused at a specific distance. In contrast to consumer video cameras, professional video cameras can have shooting conditions with a deeper depth of field. Generally, the focus adjustment characteristic of a camera is represented by the depth of field. With a camera with AF function, if the ranging error is within the depth of field of the video camera used for shooting (| depth of field |> | ranging error |), a good image that seems to be in focus is obtained. I can take it.

【0012】これに対して、焦点深度とは、被写界深度
によって包括される物体距離の前後範囲に対応した像距
離の範囲をいう。言い換えれば、焦点を合わせた被写体
の像が、受け入れ可能な鮮鋭さの範囲で許されるレンズ
と撮像面(CCD電荷結合装置)との距離をいう。
On the other hand, the depth of focus refers to a range of the image distance corresponding to the range before and after the object distance covered by the depth of field. In other words, this refers to the distance between the lens and the imaging surface (CCD charge-coupled device) where the focused image of the subject is allowed within a range of acceptable sharpness.

【0013】図39Aに示すように、物点(被写体)P
がP0の位置でCCD面に焦点が合っている時、このレ
ンズ及びCCDを固定した状態で、鮮明であると受け入
れられるようなレンズ(カメラ)から最も遠い点P1と
最も近い点P2との距離をいう。一方、図39Bに示す
ように、被写界深度によって包括される物体距離の前後
範囲P1〜P2に対応した像距離の範囲P1′〜P2′
を、焦点深度という。
As shown in FIG. 39A, an object point (subject) P
When the focus is on the CCD surface at the position P0, the distance between the point P1 farthest from the lens (camera) and the point P2 closest to the lens (camera) which is accepted as being clear with this lens and the CCD fixed, with the lens fixed. Say. On the other hand, as shown in FIG. 39B, image distance ranges P1 'to P2' corresponding to the front and rear ranges P1 to P2 of the object distance covered by the depth of field.
Is called the depth of focus.

【0014】なお、「ボケがなく、鮮明であると受け入
れられるような状態」とは、実際に肉眼で見る判断と、
許容錯乱円を使って定義する場合がある。前者は、いわ
ゆる人間の眼による官能検査である。後者は、図40A
に示すように、本来一点に収束直径dの円形のボケを生
じたとする。このとき、ピント外れ量δは、小円錐ab
cの高さとなる。最大許容量のボケが生じたときの円錐
底面を許容錯乱円と呼ぶ。放送業務用の2/3インチの
CCDを用いた場合には、この小円錐ABCの底面の直
径dが22〔μm〕以下である時、ボケがなく、鮮明で
あると受け入れられるような状態とする。従って、d=
22〔μm〕の時の小円錐ABCの底面を許容錯乱円と
いい、このときのピント外れ量δは焦点深度となる。
[0014] It should be noted that "the state in which there is no blur and it is acceptable to be sharp" means that the judgment is made with the naked eye.
It may be defined using an allowable circle of confusion. The former is a so-called sensory test with human eyes. The latter, FIG. 40A
It is assumed that a circular blur having a convergent diameter d is originally generated at one point as shown in FIG. At this time, the defocus amount δ is a small cone ab
c. The conical bottom surface when the maximum allowable blur occurs is called an allowable circle of confusion. In the case where a 2/3 inch CCD for broadcasting business is used, when the diameter d of the bottom surface of the small conical ABC is 22 [μm] or less, there is no blur and a state in which it is accepted as clear. I do. Therefore, d =
The bottom surface of the small cone ABC at 22 [μm] is called an allowable circle of confusion, and the out-of-focus amount δ at this time is the depth of focus.

【0015】許容錯乱円の直径d≦22〔μm〕とする
根拠は、図40Bに示すように、放送局用ビデオカメラ
で使用されている2/3インチCCDの正格子状に並ぶ
画素(ピクセル)間の距離(画素ピッチ)に相当する。
即ち、これ以下であれば、像が結像位置にある画素に隣
接する画像まで拡がって、隣接画素に悪影響を及ぼさな
いからである。
The basis for setting the diameter of the permissible circle of confusion d ≦ 22 [μm] as shown in FIG. 40B is that pixels (pixels) arranged in a regular lattice of a 2/3 inch CCD used in a video camera for broadcasting stations are used. )) (Pixel pitch).
That is, if it is less than this, the image spreads to the image adjacent to the pixel at the image formation position, and does not adversely affect the adjacent pixel.

【0016】一般に、民生用ビデオカメラでは官能検査
で判断する場合が多く、業務用ビデオカメラでは許容錯
乱円で判断する場合が多い。
In general, a consumer video camera often makes a judgment based on a sensory test, and a business video camera often makes a judgment based on an allowable circle of confusion.

【0017】従来より業務用又はプロ用ビデオカメラに
適する非常に高精度のAF機構の開発が望まれている。
現在まで、業務用又はプロ用ビデオカメラに適する高精
度AF機構の開発が試みられたが、放送局のカメラマン
の高い要求を満足することが出来ず、いずれも失敗に終
わっている。従って、いまなおカメラマンの職人的技能
に頼ったマニュアル焦点調節が行われているのが実状で
ある。
Conventionally, it has been desired to develop a very high-precision AF mechanism suitable for a professional or professional video camera.
Until now, attempts have been made to develop a high-precision AF mechanism suitable for professional or professional video cameras, but they have failed to satisfy the high demands of the broadcaster's cameraman, and all have failed. Therefore, the actual situation is that manual focusing is still performed depending on the craftsmanship of the photographer.

【0018】本出願では、発明の詳細な説明の欄に記載
するように、業務用又はプロ用ビデオカメラに適するA
F機構を開発している。このAFでは、フォーカスレン
ズを移動しながら評価値のピークを探索することにより
JPを探し出している。ここで、フォーカスレンズの移
動速度決定に際して、評価値ピークまで遠い場合にあま
り遅すぎるとAFに時間がかかりすぎる。反対に評価値
ピークまで比較的近い場合に速すぎると、評価値ピーク
を大きく通り過ぎる問題がある。
In the present application, as described in the detailed description of the invention, A suitable for professional or professional video cameras
F mechanism is being developed. In this AF, JP is found by searching for the peak of the evaluation value while moving the focus lens. Here, when determining the moving speed of the focus lens, if the distance is far from the peak of the evaluation value, the time is too long if the AF is too slow. On the other hand, if the speed is too close to the evaluation value peak relatively, there is a problem that the evaluation value peak is greatly passed.

【0019】更に、ビデオカメラと被写体相互間に揺れ
がある場合には、評価値の値に揺れによる影響があり、
フォーカスレンズの移動による評価値の変化と揺れによ
る評価値の変化の割合が不明となる問題がある。
Further, when there is a fluctuation between the video camera and the subject, the evaluation value is affected by the fluctuation,
There is a problem that the ratio of the change in the evaluation value due to the movement of the focus lens and the change in the evaluation value due to shaking is unknown.

【0020】更に、揺れ判定を導入した場合、AFスイ
ッチをマニアル操作したことにより、ビデオカメラが微
妙に動き評価値に変化となって現れ、揺れ判定を不正確
なものにする問題もある。
Further, when the shake determination is introduced, the manual operation of the AF switch causes a slight change in the motion evaluation value of the video camera, which causes a problem that the shake determination becomes inaccurate.

【0021】従って、本発明は、上述した問題点に鑑
み、業務用又はプロ用ビデオカメラに適する非常に精度
の高いAF機構を提供することを目的とする。更に本発
明は、業務用又はプロ用ビデオカメラに適する非常に精
度の高いAF機構を備えたビデオカメラを提供すること
を目的とする。更に本発明は、業務用又はプロ用ビデオ
カメラに適する非常に精度の高いAF方法を提供するこ
とを目的とする。
Accordingly, it is an object of the present invention to provide an extremely accurate AF mechanism suitable for a professional or professional video camera in view of the above-mentioned problems. It is a further object of the present invention to provide a video camera having an extremely accurate AF mechanism suitable for a professional or professional video camera. It is a further object of the present invention to provide a very accurate AF method suitable for professional or professional video cameras.

【0022】更に本発明は、業務用又はプロ用ビデオカ
メラに適するAF機構におけるフォーカスレンズの移動
速度決定に際して、種々の条件に対応して、迅速に且つ
評価値ピークを行き過ぎることがないフォーカスレンズ
の移動速度決定手段を提供することを目的とする。
Further, according to the present invention, when determining the moving speed of a focus lens in an AF mechanism suitable for a professional or professional video camera, the focus lens can be quickly and without exceeding an evaluation value peak in response to various conditions. It is an object to provide a moving speed determining means.

【0023】更に本発明は、ビデオカメラと被写体相互
間に揺れがある場合にも、評価値の変化の割合を相対的
に少なくし、フォーカスレンズの移動による評価値の変
化を把握できるような手段を提供することを目的とす
る。
Further, according to the present invention, even when the video camera and the subject shake, the rate of change of the evaluation value is relatively reduced so that the change of the evaluation value due to the movement of the focus lens can be grasped. The purpose is to provide.

【0024】更に本発明は、揺れ判定を導入した場合、
AFスイッチをマニアル操作した場合に生じるカメラぶ
れを考慮した揺れ判定手段を提供することを目的とす
る。
Further, according to the present invention, when swing determination is introduced,
An object of the present invention is to provide a shake determination unit that takes into account camera shake that occurs when an AF switch is manually operated.

【0025】[0025]

【課題を解決するための手段】本発明に係るオートフォ
ーカス装置は、ビデオカメラの画像信号を入力する入力
手段と、該画像信号の特定領域の高周波成分を抽出して
評価値を生成する評価値生成手段と、該評価値に応じて
上記ビデオカメラのレンズのフォーカス駆動部に与える
指令値を算出する信号処理手段と、該指令値を上記ビデ
オカメラのレンズの駆動部に送出する出力手段とを備え
たオートフォーカス装置であって、上記特定領域内で上
記画像信号の輝度を加算した値を算出する回路を設け、
所定期間における評価値と上記輝度加算値の変化率とを
調べ、上記ビデオカメラと被写体相互間の揺れの有無を
判定し、揺れの有無に対応してオートフォーカス時のフ
ォーカスレンズの速度を制御している。
According to the present invention, there is provided an autofocus apparatus comprising: input means for inputting an image signal of a video camera; and an evaluation value for extracting a high-frequency component of a specific region of the image signal to generate an evaluation value. Generating means, signal processing means for calculating a command value to be given to a focus drive unit of the lens of the video camera according to the evaluation value, and output means for sending the command value to a drive unit of the lens of the video camera. An auto-focusing device comprising: a circuit for calculating a value obtained by adding the luminance of the image signal in the specific area,
The evaluation value and the rate of change of the luminance addition value during a predetermined period are checked to determine whether or not the video camera and the subject shake, and the speed of the focus lens during autofocusing is controlled in accordance with the presence or absence of the shake. ing.

【0026】更に本発明に係るオートフォーカス装置
は、上述のオートフォーカス装置において、更に揺れが
有ると判定された場合、上記フォーカスレンズの速度を
比較的高速にし、反対に揺れが無いと判定された場合、
ボケ状態からジャストピンの近傍までを第1のレンズ速
度で移動し、該近傍からジャストピントまでを第1のレ
ンズ速度より相対的に遅い第2のレンズ速度で移動す
る。
Further, in the auto-focusing device according to the present invention, in the above-mentioned auto-focusing device, when it is determined that there is further shaking, the speed of the focus lens is made relatively high, and conversely, it is determined that there is no shaking. If
The lens moves from the blurred state to the vicinity of the just pin at a first lens speed, and moves from the vicinity to the just focus at a second lens speed relatively lower than the first lens speed.

【0027】更に本発明に係るオートフォーカス装置
は、上述のオートフォーカス装置において、更に第1の
レンズ速度から第2のレンズ速度への切り替えは、上記
評価値の変化率に対応して切り替えている。
Further, in the autofocus apparatus according to the present invention, in the above autofocus apparatus, switching from the first lens speed to the second lens speed is performed in accordance with the rate of change of the evaluation value. .

【0028】更に本発明に係るオートフォーカス方法
は、ビデオカメラの画像信号を入力し、上記画像信号の
特定領域の高周波成分を抽出して評価値を生成し、上記
画像信号の上記特定領域内で輝度を加算した値を算出し
て輝度加算値を生成し、所定期間における上記評価値と
上記輝度加算値の変化率を調べ、上記評価値の変化率及
び輝度加算値の変化率の両方又はいずれか一方から揺れ
の有無を判定する、諸段階を含むビデオカメラのオート
フォーカス方法である。
Further, in the autofocus method according to the present invention, an image signal of a video camera is input, a high-frequency component of a specific region of the image signal is extracted to generate an evaluation value, and an evaluation value is generated within the specific region of the image signal. A value obtained by adding the luminance is calculated to generate a luminance addition value, and the evaluation value and the rate of change of the luminance addition value during a predetermined period are checked. This is an autofocus method for a video camera including various steps of judging the presence or absence of a shake from one of the methods.

【0029】[0029]

【発明の実施の形態】以下、本発明に係る実施例につい
て添付の図面を参照しながら詳細に説明する。本実施例
では、今回開発を行なった放送局又は業務用ビデオカメ
ラのAFのハード構成及び動作アルゴリズムの説明を行
なう。更に、AFの各評価値を作成するハード構成、評
価値の種類、性質等の説明も併せて行なう。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In this embodiment, a description will be given of a hardware configuration and an operation algorithm of an AF of a broadcasting station or a commercial video camera developed this time. Further, a description will be given of the hardware configuration for creating each evaluation value of AF, the types and properties of the evaluation values, and the like.

【0030】なお、実施例の記載が長くわたるので、最
初に目次を記し、その後、この目次の順番にしたがって
説明する。また、図面に使用される符号は原則として4
桁での数字で表記し、上位2桁は図面番号に対応し、下
2桁は各要素に対して順に付与されている。但し、図番
番号1〜9に関しては千の位のゼロは省略する。また、
フローチャートの各ステップに関しては、更に最上位に
「S」を付して識別出来るようにしている。
Since the description of the embodiment is long, a table of contents will be described first, and then the description will be made in the order of the table of contents. Also, the symbols used in the drawings are basically 4
The upper two digits correspond to the drawing number, and the lower two digits are sequentially given to each element. However, with respect to the figure numbers 1 to 9, the thousands place zero is omitted. Also,
Each step in the flowchart is further identified with an "S" at the top.

【0031】目次 1. ハード構成 2. 評価値 3. AFアルゴリズム 3.1 全体フローチャート 3.2 揺れ判定(レンズ静止時) 3.3 ウォブリング 3.4 山登りパラメータの初期化 3.5 最大、最小値更新 3.6 レンズ速度設定 3.7 飽和輝度判定 3.8 偽山判定 3.9 揺れ判定(レンズ動作時) 3.10 方向判定(山登り) 3.11 逆送判定 3.12 逆送反転処理 3.13 端到達判定 3.14 端反転処理 3.15 途中判断方法 3.16 ピーク選定 3.17 山下り判定 3.18 ピーク位置算出(重心処理) 3.19 ピーク位置へ移動 3.20 ロングフィルタTable of Contents 1. Hardware configuration Evaluation value 3. AF algorithm 3.1 Overall flowchart 3.2 Shaking judgment (when the lens is stationary) 3.3 Wobbling 3.4 Initialization of hill-climbing parameters 3.5 Update of maximum and minimum values 3.6 Lens speed setting 3.7 Saturation luminance judgment 3 .8 False Mountain Judgment 3.9 Shake Judgment (Lens Operation) 3.10 Direction Judgment (Climbing Up) 3.11 Reverse Feed Judgment 3.12 Reverse Feed Inversion Process 3.13 Edge Reaching Determination 3.14 Edge Inversion Process 3. 15 Midway judgment method 3.16 Peak selection 3.17 Mountain descent judgment 3.18 Peak position calculation (centroid processing) 3.19 Move to peak position 3.20 Long filter

【0032】1.ハード構成 図1は、本発明のビデオカメラの全体の構成を示す。ビ
デオカメラは、入射光を光学的に撮像素子の全面に集光
するためのレンズブロックと、レンズブロックからの入
射光をR,G,B(赤,緑,青)の電気的な撮像信号に
変換する撮像ブロックと、撮像信号に対して所定の信号
処理を行う信号処理ブロックとに別れ、、制御手段とし
て、レンズブロックを制御するレンズブロック制御用C
PU114と、撮像ブロック及び信号処理ブロックから
なるビデオカメラ本体を制御するメインCPU141
と、撮像信号RGBからAFのために使用するパラメー
タである評価値を生成する、AF専用CPU138をも
つAFブロック137とを備えている。
1. Hardware Configuration FIG. 1 shows the overall configuration of a video camera according to the present invention. The video camera has a lens block for optically condensing incident light on the entire surface of the image sensor, and converts the incident light from the lens block into electrical image signals of R, G, and B (red, green, and blue). An imaging block for conversion and a signal processing block for performing predetermined signal processing on the imaging signal are separated. As a control unit, a lens block control C for controlling a lens block is used.
PU114 and a main CPU 141 for controlling a video camera body including an imaging block and a signal processing block
And an AF block 137 having an AF dedicated CPU 138 for generating an evaluation value, which is a parameter used for AF, from the image pickup signals RGB.

【0033】このレンズブロックは、光学的要素とし
て、光軸方向に移動させることにより、目標被写体(タ
ーゲット)に対してフォーカスをJPに追い込むための
フォーカスレンズ111と、AFスタート時にフォーカ
スレンズの進むべき方向を探るため後で説明するウォブ
リング動作に使用されるウォブリングレンズ112と、
開口量を調節するアイリス機構113とを有している。
This lens block is moved as an optical element in the direction of the optical axis, so that the focus lens 111 drives the focus on the target subject (target) to JP, and the focus lens should advance at the start of AF. A wobbling lens 112 used for a wobbling operation described later to find the direction;
An iris mechanism 113 for adjusting the opening amount.

【0034】レンズブロックは、更に、フォーカスレン
ズ111に関して、フォーカスレンズの光軸方向のレン
ズ位置を検出するフォーカスレンズ位置検出センサ11
1aと、フォーカスレンズを光軸方向に移動させるため
のフォーカスレンズ駆動モータ111bと、フォーカス
レンズ駆動モータに駆動制御信号を与えるためのフォー
カスレンズ(F. L. )駆動回路111cとをもってい
る。同様に、ウォブリングレンズ112に関しても、ウ
ォブリングレンズの光軸方向のレンズ位置を検出するウ
ォブリングレンズ位置検出センサ112aと、ウォブリ
ングレンズを光軸方向に移動させるためのウォブリング
レンズ駆動モータ112bと、ウォブリングレンズ駆動
モータに駆動制御信号を与えるためのウォブリングレン
ズ(WOB)駆動回路112cとをもっている。同様
に、アイリス機構113に関しても、開口位置を検出す
るアイリス位置検出センサ113aと、アイリス機構を
開閉させるためのアイリス機構駆動モータ113bと、
アイリス駆動モータに駆動信号を与えるためのアイリス
駆動回路113cとをもっている。
The lens block further includes a focus lens position detection sensor 11 for detecting the position of the focus lens 111 in the optical axis direction of the focus lens.
1a, a focus lens drive motor 111b for moving the focus lens in the optical axis direction, and a focus lens (FL) drive circuit 111c for providing a drive control signal to the focus lens drive motor. Similarly, for the wobbling lens 112, a wobbling lens position detection sensor 112a for detecting the lens position of the wobbling lens in the optical axis direction, a wobbling lens drive motor 112b for moving the wobbling lens in the optical axis direction, and a wobbling lens drive A wobbling lens (WOB) drive circuit 112c for providing a drive control signal to the motor. Similarly, for the iris mechanism 113, an iris position detection sensor 113a for detecting an opening position, an iris mechanism driving motor 113b for opening and closing the iris mechanism,
An iris drive circuit 113c for supplying a drive signal to the iris drive motor.

【0035】なお、レンズブロック用CPU114は、
フォーカスレンズ駆動回路111c,ウォブリングレン
ズ駆動回路112c及びアイリス駆動回路113cに対
して夫々電気的に接続され、制御信号が供給される。ま
た、フォーカスレンズ位置検出センサ111a,ウォブ
リングレンズ位置検出センサ112a及びアイリスレン
ズ位置検出センサ113aからの各検出信号は、常時、
レンズブロック用CPU114に送られている。また、
レンズブロック用CPU114は、フォーカスレンズ1
11及びウォブリングレンズ112の焦点距離データ,
口径比データ、レンズブロックの製造メーカ名及び製造
番号等を記録したROM(又はEEPROM)をもって
おり、これらのデータはレンズブロック用CPU114
からの読み出しコマンドに基づいて読み出される。更に
このレンズブロック用CPU114には、AFの起動を
指示するためのAFスイッチ115が取付けられてい
て、レンズブロック側CPU114はスイッチ情報をカ
メラ本体側のメインCPU141及びAFブロック13
7に対して送信する。
It should be noted that the lens block CPU 114
The focus lens driving circuit 111c, the wobbling lens driving circuit 112c, and the iris driving circuit 113c are electrically connected to each other and supplied with a control signal. The detection signals from the focus lens position detection sensor 111a, the wobbling lens position detection sensor 112a, and the iris lens position detection sensor 113a always
It is sent to the lens block CPU 114. Also,
The lens block CPU 114 controls the focus lens 1
11 and the focal length data of the wobbling lens 112,
It has a ROM (or an EEPROM) in which aperture ratio data, the manufacturer name and serial number of the lens block are recorded, and these data are stored in the CPU 114 for the lens block.
It is read based on a read command from. Further, an AF switch 115 for instructing activation of AF is attached to the lens block CPU 114, and the lens block CPU 114 transmits switch information to the main CPU 141 and the AF block 13 of the camera body.
7 is transmitted.

【0036】撮像ブロックは、更に、レンズブロックか
らの入射光をR,G,Bの3原色に色分解するための色
分解プリズム121と、この色分解プリズムで分離され
たR成分,G成分,B成分の光が撮像面上に結像され、
結像された各色成分の撮像光を電気的な撮像信号R,G
及びBに夫々変換して出力する撮像素子122R,12
2G,122Bとを有している。例えば、この撮像素子
122R,122G,122Bは、CCD(電荷結合素
子)からなる。
The imaging block further includes a color separation prism 121 for separating the incident light from the lens block into three primary colors of R, G, and B, an R component, a G component, and an R component separated by the color separation prism. B component light is imaged on the imaging surface,
The imaging light of each formed color component is converted into electrical imaging signals R and G.
And image sensors 122R and 12 which convert and output the images to B and B, respectively.
2G and 122B. For example, the imaging devices 122R, 122G, and 122B are composed of CCDs (charge coupled devices).

【0037】撮像ブロックは、撮像素子から夫々出力さ
れた撮像信号R,G,Bのレベルを増幅すると共に、リ
セット雑音を除去するための相関二重サンプリングを行
うためのプリアンプ123R,123G,123Bを有
している。
The imaging block includes preamplifiers 123R, 123G, and 123B for amplifying the levels of the imaging signals R, G, and B respectively output from the imaging device, and performing correlated double sampling for removing reset noise. Have.

【0038】更に、撮像ブロックは、内部に設けられた
基準クロック発生回路からの基準クロックに基づいて、
ビデオカメラ内の各階路が動作する際の基本クロックと
なるVD信号,HD信号及びCLK信号を発生するため
のタイミング信号発生回路125と、タイミング発生回
路から供給されたVD信号,HD信号及びCLK信号に
基づいて、撮像素子122R,撮像素子122G及び撮
像素子122Bに対して駆動クロックを与えるためのC
CD駆動回路124とを有している。なお、VD信号
は、1垂直期間を表すクロック信号であり、HD信号
は、1水平期間を表すクロック信号であり、CLK信号
は、1画素クロックを表すクロック信号であり、これら
VD信号,HD信号及びCLK信号かなるタイミングク
ロックは、図示してないが、メインCPU141を介し
てビデオカメラの各回路に供給される。
Further, the image pickup block, based on a reference clock from a reference clock generation circuit provided therein,
A timing signal generation circuit 125 for generating a VD signal, an HD signal, and a CLK signal serving as a basic clock when each floor in the video camera operates, and a VD signal, an HD signal, and a CLK signal supplied from the timing generation circuit. C for giving a drive clock to the image sensor 122R, the image sensor 122G, and the image sensor 122B based on the
And a CD drive circuit 124. The VD signal is a clock signal representing one vertical period, the HD signal is a clock signal representing one horizontal period, and the CLK signal is a clock signal representing one pixel clock. And a timing clock comprising the CLK signal are supplied to each circuit of the video camera via the main CPU 141, though not shown.

【0039】信号処理ブロックは、撮像ブロックから供
給される撮像信号R,G,Bに対して所定の信号処理を
施すためのブロックである。信号処理ブロックは、撮像
信号R,G,Bをアナログ形式からディジタル形式に夫
々変換するA/D変換回路131R,131G,131
Bと、メインCPU141からのゲイン制御信号に基づ
いて、ディジタルビデオ信号R,G,Bのゲインを夫々
制御するためのゲイン制御回路132R,132G,1
32Bと、ディジタルビデオ信号R,G,Bに対して所
定の信号処理を行う信号処理回路133R,133G,
133Bとを有している。これらの信号処理回路は、例
えば、ビデオ信号の或るレベル以上を圧縮するニー回路
と、ビデオ信号のレベルを設定されたγカーブにしたが
って補正するγ補正回路と、所定の黒レベル及び予定レ
ベル以上の白レベルをクリップするB/Wクリップ回路
とを夫々もっている。なお、この信号処理回路133
R,133G,133Bは、ニー回路,γ補正回路,B
/Wクリップ回路の他に、公知のブラックγ補正回路,
輪郭強調回路,リニアマトリクス回路等をもっていても
よい。
The signal processing block is a block for performing predetermined signal processing on the imaging signals R, G, and B supplied from the imaging block. The signal processing block includes A / D conversion circuits 131R, 131G, 131 for converting the imaging signals R, G, B from an analog format to a digital format, respectively.
B and gain control circuits 132R, 132G, 1 for controlling the gains of the digital video signals R, G, B, respectively, based on the gain control signals from the main CPU 141.
32B and signal processing circuits 133R, 133G, which perform predetermined signal processing on the digital video signals R, G, B,
133B. These signal processing circuits include, for example, a knee circuit for compressing a video signal at a certain level or higher, a gamma correction circuit for correcting the video signal level according to a set gamma curve, and a predetermined black level and a predetermined level or higher. And a B / W clipping circuit for clipping the white level. The signal processing circuit 133
R, 133G, 133B are a knee circuit, a γ correction circuit, and B
/ W clip circuit, a known black γ correction circuit,
It may have an outline emphasis circuit, a linear matrix circuit, or the like.

【0040】信号処理ブロックは、更に、信号処理回路
133R,133G,133Bから夫々出力されたビデ
オ信号を受け取り、ビデオ信号R,G,Bから輝度信号
Yと色差信号(R−Y),(B−Y)を生成するための
エンコーダ134を有している。
The signal processing block further receives the video signals output from the signal processing circuits 133R, 133G, and 133B, respectively, and outputs the luminance signal Y and the color difference signals (RY), (B) from the video signals R, G, and B. −Y).

【0041】信号処理ブロックは、更に、ゲイン制御回
路132R,132G,132Bから出力されたビデオ
信号R,G,Bを夫々受け取り、これらビデオ信号13
2R,132G,132Bに基づいて、AFを行うAF
ブロック137と、信号処理回路133R,133G,
133Bから出力されたビデオ信号R,G,Bを夫々受
け取り、その信号レベルに基づいて撮像素子に入射する
光量が適切な光量となるようにアイリスを制御するアイ
リス制御回路135と、信号処理回路133R,133
G,133Bから夫々出力されたビデオ信号を受け取
り、その信号レベルに基づいてホワイトバランス制御を
行うためのホワイトバランス制御回路136とを有して
いる。
The signal processing block further receives the video signals R, G, and B output from the gain control circuits 132R, 132G, and 132B, respectively.
AF for performing AF based on 2R, 132G, 132B
Block 137, signal processing circuits 133R, 133G,
An iris control circuit 135 that receives the video signals R, G, and B output from the 133B and controls the iris based on the signal levels so that the amount of light incident on the image sensor becomes an appropriate amount; and a signal processing circuit 133R. , 133
And a white balance control circuit 136 for receiving video signals output from the G and 133B and performing white balance control based on the signal levels.

【0042】AFブロック137は、新規開発のオート
フォーカス集積回路(AF−IC)139とAF用CP
U(出願人における型番SH7034)138とを有
し、このAF−IC(139)は、輝度信号生成回路
(図示せず。)と各評価値毎に用意された評価値生成回
路(図示せず。)とをもつている。各評価値生成回路
は、輝度信号生成回路からの輝度信号Y及びタイミング
発生回路125で生成されるHD,VD,CKの各タイ
ミング信号が入力され、各評価値を夫々生成する。AF
用CPU138は、予め記憶装置(図示せず。)に蓄積
されたAFアルゴリズム(後で説明する。)に沿って、
各評価値に対してAFアルゴリズムに応じた計算及び各
種の処理を行い、また、計算で算出されたデータを1フ
ィールドに1回更新して蓄積する。評価値の種類、役割
等の詳細に関しては、項目「2.評価値」以降に説明す
る。
The AF block 137 includes a newly developed autofocus integrated circuit (AF-IC) 139 and an AF CP.
U (model SH7034 of the applicant) 138, and the AF-IC (139) includes a luminance signal generation circuit (not shown) and an evaluation value generation circuit (not shown) prepared for each evaluation value. )). Each evaluation value generation circuit receives the luminance signal Y from the luminance signal generation circuit and each of the HD, VD, and CK timing signals generated by the timing generation circuit 125, and generates each evaluation value. AF
The CPU 138 according to the AF algorithm (described later) stored in a storage device (not shown) in advance.
The calculation and various processes according to the AF algorithm are performed on each evaluation value, and the data calculated by the calculation is updated once in one field and accumulated. Details of the type and role of the evaluation value will be described after the item “2. Evaluation value”.

【0043】AF用CPU138は、AF−IC(13
9)に対して、速距エリアサイズ(評価枠サイズ),画
像の種類(NTSC/PAL、画素のクロック等)等の
データを設定し、AF−IC(139)より評価値を受
け取る。また、レンズブロック側CPU114との間
で、シリアル通信を通してカメラの諸データ(フォーカ
ス位置,アイリス値等)を受け取りフォーカス指令デー
タを算出し、シリアル通信を通してレンズブロック側C
PU114にフォーカス指令データを送出する。AF用
CPU138の動作ソフトであるAFアルゴリズムに関
しては項目「3.AFソフト」で説明する。
The AF CPU 138 includes an AF-IC (13
For 9), data such as a fast-distance area size (evaluation frame size) and an image type (NTSC / PAL, pixel clock, etc.) are set, and an evaluation value is received from the AF-IC (139). Also, various kinds of data (focus position, iris value, etc.) of the camera are received through serial communication with the CPU 114 on the lens block side, focus command data is calculated, and the lens block side C through serial communication.
The focus instruction data is sent to the PU 114. The AF algorithm that is the operation software of the AF CPU 138 will be described in the item “3. AF software”.

【0044】アイリス制御回路135は、図に示してな
いが、供給されたビデオ信号RGBの信号の中で信号レ
ベルが最大である信号を選択するNAM回路と、選択さ
れた信号の画面におけるエリアを分割して、各エリア毎
にビデオ信号を全積分する全積分回路を持っている。ア
イリス制御回路135は、この各エリア毎の積分データ
に基づいて、被写体の逆光証明,順光証明,フラット照
明,スポット照明等のあらゆる照明状況を判断して、ア
イリスを制御するためのアイリス制御信号を生成し、こ
のアイリス制御信号をメインCPU141に送出する。
メインCPU141は、このアイリス制御信号に基づい
て、レンズブロック側CPU112を介してアイリス駆
動回路113Cに対して制御信号を送出する。
Although not shown in the figure, the iris control circuit 135 selects a NAM circuit for selecting a signal having the highest signal level among the supplied video signals RGB and an area on the screen of the selected signal. It has a total integration circuit that divides and integrates the video signal for each area. The iris control circuit 135 determines all lighting conditions, such as back light proof, normal light proof, flat lighting, and spot lighting, of the subject based on the integrated data for each area, and controls an iris control signal for controlling the iris. And sends this iris control signal to the main CPU 141.
The main CPU 141 sends a control signal to the iris drive circuit 113C via the lens block side CPU 112 based on the iris control signal.

【0045】ホワイトバランス制御回路136は、供給
されたビデオ信号R,G,Bから、(R−Y)=0,
(B−Y)=0となるようにホワイトバランス信号を生
成し、このホワイトバランス信号をメインCPU141
に送出する。メインCPU141は、このホワイトバラ
ンス信号に基づいて、ゲイン制御回路132R,132
G,132Bに対して、ゲイン制御信号を供給する。
From the supplied video signals R, G and B, the white balance control circuit 136 calculates (RY) = 0,
A white balance signal is generated so that (BY) = 0, and this white balance signal is generated by the main CPU 141.
To send to. The main CPU 141 controls the gain control circuits 132R, 132R based on the white balance signal.
G and 132B are supplied with a gain control signal.

【0046】一般に、ビデオカメラの内、レンズブロッ
クは光学機器メーカで製造され、他の撮像ブロック及び
信号処理ブロックからなるビデオカメラ本体は本出願人
のような電子機器メーカで製造される。レンズブロック
とビデオカメラ本体は、予め定めたフォーマット,プロ
トコル,コマンドデータ内容に対応していれば、どのメ
ーカのレンズでもカメラ本体に取付けられる交換レンズ
式となっている。即ち、レンズブロック側CPU114
は、ビデオカメラ本体側から送られる各種情報要求(フ
ォーカス位置、アイリス値等)に応じた情報をシリアル
通信を通してカメラ本体のメインCPU141及びAF
用CPU138に対して返却する。逆に、レンズブロッ
ク用CPU114は、シリアル通信ラインを通してカメ
ラ本体側のメインCPU141及びAF用CPU137
から送られるフォーカス制御指令及びウォブリング制御
指令を受けて、フォーカスレンズ駆動回路111c,ウ
ォブリングレンズ駆動回路1122c及びアイリス駆動
回路113cを夫々制御する。
Generally, among video cameras, a lens block is manufactured by an optical device manufacturer, and a video camera body including other imaging blocks and signal processing blocks is manufactured by an electronic device manufacturer such as the present applicant. The lens block and the video camera body are interchangeable lens types that can be attached to the camera body with lenses from any manufacturer as long as they correspond to a predetermined format, protocol, and command data content. That is, the lens block side CPU 114
Transmits information corresponding to various information requests (focus position, iris value, etc.) sent from the video camera main body through serial communication to the main CPU 141 and the AF of the camera main body.
To the CPU 138 for use. Conversely, the lens block CPU 114 communicates with the main CPU 141 and the AF CPU 137 of the camera body through a serial communication line.
In response to the focus control command and the wobbling control command sent from the controller, the focus lens driving circuit 111c, the wobbling lens driving circuit 1122c, and the iris driving circuit 113c are respectively controlled.

【0047】次に、図2を参照しながら、AFブロック
137に関して詳しく説明する。AF−IC(139)
は、14種類の評価値(後で説明するように、ID0〜
ID13で特定される。)を生成するため、輝度信号生
成回路201と、各評価値に対して評価値生成回路20
2とをもっている。輝度信号生成回路201は、供給さ
れたビデオ信号R,G,Bから輝度信号Yを生成する回
路である。フォーカスが合っているかずれているかを判
断するためには、コントラストが高いか低いかを判断す
ればよい。コントラストの変化は色信号のレベルの変化
とは無関係であるので、輝度信号Yのレベルのみの変化
を検出することによって、コントラストが高いか低いか
を判断することが出来る。輝度信号生成回路201は、
供給されたビデオ信号R,G,Bに対して、公知の演算
(即ち、Y=0.3R+0.59G+0.11B)を行
うことにより、輝度信号Yを生成することが出来る。
Next, the AF block 137 will be described in detail with reference to FIG. AF-IC (139)
Are 14 evaluation values (ID0 to ID0, as described later).
It is specified by ID13. ), A luminance signal generation circuit 201 and an evaluation value generation circuit 20 for each evaluation value.
Has two. The luminance signal generation circuit 201 is a circuit that generates a luminance signal Y from the supplied video signals R, G, and B. In order to determine whether the image is in focus or out of focus, it is sufficient to determine whether the contrast is high or low. Since the change in the contrast is not related to the change in the level of the color signal, it is possible to determine whether the contrast is high or low by detecting only the change in the level of the luminance signal Y. The luminance signal generation circuit 201
A luminance signal Y can be generated by performing a known operation (that is, Y = 0.3R + 0.59G + 0.11B) on the supplied video signals R, G, and B.

【0048】評価値生成回路202には、14種類の評
価値を生成するため、14個の評価値生成回路がある。
評価値生成回路には、水平方向評価値算出フィルタ回
路,全積分方式水平方向評価値算出フィルタ回路及び飽
和輝度数算出フィルタがあり、これらの詳細は「2.2
評価値の種類」に関連して説明する。
The evaluation value generation circuit 202 has 14 evaluation value generation circuits for generating 14 types of evaluation values.
The evaluation value generation circuit includes a horizontal direction evaluation value calculation filter circuit, a total integration type horizontal direction evaluation value calculation filter circuit, and a saturated luminance number calculation filter, and details thereof are described in “2.2.
This will be described in connection with "type of evaluation value".

【0049】2.評価値 本実施例のAFで使用している評価値の性質に関して説
明を行う。評価値とは基本的には画像の測距エリア内の
高周波成分を合計したものであり、概してJPの度合い
に相関を有し、画像のボケの度合い反相関するような量
である。このAFシステムでは、評価値は専用に開発さ
れたAF−IC(オートフォーカス用集積回路)139
により算出される。AFは、フォーカスを動かしそれに
伴う評価値の増減を判断しながらフォーカスをJPに追
い込んで行く動作からなる。
2. Evaluation Value The following describes the nature of the evaluation value used in the AF of the present embodiment. The evaluation value is basically the sum of high-frequency components in the distance measurement area of the image, and is generally an amount that has a correlation with the degree of JP and inversely correlates with the degree of blur of the image. In this AF system, the evaluation value is an AF-IC (autofocus integrated circuit) 139 that has been developed exclusively.
Is calculated by AF includes an operation of moving the focus and driving the focus to JP while judging an increase or decrease of the evaluation value accompanying the focus.

【0050】本AFで使用している評価値は14種類あ
り、ID0〜ID13で特定される。これらの評価値を
一覧にして示す。なお、評価値ID7,ID8,ID1
0及びID11に関しては、画像データの高周波成分と
は関係がないため上述の評価値の定義からは本来の評価
値とはいえないが、評価値の増減を判断しながらフォー
カスをJPに追い込んで行く上で補助的な役割を果たす
ので、本実施例では評価値として取り扱うことにする。
ID#は、プログラム上で付与された評価値の識別記号
であり、本明細書でも評価値を特定する際に使用する。
There are 14 types of evaluation values used in the actual AF, which are specified by ID0 to ID13. These evaluation values are listed. The evaluation values ID7, ID8, ID1
Since 0 and ID11 are not related to the high-frequency components of the image data, they cannot be said to be the original evaluation values from the definition of the evaluation values described above, but the focus is driven into JP while judging whether the evaluation values increase or decrease. Since they play an auxiliary role above, they are handled as evaluation values in this embodiment.
The ID # is an identification symbol of the evaluation value given on the program, and is used in this specification when specifying the evaluation value.

【0051】 ID# 評価値名 備考 0 : IIR1―W1―HPeak 基本評価値 1 : IIR1―W2―HPeak 2 : IIR4―W1―HPeak 3 : IIR4―W3―HPeak 4 : IIR0―W1―VIntg 5 : IIR3―W1―VIntg 6 : IIR1―W1―HIntg 7 : Y―W1―HIntg 輝度加算値 8 : Y―W1―Satul 飽和輝度数 9 : IIR1―W3―HPeak 10 : IIR1―W4―HPeak 11 : IIR1―W5―HPeak 12 : Y―W3―HIntg 輝度加算値 13 : Y―W5―HIntg 輝度加算値 ID # evaluation value name Remarks 0: IIR1-W1-HPeak Basic evaluation value 1: IIR1-W2-HPeak 2: IIR4-W1-HPeak 3: IIR4-W3-HPeak 4: IIR0-W1-Vintg5: IIR5 -W1-VIntg 6: IIR1-W1-HIntg 7: Y-W1-HIntg Brightness addition value 8: Y-W1-Satul Saturation brightness number 9: IIR1-W3-HPeak 10: IIR1-W4-HPeak 11W: IIR -HPeak 12: Y-W3-HIntg luminance addition value 13: Y-W5-HIntg luminance addition value

【0052】1D0〜ID13の各評価値に付与された
評価値名は、その由来が分かるように、「使用データ−
枠サイズ−評価値算出法」により命名されている。例え
ば、評価値ID0は、「IIR1」で特定されるデータ
を使用し、「W1」の評価枠サイズを使用し、「HPea
k」の評価値算出法を使用して、求めた評価値である。
このように、評価値名がそのままその評価値の属性を示
している。
The name of the evaluation value assigned to each evaluation value of 1D0 to ID13 is "use data-
Frame Size—Evaluation Value Calculation Method ”. For example, as the evaluation value ID0, the data specified by “IIR1” is used, the evaluation frame size of “W1” is used, and “HPea” is used.
The evaluation value obtained by using the evaluation value calculation method of “k”.
As described above, the evaluation value name directly indicates the attribute of the evaluation value.

【0053】評価値名の使用データには大別して「II
R」及び「Y」がある。輝度信号からHPF(ハイパス
フィルタ)を使用して取り出した高周波成分のデータを
使用するIIR4と、HPFを使用しないで撮像信号の
輝度データをそのまま使用するYとがある。
The usage data of the evaluation value name is roughly classified into "II
R "and" Y ". There is an IIR4 that uses high-frequency component data extracted from a luminance signal using an HPF (high-pass filter), and a Y that uses the luminance data of an imaging signal without using an HPF.

【0054】HPFを使用する場合は、HPFとしては
図3に示すように、IIR型(無限長インパルス応答
型)のHPFを使用している。HPFの種類によって、
評価値IIR0,IIR1,IIR3及びIIR4に分
けられ、これらは夫々異なったカットオフ周波数を持つ
HPFを表している。
When an HPF is used, as shown in FIG. 3, an IIR type (infinite length impulse response type) HPF is used. Depending on the type of HPF,
The evaluation values IIR0, IIR1, IIR3, and IIR4 represent HPFs having different cutoff frequencies.

【0055】異なるカットオフ周波数をもつHPFを設
定する理由は、次の通りである。例えば、カットオフ周
波数の高いHPFは、JPの近傍において非常に適して
いる。JP近傍におけるレンズの動きに対して、評価値
の変化の割合が比較的大きいからである。反対に、フォ
ーカスが大きくずれているところでは、レンズを移動さ
せたとしても、評価値の変化の割合が小さいので、カッ
トオフ周波数の高いHPFはフォーカスが大きくずれて
いるところでは適していない。
The reasons for setting HPFs having different cutoff frequencies are as follows. For example, an HPF with a high cutoff frequency is very suitable near JP. This is because the rate of change of the evaluation value is relatively large with respect to the movement of the lens near JP. Conversely, even if the lens is moved where the focus is largely shifted, the rate of change of the evaluation value is small, so that an HPF with a high cutoff frequency is not suitable where the focus is greatly shifted.

【0056】一方、カットオフ周波数の低いHPFは、
フォーカスが大きくずれているところにおいて適してい
る。なぜなら、フォーカスが大きくずれているところで
もレンズを移動させると、評価値の変化の割合が比較的
大きいからである。反対に、JPの近傍においてレンズ
を移動させたとしても、評価値の変化の割合が小さいの
で、適しているとは言えない。JP近傍におけるレンズ
の動きに対して、評価値の変化の割合が比較的小さいの
で、カットオフ周波数の低いHPFはJP近傍において
は適しているとは言えない。
On the other hand, the HPF having a low cutoff frequency is
It is suitable for places where the focus is greatly shifted. This is because if the lens is moved even when the focus is largely shifted, the rate of change in the evaluation value is relatively large. Conversely, even if the lens is moved in the vicinity of JP, it is not suitable because the rate of change of the evaluation value is small. Since the rate of change in the evaluation value is relatively small with respect to the movement of the lens near JP, an HPF with a low cutoff frequency is not suitable near JP.

【0057】このように相反する性質を有する複数のフ
ィルタを使用して性質の異なる評価値を生成し、AFの
過程でその段階で最適な評価値を選択できるようにする
ため、異なるカットオフ周波数をもつHPFを設定して
いる。
In order to generate evaluation values having different properties by using a plurality of filters having the opposite properties and to select an optimum evaluation value at that stage in the AF process, different cutoff frequencies are used. Is set.

【0058】HPFをしない場合には、Yは、撮像信号
のフィルタ無しの輝度信号Yを使用する。
When the HPF is not performed, the Y signal is a luminance signal Y without a filter of the image pickup signal.

【0059】次に、枠サイズ、即ち評価枠のサイズは、
評価値生成に用いる画像領域の大きさであり、AF枠,
評価枠,測距枠,特定領域とも称される。図7に示すよ
うに、本実施例で使用される枠サイズには、W1(評価
枠1)〜W5(評価枠5)の5種類の枠サイズがあり、
各々異なったサイズを有する。評価枠W1〜評価枠W5
の各中心は、画面中心に一致する。
Next, the frame size, that is, the size of the evaluation frame is
This is the size of the image area used for generating the evaluation value.
Also called an evaluation frame, a distance measurement frame, or a specific area. As shown in FIG. 7, the frame sizes used in this embodiment include five types of frame sizes W1 (evaluation frame 1) to W5 (evaluation frame 5).
Each has a different size. Evaluation frame W1 to evaluation frame W5
Center corresponds to the center of the screen.

【0060】 評価枠 枠サイズ(横×縦 単位:画素) 備考 W1 116× 60 基本枠サイズ W2 96× 60 W3 232×120 W4 192×120 W5 576×180 但し、1フィールドの画面サイズは、768画素×24
0画素である。
Evaluation frame size (horizontal × vertical unit: pixels) Remarks W1 116 × 60 Basic frame size W2 96 × 60 W3 232 × 120 W4 192 × 120 W5 576 × 180 However, the screen size of one field is 768 pixels × 24
0 pixels.

【0061】これらの枠サイズの内、今回開発したAF
ソフトでは、狙った目標被写体に忠実にフォーカスさせ
るために、可能なかぎり最小サイズであるW1を用いて
AF処理を行なっている。W1は、画面サイズの約1/
6.6程度であり、この枠サイズW1を基本枠サイズと
称する。
Of these frame sizes, the AF developed this time
In software, AF processing is performed using W1, which is the smallest possible size, in order to faithfully focus on a target object. W1 is about 1 / screen size
It is about 6.6, and this frame size W1 is referred to as a basic frame size.

【0062】なお、後述するように、W1又はW2を使
用する特定の評価値において、基本的にはW1又はW2
の設定を行なうが、一定の条件下において、枠サイズW
1,W2を枠サイズW3,W4又は枠サイズW5の大き
さに拡大変更して用いる場合がある。即ち、「偽山」
(ぼける方向にフォーカスがすすむと評価値が上昇する
現象。)が発生すると最小枠W1又はW2のままではJ
Pに追い込めない場合があり、このような場合には、そ
の評価値が本来使用している枠サイズを拡大変更して、
再度AF処理を行なっている。詳細に関しては後で説明
する。
As described later, in a specific evaluation value using W1 or W2, basically, W1 or W2
Is set, but under certain conditions, the frame size W
1, W2 may be enlarged and changed to the size of the frame size W3, W4 or the frame size W5 in some cases. That is, "false mountain"
(A phenomenon in which the evaluation value increases when the focus advances in the blurring direction.) Occurs, and J remains in the minimum frame W1 or W2.
In some cases, it is not possible to keep up with P. In such a case, the evaluation value is used to enlarge and change the frame size originally used.
The AF process is performed again. Details will be described later.

【0063】このように、複数種の枠サイズを設定する
ことにより、各枠サイズに対応した夫々異なる評価値を
生成することが出来る。従って、目標被写体がどのよう
な大きさであろうとも、評価値ID0〜ID13の内の
いずれかにより、適切な評価値を得ることが出来る。
As described above, by setting a plurality of types of frame sizes, different evaluation values corresponding to each frame size can be generated. Therefore, an appropriate evaluation value can be obtained from any one of the evaluation values ID0 to ID13 regardless of the size of the target subject.

【0064】評価値算出法には、HPeak,HIntg,VIn
tg及びSatulの各方式がある。HPeak方式はピーク方式
の水平評価値算出法、HIntg方式は全積分方式の水平評
価値算出法、VIntg方式は積分方式の垂直方向評価値算
出法、そして、Satul方式は飽和輝度の個数を夫々示
す。各々について説明する。
The evaluation value calculation method includes HPeak, HIntg, VIn
There are tg and Satul systems. The HPeak method indicates the horizontal evaluation value calculation method of the peak method, the HIntg method indicates the horizontal evaluation value calculation method of the total integration method, the VIntg method indicates the vertical evaluation value calculation method of the integration method, and the Satul method indicates the number of saturation luminance. . Each will be described.

【0065】HPeak方式は、水平方向の画像信号からH
PFを用いて高周波成分を求める評価値算出法である。
評価値ID0,ID1,ID2,ID3,ID9,ID
10及びID11に使用されている。従って、図2のこ
れらの評価値生成回路には、次に説明する水平方向評価
値算出フィルタを有している。これらの評価値は、夫々
評価値生成に用いるHPFのカットオフ周波数、枠サイ
ズが異なっている。
In the HPeak method, a horizontal image signal is converted to an H signal.
This is an evaluation value calculation method for obtaining a high frequency component using a PF.
Evaluation values ID0, ID1, ID2, ID3, ID9, ID
10 and ID11. Therefore, these evaluation value generation circuits in FIG. 2 have a horizontal direction evaluation value calculation filter described below. These evaluation values differ in the cutoff frequency and frame size of the HPF used for generating the evaluation value.

【0066】図3Aは、HPeak方式に使用される水平方
向評価値算出フィルタの回路構成を示したものである。
水平方向評価値算出フィルタは、輝度信号生成回路(図
2の符号201)の輝度データYから高周波成分だけを
抜き出すHPF202と、この高周波成分の絶対値をと
る絶対値処理回路203と、絶対値化高周波成分に水平
方向の枠制御信号を乗算する乗算回路204と、1ライ
ン当たり1つのピーク値を保持するラインピークホール
ド回路205と、評価枠内の全てのラインについて各ピ
ーク値を垂直方向に積分する垂直方向積分回路206と
を有する。
FIG. 3A shows a circuit configuration of a horizontal direction evaluation value calculation filter used in the HPeak system.
The horizontal direction evaluation value calculation filter includes an HPF 202 that extracts only a high frequency component from the luminance data Y of the luminance signal generation circuit (reference numeral 201 in FIG. 2), an absolute value processing circuit 203 that obtains an absolute value of the high frequency component, and an absolute value conversion circuit. A multiplication circuit 204 for multiplying the high frequency component by a horizontal frame control signal; a line peak hold circuit 205 for holding one peak value per line; and a vertical integration of each peak value for all lines in the evaluation frame. And a vertical direction integration circuit 206.

【0067】輝度データYはHPF202により高周波
成分が抜き出され、絶対値処理回路203で絶対値化さ
れ全て正のデータとされる。次に、水平方向の枠制御信
号が乗算回路204で乗算され、評価枠内の絶対値化高
周波成分にされる。枠制御信号の乗算は、画面上でAF
動作に関し目標被写体に関連して評価の対象となる範囲
を評価枠として特定して、枠内の高周波成分のみを使用
することにより、枠の外又は枠周辺部で出入りする映像
情報による評価値のノイズ,急激な変化等を排除するた
めである。ラインピークホールド回路205で枠内の1
〜Nの各ライン毎に1つのピーク値hp1,hp2,…,h
pnが夫々ホールドされる。
High-frequency components are extracted from the luminance data Y by the HPF 202, converted into absolute values by the absolute value processing circuit 203, and are all positive data. Next, the frame control signal in the horizontal direction is multiplied by the multiplying circuit 204 to obtain an absolute value high-frequency component in the evaluation frame. The multiplication of the frame control signal
By specifying the range to be evaluated in relation to the target subject with respect to the operation as an evaluation frame, and using only the high-frequency components in the frame, the evaluation value based on the video information that enters and exits outside or around the frame is obtained. This is to eliminate noise, sudden changes, and the like. 1 in the frame by the line peak hold circuit 205
.., H, one peak value hp1, hp2,.
pn is held respectively.

【0068】各ライン当たり1つのピーク値がホールド
され、これを垂直方法積分回路206で垂直方向の枠制
御信号に基づき評価枠内のラインに関して垂直方向にh
p1〜hpnまで加算する。1つの画面の特定の評価枠に対
して、各ピーク値をライン分合計した値Σ(hp1+…+
hpn)を得る。この方式は、水平方向(H)のピークが
一旦ホールドされるのでHPeak方式と称する。
One peak value is held for each line, and this value is held in the vertical direction integration circuit 206 in the vertical direction with respect to the line in the evaluation frame based on the vertical frame control signal.
Add from p1 to hpn. A value obtained by summing each peak value for a specific evaluation frame of one screen for a line Σ (hp1 + ... +
hpn). This method is referred to as an HPeak method because the peak in the horizontal direction (H) is temporarily held.

【0069】また、枠制御信号に関しては、次のような
工夫がされている。図3に、評価枠303に対応した水
平方向の枠制御信号301と垂直方向の枠制御信号30
2を示す。ここで、垂直方向の枠制御信号302は方形
波であるが、水平方向の枠制御信号301は単なる方形
でなく家の屋根のような特性を与えて、両端部30画素
の寄与率を徐々に減衰している。この理由は、フォーカ
スが進むにつれて枠周辺部に位置する枠外エッジ(評価
枠周囲にある高輝度なエッジ)の枠内への侵入の影響及
び被写体の揺れに伴う評価値の変動を軽減するためであ
る。このような枠サイズの設定及び枠信号特性の生成
は、今回開発したAF−ICにより、CPUから自由に
行えるように構成されている。
The following contrivance has been made for the frame control signal. FIG. 3 shows a horizontal frame control signal 301 and a vertical frame control signal 30 corresponding to the evaluation frame 303.
2 is shown. Here, the vertical frame control signal 302 is a square wave, but the horizontal frame control signal 301 is not merely a square but gives a characteristic like a roof of a house, and the contribution rate of the 30 pixels at both ends is gradually increased. It is declining. The reason for this is to reduce the influence of the intrusion of the edge outside the frame (high-luminance edge around the evaluation frame) located around the frame as the focus advances and the fluctuation of the evaluation value due to the shaking of the subject. is there. The setting of the frame size and the generation of the frame signal characteristics are configured to be freely performed by the CPU using the AF-IC developed this time.

【0070】ここで、HPF202のカットオフ周波数
の相違は、図3Bに示すようにHPFのz変換式X
(z)=(1−z-1)/(1−αz-1)における係数α
の値で決定される。各評価値のカットオフ周波数の係数
αの相違は次の通りである。
Here, the difference in the cutoff frequency of the HPF 202 is as shown in FIG.
(Z) = coefficient α in (1−z −1 ) / (1−αz −1 )
Is determined by the value of The difference of the coefficient α of the cutoff frequency of each evaluation value is as follows.

【0071】 HPF αの値 備考 IIR0 1/2 V方向に使用 IIR1 1/2 H方向に使用 IIR3 7/8(=1−1/8) V方向に使用 IIR4 7/8(=1−1/8) H方向に使用[0071] HPF alpha value Remarks IIR0 1/2 V direction using IIR1 1/2 H direction using IIR3 7/8 (= 1-1 / 8) used in the V direction IIR4 7/8 (= 1-1 / 8) Used in H direction

【0072】係数α=1/2で特定されるHPFのカッ
トオフ周波数は、fsc(サブキャリアの周波数であっ
て、サンプリング周波数の1/4。)近辺と比較的高
く、感度は相対的に低いためノイズをあまり拾わない。
一方、係数α=7/8で特定されるHPFのカットオフ
周波数は、比較的低いため感度は相対的に高いが、反面
ノイズを拾い易い。また、位相遅れが係数α=1/2の
場合に比較して格段に大きいので枠外の影響を受け易
い。
The cutoff frequency of the HPF specified by the coefficient α = 1/2 is relatively high near fsc (subcarrier frequency, which is 1 / of the sampling frequency), and the sensitivity is relatively low. So it doesn't pick up much noise.
On the other hand, the cutoff frequency of the HPF specified by the coefficient α = 7/8 is relatively low, so that the sensitivity is relatively high, but noise is easily picked up. Further, since the phase delay is much larger than the case where the coefficient α = 1 /, it is easy to be affected outside the frame.

【0073】なお、α=1/2のIIR0とIIR1、
またα=7/8のIIR3とIIR4を夫々分けた理由
は、後で説明する評価値算出法におけるV方向(垂直方
向)とH方向(水平方向)の相違によるものである。そ
の理由は、H方向は撮像信号のラインに関して連続的で
あるのに対して、V方向はフィールド単位の飛び越しラ
インなので離散的であるために空間周波数が比較的低く
なってしまうことにある。従って、同じαを使用してい
ても識別可能なように、使用データ名を別なものにして
いる。
Note that IIR0 and IIR1 with α = 1/2,
Further, the reason why IIR3 and IIR4 of α = 7/8 are separated is due to the difference between the V direction (vertical direction) and the H direction (horizontal direction) in the evaluation value calculation method described later. The reason is that the spatial frequency is relatively low because the H direction is continuous with respect to the line of the image pickup signal, while the V direction is discrete because it is a jump line in field units. Therefore, the used data names are different so that they can be identified even if the same α is used.

【0074】HIntg方式は、全積分方式で求める水平方
向の評価値算出法である。HIntg方式は、評価値ID
6,ID7,ID12及びID13に使用されている。
HPeak方式と比較すると、HPeak方式が1ライン当たり
1つのピーク値hp1 〜hpnを求めて、それらを垂直
方向に加算Σ(hp1+…+hpn)をしているのに対し
て、HIntg方式では各ラインの全ての輝度信号y1 〜y
n 又はその高周波成分h1〜hn を用いて、それらを垂
直方向に加算Σ(y1 +…+yn ),Σ(h1 +…+h
n )している点で相違する。HIntg方式には、使用デー
タが高周波成分を使用するIIR1と、輝度信号Y自体
をそのまま使用するYとに分類される。
The HIntg method is a method for calculating an evaluation value in the horizontal direction obtained by the total integration method. For the HIntg method, the evaluation value ID
6, ID7, ID12 and ID13.
Compared to the HPeak method, the HPeak method obtains one peak value hp1 to hpn per line and adds them in the vertical direction Σ (hp1 +... + Hpn), whereas the HIntg method uses each peak value. All luminance signals y1 to y
n or their high-frequency components h1 to hn and add them vertically (垂直 (y1 +... + yn), Σ (h1 +.
n) is different. The HIntg method is classified into IIR1 in which use data uses a high-frequency component and Y in which the luminance signal Y itself is used as it is.

【0075】HIntg方式において使用データとしてII
R1を使用する場合は、輝度信号からIIR1で特定さ
れるHPFによって抜き出された高周波成分を全積分し
ている。評価値ID6に使用される。従って、図2の評
価値ID6生成回路は、次の全積分方式水平方向評価値
算出フィルタを有している。図5は、この全積分方式水
平方向評価値算出フィルタの回路構成を示す。このフィ
ルタは、輝度信号生成回路(図2の符号201)からの
輝度データYを出力する加算回路501と、輝度データ
Yから高周波成分だけ抜き出すHPF502と、絶対値
処理回路503と、絶対値化高周波成分に水平方向枠制
御信号を乗算する乗算回路504と、絶対値化高周波成
分を枠内の全てのラインについて加算する水平方向加算
回路505と、垂直方向の枠制御信号に基づき枠内の全
てのラインの絶対値化高周波成分加算値を垂直方向に積
分する垂直方向積分回路506とを有する。
In the HIntg method, II is used as data to be used.
When R1 is used, the high-frequency components extracted from the luminance signal by the HPF specified by IIR1 are totally integrated. Used for evaluation value ID6. Therefore, the evaluation value ID6 generation circuit in FIG. 2 has the following total integration type horizontal evaluation value calculation filter. FIG. 5 shows a circuit configuration of this total integration type horizontal evaluation value calculation filter. This filter includes an addition circuit 501 that outputs luminance data Y from a luminance signal generation circuit (reference numeral 201 in FIG. 2), an HPF 502 that extracts only high-frequency components from the luminance data Y, an absolute value processing circuit 503, A multiplication circuit 504 for multiplying the component by the horizontal frame control signal; a horizontal addition circuit 505 for adding the absolute value high-frequency component to all the lines in the frame; and all the components in the frame based on the vertical frame control signal. A vertical integration circuit 506 that integrates the absolute value of the absolute value high frequency component of the line in the vertical direction.

【0076】図2のHPeak方式の水平方向評価値算出フ
ィルタと比較すると、全積分方式水平方向評価値算出フ
ィルタは、水平方向枠信号乗算回路504までは同じで
あるが、水平方向加算回路505で乗算後の水平方向デ
ータを全て加算し、その後、垂直方向積分回路506で
枠内の全てのラインを垂直方向に積分する点で異なって
いる。従って、HIntg方式は、HPeak方式よりも評価値
の値は相対的に高く、低コントラスト被写体に対しては
有効であるが、反面、偽山も発生しやすい欠点も有す
る。そこで、本実施例のAFでは、HPeak方式とHIntg
方式を適時の使い分けるのであるが、HPeak方式とHIn
tg方式の使い分けに関しては、後で説明する。
Compared with the HPeak horizontal evaluation value calculation filter of FIG. 2, the total integration horizontal evaluation value calculation filter is the same up to the horizontal frame signal multiplication circuit 504, but the horizontal addition circuit 505 The difference is that all the horizontal data after the multiplication are added, and then the vertical integration circuit 506 integrates all the lines in the frame in the vertical direction. Therefore, the HIntg method has a relatively higher evaluation value than the HPeak method and is effective for a low-contrast subject, but has a disadvantage that a false mountain easily occurs. Therefore, in the AF of the present embodiment, the HP Peak method and the HIntg
The system can be used in a timely manner.
The use of the tg method will be described later.

【0077】HIntg方式において使用データとして輝度
データYを使用する場合は、輝度データYを水平方向に
全て加算し、設定された評価枠内で全積分している。こ
の場合の評価値は輝度加算値とも称される。評価値ID
7,ID12及びID13に使用される。輝度加算値
は、図5の全積分方式水平方向評価値算出フィルタから
HPF502を取り外した輝度加算値算出フィルタ回路
で得られる。
When the luminance data Y is used as the use data in the HIntg method, all the luminance data Y are added in the horizontal direction, and the total is integrated within a set evaluation frame. The evaluation value in this case is also called a luminance addition value. Evaluation value ID
7, used for ID12 and ID13. The luminance addition value is obtained by a luminance addition value calculation filter circuit in which the HPF 502 is removed from the total integration method horizontal direction evaluation value calculation filter in FIG.

【0078】輝度加算値は、高周波成分を抜き出してい
ないので、ボケ現象と直接的に関係する高周波成分を利
用する本来の評価値、即ちHPeak方式,IIRを使用す
るHIntg方式及び次に説明するVIntg方式の評価値とは
異なっている。実際、被写体に揺れ,外乱(ノイズ)等
がなく被写体が評価枠内に出たり入ったりしない場合
は、輝度加算値は、映像がJP状態の時でもボケ状態の
時でも、ほとんど同じ値となる。しかし、被写体に揺
れ,外乱等が生じて枠内に乱入すると、輝度加算値は大
きく変化する。そこで、輝度加算値は、このような性質
を利用して、主に外乱,揺れ等の監視に用いる評価値と
して有効である。このように、輝度加算値は、AFでJ
Pを追い込む際に補助的であるが有効な役割を果たすの
で、本実施例では評価値として取り扱っている。
Since the high-frequency component is not extracted from the luminance addition value, the original evaluation value using the high-frequency component directly related to the blur phenomenon, that is, the HPeak method, the HIntg method using the IIR, and the Vintg method described below. It is different from the evaluation value of the method. Actually, when the subject does not move into or out of the evaluation frame without the subject shaking or disturbance (noise), the luminance addition value is almost the same regardless of whether the image is in the JP state or the blurred state. . However, when the subject shakes or disturbs to enter the frame due to disturbance or the like, the luminance addition value greatly changes. Therefore, the luminance addition value is effective as an evaluation value mainly used for monitoring disturbance, shaking, and the like by utilizing such properties. Thus, the luminance addition value is J
Since it plays an auxiliary but effective role in driving P, it is treated as an evaluation value in this embodiment.

【0079】VIntg方式は、全積分方式の垂直方向評価
値算出法である。評価値ID4及びID5に使用され
る。従って、図2のこれらの評価値生成回路は、次に説
明する垂直方向評価値算出フィルタを有している。HPe
ak方式及びHIntg方式はいずれも、水平方向に加算して
評価値を生成しているのに対して、VIntg方式は高周波
成分を垂直方向に加算して生成された評価値である。例
えば画面の上半分が白色で下半分が黒色の映像,水平線
の映像等シーンによっては垂直方向の高周波成分のみ有
り垂直方向の高周波成分が無い場合は、HPeak方式水平
方向評価値は有効に機能しない。そこで、VIntg方式の
評価値は、このようなシーンにもAFが有効に機能する
ように定めている。
The VIntg method is a vertical direction evaluation value calculation method of the total integration method. Used for evaluation values ID4 and ID5. Therefore, these evaluation value generation circuits in FIG. 2 have a vertical evaluation value calculation filter described below. HPe
In both the ak method and the HIntg method, an evaluation value is generated by adding in the horizontal direction, whereas the VIntg method is an evaluation value generated by adding a high-frequency component in the vertical direction. For example, if the upper half of the screen is white and the lower half is black, or the image of a horizontal line is present in some scenes, only the high frequency component in the vertical direction is present and no high frequency component in the vertical direction, the HPeak method horizontal direction evaluation value does not function effectively. . Therefore, the evaluation value of the VIntg method is determined so that AF can function effectively even in such a scene.

【0080】一般に、高周波成分を垂直方向に加算しよ
うとすると、高周波成分のデータを一旦ラインメモリ又
はフレームメモリに記憶して、その読み出し順序を工夫
することが必要であり、その回路構成が大規模且つ複雑
となる。しかし、ここで定義したVIntg方式は、そのよ
うな回路構成を必要としない簡易的なオリジナルな構成
により、垂直方向評価値を得ている。
In general, in order to add high-frequency components in the vertical direction, it is necessary to temporarily store high-frequency component data in a line memory or a frame memory, and to devise the reading order. And it becomes complicated. However, the VIntg method defined here obtains a vertical evaluation value by a simple original configuration that does not require such a circuit configuration.

【0081】図6Aは、垂直方向評価値算出フィルタの
回路構成を示す図である。垂直方向評価値算出フィルタ
は、垂直方向評価値算出フィルタ601と、タイミング
ジェネレータ602と、IIR型HPF603と、絶対
値回路604と、積分回路605とを有する。
FIG. 6A is a diagram showing the circuit configuration of the vertical direction evaluation value calculation filter. The vertical direction evaluation value calculation filter includes a vertical direction evaluation value calculation filter 601, a timing generator 602, an IIR HPF 603, an absolute value circuit 604, and an integration circuit 605.

【0082】垂直方向評価値算出フィルタ601は、輝
度信号生成回路(図2の符号201)からの輝度データ
Yの各ラインの評価枠内中心部にある64画素の平均値
(合計値でも同じ。)を算出し、1Hに1回出力する。
ここで、中心部の64画素としたのは、評価枠周辺部の
ノイズを除去するためである。ここでは、単に64画素
分だけ逐次蓄積して最終的に1つの合計値を出力してい
るため、ラインメモリ又はフレームメモリ等のメモリ装
置を必要としない簡易な構成となっている。次に、これ
を、ライン周波数で同期を取ってHPF603により高
周波成分を抜き出している。この中心部の高周波成分
は、絶対値回路604で絶対値化高周波データとされ、
積分回路605で枠内の全てのラインに関して全積分し
ている。
The vertical direction evaluation value calculation filter 601 averages 64 pixels at the center of the evaluation frame of each line of the luminance data Y from the luminance signal generation circuit (201 in FIG. 2) (the same applies to the total value). ) Is calculated and output once per 1H.
Here, the reason why the number of pixels is 64 at the center is to remove noise around the evaluation frame. Here, since only one pixel is sequentially accumulated and finally one total value is output, a simple configuration that does not require a memory device such as a line memory or a frame memory is provided. Next, high frequency components are extracted by the HPF 603 in synchronization with the line frequency. The high frequency component at the center is converted into absolute value high frequency data by an absolute value circuit 604,
The integration circuit 605 performs total integration for all lines in the frame.

【0083】垂直方向評価値は水平線のシーンのような
水平方向の変化がない映像で特に有効である。反対に、
水平方向の変化がある映像の場合には、これがノイズと
なり評価値の有効性は低下する。
The vertical evaluation value is particularly effective for an image having no horizontal change, such as a horizontal line scene. Conversely,
In the case of an image having a change in the horizontal direction, this becomes noise and the validity of the evaluation value decreases.

【0084】Satul方式は、枠内の飽和した(具体的に
は、輝度レベルが所定量以上の)輝度データYの個数を
求める算出法である。評価値ID8に使用され、評価値
ID8は飽和輝度数とも称する。従って、図2のこれら
のID8評価値生成回路は、次に説明する飽和輝度数算
出回路を有している。飽和輝度数は、飽和輝度数が多い
場合には偽山が発生することが多く、偽山発生に対して
はAFとして特別の処理を必要とするため、高い確率で
偽山が出現する状況を検出するための評価値として定義
している。
The Satul method is a calculation method for calculating the number of saturated luminance data Y in a frame (specifically, the luminance level is equal to or more than a predetermined amount). Used for the evaluation value ID8, the evaluation value ID8 is also referred to as a saturation luminance number. Therefore, these ID8 evaluation value generation circuits in FIG. 2 include a saturation luminance number calculation circuit described below. When the saturation luminance number is large, false mountains often occur, and special processing is required as AF for the occurrence of false mountains. It is defined as an evaluation value for detection.

【0085】図6Bに、飽和輝度数算出回路の一例を示
す。この飽和輝度数算出回路は、輝度データYと閾値α
とを比較して、輝度データYが閾値α以上(飽和輝度)
のとき「1」を出力する比較器606と、この比較器の
出力,水平・垂直枠制御信号及び1画素クロックを表す
クロック信号CLKを入力するAND回路607と、こ
のAND回路の出力をクロック入力端子に入力し、1垂
直期間を表すVD信号をセット端子に入力して、1フィ
ールド分の飽和輝度データの個数を係数するカウンタ6
08とを有している。次に、各評価値について個別的に
説明する。
FIG. 6B shows an example of the saturation luminance number calculation circuit. This saturation luminance number calculation circuit calculates the luminance data Y and the threshold value α.
And the luminance data Y is greater than or equal to the threshold α (saturated luminance)
, A comparator 606 that outputs “1”, an AND circuit 607 that inputs an output of the comparator, a horizontal / vertical frame control signal, and a clock signal CLK representing one pixel clock, and a clock input that outputs the output of the AND circuit. And a VD signal representing one vertical period is input to the set terminal, and the counter 6 counts the number of saturation luminance data for one field.
08. Next, each evaluation value will be described individually.

【0086】次に、個別評価値に関して説明する。 (1) ID0(IIR1―W1―HPeak) 評価値ID0は、本実施例のAFにおいて最も基本とな
る評価値であり、基本評価値とも称する。本実施例のA
Fは、評価値ID0の増減を優先的に判断して、実行し
ている。評価値ID0は、IIR1で特定されるHPF
のカットオフ周波数がfsc(サブキャリアの周波数であ
って、サンプリング周波数の1/4。)近辺と比較的高
く、評価値ピークがJPと一致する確率が高い。
Next, the individual evaluation values will be described. (1) ID0 (IIR1-W1-HPeak) The evaluation value ID0 is the most basic evaluation value in the AF of this embodiment, and is also referred to as a basic evaluation value. A of this embodiment
F executes the process by preferentially judging the increase or decrease of the evaluation value ID0. The evaluation value ID0 is the HPF specified by IIR1.
Is relatively high around fsc (1/4 of the sampling frequency, which is the frequency of the subcarrier), and the probability that the evaluation value peak matches JP is high.

【0087】これに対して、評価値ID3(IIR4―
W1―HPeak)は、IIR4で特定されるのHPFのカ
ットオフ周波数が比較的低いため感度が相対的に高く、
評価枠外の要因等に影響され易く、評価値ピークがJP
と重ならない場合が生じ、その結果、JPの追い込みに
間違いが生じる危険性がある。
On the other hand, the evaluation value ID3 (IIR4-
W1-HPeak) has a relatively high sensitivity because the cutoff frequency of the HPF specified by IIR4 is relatively low,
The evaluation value peak is likely to be affected by factors outside the evaluation frame.
There is a danger that there will be no overlap with this, and as a result, there will be a mistake in running the JP.

【0088】反対に、評価値ID0は、感度が相対的に
低いため他の評価値に比べて偽山が発生することが少な
いが、少しのボケ状態でもノイズレベルに対してJPの
所在が不明となり、有意な値が得られなくなる欠点も有
する。
On the other hand, the evaluation value ID0 has a relatively low sensitivity, so that a false mountain is less likely to occur as compared with other evaluation values. And there is a disadvantage that a significant value cannot be obtained.

【0089】この評価値を生成する回路構成は図3の水
平方向評価値算出フィルタによる。図3Bに示すHPF
の係数αは1/2である。枠の大きさは、基本サイズの
評価枠W1(116×60)で、画面サイズの約1/
6.6となっている。評価枠W1は、民生用ビデオカメ
ラのAFに使用される評価枠に比べて相対的に小さな枠
サイズである。民生用ビデオカメラに比較して小さい枠
サイズを選定したのは、狙った目標被写体にきっちりフ
ォーカスさせるためである。反面、枠サイズを小さくす
ると手ぶれ、被写体の揺れ等により評価値が変動し易く
なり、AFは一層困難になる。このため、評価値ID0
では、評価枠W1を固定的に使用するのではなく、後で
述べる偽山判定,飽和輝度判定における一定の条件下
で、線分比で2倍,3倍に拡大した別の評価枠に拡大変
更して使用できる工夫も凝らしている。詳細については
後述する。
The circuit configuration for generating this evaluation value is based on the horizontal evaluation value calculation filter shown in FIG. HPF shown in FIG. 3B
Is 1/2. The size of the frame is the basic size evaluation frame W1 (116 × 60), which is about 1 /
It is 6.6. The evaluation frame W1 has a frame size relatively smaller than the evaluation frame used for AF of the consumer video camera. The reason why the size of the frame is smaller than that of a consumer video camera is to focus on a target object. On the other hand, when the frame size is reduced, the evaluation value tends to fluctuate due to camera shake, subject shake, and the like, and AF becomes more difficult. Therefore, the evaluation value ID0
In this example, the evaluation frame W1 is not fixedly used, but is expanded to another evaluation frame having a line segment ratio doubled or tripled under certain conditions in false mountain determination and saturation luminance determination described later. We are elaborate to use it after changing it. Details will be described later.

【0090】(2) ID1(IIR1―W2―HPeak) 評価値ID0(IIR1―W1―HPeak)に比較して、
評価値ID1は、水平方向だけが僅かに小さいサイズの
評価枠W2(96×60)で生成されている。ID1
は、ID0に対して枠サイズが若干小さいだけで他の条
件は全て等しいので、評価値曲線の挙動は略同じだが、
IDOとの水平方向枠サイズの差を利用して、後で述べ
る「偽山判定」を行なうために設けている。
(2) ID1 (IIR1-W2-HPeak) Compared with the evaluation value ID0 (IIR1-W1-HPeak),
The evaluation value ID1 is generated in an evaluation frame W2 (96 × 60) having a slightly smaller size only in the horizontal direction. ID1
Is that the behavior of the evaluation value curve is almost the same because the other conditions are all the same except that the frame size is slightly smaller than ID0.
It is provided to perform “false mountain judgment” described later by utilizing the difference in the horizontal frame size from IDO.

【0091】(3) ID2(IIR4―W1―HPeak) ID0(IIR1―W1―HPeak)と比較して、ID2
は、評価値生成におけるHPFのカットオフ周波数が1
/8となっており、低い周波数成分まで評価値生成に寄
与しているので相対的に感度が高い性質を有する。枠サ
イズに関してはID0と同じ基本枠サイズW1であるの
で、ID0に比較してボケ状態でも有意な値をとるが、
HPFの位相遅れがID0に比較して格段に大きいので
枠外の影響を受け易く偽山が発生しやすいという欠点も
ある。
(3) ID2 (IIR4-W1-HPeak) ID2 (IIR1-W1-HPeak)
Means that the cutoff frequency of the HPF in the generation of the evaluation value is 1
/ 8, which contributes to the generation of the evaluation value up to low frequency components, and thus has a relatively high sensitivity property. Since the frame size is the same basic frame size W1 as ID0, it takes a significant value even in the blurred state compared to ID0,
Since the phase delay of the HPF is much larger than that of ID0, there is also a drawback that the phase is easily affected outside the frame and a false mountain easily occurs.

【0092】図2に評価値ID0及び評価値ID2の傾
向を示す。評価値ID0曲線はカットオフ周波数が比較
的高い高周波成分しか寄与しないので、シャープな形状
となっている。
FIG. 2 shows the tendency of the evaluation value ID0 and the evaluation value ID2. The evaluation value ID0 curve has a sharp shape because only the high-frequency component whose cutoff frequency is relatively high contributes.

【0093】(4) ID3(IIR4―W3―HPeak) ID2(IIR4―W1―HPeak)と比較して、評価値
ID3は、枠サイズが異なり縦横共に線分比2倍の評価
枠W3(232×120)を使用しているので、その分
だけライン数が多くなり、評価値は相対的に高くなる。
後で説明する「ウォブリング方向判定」,「逆送判定」
及び「チェックダウン判定」に用いる。
(4) ID3 (IIR4-W3-HPeak) Compared with ID2 (IIR4-W1-HPeak), the evaluation value ID3 has a different frame size and an evaluation frame W3 (232 × 232 × Since 120) is used, the number of lines increases by that amount, and the evaluation value becomes relatively high.
"Wobbling direction determination" and "reverse transmission determination" described later
And "checkdown determination".

【0094】(5) ID4(IIR0―W1―VIntg) 評価値ID4は、垂直方向の高周波成分を求める評価値
である。IIR型HPFのフィードバック係数はIIR
1と同じα=1/2だが、フィールド単位の飛び越しラ
インなので、空間周波数で考えるとIIR1よりも低
い。枠サイズはID0と同じ基本枠サイズW1である。
評価値ID4は、映像に水平方向高周波成分がなく垂直
方向高周波成分がある場合には、被写体のボケ現象と相
関をもつ評価値となるが、反面、水平方向成分が増えて
くると偽山を発生し易くなる性質を有する。
(5) ID4 (IIR0-W1-VINtg) The evaluation value ID4 is an evaluation value for obtaining a high frequency component in the vertical direction. The feedback coefficient of the IIR HPF is IIR
Α = 1 /, which is the same as 1, but since it is a jump line in a field unit, it is lower than IIR1 in terms of spatial frequency. The frame size is the same basic frame size W1 as ID0.
The evaluation value ID4 is an evaluation value having a correlation with the blurring phenomenon of the subject when the video has no high-frequency component in the horizontal direction and has a high-frequency component in the vertical direction. It has the property of easily occurring.

【0095】(6) ID5(IIR3―W3―VIntg) 評価値ID5は、ID4(IIR0―W1―VIntg)と
同様の垂直方向の評価値である。但し、本願出願時点で
はこの評価値は用いていない。使用データIIR3は、
IIR型HPFのフィードバック係数αはIIR4と同
じα=7/8だが、フィールド単位の飛び越しラインな
ので空間周波数で考えるとIIR4よりも低い。枠サイ
ズはID2と同じ評価枠W3である。
(6) ID5 (IIR3-W3-VINtg) Evaluation value ID5 is a vertical evaluation value similar to ID4 (IIR0-W1-VINtg). However, this evaluation value was not used at the time of filing the present application. Usage data IIR3 is:
The feedback coefficient α of the IIR HPF is α = 7/8, which is the same as IIR4, but is lower than IIR4 in terms of spatial frequency because it is a jump line in the field unit. The frame size is the same evaluation frame W3 as ID2.

【0096】(7) ID6(IIR1―W1―HIntg) 評価値ID6は、HPFに関してはID0(IIR1―
W1―HPeak)と同じだが、この評価値は絶対値処理後
の全てのデータをH方向及びV方向共に全積分している
ため、評価値の感度が高い。従って、ID6は、暗いシ
ーンに対して有効である。しかし、評価値の感度が高い
ためノイズを拾いやすく、極端に暗いシーンになると発
生するノイズも全部加算するために偽山が発生しやすい
欠点もある。評価値ID6は、主に低コントラストの被
写体用に用意している。
(7) ID6 (IIR1-W1-HIntg) The evaluation value ID6 is ID0 (IIR1-
W1−HPeak), but the sensitivity of the evaluation value is high because all the data after the absolute value processing are fully integrated in both the H and V directions. Therefore, ID6 is effective for dark scenes. However, there is a disadvantage that noise is easy to be picked up due to the high sensitivity of the evaluation value, and false noise is apt to be generated because all noises generated in an extremely dark scene are added. The evaluation value ID6 is mainly prepared for a low-contrast subject.

【0097】(8) ID7(Y―W1―HIntg) 評価値ID7は、枠内の輝度データYを単純に合計した
値であり、輝度加算値とも呼ぶ。枠サイズは基本枠サイ
ズW1である。被写体が静止していれば、フォーカスが
変化しても輝度加算値はあまり変化しないので、被写体
のボケ状態判断に用いることはない。しかし、輝度加算
値は、被写体の揺れ状態、外乱の枠内への侵入があると
大きく変化する性質を有するので、これらの監視用に用
いる。
(8) ID7 (Y-W1-HIntg) The evaluation value ID7 is a value obtained by simply summing the luminance data Y in the frame, and is also called a luminance addition value. The frame size is the basic frame size W1. If the subject is stationary, the brightness addition value does not change much even if the focus changes, so that it is not used for determining the blur state of the subject. However, the luminance addition value has a property of greatly changing when there is a shaking state of a subject or a disturbance enters a frame, and is used for monitoring these.

【0098】(9) ID8(Y―W1―Satul) 評価値ID8は、CPUが設定する所定の輝度レベルよ
りも大きい輝度をもつ画素の数である。ID8を飽和輝
度数とも呼ぶ。この所定の輝度レベルは、CPUによっ
て設定され、略最大輝度レベルに近い値が設定される。
枠サイズは基本枠サイズW1である。飽和輝度数が大き
い場合には、偽山が発生することが多い。AFソフトで
は、この飽和輝度数ID8を監視し、所定数を越えたら
特別の処理に切り替えてフォーカスをJPに追い込んで
いる。
(9) ID8 (Y-W1-Satul) The evaluation value ID8 is the number of pixels having a luminance higher than a predetermined luminance level set by the CPU. ID8 is also called a saturation luminance number. The predetermined luminance level is set by the CPU, and a value close to a substantially maximum luminance level is set.
The frame size is the basic frame size W1. When the saturation luminance number is large, a false mountain often occurs. In the AF software, the saturation luminance number ID8 is monitored, and when the number exceeds a predetermined number, the process is switched to a special process to shift the focus to JP.

【0099】(10)ID9(IIR1―W3―HPeak) 評価値ID9は、ID0(IIR1―W1―HPeak)と
比較して、枠サイズのみ異なり、線分比2倍に拡大した
ものを使用する。枠サイズは評価枠W3(232×12
0)である。「揺れ判定」,「偽山判定」及び「保険モ
ード」時のピーク判定に用いる。
(10) ID9 (IIR1-W3-HPeak) The evaluation value ID9 is different from ID0 (IIR1-W1-HPeak) only in the frame size, and is used as an enlarged value of twice the line segment ratio. The frame size is the evaluation frame W3 (232 × 12
0). It is used for peak determination in “sway determination”, “false mountain determination”, and “insurance mode”.

【0100】(11)ID10(IIR1―W4―HPeak) 評価値ID10は、ID9(IIR1―W3―HPeak)
に比較して、水平方向が僅かに小さいサイズの評価枠W
4(192×120)で生成されている。枠サイズに関
して、ID10のID9に対する関係は、ID1のID
0に対する関係と同様である。「偽山判定」及び「保険
モード」時のピーク判定に用いる。
(11) ID10 (IIR1-W4-HPeak) The evaluation value ID10 is ID9 (IIR1-W3-HPeak).
The evaluation frame W has a slightly smaller size in the horizontal direction compared to
4 (192 × 120). Regarding the frame size, the relationship between ID10 and ID9 is
This is similar to the relationship for 0. Used for peak determination in “false mountain determination” and “insurance mode”.

【0101】(12)ID11(IIR1―W5―HPeak) 評価値ID11は、ID0(IIR1―W1―HPeak)
に比較して、枠サイズのみを線分比で横ほぼ5倍,縦3
倍に拡大した評価値である。枠サイズは最大の評価枠W
5サイズである。評価値ID10と同様に、「揺れ判
定」,「偽山判定」及び「保険モード」時のピーク判定
に用いる。
(12) ID11 (IIR1-W5-HPeak) The evaluation value ID11 is ID0 (IIR1-W1-HPeak).
Compared with, only the frame size is approximately 5 times the width and 3 heights in line segment ratio.
The evaluation value is doubled. Frame size is the largest evaluation frame W
It is 5 sizes. Like the evaluation value ID10, it is used for the peak determination in the "sway determination", the "false mountain determination", and the "insurance mode".

【0102】(13)ID12(Y―W3―HIntg) 評価値ID12は、ID7(Y―W1―HIntg)に比較
して、枠サイズのみを線分比で横縦共に2倍に拡大した
評価値である。。枠サイズは評価枠W3(232×12
0)である。被写体の揺れ状態及び外乱の枠内への侵入
の判断に用いる。
(13) ID12 (Y-W3-HIntg) Evaluation value ID12 is an evaluation value obtained by enlarging only the frame size by a line segment ratio twice in the horizontal and vertical directions as compared with ID7 (Y-W1-HIntg). It is. . The frame size is the evaluation frame W3 (232 × 12
0). This is used to determine the shaking state of the subject and the intrusion of the disturbance into the frame.

【0103】(14)ID13(Y―W5―HIntg) 評価値ID13は、ID7(Y―W1―HIntg)に比較
して、枠サイズのみを線分比で横ほぼ5倍,縦3倍に拡
大した評価値である。枠サイズは最大の評価枠W5であ
る。評価値ID12と同様に、被写体の揺れ状態、外乱
の枠内への侵入の判断に用いる。
(14) ID13 (Y-W5-HIntg) The evaluation value ID13 is larger than the ID7 (Y-W1-HIntg) by expanding only the frame size by approximately 5 times in the line segment ratio and 3 times in the vertical direction. This is the evaluation value obtained. The frame size is the maximum evaluation frame W5. Like the evaluation value ID12, it is used to determine the shaking state of the subject and the intrusion of the disturbance into the frame.

【0104】(15)各評価値の関係 各評価値は、使用データにより輝度データYから抜き取
った水平方向高周波成分を使用するHPeak(HIntg)
と、輝度データYを全部使用するYと、水平方向データ
の中央部をの高周波成分を全部使用して垂直方向に積分
するVIntgとに大別される。
(15) Relationship between evaluation values HPeak (HIntg) using horizontal high-frequency components extracted from luminance data Y according to use data
And Y, which uses all the luminance data Y, and VIntg, which integrates in the vertical direction using all of the high-frequency components in the center of the horizontal direction data.

【0105】HPeakに関しては、図9Aに示すように、
基本評価値ID0に対して、評価枠を面積比4倍に拡大
したID9と、面積比ほぼ15倍に拡大したID11が
あり、また、IDOに対して水平方向が若干狭いID1
と、ID9に対して水平方向が若干狭いID10とが用
意されている。更に、基本評価値ID0に対してHPF
のカットオフ周波数が低い(感度が高い)ID2と、I
D9に対してHPFのカットオフ周波数が低いID3が
用意されている。更に、特別に、基本評価値ID0と異
なり、全積分HIntgするID6がある。
As for HPeak, as shown in FIG. 9A,
For the basic evaluation value ID0, there are ID9 whose evaluation frame is expanded four times in area ratio and ID11 whose area ratio is expanded almost 15 times, and ID1 whose horizontal direction is slightly narrower than IDO.
And ID10 whose horizontal direction is slightly narrower than ID9. Further, the HPF is used for the basic evaluation value ID0.
ID2 whose cutoff frequency is low (high sensitivity) and I
ID3 having a lower cutoff frequency of the HPF than D9 is prepared. Further, in particular, unlike the basic evaluation value ID0, there is an ID6 for performing the total integration HIntg.

【0106】Yに関しては、図9Bに示すように、輝度
加算値ID7と、評価枠を面積比4倍に拡大したID1
2と、面積比ほぼ15倍に拡大したID13とがある。
VIntgに関しては、図9Cに示すように、ID4と、評
価枠を拡大しカットオフ周波数も低いID5が用意され
ている。その他にID8が有る。
As for Y, as shown in FIG. 9B, the luminance addition value ID7 and ID1 obtained by expanding the evaluation frame to an area ratio of 4 times.
2 and ID13 which has been enlarged approximately 15 times in area ratio.
As for VIntg, as shown in FIG. 9C, ID4 and ID5 having an enlarged evaluation frame and a low cutoff frequency are prepared. In addition, there is ID8.

【0107】次に、ビデオカメラの動作を、図10〜図
38を用いて説明する。 3.AFアルゴリズム 3.1 全体フローチャート 今回開発したAF機構は、ワンショットタイプを採用す
るとの思想で開発されている。AFスイッチ(図1の符
号115)がプッシュされたら起動し(AFスター
ト)、フォーカスをJPに追い込んだら動作を終了する
「ワンショットタイプAF」の仕様となっている。即
ち、一旦AF作動スイッチが押されてフォーカスがJP
状態になったレンズは、次にAF作動スイッチが押され
るまで不動状態となる。これは、放映中にフォーカスが
変動する場合の危険性を回避するためである。
Next, the operation of the video camera will be described with reference to FIGS. 3. AF algorithm 3.1 Overall flowchart The AF mechanism developed this time has been developed based on the concept of adopting a one-shot type. The specification is "one-shot type AF", which is activated when the AF switch (reference numeral 115 in FIG. 1) is pushed (AF start) and ends the operation when the focus is moved to JP. That is, once the AF operation switch is pressed, the focus becomes JP.
The lens in the state becomes immobile until the AF operation switch is pressed next time. This is to avoid the danger when the focus fluctuates during the broadcast.

【0108】実際の放送局スタジオ又は各種イベントに
おける多くの撮影では、複数台のビデオカメラが用意さ
れ、適時切り替えて放映する。従って、特定のカメラと
被写体間の距離はほとんどの場合に一定であり、ワンシ
ョットタイプAFは、このような映像に適したモードで
ある。反面、屋外で遠方からこちらに向かって疾走する
列車を撮影するような連続的にカメラとの距離が変化し
ている被写体の撮影に関しては適していない。
In many shootings in an actual broadcasting station studio or various events, a plurality of video cameras are prepared and switched to be broadcast as appropriate. Therefore, the distance between a specific camera and a subject is almost constant, and the one-shot type AF is a mode suitable for such an image. On the other hand, it is not suitable for photographing a subject whose distance to the camera changes continuously, such as when photographing a train running from here to a distant place outdoors.

【0109】図10に本AFソフトのフローチャートを
示す。本AFソフトは、概して、揺れ判定ステージ、W
OBステージ、山登りステージ、の3ステージから構成
されている。揺れ判定ステージでは、被写体の揺れを判
定し、それに応じたモードの設定を行なう。WOBステ
ージでは、ウォブリングレンズのみ動かしてウォブリン
グ処理を行ない、フォーカスレンズが進むべきの初期方
向を決める。ウォブリング処理終了時点までは、フォー
カスレンズは不動である。山登りステージでは、実際に
フォーカスレンズを移動して、それに伴う評価値の増減
を判断してフォーカスをJPに追い込む処理を行なう。
このAFフローチャートでは、通常、山登りループを1
フィールドで1回の割合で何回か周回しながら評価値ピ
ークを検出し、JPに追い込んでいる。
FIG. 10 is a flowchart of the AF software. This AF software generally consists of a swing determination stage, W
It consists of three stages: an OB stage and a hill climbing stage. In the shake determination stage, the shake of the subject is determined, and a mode is set according to the determination. In the WOB stage, wobbling processing is performed by moving only the wobbling lens, and an initial direction in which the focus lens should advance is determined. The focus lens is not moved until the end of the wobbling process. In the hill-climbing stage, a process of actually moving the focus lens, determining the increase or decrease of the evaluation value accompanying the focus lens, and driving the focus to JP is performed.
In the AF flowchart, normally, the hill-climbing loop is set to one.
The evaluation value peak is detected while making several rounds at one time in the field, and is driven into JP.

【0110】なお、上記AFフローとは別に毎フィール
ドのデータ処理として、次のデータを所定のループバッ
ファメモリ(32フィールド分)へ順次更新して記録し
ている。ループバッファに格納されたデータは、AFソ
フトの各種処理、判定に使用される。 (a) 評価値14種の生データ (b)(a)の各評価値データ各々の3フィールドの移動平均
をとったもの(14種) (c) レンズ位置 (d) アイリス値及びフォーカス値(1フィールドづつ交
互に記憶)
In addition to the AF flow, as the data processing for each field, the next data is sequentially updated and recorded in a predetermined loop buffer memory (for 32 fields). The data stored in the loop buffer is used for various processing and determination of AF software. (a) Raw data of 14 evaluation values (b) Moving average of each of the three fields of each evaluation value data of (a) (14 types) (c) Lens position (d) Iris value and focus value ( (Alternately stores one field at a time.)

【0111】以下、図10のAFフローのステップに順
番に説明する。
Hereinafter, the steps of the AF flow of FIG. 10 will be described in order.

【0112】3.2 揺れ判定(レンズ静止時) レンズに取付けられたスタートスイッチが押されると、
AF機構が動作開始する。ステップS1001で、レン
ズ静止の時の揺れ判定、即ち、揺れの有無を判定する。
「揺れ」とは、カメラと被写体の相対的な動きである。
この揺れ判定には、AFスイッチが押されてから所定期
間経過経過するまでの評価値データは、揺れ判定のため
の計算には寄与させない特徴を有する。
3.2 Judgment of shaking (when the lens is stationary) When the start switch attached to the lens is pressed,
The AF mechanism starts operating. In step S1001, a shake determination when the lens is stationary, that is, whether or not there is a shake is determined.
“Shake” is a relative movement between the camera and the subject.
This swing determination has a feature that the evaluation value data from when the AF switch is pressed until a predetermined period elapses does not contribute to the calculation for the swing determination.

【0113】図11は、カメラをパンさせて停止し、A
FのスイッチをONしたときの評価値の変動を示したも
のである。この揺れ判定では、評価値に対するパン及び
スイッチONによる影響を排除するように揺れ判定期間
を定めている。図11に示すように、パンによる評価値
が変動する期間1105の後、AF機構のスイッチオン
(SW ON)1101してから20フィールド経過後
まで期間を、直後の8フィールドの期間を除き、揺れ判
定期間(9〜20フィールドの12フィールド間)11
03として定め、この期間の評価値データを用いて揺れ
の状態を判定する。
FIG. 11 shows that the camera is stopped by panning and
The change of the evaluation value when the switch of F is turned on is shown. In the swing determination, the swing determination period is set so as to eliminate the influence of the pan and the switch ON on the evaluation value. As shown in FIG. 11, after the period 1105 during which the evaluation value fluctuates due to panning, the period from the time when the AF mechanism is switched on (SW ON) 1101 until the lapse of 20 fields, excluding the period of the immediately following 8 fields, fluctuates. Judgment period (between 12 fields of 9 to 20 fields) 11
03, and the state of shaking is determined using the evaluation value data in this period.

【0114】直後の8フィールド(1104)を除外し
ているのは、スイッチプッシュ時のカメラぶれの影響を
とり除くためである。このように、揺れ判定期間100
3を設定することにより、スイッチONによる影響の無
い評価値が得られる。なお、「パン」(pan,pan
ning)」とは、カメラワークの一種で、カメラを左
右に移動しながら撮影することである。代表的なパンと
して、フォローパンとサーベイングパン等がある。カー
レースでスピードを出している自動車が止まっているよ
うに見えるが、背景が横に流れている映像は、自動車の
スピードに合わせてカメラをフォローパンした結果であ
る。
The eight fields (1104) immediately after are excluded in order to remove the influence of camera shake at the time of switch push. Thus, the swing determination period 100
By setting 3, an evaluation value that is not affected by the switch ON can be obtained. In addition, "pan" (pan, pan
"Ning)" is a type of camera work, which means taking a picture while moving the camera left and right. Typical breads include follow breads and surveying breads. The image of a car speeding in a car race appears to be stationary, but the background flowing horizontally is the result of following the camera in accordance with the speed of the car.

【0115】揺れ判定の結果、揺れが有ればステップS
1002に進み「揺れモード設定」をする。揺れモード
が設定されると、後で説明するようにフォーカスレンズ
の動かす速度及びウォブリングレンズの動作を変えてい
る。この段階までは、ウォブリングレンズ及びフォーカ
スレンズは不動である。
As a result of the swing determination, if there is a swing, step S
Proceed to 1002 to perform “swing mode setting”. When the swing mode is set, the moving speed of the focus lens and the operation of the wobbling lens are changed as described later. Up to this stage, the wobbling lens and the focus lens are not moved.

【0116】ここで、各評価値の値はeで表示し、特に
評価値IDiの値をe[i]と表記する。また、現フィ
ールドの評価値をe0 、jフィールド前の評価値をej
、と表記する。従って、例えば、e2 [0]は評価値
ID0の2フィールド前の値を意味するものとする。ま
た、これから説明するようにAFの各段階で、各評価値
の値e[i]は所定の閾値によって様々に判断される
が、その閾値をthとし、特に評価値IDiの閾値をt
h[i]と表記する。また、閾値が複数個ある場合、第
1の閾値をth1 [i]とし、第2の閾値をth2
[i]とする。
Here, the value of each evaluation value is represented by e, and in particular, the value of the evaluation value IDi is represented by e [i]. The evaluation value of the current field is e0, and the evaluation value of the jth field before is ej.
,. Therefore, for example, e2 [0] means a value two fields before the evaluation value ID0. Further, as described below, at each stage of the AF, the value e [i] of each evaluation value is variously determined by a predetermined threshold. The threshold is set to th, and particularly, the threshold of the evaluation value IDi is set to t.
h [i]. If there are a plurality of thresholds, the first threshold is set to th1 [i], and the second threshold is set to th2
[I].

【0117】なお、本実施例においては、各閾値及びそ
の他の判定基準に関して可能な限り具体的数値を挙げて
説明するが、これらの数値は例示でありこれに限定され
るものではない。発明の本質は、特定の性質を有する評
価値に対して、閾値又はその他の判定基準を設けて各段
階のフォーカス状態又はこれに関連する事象を判断して
いるところにあることを承知されたい。
In the present embodiment, each threshold value and other determination criteria will be described with specific numerical values as much as possible, but these numerical values are illustrative and not restrictive. It should be appreciated that the essence of the invention is that a threshold or other criterion is set for an evaluation value having a specific property to determine the focus state at each stage or an event related thereto.

【0118】揺れの判定は、評価値ID0の正規化差分
値及び評価値ID7(輝度加算値)の正規化差分値を用
いる。評価値ID0の正規化差分値〔%〕は、現在フィ
ールドの値e0 [0]、その2フィールド前の値e2
[0]を用いて、 50×|e0 [0]−e2 [0]|/e0 [0] で定義する。同様に、評価値ID7の正規化差分値
〔%〕は、現在フィールドでの値e0 [7]、その2フ
ィールド前の値e2 [7]を用いて、 50×|e0 [7]−e2 [7]|/e0 [7] で定義する。
The determination of the swing uses the normalized difference value of the evaluation value ID0 and the normalized difference value of the evaluation value ID7 (brightness added value). The normalized difference value [%] of the evaluation value ID0 is the value e0 [0] of the current field and the value e2 two fields before that.
Using [0], it is defined as 50 × | e0 [0] -e2 [0] | / e0 [0]. Similarly, the normalized difference value [%] of the evaluation value ID7 is calculated by using the value e0 [7] in the current field and the value e2 [7] two fields before that, as follows: 50 × | e0 [7] -e2 [ 7] | / e0 [7].

【0119】正規化差分値は1フィールド当たりの評価
値の変化の割合を意味している。ここで、現在フィール
ドの評価値と2フィールド前の評価値とを比較している
のは、oddフィールドとevenフィールドの相違に
よる評価値変動の影響を除去するために、2フィールド
間隔としてodd又はevenフィールドの一方だけを
使用するからである。また、百分率であるに拘わらず、
50倍しているのも同様の理由による。
The normalized difference value means the rate of change of the evaluation value per field. Here, the reason why the evaluation value of the current field is compared with the evaluation value of two fields before is to remove the influence of the evaluation value fluctuation due to the difference between the odd field and the even field, by setting the distance between two fields as odd or even. This is because only one of the fields is used. Also, regardless of percentage,
It is for the same reason that it is multiplied by 50.

【0120】また、実際に試作したAF機構では、更
に、e0 [0],e2 [0],e0 [7],e2 [7]
の各々は、3フィールドの移動平均値を採用している。
これは、室内の蛍光灯が50Hzで点滅し、一方、カメ
ラが60Hzで動作するため、蛍光灯のフリッカが20
Hzとなり、この影響を排除するためである。同様に、
これから説明する各評価値の値eは、特に断らない限
り、いずれも3フィールドの平均値をとっているため、
蛍光灯のフリッカの影響は無いものと承知されたい。
Further, in the AF mechanism actually manufactured as a prototype, e0 [0], e2 [0], e0 [7], e2 [7]
Employs a moving average of three fields.
This is because the fluorescent lamp in the room blinks at 50 Hz, while the camera operates at 60 Hz, so that the flicker of the fluorescent lamp is 20 Hz.
Hz to eliminate this effect. Similarly,
The value e of each evaluation value described below is an average value of three fields unless otherwise specified.
Please be aware that there is no influence of flicker of fluorescent light.

【0121】ループバッファに格納した、揺れ判定期間
の12フィールドにわたる評価値ID0を用いて正規化
差分値を計算し、各正規化差分値の中で最大値を最大正
規化差分値(以下、「ndiff e[0]」とする。)と
し、揺れの判定を実行する。
A normalized difference value is calculated using the evaluation value ID0 stored in the loop buffer over the twelve fields of the swing determination period, and the maximum value among the normalized difference values is determined as the maximum normalized difference value (hereinafter, referred to as “the maximum normalized difference value”). ndiff e [0] ”), and the determination of the swing is executed.

【0122】しかし、評価値ID0の値が低い場合に
は、定常的に存在するノイズ変動により被写体に揺れが
なくとも「ndiff e[0]」が大きな値となり、揺れ判
定の閾値を越えてしまうことがある。
However, when the value of the evaluation value ID0 is low, “ndiff e [0]” becomes a large value even if the subject does not fluctuate due to noise fluctuation that is constantly present, and exceeds the threshold value for the vibration determination. Sometimes.

【0123】そこで、評価値ID0の値が低い場合に
は、代わりに輝度加算値ID7を用いて12フィールド
の各正規化差分値を計算し、それらの最大値から最大正
規化差分値「ndiff e[7]」を作成し、それを用いて
揺れ判定を行なっている。全ての場合に評価値ID0の
最大正規化差分値「ndiff e[0]」を用いないのは、
評価値ID0が或る閾値以下であれば、「ndiff e
[7]」の方が被写体の揺れに対応していると考えるか
らである。揺れ判定の具体的基準を以下に示す。
Therefore, when the value of the evaluation value ID0 is low, each normalized difference value of 12 fields is calculated using the luminance added value ID7 instead, and the maximum normalized difference value “ndiff e” is calculated from the maximum value. [7] ”, and the swing determination is performed using the created [7]. The reason for not using the maximum normalized difference value “ndiff e [0]” of the evaluation value ID0 in all cases is that
If the evaluation value ID0 is equal to or less than a certain threshold value, “ndiff e
This is because [7] is considered to correspond to the shaking of the subject. The specific criteria of the swing determination are shown below.

【0124】評価値ID0の平均値(揺れ判定期間12
フィールドの平均値)が200以上なら、 ndiff e[0]〈 3% → 静止モード ndiff e[0]≧ 3% → 揺れモード1 ndiff e[0]≧30% → 揺れモード2 とする。
The average value of the evaluation value ID0 (the swing determination period 12
If the average value of the field is 200 or more, ndiff e [0] <3% → still mode ndiff e [0] ≧ 3% → swing mode 1 ndiff e [0] ≧ 30% → swing mode 2

【0125】評価値ID0の平均値が200未満なら、 ndiff e[7]〈 7% → 静止モード ndiff e[7]≧ 7% → 揺れモード1 ndiff e[7]≧12.5%→ 揺れモード2 とする。If the average value of the evaluation value ID0 is less than 200, ndiff e [7] <7% → still mode ndiff e [7] ≧ 7% → sway mode 1 ndiff e [7] ≧ 12.5% → sway mode 2 I do.

【0126】揺れ判定の手順及び判定基準値は、多数の
被写体を撮影して決定した。当初、出来れば全て評価値
ID0で揺れ判定を行いたかったが、輝度加算値ID7
をも使用したにのは、輝度が低くてノイズに近いような
シーンの場合(200未満)には、ID7に基づく「nd
iff e[7]」を使用した方が好ましい結果が得られた
からである。ここで、基準値として、評価値ID0の平
均値が200以上又は未満で分けたこと、3%,30
%,7%,12.5%の各閾値を採用したことは、多数
の被写体を撮影して実験的に決定した。
The swing determination procedure and the determination reference value were determined by photographing a large number of subjects. Initially, if possible, we wanted to make a swing determination using the evaluation value ID0,
Is also used, in the case of a scene with low luminance and close to noise (less than 200), “nd” based on ID7
This is because the use of "iff e [7]" provided a preferable result. Here, as a reference value, the average value of the evaluation values ID0 was divided into 200 or more or less, and 3%, 30
The adoption of the thresholds of%, 7% and 12.5% was determined experimentally by photographing a large number of subjects.

【0127】尚、画面が大ボケ状態の場合には画面は均
一に近くなるので、たとえ被写体が揺れていたとしても
その検出は出来にくくなる。従って、AF動作を大ボケ
状態からスタートすると、この揺れ判定では揺れの有無
に係わらずに「静止モード」と判定してしまう。そこ
で、後で述べるフォーカスレンズが移動する山登りステ
ージにおいても評価値が有意な大きさになったら、揺れ
判定(S1014)を再度行なっている。
When the screen is in a large blur state, the screen becomes nearly uniform, so that it becomes difficult to detect even if the subject is shaken. Therefore, if the AF operation is started from a large blur state, the shake determination will determine the “stationary mode” regardless of the presence or absence of the shake. Therefore, when the evaluation value becomes significant even in the hill-climbing stage in which the focus lens moves, which will be described later, the swing determination (S1014) is performed again.

【0128】次のステップS1003の「ロングフィル
タ判定」及びS1004の「ロングフィルタ処理」に関
しては、説明の都合上最後に説明する。
The “long filter judgment” in step S1003 and the “long filter processing” in S1004 will be described last for the sake of explanation.

【0129】3. 3 ウォブリング ステップS1005でウォブリング(以下、「WOB」
と略す。)が可能か否かを判断し、可能ならばWOB動
作(S1006)に進み、そうでないならば直接山登り
ステージに進む。
3.3 Wobbling Wobbling in step S1005 (hereinafter referred to as "WOB")
Abbreviated. ) Is determined to be possible or not, and if possible, the process proceeds to the WOB operation (S1006); otherwise, the process directly proceeds to the hill climbing stage.

【0130】先ず、WOBの有用性について説明する。
AFが要求されたら、直ちにフォーカスレンズを動かす
方法も考えられる。一般に、WOBレンズは、フォーカ
スレンズと比較して質量が小さいため、比較的短い時間
でフォーカスを焦点深度程度移動することができる。も
ちろんフォーカスレンズでフォーカスを焦点深度相当移
動することもできるが、WOBレンズよりも長い時間を
要する。更に、焦点深度が深いレンズ撮影条件(アイリ
スが閉じ気味、テレ端)では、CCDから相対的に遠い
フォーカスレンズは一層大きく動かす必要がある。
First, the usefulness of WOB will be described.
When AF is requested, a method of immediately moving the focus lens can be considered. In general, a WOB lens has a smaller mass than a focus lens, so that the focus can be moved to a depth of focus in a relatively short time. Of course, the focus can be moved by the focus lens corresponding to the depth of focus, but it requires a longer time than the WOB lens. Further, under lens photographing conditions with a large depth of focus (the iris tends to close, at the telephoto end), the focus lens relatively far from the CCD needs to be moved further.

【0131】ここで「テレ端」とは拡大状態をいい、極
端に狭い範囲でピントが合っている状態をいい、FAR
からNEARまで評価値が極端に変化する。反対に、
「ワイド端」とは、ズームアップ状態をいい、テレ端で
は広範囲でピントが合っている。そのため、Farから
Nearまで評価値が変化しない。テレ端の傾向が高ま
るにつれ、WOBは有効となる。
Here, the "tele end" refers to an enlarged state, a state in which an extremely narrow range is in focus, and FAR
The evaluation value varies extremely from to NEAR. Conversely,
The “wide end” refers to a zoom-up state, and a wide range is in focus at the tele end. Therefore, the evaluation value does not change from Far to Near. WOB becomes effective as the tendency of the tele end increases.

【0132】フォーカスレンズを進むべき方向が分から
ないままに移動させ、それが評価値低下の方向であるこ
とが判明した場合には、フォーカスレンズは移動方向を
反転する応答特性が悪く、集束時間が長くかかってしま
う。このような、ぼける方向に進み、その後反転してJ
P方向に進む動作は、画面の見栄えが良くなく、進むべ
き方向が分からないままに移動させた場合に発生する確
率は厳密には言えないが半分の確率といってよい。ま
た、WOBでは、フォーカスレンズを移動する方法に比
較して、画面の変化がほとんど分からずに行えるので、
フォーカスの状態(ジャストピン,小ボケ又は大ボケ)
及び評価値の変化する方向、即ちフォーカスレンズの進
むべき方向が正確にわかるならば、WOBは有用であ
る。
When the focus lens is moved without knowing the direction in which it should proceed, and if it is determined that the evaluation value is decreasing, the focus lens has poor response characteristics of reversing the moving direction, and the focusing time is short. It will take a long time. Proceed in such a blurring direction and then reverse to J
In the operation of moving in the P direction, the probability that occurs when the screen is not looked good and the user moves without knowing the direction in which to move is not exactly determinable, but may be said to be half the probability. Also, in WOB, compared to the method of moving the focus lens, a change in the screen can be performed with almost no intelligibility.
Focus state (just pin, small blur or large blur)
WOB is useful if the direction in which the evaluation value changes, that is, the direction in which the focus lens should travel, can be accurately known.

【0133】そこで、フォーカスレズが前玉繰り出し方
式のレンズであり、WOBレンズを別個有する場合に
は、WOB可能であるか否かを判断した上で、予めWO
B動作を行いフォーカスレンズの進む方向を探ってから
フォーカスレンズを動かすこととしている。
Therefore, if the focus lens is a front lens feeding type lens and has a separate WOB lens, it is determined in advance whether WOB is possible or not, and then the WOB lens is determined in advance.
The B operation is performed, the direction in which the focus lens advances is searched, and then the focus lens is moved.

【0134】ステップS1005でWOB可能判断の処
理を行う。WOB可能判断の処理では、WOBが有効
(可能)であるか否か、即ちWOBさせるか否かの判定
を行なう。WOBは常に有効であるわけではない。WO
Bが無効な場合とは、評価値ID0が所定閾値(例え
ば、250)以下の場合、揺れモードの場合、又は
飽和輝度数ID8が所定量以上ある場合であり、これら
の場合はWOBを実行しない。
At step S1005, a WOB possibility judgment process is performed. In the WOB availability determination process, it is determined whether the WOB is valid (possible), that is, whether the WOB is to be performed. WOB is not always valid. WO
B is invalid when the evaluation value ID0 is equal to or less than a predetermined threshold value (for example, 250), in a swing mode, or when the saturation luminance number ID8 is equal to or more than a predetermined amount. In these cases, WOB is not executed. .

【0135】評価値ID0が所定の閾値(例えば、2
50)以下の場合 評価値IDOが低い場合、JP又は大ボケ状態ではWO
Bによって評価値の変化が得られないので、フォーカス
レンズの移動方向を決定する方向判定ができない。そこ
で所定の閾値を設けて、それ以下であればWOBを行わ
ない。この閾値の大きさ250は種々の被写体を用いて
実験的に決定した。ここで、例えば、カットオフ周波数
が低く枠サイズの大きいID3等の他の評価値を用いる
ことも検討したが、偽山発生によりフォーカスレンズの
方向判定が誤る場合が多かったので、結局、評価値ID
0のみ使用して基準としている。
When the evaluation value ID0 is a predetermined threshold (for example, 2
50) In the following cases When the evaluation value IDO is low, WO in the JP or large blur state
Since a change in the evaluation value cannot be obtained by B, the direction determination for determining the moving direction of the focus lens cannot be performed. Therefore, a predetermined threshold is provided, and if it is less than that, WOB is not performed. The threshold value 250 was experimentally determined using various subjects. Here, for example, the use of other evaluation values such as ID3 having a low cutoff frequency and a large frame size was also considered. However, in many cases, the determination of the direction of the focus lens was erroneous due to the occurrence of a false mountain. ID
Only 0 is used as a reference.

【0136】揺れモードの場合 ステップ901の揺れ判定(レンズ静止時)で揺れモー
ド1又は2と判定された場合には、揺れによる評価値変
動が大きくWOBしても方向判定を誤ることが多くなる
ので、WOBは行なわない。
In the case of the swing mode When the swing mode (when the lens is stationary) in step 901 is determined to be the swing mode 1 or 2, the evaluation value fluctuation due to the swing is large, and the direction determination is often erroneous even in WOB. Therefore, WOB is not performed.

【0137】飽和輝度数ID8が所定量以上ある場合 評価枠内に飽和輝度データが所定量以上ある場合には、
WOBしても評価値が変動しない傾向にある。飽和して
いる場合には多少ぼかしても、エッジのシャープさが変
化しないためである。
When the saturation luminance number ID8 is equal to or more than a predetermined amount When the saturation luminance data is equal to or more than a predetermined amount in the evaluation frame,
Even when WOB is performed, the evaluation value tends to remain unchanged. This is because in the case of saturation, the sharpness of the edge does not change even if it is slightly blurred.

【0138】評価値ID0が所定の閾値以上あり、静止
モードであり、且つ、飽和輝度数ID8が所定量以下の
場合(〜のいずれにも該当しない場合)には、WO
Bを行うためWOB動作(S1006)に進む。〜
のいずれかに該当した場合、WOBは有効でないため、
WOBを行わずに、直接山登りステージに進む。
When the evaluation value ID0 is equal to or more than the predetermined threshold value, the mode is the stationary mode, and the saturation luminance number ID8 is equal to or less than the predetermined amount (when none of the above conditions applies), WO
The process proceeds to the WOB operation (S1006) to perform B. ~
If any of the above apply, WOB is not valid,
Proceed directly to the hill climbing stage without performing WOB.

【0139】ステップS1006でWOB動作を行う。
これは、AFブロック137からレンズブロック側CP
U114に対してWOBレンズ制御指定を与えることに
より行われる(図1参照)。図12は、WOB動作のフ
ローチャートを示したものである.WOBルーチンが起
動されたら、ステップS1201で、14種類の評価値
の値(e0 [i],i=1〜13)を全て記憶する。ス
テップS1202で、WOBレンズを現在位置からNe
ar方向に向け移動して半焦点深度分だけNear方向
に寄った位置にして、評価値が安定した後、ステップS
1203で14種類の評価値(enear[i],i=1〜
13)を記憶する。ステップS1204で、WOBレン
ズをFar方向に向け移動し最初の位置から半焦点深度
分だけFar方向に寄った位置にして、評価値が安定し
た後、ステップS1205で14種類の評価値(efar
[i],i=0〜13)を記憶する。
In step S1006, a WOB operation is performed.
This is because the AF block 137 and the lens block side CP
This is performed by giving a WOB lens control designation to U114 (see FIG. 1). FIG. 12 shows a flowchart of the WOB operation. When the WOB routine is started, in step S1201, all 14 types of evaluation value (e0 [i], i = 1 to 13) are stored. In step S1202, the WOB lens is moved from the current position to Ne.
After moving toward the ar direction and moving to a position closer to the Near direction by a half-depth of focus, the evaluation value is stabilized.
At 1203, 14 kinds of evaluation values (enear [i], i = 1 to 1)
13) is stored. In step S1204, the WOB lens is moved in the Far direction so as to be shifted from the initial position by a half depth of focus in the Far direction, and the evaluation values are stabilized. Then, in step S1205, 14 types of evaluation values (efar) are set.
[I], i = 0 to 13) are stored.

【0140】ステップS1206で、WOBレンズをニ
ュートラル位置(最初の位置)に戻し、評価値が安定し
た後、ステップS1207で14種類の評価値(eneut
ral[i],i=0〜13)を記憶する。なお、再度最
初の位置に戻してニュートラル位置とし、14種類の評
価値をサンプリングしているのは、efar [i]との間
で行う演算精度を上げるためである。従って、ステップ
S1206を外して、ステップS1202のe0 [i]
を変わりに用いてもよい。
At step S1206, the WOB lens is returned to the neutral position (initial position), and after the evaluation values are stabilized, at step S1207, 14 types of evaluation values (enuet) are set.
ral [i], i = 0 to 13) is stored. The reason for returning to the initial position again and setting it as the neutral position and sampling 14 kinds of evaluation values is to increase the calculation accuracy performed with efar [i]. Therefore, step S1206 is omitted, and e0 [i] of step S1202 is removed.
May be used instead.

【0141】ここで、Far方向とNear方向につい
て説明する。レンズをCCDから遠ざける方向(即ち、
被写体に近づける方向。)をNear方向という。換言
すれば、近く(Near)にある被写体に対しJPにな
るように移動する方向をNear方向という。Far方
向は、Near方向の反対方向である。また、Near
端とFar端については、JP可能な最接近距離にある
被写体がJP状態にあるレンズ位置をNear端にある
といい、無限遠にある被写体がJP状態にあるレンズ位
置をFar端にあるという。
Here, the Far direction and the Near direction will be described. The direction in which the lens moves away from the CCD (ie,
The direction to approach the subject. ) Is called the Near direction. In other words, the direction in which a subject located near (near) moves so as to be JP is called a near direction. The Far direction is a direction opposite to the Near direction. Also, Near
Regarding the end and the far end, the lens position where the subject at the closest possible distance in JP is in the JP state is called the Near end, and the lens position where the subject at infinity is in the JP state is called the Far end.

【0142】なお、WOB動作のタイムチャートを図1
3に示す。図13においてwtimeは、WOBレンズの移
動時間と移動平均フィルタの位相遅れ時間(1フィール
ド)を足したものである。 wtimeは、アイリス値Fによって異なった値にしてい
る。WOBレンズを半焦点深度分動かすには、アイリス
が絞られればそれだけ時間がかかるためである。
A time chart of the WOB operation is shown in FIG.
3 is shown. In FIG. 13, wtime is the sum of the moving time of the WOB lens and the phase delay time (one field) of the moving average filter. wtime is different depending on the iris value F. This is because moving the WOB lens by the half depth of focus requires more time as the iris is stopped down.

【0143】なお、ステップS1202のNear側へ
の移動とステップS1204のFar側への移動は、ど
ちらを先に実行してもよい。
Either the movement to the Near side in step S1202 or the movement to the Far side in step S1204 may be performed first.

【0144】このようにして記憶した評価値e0
[i],efar [i],enear[i],eneutral
[i],(i=0〜13)を用いてフォーカスの状態を
判断するステップS1208の方向判定処理に進む。こ
の方向判定処理の詳細なフローを図12Bに示す。
The evaluation value e0 thus stored
[I], efar [i], enear [i], eneutral
The process proceeds to the direction determination process of step S1208 for determining the focus state using [i], (i = 0 to 13). FIG. 12B shows a detailed flow of this direction determination processing.

【0145】図12Bに示す方向判定処理のフローは、
第1段階判定と第2段階判定からなる。最初に、カット
オフ周波数の比較的高い使用データIIR1の評価値を
用いて第1段階判定を実行して方向判定し、ここで方向
が分からなかった場合に、方向判定に寄与する評価値を
変更して、カットオフ周波数の比較低い使用データII
R4方式の評価値を用いて第2段階判定を続行する。方
向判定としては、第1段階判定がメインである。第1段
階判定では、ジャストピン(JP)判定(S120
9)、Near判定(S1211)、Far判定(S1
213)の順に、各判定処理を実行する。
The flow of the direction determination process shown in FIG.
It consists of a first stage determination and a second stage determination. First, the first-stage determination is performed using the evaluation value of the use data IIR1 having a relatively high cutoff frequency to determine the direction. If the direction is not known, the evaluation value contributing to the direction determination is changed. And the cutoff frequency is comparatively low.
The second stage determination is continued using the evaluation value of the R4 system. The first stage determination is the main direction determination. In the first stage determination, a just pin (JP) determination (S120)
9), Near determination (S1211), Far determination (S1
Each determination process is executed in the order of 213).

【0146】ステップS1209で、フォーカスがJP
であるか否かのJP判定を行う。JPとは、フォーカス
がJP位置から半焦点深度(焦点深度の半分)以内のず
れであることを意味する。JP判定でJPと判定された
ら既にフォーカスは合っておりAFの必要はないので、
ステップS1210で、移動方向は無し(ジャスト),
モードはノーマルと設定して、WOBルーチンを終了す
る。JPでないと判定されたら、S1211のNear
判定に進む。
In step S1209, the focus is set to JP.
JP determination is made as to whether or not. JP means that the focus is shifted from the JP position within a half depth of focus (half the depth of focus). If the JP is determined as JP in the JP determination, the focus has already been set and there is no need for AF.
In step S1210, there is no moving direction (just),
The mode is set to normal, and the WOB routine ends. If it is determined that it is not JP, Near in S1211
Proceed to determination.

【0147】ステップS1212で、評価値の上昇する
方向がNear方向であるか否かのNear判定を行
う。Near判定でNearと判定されたら、ステップ
S1212で移動方向はNear,モードはノーマルと
設定して、WOBルーチンを終了する。Nearでない
と判定されたら、ステップS1213のFar判定に進
む。
In step S1212, a Near determination is made as to whether the direction in which the evaluation value increases is the Near direction. If Near is determined in the Near determination, the moving direction is set to Near and the mode is set to Normal in step S1212, and the WOB routine ends. If it is determined that it is not Near, the process proceeds to Far determination in step S1213.

【0148】ステップS1213で、評価値の上昇する
方向がFar方向であるか否かのFar判定を行う。F
ar判定でFarと判定されたら、ステップS1214
で移動方向はFar,モードはノーマルと設定して、W
OBルーチンを終了する。Farでないと判定された
ら、第1段階判定を終了し、ステップS1215の評価
値の重み変更処理に進む。
In step S1213, a Far determination is made as to whether the direction in which the evaluation value increases is the Far direction. F
If it is determined to be Far in the ar determination, step S1214
Set the movement direction to Far, set the mode to Normal, and
The OB routine ends. If it is determined that it is not Far, the first-stage determination ends, and the process proceeds to the evaluation value weight change processing in step S1215.

【0149】なお、ステップS1211のNear判定
とステップS1213のFar判定は、どちらを先に実
行してもよい。
Either the Near determination in step S1211 or the Far determination in step S1213 may be performed first.

【0150】第1段階判定でJP,Near,Farの
いずれとも判定されなく、フォーカスレンズの移動方向
が分からなかった場合には、ステップS1215で評価
値の重み付けを変更して、第2段階判定に進む。「評価
値の重み」とは、Near判定、Far判定で行なって
いるファジーフィルタ型シナプス処理(図19参照)の
各入力に対する重みである。
If the first-stage determination does not determine any of JP, Near, and Far, and the moving direction of the focus lens cannot be determined, the weight of the evaluation value is changed in step S1215, and the second-stage determination is performed. move on. The “weight of the evaluation value” is a weight for each input of the fuzzy filter type synapse processing (see FIG. 19) performed in the Near determination and the Far determination.

【0151】第2段階判定では、ステップS1216
で、再度Near判定を行なっている。Near判定で
Nearと判定されたら、ステップS1217で移動方
向はNearと暫定的に決定し、モードはフラットと設
定して、WOBルーチンを終了する。Nearでないと
判定されたら、Far判定を行わずにステップS128
3に進み、移動方向はFarと暫定的に決定し、モード
はフラットと設定して、WOBルーチンを終了する。即
ち、Near判定でNearと判定された場合を除い
て、全てFarとしている。これは、実際にカメラを使
用する場合、被写体としては数m以上離れていることが
多いので、方向が分からないときにはFarに向かえば
それがJPに近づく方向である可能性が高いと考えたか
らである。以上により、WOB動作を終了して、JP判
定(S1007)に進む。
In the second stage determination, step S1216
, The Near determination is performed again. If Near is determined in the Near determination, the moving direction is tentatively determined to be Near in step S1217, the mode is set to flat, and the WOB routine ends. If it is determined that it is not Near, the Far determination is not performed and step S128 is performed.
Proceeding to 3, the moving direction is tentatively determined to be Far, the mode is set to flat, and the WOB routine ends. That is, all are set to Far except for the case where it is determined to be Near in the Near judgment. This is because when the camera is actually used, the object is often a few meters or more away, so when it is not clear what direction it is, it is considered that if it goes to Far, it is likely to be the direction approaching JP. is there. As described above, the WOB operation ends, and the process proceeds to JP determination (S1007).

【0152】第1段階判定後、第2段階判定で評価値の
重みを変更して再度同様の判定を行なう理由は、以下の
とおりである。第1段階判定では、実際には評価値の重
みを、 W[ ]={10,0,0,0,0,0,0,0,0,0,0,0,0,0} 但し、{}内の各数字は、評価値ID0〜ID13の夫
々の評価の重みとし、カットオフ周波数の比較的高い使
用データIIR1の評価値ID0のみを判定に寄与させ
ている。第1段階判定で評価値ID0のみに絞って判定
しているのは、方向判定を誤るとAF動作に支障が生じ
るため、JP,Near,Farの各判定における誤判
定を極力減らすためである。
After the first stage determination, the weight of the evaluation value is changed in the second stage determination and the same determination is performed again for the following reason. In the first stage determination, the weight of the evaluation value is actually given by W [] = {10,0,0,0,0,0,0,0,0,0,0,0,0,0} where Each number in parentheses is a weight for each of the evaluation values ID0 to ID13, and only the evaluation value ID0 of the use data IIR1 having a relatively high cutoff frequency contributes to the determination. The reason why the first-stage determination is performed by narrowing down only to the evaluation value ID0 is that if the direction determination is erroneous, the AF operation is hindered, and therefore, erroneous determinations in JP, Near, and Far determinations are reduced as much as possible.

【0153】第1段階判定でJP,Near又はFar
のいずれとも判定されない場合には、フォーカスレンズ
の進むべき方向判定ができない、即ち、大ボケであると
判定する。この場合には、フォーカスをNearに動か
すか、又はFarに動かすかは明確な理由をもって決定
できない。そこで、ステップS1215で、感度を多少
あげるため評価値の重みを変更して、第2段階判定に進
むこととしている。重みは W[ ]={5,10,20,20,0,0,10,0,0,5,10,5,0,0} のように変更する。この重み付けは、カットオフ周波数
の比較的低い使用データIIR4のID2(IIR4-
W1- HPeak)及び更に枠サイズが異なるID3(II
R4- W3- HPeak)に重みを置いている。
In the first stage judgment, JP, Near or Far
If neither of the above is determined, it is not possible to determine the direction in which the focus lens should proceed, that is, it is determined that the subject is largely blurred. In this case, whether to move the focus to Near or Far cannot be determined for a clear reason. Therefore, in step S1215, the weight of the evaluation value is changed in order to slightly increase the sensitivity, and the process proceeds to the second stage determination. The weight is changed as follows: W [] = {5,10,20,20,0,0,10,0,0,5,10,5,0,0}. This weighting is based on ID2 (IIR4−) of the usage data IIR4 having a relatively low cutoff frequency.
W1-HPeak) and ID3 (II
R4-W3-HPeak).

【0154】このように、第1段階判定は、誤判定の確
率は低いが評価値の感度が相対的に低く少しのボケ状態
でも有為な値が得られない。第2段階判定は、感度がよ
い反面、偽山が発生しやすく誤判定を生じやすい。ここ
で、第1段階判定のカットオフ周波数の比較的高い使用
データIIR1の評価値ID0と、カットオフ周波数の
比較的低い使用データIIR4の評価値ID2又はID
3とを、両者を加算して方向判定することも考えられ
る。しかし、この場合でも、後者の偽山が発生しやすく
誤判定を生じやすいことが分かった。そこで、本実施例
では先ず第1段階判定を優先させ、ここで方向判定でき
ない場合のみ第2段階判定でバックアップすることによ
り、WOBの誤判定の確率を低く押さえたまま、WOB
の感度を上げることができた。
As described above, in the first-stage determination, the probability of an erroneous determination is low, but the sensitivity of the evaluation value is relatively low, and a significant value cannot be obtained even in a slight blur state. The second-stage determination has good sensitivity, but is likely to cause false mountains and erroneous determination. Here, the evaluation value ID0 of the usage data IIR1 having a relatively high cutoff frequency in the first-stage determination, and the evaluation value ID2 or ID of the usage data IIR4 having a relatively low cutoff frequency.
It is also conceivable to determine the direction by adding 3 to 3. However, even in this case, it was found that the latter false mountain easily occurs and erroneous determination easily occurs. Therefore, in the present embodiment, the first-stage determination is first given priority, and if the direction cannot be determined here, the backup is made in the second-stage determination, so that the WOB erroneous determination probability is kept low while maintaining the WOB erroneous determination low.
Was able to raise the sensitivity.

【0155】さて、第1段階判定及び第2段階判定の具
体的内容である、ジャストピン判定,Near判定及び
Far判定について説明する。
Now, the specific contents of the first-stage determination and the second-stage determination, namely, the just-pin determination, the Near determination, and the Far determination will be described.

【0156】ジャストピン判定において、WOBしたと
き評価値がどのように変化した場合に「JP」と判定す
るかを視覚的に説明する。WOBを行なうとフォーカス
の状態に応じて評価値は図15〜図16に示すような変
化を示す。図15Aは、始点(0) がJPに一致している
場合の評価値の変化を示す。WOB((0) →→→
)により、評価値の変化は2回低下するW字型にな
る。
In the just-pin determination, how the evaluation value changes when WOB is performed to determine “JP” will be visually described. When WOB is performed, the evaluation value changes as shown in FIGS. 15 and 16 according to the focus state. FIG. 15A shows a change in the evaluation value when the starting point (0) matches the JP. WOB ((0) →→→
), The change of the evaluation value becomes a W-shape that decreases twice.

【0157】図15Bは、始点(0) がJPから僅かにず
れている場合である。WOB((0)→→→)によ
り、評価値は2回低下するが、1回目と2回目ではアン
バランスになる。図15Bの状態もJPとする。
FIG. 15B shows a case where the starting point (0) is slightly shifted from JP. Due to WOB ((0) →→→), the evaluation value decreases twice, but becomes unbalanced between the first and second times. The state in FIG. 15B is also JP.

【0158】図15Cは、始点(0) が半焦点深度近くず
れている場合である。WOB((0)→→→)によ
り、評価値は、低下後上昇するか又は上昇後低下するの
2通りとなる。いずれの場合でも低下の差が、上昇の差
よりも大きい。低下の差と上昇の差の比率を定め、低下
の差が一定比率以上であればJPとする。図17に示す
ように、本実施例では、低下分(b):上昇分(a)=
5:1以上を採用する。これも実験値である。
FIG. 15C shows a case where the starting point (0) is shifted near the half depth of focus. According to WOB ((0) →→→), the evaluation value becomes two types, that is, the value increases after the decrease and the value decreases after the increase. In each case, the difference in decline is greater than the difference in rise. The ratio between the difference between the decrease and the difference between the increases is determined. As shown in FIG. 17, in the present embodiment, the decrease (b): the increase (a) =
Adopt 5: 1 or more. This is also an experimental value.

【0159】図16Dは、始点がJPから半焦点深度を
越えてずれている場合の評価値の変化を示す。WOB
((0) →→→)により、評価値は、低下後上昇す
るか、又は上昇後低下するの2通りとなり、低下の差と
上昇の差の大きさは同程度の大きさとなる。図16Dの
状態はJPと判定せずに、ステップS1211のNea
r判定に進む。
FIG. 16D shows a change in the evaluation value when the starting point is shifted from JP by more than a half depth of focus. WOB
As a result of ((0) →→→), the evaluation value becomes two types, that is, the value increases after the decrease or the value decreases after the increase, and the difference between the decrease and the difference between the increases is substantially the same. The state in FIG. 16D is not determined to be JP, and Nea
Proceed to r determination.

【0160】図16Eは、始点がJPから大きくずれた
大ボケ位置にある場合の評価値の変化を示す。この場合
にはWOB((0) →→→)を行なっても評価値の
変化はほとんどない。たとえ変化があったとしても、評
価値のもつ定常ノイズ以下となる。
FIG. 16E shows a change in the evaluation value when the starting point is located at a large blur position greatly deviated from JP. In this case, even if WOB ((0) →→→) is performed, there is almost no change in the evaluation value. Even if there is a change, the noise level is equal to or lower than the stationary noise of the evaluation value.

【0161】図16Fは、JPの状態であるが、ディテ
ールの少ない被写体の場合の評価値の変化を示す。ディ
テールが少ないとWOB((0) →→→)で評価値
の変化はほとんど得られず、図16Eの大ボケと同じよ
うな振る舞いを示す。しかし、JPにある。
FIG. 16F shows a change in the evaluation value in the case of a subject having little detail in the JP state. When the detail is small, the change of the evaluation value is hardly obtained in WOB ((0) →→→), and the behavior is the same as the large blur in FIG. 16E. However, it is in JP.

【0162】ここで、図16Eと図16Fでは評価値の
変化は似ており、評価値の変化だけでは両者を区別する
ことが困難である。これは、ディテールがある被写体の
大ボケ状態と例えば均一に近い壁のようなディテールの
少ない被写体のJP状態をWOBで判断するのは困難で
あることを意味する。この識別不能が画像処理形AFを
困難なものにしている1つの要因である。
Here, the change in the evaluation value is similar between FIG. 16E and FIG. 16F, and it is difficult to distinguish between the two only by the change in the evaluation value. This means that it is difficult to determine from a WOB the large blur state of a subject having details and the JP state of a subject having small details such as a wall that is nearly uniform. This indistinguishability is one factor that makes image processing AF difficult.

【0163】この実施例では、図16A〜図16Cの場
合には、WOBの結果はJPとしてWOBを終了しAF
を行わない。図16D〜図16FはJPでないと判定
し、Near判定に進む。本当は図16Fの場合もJP
と判定すべきであるが、図16Eと見分けがつかないこ
とから、JPでないと判定せざる得ない。以上のJP判
定を計数的に実現するため、WOBフローで記憶したe
0 ,enear,efar ,eneutral の各値を使用して、図
18及び図19に示す計算方法を実行している。
In this embodiment, in the case of FIG. 16A to FIG. 16C, the WOB
Do not do. FIG. 16D to FIG. 16F determine that it is not JP, and proceed to Near determination. Actually, in the case of FIG.
However, since it is indistinguishable from FIG. 16E, it must be determined that it is not JP. In order to numerically realize the above JP determination, e stored in the WOB flow
The calculation methods shown in FIGS. 18 and 19 are executed using the values of 0, enear, efar, and eneutral.

【0164】図18の方向判定におけるジャストピン判
定を説明する。WOBレンズのニュートラル位置とFa
r方向に焦点深度分離れた位置との評価値差(e0
[0]−enear[0])1801及びニュートラル位置
とNear方向に半焦点深度分離れた位置との評価値差
(eneutral [0]−efar [0])1806より夫々
の拡張合致度m1、m2を算出する。
The just pin determination in the direction determination in FIG. 18 will be described. Neutral position of WOB lens and Fa
Evaluation value difference (e0) from the position separated by the depth of focus in the r direction
[0] -enear [0]) 1801 and the extended matching degree m1, m2 from the neutral position and the evaluation value difference (eneutral [0] -efar [0]) 1806 between the neutral position and the position separated by a half depth of focus in the Near direction. Is calculated.

【0165】図中下部の各拡張合致度算出の詳細に示す
ように、拡張合致度m1の算出は、横軸の評価値差(e
0 [0]−enear[0])に対応して縦軸のm1とな
る。 (1) 評価値差が0〜第1の第1閾値th1 [0]までの
場合、m1=0をとる。 (2) 評価値差が第1の閾値th1 [0]の時、m1=0
をとり、また、評価値差が第2閾値t h2 [0]の時、
m1=100〔%〕をとる。 (3) 評価値差が第1閾値th1 [0]以上の場合、(2)
の条件下で比例配分される。 (4) 評価値差が0以下の場合、縦軸に関して線対称とな
る。
As shown in the details of the calculation of each extended matching degree in the lower part of the figure, the calculation of the extended matching degree m1 is based on the evaluation value difference (e
0 [0] −enear [0]), which is m1 on the vertical axis. (1) When the evaluation value difference is from 0 to the first first threshold th1 [0], m1 = 0. (2) When the evaluation value difference is the first threshold th1 [0], m1 = 0
And when the evaluation value difference is the second threshold value th2 [0],
m1 = 100 [%] is taken. (3) When the evaluation value difference is equal to or larger than the first threshold th1 [0], (2)
Under the condition of (4) If the evaluation value difference is 0 or less, the evaluation value is line-symmetric with respect to the vertical axis.

【0166】結局、評価値差とm1は1次関数にある
が、0付近に幅を持たせ、微妙な差はm1をゼロとして
いる。この理由は、評価値の微少な定常的なノイズ(リ
ップル成分)を判定に寄与させないために、ゼロ付近に
幅を持たせているのである。
After all, the evaluation value difference and m1 are in a linear function, but have a width near 0, and the subtle difference is that m1 is zero. The reason for this is that a width near zero is provided in order not to contribute to the determination with a small steady noise (ripple component) of the evaluation value.

【0167】拡張合致度m2の算出も、横軸の評価値差
(eneutral [0]−efar [0])に対応して、同様
に行う。
The calculation of the extended matching degree m2 is similarly performed in accordance with the evaluation value difference (eneutral [0] -efar [0]) on the horizontal axis.

【0168】m1,m2がいずれも100%以下の場
合、スイッチ1603,1610はいずれも上のルート
を取り(1804,1811)、m1 とm2 は加算器1
807で加算され、その和が比較器1814で定数βと
比較される。本実施例では、図17で説明したように、
低下分:上昇分=5:1以上より、β≧80%としてい
る。この和がβより大きい場合には比較結果は「JP」
となり、β未満であれば結果は「JPでない」となる。
If both m1 and m2 are 100% or less, the switches 1603 and 1610 take the upper route (1804, 1811), and m1 and m2 are the adders 1
At 807, the sum is compared with a constant β at a comparator 1814. In the present embodiment, as described in FIG.
Since the amount of decrease: the amount of increase: 5: 1 or more, β ≧ 80%. If the sum is greater than β, the comparison result is “JP”
, And if less than β, the result is “not JP”.

【0169】図15Cの例に対応させると、例えば、
(0) から への移動により評価値差(e0 [0]−ene
ar[0])から合致度m1=+90%、からへの移
動により評価値差(eneutral [0]−efar [0])
から合致度m2=−10%が得られたとする。両者を加
算すると80%となり、β≧80%を満たし、比較結果
は「JP」となる。
According to the example of FIG. 15C, for example,
The evaluation value difference (e0 [0] -ene
ar [0]), the evaluation value difference (eneutral [0] -efar [0]) due to the movement from the matching degree m1 = + 90% to
It is assumed that the matching degree m2 = −10% is obtained from When both are added, the result is 80%, which satisfies β ≧ 80%, and the comparison result is “JP”.

【0170】m1 とm2 のうちのいずれか一方が100
%を越えた場合には、比率で見る必要があるため、スイ
ッチ1803,1810はいずれも下のルートを取り、
m1又はm2 の大きい方の絶対値でm1 とm2 共に正規
化する(1805,1812)。即ち、m1 又はm2 の
絶対値が大きい方を100とする。その後、加算器18
07で和をとり、比較器1614で比較演算を行なって
いる。同様に、この和がβより大きい場合には比較結果
は「JP」となり、β未満であれば結果は「JPでな
い」となる。
One of m1 and m2 is 100
If the value exceeds%, it is necessary to look at the ratio, so both switches 1803 and 1810 take the lower route,
Both m1 and m2 are normalized with the larger absolute value of m1 or m2 (1805, 1812). That is, the larger absolute value of m1 or m2 is defined as 100. Then, the adder 18
The sum is obtained at 07, and a comparison operation is performed at the comparator 1614. Similarly, if the sum is larger than β, the comparison result is “JP”, and if the sum is smaller than β, the result is “non-JP”.

【0171】図15A,B及びCの場合にはm1 とm2
共に正となり、WOBで評価値差が所定以上であれば判
定がJP状態となるよう定数β(例えば、0. 8)を実
験的に定めている。図16Dの場合にはm1 とm2 のう
ち一方が正となり他方が負となる。m1 とm2 共にその
絶対値が100%以下の場合には、通常(m1 +m2)
は相殺されてゼロに近い値となり、よってβ以下となる
ので判定は「JPでない」となる。
In the case of FIGS. 15A, 15B and 15C, m1 and m2
Both are positive, and a constant β (for example, 0.8) is experimentally determined so that if the evaluation value difference in the WOB is equal to or more than a predetermined value, the determination becomes the JP state. In the case of FIG. 16D, one of m1 and m2 is positive and the other is negative. When the absolute value of both m1 and m2 is 100% or less, it is usually (m1 + m2)
Are canceled out to become a value close to zero, and thus become equal to or less than β, so that the judgment is “not JP”.

【0172】ところが、m1 とm2 共にその絶対値が1
00%を大きく越し、(m1 +m2)が正となる場合に
は|m1 /m2 |が1に近いにもかかわらず(これは典
型的な小ボケ状態)判定結果はJPとでてしまうことが
ある。そこでm1 又はm2 の大きい方で正規化した後、
和をとり比較することにより誤判定を防いでいる。
However, the absolute value of both m1 and m2 is 1
When (m1 + m2) is positive and | m1 / m2 | is close to 1 (this is a typical small blur state), the judgment result may be JP. is there. So after normalizing with the larger of m1 and m2,
Misjudgment is prevented by summing and comparing.

【0173】図13E及びFの場合には、m1 とm2 が
共にゼロもしくは小さな値となり判定は「JP状態でな
い」となる。尚、係数β=80%としているが、この値
では、図17に示すように評価値低下分(b)と評価値
上昇分(a)の比が5:1までJP状態と認めることに
なる。この値は多くの被写体を用いて実験的に調整して
求めたものである。
In the case of FIGS. 13E and 13F, m1 and m2 are both zero or a small value, and the judgment is "no JP state". Although the coefficient β is set to 80%, as shown in FIG. 17, the JP state is recognized until the ratio of the evaluation value decrease (b) to the evaluation value increase (a) becomes 5: 1 as shown in FIG. . This value was obtained by adjusting experimentally using many subjects.

【0174】次に、方向判定に於けるNear判定に関
して説明を行なう。Near判定は、図19Aに示すフ
ァジーフィルタ型シナプス構成をとっている。一般に、
ファジーとは曖昧なというような意味であり、シナプス
構成とは本来神経細胞間を伝達する接合構成をいうが、
この神経細胞接合構成と似ているためこのように名付け
ている。
Next, the Near determination in the direction determination will be described. The Near determination has a fuzzy filter type synapse configuration shown in FIG. 19A. In general,
Fuzzy means ambiguous, and synaptic configuration is essentially a junctional configuration that transmits between nerve cells.
It is named this way because it resembles this neural cell junction configuration.

【0175】この構成は、各評価値ID[i](i=0
〜13)に関して、WOBに伴う評価値ID0[i]の
変化(efar [i]−enear[i])(1501)に対
して「Near方向に評価値が上昇するらしさの」合致
度を求め(1502)、これらの結果に対し各評価値I
D[i]各々に関して予め定めた重み係数W[i]を夫
々乗算する(1503)。これらの総和を求め(150
4)、その後、「係数α×重み合計」(α×ΣW
[i])との比較を行なって(1505)、Near又
は否の判定を行っている。拡張合致度算出に関しては図
18の詳細図を参照されたい。この処理は、個々の評価
値より各々の「Near方向に評価値が上昇するらし
さ」を求め、重み付け多数決を行なっていることに等し
い。
In this configuration, each evaluation value ID [i] (i = 0
With regard to (13) to (13), the degree of coincidence “of the likelihood that the evaluation value increases in the Near direction” with respect to the change (efar [i] −enear [i]) (1501) of the evaluation value ID0 [i] accompanying the WOB is obtained 1502), each evaluation value I
Each D [i] is multiplied by a predetermined weight coefficient W [i] (1503). The sum of these is calculated (150
4) Then, “coefficient α × total weight” (α × ΣW
The comparison with [i]) is made (1505) to determine Near or not. Refer to the detailed diagram of FIG. 18 for the calculation of the degree of extension matching. This processing is equivalent to obtaining the “likelihood that the evaluation value increases in the Near direction” from each evaluation value and performing a weighted majority decision.

【0176】なお、Near判定は、第1段階判定のス
テップS1211と第2段階判定のステップS1216
で実行される。両者は、第1段階判定の評価の重みが、 W[ ]={10,0,0,0,0,0,0,0,0,0,0,0,0,0} であるのに対して、第2段階判定の評価の重みが、 W[ ]={5,10,20,20,0,0,10,0,0,5,10,5,0,0} となっている点で相違する。
The Near determination is performed in step S1211 of the first stage determination and step S1216 of the second stage determination.
Executed in In both cases, the weight of the evaluation in the first stage determination is W [] = {10,0,0,0,0,0,0,0,0,0,0,0,0,0} On the other hand, the weight of the evaluation in the second stage determination is W [] = {5,10,20,20,0,0,10,0,0,5,10,5,0,0} Differs in that

【0177】次に、方向判定に於けるFar判定に関し
て説明を行なう。図19Bに示すように、Far判定
は、評価値ID[i]の変化に(eneutral [i]−e
far [i])を用いている以外は、Near判定と同様
の判定を行っている。
Next, a description will be given of the Far determination in the direction determination. As shown in FIG. 19B, the Far determination determines that the change of the evaluation value ID [i] is (eneutral [i] -e
Except for using far [i]), the same determination as the Near determination is performed.

【0178】ステップS1007で、WOB動作で得ら
れたデータに基づき「JP判定」を行う。WOB動作の
第1段階判定でJPと判定されたら、以降フォーカスレ
ンズは動かさずにAF動作を終了する。
In step S1007, “JP determination” is performed based on the data obtained by the WOB operation. If the first stage of the WOB operation determines JP, the AF operation is terminated without moving the focus lens.

【0179】これ以外の場合には、山登りステージに進
む。最初のレンズ移動方向はWOB(S1006)で決
定されている。但し、Near若しくはFarと判定さ
れたら、JPに近いフォーカス位置にいる「ノーマルモ
ード」(JPが比較的近い状態のモード)として、山登
りステージに進むため、山登りパラメータの初期化(S
1008)に進む。JP,Near又はFarのいずれ
とも判定されないで第2段階判定を行ったときは、Ne
ar又はFarを暫定的に決定し、大ボケ状態の「フラ
ットモード」(方向を決定できないほどJPが遠い状態
のモード。)として、山登りステージに進むため、山登
りパラメータの初期化(S1008)に進む。「ノーマ
ルモード」と「フラットモード」の違いに関しては後で
説明を行なう。
Otherwise, the process proceeds to the hill climbing stage. The first lens movement direction is determined by WOB (S1006). However, if it is determined to be Near or Far, the process proceeds to the hill-climbing stage as a “normal mode” (a mode in which the JP is relatively close) at a focus position close to the JP.
Proceed to 1008). If the second-stage judgment is made without judging any of JP, Near or Far, Ne
The ar or Far is provisionally determined, and the process proceeds to the hill climbing stage as a “flat mode” in a large blur state (a mode in which the JP is so far away that the direction cannot be determined). Therefore, the process proceeds to initialization of hill climbing parameters (S1008). . The difference between the “normal mode” and the “flat mode” will be described later.

【0180】3. 4 山登りパラメータの初期化 ステップS1008で、AF山登りを開始する前に、山
登りに関連するプログラム上の各パラメータの初期化を
行なう。以下に初期化を行なうパラメータを示す。
3.4 Initialization of Mountain Climbing Parameters In step S1008, before starting AF mountain hill climbing, initialization of each parameter in a program related to mountain hill climbing is performed. The parameters for initialization are shown below.

【0181】境界値カウント 端に到達した際、反転指令を出すまでの待ち時間用カウ
ントを0にリセットする。 端到達フラグ 端に到達したことを示すフラグをリセットする。このフ
ラグは、両端到達の判断に用いる。 評価値の最大値 各評価値の最大値を0にする。後で説明する保険モード
のピーク選定で用いる。 評価値の最小値 各評価値の最小値を現フィールドの評価値にセットす
る。後で説明する保険モードのピーク選定で用いる。 評価値の最大値位置 各評価値の最大値位置を現フィールドのレンズ位置にセ
ットする。後で説明する保険モードのピーク選定で用い
る。 鋭角率最大値 各評価値の鋭角率最大値を0にリセットする。後で説明
する保険モードのピーク選定で用いる。 鋭角率最大値位置 各評価値の鋭角率最大値位置を現フィールドのレンズ位
置にセットする。後で説明する保険モードのピーク選定
で用いる。
When reaching the boundary value count end, the count for the waiting time until the inversion command is issued is reset to zero. End arrival flag Resets the flag indicating that the end has been reached. This flag is used to determine the arrival at both ends. Maximum value of evaluation value Set the maximum value of each evaluation value to 0. This is used in the insurance mode peak selection described later. Minimum value of evaluation value Set the minimum value of each evaluation value to the evaluation value of the current field. This is used in the insurance mode peak selection described later. Maximum value position of evaluation value The maximum value position of each evaluation value is set to the lens position of the current field. This is used in the insurance mode peak selection described later. Maximum acute angle ratio The maximum acute angle ratio of each evaluation value is reset to zero. This is used in the insurance mode peak selection described later. Acute angle rate maximum value position The acute angle rate maximum value position of each evaluation value is set to the lens position of the current field. This is used in the insurance mode peak selection described later.

【0182】3. 5 最大最小値更新処理 ステップS1009で、山登りが開始したら毎フィール
ド毎に評価値の最大値及び最小値の更新処理を行なう
(図14参照)。ここで、評価値の最大値最小値の更新
処理とは、そのフィールドにおける評価値の最大値がそ
れまでの最大値未満であれば最大値の更新は行なわな
く、同様に、評価値の最小値がそれまでの最小値を越え
ていれば最小値の更新は行なわない。
3.5 Maximum / Minimum Value Update Processing In step S1009, when hill climbing is started, the maximum value and minimum value of the evaluation value are updated for each field (see FIG. 14). Here, the updating process of the maximum value and the minimum value of the evaluation value means that if the maximum value of the evaluation value in the field is less than the previous maximum value, the maximum value is not updated. Is not updated if exceeds the previous minimum value.

【0183】各評価値(ID0〜ID13の14種)
の最大値max.e[i] 各評価値(同14種)の最小値min.e[i] 各評価値(同14種)が最大となったレンズ位置 これらの値は、後で説明する保険モードでのピーク選定
に使用する。
Each evaluation value (14 types of ID0 to ID13)
The maximum value max.e [i] The minimum value of each evaluation value (14 types) min.e [i] The lens position where each evaluation value (14 types) becomes the maximum These values will be described later. Used for peak selection in insurance mode.

【0184】3.6 レンズ速度設定 ステップS1010で、レンズ速度の設定を行う。フォ
ーカスレンズが移動開始してからピーク位置を検出する
までのレンズ速度を制御する。図20にレンズ速度決定
のフローを示す。
3.6 Setting of Lens Speed In step S1010, the lens speed is set. It controls the lens speed from when the focus lens starts moving until the peak position is detected. FIG. 20 shows a flow for determining the lens speed.

【0185】本実施例のAFでは、最初、ステップS1
001,1002で揺れ判定及びモード設定され、その
後1フィールド毎にステップS1014,1015で揺
れ判定及びモード設定された揺れモードの結果の揺れの
有無に対応して、AF時のレンズ速度を制御している。
更に、WOB動作(S1007)により、第1段階判定
で判明したノーマルモードか第2段階判定まで行ったフ
ラットモードであるかが判定されている。この結果をも
利用して、レンズ速度が制御される。
In the AF of this embodiment, first, in step S1
At 001 and 1002, the swing is determined and the mode is set. Thereafter, the lens speed at the time of AF is controlled for each field in accordance with the presence or absence of the shake as a result of the shake mode set and determined at steps S1014 and 1015. I have.
Further, it is determined by the WOB operation (S1007) whether the mode is the normal mode determined in the first stage determination or the flat mode performed up to the second stage determination. The lens speed is controlled using this result.

【0186】被写体の揺れの有無を判定し、揺れの有る
場合、レンズを高速で動作させ、低速切り替えは行なわ
ない。揺れがない場合、ピーク位置に近づくまでは高速
とし、ピーク位置の近辺に来たら速度を切り替えて低速
としている。レンズ速度は低速と高速の2段階としてい
る。これは高速と低速の間に中間的な速度を設けないこ
とがAF収束時間にとって効率が良く、得策と考えてい
るからである。
It is determined whether or not the subject has shaken. If there is a shake, the lens is operated at a high speed, and the low-speed switching is not performed. When there is no shaking, the speed is set to be high until approaching the peak position, and the speed is switched to be low when approaching the peak position. The lens speed has two stages, low speed and high speed. This is because it is considered that not providing an intermediate speed between the high speed and the low speed is efficient for the AF convergence time and is a good measure.

【0187】低速は、2Fs/field 、即ち1フィール
ド当たり焦点深度Fsの2倍だけ進む速度である。高速
は、12Fs/field 又はそのレンズの持つ最高速度の
内の遅い方である。ここで、最高速度を12Fs/fiel
d で制限しているのは、これ以上速くすると評価値曲線
のつぶれが顕著になり、高速から低速への速度切り替え
判定が上手くいかなくなるからである。また、速度切り
替えがうまく働かなかった場合、又は働かせなかった場
合(後で説明するが揺れている場合には速度切り替えを
行なわない。)に、これより速い速度にするとピーク通
過後の行き過ぎ量が大きくなることの理由もあり、この
制限を使用している。2Fs/field 、12Fs/fiel
d の値は、実験的に定めた値である。
The low speed is 2Fs / field, that is, the speed at which the field advances by twice the depth of focus Fs per field. High speed is 12 Fs / field or the slowest of the maximum speeds of the lens. Here, the maximum speed is 12Fs / fiel
The reason for limiting with d is that if the speed is further increased, the collapse of the evaluation value curve becomes conspicuous, and the determination of speed switching from high speed to low speed will not be successful. Also, if the speed switching does not work well or does not work (explained later, the speed switching is not performed in the case of shaking), if the speed is set to a speed higher than this, the amount of overshoot after passing the peak will be reduced. We use this restriction, partly because it grows. 2Fs / field, 12Fs / fiel
The value of d is an experimentally determined value.

【0188】図20のレンズ速度決定フローを説明す
る。ステップS2001で、揺れ判定する。最初はレン
ズ静止時の揺れ判定及び揺れモード設定(S1001,
S1002)の結果、次回からはレンズ動作時の揺れ判
定及び揺れモード設定(S1014,S1015)の結
果、揺れモード1,2となり揺れの有る場合には、ステ
ップS2002に進み、静止モードの場合には、ステッ
プS2003に進む。ここで予め、レンズ静止時に揺れ
判定及び揺れモード設定を行っていることから、AF動
作開始前に、レンズ速度を設定することが出来る。
The lens speed determination flow of FIG. 20 will be described. In step S2001, the swing is determined. Initially, the shake determination and the shake mode setting when the lens is stationary (S1001,
As a result of S1002), from the next time, as a result of the shake determination and the shake mode setting (S1014, S1015) at the time of the lens operation, the shake mode becomes 1 or 2, and if there is a shake, the process proceeds to step S2002. Then, the process proceeds to step S2003. Here, since the swing determination and the swing mode setting are performed in advance when the lens is stationary, the lens speed can be set before the AF operation starts.

【0189】ステップS2002(揺れの有る場合)で
は、レンズを高速で動作させ、低速切り替えは行なわな
い。その理由は、揺れがあるとレンズが静止していても
評価値が変動するので、AFを開始すると、評価値に
は、揺れによる寄与と、レンズを動かしてフォーカ
スが変化することによる評価値変化の寄与、とが合成さ
れることになる。
In step S2002 (when there is shaking), the lens is operated at high speed, and low-speed switching is not performed. The reason is that the evaluation value fluctuates even if the lens is stationary when there is shaking, so when AF is started, the evaluation value shows the contribution due to shaking and the evaluation value change due to the focus changing by moving the lens. , And are combined.

【0190】AFではフォーカスを動かし評価値のピー
クを探索するので、上記の揺れによる寄与が大きいと
「ぼけたフォーカス位置でAFが収束する」ような誤動
作を起こしてしまう。カメラ画像処理より評価値を算出
しこれを用いる現在のAFシステム構成においては、上
記誤動作を避けるために、レンズの速度を速くして、
のレンズを動かしてフォーカスが変化することによる評
価値変化の寄与分を大きくすることにより、の揺れに
よる寄与分を相対的に減らして、揺れに影響しない評価
値特性を得ている。
In the AF, since the focus is moved to search for the peak of the evaluation value, a malfunction such as "AF converges at a blurred focus position" occurs if the contribution of the above-mentioned fluctuation is large. In the current AF system configuration that calculates and uses an evaluation value from camera image processing, in order to avoid the above-described malfunction, the lens speed is increased,
By moving the lens and increasing the contribution of the change in the evaluation value due to the change in focus, the contribution due to the shaking is relatively reduced, and an evaluation value characteristic that does not affect the shaking is obtained.

【0191】そこで、揺れの場合にはピーク位置を検出
するまでは低速切り替えを行なわないようにしている。
低速切り替えを行なうと、低速になった直後から上記
の寄与が大きくなり、揺れによる誤動作の確率が高くな
ってしまうからである。このように揺れている場合に
は、ジャストピン近くにきてもレンズ速度を低下させな
いので、揺れによる誤判定を低減させることが出来る。
その結果、ボケ状態のままAFが終了するという誤操作
を低減させることが出来る。
Therefore, in the case of shaking, low-speed switching is not performed until the peak position is detected.
When low speed switching is performed, the above
Is increased, and the probability of malfunction due to shaking increases. In such a case, since the lens speed does not decrease even when the camera comes close to the just pin, erroneous determination due to the shake can be reduced.
As a result, it is possible to reduce the erroneous operation that the AF ends in the blurred state.

【0192】揺れの無い場合にステップS2003で
は、フォーカスレンズの動作開始からの経過時間t1 に
よって分けている。経過時間が、初期低速期間t1 を経
過していればステップS2004に進み、t1 以内であ
ればステップS2005に進み、低速に切り替えてレン
ズを動かす。初期低速期間t1 を設けたのは、WOB動
作で方向を誤って判定していた場合に、動作開始当初か
ら高速で進み、行き過ぎててしまうのを回避するためで
ある。ここで、初期低速期間t1 は次の通りである。
In the case where there is no shaking, in step S2003, division is made according to the elapsed time t1 from the start of the operation of the focus lens. If the elapsed time has passed the initial low-speed period t1, the process proceeds to step S2004. If the elapsed time is within t1, the process proceeds to step S2005 to switch to low speed and move the lens. The reason why the initial low speed period t1 is provided is that when the direction is incorrectly determined in the WOB operation, the operation proceeds at a high speed from the beginning of the operation and does not go too far. Here, the initial low speed period t1 is as follows.

【0193】 t1 =12field (フラットモードの場合) =36field (ノーマルモードの場合)T1 = 12 fields (for flat mode) = 36 fields (for normal mode)

【0194】フラットモードの場合、WOBの方向判定
(Near,Far)によって方向判定できなかったの
でレンズ動作開始時点では、JPは遠いと判断する。し
かし、t1 =ゼロとしないのは、たまたまJPにあった
のをフラットと誤判定した場合に対する配慮である。こ
のような誤判定があってもt1 =12field と設定して
あれば、JPからレンズ動作開始しても低速で動くので
JPから大きくずれてからJPに戻るということがな
い。
In the case of the flat mode, since the direction cannot be determined by the WOB direction determination (Near, Far), it is determined that JP is far at the start of the lens operation. However, the reason why t1 is not set to zero is to take care of a case in which it is erroneously determined that there is a flat screen when it happens to be in JP. Even if there is such an erroneous determination, if t1 is set to 12 fields, even if the lens operation is started from JP, the lens moves at a low speed, so that it does not return to JP after a large shift from JP.

【0195】ノーマルモードの場合、WOBで方向判定
結果がでたのでレンズ動作開始時点ではJP位置が近い
と判断する。この場合には、ピークを行き過ぎてしまう
のを避け、低速のままでJPまで収束させる方が画像の
見栄えがよいので、低速期間を長くとっている。従っ
て、フォーカスがJPの近傍にあるか又は小ボケ状態の
場合には、低速のままJPまでフォーカスが進むので、
滑らかなフォーカス追い込みが得られる。また、フォー
カスの移動速度が速すぎて、ピークを行き過ぎるという
ケースが低減する。上記の値12、36フィールドは実
験的に定めた数値である。
In the case of the normal mode, since the direction is determined by WOB, it is determined that the JP position is close at the start of the lens operation. In this case, it is better to converge to JP at a low speed while avoiding the peak from going too far, so that the image looks better. Therefore, when the focus is in the vicinity of the JP or in a small blur state, the focus advances to the JP at a low speed.
A smooth focus drive is obtained. In addition, the case where the focus moving speed is too fast and the peak goes too far is reduced. The above value 12, 36 fields are numerical values determined experimentally.

【0196】ステップS2005で、低速切り替え判定
を行う。本AFでは上述したようにスタートしてから、
初期低速期間を除き、ピーク位置の近くまではレンズを
高速に進め、ピーク位置近くに到達したら低速に切り替
えることが得策と考えている。即ち、大ボケ状態からピ
ーク位置近くまでは高速にレンズを動かし、ピーク位置
近くになったら急に減速して低速にし、滑らかに且つ行
き過ぎることがないようにしてピーク位置に収束するよ
うにしている。
In step S2005, low-speed switching determination is performed. In this AF, after starting as described above,
Except for the initial low-speed period, it is advisable to advance the lens at a high speed near the peak position, and switch to a low-speed when the lens approaches the peak position. In other words, the lens is moved at high speed from the large blur state to the vicinity of the peak position, and when it is near the peak position, the lens is suddenly decelerated to a low speed, and converges to the peak position smoothly and without going too far. .

【0197】そこでレンズの速度を高速から低速に切り
替えるタイミングが問題となる。本AFでは、以下の判
別式(1)(2)で低速に切り替えるか否かの判断を行ない、
式(3) を満たせば、低速に切り替え、満たさなければ高
速のまま移動する。
Therefore, the timing of switching the speed of the lens from the high speed to the low speed becomes a problem. In this AF, the following discriminants (1) and (2) determine whether or not to switch to low speed.
If Expression (3) is satisfied, the speed is switched to low speed;

【0198】[0198]

【数1】 (Equation 1)

【0199】[0199]

【数2】 (Equation 2)

【0200】式(1) の第1項は、現フィールドにおける
2つの評価値ID0(IIR1−W1−HPeak)とID
2(IIR4−W1−HPeak)の差と和の比(e0
[0]−e0 [2])/(e0 [0]+e0 [2])を
4倍したものを表している。第2項は、この2つの評価
値の差と和の比を過去4フィールド分加算した量を表し
ている。この式は、評価値ID[0]の立ち上がり時点
を検出するための式である。差と和の比(即ち、ID
[0]をID[2]で正規化したもの。)は、カットオ
フ周波数が低い(即ち、感度の良い)ID[2]に対し
て、ID[0]がどれだけ近づいたかの指標となってい
る。比をとっているので、例え照度が上がっても、各評
価値の値e[i]が夫々所定倍されるので、評価値の差
と和の比は照度と無関係に定まる。式(1) は、全体を4
フィールドで割れば分かるように、現フィールドにおけ
る指標から過去4フィールドの移動平均の指標を引いた
差、即ち、現在の方が一層近づいているか否かを表して
いる。
The first term of the equation (1) includes two evaluation values ID0 (IIR1-W1-HPeak) and ID in the current field.
2 (IIR4-W1-HP Peak) and the ratio of the difference to the sum (e0
[0] -e0 [2]) / (e0 [0] + e0 [2]) is quadrupled. The second term indicates the amount obtained by adding the ratio of the difference between these two evaluation values and the sum for the past four fields. This equation is for detecting the rising point of the evaluation value ID [0]. The difference-to-sum ratio (ie, ID
[0] normalized by ID [2]. ) Is an index of how close ID [0] is to ID [2] having a low cutoff frequency (that is, good sensitivity). Since the ratio is taken, even if the illuminance increases, the value e [i] of each evaluation value is multiplied by a predetermined value, so that the ratio of the difference between the evaluation values and the sum is determined independently of the illuminance. Equation (1) is 4
As can be seen by dividing by the field, the difference obtained by subtracting the index of the moving average of the past four fields from the index of the current field, that is, whether or not the present is closer is shown.

【0201】式(2) は、ノイズ除去のために規定され、
1フィールド前のrf(1)の値である。rf(0)、
rf(1)の2つの指標より、式(3) の所定の閾値によ
り切り替えのタイミングを判定している。
Equation (2) is defined for noise removal,
This is the value of rf (1) one field before. rf (0),
The switching timing is determined based on the two indices of rf (1) based on the predetermined threshold value of Expression (3).

【0202】[0202]

【数3】 rf(0)<−25、且つ、rf(1)<−10、 ならば、低速に切り替え 但し、ej [0]は、jフィールド前のID0の値 ej [2]は、jフィールド前のID2の値If rf (0) <− 25 and rf (1) <− 10, switch to low speed. However, ej [0] is the value of ID0 before j field, ej [2] is j ID2 value before the field

【0203】図21に示すようにぼけた位置からレンズ
を動かしていくと、始めのうちはrf(0)、rf
(1)共に0よりも大きな値を示す。ピーク位置に近づ
くとrf(0)、rf(1)は急に0以下の値を示す。
本判別式は、このような性質を利用してピーク位置に近
づいたことを判別している。この判別式は、実験を重ね
データ解析を行なうことで求めたが、この判別式を決定
するまでには種々の試行錯誤を繰り返している。
When the lens is moved from the blurred position as shown in FIG. 21, rf (0), rf
(1) Both values are larger than 0. When approaching the peak position, rf (0) and rf (1) suddenly show values of 0 or less.
This discriminant uses such a property to determine that it has approached the peak position. Although this discriminant was obtained by repeating experiments and performing data analysis, various trials and errors were repeated until this discriminant was determined.

【0204】この判別式は、その試行錯誤の中で最も特
性のよいのを選んだに過ぎず、完全なものではない。し
かし、ピーク位置で評価値が大きい被写体、即ちディテ
ールの大きい被写体では、この判別式は有効に働いてい
る。一方、ピーク位置でも評価値ID0(IIR1−W
1−HPeak)の値が小さい(例えば、数100以下の)
被写体では、ピーク位置近くになっても上記判別式を満
足しないことがある。但し、ディテールの少ないピーク
位置では、ピーク位置を大きく過ぎたとしても目立ちに
くいという救いはある。そこで、閾値の決定に関して
は、ディテールの大きい被写体でうまく高速から低速へ
制動がかかることを第1の目標として決定している。
This discriminant merely selects the best characteristic among the trial and error, and is not perfect. However, for a subject having a large evaluation value at the peak position, that is, a subject having large details, this discriminant works effectively. On the other hand, the evaluation value ID0 (IIR1-W
1-H Peak) is small (for example, several hundreds or less)
In the case of a subject, the above discriminant may not be satisfied even near the peak position. However, there is a salvation that a peak position having little detail is hardly noticeable even if the peak position is too large. Therefore, regarding the determination of the threshold value, it is determined as a first target that braking is properly performed from a high speed to a low speed on a subject having large details.

【0205】AFでは、偽山の検出が1つのポイントに
なる。従って、本AFでは、偽山発生が評価枠周辺の高
輝度エッジに起因すること、高輝度エッジのため飽和輝
度数ID8が高くなること、等の評価値の特性に着目し
て、以下の偽山判定(S1011)及び飽和輝度判定
(S1012)により偽山の検出をおこない、枠サイズ
変更処理(S1013)を行っている。
In AF, detection of a false mountain is one point. Therefore, in the present AF, the following false evaluation is performed by paying attention to characteristics of evaluation values such as that the occurrence of a false mountain is caused by a high luminance edge around the evaluation frame and that the saturation luminance number ID8 is increased due to the high luminance edge. False mountains are detected by the mountain judgment (S1011) and the saturation luminance judgment (S1012), and the frame size change processing (S1013) is performed.

【0206】3.7 偽山判定 ステップS1011で、偽山判定を行う。本AFでは独
自に考案した偽山判定方法を行なっており、偽山の発生
により生じるAFの誤動作を低減している。
3.7 False Mountain Determination In step S1011, false mountain determination is performed. In the present AF, a false mountain determination method uniquely devised is performed, and the malfunction of the AF caused by the generation of the false mountain is reduced.

【0207】最初に、偽山に関して説明する。偽山と
は、フォーカスがAF枠内にある被写体に対してピーク
位置に近づく時に評価値が低下する現象と定義する。
First, a false mountain will be described. The false mountain is defined as a phenomenon in which the evaluation value decreases when the focus approaches the peak position with respect to the subject within the AF frame.

【0208】図22Cは、縦軸に評価値を、横軸にレン
ズの位置(フォーカス)をとった評価値曲線を表してい
る。AFは、評価値が大きくなる方向→と動作して
(山登り)JPを探し当てる。しかし、現実には、評価
値曲線が図に示すような特性を示す場合もある。このよ
うな、JPとは無関係な評価値の上昇部分を偽山と称す
る。この場合、AFは、評価値が上昇する方向にフォー
カスを進めので、時としてレンズはJPとは反対向きに
→とぼける方向に動作し、大きくぼけた位置で停止
してしまう。このように、偽山が発生すると、ぼけた位
置でAFが収束したり、ぼける方向にフォーカスが進む
といった誤動作(以後、「偽山トラップ」という。)の
要因となる。偽山の存在が、AF機能の開発を困難なも
のにしている。
FIG. 22C shows an evaluation value curve in which the ordinate represents the evaluation value and the abscissa represents the lens position (focus). The AF operates in the direction of increasing the evaluation value → (hill climbing) to find the JP. However, in reality, the evaluation value curve sometimes shows the characteristic as shown in the figure. Such a rising portion of the evaluation value irrelevant to JP is called a false mountain. In this case, the AF advances the focus in the direction in which the evaluation value increases, so that the lens sometimes moves in the direction opposite to the direction of JP → blurring, and stops at a largely blurred position. In this way, when a false mountain occurs, it causes a malfunction (hereinafter, referred to as a “false mountain trap”) such that the AF converges at the blurred position or the focus advances in the blurred direction. The existence of false mountains makes the development of the AF function difficult.

【0209】偽山の発生メカニズムは、輝度が飽和して
いる場合には、JP状態では限られたラインが飽和輝度
となってエネルギ的には無駄な状態となっている。これ
がぼけた状態になると、この無駄となっていたエネルギ
が拡がり周辺のラインにまで有効的に影響して或る一定
レベル以上の輝度状態となる。これはエレルギ的に非常
に高い部分は飽和してしまうCCDの特性に起因してい
る。こうして、ボケ現象が進むと輝度が上昇する現象が
生じるからである。
[0209] The false mountain generation mechanism is that when the luminance is saturated, limited lines become saturated luminance in the JP state, and the energy is wasted. When this becomes blurred, the wasted energy spreads and effectively affects the peripheral lines, resulting in a brightness state of a certain level or more. This is attributable to the characteristic of the CCD that a portion extremely high in energy is saturated. This is because a phenomenon in which the luminance increases as the blurring phenomenon progresses occurs.

【0210】偽山の画面における発生状況を図22を用
いて説明する。図22Aに示すようにAF枠(評価枠
1)内に目標被写体(ターゲット)2201があり、評
価枠の外側に被写体よりもディテールの大きい高輝度エ
ッジ2202があるシーンを想定する。ターゲット22
01、高輝度エッジ2202共に同じ距離にあると仮定
すると、フォーカスがターゲット2201に対してJP
の時には高輝度エッジに対してもJPとなる。
The state of occurrence on the false mountain screen will be described with reference to FIG. As shown in FIG. 22A, a scene is assumed in which a target subject (target) 2201 is inside an AF frame (evaluation frame 1), and a high-luminance edge 2202 having more detail than the subject is outside the evaluation frame. Target 22
01, assuming that both high-luminance edges 2202 are at the same distance, the focus is
In the case of, JP is also obtained for a high luminance edge.

【0211】図22AはJP状態を示している。このJ
P状態からフォーカスをずらしていく様子を図22Bに
示す。被写体はボケが進むにつれて徐々に膨らみ、同様
に高輝度差のエッヂが波紋が広がるようにからま
で、更にからまで波紋のように膨らみ、評価枠に侵
入する(実際には、を中心に反対側に,の対応点
が有り、を中止に膨らむのであるが、反対側は評価枠
と関係ないので省略している。)。図22Cは、その際
の評価値の変化を示している。
FIG. 22A shows the JP state. This J
FIG. 22B shows how the focus is shifted from the P state. The subject gradually expands as the blur progresses, and similarly, the edge of the high luminance difference swells like a ripple so that the ripple spreads, and then penetrates into the evaluation frame (actually, on the opposite side around the center). There is a corresponding point of, and swells to stop, but the other side is omitted because it has nothing to do with the evaluation frame.) FIG. 22C shows a change in the evaluation value at that time.

【0212】図22B及びCにおいて はJPの状態で
あり、このJP状態からフォーカスを移動させるとター
ゲット2201、エッジ2202共にボケて周りとの境
がなくなっていき、波紋が広がるように大きくなってい
き、JP状態から或るボケ状態までは評価値は低下して
いく(図22Cのからの範囲)。そして高輝度エッ
ジ2202の波紋が広がり評価枠内にかかるようになる
(図22Bのの状態)。更にフォーカスを移動すると
高輝度エッジの波紋は評価枠内へ侵入し始める(図22
Bのの状態)。
FIGS. 22B and 22C show the state of JP. When the focus is moved from this JP state, both the target 2201 and the edge 2202 are blurred and the boundary with the surroundings disappears, and the ripples become larger so as to spread. The evaluation value decreases from the JP state to a certain blur state (range from FIG. 22C). Then, the ripple of the high-luminance edge 2202 spreads and covers the evaluation frame (the state of FIG. 22B). When the focus is further moved, ripples of high-luminance edges begin to enter the evaluation frame (FIG. 22).
B state).

【0213】高輝度エッジ2202の方がターゲット2
201よりもディテールが大きいので、高輝度エッジが
枠内に入っている部分のラインに関しては、被写体22
01よりも高輝度エッジ2202の波紋が評価値へ大き
く寄与する。エッジの侵入が進行するとV方向の侵入範
囲も大きくなり、評価値は増加する(図22Cの→
の範囲)。即ち、フォーカスがぼける方向に進むと評価
値が上昇する範囲が生じることになる。は高輝度エッ
ジ自体でなく高輝度エッジの波紋(陰影)であり、評価
値の高い方向にレンズを移動して追ったとしても、フォ
ーカスが合うことはあり得ない。
The high brightness edge 2202 is the target 2
Since the detail is larger than 201, the line of the portion where the high-luminance edge is within the frame is the subject 22
The ripples of the high-luminance edge 2202 than 01 greatly contribute to the evaluation value. As the penetration of the edge progresses, the penetration range in the V direction also increases, and the evaluation value increases (→ in FIG. 22C).
Range). In other words, a range in which the evaluation value increases as the focus advances in the blurred direction occurs. Is a ripple (shadow) of the high-luminance edge, not the high-luminance edge itself. Even if the lens is moved and followed in the direction of the higher evaluation value, the focus cannot be achieved.

【0214】次に、本実施例のAFで計数的に行なって
いる偽山判定方法、偽山トラップ回避方法について説明
する。偽山判定は、評価値ID0(IIR1‐W1‐H
Peak)と評価値ID1(IIR1‐W2‐HPeak)の比
ID0/ID1を監視し、この比を用いて判定を行な
う。
Next, a method for judging a false mountain and a method for avoiding a false mountain trap, which are performed numerically in the AF of this embodiment, will be described. The false mountain judgment is based on the evaluation value ID0 (IIR1-W1-H
Peak) and the ratio ID0 / ID1 of the evaluation value ID1 (IIR1-W2-HPeak) are monitored, and judgment is performed using this ratio.

【0215】偽山発生の判断は、山登りが開始し、上記
比ID0/ID1が1. 6以上であり、それが10フィ
ールド連続した時に、偽山が発生したと判断している。 ej [0]/ej [1]≧1.6 (j=1〜10)
It is determined that a false mountain has occurred when hill-climbing has started, the ratio ID0 / ID1 is 1.6 or more, and the ratio is continuous for 10 fields. ej [0] / ej [1] ≧ 1.6 (j = 1 to 10)

【0216】評価値ID0(IIR1‐W1‐HPeak)
と評価値ID1(IIR1‐W2‐HPeak)は、図23
Aに示すように、ID0の評価枠W1がID1の評価枠
W2より枠サイズがH方向に若干広いだけで他の特性は
同じである。もし評価枠W1のH方向中央部(即ち、評
価枠W1とW2の重複部分)のディテールのみが評価値
ID0に寄与しているとすれば、評価値ID0と評価値
ID1は同一の値となる。実際に、偽山発生のない通常
のシーン、被写体では図23Bに示すように大ボケから
JPに至るまで略同じ値を示している。反対に、評価値
ID0と評価値ID1が異なり、評価値ID0≧評価値
ID1となる場合は、評価値ID0に寄与する部分がH
方向周辺部(評価枠W2とW1の差の部分)にあること
を意味している。この偽山判定方式は、枠サイズW1
(評価値ID0)と枠サイズW2(評価値ID1)の大
きさの若干異なる2つの評価枠を用いていることより、
「2重枠法」と呼ぶ。
Evaluation value ID0 (IIR1-W1-HPeak)
And the evaluation value ID1 (IIR1-W2-HPeak) are shown in FIG.
As shown in A, the other characteristics are the same except that the evaluation frame W1 of ID0 is slightly wider in the H direction than the evaluation frame W2 of ID1. If only the details in the center of the evaluation frame W1 in the H direction (that is, the overlapping portion of the evaluation frames W1 and W2) contribute to the evaluation value ID0, the evaluation value ID0 and the evaluation value ID1 become the same value. . Actually, in the case of a normal scene or a subject where no false mountain occurs, as shown in FIG. 23B, substantially the same value is shown from large blur to JP. Conversely, when the evaluation value ID0 and the evaluation value ID1 are different and the evaluation value ID0 ≧ the evaluation value ID1, the portion contributing to the evaluation value ID0 is H
It means that it is in the peripheral part of the direction (the part of the difference between the evaluation frames W2 and W1). This false mountain determination method uses the frame size W1
(Evaluation value ID0) and two evaluation frames having slightly different sizes of the frame size W2 (Evaluation value ID1) are used.
It is called "double frame method".

【0217】例えば、カメラを移動した場合に、評価値
ID0≧評価値ID1の割合が一定以上になると、偽山
が発生している可能性が非常に高い。上記比ID0/I
D1が1を大きく越える場合には、図22Bに示すよう
に評価枠W1の右端又は左端に評価枠W1内の最大ディ
テールが集中していることになる。この一例が上に述べ
た高輝度エッジ2202が評価枠W1に端に位置する状
態である。この偽山判定方式では評価枠W1の端部に枠
内最大のディテールが集中すると偽山発生を引き起こす
と判断する。
For example, if the ratio of the evaluation value ID0 ≧ the evaluation value ID1 becomes equal to or more than a certain value when the camera is moved, there is a very high possibility that a false mountain has occurred. The above ratio ID0 / I
When D1 greatly exceeds 1, it means that the maximum detail in the evaluation frame W1 is concentrated on the right end or the left end of the evaluation frame W1 as shown in FIG. 22B. An example of this is a state where the above-described high-luminance edge 2202 is located at the end of the evaluation frame W1. In this false mountain determination method, it is determined that a false mountain occurs when the maximum detail in the frame is concentrated at the end of the evaluation frame W1.

【0218】ここで、「山登りが開始し、10フィール
ド連続」としているのは、以下の理由による。揺れてい
る場合には、たとえ偽山が発生しないシーンにおいても
被写体のエッジが評価枠W2の端を通過する際に上記比
が大きく変化し、1.6を越えてしまうことがある。揺
れによるも以外にも、ネオン光のような間欠的なものを
除くためでもある。偽山が発生するシーンに関しては、
長いフィールドにわたり上記比1. 6をを大きく越え
る。以上より所定の複数フィールドにわたり所定の比を
越えていれば偽山が発生したと判断する。
Here, the reason that “hill climbing starts and 10 fields are continued” is as follows. In the case of shaking, even in a scene where a false mountain does not occur, when the edge of the subject passes through the end of the evaluation frame W2, the above ratio may change greatly and exceed 1.6. In addition to shaking, it is also to remove intermittent things such as neon light. For scenes where false mountains occur,
It greatly exceeds the above ratio 1.6 over a long field. From the above, if the ratio exceeds a predetermined ratio over a predetermined plurality of fields, it is determined that a false mountain has occurred.

【0219】次に、偽山が発生したと判断した場合の偽
山トラップ回避方法に関して説明する。偽山発生と判断
した場合には、ステップS1013の枠サイズ変更に進
む。
Next, a method of avoiding a false mountain trap when it is determined that a false mountain has occurred will be described. If it is determined that a false mountain has occurred, the process proceeds to change the frame size in step S1013.

【0220】ステップS1013で、枠サイズ変更処理
を行う。即ち、一旦フォーカスの移動を停止し、評価値
ID0,ID1の評価枠W1,評価枠W2を夫々これら
基本サイズから評価枠W3,評価枠W4の大きさに拡大
変更する。これはAF用CPU(図2の符号203)内
で評価値ID0,ID1を評価値ID9,ID10と夫
々同じものにする操作による。評価値ID0,ID1自
体を評価値ID9,ID10に夫々置換しなかったの
は、評価値ID0は基本的な評価値であり、その後も使
用されるので、評価値ID0のまま枠サイズを変更する
こととしている。その後、WOB(S1005〜100
7)及び山登り(S1008〜1021)を開始して拡
大サイズの評価枠で再度偽山判定を行う。上述した評価
枠の説明で、評価枠W1に対して水平方向に若干狭い評
価枠W2を、同様に評価枠W3に対して水平方向に若干
狭い評価枠W4を用意したのはこの偽山判定のためであ
る。
[0220] In step S1013, a frame size changing process is performed. That is, the focus is temporarily stopped, and the evaluation frames W1 and W2 of the evaluation values ID0 and ID1 are enlarged and changed from their basic sizes to the sizes of the evaluation frames W3 and W4, respectively. This is due to the operation of making the evaluation values ID0 and ID1 the same as the evaluation values ID9 and ID10 in the AF CPU (reference numeral 203 in FIG. 2). The reason that the evaluation values ID0 and ID1 themselves were not replaced with the evaluation values ID9 and ID10, respectively, is that the evaluation value ID0 is a basic evaluation value and is used thereafter, so the frame size is changed without changing the evaluation value ID0. I have to do that. Then, WOB (S1005-100
7) and mountain climbing (S1008 to 1021) are started, and a false mountain determination is performed again in the evaluation frame of the enlarged size. In the above description of the evaluation frame, the evaluation frame W2 slightly narrower in the horizontal direction with respect to the evaluation frame W1 and the evaluation frame W4 slightly narrower in the horizontal direction with respect to the evaluation frame W3 are similarly prepared. That's why.

【0221】なお、既にIDO,ID1の評価枠W1、
W2のサイズが評価枠W3、W4のサイズに夫々変更さ
れた状態で、偽山判定を行い偽山発生と判定されたら、
評価値ID0の評価枠W3のみを評価枠W5(最大枠サ
イズ)のサイズに拡大変更する(同様に、CPU内で評
価値ID0を評価値ID11と同じにする。)。評価枠
サイズを拡大することにより枠周辺にある高輝度エッジ
を枠中央近くの位置に移動する。たとえ輝度が高いエッ
ジでも、枠中央近くに位置決めすれば、そのエッジはエ
ッジの波紋(虚像)でなく実像であり、これにフォーカ
スが合うようなJPに近づく方向に評価値が上昇するこ
とになる。
Note that the evaluation frames W1 for IDO and ID1 have already been set.
In a state where the size of W2 has been changed to the size of the evaluation frames W3 and W4, a false mountain determination is performed, and if it is determined that a false mountain has occurred,
Only the evaluation frame W3 of the evaluation value ID0 is enlarged and changed to the size of the evaluation frame W5 (maximum frame size) (similarly, the evaluation value ID0 is made the same as the evaluation value ID11 in the CPU). By increasing the size of the evaluation frame, a high-luminance edge around the frame is moved to a position near the center of the frame. Even if an edge has a high luminance, if the edge is positioned near the center of the frame, the edge is not a ripple (virtual image) of the edge but a real image, and the evaluation value increases in a direction approaching JP so that the edge is in focus. .

【0222】尚、図23Aに示すように、この「2重評
価枠法」では、枠サイズを水平方向に変えた2つの評価
値ID0(評価枠W1)とID1(評価枠W2)を比較
しているが、縦方向に関しては枠サイズは一定のまま
で、サイズを変更して比較することは行なっていない。
これは、図23Cに示すように、垂直方向に伸びている
垂直エッジ2301が右方又は左方から侵入すると、多
くのラインが同時に影響を受けてHピーク方式の評価値
に対する影響が大きい。これに対して図23Dに示すよ
うに水平方向エッジ2302が上又は下から侵入して
も、侵入された限られたライン数しか影響を受けない。
以上より垂直方向に侵入する外乱の影響は、水平方向の
それと比較して比較的小さいとみなし無視している。
As shown in FIG. 23A, in the “double evaluation frame method”, two evaluation values ID0 (evaluation frame W1) and ID1 (evaluation frame W2) obtained by changing the frame size in the horizontal direction are compared. However, in the vertical direction, the frame size remains constant, and the size is not changed for comparison.
This is because, as shown in FIG. 23C, when the vertical edge 2301 extending in the vertical direction enters from the right or left, many lines are simultaneously affected, and the evaluation value of the H peak method is greatly affected. On the other hand, even if the horizontal edge 2302 enters from above or below as shown in FIG. 23D, only a limited number of entered lines is affected.
As described above, the influence of the disturbance entering in the vertical direction is considered to be relatively small as compared with that in the horizontal direction, and is ignored.

【0223】3. 8 飽和輝度判定 ステップS1012で、飽和輝度判定を行う。通常の被
写体では、フォーカスがぼけると評価値が低下する。し
かし、上述したように、飽和輝度を持つ被写体ではボケ
現象が進むにつれ評価値が上昇する場合がある。これを
解決するために、飽和輝度数が所定数以上有る場合に
は、飽和輝度数を小さくする方向にフォーカスを動かす
方法もある。しかし、飽和している被写体は飽和してい
るが故に、多少ボケても輝度は鈍らず、その波紋は広が
る。一方、ぼけると被写体はボケが進みそのシルエット
は拡がってしまう。このように、飽和輝度数は図30B
に示すように一般に双峰形の特性を示すことが多いた
め、このような方法は有効でない。
3.8 Saturation Luminance Determination In step S1012, saturation luminance determination is performed. For a normal subject, the evaluation value decreases when the focus is out of focus. However, as described above, the evaluation value of a subject having a saturation luminance may increase as the blur phenomenon progresses. In order to solve this, when the saturation luminance number is equal to or more than a predetermined number, there is a method of moving the focus in a direction to decrease the saturation luminance number. However, since the saturated subject is saturated, even if the subject is slightly blurred, the brightness is not reduced, and the ripple spreads. On the other hand, if the subject is blurred, the subject is blurred and the silhouette is expanded. Thus, the saturation luminance number is shown in FIG.
In general, such a method is not effective because it generally exhibits bimodal characteristics as shown in FIG.

【0224】そこで、飽和輝度判定では評価枠W1内の
飽和輝度数ID8(Y‐W1‐Satul)を用いて、飽和
輝度をもつ被写体の有無を判定する。評価枠内に飽和輝
度の画素があると偽山が発生し易くなり、偽山トラップ
を起こすので、それを防止するためである。もし、所定
期間(例えば、連続5フィールド)にわたって飽和輝度
数が閾値(例えば、600)を越えれば偽山発生と判定
し、ステップS1013に進み、各評価値の中で評価枠
W1を使用するものを枠サイズW5に拡大変更する処理
を行なう。連続5フィールドとしたのは、揺れや瞬間的
なノイズによる枠サイズ変更を避けるためである。
Therefore, in the saturation luminance determination, the presence / absence of an object having the saturation luminance is determined by using the saturation luminance number ID8 (Y-W1-Satul) in the evaluation frame W1. This is because if a pixel having a saturation luminance exists in the evaluation frame, a false mountain easily occurs and a false mountain trap is generated. If the saturated luminance number exceeds a threshold value (for example, 600) for a predetermined period (for example, 5 consecutive fields), it is determined that a false mountain has occurred, and the process proceeds to step S1013, in which the evaluation frame W1 is used in each evaluation value. Is enlarged to the frame size W5. The five consecutive fields are used to avoid a change in frame size due to shaking or momentary noise.

【0225】図24を用いて飽和輝度画素が評価枠内に
ある場合に偽山が発生するメカニズムを説明する。目標
被写体(ターゲット)2401の領域Aはフォーカスが
JPの時の飽和輝度を持つターゲットの形状を示す。フ
ォーカスがぼけるとターゲットはボケ始め、ターゲット
のエッジ位置はターゲット中心から波紋が広がるように
中心から遠ざかって膨らむ。飽和輝度を持つ被写体はボ
ケても元々の輝度が高いため飽和輝度を持たない被写体
に比べて波紋は大きく広がる(大きくなってもエッジの
シャープさは衰えない)。領域Bは、ターゲットの波紋
が評価枠2302と重なるまで広がった状態であり、更
に、領域Cは、ターゲットの波紋が広がり評価枠230
2の中まで達した状態を示している。
The mechanism by which a false mountain occurs when a saturated luminance pixel is within the evaluation frame will be described with reference to FIG. An area A of the target object (target) 2401 shows the shape of the target having the saturation luminance when the focus is JP. When the focus becomes out of focus, the target starts to blur, and the edge position of the target expands away from the center so that ripples spread from the center of the target. Even if the subject having the saturation luminance is blurred, the original luminance is high, so that the ripples are greatly spread compared to the subject having no saturation luminance (the sharpness of the edge does not decrease even if it becomes large). The area B is in a state where the ripples of the target are spread until they overlap with the evaluation frame 2302, and the area C is in a state where the ripples of the target are spread and the evaluation frame 230
2 shows a state in which it has reached 2.

【0226】領域Dの状態ではターゲットの波紋が広が
っているため評価枠W1と評価枠W2による評価値の比
(ID0/ID1)はそれほど大きくならず、1.6を
越えない。この場合、前に説明した偽山が生じているに
もかかわらず、偽山判定で偽山と判定できないため偽山
トラップを起こしてしまう。
In the state of the area D, the ripple of the target spreads, so that the ratio (ID0 / ID1) of the evaluation values between the evaluation frames W1 and W2 does not increase so much and does not exceed 1.6. In this case, a false mountain cannot be determined in the false mountain determination even though the false mountain described above has occurred, and a false mountain trap occurs.

【0227】図24Bは、この飽和輝度判定の結果から
飽和輝度ありと判定して、評価枠W1を評価枠W5にサ
イズを拡大した状態を表している。この場合上記の飽和
輝度被写体2401自体が全部枠内に納まるため、偽山
の発生を押さえることができる。偽山に関しては、ター
ゲットの波紋だけが評価枠内にある場合が問題になる。
FIG. 24B shows a state in which it is determined from the result of the saturation luminance determination that there is saturation luminance, and the size of the evaluation frame W1 is expanded to the evaluation frame W5. In this case, since the entirety of the saturated luminance object 2401 itself falls within the frame, the occurrence of a false mountain can be suppressed. As for the false mountain, a problem arises when only the ripples of the target are within the evaluation frame.

【0228】以上の偽山判定(S1011)と飽和輝度
判定(S1012)によって、偽山の発生を押さえてい
る。
By the above-described false mountain determination (S1011) and saturation luminance determination (S1012), generation of false mountain is suppressed.

【0229】3.9 揺れ判定(レンズ動作時) ステップS1014でレンズ動作時の揺れ判定を行う。
先に行ったレンズ静止時の揺れ判定(S1001)で
は、大ボケの状態で揺れていても評価値の変動が少なく
正規化差分値は、「揺れ無し」の判定結果がでてしま
う。この揺れ判定ではレンズが動きJPに近づき、評価
値が上昇して揺れの判断ができるようになった時点で、
再度揺れているか否かの判定を行なう。ここでは、輝度
加算値のみを使用し、評価値ID7(輝度加算値)の6
フィールド分の最大正規化差分値が2%を越えたら揺れ
あり(揺れモード1)と判定する。
3.9 Shaking Judgment (During Lens Operation) In step S1014, a swing judgment during lens operation is performed.
In the shake determination (S1001) performed when the lens is still, the fluctuation of the evaluation value is small even if the lens is shaken in a state of large blur, and the normalized difference value gives a determination result of “no shake”. In this shaking determination, when the lens approaches the movement JP, the evaluation value increases, and the shaking can be determined,
It is determined again whether or not it is shaking. Here, only the luminance addition value is used, and the evaluation value ID7 (luminance addition value) of 6 is used.
If the maximum normalized difference value for the field exceeds 2%, it is determined that there is a swing (sway mode 1).

【0230】ndiff e[7]≦2% → 静止モード ndiff e[7]>2% → 揺れモード1Ndiff e [7] ≦ 2% → stationary mode ndiff e [7]> 2% → sway mode 1

【0231】6フィールド分の正規化差分を用いるの
は、ネオン光のような間欠的なものを除くためである。
正規化差分の定義に関しては揺れ判定(レンズ静止時)
で既に説明しているのでここでは省略する。揺れモード
の場合、次回の山登りループにおけるレンズ速度決定
(S1010)で低速切り替えは行わず、高速のままと
する。この判定で「揺れ有り」と判定されたら、ステッ
プS1015の揺れモード設定へ進み、その後、方向判
定(S1016)に進む。「揺れ無し」と判定したら、
直接、方向判定(S1016)に進む。ステップS10
15の揺れモード設定は、ステップS1002の揺れモ
ード設定と同様であり、説明を省略する。
The reason why the normalized differences for six fields are used is to remove intermittent ones such as neon light.
Judgment of the definition of the normalized difference (when the lens is stationary)
Since it has already been described, the description is omitted here. In the case of the swing mode, the low-speed switching is not performed in the lens speed determination (S1010) in the next hill-climbing loop, and the high-speed is maintained. If it is determined that "there is shaking" in this determination, the process proceeds to the shaking mode setting in step S1015, and then proceeds to the direction determination (S1016). If you determine that there is no shaking,
The process directly proceeds to the direction determination (S1016). Step S10
The setting of the 15 shaking modes is the same as the setting of the shaking mode in step S1002, and a description thereof will be omitted.

【0232】3.10 方向判定(山登り) ステップS1016で、山登りにおける方向判定を行
う。山登りステージでは、1フィールドに1回方向判定
を行なっている。この方向判定では、各評価値の増減よ
り評価値が上昇,下降又はフラット状態(Up,Dow
n,Flat)のいずれかを判断し、その判断結果をメ
モリに格納している。方向判定では、個別判定と、
総合判定、の2つの判定計算を行なっている。両者の関
係は、個別判定の重み付け多数決判定が総合判定とな
る。
3.10 Direction Judgment (Climbing) In step S1016, a direction judgment in hill climbing is performed. On the hill-climbing stage, the direction is determined once in one field. In this direction determination, the evaluation value increases, decreases, or is in a flat state (Up, Dow) based on the increase or decrease of each evaluation value.
n, Flat) is determined, and the result of the determination is stored in the memory. In the direction judgment, individual judgment and
Two judgment calculations are performed. As for the relationship between the two, the weighted majority decision of the individual decision is a comprehensive decision.

【0233】個別判定は、各評価値ID個々の判定結
果である。図25にその計算方法を示す。ここで、e0
[i]は現フィールドでの評価値、efs[i]は1移動
単位(焦点深度Fs)前の評価値を表す。iは評価値の
ID# である。所定基準値αfeは本実施例では0.5
としている。
The individual judgment is a judgment result of each evaluation value ID. FIG. 25 shows the calculation method. Where e0
[I] represents an evaluation value in the current field, and efs [i] represents an evaluation value one movement unit (depth of focus Fs) before. i is the evaluation value ID #. The predetermined reference value αfe is 0.5 in this embodiment.
And

【0234】1移動単位に関しては、焦点深度が深いと
きには焦点深度を越えない場合があるので、焦点深度を
越えた場合に一移動単位と見なして、方向判定を行って
いる。また、フォーカスレンズは、レンズ速度設定で述
べたように最低2Fs/field の速度で動くので通常は
毎フィールド移動単位を越えているが、レンズの動き始
めでは往々にして一移動単位分動かない場合がある。こ
のような時は1移動単位を越えるまでは方向判定を行な
わない。レンズが所定量移動していないのに方向判定を
行うのは無意味だからである。
[0234] Regarding one movement unit, when the depth of focus is deep, the depth of focus may not exceed the depth of focus. Therefore, when the depth of focus is exceeded, it is regarded as one movement unit and the direction is determined. Also, the focus lens moves at a speed of at least 2 Fs / field as described in the setting of the lens speed, so that the focus lens usually exceeds the unit of movement for each field. There is. In such a case, the direction determination is not performed until it exceeds one movement unit. This is because it is meaningless to determine the direction even if the lens has not moved by a predetermined amount.

【0235】図25に示すように、個別判定のUP判定
では、合致度算出2502で、e0〔i〕−efs〔i〕
が第1閾値th1〔i〕まではゼロとし、第2閾値th
2〔i〕以上なら100%とし、その間は比例関係とす
る。比較回路2503で、この値と、基準値αfe(例
えば、50%)を比較して、前者が大なら出力1(U
p)、後者が大なら出力0(Not Up)と判定す
る。同様に、DOWN判定では、efs〔i〕−e0
〔i〕により判定する。UpでなくDownでもないと
きはFlatである。UP判定個別判定結果(Up,D
own,Flat)は、メモリに記憶され(図14参
照)、後で述べる逆送判定(S1017)、山下り判定
(S1022)のCHECK DOWN判定で使用される。
As shown in FIG. 25, in the UP determination of the individual determination, e0 [i] -efs [i]
Is zero until the first threshold th1 [i], and the second threshold th
If it is 2 [i] or more, it is set to 100%, and the interval is a proportional relationship. The comparison circuit 2503 compares this value with a reference value αfe (for example, 50%).
p) If the latter is large, it is determined that the output is 0 (Not Up). Similarly, in the DOWN determination, efs [i] -e0
It is determined by [i]. If it is neither Up nor Down, it is Flat. UP judgment individual judgment result (Up, D
(own, Flat) is stored in the memory (see FIG. 14), and is used in the reverse transmission determination (S1017) and the CHECK DOWN determination of the hill descent determination (S1022) described later.

【0236】総合判定は、図26の構成で示すように
複数の評価値よりファジー判定を行なう構成となってい
る。図26の構成及び処理方法は、WOBで説明したN
ear判定、Far判定と同じシナプス構成であるが、
各閾値th1 [i],th 2[i]は異なっている。複
数の評価値の個々の判定結果を重み付け多数決する処理
となっている。但し、現時点では評価値の重みを W[ ]={10,0,0,0,0,0,0,0,0,0,0,0,0,0} とし、評価値ID0だけが判定に寄与するようにしてあ
り、評価値ID0の個別判定の結果と同じ結果となって
いる。現時点では、入力が1つだけなのでファジー処理
としては意味がないが、将来の技術開発のためにこの構
成はそのままにしている。
In the overall judgment, a fuzzy judgment is made based on a plurality of evaluation values as shown in FIG. The configuration and the processing method of FIG.
It has the same synapse configuration as the ear judgment and Far judgment,
The thresholds th1 [i] and th2 [i] are different. This is a process of weighting and deciding the individual determination results of a plurality of evaluation values. However, at this time, the weight of the evaluation value is W [] = {10,0,0,0,0,0,0,0,0,0,0,0,0,0}, and only the evaluation value ID0 is determined. And the result is the same as the result of the individual determination of the evaluation value ID0. At present, since there is only one input, it is meaningless as fuzzy processing, but this configuration is left as it is for future technical development.

【0237】図27Aに示すように、総合判定において
2回連続Upが続いたら、大ボケを意味する「フラット
モード」から山を登り始めJPに近づいたことを意味す
る「ノーマルモード」に変更する。
As shown in FIG. 27A, when two consecutive Ups are continued in the overall judgment, the mode is changed from “flat mode”, which means large blur, to “normal mode”, which means that the user has started climbing a mountain and approached JP. .

【0238】フラットモードとノーマルモードの取り扱
いの相違は、後で述べる山下り判定(S1022)にお
いてフラットモードではJPが見つかったとはしていな
い。これは未だ山を登り始めていない大ボケ状態で評価
値にノイズがのってDownが検出され、評価値ピーク
と誤判定するのを避けるためである。一方、ノーマルモ
ードでは、Upがあった後にDownが検出された場合
のみ、JPが見つかったこととしている。
The difference in handling between the flat mode and the normal mode is that it is not determined that JP has been found in the flat mode in the hill descent determination (S1022) described later. This is in order to avoid a situation in which the evaluation value has noise and Down is detected in a large blur state in which the mountain has not yet started to climb the mountain, and to avoid erroneous determination as the evaluation value peak. On the other hand, in the normal mode, JP is found only when Down is detected after Up is detected.

【0239】また、個別判定において、各評価値自体が
EVAL TH [i]×γ[i](閾値×輝度加算補正係数)
以下の場合は、強制的にフラットモードとしている。こ
れは、レンズの光学的なノイズ,微少振動に起因する画
面の揺れ等に起因する評価値の定常的なノイズでは簡単
に反応しないように設定する必要があるためである。更
に、次に述べるように輝度加算補正係数γ[i]を変数
としているが、これは評価値が低い場合には定常的なノ
イズで方向判定を誤る場合が多いことと、輝度が高い、
即ちID7(輝度加算値)が高いシーンでは評価値曲線
全体が上昇し、その定常ノイズレベルの絶対値も一緒に
上昇してUp又はDownの判定結果につながるので、
この閾値を輝度加算値に対応して高くすることが必要で
あるという、実験で得た経験則に基づいている。そこ
で、EVAL TH [i]×γ[i](閾値×輝度加算補正係
数)を次のように定めている。
In the individual judgment, each evaluation value itself is
EVAL TH [i] x γ [i] (threshold x luminance addition correction coefficient)
In the following cases, the flat mode is forcibly set. This is because it is necessary to set so as not to easily react to the stationary noise of the evaluation value caused by the optical noise of the lens, the screen shake caused by the minute vibration, and the like. Further, as described below, the luminance addition correction coefficient γ [i] is used as a variable. This is because when the evaluation value is low, the direction determination is often erroneous due to stationary noise, and the luminance is high.
That is, in a scene with a high ID7 (brightness added value), the entire evaluation value curve rises, and the absolute value of the steady noise level also rises, leading to the Up or Down determination result.
It is based on an empirical rule obtained through experiments that it is necessary to increase this threshold value in correspondence with the luminance addition value. Therefore, EVAL TH [i] × γ [i] (threshold value × luminance addition correction coefficient) is defined as follows.

【0240】ここで、 EVAL TH [i]={250,250,400,800,0,0,250,0,0,250,250,250,0,0 } γ[i]=1 :ID7が300以下 =1〜2の間を比例配分:ID7が300〜1500 =2 :ID7が1500以上 但し、ID7はY−W1−HIntgである。Here, EVAL TH [i] = {250,250,400,800,0,0,250,0,0,250,250,250,0,0} γ [i] = 1: Proportional distribution when ID7 is 300 or less = 1 to 2 300-1500 = 2: ID7 is 1500 or more, however, ID7 is Y-W1-HIntg.

【0241】このようにノイズレベルを決定する際に、
閾値を輝度加算値に対応して補正してレベルを上げるこ
とにより、被写体を照らす照明が一層明るくなってもフ
ォーカスが大ボケ状態で評価値が大きく変動することに
より生じるAF動作の誤動作を低減することができる。
When determining the noise level in this way,
By correcting the threshold value in accordance with the luminance addition value and raising the level, even if the illumination illuminating the subject becomes brighter, the malfunction of the AF operation caused by a large change in the evaluation value in a state where the focus is largely blurred is reduced. be able to.

【0242】3.11 逆送判定 ステップS1017で逆送判定を行う。WOBにおける
第1段階の方向判定でNear又はFarが決定できた
場合には、フォーカスレンズはJPに向かって動き始め
ることができる。しかし、WOBにおいて第2段階の方
向判定に進んだFlatモードの場合は、第2段階判定
で述べた基準にしたがって動き出す方向を暫定的に決定
している。この場合には、移動方向が誤っておりJPか
ら遠ざかる方向に動きだす確率も低くない。
3.11 Reverse Transmission Determination In step S1017, reverse transmission determination is performed. If Near or Far can be determined in the first-stage direction determination in WOB, the focus lens can start moving toward JP. However, in the case of the Flat mode in which the WOB proceeds to the second-stage direction determination, the direction in which the motion starts is provisionally determined according to the criteria described in the second-stage determination. In this case, the moving direction is wrong and the probability of starting to move away from the JP is not low.

【0243】更に、山登りステージにおいても常にジャ
ストピンに向かっているわけではなく、遠ざかる方向に
方向に移動することもある。その理由としては、 ボケているため又は被写体のディテールが低いため評
価値が低く、評価値の上昇する方向が分からない場合に
はフォーカスをFar方向又はNear方向のどちらか
に定めて評価値の変化するのを待つしかない。 評価値に偽山が生じた場合、その評価値が上昇するよ
うにフォーカスを進めると、結果としてジャストピンか
ら遠ざかることになる。 一般に、カットオフ周波数が高いHPFで高周波成分を
抽出した評価値では、を原因とする逆走が起こりやす
い。反対に、カットオフ周波数が低いHPFで高周波成
分を抽出した評価値では、の原因は低減されるがを
原因とする逆走が起こりやすい。
Further, even in the hill climbing stage, the player does not always go to the just pin, and sometimes moves in the direction away from him. The reason is that the evaluation value is low due to blur or the detail of the subject is low, and if the direction in which the evaluation value increases is unknown, the focus is set to either the Far direction or the Near direction and the change in the evaluation value is determined. I have no choice but to wait. When a false mountain occurs in the evaluation value, if the focus is advanced so that the evaluation value increases, as a result, the focus moves away from the just pin. In general, in an evaluation value obtained by extracting a high-frequency component with an HPF having a high cutoff frequency, reverse running due to the above is likely to occur. Conversely, in an evaluation value obtained by extracting a high-frequency component with an HPF having a low cut-off frequency, the cause is reduced, but reverse running is likely to occur.

【0244】そこで、この逆送判定では、レンズが動き
だしてから所定の評価値の低下が予め定めた基準を越え
たら、JPから遠ざかる逆方向に進んでいると判定す
る。逆送判定の基準は、レンズが移動開始してから以下
に示す〜が全て成立したらJPから遠ざかる逆走と
判断する。 過去に逆送と判定されていないこと e0 [3]/e0 [2] ≦ 8 e0 [7] ≦ 1100 e0 [12]とe5 [12]の変化が6%以内である
こと フラットモードであること ID0の個別方向判定結果が連続5回Down、又は
ID3の個別方向判定結果が連続5回Downしている
こと
Therefore, in this reverse feed determination, if a predetermined decrease in the evaluation value after the lens starts moving exceeds a predetermined reference, it is determined that the vehicle is moving in the reverse direction away from the JP. When all of the following conditions are satisfied after the lens starts moving, it is determined that the vehicle is moving backward from the JP. E0 [3] / e0 [2] ≤ 8 e0 [7] ≤ 1100 e0 [12] and change of e5 [12] must be within 6% Flat mode The individual direction determination result of ID0 is down five consecutive times or the individual direction determination result of ID3 is down five consecutive times.

【0245】ここで、逆送と判定したらステップS10
18に進み、レンズの進行方向を反転するため逆送処理
を行なう。逆送でないと判定したらステップS1019
に進み、端到達判定を行う。
Here, if it is determined that the reverse transmission is performed, the process proceeds to step S10.
Proceeding to 18, a reverse feed process is performed to reverse the traveling direction of the lens. If it is determined that it is not a reverse transmission, step S1019
To make an end reach determination.

【0246】各判断基準について説明する。は、図2
7Bに示すような反転逆送の無限ループを防ぐためであ
る。評価値ID3(IIR4‐W3‐HPeak)には図2
7Bに示すように偽山があるシーンを想定する。AF山
登り開始フォーカス位置をAとしFarに向かってフォ
ーカスが移動開始したとする。評価値ID0(IIR1
‐W1‐HPeak)はほとんど変化がないが、位置Bで評
価値ID3は低下し、逆送判定の基準を越えたとする。
するとフォーカスは移動方向を反転し、位置Aの方向に
戻るようになる。位置Aを越えると評価値ID3は低下
を始め、位置Cで逆送判定の基準を越えたとする。もし
ここでレンズの移動方向を反転させるとレンズは位置B
とCの間を無限に行き来することになる。この無限ルー
プを回避するためにを条件を加え逆送反転を1回に制
限している。
[0246] Each criterion will be described. Figure 2
This is to prevent an infinite loop of reverse reverse transmission as shown in FIG. 7B. Figure 2 shows the evaluation value ID3 (IIR4-W3-HPeak).
Assume a scene with a false mountain as shown in FIG. 7B. Assume that the AF hill-climbing start focus position is A and the focus starts moving toward Far. Evaluation value ID0 (IIR1
-W1-HPeak) hardly changes, but it is assumed that the evaluation value ID3 decreases at the position B and exceeds the reference for the reverse transmission determination.
Then, the focus reverses the moving direction and returns to the position A. It is assumed that the evaluation value ID3 starts decreasing when the position exceeds the position A, and the evaluation value ID3 exceeds the criterion of the reverse transmission determination at the position C. If the direction of movement of the lens is reversed here, the lens moves to position B
And C endlessly go back and forth. In order to avoid this infinite loop, a condition is added to limit the reverse feed reversal to one time.

【0247】は、ID3/ID2が所定の値より小さ
いことを条件としている。ID3(IIR4−W3−H
Peak)とID2(IIR4−W1−HPeak)の比によっ
て、同じIIR4のHPFをもち、枠W1の評価値ID
2とW3の評価値ID3とを比較することにより偽山判
定を行なうためである。実験のデータ解析より、この比
が所定値(例えば、8)を越えると、枠1の周辺に高輝
度エッジがあり、評価値に偽山が生じて逆送判定を誤る
ことが多いと判明したので、この条件を設けている。
The condition is that ID3 / ID2 is smaller than a predetermined value. ID3 (IIR4-W3-H
Peak) and the ratio of ID2 (IIR4-W1-HPeak), having the same HPR of IIR4, and the evaluation value ID of the frame W1.
This is for performing the false mountain determination by comparing the evaluation value ID3 of W2 with the evaluation value ID3 of W3. From data analysis of experiments, it has been found that when this ratio exceeds a predetermined value (for example, 8), there is a high-luminance edge around the frame 1 and a false mountain is generated in the evaluation value, which often causes a wrong reverse transmission determination. Therefore, this condition is provided.

【0248】は、画面が明るいと逆送判定が誤る確立
が高いので、輝度加算値ID7が所定値(例えば、11
00)以下の条件を設けている。
Since it is highly probable that the reverse transmission determination is erroneous when the screen is bright, the luminance added value ID7 is a predetermined value (for example,
00) The following conditions are provided.

【0249】は、枠W3の輝度加算値の変化の条件で
ある。ID12(IIR4‐W5‐HPeak)の変化が大
きい場合には、のID3(IIR4‐W3‐HPeak)
の変化の原因が揺れによるか、又は外乱乱入の可能性が
高い。この場合には、ID3で逆走と判定すると誤判定
につながるからである。
The condition of the change of the luminance addition value of the frame W3 is shown below. When the change of ID12 (IIR4-W5-HPeak) is large, ID3 (IIR4-W3-HPeak) of
Is likely to be caused by shaking or disturbance intrusion. In this case, it is erroneous to determine that the vehicle is running backwards with ID3.

【0250】ノーマルモードでは逆送を起こしている
ことはまずないので、この条件を加えている。フラット
モードの判定は、WOB(S1006)及び方向判定
(S1016)で行われる。
In the normal mode, reverse transmission rarely occurs, so this condition is added. The flat mode is determined by WOB (S1006) and direction determination (S1016).

【0251】この逆送判定は、実質的にID3を用い
て判定を行なっている。ID3(IIR4‐W3‐HPe
ak)は、感度が高いので多少のボケなら有意な評価値の
増減を得ることができる。しかし、偽山を発生しやすい
のでそのまま信じて判定を行なうと誤った逆送判定とな
ってしまう。そこで〜の付加条件を加えることによ
り誤判定を防止している。
This reverse transmission determination is made substantially by using ID3. ID3 (IIR4-W3-HPe
In ak), since the sensitivity is high, a significant increase or decrease in the evaluation value can be obtained with a slight blur. However, false mountains are likely to occur, so if the determination is made as it is, the wrong reverse transmission will be determined. Therefore, the erroneous determination is prevented by adding the additional condition of (1).

【0252】3.12 逆送処理 ステップS1018で逆送処理、即ち、反転処理を行
う。逆送判定(S1017)で逆送と判定されたらレン
ズの移動方向を反転させるためである。この際、開始点
位置、開始評価値、評価値の最大値、最大値位置等の山
登りを開始する時点で初期化するべき各変数を再度初期
化する(図14参照)。逆送反転した場合は、その位置
から新たに山登り開始と同じ状態にする。
3.12 Reverse feed processing In step S1018, reverse feed processing, that is, reverse processing is performed. This is for reversing the moving direction of the lens if it is determined in the reverse feed determination (S1017) that the feed is reverse. At this time, the variables to be initialized at the time of starting mountain climbing, such as the start point position, the start evaluation value, the maximum value of the evaluation value, and the maximum value position, are initialized again (see FIG. 14). When reverse feeding is reversed, the same state as that at the start of hill-climbing is newly set from that position.

【0253】異なるのは、1度逆送反転を行なったこと
を示すフラグがセットされている点である。即ち、フォ
ーカスがFar端に向かって進行している時に逆送反転
を行なった時は、「Far端到達フラグ」をセットし、
Near端に向かって進行時に逆送反転を行なった場合
には「Near端到達フラグ」をセットする。この2つ
の端到達フラグは次の端到達判定(S1019)で説明
する。
The difference is that a flag indicating that the reverse feed reversal has been performed once is set. That is, when the reverse feed reversal is performed while the focus is progressing toward the Far end, the “Far end reaching flag” is set,
When the reverse feed reversal is performed while traveling toward the near end, the “near end reaching flag” is set. These two end arrival flags will be described in the next end arrival judgment (S1019).

【0254】3.13 端到達判定 ステップS1019で端到達判定を行う。AF山登りで
は有意な評価値ピークを発見するか、又は逆走判定によ
り方向を反転させられるか、探索を中止するまではフォ
ーカスの進む向きを変更せずに評価値ピークの探索を続
ける。しかし、レンズには物理的なNear端及びFa
r端があり、これらの端を飛び越して探索することはで
きないので端に到達した際の処理が必要となる。
3.13 Edge arrival determination In step S1019, edge arrival determination is performed. In the AF hill climbing, the search for the evaluation value peak is continued without changing the direction in which the focus advances until the significant evaluation value peak is found or the direction is reversed by the reverse running determination or the search is stopped. However, the lens has a physical near end and Fa.
There are r ends, and it is not possible to jump over these ends to search, so processing when the ends are reached is required.

【0255】端に到達した際、それが最初の端であれば
まだ全域を探索していないのでフォーカスの進む方向を
反転して探索を続ける。この場合には次に説明する「端
反転処理」(S1021)で山登りパラメータの初期
化、方向を表すパラメータの変更処理を行なう。
When the end is reached, if it is the first end, since the entire area has not been searched yet, the direction of focus advance is reversed and the search is continued. In this case, the hill-climbing parameter is initialized and the parameter indicating the direction is changed in "edge inversion processing" (S1021) described below.

【0256】既にフォーカスがNear端からFar端
までの全域を探索していれば、探索すべき領域は全て探
索したことになる。この場合、たとえJPを検出できな
かったとしてもこれ以上の探索は意味がないので、探索
した範囲内の何処かにAF収束しなければならない。こ
の収束動作を「保険モード」と呼ぶことにする。なお、
全域探索では次のような問題がある。例えば、撮影する
シーンが暗いと、有意な評価値ピークがでにくい場合が
ある。この場合、決められた範囲を探索した後に保険モ
ードでAF収束することになるが、その範囲がNear
端からFar端までの全域とすると、毎回全域を探索す
ることになり収束するまでに時間がかかり過ぎる。
If the focus has already been searched for from the near end to the far end, it means that all the areas to be searched have been searched. In this case, even if JP cannot be detected, further search is meaningless, so that AF convergence must be made somewhere within the searched range. This convergence operation will be referred to as “insurance mode”. In addition,
The whole area search has the following problems. For example, when the scene to be photographed is dark, a significant evaluation value peak may not be easily generated. In this case, AF convergence is performed in the insurance mode after searching for the determined range.
If the entire area is from the end to the Far end, the entire area is searched every time, and it takes too much time to converge.

【0257】そこで、物理的なNear端からFar端
(これらを、「真のNear端」,「真のFar端」と
呼ぶ。)までの間に仮のNear端を設け、探索時間の
短縮を図っている。即ち、フォーカスが仮のNear端
からFar端までを探索した時点で、その範囲内にJP
が存在するかを一旦判断する。全域を探索せずに途中で
判断するので途中判断と呼び、仮のNear端位置を
「途中判断位置」と呼び、ここでの判断方法を「途中判
断方法」と呼ぶ。途中判断位置は、真のNear端と真
のFar端の略中央に設定してある。もし、JPが存在
する場合には、全域探索した場合と比べて相対的に短い
時間でAF収束できる。
Therefore, a provisional near end is provided between the physical near end and the far end (these are referred to as “true near ends” and “true far ends”) to reduce the search time. I'm trying. That is, when the focus searches from the temporary Near end to the Far end, the JP within the range is searched.
Is once determined. Since the determination is made in the middle without searching the entire area, the determination is called a halfway determination, the temporary Near end position is called a “halfway determination position”, and the determination method here is called a “halfway determination method”. The midway determination position is set substantially at the center between the true Near end and the true Far end. If the JP exists, AF convergence can be performed in a relatively short time as compared with the case where the entire area is searched.

【0258】途中判断方法では、局部的なピーク(極大
値)を検出できる鋭角率(後で説明する。)を用いてJ
Pが存在するか否かを判断する。図28Aに示すよう
に、レンズ移動開始位置から移動し、仮のNear端で
フラグをセットし、次に真のFar端でフラグをセット
し、フラグが2回セットされた時点で一旦途中判断を行
い、鋭角率を用いてJPが存在するかを判断する。JP
が存在すると判断したら、その位置にフォーカスを移動
させる。このように、Far端とNear端の間に途中
判断位置を設け、フォーカスがその位置に到達した時点
で、それまでのフォーカスの経過の中でJPが存在する
か否かを判断し、その結果によりそれ以降の探索を続行
するか否かを判断している。このような途中判断を採用
することにより、これまで全域探索を行った後でJPに
集束していたディテールの少ない被写体,暗い被写体等
のかなりの被写体が、全域探索を行わずに収束できるよ
うになる。この結果、AFの平均集束時間を短縮できる
ようになった。なお、途中判断位置は、1つには限られ
ない。所望に応じて複数個設けることが出来る。
In the halfway judgment method, J is determined by using an acute angle ratio (described later) at which a local peak (maximum value) can be detected.
It is determined whether P exists. As shown in FIG. 28A, the lens is moved from the lens movement start position, a flag is set at a temporary Near end, then a flag is set at a true Far end, and once the flag is set twice, an intermediate decision is made. Then, it is determined whether JP exists using the acute angle ratio. JP
If it is determined that is present, the focus is moved to that position. As described above, the midway determination position is provided between the Far end and the Near end, and when the focus reaches that position, it is determined whether or not JP exists during the progress of the focus up to that point. , It is determined whether or not to continue the subsequent search. By adopting such an intermediate judgment, a considerable subject such as a subject with little detail and a dark subject which has been focused on JP after performing the whole area search can be converged without performing the whole area search. Become. As a result, the average focusing time of AF can be shortened. Note that the midway determination position is not limited to one. A plurality can be provided as desired.

【0259】途中判断でJPが存在しないと判断した
ら、図28Bに示すように(端反転処理S1021で)
反転し、引き続き真のNear端まで探索を続行する。
真のNear端までフォーカスを進めたら、全域を探索
したことになり、フォーカスを収束させる位置を決めな
ければならない。
If it is determined in the midway determination that no JP exists, as shown in FIG. 28B (in edge reversal processing S1021)
Invert and continue the search to the true Near end.
When the focus is advanced to the true Near end, it means that the entire area has been searched, and a position for converging the focus must be determined.

【0260】上記端到達判定の処理フローを図29に示
す。以下にフローの説明を行なう。ステップS2901
でレンズの現在位置が端到達であるか判定する。端到達
してなければ、山下り判定に進み(図10のS102
2)、端到達してれば、次に進む。ステップS2902
で、端到達フラッグをセットする。即ち、フォーカス位
置がFar端ならFar端到達フラグをセットし、予め
定めた途中判定位置よりもNear端に近ければNea
r端到達フラグをセットする。ステップS2903で、
Far及びNearの両端を既に通過しているかを判定
する。上記2つの端到達フラグのどちらか一方のみがセ
ットされていれば片端到達と見なし、レンズを停止し、
端反転処理(図10のS1021)へ進む。上記のFa
r及びNearの端到達フラグがセットされていれば、
次に進む。
FIG. 29 shows the processing flow of the above-mentioned edge arrival determination. The flow will be described below. Step S2901
Is used to determine whether the current position of the lens is at the end. If the end has not been reached, the process proceeds to the hill descent determination (S102 in FIG. 10).
2) If the end is reached, proceed to the next. Step S2902
Then, set the end reaching flag. That is, if the focus position is at the far end, the far end arrival flag is set. If the focus position is closer to the near end than the predetermined midway determination position, near is set.
Set the r-end arrival flag. In step S2903,
It is determined whether both ends of Far and Near have already passed. If only one of the two end arrival flags is set, it is regarded as one end arrival, the lens is stopped,
The process proceeds to the edge inversion process (S1021 in FIG. 10). The above Fa
If the r and Near end arrival flags are set,
Next.

【0261】ステップS2904では、現フォーカス位
置が既に真のNear端に到達しているかを判定する。
真のNear端に到達している場合(図28BのQ
点)、ピーク位置選定処理(図10のS1020)に進
み、その処理のルールによりピーク位置の選定を行な
う。まだ真のNear端に到達していない場合(図28
AのP点)には、次に進む。ステップS2905では、
探索した範囲内に有意なピークが存在するかを判定す
る。ピークが有れば、ピーク位置選定処理(図10のS
1020)に進む。無ければ、次に進む。ステップS2
906では、処理の都合上、次の途中判断位置に真のN
ear端を代入し、そこでの途中判断をなくし、Nea
r端到達フラッグをリセットして探索動作を継続させ
る。ステップS2907では、現在位置がFar端であ
るか否かを判定し、Far端であれば端反転処理(図1
0のS1021)に進む。Far端でなければ、山下り
判定(S1022)へ進む。途中判断位置であれば進行
方向はそのままとする。
In step S2904, it is determined whether the current focus position has already reached the true Near end.
When reaching the true Near end (Q in FIG. 28B)
Point), the process proceeds to a peak position selection process (S1020 in FIG. 10), and a peak position is selected according to the rules of the process. When the true near end has not yet been reached (FIG. 28)
(P point of A). In step S2905,
It is determined whether a significant peak exists in the searched range. If there is a peak, a peak position selection process (S in FIG. 10)
Proceed to 1020). If not, go to the next. Step S2
In step 906, for the sake of processing, a true N
substituting the ear end, eliminating the midway judgment there, and
The r-end reaching flag is reset to continue the search operation. In step S2907, it is determined whether or not the current position is at the far end.
0 to S1021). If it is not the far end, the process proceeds to the hill descent determination (S1022). If it is a midway determination position, the traveling direction is left as it is.

【0262】3.14 途中判断方法 仮のNear端〜Far端を探索した際にその範囲内に
JPが存在するか否かを判断する途中判断方法は、「鋭
角率」を用いて行なっている。以下に鋭角率の説明を行
なう。
3.14 Intermediate Judgment Method The interim judgment method for judging whether or not a JP exists within a range from a tentative Near end to a Far end when searching is performed using "acute angle ratio". . The acute angle ratio will be described below.

【0263】特に暗いシーンで評価枠の周囲からの輝度
の高いエッジが侵入して偽山が発生した場合ようなに
は、フォーカスに対する評価値曲線はJPで最大となる
単峰形にはならない場合が少なくない。その一例を図3
0に示す。図30は横軸に時間を、縦軸に評価値の値を
とった評価値曲線である。フォーカスは等速度でレンズ
を移動させているため、横軸の時間はフォーカス位置と
見ることができる。鋭角率は、短いフィールド内でどれ
だけ上に尖っているか(極大値)の指標であり、図30
Aに示すような偽山を含む評価値曲線においてもJPを
見つけることができる。
Particularly in a dark scene where a high-luminance edge from the periphery of the evaluation frame invades and a false mountain occurs, the evaluation value curve for focus does not become a single-peak shape which is maximum in JP. Not a few. An example is shown in FIG.
0 is shown. FIG. 30 is an evaluation value curve in which the horizontal axis represents time and the vertical axis represents evaluation value. Since the focus is moving the lens at a constant speed, the time on the horizontal axis can be regarded as the focus position. The acute angle ratio is an index of how much the image is sharpened (maximum value) within a short field.
JP can be found in the evaluation value curve including the false mountain as shown in FIG.

【0264】鋭角率は、全ての評価値ID[i],(i
=1〜13)に対し、現在の評価値e0 [i]、3フィ
ールド前の評価値e3 [i]及び6フィールド前の評価
値e6 [i]を用いて計算し、式(4) で表わす。
The acute angle ratio is calculated for all evaluation values ID [i], (i
= 1 to 13) using the current evaluation value e0 [i], the evaluation value e3 [i] three fields before and the evaluation value e6 [i] six fields before, and is expressed by equation (4). .

【0265】[0265]

【数4】 (Equation 4)

【0266】鋭角率の概念は、図30Aに示すように、
e3 [i]とe6 [i]の差分とe3 [i]の比(e3
[i]−e6 [i])/e3 [i]である。但し、e3
[i]を越して単調増加する場合もあるので、両側を取
り、{(e3 [i]−e6 [i])/e3 [i]}×
{(e3 [i]−e0 [i])/e3 [i]}としてい
る。なお、(e3 [i]−e0 [i])と(e3 [i]
−e6 [i])の両方が負の値を取ると、鋭角率として
正の値が出てしまうので、(e3 [i]−e0 [i])
<0、又は、(e3 [i]−e6 [i])<0の場合
は、鋭角率はゼロとする。
The concept of the acute angle ratio is as shown in FIG.
The ratio of e3 [i] to the difference between e6 [i] and e3 [i] (e3
[I] -e6 [i]) / e3 [i]. However, e3
Since it may increase monotonically beyond [i], both sides are taken and {(e3 [i] -e6 [i]) / e3 [i]} ×
{(E3 [i] -e0 [i]) / e3 [i]}. Note that (e3 [i] -e0 [i]) and (e3 [i]
If both -e6 [i]) take a negative value, a positive value will appear as the acute angle ratio, so (e3 [i]-e0 [i])
If <0 or (e3 [i] -e6 [i]) <0, the acute angle ratio is set to zero.

【0267】ここで、実際に用いる式(4) との相違は、
分母の+1はe3 [i]がゼロの時に無限大となること
を回避するため(ゼロディバイド防止)である。
Here, the difference from the equation (4) actually used is as follows.
The denominator of +1 is to avoid infinity when e3 [i] is zero (preventing zero divide).

【0268】鋭角率の計算は毎フィールド行なわれ、鋭
角率の最大値更新及び最大値のレンズ位置更新も毎フィ
ールド行なわれる(図14B参照)。そして上記途中判
断において、それまでに記録された各評価値の鋭角率最
大値を調べ、鋭角率最大値が閾値(例えば、20)を越
えているものがあれば探索した範囲内にJPが存在する
として、ステップS1020のピーク位置選定処理に進
む。どの鋭角率最大値も20を越えていない場合、JP
が存在しないと判断する。
The calculation of the acute angle ratio is performed every field, and the maximum value of the acute angle ratio and the lens position of the maximum value are also updated every field (see FIG. 14B). In the above-mentioned halfway judgment, the maximum value of the acute angle rate of each evaluation value recorded so far is checked, and if any of the maximum values of the acute angle rate exceeds the threshold value (for example, 20), JP exists in the searched range. If so, the process proceeds to the peak position selection process in step S1020. If none of the maximum acute angle ratios exceeds 20, JP
Is determined not to exist.

【0269】この鋭角率の考えを毎フィールドに採用
し、所定の値を越えたらピーク発見とみなす方法は、後
で述べる山下り判定のチェックダウン方式でも用いられ
る。しかし、途中判断で用いる鋭角率とチェックダウン
方式とでは閾値が異なっており、チェックダウン方式の
方が閾値を高くしている。これは途中判断では探索領域
にわたっての鋭角率を用いているのに対してチェックダ
ウン方式では基本的には数フィールド(最大10フィー
ルド)の情報しか扱かっていないのでノイズに対してJ
P存在という結果を出させないためである。
The method of adopting the concept of the acute angle ratio in each field and determining that a peak value is found when the value exceeds a predetermined value is also used in a check-down method for hill descent determination described later. However, the threshold differs between the acute angle ratio used in the midway determination and the check-down method, and the threshold is higher in the check-down method. This is because the halfway judgment uses the acute angle rate over the search area, whereas the checkdown method basically deals with only a few fields (up to 10 fields) of information.
This is to prevent the result that P exists.

【0270】3.15 端反転処理 ステップS1021で端反転処理を行う。端反転処理
は、以下の処理を行なう。 フォーカスの進行方向を反転する。 山登りパラメータの初期化を行なう。但し、端到達フ
ラグのリセットは行なわない。
3.15 Edge Inversion Processing In step S1021, edge inversion processing is performed. The edge inversion processing performs the following processing. Reverses the direction of focus. Initialize the hill climbing parameters. However, the end arrival flag is not reset.

【0271】山登りパラメータの初期化に関しては山登
りループに入る直前に行なう「山登りパラメータの初期
化」と同じ処理であるが、片端に到達したフラグまでリ
セットしてしまうと端反転を無限に繰り返してしまうの
で端到達フラグだけはセットしたままにする。
The initialization of the hill-climbing parameter is the same processing as the “initialization of the hill-climbing parameter” performed immediately before entering the hill-climbing loop. However, if the flag reaching one end is reset, the end inversion is repeated indefinitely. Therefore, only the end arrival flag remains set.

【0272】3.16 ピーク選定 ステップS1020でピーク選定処理を行う。即ち、山
下り判定でピークが検出できずにFarとNearの両
端に到達した場合、又は、上記途中判断でピークありと
判断した場合には、探索した範囲内でフォーカスを収束
させる位置を選定する。
3.16 Peak Selection Peak selection processing is performed in step S1020. That is, when the peak is not detected in the hill descent determination and both ends of Far and Near are reached, or when it is determined that there is a peak in the midway determination, a position where the focus is converged within the searched range is selected. .

【0273】ピーク選定では、各評価値の鋭角率最大値
から最大の鋭角率を選定し、それが所定の値を越えてい
れば、その際最大鋭角率に対応するフォーカス位置をピ
ーク位置と決定する。越えていなければ、次善の策とし
て、特定の評価値に関して、最大値と最小値の差及び最
大値と最小値の比を求め、いずれも所定量以上ならば、
その評価値に対応するレンズ位置をピーク位置と決定す
る。
In the peak selection, the maximum acute angle ratio is selected from the maximum acute angle ratio of each evaluation value. If it exceeds a predetermined value, the focus position corresponding to the maximum acute angle ratio is determined as the peak position. I do. If not, as a second best measure, for a specific evaluation value, find the difference between the maximum value and the minimum value and the ratio of the maximum value to the minimum value.
The lens position corresponding to the evaluation value is determined as the peak position.

【0274】図31にピーク選定のフローを示す。ステ
ップS3101で、評価値IDO〜ID13各々に対す
る鋭角率最大値の中から最大の鋭角率及びそれに対応す
るレンズ位置を選定する。ステップS3102で、選定
された最大の鋭角率が所定値(例えば、20)を越えて
いたら、ステップS3103に進む。所定値以下の時
は、ステップS3104に進む。ステップS3103
で、最大鋭角率に対応するレンズ位置をピーク位置と決
定する。
FIG. 31 shows a flow of peak selection. In step S3101, the maximum acute angle ratio and the corresponding lens position are selected from the maximum acute angle ratios for the evaluation values IDO to ID13. If it is determined in step S3102 that the selected maximum acute angle ratio exceeds a predetermined value (for example, 20), the process advances to step S3103. If it is equal to or less than the predetermined value, the process proceeds to step S3104. Step S3103
Then, the lens position corresponding to the maximum acute angle ratio is determined as the peak position.

【0275】ステップS3104では、最大の鋭角率が
所定値以下の場合であり、この場合には鋭角率ではJP
を決定することが出来ない。そこで、最後の手段とし
て、評価値の最大最小の差が最大であった箇所をJPと
決定することとする。即ち、評価値ID0,ID6,I
D4,ID9及びID11の各評価値に対してこの優先
順位で、 最大値と最小値の差が所定量以上、且つ、 最大値と最小値の比が所定量以上、 の条件を満足するかを順に調べる。これら及びの条
件を満足する評価値が有れば、以降の探索を止め、満足
した評価値の最大値に対応するレンズ位置をピーク位置
と決定する。なお、このピーク位置は、メモリに蓄積さ
れている。なお、及びを満足する評価値が依然とし
て無い場合には、最後の手段として枠サイズが最大枠W
5である評価値ID11の最大値に対応するレンズ位置
をピークとしている。
In step S3104, the case where the maximum acute angle ratio is equal to or less than the predetermined value is used.
Cannot be determined. Therefore, as a last resort, a portion where the difference between the maximum and the minimum of the evaluation value is the maximum is determined as JP. That is, the evaluation values ID0, ID6, I
For each evaluation value of D4, ID9, and ID11, in this priority order, the difference between the maximum value and the minimum value is equal to or more than a predetermined amount, and the ratio of the maximum value to the minimum value is equal to or more than a predetermined amount. Check in order. If there is an evaluation value that satisfies these conditions, the subsequent search is stopped, and the lens position corresponding to the maximum value of the satisfied evaluation value is determined as the peak position. Note that this peak position is stored in the memory. If there is still no evaluation value that satisfies and, as a last resort, the frame size is
The lens position corresponding to the maximum value of the evaluation value ID11, which is 5, is the peak.

【0276】3.17 山下り判定(ピーク検出) ステップS1022で、山下り判定を行う。画像処理方
式のAFでは評価値のピークを通過して初めてJPを検
出ができるので、山下り判定は評価値のピーク検出判定
を意味する。従って、山下り、即ち評価値低下の検出方
法が非常に重要である。山下り判定では、差分判定、
チェックダウン判定、の2つ方法でピーク検出判定を
行なっている。
3.17 Downhill Decision (Peak Detection) In step S1022, a downhill decision is made. In the AF of the image processing method, the JP can be detected only after passing through the peak of the evaluation value. Therefore, the hill-down determination means the peak detection determination of the evaluation value. Therefore, a method of detecting a hill descent, that is, a decrease in the evaluation value is very important. In the downhill judgment, the difference judgment,
The peak detection determination is performed by two methods, that is, check-down determination.

【0277】差分判定とチェックダウン判定の相違は、
前者が現在フィールドの評価値と所定フィールド前の評
価値の差を監視し、この差が一定の閾値を越えたらピー
クを検出したとする。一方、後者は、前者が現在フィー
ルドの評価値と所定フィールド前の評価値の比を監視
し、この比が一定の閾値を越えたらピークを検出したと
する。差分判定では、コントラストの低い、従ってJP
においても評価値の低い被写体では評価値の変化が少な
く、JP検出が出来ない場合がある。チェックダウン判
定は、コントラストの高い、従ってJPにおいても評価
値の高い被写体でピーク検出が遅れ、その結果ピークを
行き過ぎるオーバーランが頻発するという欠点を有す
る。このAFのピーク検出では、差分判定(差)とチェ
ックダウン判定(比)の両方を用い、前者によりコント
ラストの高い被写体に対しては行き過ぎの増加なしにピ
ークを検出し、後者によりコントラストの低い被写体に
対してもピーク検出の感度を挙げることができるという
特徴を有している。
The difference between the difference judgment and the checkdown judgment is as follows.
It is assumed that the former monitors the difference between the evaluation value of the current field and the evaluation value before the predetermined field, and detects a peak when the difference exceeds a certain threshold. On the other hand, in the latter, it is assumed that the former monitors the ratio between the evaluation value of the current field and the evaluation value before the predetermined field, and detects a peak when this ratio exceeds a certain threshold. In the difference judgment, the contrast is low, and therefore JP
Also, in the case of a subject having a low evaluation value, the change in the evaluation value is small, and JP detection may not be performed in some cases. The check-down determination has a disadvantage that peak detection is delayed for a subject having a high contrast and thus a high evaluation value even in JP, and as a result, overruns exceeding the peak frequently occur. In this AF peak detection, both the difference determination (difference) and the check-down determination (ratio) are used, and the peak is detected without increasing excessively for a subject having a higher contrast by the former, and a subject having a lower contrast is detected by the latter. Has the characteristic that the sensitivity of peak detection can be increased.

【0278】差分判定は、以下に説明するように1フィ
ールド又は2フィールドの評価値の低下で山下りを判定
するので、ピークを行き過ぎる量が次に述べるチェック
ダウン方式と比較して少ない。しかし、実際問題とし
て、JPにおても評価値が低い(例えば、ID0で50
0以下の)被写体では方向判定結果が2回連続してDo
wnとならないケースがある。そのような評価値の低い
被写体に対してJP検出する目的で、チェックダウン方
式を用意している。最初、差分判定を行い、ピーク検出
が出来なかった場合、チェックダウン判定を行う。
In the difference determination, as described below, a hill descent is determined based on a decrease in the evaluation value of one field or two fields, so that the amount of overshoot is smaller than that of the check-down method described below. However, as a practical matter, the evaluation value is also low in JP (for example, 50 for ID0).
(0 or less), the direction determination result is twice consecutive Do.
wn may not be the case. A check-down method is prepared for the purpose of JP detection of a subject having such a low evaluation value. First, a difference determination is performed, and if a peak cannot be detected, a check-down determination is performed.

【0279】差分判定 差分判定は、本AFのピーク検出では基本となる判定方
法である。方向判定(S1016)における評価値ID
0及びID1の個別判定結果が連続して閾値回「upn
g th」(フィールド)Downが続いたらピーク検
出と判定し、ステップS1023に進みピーク位置算出
を行う。この閾値「upng th」は、焦点深度に応
じて変えている。即ち、焦点深度が長い場合には、1回
のDownとし、焦点深度が小さい場合には、評価値曲
線に小さな偽山が生じ易いという経験則にしたがって、
2回連続Downというルールで偽山トラップを防止し
ている。
Difference Determination The difference determination is a basic determination method in the peak detection of the main AF. Evaluation value ID in direction determination (S1016)
0 and ID1 are successively determined as “upn
If “g th” (field) Down continues, it is determined that a peak has been detected, and the flow advances to step S1023 to calculate a peak position. This threshold “upng th” is changed according to the depth of focus. That is, when the depth of focus is long, one down is performed. When the depth of focus is small, according to an empirical rule that a small false mountain easily occurs in the evaluation value curve,
The false mountain trap is prevented by the rule of twice consecutive Down.

【0280】 ここで、「焦点深度が短い」:レンズ最高速度で1フィ
ールドですすめるフォーカス量が焦点深度よりも大きい
ときをいう。 「焦点深度が長い」:レンズ最高速度で1フィールドで
すすめるフォーカス量が焦点深度よりも小さいときとき
をいう。
[0280] Here, "the depth of focus is short": This refers to a case where the focus amount advanced in one field at the maximum lens speed is larger than the depth of focus. “Long depth of focus”: refers to a case where the focus amount to be advanced in one field at the maximum lens speed is smaller than the depth of focus.

【0281】但し、先に説明したID7(輝度加算値)
の正規化差分値(50×|e0 [7]−e2 [7]|/
e0 [7])がピーク検出時に所定値(例えば、10
%)を越えている場合には、揺れによる誤動作で簡単に
停止するのを防止するため、揺れ又は外乱乱入としてピ
ーク検出判定の差分判定結果を無効に(メモリ内のダウ
ンカウント値をリセット)している。
Note that ID7 (luminance added value) described above is used.
Normalized difference value (50 × | e0 [7] -e2 [7] | /
e0 [7]) is a predetermined value (for example, 10
%), The difference judgment result of peak detection judgment is invalidated (reset down count value in the memory) as shaking or disturbance intrusion in order to prevent easy stop due to malfunction due to shaking. ing.

【0282】50×|e0 [7]−e2 [7]|/e0
[7])≧10% →差分判定結果を無効
50 × │e0 [7] -e2 [7] │ / e0
[7]) ≧ 10% → Invalid difference determination result

【0283】これにより、被写体の揺れや外乱により生
じるピーク検出の誤判定を低減することが出来る。その
結果、ボケ状態のフォーカスのままAF動作が終了する
誤動作を低減できる。
As a result, it is possible to reduce erroneous determination of peak detection caused by shaking or disturbance of the subject. As a result, it is possible to reduce a malfunction in which the AF operation ends with the focus in the blurred state.

【0284】差分判定が前に述べた方向判定の個別判定
を用いているので、各評価値の大きさにかかわらずDo
wnと判定するための差分閾値は同じである。評価値の
低い場合には閾値は小さくし、評価値の高い場合に閾値
は高くしても良いように思える。しかしながら評価値の
高いシーンは、一般にディテールの高い場合が多くわず
かなボケも目立ってしまう。評価値が高いからといって
閾値も高くするとJP頂上での山下りを見逃し、その結
果行き過ぎが目立ってしまう。これに対して評価値の低
いシーンでは、一般にディテールが低いのでフォーカス
がJPを多少行き過ぎてもあまり目立たない。従って、
評価値が高いシーンは厳しく、反対に評価位置が低いシ
ーンは緩く判定する必要がある。以上より各評価値の大
きさにかかわらず定数の閾値を採用している。
[0284] Since the difference judgment uses the individual judgment of the direction judgment described above, Do difference is made regardless of the magnitude of each evaluation value.
The difference threshold for determining wn is the same. It seems that if the evaluation value is low, the threshold value may be small, and if the evaluation value is high, the threshold value may be high. However, a scene with a high evaluation value generally has a high detail, and a slight blur is conspicuous. If the evaluation value is high but the threshold value is also high, the downhill at the top of the JP is overlooked, and as a result, the overshoot becomes conspicuous. On the other hand, in a scene with a low evaluation value, the details are generally low, so that even if the focus slightly exceeds the JP, it is not so noticeable. Therefore,
Scenes with high evaluation values must be determined strictly, while scenes with low evaluation positions need to be determined loosely. As described above, a constant threshold value is adopted regardless of the magnitude of each evaluation value.

【0285】チェックダウン判定 図32Bを用いてチェックダウン判定方法を示す。チェ
ックダウン判定方法では、各評価値に関してe0
[i]、ej [i]、e2j[i]の3つの評価値を用い
てピーク判定を行なう。[i]のiは評価値のIDを示
す。e0 [i]は現フィールドの評価値、ej [i]は
jフィールド前の評価値、e2j[i]は2jフィールド
前の評価値を示している。jは2から5までの整数であ
り2から始めて順次増加させる。判定の計算式を式(5)
(6)に示す。
Checkdown Determination A checkdown determination method will be described with reference to FIG. 32B. In the checkdown determination method, e0
Peak judgment is performed using three evaluation values of [i], ej [i], and e2j [i]. I in [i] indicates the ID of the evaluation value. e0 [i] is the evaluation value of the current field, ej [i] is the evaluation value of the jth previous field, and e2j [i] is the evaluation value of the 2jth previous field. j is an integer from 2 to 5, starting with 2 and increasing sequentially. Equation (5)
It is shown in (6).

【0286】[0286]

【数5】ejEj

〔0〕>a*e0〔i〕、且つ、ej
〔i〕>a*e2j〔i〕 但し、j=2,3,4,5 a=1.2(静止モード) =2.5(揺れモード1)
[0]> a * e0 [i] and ej
[I]> a * e2j [i], where j = 2, 3, 4, 5 a = 1.2 (static mode) = 2.5 (sway mode 1)

【0287】[0287]

【数6】1/b<ej〔7〕/e0〔7〕<b、且つ、 1/b<ej〔7〕/e2j〔7〕<b b=1.11 / b <ej [7] / e0 [7] <b, and 1 / b <ej [7] / e2j [7] <bb = 1.1

【0288】式(5) は、途中判断方法で説明した鋭角率
と同じ考えであり、サンプル時刻の異なる3つの評価値
のうち中央の評価値ej [i]が他の2つe0 [i],
e2j[i]より所定倍a以上大きければ(ej [i]/
e0 [i]>a、且つ、ej[i]/e2j[i]>
a)、ピーク検出と判定する。ここで、j=2,3,
4,5なので、ej [i]は2,3,4,5フィールド
前と順次拡げ、それに対応してe2j[i]も4,6,
8,10フィールド前と順次拡げて判定する。なお、定
数aは、揺れのない場合には小さくして検出感度を良く
している。揺れのある場合には、揺れによる評価評価値
の変動で誤検出しないように定数aを大きくしている。
Equation (5) has the same idea as the acute angle ratio described in the halfway judgment method, and the center evaluation value ej [i] of the three evaluation values having different sample times is the other two e0 [i]. ,
If it is greater than e2j [i] by a predetermined factor a or more, (ej [i] /
e0 [i]> a and ej [i] / e2j [i]>
a) It is determined that a peak has been detected. Where j = 2,3
4, 5, ej [i] is sequentially expanded to 2, 3, 4, 5 fields before, and correspondingly, e2j [i] is also 4, 6,
The determination is made by sequentially expanding the field eight and ten fields before. Note that the constant a is reduced when there is no fluctuation to improve the detection sensitivity. If there is a fluctuation, the constant a is increased so as not to erroneously detect the fluctuation of the evaluation value due to the fluctuation.

【0289】式(6) は、評価値ID7(Y−W1−HIn
tg,輝度加算値)の変化率を用いて、チェックダウン判
定に制限を与えた式である。即ち、評価値ID7の変化
率が式(6) を満足しない場合には、揺れ又は外乱ありと
して上記ピーク検出のチェックダウン判定を無効にして
いる。これにより、被写体の揺れや外乱により生じるピ
ーク検出の誤判定を低減することが出来る。その結果、
ボケ状態のフォーカスのままAF動作が終了する誤動作
を低減できる。
The equation (6) is equivalent to the evaluation value ID7 (Y-W1-HIn
(tg, luminance added value) using a rate of change, which limits the checkdown determination. That is, when the rate of change of the evaluation value ID7 does not satisfy the expression (6), it is determined that there is fluctuation or disturbance, and the check-down determination of the peak detection is invalidated. Thereby, it is possible to reduce erroneous determination of peak detection caused by shaking of the subject or disturbance. as a result,
It is possible to reduce a malfunction in which the AF operation ends with the focus in a blurred state.

【0290】このチェックダウン判定でもピーク検出で
きない場合には、先に説明を行なった保険モードでJP
に収束することになる。
If the peak cannot be detected even in this check-down determination, the JP is set in the insurance mode described earlier.
Converges to

【0291】これら差分判定,チェックダウン判定及び
保険モードの動作の比較を図32Bの図表にまとめて示
す。図表において、検出遅延時間とは、評価値がピーク
に達してからピーク検出されるまでの時間を示す。検出
遅延時間は小さければそれだけ行き過ぎ量が小さくて済
む。図表より検出遅延時間は、差分判定<チェックダウ
ン判定<保険モード、となっていることがわかる。従っ
て、ピークの検出さえできれば差分判定が望ましい。し
かしながら、評価値が低い場合には差分判定のピーク検
出感度は小さいので、他の判定に頼ることになる。
FIG. 32B is a table summarizing the difference judgment, the checkdown judgment, and the operation in the insurance mode. In the chart, the detection delay time indicates the time from when the evaluation value reaches the peak to when the peak is detected. The smaller the detection delay time, the smaller the overshoot amount. From the chart, it can be seen that the detection delay time satisfies the difference determination <checkdown determination <insurance mode. Therefore, the difference determination is desirable as long as the peak can be detected. However, when the evaluation value is low, the peak detection sensitivity of the difference determination is small, so that the other determination is required.

【0292】上記チェックダウン判定に使用している評
価値は以下のとおりである。判定の順番は番号順となっ
ており、ピークが検出できたら残りの判定は行なわな
い。 (1) 揺れのない場合 ID0(IIR1−W1−HPeak) ID6(IIR1−W1−HIntg) ID3(IIR4−W1−HPeak) ID4(IIR0−W1−VIntg)
The evaluation values used for the check-down determination are as follows. The order of determination is numerical, and if a peak is detected, the remaining determination is not performed. (1) When there is no shaking ID0 (IIR1-W1-HPeak) ID6 (IIR1-W1-HIntg) ID3 (IIR4-W1-HPeak) ID4 (IIR0-W1-VIntg)

【0293】なお、ここでID4を使用する場合には、
次の制限がある。 (a) ID0 < 600 (b) ID6 < 600 (c) ID3 < 1600 これは、VIntg方式を使用する垂直方向評価値ID4を
使用することにより、水平方向成分が無く、垂直方向成
分だけがある水平線のシーンのようなシーンに対しても
可能になった。しかし、ID4は、水平方向成分がある
と、フォーカスを動かした際に伴う画角の変更,ボケの
変化によるエッジの侵入等による画素の移動が起こり、
水平方向変化がID4を算出する際の水平方向64画素
平均計算に影響し、シーンによっては評価値ID4に偽
山を発生させることになる。これを回避するために、H
Peak方式及びHIntg方式を使用する評価値ID0,ID
6及びID3によって、水平方向成分が或る一定以上あ
る場合には、垂直方向評価値ID4を使用してピーク検
出を行わないように制限を付したのである。
When ID4 is used here,
There are the following restrictions. (a) ID0 <600 (b) ID6 <600 (c) ID3 <1600 This is a horizontal line having no horizontal component and only a vertical component by using the vertical evaluation value ID4 using the VINgt method. It became possible even for scenes like the scene of. However, in the case of ID4, if there is a horizontal component, a pixel shift occurs due to a change in the angle of view caused by moving the focus, an intrusion of an edge due to a change in blur, and the like.
The change in the horizontal direction affects the calculation of the average of 64 pixels in the horizontal direction when calculating ID4, and a false mountain is generated in the evaluation value ID4 in some scenes. To avoid this, H
Evaluation values ID0 and ID using Peak method and HIntg method
According to No. 6 and ID3, when the horizontal direction component is more than a certain value, the vertical direction evaluation value ID4 is used to restrict the peak detection from being performed.

【0294】(2) 揺れている場合 ID6(IIR1−W1−HIntg)(2) In case of shaking ID6 (IIR1-W1-HIntg)

【0295】3.18 ピーク位置算出(重心計算) ステップS1023で、ピーク位置算出を行う。即ち、
山下り判定でピークが検出されたらピーク位置を算出す
る。
3.18 Peak Position Calculation (Calculation of Center of Gravity) In step S1023, a peak position is calculated. That is,
If a peak is detected in the downhill determination, the peak position is calculated.

【0296】図33は、フォーカスを一定速度で進め、
1フィールド毎に評価値及びフォーカス位置をサンプル
する様子を示している。レンズ速度が、1フィールドで
進む1焦点深度以内であれば、評価値が最大となるフォ
ーカス位置を選び、その位置にフォーカスを戻せばJP
追い込み精度を1/2焦点深度に納めることもできる。
FIG. 33 shows that the focus is advanced at a constant speed,
This shows a state where the evaluation value and the focus position are sampled for each field. If the lens speed is within one focal depth, which advances in one field, select the focus position where the evaluation value is the maximum, and return the focus to that position.
The driving accuracy can be reduced to a half depth of focus.

【0297】ところが、「レンズ速度設定」(S101
0)で述べたように高速のままJPを通り過ぎることも
あり、概して、1フィールドで進むフォーカス量は焦点
深度よりも大きい。この場合、評価値ピークにサンプル
箇所が一致しなく、飛び越してしまうことが多い。そこ
で、ピーク値をサンプルしたデータの中から単に選ぶの
でなく、補間計算をして正確なJP位置を算出する必要
が生じる。
However, "lens speed setting" (S101)
As described in (0), the image may pass through the JP at a high speed, and generally the focus amount advanced in one field is larger than the depth of focus. In this case, the sample location does not coincide with the evaluation value peak and often jumps. Therefore, it is necessary to calculate an accurate JP position by performing interpolation calculation instead of simply selecting the peak value from the sampled data.

【0298】本AFでは、正確なJP位置を算出のため
の補間計算として重心計算式(7) を用いている。多少の
ノイズがあってもJP算出結果には影響が少ないこと、
最小二乗法と異なりf( x) の形を決める必要がないこ
と、から重心計算法を採用した。被写体の形状は無数に
あるので評価値曲線は、最小二乘法のような数式でモデ
リングすることはできないからである。
In this AF, the center of gravity calculation formula (7) is used as an interpolation calculation for calculating an accurate JP position. Even if there is some noise, the JP calculation result has little effect,
Unlike the least square method, it is not necessary to determine the shape of f (x), so the center of gravity calculation method was adopted. This is because the evaluation value curve cannot be modeled by a mathematical formula such as the least squares method because the shapes of the subject are innumerable.

【0299】[0299]

【数7】 (Equation 7)

【0300】式(7) でxはレンズ位置、x1,x2は積
分範囲、f(x)はレンズ位置xにおける評価値の値を
示している。積分範囲の設定方法に関しては後で説明す
る。この重心計算を行なうことにより、図33に示すよ
うにサンプル点が評価値ピーク、即ちJP位置と重なら
なくともJP位置を算出できるようになる。
In equation (7), x is a lens position, x1 and x2 are integration ranges, and f (x) is an evaluation value at the lens position x. A method of setting the integration range will be described later. By performing the calculation of the center of gravity, as shown in FIG. 33, the JP position can be calculated even if the sample point does not overlap the evaluation value peak, that is, the JP position.

【0301】重心計算の精度を上げるためには、積分範
囲の設定を適正に選ぶ必要がある。例えば、図34Aに
示すように評価値ピークの前後でアンバランスに積分範
囲を設定すると算出結果とJPとのずれは大きくなって
しまう。
In order to increase the accuracy of calculating the center of gravity, it is necessary to appropriately select the setting of the integration range. For example, as shown in FIG. 34A, if an integration range is set to imbalance before and after the evaluation value peak, the deviation between the calculation result and JP becomes large.

【0302】図34Bに示すように、積分範囲は山下り
を検出した時点のレンズ位置をx2とし、それまで経過
したレンズ位置と評価値とで作られる評価値曲線におけ
る山の反対側でf(x2)と等しい評価値に対応したレ
ンズ位置x1を探し、それを用いるのが最適である。
As shown in FIG. 34B, the integration range is defined as x2 where the lens position at the time of detecting the hill descent is f (2) on the opposite side of the hill in the evaluation value curve formed by the lens position and the evaluation value that have passed. It is optimal to find the lens position x1 corresponding to the evaluation value equal to x2) and use it.

【0303】ここで、実際にはサンプルデータは離散的
(1フィールドに1回サンプル)なので式(7) のように
連続積分はできない。そこで式(8) に示すように離散的
積分計算を行なっている。
Here, since the sample data is actually discrete (one sample in one field), continuous integration cannot be performed as in equation (7). Therefore, discrete integral calculation is performed as shown in equation (8).

【0304】[0304]

【数8】 (Equation 8)

【0305】この場合、積分範囲に関しては、探し出し
たx1がバッファに格納したデータと一致している場合
には、離散的積分計算の開始データとしてそのまま用い
る。しかし、通常は一致しない。一致しない場合には、
f(xp)≦f(x1)で且つx1に最も近いレンズ位
置xpを、バッファに格納されているデータの中から検
索して積分開始位置として用いる。
In this case, regarding the integration range, if the found x1 matches the data stored in the buffer, it is used as it is as the start data of the discrete integration calculation. But usually they do not match. If they do not match,
The lens position xp that is f (xp) ≦ f (x1) and is closest to x1 is retrieved from the data stored in the buffer and used as the integration start position.

【0306】この場合、積分範囲としては若干アンバラ
ンスとなるが、以下の理由により実際にはそれほど影響
がない。その理由は、評価値ピーク前後でレンズの移
動速度が速い場合にはf(xp)は通常評価値ピークと
比べて十分小さく、積分計算の寄与が小さいので、JP
計算精度にはあまり影響しないこと、評価値ピーク前
後でレンズの移動速度が遅い場合には上記寄与が大きく
なるが、逆に評価値データ間の間隔が狭くなることによ
りJP計算精度が上がるので、結果として相殺されて、
精度低下は相殺されるからである。
In this case, although the integration range is slightly unbalanced, it is not so much affected for the following reason. The reason is that when the moving speed of the lens is high before and after the evaluation value peak, f (xp) is sufficiently smaller than the normal evaluation value peak, and the contribution of the integral calculation is small.
The contribution does not greatly affect the calculation accuracy, and the contribution increases when the lens movement speed is slow before and after the peak of the evaluation value. On the contrary, since the interval between the evaluation value data is narrow, the JP calculation accuracy is increased. Offset as a result,
This is because a decrease in accuracy is offset.

【0307】以上のピーク位置算出法においても、どの
ようなシーンにおいても算出結果とJPとのずれが焦点
深度内に納まっている保証はない。評価値曲線の形がモ
デリングできないので、上記重心計算の精度を算出する
ことができないからである。しかし、今回開発したAF
の実力では、15倍のレンズで焦点距離120mm、ア
イリス1.7、エクステンダ2倍を挿入した条件下で、
通常のシーンをAFさせた場合には、要求仕様を満足し
十分な精度でジャストフォーカスに収束できることを確
認している。
Even in the above-described peak position calculation method, there is no guarantee that the deviation between the calculation result and JP is within the depth of focus in any scene. This is because the shape of the evaluation value curve cannot be modeled, so that the accuracy of the above-mentioned calculation of the center of gravity cannot be calculated. However, the newly developed AF
Under the condition that a 15x lens and a focal length of 120 mm, an iris 1.7 and an extender 2x are inserted,
It has been confirmed that when AF is performed on a normal scene, it is possible to satisfy the required specifications and converge to just focus with sufficient accuracy.

【0308】3.19 ピーク位置移動 ステップS1024でフォーカスレンズを移動して、ピ
ーク位置移動処理を行う。AFブロック137からレン
ズブロック側CPU114に対し、フォーカスレンズ制
御指令が与えられることにより行われる(図1参照)。
即ち、ピーク位置算でピーク位置が算出できたら、ピー
ク位置移動処理でピーク位置にフォーカスを移動させ
る。この処理では算出時点でのフォーカス位置と戻るべ
きフォーカス位置との差を計算し、もしその差が所定距
離以上の場合にはその距離を25フィールドで戻るよ
う、レンズ速度の算出を行なっている。ピーク位置から
離れている時は比較的速く、近くに在る時は比較的遅い
速度で移動するためである。速度を算出したら、その速
度を速度指令としてレンズ側に送信する。レンズが目標
に近づいたら位置指令に切り替え、目標位置に正確に到
達させている。
3.19 Peak Position Movement In step S1024, the focus lens is moved to perform peak position movement processing. This is performed by giving a focus lens control command from the AF block 137 to the lens block side CPU 114 (see FIG. 1).
That is, when the peak position is calculated by the peak position calculation, the focus is moved to the peak position by the peak position moving process. In this process, the difference between the focus position at the time of calculation and the focus position to be returned is calculated, and if the difference is greater than or equal to a predetermined distance, the lens speed is calculated so that the distance is returned in 25 fields. This is because when moving away from the peak position, it moves at a relatively high speed, and when it is near, it moves at a relatively slow speed. After calculating the speed, the speed is transmitted to the lens as a speed command. When the lens approaches the target, the position is switched to a position command to accurately reach the target position.

【0309】このように、所定距離以上離れている場合
に25フィールドかけてレンズをピーク位置に戻してい
るのは、あまり高速に戻すと画面の動きが不自然にぎく
しゃくした感じを受けるからである。
As described above, the reason why the lens is returned to the peak position over 25 fields when the distance is equal to or more than the predetermined distance is that if the speed is returned too high, the screen movement will feel unnaturally jerky. .

【0310】次に、未だ説明していないのロングフィル
タ判定(S1003)及びロングフィルタ処理(S10
04)について説明する。鏡面をもつ被写体が揺れなが
らライト,太陽光を反射させている場合やミラーボール
等の発光体が激しく移動している場合には、各評価値,
輝度加算値が激しく変動する。このようなシーンでは、
JPから離れていても先に説明した山下り判定(ピーク
検出)の条件を簡単に満足してしまい、ぼけた位置でレ
ンズが止ってしまう。山下り判定ではID7(輝度加算
値)の正規化差分(即ち、変化)を調べ、変化が大きい
場合にはピーク検出を無効にしているが、すべての場合
に完全に見抜けるわけではない。
Next, a long filter judgment (S1003) and a long filter process (S10) which have not been explained yet.
04) will be described. In the case where a subject having a mirror surface is reflecting light and sunlight while shaking, or when a light emitting body such as a mirror ball is moving violently, each evaluation value,
Brightness addition value fluctuates drastically. In such a scene,
Even if the user is away from the JP, the above-described condition of the hill descent determination (peak detection) is easily satisfied, and the lens stops at a blurred position. In the hill descent determination, the normalized difference (that is, change) of ID7 (luminance added value) is checked, and if the change is large, the peak detection is invalidated, but not all cases can be completely overlooked.

【0311】そこで、輝度加算値等の各評価値が激しく
変動する被写体に対してもAFさせることを目的とし
て、このロングフィルタモードを設けている。
Therefore, this long filter mode is provided for the purpose of performing AF even on a subject whose evaluation values such as a luminance addition value vary greatly.

【0312】3.19 ロングフィルタ判定 先ず、ステップS1003で、ロングフィルタ判定を行
う。図9に示したAFフローチャートでは、通常、山登
りループを何回か回りながら評価値ピークを検出してい
る。しかし、異常に揺れが激しい場合には山登りループ
で誤動作してしまう危険性がある。このような誤動作を
回避するため、予め、ロングフィルタ判定を行って揺れ
が異常に激しいか否かを判定し、揺れが激しいと判定さ
れた場合には、ロングフィルタ処理(S1004)を行
い、山登りステージに進まないでAF動作を終了する。
ロングフィルタ処理を起動するか又は起動しないで通常
のAF処理を行なうかは、次の条件で判定する。
3.19 Long Filter Determination First, in step S1003, long filter determination is performed. In the AF flowchart shown in FIG. 9, the evaluation value peak is normally detected while going around the hill-climbing loop several times. However, when the vibration is abnormally strong, there is a risk of malfunctioning in a hill climbing loop. In order to avoid such a malfunction, it is determined in advance whether or not the shaking is abnormally severe by performing a long filter determination. If it is determined that the shaking is severe, a long filter process (S1004) is performed to perform hill climbing. The AF operation ends without proceeding to the stage.
Whether to activate the long filter processing or to perform the normal AF processing without activation is determined under the following conditions.

【0313】ロングフィルタ判定において、揺れが激し
いか否かの判定には、レンズ静止時の揺れ判定(S10
01)と同様の手順により行う。但し、レンズ静止時の
揺れ判定では、評価値ID0とID7(輝度加算値)の
正規化差分値の最大値である代表正規化差分値を用いて
判断しているが、このロングフィルタ判定では更にこれ
ら評価値に対して評価枠をW3に拡げた評価値ID9と
ID12(輝度加算値)を加えて判定している。
In the long filter determination, it is determined whether or not the shaking is severe.
01) is performed in the same procedure. However, in the shake determination when the lens is stationary, the determination is made using the representative normalized difference value that is the maximum value of the normalized difference values of the evaluation values ID0 and ID7 (brightness added value). For these evaluation values, judgment is made by adding the evaluation values ID9 and ID12 (brightness added value) obtained by expanding the evaluation frame to W3.

【0314】評価値ID0及びID9の平均値(揺れ判
定期間12フィールドの平均値)が200以上なら、 ndiff e[0]≧30%、且つ ndiff e[9]≧30% → 揺れモード2 とする。
If the average value of the evaluation values ID0 and ID9 (the average value of the 12 fields in the shake determination period) is 200 or more, ndiff e [0] ≧ 30% and ndiff e [9] ≧ 30% → shake mode 2 .

【0315】評価値ID0の平均値が200未満なら、 ndiff e[7]≧12.5%、且つ ndiff e[12]≧12.5% → 揺れモード2 とする。If the average value of the evaluation value ID0 is less than 200, ndiff e [7] ≧ 12.5% and ndiff e [12] ≧ 12.5% → swing mode 2

【0316】ロングフィルタ判定において、揺れが大
(揺れモード2)であれば、ロングフィルタ処理(S1
004)に移行する。揺れが大でなければ、通常のAF
処理に進む。この条件は、実験的に求めた。
In the long filter determination, if the swing is large (swing mode 2), the long filter processing (S1
004). If the vibration is not large, normal AF
Proceed to processing. This condition was determined experimentally.

【0317】3.20 ロングフィルタ処理 ロングフィルタモードは、先に説明した山登りステージ
とは異なり、長い移動平均を取りながら等速度でレンズ
を動かして、移動平均が最大となるレンズ位置にレンズ
を戻す方式を採っている。この利点は、評価値の変動の
激しい被写体でも誤動作の確率が少ないことである。欠
点は、移動平均を多数取っているのでピークの検出が比
較的遅く、また、ピーク行き過ぎ量が大きいことであ
る。
3.20 Long Filter Mode In the long filter mode, unlike the hill-climbing stage described above, the lens is moved at a constant speed while taking a long moving average, and the lens is returned to the lens position where the moving average is maximized. The method is adopted. An advantage of this is that the probability of a malfunction is small even for a subject whose evaluation value varies greatly. The disadvantages are that the detection of peaks is relatively slow because a large number of moving averages are taken, and the overshoot of the peaks is large.

【0318】図36にロングフィルタ処理のフローチャ
ートを示す。以下に各処理の説明を行なう。ロングフィ
ルタ処理を開始する。ステップS3601では、次の条
件で、焦点深度に対応した等速度で動かすレンズ速度を
設定する。 FS≦全ストローク/1000 → v=全ストローク/180 /フィールド FS≧全ストローク/ 200 → v=全ストローク/ 90 /フィールド 全ストローク/1000 ≦ Fs ≦ 全ストローク/200 → 上記範囲 の比例配分した速度 但し、Fs:焦点深度 全ストローク:フォーカスレンズを物理的なFar端〜
Near端間移動させたときのパルスモータのパルス数
で表したもの。なお、カメラのレンズによって異なる
が、実際の光軸方向移動距離は十数mm程度であり、こ
れを本実施例では0〜20000パルスに対応させてい
る。
FIG. 36 is a flowchart of the long filter processing. Hereinafter, each process will be described. Start long filter processing. In step S3601, a lens speed to be moved at a constant speed corresponding to the depth of focus is set under the following conditions. FS ≦ total stroke / 1000 → v = total stroke / 180 / field FS ≧ total stroke / 200 → v = total stroke / 90 / field all stroke / 1000 ≦ Fs ≦ total stroke / 200 → Proportionally distributed speed in the above range , Fs: Depth of focus Full stroke: Focus lens from physical Far end to
Expressed by the number of pulses of the pulse motor when moved between Near ends. The actual moving distance in the optical axis direction is about tens of mm, depending on the lens of the camera, and this corresponds to 0 to 20,000 pulses in this embodiment.

【0319】ステップ3603で、レンズの移動方向を
設定する。初期設定であれば図35に従う。図35で横
軸はFar端からNear端までのレンズ位置FPOS
(Focus Position)をパルス数0〜20000で特定し
ており、FPOSはフォーカスリングの回転角と1次関
数の関係となっている。
In step 3603, the moving direction of the lens is set. If it is an initial setting, it follows FIG. In FIG. 35, the horizontal axis represents the lens position FPOS from the far end to the near end.
(Focus Position) is specified by the number of pulses 0 to 20000, and FPOS has a relationship between the rotation angle of the focus ring and a linear function.

【0320】 レンズ位置 移動方向 0(Far端)〜 5000 → Far端方向 5000〜10000 → Near端方向 10000〜15000 → Far端方向 15000〜20000 → Near端方向 Lens position moving direction 0 (Far end) to 5000 → Far end direction 5000 to 10000 → Near end direction 10000 to 15000 → Far end direction 15000 to 20000 → Near end direction

【0321】ステップS3604,3605,3607
で、ロングフィルタ山下り判定を行う。先ず、S360
4では、毎フィールド輝度正規化評価値の移動平均(段
数11段)計算及びその最大値更新処理を行ない、反転
回数が1の時に輝度正規化評価値が最大値の半分(50
%)又は端に到達したならば、ステップS3608に進
み反転回数を1にセットしてステップ3603に戻る。
そうでなけらば、ステップS3608のレンズ位置算出
に進む。。
Step S3604, 3605, 3607
Then, the long filter downhill determination is performed. First, S360
In step 4, a moving average (11 steps) of the luminance normalization evaluation value for each field is calculated and its maximum value is updated. When the number of inversions is 1, the luminance normalization evaluation value is half (50) of the maximum value.
%) Or the end, the flow advances to step S3608 to set the number of inversions to 1, and returns to step 3603.
Otherwise, the process proceeds to the lens position calculation in step S3608. .

【0322】この輝度正規化評価値とは、評価値ID0
に、ID7(輝度加算値)の32個移動平均を掛け、I
D7の3個の移動平均で割ったものである。
The luminance normalized evaluation value is the evaluation value ID0
Is multiplied by a moving average of 32 ID7s (additional luminance values) to obtain I
D7 divided by three moving averages.

【0323】e[0]*{Σ(e0 [7]+…+e31
[7])/32}÷{Σ(e0 [7]+…+e2
[7])/3}
E [0] * {Σ (e0 [7] +... + E31
[7]) / 32} ÷ {Σ (e0 [7] + ... + e2
[7]) / 3}

【0324】ここで、(輝度加算値32個の移動平均/
輝度加算値3個の移動平均)を掛けているのは、ミラー
による強い反射光の影響を減小させるためである。
Here, (moving average of 32 luminance added values /
(Moving average of three luminance addition values) is used to reduce the influence of strong reflected light from the mirror.

【0325】図37は、変動の大きい評価値ID0に
(輝度加算値の32移動平均/輝度加算の3移動平均)
を掛け、更に段数11の移動平均を取ることにより変動
が小さく、即ちノイズを減少して、JP位置が見つけ易
くなる様子を示している。移動平均11段を取ることによ
り評価値ピーク位置が5フィールド遅れる(厳密には、
上述したように評価値自体が3フィールドの移動平均を
とっているため1フィールド遅れ、更に、CCDは1フ
ィールド蓄積しているので、結局7フィールド遅れる
が、本発明に関しては直接関係ないので省略する。)。
FIG. 37 shows that the evaluation value ID0 having a large fluctuation (32 moving average of luminance addition value / 3 moving average of luminance addition)
, And taking a moving average of 11 steps, the variation is small, that is, the noise is reduced, and it is easy to find the JP position. By taking 11 steps of moving average, the evaluation value peak position is delayed by 5 fields (strictly speaking,
As described above, since the evaluation value itself is a moving average of three fields, it is delayed by one field, and furthermore, since the CCD stores one field, it is eventually delayed by seven fields, but is omitted because it is not directly related to the present invention. . ).

【0326】ステップS3605で、反転回数が0の時
に輝度正規化評価値が最大値の半分(50%)又は端に
到達したならば、ステップS3606に進み反転回数を
1にセットし、ステップS3603に進んで移動方向設
定が行われる。そうでなけらば、ステップS3607に
進む。
If the luminance normalized evaluation value reaches half (50%) or the end of the maximum value when the number of inversions is 0 in step S3605, the flow advances to step S3606 to set the number of inversions to 1, and the flow advances to step S3603. Then, the moving direction is set. Otherwise, the process proceeds to step S3607.

【0327】ステップS3607では、次の移動位置を
レンズに指定して、ステップS3604に戻る。
In step S3607, the next movement position is specified for the lens, and the flow returns to step S3604.

【0328】ステップS3608では、JP位置算出を
行う。ロングフィルタ山下り判定で輝度正規化評価値が
最大値に対して半分に低下し、且つそれまでに既に反転
していればJPが見つかったとしてロングフィルタ処理
(S1004)に入る。輝度正規化評価値は先に述べた
ように11段の移動平均を取っているのでピークが出現
するレンズ位置はそれだけで5フィールド遅れる(実際
には7フィールド遅れる。)。従って、レンズ速度×7
フィールド分だけレンズ位置を戻す必要がある。JP位
置算出処理ではこれらの遅れも考慮してJP位置の算出
を行なう。
[0328] In step S3608, the JP position is calculated. If the luminance normalized evaluation value is reduced to half of the maximum value in the long-filter hill-down determination and has already been inverted by that time, it is determined that a JP has been found, and the process enters long filter processing (S1004). As described above, since the luminance normalized evaluation value takes a moving average of 11 steps, the lens position where the peak appears is delayed by 5 fields (actually, it is delayed by 7 fields). Therefore, the lens speed × 7
It is necessary to return the lens position by the amount of the field. In the JP position calculation processing, the JP position is calculated in consideration of these delays.

【0329】ステップS3609では、JP位置へ移動
を行う。JP位置算出処理で算出した位置へレンズを移
動させる。
[0329] In step S3609, the player moves to the JP position. The lens is moved to the position calculated in the JP position calculation processing.

【0330】ステップS3610では、ロングフィルタ
処理を終了する手続きを行ない、今回のAF処理は終了
する。本実施例のAFはワンショットタイプであり、次
回AFスイッチがプッシュされるまではアイドリング状
態となる。
[0330] In step S3610, a procedure for ending the long filter processing is performed, and the current AF processing ends. The AF of this embodiment is a one-shot type, and is in an idling state until the AF switch is pushed next time.

【0331】図38にロングフィルタ処理によるレンズ
の動きの一例を示す(図36のも参照)。図中、
ロングフィルタ処理が起動され、先に述べた移動方向設
定処理で動く方向が決まり、に示すように等速度で動
きだす。この場合、輝度正規化評価値は減少する方向な
ので最大値及び最大値位置は出発点のままとなる。レン
ズは進行して、輝度正規化評価値が最大値の半分にな
り、かつそれまで反転していないので、その位置から反
転して再度スタートする。
FIG. 38 shows an example of the movement of the lens by the long filter processing (see also FIG. 36). In the figure,
The long filter processing is activated, the moving direction is determined by the moving direction setting processing described above, and the moving starts at a constant speed as shown in FIG. In this case, since the luminance normalized evaluation value decreases, the maximum value and the maximum value position remain at the starting point. The lens advances and the luminance normalized evaluation value becomes half of the maximum value, and since it has not been inverted, it is inverted from that position and restarted.

【0332】反転後レンズは等速度で進み、に示すよ
うに正規化評価値ピークを通過して更に進行する。輝度
正規化評価値が最大値の半分となったら、今度はそれま
でに反転しているので先に述べたJP位置算出処理でJ
P位置を算出する。その後、に示すようにJP位置に
戻り、ロングフィルタ処理を終了する。
After the reversal, the lens advances at a constant speed, and further advances through the normalized evaluation value peak as shown in FIG. When the luminance normalized evaluation value becomes half of the maximum value, it has been inverted by this time, so J
Calculate the P position. After that, as shown in (2), the process returns to the JP position, and the long filter processing ends.

【0333】以上により、本実施例の説明を終了する。The description of this embodiment is completed.

【0334】[実施例の効果]以下、本実施例の効果に
関して、項目別に説明する。 (1) レンズ静止時の揺れ判定(S1001)において
は、AFスイッチが押されてから所定期間経過するまで
の評価値データは、揺れ判定の計算には寄与させていな
い。即ち、パン及びスイッチONによる影響が生じる所
定期間、揺れ判定の計算に寄与させないことにより、こ
れらの影響を排除した揺れ判定をすることができ、誤判
定を回避できる。もし、この誤判定が生じると、被写体
が揺れていなくとも揺れていると判定され、高速でレン
ズが駆動され、ジャストピンを通り越した後のレンズ行
き過ぎ量が大きいものとなってしまう危険がある。本実
施例では、被写体が揺れていなくとも揺れていると誤判
定する、不都合を解消することが出来る。
[Effects of Embodiment] The effects of this embodiment will be described below item by item. (1) In the shake determination when the lens is stationary (S1001), the evaluation value data from when the AF switch is pressed until a predetermined period elapses does not contribute to the calculation of the shake determination. That is, by not contributing to the calculation of the swing determination during a predetermined period in which the influence of the pan and the switch ON occurs, the swing determination excluding these effects can be performed, and erroneous determination can be avoided. If this erroneous determination occurs, it is determined that the subject is shaking even if the subject is not shaking, and the lens is driven at a high speed, and there is a risk that the amount of overshoot of the lens after passing through the just pin becomes large. In the present embodiment, it is possible to eliminate the inconvenience of erroneously determining that the subject is shaking even if the subject is not shaking.

【0335】(2) 本実施例ではレンズ移動開始前のレン
ズ静止時に予め揺れ判定(S1001)を行うことによ
り、前もってレンズ移動速度を決定することが出来る。
更に、レンズ移動開始後も周期的に揺れ判定(S101
4)を行うことにより、レンズ静止時の予め揺れ判定で
は検出できない大ボケ状態での揺れ判定を正確に行うこ
とが出来る。
(2) In this embodiment, the lens movement speed can be determined in advance by performing the shake determination (S1001) in advance when the lens is stationary before the lens movement starts.
Further, even after the movement of the lens is started, the swing is periodically determined (S101).
By performing 4), it is possible to accurately perform a shake determination in a large blur state that cannot be detected by the shake determination in advance when the lens is stationary.

【0336】(3) 本実施例のレンズ速度設定(S101
0)では、揺れの有る場合には、レンズを高速で動作さ
せ、高速で移動させて低速切り替えは行なわない。揺れ
があるとレンズが静止していても評価値が変動するの
で、AFを開始すると、評価値には、揺れによる寄与
と、レンズを動かしてフォーカスが変化することによる
評価値変化の寄与、とが合成される。揺れによる寄与が
大きいと「ぼけたフォーカス位置でAFが収束する」よ
うな誤動作を起こしてしまう。この誤動作を避けるため
に、本実施例では、レンズの速度を高速にすることによ
り、揺れによる寄与分を相対的に減らし、フォーカスが
変化することによる評価値変化の寄与分を相対的に大き
くし、揺れに影響しない評価値特性を得ている。
(3) Setting the lens speed in this embodiment (S101
In the case of 0), when there is shaking, the lens is operated at high speed, moved at high speed, and low-speed switching is not performed. Since the evaluation value fluctuates even if the lens is stationary when there is shaking, when AF is started, the evaluation value includes a contribution due to shaking and a contribution due to a change in evaluation value due to a change in focus caused by moving the lens. Are synthesized. If the contribution from the shake is large, a malfunction such as “AF converges at a blurred focus position” occurs. In order to avoid this malfunction, in this embodiment, by increasing the speed of the lens, the contribution of the fluctuation is relatively reduced, and the contribution of the evaluation value change due to the change of the focus is relatively increased. , The evaluation value characteristics which do not affect the shaking are obtained.

【0337】(4) 画像処理方式のAFでは評価値のピー
クを通過して初めてJPを検出ができる。そこで、本実
施例では、山下り判定(ピーク検出)(S1022)を
行っている。山下り、即ち評価値低下の検出方法が非常
に重要である。山下り判定では、差分判定、チェックダ
ウン判定、の2つ方法でピーク検出判定を行なってい
る。前者は、現在フィールドの評価値と所定フィールド
前の評価値の差を監視し、この差が一定の閾値を越えた
らピークを検出したとする。この方法は、コントラスト
の低い、従ってJPにおいても評価値の低い被写体では
評価値の変化が少なく、JP検出が出来ない場合があ
る。一方、後者は、前者が現在フィールドの評価値と所
定フィールド前の評価値の比を監視し、この比が一定の
閾値を越えたらピークを検出したとする。この方法は、
コントラストの高い、従ってJPにおいても評価値の高
い被写体でピーク検出が遅れ、その結果行き過ぎ(JP
を越えてオーラン)が頻発するという欠点を有する。こ
のAFのピーク検出では、差分判定とチェックダウン判
定の両方を用い、前者によりコントラストの高い被写体
に対しては行き過ぎの増加なしに、後者によりコントラ
ストの低い被写体に対してもピーク検出の感度を挙げる
ことができる。
(4) In the AF of the image processing method, JP can be detected only after passing the peak of the evaluation value. Therefore, in the present embodiment, the hill descent determination (peak detection) (S1022) is performed. A method of detecting a mountain descent, that is, a decrease in the evaluation value is very important. In the hill descent determination, the peak detection determination is performed by two methods, a difference determination and a check-down determination. The former monitors the difference between the evaluation value of the current field and the evaluation value before the predetermined field, and detects a peak when the difference exceeds a certain threshold. In this method, the change in the evaluation value is small for a subject having a low contrast, and therefore a low evaluation value even in JP, and JP detection may not be performed in some cases. On the other hand, in the latter, it is assumed that the former monitors the ratio between the evaluation value of the current field and the evaluation value before the predetermined field, and detects a peak when this ratio exceeds a certain threshold. This method
Peak detection is delayed for a subject having a high contrast and thus a high evaluation value even in JP, and as a result, excessive detection (JP
Has a drawback that uranium frequently occurs. In the AF peak detection, both the difference determination and the check-down determination are used, and the sensitivity of the peak detection is increased even for a subject having a low contrast by the latter without excessively increasing the subject having a high contrast by the former. be able to.

【0338】(5) 山下り判定(S1022)では、差分
判定、チェックダウン判定、の2つ方法でピーク検出判
定を行なっている。前者は、現在フィールドの評価値と
所定フィールド前の評価値の差を監視し、この差が一定
の閾値を越えたらピークを検出したとする。後者は、前
者が現在フィールドの評価値と所定フィールド前の評価
値の比を監視し、この比が一定の閾値を越えたらピーク
を検出したとする。但し、先に説明した評価値ID7
(輝度加算値)の正規化差分値がピーク検出時に所定値
を越えている場合には、揺れによる誤動作で簡単に停止
するのを防止するため、揺れ又は外乱乱入としてピーク
検出判定の差分判定結果を無効に(メモリ内のダウンカ
ウント値をリセット)している。同様に、評価値ID7
(輝度加算値)の変化率が式(6) を満足しない場合に
は、揺れ又は外乱ありとして、ピーク検出のチェックダ
ウン判定結果を無効にしている。これらにより、被写体
の揺れや外乱により生じるピーク検出の誤判定を提言す
ることが出来る。その結果、ボケ状態のフォーカスのま
まAF動作が終了する誤動作を低減できる。
(5) In the hill descent determination (S1022), peak detection determination is performed by two methods, a difference determination and a checkdown determination. The former monitors the difference between the evaluation value of the current field and the evaluation value before the predetermined field, and detects a peak when the difference exceeds a certain threshold. In the latter case, it is assumed that the former monitors the ratio between the evaluation value of the current field and the evaluation value of a predetermined field, and detects a peak when the ratio exceeds a certain threshold. However, the evaluation value ID7 described earlier
If the normalized difference value of (brightness added value) exceeds a predetermined value at the time of peak detection, the difference determination result of the peak detection determination as shake or disturbance intrusion is used to prevent the stop due to a malfunction due to the shake. Is disabled (reset the down count value in the memory). Similarly, evaluation value ID7
If the rate of change of (brightness added value) does not satisfy Expression (6), it is determined that there is fluctuation or disturbance, and the check-down determination result of peak detection is invalidated. With these, it is possible to propose an erroneous determination of peak detection caused by shaking or disturbance of the subject. As a result, it is possible to reduce a malfunction in which the AF operation ends with the focus in the blurred state.

【0339】(6) 方向判定(S1016)において、各
評価値自体が所定の閾値以下の場合は、強制的にFla
tとしている。これにより、評価値の定常的なノイズで
は簡単に反応しないようにすることが出来る。更に、評
価値が低い場合には定常的なノイズで方向判定を誤る場
合が多く、また、ID7(輝度加算値)が高いシーンで
は評価値曲線全体が上昇し、その定常ノイズレベルの絶
対値も一緒に上昇してUp又はDownの判定結果につ
ながる。従って、所定の閾値をEVAL TH [i]×γ
[i](閾値×輝度加算補正係数)とし、この閾値を輝
度加算値に対応して順次高くしている。従って、被写体
を照らす照明を一層明るくした際に、フォーカスが大ボ
ケ状態で評価値の変動が大きくなることにより発生する
AFの誤動作を低減することが出来る。
(6) In the direction determination (S1016), when each evaluation value itself is equal to or smaller than a predetermined threshold, the Fla is forcibly forced.
t. Thus, it is possible to prevent the stationary noise of the evaluation value from easily reacting. In addition, when the evaluation value is low, the direction determination is often erroneous due to stationary noise. In a scene with a high ID7 (luminance added value), the entire evaluation value curve increases, and the absolute value of the stationary noise level also increases. It rises together and leads to the judgment result of Up or Down. Therefore, the predetermined threshold is set to EVAL TH [i] × γ
[I] (threshold value × luminance addition correction coefficient), and this threshold value is sequentially increased in accordance with the luminance addition value. Therefore, when the illumination for illuminating the subject is further brightened, it is possible to reduce the malfunction of the AF that occurs due to a large fluctuation in the evaluation value when the focus is largely out of focus.

【0340】(7) 本実施例の端到達判定(S1019)
では、真のNear端から真のFar端までの間に仮の
Near端を設け、探索時間の短縮を図っている。即
ち、フォーカスが仮のNear端からFar端までを探
索した時点で、その範囲内にJPが存在するかを判断す
る。もし、JPが存在する場合には、全域探索した場合
と比べて短い時間でAF収束できたことになる。途中判
断方法では、局部的なピークを検出できる鋭角率を用い
てJPが存在するか否かを判断する。このように、Fa
r端とNear端の間に途中判断位置を設け、フォーカ
スがその位置に到達した時点で、それまでのフォーカス
の経過の中でJPが存在するか否かを判断し、その結果
によりそれ以降の探索を続行するか否かを判断してい
る。途中判断を採用することにより、これまで全域探索
を行った後でJPに集束していたディテールの少ない被
写体,暗い被写体等のかなりの被写体が、全域探索を行
わずに集束できるようになり、AFの平均集束時間を短
縮できるようになった。
(7) End arrival determination of this embodiment (S1019)
In this document, a provisional near end is provided between the true near end and the true far end to shorten the search time. That is, when the focus is searched from the temporary Near end to the Far end, it is determined whether or not the JP exists within the range. If the JP exists, it means that the AF convergence has been completed in a shorter time than in the case where the entire area is searched. In the midway determination method, it is determined whether or not JP exists using the acute angle ratio at which a local peak can be detected. Thus, Fa
A midway determination position is provided between the r end and the near end, and when the focus reaches that position, it is determined whether or not JP exists during the progress of the focus up to that point. It is determined whether or not to continue the search. By employing the midway determination, a considerable amount of subject such as a subject with little detail or a dark subject that has been focused on the JP after performing the whole area search can be focused without performing the whole area search. Average convergence time can be reduced.

【0341】(8) 本実施例の飽和輝度判定(S101
2)を採用することにより、飽和輝度数が所定の閾値を
越えている場合には、評価枠の枠サイズを基本枠サイズ
W1から最大枠サイズW5に強制的に拡大変更してしま
う。こうすることにより、図24に示すように、飽和輝
度を持つ被写体を枠内に納めてしまうことにより、偽山
の発生を押さえ、誤動作の発生を防止できる。
(8) Determination of Saturation Luminance in this Embodiment
By adopting 2), when the saturated luminance number exceeds a predetermined threshold, the frame size of the evaluation frame is forcibly changed from the basic frame size W1 to the maximum frame size W5. By doing so, as shown in FIG. 24, the subject having the saturation luminance is contained in the frame, thereby suppressing the occurrence of the false mountain and preventing the occurrence of the malfunction.

【0342】(9) 本実施例のWOB(S1006)で
は、第1段階判定と第2段階判定を組み合わせて使用す
る。第1段階判定は、カットオフ周波数の比較的高い使
用データIIR1の評価値ID0を使用するため誤判定
の確率は低いが評価値の感度が相対的に低く少しのボケ
状態でも有為な値が得られない。第2段階判定は、カッ
トオフ周波数の比較的低い使用データのIIR4の評価
値ID2及び更に枠サイズが異なるID3を使用するた
め、感度がよい反面、偽山が発生しやすく誤判定を生じ
やすい。そこで、本実施例では第1段階判定を先ず優先
させ、ここで方向判定できない場合のみ第2段階判定で
バックアップすることにより、WOBの誤判定の確率を
低く押さえたまま、WOBの感度を上げている。
(9) In the WOB (S1006) of the present embodiment, the first stage judgment and the second stage judgment are used in combination. The first-stage determination uses the evaluation value ID0 of the usage data IIR1 having a relatively high cutoff frequency, so that the probability of an erroneous determination is low, but the sensitivity of the evaluation value is relatively low and a significant value is obtained even in a slight blur state. I can't get it. In the second stage determination, since the evaluation value ID2 of the IIR4 of the use data having a relatively low cutoff frequency and ID3 having a further different frame size are used, the sensitivity is good, but false peaks are likely to occur and erroneous determination is likely to occur. Therefore, in this embodiment, the first-stage determination is given priority first, and when the direction cannot be determined here, backup is performed in the second-stage determination, thereby increasing the sensitivity of the WOB while keeping the probability of WOB erroneous determination low. I have.

【0343】(10)本実施例のレンズ速度設定(S101
0)では、初期低速期間を除き、ピーク位置の近くまで
はレンズを高速に進め、ピーク位置近くに到達したら低
速に切り替えるている。即ち、大ボケ状態からピーク位
置近くまでは高速にレンズを動かし、ピーク位置近くに
なったら急に減速して低速にすることで、迅速且つ滑ら
かに行き過ぎることがなくピーク位置に収束できる。
(10) Setting the lens speed in this embodiment (S101
In (0), except for the initial low speed period, the lens is advanced at a high speed near the peak position, and is switched to a low speed when the lens reaches near the peak position. That is, by moving the lens at high speed from the large blur state to the vicinity of the peak position, and rapidly reducing the speed to a low speed near the peak position, it is possible to quickly and smoothly converge to the peak position without going too far.

【0344】(11)本実施例のHPeak方式では輝度データ
Yから高周波成分を抜き出している。この場合、例えば
カラーバーを撮影したとき、このHPeak方式では後で述
べる評価値の変化は均一な壁と同じようになり、評価値
ピークの検出が出来ないことがある。これに対して、
R,G,Bの画像信号を加算して輝度データを求めるの
ではなく、色信号R,G,Bに関して夫々独立に水平方
向評価値算出フィルタを設け、各出力を加算して評価値
とすることで、カラーバーのような色は異なるが輝度が
均一な被写体に対しても有為な評価値を得ることが出来
る。
(11) In the HP Peak method of this embodiment, high frequency components are extracted from the luminance data Y. In this case, for example, when a color bar is photographed, the change of the evaluation value described later becomes the same as that of a uniform wall in the HP Peak method, and the peak of the evaluation value may not be detected in some cases. On the contrary,
Rather than obtaining luminance data by adding R, G, and B image signals, horizontal direction evaluation value calculation filters are provided independently for the color signals R, G, and B, and each output is added to obtain an evaluation value. As a result, a significant evaluation value can be obtained even for a subject having a different color but a uniform luminance such as a color bar.

【0345】[0345]

【発明の効果】本発明によれば、業務用又はプロ用ビデ
オカメラに適する非常に精度の高いAF機構を提供する
ことが出来る。更に本発明によれば、業務用又はプロ用
ビデオカメラに適する非常に精度の高いAF機構を備え
たビデオカメラを提供することが出来る。更に本発明に
よれば、業務用又はプロ用ビデオカメラに適する非常に
精度の高いAF方法を提供することが出来る。
According to the present invention, it is possible to provide a very accurate AF mechanism suitable for a professional or professional video camera. Further, according to the present invention, it is possible to provide a video camera provided with an extremely accurate AF mechanism suitable for a professional or professional video camera. Further, according to the present invention, it is possible to provide a highly accurate AF method suitable for a professional or professional video camera.

【0346】更に本発明によれば、業務用又はプロ用ビ
デオカメラに適するAF機構におけるフォーカスレンズ
の移動速度決定に際して、種々の条件に対応して、迅速
に且つ評価値ピークを行き過ぎることがないフォーカス
レンズの移動速度決定手段を提供することが出来る。
Further, according to the present invention, when determining the moving speed of the focus lens in the AF mechanism suitable for a professional or professional video camera, the focus can be quickly and without exceeding the evaluation value peak in accordance with various conditions. Means for determining the moving speed of the lens can be provided.

【0347】更に本発明によれば、ビデオカメラと被写
体相互間に揺れがある場合にも、評価値の変化の割合を
相対的に少なくし、フォーカスレンズの移動による評価
値の変化を把握できるような手段を提供することが出来
る。
Further, according to the present invention, even when the video camera and the subject shake, the rate of change of the evaluation value is relatively reduced so that the change of the evaluation value due to the movement of the focus lens can be grasped. Means can be provided.

【0348】更に本発明によれば、揺れ判定を導入した
場合、AFスイッチをマニアル操作した場合に生じるカ
メラぶれを考慮した揺れ判定手段を提供することが出来
る。
Further, according to the present invention, it is possible to provide a shake judging means which takes into account camera shake caused when the AF switch is manually operated when the shake judgment is introduced.

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

【図1】ビデオカメラから構成される撮像装置の全体の
構成を示す図である。
FIG. 1 is a diagram illustrating an overall configuration of an imaging device including a video camera.

【図2】図1のビデオカメラのAFブロックの構成を示
す図である。
FIG. 2 is a diagram showing a configuration of an AF block of the video camera in FIG.

【図3】水平方向評価値算出フィルタの回路構成を説明
する図である。ここで、図3Aは水平方向評価値算出フ
ィルタの回路であり、図3BはHPFのカットオフ周波
数の相違について説明している。
FIG. 3 is a diagram illustrating a circuit configuration of a horizontal direction evaluation value calculation filter. Here, FIG. 3A illustrates a circuit of a horizontal direction evaluation value calculation filter, and FIG. 3B illustrates a difference in cutoff frequency of the HPF.

【図4】評価値生成回路で使用される枠制御信号を説明
する図である。
FIG. 4 is a diagram illustrating a frame control signal used in the evaluation value generation circuit.

【図5】全積分方式水平方向評価値算出フィルタの回路
構成を説明する図である。
FIG. 5 is a diagram illustrating a circuit configuration of a total integration type horizontal evaluation value calculation filter.

【図6】図6Aは、垂直方向評価値算出フィルタの回路
構成、図6Bは飽和輝度数算出回路の構成を説明する図
である。
FIG. 6A is a diagram illustrating a circuit configuration of a vertical direction evaluation value calculation filter, and FIG. 6B is a diagram illustrating a configuration of a saturation luminance number calculation circuit.

【図7】各評価値の評価枠の枠サイズを説明する図であ
る。
FIG. 7 is a diagram illustrating a frame size of an evaluation frame of each evaluation value.

【図8】評価値ID0とID2の傾向を示す図である。FIG. 8 is a diagram showing a tendency of evaluation values ID0 and ID2.

【図9】各評価値の関係を説明する図である。FIG. 9 is a diagram illustrating the relationship between evaluation values.

【図10】本実施例で実行されるAFの全体フローチャ
ートを示す図である。
FIG. 10 is a diagram illustrating an entire flowchart of AF executed in the present embodiment.

【図11】図10のAFの全体フローチャートにおける
揺れ判定処理(レンズ静止時の)の揺れ判定期間を説明
する図である。
11 is a diagram illustrating a shake determination period of a shake determination process (when the lens is stationary) in the overall AF flowchart of FIG. 10;

【図12】図10のAFの全体フローチャートにおける
ウォブリング処理のフローチャートを示す図である。
12 is a diagram illustrating a flowchart of a wobbling process in the overall flowchart of the AF in FIG. 10;

【図13】図12のウォブリング処理におけるウォブリ
ング動作のタイムチャートを示す図である。
13 is a diagram showing a time chart of a wobbling operation in the wobbling process of FIG.

【図14】図10のAFの全体フローチャートを実行す
る際に使用されるデータを説明する図である。
FIG. 14 is a diagram illustrating data used when executing the overall flowchart of AF in FIG. 10;

【図15】図16と共に、ウォブリングと評価値の変化
を示す図であり、図15A,B及びCはジャストピント
判定される場合を示している。
15 is a diagram showing wobbling and a change in an evaluation value together with FIG. 16, and FIGS. 15A, 15B and 15C show a case where a just focus determination is made.

【図16】図15と共に、ウォブリングと評価値の変化
を示す図であり、図16C,D及びEはジャストピント
でないと判定される場合を示している。
FIG. 16 is a diagram showing wobbling and a change in an evaluation value together with FIG. 15, and FIGS. 16C, 16D, and 16E show cases where it is determined that the subject is not just in focus.

【図17】図15Cに関連して、ジャストピンであると
判定される場合の条件を説明する図である。
FIG. 17 is a diagram illustrating a condition when it is determined that the pin is a just pin, with reference to FIG. 15C;

【図18】図15A,B及びCに関連して、ジャストピ
ンと判定する判定方法を説明する図である。
FIG. 18 is a diagram illustrating a determination method for determining a just pin, with reference to FIGS. 15A, 15B, and 15C;

【図19】図12のウォブリング処理における方向判定
する判定方法を説明する図である。ここで、図19Aは
Near方向判定を示し、図19BはFar方向判定を
示す。
FIG. 19 is a diagram illustrating a method of determining a direction in the wobbling process of FIG. Here, FIG. 19A shows the Near direction determination, and FIG. 19B shows the Far direction determination.

【図20】図10のAFの全体フローチャートにおける
レンズ速度決定処理のフローチャートを示す図である。
20 is a diagram illustrating a flowchart of a lens speed determination process in the overall AF flowchart of FIG. 10;

【図21】図20の低速切り替え判定において使用され
る判別式を説明する図である。
21 is a diagram illustrating a discriminant used in the low-speed switching determination in FIG.

【図22】図10のAFの全体フローチャートにおける
偽山判定に関連し、偽山の発生過程を説明する図であ
る。ここで、図22Aはジャストピン状態を示し、図2
2Bはボケの程度が徐々に進む状態を示す図であり、図
22Cはこのときの評価値の推移を示す図である。
FIG. 22 is a diagram for explaining a false mountain generation process in relation to the false mountain determination in the overall flowchart of AF in FIG. 10; Here, FIG. 22A shows a just pin state, and FIG.
2B is a diagram showing a state in which the degree of blur gradually advances, and FIG. 22C is a diagram showing a transition of the evaluation value at this time.

【図23】評価値ID0とID1を用いて行う揺れ判定
に関する説明図である。ここで、図23Aは2重枠法を
説明し、図23Bは偽山の発生しないシーンの評価値の
振る舞いを説明し、図23Cは垂直エッジの偽山発生に
与える影響を説明し、図23Dは水平エッジの偽山発生
に与える影響を説明している。
FIG. 23 is an explanatory diagram regarding a swing determination performed using evaluation values ID0 and ID1. Here, FIG. 23A illustrates the double frame method, FIG. 23B illustrates the behavior of the evaluation value of a scene where no false mountain occurs, FIG. 23C illustrates the effect of the vertical edge on the false mountain generation, and FIG. Explains the effect of horizontal edges on false mountain occurrence.

【図24】図10のAFの全体フローチャートにおける
飽和輝度判定に関連し、偽山の発生過程を説明する図で
ある。ここで、図24Aは偽山発生に関して説明し、図
24Bは偽山発生と判定された場合の評価枠の拡大に関
して説明している。
24 is a diagram illustrating a process of generating a false mountain in relation to the saturation luminance determination in the overall AF flowchart of FIG. 10; Here, FIG. 24A describes the occurrence of a false mountain, and FIG. 24B describes the expansion of the evaluation frame when it is determined that the false mountain has occurred.

【図25】図10のAFの全体フローチャートにおける
方向判定の個別判定に関する説明図である。
FIG. 25 is an explanatory diagram regarding individual determination of direction determination in the overall flowchart of AF in FIG. 10;

【図26】図10のAFの全体フローチャートにおける
方向判定の総合判定に関する説明図である。
FIG. 26 is an explanatory diagram relating to comprehensive determination of direction determination in the overall AF flowchart of FIG. 10;

【図27】図27Aは図26の方向判定の判定方法、図
27Bは図10のAFの全体フローチャートにおける逆
送判定の判定方法に関する説明図である。
27A is an explanatory diagram of a determination method of direction determination in FIG. 26, and FIG. 27B is an explanatory diagram of a determination method of reverse feed determination in the overall flowchart of AF in FIG.

【図28】図10のAFの全体フローチャートにおける
端到達判定に関する説明図である。ここで、図28Aは
途中判断方法が有効に働く場合を示し、図28Bは全域
を探索する場合を示している。
28 is an explanatory diagram related to edge arrival determination in the overall flowchart of AF in FIG. 10; Here, FIG. 28A shows a case where the midway determination method works effectively, and FIG. 28B shows a case where the entire area is searched.

【図29】図28の端到達判定のフローチャートを示す
図である。
FIG. 29 is a diagram showing a flowchart of end reach determination in FIG. 28.

【図30】図30Aは鋭角率を説明する図であり、ま
た、図30Bは飽和輝度判定を説明する図である。
FIG. 30A is a diagram illustrating an acute angle ratio, and FIG. 30B is a diagram illustrating a saturation luminance determination.

【図31】図10のAFの全体フローチャートにおける
ピーク位置選定のフローチャートである。
FIG. 31 is a flowchart of peak position selection in the overall AF flowchart of FIG. 10;

【図32】図32Aは、差分判定、チェックダウン判定
及び保険モードの動作の比較をした図表である。図32
Bは、図10のAFの全体フローチャートにおける山下
り判定のチェックダウン判定を説明する図である。
FIG. 32A is a chart showing a comparison between a difference determination, a checkdown determination, and an operation in an insurance mode. FIG.
B is a diagram for explaining the check-down determination of the hill-down determination in the overall AF flowchart of FIG. 10.

【図33】図33は、フォーカスを一定速度で進め、1
フィールド毎に評価値及びフォーカス位置をサンプリン
グする様子を示した図である。
FIG. 33 is a diagram showing a state in which the focus is advanced at a constant speed.
FIG. 9 is a diagram illustrating a state where an evaluation value and a focus position are sampled for each field.

【図34】図34は、図10のAFの全体フローチャー
トにおけるピーク位置算出の重心計算の積分範囲を説明
する図である。ここで、図34Aは積分範囲が適正でな
い場合を示し、図34Bは積分範囲の設定方法を示す図
である。
FIG. 34 is a diagram illustrating an integration range of a barycenter calculation for peak position calculation in the overall flowchart of AF in FIG. 10; Here, FIG. 34A shows a case where the integration range is not appropriate, and FIG. 34B shows a method of setting the integration range.

【図35】図35は、図10のAFの全体フローチャー
トにおけるロングフィルタ判定の初期レンズ移動方向の
設定方法を説明する図である。
FIG. 35 is a diagram illustrating a method of setting an initial lens moving direction for long filter determination in the overall AF flowchart of FIG. 10;

【図36】図36は、図10のAFの全体フローチャー
トにおけるロングフィルタ処理のフローチャートを示す
図である。
36 is a diagram illustrating a flowchart of a long filter process in the overall flowchart of the AF in FIG. 10;

【図37】図37は、図36に関連して輝度正規化評価
値を説明する図である。
FIG. 37 is a diagram for explaining a luminance normalized evaluation value in relation to FIG. 36;

【図38】図37は、図36に関連してロングフィルタ
モードを説明する図である。
FIG. 38 is a diagram illustrating the long filter mode in relation to FIG. 36;

【図39】図39は、被写界深度及び焦点深度を説明す
る図である。ここで、図39Aは被写界深度を、図39
Bは焦点深度を夫々示す。
FIG. 39 is a diagram illustrating a depth of field and a depth of focus. Here, FIG. 39A shows the depth of field, and FIG.
B indicates the depth of focus.

【図40】図40は、許容錯乱円及びCCD画素間距離
と許容錯乱円の関係を説明する図である。
FIG. 40 is a diagram illustrating a relationship between an allowable circle of confusion, a distance between CCD pixels, and an allowable circle of confusion.

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

111 フォーカスレンズ、111a フォーカスレン
ズ位置検出センサ、111bフォーカスレンズ駆動モー
タ、111c フォーカスレンズ駆動回路、112 ウ
ォブリングレンズ、112a ウォブリングレンズ位置
検出センサ、112b ウォブリングレンズ駆動モー
タ、112c ウォブリングレンズ駆動回路、113
アイリス機構、113a アイリス位置検出センサ、1
13b アイリス機構駆動モータ、113c アイリス
駆動回路、114 レンズブロック側CPU、115
オートフォーカス・スイッチ、121 色分解プリズ
ム、122R,122G,122B 撮像素子、123
R,123G,123B プリアンプ、124 CCD
駆動回路、125 タイミング信号発生回路、131
R,131G,131B A/D変換回路、132R,
132G,132B ゲイン制御回路、133R,13
3G,133B 信号処理回路、134 エンコーダ、
135 アイリス制御回路、136 ホワイトバランス
制御回路、137オートフォーカスブロック、138
オートフォーカス用CPU、139 アートフォーカス
専用集積回路(AF−IC)、141 メインCPU、
142 ROM、143 RAM、145 操作部、2
01 輝度信号生成回路、202評価値生成回路、20
3 オートフォーカス用CPU、204 ROM、20
5RAM
111 focus lens, 111a focus lens position detection sensor, 111b focus lens drive motor, 111c focus lens drive circuit, 112 wobbling lens, 112a wobbling lens position detection sensor, 112b wobbling lens drive motor, 112c wobbling lens drive circuit, 113
Iris mechanism, 113a Iris position detection sensor, 1
13b Iris mechanism drive motor, 113c Iris drive circuit, 114 Lens block side CPU, 115
Auto focus switch, 121 color separation prism, 122R, 122G, 122B imaging device, 123
R, 123G, 123B preamplifier, 124 CCD
Drive circuit, 125 timing signal generation circuit, 131
R, 131G, 131B A / D conversion circuit, 132R,
132G, 132B gain control circuit, 133R, 13
3G, 133B signal processing circuit, 134 encoder,
135 Iris control circuit, 136 White balance control circuit, 137 Auto focus block, 138
Auto focus CPU, 139 Art focus dedicated integrated circuit (AF-IC), 141 main CPU,
142 ROM, 143 RAM, 145 operation unit, 2
01 luminance signal generation circuit, 202 evaluation value generation circuit, 20
3 CPU for auto focus, 204 ROM, 20
5 RAM

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】 ビデオカメラの画像信号を入力する入力
手段と、該画像信号の特定領域の高周波成分を抽出して
評価値を生成する評価値生成手段と、該評価値に応じて
上記ビデオカメラのレンズのフォーカス駆動部に与える
指令値を算出する信号処理手段と、該指令値を上記ビデ
オカメラのレンズの駆動部に送出する出力手段とを備え
たオートフォーカス装置において、 上記特定領域内で上記画像信号の輝度を加算した値を算
出する回路を設け、所定期間における評価値と上記輝度
加算値の変化率とを調べ、上記ビデオカメラと被写体相
互間の揺れの有無を判定し、揺れの有無に対応してオー
トフォーカス時のフォーカスレンズの速度を制御するこ
とを特徴とする、オートフォーカス装置。
1. An input means for inputting an image signal of a video camera, an evaluation value generating means for extracting a high frequency component of a specific area of the image signal to generate an evaluation value, and the video camera according to the evaluation value An autofocus apparatus comprising: signal processing means for calculating a command value to be given to a focus drive unit of the lens of the above; and output means for sending the command value to a drive unit of the lens of the video camera. A circuit for calculating a value obtained by adding the luminance of the image signal; examining an evaluation value during a predetermined period and a rate of change of the luminance addition value; determining whether or not the video camera and the subject have shake; An auto-focus device, wherein the speed of a focus lens at the time of auto-focus is controlled in accordance with (1).
【請求項2】 請求項1に記載のオートフォーカス装置
において、更に揺れが有ると判定された場合、上記フォ
ーカスレンズの速度を比較的高速とする、オートフォー
カス装置。
2. The auto-focusing device according to claim 1, wherein when it is determined that there is further shaking, the speed of the focus lens is set to a relatively high speed.
【請求項3】 請求項1に記載のオートフォーカス装置
において、更に揺れが無いと判定された場合、ボケ状態
からジャストピンの近傍までを第1のレンズ速度で移動
し、該近傍からジャストピントまでを第1のレンズ速度
より相対的に遅い第2のレンズ速度で移動することを特
徴とする、オートフォーカス装置。
3. The auto-focusing device according to claim 1, wherein when it is determined that there is no further shaking, the camera moves from the blurred state to the vicinity of the just pin at a first lens speed, and moves from the vicinity to the just focus. Moving at a second lens speed relatively lower than the first lens speed.
【請求項4】 請求項3に記載のオートフォーカス装置
において、更に第1のレンズ速度から第2のレンズ速度
への切り替えは、上記評価値の変化率に対応して切り替
えている、オートフォーカス装置。
4. The auto-focusing device according to claim 3, wherein the switching from the first lens speed to the second lens speed is performed in accordance with the rate of change of the evaluation value. .
【請求項5】 請求項4に記載のオートフォーカス装置
において、更に上記第1のレンズ速度から第2のレンズ
速度への切り替えは、上記評価値の変化率が比較的大き
くなったとき、切り替えている、オートフォーカス装
置。
5. The autofocus apparatus according to claim 4, wherein the switching from the first lens speed to the second lens speed is performed when the rate of change of the evaluation value becomes relatively large. There is an autofocus device.
【請求項6】 請求項3に記載のオートフォーカス装置
において、更に上記第1のレンズ速度から第2のレンズ
速度への切り替えは、上記評価値として少なくとも第1
の評価値及び該第1の評価値より感度のよい第2の評価
値を求め、該第1の評価値の第2の評価値差と和の比が
過去所定期間に亘たる該第1の評価値と第2の評価値の
差と和の比の移動平均に近づいたとき、切り替えてい
る、オートフォーカス装置。
6. The auto-focusing apparatus according to claim 3, wherein the switching from the first lens speed to the second lens speed is performed at least as the first evaluation value.
And a second evaluation value that is more sensitive than the first evaluation value, and the ratio of the sum of the second evaluation value difference and the sum of the first evaluation value to the first evaluation value over the past predetermined period is obtained. An autofocus device that switches when the moving average of the ratio of the difference between the evaluation value and the second evaluation value and the sum approaches the moving average.
【請求項7】 請求項6に記載のオートフォーカス装置
において、更に上記第1の評価値と第2の評価値の差の
和の比が過去所定期間に亘たる該第1の評価値と第2の
評価値の差の和の比の移動平均の比較を、少なくても現
在フィールドと所定フィールド前の複数回行って、これ
らの結果によって、切り替えている、オートフォーカス
装置。
7. The auto-focusing device according to claim 6, wherein the ratio of the sum of the difference between the first evaluation value and the second evaluation value is equal to the first evaluation value and the second evaluation value over a predetermined period in the past. An autofocus apparatus in which the moving average of the ratio of the sum of the differences between the evaluation values of two is compared at least a plurality of times before the current field and a predetermined field before, and switching is performed based on these results.
【請求項8】 請求項3に記載のオートフォーカス装置
において、更に上記ボケ状態からジャストピンの近傍ま
でを第1のレンズ速度で移動する際、初期低速期間が設
けられ、該初期低速期間は比較的低速で移動し、該初期
低速期間経過後は該第1のレンズ速度で移動する、オー
トフォーカス装置。
8. The autofocus apparatus according to claim 3, further comprising an initial low speed period when moving from the blurred state to the vicinity of the just pin at a first lens speed. An autofocus device that moves at a very low speed and moves at the first lens speed after the initial low speed period has elapsed.
【請求項9】 ビデオカメラの画像信号を入力する入力
手段と、該画像信号の特定領域の高周波成分を抽出して
評価値を生成する評価値生成手段と、該評価値に応じて
上記ビデオカメラのレンズのフォーカス駆動部に与える
指令値を算出する信号処理手段と、該指令値を上記ビデ
オカメラのレンズの駆動部に送出する出力手段とを備え
たオートフォーカス装置において、 上記特定領域内で上記画像信号の輝度を加算した値を算
出する回路を設け、所定期間における上記評価値と上記
輝度加算値の変化率とを調べ、上記ビデオカメラと被写
体相互間の揺れの有無を判定する際に、上記オートフォ
ーカス開始のトリガが与えられてから第1の所定の期間
の該評価値及び該輝度加算値のデータは、揺れの有無の
判定に寄与させないことを特徴とするオートフォーカス
装置。
9. An input means for inputting an image signal of a video camera, an evaluation value generating means for extracting a high-frequency component of a specific area of the image signal to generate an evaluation value, and the video camera according to the evaluation value An auto-focusing device comprising: signal processing means for calculating a command value to be given to a focus drive unit of the lens of the above; and output means for sending the command value to a drive unit of the lens of the video camera. Providing a circuit for calculating a value obtained by adding the luminance of the image signal, examining the rate of change of the evaluation value and the luminance addition value in a predetermined period, when determining the presence or absence of shaking between the video camera and the subject, The data of the evaluation value and the luminance addition value during a first predetermined period after the trigger of the autofocus start is given does not contribute to the determination of the presence / absence of shaking. Over autofocus system.
【請求項10】請求項9に記載のオートフォーカス装置
において、 揺れ判定は、オートフォーカス動作開始前のレンズ静止
時に一旦行い、更にその後AF動作中に周期的に行っ
て、オートフォーカス動作開始前の揺れ判定では正しい
判定が出来ないおボケ状態の揺れ判断を正確に行ってい
る、オートフォーカス装置。
10. The auto-focusing device according to claim 9, wherein the shaking determination is performed once when the lens is stationary before the start of the auto-focusing operation, and is periodically performed during the AF operation thereafter, so as to determine whether or not the shaking has occurred before the auto-focusing operation starts. An auto-focusing device that accurately determines the blurring of a blurred state that cannot be correctly determined by the shaking determination.
【請求項11】請求項1乃至10のいずれか一項に記載
のオートフォーカス装置を備えたビデオカメラ。
11. A video camera provided with the autofocus device according to claim 1.
【請求項12】ビデオカメラの画像信号を入力し、 上記画像信号の特定領域の高周波成分を抽出して評価値
を生成し、 上記画像信号の上記特定領域内で輝度を加算した値を算
出して輝度加算値を生成し、 所定期間における上記評価値と上記輝度加算値の変化率
を調べ、 上記評価値の変化率及び輝度加算値の変化率の両方又は
いずれか一方から揺れの有無を判定する、諸段階を含
む、ビデオカメラのオートフォーカス方法。
12. An image signal of a video camera is inputted, a high-frequency component of a specific region of the image signal is extracted to generate an evaluation value, and a value obtained by adding luminance in the specific region of the image signal is calculated. A change in the evaluation value and the change in the brightness addition value during a predetermined period, and determine whether or not there is a fluctuation from the change rate of the evaluation value and / or the change rate of the change in the brightness addition value. Auto-focusing method of a video camera, including various steps.
【請求項13】 請求項12に記載のビデオカメラのオ
ートフォーカス方法において、 揺れの有無によって、フォーカスレンズの速度を異なら
せている、ビデオカメラのオートフォーカス方法。
13. The video camera autofocus method according to claim 12, wherein the speed of the focus lens is varied depending on the presence or absence of shaking.
【請求項14】 請求項12に記載のビデオカメラのオ
ートフォーカス方法において、更に揺れが有ると判定さ
れた場合、上記フォーカスレンズの速度を比較的高速に
している、ビデオカメラのオートフォーカス方法。
14. The autofocus method for a video camera according to claim 12, wherein when it is determined that there is further shaking, the speed of the focus lens is set relatively high.
【請求項15】 請求項12に記載のビデオカメラのオ
ートフォーカス方法において、更に揺れが無いと判定さ
れた場合、ボケ状態からジャストピンの近傍までを第1
のレンズ速度で移動し、該近傍からジャストピントまで
を第1のレンズ速度より相対的に遅い第2のレンズ速度
で移動する、ビデオカメラのオートフォーカス方法。
15. The video camera auto-focusing method according to claim 12, wherein when it is determined that there is no further shaking, the first from the blurred state to the vicinity of the just pin is determined.
An autofocus method for a video camera, wherein the video camera moves at a second lens speed from the vicinity thereof to the just focus at a second lens speed relatively lower than the first lens speed.
【請求項16】請求項12乃至15のいずれか一項に記
載のビデオカメラのオートフォーカス方法を蓄積した記
録媒体。
16. A recording medium storing the video camera autofocus method according to claim 12. Description:
JP01705997A 1997-01-30 1997-01-30 Autofocus device for video camera Expired - Fee Related JP3794086B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01705997A JP3794086B2 (en) 1997-01-30 1997-01-30 Autofocus device for video camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01705997A JP3794086B2 (en) 1997-01-30 1997-01-30 Autofocus device for video camera

Publications (2)

Publication Number Publication Date
JPH10215401A true JPH10215401A (en) 1998-08-11
JP3794086B2 JP3794086B2 (en) 2006-07-05

Family

ID=11933423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01705997A Expired - Fee Related JP3794086B2 (en) 1997-01-30 1997-01-30 Autofocus device for video camera

Country Status (1)

Country Link
JP (1) JP3794086B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006146062A (en) * 2004-11-24 2006-06-08 Canon Inc Camera
CN1322347C (en) * 2004-02-18 2007-06-20 佳能株式会社 Image pickup apparatus, control method thereof, control program thereof and storage medium
JP2013186313A (en) * 2012-03-08 2013-09-19 Nikon Corp Focus adjustment apparatus and camera body

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1322347C (en) * 2004-02-18 2007-06-20 佳能株式会社 Image pickup apparatus, control method thereof, control program thereof and storage medium
JP2006146062A (en) * 2004-11-24 2006-06-08 Canon Inc Camera
JP4630649B2 (en) * 2004-11-24 2011-02-09 キヤノン株式会社 camera
JP2013186313A (en) * 2012-03-08 2013-09-19 Nikon Corp Focus adjustment apparatus and camera body

Also Published As

Publication number Publication date
JP3794086B2 (en) 2006-07-05

Similar Documents

Publication Publication Date Title
JP3302003B2 (en) Imaging device having autofocus function
US6373524B2 (en) Interchangeable lens video camera system
JPH10213736A (en) Autofocusing device for video camera
JP5446076B2 (en) Digital camera
JP5704851B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP2008009341A (en) Autofocus device and method, and imaging apparatus
KR20080002693A (en) Auto-focus apparatus, image capture apparatus, and auto-focus method
JPH10213737A (en) Autofocusing device for video camera
KR20060109336A (en) Autofocus device and method, and program
KR20110072916A (en) Method and apparatus for processing the digital image by using fast af
EP0987884B1 (en) Automatic focusing device
US7391461B2 (en) Apparatus, method and control computer program for imaging a plurality of objects at different distances
JP2002182106A (en) Focusing control system for digital still video camera
JP5020643B2 (en) Imaging apparatus and control method thereof
JPH10239582A (en) Automatic focusing device
JP2007133301A (en) Autofocus camera
JP2006189892A (en) Automatic focusing device and method for video camera
JPH10213840A (en) Automatic focusing device for video camera
JPH10221594A (en) Automatic focus device
JPH10213843A (en) Autofocusing device for video camera
JPH10224682A (en) Automatic focusing device
JPH10215401A (en) Auto-focus device for video camera
JPH10215400A (en) Automatic focusing device for video camera
JPH10215403A (en) Auto-focus device for video camera
JPH10213842A (en) Automatic focusing device for video camera

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051213

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060208

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060322

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060404

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100421

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees