JPH10319313A - Automatic focus detecting device - Google Patents

Automatic focus detecting device

Info

Publication number
JPH10319313A
JPH10319313A JP9131041A JP13104197A JPH10319313A JP H10319313 A JPH10319313 A JP H10319313A JP 9131041 A JP9131041 A JP 9131041A JP 13104197 A JP13104197 A JP 13104197A JP H10319313 A JPH10319313 A JP H10319313A
Authority
JP
Japan
Prior art keywords
image
pixel
contrast
pixel block
pixel data
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.)
Withdrawn
Application number
JP9131041A
Other languages
Japanese (ja)
Inventor
Nobuyuki Nagasawa
伸之 永澤
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.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP9131041A priority Critical patent/JPH10319313A/en
Publication of JPH10319313A publication Critical patent/JPH10319313A/en
Priority to US10/286,271 priority patent/US7133078B2/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an automatic focus detecting device which can perforfn high-accurate and stable focus detection and for which image evaluation function is used. SOLUTION: The optical image of a sample 1 is fetched in an image sensor 4 through an objective lens 2 and an image formation lens 3, the image data fetched in the sensor 4 are stored in a memory 7, pixel data within the specified range of the memory 7 are read out to a contrast evaluation calculating means 8, the sum of the adjoining plural pixels of the pixel data is defined as one pixel block, the total sum of the difference of the adjoining pixel blocks or the square of the difference is calculated as the contrast value of the image, also the contrast value of the image is found plural times while changing the combination of the pixel data included in the pixel block in the case of each image input, and focusing degree is found while the sum of those is defined as the image evaluation function.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、合焦度を演算する
のに画像評価関数を用いた自動焦点検出装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic focus detection apparatus using an image evaluation function to calculate a degree of focus.

【0002】[0002]

【従来の技術】周知のように、レンズで結像される光像
は、焦点整合時にその像の明るさのレベルの振幅の大き
さ、すなわちコントラストが最大になる特徴を有するこ
とが知られている。これは光像の各空間周波数における
光強度(パワースペクトル)が焦点整合時に最大になる
ために起こる現象であり、この現象を利用して焦点位置
を検出する方法が考えられている。
2. Description of the Related Art As is well known, it is known that an optical image formed by a lens has a feature that the amplitude of the brightness level of the image, that is, the contrast is maximized during focusing. I have. This is a phenomenon that occurs because the light intensity (power spectrum) at each spatial frequency of the optical image becomes maximum at the time of focusing, and a method of detecting the focal position using this phenomenon has been considered.

【0003】しかして、従来、このような考えに基づい
た自動焦点検出装置として、特開昭56−1022号公
報に開示されるように、複数個の微少光電素子からなる
自己走査型光電素子を用い、その微少光電素子の内の2
個間の光電出力差を光電出力和で割った信号を抽出し、
且つその信号の一定走査周期内における尖頭値をコント
ラスト信号となすようにしたもの、特開昭57−207
210号公報に開示されるように、光学系の予定焦点面
の前後に位置される2組の受光素子群の出力に対して各
組ごとに受光素子の2個づつ予め設定された隣接関係に
ない組み合わせを含む所定の組み合わせの出力差をとっ
て非線形型演算を行い光学系の位置を検出し、これらの
検出信号のうち2組の検出信号の差を取り、この時の出
力信号より光学系の位置を判定して非合焦領域では光学
系位置に応じたアナログ信号を出力し、幅を持った合焦
領域では所定レベルの合焦信号を出力するようにしたも
の、さらには、特開平6−78112号公報に開示され
るように、結像光学系により形成された被写体像が受光
面上に投影されるCCDイメージセンサの各画素から電
荷転送クロックにより読み出される電荷を順次蓄積する
とともに、電荷転送クロックの半周期を整数倍した周期
でリセットして所定数の隣接画素を加算し、この加算さ
れた電荷をサンプリングするもので、CCDイメージセ
ンサから被写体を取り込むときの画素入力範囲を、リセ
ット周期の間に加算し得る画素数の最大値を整数倍した
画素範囲に設定することで被写体像の取り込み範囲を一
定にして画像評価の精度を向上させるようにしたものが
知られている。
[0003] Conventionally, as an automatic focus detecting device based on such a concept, as disclosed in Japanese Patent Application Laid-Open No. Sho 56-1022, a self-scanning photoelectric device comprising a plurality of micro photoelectric devices has been used. Used, 2 of the micro photoelectric elements
Extract the signal obtained by dividing the photoelectric output difference between the units by the photoelectric output sum,
Japanese Patent Application Laid-Open No. 57-207 discloses a method in which a peak value in a certain scanning cycle of the signal is used as a contrast signal.
As disclosed in Japanese Patent Publication No. 210-210, with respect to the outputs of two groups of light receiving elements positioned before and after a predetermined focal plane of the optical system, two adjacent light receiving elements are set in each group in a predetermined adjacent relationship. The position of the optical system is detected by performing a non-linear operation by taking an output difference of a predetermined combination including a combination that does not exist, and a difference between two sets of these detection signals is obtained. And outputs an analog signal corresponding to the position of the optical system in an out-of-focus area, and outputs a focus signal of a predetermined level in a focused area having a width. As disclosed in Japanese Unexamined Patent Publication No. 6-78112, while the subject image formed by the imaging optical system is sequentially accumulated by the charge transfer clock from each pixel of the CCD image sensor projected on the light receiving surface, Charge transfer A predetermined number of adjacent pixels are added by resetting at a cycle obtained by multiplying a half cycle of the clock by an integer, and the added charges are sampled. The pixel input range when capturing a subject from the CCD image sensor is determined by the reset cycle. It is known that the maximum value of the number of pixels that can be added in between is set to a pixel range obtained by multiplying the integer by an integer, so that the capturing range of the subject image is fixed and the accuracy of image evaluation is improved.

【0004】[0004]

【発明が解決しようとする課題】ところで、これら従来
の焦点検出を行うものは、隣接しない2画素を用いて画
像のコントラスト値を求めるものと、隣接する2画素を
用いて画像のコントラスト値を求めるものに分けられ
る。
By the way, these conventional focus detection methods are for obtaining a contrast value of an image using two non-adjacent pixels, and for obtaining a contrast value of an image using two adjacent pixels. Divided into things.

