Image processing method, device, electronic device and storage medium

By obtaining the grid spatial structure information of the atomic image and the point spread function of the microscope, the atoms are reconstructed in real time, achieving single grid point resolution imaging of the atoms, and solving the problem of inability to achieve imaging close to the diffraction limit level in the existing technology.

CN118377127BActive Publication Date: 2024-10-11UNIV OF SCI & TECH OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410824008.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-11
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

Existing technology cannot achieve clear imaging of atoms close to the diffraction limit. Traditional microscopic observation methods have strict requirements on the spatial stability and light intensity stability of imaging light, making it difficult to achieve single-atom resolution.

Method used

By acquiring the atomic image, the grid spatial structure information in the atomic sample image and the point spread function of the microscope are determined, and the occupancy distribution image of the atoms on the grid is generated, and the atoms are reconstructed in real time using the grid's spatial structure information and point spread function. , achieving in-situ imaging at the diffraction limit level with single grid point resolution.

Benefits of technology

It achieves clear imaging of every atom, truly achieves in-situ imaging at the diffraction limit level with single grid point resolution, and solves the problem of inability to achieve near-diffraction limit level imaging in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377127B_ABST
    Figure CN118377127B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and storage medium for image processing. Among them, in the method for image processing, firstly, an atomic image to be processed is obtained. Then, an atomic sample image is obtained based on a pre-prepared atomic sample, and the spatial structure information of the grid that the atoms in the atomic sample image can occupy is determined, and the point spread function of the microscope is obtained. Finally, based on the spatial structure information and the point spread function, an occupation distribution image of the atoms in the atomic image on the grid is generated. Using the method of the present application, for the atomic image to be processed, by obtaining the spatial structure information of the grid and the point spread function of the microscope, the occupation distribution of the atoms on the grid is reconstructed in real time, thereby obtaining the distribution information of the atoms on the grid, and finally generating a clear occupation distribution image of the atoms on the grid in the atomic image, which can clearly image each atom and realize in-situ imaging at the diffraction limit level of single grid point resolution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of atomic and molecular optical technology, and in particular to an image processing method, device, electronic device and storage medium. Background Art

[0002] The fluorescence imaging process of atoms refers to the continuous irradiation of atoms with imaging light. After being excited, the atoms spontaneously radiate fluorescence photons and transition back to the ground state. The spontaneously radiated fluorescence photons and the stimulated absorbed imaging photons have the same energy momentum and polarization state. The fluorescence photons are collected by a quantum gas microscope to form an image.

[0003] In the existing technology, traditional microscopic observation methods, such as absorption imaging, have strict requirements on the spatial stability and light intensity stability of the imaging light. The coherent imaging light reduces the imaging quality, making it difficult to achieve single-atom resolution and unable to achieve clear imaging of atoms close to the diffraction limit level. Summary of the invention

[0004] In view of this, the present application provides an image processing method, device, electronic device and storage medium to solve the problem in the prior art that it is impossible to achieve imaging of atoms at a level close to the diffraction limit.

[0005] To achieve the above objectives, this application provides the following technical solutions:

[0006] The first aspect of the present application discloses a method for image processing, comprising:

[0007] Acquire an atomic image to be processed; wherein the atomic image is an image obtained using a microscope;

[0008] An atomic sample image is obtained based on a pre-prepared atomic sample, and spatial structure information of a grid that can be occupied by atoms in the atomic sample image is determined; wherein the grid is a grid composed of first azimuth grid lines and second azimuth grid lines; the spatial structure information includes a grid point azimuth and a grid point spacing; the grid point azimuth includes a first grid point azimuth and a second grid point azimuth; the grid point spacing includes a first grid point spacing and a second grid point spacing; the first grid point azimuth is the angle between the first azimuth grid line and the horizontal direction; the second grid point azimuth is the angle between the second azimuth grid line and the horizontal direction; the first grid point spacing is the spacing between the first azimuth grid lines; the second grid point spacing is the spacing between the second azimuth grid lines;

[0009] obtaining a point spread function of the microscope;

[0010] Based on the spatial structure information and the point spread function, an occupancy distribution image of atoms in the atomic image on the grid is generated.

[0011] Optionally, in the above method, the step of obtaining the atomic image to be processed includes:

[0012] Use a microscope to receive fluorescent photons emitted by atoms in a quantum many-body system and take digital pictures;

[0013] The digitized image is subjected to regional cropping to obtain the atomic image.

[0014] Optionally, in the above method, the step of determining the spatial structure information of the grid that can be occupied by atoms in the atomic sample image includes:

[0015] Screening out isolated atoms in the atomic sample image;

[0016] For each of the isolated atoms, calculating the center position coordinates of the isolated atom;

[0017] For any two of the isolated atoms, calculating the vector distance between each two of the isolated atoms;

[0018] Based on a plurality of preset trial angles, for each of the trial angles, calculating the projection length of each segment of the vector distance at the current trial angle;

[0019] Based on the projection length at each of the trial angles, generating a projection length spectrum graph corresponding to each of the trial angles;

[0020] Based on the projection length spectrum graph, obtaining a score value for each of the trial angles;

[0021] The trial angle corresponding to the maximum score value is used as the initial grid point azimuth, and the shortest projection length of the trial angle corresponding to the maximum score value is used as the initial grid point spacing;

[0022] Based on the initial lattice azimuth and the initial lattice spacing, isolated atoms that meet the preset conditions are eliminated, and for the isolated atoms that are not eliminated, the process is returned to execute for each of the isolated atoms to calculate the center position coordinates of the isolated atom until the number of cycles reaches the preset number to obtain the lattice azimuth and the lattice spacing.

[0023] Optionally, in the above method, the step of screening out isolated atoms in the atomic sample image includes:

[0024] Performing brightness adjustment and binarization processing on the atomic sample image, and calculating the area of ​​each highlighted single-connected region in the atomic sample image;

[0025] The highlighted simply connected region whose area meets the preset interval is regarded as the isolated atom.

[0026] Optionally, in the above method, the step of removing isolated atoms that meet preset conditions based on the initial lattice azimuth and the initial lattice spacing includes:

[0027] Based on the initial grid point azimuth and the initial grid point spacing, an initial grid is generated, and the position coordinates of each grid point in the initial grid are obtained;

[0028] The Euclidean distance between each grid point in the initial grid and the corresponding isolated atom is calculated, and isolated atoms whose Euclidean distance is not less than a preset threshold are eliminated.

[0029] Optionally, in the above method, the step of obtaining the point spread function of the microscope comprises:

[0030] For the isolated atoms that are not eliminated, the radial distribution of the brightness of the isolated atoms that are not eliminated is statistically analyzed, and fitting is performed according to a two-dimensional Gaussian function to obtain the point spread function of the microscope.

[0031] Optionally, in the above method, generating an occupancy distribution image of atoms in the atomic image on the grid based on the spatial structure information and the point spread function comprises:

[0032] Performing full-image deconvolution processing on the atomic image using the point spread function to obtain a deconvolved image;

[0033] Obtaining position coordinates of isolated atoms in the deconvoluted image;

[0034] Taking the position coordinates of each of the isolated atoms as grid point coordinates, and establishing a trial grid according to the grid point azimuth and the grid point spacing;

[0035] Screening out the best reference atoms in the trial grid;

[0036] Establishing the grid with the best reference atom as a reference point, and reading the coordinates of all grid points in the grid;

