A calibration method based on pixel alignment of DMD super-resolution imaging system

By loading the calibration code into the DMD super-resolution imaging system and analyzing the grayscale contrast on the detector, pixel-level alignment calibration is achieved, which solves the problems of imaging errors and poor image reconstruction quality in the existing technology, and improves Imaging effect and image quality.

CN118519281BActive Publication Date: 2024-10-22CHANGCHUN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410986410.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-22
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

The existing technology is difficult to achieve pixel-level alignment and calibration in DMD-based super-resolution imaging systems, resulting in imaging errors and poor image reconstruction quality. Especially in infrared super-resolution imaging systems, DMD micromirrors and detector pixels When the mapping relationship is tilted or offset, the image quality is affected.

Method used

Design a pixel alignment and calibration method for a super-resolution imaging system based on DMD. By loading the calibration code on the DMD and analyzing the grayscale contrast between the target point and the background point of the coded image on the detector, the DMD chip surface is adjusted. It is mapped with the detector image plane until the pixel reaches the threshold requirements in both x and y directions to achieve pixel-level alignment.

Benefits of technology

The pixel-level alignment calibration of the super-resolution imaging system is realized, which improves the imaging effect and image reconstruction quality, simplifies the imaging process, shortens the calculation and processing time, and avoids the need for image coordinate transformation for each shot.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519281B_ABST
    Figure CN118519281B_ABST
Patent Text Reader

Abstract

A calibration method for pixel alignment of a DMD super-resolution imaging system. The method belongs to the field of optical system imaging calibration and optical system adjustment technology, and specifically relates to the technical field of calibration of image plane alignment of a super-resolution imaging system of a digital micromirror device (DMD). The method comprises the following steps: S1, building a super-resolution imaging system based on a DMD; S2, loading a calibration code on the DMD, collecting an image formed by the calibration code on the detector, using matlab to read the collected calibration code image data, converting it into a two-dimensional data matrix, and obtaining an image matrix; S3, based on the calibration code, extracting the grayscale data of the target point at the corresponding position of the image matrix, and constructing a pixel alignment evaluation index; S4, adjusting the super-resolution imaging system based on the pixel alignment evaluation index until the pixel alignment evaluation index meets the requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of optical system imaging calibration and optical system assembly and adjustment technology, and specifically relates to the field of calibration technology of image plane alignment of a super-resolution imaging system of a digital micromirror device (DMD). Background Art

[0002] Super-resolution imaging optical system is currently one of the research hotspots of super-resolution imaging technology. The introduction of DMD in super-resolution imaging optical system enables researchers to design system structure flexibly according to actual needs, thereby continuously improving and improving the system's response speed, spectral resolution, imaging quality and other working parameters. Therefore, DMD has broad development prospects in the field of super-resolution imaging.

[0003] However, in the actual imaging process, the mapping relationship between the DMD micromirror and the detector pixel of the DMD-based super-resolution imaging system is prone to tilt and offset. Figure 1 The various corresponding situations of the DMD micromirror and the detector pixel in the x direction (horizontal direction) of the DMD-based super-resolution imaging system. Figure 1 The mapping relationship of 2x super-resolution imaging is shown. Figure 1 (a) The mapping is perfectly aligned in the x direction, Figure 1 (b) is the mapping of a DMD micromirror unit that is misplaced. Figure 1 (c) is the mapping with half a DMD micromirror unit misaligned. Figure 1 (b) and Figure 1 In the case shown in (c) and other cases where the pixels are not fully aligned, pixel-level distortion will occur in the imaging. Especially in the infrared super-resolution imaging system, when the mapping relationship between the DMD micromirror and the detector pixel is tilted or offset, the impact on the image collected by the detector is more significant, and it also affects the quality of the image reconstructed later.