【0005】このうちの隣接関係にない2画素を用いた
ものでは、これら隣接関係にない画素の信号レベルの差
を求めて画像のコントラスト値としているが、この場
合、各画素を間引いて使用するようにしており、これに
より得られたコントラスト値は全ての画像情報を使用し
ていないため、コントラスト値の演算結果の信頼度は低
くなり、これにより得られる焦点位置の精度も低いもの
となる。また、画像評価範囲内の各画素の信号レベルを
順にS0、S1、S2、…とすると、例えば、|S0−
S4|+|S4−S8|とした場合と、|S2−S6|
+|S6−S10|とした場合では、同じ画像の場合で
も、それぞれのコントラスト値に相違が生じてしまう。
In the case of using two pixels that are not adjacent to each other, the difference between the signal levels of the pixels that are not adjacent to each other is determined as the contrast value of the image. In this case, each pixel is thinned and used. Since the obtained contrast value does not use all the image information, the reliability of the calculation result of the contrast value is low, and the accuracy of the obtained focus position is low. If the signal levels of the respective pixels within the image evaluation range are S0, S1, S2,..., For example, | S0−
S4 | + | S4-S8 | and | S2-S6 |
In the case of + | S6−S10 |, there is a difference between the respective contrast values even in the case of the same image.

【0006】一方、隣接関係にある2画素を用いたもの
では、隣接する複数の画素の和を画素ブロックとして隣
接する画素ブロックを出力差を求め画像のコントラスト
値としているが、この場合も、例えば、|(S0+S1
+S2+S3)−(S4+S5+S6+S7)|+|
(S8+S9+S10+S11)−(S12+S13+
S14+S15)|+…とした場合と、|(S2+S3
+S4+S5)−(S6+S7+S8+S9)|+|
(S10+S11+S12+S13)−(S14+S1
5+S16+S17)|+…とした場合で、同じ画像の
場合でも、それぞれのコントラスト値に相違が生じてし
まう。
On the other hand, in the case of using two pixels having an adjacent relationship, the sum of a plurality of adjacent pixels is used as a pixel block to determine the output difference of the adjacent pixel block and to obtain the contrast value of the image. , | (S0 + S1
+ S2 + S3)-(S4 + S5 + S6 + S7) | + |
(S8 + S9 + S10 + S11)-(S12 + S13 +
S14 + S15) | +... And | (S2 + S3)
+ S4 + S5)-(S6 + S7 + S8 + S9) | + |
(S10 + S11 + S12 + S13)-(S14 + S1
5 + S16 + S17) | +..., And even in the case of the same image, a difference occurs between the respective contrast values.

【0007】このようにして画像評価関数を焦点調整に
適用した場合、コントラスト値を演算しながら焦点調整
を行う過程において、イメージセンサなどに取り込まれ
る画像の位置が少しずれただけでも、コントラスト値を
求めるための画素の組み合わせが変化するようになり、
このため、コントラスト値の演算結果が不安定になっ
て、精度の高い、安定した焦点検出が得られないという
問題があった。
When the image evaluation function is applied to the focus adjustment in this manner, in the process of performing the focus adjustment while calculating the contrast value, even if the position of the image captured by the image sensor or the like is slightly shifted, the contrast value is reduced. The combination of pixels to be obtained has changed,
For this reason, there is a problem that the calculation result of the contrast value becomes unstable, and stable and accurate focus detection cannot be obtained.

【0008】本発明は、上記事情に鑑みてなされたもの
で、精度の高い安定した焦点検出を行うことができる画
像評価関数を用いた自動焦点検出装置を提供することを
目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to provide an automatic focus detection apparatus using an image evaluation function capable of performing highly accurate and stable focus detection.

【0009】[0009]

【課題を解決するための手段】請求項1記載の発明は、
試料の光像が投影されるイメージセンサより取り込まれ
た画像中の所定範囲の画素データの隣接する複数画素の
和を1つの画素ブロックとし、これら画素ブロックの隣
接するものの差分または差分の2乗の総和を画像のコン
トラスト値として演算するとともに、1回ごとの画像入
力おいて画素ブロックに含まれる画素データの組み合わ
せを変えて複数回画像のコントラスト値を求め、それら
の和を画像評価関数として合焦度を求めるようにしてい
る。
According to the first aspect of the present invention,
The sum of a plurality of adjacent pixels of a predetermined range of pixel data in an image captured by an image sensor onto which a light image of a sample is projected is defined as one pixel block, and the difference between adjacent pixel blocks or the square of the difference is calculated. The sum is calculated as the contrast value of the image, the contrast value of the image is obtained a plurality of times by changing the combination of the pixel data included in the pixel block in each image input, and the sum is focused as an image evaluation function. I want to ask for degrees.

【0010】請求項2記載の発明は、請求項1記載にお
いて、前記画素ブロックに含まれる画素データの組み合
わせを変えて画像のコントラスト値を求める回数は、焦
点位置からのずれ量および焦点調整の必要精度の少なく
とも一方を条件として決定されている。
According to a second aspect of the present invention, in the first aspect, the number of times that the contrast value of the image is obtained by changing the combination of the pixel data included in the pixel block is the amount of deviation from the focal position and the necessity of the focus adjustment. It is determined on the condition of at least one of the accuracy.

【0011】請求項3記載の発明は、請求項1記載にお
いて、前記画素ブロックの1つに含まれる画素データの
数は、焦点位置からのずれ量、焦点調整の必要精度、画
像の明るさおよび試料の光像を取り込む光学系の光学的
条件の少なくとも1つを条件として決定されている。
According to a third aspect of the present invention, in the first aspect, the number of pieces of pixel data included in one of the pixel blocks includes a shift amount from a focus position, a required precision of focus adjustment, image brightness and It is determined on the condition that at least one of the optical conditions of the optical system for capturing the optical image of the sample is a condition.

【0012】この結果、請求項1記載の発明によれば、
画像信号中の評価対象となるコントラスト情報を漏らさ
ず評価できるので、焦点調整動作の過程において、イメ
ージセンサに投影される画像が多少ずれたような場合も
コントラスト評価値が変化することがなくなる。
As a result, according to the first aspect of the present invention,
Since the contrast information to be evaluated in the image signal can be evaluated without omission, the contrast evaluation value does not change even when the image projected on the image sensor is slightly shifted during the focus adjustment operation.

【0013】請求項2記載の発明によれば、焦点ずれが
大きな領域では、コントラスト評価関数として比較的単
純なコントラスト評価関数を用いて処理の時間短縮を優
先し、焦点位置に近付づくに従って複雑で高精度のコン
トラスト評価関数に変更するようにできる。
According to the second aspect of the present invention, in a region having a large defocus, a relatively simple contrast evaluation function is used as a contrast evaluation function to prioritize a reduction in processing time, and the complexity increases as the focus position is approached. Can be changed to a highly accurate contrast evaluation function.

【0014】請求項3記載の発明によれば、焦点位置か
らのずれ量、焦点調整の必要精度、画面の明るさ、対物
レンズの倍率などの光学的条件によって画素ブロックの
大きさを変更することで、目的に合致させた画像の評価
関数を選択できる。
According to the third aspect of the invention, the size of the pixel block is changed according to optical conditions such as the amount of deviation from the focal position, the required precision of focus adjustment, the brightness of the screen, and the magnification of the objective lens. The user can select an evaluation function of an image that matches the purpose.