[0037] The grid points occupied by atoms in the grid are determined, and an occupation distribution image of the atoms in the atomic image on the grid is generated.

[0038] The second aspect of the present application discloses an image processing device, comprising:

[0039] A first acquisition unit is used to acquire an atomic image to be processed; wherein the atomic image is an image obtained by using a microscope;

[0040] A determination unit, used to obtain an atomic sample image based on a pre-prepared atomic sample, and determine spatial structure information of a grid that can be occupied by atoms in the atomic sample image; wherein the grid is a grid composed of first azimuth grid lines and second azimuth grid lines; the spatial structure information includes a grid point azimuth and a grid point spacing; the grid point azimuth includes a first grid point azimuth and a second grid point azimuth; the grid point spacing includes a first grid point spacing and a second grid point spacing; the first grid point azimuth is the angle between the first azimuth grid line and the horizontal direction; the second grid point azimuth is the angle between the second azimuth grid line and the horizontal direction; the first grid point spacing is the spacing between the first azimuth grid lines; the second grid point spacing is the spacing between the second azimuth grid lines;

[0041] A second acquisition unit, used to acquire a point spread function of the microscope;

[0042] A generating unit is used to generate an occupancy distribution image of atoms in the atomic image on the grid based on the spatial structure information and the point spread function.

[0043] Optionally, in the above device, the first acquisition unit includes:

[0044] A first generating subunit is used to receive fluorescent photons emitted by atoms in the quantum many-body system using a microscope and generate a digital image;

[0045] The cropping subunit is used to perform regional cropping on the digitized image to obtain the atomic image.

[0046] Optionally, in the above device, the determining unit includes:

[0047] A first screening subunit, used for screening out isolated atoms in the atomic sample image;

[0048] A first calculation subunit is used to calculate the center position coordinates of each isolated atom.

[0049] A second calculation subunit is used to calculate the vector distance between any two of the isolated atoms;

[0050] A third calculation subunit is used to calculate the projection length of each segment of the vector distance at the current trial angle for each of the trial angles based on a plurality of preset trial angles;

[0051] A second generating subunit is used to generate a projection length spectrum diagram corresponding to each of the trial angles based on the projection length at each of the trial angles;

[0052] A first acquisition subunit is used to acquire a score value of each of the trial angles based on the projection length spectrum diagram;

[0053] A first determining subunit is used to use the trial angle corresponding to the maximum score value as the initial grid point azimuth, and use the shortest projection length of the trial angle corresponding to the maximum score value as the initial grid point spacing;

[0054] The loop subunit is used to eliminate isolated atoms that meet preset conditions based on the initial grid point azimuth and the initial grid point spacing, and for the isolated atoms that are not eliminated, return to execute the calculation of the center position coordinates of each isolated atom until the number of cycles reaches a preset number to obtain the grid point azimuth and the grid point spacing.

[0055] Optionally, in the above device, the first screening subunit includes:

[0056] A fourth calculation subunit, used for performing brightness adjustment and binarization processing on the atomic sample image, and calculating the area of ​​each highlighted single-connected region in the atomic sample image;

[0057] The second determination subunit is used to take the highlighted simply connected region whose area meets the preset interval as the isolated atom.

[0058] Optionally, in the above device, the circulation subunit comprises:

[0059] A second acquisition subunit, used to generate an initial grid based on the initial grid point azimuth and the initial grid point spacing, and to acquire the position coordinates of each grid point in the initial grid;

[0060] The elimination subunit is used to calculate the Euclidean distance between each grid point in the initial grid and the corresponding isolated atom, and eliminate the isolated atoms whose Euclidean distance is not less than a preset threshold.

[0061] Optionally, in the above device, the second acquiring unit includes:

[0062] The fitting subunit is used to count the radial distribution of the brightness of the isolated atoms that are not eliminated, and to fit them according to a two-dimensional Gaussian function to obtain the point spread function of the microscope.

[0063] Optionally, in the above device, the generating unit includes:

[0064] A processing subunit, configured to perform full-image deconvolution processing on the atomic image using the point spread function to obtain a deconvolved image;

[0065] A third acquisition subunit is used to acquire the position coordinates of the isolated atoms in the deconvolution image;

[0066] Establishing a subunit, for taking the position coordinates of each of the isolated atoms as grid point coordinates, and establishing a trial grid according to the grid point azimuth and the grid point spacing;

[0067] A second screening subunit, used to screen out the best reference atoms in the trial grid;

[0068] A reading subunit, used for establishing the grid with the optimal reference atom as a reference point, and reading the coordinates of all grid points in the grid;

[0069] The third generating subunit is used to determine the grid points occupied by atoms in the grid and generate an occupation distribution image of the atoms in the atomic image on the grid.

[0070] The third aspect of the present application discloses an electronic device, comprising:

[0071] one or more processors;

[0072] a storage device having one or more programs stored thereon;

[0073] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of the first aspects of the present application.

[0074] A fourth aspect of the present application discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the first aspects of the present application is implemented.

[0075] It can be seen from the above technical scheme that in an image processing method provided by the present application, the atomic image to be processed is first obtained; wherein the atomic image is an image obtained using a microscope. Then, an atomic sample image is obtained based on a pre-prepared atomic sample, and the spatial structure information of the grid that the atoms in the atomic sample image can occupy is determined, and the point spread function of the microscope is obtained, wherein the grid is a grid composed of a first orientation grid line and a second orientation grid line; the spatial structure information includes the grid point azimuth and the grid point spacing. Finally, based on the spatial structure information and the point spread function, an occupation distribution image of the atoms in the atomic image on the grid is generated. It can be seen that, using the method of the present application, for the atomic image to be processed, the occupation distribution of the atoms on the grid is reconstructed in real time by obtaining the spatial structure information of the grid and the point spread function of the microscope, thereby obtaining the atomic occupation distribution information on the grid, and finally generating a clear atomic image The image of the occupation distribution of the atoms on the grid, which can truly be clearly imaged for each atom, and realize the in-situ imaging of the diffraction limit level of single grid point resolution. It solves the problem that the prior art cannot achieve near-diffraction limit level imaging of atoms. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0077] Figure 1 A flowchart of an image processing method disclosed in an embodiment of the present application;

[0078] Figure 2 A schematic diagram of an original image of a sample atom disclosed in another embodiment of the present application;

[0079] Figure 3 This is a flowchart of an implementation of step S102 disclosed in another embodiment of the present application;

[0080] Figure 4 It is a schematic diagram of an atomic sample image after binarization processing disclosed in another embodiment of the present application;

[0081] Figure 5 A schematic diagram of a centroid position mark of a simply connected region in an atomic sample image disclosed in another embodiment of the present application;

[0082] Figure 6 A schematic diagram of the center position identification of isolated atoms obtained by Gaussian fitting in an atomic sample image disclosed in another embodiment of the present application;

[0083] Figure 7 A schematic diagram of frequency statistics of the first grid point reconstruction of an atomic sample image-vector distance projection length disclosed in another embodiment of the present application;

[0084] Figure 8 A Fourier transform spectrum diagram of the first grid point reconstruction of the atomic sample image-vector distance projection length disclosed in another embodiment of the present application;

[0085] Fig. 9 A schematic diagram of a first grid point reconstruction-scoring curve of an atomic sample image disclosed in another embodiment of the present application;

