TW200527907A - Autofocus control method, autofocus controller, and image processor - Google Patents

Autofocus control method, autofocus controller, and image processor Download PDF

Info

Publication number
TW200527907A
TW200527907A TW093125567A TW93125567A TW200527907A TW 200527907 A TW200527907 A TW 200527907A TW 093125567 A TW093125567 A TW 093125567A TW 93125567 A TW93125567 A TW 93125567A TW 200527907 A TW200527907 A TW 200527907A
Authority
TW
Taiwan
Prior art keywords
focus
evaluation
image
image data
item
Prior art date
Application number
TW093125567A
Other languages
Chinese (zh)
Other versions
TWI245556B (en
Inventor
Hiroki Ebe
Masaya Yamauchi
Kiyoyuki Kikuchi
Kiyotaka Kuroda
Junichi Takahashi
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
Publication of TW200527907A publication Critical patent/TW200527907A/en
Application granted granted Critical
Publication of TWI245556B publication Critical patent/TWI245556B/en

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • G02B7/36Systems for automatic generation of focusing signals using image sharpness techniques, e.g. image processing techniques for generating autofocus signals

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)
  • Microscoopes, Condenser (AREA)
  • Stereoscopic And Panoramic Photography (AREA)

Abstract

An autofocus control method, an autofocus controller, and an image processor capable of eliminating influence originated from an optical system, realizing a stable autofocus function. In calculating a focus evaluation value of each sample image obtained at plural focus positions, dark and light patterns of brightness originated from the optical system is reduced by applying smoothing processing to the obtained sample image, and the focus evaluation value is calculated based on the smoothed sample image. Further, the focus evaluation value is standardized by average display brightness of the smoothed sample image to obtain an optimal evaluation value.

Description

200527907 (1) 九、發明說明 【發明所屬之技術領域】 本發明是關於一種如錄 適用於觀察、檢查的裝置, 實現穩定的自動聚焦動作的 控制方法、自動聚焦控制裝 【先前技術】 習知,控制畫像自動聚 (工件)的畫像資料來評價 評價値。亦即,變更透鏡工 料,對於各該資料來計算焦 置。 第21圖是表示透鏡工件 (縱軸)的關係例。此爲以 來存取畫像,計算出各畫像 圖表中的焦點評價値最大値 焦位置。以下,將對於該透 標繪稱爲「聚焦曲線」。 在習知技術中,以所定 ’並將該圖表中焦點評價値 ’或是由最大値前後的焦點 。作爲焦點評價値,使用如 、高度的分散、高度的微分 影攝影機來攝影拍照體試料, 特別是排除光學系的影響而可 自動聚焦控制方法,自動聚焦 置及畫像處理裝置。 焦’是進行使用從拍照體試料 調焦程度而加以數値化的焦點 件間距離而收集試料的畫像資 點評價値來檢索適當的聚焦位 間距離(橫軸)與焦點評價値 一定間隔變更透鏡工件間距離 的焦點評價値並加以標繪者。 ,是對焦位置,亦即最適當聚 鏡工件間距離的焦點評價値的 檢索範圍變更透鏡工件間距離 的最大値作爲最適當聚焦位置 評價値來計算最適當聚焦位置 亮度的最大値、高度的微分値 値的分散等。作爲從焦點評價 200527907 (2) 値最大値求得最適當聚焦位置的算術,有登山法等,又, 爲了縮短檢索時間,有將檢索動作分成幾個階段的方法被 實用化(日本特開平6 - 2 1 7 1 8 0號公報、特開2 0 0 2 - 3 3 5 7 1號 公報及特許第2 9 7 1 8 9 2號公報)。 隨著對象工件的微細化,在適用該聚焦技術的檢查器 ’被要求提昇分解能。欲提昇該分解能,以照明光源的短 波長化、及單一波長化可加以對應。利用短波長化可提昇 光學性分解能,而利用單一波長化可避免色像差等的影響 〇 然而’利用照明光源的短波長化會在使用於光路的透 鏡等的光學材料上發生限制,又利用單一波長化有斑紋等 的影響的問題。在此所謂斑紋,爲指畫面亮度斑狀地分布 的狀態’藉由光源的波長或光學系的構成採取獨特圖案的 濃淡分布。 藉由此些影響,上述的聚焦曲線是如第22圖所示地, 光學系的影響採取比最適當聚焦位置的焦點評價値還大的 數値的情形。聚焦曲線的形狀或數値範圍,是無法利用對 象物的反射率等表面狀態一義地加以決定之故,因而在該 狀態下’欲從焦點評價値的最大値求出聚焦位置的先前技 術中,無法穩定地求出最適當的聚焦位置。 本發明是鑑於上述缺點問題而創作者,其課題爲提供 一種排除起因於光學系的影響而可實現穩定的自動聚焦動 作的自動聚焦控制方法、自動聚焦控制裝置及畫像處理裝 置。 -6- 200527907 (3) 【發明內容】 爲了解決以上的課題,本發明的自動聚焦控制方法具 有:在透鏡一拍照體間距離不相同的複數聚焦位置分別取 得拍照體的畫像資料的畫像取得工程,及依據所取得的各 畫像資料’複數聚焦位置別地分別算出焦點評價値的評價 値算出工程,及將焦點評價値成爲最大的聚焦位運算出作 爲焦點位置的焦點位置算出工程,及朝算出的焦點位置將 透鏡對於上述拍照體相對移動的移動工程;平滑化處理在 上述畫像取得工程所取得的畫像資料,依據經該平滑化處 理的畫像資料來算出焦點評價値。 亦即,斑狀亮度的濃淡分布,是依單一波長的斑紋爲 其原因。如此,爲了減輕該濃淡分布圖案,在本發明中施 加畫像的平滑化處理。利用該平滑化處理,一面減輕斑紋 的濃淡分布圖案,一面捉住對象試料(拍照體)的特徵而 適當地可算出焦點評價値。 欲進行畫像平滑化處理,則處理對象像素數(單位處 理範圍)·,濾波係數、處理次數、有無加權等的處理條件 6勺設定,是按照所適用的光學系的種類或拍照體試料的表 ®性狀等可適當地設定。 另一方面,欲算出焦點評價値,則檢測所取得的畫像 資料的鄰接像素間的亮度資料差較理想,例如可使用抽出 特徵部與輪廓部的像素間的亮度資料變化的邊緣強調處理 擬算出焦點評價値,若在相同對象領域利用聚焦位置 200527907 (4) 而有亮度參差不齊,則鄰接像素間的亮度資料差的絕緣値 會變化’無法適當地算出焦點評價値。又爲了避免此種缺 點問題’藉由以該畫面整體的平均亮度來除算所算出的評 價値’來進行依焦點評價値的畫面平均亮度的規格化最理 相 〇 又’附隨於該自動聚焦控制動作,從在複數聚焦位置 所取得的各試料畫像的焦點評價値,可附加合成拍照體的 全焦點畫像或立體畫像的功能。此些處理是將各聚焦位置 的取得畫像在面內分割成複數領域,同時依據分割領域別 地所得到的焦點評價値或聚焦位置資訊所進行。這時候, 成爲排除光學系的影響並以優異的分解能可檢查、或觀察 三維構造的拍照體表面。 又’本發明的自動聚焦控制裝置具有:依據在透鏡一 拍照體間距離不相同的複數聚焦位置所取得的各畫像資料 ’複數聚焦位置別地分別算出焦點評價値的評價値算出手 段’及依據所算出的焦點評價値的最大値算出焦點位置的 焦點位置算出手段、及平滑化處理所取得的畫像資料的畫 像平滑化手段;依據在該畫像平滑化手段施以平滑化處理 的畫像資料來算出各畫像資料的焦點評價値。 本發明的自動聚焦控制裝置,是與在複數聚焦位置取 得拍照體的畫像資料的畫像取得手段,調整透鏡一拍照體 間距離的驅動手段等組合,構成作爲一個畫像處理裝置也 可以’或是此些畫像取得手段,驅動手段可構成作爲獨立 的另一個構成體。 -8 - 200527907 (5) 依照本發明,排除起因於光學系的影響而穩定地可進 行高精度的自動聚焦控制之故,因而成爲可使用短波長/ 單一波長光源的試料觀察,例如以高分解能可觀察到微細 加工化有所進步的半導體晶圓等。 【實施方式】 以下’參照圖式說明本發明的各實施形態。 (第一實施形態) 第1圖是表示通用依本發明的實施形態的自動聚焦控 制方法及自動聚焦控制裝置的畫像處理裝置的槪略構成圖 。畫像處理裝置1是使用於拍照體試料(工件)的表面觀 察’特別是,例如構成作爲使用於半導體晶圓等在表面施 以微細加工所構成的元件構造體的缺陷檢出等的顯微鏡。 畫像處理裝置1是具備:測定台2、物鏡3、透鏡驅動 部 4、鏡筒 5、CCD( Charge Coupled Device)攝影機 6、 控制器7、驅動器8、監測器9及照明光源〗〇。 測定台2是支持拍照體試料(例如半導體晶圓)w, 構成朝X - Y方向(圖中左右方向及紙面垂直方向)移動 自如狀態。 透鏡驅動部4是對於測定台2上的拍照體試料W將物鏡 3朝聚焦軸方向(圖中上下方向)相對移動在所定聚焦位 置檢索軸圍全面’而可變δ周整透鏡一工件間的距離。又, 透鏡驅動部4是對應於「驅動手段」。 200527907 (6) 在本實施形態中,透鏡驅動部4是以壓電元件所構成 ,惟此以外,也可採用如脈衝電動機等精密移送機構。又 ,在調整透鏡-工件間距離作成朝聚焦軸方向移動物鏡, 惟代替此,朝聚焦軸方向移動測定台2也可以。 C C D攝影機6是經由在聚焦位置檢索範圍內移動的物 鏡3、功能作爲攝影測定台2上的拍照體試料w表面的特定 領域的錄影攝影機,將所取得的畫像資料輸出至控制器7 。CCD攝影機6是物鏡3、透鏡驅動部4及鏡筒5—起構成本 發明的「畫像取得手段」。又,在C C D以外,也可適用 CMOS圖像裝置等其他固體攝影元件。 控制器7是具備以電腦所構成,控制畫像處理裝置1整 體的動作,同時檢測拍照體試料W表面的特定領域的最適 當聚焦位置(焦點位置)的自動聚焦(AF )控制部1 1。 又,該自動聚焦控制部1 1是對應於本發明的「自動聚焦控 制裝置」。 驅動器8是接受來自自動聚焦控制部〗〗的控制信號並 生成驅動透鏡驅動部4的驅動信號,在本實施形態中,驅 動器8是以具備磁滯補償功能的壓電驅動器所構成。又, 驅動器8是組裝於自動聚焦控制部n內也可以。 自動聚焦控制部1 1是經由驅動器8來驅動透鏡驅動部4 ,在以一定間隔變更物鏡3與拍照體試料W之間的距離( 透鏡-工件間距離)的複數聚焦位置中,藉由C C D攝影機 6分別取得拍照體試料w的畫像資料,進行如下述的各種 處理來檢測拍照體試料w的攝影領域的最適當聚焦位置’ -10- 200527907 (7) 亦即焦點位置。 監測器9是顯示依控制器7的處理內容,同 C C D攝影機6所攝影的拍照體試料W的畫像等。 作爲照明光源1 〇,在本實施形態中使用例; η m的連續雷射或脈衝雷射光源。又,照明光源 域是並不被限定於上述的紫外光領域,按照用途 可使用波長領域不相同的其他紫外線或可視光領 〇 第2圖是表示畫像處理裝置1的構成的方塊圖 從C C D攝影機6所輸出的類比畫像信號是藉 換器1 3變換成數位畫像信號。A / D變換器1 3的 是被供給到記憶體1 4並加以記憶。控制器7的自 制部1 1,是讀出從記憶體1 4所變換的數位畫像信 下述的自動聚焦控制。又,驅動器8是依據來自 變換器1 7所供給的控制器7的控制信號來生成對 動部4的驅動信號。 自動聚焦控制部1 1是具備平滑化處理電路1 亮度算出電路1 1 B、評價値算出電路1 1 C及焦點 電路1 1 D。 平滑化處理電路1 1 A是將在複數聚焦位置所 照體試料W的各該畫像信號(試料畫像)的自動 領域(整體畫面或是畫面內的一部領域)加以平 的電路,對應於本發明的「畫像平滑化手段」。 控制部1 ]是藉由該畫像平滑化處理電路1 1 A,減 時顯不以 口波長1 9 6 的波長領 :等當然也 丨域的光源 〇 由A/ D變 輸出信號 動聚焦控 ‘號,進行 經由D / A 於透鏡驅 1 A、平均 位置算出 取得的拍 聚焦對象 滑化處理 自動聚焦 低所得的 -11 - 200527907 (8) 各各試料畫像的亮度的斑狀分布(斑紋)。將平滑化處理 例表示於〔數1〕。 〔數1〕200527907 (1) IX. Description of the invention [Technical field to which the invention belongs] The present invention relates to a control method and an automatic focus control device for realizing a stable automatic focusing operation, such as a device suitable for observation and inspection. [Prior Art] , Control the image to automatically gather (workpiece) image data to evaluate and evaluate. That is, the lens material is changed, and the focal position is calculated for each of the materials. Fig. 21 shows an example of the relationship between the lens workpiece (vertical axis). This is to access the image and calculate the focus evaluation (maximum) focus position in each image graph. Hereinafter, the drawing of this through-hole is referred to as a "focus curve". In the conventional technique, the focus of the chart is evaluated 値 or the focus before and after the maximum 値. As the focus evaluation 値, high-dispersion, high-differential imaging cameras are used to take photographic samples, and in particular, auto-focus control methods, auto-focus settings, and image processing devices are excluded from the influence of the optical system. "Focus" is to collect the image of the sample by using the distance between the focal points and the number of focusing points of the photographic sample to calculate the value of the image. To retrieve the appropriate focus distance (horizontal axis) and focus evaluation, change at regular intervals. Focus evaluation of the distance between lens workpieces and plotting. Is the focus position, that is, the focus evaluation of the most appropriate focusing distance between the workpieces. The search range changes the maximum distance between the lens workpieces. As the most suitable focusing position evaluation, the maximum brightness of the most suitable focusing position is calculated. Scattering of tadpoles, etc. 200527907 (2) As the arithmetic to obtain the most appropriate focus position from the focus evaluation 200527907, there is a mountain climbing method, etc. In addition, in order to shorten the search time, a method of dividing the search operation into several stages has been put into practical use (Japanese Patent Application Laid-Open No. 6 -2 1 7 1 8 0, JP 2 0 2-3 3 5 7 1 and Patent No. 2 9 7 1 8 92). With the miniaturization of the target workpiece, an inspector to which this focusing technique is applied is required to increase the decomposition energy. In order to increase the decomposition energy, a short wavelength and a single wavelength of the illumination light source can be coped with. The use of shorter wavelengths can improve the optical resolution, and the use of single wavelengths can avoid the effects of chromatic aberrations. However, the use of shorter wavelengths of illumination light sources will limit the use of optical materials such as lenses used in the optical path. The single-wavelength problem has the effect of streaks. The term "streak" as used herein refers to a state where the brightness of the screen is distributed in a speckled pattern ', which uses a unique pattern of intensity distribution based on the wavelength of the light source or the configuration of the optical system. With these effects, as shown in FIG. 22, the above-mentioned focus curve is a case where the influence of the optical system is larger than the focus evaluation value of the most appropriate focus position. The shape or number range of the focus curve cannot be determined uniformly by using the surface state of the object such as the reflectance of the object. Therefore, in this state of the art, "the focus position is to be obtained from the maximum of the focus evaluation unit", The most appropriate focus position cannot be obtained stably. The present invention has been made by the creator in view of the above-mentioned disadvantages, and an object thereof is to provide an automatic focus control method, an automatic focus control device, and an image processing device that eliminate a stable automatic focus operation due to the influence of an optical system. -6- 200527907 (3) [Summary of the Invention] In order to solve the above problems, the automatic focus control method of the present invention includes: an image acquisition process for acquiring image data of a photographic body at a plurality of focal positions with different distances between a lens and a photographic body; Based on the acquired image data, the plural focus positions are used to separately calculate the focus evaluation 値 evaluation and calculation process, and the focus position where the focus evaluation 値 becomes the largest focus position is calculated as the focus position calculation process. The focal position of the lens is relative to the movement process of the relative movement of the photographic body; the image data obtained in the image obtaining process is smoothed, and the focus evaluation is calculated based on the smoothed image data. That is, the gradation distribution of the speckle brightness is caused by a speckle of a single wavelength. As described above, in order to reduce the gradation distribution pattern, a smoothing process for an image is performed in the present invention. With this smoothing process, the focus evaluation image can be appropriately calculated while capturing the characteristics of the target sample (photograph body) while reducing the shading distribution pattern. For image smoothing processing, the number of processing target pixels (unit processing range), processing conditions such as filter coefficients, number of processing times, and whether or not weighting is set are set according to the type of optical system to be used or the sample of the photographic sample. ® Properties can be set appropriately. On the other hand, in order to calculate the focus evaluation 値, it is desirable to detect the difference in brightness data between adjacent pixels of the acquired image data. For example, it can be calculated by using an edge emphasis process that extracts changes in brightness data between pixels in a feature portion and a contour portion. Focus evaluation: If there is uneven brightness using the focus position 200527907 (4) in the same target area, the insulation value of the brightness data difference between adjacent pixels will change. 'Focus evaluation cannot be calculated properly. In order to avoid such shortcomings, the standardization of the average brightness of the screen according to the focus evaluation is performed by dividing the calculated evaluation 値 by the average brightness of the screen as a whole. It is also attached to the autofocus. The control operation can evaluate the focus of each sample image obtained at a plurality of focus positions, and a function of synthesizing a full-focus image or a three-dimensional image of a photographic body can be added. These processes are performed by dividing the acquired image of each focus position into a plurality of areas in the plane, and at the same time based on the focus evaluation information or focus position information obtained elsewhere in the divided area. At this time, it becomes possible to inspect or observe the surface of a three-dimensionally structured photographic body with excellent resolution, excluding the influence of the optical system. Furthermore, the 'autofocus control device of the present invention has: each of the image data obtained based on the plural focus positions having different distances between the lens and the photographic body, and' the focus and evaluation methods for calculating the focus evaluation and calculation methods separately 'and the basis; Calculated focus evaluation (maximum), focus position calculation means for calculating focus position, and image smoothing means for image data obtained by smoothing processing; calculated based on image data subjected to smoothing processing by the image smoothing method Focus evaluation of each portrait data 値. The autofocus control device of the present invention is combined with an image acquisition means for acquiring image data of a photographic body at a plurality of focus positions, a driving means for adjusting the distance between a lens and a photographic body, and the like, and can be configured as an image processing device. These image acquisition means and driving means can constitute another independent body. -8-200527907 (5) According to the present invention, it is possible to observe a sample using a short-wavelength / single-wavelength light source, for example, because high-precision autofocus control can be stably performed due to the influence of the optical system, for example, with high resolution Semiconductor wafers and the like that have been improved in microfabrication can be observed. [Embodiments] Hereinafter, embodiments of the present invention will be described with reference to the drawings. (First Embodiment) Fig. 1 is a schematic configuration diagram of an image processing device showing an automatic focus control method and an automatic focus control device according to an embodiment of the present invention. The image processing apparatus 1 is used to observe the surface of a photographic sample (workpiece). In particular, the image processing apparatus 1 is a microscope for detecting defects such as a device structure that is formed by performing microfabrication on a surface of a semiconductor wafer or the like. The image processing apparatus 1 includes a measuring table 2, an objective lens 3, a lens driving unit 4, a lens barrel 5, a CCD (Charge Coupled Device) camera 6, a controller 7, a driver 8, a monitor 9, and an illumination light source. The measurement table 2 supports a photographic sample (for example, a semiconductor wafer) w, and is configured to move freely in the X-Y direction (the left-right direction in the figure and the vertical direction on the paper surface). The lens driving unit 4 moves the objective lens 3 relative to the focus axis direction (up and down direction in the figure) at a predetermined focus position for the photographic sample W on the measurement table 2 and searches the entire axis range at a predetermined focus position. distance. The lens driving unit 4 corresponds to "driving means". 200527907 (6) In this embodiment, the lens driving unit 4 is made of a piezoelectric element, but other than that, a precision transfer mechanism such as a pulse motor may be used. In addition, the objective lens is moved in the direction of the focus axis while adjusting the distance between the lens and the workpiece, but instead of this, the measurement stage 2 may be moved in the direction of the focus axis. The C C D camera 6 outputs the acquired image data to the controller 7 through an objective lens 3 that moves within the search range of the focus position, and a video camera that functions as a surface of the photographic sample w on the photographic measurement table 2. The CCD camera 6 constitutes the "image acquisition means" of the present invention together with the objective lens 3, the lens driving section 4, and the lens barrel 5. In addition to C C D, other solid-state imaging devices such as CMOS image devices can be applied. The controller 7 is an automatic focus (AF) control unit 11 which is provided with a computer and controls the overall operation of the image processing device 1 and detects an optimum focus position (focus position) of a specific area on the surface of the photographic sample W at the same time. The autofocus control unit 11 corresponds to the "autofocus control device" according to the present invention. The driver 8 receives a control signal from the autofocus control section and generates a driving signal for driving the lens driving section 4. In this embodiment, the driver 8 is a piezoelectric driver having a hysteresis compensation function. The driver 8 may be incorporated in the autofocus control unit n. The autofocus control unit 11 drives the lens drive unit 4 via a driver 8 to change the distance between the objective lens 3 and the photographic sample W (the distance between the lens and the workpiece) at a fixed interval by a CCD camera. 6 Obtain the image data of the photographic sample w separately and perform various processes as described below to detect the most appropriate focus position in the photographic field of the photographic sample w '-10- 200527907 (7), that is, the focus position. The monitor 9 displays, according to the processing content of the controller 7, the portrait of the photographic sample W taken by the CC camera 6 and the like. As the illumination light source 10, an example is used in this embodiment; a continuous laser or pulsed laser light source of ηm. In addition, the illumination light source region is not limited to the above-mentioned ultraviolet light field, and other ultraviolet or visible light collars having different wavelength ranges can be used depending on the application. FIG. 2 is a block diagram showing the configuration of the image processing device 1 from a CCD camera The analog picture signal output by 6 is converted into a digital picture signal by the borrower 1 3. The A / D converter 1 3 is supplied to the memory 14 and stored. The custom section 11 of the controller 7 reads the digital image data converted from the memory 14 and performs the following autofocus control. The driver 8 generates a driving signal for the counter section 4 based on a control signal from the controller 7 supplied from the inverter 17. The autofocus control unit 11 is provided with a smoothing processing circuit 1, a brightness calculation circuit 1 1 B, an evaluation threshold calculation circuit 1 1 C, and a focus circuit 1 1 D. The smoothing processing circuit 1 1 A is a circuit for flattening the automatic area (the entire screen or a part of the screen) of each of the image signals (sample images) of the specimen W photographed at the plural focus positions, and corresponds to this Invention of "Image Smoothing Means". The control unit 1] uses this image smoothing processing circuit 1 1 A to display the wavelength collar of the wavelength 1 196 in a time-decreasing manner: such as the light source in the field. Of course, the focus control is changed by changing the output signal from A / D. No., -11-200527907 obtained by taking the focus of the subject and smoothing it through the lens drive 1 A and calculating the average position through D / A (-11) The speckle distribution (speckle) of the brightness of each sample image. An example of the smoothing process is shown in [Number 1]. [Number 1]

