Image processing method and device for guiding self-assembly, storage medium and terminal
By performing grayscale histogram analysis and automatic binarization threshold calculation on the guided self-assembly image, the problem of analysis accuracy caused by improper selection of binarization parameters is solved, achieving more efficient and accurate image processing.
Patent Information
- Application Number
- CN202211280482.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-19
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2042-10-19
AI Technical Summary
Existing guided self-assembly image processing methods use crude methods to select binarization threshold parameters, which affects the accuracy of the analysis results.
By performing grayscale histogram analysis on the guided self-assembly image, the image type is determined, and the target inflection point is determined based on the inflection point of the grayscale value-contour area relationship curve. The appropriate binarization threshold parameter is automatically calculated and binarization processing is performed.
It improves the accuracy and efficiency of guided self-assembly image analysis and enables batch processing of images.
Smart Images

Figure CN117952888B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to an image processing method and apparatus, storage medium and terminal for guided self-assembly. Background Technology
[0002] The large number of electron microscope images generated in scientific research cannot be easily processed manually; computer programs are needed for image recognition and data analysis. Existing electron microscope image processing workflows include the steps of "image reading - noise reduction - binarization - contour detection - contour analysis." "Image reading" refers to storing the image as an array of grayscale values for subsequent operations; "noise reduction" involves using filtering methods to eliminate small noise points in the image; "binarization" involves setting the grayscale value of each pixel to 0 (corresponding to black) or 255 (corresponding to white) according to specific rules, representing different phase domains (such as layered, columnar, etc.) or matrix structures respectively; "contour detection" involves finding the contours of phase domain structures from the binary image based on changes in pixel grayscale values; and "contour analysis" involves calculating the centroid, area, and orientation angle of the phase domains based on the contour information.
[0003] By combining mature image processing libraries such as OpenCV, researchers can write relevant programs and perform calculations according to the above process. However, the choice of guided self-assembly image (such as binarization parameters) can have a significant impact on the results. For example, in electron microscope images with low magnification, the domain structure consists of only a dozen or so pixels. When different binarization parameters are used for contour analysis, the results are usually significantly different, with large differences in the number and area of domains, which greatly affects the accuracy of guided self-assembly image processing and analysis results. Summary of the Invention
[0004] The technical problem to be solved by this invention is that the selection of binarization threshold parameter values in existing image processing methods for guided self-assembly is coarse, which affects the accuracy of guided self-assembly image processing analysis results.
[0005] To address the aforementioned technical problems, this invention provides an image processing method for guided self-assembly, comprising:
[0006] A guided self-assembly image is acquired, and the guided self-assembly image is processed to obtain a grayscale image array;
[0007] The grayscale distribution of the grayscale image array is obtained based on the grayscale values of the grayscale image array, and the guided self-assembly image type is determined based on the grayscale distribution of the grayscale image array.
[0008] The grayscale image array is binarized based on the grayscale values within a preset grayscale range to obtain the binarized image corresponding to each grayscale value.
[0009] A grayscale value-contour area relationship curve is obtained based on each grayscale value and its corresponding binarized image. A target inflection point is determined from the inflection points of the grayscale value-contour area relationship curve based on the grayscale distribution. The grayscale image array is then binarized based on the grayscale value corresponding to the target inflection point to obtain a binarized image.
[0010] Preferably, the image processing method for guided self-assembly further includes:
[0011] Contour detection is performed on the binarized image to obtain a contour array. The key dimensions and roundness of all template holes or contact holes in the contour array are obtained. The average value and 3σ value of the key dimensions of all template holes or contact holes in the contour array are obtained respectively. The average value and 3σ value of the roundness of template holes or contact holes in the contour array are also obtained respectively.
[0012] Preferably, processing the guided self-assembly image to obtain a grayscale image array includes:
[0013] The guided self-assembled image is converted into an RGB image array, and the RGB image array is sequentially subjected to grayscale conversion and noise reduction to obtain a grayscale image array.
[0014] Preferably, the step of obtaining the grayscale distribution of the grayscale image array based on the grayscale values of the grayscale image array, and determining the guided self-assembly image type based on the grayscale distribution of the grayscale image array includes:
[0015] Based on the gray values of the grayscale image array, a grayscale histogram of the grayscale image array is obtained. If the grayscale histogram includes two peaks, it indicates that the guide self-assembly image type is a template hole image type. If the grayscale histogram includes three peaks, it indicates that the guide self-assembly image type is a contact hole image type.
[0016] Preferably, determining the target inflection point from the inflection point of the gray value-contour area relationship curve based on the gray value distribution includes:
[0017] When the guided self-assembly image type is a template hole image type, the gray value corresponding to the first peak in the gray-level histogram is set as the gray value of the template hole. The inflection point with a gray value greater than and closest to the gray value of the template hole among all the inflection points is selected as the template hole inflection point, and the template hole inflection point is the target inflection point; wherein the first peak is the peak with the smallest corresponding gray value in the gray-level histogram.
[0018] Preferably, the binarization process of the grayscale image array based on the grayscale value corresponding to the target inflection point to obtain a binarized image includes:
[0019] When the guided self-assembly image type is a template hole image type, the gray value corresponding to the inflection point of the template hole is used as the template hole binarization threshold estimate, and the gray image array is binarized based on the template hole binarization threshold estimate to obtain the template hole binarized image.
[0020] Preferably, determining the target inflection point from the inflection point of the gray value-contour area relationship curve based on the gray value distribution includes:
[0021] When the guide self-assembly image type is a contact hole image type, the gray value corresponding to the first peak in the gray-scale histogram is set as the gray value of the contact hole, and the gray value corresponding to the second peak in the gray-scale histogram is set as the gray value of the template hole. The inflection point with a gray value greater than and closest to the gray value of the contact hole among all the inflection points is selected as the contact hole inflection point, and the inflection point with a gray value greater than and closest to the gray value of the template hole among all the inflection points is selected as the template hole inflection point. The contact hole inflection point and the template hole inflection point form the target inflection point, wherein the first peak is the peak with the smallest corresponding gray value in the gray-scale histogram, and the second peak is the peak with the second smallest corresponding gray value in the gray-scale histogram.
[0022] Preferably, the binarization process of the grayscale image array based on the grayscale value corresponding to the target inflection point to obtain a binarized image includes:
[0023] When the guide self-assembly image type is a contact hole image type, the gray value corresponding to the inflection point of the contact hole is used as the contact hole binarization threshold estimate. Based on the contact hole binarization threshold estimate, the gray-scale image array is binarized to obtain the contact hole binarized image. At the same time, the gray value corresponding to the inflection point of the template hole is used as the template hole binarization threshold estimate. Based on the template hole binarization threshold estimate, the gray-scale image array is binarized to obtain the template hole binarized image.
[0024] Preferably, the grayscale distribution of the grayscale image array is obtained based on the grayscale values of the grayscale image array within the range of 5-250.
[0025] To address the aforementioned technical problems, the present invention also provides an image processing device for guided self-assembly, characterized in that it includes a grayscale image acquisition module, an image type determination module, a binarization parameter value traversal module, and a target inflection point confirmation module.
[0026] The grayscale image acquisition module is used to acquire a guided self-assembly image and process the guided self-assembly image to obtain a grayscale image array.
[0027] The image type determination module is used to obtain the grayscale distribution of the grayscale image array based on the grayscale values of the grayscale image array, and to determine the guided self-assembly image type based on the grayscale distribution of the grayscale image array; the binarization parameter value traversal module is used to perform binarization processing on the grayscale image array based on the grayscale values within a preset grayscale value range, so as to obtain the binarized image corresponding to each grayscale value.
[0028] The target inflection point confirmation module is used to obtain a gray value-contour area relationship curve based on each gray value and its corresponding binarized image, determine the target inflection point from the inflection point of the gray value-contour area relationship curve based on the gray value distribution, and perform binarization processing on the gray value corresponding to the target inflection point to obtain a binarized image.
[0029] To address the aforementioned technical problems, the present invention also provides a storage medium storing a computer program that, when executed by a processor, implements the image processing method for guided self-assembly.
[0030] To address the aforementioned technical problems, the present invention also provides a terminal, comprising: a processor and a memory, wherein the memory and the processor are communicatively connected;
[0031] The memory is used to store computer programs, and the processor is used to execute the computer programs stored in the memory to cause the terminal to perform the image processing method for guiding self-assembly.
[0032] Compared with the prior art, one or more embodiments of the above solutions may have the following advantages or beneficial effects:
[0033] The image processing method for guided self-assembly provided in this invention improves the accuracy of contact hole type identification by performing grayscale histogram analysis on the grayscale image of the guided self-assembly image and determining the type of contact hole pattern by peak value. Then, the binarization threshold parameter is iteratively set to all grayscale values, and different grayscale values are used to process the grayscale image to obtain the relationship curve between grayscale value and contour area. The corresponding inflection point grayscale value is then selected from the relationship curve based on the peak value of the grayscale histogram as the estimated value of the binarization threshold parameter. The grayscale image is then binarized using this estimated value. This binarization threshold parameter acquisition method automatically calculates suitable binarization threshold parameters for guided self-assembly images of different qualities, thereby improving image analysis efficiency and accuracy, and also enabling batch processing of guided self-assembly images.
[0034] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the description, claims, and drawings. Attached Figure Description
[0035] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with the embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0036] Figure 1 A schematic flowchart of an image processing method for guided self-assembly according to Embodiment 1 of the present invention is shown;
[0037] Figure 2 A schematic diagram of the grayscale histogram of the template hole image type in Embodiment 1 of the present invention is shown;
[0038] Figure 3 A schematic diagram of a grayscale histogram of a contact hole image type in Embodiment 1 of the present invention is shown;
[0039] Figure 4 This diagram illustrates the grayscale value-contour area relationship curve of the template hole image type in Embodiment 1 of the present invention.
[0040] Figure 5 This diagram illustrates the grayscale value-contour area relationship curve of a contact hole image type in Embodiment 1 of the present invention.
[0041] Figure 6 This diagram illustrates the binarization of template hole image types after performing template hole binarization threshold estimation on the template hole image type according to Embodiment 1 of the present invention.
[0042] Figure 7 This diagram illustrates the binarization of a contact hole image type after the template hole binarization threshold estimate is performed, as shown in Embodiment 1 of the present invention.
[0043] Figure 8 This diagram illustrates the binarization of the contact hole image type after performing binarization threshold estimation on the contact hole image type according to Embodiment 1 of the present invention.
[0044] Figure 9 A schematic diagram of the structure of the image processing device for guided self-assembly according to Embodiment 2 of the present invention is shown;
[0045] Figure 10 A schematic diagram of the terminal structure of Embodiment 4 of the present invention is shown. Detailed Implementation
[0046] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples, so that the process of how the present invention uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly. It should be noted that, as long as there is no conflict, the various embodiments and features in the various embodiments of the present invention can be combined with each other, and the resulting technical solutions are all within the protection scope of the present invention.
[0047] Polymers are compounds with high molecular weights formed by small monomers linked by covalent bonds. Block copolymers, in particular, are polymers formed by the polymerization of two or more monomers with different chemical compositions. The thermodynamic incompatibility of different blocks drives phase separation, but the strong chemical bonds prevent this phase separation from occurring at the microscopic chain size, i.e., microphase separation. Block copolymers can self-assemble into highly ordered periodic structures of 10–100 nm, thus possessing significant application value in fields such as semiconductors and photonic crystals.
[0048] By characterizing the structure of block copolymers using electron microscopy, researchers can study the self-assembly behavior of polymers and further reveal the relationship between material structure and properties. Electron microscopy images of polymers are typically grayscale images, with different blocks usually exhibiting different grayscale levels. Electron microscopy images visually display the morphology and defects of self-assembled structures; by measuring these images, data such as the size and periodicity of the structure can be obtained, leading to the creation of self-assembly images, which is one type of electron microscopy image.
[0049] Example 1
[0050] To address the technical problems existing in the prior art, embodiments of the present invention provide an image processing method for guided self-assembly.
[0051] Figure 1 A schematic flowchart of an image processing method for guided self-assembly according to Embodiment 1 of the present invention is shown; Reference Figure 1 As shown, the image processing method for guided self-assembly according to an embodiment of the present invention includes the following steps.
[0052] Step S101: Obtain the guided self-assembly image and process the guided self-assembly image to obtain a grayscale image array.
[0053] Specifically, the guided self-assembly image file is read using an image reading function, and the read guided self-assembly image is used as the guided self-assembly image. The guided self-assembly image is converted and stored as an RGB image array composed of the RGB values of each pixel. Then, a grayscale function is used to perform grayscale processing on the RGB image array, and noise reduction processing is also performed after grayscale processing to obtain a grayscale image array.
[0054] The noise reduction process refers to the reduction of pixels in an image caused by noise signals during the imaging process. The presence of noise can interfere with processes such as binarization and contour recognition. Therefore, filtering is generally used for noise reduction, resulting in a smoother image that better reflects the true nature of the object.
[0055] Step S102: Obtain the grayscale distribution of the grayscale image array based on the grayscale values of the grayscale image array, and determine the guided self-assembly image type based on the grayscale distribution of the grayscale image array.
[0056] Specifically, a grayscale histogram statistical analysis is performed on the grayscale image array to obtain the grayscale distribution, i.e., the grayscale histogram. To avoid white or black borders in the image affecting the statistical results, only pixels with grayscale values between 5 and 250 are statistically analyzed. Furthermore, it is assumed that pixels with grayscale values between t1 and t2 are also statistically analyzed, where t1 can be 5, 10, or 15, and t2 can be 240, 245, or 250. Then, the peak values in the grayscale histogram are analyzed, and the type of guided self-assembly image is determined based on the number of peak values in the grayscale histogram. Figure 2 A schematic diagram of the grayscale histogram of the template hole image type in Embodiment 1 of the present invention is shown; Figure 3 This diagram illustrates a grayscale histogram of a contact hole image type in Embodiment 1 of the present invention; see reference. Figure 2 and Figure 3 As shown, for template hole image types, the corresponding grayscale histogram typically includes two peaks, corresponding to the template hole and background in ascending order of grayscale value. For contact hole image types, the corresponding grayscale histogram includes three peaks, corresponding to the contact hole, template hole, and background in ascending order of grayscale value. Therefore, determining the guide self-assembly image type based on the number of peaks in the grayscale histogram includes: when the grayscale histogram includes two peaks, it indicates that the guide self-assembly image type is a template hole image type; and when the grayscale histogram includes three peaks, it indicates that the guide self-assembly image type is a contact hole image type.
[0057] It should be noted that, in addition to the above-disclosed methods, the type of the guided self-assembly image can also be determined based on the following method: that is, calculate the grayscale variance value of the grayscale image array and determine whether the grayscale variance value is greater than the preset grayscale variance threshold parameter. If it is, the guided self-assembly image type is the contact hole image type; otherwise, the guided self-assembly image type is the template hole image type.
[0058] Step S103: Binarize the grayscale image array based on the grayscale values within the preset grayscale value range to obtain the binarized image corresponding to each grayscale value.
[0059] Specifically, a preset grayscale value range is set, and all grayscale values within this range are used as binarization threshold parameters. Then, the grayscale image array is binarized based on these threshold parameters to obtain the binarized image corresponding to each grayscale value within the preset range. The preset grayscale value range can be set based on actual conditions, preferably 0-255. Preferably, to reduce computation, the grayscale image array is binarized sequentially based on the grayscale values assigned by the binarization threshold parameters, from smallest to largest. Since the area enclosed by the contour in the image generally accounts for less than 80% of the total area, binarization can be stopped when the area enclosed by the contour in the obtained binarized image exceeds 80% of the total area. This is because when the area enclosed by the contour in the binarized image exceeds 80% of the total area, further additions of grayscale values as threshold parameters result in a binarized image that cannot accurately represent the boundary between the contact hole and the background, rendering it meaningless and thus discarded.
[0060] Step S104: Obtain the gray value-contour area relationship curve based on each gray value and its corresponding binarized image; determine the target inflection point from the inflection point of the gray value-contour area relationship curve based on the gray value distribution; and perform binarization processing on the gray image array based on the gray value corresponding to the target inflection point to obtain the binarized image.
[0061] Specifically, contour analysis is performed on all acquired binarized images, and the contour area (i.e., the total area enclosed by the contour) is obtained in each binarized image. Then, a gray-value-contour area relationship set is formed by comparing all gray values used as binarization threshold parameters with their corresponding contour areas in the binarized images. That is, each gray value used as a binarization threshold parameter yields a binarized image, and each binarized image, after contour analysis, has its corresponding contour area. Therefore, each gray value used as a binarization threshold parameter has its corresponding contour area. The gray-value and corresponding contour areas are then combined to form a gray-value-contour area relationship set. Finally, a line graph is plotted based on this gray-value-contour area relationship set to obtain the gray-value-contour area relationship curve. Figure 4 This diagram illustrates the grayscale value-contour area relationship curve of the template hole image type in Embodiment 1 of the present invention. Figure 5A schematic diagram of the grayscale value-contour area relationship curve for a contact hole image type in Embodiment 1 of the present invention is shown. It should be noted that the process of obtaining the grayscale value-contour area relationship curve based on the grayscale value-contour area relationship set can be implemented using existing software.
[0062] The target inflection point is determined from all the inflection points obtained by taking the second derivative of the gray value-outline area relationship curve or by other reasonable methods, and then combined with the peak value in the gray value histogram. Furthermore, when the guide self-assembly image type is determined to be a template hole image type in step S102, the gray value corresponding to the first peak in the gray-level histogram is set to the gray value of the template hole, and the inflection point whose gray value is greater than and closest to the gray value of the template hole among all inflection points is selected as the template hole inflection point. At this time, the target inflection point only includes the template hole inflection point. When the guide self-assembly image type is determined to be a contact hole image type in step S102, the gray value corresponding to the first peak in the gray-level histogram is set to the gray value of the contact hole, and the gray value corresponding to the second peak in the gray-level histogram is set to the gray value of the template hole. Then, the inflection point whose gray value is greater than and closest to the gray value of the contact hole among all inflection points is selected as the contact hole inflection point, and the inflection point whose gray value is greater than and closest to the gray value of the template hole among all inflection points is selected as the template hole inflection point. At this time, the target inflection point includes both the contact hole inflection point and the template hole inflection point. The first peak represents the peak with the smallest gray value in the corresponding gray-level histogram, and the second peak represents the peak with the second smallest gray value in the corresponding gray-level histogram.
[0063] Depending on the type of hole inflection points contained within the target inflection point, the method for binarizing the grayscale image array based on the target inflection point also differs. Furthermore, Figure 6 This diagram illustrates the binarization of template hole image types after performing template hole binarization threshold estimation on the template hole image type according to Embodiment 1 of the present invention; (Refer to...) Figure 6 As shown, when the guided self-assembly image type is a template hole image type, the gray value corresponding to the template hole inflection point in the target inflection point needs to be used as the template hole binarization threshold estimate. Then, the gray value image is binarized based on the template hole binarization threshold estimate to obtain the template hole binarized image. After that, contour detection can be performed on the template hole binarized image to obtain the template hole contour array.
[0064] Figure 7 This diagram illustrates the binarization of a contact hole image type after the template hole binarization threshold estimate is performed, as shown in Embodiment 1 of the present invention. Figure 8 This diagram illustrates the binarization of a contact hole image type after performing binarization threshold estimation on the contact hole image type according to Embodiment 1 of the present invention; (Refer to...) Figure 7 and Figure 8As shown, when the guide self-assembly image type is a contact hole image type, the gray value corresponding to the inflection point of the contact hole needs to be used as the contact hole binarization threshold estimate. Then, the gray value image is binarized based on the contact hole binarization threshold estimate to obtain the contact hole binarized image. Finally, contour detection is performed on the contact hole binarized image to obtain the contact hole contour array. At the same time, the gray value corresponding to the inflection point of the template hole also needs to be used as the template hole binarization threshold estimate. Then, the gray value image is binarized based on the template hole binarization threshold estimate to obtain the template hole binarized image. Finally, contour detection is performed on the template hole binarized image to obtain the template hole contour array.
[0065] Step S105: Perform contour detection on the binarized image to obtain a contour array, obtain the key dimensions and roundness of all template holes or contact holes in the contour array, and obtain the average value and 3σ value of the key dimensions of all template holes or contact holes in the contour array, as well as the average value and 3σ value of the roundness of template holes or contact holes in the contour array.
[0066] Specifically, the process of obtaining a contour array by contour detection of the binarized image is as described in step S104. Then, the radius, perimeter, and area of each contour hole within the template hole contour array, or the template hole contour array and the contact hole contour array, need to be obtained to acquire the key dimensions of each hole (template hole or contact hole) in the array. Simultaneously, roundness formulas can also be used... Calculate the roundness of each hole. Then, perform histogram statistics on the critical dimensions and roundness of all holes of the same type. Based on the statistical histogram, obtain the average and 3σ values of the critical dimensions of each type of hole in the contour array, as well as the average and 3σ values of the roundness of each type of hole in the contour array. That is, obtain the average and 3σ values of the critical dimensions of all template holes in the template hole contour array, and the average and 3σ values of the roundness of all template holes; or obtain the average and 3σ values of the critical dimensions of all contact holes in the contact hole contour array, and the average and 3σ values of the roundness of all contact holes.
[0067] Furthermore, in obtaining the average and 3σ values (i.e., three times the standard deviation) of the critical dimensions of all template holes or contact holes in the contour array, and in obtaining the average and 3σ values (i.e., three times the standard deviation) of the roundness of template holes or contact holes in the contour array, the critical dimensions and roundness of the template holes need to be calculated in the circular template hole experiment; in the elliptical template hole experiment, only the critical dimensions of the template holes need to be calculated; in the circular template hole shrinkage experiment, the critical dimensions and roundness of the template holes and the contact holes need to be calculated; in the elliptical contact hole shrinkage experiment, the critical dimensions of the template holes and the contact holes need to be calculated. The critical dimension of a circular hole is its diameter, and the critical dimension of an elliptical hole is its length in the x / y direction.
[0068] The image processing method for guided self-assembly provided in this invention improves the accuracy of contact hole type identification by performing grayscale histogram analysis on the grayscale image of the guided self-assembly image and determining the type of contact hole pattern by peak value. Then, the binarization threshold parameter is iteratively set to all grayscale values, and different grayscale values are used to process the grayscale image to obtain the relationship curve between grayscale value and contour area. The corresponding inflection point grayscale value is then selected from the relationship curve based on the peak value of the grayscale histogram as the estimated value of the binarization threshold parameter. The grayscale image is then binarized using this estimated value. This binarization threshold parameter acquisition method automatically obtains suitable binarization threshold parameters for guided self-assembly images of different qualities, thereby improving image analysis efficiency and accuracy, and also enabling batch processing of guided self-assembly images.
[0069] Example 2
[0070] To address the technical problems existing in the prior art, embodiments of the present invention provide an image processing apparatus for guided self-assembly.
[0071] Figure 9 A schematic diagram of the structure of the image processing device for guided self-assembly according to Embodiment 2 of the present invention is shown; Reference Figure 9 As shown, the image processing device for guided self-assembly in this embodiment of the invention includes a grayscale image acquisition module, an image type determination module, a binarization parameter value traversal module, and a target inflection point confirmation module.
[0072] The grayscale image acquisition module is used to acquire the guided self-assembly image and process the guided self-assembly image to obtain a grayscale image array.
[0073] The image type determination module is used to obtain the grayscale distribution of the grayscale image array based on the grayscale values of the grayscale image array, and to determine the guided self-assembly image type based on the grayscale distribution of the grayscale image array.
[0074] The binarization parameter value traversal module is used to perform binarization processing on the grayscale image array based on the grayscale values within a preset grayscale value range, so as to obtain the binarized image corresponding to each grayscale value.
[0075] The target inflection point confirmation module is used to obtain the gray value-contour area relationship curve based on each gray value and the corresponding binarized image, determine the target inflection point from the inflection point of the gray value-contour area relationship curve based on the gray value distribution, and perform binarization processing on the gray value corresponding to the target inflection point to obtain the binarized image.
[0076] The image processing apparatus for guided self-assembly provided in this invention improves the accuracy of contact hole type identification by performing grayscale histogram analysis on the grayscale image of the guided self-assembly image and determining the type of contact hole pattern by peak value. Then, the binarization threshold parameter is iteratively set to all grayscale values, and different grayscale values are used to process the grayscale image to obtain the relationship curve between grayscale value and contour area. The corresponding inflection point grayscale value is then selected from the relationship curve based on the peak value of the grayscale histogram as the estimated value of the binarization threshold parameter. The grayscale image is then binarized using this estimated value. This binarization threshold parameter acquisition method automatically calculates suitable binarization threshold parameters for guided self-assembly images of different qualities, thereby improving image analysis efficiency and accuracy, and also enabling batch processing of guided self-assembly images.
[0077] Example 3
[0078] To address the aforementioned technical problems in the prior art, this embodiment of the invention also provides a storage medium storing a computer program that, when executed by a processor, can implement all the steps in the image processing method for guided self-assembly in Embodiment 1.
[0079] The specific steps of the image processing method for guided self-assembly and the beneficial effects obtained by applying the readable storage medium provided in this embodiment are the same as in Embodiment 1, and will not be repeated here.
[0080] It should be noted that storage media include various media that can store program code, such as ROM, RAM, magnetic disks, or optical disks.
[0081] Example 4
[0082] To address the aforementioned technical problems in the prior art, this invention also provides a terminal.
[0083] Figure 10 A schematic diagram of the terminal structure of Embodiment 4 of the present invention is shown, with reference to... Figure 10 In this embodiment, the terminal includes a processor and a memory connected to each other; the memory is used to store computer programs, and the processor is used to execute the computer programs stored in the memory, so that when the terminal is executed, it can implement all the steps of the image processing method for guided self-assembly in Embodiment 1.
[0084] The specific steps of the image processing method for guided self-assembly and the beneficial effects obtained by the terminal provided by the embodiments of the present invention are the same as those in Embodiment 1, and will not be repeated here.
[0085] It should be noted that the memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Similarly, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0086] While the embodiments disclosed in this invention are as described above, the content is merely for the purpose of facilitating understanding of the invention and is not intended to limit the invention. Any person skilled in the art to which this invention pertains may make any modifications and changes in form and detail of the implementation without departing from the spirit and scope disclosed herein; however, the scope of protection of this invention shall still be determined by the scope defined in the appended claims.
Claims
1. An image processing method for guided self-assembly, comprising: A guided self-assembly image is acquired, and the guided self-assembly image is processed to obtain a grayscale image array; Obtaining the grayscale distribution of the grayscale image array based on the grayscale values of the grayscale image array, and determining the guide self-assembly image type based on the grayscale distribution of the grayscale image array, includes: obtaining the grayscale histogram of the grayscale image array based on the grayscale values of the grayscale image array; if the grayscale histogram includes two peaks, it indicates that the guide self-assembly image type is a template hole image type; if the grayscale histogram includes three peaks, it indicates that the guide self-assembly image type is a contact hole image type. The grayscale image array is binarized based on the grayscale values within a preset grayscale range to obtain the binarized image corresponding to each grayscale value. A grayscale value-contour area relationship curve is obtained based on each grayscale value and its corresponding binarized image. A target inflection point is determined from the inflection points of the grayscale value-contour area relationship curve based on the grayscale distribution. The grayscale image array is then binarized based on the grayscale value corresponding to the target inflection point to obtain a binarized image. Specifically, all inflection points in the grayscale value-contour area relationship curve are obtained, and then the target inflection point is determined from all the obtained inflection points by combining the peak values in the grayscale histogram.
2. The processing method according to claim 1, characterized in that, Also includes: Contour detection is performed on the binarized image to obtain a contour array. The key dimensions and roundness of all template holes or contact holes in the contour array are obtained. The average value and 3σ value of the key dimensions of all template holes or contact holes in the contour array are obtained respectively. The average value and 3σ value of the roundness of template holes or contact holes in the contour array are also obtained respectively.
3. The processing method according to claim 1, characterized in that, Processing the guided self-assembly image to obtain a grayscale image array includes: The guided self-assembled image is converted into an RGB image array, and the RGB image array is sequentially subjected to grayscale conversion and noise reduction to obtain a grayscale image array.
4. The processing method according to claim 1, characterized in that, Determining the target inflection point from the inflection point of the gray value-contour area relationship curve based on the gray value distribution includes: When the guided self-assembly image type is a template hole image type, the gray value corresponding to the first peak in the gray-level histogram is set as the gray value of the template hole. The inflection point with a gray value greater than and closest to the gray value of the template hole among all the inflection points is selected as the template hole inflection point, and the template hole inflection point is the target inflection point; wherein the first peak is the peak with the smallest corresponding gray value in the gray-level histogram.
5. The processing method according to claim 4, characterized in that, Binarizing the grayscale image array based on the grayscale value corresponding to the target inflection point to obtain a binarized image includes: When the guided self-assembly image type is a template hole image type, the gray value corresponding to the inflection point of the template hole is used as the template hole binarization threshold estimate, and the gray image array is binarized based on the template hole binarization threshold estimate to obtain the template hole binarized image.
6. The processing method according to claim 1, characterized in that, Determining the target inflection point from the inflection point of the gray value-contour area relationship curve based on the gray value distribution includes: When the guide self-assembly image type is a contact hole image type, the gray value corresponding to the first peak in the gray-scale histogram is set as the gray value of the contact hole, and the gray value corresponding to the second peak in the gray-scale histogram is set as the gray value of the template hole. The inflection point with a gray value greater than and closest to the gray value of the contact hole among all the inflection points is selected as the contact hole inflection point, and the inflection point with a gray value greater than and closest to the gray value of the template hole among all the inflection points is selected as the template hole inflection point. The contact hole inflection point and the template hole inflection point form the target inflection point, wherein the first peak is the peak with the smallest corresponding gray value in the gray-scale histogram, and the second peak is the peak with the second smallest corresponding gray value in the gray-scale histogram.
7. The processing method according to claim 6, characterized in that, Binarizing the grayscale image array based on the grayscale value corresponding to the target inflection point to obtain a binarized image includes: When the guide self-assembly image type is a contact hole image type, the gray value corresponding to the inflection point of the contact hole is used as the contact hole binarization threshold estimate. Based on the contact hole binarization threshold estimate, the gray-scale image array is binarized to obtain the contact hole binarized image. At the same time, the gray value corresponding to the inflection point of the template hole is used as the template hole binarization threshold estimate. Based on the template hole binarization threshold estimate, the gray-scale image array is binarized to obtain the template hole binarized image.
8. The processing method according to claim 1, characterized in that, Based on the grayscale values of the grayscale image array within the range of 5-250, the grayscale distribution of the grayscale image array is obtained.
9. An image processing apparatus for guiding self-assembly, characterized in that, It includes a grayscale image acquisition module, an image type determination module, a binarization parameter value traversal module, and a target inflection point confirmation module; The grayscale image acquisition module is used to acquire a guided self-assembly image and process the guided self-assembly image to obtain a grayscale image array. The image type determination module is used to obtain the grayscale distribution of the grayscale image array based on the grayscale values of the grayscale image array, and to determine the guided self-assembly image type based on the grayscale distribution of the grayscale image array. The step of obtaining the grayscale distribution of the grayscale image array based on the grayscale values of the grayscale image array, and determining the guide self-assembly image type based on the grayscale distribution of the grayscale image array includes: obtaining the grayscale histogram of the grayscale image array based on the grayscale values of the grayscale image array; if the grayscale histogram includes two peaks, it indicates that the guide self-assembly image type is a template hole image type; if the grayscale histogram includes three peaks, it indicates that the guide self-assembly image type is a contact hole image type. The binarization parameter value traversal module is used to perform binarization processing on the grayscale image array based on grayscale values within a preset grayscale value range, so as to obtain the binarized image corresponding to each grayscale value. The target inflection point confirmation module is used to obtain a gray-value-contour area relationship curve based on each gray value and its corresponding binarized image, determine a target inflection point from the inflection points of the gray-value-contour area relationship curve based on the gray-value distribution, and perform binarization processing on the gray-value image array based on the gray value corresponding to the target inflection point to obtain a binarized image; wherein, all inflection points in the gray-value-contour area relationship curve are obtained, and then the target inflection point is determined from all the obtained inflection points by combining the peak value in the gray-value histogram.
10. A storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the image processing method for guided self-assembly as described in any one of claims 1 to 8.
11. A terminal, characterized in that, include: A processor and a memory, wherein the memory and the processor are communicatively connected; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to cause the terminal to perform the image processing method for guided self-assembly as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Image segmentation threshold determination method and device, terminal and storage medium
CN112215856A
Wafer double-edge detection method, device and equipment
CN114913112A