[0086] Fig.10 A schematic diagram of a first grid point reconstruction result of an atomic sample image disclosed in another embodiment of the present application;

[0087] Fig.11 A schematic diagram of frequency statistics of the second grid point reconstruction of an atomic sample image-vector distance projection length disclosed in another embodiment of the present application;

[0088] Fig.12 A Fourier transform spectrum diagram of the second grid point reconstruction of the atomic sample image-vector distance projection length disclosed in another embodiment of the present application;

[0089] Fig.13 A schematic diagram of a second grid reconstruction-scoring curve of an atomic sample image disclosed in another embodiment of the present application;

[0090] Fig.14 A schematic diagram of a second grid point reconstruction result of an atomic sample image disclosed in another embodiment of the present application;

[0091] Fig.15 A schematic diagram of a PSF function fitting result disclosed in another embodiment of the present application;

[0092] Fig.16 This is a flowchart of an implementation of step S104 disclosed in another embodiment of the present application;

[0093] Fig.17 The original image of atoms in the experiment disclosed in another embodiment of the present application;

[0094] Fig.18 A schematic diagram of the center position identification of an isolated atom disclosed in another embodiment of the present application;

[0095] Fig.19 A schematic diagram of a grid point reconstructed and aligned with atomic positions disclosed in another embodiment of the present application;

[0096] Fig. 20A statistical histogram of the brightness of each grid point disclosed in another embodiment of the present application;

[0097] Fig.21 The finally obtained atomic occupancy distribution image on the grid disclosed in another embodiment of the present application;

[0098] Fig. 22 A schematic diagram of an image processing device disclosed in another embodiment of the present application;

[0099] Fig.23 A schematic diagram of an electronic device disclosed in another embodiment of the present application. DETAILED DESCRIPTION

[0100] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0101] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0102] Furthermore, in this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0103] As can be seen from the background technology, traditional microscopic observation methods, such as absorption imaging, have strict requirements on the spatial stability and light intensity stability of the imaging light. The coherent imaging light reduces the imaging quality, making it difficult to achieve single-atom resolution and unable to achieve clear imaging of atoms at a level close to the diffraction limit.

[0104] In view of this, the present application provides an image processing method, device, electronic device and storage medium to solve the problem that the prior art cannot achieve imaging of atoms at a level close to the diffraction limit.

[0105] The present application embodiment provides a method for image processing, such as Figure 1 As shown, specifically including:

[0106] S101, obtaining an atomic image to be processed; wherein the atomic image is an image obtained using a microscope.

[0107] It should be noted that the microscope in this example takes a quantum gas microscope as an example. First, the quantum gas microscope is used to obtain the atomic image to be processed. The numerical aperture NA of the quantum gas microscope in this embodiment is 0.8; the total magnification is about 130 times; the imaging center area range is 40μm×40μm; the working distance is 3mm vacuum + 6mm fused quartz + about 1mm air; the working wavelength designed for rubidium 87 atomic fluorescence imaging is 780nm, the diffraction limit resolution R=0.61λ / NA=594.75nm obtained by the Rayleigh criterion, and the resolution actually measured by the star point method is 642.5nm; the on-axis wavefront difference PV=0.16673, the on-axis Strehl ratio=0.9739, which meets the Strehl criterion.

[0108] Optionally, in another embodiment of the present application, an implementation of step S101 may include:

[0109] A microscope is used to receive fluorescent photons emitted by atoms in a quantum many-body system and generate digital images.

[0110] The digitized image is cropped to obtain the atomic image.

[0111] It should be noted that this embodiment uses a quantum gas microscope to perform single-grid-point-resolved diffraction-limited in-situ imaging of rubidium 87 atoms in a two-dimensional optical lattice system as an example. A quantum gas microscope is used to receive fluorescent photons emitted by atoms in a quantum many-body system, and a camera is used to take digital pictures. The camera takes pictures with a 16-bit bit number and a pixel number of 1024×1024. The corresponding size of a single pixel is 13μm×13μm, corresponding to a length and width of about 102nm on the atomic plane. The brightness of each pixel is stored in the computer in the form of a floating-point value, and MATLAB software is used for subsequent processing. In the experiment, we usually only care about the area near the center of the optical lattice, corresponding to the ROI (region of interest) area in the picture. The ROI pixel range selected in this embodiment is [590±100,614±100]. The digitized picture is cropped according to the ROI area to obtain an atomic image.

[0112] It should also be noted that the rubidium 87 atoms are located in a vacuum cavity, and two red detuned laser beams are fired in the x and y directions respectively, interfering to form a two-dimensional standing wave field. Due to the Stark effect, the antinodes of the standing wave field are the lowest potential energy points felt by the rubidium 87 atoms. Therefore, the cooled rubidium 87 atoms are bound to these antinodes to form a square lattice similar to a two-dimensional crystal structure, that is, an optical lattice, with a lattice constant (the spacing between the lattice points where adjacent atoms are located) of 630nm. The rubidium 87 atoms emit fluorescent photons with a wavelength of 780nm through the D2 line transition. The optical lattice potential well where the atoms are located is much larger than the atomic recoil energy. Only atoms occupying the same lattice position will undergo light contraction collision scattering, resulting in the loss of atoms in pairs (Parity Loss). In the end, the number of atoms remaining at each lattice point is the result of the initial atomic number modulo 2, that is, for lattice points with an odd initial filling number, 1 atom is retained during imaging; for atoms with an even initial filling number, 0 atoms are retained during imaging. The number of atoms recorded in the image at each grid point is either 1 or 0. Therefore, when taking images using the principle of atomic fluorescence imaging, there is only 1 or 0 atom at each grid point during imaging.

[0113] S102. Obtain an atomic sample image based on a pre-prepared atomic sample, and determine spatial structure information of a grid that can be occupied by atoms in the atomic sample image; wherein the grid is a grid composed of first azimuth grid lines and second azimuth grid lines; the spatial structure information includes a grid point azimuth and a grid point spacing; the grid point azimuth includes a first grid point azimuth and a second grid point azimuth; the grid point spacing includes a first grid point spacing and a second grid point spacing; the first grid point azimuth is the angle between the first azimuth grid line and the horizontal direction; the second grid point azimuth is the angle between the second azimuth grid line and the horizontal direction; the first grid point spacing is the spacing between the first azimuth grid lines; the second grid point spacing is the spacing between the second azimuth grid lines.

[0114] It should be noted that a sparsely filled atomic sample is prepared in advance using a superlattice system, and only one atom is retained in each 2×2 square column (plaquette) composed of long and short lattices to ensure that the distance between isolated atoms is greater than two lattice points, and an atomic sample image of the atomic sample is obtained through a microscope. The spatial structure information of the grid that the atoms in the atomic sample image can occupy is determined. The grid takes two-dimensional translational symmetry lattices as an example, including but not limited to square grids, triangular grids, hexagonal grids and other grid configurations. Among them, the spatial structure information includes lattice azimuths and lattice spacings; the lattice azimuths include the first lattice azimuth Ang1 and the second lattice azimuth Ang2; the lattice spacings include the first lattice spacing g1 and the second lattice spacing g2; such as Figure 2As shown, Ang1 is the angle between the first azimuth grid line and the horizontal direction; Ang2 is the angle between the second azimuth grid line and the horizontal direction; g1 is the spacing between the first azimuth grid lines; g2 is the spacing between the second azimuth grid lines.

