Wafer surface image processing method, device, equipment and medium

By performing background brightness uniformity correction, Gaussian filtering, gray value linear transformation and histogram equalization processing on the wafer surface image, the problem of difficulty in detecting dark defects in low reflectivity wafers in the existing technology is solved, and an efficient Automated inspection reduces the need for manual inspection.

CN118747751APending Publication Date: 2024-10-08SHANGHAI YUWEI SEMICON TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410967258.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

It is difficult to effectively detect dark defects in low-reflectivity wafers with existing technology. The low contrast of automated optical inspection methods makes detection difficult, while manual inspection is time-consuming and has a high miss detection rate.

Method used

The wafer surface image processing method is adopted, including obtaining the original grayscale image under dark field, performing background brightness uniformity correction, Gaussian filtering, grayscale value linear transformation, histogram equalization and frequency domain filtering, enhancing contrast and denoising, improving Detection accuracy.

Benefits of technology

No manual inspection is required, which significantly improves the detection efficiency of dark defects, reduces labor consumption and missed detection rate, and enhances detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747751A_ABST
    Figure CN118747751A_ABST
Patent Text Reader

Abstract

The invention relates to the field of semiconductor processing, and provides a wafer surface image processing method, device, equipment and medium, and the method comprises the steps: S1, obtaining an original grayscale image containing a wafer surface in a dark field, and generating an original background image; s2, performing background brightness uniformity correction on the original grayscale image by using frequency domain noise reduction to obtain a first grayscale image; s3, performing convolution processing on the first grayscale image by using Gaussian filtering to obtain a second grayscale image; s4, based on gray values of pixel points in the second gray image, performing gain processing on the original background image by using gray value linear transformation to obtain a third gray image; s5, performing image enhancement processing on the third grayscale image by using histogram equalization to obtain a fourth grayscale image; and S6, performing frequency domain filtering on the fourth grayscale image to obtain an output image of which the high-frequency noise is filtered out directionally.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of semiconductor processing technology, and in particular to a wafer surface image processing method, device, equipment and medium. Background Art

[0002] Machine vision uses computers, industrial cameras, detection light sources and other related equipment. At present, there are two methods for detecting dark defects such as low-reflectivity wafer imaging contrast, low foreign matter and poor color. The first existing technology is to use automated optical inspection (Automatic Optical Inspection, AOI) equipment. The image processing method is to first denoise the image, then linearly change the image to amplify the defects, find the area with grayscale value differences, and thus segment the defects and background; the second existing technology is manual inspection using light emitting diode (Light Emitting Diode, LED) lights, under a specific background color, from a specific angle, through the light band area of ​​the light source to observe the low contrast foreign matter and poor color of the complementary metal oxide semiconductor (Complementary Metal-Oxide-Semiconductor, COMS) wafer / optical sheet imaging. Dark defects.

[0003] For the first prior art, since the contrast of COMS wafer dark defects is low and the grayscale value difference with the background is small, it is difficult for AOI to find the area with grayscale value difference using the above image processing method, and this defect cannot be detected; for the second prior art, this defect is difficult to detect visually with the naked eye. In order to detect this appearance defect, a lot of manpower is required for special defect inspection, and the manual missed detection rate is very high. Therefore, a new wafer surface image processing method, device, equipment and medium are urgently needed to improve the above problems. Summary of the invention

[0004] The object of the present invention is to provide a wafer surface image processing method, device, equipment and medium, which is used to enhance the wafer surface image detected under dark field to improve the detection accuracy.

[0005] In a first aspect, the present invention provides a wafer surface image processing method, comprising: S1, acquiring an original grayscale image containing a wafer surface under a dark field to generate an original background image; S2, using frequency domain noise reduction to perform background brightness uniformity correction on the original grayscale image to obtain a first grayscale image; S3, using Gaussian filtering to perform convolution processing on the first grayscale image to obtain a second grayscale image; S4, based on the grayscale values ​​of pixels in the second grayscale image, using grayscale value linear transformation to perform gain processing on the original background image to obtain a third grayscale image; S5, using histogram equalization to perform image enhancement processing on the third grayscale image to obtain a fourth grayscale image; S6, using frequency domain filtering on the fourth grayscale image to obtain an output image after directionally filtering out high-frequency noise.