[0004] At present, based on the imaging error correction and calibration method of the DMD super-resolution imaging system, the paper "Analysis and correction of the deformation of the coding element in the coded aperture imaging spectrometer" (Source "Laser and Optoelectronics Progress", Issue 6, 2018, Authors: Zhu Dantong, Shen Honghai, Yang Mingyu, Chen Cheng, Nan Tongling) proposed a "regular fringe correction method for asymmetric deformation", which produces irregular deformation on the detector through regular stripes, observes the deformation of the coding element, and quantitatively analyzes the deformation of the image and corrects it according to the known stripe rules. However, this method only corrects the distortion generated by the system, and corrects the distortion of the image from the coordinates after shooting, so each image taken needs to be corrected, and the imaging system is not calibrated; the Chinese patent "A method for correcting imaging errors of an optical imaging system based on DMD" (Publication No. CN117572637A) solves the problem that the DMD chip surface and the detector image surface mapping of the DMD-based optical imaging system are tilted, defocused, and distorted, making the system unable to clearly image. This patent mainly corrects the defocus of the imaging optical path, the tilt of the image plane of the imaging optical path, the geometric distortion generated by the system, and evaluates the residual error after correction. However, when reconstructing the image in the later stage of super-resolution imaging based on DMD, the downsampling map is solved simultaneously with the corresponding encoding, so the DMD micromirror and the detector pixel need to be completely aligned, otherwise an incorrect solution result will be obtained when solving the high-resolution reconstruction. However, the imaging error correction method mentioned in the above patent only corrects the tilt of the DMD chip surface and the detector image plane and the distortion and defocus generated when the imaging system is installed and adjusted. It only achieves alignment correction at the image plane level, and does not achieve the pixel-level alignment required by the super-resolution imaging system, and cannot further improve the image quality of super-resolution reconstruction. Therefore, there is an urgent need for a method for pixel-level alignment and calibration of the image plane of a super-resolution imaging system based on DMD to guide and calibrate the DMD-based super-resolution imaging system and improve the imaging effect and image reconstruction quality. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a pixel alignment and calibration method for a super-resolution imaging system based on DMD. The present invention designs a calibration code for calibrating the image plane, which is loaded on the DMD; then the image of the calibration code on the detector image plane is analyzed, and the grayscale comparison between the target point and the background point of the coded image captured by the detector is used to determine whether the image plane pixels are aligned; when the image plane pixels are not aligned, after adjusting the mapping between the DMD chip surface and the detector image plane, the image is analyzed again until the images at five positions on the image plane meet the threshold requirements set by the present invention in both the x and y directions (horizontal and vertical directions), that is, the alignment and calibration effect is achieved.

[0006] The method comprises the following steps:

[0007] S1. Build a super-resolution imaging system based on DMD;

[0008] S2, load the calibration code on the DMD, collect the image formed by the calibration code on the detector, use MATLAB to read the collected calibration code image data, convert it into a two-dimensional data matrix, and obtain an image matrix;

[0009] S3, based on the calibration code, extract the grayscale data of the target point at the corresponding position of the image matrix, and construct the pixel alignment evaluation index;

[0010] S4. Adjust the super-resolution imaging system based on the pixel alignment evaluation index until the pixel alignment evaluation index meets the requirements.

[0011] Furthermore, when building an imaging system, the imaging process of the optical path is as follows: the light emitted by the light source is imaged on the DMD through the telescope objective lens, and after the DMD is coded and modulated, it is imaged on the detector through the imaging objective lens.

[0012] Furthermore, the light source, telephoto objective lens and DMD constitute a telephoto optical path, the DMD, imaging objective lens and detector constitute an imaging optical path, and in each optical path, the main optical axes of each device coincide.

[0013] Furthermore, the calibration code diagram includes five characteristic positions, namely four vertex positions and one center position, the codes of the four vertex positions are represented by A, B, C and D respectively, and the code of the center position is represented by O; the codes on the four vertex positions are "L" type codes, and the two adjacent sides of the "L" type code have the same length, both of which are 4k micromirror units; the code at the center position is a regular cross code, and the length of the four adjacent sides of the regular cross code are all 4k micromirror units, and the width of all codes is k micromirror units, where k is an integer.

[0014] Furthermore, the distances between the codes of the four vertex positions and the edge of the DMD chip are all ek micromirror units, where 3≤e≤8 and e is an integer.

[0015] Furthermore, the structural pixel alignment evaluation index is specifically:

[0016] For codes A, B, C, D, and O, the horizontal pixel alignment assessment index and the vertical pixel alignment assessment index are constructed respectively;

[0017] For encoding A:

[0018] Select the first The gray value a of the pixel point in the code A corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code A, respectively recorded as a 11 and a 12 ,use Constructing the lateral pixel alignment evaluation index of code A;

[0019] Select the first The gray value a of the pixel point in the code A corresponding to the column 20 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code A, respectively recorded as a 21 and a 22 ,use Construct the longitudinal pixel alignment evaluation index of code A;