厂—— ; Ί6 又,畫像平滑化的處理條件〔處理對象像素數(在以 上例子是3 X 3 )、濾波係數、處理係數、加權的有無及係 數的採用方法等),是在不會壓壞在C C D攝影機6所取入 的試料W表面的本來的特徵部、輪廓的範圍內任意地可設 定,此些處理條件是例如由鍵盤或滑鼠、觸控板等的輸入 裝置16加以設定。 平均亮度算出電路11B是算出各試料畫像的自動聚焦 對象領域的畫面平均亮度的電路,對應於本發明的「平均 亮度算出手段」。藉由該平均亮度算出電路11B所得到的 各聚焦位置的畫面平均亮度,是供作爲算出下述的評價値 算出電路1 1 C的焦點評價値PV。 評價値算出電路1 1 C是分別算出各試料畫像的焦點評 價値P V的電路,對應於本發明的「評價値算出手段」。 在本實施形態中,將該評價値算出電路1 1 C作爲包含邊緣 強調處理電路的構成。 本實施形態中,焦點評價値是指以數値評價可淸楚地 看到特徵部、輪廓部的狀態的指標。看的特徵部、輪廓部 的像素間的亮度資料變化,則在淸楚的像是成爲急峻的變 -12 - 200527907 (9) 化’而在不淸楚的像是成爲緩和的變化。如此在本實施形 態中,使用邊緣強調處理來評價相鄰接的像素間的亮度資 料差,並進行計算焦點評價値P v。又,除了此以外,也可 依據亮度的微分値,亮度的分散等而可算出焦點評價値。—— Ί6 Also, the processing conditions of image smoothing (the number of pixels to be processed (3 X 3 in the above example), filter coefficients, processing coefficients, the presence or absence of weighting, and the use of coefficients, etc.) It can be set arbitrarily within the range of the original features and contours of the surface of the sample W taken by the CCD camera 6, and these processing conditions are set by, for example, an input device 16 such as a keyboard, a mouse, and a touchpad. The average brightness calculation circuit 11B is a circuit that calculates the average brightness of the screen in the autofocus target area of each sample image, and corresponds to the "average brightness calculation means" of the present invention. The average screen brightness at each focus position obtained by the average luminance calculation circuit 11B is used to calculate the focus evaluation 値 PV of the calculation circuit 1 1 C described below. The evaluation / calculation circuit 1 1 C is a circuit for calculating the focal evaluation value 値 P V of each sample portrait, and corresponds to the “evaluation / calculation means” of the present invention. In this embodiment, the evaluation / calculation circuit 1 1 C is configured to include an edge enhancement processing circuit. In the present embodiment, the focus evaluation means an index that can be used to evaluate the state where the characteristic part and the contour part can be clearly seen. The change in the brightness data between the pixels of the characteristic part and the contour part is a drastic change in the unfavorable image -12-200527907 (9), and a mild change in the unfavorable image. As described above, in this embodiment, an edge emphasis process is used to evaluate the brightness data difference between adjacent pixels, and a focus evaluation 値 P v is performed. In addition, the focus evaluation 値 may be calculated based on the differential 値 of the brightness, the dispersion of the brightness, and the like.

在實處理例中,在所取入的畫像中全像素進行以〔數 2〕所示的演算,求出與周圍像素的亮度資料差。在該式 ,前項是檢測縱方向,而後項是檢測橫向的亮度變化。由 此,不依據處理像素亮度,僅可抽出評價値爲評價點與其 周圍之間的亮度變化分量。 〔數2〕 Γ 12 1 -10 1 0 0 0 + -2 0 2 > -1 -2 -Ί -1 0 1 iIn the actual processing example, a calculation shown in [Equation 2] is performed on all the pixels in the captured image, and the luminance data from the surrounding pixels is obtained. In this formula, the former term is to detect the vertical direction, and the latter term is to detect the brightness change in the horizontal direction. Therefore, it is only possible to extract the evaluation as the luminance change component between the evaluation point and its surroundings without depending on the processing pixel brightness. 〔Number 2〕 Γ 12 1 -10 1 0 0 0 + -2 0 2 > -1 -2 -Ί -1 0 1 i

又,在該例中,將處理對象像素領域作成3 X 3,惟5 X 5或是7 X 7等也可以。又,在係數施行加權,惟係數的 設定方法是任意,而未施以加權加以處理也可以。 欲算出焦點評價値Pv之際,則依上述邊緣強調處理式 的計算後,以在平均亮度算出電路1 1 B所算出的對應聚焦 的位置的畫面平均亮度來實行除算處理。亦即,各試料畫 像的焦點評價値Pv,是如在〔數3〕所示地,作爲藉由邊 緣強調處理電路所得到的焦點評價値Pvo的依該聚焦位置 的畫面平均亮度Pave的除算値。 - 13- 200527907 (ίο) 〔數3〕In this example, the processing target pixel area is 3 X 3, but 5 X 5 or 7 X 7 may be used. In addition, the coefficients are weighted, but the method of setting the coefficients is arbitrary, and the processing may be performed without weighting. In order to calculate the focus evaluation 値 Pv, the calculation is performed according to the above-mentioned edge emphasis processing formula, and then the division processing is performed using the screen average brightness corresponding to the focused position calculated by the average brightness calculation circuit 1 1B. That is, as shown in [Equation 3], the focus evaluation 値 Pv of each sample portrait is the focus evaluation obtained by the edge enhancement processing circuit 値 Pvo divided by the average screen brightness Pave of the focus position 値. -13- 200527907 (ίο) 〔Number 3〕

Pv(i)-Pv (i)-

Pvo(i) Pave ⑴ 在〔數3〕中,pv ( i )是第i次的聚焦位置 規格化的焦點評價値;P v 〇 ( i )是第i次的聚焦 點評價値;Pave ( i )是第i次的聚焦位置的畫面 又,如〔數4〕所示地,在〔數3〕所得到的 算畫面平均亮度的最大値Pavemax而算出焦點評 可以。由此,補償了依平均亮度的除算的焦點評 式減少分,之後參照聚焦曲線而容易看到焦點評 式推移。又,乘算的畫面平均亮度是並不被限定 値,例如最小値等也可以。 〔數4〕 D Pvo(i)Pvo (i) Pave ⑴ In [Equation 3], pv (i) is the focus evaluation of the i-th focus position normalization 値; P v 〇 (i) is the i-th focus evaluation price 値; Pave (i ) Is the screen at the i-th focus position. As shown in [Equation 4], it is possible to calculate the focus evaluation by calculating the maximum screen average brightness 値 Pavemax obtained in [Equation 3]. As a result, the focus evaluation type reduction points divided by the average brightness are compensated, and it is easy to see the focus evaluation type transition after referring to the focus curve. The multiplied average screen brightness is not limited to 値, for example, minimum 値 may be used. [Number 4] D Pvo (i)

