Aberration correction method
By generating and analyzing holograms, combining the magnification of full-field and scanning holograms, and generating compensation gratings by line-by-line scanning, the efficiency and accuracy problems of aberration correction methods in the existing technology are solved, and fast and efficient aberration correction is achieved. .
Patent Information
- Application Number
- CN202410786794.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-18
AI Technical Summary
In the existing aberration correction method, the incident light spot is not ideal, which causes the mutual coupling of Zernike polynomials to lose orthogonality, reducing the compensation effect, or requiring more time for multiple iterations, and the partitioned scanning interference method fails after the initial aberration. Large light fields may be completely staggered without interference, and consume a lot of time.
Different holograms are generated by computer and loaded into the phase map plane of the spatial light modulator. The diffraction light field image is analyzed and the overall compensation grating hologram is generated. The full-field hologram and scanning hologram are combined with the magnification measurements in the row and column directions. , generate a compensation blaze grating, scan it line by line and perform continuous processing, generate a preliminary overall compensation grating, and finally perform aberration correction.
It eliminates the need for a wavefront analyzer to measure phase distribution, simplifies the equipment, handles the problem of light field interference caused by excessive aberration between different areas, improves the speed of aberration correction, avoids additional aberration compensation systems, and is faster correction speed.
Smart Images