[0020] For encoding B:

[0021] Select the first The gray value b of the pixel point in the code B corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above encoding B, respectively recorded as b 11 and b 12 ,use Constructing the lateral pixel alignment evaluation index of code B;

[0022] Select the first The gray value b of the pixel point in the encoding B corresponding to the column 20 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above encoding B, respectively recorded as b 21 and b 22 ,use Constructing the longitudinal pixel alignment evaluation index of code B;

[0023] For encoding C:

[0024] Select the first The gray value c of the pixel point in the code C corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code C, respectively recorded as c 11 and c 12 ,use Construct the lateral pixel alignment evaluation index of code C;

[0025] Select the first The gray value c of the pixel point in the code C corresponding to the column 20 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code C, respectively recorded as c 21 and c 22 ,use Construct the longitudinal pixel alignment evaluation index of code C;

[0026] For encoding D:

[0027] Select the first The gray value d of the pixel point in the code D corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code D, respectively denoted as d 11 and d 12 ,use Constructing the lateral pixel alignment evaluation index of code D;

[0028] Select the first The gray value d of the pixel point in the encoding D corresponding to the column 20 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code D, respectively recorded as d 21 and d 22 ,use Constructing the longitudinal pixel alignment evaluation index of code D;

[0029] For code O:

[0030] Select the first The gray value o of the pixel point in the code O corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code O, respectively recorded as o 11 and 12 ;

[0031] Select the first The gray value o of the pixel point in the code O corresponding to the row 20 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code O, respectively recorded as o 21 and 22 ;

[0032] Select the first The gray value o of the pixel point in the code O corresponding to the column 30 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code O, respectively recorded as o 31 and 32 ;

[0033] Select the first The gray value o of the pixel point in the code O corresponding to the column 40 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code O, respectively recorded as o 41 and 42 ;

[0034] use Construct the lateral pixel alignment evaluation index of code O, using Construct the longitudinal pixel alignment evaluation index of code O.

[0035] Furthermore, the super-resolution imaging system is adjusted based on the pixel alignment evaluation index until the pixel alignment evaluation index meets the requirements, specifically:

[0036] determination , , , , , , , , Is it less than 0.01? If all are less than 0.01, it is considered that the pixels on the detector image plane are aligned; if there are some pixels whose alignment evaluation index is greater than or equal to 0.01, the detector image plane position is adjusted according to the gray value comparison of the upper and lower or left and right background points at each encoding, and the image is returned to step S2 to continue imaging until , , , , , , , , are all less than 0.01, and the pixel alignment is considered to be completed.

[0037] The beneficial effects of the method of the present invention are:

[0038] (1) The calibration code loaded on the DMD proposed by the method of the present invention is a five-point code at the four corners and the center of the image plane, and each part of the code has features for calibration in two directions on the two-dimensional image plane. The use of this calibration code can achieve alignment calibration at each position in the field of view of the super-resolution imaging system, and at the same time, achieve pixel-level alignment calibration at each position in the horizontal and vertical directions in the field of view. In addition, the calibration code width used by the DMD-based super-resolution imaging system of the present invention matches the super-resolution magnification, avoiding the loss of black and white contrast on the detector and the inability to indicate the adjustment error when using the round stripes.

[0039] (2) The method described in the present invention provides a pixel alignment and calibration method for a super-resolution imaging system based on a DMD. By analyzing the image grayscale value contrast at the encoding location, the super-resolution imaging system is aligned and calibrated at the pixel level, which effectively improves the quality of super-resolution imaging and subsequent image reconstruction. Compared with the previous method of using image coordinate transformation to perform image plane alignment correction, the method provided by the present invention does not require coordinate transformation for each image taken. It only needs to shoot after the system pixel alignment and calibration is completed, and the resulting image can be directly reconstructed at super-resolution. The method provided by the present invention improves the image distortion caused by coordinate changes in the past, simplifies the super-resolution imaging process, shortens the calculation processing time, and is convenient for experimental and engineering applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 Schematic diagram of imaging mapping of various corresponding situations of DMD micromirrors and detector pixels in the horizontal direction of the system of the present invention, wherein Figure 1 (a) is the imaging mapping of complete alignment in the x direction, Figure 1 (b) is the imaging mapping of a DMD micromirror unit displaced in the x direction. Figure 1 (c) is the imaging mapping of a DMD micromirror unit that is displaced by half in the x direction;