Pv(l) = d—Γ: X Pavemax Pave (i) 如此地,作爲焦點評價値Pv,使用依在邊緣 所算出的評價値的畫面平均亮度的除算値,焦點 評價點(像素)與其周圍的像素的亮度相差有多 之故,因而在取得的畫像間有亮度參差不齊,畫 度(將構成該畫像的像素的各該亮度的總和以該 像數除算的亮度値)有所變化時,爲了避免也變 所計算的指標的絕對値。 的經亮度 位置的焦 平均亮度 演算値乘 價値Pv也 價値的量 價値的量 於其最大 強si!處理 評價値是 少有關者 面平均亮 畫面的全 更在該處 -14 > 200527907 (11) 例如與周圍的亮度差有20%。平均亮度50時,該20% 的亮度差是成爲10,而在平均亮度100是成爲20。如此地 ,即使爲相同變化率藉由原來畫面平均濃度使得絕緣値有 很大不同。在一段的可視光顯微鏡等的光學系很少成爲缺 點問題’而在紫外光顯微鏡等的光學系,此種缺點問題是 變成顯者。 如此在本實施形態中,對應於此種畫面亮度變化之故 ’因而藉由將在邊緣強調處理所算出的焦點評價値以畫面 平均亮度Pave作成規格化,可防止對於依畫面亮度變化的 焦點評價値的影響。亦即,作爲焦點評價値藉由使用該畫 面平均亮度的除算値,畫面平均亮度50,亮度差20%時的 焦點評價値是成爲0.2 ( 1 〇 / 5 0 );畫面平均亮度1 〇 〇,亮 度差20%時的焦點評價値是成爲〇 2 ( 2〇/ 1〇〇 )而成爲互 相一致,對於依聚焦位置間的亮度的參差不齊的所產生的 焦點評價値的影響成爲被排除。 焦點位置算出電路n 〇是依據評價算出電路1 1 C所算 出的焦點評價値的最大値所算出焦點位置的電路,對應於 本發明的「焦點算出手段」。 一般’畫像自動聚焦控制是在透鏡一工件間距離不相 同的複數焦點位置取得試料畫像,藉由檢測從其中得到最 大焦點評價値的試料畫像的聚焦位置來決定焦點位置。因 此’試料畫像愈多(試料間的聚焦移動量愈窄)而可實現 売精度的自動聚焦控制。但是另一方面,若增大試料數, 則所需要處理的時間變大,成爲無法確保自動聚焦控制的 -15- 200527907 (12) 高速性。 如第6圖所示地,在本實施形態中,依據所算出的焦 點評價値的最大値P v ( m )及其近旁的複數焦點評價値 Pv(m- 1)、Pv(m+l) ' Pv ( m - 2 ) > P v ( m + 2 )、Pv (l) = d-Γ: X Pavemax Pave (i) In this way, as the focus evaluation 値 Pv, the division of the average screen brightness of the evaluation 値 calculated by the edges is used, and the focus evaluation point (pixel) and its surrounding There are many differences in the brightness of the pixels, so there is uneven brightness between the acquired images, and the degree of brightness (the brightness of the sum of the brightness of the pixels constituting the image divided by the number of pixels) varies. In order to avoid changing the absolute value of the calculated index. The calculation of the focal average brightness via the brightness position (multiplying the price Pv is also the amount of the price 値 is equal to its maximum strength si! Processing evaluation 値 is the total brightness of the average bright picture of the relevant party is less here -14 > 200527907 (11 ) For example, the brightness difference from the surrounding is 20%. At an average brightness of 50, the 20% brightness difference becomes 10, and at an average brightness of 100, it becomes 20. In this way, even for the same rate of change, the average density of the original picture makes the insulation 値 very different. An optical system such as a visible light microscope is rarely a problem, and an optical system such as an ultraviolet microscope is a problem. Thus, in this embodiment, it corresponds to such a change in the brightness of the screen. Therefore, the focus evaluation calculated at the edge emphasis processing and the average screen brightness Pave are used to standardize the focus evaluation based on the change in screen brightness. The impact of cricket. That is, as the focus evaluation (by using the division of the average brightness of the screen), the focus evaluation when the screen has an average brightness of 50 and a brightness difference of 20% becomes 0.2 (1 0/50); the screen average brightness of 1 0, The focus evaluation 时 at a brightness difference of 20% becomes 0 2 (20/100), which is consistent with each other, and the influence of the focus evaluation 値 caused by uneven brightness depending on the focus position is excluded. The focus position calculation circuit n 0 is a circuit that calculates the focus position based on the maximum value of the focus evaluation 算 calculated by the evaluation calculation circuit 1 1 C, and corresponds to the "focus calculation means" of the present invention. In general, the image autofocus control obtains a sample image at a plurality of focal positions with different distances between a lens and a workpiece, and determines the focus position by detecting the focus position of the sample image from which the largest focus evaluation is obtained. Therefore, the more images of the sample (the narrower the amount of focus movement between samples), the more accurate automatic focus control can be achieved. On the other hand, if the number of samples is increased, the processing time becomes longer, and it becomes impossible to ensure the high-speed performance of -15-200527907 (12). As shown in FIG. 6, in the present embodiment, based on the calculated maximum focus evaluation 値 Pv (m) and the complex focus evaluations 値 Pv (m-1) and Pv (m + 1) near it. 'Pv (m-2) > P v (m + 2),

Pv ( m - 3 ) 、Pv ( ni + 3 )來檢測最適當聚焦位置(焦點 位置)。 如第6圖所示地’焦點位置近旁是接近於上面是凸的 二次曲線。在此,使用焦點位置近旁處,利用最小平方法 來計算近似二次曲線,求出頂點,將該頂點作爲焦點位置 。圖中實線是 3點由 Pv(m) 、Pv(m— 1) 、pv(m+i) ,虛線是由 5 點 Pv(mv) 、Pv(m—l) 、Pv(m+l)、 P v ( m - 2 ) 、P v ( m + 2 ),一 點鏈線是由 7 點 P v ( m )、Pv (m-3) and Pv (ni + 3) to detect the most appropriate focus position (focus position). As shown in Fig. 6, the quadratic curve near the focal position is convex near the top. Here, the approximate quadratic curve is calculated by using the least square method near the focal position, and the vertex is obtained, and this vertex is used as the focal position. The solid line in the figure is 3 points by Pv (m), Pv (m-1), pv (m + i), and the dotted line is by 5 points Pv (mv), Pv (m-1), and Pv (m + l). , P v (m-2), P v (m + 2), a one-point chain line consists of 7 points P v (m),

Pv(m - 1) 、Pv(m+l) 、pv(m— 2) 、Pv(m+2)、Pv (m-1), Pv (m + l), pv (m-2), Pv (m + 2),