[0006] Optionally, S6 includes: determining at least one target direction, processing the fourth grayscale image using a directional filter in the frequency domain space; and filtering out high-frequency noise in the target direction to reduce moiré noise in the output image.

[0007] Optionally, the target direction includes at least one of a horizontal direction and a vertical direction; the horizontal direction is the direction in which pixels in the fourth grayscale image are arranged horizontally, and the vertical direction is the direction in which pixels in the fourth grayscale image are arranged vertically.

[0008] Optionally, S6 further includes: acquiring M target directions, and based on the M target directions, processing the fourth grayscale image using a directional filter to generate M reference images, where M is an integer greater than 1;

[0009] The signal-to-noise ratio and the structural similarity index of each reference image are calculated, and a reference image whose signal-to-noise ratio value is higher than a preset signal-to-noise ratio and whose structural similarity index is within a preset index range is selected as an output image.

[0010] Optionally, S2 includes: performing Fourier transform on the original grayscale image to convert the original grayscale image from image space to frequency domain space; analyzing and processing the frequency spectrum of the original grayscale image in the frequency domain space to extract low-frequency information; and performing inverse Fourier transform on the low-frequency information to obtain the first grayscale image.

[0011] Optionally, S3 includes: S31, determining the first grayscale pixel and the neighborhood size in the first grayscale image, and obtaining the grayscale values ​​of the neighborhood pixels; S32, calculating a weighted average value based on the grayscale values ​​of the neighborhood pixels; assigning the weighted average value to the grayscale value of the first grayscale pixel; S33, replacing the first grayscale pixel, repeating S31 and S32, so that the first grayscale pixel traverses the first grayscale image to obtain the second grayscale image.

[0012] Optionally, the S32 includes: obtaining the gray value matrix of the neighborhood pixels and a Gaussian kernel of size N*N, where N is a positive integer; multiplying the gray value matrix by the values ​​of corresponding elements of the Gaussian kernel, and then calculating the sum of the products; and dividing the sum of the products by the sum of all elements in the Gaussian kernel to obtain the weighted average.

[0013] Optionally, S4 includes: performing a linear change on the original background image to amplify the difference characteristics between the defective portion in the original grayscale image and the non-defective portion in the original background image, satisfying:

[0014] g(x1)=a1*[h(x1)-b1]+b1

[0015] Among them, g(x1) represents the grayscale value of the third grayscale pixel in the third grayscale image, a1 represents the gain multiplier coefficient, b1 represents the grayscale value of the second grayscale pixel in the second grayscale image, and h(x1) represents the grayscale value of the original background pixel in the original background image; the position of the original background pixel in the original background image is the same as the position of the third grayscale pixel in the third grayscale image.

[0016] Optionally, performing image enhancement processing on the third grayscale image by using histogram equalization in S5 includes calculating an over-enhancement degree g of a target image block in the fourth grayscale image, satisfying:

[0017]

[0018] Among them, p(m) is the percentage of pixels in the target image block whose equalization mapping value is m; the method for obtaining the equalization mapping value includes: S51, performing local histogram equalization processing on each image block in the third grayscale image, and obtaining the grayscale mapping function of each of the target image blocks in the fourth grayscale image; S52, for each fourth grayscale pixel point in each of the target image blocks, substituting the initial grayscale value of the fourth grayscale pixel point into the grayscale mapping function corresponding to the target image block where it is located, to obtain the equalization mapping value of the fourth grayscale pixel point.

[0019] In a second aspect, the present invention provides a wafer surface image processing device, which is used for the method described in any one of the first aspects, including: an image acquisition unit, which is used to obtain an original grayscale image containing the wafer surface under a dark field; a processing unit, which is used to generate an original background image based on the original grayscale image; using frequency domain noise reduction to correct the background brightness uniformity of the original grayscale image to obtain a first grayscale image; using Gaussian filtering to convolve the first grayscale image to obtain a second grayscale image; based on the grayscale values ​​of pixels in the second grayscale image, using grayscale value linear transformation to gain the original background image to obtain a third grayscale image; using histogram equalization to perform image enhancement processing on the third grayscale image to obtain a fourth grayscale image; using frequency domain filtering to the fourth grayscale image to obtain an output image with high-frequency noise directionally filtered out.