[0115] Optionally, in another embodiment of the present application, an implementation of step S102 is as follows: Figure 3 As shown, it may include:

[0116] S301, screening out isolated atoms in the atomic sample image.

[0117] It should be noted that the atomic image may contain multiple atoms, and the isolated atoms in the atomic sample image are first screened out.

[0118] Optionally, in another embodiment of the present application, an implementation of step S301 may include:

[0119] The atomic sample image is brightness adjusted and binarized, and the area of ​​each highlighted single-connected region in the atomic sample image is calculated.

[0120] The highlighted simply connected regions whose areas meet the preset range are regarded as isolated atoms.

[0121] It should be noted that the atomic sample image is first normalized for brightness, then binarized using the Otsu threshold algorithm, and the area opening algorithm is used to blur out the stray noise points with less than 10 pixels. Figure 4 The black and white image shown. Calculate the area S of each highlighted single connected region i , and retain the area S i Satisfy the given threshold condition S min i max The highlighted simply connected region is regarded as an isolated atom, where S min , S max Given by known experimental conditions, for example, retaining the highlighted simply connected area S i In the 8-connected region between [5,40] pixels, such as Figure 5 As shown in the figure. The star marks the centroid position of the connected region. The area of ​​some connected regions falls outside the range of [5,40], and the centroids of these regions are not identified and recorded. According to experimental experience, it is more appropriate to use [5,40] pixels as the selection range. Although some possible isolated atoms will be excluded, it will also reduce noise interference. In addition, in the process of lattice reconstruction, it is not necessary to identify each isolated atom with high fidelity. It is only necessary to give the most accurate coordinates of isolated atoms to fit the grid point spacing and azimuth.

[0122] ​​S302. For each isolated atom, calculate the center position coordinates of the isolated atom.

[0123] It should be noted that for each isolated atom corresponding to a single connected region, the brightness distribution of each pixel in the region in the atomic sample image is fitted with the centroid of the connected region as the center. For example, the brightness value of the region with a radius of 9 pixels is Gaussian fitted, and the pixel point corresponding to the fitting peak is taken as the coordinate of the center position of the isolated atom (x i ,y i ),like Figure 6 shown.

[0124] S303. For any two isolated atoms, calculate the vector distance between every two isolated atoms.

[0125] It should be noted that for any two isolated atoms, the vector distance Δ between each two isolated atoms is calculated. ij , where the vector distance can be calculated as follows:

[0126]

[0127] S304: Based on a plurality of preset trial angles, for each trial angle, calculate the projection length of each segment of the vector distance at the current trial angle.