Pv ( m - 3 ) 、Pv ( m + 3 )的焦點評價値近似計算的曲線 。圖表的打開程度是不相同,惟頂點位置是大約相同,可 知雖爲單純處理也爲有效的近似方法。 又,並不被限定於上述曲線近似方法,例如使用通過 P v ( m )及P v ( m + 1 )的兩點的直線,及通過p v (瓜一 1 )及P v ( m — 2 )的其他兩點的直線計算出互相的交點, 而將此作爲焦點位置的方法(直線近似法)、或正規分布 曲線近似等的近似法來檢測焦點位置也可以。 參照第2圖’記憶體〗5是使用於控制器7的CPU的各種 演算。尤其是’在記憶體〗5的記憶空間,分配有供作爲自 動聚焦控制部1 1的各種演算的第一記憶體部]5 A及第二記 -16 - 200527907 (13) 憶體部1 5 B。 在本實施形態中,爲了得到自動聚焦控制的高速性, 一面連續地變更透鏡-工件間距離,一面在複數聚焦位置 分別取得試料畫像。由此,與在各聚焦位置停止透鏡以取 得畫像的情形相比較可得到自動聚焦控制的高速化。 將對於透鏡驅動部4的驅動器8的指示電壓與透鏡驅動 部4的實移動電壓之關係表示於第7圖。壓電元件所成的透 鏡驅動部4是具備位置控制用移動檢測感測器。第7圖中的 實移動電壓是該感測監測器信號。指示電壓是將透鏡移動 至自動聚焦控制開始位置之後,C C D攝影機6的影像信號 幀別地每次變更所定量。比較指示電壓與實移動電壓,雖 延遲應答,惟移動是順利,一面破壞指示電壓的段差一面 使漸增領域的兩圖表的傾斜成爲大約相同。由此可知透鏡 以等速度動作於等速度相當指示電壓。因此,同步於畫像 同步信號而取得試料畫像,則在聚焦軸座標一定間隔成爲 可計算,取得焦點評價値。 又’在本實施形態中,爲了自動聚焦動作的高速化, 可並聯地進行試料畫像的取得工程與焦點評價値的算出工 程。 此乃如第8圖所示地在第一記憶體部〗5 a一面取入畫 像資料’一面處理第二記憶體部! 5 B的已經取入的畫像資 料·而算出焦點評價値pv的雙重緩衝所構成。本例的情形, 在第一記憶體部1 5 A處理以偶數幀所取入的畫像資料,而 在第二記憶體部1 5 B處理以奇數幀所取入的畫像資料。 -17- 200527907 (14) 以下’參照第3圖說明如上所構成的本實施形態的畫 像處理裝置1的動作。第3圖是表示自動聚焦控制部丨丨的工 程流程圖。 首先輸入有拍照體試料W的自動聚焦處理領域、聚焦 位S檢索範圍’取得畫像試料間的聚焦移動量(聚焦軸階 梯長度)、畫像平滑化處理條件、邊緣強調處理條件等的 初期設定之後(步驟S 1 ),實行自動聚焦控制。 物鏡3是利用透鏡驅動部4的驅動從自動聚焦控制開始 位置沿著聚焦軸方向開始移動(在本實施形態中接近於拍 /照體試料W的方向),同時同步於畫像同步信號而取得拍 照體試料W的試料畫像(步驟S2、S3 )。之後,取得所取 得的試料畫像的聚焦軸座標(透鏡-工件間距離座標)( 步驟S 4 )。 之後,進行由對於所取得的試料畫像的畫面平均亮度 算出處理、畫像平滑化處理、邊緣強調處理及亮度規格化 處理所成的焦點評價處理(步驟S 5至S 8 )。 畫面平均亮度算出工程(步驟S5),是在平均亮度算 出電路1 1 B被演算。經算出的畫面平均亮度是被供作爲以 後的焦點評價値的算出。又,該畫面平均亮度算出工程是 平滑化處理工程(步驟S 6 )之後才進行也可以。 畫像平滑化處理工程(步驟S 6 )是在平滑化處理電路 Π A被處理。在該畫像平滑化處理工程中,例如以〔數1 〕所表示的演算式來進行畫像平滑化處理。由此,在所取 得的試料畫像中,可排除起因於光源的單一波長化的斑紋 -18- 200527907 (15) 的影響。 邊緣強調處理工程(步驟S 7 )是在評價値算出電路 1 1 C被實行。在該工程中,依據在先前的平滑化處理工程 (步驟S 6 )被平滑化處理的試料畫像,藉由如在上述〔數 2〕所示的邊緣強調處理式來計算特徵部、輪廓部的像素 間的亮度資料差,並將此作爲焦點評價値的基礎資料。 之後,進行以畫面平均亮度規格化在步驟S 7所算出的 焦點評價値的亮度規格化處理工程(步驟S 8 )。該工程是 在評價値算出電路i 1 C被實行。在表示於第3圖的例子,對 於藉由先前的邊緣強調處理工程(步驟S 7 )所得到焦點評 價値P v 〇 ( i ),利用以在畫面平均亮度算出工程(步驟s 5 )所得到的畫面平均亮度Paveci )加以除算,就可算出〔 數3〕式的經亮度規格化的焦點評價値Pv ( i )。 藉由以上的步驟S 2至步驟S 8來構成自動聚焦迴路( A F迴路)。在該迴路,分別對於所取得的各聚焦位置的 試料畫像實行與上述同樣的處理。 在本實施形態中如上述地,透鏡驅動部4是在連續地 移動物鏡3的狀態下,CCD攝影機6是在所定抽樣週期攝影 拍照體試料W,而與畫像取得工程(步驟s 3 )與焦點評價 値計算工程(步驟S 8 )並聯地被處理(第6圖、第7圖)。 因此’除了計算先前所取入的試料畫像的焦點評價値之外 ’也可取得下一試料畫像,結果,成爲以影像信號一幀週 期可演算焦點評價値,而可實現自動聚焦動作的高速化。 當物鏡3的總移動長度達到全檢索範圍,則終了 AF迴 - 19- 200527907 (16) 路,對於所得到的各試料畫像的焦點評價値,來實行乘算 圖面平均売度的最大値pavemax的處理(步驟、s] 〇 ) 。結果,各試料畫像的焦點評價値卜是成爲與以上述〔數 4〕式所示的演算式所求得的情形相同意義。 又’如第4圖所示的工程流程,則依以邊緣強調處理 的焦點s平彳貝値的計算來完結a F迴路,如以同圖步驟s丨〇 A 所不,在終了 A F迴路之後,對於各試料畫像一倂使用以 〔數4〕式所示的演算處理進行依焦點評價値的畫面平均 亮度的規格化處理,結果 > 也可實現與表示於第3圖的例 同等的處理。 在第5圖,以實線表示進行平滑化處理(第3圖的步驟 S 6 )及売度規格化處理(第3圖的步驟s 8 )所得到的聚焦 曲線F C 1又以一點鍵線表不未進行依畫面平均亮度的規 格化而僅進行平滑化處理所得到的聚焦曲線FC2。又爲了 比較’以虛線表示圖示於第2 2圖的習知的聚焦曲線F C 3。 由於第5圖可知,依照本實施形態,可大改變光學系 的影響部’且可顯在化作爲最適當聚焦位置(焦點位置) 須檢測的焦點評價値的峰値。由此,在短波長、單一波長 的光學系也可實現穩定且正確的自動聚焦動作。 又’雖僅進行試料畫像的平滑化處理,也可改善光學 系影響部之故,因而視需要也可省略亮度規格化處理工程 (在第3圖的步驟S 8 ),惟藉由進行該亮度規格化處理可 更改善光學系影響部,而成爲可更正確地檢測焦點位置。 然後進行焦點位置算出工程(步驟S 1 1 )。此焦點位 -20- 200527907 (17) 置算出處理是在焦點位置算出電路U D被實行。欲算出焦 點位置,如參照第6圖加以說明,求出通過焦點評價値的 最大値與其附近的複數焦點評價値的各點的近似曲線,檢 測其頂點並將此作爲焦點位置。 由此,與習知就廣泛被適用的登山法相比較,有效率 地且高精確度地檢測焦點位置之故,因而對於自動聚焦動 作的高速化有很大貢獻。 另一方面,在第6圖中若將橫軸的透鏡-工件間距離 作爲總檢索範圍的情形,而能判斷在動作中通過焦點位置 ,則Pv ( m + 3 )以後的畫像取得成爲不需要,可刪減該 分纛的動作時間之故,因而成爲可實現自動聚焦動作的更 高速化。又,作爲焦點位置通過的判斷手法,有通過超越 某一定以上的焦點評價値(給予作爲參數、或是由至今的 聚焦動作結果所學習)的山,而近似地取得所需要的試料 數的方法等。 最後,經過朝焦點位置移動物鏡3的移動工程(步驟 S 1 2 )’終了本實施形態的自動聚焦控制。 如上所述地,依照本實施形態,排除起因於短波長、 單一波長的光學系的影響而穩定地可進行高精度的自動聚 焦控制,由此,成爲以高分解能可觀察、檢查形成在如半 導體晶圓等表面的微細構造體。 (第二實施形態) 以下,說明本發明的第二實施形態。 -21 - 200527907 (18) 近年來的半導體晶圓是採用微細化最小圖案寬度(處 理規則)’同時作成朝高度方向更立體性構造。依光源的 短波長化’焦點涂度也變淺。在具局低差的對象物有對淮 焦點部分愈少,成爲愈不利的趨勢。在畫面內有高低差, 對準焦點的面分別不同時,須求出所謂如以試料的那一表 面作爲基準等的「焦點對準在那裏」的主動性聚焦動作。 但是,在從焦點評價値求出最適當聚焦位置的習知自動聚 焦控制方法中,有欲看到的場所無法對準焦點的不方便。 如此’以下說明應用本發明的自動聚焦控制方法,對 於在畫面內存有高低差的試料的任一面對準無點的方法。 在上述的第一實施形態中,說明了對於所取得的整體 (或一部分對象領域)試料畫面,算出焦點評價値的例子 ,惟在本實施形態中,如第9圖所示地,將所取得的試料 畫面分割成複數領域,各該分割領域Wij ( i,j二1至3 ) 別地計算焦點評價値,算出焦點位置。 欲算出各分割領域Wij的焦點評價値,則分別實行依 與上述第一實施形態同樣的畫像平滑化處理及畫面平均亮 度的規格化處理。由此’光學系不會受到影響地高精確度 地可檢測焦點位置。 以上處理的結果,成爲可得到分割領域Wij別地對應 於該分割領域的聚焦曲線。這時候’與任一分割領域與其 他的分割領域相比較而在無點位置不相同的情形’可知在 兩者間高低差存在於焦點面之故,因而藉由以參數指定以 任一優先作爲聚焦位置可成爲主動性聚焦動作。 -22- 200527907 (19) 作爲參數的例子是有如下者。 1 .透鏡-試料間距離最短者(試料最高部位) 2 .透鏡-試料間距離最長者(試料最低部位) 3 .畫面的特定位置 4 .由畫面分割結果以多數決定的最適當聚焦位置( 更特徵性的部位)等。 又’在第9圖說明將畫面分割數作爲3 χ 3的9分割的例 子’惟畫面分割數是並未被限定於此者。愈增加畫面分割 或成爲愈得到詳細的資訊。又,互相重疊分割畫画也可以 ’按照使用狀態動態地變更畫面分割數也可以。 以上’依照本實施形態,對於對象試料,藉由以什麼 爲優先而指定作爲最適當的聚焦位置,可充分地對應於「 焦點對準於那裏」的主動性聚焦動作。 (第三實施形態) 以下’說明本發明的第三實施形態。在本實施的形態 中,藉由適用本發明的自動聚焦控制方法,說明從取得的 畫像資料來合成拍照體試料的全焦點畫像的方法。 在一般的光學系,欲看到超越光學系的焦點深度時, 則無法看到整體上對準焦點的畫像,無法滿足檢查觀察的 目的。使用共焦點光學系等特殊的光學系得到整體上對準 焦點的全焦點畫像,或是依據三角法從角度的不相同的畫 像得到全焦點畫像等的方法,惟此些是使用特殊的光學系 之故,因而無法低成本地實現。 >23- 200527907 (20) 另一方面’也提案一種階層地取得物體的畫像之後加 以合成處理的方法(日本特開2 0 0 3 - 2 8 1 5 0 1號公報)。然 而’留有僅使用於合成的畫像資訊的容量,合成處理時間 ’複數枚畫像取得後才能得到結果等的缺點問題。 如此’在本實施形態,實行上述第一實施形態所說明 的自動聚焦控制方法的過程,能得拍照體試料~的全焦點 畫像。將該控制流程表示於第1 0圖。以畫面平均亮度規格 化所取得的畫像(試料點)的焦點評價値的工程(步驟S 8 )之後’追加畫像的合成處理工程(步驟S 8 Μ )。 又,對於其他工程,與在上述第一實施形態所說明的 工程流程(第3圖)同樣之故,因而在所對應的工程賦予 相同符號,省略其說明.。 又’當進丫了畫像合成’如在上述第一貫施形態所I兌明 ,將所取得的試料畫面分割成複數領域(第9圖),並將 各該分割領域Wij作爲單位來合成畫像。又,畫面的分割 數是並未特別加以限定,分割數愈多愈精細地可進行處理 ,一直到一像素單位可微細化分割領域。又,分割領域的 形狀是未被限定於四方,也可變更成圓形狀等。 又,作爲記億體1 5 (第2圖),除了處理在偶數幀所 取入的畫像資料的第一記憶體部1 5 A及處理在奇數幀所取 入的畫像資料的第二記憶體部1 5 B之外,如第1 1圖所示地 ,還準備全焦點處理用的第三記憶體部1 5 C。在該第三記 憶體部1 5C,分別設有合成畫像資料儲存領域1 5C1 ’及構 成合成畫像的各分割領域Wij的高度(透鏡-工件間距離 -24- 200527907 (21) )資訊儲存領域1 5 C2,及此些各分割領域Wij的焦點評價 値資訊儲存領域1 5 C 3。 欲合成拍照體試料的全焦點衋像,則在透鏡〜工件間 距離不相同的複數聚焦位置取得試料振像,對於各試料畫 像,各分割領域W ij別地算出焦點評價値,抽出在分割領 域W ij間互相獨立且焦點評價値最高的畫像之後,進行作 爲整體畫像合成的處理。 如以上所述地,構成本發明的「全焦點畫像合成手段 」。說明表示於第1 0圖的工程流程圖;對於將步驟S 1至步 驟S 8的工程以與上述第一實施形態同樣的手法來取得的試 料畫像,各分割領域W ij別地實行之後,移行至步驟s 8 Μ 的畫像合成工程。 第12圖是詳細表示步驟S8M。開始自動聚焦動作後, 使用最初取入的畫像來初期化第三記億體部1 5 C (步驟a、 b )。亦即,在步驟b中,將最初畫像複製於合成畫像資料 儲存領域1 5 C 1,以第1次的資料塡補高度資訊儲存領域 1 5 C,並將焦點評價値複製於各分割領域Wij的焦點評價値 資訊儲存領域1 5 C 3並加以初期化。 第2次以後,各分割領域Wij別地,比較取得畫像的焦 點評價値與合成畫像的焦點評價値(步驟c )。若取得畫 像的焦點評價値較大時,則複製畫像,更新相當於此的高 度資訊與焦點評價値資訊(步驟d )。相反地,若取得畫 像的焦點評價値較小時,不進行處理。將此重複分割數分 量(步驟e )。如此完成一幀(3 3 . 3 m s e c )的處理。 -25- 200527907 (22) 在一連串的自動聚焦控制的動作流程中,上述處理是 成爲例如一面在第一記憶體1 5 A,取入偶數幀畫像資料’ 一面進行已經取入於第二記憶體1 5 B的一幀前的奇數幀畫 像資料的各分割領域Wij,而在第三記憶體部1 5 C所對應的 儲存領域複製或更新所需資料,資訊的流程。 在本實施形態中,上述處理是附隨於在第一實施形態 所說明的拍照體試料W的自動聚焦控制所進行,當然也可 單獨地進行該處理。 將以上處理對於自動聚焦所需枚數的所有畫像加以處 理’成爲在終了自動聚焦動作時,分割領域W ij別地,可 得到最對準焦點的部分,其高度資料及焦點評價値。由此 ,不僅拍照體試料w的焦點位置座標,而且分割領域Wij 別地成爲線上且即時地也可取得拍照體試料W的全焦點畫 像及形狀。 特別是,藉由將複印在合成畫像資料儲存領域1 5 C 1的 合成畫像顯示在監測器9 (第1圖),在物鏡3的全檢索範 圍的所有移動過程,成爲分割領域別地可觀察到對準焦點 的情形之故,因而在自動聚焦動作中成爲可容易地把握所 顯示的拍照體試料W的高度分布情形。 又’使用本發明的自動聚焦控制方法,來合成拍照體 試料的全焦點晝像之故,因而確保能排除起因於短波長、 單一波長的光學系的影響的高精確度的自動聚焦控制。由 此,高分解能地可取得如半導體晶圓等階層地展開的構造 體表面的全焦點畫像。 -26- 200527907 (23) (第四實施形態) 以下,作爲本發明的第四實施形態,說明從自動聚焦 動作所取得的畫像資料合成拍照體試料的立體畫像的方法 〇 如上述地,畫像自動聚焦動作是在複數聚焦位置取得 料畫像後進行焦點評價値。如此,在本實施形態中,從所 取得的試料畫像中抽出對焦部分,藉由將此與高度方向的 資訊組合,就可合成立體畫像。 例如第1 3圖所示地,對於自動聚焦動作時所取得的各 試料畫像Ra、Rb、Rc及Rd分別進行焦點評價値檢測之後 ’抽出對焦部位並藉由將此朝高度方向(聚焦軸方向)組 合’就可合成構造物R的立體畫像。 將本實施形態的立體畫像的合成方法的一例表示於第 1 4圖的流程圖。在圖中,在與上述的第一實施形態(第3 圖)對應的步驟賦予相同符號而省略其詳細說明。 在本實施形態中,初期設定(步驟S 1 )之後,具有立 體畫面緩衝淸除工程(步驟S ] A )。在該工程中,進行記 憶過去所取得的立體畫面的記憶體領域的初期化。然後, 與上述的第一實施形態同樣地,在複數聚焦位置取得拍照 體試料的試料畫像,對於其各該進行依平滑化處理,邊緣 強調處理的焦點評價値的算出,及依所算出的焦點評價値 的畫面平均亮度的規格化處理(步驟S2至步驟S8 )。 算出焦點評價値之後,在畫面內各點至今的資料與取 -27- 200527907 (24) 入資料來比較那一方有對焦,若取入資料的一方有對焦時 ,則進行更新資料的處理(步驟S 8 A )。該處理是分別實 行各該試料晝像。 如以上所述地,構成本發明的「立體畫像合成手段」 。又,在本例中,如上述第二實施形態地將畫面分割成複 數領域W ij,而對於分割的各領域分別進行上述的處理, 惟分割數是並未特別加以限定,而以一像素單位進行處理 也可以。 因此,依照本實施形態,終了自動聚焦控制後,不僅 拍照體試料W的最適當聚焦位置資訊,還藉由將對焦的複 數試料畫像朝高方向組合,成爲也可容易地取得拍照體試 料表面的立體畫像。 又’使用本發明的自動聚焦控制方法,來合成拍照體 g式料的立體畫像之故,因而確保能排除起因於短波長、單 一波長的光學系的影響的高精確度的自動聚焦控制。由此 ’高分解能地可取得如半導體晶圓等階層地展開的構造體 表面的全立體畫像。 (第5實施形態) 以下,說明本發明的第五實施形態。 在上述各實施形態中,說明了以電腦作爲核心的畫像 處理裝置】實現本發明的自動聚焦控制方法。該構成是有 稍複雜’且無法匹配於僅欲對焦的需求的情形。亦即,爲 了聚焦後的處理不需要時等,藉由簡單的硬體可實現實行 -28- 200527907 (25) 本發明的自動聚焦控制方法的算術,可使得適用範圍擴大 而在工業自動化上有很大貢獻。 又,在本實施形態中,說明未使用電腦而可實現上述 的本發明的自動聚焦控制方法的自動聚焦控制裝置的構成 。如下述地,該自動聚焦控制裝置是使用視頻信號編碼器 或 FPGA ( Field Programmable Gate Array )所代表的演算 元件,設定保存用的記憶體等所構成,又視需要,使用 CPU ( Central Processing Unit)或 PMC ( Pulse MotorFocus evaluation of Pv (m-3) and Pv (m + 3) 値 Approximately calculated curve. The degree of opening of the graph is different, but the positions of the vertices are approximately the same. It can be seen that although it is a simple process, it is an effective approximation method. Moreover, it is not limited to the above-mentioned curve approximation method. For example, a straight line passing through two points of P v (m) and P v (m + 1), and a line passing through pv (guai 1) and P v (m — 2) are used. The intersection points of the other two straight lines are calculated, and the focus position may be detected by a method (linear approximation method) or an approximate method such as a normal distribution curve approximation that uses this as the focus position. Referring to FIG. 2 'Memory' 5, various calculations used by the CPU of the controller 7 are performed. In particular, in the memory space of 'Memory 5', the first memory unit for various calculations of the autofocus control unit 1 1] 5 A and the second -16-200527907 (13) Memory unit 1 5 B. In this embodiment, in order to obtain the high-speed performance of the automatic focus control, while continuously changing the distance between the lens and the workpiece, sample images are obtained at a plurality of focus positions. As a result, compared with a case where the lens is stopped at each focus position to obtain an image, the speed of the autofocus control can be increased. The relationship between the instruction voltage of the driver 8 for the lens driving section 4 and the actual moving voltage of the lens driving section 4 is shown in Fig. 7. The lens driving unit 4 made of a piezoelectric element is provided with a position detection movement detection sensor. The real moving voltage in Figure 7 is the sensing monitor signal. The instruction voltage is determined by changing the frame of the video signal of the CC camera 6 after the lens is moved to the start position of the autofocus control. Comparing the indication voltage with the real moving voltage, although the response is delayed, the movement is smooth, and the slope of the two graphs in the increasing field is approximately the same while destroying the step difference of the indication voltage. From this, it can be seen that the lens operates at a constant speed and at a constant speed corresponding to the indicated voltage. Therefore, when the sample image is acquired in synchronization with the image synchronization signal, it can be calculated at a fixed interval of the focus axis coordinates, and the focus evaluation is obtained. In addition, in this embodiment, in order to increase the speed of the autofocus operation, the process of obtaining the sample image and the process of calculating the focus evaluation frame can be performed in parallel. This is how the second memory section is processed while fetching image data from the first memory section 5a as shown in FIG. 8! 5 B has already taken in the image data, and calculated the focus evaluation 缓冲 pv by double buffering. In the case of this example, the image data retrieved in even frames is processed in the first memory section 15A, and the image data retrieved in odd frames is processed in the second memory section 15B. -17- 200527907 (14) Hereinafter, the operation of the image processing apparatus 1 of this embodiment configured as described above will be described with reference to FIG. 3. Fig. 3 is a flowchart showing the process of the autofocus control section. First, input the autofocus processing area of the photographic sample W, the search range of the focus position S ', and obtain the initial setting of the focus movement amount (focus axis step length) between image samples, image smoothing processing conditions, and edge emphasis processing conditions ( In step S1), automatic focus control is performed. The objective lens 3 is driven in the direction of the focus axis from the start position of the autofocus control by the driving of the lens drive unit 4 (close to the direction of the photographing / photographing sample W in this embodiment), and the photograph is obtained by synchronizing with the image synchronization signal. Sample portrait of the sample W (steps S2 and S3). Then, a focus axis coordinate (a lens-workpiece distance coordinate) of the obtained sample image is obtained (step S 4). Thereafter, a focus evaluation process is performed by the screen average brightness calculation process, the image smoothing process, the edge enhancement process, and the brightness normalization process for the acquired sample portrait (steps S5 to S8). In the screen average brightness calculation process (step S5), the average brightness calculation circuit 1 1 B is calculated. The calculated average screen brightness is used as a calculation for subsequent focus evaluation. The screen average brightness calculation process may be performed after the smoothing process process (step S6). The image smoothing process (step S 6) is processed in the smoothing processing circuit Π A. In this image smoothing process, for example, an image smoothing process is performed using a calculation formula represented by [Equation 1]. Therefore, in the sample image obtained, the effect of the single-wavelength speckle caused by the light source can be excluded -18- 200527907 (15). The edge enhancement process (step S 7) is performed in the evaluation / calculation circuit 1 1 C. In this process, based on the image of the sample that has been smoothed in the previous smoothing process (step S 6), the features of the feature parts and the contour parts are calculated by the edge enhancement processing formula shown in the above [Equation 2]. The brightness data difference between pixels is used as the basic data for focus evaluation. Thereafter, a brightness normalization process is performed by normalizing the screen average brightness to the focus evaluation frame calculated in step S7 (step S8). This process is performed in the evaluation / calculation circuit i 1 C. In the example shown in FIG. 3, the focus evaluation 値 P v 〇 (i) obtained by the previous edge enhancement processing process (step S 7) is obtained by calculating the process using the average brightness on the screen (step s 5). Divide the average screen brightness Paveci) to calculate the focus normalized focus evaluation 値 Pv (i) of [Equation 3]. The above-mentioned steps S 2 to S 8 constitute an auto-focus circuit (AF circuit). In this circuit, the same processing as described above is performed for each of the acquired sample images of each focus position. In the present embodiment, as described above, the lens driving unit 4 is in a state where the objective lens 3 is continuously moved, and the CCD camera 6 photographs a photographic sample W at a predetermined sampling period, and obtains an image (step s 3) and focus with the image. The evaluation / calculation process (step S 8) is processed in parallel (FIGS. 6 and 7). Therefore, "in addition to calculating the focus evaluation 値 of the previously taken sample portrait", the next sample portrait can also be obtained. As a result, the focus evaluation 値 can be calculated with one frame period of the video signal, and the autofocus operation can be accelerated. . When the total movement length of the objective lens 3 reaches the full search range, the AF return is ended-19- 200527907 (16). For the focus evaluation of the obtained sample portraits, the maximum average multiplying degree of the drawing surface, pavemax, is implemented. Processing (step, s) 〇). As a result, the focus evaluation of each sample portrait has the same meaning as that obtained by the calculation formula shown in the above-mentioned [Equation 4]. Also, as in the engineering process shown in FIG. 4, the a F loop is completed according to the calculation of the focal point s, which is the edge emphasis processing, as in step s 丨 〇A in the same figure, after the AF loop is terminated. The normalized processing of the average brightness of the screen based on the focus evaluation is performed using the calculation processing shown in [Equation 4] for each sample portrait. The result is the same as the example shown in FIG. . In FIG. 5, the focus curve FC 1 obtained by performing the smoothing processing (step S 6 in FIG. 3) and the normalization processing (step s 8 in FIG. 3) is shown by a solid line, and is shown by a one-point key line. The focus curve FC2 obtained by performing only the smoothing process without normalizing the screen average brightness is not performed. Also for comparison ', the conventional focus curve F C 3 shown in Fig. 22 is shown with a dotted line. As can be seen from Fig. 5, according to this embodiment, the influence portion 'of the optical system can be greatly changed, and the peak value of the focus evaluation frame to be detected as the most appropriate focus position (focus position) can be displayed. This makes it possible to achieve stable and accurate autofocus operation even in a short-wavelength, single-wavelength optical system. Also, although only the smoothing process of the sample image is performed, the effect of the optical system can be improved, so the brightness normalization process can be omitted if necessary (at step S 8 in FIG. 3), but by performing the brightness The normalization process can further improve the optical system influence section, and can more accurately detect the focus position. Then, a focus position calculation process is performed (step S 1 1). This focus bit -20- 200527907 (17) The setting calculation process is performed in the focus position calculation circuit U D. To calculate the position of the focal point, as described with reference to FIG. 6, an approximate curve of each point passing the maximum value 焦点 of the focus evaluation 値 and the complex focus evaluation 附近 near it is obtained, and its vertex is detected as the focus position. Therefore, compared with the conventional mountaineering method widely used, the focus position can be detected efficiently and with high accuracy, and thus it greatly contributes to the acceleration of the autofocus operation. On the other hand, in Fig. 6, if the distance between the lens and the workpiece on the horizontal axis is used as the total search range, and it can be determined that the focus position is passed during the operation, image acquisition after Pv (m + 3) becomes unnecessary. As a result, the operation time of the tiller can be reduced, so that a higher speed of the autofocus operation can be realized. In addition, as a method of judging the passing of the focus position, there is a method of approximately obtaining a required number of samples by surpassing a certain focus evaluation 値 (given as a parameter or learned from the focus operation results so far). Wait. Finally, the movement process of moving the objective lens 3 toward the focus position (step S 1 2) 'ends the autofocus control of this embodiment. As described above, according to this embodiment, a high-precision autofocus control can be performed stably, excluding the influence of the short-wavelength, single-wavelength optical system, thereby making it possible to observe and inspect a semiconductor device with high resolution. Fine structures on the surface of wafers, etc. (Second Embodiment) Hereinafter, a second embodiment of the present invention will be described. -21-200527907 (18) In recent years, semiconductor wafers have been miniaturized to minimize the pattern width (rule of processing) 'and have a more three-dimensional structure in the height direction. The lightness becomes shorter as the focal point is shortened. The lower the focus on the target in a low-level object, the more disadvantageous it becomes. If there is a height difference in the screen and the focus-focused surfaces are different, it is necessary to obtain the active focus action of "focusing there", such as using the surface of the sample as a reference. However, in the conventional automatic focus control method that obtains the most appropriate focus position from the focus evaluation, it is inconvenient that the place to be seen cannot be focused. As described below, the method of applying the autofocus control method of the present invention to a method for aligning a point on either side of a sample having a step difference in the screen memory will be described below. In the first embodiment described above, an example has been described in which the focus evaluation frame is calculated for the entire (or a part of the target area) sample screen obtained. However, in this embodiment, as shown in FIG. 9, the obtained The sample screen of is divided into a plurality of areas, and each of the divided areas Wij (i, j 2 1 to 3) calculates a focus evaluation 値 separately, and calculates a focus position. To calculate the focus evaluation value of each segmented area Wij, the image smoothing process and the normalization process of the screen average brightness are performed in the same manner as in the first embodiment. As a result, the 'optical system' can detect the focus position with high accuracy without being affected. As a result of the above processing, it is possible to obtain a focus curve in which the segmented area Wij otherwise corresponds to the segmented area. At this time, 'compared with any segmented domain and other segmented domains, the situation is different at no point position'. It can be seen that the height difference between the two exists on the focal plane. Therefore, any priority is given by specifying the parameter. The focus position can become an active focus action. -22- 200527907 (19) Examples of parameters are as follows. 1. The lens-sample distance is the shortest (the highest part of the sample) 2. The lens-sample distance is the longest (the lowest part of the sample) 3. The specific position of the screen 4. The most appropriate focus position (more Characteristic parts) and so on. Fig. 9 illustrates an example in which the number of screen divisions is 9 divisions of 3 x 3. However, the number of screen divisions is not limited to this. The more you divide the screen or the more detailed you get. In addition, it is also possible to divide and overlap each other's picture ’The number of screen divisions may be changed dynamically according to the use state. As described above, according to this embodiment, it is possible to fully correspond to the active focus operation of "focus there" by designating the most appropriate focus position for the target sample as a priority. (Third Embodiment) A third embodiment of the present invention will be described below. In the embodiment, a method for synthesizing an all-focus image of a photographic sample from the acquired image data will be described by applying the autofocus control method of the present invention. In the ordinary optical system, if you want to see the depth of focus beyond the optical system, you cannot see the overall focused image, which cannot meet the purpose of inspection and observation. Special optical systems, such as confocal optics, are used to obtain overall focused images, or methods based on triangulation to obtain all-focus portraits from different angles. However, these methods use special optical systems. Therefore, it cannot be realized at low cost. > 23- 200527907 (20) On the other hand, a method of obtaining an image of an object hierarchically and then synthesizing it is also proposed (Japanese Patent Laid-Open Nos. 2 0 3-2 8 1 50 1). However, there are shortcomings such as the capacity of only the image information used for synthesis, and the synthesis processing time. In this way, in this embodiment, the process of implementing the automatic focus control method described in the first embodiment described above can obtain a full-focus image of a photographic sample. This control flow is shown in FIG. 10. After the process of normalizing the focus of the obtained image (sample point) by the screen average brightness (step S 8), a process of synthesizing the image (step S 8 M) is added. The other processes are the same as the process flow (Fig. 3) described in the first embodiment, and therefore the same reference numerals are assigned to the corresponding processes, and descriptions thereof are omitted. Also when "combining portraits", as described in the first embodiment, the sample screen obtained is divided into a plurality of fields (Figure 9), and the images in each of the divided fields are used as a unit to synthesize portraits. . In addition, the number of divisions of a screen is not particularly limited, and the more the number of divisions, the finer it can be processed, until the division area can be refined by one pixel unit. The shape of the divided area is not limited to the square, and may be changed to a circular shape or the like. In addition, as the recording body 15 (Figure 2), in addition to the first memory portion 15 A that processes the portrait data acquired in the even frames and the second memory that processes the portrait data acquired in the odd frames In addition to the section 15B, as shown in FIG. 11, a third memory section 15C for all-focus processing is prepared. The third memory section 15C is provided with a synthetic image data storage area 15C1 'and the height of each of the segmented areas Wij constituting the composite image (distance between the lens and the work -24- 200527907 (21)) information storage area 1 5 C2, and the focus evaluation of these divided areas Wij 値 information storage area 1 C3. To synthesize all-focus artifacts of a photographic sample, obtain specimen vibration images at a plurality of focal positions with different distances between the lens and the workpiece. For each sample image, calculate the focus evaluation score separately for each segmented area Wij, and extract the segmented area After Wi ij is independent of each other and the focus evaluation image is the highest, the image synthesis process is performed as a whole. As described above, the "all-focus image synthesis means" of the present invention is constituted. The process flow chart shown in FIG. 10 will be described. For the sample portraits obtained in the same manner as in the first embodiment in the processes of steps S 1 to S 8, the segmented fields W ij are executed separately and then moved. Proceed to step s 8 M for image synthesis. Fig. 12 shows step S8M in detail. After the autofocus operation is started, the third image body 15C is initialized using the image taken first (steps a and b). That is, in step b, the first image is copied to the synthetic image data storage area 1 5 C 1, and the first data is used to supplement the height information storage area 1 5 C, and the focus evaluation image is copied to each of the segmented areas Wij. Focus evaluation of the information storage area 1 5 C 3 and initialisation. After the second time, the focal evaluation value 取得 of the acquired image and the focus evaluation 合成 of the synthesized image are compared in each of the divided areas Wij (step c). If the focus evaluation image of the obtained image is large, the image is copied, and the height information and focus evaluation image information corresponding to this are updated (step d). Conversely, if the focus evaluation value of the acquired image is small, no processing is performed. This repeated division is divided into components (step e). This completes the processing of one frame (3 3.3 m s e c). -25- 200527907 (22) In a series of automatic focus control operation flow, the above processing is, for example, taking the even-frame image data in the first memory 1 5 A and taking it into the second memory The process of copying or updating the required data and information in the storage area corresponding to the third memory section 1 5 C in the divided areas Wij of the odd-numbered frame image data before one frame of 1 5 B. In the present embodiment, the above-mentioned processing is performed in conjunction with the autofocus control of the photographic sample W described in the first embodiment, and it is needless to say that this processing may be performed separately. The above processing is performed on all the portraits required for the auto-focusing ', so that at the end of the auto-focusing operation, the area W ij is divided, and the most in-focus portion can be obtained, its height data and focus evaluation 値. As a result, not only the coordinates of the focal position of the photographic sample w, but also the segmented area Wij can be obtained online and in real time. The full-focus image and shape of the photographic sample w can also be obtained. In particular, by displaying the composite image copied in the composite image data storage area 1 5 C 1 on the monitor 9 (Fig. 1), all movement processes in the full search range of the objective lens 3 become separately visible in the segmented area. When the camera is in focus, the height distribution of the displayed photographic sample W can be easily grasped during the autofocus operation. Furthermore, the autofocus control method of the present invention is used to synthesize an all-focus day image of a photographic sample, thereby ensuring high-precision autofocus control capable of excluding the influence of a short-wavelength, single-wavelength optical system. As a result, it is possible to obtain a full-focus image of the surface of a structure that is spread out hierarchically, such as a semiconductor wafer, with high resolution. -26- 200527907 (23) (Fourth embodiment) Hereinafter, as a fourth embodiment of the present invention, a method for synthesizing a three-dimensional portrait of a photographic sample from image data obtained by an autofocus operation will be described. The focus operation is to perform focus evaluation after obtaining a portrait image at a plurality of focus positions. As described above, in this embodiment, a focus portion is extracted from the obtained sample image, and a three-dimensional image can be synthesized by combining this with the information in the height direction. For example, as shown in FIG. 13, focus evaluation is performed on each sample image Ra, Rb, Rc, and Rd obtained during the autofocus operation. After detection, the focus portion is extracted and the height direction (focus axis direction) is drawn ) Combination 'can be combined to form a three-dimensional portrait of the structure R. An example of a method for synthesizing a three-dimensional image according to this embodiment is shown in the flowchart in FIG. 14. In the figure, steps corresponding to the above-mentioned first embodiment (FIG. 3) are given the same reference numerals, and detailed descriptions thereof are omitted. In this embodiment, after the initial setting (step S1), there is a stereo screen buffer erasure process (step S) A). In this process, the memory area is initialized to memorize the three-dimensional images obtained in the past. Then, as in the first embodiment described above, sample images of the photographic sample are obtained at a plurality of focus positions, and each of them is subjected to a smoothing process, a focus evaluation process for edge enhancement processing, and a calculated focus. The normalized process of evaluating the average screen brightness (step S2 to step S8). After calculating the focus evaluation 値, the data at each point in the screen so far is compared with the data obtained from -27- 200527907 (24) to compare which side has focus. If the side that has acquired data has focus, update the data (steps) S 8 A). In this process, a day image of each sample is separately performed. As described above, the "stereoscopic image synthesis means" of the present invention is constituted. In this example, the screen is divided into a plurality of fields W ij as in the second embodiment, and the above-mentioned processing is performed for each divided field. However, the number of divisions is not particularly limited, and the unit is one pixel. Processing is also possible. Therefore, according to this embodiment, after the auto-focus control is completed, not only the most appropriate focus position information of the photographic sample W, but also the plurality of focused sample images are combined in a high direction, so that the surface of the photographic sample can be easily obtained. Three-dimensional portrait. Furthermore, the autofocus control method of the present invention is used to synthesize the three-dimensional portrait of the photographic g-type material, thereby ensuring high-precision autofocus control that can eliminate the influence of the optical system of short wavelength and single wavelength. In this way, it is possible to obtain a full three-dimensional image of the surface of a structure that is spread out hierarchically, such as a semiconductor wafer. (Fifth Embodiment) A fifth embodiment of the present invention will be described below. In each of the above-mentioned embodiments, the image processing device using a computer as the core has been described. The method for realizing the automatic focus control of the present invention is described. This configuration is a case where it is slightly more complicated and cannot be adapted to the need to focus only. That is, in order that the processing after focusing does not require time, simple arithmetic can be used to implement -28- 200527907 (25) The arithmetic of the automatic focus control method of the present invention can expand the scope of application and have advantages in industrial automation. Great contribution. In this embodiment, the configuration of an autofocus control device that can implement the above-described autofocus control method of the present invention without using a computer will be described. As described below, the autofocus control device is constituted by using a computing element represented by a video signal encoder or FPGA (Field Programmable Gate Array), a memory for setting storage, and the CPU (Central Processing Unit) if necessary. Or PMC (Pulse Motor