[0041] Figure 2 A flowchart of a pixel alignment and calibration method for a super-resolution imaging system based on DMD proposed by the present invention;

[0042] Figure 3 Schematic diagram of a DMD-based super-resolution imaging system according to the present invention;

[0043] Figure 4 The calibration code for aligning and calibrating a super-resolution imaging system according to the present invention;

[0044] Figure 5 Schematic diagram of the super-resolution multiple of the DMD-based super-resolution imaging system of the present invention, wherein Figure 5 (a) Schematic diagram of DMD for 2x super-resolution imaging. Figure 5 (b) Schematic diagram of DMD during 3x super-resolution imaging. Figure 5 (c) Schematic diagram of DMD during 4x super-resolution imaging. Figure 5 (d) Schematic diagram of DMD during k-fold super-resolution imaging;

[0045] Figure 6 It is a schematic diagram of the image formed by the detector under ideal conditions of the calibration code of the present invention;

[0046] Figure 7 To complete the alignment and calibration, a partial enlarged comparison of the image of the calibration code before and after (code A position);

[0047] Figure 8 This is the imaging effect diagram before and after the alignment calibration is completed. DETAILED DESCRIPTION

[0048] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0049] The pixel alignment and calibration method of the super-resolution imaging system based on DMD provided in the embodiment of the present invention comprises the following specific steps: Figure 2 As shown:

[0050] Step 1: Build a super-resolution imaging system based on DMD.

[0051] The DMD super-resolution imaging system is composed of a light source 1, a telephoto lens 2, a DMD 3, an imaging lens 4 and a detector 5; Figure 3 The following figure shows the construction of a DMD-based super-resolution imaging system:

[0052] The imaging process of the system optical path is as follows: light source 1 emits light through telephoto lens 2 to form an image on DMD3, and after encoding and modulation by DMD3, it forms an image on detector 5 through imaging lens 4; light source 1, telephoto lens 2 and DMD3 form a telephoto optical path, and DMD3, imaging lens 4 and detector 5 form an imaging optical path, and the telephoto optical path and the imaging optical path form an angle of 24°. When building the imaging system, ensure that the main optical axes of the components in the telephoto optical path and the imaging optical path coincide;

[0053] When the pixel is aligned and calibrated, the light source 1 provides a reflection energy source for the calibration code loaded on the DMD3, and the imaging objective lens 4 projects the code on the primary imaging surface DMD3 onto the image surface of the detector 5, as shown in FIG. Figure 3 shown.

[0054] Step 2, collecting the image formed by the code on the detector 5.

[0055] The first step is to load a specific calibration code on DMD3. The specific calibration code loaded on DMD3 is shown in the figure below. Figure 4 As shown. The calibration code diagram includes five characteristic positions, namely, four vertex positions and one center position. The codes of the four vertex positions are represented by A, B, C and D respectively, and the code of the center position is represented by O. The codes on the four vertex positions are "L" type codes, and the two adjacent sides of the "L" type codes are of the same length, both of which are 4k micromirror units. The code at the center position is a right cross code, and the length of the four adjacent sides of the right cross code is 4k micromirror units. The width of all codes is k micromirror units, k is an integer, and k is the super-resolution magnification of the super-resolution imaging system based on DMD3, as shown in FIG. Figure 5 As shown;

[0056] The distance between the codes on the four corners and the edge of the DMD3 chip is ek micromirror units; if the codes are too close to the edge of the DMD3 chip, it will affect the imaging of the codes on the detector, making the subsequent alignment and calibration results inaccurate; if the codes are too far away from the edge of the DMD3 chip, the codes on the four corners will not be representative of the pixel alignment calibration on the entire image plane; so 3≤e≤8 is the best. The size of the entire calibration code is m×n micromirror units, where m×n is the resolution of the DMD3, i.e. the total number of micromirrors on the DMD3 chip.

[0057] The second step is to collect the image of the calibration code received on the detector 5. Ideally, the ratio of the number of pixels occupied by each part of the calibration code on the detector 5 to the number of micromirrors occupied on the DMD 3 is 1: k ,like Figure 6 The figure shows a schematic diagram of the calibration code imaged on the detector 5 under ideal conditions. Matlab is used to read the collected calibration code image data and convert it into a two-dimensional data matrix.