【0015】[0015]

【発明の実施の形態】以下、本発明の実施の形態を図面
に従い説明する。 (第1の実施の形態)図1は、本発明が適用される実施
の形態の概略構成を示している。図1において、1は試
料で、この試料1の光像を対物レンズ2、結像レンズ3
を通してイメージセンサ4に取り込み、このイメージセ
ンサ4上に試料1の光像を投影させるようにしている。
この場合、結像レンズ3は、試料1の光像をイメージセ
ンサ4の予定焦点位置に投影させるものである。イメー
ジセンサ4は、結像レンズ3により予定焦点位置または
予定焦点位置前後の光像が投影されると、この光像を各
画素ごとに光電変換し画像データとして出力するように
している。
Embodiments of the present invention will be described below with reference to the drawings. (First Embodiment) FIG. 1 shows a schematic configuration of an embodiment to which the present invention is applied. In FIG. 1, reference numeral 1 denotes a sample, and an optical image of the sample 1 is converted into an objective lens 2 and an imaging lens 3.
Through the image sensor 4 to project a light image of the sample 1 onto the image sensor 4.
In this case, the imaging lens 3 projects an optical image of the sample 1 at a predetermined focal position of the image sensor 4. When the image sensor 4 projects a light image at or near the planned focal position by the imaging lens 3, the light image is photoelectrically converted for each pixel and output as image data.

【0016】そして、イメージセンサ4に演算回路5を
接続し、この演算回路5にA/Dコンバータ6を介して
メモリ7を接続し、このメモリ7にコントラスト評価演
算手段8を接続している。また、イメージセンサ4、演
算回路5およびA/Dコンバータ6には、タイミングジ
ェネレータ9を接続している。
An arithmetic circuit 5 is connected to the image sensor 4, a memory 7 is connected to the arithmetic circuit 5 via an A / D converter 6, and a contrast evaluation operation means 8 is connected to the memory 7. In addition, a timing generator 9 is connected to the image sensor 4, the arithmetic circuit 5, and the A / D converter 6.

【0017】ここで、演算回路5は、イメージセンサ4
に取り込まれた画像に対し波形整形などの所定の処理を
行うようにしている。A/Dコンバータ6は、演算回路
5で処理された画像データをデジタル信号に変換するも
のである。メモリ7は、A/Dコンバータ6でデジタル
化された画素データを一時記憶するものである。コント
ラスト評価演算手段8は、イメージセンサ4よりメモリ
7に書き込まれた画素データのうち、予め設定された画
像評価範囲に相当する画素データのみを読み出し、これ
ら画素データの隣接する複数画素の和を1つの画素ブロ
ックとして、隣接する画素ブロックの差分または差分の
2乗の総和を画像のコントラスト値として演算するもの
である。そして、タイミングジェネレータ9は、イメー
ジセンサ4に対し駆動パルスを出力するとともに、演算
回路5とA/Dコンバータ6に対して信号処理を行うタ
イミングパルスを出力するものである。
Here, the arithmetic circuit 5 includes the image sensor 4
Then, a predetermined process such as waveform shaping is performed on the image captured in. The A / D converter 6 converts the image data processed by the arithmetic circuit 5 into a digital signal. The memory 7 temporarily stores the pixel data digitized by the A / D converter 6. The contrast evaluation calculating means 8 reads out only the pixel data corresponding to the preset image evaluation range from the pixel data written into the memory 7 from the image sensor 4, and calculates the sum of a plurality of adjacent pixels of the pixel data as 1 As one pixel block, a difference between adjacent pixel blocks or a sum of squares of the difference is calculated as a contrast value of an image. The timing generator 9 outputs a drive pulse to the image sensor 4 and outputs a timing pulse for performing signal processing to the arithmetic circuit 5 and the A / D converter 6.

【0018】次に、このように構成した第1の実施の形
態の動作を説明する。まず、試料1に図示しない光源か
らの照明光を照射すると、試料1からの光像が対物レン
ズ2、結像レンズ3を介してイメージセンサ4上に投影
され、イメージセンサ4により、タイミングジェネレー
タ9から出力される駆動パルスに従って光像を各画素ご
とに光電変換され、画素データとして出力される。
Next, the operation of the first embodiment configured as described above will be described. First, when the sample 1 is irradiated with illumination light from a light source (not shown), a light image from the sample 1 is projected on the image sensor 4 via the objective lens 2 and the imaging lens 3, and the timing generator 9 The optical image is photoelectrically converted for each pixel in accordance with the drive pulse output from the pixel, and is output as pixel data.

【0019】そして、このイメージセンサ4からの画素
データは、演算回路5に送られ、波形整形などの所定の
処理が施されたのち、タイミングジェネレータ9のタイ
ミングパルスに応じてA/Dコンバータ6でデジタル信
号に変換され、メモリ7に書き込まれる。
The pixel data from the image sensor 4 is sent to an arithmetic circuit 5 and subjected to predetermined processing such as waveform shaping. Then, the A / D converter 6 responds to a timing pulse from a timing generator 9. It is converted to a digital signal and written to the memory 7.

【0020】この状態で、コントラスト評価演算手段8
は、イメージセンサ4よりメモリ7に書き込まれた画素
データのうち、予め設定された画像評価範囲内の画素デ
ータのみを読み出し、隣接する複数画素の和を1つの画
素ブロックとし、これら隣接する画素ブロックの差分ま
たは差分の2乗の総和を画像のコントラスト値として演
算するとともに、1回の画像入力おいて画素ブロックに
含まれる画素データの組み合わせを変えて複数回画像の
コントラスト値を求め、それらの和に基づいて合焦度を
求めるようになる。
In this state, the contrast evaluation calculating means 8
Reads out only the pixel data within the preset image evaluation range from the pixel data written into the memory 7 from the image sensor 4 and sets the sum of a plurality of adjacent pixels as one pixel block; And the sum of the squares of the differences is calculated as the contrast value of the image, and the contrast value of the image is obtained a plurality of times by changing the combination of the pixel data included in the pixel block in one image input. The degree of focus is obtained based on