Controller )、外部記憶體等的積體電路。此些的元件群 是藉由安裝共通的配線基板上,使用作爲單一基板單元, 或是作爲收納此的封裝構件。 (第一構成例) 在第1 5圖表示依本發明的自動聚焦控制裝置的第一構 成例的功能方塊圖。圖示的自動聚焦控制裝置3 1是由視頻 信號解碼器41、FPGA 42、場記憶體43、CPU 44、ROM/ RAM 45、PMC 46、I/F 電路 47所構成。 使用於聚焦動作的視頻信號是NTSC方式地被編碼的 類比畫像信號,此爲藉由視頻信號解碼器4 1變換成水平/ 垂直同步信號,EVEN (偶數)ODD (奇數)場資訊,亮 度資訊的數位畫像信號。 F P G A 4 2是以在上述第—實施形態中所說明的本發明 的自動聚焦控制流程(第3圖)進行所定演算處理的演算 處理的演算元件所構成,對應於本發明的「畫像平滑化手 -29- 200527907 (26) 段」、「邊緣強調處理手段」及「評價値算出手段」。 該FPGA 42是從藉由視頻信號解碼器41被數位信號化 的同步信號與場資訊,取出畫面內的有效部分的資訊,並 將其亮度資訊儲存在場記憶體43。又,同時地從場記憶體 4 3依次讀出資料,並進行所謂濾波(畫像平滑化處理)’ 平均亮度計算,焦點評價値計算的演算處理。又,藉由 FPGA 42的積體度,也可將場記憶體43 CPU 44、PMC 46 的功能組裝於FPGA 42內。 場記億體43是以介面被輸出且爲了處理以偶數場及奇 數場構成一幀的視頻信號,而以暫時地保存上述場資訊的 目的被使用。 C P U 4 4是經由P C Μ 4 6及I / F電路4 7、移動支持拍照 體試料的工作台並變更透鏡-工件間距離,同時在各聚焦 位置所取得而從FPGA 42所演算的各試料畫像的焦點評價 値計算最適當聚焦位置(焦點位置)等,來管理整體系統 。在該例中,C P U 4 4是對應於本發明的「焦點位置算出 手段」。 ROM/RAM 45是使用作爲CPU 44的動作軟體(程式 )與焦點位置的計算所必需的參數的記憶用。又R0M / RAM 45是內設於CPU也可以。 P M C 4 6是驅動工作台的脈衝電動機(未圖示)的驅 動用控制元件,經由介面電路(! / F電路)47來進行工作 台的控制。又,檢測工作台位置的感測器的輸出成爲經I / F電路4 7被供給於P C Μ 4 6。 -30- 200527907 (27) 在如以上所構成的自動聚焦控制裝置3 1中,從未圖示 的CCD攝影機供給試料畫像的視頻信號。該視頻信號是經 視頻信號解碼器41被輸入到FPGA 42,而在該FPGA施以輸 入畫像的平滑化處理,平均亮度計算,焦點評價値的演算 。FPG A 42是在場終了的同步信號的時機,將焦點評價値 資料轉送到CPU 44。 CPU 44是在場終了的時機取得聚焦台的座標,並將 該座標使用作爲透鏡一工件間距離。將以上的處理重複本 發明的自動聚焦動作所需次數之後,C P U 4 4是進行焦點 位置的計算。之後,朝最適當聚焦位置移動工作台,終了 聚焦動作。又,視需要,進行畫面分割功能,拍照體試料 的全焦點畫像合成處理,及/或立體畫像合成處理。 藉由將如上所構成的本發明的自動聚焦控制裝置有機 地連接於既設的CCD攝影機、監測器、脈衝電動機等的聚 焦軸移動手段等,成爲可實現與上述畫像處理裝置丨同等 的功能之故,因而使用簡易且簡單的構成可實施本發明的 自動聚焦控制方法’而在成本及設置空間等方面成爲極有 利。 (第二構成例) 第1 6圖是表示依本實施形態的自動聚焦控制裝置的第 二構成例的功能方塊圖。又,對於與第一構成例(第! 5圖 )相對應部分賦予相同符號,而省略其詳述。本構成例的 自動聚焦控制裝置3 2是由視頻信號解碼器4 1、F P G A 4 2、 -31 - 200527907 (28) CPU 44、11〇]^/11八1^45、?1^匸46及1/?電路4 7所構成。 在上述的第一構成例的自動聚焦控制裝置3 1中,爲了 將介面的畫像處理作爲與電視機同樣的影像,使用場記憶 體43,而從幀資訊進行控制。但是,僅考量自動聚焦動作 ,就不必使用幀資訊,也有以場單位的處理就充分的情形 ,又,此也成爲優點的情形。 如此,本構成例的自動聚焦控制裝置3 2,是作爲從第 一構成例去掉場記憶體43的構成。利用該構成,資訊對於 場記憶體的轉送定時處理成爲不需要,因而與上述第一構 成例相比較,在物理上或邏輯上也成爲簡單構成。又,以 場單位進行焦點評價處理之故,因而與以幀單位所處理的 第一構成例相比較具有焦點評價値的抽樣間隔變短等的優 點。 (第三構成例) 第1 7圖是表示依本實施形態的自動聚焦控制裝置的第 三構成例的功能方塊圖。又,對於與第一構成例(第1 5圖 )相對應部分賦予相同符號,而省略其詳述。本構成例的 自動聚焦控制裝置33是由視頻信號解碼器41、FPGA 42、 CPU 44、ROM/RAM 45、PMC 46及 I/F 電路 47所構成。 本構成例的自動聚焦控制裝置33,是將FPG A 42內內 設PMC 46的邏輯方塊,與上述第二構成例,作成不需要 PMC 46獨立的邏輯電路的構成。藉由該構成,成爲用以 獨立的PMC 46的1C晶片不需要,可得到減低基板尺寸及 -32- 200527907 (29) 安裝成本。 (第四構成例) 第1 8圖是表示依本實施形態的自動聚焦控制裝置的第 四構成例的功能方塊圖。又,對於與第一構成例(第1 5圖 )相對應部分賦予相同符號,而省略其詳述。本構成例的 自動聚焦控制裝置3 4是由視頻信號解碼器4 1、F P G A 4 2、 CPU 44、ROM / RAM 45、AD (Analog to Digtal) / DA (Digital to Analog)電路 48、及 I/F 電路 47所構成。 本構成例的自動聚焦裝置3 4是表示從脈衝電動機以類 比信號控制的壓電工作台構成聚焦工作台的驅動源的例子 ,代替上述的第二構成例的PMC 46,使用AD/DA電路48 。又,A D / D A電路4 8是例如可結合於c P U 4 4內,這時候 ,不必將該AD/ D A電路4 8作成外設電路。 又,在AD/DA電路48中,DA電路部分是用以將來自 C P U 4 4的指示電壓變換成類比信號的電路;A D電路部分 ,是用以將來自檢測壓電工作台的移動位置的感測器(未 圖示)的信號變換成數位信號且回饋至C P U 4 4的電路。 又,未進行該回饋控制時,A D電路部分是可省略。 (第五構成例) 第1 9圖是表示作爲本實施形態的第五構成例,上述的 第三構成例(第1 7圖)的自動聚焦控制裝置3 3的具體構成 例。又在圖中對於對應的部分賦予相同符號,而省略其詳 -33- 200527907 (30) 細說明。 本構成例的自動聚焦控制裝置3 5是在共通配線基板5 0 上,分別安裝視頻信號解碼器41、FPGA 42、CPU 44、快 閃記憶體 45A、SRAM (Static Random Access Memory) 45B、RS驅動器47A、電源監視電路51、FPGA初期化ROM 52及複數連接器53 A、53B、53C、53D所構成。 快閃記憶體45A及SRAM 45B是對應於上述的ROM/ RAM 45,在一方的快閃記憶體45A,儲存有CPU 44的動 作程式或自動聚焦動作的初期設定資訊(聚焦移動速度、 平滑化處理條件等);在另一方的SRAM 45B使用於演算 CPU 44的焦點位置所必需的各種參數的暫時性保存等。 R S驅動器4 7 A是與經由連接器5 3 A〜5 3 D所連接的外部 機器的通信所必需的介面電路。在此,在連接器5 3 A連接 有C CD攝影機,而在連接器53B連接有上位控制器或CPU 。又,在連接器53C連接有電源電路,而在連接器53D連 接有聚焦工作台。又,聚焦工作台是將脈衝電動機具備作 爲驅動源,其控制器的PMC是被組裝於FPG A 42內。 如以上地,依照本構成例的自動聚焦控制裝置3 5,在 一枚配線基板5 〇上,可構成安裝可實行本發明的自動聚焦 控制方法所實現的算法的各種元件的外形尺寸作爲如】00 m m四方的基板安裝體。由此,可得到減低裝置成本及簡 化裝置構成。又’可提高機器的設置自由度之故,因而至 今未使用的產業領域’成爲谷易地可對應於自動聚焦動作 所要求的現場需求。 -34 - 200527907 (31) 以上,說明本發明的各實施形態,當然,本發明是並 不被限定於此些,依據本發明的技術性思想可進行種種變 例如在以上的第一實施形態,說明了爲了將透鏡一試 料間距離作成不相同而朝聚焦軸方向移動物鏡3側的構成 ’代替此構成,作可移動支持試料的工作台2也可以。 又,在以上的第一實施形態,作爲變更透鏡一試料間 距離的驅動系以壓電元件所成的透鏡驅動部4及其驅動器6 所構成,惟並未限定於此者,若可高精度且平滑地變更透 鏡試料間距離者,適用其他驅動系也可以。 例如,第2 0 A圖是表示作爲驅動源使用脈衝電動機2 〇 的例子。這時候,驅動器2 1是依據來自脈衝電動機控制器 2 2所供給的控制信號而生成對於脈衝電動機2 〇的驅動信號 〇 又,透鏡驅動部4及上述脈衝電動機2 0是作成所謂場 正向控制進行驅動,惟設置檢測透鏡位置或是工作台位置 的感測器,而回饋控制驅動源的構成也可使用。 第2 0 B圖是表示藉由場回饋控制來控制驅動源的驅動 系的一構成例。驅動器2 4是依據從輸出指示電路2 5所供給 的控制信號而生成對於驅動系2 3的驅動信號。這時候,作 爲驅動系23可適用氣缸裝置或電動機等。位置感測器26是 以應變計或電位計等可構成,並將其輸出供給到結合電路 2 7。結合電路2 7是依據位置感測器2 6的輸出朝輸出指示電 路25供給位置補償信號,並進行驅動系23的位置修正。 -35- 200527907 (32) 又,在以上的各實施形態,以NTSC方式說明從CCD 攝影機所供給的視頻信號,惟並不被限定此’例如也可以 PAL (Phase Alter nation by Line)方式進行處理。又’ 更換視頻信號解碼器部,就可對應於IEEE 1 3 94 ’攝影機 鏈等的其他格式。這時候,也可將視頻信號解碼器電路的 功能結合在FPGA 42內。 又,實行本發明的自動聚焦控制所得到的各旨式料畫像 的焦點評價値或聚焦位置等也可與試料畫像一起顯示在監 測器9 (第1圖)。這時候,可另外設置將此些資訊變換成 N T S C等並顯示所用的編碼器電路。該編碼器電路是也可 作爲如在上述的第五實施形態所說明的構成的自動聚焦控 制裝置的基板安裝零件的一種。 【圖式簡單說明】 第1圖是表示依本發明的第一實施形態的畫像處理裝 置1的槪略構成圖。 第2圖是表示說明控制器7的構成的方塊圖。 第3圖是表示說明畫像處理裝置1的動作的流程圖。 第4圖是表示說明畫像處理裝置1的其他動作例的流程 圖。 第5圖是表示說明本發明的一作用的聚焦曲線的一例 子;F C 1是表示進行畫像平滑化處理及焦點評價値的高度 規格化處理時的例子;F C 2是表示僅進行畫像平滑化處理 時的例子;FC3是表示習知例。 •36- 200527907 (33) 第6圖是表示說明在焦點評價値最大値近旁以作成近 似曲線來算出焦點位置的方法的圖式。 第7圖是表示對於透鏡驅動部4的指示電壓與透鏡的實 移動電壓的關係的圖式。 第8圖是表示說明並聯處理試料晝像的結合與算出焦 點評價値的方法的圖式。 第9圖是表示本發明的第二實施形態的圖式;說明分 割畫面成複數並在各該分割領域檢測焦點位置的方法的圖 式。 第1 0圖是表示依本發明的第三實施形態的工程流程圖 〇 第1 1圖是表示適用於本發明的第三實施形態的記憶體 構成圖。 第1 2圖是表示說明全焦點畫像取得工程的流程圖。 第1 3圖是表示本發明的第四實施形態的圖式;說明將 試料畫像的焦點位置朝聚焦軸方向組合而取得立體畫像的 方法的圖式。 第1 4圖是表示說明上述立體畫像的合成方法的流程圖 〇 第1 5圖是表示依本發明的第五實施形態的自動聚焦控 制裝置的第一構成例的功能方塊圖。 第]6圖是表示依本發明的第五實施形態的自動聚焦控 制裝置的第二構成例的功能方塊圖。 第1 7圖是表示依本發明的第五實施形態的自動聚焦控 -37 - 200527907 (34) 制裝置的第三構成例的功能方塊圖。 第1 8圖是表示依本發明的第五實施形態的自動聚焦控 制裝置的第四構成例的功能方塊圖。 第1 9圖是表不依本發明的第五實施形態的自動聚焦控 制裝置的第五構成例的功能方塊圖。 第2〇A圖至第20B是表示畫像處理裝置1的驅動系統的 構成的變形例的方塊圖。 第2 1圖是表示透鏡-工件間距離(聚焦位置)與焦點 評價値之關係的聚焦曲線的一例。 第22圖是表示說明先前技術的缺點問題的圖式。 【主要元件符號說明】 1 畫像處理裝置 2 測定台 3 物鏡 4 透鏡驅動部 5 鏡筒 6 CCD攝影機 7 控制器 8 驅動器 9 監測器 10 照明光源 1 1 聚焦(AF )控制部 Π A平滑化處理電路 -38- 200527907 (35) 11B平均亮度算出電路 1 1 C評價値算出電路 1 1 D焦點位置算出電路 13 A/D變換器 14 記憶體 1 5 A第一記憶體部 1 5 B第二記憶體部 16 輸入裝置 17 D/ A變換器 20 脈衝電動機 2 1 驅動器 22 脈衝電動機控制器(PMC ) 2 3 驅動系統 2 4 驅動器 25 輸出指示電路 2 6 位置感測器 2 7 結合電路 3 1、3 2、3 3、3 4、3 5 聚焦控制裝置 4 1 視頻信號解碼器Controller), integrated circuits such as external memory. These component groups are used as a single substrate unit by mounting on a common wiring substrate, or as a packaging member that houses them. (First configuration example) Fig. 15 shows a functional block diagram of a first configuration example of the autofocus control device according to the present invention. The autofocus control device 31 shown in the figure is composed of a video signal decoder 41, an FPGA 42, a field memory 43, a CPU 44, a ROM / RAM 45, a PMC 46, and an I / F circuit 47. The video signal used for the focusing action is an NTSC-encoded analog image signal. This is converted into a horizontal / vertical sync signal by the video signal decoder 41, EVEN (even) ODD (odd) field information, and brightness information. Digital portrait signal. The FPGA 42 is composed of a calculation element that performs a calculation process of a predetermined calculation process in the autofocus control flow (FIG. 3) of the present invention described in the first embodiment, and corresponds to the "image smoothing hand -29- 200527907 (26) paragraph "," Edge emphasis processing method "and" Evaluation / calculation method ". The FPGA 42 extracts the information of the effective part in the picture from the synchronization signal and field information digitally signaled by the video signal decoder 41, and stores its brightness information in the field memory 43. In addition, data is sequentially read out from the field memory 43 in sequence, and a so-called filtering (image smoothing process) 'average brightness calculation and focus evaluation / calculation calculation process are performed. In addition, the functions of the field memory 43 CPU 44 and PMC 46 can be assembled in the FPGA 42 by the integration degree of the FPGA 42. The field recorder 43 is output through an interface and is used for the purpose of temporarily storing the above-mentioned field information in order to process a video signal that constitutes a frame of an even field and an odd field. CPU 4 4 is the image of each sample calculated from FPGA 42 by moving the worktable that supports the sample of the camera and changing the lens-workpiece distance through the PC Μ46 and I / F circuit 4 at the same time. Focus evaluation: Calculate the most appropriate focus position (focus position), etc. to manage the overall system. In this example, C P U 4 4 is a "focus position calculating means" corresponding to the present invention. The ROM / RAM 45 is a memory for using parameters necessary for calculation of the operation software (program) of the CPU 44 and the focus position. The ROM / RAM 45 can be built into the CPU. P M C 4 6 is a driving control element for a pulse motor (not shown) that drives the table, and controls the table via an interface circuit (! / F circuit) 47. The output of the sensor that detects the position of the table is supplied to P C M 46 through the I / F circuit 47. -30- 200527907 (27) In the autofocus control device 31 configured as described above, a video signal of a sample image is supplied from a CCD camera not shown. The video signal is input to the FPGA 42 via the video signal decoder 41, and the FPGA is subjected to a smoothing process of the input image, an average brightness calculation, and a calculation of focus evaluation. FPG A 42 is the timing of the end-of-field synchronization signal, and transfers focus evaluation data to CPU 44. The CPU 44 acquires the coordinates of the focusing stage at the end of the field, and uses the coordinates as the distance between the lens and the workpiece. After repeating the above processing as many times as necessary for the autofocus operation of the present invention, C P U 4 4 performs the calculation of the focus position. After that, move the table to the most appropriate focus position to end the focus operation. In addition, if necessary, a screen division function is performed, and an all-focus image synthesis process of a photographic sample and / or a stereo image synthesis process are performed. The organic focus control device of the present invention configured as described above is organically connected to a focus axis movement means such as an existing CCD camera, monitor, pulse motor, etc., so that the same functions as those of the image processing device can be achieved. Therefore, the autofocus control method of the present invention can be implemented using a simple and simple structure, which is extremely advantageous in terms of cost, installation space, and the like. (Second configuration example) Fig. 16 is a functional block diagram showing a second configuration example of the autofocus control device according to this embodiment. The same reference numerals are given to portions corresponding to the first configuration example (Fig. 5), and detailed descriptions thereof are omitted. The autofocus control device 3 2 of this configuration example is composed of a video signal decoder 41, F P G A 4 2, -31-200527907 (28) CPU 44, 11〇] ^ / 11 八 1 ^ 45 ,? 1 ^ 匸 46 and 1 /? Circuit 47. In the autofocus control device 31 of the first configuration example described above, the field memory 43 is used to control the image processing on the interface as the same image as the television set, and control is performed from the frame information. However, considering only the auto-focusing action, there is no need to use frame information, and there are cases where processing in field units is sufficient, and this also becomes an advantage. As described above, the autofocus control device 32 of this configuration example is a configuration in which the field memory 43 is removed from the first configuration example. With this configuration, since the transfer timing processing of information to the field memory is unnecessary, it is also simpler physically or logically than the first configuration example described above. In addition, since the focus evaluation process is performed on a field unit basis, compared with the first configuration example processed on a frame unit basis, there are advantages such that the sampling interval of the focus evaluation unit is shorter. (Third configuration example) Fig. 17 is a functional block diagram showing a third configuration example of the autofocus control device according to this embodiment. The same reference numerals are given to portions corresponding to the first configuration example (Fig. 15), and detailed descriptions thereof are omitted. The autofocus control device 33 of this configuration example is composed of a video signal decoder 41, an FPGA 42, a CPU 44, a ROM / RAM 45, a PMC 46, and an I / F circuit 47. The autofocus control device 33 of this configuration example is a configuration in which the logic block of PMC 46 is built in the FPG A 42 and the second configuration example described above does not require a separate logic circuit for the PMC 46. With this configuration, the 1C chip for the independent PMC 46 is unnecessary, and the substrate size and the mounting cost can be reduced by -32-200527907 (29). (Fourth configuration example) Fig. 18 is a functional block diagram showing a fourth configuration example of the autofocus control device according to this embodiment. The same reference numerals are given to portions corresponding to the first configuration example (Fig. 15), and detailed descriptions thereof are omitted. The autofocus control device 34 of this configuration example includes a video signal decoder 41, FPGA 4, 2, CPU 44, ROM / RAM 45, AD (Analog to Digtal) / DA (Digital to Analog) circuit 48, and I / F circuit 47. The autofocus device 34 of this configuration example is an example in which a drive source for a focus table is configured from a piezoelectric table controlled by an analog signal from a pulse motor. Instead of the PMC 46 of the second configuration example described above, an AD / DA circuit 48 is used. . In addition, the AD / DA circuit 48 can be incorporated in cPU4, for example. In this case, it is not necessary to make the AD / DA circuit 48 as a peripheral circuit. In the AD / DA circuit 48, the DA circuit part is a circuit for converting an instruction voltage from the CPU 44 to an analog signal; the AD circuit part is used for converting a sense from a moving position of the piezoelectric table. The signal of the tester (not shown) is converted into a digital signal and fed back to the circuit of the CPU 4 4. When this feedback control is not performed, the AD circuit portion can be omitted. (Fifth configuration example) Fig. 19 shows a specific configuration example of the autofocus control device 33 as the third configuration example (Fig. 17) described above as the fifth configuration example of this embodiment. In the figure, the same symbols are given to the corresponding parts, and detailed descriptions are omitted -33- 200527907 (30). The autofocus control device 35 of this configuration example is equipped with a video signal decoder 41, an FPGA 42, a CPU 44, a flash memory 45A, a SRAM (Static Random Access Memory) 45B, and an RS driver on a common wildcard substrate 50. 47A, a power supply monitoring circuit 51, an FPGA initialization ROM 52, and a plurality of connectors 53A, 53B, 53C, and 53D. The flash memory 45A and the SRAM 45B correspond to the ROM / RAM 45 described above. In one of the flash memories 45A, an operation program of the CPU 44 or initial setting information of an autofocus operation (focus moving speed, smoothing processing) are stored. Conditions, etc.); the other SRAM 45B is used to temporarily store various parameters necessary for calculating the focus position of the CPU 44. RS driver 4 7 A is an interface circuit necessary for communication with external devices connected via connectors 5 3 A to 5 3 D. Here, a CD camera is connected to the connector 5 3 A, and a host controller or CPU is connected to the connector 53B. A power supply circuit is connected to the connector 53C, and a focusing stage is connected to the connector 53D. The focus stage is equipped with a pulse motor as a drive source, and the PMC of the controller is incorporated in the FPG A 42. As described above, according to the autofocus control device 35 of this configuration example, the external dimensions of various components on which a wiring substrate 50 can be mounted to implement the algorithm implemented by the autofocus control method of the present invention are as follows] 00 mm square board mount. This can reduce the cost of the device and simplify the device configuration. In addition, since the degree of freedom in setting the machine can be increased, the industrial field that has not been used so far has become a site that can be responded to by the autofocus operation required by the field. -34-200527907 (31) In the above, the embodiments of the present invention have been described. Of course, the present invention is not limited to these. Various changes can be made according to the technical idea of the present invention, such as the first embodiment described above. In order to make the distance between the lens and the sample different, a configuration in which the objective lens 3 side is moved in the direction of the focus axis has been described. Instead of this configuration, a table 2 that can move and support the sample may be used. In the first embodiment described above, the driving system for changing the distance between the lens and the sample is constituted by the lens driving unit 4 and the driver 6 made of piezoelectric elements. However, it is not limited to this. It is also possible to apply other driving systems to those who change the distance between lens samples smoothly. For example, FIG. 20A shows an example in which a pulse motor 2 0 is used as a drive source. At this time, the driver 21 generates a driving signal for the pulse motor 2 according to a control signal supplied from the pulse motor controller 22, and the lens driving unit 4 and the above-mentioned pulse motor 20 perform so-called field forward control. For driving, a sensor for detecting the lens position or the position of the table is provided, and a configuration of a feedback control driving source can also be used. Fig. 20B shows an example of a configuration of a drive system in which a drive source is controlled by field feedback control. The driver 24 generates a drive signal for the drive system 23 according to a control signal supplied from the output instruction circuit 25. At this time, a cylinder device, a motor, or the like can be applied as the drive train 23. The position sensor 26 can be configured by a strain gauge, a potentiometer, or the like, and supplies its output to the coupling circuit 27. The coupling circuit 27 supplies a position compensation signal to the output instruction circuit 25 based on the output of the position sensor 26, and corrects the position of the drive system 23. -35- 200527907 (32) In each of the above embodiments, the NTSC method is used to describe the video signal supplied from the CCD camera, but it is not limited to this. For example, the PAL (Phase Alter nation by Line) method can be used for processing. . In addition, if the video signal decoder unit is replaced, it can correspond to other formats such as the IEEE 1 3 94 'camera chain. At this time, the function of the video signal decoder circuit can also be integrated into the FPGA 42. In addition, the focus evaluation frame or focus position of each object material image obtained by performing the autofocus control of the present invention may be displayed on the monitor 9 together with the sample image (Fig. 1). At this time, it can be set to convert this information into NTSC, etc. and display the encoder circuit used. This encoder circuit is one of the board mounting components of the autofocus control device having the configuration described in the fifth embodiment. [Brief Description of the Drawings] Fig. 1 is a schematic configuration diagram showing an image processing apparatus 1 according to a first embodiment of the present invention. FIG. 2 is a block diagram illustrating a configuration of the controller 7. FIG. 3 is a flowchart illustrating the operation of the image processing device 1. Fig. 4 is a flowchart showing another example of the operation of the image processing apparatus 1. Fig. 5 shows an example of a focus curve explaining a function of the present invention; FC 1 shows an example when performing image smoothing processing and highly normalized processing of focus evaluation; FC 2 shows only image smoothing processing Example; FC3 is a conventional example. • 36- 200527907 (33) Fig. 6 is a diagram illustrating a method of calculating a focus position by making a close curve in the vicinity of the focus evaluation 値 maximum 値. Fig. 7 is a diagram showing the relationship between the instruction voltage to the lens driving unit 4 and the real movement voltage of the lens. Fig. 8 is a diagram illustrating a method of combining day images of processing samples in parallel and a method of calculating a focal evaluation value. Fig. 9 is a diagram showing a second embodiment of the present invention; a diagram explaining a method of dividing a screen into a plurality of numbers and detecting a focus position in each of the divided areas. Fig. 10 is a flowchart showing a process according to a third embodiment of the present invention. Fig. 11 is a diagram showing a memory structure applicable to the third embodiment of the present invention. Fig. 12 is a flowchart illustrating an all-focus image acquisition process. Fig. 13 is a diagram showing a fourth embodiment of the present invention; and a diagram explaining a method of obtaining a three-dimensional picture by combining the focal positions of the sample picture toward the focus axis direction. Fig. 14 is a flowchart showing a method for synthesizing the above-mentioned three-dimensional portrait. Fig. 15 is a functional block diagram showing a first configuration example of an autofocus control device according to a fifth embodiment of the present invention. Fig. 6 is a functional block diagram showing a second configuration example of an autofocus control device according to a fifth embodiment of the present invention. Fig. 17 is a functional block diagram showing a third configuration example of the automatic focus control -37-200527907 (34) manufacturing apparatus according to the fifth embodiment of the present invention. Fig. 18 is a functional block diagram showing a fourth configuration example of an autofocus control device according to a fifth embodiment of the present invention. Fig. 19 is a functional block diagram showing a fifth configuration example of the autofocus control device according to the fifth embodiment of the present invention. 20A to 20B are block diagrams showing modifications of the configuration of the drive system of the image processing apparatus 1. Fig. 21 is an example of a focus curve showing the relationship between the lens-workpiece distance (focus position) and the focus evaluation angle. Fig. 22 is a diagram illustrating a disadvantage of the prior art. [Description of main component symbols] 1 Image processing device 2 Measuring table 3 Objective lens 4 Lens driving unit 5 Lens barrel 6 CCD camera 7 Controller 8 Driver 9 Monitor 10 Illumination light source 1 1 Focus (AF) control unit Π A smoothing processing circuit -38- 200527907 (35) 11B average brightness calculation circuit 1 1 C evaluation / calculation circuit 1 1 D focus position calculation circuit 13 A / D converter 14 memory 1 5 A first memory section 1 5 B second memory Part 16 Input device 17 D / A converter 20 Pulse motor 2 1 Driver 22 Pulse motor controller (PMC) 2 3 Drive system 2 4 Driver 25 Output indicating circuit 2 6 Position sensor 2 7 Combination circuit 3 1, 3 2 3 3 3 4 3 5 Focus control device 4 1 Video signal decoder