[0128] It should be noted that the exact value of the grid point azimuth (Ang1 is taken as an example below, and the same is true for Ang2) is not known in advance, but only a rough range [Ang1', Ang1''] is known. Therefore, a series of scattered points are taken within this range to test one by one to obtain the value of Ang1 with the best fitting effect. For example, given the number of trial steps (N+1), the trial angle of Ang1 is {θ k |k=0,1,2...,N},θ k =Ang1'+(Ang1''-Ang1'')*k / N∈[Ang1',Ang1'']. For each trial angle θ k , Δ ij Projected to the angle θ k The current trial angle θ is obtained from the direction k The projected length of each vector distance is:

[0129]

[0130] S305 , based on the projection length at each trial angle, generating a projection length spectrum diagram corresponding to each trial angle.

[0131] It should be noted that the frequency of the projection length at each trial angle is counted, such as Figure 7The frequency histogram of the projection length of the vector distance between atoms under Ang1 and the frequency histogram of the projection length of the vector distance between atoms under Ang2 are shown; the horizontal axis is the projection length of the interatomic distance, and the vertical axis is the frequency count of the projection length value. Then the frequency statistics data is Fourier transformed, as shown in Figure 8 The Fourier transform spectrum of the vector distance projection length shown in the figure and the Fourier transform spectrum of the vector distance projection length of Ang2; the ordinate is the normalized amplitude and the abscissa is f(1 / a latt ) - frequency (the inverse of the grid spacing).

[0132] S306. Obtain a score value for each trial angle based on the projection length spectrum graph.

[0133] It should be noted that for each trial angle, the height of the first peak in the projection length spectrum is used as the score value score (θ k ). Ideally, when the test angle θ k and the actual grid point azimuth Ang 1;2 The vector distance between atoms is θ k The projection length under θ should be a discrete arithmetic distribution, and its frequency statistics are δ functions with the same spacing, corresponding to periodic peaks on the Fourier spectrum, and the height of the first peak should be close to 1. In actual situations, the actual occupied position of the atom will deviate slightly from the grid point, and the fitting error needs to be considered, so the fitting θ k and score(θ k ), take θ k ~score(θ k ) The corresponding θ at the extreme value of the curve k As the grid point azimuth Ang 1;2 , and repeat the trial and fitting process several times to achieve a higher degree of reliability.

[0134] S307: Using the trial angle corresponding to the maximum score value as the initial grid point azimuth, and using the shortest projection length of the trial angle corresponding to the maximum score value as the initial grid point spacing.

[0135] It should be noted that the scoring curve is as follows Fig. 9 The scoring curve of Ang1 when the fitting angle is 22.2950°, and the scoring curve of Ang2 when the fitting angle is 112.9394° are shown; the ordinate is the score, the abscissa is the fitting angle, the dotted line is the preliminary trial angle-score curve, and the solid line is the second trial angle-score curve and the result after Gaussian fitting.

[0136] S308. Based on the initial grid azimuth and initial grid spacing, isolated atoms that meet the preset conditions are eliminated, and for the isolated atoms that are not eliminated, the process returns to execute for each isolated atom, and the coordinates of the center position of the isolated atom are calculated, until the number of cycles reaches the preset number, and the grid azimuth and grid spacing are obtained.

[0137] It should be noted that the initial grid point azimuth and initial grid point spacing are used to attempt grid reconstruction and generate a grid, such as Fig.10 As shown in the figure, the selected reference point is the atomic coordinate of the center of the atomic sample image. The circle in the center of each grid in the figure is the grid point position, and the black dot is the atomic position. There is a slight offset between the two. And get the position coordinates of each grid point (sx i ,sy i ). Isolated atoms far from the grid points are removed, and for the isolated atoms that are not removed, steps S302 to S308 are executed again until the number of cycles reaches the preset number, and the current initial grid point azimuth and initial grid point spacing are used as the final grid point azimuth and grid point spacing to obtain grid point azimuth Ang1, Ang2 values ​​and grid point spacing g1, g2 values ​​that are closer to the actual values. Similarly, Fig.11 , Fig.12 , Fig.13 They are respectively the frequency bar graph, Fourier spectrum graph, and scoring curve graph of the atomic vector distance projection length in the second angle test. Compared with the previous one, the peak of the projection length bar graph is sharper and closer to the equidistant delta function. The relative high end of the first peak of the Fourier spectrum graph is closer to 1, and the result of the azimuth test is more reliable. The final Ang1 and Ang2 are 22.3670° and 112.8729°, g1 and g2 are 6.1867 and 6.2728 pixels, and the reconstructed grid is as follows: Fig.14 As shown, the circles and black dots in the figure basically completely overlap, indicating that the grid positions are aligned with the atomic positions more accurately.

[0138] Optionally, in another embodiment of the present application, an implementation of step S308 may include:

[0139] Based on the initial grid point azimuth and the initial grid point spacing, an initial grid is generated, and the position coordinates of each grid point in the initial grid are obtained.

[0140] The Euclidean distance between each grid point in the initial grid and the corresponding isolated atom is calculated, and isolated atoms whose Euclidean distance is not less than a preset threshold are eliminated.

[0141] It should be noted that the initial grid is generated based on the initial grid point azimuth and initial grid point spacing, and the position coordinates of each grid point (sx i ,sy i ), (sx i ,syi ) and the center position coordinates (x i ,y i ) are compared, and after deducting the global vector translation, isolated atoms whose Euclidean distance to the nearest neighbor grid point is not less than the threshold P are eliminated, and only isolated atoms whose Euclidean distance to the nearest neighbor grid point is less than the threshold P are retained. Among them, P is set by the experimental parameters and the required accuracy of grid reconstruction. For example, isolated atoms whose position coordinates deviate from the nearest neighbor grid point in the grid by more than ±0.6 pixels in the x and y directions are eliminated.

[0142] If the prepared atomic sample, the aforementioned image processing and fitting process are perfect and without deviation, then the grid points reconstructed in step 308 should correspond to the atomic positions one by one or at most there is a global translation. However, in fact, the deviation of atoms from the grid points, the defocus of atoms, the misjudgment of atomic occupancy caused by selecting threshold conditions, the fitting error when obtaining the atomic position coordinates, etc., will lead to the peak broadening of the frequency statistics graph and the Fourier transform spectrum graph, reducing the azimuth angle Ang 1;2 The accuracy of the trial results will cause local deviations between the reconstructed grid points and the atomic positions. Therefore, after deducting the average global translation vector of all atoms, atoms that deviate too far from the grid points are removed, and then the angle trial and grid point reconstruction process are performed again to obtain more accurate results.

[0143] S103, obtaining the point spread function of the microscope.

[0144] It should be noted that after determining the spatial structure information of the grid that atoms in the atomic sample image can occupy, the point spread function of the quantum gas microscope is obtained. Among them, for the optical system, the three-dimensional light intensity distribution of a point light source on the object surface through the optical system is called the point spread function (PSF). Due to the wave nature of light and its interaction with the optical system it passes through, the incident light is diffracted or scattered, resulting in a diffraction limit, that is, the ideal point on the object surface is no longer an ideal point on the image plane. Mathematically, a point light source can be represented by a delta function (pulse), and the light intensity distribution of the output image is called an impulse response, so the point spread function is the impulse response function of the optical system, which is an objective and quantitative evaluation indicator of the imaging performance of an optical system.

[0145] Optionally, in another embodiment of the present application, an implementation of step S103 may include:

[0146] For isolated atoms that are not eliminated, the radial distribution of the brightness of the isolated atoms that are not eliminated is statistically analyzed and fitted with a two-dimensional Gaussian function to obtain the point spread function of the microscope.

[0147] It should be noted that for isolated atoms that are not eliminated, the radial distribution of their brightness I is first counted, and then the point spread function is fitted according to the two-dimensional Gaussian function to obtain the point spread function of the quantum gas microscope, and the resolution of the quantum gas microscope can also be obtained, such as Fig.15 As shown, the resolution, i.e. the full width at half maximum of the Gaussian function, is 576nm. Among them, the atom can be regarded as a point light source. When the point light source is imaged by an aberration-free system, the radial distribution of the light intensity is in the form of an Airy function:

[0148]

[0149] J1 is a first-order Bessel function. Actual microscopes have certain aberrations, and the light intensity distribution obtained by imaging a point light source is called a point spread function (PSF). The resolution of an actual system can be defined as the radius of the PSF main peak. The better the imaging effect, the closer the PSF function is to the ideal Airy function, the smaller the resolution is, and it eventually approaches the diffraction limit. According to the Strehl criterion or the Maréchal criterion, a Strehl ratio exceeding 80% can be regarded as diffraction-limited imaging. At this time, the two-dimensional Gaussian function can better fit the PSF function, and the full width at half maximum of the function can be defined as the resolution.

[0150] S104 . Generate an occupancy distribution image of atoms in the atomic image on the grid based on the spatial structure information and the point spread function.

[0151] It should be noted that based on Ang1, Ang2, g1, g2 and point spread function PSF, the occupancy distribution of atoms at the two-dimensional translationally symmetric grid points is reconstructed in real time, the position coordinates of each grid point in the picture and the position coordinates of each atom in the picture are obtained, and the occupancy of atoms on each grid point is counted. Finally, a clear atomic image of the occupancy distribution image of atoms on the grid is generated, which can truly image each atom clearly and achieve in-situ imaging at the diffraction limit level of single grid point resolution.

[0152] In an image processing method provided in an embodiment of the present application, an atomic image to be processed is first obtained; wherein the atomic image is an image obtained using a microscope. Then, an atomic sample image is obtained based on a pre-prepared atomic sample, and the spatial structure information of the grid that the atoms in the atomic sample image can occupy is determined, and the point spread function of the microscope is obtained, wherein the grid is a grid composed of a first orientation grid line and a second orientation grid line; the spatial structure information includes the grid point azimuth and the grid point spacing. Finally, based on the spatial structure information and the point spread function, an occupation distribution image of the atoms in the atomic image on the grid is generated. It can be seen that, using the method of the present application, for the atomic image to be processed, the occupation distribution of the atoms on the grid is reconstructed in real time by obtaining the spatial structure information of the grid and the point spread function of the microscope, thereby obtaining the atomic occupation distribution information on the grid, and finally generating a clear atomic image The image of the occupation distribution of the atoms on the grid is generated, and each atom can be clearly imaged, and the in-situ imaging of the diffraction limit level of single grid point resolution is realized. It solves the problem that the prior art cannot achieve near-diffraction limit level imaging of atoms.

[0153] Optionally, in another embodiment of the present application, an implementation of step S104 is as follows: Fig.16 As shown, it may include:

[0154] S1601. Perform full-image deconvolution processing on the atomic image using a point spread function to obtain a deconvoluted image.

[0155] It should be noted that the application of PSF function to atomic images (such as Fig.17As shown in the figure, deconvolution is performed to obtain a clearer and smoother image than before. In this embodiment, the deconvolution process uses the total variation Richard-Lucy algorithm. Usually, there is noise in quantum many-body systems and the noise distribution cannot be predicted, which causes the failure of simple inverse filtering algorithm and Wiener filtering algorithm in the deconvolution process. The Richardson-Lucy algorithm obtains the likelihood function of the entire image according to the Poisson distribution, maximizes the likelihood function, and reconstructs the image. Although it can cope with most noise situations (such as Poisson noise, Gaussian noise, etc.), in the actual imaging process, there are brightness differences between atoms, and the iterative process of the algorithm has a significant gain on noise. The processed image will have more pseudo structures, and it is difficult to distinguish whether there are grid points occupied by atoms. The total variation Richard-Lucy algorithm adds total variation constraints on the basis of the Richardson-Lucy algorithm. Its core idea is based on the following two facts: First, the image restored by a smooth object should also be smooth; second, the smaller the derivative modulus, the smoother the image; therefore, the modulus of the derivative is put into the likelihood function as a constraint to solve the extreme value. Compared with the original Richardson-Lucy algorithm, adding the total variation constraint can obtain a more uniform image and lower noise, and the algorithm performance is greatly improved.

[0156] When noise is not considered, the image function g(x,y) in real space is the result of the convolution operation of the physical function f(x,y) and the point spread function PSF(x,y): g(x,y)=f(x,y) PSF. Deconvolution operation is to invert the above formula when the PSF function is known to obtain the physical function f(x,y). In actual systems, due to the presence of noise, the inversion operation becomes more complicated and requires the use of a series of algorithms, such as inverse filtering algorithm, Wiener filtering algorithm, Richardson-Lucy algorithm, etc.

[0157] S1602. Obtain the position coordinates of isolated atoms in the deconvoluted image.

[0158] It should be noted that atoms may be arranged adjacent to each other in the image, and the position coordinates (x i ,y i ) is more difficult. The specific method is to process the image with Gaussian filtering, and then filter out the single-connected area between [10,35] pixels to find the centroid position. Then, with the centroid as the center, the points where the sum of the brightness of each pixel in the range (x±2, y±2) is greater than the sum of the brightness of each pixel in the range (x±3, y±3) by more than 0.6 are identified as isolated atoms without adjacent atoms. Further, the center coordinates of the isolated atoms are found by Gaussian fitting near the corresponding centroid, as shown in Fig.18 As shown, a total of 50 isolated atoms were found, and the black dots are the centers of isolated atoms obtained by Gaussian fitting.

[0159] In experiments, atoms are often densely arranged, and the minimum spacing between atoms is close to the diffraction limit. The light spots formed by adjacent atoms in the photo are difficult to be processed into separate connected areas, which makes it difficult to find the atomic position and align the grid. Therefore, we first find isolated atoms without adjacent atoms in the image, use these atoms to align the grid, and then identify the occupied atoms from the reconstructed grid points with a certain brightness threshold, which can greatly improve the accuracy.

[0160] S1603. Use the position coordinates of each isolated atom as grid coordinates, and establish a trial grid based on the grid azimuth and grid spacing.

[0161] It should be noted that the position coordinates (x i ,y i ), take it as the grid coordinate, and move to Ang 1= 22.3670° and Ang2=112.8729° directions, generate a trial grid with g1=6.1867 pixels and g2=6.2728 pixels as intervals, and read all grid point coordinates (sx i;j ,sy i;j ).

[0162] S1604. Filter out the best reference atoms in the trial grid.

[0163] It should be noted that the generated trial grid is scored and the best reference atom is selected. i;j ,sy i;j ) as the center, sum the brightness values ​​of the nearby ±r pixels to get the average brightness I at the grid point j ; to I j The frequency of the values ​​is counted to obtain two peaks, the dark part and the bright part; the second peak is fitted and its height is used as the score score(i); the atom (x i ,y i ) as the reference point. For example, the brightness within ±20 pixels around each grid point is summed, the frequency histogram is statistically analyzed, Gaussian fitting is performed on the peak in the highlight area, and the peak height is taken as the score. Finally, the isolated atom at [106.0000, 83.5000] with the highest score is selected, which is the reference point used for the formal grid reconstruction later.

[0164] S1605. Establish a grid with the best reference atom as the reference point, and read the coordinates of all grid points in the grid.

[0165] It should be noted that the grid is established with the best reference atom as the reference point, and the coordinates of all grid points in the grid are read (sx i ,syi ),like Fig.19 As shown, the vertices where the white lines intersect are the grid points.

[0166] S1606, determining the grid points occupied by atoms in the grid, and generating an occupation distribution image of the atoms in the atomic image on the grid.

[0167] It should be noted that the brightness values ​​of ±r pixels near the grid point position coordinates obtained in step S1605 are summed to obtain the average brightness I of the grid point. i . to I i The values ​​of are counted for frequency, and two peaks of dark and bright parts are obtained; the appropriate brightness value I between the two peaks is selected th As the judgment threshold. Average brightness I i Less than I th The grid points are assumed to be unoccupied by atoms; the average brightness I i Greater than I th The grid points are considered to be occupied by atoms; for the points falling on I th The nearby grid points can be manually inspected point by point to determine whether there are atoms occupying them. For example, the brightness within the range of ±20 pixels near each grid point is summed, the frequency histogram is statistically analyzed, and the brightness threshold between the two peaks is calculated using the Otsu algorithm, such as Fig. 20 As shown in the figure, the threshold is marked as a dotted line. Grid points below the threshold are considered to have no atoms, and grid points above the threshold are considered to have atoms. A total of 61 occupied atoms were identified. The grid points marked with atoms are finally obtained as follows Fig.21 The processed image shown. Compared with the original image ( Fig.17 ) compared with the original image, there are 63 occupied atoms identified by the naked eye in the original image, of which 61 atoms overlap with the positions of the 61 atoms identified in the processed image, and the fidelity of the image after imaging is about 96.8%. In actual experiments, the overall fidelity of this imaging method can meet experimental requirements.

[0168] It should also be noted that the selection of I i The appropriate threshold I between the two peaks of the frequency statistics graph th , based on the threshold I th It can accurately distinguish the grid point i where there is (I i >I th ) or None (I i th ) There are two situations where atoms occupy the space. The brightness threshold I can be obtained by some threshold judgment algorithms. th , such as Otsu threshold algorithm.

[0169] Another embodiment of the application also provides an image processing device, such as Fig. 22 As shown, specifically including:​

[0170] The first acquisition unit 2201 is used to acquire the atomic image to be processed; wherein the atomic image is an image obtained by using a microscope.

[0171] The determination unit 2202 is used to obtain an atomic sample image based on a pre-prepared atomic sample, and determine the spatial structure information of a grid that can be occupied by atoms in the atomic sample image; wherein the grid is a grid composed of first azimuth grid lines and second azimuth grid lines; the spatial structure information includes a grid point azimuth and a grid point spacing; the grid point azimuth includes a first grid point azimuth and a second grid point azimuth; the grid point spacing includes a first grid point spacing and a second grid point spacing; the first grid point azimuth is the angle between the first azimuth grid line and the horizontal direction; the second grid point azimuth is the angle between the second azimuth grid line and the horizontal direction; the first grid point spacing is the spacing between the first azimuth grid lines; the second grid point spacing is the spacing between the second azimuth grid lines.

[0172] The second acquisition unit 2203 is used to acquire the point spread function of the microscope.

[0173] The generating unit 2204 is used to generate an occupancy distribution image of atoms in the atomic image on the grid based on the spatial structure information and the point spread function.

[0174] In the embodiment, the specific execution process of the first acquisition unit 2201, the determination unit 2202, the second acquisition unit 2203, and the generation unit 2204 can be found in the corresponding Figure 1 The content of the method embodiment will not be repeated here.

[0175] In an image processing device provided by an embodiment of the present application, first, a first acquisition unit 2201 acquires an atomic image to be processed; wherein the atomic image is an image obtained using a microscope. Then, a determination unit 2202 obtains an atomic sample image based on a pre-prepared atomic sample, and determines the spatial structure information of the grid that the atoms in the atomic sample image can occupy, and a second acquisition unit 2203 acquires the point spread function of the microscope, wherein the grid is a grid composed of a first orientation grid line and a second orientation grid line; the spatial structure information includes the grid point azimuth and the grid point spacing. Finally, a generation unit 2204 generates an occupation distribution image of atoms in the atomic image on the grid based on the spatial structure information and the point spread function. It can be seen that, using the method of the present application, for the atomic image to be processed, the occupation distribution of atoms on the grid is reconstructed in real time by acquiring the spatial structure information of the grid and the point spread function of the microscope, thereby obtaining the atomic occupation distribution information on the grid, and finally generating a clear atomic image The image of the occupation distribution of atoms on the grid is generated, which can truly image each atom clearly and achieve in-situ imaging at the diffraction limit level of single grid point resolution. The problem that the existing technology cannot achieve imaging of atoms at a level close to the diffraction limit is solved.

[0176] Optionally, in another embodiment of the present application, an implementation of the first acquisition unit 2201 may include:

[0177] The first generating subunit is used for receiving the fluorescent photons emitted by the atoms in the quantum many-body system by using a microscope and generating a digital picture.

[0178] The cropping subunit is used to crop the digitized image in a certain area to obtain an atomic image.

[0179] In this embodiment, the specific execution process of the first generating subunit and the cutting subunit can be found in the corresponding method embodiment content above, and will not be repeated here.

[0180] Optionally, in another embodiment of the present application, an implementation of the above-mentioned determining unit 2202 may include:

[0181] The first screening subunit is used to screen out isolated atoms in the atomic sample image.

[0182] The first calculation subunit is used to calculate the center position coordinates of each isolated atom.

[0183] The second calculation subunit is used to calculate the vector distance between any two isolated atoms.

[0184] The third calculation subunit is used to calculate the projection length of each segment of the vector distance at the current trial angle for each trial angle based on the preset multiple trial angles.

[0185] The second generating subunit is used to generate a projection length spectrum diagram corresponding to each trial angle based on the projection length at each trial angle.

[0186] The first acquisition subunit is used to acquire the score value of each trial angle based on the projection length spectrum diagram.

[0187] The first determination subunit is used to use the trial angle corresponding to the maximum score value as the initial grid point azimuth, and use the shortest projection length of the trial angle corresponding to the maximum score value as the initial grid point spacing.

[0188] The loop subunit is used to eliminate isolated atoms that meet the preset conditions based on the initial grid point azimuth and the initial grid point spacing, and for the isolated atoms that are not eliminated, return to execute for each isolated atom, calculate the center position coordinates of the isolated atom, until the number of cycles reaches the preset number, and the grid point azimuth and grid point spacing are obtained.

[0189] In the embodiment, the specific execution process of the first screening subunit, the first calculating subunit, the second calculating subunit, the third calculating subunit, the second generating subunit, the first acquiring subunit, the first determining subunit and the looping subunit can be referred to in the corresponding Figure 3 The content of the method embodiment will not be repeated here.

[0190] Optionally, in another embodiment of the present application, an implementation of the first screening subunit may include:

[0191] The fourth calculation subunit is used to adjust the brightness and perform binarization processing on the atomic sample image, and calculate the area of ​​each highlighted single-connected region in the atomic sample image.

[0192] The second determination subunit is used to regard the highlighted simply connected region whose area meets the preset interval as an isolated atom.

[0193] In this embodiment, the specific execution process of the fourth calculation subunit and the second determination subunit can refer to the corresponding method embodiment content above, which will not be repeated here.

[0194] Optionally, in another embodiment of the present application, an implementation of the above-mentioned circulation subunit may include:

[0195] The second acquisition subunit is used to generate an initial grid based on the initial grid point azimuth and the initial grid point spacing, and to acquire the position coordinates of each grid point in the initial grid.

[0196] The elimination subunit is used to calculate the Euclidean distance between each grid point in the initial grid and the corresponding isolated atom, and eliminate the isolated atoms whose Euclidean distance is not less than a preset threshold.

[0197] In this embodiment, the specific execution process of the second acquisition subunit and the elimination subunit can refer to the corresponding method embodiment content above, which will not be repeated here.

[0198] Optionally, in another embodiment of the present application, an implementation of the second acquisition unit 2203 may include:

[0199] The fitting subunit is used to calculate the radial distribution of the brightness of the isolated atoms that are not eliminated, and to fit them according to a two-dimensional Gaussian function to obtain the point spread function of the microscope.

[0200] In this embodiment, the specific execution process of the fitting subunit can refer to the corresponding method embodiment content above, which will not be repeated here.

[0201] Optionally, in another embodiment of the present application, an implementation of the above-mentioned generating unit 2204 may include:

[0202] The processing subunit is used to perform full-image deconvolution processing on the atomic image using a point spread function to obtain a deconvolved image.

[0203] The third acquisition subunit is used to acquire the position coordinates of isolated atoms in the deconvolution image.

[0204] A subunit is established to use the position coordinates of each isolated atom as grid coordinates, and a trial grid is established according to the grid azimuth and grid spacing.

[0205] The second screening subunit is used to screen out the best reference atoms in the trial grid.

[0206] The read subunit is used to establish a grid with the best reference atom as the reference point and read the coordinates of all grid points in the grid.

[0207] The third generating subunit is used to determine the grid points occupied by atoms in the grid and generate an occupation distribution image of the atoms in the atomic image on the grid.

[0208] In the embodiment, the specific execution process of the processing subunit, the third acquisition subunit, the establishment subunit, the second screening subunit, the reading subunit and the third generation subunit can be referred to in the corresponding Figure 3 The content of the method embodiment will not be repeated here.

[0209] Another embodiment of the application also provides an electronic device, such as Fig.23 As shown, specifically including:

[0210] One or more processors 2301.

[0211] The storage device 2302 stores one or more programs.

[0212] When one or more programs are executed by one or more processors 2301 , the one or more processors 2301 implement any one of the methods in the above embodiments.

[0213] Another embodiment of the present application further provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the methods in the above embodiments is implemented.

[0214] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0215] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0216] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for image processing, characterized in that: include: Acquire an atomic image to be processed; wherein the atomic image is an image obtained using a microscope; An atomic sample image is obtained based on a pre-prepared atomic sample, and the atomic sample image is brightness normalized, the atomic sample image after brightness normalization is binarized using an Otsu threshold algorithm, and the stray noise points with less than 10 pixels in the atomic sample image after binarization are blurred using an area opening algorithm to obtain a black-and-white image, and the area of ​​each highlighted single-connected region in the black-and-white image is calculated, and the highlighted single-connected region whose area meets a preset interval is taken as an isolated atom, wherein the distance between the isolated atoms is greater than 2 grid points; For each of the isolated atoms, calculating the center position coordinates of the isolated atom; For any two of the isolated atoms, calculating the vector distance between each two of the isolated atoms; Based on a plurality of preset trial angles, for each of the trial angles, calculating the projection length of each segment of the vector distance at the current trial angle; Based on the projection length at each of the trial angles, generating a projection length spectrum graph corresponding to each of the trial angles; Based on the projection length spectrum graph, obtaining a score value for each of the trial angles; The trial angle corresponding to the maximum score value is used as the initial grid point azimuth, and the shortest projection length of the trial angle corresponding to the maximum score value is used as the initial grid point spacing; Based on the initial grid point azimuth and the initial grid point spacing, isolated atoms that meet the preset conditions are eliminated, and for the isolated atoms that are not eliminated, the process of calculating the center position coordinates of each isolated atom is returned to be executed until the number of cycles reaches the preset number, and the spatial structure information of the grid that the atom can occupy is obtained, and the spatial structure information includes the grid point azimuth and the grid point spacing; wherein the grid is a grid composed of a first azimuth grid line and a second azimuth grid line; the grid point azimuth includes a first grid point azimuth and a second grid point azimuth; the grid point spacing includes a first grid point spacing and a second grid point spacing; the first grid point azimuth is the angle between the first azimuth grid line and the horizontal direction; the second grid point azimuth is the angle between the second azimuth grid line and the horizontal direction; the first grid point spacing is the spacing between the first azimuth grid lines; the second grid point spacing is the spacing between the second azimuth grid lines; obtaining a point spread function of the microscope; Performing full-image deconvolution processing on the atomic image using the point spread function to obtain a deconvolved image, wherein the full-image deconvolution processing uses a total variation Richard-Lucy algorithm; Performing Gaussian filtering on the deconvolution image, screening out a simply connected region with an area between [10, 35] pixels in the processed image, determining the centroid position in the simply connected region, taking the centroid position as the center, identifying the point where the sum of the brightness of each pixel in the range of (x±2, y±2) is greater than the sum of the brightness of each pixel in the range of (x±3, y±3) by more than 0.6 as an isolated atom without adjacent atoms, and determining the position coordinates of the isolated atom based on the centroid position and the Gaussian fitting algorithm; Taking the position coordinates of each of the isolated atoms as grid point coordinates, and establishing a trial grid according to the grid point azimuth and the grid point spacing; Taking the grid point coordinate as the center, summing the brightness values ​​of nearby pixels to obtain the average brightness at the grid point coordinate, performing frequency statistics on the average brightness value to obtain a frequency histogram, performing Gaussian fitting on the frequency histogram to obtain a score value, and taking the isolated atom with the highest score value as the best reference atom; Establishing the grid with the best reference atom as a reference point, and reading the coordinates of all grid points in the grid; The brightness values ​​of ±r pixels near the coordinates of the grid point are summed to obtain the average brightness of the grid point, and the frequency statistics of the average brightness value are performed to obtain two peaks of dark and bright parts. The brightness threshold between the two peaks is calculated using the Otsu algorithm, and the grid points occupied by atoms in the grid are determined based on the brightness threshold, and an occupation distribution image of atoms in the atomic image on the grid is generated.