【0021】この場合、図2(a)に示すように、1つ
の画素ブロックの大きさを4画素、画像評価範囲の画素
番号I(0)、I(1)、I(2)、…のそれぞれの信
号レベルをS0、S1、S2、…とすると、まず、図2
(b)に示すように画素番号I(0)〜I(3)を画素
ブロックBL1(1)、画素番号I(4)〜I(7)を
画素ブロックBL1(2)、…として、この時のコント
ラスト値EF(0)を、 EF(0)=|(S0+S1+S2+S3)−(S4+
S5+S6+S7)|+|(S8+S9+S10+S1
1)−(S12+S13+S14+S15)|+… より求め、同様にして、今度は、画素番号I(1)〜I
(4)を画素ブロックBL2(1)、画素番号I(5)
〜I(8)を画素ブロックBL2(2)、…として、こ
の時のコントラスト値EF(1)を、 EF(1)=|(S1+S2+S3+S4)−(S5+
S6+S7+S8)|+|(S9+S10+S11+S
12)−(S13+S14+S15+S16)|+… より求める。さらに、図2(c)に示すように画素番号
I(2)〜I(5)を画素ブロックBL3(1)、画素
番号I(6)〜I(9)を画素ブロックBL3(2)、
…として、この時のコントラスト値EF(2)を、 EF(2)=|(S2+S3+S4+S5)−(S6+
S7+S8+S9)|+|(S10+S11+S12+
S13)−(S14+S15+S16+S17)|+… より求める。
In this case, as shown in FIG. 2A, the size of one pixel block is 4 pixels, and pixel numbers I (0), I (1), I (2),. Assuming that the respective signal levels are S0, S1, S2,...
As shown in (b), pixel numbers I (0) to I (3) are defined as pixel block BL1 (1), pixel numbers I (4) to I (7) are defined as pixel block BL1 (2),. EF (0) = | (S0 + S1 + S2 + S3)-(S4 +
S5 + S6 + S7) | + | (S8 + S9 + S10 + S1
1) − (S12 + S13 + S14 + S15) | +..., And similarly, pixel numbers I (1) to I
(4) is a pixel block BL2 (1), a pixel number I (5)
To I (8) as a pixel block BL2 (2),..., And the contrast value EF (1) at this time is EF (1) = | (S1 + S2 + S3 + S4)-(S5 +
S6 + S7 + S8) | + | (S9 + S10 + S11 + S
12) − (S13 + S14 + S15 + S16) | +... Further, as shown in FIG. 2C, the pixel numbers I (2) to I (5) are assigned to the pixel block BL3 (1), and the pixel numbers I (6) to I (9) are assigned to the pixel block BL3 (2).
The contrast value EF (2) at this time is expressed as: EF (2) = | (S2 + S3 + S4 + S5)-(S6 +
S7 + S8 + S9) | + | (S10 + S11 + S12 +
S13) − (S14 + S15 + S16 + S17) | +...

【0022】このようにして、各画素ブロックに含まれ
る画素の組み合わせを1画素分づつずらしながら、さら
に、コントラスト値EF(3)、EF(4)、…を求
め、その後、これらコントラスト値EF(0)、EF
(1)、…の総和、つまりF(0)+EF(1)+F
(2)+EF(3)+、…を演算し、この結果を画像の
コントラスト評価値とする。
In this way, the contrast values EF (3), EF (4),... Are further obtained while shifting the combination of the pixels included in each pixel block by one pixel, and thereafter these contrast values EF ( 0), EF
(1),..., That is, F (0) + EF (1) + F
(2) + EF (3) +,... Are calculated, and the result is used as the contrast evaluation value of the image.

【0023】従って、このようにすれば、イメージセン
サ4より捕らえられた画像信号中の評価対象となるコン
トラスト情報を漏らさず評価できるようになるので、焦
点整合動作の過程において、イメージセンサ4に投影さ
れる画像が対物レンズ2の光軸に対し垂直方向に多少ず
れたような場合も、急激にコントラスト評価値が変化す
ることがなくなり、安定した画像評価を行うことができ
る。
Accordingly, since the contrast information to be evaluated in the image signal captured by the image sensor 4 can be evaluated without leaking, the image is projected onto the image sensor 4 during the focusing operation. Even when the image to be read is slightly displaced in the direction perpendicular to the optical axis of the objective lens 2, the contrast evaluation value does not suddenly change, and stable image evaluation can be performed.

【0024】この結果、このような考えを、例えば、イ
メージセンサ4に予定焦点前後2画像を投影し、これら
2画像のコントラスト評価値を比較して焦点調整を行
う、いわゆる光路差方式のものに採用すると、かかる方
式のものでも、予定焦点前後画像評価範囲が一致してい
る必要があるものの、顕微鏡観察などで様々な光学素子
の組み合わせて使用する場合に、イメージセンサ4に投
影した予定焦点前後画像範囲が数画素分ずれてしまうこ
とがあると、従来では、同じ画像が投影されているのに
かかわらず、図2(b)(c)に示すようにコントラス
ト評価結果に差が生じることになるが、上述したような
評価演算を実行することで、図2(b)の演算結果も同
図(c)に示す演算結果を含んだ画像評価を行うことが
できることから、常に安定した画像評価を得ることがで
きる。
As a result, such a concept is applied to, for example, a so-called optical path difference system in which two images before and after a predetermined focus are projected on the image sensor 4 and the contrast evaluation values of these two images are compared to adjust the focus. When this method is employed, even in the case of such a method, although it is necessary that the image evaluation ranges before and after the expected focal point match each other, when used in combination with various optical elements for microscopic observation, etc. If the image range is shifted by several pixels, there is a difference in the contrast evaluation results as shown in FIGS. 2B and 2C in the related art, regardless of whether the same image is projected. However, by performing the above-described evaluation operation, the operation result of FIG. 2B can be evaluated as an image including the operation result shown in FIG. It is possible to obtain a stable image evaluation.

【0025】なお、上述した第1の実施の形態では、1
つの画素ブロックの大きさを4画素としたが、4画素以
外の画素数の場合においても、上述したと同様に処理を
行うことができる。 (第2の実施の形態)図3は、本発明の第2の実施の形
態の概略構成を示すもので、図1と同一部分には同符号
を付している。
In the first embodiment described above, 1
Although the size of one pixel block is set to four pixels, the processing can be performed in the same manner as described above even when the number of pixels is other than four. (Second Embodiment) FIG. 3 shows a schematic configuration of a second embodiment of the present invention, and the same parts as those in FIG.

【0026】この場合、コントラスト評価演算手段8に
CPU10を接続している。このCPU10は、タイミ
ングジェネレータ9に制御指令を与えるとともに、コン
トラスト評価演算手段8で演算されたコントラスト評価
値を読み出して焦点のずれ方向やずれ量を算出するもの
である。
In this case, the CPU 10 is connected to the contrast evaluation calculating means 8. The CPU 10 gives a control command to the timing generator 9 and reads out the contrast evaluation value calculated by the contrast evaluation calculating means 8 to calculate the direction and amount of shift of the focus.