42 FPGA 43 場記憶體42 FPGA 43 Field Memory

44 CPU44 CPU

4 5 ROM/ RAM 46 PMC -39- 200527907 (36) 47 I/F電路 48 AD/DA 電路 5〇 配線基板 51 電源監視電路 5 2 FPGA 初期化 ROM . 53A、53B、53C、53D 連接器4 5 ROM / RAM 46 PMC -39- 200527907 (36) 47 I / F circuit 48 AD / DA circuit 5 〇 Wiring board 51 Power monitor circuit 5 2 FPGA initializing ROM. 53A, 53B, 53C, 53D connector

-40--40-

Claims (1)

200527907 (1) 十、申請專利範圍 1 . 一種自動聚焦控制方法,具有: 在透鏡-拍照體間距離不相同的複數聚焦位置分別取 得上述拍照體的畫像資料的晝像取得工程; 依據上述所取得的各畫像資料,上述複數聚焦位置別 地分別算出焦點評價値的評價値算出工程; 將上述焦點評價値成爲最大的聚焦位置算出作爲焦點 位置的焦點位置算出工程;以及 朝上述算出的焦點位置將上述透鏡對於上述指照體相 對移動的移動工程的自動聚焦控制方法,其特徵爲: 在上述畫像取得工程與上述評價値算出工程之間,具 有平滑化處理上述所取得的晝像資料的畫像平滑化工程; 依據上述平滑化處理的畫像資料來算出上述焦點評價 値。 2 ·如申請專利範圍第1項所述的自動聚焦控制方法, 其中, 在上述畫像平滑化工程之前或後,具有算出上述所取 得的畫像資料的畫面平均亮度的平均亮度算出工程; 作爲上述焦點評價値使用依上述所算出的畫面平均亮 度的除算値。 3 ·如申請專利範圍第1項所述的自動聚焦控制方法, 其中,在上述評價値算出工程,依據上述所取得的橐像資 料的鄰接像素間的亮度資料差來算出上述焦點評價値。 4 .如申請專利範圍第1項所述的自動聚焦控制方法, -41 - 200527907 (2) 其中,在上述焦點位置算出工程依據上述算出的焦點評價 値的最大値及其近旁的複數焦點評價値來算出上述焦點位 置。 5 ·如申請專利範圍第1項所述的自動聚焦控制方法, 其中,在上述畫像取得工程,一面連續地變更上述透鏡一 拍照體間距離’ 一面在上述複數聚焦位置分別取得上述畫 像資料。 6.如申請專利範圍第1項所述的自動聚焦控制方法, 其中,並聯地進行上述畫像取得工程與上述評價値算出工 程。 7 如申請專利範圍第1項所述的自動聚焦控制方法, 其中,在上述拍照體的照明光源使用紫外線。 8 ·如申請專利範圍第1項所述的自動聚焦控制方法, 其中,將上述所取得的畫像資料分割成複數領域;上述分 割的各領域別地分別算出上述焦點位置。 9 ·如申請專利範圍第8項所述的自動聚焦控制方法, 其中,藉由將上述所分割的各領域的焦點位置的畫像在該 領域間加以合成,取得拍照體的全焦點畫像。 10.如申5P3專利軔圍第8項所述的自動聚焦控制方法 ,其中’藉由將上述所分割的各領域的焦點位置的畫像在 複數聚焦位置間加以合成,取得拍照體的立體畫像。 Π . —種自動聚焦控制方法,具有: 在透鏡-拍照體間距離不相同的複數聚焦位置分別取 得上述拍照體的畫像資料的畫像取得工程; -42- 200527907 (3) 依據上述所取得的各畫像資料,上述複數聚焦位置別 地分別算出焦點評價値的評價値算出工程; 將上述焦點評價値成爲最大的聚焦位置算出作爲焦黑占 位置的焦點位置算出工程;以及 朝上述算出的焦點位置將上述透鏡對於上述指照_相 對移動的移動工程的自動聚焦控制方法,其特徵爲: 具有’平滑化處理上述所取得的畫像資料的畫像平滑 化工程,及算出上述所取得的畫像資料的畫面平均高度的 平均亮度算出工程; 依據上述平滑化處理的畫像資料來算出上述焦點評價 値;同時 作爲上述焦點評價値使用依上述所算出的畫面平均亮 度的除算値。 1 2 ·如申請專利範圍第1 1項所述的自動聚焦控制方法 ’其中,在上述評價値算出工程,依上述所取得的畫像資 料的鄰接像素間的亮度資料差來算出上述焦點評價値。 13·如申請專利範圍第1 1項所述的自動聚焦控制方法 ’其中,在上述焦點位置算出工程依據上述算出的焦點評 價値的最大値及其近旁的複數焦點評價値來算出上述焦點 位置。 1 4.如申請專利範圍第1 1項所述的自動聚焦控制方法 ’其中,在上述畫像取得工程,〜面連續地變更上述透鏡 -拍照體間距離,一面在上述複數聚焦位置分別取得上述 畫像資料。 -43- 200527907 (4) 1 5 ·如申請專利範圍第1 1項所述的自動聚焦控制方法 ,其中,並聯地進行上述畫像取得工程與上述評價値算出 工程。 1 6 ·如申請專利範圍第1 1項所述的自動聚焦控制方法 ,其中,在上述拍照體的照明光源使用紫外線。 1 7 .如申請專利範圍第1 1項所述的自動聚焦控制方法 ,其中’將上述所取得的畫像資料分割成複數領域;上述 分別的各領域別地分別算出上述焦點位置。 1 8 ·如申請專利範圍第1 7項所述的自動聚焦控制方法 ,其中,藉由將上述所分割的各領域的焦點位置的畫像在 該領域間加以合成,取得拍照體的全焦點畫像。 1 9 ·如申請專利範圍第1 7項所述的自動聚焦控制方法 ’其中,藉由將上述所分割的各領域的焦點位置的畫像在 複數聚焦位置間加以合成,取得拍照體的立體畫像。 20· —種自動聚焦控制裝置,具備: 依據在透鏡-拍照體間距離不相同的複數聚焦位置所 取得的各畫像資料,上述複數聚焦位置別地分別算出焦點 評價値的評價値算出手段;及 依據上述算出的焦點評價値的最大値來算出焦點位置 的焦點iu置算出手段的自動聚焦控制裝置,其特徵爲: 具有平滑化處理上述所取得的畫像資料的畫像平滑化 手段; 依據上述平滑化處理的畫像資料來算出上述焦點評價 値0 -44 - 200527907 (5) 21.如申請專利範圍第2 0項所述的自動聚焦控制裝置 ,其中,具有算出上述所取得的畫像資料的畫面平均亮度 的平均亮度算出手段,作爲上述焦點評價値使用依上述所 算出的畫面平均亮度的除算値。 2 2.如申請專利範圍第2 0項所述的自動聚焦控制裝置 ,其中,上述評價値算出手段,是算出上述所取得的畫像 資料的鄰接像素間的亮度資料差的邊緣強調處理手段。 23. 如申請專利範圍第20項所述的自動聚焦控制裝置 ,其中,上述焦點位置算出手段,是依據上述算出的焦點 評價値的最大値及其近旁的複數焦點評價値來算出上述焦 點位置。 24. 如电請專利範圍第20項所述的.自動聚焦控制裝置 ,其中,具備使用上述所取得的各畫像資料,來合成上述 拍照體的全焦點畫像的全焦點畫像合成手段。 2 5 ·如申請專利範圍第2 0項所述的自動聚焦控制裝置 ,其中’具備使用上述所取得的各畫像資料,來合成上述 拍照體的立體畫像的立體畫像的合成手段。 2 6·如申請專利範圍第2 0項所述的自動聚焦控制裝置 ,其中,該自動聚焦控制裝置,是上述評價値算出手段, 及上述焦點位置算出手段,及上述畫像平滑化手段,及算 出上述畫像資料的畫面平均亮度的平均亮度算出手段,作 爲單數或複數元件被安裝於同一基板上的基板安裝體所成 〇 2 7 .如申g靑專利範圍第2 6項所述的自動聚焦控制裝置 -45- 200527907 (6) ,其中,在上述基板上,安裝有控制透鏡一拍照體間距離 調整用的驅動手段的驅動控制用元件。 2 8 ·如申請專利範圍第2 6項所述的自動聚焦控制裝置 ’其中,上述評價値算出手段,及上述畫像平滑化手段, 及上述平均亮度算出手段’以單一 FPGA( Field Programmable gate array )所構成 〇 29· —種畫像處理裝置,具備·· 在透鏡-拍照體間距離不相同的複數聚焦位置分別取 得上述拍照體的畫像資料的畫像取得手段,及依據上述所 取得的各畫像資料’上述複數聚焦位置別地分別算出焦點 評價値的評價値算出手段,及依據上述算出的焦點評價値 的最大値來算出焦點位置的焦點位置算出手段,及朝上述 算出的焦點位置將上述透鏡對於上述拍照體相對移動的驅 動手段的自動聚焦控制裝置,其特徵爲: 具有平滑化處理上述所取得的畫像資料的畫像平滑化 手段;依據上述平滑化處理的畫像資料來算出上述焦點評 價値。 3 0 .如申請專利範圍第2 9項所述的自動聚焦控制裝置 ,其中,具有算出上述所取得的畫像資料的畫面平均亮度 的平均亮度算出手段’作爲上述焦點評價値使用依上述所 算出的畫面平均亮度的除算値。 3 1 .如申請專利範圍桌2 9項所述的自動聚焦控制裝置 ’其中,上述評價値算出手段,是算出上述所取得的畫像 資料的鄰接像素間的亮度資料差的邊緣強調處理手段。 -46- 200527907 (7) 32.如申請專利範圍第29項所述的自動聚焦控制裝置 ,其中,上述焦點位置算出手段,是依據上述算出的焦點 評價値的最大値及其近旁的複數焦點評價値來算出上述焦 點位置。 3 3 .如申請專利範圍第2 9項所述的自動聚焦控制裝置 ,其中,具備使用上述所取得的各畫像資料,來合成上述 拍照體的全焦點畫像的全焦點畫像合成手段。 3 4.如申請專利範圍第29項所述的自動聚焦控制裝置 ,其中,具備使用上述所取得的各畫像資料,來合成上述 拍照體的立體畫像的立體畫像的合成手段。 -47 -200527907 (1) X. Application for patent scope 1. An automatic focus control method, comprising: a daylight image acquisition project for obtaining image data of the above-mentioned photographic body at plural focusing positions with different distances between the lens and the photographic body; For each of the image data, the above-mentioned plural focus positions separately calculate the evaluation of the focus evaluation 値, and the calculation process of the focus; the calculation of the focus position which is the focus position where the focus evaluation 値 becomes the largest; and the calculation of the focus position as the focus position; and The method for the automatic focus control of the lens with respect to the movement process of the relative movement of the illuminating body is characterized in that: between the image acquisition process and the evaluation / calculation process, there is a smoothing process for smoothing the image of the acquired day image data. Engineering; calculating the focus evaluation value based on the smoothed image data. 2 · The automatic focus control method according to item 1 of the scope of patent application, wherein before or after the image smoothing process, there is an average brightness calculation process for calculating the average brightness of the screen of the acquired image data; as the focus The evaluation 値 uses the division of the average screen brightness calculated as described above. 3. The automatic focus control method according to item 1 of the scope of patent application, wherein in the above-mentioned evaluation process, the focus evaluation process is calculated based on the brightness data difference between adjacent pixels of the obtained image data. 4. The automatic focus control method described in item 1 of the scope of the patent application, -41-200527907 (2) wherein the calculation of the focus position at the focus position is based on the calculated focus evaluation 値 maximum 値 and the complex focus evaluation near it 値To calculate the focus position. 5. The automatic focus control method according to item 1 of the scope of patent application, wherein in the image acquisition process, the image data is obtained at the multiple focus positions while continuously changing the lens and the distance between photographic objects'. 6. The automatic focus control method according to item 1 of the scope of patent application, wherein the image acquisition process and the evaluation / calculation process are performed in parallel. 7 The automatic focus control method according to item 1 of the scope of patent application, wherein the illumination light source of the photographic body uses ultraviolet rays. 8. The automatic focus control method according to item 1 of the scope of patent application, wherein the acquired image data is divided into a plurality of fields; and each of the divided fields separately calculates the focus position. 9 · The automatic focus control method according to item 8 of the scope of the patent application, wherein the images of the focus positions of the divided fields are synthesized between the fields to obtain a full-focus image of the photographed body. 10. The automatic focus control method according to item 8 of the application 5P3 patent, wherein 'combining the image of the focus position of each of the divided fields between the multiple focus positions to obtain a three-dimensional image of the photographic body. Π. An automatic focus control method comprising: an image obtaining process for obtaining the image data of the above-mentioned photographic body at plural focusing positions with different distances between the lens and the photographic body; -42- 200527907 (3) According to each of the above obtained For the image data, the above-mentioned plural focus positions are separately calculated for the focus evaluation 値 evaluation and calculation process; the focus position where the focus evaluation 値 becomes the largest is calculated as the focus position calculation position for the focal black position; and the above-mentioned calculated focus position is calculated for the above-mentioned focus position An automatic focus control method of the lens for the above-mentioned finger-relative movement mobile project is characterized by having an image smoothing process for 'smoothing' the image data obtained above, and calculating an average screen height of the image data obtained above The average brightness calculation process is calculated; the focus evaluation value is calculated based on the smoothed image data; at the same time, as the focus evaluation value, a division value of the average screen brightness calculated according to the above is used. 1 2 · The automatic focus control method according to item 11 of the scope of patent application ′, wherein in the above-mentioned evaluation process, the focus evaluation process is calculated based on the brightness data difference between adjacent pixels of the obtained image data. 13. The automatic focus control method according to item 11 of the scope of patent application, wherein the focus position calculation process calculates the focus position based on the maximum value of the focus evaluation value 算出 calculated above and the complex focus evaluation 近 near it. 1 4. The automatic focus control method according to item 11 of the scope of the patent application, wherein in the image acquisition process, the distance between the lens and the photographic body is continuously changed, and the images are obtained at the multiple focus positions. data. -43- 200527907 (4) 1 5 · The automatic focus control method according to item 11 of the scope of patent application, wherein the image acquisition process and the evaluation / calculation process are performed in parallel. 16 · The automatic focus control method according to item 11 of the scope of patent application, wherein ultraviolet light is used as an illumination light source of the photographic body. 17. The automatic focus control method according to item 11 of the scope of patent application, wherein 'the image data obtained above is divided into a plurality of fields; the above-mentioned focus positions are calculated separately for each of the above-mentioned respective fields. 18 · The automatic focus control method according to item 17 of the scope of patent application, wherein the images of the focal position of each of the divided areas are synthesized between the areas to obtain a full-focus portrait of the photographic body. 19 · The automatic focus control method according to item 17 of the scope of the patent application, wherein the three-dimensional image of the photographic body is obtained by synthesizing the images of the focus positions in the divided fields in the above-mentioned multiple focus positions. 20 · An automatic focus control device comprising: each of the image data obtained at a plurality of focus positions having different distances between a lens and a photographic body, and the plurality of focus positions separately calculate focus evaluation (evaluation) calculation means; and An autofocus control device that calculates a focus position based on the calculated maximum focus evaluation value 値 is provided with an image smoothing means for smoothing the acquired image data; and based on the smoothing. The processed image data is used to calculate the above-mentioned focus evaluation 値 0 -44-200527907 (5) 21. The autofocus control device according to item 20 of the patent application scope, wherein it has an average brightness of the screen for calculating the acquired image data Means for calculating the average brightness, as the focus evaluation, use the division of the average brightness of the screen calculated as described above. 2 2. The automatic focus control device according to item 20 of the scope of the patent application, wherein the evaluation and calculation means is an edge emphasis processing means for calculating a difference in luminance data between adjacent pixels of the acquired image data. 23. The automatic focus control device according to item 20 of the scope of patent application, wherein the focus position calculation means is to calculate the focus position based on the calculated maximum value of the focus evaluation 値 and the complex focus evaluation 近 near it. 24. The autofocus control device as described in item 20 of the patent claim, which includes an all-focus image synthesis means for synthesizing an all-focus image of the photographic object using each of the acquired image data. 25. The autofocus control device according to item 20 of the scope of patent application, wherein '' is provided with a means for synthesizing a three-dimensional image of the three-dimensional image of the photographic body using each of the acquired image data. 26. The automatic focus control device according to item 20 of the scope of patent application, wherein the automatic focus control device is the above-mentioned evaluation / calculation means, the above-mentioned focus position calculation means, and the above-mentioned image smoothing means, and calculates The average brightness calculation means for the average brightness of the screen of the above-mentioned image data is formed as a single or plural element mounted on a substrate mounting body on the same substrate. 0 2 7 .Autofocus control as described in item 26 of the patent application scope Device -45- 200527907 (6), wherein a drive control element for controlling a drive means for adjusting a distance between a lens and a photographic body is mounted on the substrate. 2 8 · The automatic focus control device according to item 26 of the scope of patent application, wherein the above-mentioned evaluation / calculation means, the above-mentioned image smoothing means, and the above-mentioned average brightness calculation means are based on a single FPGA (Field Programmable Gate Array) Structure 〇29 · —A kind of image processing device, including: an image obtaining means for obtaining the image data of the above-mentioned photographic body at a plurality of focusing positions with different distances between the lens and the photo-taking body, and the image data obtained based on the above-mentioned ' The plural focus positions separately calculate focus evaluation 焦点 evaluation 値 calculation means, and focus position calculation means to calculate a focus position based on the calculated focus evaluation 値 maximum 値, and the lens is aligned with the lens toward the calculated focus position. The automatic focus control device that is a driving means for the relative movement of the photographic body is characterized by having image smoothing means for smoothing the acquired image data; and calculating the focus evaluation value based on the smoothed image data. 30. The automatic focus control device according to item 29 of the scope of patent application, further comprising an average brightness calculation means for calculating the average brightness of the screen of the acquired image data, as the focus evaluation, using the calculated value as described above. Divide the average screen brightness. 31. The automatic focus control device according to item 9 of the scope of patent application 2, wherein the evaluation / calculation means is an edge emphasis processing means for calculating a luminance data difference between adjacent pixels of the acquired image data. -46- 200527907 (7) 32. The automatic focus control device according to item 29 of the scope of patent application, wherein the focus position calculation means is based on the calculated maximum focus value 値 and the multiple focus evaluations near it.値 to calculate the focus position. 33. The autofocus control device according to item 29 of the scope of patent application, further comprising an all-focus image synthesis means for synthesizing an all-focus image of the photographic object using each of the acquired image data. 34. The autofocus control device according to item 29 of the scope of patent application, further comprising a method for synthesizing a three-dimensional image of the three-dimensional image of the photographed body using the acquired image data. -47-
TW093125567A 2003-08-26 2004-08-26 Autofocus control method, autofocus controller, and image processor TWI245556B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003301918 2003-08-26
JP2004212119A JP4158750B2 (en) 2003-08-26 2004-07-20 Autofocus control method, autofocus control device, and image processing device