2. The method according to claim 1, characterized in that The step of obtaining the atomic image to be processed comprises: Use a microscope to receive fluorescent photons emitted by atoms in a quantum many-body system and generate digital images; The digitized image is subjected to regional cropping to obtain the atomic image.

3. The method according to claim 1, characterized in that: The step of removing isolated atoms that meet preset conditions based on the initial lattice point azimuth and the initial lattice point spacing includes: Based on the initial grid point azimuth and the initial grid point spacing, an initial grid is generated, and the position coordinates of each grid point in the initial grid are obtained; The Euclidean distance between each grid point in the initial grid and the corresponding isolated atom is calculated, and isolated atoms whose Euclidean distance is not less than a preset threshold are eliminated.

4. The method according to claim 1, characterized in that: The step of obtaining the point spread function of the microscope comprises: For the isolated atoms that are not eliminated, the radial distribution of the brightness of the isolated atoms that are not eliminated is statistically analyzed, and fitting is performed according to a two-dimensional Gaussian function to obtain the point spread function of the microscope.

5. An image processing device, characterized in that: include: A first acquisition unit is used to acquire an atomic image to be processed; wherein the atomic image is an image obtained by using a microscope; A determination unit, used to obtain an atomic sample image based on a pre-prepared atomic sample, and determine spatial structure information of a grid that can be occupied by atoms in the atomic sample image; wherein the grid is a grid composed of first azimuth grid lines and second azimuth grid lines; the spatial structure information includes a grid point azimuth and a grid point spacing; the grid point azimuth includes a first grid point azimuth and a second grid point azimuth; the grid point spacing includes a first grid point spacing and a second grid point spacing; the first grid point azimuth is the angle between the first azimuth grid line and the horizontal direction; the second grid point azimuth is the angle between the second azimuth grid line and the horizontal direction; the first grid point spacing is the spacing between the first azimuth grid lines; the second grid point spacing is the spacing between the second azimuth grid lines; A second acquisition unit, used to acquire a point spread function of the microscope; A generating unit, configured to generate an occupancy distribution image of atoms in the atomic image on the grid based on the spatial structure information and the point spread function; The generating unit comprises: A processing subunit, used for performing full-image deconvolution processing on the atomic image using a point spread function to obtain a deconvolved image, wherein the full-image deconvolution processing process uses a total variation Richard-Lucy algorithm; The second acquisition subunit is used to perform Gaussian filtering on the deconvolution image, screen out a single connected region with an area between [10, 35] pixels in the processed image, determine the centroid position in the single connected region, and take the centroid position as the center to identify the point where the sum of the brightness of each pixel in the range of (x±2, y±2) is greater than the sum of the brightness of each pixel in the range of (x±3, y±3) by more than 0.6 as an isolated atom without adjacent atoms, and determine the position coordinates of the isolated atom based on the centroid position and the Gaussian fitting algorithm; Establishing a subunit, for taking the position coordinates of each isolated atom as the grid coordinates, and establishing a trial grid according to the grid azimuth and grid spacing; A second screening subunit is used to sum the brightness values ​​of nearby pixels with the grid point coordinate as the center to obtain the average brightness at the grid point coordinate, perform frequency statistics on the value of the average brightness to obtain a frequency histogram, perform Gaussian fitting on the frequency histogram to obtain a score value, and use the isolated atom with the highest score value as the best reference atom; A read subunit is used to establish a grid with the best reference atom as the reference point and read the coordinates of all grid points in the grid; The second generation subunit is used to sum the brightness values ​​of ±r pixels near the coordinates of the grid point to obtain the average brightness of the grid point, perform frequency statistics on the value of the average brightness to obtain two peaks of dark and bright parts, use the Otsu algorithm to find the brightness threshold between the two peaks, determine the grid points occupied by atoms in the grid based on the brightness threshold, and generate an occupation distribution image of atoms in the atomic image on the grid; The determining unit comprises: The first screening subunit is used to perform brightness normalization on the atomic sample image, perform binarization processing on the atomic sample image after brightness normalization using the Otsu threshold algorithm, blur out the stray noise points with less than 10 pixels in the atomic sample image after binarization processing using the area opening algorithm to obtain a black-and-white image, calculate the area of ​​each highlighted single-connected region in the black-and-white image, and take the highlighted single-connected region whose area meets the preset interval as an isolated atom, wherein the distance between the isolated atoms is greater than 2 grid points; A first calculation subunit is used to calculate the center position coordinates of each isolated atom; A second calculation subunit is used for calculating the vector distance between any two isolated atoms; A third calculation subunit is used to calculate the projection length of each segment of the vector distance at the current trial angle for each trial angle based on a plurality of preset trial angles; A first generating subunit is used to generate a projection length spectrum diagram corresponding to each trial angle based on the projection length at each trial angle; A first acquisition subunit is used to acquire a score value of each trial angle based on the projection length spectrum graph; A first determination subunit is used to use the trial angle corresponding to the maximum score value as the initial grid point azimuth, and use the shortest projection length of the trial angle corresponding to the maximum score value as the initial grid point spacing; The loop subunit is used to eliminate isolated atoms that meet the preset conditions based on the initial grid point azimuth and the initial grid point spacing, and for the isolated atoms that are not eliminated, return to execute for each isolated atom, calculate the center position coordinates of the isolated atom, until the number of cycles reaches the preset number, and the grid point azimuth and grid point spacing are obtained.

6. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 4.

7. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.