[0020] In a third aspect, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a program executable on the processor, and when the program is executed by the processor, the electronic device implements any one of the methods described in the first aspect.

[0021] In a fourth aspect, the present invention provides a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed, the method described in any one of the first aspects is implemented.

[0022] The beneficial effects of the method of the present invention are as follows: the method of the present invention does not require manual inspection, and can obtain a denoised and contrast-enhanced output image by acquiring the original background image and the original grayscale image for background brightness uniformity correction, Gaussian filtering, grayscale value linear transformation, histogram equalization, and frequency domain filtering, so that dark defects that were originally difficult to detect by AOI can be clearly presented, thereby improving the defect detection efficiency and avoiding a large amount of manpower consumption and a high missed detection rate in traditional manual detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic flow chart of a wafer surface image processing method provided by the present invention;

[0024] Figure 2 A schematic structural diagram of a wafer surface image processing device provided by the present invention;

[0025] Figure 3 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.

[0027] In view of the problems existing in the existing technology, such as Figure 1 As shown, the first embodiment of the present invention provides a wafer surface image processing method, including: S1, obtaining an original grayscale image containing a wafer surface under a dark field to generate an original background image; S2, using frequency domain noise reduction to perform background brightness uniformity correction on the original grayscale image to obtain a first grayscale image; S3, using Gaussian filtering to perform convolution processing on the first grayscale image to obtain a second grayscale image; S4, based on the grayscale values ​​of pixels in the second grayscale image, using grayscale value linear transformation to perform gain processing on the original background image to obtain a third grayscale image; S5, using histogram equalization to perform image enhancement processing on the third grayscale image to obtain a fourth grayscale image; S6, using frequency domain filtering on the fourth grayscale image to obtain an output image after directionally filtering out high-frequency noise.

[0028] Specifically, the original grayscale image in S1 is set to the image actually taken of the wafer under the dark field. The original background image is used to represent an image taken of a non-defective background on the wafer under a dark field, such as a defect-free wafer image. It is worth noting that when inspecting the same wafer, the background in the original background image is consistent with the background in the original grayscale image, so that the non-defect features referenced during wafer inspection are consistent. The method provided in this embodiment does not require manual inspection. By obtaining the original background image and the original grayscale image for background brightness uniformity correction, Gaussian filtering, grayscale value linear transformation, histogram equalization, and frequency domain filtering, a denoised and contrast-enhanced output image can be obtained, thereby improving the detection accuracy.

[0029] In some embodiments, S2 includes: performing Fourier transform on the original grayscale image to convert the original grayscale image from image space to frequency domain space; analyzing and processing the frequency spectrum of the original grayscale image in the frequency domain space to extract low-frequency information; and performing inverse Fourier transform on the low-frequency information to obtain the first grayscale image.

[0030] Specifically, the original grayscale image is converted from the image space to the frequency domain space through a two-dimensional Fourier transform, such as a discrete Fourier transform (DFT) or a fast Fourier transform (FFT). The low-frequency part near the center of the spectrum is used to characterize the overall brightness of the original grayscale image and the slowly changing background information, while the high-frequency part at the edge is used to characterize the details and noise of the image. The extracted low-frequency information is subjected to an inverse Fourier transform again, that is, a two-dimensional inverse discrete Fourier transform (IDFT) or an inverse fast Fourier transform (IFFT) is performed to convert the image from the frequency domain space back to the image space. The first grayscale image thus obtained has a more uniform background brightness because the high-frequency noise is removed and only the low-frequency part reflecting the overall brightness of the background is retained.

