A time-compressed lensless imaging system and method for direct edge enhancement
By combining rolling shutter mode and compressed sensing algorithm in a lensless imaging system, direct edge enhancement technology solves the problem of noise amplification in traditional edge detection, achieves edge detection with a higher signal-to-noise ratio, and expands to a variety of image processing tasks, improving the system’s universality and imaging dimension.
Patent Information
- Application Number
- CN202311551159.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-11-20
AI Technical Summary
The traditional lensless imaging system needs to restore the original image first and then perform post-processing during the edge detection process, which leads to noise amplification, and different image processing methods require re-experimental measurements, which limits the versatility.
A time-compressed lensless imaging system with direct edge enhancement is used to directly reconstruct the edge image of the object through incoherent LED light source, scattering modulated diffuser, CMOS camera sensor and image reconstruction module, combined with rolling shutter mode and compressed sensing algorithm, omitting modifications to the experimental measurement process.
It achieves more realistic edge detection results without first obtaining the original image, improves the signal-to-noise ratio, and is suitable for a variety of image processing tasks, such as high-pass/low-pass filtering and denoising, enhancing the universality of lensless imaging systems. .
Smart Images

Figure CN117539057B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of snapshot lensless computational imaging, and in particular to a time-compressed lensless imaging system and method for direct edge enhancement. Background Art
[0002] Currently, conventional imaging systems designed to acquire high-dimensional images are usually bulky and expensive, such as multiple shots and scans methods for imaging multispectral or three-dimensional (3D) objects. Recently, lensless "diffuse cameras" have shown great promise in adding new imaging capabilities. By encoding the high-dimensional information of the object, the diffuse diffuser-assisted lensless imaging system is able to recover multi-dimensional images, such as 3D depth imaging, hyperspectral imaging, full-Stokes polarization imaging, multimodal edge-enhanced imaging, etc.; the point spread function (PSF) of the ground glass diffuser or phase mask is first calibrated, and then the diffuse diffuser is placed between the object and the 2D sensor to capture a two-dimensional (2D) image; finally, an inversion algorithm (compressed sensing) is implemented to recover the high-dimensional image. Recent advances in lensless "diffuse cameras" have also shown great promise in both applications. For example, in vivo lensless 3D microscopy has been achieved by using a specially designed phase mask, and multi-dimensional imaging, including spatial, spectral, and polarization dimensions, can be encoded by a liquid crystal metasurface diffuser. Furthermore, programmable diffusers, such as reconfigurable particle assembly masks, show potential for developing tunable diffuser cameras.
[0003] After obtaining the image of an object, image post-processing is essential to obtain other useful information. For example, edge detection is an important means of extracting image information. Over the years, it has been increasingly widely used in practical scenarios such as agricultural production, geographic environment monitoring, and autonomous driving. The field of computational imaging also focuses on efficient edge detection schemes, but the traditional computational strategy of first reconstructing the original image and then extracting its edges will undoubtedly amplify the noise of edge detection due to compressed sampling. Recently, some single-pixel imaging research has incorporated edge detection into the imaging strategy. By experimentally modulating the incident light multiple times, edge detection images with higher signal-to-noise ratio can be directly reconstructed at the back end without restoring the original image first. However, the above scheme requires the same amount of additional experimental measurements for different image processing methods (such as using different edge detection operators), and its versatility is limited. Since the results of the lensless camera are reconstructed from the raw data, the fusion of the traditional inverse algorithm used in the diffusion camera and the image post-processing algorithm can directly generate the post-processed image from the raw data without restoring the original image of the object. Summary of the invention
[0004] To solve the above problems, the present invention provides a time-compressed lensless imaging system and method for direct edge enhancement, which only integrates edge detection into the post-reconstruction algorithm without making any modifications to the experimental measurement process. It can directly reconstruct more realistic edges of objects without obtaining the original image first.
[0005] To achieve the above-mentioned object, the present invention provides a direct edge-enhanced time-compressed lensless imaging system, comprising an incoherent LED light source, which is used for the illumination of the transmission imaging light path and the target object in the experiment;
[0006] The target object to be detected is a hollow object based on 3D printing, which is used for the transmission imaging light path;
[0007] A scattering modulation diffuser is used to modulate the incident light field and form a pseudo-randomly distributed speckle field at the output end;
[0008] The CMOS camera sensor performs single line-by-line exposure in rolling shutter mode, recording the partial intensity distribution of the outgoing speckle field at different times;
[0009] The image reconstruction module is used to reconstruct the edge detection image of the original object.
[0010] Preferably, the scattering modulation diffuser is made of frosted glass.
[0011] Preferably, the CMOS camera sensor performs single line-by-line exposure in a rolling shutter mode, records partial intensity distribution of the outgoing speckle field at different times, and inputs the intensity distribution into an image reconstruction module for compression reconstruction;
[0012] Preferably, the image reconstruction module integrates the corresponding edge detection operator as prior information into the compressed sensing algorithm, so that the sparsity of the sampling matrix is improved; one or several corresponding rows are selected from the acquired point spread function and speckle pattern, and input into the improved compressed sensing algorithm to reconstruct the edge detection image of the original object.
[0013] Preferably, the target object to be detected is within the angular memory range of the scattering modulated diffuser, and the speckle formation process can be physically expressed as the convolution of the object O(x, y) and the point spread function P(x, y) of the diffuse diffuser:
[0014] I(x,y)=O(x,y)*P(x,y)
[0015] Among them, * represents the convolution operation, and the above formula is expressed in the form of matrix multiplication as follows:
[0016] y=AX obj
[0017] Where y is a column vector consisting of the intensity values of different pixels in I(x,y); objis a column vector consisting of the intensity values of each pixel of O(x,y); A is a sampling matrix or calibration matrix related to the light modulation of the diffuse diffuser, and the columns of A can be obtained by translating and stretching the point spread function P(x,y) of the diffuse diffuser.
[0018] Preferably, the original image X obj It can be reconstructed by using the inversion algorithm:
[0019]
[0020] ψ is the obj is the linear transformation matrix that maps to a domain with sparse representation; τ is the regularization parameter that adjusts for scene sparsity.
[0021] Preferably, in order to extract the edge features of the target object to be detected, an edge detection operator R is selected:
[0022]
[0023] The edge image of the target object to be detected is expressed as follows through convolution or matrix multiplication:
[0024] X edge =R*O(x,y)=R m X obj
[0025] Among them, X edge is the edge detection image, R m It is the matrix form corresponding to the operator R in the process of matrix multiplication that represents convolution.
[0026] Preferably, the above edge detection process is combined with the imaging process by utilizing the characteristics of the unit matrix E, and is expressed by a matrix equation:
[0027]
[0028]
[0029] When using the same measurement result y, the sampling matrix A of the light modulation process is modified to A' by a specific operator R, and the edge detection image of the original object is reconstructed using the inverse algorithm:
[0030]
[0031]
[0032] The present invention provides a direct edge-enhanced time-compressed lensless imaging method, comprising the following steps:
[0033] Step S1: fixing the relative position of the scattering modulated diffuser and the CMOS camera sensor, using a transmissive pinhole as a point object, and calibrating the point spread function of the scattering modulated diffuser within the working distance of the imaging system;
[0034] Step S2: placing the target object to be detected at the working distance of the imaging system, and the CMOS camera is exposed line by line in a single shot in rolling shutter mode to obtain a speckle pattern of the target object to be detected;
[0035] Step S3: improving the reconstruction algorithm, combining the edge detection process with the compression reconstruction process, and modifying the sampling matrix so that a more realistic edge image of the object can be directly reconstructed in the "edge detection domain" with more sparse prior characteristics;
[0036] Step S4: Select one or more corresponding rows from the pre-calibrated point spread function and the detected speckle pattern, input the improved compressed sensing algorithm, and directly reconstruct the edge detection image of the original object.
[0037] Therefore, the present invention adopts the above-mentioned direct edge enhanced time compression lensless imaging system and method, which has the following beneficial effects:
[0038] (1) The present invention obtains better edge detection results using the same data by algorithmically modifying the sampling matrix without any post-processing steps;
[0039] (2) The advantages of the existing lens-free imaging system are complementary. Combined with the "rolling shutter" exposure mode, it is possible to reconstruct edge information of multiple frames from the speckle pattern of a single exposure, which is closer to the actual usage scenario. In the imaging channels such as polarization, multi-spectral, and three-dimensional, the present invention has the potential for further combination and improvement.
[0040] (3) For other image processing tasks, such as high-pass / low-pass filtering, deconvolution, denoising, etc., the method of the present invention is also applicable. It is only necessary to replace the "edge detection operator" with the corresponding image processing operator. The same processing idea will obtain similar image improvement effects. Therefore, the present invention will inspire the further development of lens-free cameras into multi-modal and multi-dimensional lens-free imaging systems similar to artificial intelligence.
[0041] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a system working flow diagram of an embodiment of the present invention;
[0043] Figure 2 A pre-calibrated system point spread function (PSF) image of an embodiment of the present invention;
[0044] Figure 3 The speckle pattern captured by the CMOS sensor for the static object “arrow” in an embodiment of the present invention;
[0045] Figure 4 Schematic diagram of signal-to-noise ratio (SNR) comparison of results obtained at different sampling rates in an embodiment of the present invention (solid line frame corresponds to the present invention, and dotted line frame corresponds to the post-processing method);
[0046] Figure 5 The speckle pattern captured by the CMOS sensor for the moving object “car” in the embodiment of the present invention;
[0047] Figure 6 This is a schematic diagram of obtaining the motion states of multiple frames of objects from a single frame of speckle image according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.
[0049] Unless otherwise defined, the technical terms or scientific terms used in the present invention shall have the usual meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. The words "include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, but do not exclude other elements or objects. The terms "set", "install" and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two elements. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0050] Example
[0051] like Figure 1 As shown, the present invention provides a direct edge-enhanced time-compressed lensless imaging system, comprising an incoherent LED light source, a scattering modulated diffuser, a pinhole and a target object to be detected, a CMOS camera sensor, and an image reconstruction module, wherein:
[0052] Incoherent LED light source: used for the transmission imaging light path and illumination of the target object in the experiment;
[0053] Target object to be detected: hollow object based on 3D printing, used for transmission imaging light path;
[0054] Scattering modulation diffuser: ordinary frosted glass can be used instead of the lens to modulate the incident light field and form a pseudo-randomly distributed speckle field at the output end;
[0055] CMOS camera sensor: can perform single-shot progressive exposure through the "rolling shutter" mode, record the partial intensity distribution of the outgoing speckle field at different times, and input it into the image reconstruction module for compressed reconstruction;
[0056] Image reconstruction module: The corresponding edge detection operator is used as prior information and integrated into the compressed sensing algorithm to improve the sparsity of the sampling matrix. Select one or several corresponding rows from the pre-calibrated point spread function and speckle pattern, input the improved compressed sensing algorithm, and the edge detection image of the original object can be directly reconstructed.
[0057] The target object to be detected is within the angular memory range of the scattering modulated diffuser, so the speckle formation process can be physically represented as the convolution of the object O(x, y) and the point spread function P(x, y) of the diffuse diffuser:
[0058] I(x,y)=O(x,y)*P(x,y)
[0059] Among them, * represents the convolution operation, which can also be expressed in the form of matrix multiplication as follows:
[0060] y=AX obj
[0061] Where y is a column vector consisting of the intensity values of different pixels in I(x,y); obj is a column vector consisting of the intensity values of each pixel of O(x,y); A is a sampling matrix or calibration matrix associated with the light modulation of the diffuse diffuser, whose columns can be obtained by translating and stretching the point spread function P(x,y) of the diffuse diffuser.
[0062] Original Image X obj It can be reconstructed by using the inversion algorithm:
[0063]
[0064] ψ is the obj is the linear transformation matrix that maps to a domain with sparse representation; τ is the regularization parameter that adjusts for scene sparsity.
[0065] In order to extract the edge features of the target object to be detected, an edge detection operator R is selected to demonstrate this effect:
[0066]
[0067] Therefore, the edge image of the target object to be detected (i.e., the edge detection process) can be expressed in the form of convolution or matrix multiplication as follows:
[0068] X edge =R*O(x,y)=R m X obj
[0069] Among them, X edge is the edge detection image, R m It is the matrix form corresponding to the operator R in the process of matrix multiplication that represents convolution.
[0070] By using the characteristics of the unit matrix E, the above edge detection process is combined with the imaging process and expressed by a matrix equation:
[0071]
[0072]
[0073] It is not difficult to see that, when using the same measurement result y, the sampling matrix A of the light modulation process is modified to A' by a specific operator R, and the edge detection image of the original object can be directly reconstructed by using the inverse algorithm:
[0074]
[0075]
[0076] From the above formula, we can see that by modifying the sampling matrix with a specific operator, the edge can be directly reconstructed through the compressed sensing algorithm, eliminating the image post-processing step, further improving the information reuse efficiency, and discovering a new imaging mode for the lensless imaging system.
[0077] The principle of the present invention is that the compressed sensing algorithm is a reconstruction method that aims to acquire and restore signals at a much lower sampling rate than the traditional sampling rate. The core idea is to use the sparsity or compression properties of the signal and random measurements to reduce the amount of data required for sampling while retaining or restoring the key information of the signal. The edges of real objects are often more sparse than the objects themselves. It has been proven that if the edges of most real objects can be directly reconstructed, the signal-to-noise ratio of edge detection will be improved compared with the traditional post-processing procedures at the same sampling rate.
[0078] The invention provides a time-compressed lensless imaging method for direct edge enhancement, comprising the following steps:
[0079] Step S1: fixing the relative position of the scattering modulated diffuser and the CMOS camera sensor, using a transmissive pinhole as a point object, and calibrating the point spread function of the scattering modulated diffuser within the working distance of the imaging system;
[0080] Step S2: placing the target object to be detected at the working distance of the imaging system, and the CMOS camera is exposed line by line in a single shot in rolling shutter mode to obtain a speckle pattern of the target object to be detected;
[0081] Step S3: Improve the reconstruction algorithm by combining the edge detection process with the compression reconstruction process and modifying the sampling matrix "A" so that a more realistic edge image of the object can be directly reconstructed in the "edge detection domain" with more sparse prior characteristics;
[0082] Step S4: Select one or more corresponding rows from the pre-calibrated point spread function and the detected speckle pattern, input the improved compressed sensing algorithm, and directly reconstruct the edge detection image of the original object.
[0083] The proposed method is verified by conducting experiments. The light source is a red monochromatic LED (GCI-060401, DHC), decohered by frosted glass and collimated by a convex lens (f=50 mm). The object to be imaged is a 3D-printed hollow logo: an upward arrow and a car. The distance between the object and the LED is 15 cm. The light transmitted through the object is scattered by a diffuser (GCL-201101, DHC). The distance between the object and the diffuse diffuser is 28 cm. A 4 mm diameter aperture (GCT-212621-6, DHC) is placed behind the diffuse diffuser to block the background light. The exit speckle field is measured by a CMOS sensor (daA2500-14um, Basler), which is placed 1 cm behind the diffuse diffuser.
[0084] First, a pinhole with a diameter of 100 μm was placed on the object plane with an exposure time of 500 ms to capture the PSF image of the system, such as Figure 2 As shown in Figure 1. The PSF only needs to be calibrated once because the object is within the range of the optical angle memory effect. Then the pinhole is replaced with the object to be imaged and the image is taken, with the exposure time set to 4 milliseconds.
[0085] For the static object "arrow", the speckle pattern obtained by a single shot is as follows Figure 3 As shown. By inputting it into the algorithm with the system PSF, the reconstruction result can be directly obtained. By comparing the image signal-to-noise ratio of edge detection of the present invention and the traditional post-processing method at different sampling rates (20%, 30%, ..., 80%, 90%). Figure 4 It can be seen that the image signal-to-noise ratio of the reconstruction result of the present invention is higher than that of the traditional method of restoring the image first and then post-processing, and the edge detection results of the two methods at a sampling rate of 30% are given (the solid line corresponds to the present invention, and the dotted line corresponds to the post-processing method).
[0086] For the moving object "car", the speckle pattern obtained by a single shot through the "rolling shutter" exposure mode is as follows: Figure 5 By selecting data from different rows, we can reconstruct edge images of objects at multiple frames at different time points from a single-frame speckle image without post-processing. Figure 6 The figure shows the status of the car at three different times.
[0087] Therefore, the present invention adopts the above-mentioned direct edge-enhanced time-compressed lensless imaging system and method, uses a CMOS sensor with a "rolling shutter" exposure mode to capture speckle patterns, and directly introduces an edge detection post-processing process in the later compression reconstruction process, so that the edge image of the object can be directly reconstructed in the new transformation domain without first restoring the original object image and then post-processing. The method adopted by the present invention not only improves the imaging dimension of the lensless system, but also has good universality and can be extended to image processing such as noise reduction, filtering, and convolution.
[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A time-compressed lensless imaging system with direct edge enhancement, characterized in that: Including incoherent LED light source, used for the transmission imaging light path and the illumination of the target object in the experiment; The target object to be detected is a hollow object based on 3D printing, which is used for the transmission imaging light path; A scattering modulation diffuser is used to modulate the incident light field and form a pseudo-randomly distributed speckle field at the output end; The CMOS camera sensor performs single line-by-line exposure in rolling shutter mode, recording the partial intensity distribution of the outgoing speckle field at different times; An image reconstruction module is used to reconstruct the edge detection image of the original object; The image reconstruction module uses the corresponding edge detection operator as prior information and integrates it into the compressed sensing algorithm. It selects one or several corresponding rows from the acquired point spread function and speckle pattern, inputs them into the improved compressed sensing algorithm, and reconstructs the edge detection image of the original object. When the target object to be detected is within the angular memory range of the scattering modulated diffuser, the speckle formation process is physically represented as the convolution of the object O(x, y) and the point spread function P(x, y) of the diffuse diffuser: I(x,y)=O(x,y)*P(x,y) Among them, * represents the convolution operation, and the above formula is expressed in the form of matrix multiplication as follows: y=AX obj Where y is a column vector consisting of the intensity values of different pixels in I(x,y); obj is a column vector consisting of the intensity values of each pixel of O(x,y); A is a sampling matrix or calibration matrix associated with the light modulation of the diffuse diffuser, and each column of A is obtained by translating and stretching the point spread function P(x,y) of the diffuse diffuser; Original Image X obj Reconstructed by using the inversion algorithm: Here, ψ is the sum of X obj The linear transformation matrix that maps to a domain with sparse representation; τ is a regularization parameter that adjusts for scene sparsity; In order to extract the edge features of the target object to be detected, an edge detection operator R is selected: The edge image of the target object to be detected is expressed as follows through convolution or matrix multiplication: X edge =R*O(x,y)=R m X obj Among them, X edge is the edge detection image, R m It is to express the convolution as the matrix form corresponding to the operator R in the process of matrix multiplication; By using the characteristics of the unit matrix E, the above edge detection process is combined with the imaging process and expressed by a matrix equation: When using the same measurement result y, the sampling matrix A of the light modulation process is modified to A' by a specific operator R, and the edge detection image of the original object is reconstructed using the inverse algorithm:
2. A time-compressed lensless imaging system with direct edge enhancement according to claim 1, characterized in that: The scattering modulation diffuser adopts frosted glass.
3. The time-compressed lensless imaging system with direct edge enhancement according to claim 1, characterized in that: The CMOS camera sensor performs single-shot progressive exposure in rolling shutter mode, records the partial intensity distribution of the outgoing speckle field at different times, and inputs it into the image reconstruction module for compressed reconstruction.
4. A time-compressed lensless imaging method with direct edge enhancement according to any one of claims 1 to 3, characterized in that: The following steps are involved: Step S1: fixing the relative position of the scattering modulated diffuser and the CMOS camera sensor, using a transmissive pinhole as a point object, and calibrating the point spread function of the scattering modulated diffuser within the working distance of the imaging system; Step S2: placing the target object to be detected at the working distance of the imaging system, and the CMOS camera is exposed line by line in a single shot in rolling shutter mode to obtain a speckle pattern of the target object to be detected; Step S3: improving the reconstruction algorithm, combining the edge detection process with the compression reconstruction process, and modifying the sampling matrix so as to directly reconstruct the edge image of the real object in the edge detection domain with more sparse prior characteristics; Step S4: Select one or more corresponding rows from the pre-calibrated point spread function and the detected speckle pattern, input the improved compressed sensing algorithm, and directly reconstruct the edge detection image of the original object.