Publications (2)

Publication Number Publication Date
TW200527907A true TW200527907A (en) 2005-08-16
TWI245556B TWI245556B (en) 2005-12-11

Family

ID=34315613

Family Applications (1)

Application Number Title Priority Date Filing Date
TW093125567A TWI245556B (en) 2003-08-26 2004-08-26 Autofocus control method, autofocus controller, and image processor

Country Status (4)

Country Link
JP (1) JP4158750B2 (en)
KR (1) KR20060123708A (en)
TW (1) TWI245556B (en)
WO (1) WO2005026802A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257710A (en) * 2020-09-23 2022-03-29 北京小米移动软件有限公司 Optical anti-shake structure and camera module and terminal equipment with same
TWI774950B (en) * 2018-04-23 2022-08-21 日商迪思科股份有限公司 Method for detecting the focal position of laser light

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4419084B2 (en) * 2005-04-15 2010-02-24 ソニー株式会社 Control device and method, program, and camera
JP4419085B2 (en) * 2005-04-15 2010-02-24 ソニー株式会社 Control apparatus and method, and program
JP2007108455A (en) * 2005-10-14 2007-04-26 Fujifilm Corp Automatic focusing controller and control method
JP2008234619A (en) * 2007-02-20 2008-10-02 Toshiba Corp Face authenticating device and face authenticating method
KR101034282B1 (en) 2009-07-31 2011-05-16 한국생산기술연구원 The Method for Controlling Focus in Image Captured from Multi-focus Objects
JP5621325B2 (en) * 2010-05-28 2014-11-12 ソニー株式会社 FOCUS CONTROL DEVICE, FOCUS CONTROL METHOD, LENS DEVICE, FOCUS LENS DRIVING METHOD, AND PROGRAM
SG11201510544QA (en) * 2013-08-09 2016-01-28 Musashi Engineering Inc Focus adjustment method and device therefor
JP6476977B2 (en) * 2015-02-19 2019-03-06 大日本印刷株式会社 Identification device, identification method, and program
JP6750194B2 (en) 2015-06-19 2020-09-02 ソニー株式会社 Medical image processing apparatus, medical image processing method, and medical observation system
KR102640848B1 (en) 2016-03-03 2024-02-28 삼성전자주식회사 Method of inspecting a sample, system for inspecting a sample, and method of inspecting semiconductor devies using the same
WO2018003999A1 (en) 2016-06-30 2018-01-04 株式会社ニコン Imaging apparatus
JP6793053B2 (en) * 2017-02-09 2020-12-02 リコーエレメックス株式会社 Inspection device and focus adjustment support method

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3209761B2 (en) * 1991-09-24 2001-09-17 キヤノン株式会社 Focus adjustment device
JP3029005B2 (en) * 1994-04-14 2000-04-04 ローム株式会社 Stereo vision camera
JP3943610B2 (en) * 1995-06-23 2007-07-11 キヤノン株式会社 Camera and lens unit
JPH09224259A (en) * 1996-02-19 1997-08-26 Sanyo Electric Co Ltd Image synthesizer
JP3610569B2 (en) * 1999-03-23 2005-01-12 株式会社高岳製作所 Active confocal imaging device and three-dimensional measurement method using the same
JP2002048512A (en) * 2000-07-31 2002-02-15 Nikon Corp Position detector, optical instrument, and exposure device
JP2003005088A (en) * 2001-06-22 2003-01-08 Nikon Corp Focusing device for microscope and microscope having the same
JP2003029130A (en) * 2001-07-11 2003-01-29 Sony Corp Optical microscope
JP2003029138A (en) * 2001-07-19 2003-01-29 Olympus Optical Co Ltd Autofocusing method and ultraviolet microscope
JP3666429B2 (en) * 2001-09-03 2005-06-29 コニカミノルタフォトイメージング株式会社 Autofocus device and method, and camera
JP5002100B2 (en) * 2001-09-13 2012-08-15 キヤノン株式会社 Focus position detection method and focus position detection apparatus
JP4053764B2 (en) * 2001-11-22 2008-02-27 コニカミノルタオプト株式会社 Subject extraction device and photographing device
US20030118245A1 (en) * 2001-12-21 2003-06-26 Leonid Yaroslavsky Automatic focusing of an imaging system
JP2003264721A (en) * 2002-03-11 2003-09-19 Fuji Photo Film Co Ltd Imaging apparatus
JP2004101240A (en) * 2002-09-05 2004-04-02 Mitsui Eng & Shipbuild Co Ltd Stacked belt ring inspection method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI774950B (en) * 2018-04-23 2022-08-21 日商迪思科股份有限公司 Method for detecting the focal position of laser light
CN114257710A (en) * 2020-09-23 2022-03-29 北京小米移动软件有限公司 Optical anti-shake structure and camera module and terminal equipment with same
CN114257710B (en) * 2020-09-23 2024-02-20 北京小米移动软件有限公司 Optical anti-shake structure and camera module and terminal equipment with same