[0031] In some embodiments, the S3 includes: S31, determining the first grayscale pixel and the neighborhood size in the first grayscale image, and obtaining the grayscale value of the neighborhood pixel; S32, calculating a weighted average value based on the grayscale values ​​of the neighborhood pixel; assigning the weighted average value to the grayscale value of the first grayscale pixel; S33, replacing the first grayscale pixel, repeating S31 and S32, so that the first grayscale pixel traverses the first grayscale image to obtain the second grayscale image.

[0032] Specifically, S31 includes: in the first grayscale image, firstly select a first grayscale pixel point as a target pixel point, which can be any point in the image, and determine a neighborhood size, such as 3x3, 5x5 or larger, where the neighborhood is a rectangular area centered on the first grayscale pixel point.

[0033] In another specific embodiment, S32 includes: obtaining the grayscale values ​​of all pixels in the neighborhood of the first grayscale pixel. Calculating the weighted average of the grayscale values ​​of these pixels according to a preset weight allocation strategy. The weight allocation strategy includes at least one of Gaussian filtering, mean filtering and bilateral filtering. The calculation of the weighted average is intended to integrate the grayscale information in the neighborhood, reduce local grayscale mutations, and improve background consistency.

[0034] In another specific embodiment, S32 also includes: replacing the original grayscale value of the first grayscale pixel with the weighted average value calculated above, so that the grayscale value of the replaced first grayscale pixel is closer to the average grayscale of other pixels in its neighborhood, thereby achieving smoothing and brightness uniformity of the local background.

[0035] In another specific embodiment, S33 includes: replacing the first grayscale pixel, that is, selecting the next pixel to be processed, and repeating the process of S31-S32 until every pixel in the first grayscale image is traversed. In this way, it is possible to implement pixel-by-pixel local brightness adjustment based on the first grayscale image, further improve the uniformity of the background in the second grayscale image, and also retain the edge and detail information of the image. The most suitable filter and weighting strategy can be selected according to the actual situation.

[0036] In some embodiments, S32 includes: obtaining the gray value matrix of the neighborhood pixels and a Gaussian kernel of size N*N, where N is a positive integer; multiplying the gray value matrix by the values ​​of the corresponding elements of the Gaussian kernel, and then calculating the sum of the products; and dividing the sum of the products by the sum of all elements in the Gaussian kernel to obtain the weighted average.

[0037] Specifically, when constructing the Gaussian kernel of size N*N, a Gaussian kernel matrix of the same size of N*N is generated according to a preset standard deviation σ. Exemplarily, N is 5, 7 or 9. Each element value of the Gaussian kernel matrix is ​​calculated by a two-dimensional Gaussian function, and the element value decays exponentially as the distance from the center point increases, and the element value at the center point of the Gaussian kernel matrix is ​​the largest. In other embodiments, the gray value matrix in the neighborhood of the target pixel is convolved with the constructed Gaussian kernel, that is, each element in the gray value matrix is ​​multiplied by its corresponding Gaussian kernel element, and then the sum result is calculated based on all products. The sum result is divided by the sum of all elements in the Gaussian kernel matrix, and the result obtained is the new gray value of the target pixel, that is, the weighted average. The weighted average represents the weighted integration result of the gray values ​​of all pixels in the neighborhood of the target pixel, where the weight coefficient is dynamically determined based on the distribution characteristics of the Gaussian function. This embodiment not only takes into account the information of all pixels in the neighborhood, but also fully reflects the characteristic of the Gaussian function that assigns higher weights to adjacent pixels and lower weights to distant pixels, thereby effectively achieving smoothing and noise suppression of the grayscale value of the target pixel while retaining important details and edge information of the image.

[0038] In some embodiments, S4 includes: performing a linear change on the original background image to amplify the difference characteristics between the defective portion in the original grayscale image and the non-defective portion in the original background image, satisfying:

[0039] g(x1)=a1*[h(x1)-b1]+b1

[0040] Among them, g(x1) represents the grayscale value of the third grayscale image, a1 represents the gain multiplier coefficient, b1 represents the grayscale value of the second grayscale pixel in the second grayscale image, and h(x1) represents the grayscale value of the original background pixel in the original background image; the position of the original background pixel in the original background image is the same as the position of the third grayscale pixel in the third grayscale image.