【0027】そして、このCPU10にステージ駆動回
路11を接続している。このステージ駆動回路11は、
CPU10で算出された焦点のずれ方向やずれ量に基づ
いて試料1を載置したステージ12の光軸方向の駆動を
制御するものである。
The stage drive circuit 11 is connected to the CPU 10. This stage drive circuit 11
The driving of the stage 12 on which the sample 1 is mounted in the optical axis direction is controlled based on the direction and amount of shift of the focus calculated by the CPU 10.

【0028】次に、このように構成した第2の実施の形
態の動作を図4に示すフローチャートにより説明する。
まず、ステップ401で、画素データをメモリ7に書き
込む。この場合も上述したように、試料1からの光像
が、対物レンズ2、結像レンズ3を介してイメージセン
サ4上に投影されると、イメージセンサ4により各画素
ごとに光電変換され画素データとして出力される。そし
て、この画素データは、演算回路5で、波形整形など所
定の処理が施されたのち、A/Dコンバータ6でデジタ
ル信号に変換され、メモリ7に書き込まれるようにな
る。
Next, the operation of the second embodiment configured as described above will be described with reference to the flowchart shown in FIG.
First, in step 401, pixel data is written into the memory 7. Also in this case, as described above, when the light image from the sample 1 is projected onto the image sensor 4 via the objective lens 2 and the imaging lens 3, the image data is photoelectrically converted by the image sensor 4 for each pixel, and the pixel data is converted. Is output as Then, the pixel data is subjected to predetermined processing such as waveform shaping by the arithmetic circuit 5, converted into a digital signal by the A / D converter 6, and written into the memory 7.

【0029】次いで、ステップ402で、コントラスト
評価演算手段8は、予め設定された画像評価範囲の画素
データをメモリ7から順次読み出し、隣接する複数画素
の和を1つの画素ブロックとし、隣接する画素ブロック
の差分の総和を画像のコントラスト値EF(0)として
演算する。つまり、この場合、上述した図2(a)に示
すように、1つの画素ブロックの大きさを4画素、画像
評価範囲の画素番号I(0)、I(1)、I(2)、…
のそれぞれの信号レベルをS0、S1、S2、…とする
と、まず、図2(b)に示すように画素番号I(0)〜
I(3)を画素ブロックBL1(1)、画素番号I
(4)〜I(7)を画素ブロックBL1(2)、…とし
て、この時のコントラスト値EF(0)を、 EF(0)=|(S0+S1+S2+S3)−(S4+
S5+S6+S7)|+|(S8+S9+S10+S1
1)−(S12+S13+S14+S15)|+… より演算する。
Next, at step 402, the contrast evaluation calculating means 8 sequentially reads out pixel data in a preset image evaluation range from the memory 7, sets the sum of a plurality of adjacent pixels as one pixel block, and Is calculated as the contrast value EF (0) of the image. That is, in this case, as shown in FIG. 2A, the size of one pixel block is 4 pixels, and the pixel numbers I (0), I (1), I (2),.
Are defined as S0, S1, S2,..., First, as shown in FIG.
I (3) is a pixel block BL1 (1), a pixel number I
(4) to I (7) are defined as pixel blocks BL1 (2),..., And the contrast value EF (0) at this time is EF (0) = | (S0 + S1 + S2 + S3)-(S4 +
S5 + S6 + S7) | + | (S8 + S9 + S10 + S1
1)-(S12 + S13 + S14 + S15) | +...

【0030】次に、ステップ403で、CPU10は、
コントラスト評価演算手段8からコントラスト値EF
(0)を読み出し、焦点ずれ量が所定レベルより大きい
か否かを判断する。
Next, in step 403, the CPU 10
The contrast value EF is output from the contrast evaluation calculating means 8.
(0) is read out, and it is determined whether or not the defocus amount is larger than a predetermined level.

【0031】ここで、焦点ずれ量が所定レベルより大き
く、Yesならば、高精度評価を行う必要がないと判断
して、ステップ404に進み、コントラスト値EF
(0)に基づいてステージ駆動量および駆動方向を算出
し、この結果をステージ駆動回路11に与えることで、
ステージ12の光軸方向の駆動を制御する。一方、焦点
ずれ量が所定レベルより小さく、Noならば、焦点に近
い位置に来ていると判断し、CPU10よりコントラス
ト評価演算手段8に対しEF(0)と画素ブロックの構
成が異なるEF(2)を演算させる指令を出力する。
Here, if the defocus amount is larger than the predetermined level and the result is Yes, it is determined that it is not necessary to perform high-precision evaluation.
By calculating the stage drive amount and the drive direction based on (0), and giving the results to the stage drive circuit 11,
The drive of the stage 12 in the optical axis direction is controlled. On the other hand, if the defocus amount is smaller than the predetermined level and is No, it is determined that the pixel is located near the focus, and the CPU 10 instructs the contrast evaluation calculation means 8 to change the pixel block configuration of EF (0) different from EF (0). ) Is output.

【0032】これにより、コントラスト評価演算手段8
は、CPU10の指令に従ってコントラスト値EF
(2)を演算する。この場合、図2(c)に示すように
画素番号I(2)〜I(5)を画素ブロックBL3
(1)、画素番号I(6)〜I(9)を画素ブロックB
L3(2)、…として、この時のコントラスト値EF
(2)を、 EF(2)=|(S2+S3+S4+S5)−(S6+
S7+S8+S9)|+|(S10+S11+S12+
S13)−(S14+S15+S16+S17)|+… より求める。
Thus, the contrast evaluation calculating means 8
Is a contrast value EF according to a command from the CPU 10.
(2) is calculated. In this case, as shown in FIG. 2C, the pixel numbers I (2) to I (5) are assigned to the pixel block BL3.
(1) Pixel numbers I (6) to I (9) are assigned to pixel block B
L3 (2),..., The contrast value EF at this time
EF (2) = | (S2 + S3 + S4 + S5)-(S6 +
S7 + S8 + S9) | + | (S10 + S11 + S12 +
S13) − (S14 + S15 + S16 + S17) | +...

【0033】そして、ステップ405で、CPU10
は、コントラスト評価演算手段8からコントラスト値E
F(2)を読み出すとともに、EF(0)+EF(2)
を演算し、さらに、ステップ406で、焦点位置の近傍
にあるか否かを判断する。
Then, in step 405, the CPU 10
Is the contrast value E from the contrast evaluation calculating means 8.
F (2) is read, and EF (0) + EF (2)
Is calculated, and it is determined in step 406 whether or not it is near the focal position.