[0058] Step 3: construct pixel alignment evaluation indicators.

[0059] To judge whether the pixels are aligned, it is necessary to extract the grayscale data at the corresponding position, and then make a judgment after comparing the grayscale values ​​of the feature points and the background.

[0060] In the first step, we first extract the corresponding row or column in the entire image matrix, such as Figure 6 For the horizontal evaluation of codes A and B, according to the imaging relationship and magnification of the super-resolution imaging system based on DMD3, the first row data; horizontal evaluation of encoding C and D, select the first For the vertical evaluation of codes A and C, select the first Column data; vertical evaluation of encoding B and D, select the first For the horizontal judgment of the center code O, select the and row data; vertical judgment of the center code O, select the first and Column data.

[0061] The second step is to record the gray value of the target point as a 10 、a 20 、b 10 、b 20 、c 10 、c 20 ,d 10 ,d 20 , o 10 , o 20 , o 30 , o40 ;Remember the target point a in the x direction 10 , b 10 、c 10 d 10 , o 10 , o 20 The gray value of the background points on the left and right sides is a 11 、a 12 , b 11 , b 12 、c 11 、c 12 d 11 d 12 , o 11 , o 12 , o 21 , o 22 , remember the target point a in the y direction 20 , b 20 、c 20 d 20 , o 30 , o 40 The gray value of the background points on the left and right sides is a 21 、a 22 , b 21 , b 22 、c 21 、c 22 d 21 d 22 , o 31 , o 32 , o 41 , o 42 ,like Figure 6 As shown;

[0062] Let the lateral pixel alignment evaluation index be: , , , , ; The longitudinal pixel alignment evaluation index is: , , , , .

[0063] Step 4: Determine whether the pixels on the image plane are aligned.

[0064] The first step is to determine the lateral pixel alignment evaluation index h , , , , ) and longitudinal pixel alignment evaluation index s , , , , ) are less than 0.01. If both are less than 0.01, it is considered that the pixels in the two directions on the image plane are aligned.

[0065] In the second step, if it is greater than or equal to 0.01, it is necessary to fine-tune the detector image position based on the grayscale value comparison of the upper and lower or left and right background points at each target position. Note: Because it is pixel-level alignment fine-tuning, the fine-tuning distance should be smaller than the detector pixel size.

[0066] In the third step, return to step 2 to collect images again and re-evaluate whether the pixels on the image plane are aligned until the horizontal pixel alignment assessment index h and the vertical pixel alignment assessment index s are both less than 0.01. At this time, it is considered that the pixels in the two directions on the image plane are aligned and the image plane alignment calibration is completed.

[0067] The method of the present invention is further described below with reference to specific embodiments of the application:

[0068] A black body light source is used as the light source 1, and the black body light source provides a reflection energy source for the calibration code loaded on the DMD3. The imaging objective lens 4 projects the calibration code on the primary imaging surface DMD3 onto the image surface of the detector 5.

[0069] The DMD3 chip model used is DLP7001, with a resolution of 1024×768, a size of 13.68μm for each micromirror, an imaging objective magnification of 0.438×, an infrared lens with a focal length of 19mm, a detector resolution of 640×512, and a pixel size of 12μm. The entire system is an infrared imaging system with a spectral range of 8~12μm. The system parameters are shown in Table 1.

[0070] Table 1 Basic parameters of the system in this embodiment

[0071]

[0072] Step 1: Build a super-resolution imaging system based on DMD3.

[0073] Set a blackbody light source at a certain distance in front of DMD3 and telephoto objective lens 2; set the telephoto optical path and the imaging optical path to form an angle of 24°, and place DMD3, imaging objective lens 4, and detector 5 in sequence according to the optical axis of the imaging optical path. It should be noted that when installing DMD3, it needs to be placed 45° counterclockwise along the optical axis of the imaging optical path, and the imaging objective lens 4 is placed 175mm behind the DMD3, and the detector 5 is placed 19mm behind the imaging objective lens 4.

[0074] Step 2, collecting the image formed by the code on the detector 5.