[0041] In some specific embodiments, the first grayscale image, the second grayscale image, the three grayscale images and the original background image have the same size and resolution; the position of the first grayscale pixel in the first grayscale image, the position of the second grayscale pixel in the second grayscale image, the position of the original background pixel in the original background image and the position of the third grayscale pixel in the third grayscale image are the same.

[0042] In some embodiments, the performing of image enhancement processing on the third grayscale image by using histogram equalization in S5 includes calculating an over-enhancement degree g of the target image block in the fourth grayscale image, satisfying:

[0043]

[0044] Wherein, p(m) is the percentage of pixels in the target image block whose equalization mapping value is m.

[0045] In some embodiments, the method for obtaining the equalization mapping value includes S51, performing local histogram equalization processing on each image block in the third grayscale image, and obtaining the grayscale mapping function of each target image block in the fourth grayscale image; S52, for each fourth grayscale pixel point in each of the target image blocks, substituting the initial grayscale value of the fourth grayscale pixel point into the grayscale mapping function corresponding to the target image block where it is located, and obtaining the equalization mapping value of the fourth grayscale pixel point.

[0046] It is worth noting that this embodiment can effectively expand the image contrast through histogram equalization, especially for the situation of insufficient contrast in local areas, by redistributing the probability density of pixel gray values, so that the histogram of the output image is close to uniform distribution, thereby achieving image enhancement.

[0047] In some embodiments, the method further includes: S53, taking the coordinates of the third grayscale pixel point as the mean, determining the variance according to the over-enhancement degree of the target image block to which the third grayscale pixel point belongs to construct a two-dimensional Gaussian distribution function.

[0048] Specifically, in S53, the coordinates of the third grayscale pixel point, i.e., the current target pixel point, are used as the mean of the two-dimensional Gaussian distribution function, which means that the peak of the Gaussian distribution is located at the position of the current target pixel point, so this point has the highest weighted value. In the neighborhood, the mapping value weights of other pixels closer to the current target pixel point are also higher, while the weights of pixels farther away are lower. This approach helps to maintain the characteristics of local equalization processing while smoothing the image, and prevents detail loss caused by over-smoothing.

[0049] It is worth noting that the Gaussian distribution function is a bell-shaped curve that reaches its maximum value at the mean and then gradually decreases as the distance from the mean increases. In image processing, this is done to allow the target pixel itself to dominate the smoothing process, that is, its equalization mapping value will not be too significantly affected by the neighboring pixels, maintaining its original equalization effect.

[0050] It should be understood that the variance determines the diffusion range of the Gaussian distribution, and a larger variance means that more adjacent pixels will affect the equalized mapping value of the target pixel. The two-dimensional Gaussian distribution function is used to perform weighted fusion on the equalized mapping values ​​of the target pixel and its neighborhood, thereby achieving a smooth transition, avoiding the boundary effect caused by local histogram equalization, and improving image quality.

[0051] In some embodiments, S6 includes: determining at least one target direction, processing the fourth grayscale image using a directional filter in the frequency domain space; and filtering out high-frequency noise in the target direction to reduce moiré noise in the output image.

[0052] In some embodiments, the target direction includes at least one of a horizontal direction and a vertical direction; the horizontal direction is the direction in which the pixels in the fourth grayscale image are arranged horizontally, and the vertical direction is the direction in which the pixels in the fourth grayscale image are arranged vertically. In some examples, S6 includes: processing the fourth grayscale image using a directional filter to directionally filter out high-frequency noise in the horizontal and vertical directions to reduce moiré noise in the output image.

[0053] Specifically, the directional filter includes a directional median filter, a guided filter and a Laplacian pyramid filter, which can identify and distinguish different directional features in the image. It is worth noting that the moiré noise is a periodic interference pattern formed when the spatial frequency of the image sampling, scanning or display device is close to the spatial frequency of the image texture.

[0054] In some embodiments, S6 also includes: obtaining M target directions, and based on the M target directions, using a directional filter to process the fourth grayscale image to generate M reference images, where M is an integer greater than 1; calculating the signal-to-noise ratio and structural similarity index of each of the reference images, and selecting a reference image whose signal-to-noise ratio is higher than a preset signal-to-noise ratio and whose structural similarity index is within a preset index range as an output image.

