A dmd-based illumination pupil shape and uniformity compensation device and method
By using a DMD-based illumination pupil shape and uniformity compensation device, the problems of pupil ellipticization, eccentricity, and intensity non-uniformity after the introduction of DMD are solved, achieving high precision and stability of the microscopic illumination system, which is suitable for microscopic imaging of deep and narrow groove vertical sidewalls and complex confined structures.
Patent Information
- Application Number
- CN202611346227.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-20
AI Technical Summary
In traditional lighting systems, the introduction of DMD leads to ellipticization, eccentricity, boundary distortion, and uneven intensity distribution of the illumination pupil, affecting the quality of microscopic imaging and the stability of three-dimensional reconstruction.
An illumination pupil shape and uniformity compensation device based on DMD is adopted. Through geometric pre-compensation and intensity uniformity compensation, a geometric mapping and illumination response relationship is established using a light source module, collimating lens group, reflecting mirror group, digital micromirror device (DMD), pupil relay mirror group, microscope objective, and pupil detection module. A joint compensation pattern is generated and loaded onto the DMD to achieve the preset shape and uniformity.
It improves the control accuracy and stability of the illumination pupil, enhances the consistency of pupil energy distribution in the microscopic illumination system, and is suitable for microscopic imaging measurements with different light source wavelengths and objective lens magnifications.
Smart Images