Figure CN118348681B
Abstract
Description
Technical Field
[0001] The invention relates to the field of optoelectronic technology, and in particular to an aberration correction method. Background Art
[0002] As an important development direction in the field of optoelectronics, structured light that customizes the amplitude and phase of light has been widely used in the fields of particle manipulation and quantum information processing. Currently, a common solution for generating structured light in the form of a light trap array is to use a liquid crystal spatial light modulator (Spatial Light Modulator, SLM) to split a single beam of collimated light into multiple beams to achieve holographic diffraction. The hologram on the liquid crystal spatial light modulator can be calculated using the Gerchberg-Saxton (GS) algorithm.
[0003] However, the Geisberg-Saxon algorithm assumes an ideal lens when calculating the hologram. In the actual optical path, there will be optical elements such as vacuum cavity walls and aspheric lenses that introduce additional optical aberrations, which ultimately cause the quality of the structured light to deviate from the expected target. Correction is required through a modulator such as an SLM superimposed compensation hologram.
[0004] There are two commonly used aberration correction methods. The first method is to use a wavefront analyzer to directly measure the aberration of the liquid crystal spatial light modulator surface and express it with orthogonal Zernike polynomials.
[0005] However, when the first method is executed, if the incident spot incident on the phase map plane is not ideal, the actual compensation Zernike polynomials will be coupled with each other and lose orthogonality, thereby reducing the compensation effect or spending more time on multiple iterations.
[0006] The second method is the partition scanning interference method. Although the partition scanning interference method uses a digital micromirror device (DMD), this compensation method can also be implemented on a liquid crystal spatial light modulator. It divides the hologram plane into many small areas, and then uses the area in the center as a reference to select another small area to produce a hologram in a blazed grating format together with the central area, while blocking other areas, and the light fields generated by the two areas will interfere. By scanning the relative phase on the two small areas, the amplitude of the light field at the center of the interference fringe will change periodically in a sinusoidal form with the phase. By fitting the sine curve, the relative aberration when the interference maximum is formed between the two areas can be obtained. Scan the position of another small area that interferes with the central area and continue to perform relative phase scanning to obtain the relative aberration of the entire holographic plane.
[0007] The main problem with the second method is that if the initial aberration is too large, the light field distribution of the two small areas may be completely offset and no interference occurs. Secondly, this method requires nested scanning, which consumes a lot of time. Summary of the invention
[0008] In view of the defects in the prior art, the present invention provides an aberration correction method which is suitable for correcting the aberration of various optical path systems that need to generate structured light with the help of a modulator.
[0009] The above-mentioned object of the present invention is achieved by the following technical solutions:
[0010] An aberration correction method, wherein different holograms generated by a computer are loaded into the phase diagram plane of a spatial light modulator, the laser output by a laser is incident on the spatial light modulator after passing through a beam expansion and collimation system, the phase-modulated light beam output by the spatial light modulator sequentially transmits a structured light path and an imaging lens to form a diffraction light field, the diffraction light field is input into an industrial camera to obtain a diffraction light field image, and the diffraction light field image is input into a computer;
[0011] The computer analyzes the diffraction light field images corresponding to different holograms and generates an overall compensation grating hologram, which is loaded into the phase map plane of the spatial light modulator to generate an overall compensation grating.
[0012] As described above, the computer analyzes the diffraction light field images corresponding to different holograms and generates an overall compensation grating hologram, and the overall compensation grating hologram is loaded into the phase image plane of the spatial light modulator, so that the phase image plane of the spatial light modulator generates an overall compensation grating, which specifically includes the following steps:
[0013] Step 1: The computer generates a set of global holograms, and loads each global hologram into the entire phase map plane of the spatial light modulator, so that the entire phase map plane of the spatial light modulator generates a corresponding global blazed grating, and the periods of the global blazed gratings corresponding to each global hologram are different; for each global hologram, the computer combines the periods of the global blazed gratings corresponding to each global hologram and the corresponding diffraction light field images to calculate the row direction magnification measurement value k x And the calculated value of the magnification in the column direction k y , to characterize the linear correspondence between the period of the global blazed grating corresponding to the global hologram and the diffraction light field offset;
[0014] Step 2, select a scanning area in the phase map plane of the entire spatial light modulator; set a scanning window and a scanning step; make the scanning window scan line by line in the scanning area with the set scanning step, and at the same time, the computer uses each scanning window to generate a corresponding scanning hologram, and loads it into the phase map plane of the spatial light modulator, and the industrial camera collects the corresponding diffraction light field image and transmits it to the computer; for the diffraction light field image corresponding to each scanning hologram, the computer uses the row direction magnification measurement value k obtained in step 1 x And the calculated value of the magnification in the column direction k y , obtaining the period of the compensating blazed grating that needs to be generated in the area corresponding to each scanning window in the phase map plane of the spatial light modulator; using the period of the compensating blazed grating that needs to be generated in the area corresponding to each scanning window, obtaining the preliminary overall compensating grating that needs to be generated in the entire phase map plane of the spatial light modulator;
[0015] Step 3, using a computer to continuously process the preliminary overall compensation grating to be generated, and calculating the overall compensation grating to be generated;
[0016] Step 4. The computer generates an overall compensation grating hologram according to the overall compensation grating to be generated, and the overall compensation grating hologram is loaded into the phase map plane of the spatial light modulator, or the overall compensation grating hologram is superimposed with the hologram to be corrected and loaded into the phase map plane of the spatial light modulator after normalization of the pixel grayscale value, and the industrial camera collects the diffraction light field image corresponding to the overall compensation grating hologram and transmits it to the computer, and the diffraction light field image after phase difference correction is displayed on the computer.
[0017] In step 1 above, for each global hologram, the computer combines the period of the global blazed grating corresponding to each global hologram and the corresponding diffraction light field image to calculate the row direction magnification measurement value k x And the calculated value of the magnification in the column direction k y , specifically including the following steps:
[0018] For each full-domain hologram, the computer uses a weighted algorithm to analyze and obtain the pixel coordinates (u c , v c ),u c and v c are the row pixel coordinates and column pixel coordinates of the center of the main maximum light spot respectively;
[0019] Fit according to the following formula to obtain the row direction magnification measurement value k x , Calculated value of magnification in column direction k y , and the pixel coordinates (u0, v0) of the center of the 0th order diffraction light spot in the diffraction light field image:
[0020] ,
[0021] ,
[0022] Wherein, u0 and v0 are the row pixel coordinates and column pixel coordinates of the center of the 0th order diffraction light spot in the diffraction light field image respectively; N x and N y are the number of row pixels and the number of column pixels in the phase image plane respectively; and They respectively represent the row direction period and column direction period of the global blazed grating corresponding to the global hologram.
[0023] The above-mentioned step 2 specifically includes the following steps:
[0024] Step 2.1, selecting a scanning area in the phase map plane of the entire spatial light modulator, forming an incident light spot on the phase map plane of the spatial light modulator after the laser is incident on the spatial light modulator, and the center of the scanning area corresponds to the center of the incident light spot on the phase map plane of the spatial light modulator;
[0025] Step 2.2: Divide the scanning area into N L ×N L The matrix grid, N L is the number of row grids and column grids in the matrix grid, and the scanning step of the scanning window is one row grid or one column grid;
[0026] Step 2.3. The scanning window is scanned line by line in the scanning area at a set scanning step. At the same time, the computer uses each scanning window to generate a corresponding scanning hologram and loads it into the phase map plane of the spatial light modulator. The industrial camera collects the corresponding diffraction light field image and transmits it to the computer. For each scanning hologram, the computer uses the row direction magnification measurement value k obtained in step 1. x And the column direction magnification calculated value k y , we can obtain the period of the compensating blazed grating that needs to be generated for each scanning window in the phase diagram plane of the spatial light modulator:
[0027] Step 2.4: When there are overlapping grids in the phase map plane of the spatial light modulator in each scanning window during the row traversal of the scanning window according to the scanning step, the average value of the period of the compensation blazed grating of each scanning window associated with each overlapping grid is calculated as the period of the grid compensation grating corresponding to the overlapping grid; when there is only one scanning window in the grid in the phase map plane of the spatial light modulator, the period of the grid compensation grating of the grid in the phase map plane of the above-mentioned spatial light modulator is the period of the compensation blazed grating of the corresponding scanning window;
[0028] By utilizing the period of the grid compensation grating corresponding to each grid in the phase diagram plane of the spatial light modulator, the grid compensation gratings that need to be generated corresponding to each grid in the phase diagram plane of the spatial light modulator are obtained, and the grid compensation gratings are spliced according to the positions of the corresponding grids to obtain the preliminary overall compensation grating that needs to be generated in the entire phase diagram plane of the spatial light modulator.
[0029] As mentioned above, step 2.3 specifically includes the following steps:
[0030] Step 2.3.1, a scanning hologram generated by a computer is loaded into the entire phase map plane of the spatial light modulator, so that the area in the phase map plane of the spatial light modulator located within the scanning window generates a scanning blazed grating of a specified period, and the grayscale value of the area outside the scanning window in the phase map plane of the spatial light modulator is 0; after the scanning hologram is loaded into the phase map plane of the spatial light modulator, a higher intensity 1st order diffraction light spot near the 0th order diffraction light spot and a lower intensity 1st order diffraction light spot next to the higher intensity 1st order diffraction light are generated on the diffraction light field image corresponding to the scanning hologram; wherein the higher intensity 1st order diffraction light spot is recorded as the main maximum light spot of the diffraction light field image corresponding to the scanning hologram, and the lower intensity 1st order diffraction light spot is recorded as the characteristic light spot;
[0031] Step 2.3.2, set the calculation area of the characteristic spot according to the following formula and the row direction magnification value k obtained in step 1 x And the column direction magnification calculated value k y , set the pixel coordinates of the center of the calculation area of the characteristic spot :
[0032] ,
[0033] ,
[0034] in, and are the row pixel coordinates and column pixel coordinates of the center of the calculation area of the characteristic light spot respectively; and are the row pixel coordinates and column pixel coordinates of the center of the 0th order diffraction light spot in the diffraction light field image; Specify the period in the row direction for scanning the blazed grating, Specifying a period in the column direction for scanning the blazed grating;
[0035] Step 2.3.3: Use a weighted algorithm to process the calculation area of the characteristic light spot in the diffraction light field image corresponding to the scanning hologram to obtain the pixel coordinates of the center of the characteristic light spot. ;
[0036] According to the following formula and the row direction magnification calculated value k obtained in step 1 x And the calculated value of the magnification in the column direction k y , calculate the period of the compensation blazed grating that needs to be generated corresponding to each scanning window:
[0037] ,
[0038] ,
[0039] in, and are the row pixel coordinates and column pixel coordinates of the center of the characteristic light spot, and are the row direction period and column direction period of the compensated blazed grating respectively.
[0040] The weighted algorithm as described above specifically includes the following steps:
[0041] Find the pixel coordinates of the brightest point in the spot center confirmation area;
[0042] Set an area within a certain range centered on the brightest point in the spot center confirmation area as the weighted average area;
[0043] Set the gray value threshold, save the pixel coordinates of the pixel points whose gray value in the weighted average area is above the gray value threshold and the corresponding pixel gray value to the set H,
[0044] The column pixel coordinates and the row pixel coordinates of each pixel point in the set H are weighted averaged to obtain the column pixel coordinates and the row pixel coordinates of the center of the corresponding central light spot to be determined;
[0045] The weight of the weighted average is the gray value of each pixel in the set H minus the background threshold A. b , background threshold A b is the minimum gray value of the pixel in the diffraction light field image;
[0046] When the main maximum light spot is used as the center light spot to be determined, the corresponding light spot center confirmation area is the entire diffraction light field image, and the center of the center light spot to be determined is the center of the main maximum light spot;
[0047] When the characteristic light spot is used as the central light spot to be determined, the corresponding light spot center confirmation area is the calculation area of the characteristic light spot, and the center of the central light spot to be determined is the center of the characteristic light spot.
[0048] The above step 3 specifically includes the following steps:
[0049] Step 3.1, selecting a grid compensation grating in a grid corresponding to the center of the incident light spot on the phase diagram plane of the incident spatial light modulator as a central grating;
[0050] Step 3.2, in the phase diagram plane of the spatial light modulator, based on the central grating, each grid compensation grating in the column where the central grating is located is continuously processed, the central grating and the grid compensation grating in the column after continuous processing are used as the row central grating corresponding to each row, and based on the row central grating, the grid compensation grating of the corresponding row is continuously processed.
[0051] As mentioned above, step 3.2 specifically includes the following steps:
[0052] Step 3.2.1: During the continuous processing of each grid compensation grating in the column where the center grating is located,
[0053] In the column direction away from the central grating, each grid compensation grating is traversed in turn:
[0054] Among them, for two grid compensation gratings adjacent to the central grating in the column direction,
[0055] The grid compensation grating adjacent to the central grating is used as the current grating to be processed, and the central grating is used as the current reference grating. With the current reference grating as a reference, an additional gray value is superimposed on the current grating to be processed as a whole;
[0056] For the grid compensation gratings that are not adjacent to the center grating in the column direction, the grid compensation grating that is adjacent to the current traversed grid compensation grating in the column direction and closer to the center grating is recorded as the column direction reference grating.
[0057] The currently traversed grid compensation grating is used as the current grating to be processed, and the corresponding column-direction reference grating is used as the current reference grating. With the current reference grating as a reference, an additional grayscale value is superimposed on the current grating to be processed as a whole;
[0058] Step 3.2.2: Based on the row center grating, each grid compensation grating of the corresponding row is continuously processed.
[0059] In the row direction away from the row center grating, each grid compensation grating of the corresponding row is traversed in turn:
[0060] Among them, for two grid compensation gratings adjacent to the row center grating in the row direction,
[0061] The grid compensation grating adjacent to the row center grating is used as the current grating to be processed, and the row center grating is used as the current reference grating. With the current reference grating as a reference, an additional gray value is superimposed on the current grating to be processed as a whole;
[0062] For the grid compensation gratings that are not adjacent to the row center grating in the row direction, the grid compensation grating that is adjacent to the row center grating of the currently traversed grid compensation grating in the row direction and closer to the row center grating is recorded as the row reference grating.
[0063] The currently traversed grid compensation grating is used as the current grating to be processed, and the corresponding row reference grating is used as the current reference grating. With the current reference grating as a reference, an additional gray value is superimposed on the current grating to be processed as a whole.
[0064] As described above, the additional grayscale value is equal to the comparison grayscale value of the current reference grating minus the comparison grayscale value of the current grating to be processed, wherein the comparison grayscale value of the current reference grating and the comparison grayscale value of the current grating to be processed are set based on the following rules:
[0065] An angle in the current reference grating adjacent to the current grating to be processed is used as the comparison angle of the current reference grating; correspondingly, an angle in the current grating to be processed adjacent to the comparison angle of the current reference grating is used as the comparison angle of the current grating to be processed; the pixel grayscale value of the pixel point at the comparison angle of the current reference grating is used as the comparison grayscale value of the current reference grating; the pixel grayscale value of the pixel point at the comparison angle of the current grating to be processed is used as the comparison grayscale value of the current grating to be processed;
[0066] Or the edge of the current reference grating adjacent to the current grating to be processed is used as the comparison edge of the current reference grating, and the edge of the current grating to be processed adjacent to the current reference grating is used as the comparison edge of the current grating to be processed; the average value of the pixel grayscale values of all pixels on the comparison edge of the current reference grating is used as the comparison grayscale value of the current reference grating; the average value of the pixel grayscale values of all pixels on the comparison edge of the current grating to be processed is used as the comparison grayscale value of the current grating to be processed.
[0067] As described above, half of the side length of the scanning area in step 2.1 is twice the Gaussian radius of the incident light spot on the phase map plane incident on the spatial light modulator.
[0068] Compared with the prior art, the present invention has the following beneficial effects:
[0069] Compared with the first method, the present invention does not need to use a wavefront analyzer to measure the phase distribution of diffracted light. The required equipment itself is also necessary for generating structured light and verifying the structured light effect. There is no need to establish an additional aberration compensation system, so it is simpler and more convenient to implement.
[0070] Compared with the second method, the present invention can also solve the problem of no interference between light fields caused by excessive aberration between different regions.
[0071] Compared with the second method, the present invention only performs position scanning instead of position-phase double-layer scanning, and the aberration correction speed is faster. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 A schematic diagram of the structure of an aberration correction device used in the present invention;
[0073] Figure 2a When the scanning hologram is loaded into the phase map plane of the spatial light modulator in step 2 of embodiment 2, the phase map plane of the spatial light modulator;
[0074] Figure 2b An image of a characteristic light spot in the diffraction light field image captured by the industrial camera in step 2 of Example 2;
[0075] Figure 2c The entire diffraction light field image corresponding to the scanning hologram collected by the industrial camera in step 2 of Example 2;
[0076] Figure 3 A schematic diagram of dividing the scanning area into a matrix grid and selecting a scanning window in step 2 of embodiment 2;
[0077] Figure 4 is an image corresponding to the weighted average area of the characteristic light spot in the diffraction light field image corresponding to the scanning hologram;
[0078] Figure 5a is the light trap array image before aberration correction;
[0079] Figure 5b is the light trap array image after aberration correction;
[0080] Among them, D1-laser, D2-beam expansion and collimation system, D3-spatial light modulator, D4-structured light path, D5-imaging lens, D6-industrial camera, and D7-computer. DETAILED DESCRIPTION
[0081] In order to make the objectives, technical solutions and advantages of the present invention clearer, thereby facilitating those skilled in the art to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. The implementation examples described herein are only used to illustrate and explain the present invention and are not intended to limit the present invention.
[0082] Example 1
[0083] An aberration correction device, such as Figure 1As shown, it includes laser D1, beam expansion and collimation system D2, spatial light modulator D3, structured light path D4, imaging lens D5, industrial camera D6 and computer D7. Computer D7 generates different holograms and loads them into the phase diagram plane of spatial light modulator D3. The laser output by laser D1 passes through beam expansion and collimation system D2 and then enters spatial light modulator D3. Spatial light modulator D3 outputs a phase-modulated light beam and sequentially transmits structured light path D4 and imaging lens D5 to form a diffracted light field. The diffracted light field is detected by industrial camera D6, and the obtained diffracted light field image is input into computer D7. Among them:
[0084] Laser D1 provides light source for aberration correction.
[0085] The beam expansion and collimation system D2 is used to expand the laser light output by the laser D1 and collimate it into parallel light of a suitable size to be incident on the spatial light modulator D3.
[0086] The spatial light modulator D3 is used to perform various forms of phase modulation on the incident parallel light and output a phase-modulated light beam.
[0087] The structured light path D4 has a vacuum cavity wall and is the object of aberration correction.
[0088] The imaging lens D5 is used to focus the light beam output from the structured light path D4.
[0089] The industrial camera D6 is used to detect the diffraction light field formed by the light beam output by the structured light path D4 after passing through the imaging lens D5.
[0090] In this embodiment, the industrial camera D6 converts the collected diffraction light field into an array-shaped electrical signal with a maximum grayscale value of 255, namely, a diffraction light field image. The industrial camera D6 can be controlled by the computer D7 to freely adjust the exposure time or magnification to ensure that the strongest point of the diffraction light field image does not reach a saturation state.
[0091] Computer D7 is used to generate different holograms and load them onto spatial light modulator D3; at the same time, computer D7 receives and analyzes the diffraction light field images corresponding to different holograms obtained by industrial camera D6 to obtain the overall compensation grating hologram required for aberration correction, so that the overall compensation grating hologram is loaded into the phase map plane of spatial light modulator D3, so that the phase map plane of spatial light modulator D3 can generate an overall compensation grating. Computer D7 performs grayscale quantization and pixel discretization in the process of calculating each hologram, and the obtained hologram is in 8-bit grayscale format, i.e., 0-255 divisions.
[0092] Example 2
[0093] An aberration correction method, using the aberration correction device described in Example 1, comprises the following steps:
[0094] Step 1: The computer D7 generates a set of global holograms, and loads each global hologram into the entire phase map plane of the spatial light modulator D3, so that the entire phase map plane of the spatial light modulator D3 generates a corresponding global blazed grating, and the periods of the global blazed gratings corresponding to each global hologram are different;
[0095] For each global hologram, the computer D7 combines the period of the global blazed grating corresponding to each global hologram and the corresponding diffraction light field image to calculate the row direction magnification measurement value k x And the calculated value of the magnification in the column direction k y , to characterize the linear correspondence between the period of the global blazed grating corresponding to the global hologram and the diffraction light field offset.
[0096] The specific process is:
[0097] Step 1.1 Computer D7 generates a set of global holograms, and loads each global hologram into the entire phase map plane of the spatial light modulator D3, so that the entire phase map plane of the spatial light modulator D3 generates a corresponding global blazed grating. The global blazed grating corresponding to each global hologram covers the entire phase map plane, and the periods of the global blazed gratings corresponding to each global hologram are different:
[0098] The number of row pixels in the phase image plane is N x , the number of column pixels in the phase map plane is N y The full-domain hologram is presented on the spatial light modulator D3 as a blazed grating, that is, the gray value of the pixel at the pixel coordinate (x, y) in the phase image plane is equal to , x∈{0,1,…N x -1},y∈{0,1,…N y -1}, where x and y are the row pixel coordinates and column pixel coordinates in the phase map plane, It means to take the remainder after dividing by 256. It is a method for normalizing the grayscale value of pixels. is rounded down. x and T y are the row direction period and column direction period of the global blazed grating corresponding to the global hologram (the unit is the number of pixels). At this time, the complex amplitude of the light field at the pixel coordinate (u, v) in the diffraction light field image is It can be expressed by the following formula, where u and v are the row pixel coordinates and column pixel coordinates of the diffraction light field image respectively:
[0099] ,
[0100] Where u0 and v0 are the row pixel coordinates and column pixel coordinates of the center of the 0th order diffraction light spot in the diffraction light field image, i is the complex number symbol, k x0 and k y0 They represent the magnification in the row direction and the magnification in the column direction respectively. Theoretically, k x0 =k y0 The loading of the global hologram on the spatial light modulator D3 will cause the main maximum spot in the corresponding diffraction light field image to shift, with the shifts in the row direction and column direction being N respectively. x / T x and N y / T y , that is, the row direction period T of the full-domain blazed grating corresponding to the full-domain hologram and the offset of the main maximum spot in the row direction x The inverse of is linearly proportional to the column direction offset of the main maximum spot and the column direction period T of the global blazed grating corresponding to the global hologram. y The reciprocal of is linearly proportional.
[0101] Step 1.2: For each global hologram, the computer D7 uses a weighted algorithm to analyze and obtain the pixel coordinates of the center of the main maximum light spot in the corresponding diffraction light field image, which is specifically achieved by the following weighted algorithm:
[0102] The entire diffraction light field image is used as the spot center confirmation area, the main maximum spot is used as the center spot to be determined, and the center of the main maximum spot is used as the center of the center spot to be determined. Then: first find the pixel coordinates of the brightest point in the spot center confirmation area, then set the area within a certain range centered on the brightest point in the spot center confirmation area as the weighted average area, set the gray value threshold, save the pixel coordinates of the pixel points in the weighted average area whose gray value is above the gray value threshold and the corresponding pixel gray value to the set H, perform weighted average on the column pixel coordinates and row pixel coordinates of each pixel point in the set H, and obtain the column pixel coordinates and row pixel coordinates of the center of the corresponding center spot to be determined; the weight of the weighted average is the gray value of each pixel point in the set H minus the background threshold A. b , background threshold A b is the minimum grayscale value of the pixel in the diffraction light field image; a more accurate pixel coordinate of the center of the main maximum spot is obtained by weighted averaging.
[0103] In this embodiment, the weighted algorithm used is: first traverse the diffraction light field image to obtain the pixel coordinates of the brightest point in the diffraction light field image (u m , v m ), the brightest point of the diffraction light field image is the pixel with the largest grayscale value, and the corresponding grayscale value of the brightest point of the diffraction light field image is recorded as Am ,u m and v m are the row pixel coordinates and column pixel coordinates of the brightest point in the diffraction light field image respectively; at the same time, the minimum gray value of the pixel point in the diffraction light field image is recorded as the background threshold A b ; Set the weighted average area, the side length of the weighted average area is L m , L m The unit is the number of pixels. The center of the weighted average area is the brightest point in the diffraction light field image. Then the gray value of the pixel point in the weighted average area is calculated. m / 2, the grayscale value of the pixels in the weighted average area is m The pixel coordinates of the pixels above / 2 and the corresponding pixel grayscale values are saved to the set H, and the side length L of the weighted average area m The weighted average area can be determined based on the size of the main maximum light spot in the diffraction light field image, so that the weighted average area covers the main maximum light spot of the diffraction light field image; the pixel coordinates (u c , v c ) satisfies the following formula:
[0104] ,
[0105] ,
[0106] Among them, u c and v c are the row pixel coordinates and column pixel coordinates of the center of the main maximum light spot respectively; N H Indicates the number of pixels in the set H; u i 、v i and A i The row pixel coordinates, column pixel coordinates and pixel grayscale value of the i-th pixel in the set H are represented respectively, i∈{1,2,…N H}; A b is the background threshold. The presence of aberration may cause spot distortion. The pixel coordinates of the center of the main maximum spot obtained by weighted calculation (u c , v c ) compared to the pixel coordinates of the brightest point in the diffraction light field image (u m , v m ) can perform more accurate positioning.
[0107] Step 1.3, combining the period of the global blazed grating corresponding to each global hologram and the pixel coordinates (u c , v c ), the computer D7 calculates the magnification value k in the row direction x And the column direction magnification calculated value ky , which is used to characterize the linear correspondence between the period of the global blazed grating corresponding to the global hologram and the diffraction light field offset. When the row direction of the global blazed grating corresponding to the global hologram is consistent with the row direction of the diffraction light field image, and the column direction of the global blazed grating corresponding to the global hologram is consistent with the column direction of the diffraction light field image, the pixel coordinate of the center of the 0th order diffraction light spot in the diffraction light field image is , the offset of the center of the main maximum spot on the diffraction light field image compared to the center of the 0th order diffraction light spot is , where the row pixel offset , column pixel offset ; The center of the main maximum light spot is offset from the center of the 0th order diffraction light spot The pixel coordinates (u c , v c ), and fit according to the following formula to obtain the row direction magnification measurement value k x , Calculated value of magnification in column direction k y , and the pixel coordinates (u0, v0) of the center of the 0th order diffraction light spot in the diffraction light field image:
[0108] ,
[0109] ,
[0110] Wherein, u0 and v0 are the row pixel coordinates and column pixel coordinates of the center of the 0th order diffraction light spot in the diffraction light field image respectively; N x and N y are the number of row pixels and the number of column pixels in the phase image plane respectively; and They represent the row direction period and column direction period of the global blazed grating corresponding to the global hologram respectively; the 0th order diffraction light spot is the inherent diffraction light spot corresponding to the structure in the phase diagram plane of the spatial light modulator D3, which has nothing to do with the loaded global hologram, so the pixel coordinate of the center of the 0th order diffraction light spot in the diffraction light field image is The period of the global blazed grating that does not correspond to the global hologram change.
[0111] Step 2, select a scanning area in the phase map plane of the entire spatial light modulator D3, set the scanning window and the scanning step, so that the scanning window is scanned line by line in the scanning area with the set scanning step until the entire scanning area is traversed; at the same time, the computer D7 uses each scanning window to generate a corresponding scanning hologram, and loads it into the phase map plane of the spatial light modulator D3, so that the area located in the scanning window in the phase map plane of the spatial light modulator D3 generates a scanning blazed grating of a specified period, and the gray value of the area outside the scanning window in the phase map plane of the spatial light modulator D3 is 0; the industrial camera D6 collects the corresponding diffraction light field image and transmits it to the computer D7; for the diffraction light field image corresponding to each scanning hologram, the computer D7 uses the row direction magnification measurement value k obtained in step 1 x And the calculated value of the magnification in the column direction k y , determine the period of the compensating blazed grating that needs to be generated in the area corresponding to each scanning window in the phase diagram plane of the spatial light modulator D3; use the period of the compensating blazed grating that needs to be generated in the area corresponding to each scanning window to obtain the preliminary overall compensating grating that needs to be generated in the entire phase diagram plane of the spatial light modulator D3. The specific process is as follows:
[0112] Step 2.1: Select a scanning area in the phase map plane of the entire spatial light modulator D3
[0113] After the laser is incident on the spatial light modulator D3, an incident light spot is formed on the phase diagram plane of the spatial light modulator D3. The center of the scanning area corresponds to the center of the incident light spot on the phase diagram plane of the spatial light modulator D3. The side length L of the scanning area is c Half of the Gaussian radius of the incident light spot on the phase diagram plane of the spatial light modulator D3;
[0114] Step 2.2: Set the scanning window and the scanning step of the scanning window:
[0115] Divide the scanning area into N parts in row and column directions. L ×N L The matrix grid, N L is the number of row grids and column grids in the matrix grid. The side length of each grid in the matrix grid is recorded as the grid side length L (the unit of grid side length L is the number of pixels). The inherent L c =N L ×L, such as Figure 3As shown. The grid side length L will determine the accuracy of aberration correction and the total time for the subsequent step 3 to be executed. If the grid side length L is too large, the aberration correction accuracy will be reduced. If the grid side length L is too small, the overall compensation grating obtained in the subsequent steps will be distorted, and the total time for the execution of step 3 will also be increased. In this embodiment, the value of the grid side length L is 16. The scanning step of the scanning window is a row-direction grid or a column-direction grid.
[0116] The side length of the scanning window will determine the range of the corresponding diffraction light field distribution in the diffraction light field image and the shape of the first-order diffraction light spot in the diffraction light field image. If the side length of the scanning window is too small, the first-order diffraction light spot in the diffraction light field image will be too large and distorted, making it difficult to locate the center. If the side length of the scanning window is too large, the difference in the offset of the first-order diffraction light spot in the diffraction light field image will be reduced, reducing the precision of the aberration correction. In this embodiment, the side length of the scanning window is selected to be 64 pixels.
[0117] Step 2.3: The scanning window is scanned line by line in the scanning area at a set scanning step. At the same time, the computer D7 generates a corresponding scanning hologram using each scanning window and loads it into the phase map plane of the spatial light modulator D3. The industrial camera D6 collects the corresponding diffraction light field image and transmits it to the computer D7. For the diffraction light field image corresponding to each scanning hologram, the computer D7 uses the row direction magnification measurement value k obtained in step 1. x And the column direction magnification calculated value k y , and obtain the period of the compensating blazed grating that needs to be generated corresponding to each scanning window in the phase diagram plane of the spatial light modulator D3.
[0118] For each scanning window, the specific steps include:
[0119] Step 2.3.1, the computer D7 generates a scanning hologram and loads it into the entire phase map plane of the spatial light modulator D3, so that the area in the phase map plane of the spatial light modulator D3 that is located within the scanning window generates a scanning blazed grating of a specified period, and the gray value of the area outside the scanning window in the phase map plane of the spatial light modulator D3 is 0. The loaded scanning hologram is as follows: Figure 2a shown.
[0120] After the scanning hologram is loaded into the phase map plane of the spatial light modulator D3, a higher intensity 1st order diffraction light spot near the 0th order diffraction light spot and a lower intensity 1st order diffraction light spot next to the higher intensity 1st order diffraction light spot are generated on the diffraction light field image corresponding to the scanning hologram, such as Figure 2cAs shown; wherein, the higher intensity 1st order diffraction light spot is recorded as the main maximum spot of the diffraction light field image corresponding to the scanning hologram, and the lower intensity 1st order diffraction light spot is recorded as the characteristic spot; since the grayscale value of the region other than the scanning window in the phase diagram plane of the spatial light modulator D3 is 0, the incident light spot is modulated, and the main maximum spot of the diffraction light field image corresponding to the scanning hologram is generated; since the scanning blazed grating of the specified period in the scanning window in the phase diagram plane of the spatial light modulator D3 modulates the incident light spot, a characteristic spot is generated.
[0121] The main maximum spot of the diffraction light field image corresponding to the scanning hologram needs to be far enough away from the 0th order diffraction light spot to reduce the background light intensity. However, if the main maximum spot of the diffraction light field image corresponding to the scanning hologram deviates too much from the 0th order diffraction light spot, it will cause the diffraction efficiency to decrease and destroy the paraxial condition of the imaging system. In this embodiment, the row direction of the scanning blazed grating is selected to specify the period =16, scans the specified period in the column direction of the blazed grating =64.
[0122] Step 2.3.2: Set the calculation area of the characteristic light spot and the pixel coordinates of the center of the calculation area of the characteristic light spot. .
[0123] The size of the calculation area of the characteristic light spot is set according to the size of the characteristic light spot in the collected diffraction light field image. In this embodiment, the side length of the calculation area of the characteristic light spot is set to L s =400,L s The unit is the number of pixels. The pixel coordinates of the center of the calculation area of the characteristic spot Pixel coordinates of the center of the 0th order diffraction light spot in the relative diffraction light field image , satisfying the following relationship:
[0124] ,
[0125] ,
[0126] in, and are the row pixel coordinates and column pixel coordinates of the center of the calculation area of the characteristic light spot respectively; and N is the row pixel coordinate and column pixel coordinate of the center of the 0th order diffraction light spot in the diffraction light field image; x is the number of row pixels in the phase image plane, N y is the number of column pixels in the phase image plane; Specify the period in the row direction for scanning the blazed grating, Specifies the period in the column direction for scanning the blazed grating.
[0127] Step 2.3.3, the calculation area of the characteristic light spot in the diffraction light field image corresponding to the scanning hologram is processed with a weighted algorithm to obtain more accurate pixel coordinates of the center of the characteristic light spot. The weighted algorithm is the same as step 1.2. In step 2.3.3, the calculation area of the characteristic light spot is used as the light spot center confirmation area, the characteristic light spot is used as the center light spot to be determined, and the center of the characteristic light spot is used as the center of the center light spot to be determined. Then: first find the pixel coordinates of the brightest point in the light spot center confirmation area, then set the area within a certain range centered on the brightest point in the light spot center confirmation area as the weighted average area, set the gray value threshold, save the pixel coordinates of the pixel points in the weighted average area whose gray value is above the gray value threshold and the corresponding pixel gray value to the set H, and perform weighted average on the column pixel coordinates and row pixel coordinates of each pixel point in the set H, respectively, to obtain the column pixel coordinates and row pixel coordinates of the center of the corresponding center light spot to be determined; wherein the weight of the weighted average is the pixel gray value of each pixel point in the set H minus the background threshold A b Based on the above weighted algorithm, a more accurate pixel coordinate of the center of the characteristic spot is obtained. ,in and are the row pixel coordinates and column pixel coordinates of the center of the characteristic light spot respectively.
[0128] The pixel coordinates of the center of the characteristic spot Combined with the pixel coordinates of the center of the calculation area of the characteristic spot , row direction magnification calculation value k x And the column direction magnification calculated value k y , calculate the period of the compensation blazed grating that needs to be generated corresponding to each scanning window:
[0129] ,
[0130] ,
[0131] in, and are the row pixel coordinates and column pixel coordinates of the characteristic spot center, and are the row direction period and column direction period of the compensated blazed grating respectively.
[0132] Step 2.4: Using the period of the compensatory blazed grating to be generated corresponding to each scanning window obtained in step 2.3, obtain the preliminary overall compensatory grating to be generated in the entire phase diagram plane of the spatial light modulator D3.
[0133] During the execution of step 2.2, when the row traversal of the scanning window is performed according to the scanning step, when there are overlapping grids overlapping each other in the phase map plane of the spatial light modulator D3 for each scanning window, the average value of the period of the compensating blazed grating of each scanning window associated with each overlapping grating is calculated as the period of the grid compensation grating corresponding to the overlapping grating; when there is only one scanning window in the grid in the phase map plane of the spatial light modulator D3, the period of the grid compensation grating of the grid in the phase map plane of the above-mentioned spatial light modulator D3 is the period of the compensating blazed grating of the corresponding scanning window.
[0134] By utilizing the period of the grid compensation grating corresponding to each grid in the phase diagram plane of the spatial light modulator D3, the grid compensation gratings to be generated corresponding to each grid in the phase diagram plane of the spatial light modulator D3 are obtained, and the grid compensation gratings are spliced according to the positions of the corresponding grids, thereby obtaining the preliminary overall compensation grating to be generated in the entire phase diagram plane of the spatial light modulator D3.
[0135] Step 3: Utilize computer D7 to continuously process the preliminary overall compensation grating to be generated, and obtain the overall compensation grating to be generated.
[0136] In this embodiment, based on the grayscale values of the grid compensation gratings corresponding to each grid in the preliminary overall compensation grating, a continuous processing is performed so that the grayscale values of the contact parts of each grid compensation grating are close to each other. The continuous processing process is as follows:
[0137] Step 3.1, selecting a grid compensation grating in the grid corresponding to the center of the incident light spot on the phase diagram plane of the incident spatial light modulator D3 as the central grating;
[0138] Step 3.2, in the phase diagram plane of the spatial light modulator D3, each grid compensation grating in the column where the central grating is located is continuously processed based on the central grating, and the central grating and the grid compensation grating in the column after continuous processing are used as the row central grating corresponding to each row, and the grid compensation grating of the corresponding row is continuously processed based on the row central grating.
[0139] Step 3.2.1: During the continuous processing of each grid compensation grating in the column where the center grating is located,
[0140] In the column direction away from the central grating, each grid compensation grating is traversed in turn:
[0141] Among them, for two grid compensation gratings adjacent to the central grating in the column direction,
[0142] The grid compensation grating adjacent to the central grating is used as the current grating to be processed, and the central grating is used as the current reference grating. With the current reference grating as a reference, an additional gray value is superimposed on the current grating to be processed as a whole;
[0143] For the grid compensation gratings that are not adjacent to the center grating in the column direction, the grid compensation grating that is adjacent to the current traversed grid compensation grating in the column direction and closer to the center grating is recorded as the column direction reference grating.
[0144] The currently traversed grid compensation grating is used as the current grating to be processed, and the corresponding column-direction reference grating is used as the current reference grating. With the current reference grating as a reference, an additional grayscale value is superimposed on the current grating to be processed as a whole;
[0145] Step 3.2.2: Based on the row center grating, each grid compensation grating of the corresponding row is continuously processed.
[0146] In the row direction away from the row center grating, each grid compensation grating of the corresponding row is traversed in turn:
[0147] Among them, for two grid compensation gratings adjacent to the row center grating in the row direction,
[0148] The grid compensation grating adjacent to the row center grating is used as the current grating to be processed, and the row center grating is used as the current reference grating. With the current reference grating as a reference, an additional gray value is superimposed on the current grating to be processed as a whole;
[0149] For the grid compensation gratings that are not adjacent to the row center grating in the row direction, the grid compensation grating that is adjacent to the row center grating of the currently traversed grid compensation grating in the row direction and closer to the row center grating is recorded as the row reference grating.
[0150] The currently traversed grid compensation grating is used as the current grating to be processed, and the corresponding row reference grating is used as the current reference grating. With the current reference grating as a reference, an additional gray value is superimposed on the current grating to be processed as a whole.
[0151] In the above steps 3.2.1 and 3.2.2, each additional gray value is equal to the comparison gray value of the corresponding current reference grating minus the comparison gray value of the current grating to be processed, and the comparison gray value of the current reference grating and the comparison gray value of the current grating to be processed are set based on the following rules:
[0152] An angle in the current reference grating adjacent to the current grating to be processed is used as the comparison angle of the current reference grating; correspondingly, an angle in the current grating to be processed adjacent to the comparison angle of the current reference grating is used as the comparison angle of the current grating to be processed; the pixel grayscale value of the pixel point at the comparison angle of the current reference grating is used as the comparison grayscale value of the current reference grating; the pixel grayscale value of the pixel point at the comparison angle of the current grating to be processed is used as the comparison grayscale value of the current grating to be processed;
[0153] Or the edge of the current reference grating adjacent to the current grating to be processed is used as the comparison edge of the current reference grating, and the edge of the current grating to be processed adjacent to the current reference grating is used as the comparison edge of the current grating to be processed; the average value of the pixel grayscale values of all pixels on the comparison edge of the current reference grating is used as the comparison grayscale value of the current reference grating; the average value of the pixel grayscale values of all pixels on the comparison edge of the current grating to be processed is used as the comparison grayscale value of the current grating to be processed.
[0154] Step 4, the computer D7 generates an overall compensation grating hologram according to the overall compensation grating to be generated, and the overall compensation grating hologram is loaded into the phase map plane of the spatial light modulator D3, or the overall compensation grating hologram is superimposed with the hologram to be corrected and loaded into the phase map plane of the spatial light modulator D3 after normalization processing of the pixel gray value, the industrial camera D6 collects the diffraction light field image corresponding to the overall compensation grating hologram and transmits it to the computer D7, and the diffraction light field image after phase difference correction is displayed on the computer D7.
[0155] In order to verify the aberration correction effect of the present invention, this embodiment uses the overall compensation grating hologram to correct the light trap array image. The specific operation is as follows:
[0156] The computer D7 uses the Gerchberg-Saxton (GS) algorithm to calculate the hologram required for the light trap array as the hologram to be corrected;
[0157] The hologram required by the light trap array is loaded into the phase map plane of the spatial light modulator D3, so that the grating before correction is generated in the phase map plane of the spatial light modulator D3; the industrial camera D6 collects the diffraction light field image corresponding to the hologram required by the light trap array and transmits it to the computer D7. The diffraction light field image before the phase difference correction displayed on the computer D7 is the light trap array image before the aberration correction, such as Figure 5a As shown;
[0158] Then, the computer D7 generates an overall compensation grating hologram according to the overall compensation grating to be generated, and the overall compensation grating hologram is superimposed on the holographic image required by the light trap array, and the normalization process of the pixel gray value is performed in the same way as in step 1 to obtain a superimposed hologram;
[0159] The superimposed hologram is loaded into the phase map plane of the spatial light modulator D3, so that the superimposed grating is generated in the phase map plane of the spatial light modulator D3; the industrial camera D6 collects the diffraction light field image corresponding to the superimposed hologram and transmits it to the computer D7. The diffraction light field image after phase difference correction displayed on the computer D7 is the light trap array image after aberration correction, such as Figure 5b shown.
[0160] Image of the light trap array before aberration correction, such as Figure 5a As shown in Figure 1, most of the light traps are distorted in shape. Figure 5b As shown, the light trap presents an ideal Gaussian bright spot.
[0161] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A method for correcting an aberration, characterized in that: The computer (D7) generates different holograms and loads them into the phase diagram plane of the spatial light modulator (D3). The laser output by the laser (D1) is incident on the spatial light modulator (D3) after passing through the beam expansion and collimation system (D2). The phase-modulated light beam output by the spatial light modulator (D3) sequentially transmits the structured light path (D4) and the imaging lens (D5) to form a diffraction light field. The diffraction light field is input into the industrial camera (D6) to obtain a diffraction light field image, and the diffraction light field image is input into the computer (D7). The computer (D7) analyzes the diffraction light field images corresponding to different holograms and generates an overall compensation grating hologram, and the overall compensation grating hologram is loaded into the phase image plane of the spatial light modulator (D3), so that the phase image plane of the spatial light modulator (D3) generates an overall compensation grating, which specifically includes the following steps: Step 1, the computer (D7) generates a set of global holograms, and loads each global hologram into the entire phase map plane of the spatial light modulator (D3), so that the entire phase map plane of the spatial light modulator (D3) generates a corresponding global blazed grating, and the periods of the global blazed gratings corresponding to each global hologram are different; for each global hologram, the computer (D7) combines the periods of the global blazed gratings corresponding to each global hologram and the corresponding diffraction light field images, and calculates the row direction magnification measurement value k x And the calculated value of the magnification in the column direction k y , to characterize the linear correspondence between the period of the global blazed grating corresponding to the global hologram and the diffraction light field offset; Step 2, select a scanning area in the phase map plane of the entire spatial light modulator (D3); set a scanning window and a scanning step; make the scanning window scan line by line in the scanning area with the set scanning step, and at the same time, the computer (D7) uses each scanning window to generate a corresponding scanning hologram, and loads it into the phase map plane of the spatial light modulator (D3), and the industrial camera (D6) collects the corresponding diffraction light field image and transmits it to the computer (D7); for the diffraction light field image corresponding to each scanning hologram, the computer (D7) uses the row direction magnification measurement value k obtained in step 1 x And the calculated value of the magnification in the column direction k y , obtaining the period of the compensating blazed grating that needs to be generated in the area corresponding to each scanning window in the phase diagram plane of the spatial light modulator (D3); using the period of the compensating blazed grating that needs to be generated in the area corresponding to each scanning window, obtaining the preliminary overall compensating grating that needs to be generated in the entire phase diagram plane of the spatial light modulator (D3); Step 3, using a computer (D7) to continuously process the preliminary overall compensation grating to be generated, and calculate the overall compensation grating to be generated; Step 4, the computer (D7) generates an overall compensation grating hologram according to the overall compensation grating to be generated, and the overall compensation grating hologram is loaded into the phase map plane of the spatial light modulator (D3), or the overall compensation grating hologram is superimposed with the hologram to be corrected and the pixel gray value is normalized and then loaded into the phase map plane of the spatial light modulator (D3), the industrial camera (D6) collects the diffraction light field image corresponding to the overall compensation grating hologram and transmits it to the computer (D7), and the computer (D7) displays the diffraction light field image after phase difference correction.
2. The aberration correction method according to claim 1, characterized in that: In step 1, for each global hologram, the computer (D7) respectively combines the period of the global blazed grating corresponding to each global hologram and the corresponding diffraction light field image to calculate the row direction magnification measurement value k x And the calculated value of the magnification in the column direction k y , specifically including the following steps: For each full-domain hologram, the computer (D7) uses a weighted algorithm to analyze and obtain the pixel coordinates (u c , v c ),u c and v c are the row pixel coordinates and column pixel coordinates of the center of the main maximum light spot respectively; Fit according to the following formula to obtain the row direction magnification measurement value k x , Calculated value of magnification in column direction k y , and the pixel coordinates (u0, v0) of the center of the 0th order diffraction light spot in the diffraction light field image: , , where u0 and v0 are the row pixel coordinates and column pixel coordinates of the center of the 0th order diffraction light spot in the diffraction light field image, respectively; N x and N y are the number of row pixels and the number of column pixels in the phase image plane respectively; and They respectively represent the row direction period and column direction period of the global blazed grating corresponding to the global hologram.
3. The aberration correction method according to claim 1, characterized in that: The step 2 specifically includes the following steps: Step 2.1, a scanning area is selected in the phase map plane of the entire spatial light modulator (D3), and an incident light spot is formed on the phase map plane of the spatial light modulator (D3) after the laser is incident on the spatial light modulator (D3), and the center of the scanning area corresponds to the center of the incident light spot on the phase map plane incident on the spatial light modulator (D3); Step 2.2: Divide the scanning area into N L ×N L The matrix grid, N L is the number of row grids and column grids in the matrix grid, and the scanning step of the scanning window is one row grid or one column grid; Step 2.
3. The scanning window is scanned line by line in the scanning area at a set scanning step. At the same time, the computer (D7) uses each scanning window to generate a corresponding scanning hologram and loads it into the phase map plane of the spatial light modulator (D3). The industrial camera (D6) collects the corresponding diffraction light field image and transmits it to the computer (D7). For each scanning hologram, the computer (D7) uses the row direction magnification measurement value k obtained in step 1. x And the calculated value of the magnification in the column direction k y , the period of the compensating blazed grating to be generated corresponding to each scanning window in the phase diagram plane of the spatial light modulator (D3) is obtained: Step 2.4: When each scanning window has overlapping grids in the phase map plane of the spatial light modulator (D3), during the row traversal of the scanning window according to the scanning step, the average value of the period of the compensation blazed grating of each scanning window associated with each overlapping grid is calculated as the period of the grid compensation grating corresponding to the overlapping grid; when the grid in the phase map plane of the spatial light modulator (D3) has only one scanning window, the period of the grid compensation grating of the grid in the phase map plane of the spatial light modulator (D3) is the period of the compensation blazed grating of the corresponding scanning window; By using the period of the grid compensation grating corresponding to each grid in the phase diagram plane of the spatial light modulator (D3), the grid compensation gratings to be generated corresponding to each grid in the phase diagram plane of the spatial light modulator (D3) are obtained, and the grid compensation gratings are spliced according to the positions of the corresponding grids, thereby obtaining the preliminary overall compensation grating to be generated in the entire phase diagram plane of the spatial light modulator (D3).
4. The aberration correction method according to claim 3, characterized in that: The step 2.3 specifically includes the following steps: Step 2.3.1, the computer (D7) generates a scanning hologram and loads it into the entire phase map plane of the spatial light modulator (D3), so that the area in the phase map plane of the spatial light modulator (D3) located within the scanning window generates a scanning blazed grating of a specified period, and the grayscale value of the area outside the scanning window in the phase map plane of the spatial light modulator (D3) is 0; after the scanning hologram is loaded into the phase map plane of the spatial light modulator (D3), a higher intensity 1st order diffraction light spot near the 0th order diffraction light spot and a lower intensity 1st order diffraction light spot next to the higher intensity 1st order diffraction light are generated on the diffraction light field image corresponding to the scanning hologram; wherein the higher intensity 1st order diffraction light spot is recorded as the main maximum light spot of the diffraction light field image corresponding to the scanning hologram, and the lower intensity 1st order diffraction light spot is recorded as the characteristic light spot; Step 2.3.2, set the calculation area of the characteristic spot according to the following formula and the row direction magnification value k obtained in step 1 x And the calculated value of the magnification in the column direction k y , set the pixel coordinates of the center of the calculation area of the characteristic spot : , , in, and are the row pixel coordinates and column pixel coordinates of the center of the calculation area of the characteristic light spot respectively; and are the row pixel coordinates and column pixel coordinates of the center of the 0th order diffraction light spot in the diffraction light field image; Specify the period in the row direction for scanning the blazed grating, Specifying a period in the column direction for scanning the blazed grating; N x and N y are the number of row pixels and the number of column pixels in the phase image plane respectively; Step 2.3.3: Use a weighted algorithm to process the calculation area of the characteristic light spot in the diffraction light field image corresponding to the scanning hologram to obtain the pixel coordinates of the center of the characteristic light spot. ; According to the following formula and the row direction magnification calculated value k obtained in step 1 x And the calculated value of the magnification in the column direction k y , calculate the period of the compensation blazed grating that needs to be generated corresponding to each scanning window: , , in, and are the row pixel coordinates and column pixel coordinates of the center of the characteristic light spot, and are the row direction period and column direction period of the compensated blazed grating respectively.
5. The aberration correction method according to any one of claims 2 or 4, characterized in that: The weighted algorithm specifically includes the following steps: Find the pixel coordinates of the brightest point in the spot center confirmation area; Set an area within a certain range centered on the brightest point in the spot center confirmation area as the weighted average area; Set the gray value threshold, save the pixel coordinates of the pixel points whose gray value in the weighted average area is above the gray value threshold and the corresponding pixel gray value to the set H, The column pixel coordinates and the row pixel coordinates of each pixel point in the set H are weighted averaged to obtain the column pixel coordinates and the row pixel coordinates of the center of the corresponding central light spot to be determined; The weight of the weighted average is the gray value of each pixel in the set H minus the background threshold A. b , background threshold A b is the minimum gray value of the pixel in the diffraction light field image; When the main maximum light spot is used as the center light spot to be determined, the corresponding light spot center confirmation area is the entire diffraction light field image, and the center of the center light spot to be determined is the center of the main maximum light spot; When the characteristic light spot is used as the central light spot to be determined, the corresponding light spot center confirmation area is the calculation area of the characteristic light spot, and the center of the central light spot to be determined is the center of the characteristic light spot.
6. The aberration correction method according to claim 4, characterized in that: The step 3 specifically includes the following steps: Step 3.1, selecting a grid compensation grating in the grid corresponding to the center of the incident light spot on the phase diagram plane of the incident spatial light modulator (D3) as the central grating; Step 3.2, in the phase diagram plane of the spatial light modulator (D3), each grid compensation grating in the column where the central grating is located is continuously processed based on the central grating, the central grating and the grid compensation grating in the column after continuous processing are used as the row central grating corresponding to each row, and the grid compensation grating of the corresponding row is continuously processed based on the row central grating.
7. The aberration correction method according to claim 6, characterized in that: The step 3.2 specifically includes the following steps: Step 3.2.1: During the continuous processing of each grid compensation grating in the column where the center grating is located, In the column direction away from the central grating, each grid compensation grating is traversed in turn: Among them, for two grid compensation gratings adjacent to the central grating in the column direction, The grid compensation grating adjacent to the central grating is used as the current grating to be processed, and the central grating is used as the current reference grating. With the current reference grating as a reference, an additional gray value is superimposed on the current grating to be processed as a whole; For the grid compensation gratings that are not adjacent to the center grating in the column direction, the grid compensation grating that is adjacent to the current traversed grid compensation grating in the column direction and closer to the center grating is recorded as the column direction reference grating. The currently traversed grid compensation grating is used as the current grating to be processed, and the corresponding column-direction reference grating is used as the current reference grating. With the current reference grating as a reference, an additional grayscale value is superimposed on the current grating to be processed as a whole; Step 3.2.2: Based on the row center grating, each grid compensation grating of the corresponding row is continuously processed. In the row direction away from the row center grating, each grid compensation grating of the corresponding row is traversed in turn: Among them, for two grid compensation gratings adjacent to the row center grating in the row direction, The grid compensation grating adjacent to the row center grating is used as the current grating to be processed, and the row center grating is used as the current reference grating. With the current reference grating as a reference, an additional gray value is superimposed on the current grating to be processed as a whole; For the grid compensation gratings that are not adjacent to the row center grating in the row direction, the grid compensation grating that is adjacent to the row center grating of the currently traversed grid compensation grating in the row direction and closer to the row center grating is recorded as the row reference grating. The currently traversed grid compensation grating is used as the current grating to be processed, and the corresponding row reference grating is used as the current reference grating. With the current reference grating as a reference, an additional gray value is superimposed on the current grating to be processed as a whole.
8. The aberration correction method according to claim 7, characterized in that: The additional grayscale value is equal to the comparison grayscale value of the current reference grating minus the comparison grayscale value of the current grating to be processed, wherein the comparison grayscale value of the current reference grating and the comparison grayscale value of the current grating to be processed are set based on the following rules: An angle in the current reference grating adjacent to the current grating to be processed is used as the comparison angle of the current reference grating; correspondingly, an angle in the current grating to be processed adjacent to the comparison angle of the current reference grating is used as the comparison angle of the current grating to be processed; the pixel grayscale value of the pixel point at the comparison angle of the current reference grating is used as the comparison grayscale value of the current reference grating; the pixel grayscale value of the pixel point at the comparison angle of the current grating to be processed is used as the comparison grayscale value of the current grating to be processed; Or the edge of the current reference grating adjacent to the current grating to be processed is used as the comparison edge of the current reference grating, and the edge of the current grating to be processed adjacent to the current reference grating is used as the comparison edge of the current grating to be processed; the average value of the pixel grayscale values of all pixels on the comparison edge of the current reference grating is used as the comparison grayscale value of the current reference grating; the average value of the pixel grayscale values of all pixels on the comparison edge of the current grating to be processed is used as the comparison grayscale value of the current grating to be processed.
9. The aberration correction method according to claim 3, characterized in that: Half of the side length of the scanning area in step 2.1 is equal to twice the Gaussian radius of the incident light spot on the phase map plane incident on the spatial light modulator (D3).