[0075] The first step is to load the calibration code proposed by the present invention on DMD3. In this embodiment, due to the relationship between the size of the DMD3 micromirror, the pixel size of the detector 5 and the magnification of the projection lens 4, the super-resolution magnification is , that is, the 2×2 micromirror information on DMD3 is projected by the projection lens 4 and is received by one pixel of the detector 5, so the width of the five codes A, B, C, D, and O is 2 micromirror units; the length of each code is 8 micromirror units; in this embodiment, e=4, so the codes on the four corners are 8 micromirror units away from the edge of the DMD3 chip; the entire calibrated code size is 1024×768 micromirror units, that is, the resolution of DMD3 is 1024×768.

[0076] The second step is to collect the image of the calibration code received on the detector. Ideally, the ratio of each part of the calibration code to the number of pixels on the detector 5 and the number of micromirrors on the DMD 3 is , that is, after the calibration code is collected by the detector 5, it occupies 384×512 pixels on the image plane of the detector 5. The calibration code image data collected by the detector 5 is read into matlab and converted into a two-dimensional data matrix.

[0077] Step 3: construct pixel alignment evaluation indicators.

[0078] The first step is to judge the horizontal position of codes A and B by selecting the image based on the imaging relationship and magnification of the super-resolution imaging system based on DMD3. row data; horizontal evaluation of coding C and D, selecting For the vertical evaluation of codes A and C, select Column data; vertical evaluation of encoding B and D, select the image Column data; for the horizontal judgment of the center code O, select the and row data; vertical judgment of the center code O, select the image and Column data.