Figure CN123136901A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of optical system design, microscopic illumination, spatial light modulation, and precision optical measurement, and specifically to a device and method for compensating the shape and uniformity of the illumination pupil based on a digital micromirror device (DMD). Background Technology
[0002] In microscopic imaging, measurement of vertical sidewalls of deep and narrow trenches, and optical inspection of complex confined structures, the shape and intensity distribution of the illumination pupil directly affect the incident angle spectrum, the illumination state of the target area, the intensity of background stray light, and the final image contrast. Therefore, shape modulation and energy control of the illumination pupil are important means to improve the microscopic imaging quality of such structures.
[0003] Traditional lighting systems often use fixed apertures or slit apertures to limit the illumination area or angular region. While these apertures are simple in structure, their fixed shape and poor adjustment flexibility make it difficult to change the pupil shape in real time according to different measurement objects, measurement depths, and target areas. Digital micromirror devices (DMDs), with their high-speed, programmable, and spatially partitioned modulation capabilities, can be used to replace fixed apertures or as programmable pupil modulators, enabling flexible control of the illumination pupil.
[0004] However, in practical optical systems, when collimated parallel light is incident on the DMD via the mirror group and reflected by the DMD into the subsequent pupil relay system, the system often needs to adopt an off-axis incident and off-axis exit structure due to the fixed tilt angle of the DMD micromirrors. At the same time, factors such as mirror assembly and adjustment errors, magnification differences in the pupil relay mirror group, optical aberrations, system vignetting, DMD micromirror array diffraction, and differences in local reflection efficiency can cause the originally ideal circular illumination pupil to become elliptic, eccentric, have boundary distortion, and have uneven intensity distribution after actual transmission.
[0005] If an ideal circular, slit-shaped, or other preset pupil pattern is directly loaded onto the DMD, the actual illumination pupil often cannot maintain the designed shape. Even if the boundary shape of the actual illumination pupil is close to the target shape, its internal light intensity may have problems such as a brighter center, a darker edge, local stripes, local light deficiency, or energy gradients. These non-ideal factors will reduce the consistency and stability of the illumination angular spectrum, thereby affecting the contrast, recognizability, and subsequent stability of 3D reconstruction in microscopic imaging. Summary of the Invention
[0006] To address the problems existing in the prior art, the present invention aims to provide a DMD-based illumination pupil shape and uniformity compensation device and method. By performing geometric pre-compensation and intensity uniformity compensation on the DMD loading pattern, the actual illumination pupil can simultaneously meet the preset shape and preset uniformity requirements. This solves the problems of ellipticization, offset, boundary distortion, and intensity non-uniformity of the actual illumination pupil after the DMD is introduced into the illumination optical path, thereby improving the pupil control accuracy and illumination stability of the microscopic illumination system.
[0007] To achieve the above objectives, the present invention adopts the following technical solution: The present invention provides a DMD-based illumination pupil shape and uniformity compensation device, which includes: a light source module, a collimating lens group, a reflecting mirror group, a digital micromirror device (DMD), a pupil relay lens group, a microscope objective, a pupil detection module, and a control module arranged sequentially along the illumination optical path. The light source module is used to emit an illumination beam; The collimating lens group is used to shape the illumination beam into a parallel beam; The mirror group is used to change the propagation direction of the parallel beam and guide the parallel beam to the digital micromirror device (DMD). The digital micromirror device (DMD) is a micromirror array composed of multiple micromirror units, which is disposed on the illumination pupil or the conjugate plane of the illumination pupil. The parallel beam is modulated by the switching state of each micromirror unit to form a pupil modulation pattern. The pupil relay lens group is used to compensate for the pupil modulation pattern and then transmit it to the illumination pupil position or its conjugate position of the microscope objective. The microscope objective is used to guide the illumination beam corresponding to the compensated pupil modulation pattern to the pupil detection module. The pupil detection module is used to obtain the shape information and intensity distribution information of the actual illumination pupil corresponding to the illumination beam of the pupil modulation pattern; The control module is used to generate a joint compensation pattern based on the preset shape and intensity distribution information of the target illumination pupil and the actual illumination pupil, and load it onto the digital micromirror device (DMD), so that the actual illumination pupil after being transmitted through the DMD and the pupil relay lens group has a preset shape and preset uniformity. The joint compensation pattern includes a pupil shape pre-compensation pattern and a pupil uniformity compensation pattern.
[0008] The feature of the illumination pupil shape and uniformity compensation device based on DMD described in this invention is that the digital micromirror device (DMD) is used to replace the slit aperture in the line field illumination module, or is set at the pupil modulation position in the line field illumination module to achieve illumination pupil compensation under line field illumination conditions.
[0009] Furthermore, the control module includes: a geometric calibration unit, an intensity calibration unit, a compensation pattern generation unit, and a DMD driving unit; The geometric calibration unit is used to establish the geometric mapping relationship between the pixel coordinates of the DMD and the coordinates of the actual illumination pupil; The intensity calibration unit is used to establish the lighting response relationship between different regions of the DMD and different regions of the actual lighting pupil; The compensation pattern generation unit is used to generate a joint compensation pattern based on the geometric mapping relationship and the lighting response relationship; The DMD driving unit is used to load the joint compensation pattern onto the digital micromirror device (DMD).
[0010] Furthermore, the geometric mapping relationship includes at least one of translation, rotation, scaling, affine transformation, perspective transformation, and higher-order polynomial distortion correction, used to compensate for ellipticization, offset, and boundary distortion of the pupil modulation pattern.
[0011] Furthermore, the illumination response relationship is obtained by the pupil detection module when the DMD loads a fully open pattern, a partitioned scanning pattern, a dot matrix pattern, a ring pattern, a checkerboard pattern, or a grayscale equivalent pattern, based on the actual illumination pupil intensity distribution.
[0012] Furthermore, the pupil detection module includes: a camera, a photodetector, a detection screen, or a switchable detection component disposed at the conjugate position of the illumination pupil, for acquiring at least one of the following: the boundary contour, center position, major and minor axis ratio, local gray value, and uniformity evaluation value of the actual illumination pupil.
[0013] The present invention provides a method for compensating for the shape and uniformity of an illumination pupil based on a DMD, characterized by the following steps: Step 1: The illumination beam emitted from the light source module passes through the collimating lens group to form a parallel beam, which is then guided to the digital micromirror device (DMD) by the reflecting mirror group; Step 2: The digital micromirror device (DMD) loads a geometric calibration pattern through the switching state of each micromirror unit to modulate the shape of the parallel beam, thereby forming a pupil shape modulation pattern. Step 3: The pupil relay lens group is used to transmit the pupil modulation pattern modulated by the digital micromirror device (DMD) to the illumination pupil position or its conjugate position of the microscope objective; thereby the microscope objective guides the illumination beam corresponding to the compensated pupil shape modulation pattern to the pupil detection module. Step 4: The pupil detection module acquires the shape information of the actual illumination pupil and establishes a geometric mapping relationship between the pixel coordinates of the DMD and the coordinates of the actual illumination pupil; Step 5: Based on the preset target illumination pupil shape information and the geometric mapping relationship, calculate the pupil shape pre-compensation pattern of the DMD corresponding to the preset target pupil shape; Step 6: Load an intensity calibration pattern onto the digital micromirror device (DMD) to modulate the intensity of the parallel beam, thereby forming a pupil intensity modulation pattern. After the process in Step 3, the pupil detection module collects the intensity distribution information of the actual illumination pupil and sends it to the control module. The control module establishes an illumination response relationship based on the preset target illumination pupil intensity distribution information and the intensity distribution information collected by the pupil detection module. Step 7: Based on the illumination response relationship, perform local micromirror opening ratio compensation on the DMD pupil shape pre-compensation pattern to generate a joint compensation pattern; Step 8: Load the joint compensation pattern onto the digital micromirror device (DMD) so that the actual illumination pupil after transmission through the pupil relay lens group achieves the preset shape and preset uniformity.
[0014] The method for compensating the shape and uniformity of the illumination pupil based on DMD described in this invention is characterized in that, in step three, when the digital micromirror device (DMD) loads an uncompensated pattern for pupil shape pre-compensation, the actual illumination pupil obtained by the pupil detection module is elliptical relative to the preset target illumination pupil. Then, based on the major axis direction, minor axis direction, center offset, and major-minor axis ratio of the actual illumination pupil, a reverse pre-distortion pattern is generated on the plane of the DMD. After the reverse pre-distortion pattern is transmitted through the digital micromirror device (DMD) and the pupil relay lens group, it forms an actual illumination pupil that is close to the shape of the preset target pupil.
[0015] Furthermore, the pupil shape pre-compensation pattern and intensity calibration pattern are obtained by compensating for the opening ratio of each micromirror unit's switching state; specifically, the target illumination pupil area is divided into multiple compensation sub-regions, and the number of micromirror units, opening time, or opening sequence of the DMD in the corresponding compensation sub-region are adjusted according to the deviation between the actual light intensity and the target light intensity in each compensation sub-region.
[0016] Furthermore, following step eight, a closed-loop iteration step is also included: The shape and intensity distribution information of the actual illumination pupil are reacquired, and the shape error and intensity error between the actual illumination pupil and the preset target pupil are calculated. When the shape error or intensity error is greater than a set threshold, the geometric mapping relationship, illumination response relationship or joint compensation pattern is updated until the actual illumination pupil meets the preset requirements.
[0017] Compared with the prior art, the beneficial effects of the present invention are reflected in: 1. This invention uses DMD to replace the traditional fixed slit aperture or fixed aperture aperture, which can quickly change the shape of the illumination pupil and avoid the problems of low efficiency, large repeatability error and poor adaptability caused by mechanically replacing the aperture.
[0018] 2. This invention establishes a geometric mapping relationship between the DMD plane and the actual illumination pupil plane, which can pre-compensate for pupil ellipticization, offset and boundary distortion caused by DMD tilt reflection, off-axis transmission and pupil relay error, so that the actual illumination pupil is closer to the preset target shape.
[0019] 3. This invention compensates for the local micromirror opening ratio of the DMD by collecting the actual illumination pupil intensity distribution and establishing the illumination response relationship, thereby improving the uneven intensity inside the illumination pupil and enhancing the consistency of pupil energy distribution.
[0020] 4. This invention combines pupil shape compensation and pupil uniformity compensation, enabling the DMD to not only control the boundary shape of the illumination pupil, but also adjust the energy distribution inside the pupil, thereby improving the stability and repeatability of the microscopic illumination system.
[0021] 5. This invention can establish a compensation parameter library based on different light source wavelengths, different objective lens magnifications, different illumination modes, and different target pupil shapes, and is applicable to microscopic imaging measurements of deep and narrow trench vertical sidewalls and other complex and confined structures. Attached Figure Description
[0022] To more clearly illustrate the technical solution of the present invention, the device structure, the programmable modulation capability of the DMD on the illumination pupil, the shape compensation process, the uniformity compensation process, and the combined closed-loop compensation process will be described below with reference to the accompanying drawings.
[0023] Figure 1 This is a diagram showing the optical path structure of the illumination pupil shape and uniformity compensation device based on DMD according to the present invention. Figure 2 This is a diagram showing the functional modules and closed-loop relationship of the present invention; Figure 3 These are comparison images of the illumination pupil shape before and after compensation according to the present invention, where a is before compensation; b is after compensation. Figure 4aThis is a two-dimensional incoherent irradiance distribution diagram of the illumination pupil before uniformity compensation according to the present invention. Figure 4b This is an equivalent opening ratio distribution diagram of the DMD local micromirror unit of the present invention; Figure 4c This is a diagram showing the uniformity compensation result after the discrete quantization activation ratio is applied in this invention. Figure 4d This is an incoherent irradiance distribution diagram before uniformity compensation in the 9×9 subdivision region of the present invention; Figure 4e This is an equivalent opening ratio distribution diagram of the DMD local micromirror unit corresponding to the 9×9 subdivision region of the present invention; Figure 4f This is an incoherent irradiance distribution diagram after uniformity compensation of the 9×9 subdivision region according to the present invention; Figure 5 This is a flowchart of the method for joint compensation of illumination pupil shape and uniformity based on DMD according to the present invention. Detailed Implementation
[0024] In this embodiment, a DMD-based illumination pupil shape and uniformity compensation device, such as... Figure 1 As shown, it includes: a light source module 1, a collimating lens group 2, a reflecting mirror group 3, a digital micromirror device (DMD) 4, a pupil relay lens group 5, a microscope objective lens 6, a pupil detection module 7, and a control module 8 arranged sequentially along the illumination optical path; Figure 1 This invention provides an engineering lighting optical path that can be used. In a specific implementation, the pupil of the lighting system or its conjugate position can be led out to a position suitable for spatial light modulation through an optical relay, and a digital micromirror device (DMD4) can be set at this position to establish a spatial correspondence between the DMD micromirror array and the subsequent actual lighting pupil.
[0025] Light source module 1 is used to emit an illumination beam; Collimating lens group 2 is used to shape the illumination beam into a parallel beam.
[0026] The mirror group 3 is used to change the propagation direction of the parallel beam and guide the parallel beam to the digital micromirror device DMD4; The digital micromirror device (DMD4) is a micromirror array composed of multiple micromirror units, which are placed on the illumination pupil or the conjugate plane of the illumination pupil. The parallel beam is modulated by the switching state of each micromirror unit to form a pupil modulation pattern. The effective reflection area of the DMD4 is determined by the loading pattern. Therefore, it can change the effective boundary of the pupil and also change the equivalent light energy transfer ratio of the corresponding area by changing the number or timing of micromirrors in the effective reflection state locally.
[0027] Among them, the digital micromirror device DMD4 is used to replace the slit aperture in the line field illumination module, or is set at the pupil modulation position in the line field illumination module to achieve illumination pupil compensation under line field illumination conditions.
[0028] The pupil relay lens group 5 is used to compensate for the pupil modulation pattern and then transmit it to the illumination pupil position or its conjugate position of the microscope objective 6. The pupil relay lens group 5 mainly undertakes the conjugate transmission between the DMD modulation surface and the illumination pupil position of the microscope objective 6. The "compensated" pupil modulation pattern refers to the modulation result after the DMD4 has been loaded with the corresponding compensation pattern.
[0029] The microscope objective 6 is used to guide the illumination beam corresponding to the compensated pupil modulation pattern to the pupil detection module 7; The pupil detection module 7 is used to acquire the shape and intensity distribution information of the actual illumination pupil corresponding to the illumination beam of the pupil modulation pattern; In specific implementation, the pupil detection module 7 includes: a camera, a photodetector, a detection screen, or a switchable detection component positioned at the conjugate position of the illumination pupil, used to acquire at least one of the following: boundary contour, center position, major and minor axis ratio, local grayscale value, and uniformity evaluation value of the actual illumination pupil. For example, when a camera is used as the pupil detection module 7, a two-dimensional image of the actual illumination pupil can be directly obtained, and pupil boundary information and local intensity information can be obtained through edge extraction and regional grayscale statistics, respectively, providing detection data for shape compensation and uniformity compensation.
[0030] The control module 8 is used to generate a joint compensation pattern based on the preset shape and intensity distribution information of the target illumination pupil and the actual illumination pupil, and load it onto the digital micromirror device (DMD4) so that the actual illumination pupil after being transmitted through the digital micromirror device (DMD4) and the pupil relay lens group 5 has a preset shape and preset uniformity. The joint compensation pattern includes a pupil shape pre-compensation pattern and a pupil uniformity compensation pattern.
[0031] In specific implementation, the control module 8 includes: a geometric calibration unit 81, an intensity calibration unit 82, a compensation pattern generation unit 83, and a DMD driving unit 84; The geometric calibration unit 81 is used to establish the geometric mapping relationship between the pixel coordinates of the DMD and the coordinates of the actual illumination pupil. In specific implementation, the geometric mapping relationship includes at least one of translation, rotation, scaling, affine transformation, perspective transformation and higher-order polynomial distortion correction, which is used to compensate for the ellipticization, offset and boundary distortion of the pupil modulation pattern.
[0032] The intensity calibration unit 82 is used to establish the illumination response relationship between different regions of the DMD and different regions of the actual illumination pupil. In specific implementation, the illumination response relationship is obtained by the pupil detection module 7 when the DMD is loaded with a fully open pattern, a partitioned scanning pattern, a dot matrix pattern, a ring pattern, a checkerboard pattern, or a grayscale equivalent pattern, and the intensity distribution of the actual illumination pupil is collected.
[0033] The compensation pattern generation unit 83 is used to generate a joint compensation pattern based on the geometric mapping relationship and the lighting response relationship; DMD drive unit 84 is used to load the joint compensation pattern onto the digital micromirror device DMD4. For example... Figure 2 As shown, the pupil detection module 7, control module 8 and DMD4 together form a closed-loop relationship of "state detection - compensation calculation - pattern loading - re-detection". Among them, the geometric calibration unit 81 mainly handles the spatial deviation of the pupil boundary, and the intensity calibration unit 82 mainly handles the energy difference within the effective area of the pupil.
[0034] To illustrate the programmable modulation capability of DMD4 over the spatial range of the actual illumination pupil, the distribution scale of the actual illumination pupil in the X and Y directions and the local irradiance state can be recorded under different DMD loading states. A set of simulation auxiliary parameters is shown in Table 1. This set of data is only used to illustrate that changes in the effective loading area of the DMD can cause changes in the spatial distribution of the actual pupil, and total power is not used as the core evaluation index for this part.
[0035] Table 1 Auxiliary parameters of pupil spatial distribution under different DMD modulation states In this embodiment, a method for compensating for the shape and uniformity of the illumination pupil based on DMD includes the following steps: Step 1: The illumination beam emitted from the light source module 1 passes through the collimating lens group 2 to form a parallel beam, and is guided to the digital micromirror device (DMD4) by the reflecting mirror group 3; Step 2: The digital micromirror device (DMD4) loads a geometric calibration pattern through the switching states of each micromirror unit to modulate the shape of the parallel beam, thereby forming a pupil shape modulation pattern. The geometric calibration pattern can be a dot matrix, grid, ring, cross, or other position marking pattern with known spatial characteristics, so as to identify the corresponding feature positions between the DMD plane and the actual pupil plane.
[0036] Step 3: After compensating the pupil shape modulation pattern, the pupil relay lens group 5 transmits it to the illumination pupil position or its conjugate position of the microscope objective 6; thus, the microscope objective 6 guides the illumination beam corresponding to the compensated pupil shape modulation pattern to the pupil detection module 7.
[0037] In specific implementation, if the actual illumination pupil, without modulation and compensation by the digital micromirror device (DMD4) and the pupil relay lens group 5, exhibits an elliptical shape relative to the preset target illumination pupil, a reverse pre-distortion pattern is generated on the plane of the DMD4 based on the major axis direction, minor axis direction, center offset, and major-minor axis ratio of the actual illumination pupil. This reverse pre-distortion pattern, after being transmitted through the DMD4 and the pupil relay lens group 5, forms an actual illumination pupil that approximates the shape of the preset target pupil. In this embodiment, the aforementioned uncompensated state can be understood as a reference state where a reverse pre-compensation pattern has not yet been applied to address the detected geometric distortion. In this reference state, the illumination beam can still be transmitted normally through the DMD4 and the pupil relay lens group 5 to compensate for the ellipticization, offset, and boundary distortion caused by the system itself.
[0038] Step 4: The pupil detection module 7 collects the shape information of the actual illumination pupil and establishes a geometric mapping relationship between the pixel coordinates of the DMD and the coordinates of the actual illumination pupil. By comparing the positional relationship between the known feature points on the DMD plane and the corresponding feature points on the actual illumination pupil plane, one or more of the following parameters can be obtained: translation, rotation, scaling, affine transformation, perspective transformation, or higher-order polynomial distortion correction parameters, and they are uniformly represented as a geometric mapping relationship T.
[0039] Step 5: Based on the preset target illumination pupil shape information and geometric mapping relationship, calculate the DMD pupil shape pre-compensation pattern corresponding to the preset target pupil shape; let the preset target illumination pupil contour be... By performing inverse mapping based on the geometric mapping relationship T, the inverse pre-compensation profile of the DMD plane can be obtained. ; The purpose of this reverse pre-compensation is to preemptively counteract geometric distortions caused by factors such as DMD tilt reflection, off-axis transmission, magnification differences, and assembly / adjustment deviations. For example... Figure 3 As shown, without pupil shape pre-compensation, the actual effective pupil is obviously elliptical; after loading the reverse pre-distortion pattern, the horizontal and vertical dimensions of the actual pupil are closer, and the overall outline is restored from ellipse to near circle.
[0040] Step Six: An intensity calibration pattern is loaded onto the digital micromirror device (DMD4) to modulate the intensity of the parallel beam, forming a pupil intensity modulation pattern. After the process in Step Three, the pupil detection module 7 collects the intensity distribution information of the actual illumination pupil and the preset target illumination pupil, and establishes the illumination response relationship between different regions of the DMD and different regions of the actual illumination pupil. After shape pre-compensation, intensity calibration can be performed within the effective pupil area. For principle verification, a fully open pattern can be used to obtain the two-dimensional intensity distribution without uniformity compensation. For cases requiring improved spatial correspondence accuracy, a partitioned scanning pattern can be used to establish the illumination response relationship between the DMD region and the actual pupil region region area by area.
[0041] Specifically, the effective area of the target illumination pupil Divide into K compensation sub-regions, let the kth compensation sub-region be... The average actual light intensity of the region is denoted as Then it can be expressed as equation (1): (1) In equation (1), express The actual illumination pupil at coordinates (x, y) has a light intensity value.
[0042] Let the target light intensity be Since DMD4 achieves homogenization primarily by reducing the equivalent light transmission ratio in high-brightness areas without introducing additional gain devices, a reference value not exceeding the lower light intensity within the effective pupil area can be selected as the standard. The theoretical local compensation coefficient of the k-th compensation sub-region. It can be expressed as equation (2): (2) Therefore, when the actual light intensity of a certain compensation sub-region At higher levels, A value less than 1 corresponds to a lower equivalent activation ratio; when Approaching the target light intensity hour, A value close to 1 corresponds to a higher equivalent on / off ratio, thus creating a reverse energy modulation that weakens bright areas more and weakens low-brightness areas less.
[0043] In specific implementation, the pupil shape pre-compensation pattern and intensity calibration pattern are obtained by compensating the opening ratio of each micromirror unit's switching state; specifically, the target illumination pupil area is divided into multiple compensation sub-regions, and the number of micromirror units in the corresponding compensation sub-region, the opening time, or the opening sequence of the DMD in the corresponding compensation sub-region is adjusted according to the deviation between the actual light intensity and the target light intensity in each compensation sub-region. Among them, the effective boundary of the pupil shape pre-compensation pattern is mainly determined based on the above geometric inverse mapping relationship; within this effective boundary, the equivalent opening ratio of the local micromirrors is adjusted according to the actual intensity deviation to achieve intensity uniformity compensation. For binary DMD, several micromirror units can be combined into a compensation superpixel unit, and the continuous compensation coefficient is converted into a discrete number of micromirror openings, as shown in equation (3): (3) In equation (3), This indicates that, based on the theoretical local compensation coefficient and the total number of micromirror units The number of micromirrors opened is calculated and rounded. For the k-th compensation sub-region The total number of micromirror units involved in quantization; This represents the number of micromirror units in the effective reflection state within the compensation sub-region; As the actual equivalent opening ratio, the compensated local output light intensity can be approximately expressed as equation (4): (4) For example, when a compensated superpixel unit consists of 4×4 micromirror units, it contains a total of 16 independently controllable micromirror units; if =0.75, which allows approximately 12 micromirror units to be activated; if =0.50, which can enable approximately 8 micromirror units. In addition to spatial duty cycle or superpixel mode, different equivalent on-state ratios can also be obtained by adjusting on-time, on-sequence, error diffusion, time multiplexing, or spatial-temporal joint modulation.
[0044] Step 7: Based on the illumination response relationship, perform local micromirror opening ratio compensation on the DMD pupil shape pre-compensation pattern to generate a joint compensation pattern; let the pixel coordinates of the DMD plane be (u,v), and the pupil shape pre-compensation mask be... ,in, This indicates whether the coordinates (u,v) in the DMD plane are within the effective region of the pupil shape pre-compensation pattern; a value of 1 is taken within the effective region, and a value of 0 is taken outside the effective region. The equivalent opening ratio distribution of uniformity compensation is... ,in, This represents the equivalent opening ratio of the compensation sub-region at the DMD plane coordinates (u,v), with a value ranging from 0 to 1. The two can then be combined to obtain the joint compensation pattern. : (5) In equation (5), The main task is to determine the effective boundary of the actual illumination pupil. The main task is to determine the equivalent light energy transfer ratio at different locations within the boundary. When actually loading it onto the binary DMD, it can first be determined by… Determine the permissible range of micromirrors for illumination, and then within that range, based on... Configure the number of micromirrors to be opened, the opening time, or the opening sequence of each compensation sub-region, so that shape compensation and uniformity compensation can be combined in the same joint compensation pattern.
[0045] Step 8: Load the joint compensation pattern onto the digital micromirror device DMD4 so that the actual illumination pupil after being transmitted through the pupil relay lens group 5 achieves the preset shape and preset uniformity. Figures 4a to 4f A simulation example of uniformity compensation is given. Figures 4a-4c The 21 effective compensation sub-regions were formed by removing the four corners using a 5×5 grid: before compensation, the incoherent irradiance distribution was stronger in the center and weaker at the periphery; calculations were performed based on the actual light intensity of each region. After discretization, the central bright area adopts a lower opening ratio, while the outer weaker area adopts a higher opening ratio. After loading the quantized compensation pattern, the overall irradiance of each area tends to be consistent, while retaining a small amount of residual difference caused by the discretization of the binary micromirror.
[0046] Furthermore, Figures 4d to 4f A 9×9 subdivision compensation sub-region is adopted to increase the spatial division density without changing the aforementioned reverse compensation principle. Compared with 21 effective compensation sub-regions, the subdivision method can independently adjust the local opening ratio at a smaller spatial scale, indicating that the number and size of the compensation sub-regions can be set according to the number of DMD pixels, the actual pupil size, and uniformity requirements, rather than being limited to a fixed division.
[0047] Step Nine: Reacquire the shape and intensity distribution information of the actual illumination pupil, calculate the shape and intensity errors between the actual illumination pupil and the preset target pupil. When the shape or intensity error exceeds a set threshold, update the geometric mapping relationship, illumination response relationship, or joint compensation pattern until the actual illumination pupil meets the preset requirements. Figure 5As shown, the complete implementation process forms a closed loop of "target setting—geometric calibration—shape pre-compensation—intensity calibration—local opening ratio compensation—joint compensation pattern loading—result detection—threshold judgment". When the shape error or intensity error still exceeds the set threshold, the detection result is fed back to the control module 8 to update the geometric mapping relationship, illumination response relationship, or joint compensation pattern; when the threshold is met, the actual illumination pupil that achieves the preset shape and preset uniformity is output. For applications with stable system status, the corresponding compensation parameters can be saved and directly called under the same light source wavelength, objective lens magnification, illumination mode, and target pupil conditions; when the system setup status or target pupil changes, calibration and update are re-executed.
[0048] It should be noted that the target illumination pupil can be set to a circular, elliptical, slit-shaped, ring-shaped, fan-shaped, or other preset shape depending on the specific application; the number of compensation sub-regions, the target light intensity selection method, the number of micromirror groups, the quantization level, and the iteration threshold can also be adjusted according to the light source, DMD model, microscope objective magnification, and illumination mode. The aforementioned 21 regions, 9×9 subdivision, and 4×4 micromirror superpixels are all illustrative embodiments and do not constitute a limitation on the scope of protection of this invention.
Claims
1. A DMD-based illumination pupil shape and uniformity compensation device, characterized in that, include: The following components are arranged sequentially along the illumination optical path: light source module (1), collimating lens group (2), reflecting mirror group (3), digital micromirror device (DMD) (4), pupil relay lens group (5), microscope objective (6), pupil detection module (7), and control module (8); The light source module (1) is used to emit an illumination beam; The collimating lens group (2) is used to shape the illumination beam into a parallel beam; The mirror group (3) is used to change the propagation direction of the parallel beam and guide the parallel beam to the digital micromirror device (DMD) (4); The digital micromirror device (DMD) (4) is a micromirror array composed of multiple micromirror units, and is disposed on the illumination pupil or the conjugate plane of the illumination pupil. The parallel beam is modulated by the switching state of each micromirror unit to form a pupil modulation pattern. The pupil relay lens group (5) is used to transmit the pupil modulation pattern to the illumination pupil position or its conjugate position of the microscope objective (6) after compensation. The microscope objective (6) is used to guide the illumination beam corresponding to the compensated pupil modulation pattern to the pupil detection module (7); The pupil detection module (7) is used to obtain the shape information and intensity distribution information of the actual illumination pupil corresponding to the illumination beam of the pupil modulation pattern; The control module (8) is used to generate a joint compensation pattern based on the preset shape information and intensity distribution information of the target illumination pupil and the shape information and intensity distribution information of the actual illumination pupil, and load it onto the digital micromirror device (DMD) (4), so that the actual illumination pupil after being transmitted by the digital micromirror device (DMD) (4) and the pupil relay lens group (5) has a preset shape and preset uniformity. The joint compensation pattern includes: a pupil shape pre-compensation pattern and a pupil uniformity compensation pattern.
2. The illumination pupil shape and uniformity compensation device based on DMD according to claim 1, characterized in that, The digital micromirror device (DMD) (4) is used to replace the slit aperture in the line field illumination module, or is set at the pupil modulation position in the line field illumination module to achieve illumination pupil compensation under line field illumination conditions.
3. The illumination pupil shape and uniformity compensation device based on DMD according to claim 1, characterized in that, The control module (8) includes: a geometric calibration unit (81), an intensity calibration unit (82), a compensation pattern generation unit (83), and a DMD driving unit (84); The geometric calibration unit (81) is used to establish the geometric mapping relationship between the pixel coordinates of the DMD and the coordinates of the actual illumination pupil; The intensity calibration unit (82) is used to establish the lighting response relationship between different regions of the DMD and different regions of the actual lighting pupil; The compensation pattern generation unit (83) is used to generate a joint compensation pattern based on the geometric mapping relationship and the lighting response relationship; The DMD driving unit (84) is used to load the joint compensation pattern onto the digital micromirror device DMD (4).
4. The illumination pupil shape and uniformity compensation device based on DMD according to claim 3, characterized in that, The geometric mapping relationship includes at least one of translation, rotation, scaling, affine transformation, perspective transformation, and higher-order polynomial distortion correction, used to compensate for ellipticization, offset, and boundary distortion of the pupil modulation pattern.
5. The illumination pupil shape and uniformity compensation device based on DMD according to claim 3, characterized in that, The illumination response relationship is obtained by the actual illumination pupil intensity distribution collected by the pupil detection module (7) when the DMD is loaded with a fully open pattern, a partitioned scanning pattern, a dot matrix pattern, a ring pattern, a checkerboard pattern, or a grayscale equivalent pattern.
6. The illumination pupil shape and uniformity compensation device based on DMD according to claim 1, characterized in that, The pupil detection module (7) includes: a camera, photodetector, detection screen or switchable detection component set at the conjugate position of the illumination pupil, used to acquire at least one of the following: boundary contour, center position, major and minor axis ratio, local gray value and uniformity evaluation value of the actual illumination pupil.
7. A method for compensating the shape and uniformity of an illumination pupil based on a DMD, which is implemented based on the DMD-based device for compensating the shape and uniformity of an illumination pupil according to any one of claims 1 to 6, characterized in that, Includes the following steps: Step 1: The illumination beam emitted from the light source module (1) passes through the collimating lens group (2) to form a parallel beam, and is guided to the digital micromirror device (DMD) (4) through the reflecting mirror group (3); Step 2: The digital micromirror device (DMD) (4) loads a geometric calibration pattern through the switching state of each micromirror unit to modulate the shape of the parallel beam, thereby forming a pupil shape modulation pattern; Step 3: The pupil relay lens group (5) is used to transmit the pupil modulation pattern modulated by the digital micromirror device (DMD) (4) to the illumination pupil position or its conjugate position of the microscope objective (6); Thus, the microscope objective (6) guides the illumination beam corresponding to the compensated pupil shape modulation pattern to the pupil detection module (7); Step 4: The pupil detection module (7) collects the shape information of the actual illumination pupil and establishes the geometric mapping relationship between the pixel coordinates of the DMD and the coordinates of the actual illumination pupil; Step 5: Based on the preset target illumination pupil shape information and the geometric mapping relationship, calculate the pupil shape pre-compensation pattern of the DMD corresponding to the preset target pupil shape; Step 6: Load an intensity calibration pattern onto the digital micromirror device (DMD) (4) to modulate the intensity of the parallel beam to form a pupil intensity modulation pattern. After the process in Step 3, the intensity distribution information of the actual illumination pupil is collected by the pupil detection module (7) and sent to the control module (8). The control module (8) establishes an illumination response relationship based on the preset target illumination pupil intensity distribution information and the intensity distribution information collected by the pupil detection module (7). Step 7: Based on the illumination response relationship, perform local micromirror opening ratio compensation on the DMD pupil shape pre-compensation pattern to generate a joint compensation pattern; Step 8: Load the joint compensation pattern onto the digital micromirror device (DMD) (4) so that the actual illumination pupil after being transmitted through the pupil relay lens group (5) reaches the preset shape and preset uniformity.
8. The method for compensating for the shape and uniformity of the illumination pupil based on DMD according to claim 7, characterized in that, In step three, when the digital micromirror device (DMD) (4) loads an uncompensated pattern for pupil shape pre-compensation, the actual illumination pupil obtained by the pupil detection module (7) is elliptical relative to the preset target illumination pupil. Then, based on the major axis direction, minor axis direction, center offset, and major-minor axis ratio of the actual illumination pupil, a reverse pre-distortion pattern is generated on the plane of the DMD (4). After the reverse pre-distortion pattern is transmitted through the digital micromirror device (DMD) (4) and the pupil relay lens group (5), it forms an actual illumination pupil that is close to the shape of the preset target pupil.
9. The method for compensating for the shape and uniformity of the illumination pupil based on DMD according to claim 7, characterized in that, The pupil shape pre-compensation pattern and intensity calibration pattern are obtained by compensating the opening ratio of the switching states of each micromirror unit. Specifically, the target illumination pupil area is divided into multiple compensation sub-regions, and the number of micromirror units of the DMD in the corresponding compensation sub-region, the opening time, or the opening sequence is adjusted according to the deviation between the actual light intensity and the target light intensity in each compensation sub-region.
10. The method for compensating for the shape and uniformity of the illumination pupil based on DMD according to claim 7, characterized in that, Following step eight, a closed-loop iteration step is also included: The shape and intensity distribution information of the actual illumination pupil are reacquired, and the shape error and intensity error between the actual illumination pupil and the preset target pupil are calculated. When the shape error or intensity error is greater than a set threshold, the geometric mapping relationship, illumination response relationship or joint compensation pattern is updated until the actual illumination pupil meets the preset requirements.