[0055] In some examples, the preset signal-to-noise ratio is set to 20 dB, and the preset index range is set to [0.8, 1]. In other examples, the preset signal-to-noise ratio is set to 30 dB, and the preset index range is set to [0.9, 1]. In still other examples, M is 2, 3, or 4.

[0056] like Figure 2 As shown, the second embodiment provides a wafer surface image processing device 10, which is used for the method described in any one of the above embodiments, including: an image acquisition unit 12, used to obtain an original grayscale image containing the wafer surface under a dark field; a processing unit 11, used to generate an original background image based on the original grayscale image; using frequency domain noise reduction to perform background brightness uniformity correction on the original grayscale image to obtain a first grayscale image; using Gaussian filtering to perform convolution processing on the first grayscale image to obtain a second grayscale image; based on the grayscale values ​​of pixels in the second grayscale image, using grayscale value linear transformation to perform gain processing on the original background image to obtain a third grayscale image; using histogram equalization to perform image enhancement processing on the third grayscale image to obtain a fourth grayscale image; using frequency domain filtering on the fourth grayscale image to obtain an output image with high-frequency noise directionally filtered out.

[0057] Specifically, the image acquisition unit is configured as an image sensor. The processing unit is configured as a processor. Exemplarily, the image sensor is configured as a complementary metal oxide semiconductor sensor (CMOS) or a charge coupled device sensor (CCD).

[0058] like Figure 3 As shown, the third embodiment provides an electronic device, including a memory 22 and a processor 21, wherein the memory 22 stores a program that can be executed on the processor 21, and when the program is executed by the processor 21, the electronic device 20 implements any one of the methods in the above embodiments.

[0059] In a possible embodiment, the electronic device 20 further includes: an output interface 23 for outputting results; a communication interface 24 for communicating and transmitting signals; and an antenna 25 for transmitting or receiving signals.

[0060] It should be noted that the processor 21 in this embodiment can be an image processing chip or an integrated circuit chip, which has the ability to process image signals. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit in the processor or the instruction in the form of software. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices. The methods, steps and logic block diagrams disclosed in this embodiment can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in this embodiment can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined to perform. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0061] It can be understood that the memory 22 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0062] A fourth embodiment provides a readable storage medium, wherein a program is stored in the readable storage medium. When the program is executed, the method described in any one of the above embodiments is implemented.

[0063] It is worth noting that if the method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.

[0064] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.

Claims

1. A wafer surface image processing method, characterized in that: include: S1, acquiring an original grayscale image containing the wafer surface under dark field to generate an original background image; S2, performing background brightness uniformity correction on the original grayscale image using frequency domain noise reduction to obtain a first grayscale image; S3, performing convolution processing on the first grayscale image using Gaussian filtering to obtain a second grayscale image; S4, based on the grayscale values ​​of the pixels in the second grayscale image, using grayscale value linear transformation to perform gain processing on the original background image to obtain a third grayscale image; S5, performing image enhancement processing on the third grayscale image using histogram equalization to obtain a fourth grayscale image; S6, applying frequency domain filtering to the fourth grayscale image to obtain an output image after directionally filtering out high-frequency noise.

2. The method according to claim 1, characterized in that The S6 includes: At least one target direction is determined, and the fourth grayscale image is processed using a directional filter in a frequency domain space; and high-frequency noise in the target direction is filtered out to reduce moiré noise in the output image.

3. The method according to claim 2, characterized in that The target direction includes at least one of a horizontal direction and a vertical direction; the horizontal direction is a direction in which pixels in the fourth grayscale image are arranged horizontally, and the vertical direction is a direction in which pixels in the fourth grayscale image are arranged vertically.

4. The method according to claim 2, characterized in that: S6 also includes: acquiring M target directions, and based on the M target directions, processing the fourth grayscale image using a directional filter to generate M reference images, where M is an integer greater than 1; The signal-to-noise ratio and the structural similarity index of each reference image are calculated, and a reference image whose signal-to-noise ratio value is higher than a preset signal-to-noise ratio and whose structural similarity index is within a preset index range is selected as an output image.