【0034】ここでも焦点近傍でなく、Noならば、ス
テップ404に進み、コントラスト値EF(0)+EF
(2)に基づいてステージ駆動量および駆動方向を算出
し、この結果をステージ駆動回路11に与えることで、
ステージ12の光軸方向の駆動を制御する。一方、焦点
位置の近傍に来ていてYesならば、焦点合わせのの最
終段階として、CPU10よりコントラスト評価演算手
段8に対しEF(0)、EF(2)と画素ブロックの構
成が異なるEF(1)を演算させる指令を出力する。こ
れにより、コントラスト評価演算手段8は、CPU10
の指令に従ってコントラスト値EF(1)を演算する。
Here, too, if it is not near the focal point, and if No, the process proceeds to step 404, where the contrast value EF (0) + EF
By calculating the stage drive amount and the drive direction based on (2), and giving the results to the stage drive circuit 11,
The drive of the stage 12 in the optical axis direction is controlled. On the other hand, if it is near the focal position and the result is Yes, as the final stage of focusing, the CPU 10 instructs the contrast evaluation calculating means 8 to use the EF (1) having a different pixel block configuration from EF (0), EF (2). ) Is output. As a result, the contrast evaluation calculating means 8
The contrast value EF (1) is calculated in accordance with the instruction.

【0035】この場合、画素番号I(1)〜I(4)を
画素ブロックBL2(1)、画素番号I(5)〜I
(8)を画素ブロックBL2(2)、…として、この時
のコントラスト値EF(1)を、 EF(1)=|(S1+S2+S3+S4)−(S5+
S6+S7+S8)|+|(S9+S10+S11+S
12)−(S13+S14+S15+S16)|+… より求めるとともに、画素番号I(3)〜I(6)を画
素ブロックBL4(1)、画素番号I(7)〜I(1
0)を画素ブロックBL4(2)、…として、この時の
コントラスト値EF(3)を、 EF(3)=|(S3+S4+S5+S6)−(S7+
S8+S9+S10)|+|(S11+S12+S13
+S14)−(S15+S16+S17+S18)|+
… より求める。
In this case, the pixel numbers I (1) to I (4) are assigned to the pixel block BL2 (1) and the pixel numbers I (5) to I (5).
(8) is a pixel block BL2 (2),..., And the contrast value EF (1) at this time is EF (1) = | (S1 + S2 + S3 + S4)-(S5 +
S6 + S7 + S8) | + | (S9 + S10 + S11 + S
12) − (S13 + S14 + S15 + S16) | +..., And pixel numbers I (3) to I (6) are assigned to pixel block BL4 (1), pixel numbers I (7) to I (1).
0) as the pixel block BL4 (2),..., The contrast value EF (3) at this time is expressed as EF (3) = | (S3 + S4 + S5 + S6)-(S7 +
S8 + S9 + S10) | + | (S11 + S12 + S13
+ S14)-(S15 + S16 + S17 + S18) | +
… Ask more.

【0036】そして、ステップ407で、CPU10
は、コントラスト評価演算手段8からコントラスト値E
F(1)、EF(3)を読み出すとともに、EF(0)
+EF(1)+EF(2)+EF(3)を演算し、さら
に、ステップ408で、合焦範囲内であるか否かを判断
する。
Then, in step 407, the CPU 10
Is the contrast value E from the contrast evaluation calculating means 8.
F (1) and EF (3) are read and EF (0)
+ EF (1) + EF (2) + EF (3) is calculated, and in step 408, it is determined whether or not it is within the focusing range.

【0037】ここでも合焦範囲内でなく、Noならば、
ステップ404に進み、コントラスト値EF(0)+E
F(1)+EF(2)+EF(3)に基づいてステージ
駆動量および駆動方向を算出し、この結果をステージ駆
動回路11に与えることで、ステージ12の光軸方向の
駆動を制御する。一方、合焦範囲内と判断し、Yesな
らば、焦点調整動作を終了する。
Here, too, if it is not within the focusing range and No,
Proceeding to step 404, the contrast value EF (0) + E
The stage drive amount and the drive direction are calculated based on F (1) + EF (2) + EF (3), and the results are given to the stage drive circuit 11, whereby the drive of the stage 12 in the optical axis direction is controlled. On the other hand, it is determined that it is within the in-focus range, and if Yes, the focus adjustment operation ends.

【0038】従って、このようにすれば、焦点ずれが大
きな領域では、コントラスト評価関数としてEF(0)
のように比較的単純なコントラスト評価関数を用いるこ
とで、精度に比べ処理の時間短縮を優先し、焦点位置に
近付づくに従ってEF(0)+EF(2)またはEF
(0)+EF(1)+EF(2)+EF(3)のような
複雑で高精度のコントラスト評価関数に変更していくこ
とにより、高速で且つ精度の高い焦点調整を実現するこ
とができる。つまり、第2の実施の形態では、焦点から
のずれ量の大きさによって焦点調整に用いるコントラス
ト評価関数をEF(0)のみ、EF(0)+EF(2)
またはEF(0)+EF(1)+EF(2)+EF
(3)を選択可能にしているので、例えば、写真撮影の
ように、かなりの高精度の焦点整合が必要とされる場合
は、EF(0)+EF(1)+EF(2)+EF(3)
からなる高精度のためのコントラスト評価関数を選択
し、目視による検査のように試料を動かしながら観察す
るような場合、写真撮影に比べ精度を必要としないが、
高速な追従性能が要求される場合は、EF(0)または
EF (0)+EF(2)のコントラスト評価関数を選
択するように焦点調整のモードによってコントラスト評
価関数を選択することにより、目的に合致した高速で且
つ精度の高い焦点調整を実現ができる。(第3の実施の
形態)この場合、第3の実施の形態では、第2の実施の
形態で説明した図3と同様のに構成されるので、ここで
は図3を援用して説明を省略する。
Accordingly, in this case, in a region where the defocus is large, EF (0) is used as the contrast evaluation function.
By using a comparatively simple contrast evaluation function as described above, priority is given to shortening the processing time compared to the accuracy, and EF (0) + EF (2) or EF as the focus position is approached.
By changing to a complex and high-precision contrast evaluation function such as (0) + EF (1) + EF (2) + EF (3), high-speed and high-precision focus adjustment can be realized. That is, in the second embodiment, only EF (0) is used as the contrast evaluation function to be used for focus adjustment depending on the amount of shift from the focus, and EF (0) + EF (2).
Or EF (0) + EF (1) + EF (2) + EF
Since (3) is selectable, EF (0) + EF (1) + EF (2) + EF (3) can be used when extremely high-precision focusing is required, for example, in photographing.
If you select a contrast evaluation function for high accuracy consisting of and observe while moving the sample like visual inspection, accuracy is not required compared to photography,
When high-speed tracking performance is required, the contrast evaluation function is selected according to the focus adjustment mode such that the contrast evaluation function of EF (0) or EF (0) + EF (2) is selected. High-speed and highly accurate focus adjustment can be realized. (Third Embodiment) In this case, in the third embodiment, since the configuration is the same as that of FIG. 3 described in the second embodiment, the description is omitted here with reference to FIG. I do.