[0079] In the second step, according to the data selected in the previous step, the coordinates of each target point are: 、 、 、 、 、 、 、 ( 、 、 、 、 , remember x Direction target point The coordinates of the background points on the left and right sides are: 、 、 ( ) 、 ( ) 、 ( ) 、 ( ) 、 ( ) 、 ( 、 、 、 , remember y Direction target point The coordinates of the background points on the left and right sides are: 、 、 、 、 、 、 、 、 、 、 、 .

[0080] After measurement, the gray value of each target point is: , , , , , , , , , , , The gray value of each background point is , , , , , , , , , , , , , , , , , , , , , , , .

[0081] Step 4: Determine whether the pixels on the image plane are aligned.

[0082] The first step is to calculate: , , , , , , , , , ; The horizontal pixel alignment evaluation index h and the vertical pixel alignment evaluation index are both greater than the threshold value 0.01 set by the present invention, and the judgment result is misalignment.

[0083] The second step is to fine-tune the detector image plane position according to the gray value comparison of the upper and lower or left and right background points at each target position; in this embodiment, , , , , , and , , , , , , so the detector image plane should be fine-tuned to the left and downward for a certain distance. Note: Because it is pixel-level alignment fine-tuning, the fine-tuning distance should be less than the pixel size of 12μm.

[0084] The third step is to adjust the positions of the components in the system and return to step 2 to collect images again and step 3 to read data. The gray value of the target point collected again after fine adjustment is , , , , , , , , , , , The gray value of each background point is , , , , , , , , , , , , , , , , , , , , , , , .

[0085] After calculation: , , , , , , , , , ; The horizontal pixel alignment evaluation index h and the vertical pixel alignment evaluation index s are both less than the threshold value 0.01 set by the present invention, and the result is determined to be aligned. The comparison of the local enlargement (A code) of the calibration code image before and after the alignment calibration is completed is shown in the figure Figure 7 As shown in the figure, the imaging effect before and after the alignment calibration is completed is as follows Figure 8 shown.

Claims

1. A calibration method based on pixel alignment of a DMD super-resolution imaging system, characterized in that: The method comprises the following steps: S1. Build a super-resolution imaging system based on DMD (3); S2, loading the calibration code on the DMD (3), collecting the image formed by the calibration code on the detector (5), reading the collected calibration code image data using MATLAB, converting it into a two-dimensional data matrix, and obtaining an image matrix; The calibration code diagram includes five characteristic positions, namely, four vertex positions and one center position, the codes of the four vertex positions are represented by A, B, C and D respectively, and the code of the center position is represented by O; wherein the codes on the four vertex positions are "L"-shaped codes, and the two adjacent sides of the "L"-shaped codes are of the same length, both of which are 4k micromirror units; the code on the center position is a right cross code, and the four adjacent sides of the right cross code are of the same length, both of which are 4k micromirror units; the width of all codes is k micromirror units, k is an integer, and the micromirror unit is specifically: DMD (3) includes a plurality of micromirrors of the same square shape, and the micromirror unit is the side length of the micromirror; The distance between the encoding of the four vertex positions and the edge of the DMD (3) chip is ek micromirror units, 3≤e≤8 and e is an integer; S3, based on the calibration code, extract the grayscale data of the target point at the corresponding position of the image matrix, and construct the pixel alignment evaluation index; The structural pixel alignment evaluation index is specifically: For codes A, B, C, D, and O, the horizontal pixel alignment assessment index and the vertical pixel alignment assessment index are constructed respectively; For encoding A: Select the first The gray value a of the pixel point in the code A corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code A, respectively recorded as a 11 and a 12 ,use Constructing the lateral pixel alignment evaluation index of code A; Select the first The gray value a of the pixel point in the code A corresponding to the column 20 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code A, respectively recorded as a 21 and a 22 ,use Construct the longitudinal pixel alignment evaluation index of code A; For encoding B: Select the first The gray value b of the pixel point in the code B corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above encoding B, respectively recorded as b 11 and b 12 ,use Constructing the lateral pixel alignment evaluation index of code B; Select the first The gray value b of the pixel point in the encoding B corresponding to the column 20 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above encoding B, respectively recorded as b 21 and b 22 ,use Constructing the longitudinal pixel alignment evaluation index of code B; For encoding C: Select the first The gray value c of the pixel point in the code C corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code C, respectively recorded as c 11 and c 12 ,use Construct the lateral pixel alignment evaluation index of code C; Select the first The gray value c of the pixel point in the code C corresponding to the column 20 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code C, respectively recorded as c 21 and c 22 ,use Construct the longitudinal pixel alignment evaluation index of code C; For encoding D: Select the first The gray value d of the pixel point in the code D corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code D, respectively denoted as d 11 and d 12 ,use Constructing the lateral pixel alignment evaluation index of code D; Select the first The gray value d of the pixel point in the encoding D corresponding to the column 20 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code D, respectively recorded as d 21 and d 22 ,use Constructing the longitudinal pixel alignment evaluation index of code D; For code O: Select the first The gray value o of the pixel point in the code O corresponding to the row 10 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code O, respectively recorded as o 11 and 12 ; Select the first The gray value o of the pixel point in the code O corresponding to the row 20 , and take the grayscale values ​​of the pixels on the left and right sides of the pixel in the above code O, respectively recorded as o 21 and 22 ; Select the first The gray value o of the pixel point in the code O corresponding to the column 30 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code O, respectively recorded as o 31 and 32 ; Select the first The gray value o of the pixel point in the code O corresponding to the column 40 , and take the grayscale values ​​of the pixels on the upper and lower sides of the pixel in the above code O, respectively recorded as o 41 and 42 ; use Construct the lateral pixel alignment evaluation index of code O, using Construct the longitudinal pixel alignment evaluation index of code O; S4. Adjust the super-resolution imaging system based on the pixel alignment evaluation index until the pixel alignment evaluation index meets the requirements.

2. The calibration method for pixel alignment based on DMD super-resolution imaging system according to claim 1, characterized in that: When building an imaging system, the imaging process of the optical path is as follows: the light source (1) emits light through the telescope objective lens (2) to form an image on the DMD (3); after encoding and modulation by the DMD (3), the light is formed on the detector (5) through the imaging objective lens (4).

3. The calibration method based on pixel alignment of DMD super-resolution imaging system according to claim 2, characterized in that: The light source (1), the telephoto objective lens (2) and the DMD (3) form a telephoto optical path, and the DMD (3), the imaging objective lens (4) and the detector (5) form an imaging optical path. In each optical path, the main optical axes of the components coincide.

4. The calibration method for pixel alignment based on DMD super-resolution imaging system according to claim 3, characterized in that: The super-resolution imaging system is adjusted based on the pixel alignment evaluation index until the pixel alignment evaluation index meets the requirements, specifically: determination , , , , , , , , If all of them are less than 0.01, it is considered that the pixels on the image plane of the detector (5) are aligned; if there are some pixels whose alignment evaluation index is greater than or equal to 0.01, the position of the image plane of the detector (5) is adjusted according to the gray value comparison of the upper and lower or left and right background points at each encoding position, and the process returns to step S2 to continue imaging until , , , , , , , , are all less than 0.01, and the pixel alignment is considered to be completed.