5. The method according to claim 1, characterized in that The S2 includes: Performing Fourier transformation on the original grayscale image so as to convert the original grayscale image from image space to frequency domain space; Analyzing and processing the frequency spectrum of the original grayscale image in the frequency domain space to extract low-frequency information; Perform an inverse Fourier transform on the low-frequency information to obtain the first grayscale image.

6. The method according to claim 1, characterized in that The S3 includes: S31, determining a first grayscale pixel point and a neighborhood size in the first grayscale image, and obtaining a grayscale value of the neighborhood pixel point; S32, calculating a weighted average value according to the grayscale values ​​of the neighborhood pixels; and assigning the weighted average value to the grayscale value of the first grayscale pixel; S33, replacing the first grayscale pixel point, and repeating S31 and S32, so that the first grayscale pixel point traverses the first grayscale image to obtain the second grayscale image.

7. The method according to claim 6, characterized in that The S32 includes: Obtaining a grayscale value matrix of the neighborhood pixels and a Gaussian kernel of size N*N, where N is a positive integer; Multiplying the gray value matrix by the values ​​of corresponding elements of the Gaussian kernel, and then calculating the sum of the products; The weighted average value is obtained by dividing the sum of the products by the sum of all elements in the Gaussian kernel.

8. The method according to claim 6, characterized in that The S4 includes: The original background image is linearly changed to amplify the difference characteristics between the defective part in the original grayscale image and the non-defective part in the original background image, satisfying: g(x1)=a1*[h(x1)-b1]+b1 Among them, g(x1) represents the grayscale value of the third grayscale pixel in the third grayscale image, a1 represents the gain multiplier coefficient, b1 represents the grayscale value of the second grayscale pixel in the second grayscale image, and h(x1) represents the grayscale value of the original background pixel in the original background image; the position of the original background pixel in the original background image is the same as the position of the third grayscale pixel in the third grayscale image.

9. The method according to claim 1, characterized in that: The use of histogram equalization to perform image enhancement processing on the third grayscale image in S5 includes calculating the over-enhancement degree g of the target image block in the fourth grayscale image, satisfying: Wherein, p(m) is the percentage of pixels in the target image block whose equalization mapping value is m; the method for obtaining the equalization mapping value includes: S51, performing local histogram equalization processing on each image block in the third grayscale image to obtain a grayscale mapping function of each target image block in the fourth grayscale image; S52, for each fourth grayscale pixel in each of the target image blocks, substitute the initial grayscale value of the fourth grayscale pixel into the grayscale mapping function corresponding to the target image block where it is located, to obtain the equalized mapping value of the fourth grayscale pixel.

10. A wafer surface image processing device, used in the method according to any one of claims 1 to 9, characterized in that: include: An image acquisition unit, used for acquiring an original grayscale image including the wafer surface under dark field; A processing unit, configured to generate an original background image based on the original grayscale image; Performing background brightness uniformity correction on the original grayscale image using frequency domain noise reduction to obtain a first grayscale image; Performing convolution processing on the first grayscale image using Gaussian filtering to obtain a second grayscale image; performing gain processing on the original background image using grayscale value linear transformation based on the grayscale values ​​of pixels in the second grayscale image to obtain a third grayscale image; performing image enhancement processing on the third grayscale image using histogram equalization to obtain a fourth grayscale image; Frequency domain filtering is performed on the fourth grayscale image to obtain an output image with high frequency noise directionally filtered out.

11. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory stores a program executable on the processor, and when the program is executed by the processor, the electronic device implements the method according to any one of claims 1 to 9.

12. A readable storage medium, wherein a program is stored in the readable storage medium, characterized in that: When the program is executed, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Wafer quality detection method in ultra-clean environment

    CN119164969A

  • Automatic personnel tracking method and system

    CN119559216A

  • Digital optimization image processing method for cadre personnel archive

    CN121280240A

  • Method and system for improving signal-to-noise ratio of dark field scattering signal of semiconductor wafer

    CN121762570A