【0039】そして、このようにした第3の実施の形態
の動作を図5に示すフローチャートにより説明する。ま
ず、ステップ501で、画素データをメモリ7に書き込
む。この場合も上述したように、試料1からの光像が、
対物レンズ2、結像レンズ3を介してイメージセンサ4
上に投影されると、イメージセンサ4により各画素ごと
に光電変換され画素データとして出力される。そして、
この画素データは、演算回路5で、波形整形など所定の
処理が施されたのち、A/Dコンバータ6でデジタル信
号に変換され、メモリ7に書き込まれるようになる。
The operation of the third embodiment will be described with reference to the flowchart shown in FIG. First, in step 501, pixel data is written to the memory 7. Also in this case, as described above, the light image from the sample 1 is
Image sensor 4 via objective lens 2 and imaging lens 3
When projected on the upper side, the image is photoelectrically converted for each pixel by the image sensor 4 and output as pixel data. And
The pixel data is subjected to predetermined processing such as waveform shaping by the arithmetic circuit 5, converted into a digital signal by the A / D converter 6, and written into the memory 7.

【0040】次に、ステップ502で、CPU10によ
り現在光路中にある対物レンズ2の倍率が高倍率のもの
か否かを判断する。ここで、対物レンズ2が低倍率のも
ので、Noならば、ステップ503で、コントラスト評
価演算手段8に対し1つの画素ブロックに含める画素数
を少なくするように出力し、一方、対物レンズ2が高倍
率のものでYesならば、ステップ504で、コントラ
スト評価演算手段8に対し1つの画素ブロックに含める
画素数を多くするように出力する。
Next, at step 502, the CPU 10 determines whether or not the magnification of the objective lens 2 currently in the optical path is high. Here, if the objective lens 2 has a low magnification and is No, at step 503, an output is made to the contrast evaluation calculation means 8 so as to reduce the number of pixels included in one pixel block. If the magnification is high and the result is Yes, in step 504, the contrast evaluation calculation means 8 is output so as to increase the number of pixels included in one pixel block.

【0041】そして、ステップ505で、コントラスト
評価演算手段8は、予め設定された画像評価範囲の画素
データをメモリ7から順に読み出し、第1の実施の形態
で述べたと同様にしてCPU10に指定された数の隣接
画素の和を1つの画素ブロックとし、隣接する画素ブロ
ックの差分の総和を画像のコントラスト値として演算
し、この結果に基づいて、CPU10は、ステップ50
6で、合焦範囲内か否かを判断する。ここで、合焦範囲
内でなく、Noならば、ステップ501に戻って、上述
した動作を繰り返し、また、合焦範囲内で、Yesなら
ば、ステップ507に進み焦点調整動作を終了する。
Then, in step 505, the contrast evaluation calculating means 8 sequentially reads out the pixel data of the preset image evaluation range from the memory 7, and specifies the pixel data in the CPU 10 in the same manner as described in the first embodiment. The sum of the adjacent pixels is regarded as one pixel block, and the sum of the differences between the adjacent pixel blocks is calculated as the contrast value of the image.
At 6, it is determined whether or not it is within the focusing range. Here, if not within the focusing range, if No, the process returns to step 501 to repeat the above-described operation. If within the focusing range, Yes, the process proceeds to step 507 and ends the focus adjustment operation.

【0042】従って、このようにすれば、顕微鏡などに
おいて、対物レンズ2の倍率を極低倍率から高倍率の範
囲で切り換えて観察するような場合、観察画像の周波数
分布も大幅に変化する特徴を有しているが、このような
場合でも、対物レンズ2の倍率によって画素ブロックの
大きさを変更できるようにしたので、対物レンズ2の低
倍率から高倍率の範囲でも高精度で安定した焦点検出を
行うことができる。
Accordingly, in this case, when the microscope is used to change the magnification of the objective lens 2 from the extremely low magnification to the high magnification for observation, the frequency distribution of the observed image greatly changes. However, even in such a case, since the size of the pixel block can be changed according to the magnification of the objective lens 2, stable focus detection can be performed with high accuracy even in the range from low magnification to high magnification of the objective lens 2. It can be performed.

【0043】なお、上述では、対物レンズ2の倍率など
の光学条件に応じて画素ブロックの大きさを変更できる
ようにしたが、これに限らず、焦点位置からのずれ量、
焦点調整の必要精度、画面の明るさなどの光学的条件に
よって画素ブロックの大きさを変更して画像の評価関数
を選択するようにもできる。
In the above description, the size of the pixel block can be changed according to the optical conditions such as the magnification of the objective lens 2. However, the present invention is not limited to this.
The evaluation function of the image can be selected by changing the size of the pixel block according to optical conditions such as the required accuracy of the focus adjustment and the brightness of the screen.

【0044】[0044]

【発明の効果】以上述べたように本発明によれば、画像
信号中の評価対象となるコントラスト情報を漏らさず評
価できるようになるので、焦点調整動作の過程におい
て、イメージセンサに投影される画像が多少ずれたよう
な場合も、急激にコントラスト評価値が変化することが
なくなり、安定した画像評価を行うことができる。
As described above, according to the present invention, since the contrast information to be evaluated in the image signal can be evaluated without leaking, the image projected on the image sensor in the process of the focus adjustment operation can be evaluated. Is slightly shifted, the contrast evaluation value does not suddenly change, and stable image evaluation can be performed.

【0045】また、焦点ずれが大きな領域では、コント
ラスト評価関数として比較的単純なコントラスト評価関
数を用いることで、精度に比べ処理の時間短縮を優先
し、焦点位置に近付づくに従って複雑で高精度のコント
ラスト評価関数に変更していくことにより、目的に合致
した高速で且つ精度の高い焦点調整を実現できる。
In a region where the defocus is large, a relatively simple contrast evaluation function is used as the contrast evaluation function, so that the processing time is prioritized in comparison with the accuracy, and as the focus position is approached, the processing becomes complicated and highly accurate. By changing to the contrast evaluation function of, high-speed and high-accuracy focus adjustment that meets the purpose can be realized.

【0046】焦点位置からのずれ量、焦点調整の必要精
度、画面の明るさ、対物レンズの倍率などの光学的条件
によって画素ブロックの大きさを変更して画像の評価関
数を選択するようにもできるので、この場合も、目的に
合致した高速で且つ精度の高い焦点調整を実現ができ
る。
It is also possible to change the size of the pixel block according to optical conditions such as the amount of deviation from the focal position, the required accuracy of focus adjustment, the brightness of the screen, the magnification of the objective lens, and to select an image evaluation function. Therefore, also in this case, high-speed and high-accuracy focus adjustment that meets the purpose can be realized.

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