Also Published As

Publication number Publication date
JP4158750B2 (en) 2008-10-01
WO2005026802A1 (en) 2005-03-24
KR20060123708A (en) 2006-12-04
TWI245556B (en) 2005-12-11
WO2005026802B1 (en) 2005-05-26
JP2005099736A (en) 2005-04-14

Similar Documents

Publication Publication Date Title
US10101572B2 (en) Variable focal length lens system with multi-level extended depth of field image processing
US9106837B2 (en) Image capturing device and image capturing method
JP6061816B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
TWI245556B (en) Autofocus control method, autofocus controller, and image processor
CN110300255B (en) Information processing device, information processing method, program, and vision measuring device
JP2010226709A (en) Subject tracking apparatus and imaging apparatus
JPS6398615A (en) Automatic focus adjusting method
US10356384B2 (en) Image processing apparatus, image capturing apparatus, and storage medium for storing image processing program
JP2009151254A (en) Photographing device and focus detector
JP2011229008A (en) Image capturing apparatus and program
JP2014035516A (en) Image pickup device and control method thereof
WO2018042786A1 (en) Image processing method, image processing device, and imaging device
US20070187571A1 (en) Autofocus control method, autofocus control apparatus and image processing apparatus
US20160275657A1 (en) Imaging apparatus, image processing apparatus and method of processing image
JP2013246052A (en) Distance measuring apparatus
JP2016200629A (en) Image pickup apparatus, and control method, and program for the same
JP2018148383A (en) Imaging apparatus and imaging unit
JP5996462B2 (en) Image processing apparatus, microscope system, and image processing method
JP5900049B2 (en) Depth of field expansion system and depth of field expansion method
CN1287588C (en) Method for high resolution incremental imaging
JP4656706B2 (en) Imaging device and focal length conversion device
JP2018124523A (en) High magnification electronic binoculars
JP4409069B2 (en) Imaging apparatus and imaging condition calculation apparatus
JP2006222903A (en) Imaging apparatus
JP2020134399A (en) Image processing apparatus, imaging apparatus, image processing method, program and storage medium

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees