Self-calibration method for LED array light source pose in computational microscopy imaging systems
Extract the bright and dark field areas through the CMOS camera and Unet network, fit the arc boundary, and calculate the LED array pose parameters. This solves the problem in the existing technology that the pose correction of the LED array light source requires precision mechanical devices, and achieves efficient and accurate positioning. Self-correction of posture reduces system cost and volume and improves imaging quality.
Patent Information
- Application Number
- CN202210532164.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-07
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-05-07
AI Technical Summary
The existing LED array light source pose correction method in computational microscopy imaging systems requires a multi-degree-of-freedom precision mechanical adjustment device, which is costly and bulky. Moreover, the existing automatic correction method is inaccurate, incomplete and takes a long time to correct.
A CMOS camera is used to collect the FPM data set with LED pose deviation, the Unet network is used to extract the bright and dark field areas, the bright and dark field boundary arcs are fitted, the pose parameters of the LED array are calculated through mathematical models, and the LED lights in the FPM reconstruction algorithm are corrected position to achieve self-correction of the LED array light source pose.
No need for precision mechanical device adjustment, reducing system cost and volume, improving correction accuracy and speed, obtaining a more complete LED array model, and improving imaging quality.
Smart Images

Figure CN114926357B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computational microscopy, and in particular to a method for self-correcting the position and posture of an LED array light source of a computational microscopy system. Background Art
[0002] The beauty of life depends on the diversity and complexity of biological cell structures. If there is a lack of advanced observation technology, it is difficult to appreciate it with the human eye alone. It was not until the 17th century that Leeuwenhoek, with his superb processing skills, used a microscope he made to observe bacteria and obtain their morphological structure, which opened the door to the microscopic world for mankind. However, the ability of traditional microscopic imaging systems to transmit information is restricted by the hardware parameters of the system. When pursuing high-resolution imaging, it is usually necessary to reduce the field of view at the expense of reducing the field of view, and vice versa. In addition, most biological cells are weakly absorbing phase objects and cannot be directly observed through bright-field microscopy. High-contrast images can only be obtained by staining or fluorescent labeling. However, due to the difficulty of staining some cells and the phototoxicity and photobleaching of fluorescence, the observation of weakly absorbing samples is still challenging.
[0003] Thanks to the combination of computer technology and optical microscopy technology, the computational microscopy technology that was born can recover the complex amplitude information of the sample from the collected data to be optimized through modeling and analysis of the microscopic system. Fourier Ptychographic Microscopy (FPM) is a new computational microscopy technology proposed in 2013, which can achieve quantitative phase imaging with large field of view and super resolution. The FPM system replaces the light source of the traditional microscope with a programmable LED array. When collecting data, LED lights at different positions are turned on in turn to generate light with different incident angles to illuminate the sample, and the high-frequency information of the sample is moved to the pupil of the objective lens, so as to obtain the sample information outside the cutoff frequency of the microscope objective lens. When recovering the sample information, the synthetic aperture and phase recovery algorithm are used in the computer to splice the collected data, and finally the complex amplitude information of the sample is obtained. The key to obtaining accurate imaging results in computational microscopy is that the established model should be consistent with the actual system. However, when building an FPM system, the actual LED array often deviates from the ideal LED array, resulting in inaccurate positions of the spectrum sub-regions selected during the reconstruction process and poor final reconstruction results. Therefore, matching the LED array model established during the reconstruction process with the actual LED array has become a decisive factor in obtaining high-quality imaging results.
[0004] At present, the methods for solving the above model matching problem can be divided into two categories. The first method is to adjust the actual LED array to the ideal position to achieve matching with the ideal model. However, the FPM system using this method usually requires a multi-degree-of-freedom precision mechanical adjustment device, which is often costly, bulky, time-consuming, and the adjustment technology is difficult for inexperienced users to accept. The second method is to automatically match the established model to the actual LED array through an algorithm. In 2016, Sun et al. used a method combining simulated annealing algorithm and nonlinear regression processing to search for the pose parameters of the LED array. The relevant experimental results show that this method effectively and automatically corrects the pose deviation of the LED array, but its annealing evaluation function will be affected by many factors such as LED light intensity fluctuations and camera noise, and the required iterative search time is also long; in 2022, Zheng et al. used the defocused bright field image offset characteristics to quickly obtain the pose parameters of the LED array, and realized the correction of the reconstructed amplitude, phase and pupil function, but this method has high requirements on the accuracy of the focusing device. In addition, the existing second-category methods only correct the non-tilted pose parameters, and the description of the pose of the actual LED array is not complete. Summary of the invention
[0005] In order to overcome the defects of the prior art, the technical problem to be solved by the present invention is to provide a self-correction method for the position of the LED array light source of a computational microscopy imaging system, which can eliminate the need for multi-degree-of-freedom precision mechanical adjustment devices in the existing system and solve the problems of inaccuracy, incompleteness and long correction time of the existing correction methods.
[0006] The technical solution of the present invention is: a method for self-correcting the position and posture of an LED array light source of a computational microscopy imaging system, which comprises the following steps:
[0007] (1) Turn on the LED lights in the LED array one by one and use a CMOS camera to collect the FPM dataset with LED pose deviations;
[0008] (2) Select low-resolution images with bright and dark field boundaries from the data set;
[0009] (3) Extract the bright field area of the image using the Unet network;
[0010] (4) Fitting the circle where the arc of the boundary between the bright and dark fields is located, and calculating the center and radius;
[0011] (5) Combining the center and radius of the circle in step (4), the posture parameters of the LED array are calculated through the established mathematical model;
[0012] (6) Correct the position of the LED light in the FPM reconstruction algorithm to obtain the corrected FPM reconstructed image.
[0013] The present invention sequentially lights up LED lamps in an LED array, and uses a CMOS camera to collect an FPM data set with LED posture deviations, so no precision mechanical device is required to adjust the light source in the FPM system, and no initial adjustment step is required, thereby reducing the volume and weight of the FPM system, reducing the cost of the system, and being user-friendly to inexperienced users; a low-resolution image with a bright and dark field boundary is selected from the data set, a Unet network is used to extract the bright field area of the image, and a trained neural network is used to extract the light spot, and the extraction process has good robustness, is not affected by the light intensity fluctuation of the LED lamp and the noise of the CMOS camera, and has high accuracy; a circle where the bright and dark field boundary arc is located is fitted, and a corresponding model between the center of the bright and dark field arc boundary and the LED lamp is established, so as to directly solve the posture parameters, and no iterative search algorithm is used, so that the time is short and the error measurement range is large; the center and radius are calculated, and the posture parameters of the LED array are calculated by the established mathematical model, and the position of the LED lamp in the FPM reconstruction algorithm is corrected to obtain the corrected FPM reconstructed image, so as to establish a more complete LED array model, which can better describe the posture of the LED array. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A flow chart of a method for correcting the position and posture of an LED array light source of a computational microscopy imaging system according to the present invention is shown.
[0015] Figure 2 A structural schematic diagram of the FPM system of the present invention is shown.
[0016] Figure 3 A schematic diagram of LED lighting within a bright field range used in an embodiment of the present invention is shown.
[0017] Figure 4 A schematic diagram of LED lighting within the boundary range of light and dark fields used in an embodiment of the present invention is shown.
[0018] Figure 5 A schematic diagram of the bright and dark field boundary used in an embodiment of the present invention is shown.
[0019] Figure 6 A schematic diagram of a corresponding model between the center of a light spot arc boundary and the coordinates of an LED lamp established in an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0020] like Figure 1 As shown, the LED array light source posture self-correction method of the computational microscopy imaging system includes the following steps:
[0021] (1) Turn on the LED lights in the LED array one by one and use a CMOS camera to collect the FPM dataset with LED pose deviations;
[0022] (2) Select low-resolution images with bright-dark field boundaries from the dataset;
[0023] (3) Use the Unet network to extract the bright field region of the image;
[0024] (4) Fit the circle where the bright-dark field boundary arc is located, and calculate the center and radius;
[0025] (5) Combine the center and radius in step (4), and calculate the pose parameters of the LED
[0026] array through the established mathematical model;
[0027] (6) Correct the position of the LED lights in the FPM reconstruction algorithm to obtain the corrected FPM reconstruction image.
[0028] In the present invention, the LED lights in the LED array are sequentially lit, and the FPM dataset with LED pose deviations is collected by a CMOS camera. Therefore, no precision mechanical device is required to adjust the light source in the FPM system, nor any initial adjustment steps are needed, reducing the volume and weight of the FPM system, reducing the system cost, and being user-friendly to inexperienced users; select low-resolution images with bright-dark field boundaries from the dataset, use the Unet network to extract the bright field region of the image, and extract the light spots through a trained neural network. This extraction process has good robustness, is not affected by the light intensity fluctuations of the LED lights and the noise of the CMOS camera, and has high precision; fit the circle where the bright-dark field boundary arc is located, establish a corresponding model between the center of the bright-dark field arc boundary and the LED lights, and directly solve the pose parameters without using an iterative search algorithm, which takes a short time and has a large error measurement range; calculate the center and radius, calculate the pose parameters of the LED array through the established mathematical model, correct the position of the LED lights in the FPM reconstruction algorithm to obtain the corrected FPM reconstruction image. Therefore, a more complete LED array model is established, which can better describe the pose of the LED array.
[0029] Preferably, the step (1) includes the following sub-steps:
[0030] (1.1) Use a programmable LED array with specifications of M×N as a light source to provide illumination, place the LED array at a position far enough from the sample, and assume that the illumination light wave emitted by each LED light is a quasi-monochromatic plane light wave; assume that the amplitude of the light wave is 1, then for the LED m,n emitting illumination light in the m-th row (1 < m < M) and n-th column (1 < n < N), the wave function of the illumination light is expressed as
[0031]
[0032] Where (x, y) is the two-dimensional Cartesian coordinate system of the sample plane, j is a unit imaginary number, and u m,n ,v m,n is the wave vector of the light wave, which can be expressed as
[0033]
[0034] Among them, (x c ,y c ) is the coordinate of the center position of the sample sub-region, x m,n and m,n Indicator LED m,n The position coordinates of , λ is the wavelength of the illumination light, and h is the distance between the LED array and the sample;
[0035] (1.2) Assuming that the sample is a thin sample, the light wave passing through the sample o(x,y) is expressed as
[0036] (1.3) The light wave passing through the sample passes through the microscope objective and reaches its rear focal plane. This process is expressed as
[0037]
[0038] Among them, O(uu m.n ,vv m,n ) represents the Fourier transform of the light wave passing through the sample, (u,v) is the two-dimensional spatial frequency coordinate in the Fourier spectrum plane, is the Fourier transform operator, P(u,v) is the pupil function;
[0039] (1.4) The light wave reaches the CMOS camera and obtains a low-resolution intensity image The process is represented as
[0040]
[0041] in, is the inverse Fourier transform operator.
[0042] Preferably, the step (2) comprises the following sub-steps:
[0043] (2.1) Select an image taken in step (1), and then binarize the image to obtain
[0044] (2.2) Solution The proportion of pixels with a logical value of 1 in R m,n , the process is expressed as
[0045]
[0046] Where X and Y represent the number of pixel rows and columns of the CMOS camera, respectively;
[0047] (2.3) According to R m,n Determine whether the current image has appropriate light and dark field areas. If so, select the image as the input of step (3). Otherwise, determine the next image.
[0048] (2.4) Repeat steps (2.1) to (2.3) until all images are judged or the termination condition is met, and the iteration is stopped to obtain a data set for self-correction posture. Where Q represents the total number of images with suitable bright and dark field areas.
[0049] Preferably, the step (3) comprises the following sub-steps:
[0050] (3.1) Establish the data set required for training Unet: randomly adjust the LED array to have different posture deviations, place multiple samples on the stage in turn, light up the LED lights that produce the bright and dark field boundary images, and collect a series of images as the input of the training set; then, when no samples are placed, collect another series of images as the rough marks of the training set, and the images illuminated by the same LED light are used as the corresponding input and rough marks;
[0051] (3.2) Binarize the training set labels to obtain the bright field area and dark field area on the image as the real training set labels, and then use the training set to train Unet until convergence;
[0052] (3.3) Use the trained Unet network to extract the bright and dark field areas of the image and obtain Q spot images.
[0053] Preferably, the step (4) comprises the following sub-steps:
[0054] (4.1) Select the qth light spot generated in step (3) and use the Canny operator to extract edge pixels;
[0055] (4.2) Use the random sampling consensus algorithm to fit the circle where the edge pixels are located to obtain the center and radius of the circle;
[0056] (4.3) Found The number of iterations corresponding to the maximum value s, record the center of the circle and radius
[0057] (4.4) Solve for the variance V of all fitting radii R,q , select a pixel and calculate the distance from the pixel to the center of the circle If the distance is The phase difference is greater than the variance 3V R,q, then remove this pixel and end when all pixels are traversed;
[0058] (4.5) Use the least squares method to fit the center and radius of the remaining pixels to obtain the center of the qth spot (x cir,q ,y cir,q ) and radius R cir,q ;
[0059] (4.6) Let q = q + 1;
[0060] (4.7) Repeat steps (4.1) to (4.6) until q=Q.
[0061] Preferably, the step (4.2) comprises the following sub-steps:
[0062] (4.2.1) Determine the number of algorithm iterations K, the initial iteration process k = 0;
[0063] (4.2.2) Randomly select 3 edge pixels;
[0064] (4.2.3) Use the selected 3 pixels to determine the center of the circle and radius
[0065] (4.2.4) Calculate the distance from the pixel to the center of the circle and record the distance in The number of pixels in a certain neighborhood
[0066] (4.2.5) Let k = k + 1;
[0067] (4.2.6) Repeat steps (4.2.2) to (4.2.5) and stop iterating when k=K.
[0068] Preferably, the step (5) comprises the following sub-steps:
[0069] (5.1) Establish the posture model of the LED array and describe the position of each LED unit in space through a mathematical model: Assume that the LED array is a rigid body, the plane passing through the center of the LED and perpendicular to the z-axis is the z = 0 plane, and the spacing between adjacent LED lights is d LED , then the spatial position coordinates of each LED unit are expressed as
[0070]
[0071] Among them, (θ x ,θ y ,θ z) represent the rotation angles of the LED array around the x, y, and z axes, respectively. (△x, △y) represent the translation of the LED array along the x and y axes. The distance h between the center of the LED array and the sample is used to describe the relative position in the z direction.
[0072] (5.2) Establish a corresponding model between the center of the arc boundary of the light spot and the coordinates of the LED light: correspond the CMOS camera to the object space, and obtain its conjugate CMOS entrance window, which is equivalent to being located on the focused sample surface. At this time, the coordinates of the center of the object space are
[0073] Where A is the magnification of the microscope objective;
[0074] The distance between the CMOS entrance window and the entrance pupil is
[0075]
[0076] Where NA is the numerical aperture, is the mean value of the spot radius in object space, expressed as
[0077] In the object space, the center coordinates of the light spot are expressed as the position coordinates of the LED light:
[0078] Among them, q corresponds to m and n;
[0079] (5.3) Assume that the posture parameters of the LED array are Calculate the position coordinates of the LED unit according to the LED array pose model established in step (5.1) Then, according to the model established in step (5.2), the estimation of the center of the light spot in the object space is calculated. (5.4) Use the nonlinear regression method to calculate the optimal pose estimation of the LED array: If the estimated pose parameters are optimal, then the spot center calculated in step (5.2) should be closest to the actual spot center, and the mathematical model is established as
[0080]
[0081] in, is the loss function that needs to be minimized,
[0082] It is the optimal pose parameter estimation of the LED array.
[0083] Preferably, the step (6) comprises the following sub-steps:
[0084] (6.1) The initial pupil function and high-resolution sample spectrum estimates P0(u,v) and O0(u,v) are given as the start of the iterative optimization algorithm. The initial pupil function estimate is set to a circular low-pass filter with unity within the passband and zero outside the passband, and the phase is zero; the initial sample spectrum estimate is set to the Fourier spectrum of an oversampled low-resolution image;
[0085] (6.2) Calculate the corrected light wave vector: First, based on the LED array pose model established in step (5.1), use the optimal pose parameter estimation Calculate the coordinates of the corrected LED light Then calculate the corrected light wave vector
[0086]
[0087] (6.3) Given LED m,n Low-resolution image estimation during illumination: According to P0(u,v) and O0(u,v) given in step (6.1), the Fourier spectrum estimation of the low-resolution image is expressed as
[0088]
[0089] Perform an inverse Fourier transform on it to get an estimate of the low-resolution image:
[0090]
[0091] (6.4) Using real recorded images The square root of the low-resolution image modulus obtained in the previous step is replaced by the updated image
[0092]
[0093] (6.5) The updated image Used to update the spectrum estimate of the corresponding sample And the pupil function P i (u,v), we get
[0094]
[0095]
[0096] Among them, * is the complex conjugate operation, δ1 and δ2 are normalization constants used to prevent the denominator from being zero, i is the number of iterations, △Φ i,m,n is the error auxiliary function of the update process:
[0097] (6.6) During one iteration process, steps (6.1)-(6.5) are repeated until all the images in the dataset collected in step (1) are processed; subsequently, the entire iteration process will be repeated multiple times until the reconstruction result converges. Whether the result converges is judged according to the relative error evaluation function, and the error evaluation function is expressed as
[0098]
[0099] If the current evaluation function is less than the set threshold, the reconstruction loop is exited; finally, an inverse Fourier transform is performed on the spectral estimation of the sample to obtain a complex amplitude image with high resolution and large field of view.
[0100] To better illustrate the purpose and advantages of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and embodiments.
[0101] A method for self-calibrating the pose of a light source based on Fourier ptychography microscopy proposed by the present invention is as follows:
[0102] Step 1: Collect an FPM dataset with LED pose deviations. In the FPM system, the LEDs in the LED array with pose deviations are lit one by one, and a series of corresponding low-resolution images are captured by a CMOS camera as the dataset. The specific sub-steps included in Step 1 are as follows:
[0103] Step 1.1: Use a programmable LED array with specifications of M×N as the light source to provide illumination. Place the LED array at a position far enough from the sample. In the embodiment, the distance is about 93 mm. Then, for any small area of the sample, the illumination light wave emitted by the LED can be considered a quasi-monochromatic plane light wave. Assuming the amplitude of the light wave is 1, then the illumination light wave emitted by the LED in the m-th (1 < m < M) row and n-th (1 < n < N) column m,n can be expressed as
[0104]
[0105] where (x, y) is the two-dimensional Cartesian coordinate system of the sample plane, j is the unit imaginary number, and (u m,n , v m,n ) is the wave vector of the light wave, which can be expressed as
[0106]
[0107] where (x c , y c ) is the central position coordinate of the sub-region of the sample, and x m,n and y m,n represent the LED m,nThe position coordinates of , λ is the wavelength of the illumination light, and h is the distance between the LED array and the sample;
[0108] Step 1.2, assuming that the sample is a thin sample, the light wave passing through the sample o(x,y) can be expressed as
[0109] Step 1.3, the light wave transmitted through the sample passes through the microscope objective and reaches its back focal plane. This process can be expressed as
[0110]
[0111] In the formula, O(uu m.n ,vv m,n ) represents the Fourier transform of the light wave passing through the sample, (u,v) is the two-dimensional spatial frequency coordinate in the Fourier spectrum plane, is the Fourier transform operator, P(u,v) is the pupil function;
[0112] Step 1.4, the light wave reaches the CMOS camera and obtains a low-resolution intensity image This process is equivalent to an inverse Fourier transform, which can be expressed as
[0113]
[0114] In the formula, is the inverse Fourier transform operator.
[0115] Step 2: Select a low-resolution image with a bright-field and dark-field boundary. Figure 3 FIG. 1 shows a schematic diagram of LED lighting within a bright field range used in an embodiment of the present invention. Figure 4 The schematic diagram of LED lighting within the boundary range of the bright and dark fields is shown, including an LED array 1, a microscope objective lens 3, an entrance pupil 7 and a CMOS entrance window 8. Figure 5 The schematic diagram of the bright and dark field boundary used in the embodiment of the present invention is shown, including the projection 9 of the entrance pupil 7 on the CMOS entrance window 8, the two-dimensional schematic diagram 10 of the CMOS entrance window, the bright field area 11, the dark field area 13, the bright and dark field boundary arc 14, the center 12 of the projection 9 when the bright field is illuminated, and the center 15 of the projection 9 when the LED light within the bright and dark field boundary is illuminated. Step 2 is to select an image having both the bright and dark field area 11 and the dark field area 12 from the M×N images taken in step 1, and the specific steps are as follows:
[0116] Step 2.1, select an image taken in step 1 and convert the image into a binary image. The binarization threshold can be determined by the maximum inter-class variance method, and the process can be expressed as
[0117]
[0118] In the formula, T represents the set threshold;
[0119] Step 2.2, solve The proportion of pixels with a logical value of "1" in R m,n , the process can be expressed as
[0120]
[0121] In the formula, X and Y represent the number of pixel rows and columns of the CMOS camera respectively;
[0122] Step 2.3, when setting the image with appropriate bright field area 11 and dark field area 13, R m,n The threshold interval is [0.15, 0.85] in the embodiment, and R m,n Is it within the interval? If so, select the image as the input of step 3; otherwise, continue to select the next image for judgment.
[0123] Step 2.4, repeat steps 2.1 to 2.3, when R of multiple consecutive images m,n When both are lower than 0.15, it means that the image is a dark field image, and the iteration is terminated to obtain a data set for self-correction posture.
[0124] Wherein, Q represents the total number of images with suitable bright field areas 11 and dark field areas 13.
[0125] Step 3: Use the Unet network to extract the bright and dark field areas of the image. The neural network Unet is used to remove the complex and diverse sample information in the captured image to obtain a spot image containing only the bright and dark field areas. The specific steps are as follows:
[0126] Preferably, the sub-steps included in step 3 are as follows:
[0127] Step 3.1, establish the data set required for training Unet. Randomly adjust the LED array to have different posture deviations, place multiple samples on the stage in turn, light up the LED lights that produce the bright and dark field boundary images, and collect a series of images as the input of the training set. Then, when no samples are placed, collect another series of images as the rough marks of the training set, and the images illuminated by the same LED are used as the corresponding input and rough marks;
[0128] Step 3.2, binarize the training set labels to obtain the bright field area and dark field area on the image as the real training set labels, and then use the training set to train Unet until convergence;
[0129] Step 3.3, use the trained Unet network to extract the bright and dark field areas of the image to obtain Q spot images.
[0130] Step 4, calculate the center and radius of the bright and dark field arc boundary 14. Use the edge detection algorithm to process the light spot obtained in step 3, obtain the bright and dark field boundary arc 14, then fit the circle where the arc is located, obtain the projection 9 of the entrance pupil 7 on the CMOS entrance window 8, and finally obtain the center position and radius size of the bright and dark field arc boundary. The specific sub-steps of step 4 are as follows:
[0131] Step 4.1, select the qth (initial q=1) light spot generated in step 3, and use the "canny" operator to extract the pixels at the edge of the light spot.
[0132] Step 4.2, use the random sampling consistency algorithm to fit the arc where the edge pixels are located. The algorithm is as follows:
[0133] 1) Determine the number of algorithm iterations K, with the initial iteration process k=0;
[0134] 2) Randomly select 3 edge pixels;
[0135] 3) Use the selected 3 pixels to determine the center of the circle and radius
[0136] 4) Calculate the distance from the pixel to the center of the circle and record the distance in The number of pixels in a certain neighborhood
[0137] 5) k = k + 1;
[0138] 6) Repeat steps 2 to 5 and stop iterating when k=K. 7)
[0140] Step 4.3, find The number of iterations corresponding to the maximum value s, record the center of the circle and radius
[0141] Step 4.4, solve the variance V of all fitting radii R,q , select a pixel and calculate the distance from the pixel to the center of the circle If the distance is The difference is greater than the variance 3V R,q , then remove this pixel and end when all pixels are traversed;
[0142] Step 4.5: Use the least squares method to fit the center and radius of the remaining pixels to obtain the center of the arc boundary of the qth spot (x cir,q ,y cir,q ) and radius R cir,q;
[0143] Step 4.6, q=q+1;
[0144] Step 4.7, repeat steps 4.1 to 4.6 until q=Q.
[0145] Step 5, calculate the posture parameters of the LED array. Establish the posture model of the LED array, that is, describe the spatial position of each LED lamp in the LED array through the posture parameters, and then establish the corresponding model between the position coordinates of the LED lamp and the arc parameters of the bright and dark field boundary calculated in step 4, and finally use the nonlinear regression method to obtain the posture parameters of the LED array. The specific sub-steps of step 5 are as follows:
[0146] Step 5.1, establish the posture model of the LED array, that is, describe the position of each LED light in space through a mathematical model. Assume that the LED array is a rigid body, the plane passing through the center of the LED array and perpendicular to the z-axis is the z=0 plane, and the spacing between adjacent LED lights is d LED , then the spatial position coordinates of each LED light can be expressed as
[0147]
[0148] In the formula, (θ x ,θ y ,θ z ) represent the rotation angles of the LED array around the x, y, and z axes, respectively. (△x, △y) represent the translation of the LED array along the x and y axes. The distance h between the center of the LED array and the sample is used to describe the relative position in the z direction. Therefore, the position of each LED light can be expressed as (θ x ,θ y ,θ z ,△x,△y,h) a total of 6 parameters are described.
[0149] Step 5.2, establish a corresponding model between the center of the arc boundary of the light spot and the coordinates of the LED light. Figure 6 is a two-dimensional schematic diagram of the corresponding model between the center of the arc boundary of the light spot and the coordinates of the LED lights established in the embodiment of the present invention, LED0 represents the center light, LED -1 and LED -2 In order to facilitate analysis, the aperture stop 4 and the CMOS camera 6 are equivalent to the object space in this embodiment, and the entrance pupil 7 and the CMOS entrance window 8 are obtained. At this time, the center coordinates of the object space are In the formula, A is the magnification of the microscope objective lens. Entrance pupil radius BD = NA·h1, in the formula, NA is the numerical aperture of the microscope objective lens. Figure 6The middle line segment CC0 represents the radius of the projection 9 of the entrance pupil 7 on the CMOS entrance window 8, that is, the radius of the circle where the arc boundary of the object space spot is located, which can be expressed by the mean value of the circle radius calculated in step 4 as
[0150]
[0151] By similarity relationship The distance between the entrance pupil 7 and the CMOS entrance window 8 is obtained as follows:
[0152]
[0153] By similar deduction, the center of the light spot can be set to point C in the object space. -1 and C -2 The coordinates of the LED light are expressed as
[0154]
[0155] Where q corresponds to m and n.
[0156] Step 5.3, assume that the pose parameters of the LED array are The position coordinates of the LED unit are calculated by formula (7): Then, the estimation of the center of the light spot in the object space is calculated according to formula (10):
[0157] Step 5.4, use the nonlinear regression method to calculate the optimal pose estimation of the LED array. If the estimated pose parameters are optimal, then the spot center calculated in step 5.3 should be closest to the actual spot center, so the mathematical model can be established as
[0158]
[0159] In the formula, is the loss function that needs to be minimized, It is the optimal pose parameter estimation of the LED array.
[0160] Step 6: Output the corrected FPM reconstructed image. The pose parameters obtained in step 5 are used to calculate a model that matches the actual LED position, and then reconstruct the image according to the corrected model to obtain an accurate, high-resolution, large-field complex amplitude image.
[0161] Preferably, step 6 includes the following sub-steps:
[0162] Step 6.1, give the initial pupil function and the spectrum estimate of the high-resolution sample P0(u,v) and O0(u,v), and use this as the beginning of the iterative optimization algorithm. Usually, the pupil of the microscope objective is circular, so the initial pupil function estimate is set to a circular low-pass filter, which is unity 1 within the passband and 0 outside the passband, and the phase is 0; the initial sample spectrum estimate can be set to the Fourier spectrum of an oversampled low-resolution image;
[0163] Step 6.2, calculate the corrected light wave vector. First, based on the LED array pose model established in step 5.1, use the optimal pose parameter estimation Calculate the coordinates of the corrected LED light Then calculate the corrected light wave vector
[0164]
[0165] Step 6.3, give LED m,n Low-resolution image estimation under illumination. According to P0(u,v) and O0(u,v) given in step 6.1, the Fourier spectrum estimation of the low-resolution image is expressed as
[0166]
[0167] Perform an inverse Fourier transform on it to obtain an estimate of the low-resolution image:
[0168]
[0169] Step 6.4, use the real recorded image The square root of the low-resolution image modulus obtained in the previous step is replaced by the updated image
[0170]
[0171] Step 6.5: Update the image Used to update the spectrum estimate of the corresponding sample And the pupil function P i (u,v), we get
[0172]
[0173]
[0174] Where * is the complex conjugate operation, δ1 and δ2 are normalization constants used to prevent the denominator from being zero, i is the number of iterations, △Φ i,m,n is the error auxiliary function of the update process:
[0175] Step 6.6, in one iteration, repeat the above 5 steps until all images in the data set collected in step 1 have been processed. Then, the entire iteration process will be repeated many times until the reconstruction result converges. Whether the result converges can be judged based on the relative error evaluation function. The error evaluation function can be expressed as
[0176]
[0177] If the current evaluation function is less than the set threshold, the reconstruction loop is exited. Finally, the spectrum estimation of the sample is inverse Fourier transformed to obtain a complex amplitude image with high resolution and large field of view.
[0178] The above is a method for self-correction of the position and posture of an LED array light source in a computational microscopy imaging system, which includes a system self-correction algorithm and a Fourier stack microscopy imaging algorithm.
[0179] This embodiment uses the image information of the light spot at the junction of the light and dark fields to correct the posture deviation of the LED array. The collected original data set is preprocessed by the threshold segmentation method to obtain an image containing the light and dark field junction information; the light and dark field areas are extracted from the image with sample information by using a neural network; the arc boundary at the junction of the light and dark fields is fitted by using error analysis and least squares theory to obtain the center position and radius of the circle where the arc is located; the posture parameters of the LED array are calculated by using the established matching model of the LED array and the light and dark field boundary; the fitted posture parameters are used to correct the light wave vector in the reconstruction process to obtain an accurate FPM reconstructed image.
[0180] The present embodiment proposes a method for self-correction of the posture of an LED array light source in a computational microscopy imaging system, which can obtain the posture parameters of the LED array light source more quickly, accurately and completely, thereby making the imaging result better without adjusting the LED array light source. This method plays a certain role in promoting the practical application and development of computational microscopy imaging systems that use LED arrays as light sources.
[0181] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the protection scope of the technical solution of the present invention.
Claims
1. A method for self-correcting the position and posture of an LED array light source in a computational microscopy imaging system, characterized in that: It includes the following steps: (1) Turn on the LED lights in the LED array one by one and use a CMOS camera to collect the FPM dataset with LED pose deviations; (2) Select low-resolution images with bright and dark field boundaries from the data set; (3) Extract the bright field area of the image using the Unet network; (4) Fitting the circle where the boundary arc of the bright and dark fields lies, and calculating the center and radius; (5) Combining the center and radius of the circle in step (4), the posture parameters of the LED array are calculated through the established mathematical model; (6) Correct the position of the LED light in the FPM reconstruction algorithm to obtain the corrected FPM reconstructed image.
2. The method for self-correcting the position and posture of an LED array light source of a computational microscopy imaging system according to claim 1, characterized in that: The step (1) comprises the following sub-steps: (1.1) Use a programmable LED array with a specification of M×N as the light source to provide illumination. Place the LED array far enough away from the sample and assume that the illumination light waves emitted by each LED lamp are quasi-monochromatic plane light waves. Assuming that the amplitude of the light wave is 1, then the LED array with m rows and n columns m,n The wave function of the emitted illumination light is expressed as where 1 < m < M, 1 < n < N, (x, y) is the two-dimensional Cartesian coordinate system of the sample plane, j is the unit imaginary number, u m,n , v m,n is the wave vector of the light wave, which is expressed as Among them, (x c ,y c ) is the coordinate of the center position of the sample sub-region, x m,n and m,n Indicator LED m,n The position coordinates of , λ is the wavelength of the illumination light, and h is the distance between the LED array and the sample; (1.2) Assuming that the sample is a thin sample, the light wave passing through the sample o(x,y) is expressed as (1.3) The light wave passing through the sample passes through the microscope objective and reaches its rear focal plane. This process is expressed as Among them, O(uu m.n ,vv m,n ) represents the Fourier transform of the light wave passing through the sample, (u,v) is the two-dimensional spatial frequency coordinate in the Fourier spectrum plane, is the Fourier transform operator, P(u,v) is the pupil function; (1.4) The light wave reaches the CMOS camera and obtains a low-resolution intensity image The process is represented as in, is the inverse Fourier transform operator.
3. The method for self-correcting the position and posture of an LED array light source of a computational microscopy imaging system according to claim 2, characterized in that: The step (2) comprises the following sub-steps: (2.1) Select an image taken in step (1), and then binarize the image to obtain (2.2) Solution The proportion of pixels with a logical value of 1 in R m,n , the process is expressed as Where X and Y represent the number of pixel rows and columns of the CMOS camera, respectively; (2.3) According to R m,n Determine whether the current image has appropriate light and dark field areas. If so, select the image as the input of step (3). Otherwise, determine the next image. (2.4) Repeat steps (2.1) to (2.3) until all images are judged or the termination condition is met, and the iteration is stopped to obtain the data set for self-correction posture. Where Q represents the total number of images with suitable bright and dark field areas.
4. The method for self-correcting the position and posture of an LED array light source of a computational microscopy imaging system according to claim 3, characterized in that: The step (3) comprises the following sub-steps: (3.1) Establish the data set required for training Unet: randomly adjust the LED array to have different posture deviations, place multiple samples on the stage in turn, light up the LED lights that produce the bright and dark field boundary images, and collect a series of images as the input of the training set; then, when no samples are placed, collect another series of images as the rough marks of the training set, and the images illuminated by the same LED light are used as the corresponding input and rough marks; (3.2) Binarize the training set labels to obtain the bright field area and dark field area on the image as the real training set labels, and then use the training set to train Unet until convergence; (3.3) Use the trained Unet network to extract the bright and dark field areas of the image and obtain Q spot images.
5. The method for self-correcting the position and posture of an LED array light source of a computational microscopy imaging system according to claim 4, characterized in that: The step (4) comprises the following sub-steps: (4.1) Select the qth light spot generated in step (3) and use the Canny operator to extract edge pixels; (4.2) Use the random sampling consensus algorithm to fit the circle where the edge pixels are located to obtain the center and radius of the circle; (4.3) Found The number of iterations corresponding to the maximum value s, record the center of the circle and radius (4.4) Solve for the variance V of all fitting radii R,q , select a pixel and calculate the distance from the pixel to the center of the circle If the distance is The difference is greater than variance 3 V R,q , then remove this pixel and end when all pixels are traversed; (4.5) Use the least squares method to fit the center and radius of the remaining pixels to obtain the center of the qth spot (x cir,q ,y cir,q ) and radius R cir,q ; (4.6) Let q = q + 1; (4.7) Repeat steps (4.1) to (4.6) until q=Q.
6. The method for self-correcting the position and posture of an LED array light source of a computational microscopy imaging system according to claim 5, characterized in that: The step (4.2) comprises the following sub-steps: (4.2.1) Determine the number of algorithm iterations K, the initial iteration process k = 0; (4.2.2) Randomly select 3 edge pixels; (4.2.3) Use the selected 3 pixels to determine the center of the circle and radius (4.2.4) Calculate the distance from the pixel to the center of the circle and record the distance in The number of pixels in a certain neighborhood (4.2.5) Let k = k + 1; (4.2.6) Repeat steps (4.2.2) to (4.2.5) and stop iterating when k=K.
7. The method for self-correcting the position and posture of an LED array light source of a computational microscopy imaging system according to claim 6, characterized in that: The step (5) comprises the following sub-steps: (5.1) Establish the posture model of the LED array and describe the position of each LED unit in space through a mathematical model: Assume that the LED array is a rigid body, the plane passing through the center of the LED and perpendicular to the z-axis is the z = 0 plane, and the spacing between adjacent LED lights is d LED , then the spatial position coordinates of each LED unit are expressed as Among them, (θ x ,θ y ,θ z ) represent the rotation angles of the LED array around the x, y, and z axes, respectively. (△x, △y) represent the translation of the LED array along the x and y axes. The distance h between the center of the LED array and the sample is used to describe the relative position in the z direction. (5.2) Establish a corresponding model between the center of the arc boundary of the light spot and the coordinates of the LED light: correspond the CMOS camera to the object space, and obtain its conjugate CMOS entrance window, which is equivalent to being located on the focused sample surface. At this time, the coordinates of the center of the object space are Where A is the magnification of the microscope objective; The distance between the CMOS entrance window and the entrance pupil is Where NA is the numerical aperture, is the mean value of the spot radius in object space, expressed as In the object space, the center coordinates of the light spot are expressed as the position coordinates of the LED light: Among them, q corresponds to m and n; (5.3) Assume that the posture parameters of the LED array are Calculate the position coordinates of the LED unit according to the LED array pose model established in step (5.1) Then, according to the model established in step (5.2), the estimation of the center of the light spot in the object space is calculated. (5.4) Use the nonlinear regression method to calculate the optimal pose estimation of the LED array: If the estimated pose parameters are optimal, then the spot center calculated in step (5.2) should be closest to the actual spot center, and the mathematical model is established as in, is the loss function that needs to be minimized, It is the optimal pose parameter estimation of the LED array.
8. The LED array light source position and posture of the computational microscopy imaging system according to claim 7 The calibration method is characterized by: The step (6) comprises the following sub-steps: (6.1) The initial pupil function and high-resolution sample spectrum estimates P0(u,v) and O0(u,v) are given as the start of the iterative optimization algorithm. The initial pupil function estimate is set to a circular low-pass filter with unity within the passband and zero outside the passband, and the phase is zero; the initial sample spectrum estimate is set to the Fourier spectrum of an oversampled low-resolution image; (6.2) Calculate the corrected light wave vector: First, based on the LED array pose model established in step (5.1), use the optimal pose parameter estimation Calculate the coordinates of the corrected LED light Then calculate the corrected light wave vector (6.3) gives the low-resolution image estimate when LEDm,n is illuminated: According to P0(u,v) and O0(u,v) given in step (6.1), the Fourier spectrum estimate of the low-resolution image is expressed as Perform an inverse Fourier transform on it to get an estimate of the low-resolution image: (6.4) Using real recorded images The square root of the low-resolution image modulus obtained in the previous step is replaced by the updated image (6.5) The updated image Used to update the spectrum estimate of the corresponding sample And the pupil function P i (u,v), we get Among them, * is the complex conjugate operation, δ1 and δ2 are normalization constants used to prevent the denominator from being zero, i is the number of iterations, △Φ i,m,n is the error auxiliary function of the update process: (6.6) In one iteration, steps (6.1)-(6.5) are repeated until all images in the data set collected in step (1) have been processed; Subsequently, the entire iterative process will be repeated many times until the reconstruction result converges. Whether the result converges is determined by the relative error evaluation function. The error evaluation function is expressed as If the current evaluation function is less than the set threshold, the reconstruction loop is exited; finally, the spectrum estimate of the sample is inverse Fourier transformed to obtain a complex amplitude image with high resolution and large field of view.
Citation Information
Patent Citations
Pose estimation method and device in LED screen correction process and electronic equipment
CN111311682A
Fourier lamination imaging system and method based on LED array position error quick correction
CN113160212A
Frequency domain light source position accurate correction method based on Fourier lamination microimaging
CN113671682A
LED array light source pose deviation correction method and device of microscopic imaging system
CN114355601A
KR20220028816A