【図1】本発明の第1の実施の形態の概略構成を示す
図。
FIG. 1 is a diagram showing a schematic configuration of a first embodiment of the present invention.

【図2】第1の実施の形態を説明するための図。FIG. 2 is a diagram for explaining the first embodiment.

【図3】本発明の第2の実施の形態の概略構成を示す
図。
FIG. 3 is a diagram showing a schematic configuration of a second embodiment of the present invention.

【図4】第2の実施の形態を説明するためのフローチャ
ート。
FIG. 4 is a flowchart for explaining a second embodiment;

【図5】本発明の第3の実施の形態を説明するためのフ
ローチャート。
FIG. 5 is a flowchart for explaining a third embodiment of the present invention.

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

1…試料、 2…対物レンズ、 3…結像レンズ、 4…イメージセンサ、 5…演算回路、 6…A/Dコンバータ、 7…メモリ、 8…コントラスト評価演算手段、 9…タイミングジェネレータ、 10…CPU、 11…ステージ駆動回路、 12…ステージ。 DESCRIPTION OF SYMBOLS 1 ... sample, 2 ... objective lens, 3 ... imaging lens, 4 ... image sensor, 5 ... arithmetic circuit, 6 ... A / D converter, 7 ... memory, 8 ... contrast evaluation calculation means, 9 ... timing generator, 10 ... CPU, 11: Stage drive circuit, 12: Stage.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 試料の光像が投影されるイメージセンサ
より取り込まれた画像中の所定範囲の画素データの隣接
する複数画素の和を1つの画素ブロックとし、これら画
素ブロックの隣接するものの差分または差分の2乗の総
和を画像のコントラスト値として演算するとともに、1
回ごとの画像入力おいて画素ブロックに含まれる画素デ
ータの組み合わせを変えて複数回画像のコントラスト値
を求め、それらの和を画像評価関数として合焦度を求め
ることを特徴とする自動焦点検出装置。
1. A pixel block, wherein the sum of a plurality of adjacent pixels of a predetermined range of pixel data in an image captured by an image sensor onto which an optical image of a sample is projected is defined as one pixel block, and the difference or The sum of the squares of the differences is calculated as the contrast value of the image.
An automatic focus detection device, wherein a contrast value of an image is obtained a plurality of times by changing a combination of pixel data included in a pixel block in an image input every time, and a sum thereof is obtained as an image evaluation function to obtain a degree of focus. .
【請求項2】 前記画素ブロックに含まれる画素データ
の組み合わせを変えて画像のコントラスト値を求める回
数は、焦点位置からのずれ量および焦点調整の必要精度
の少なくとも一方を条件として決定されることを特徴と
する請求項1記載の自動焦点検出装置。
2. The method according to claim 1, wherein the number of times of obtaining a contrast value of an image by changing a combination of pixel data included in the pixel block is determined based on at least one of a shift amount from a focus position and a necessary accuracy of focus adjustment. The automatic focus detection device according to claim 1, wherein:
【請求項3】 前記画素ブロックの1つに含まれる画素
データの数は、焦点位置からのずれ量、焦点調整の必要
精度、画像の明るさおよび試料の光像を取り込む光学系
の光学的条件の少なくとも1つを条件として決定される
ことを特徴とする請求項1記載の自動焦点検出装置。
3. The number of pieces of pixel data included in one of the pixel blocks is determined by a shift amount from a focus position, a necessary accuracy of focus adjustment, an image brightness, and an optical condition of an optical system for capturing an optical image of a sample. The automatic focus detection device according to claim 1, wherein the automatic focus detection device is determined based on at least one of the following conditions.
JP9131041A 1997-05-21 1997-05-21 Automatic focus detecting device Withdrawn JPH10319313A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP9131041A JPH10319313A (en) 1997-05-21 1997-05-21 Automatic focus detecting device
US10/286,271 US7133078B2 (en) 1997-05-21 2002-11-01 Automatic focal point sensing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9131041A JPH10319313A (en) 1997-05-21 1997-05-21 Automatic focus detecting device

Publications (1)

Publication Number Publication Date
JPH10319313A true JPH10319313A (en) 1998-12-04

Family

ID=15048646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9131041A Withdrawn JPH10319313A (en) 1997-05-21 1997-05-21 Automatic focus detecting device

Country Status (1)

Country Link
JP (1) JPH10319313A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003034708A1 (en) * 2001-10-10 2003-04-24 Pfu Limited Method for controlling image reader
JP2010512545A (en) * 2006-12-11 2010-04-22 サイテック コーポレイション Method for assessing image focus quality
JP2010517114A (en) * 2007-01-29 2010-05-20 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Method and apparatus for calculating a focus metric

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003034708A1 (en) * 2001-10-10 2003-04-24 Pfu Limited Method for controlling image reader
JP2010512545A (en) * 2006-12-11 2010-04-22 サイテック コーポレイション Method for assessing image focus quality
JP2012073616A (en) * 2006-12-11 2012-04-12 Cytyc Corp Focusing method for image processing system
JP2010517114A (en) * 2007-01-29 2010-05-20 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Method and apparatus for calculating a focus metric

Similar Documents

Publication Publication Date Title
US4573784A (en) Focus detecting apparatus
US4716434A (en) Focus condition detecting device
US6359650B1 (en) Electronic camera having a tilt detection function
JP5288752B2 (en) Imaging device
JP5211714B2 (en) Imaging device
JP3093781B2 (en) Focus position detection device
JP2008020498A (en) Automatic focus detection device
JP2004126574A (en) Focusing of electronic imaging apparatus
KR20100002051A (en) Photographing apparatus and method
US5485209A (en) Pupil divisional type focusing position detection apparatus for electronic cameras
US7133078B2 (en) Automatic focal point sensing device
JP2009047978A (en) Imaging apparatus, focusing unit, imaging method, and focusing method
JPS59126517A (en) Focusing detector of camera
JP2007240877A (en) Imaging apparatus and control method therefor
JPH10319313A (en) Automatic focus detecting device
JPH11205694A (en) Photoelectric converting device and focus detecting device
JPH0488326A (en) Object detector of optical instrument
JP7197431B2 (en) Optical instrument adjustment method, optical system
JPH11337814A (en) Optical device
JPH09274130A (en) Lens barrel and camera
JPH08294035A (en) Image processing unit and image processing method
JP3645625B2 (en) Microscope automatic focus detection method, microscope automatic focus detection device, and microscope using the same
JPH0442207A (en) Autofocusing device
JPH0693059B2 (en) Focus detection device
JP3403445B2 (en) Automatic focusing device and microscope using this automatic focusing device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040803