Virtual dual-optical-path Hadamard row sorting compressed sensing single-pixel imaging device and method
Through the Hadamard row sorting and gradient projection sparse reconstruction algorithm of the virtual dual-optical path, the problems of high noise, high sampling times and image artifacts in single-pixel imaging technology are solved, achieving high-quality image reconstruction and overcoming the natural sequence Poor robustness and artifact effects of Hadamard matrices.
Patent Information
- Application Number
- CN202310051277.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-02
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-02-02
AI Technical Summary
Existing single-pixel imaging technology has problems such as high noise, high sampling times, long reconstruction time, and image artifacts. In particular, methods based on natural sequence Hadamard matrices have poor robustness, complex operations, and time-consuming operations.
The Hadamard row sorting compressed sensing single-pixel imaging device and method using virtual dual optical paths realizes row sorting and light intensity measurement of the Hadamard matrix and reduces noise by generating zigzag sorting and gradient projection sparse reconstruction algorithms of the measurement matrix. and sampling times to improve image quality.
It significantly reduces the number of experimental measurements and system noise, improves the clarity and robustness of image reconstruction, can obtain clear image contours at a lower sampling rate, and overcomes the artifact effect of the natural sequence Hadamard matrix.
Smart Images

Figure CN116156289B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computational imaging. Specifically, the present invention relates to an amplitude modulated single-pixel imaging device and method in the field of compressed sensing, a virtual dual-light path single-pixel imaging of dual-path detection in the field of single-pixel imaging, and a zigzag sorting method of Hadamard measurement matrix rows. Background Art
[0002] Single-pixel imaging is an emerging computational imaging technology. Compared with traditional cameras that require array pixel sensors to image the imaging target, it requires the acquisition of tens of thousands of pixels. Single-pixel imaging technology can overcome some shortcomings of traditional cameras composed of charge coupled devices (CCD) or complementary metal oxide semiconductors (CMOS), such as complex design structure, high price, inability to image in invisible bands, poor imaging effect or direct loss of imaging ability in low-light environments, weak ability to resist interference from scattering media, etc. Single-pixel imaging is an active light modulation illumination indirect imaging technology that can achieve hardware-level optical compression, reduce the storage space required for measurement data, and reduce energy consumption to a certain extent, reducing memory overhead compared to traditional cameras.
[0003] The existing single-pixel imaging method uses a spatial light modulator (SLM) to load a modulation matrix to modulate the light beam generated by the light emitted from the illumination light source passing through the target object. The modulated reflected light is converged to the photosensitive surface of the photodetector through a focusing lens for photoelectric conversion into voltage output to the data sampling card to collect the corresponding voltage value. The spatial light modulator used generally adopts a digital micromirror device (DMD). The modulation matrix loaded on the DMD is a natural sequence Hadamard matrix, and a photodetector is used to detect the intensity value of the light reflected by the DMD. Since the Hadamard matrix is a symmetrical matrix composed of -1 and 1, when loaded into the DMD, it will drive the micromirror to deflect in both positive and negative directions. If the intensity of light in two directions is to be detected, photodetectors need to be placed in both directions to collect light signals, that is, a dual optical path detection must be built to fully collect the complete light intensity. This method is both time-consuming and labor-intensive, and the operation is very complicated. Another method is to change -1 in the Hadamard matrix to 0, leaving element 1 unchanged, and then load it into the DMD to obtain a series of light intensity values. Next, change -1 in the Hadamard matrix to 1, leaving element 1 unchanged, and load it into the DMD to obtain a series of light intensity values. Then, subtract the first series of light intensity values from the subsequent series of light intensity values measured, and thus a series of total light intensity measurement values is obtained. Although this method is convenient to operate, it also brings about the problem of repeated measurements, and also introduces a lot of measurement noise, which seriously interferes with the quality of reconstructing the target image.
[0004] The current single-pixel imaging technology is based on the light intensity acquisition method of a single detector, and the loaded Hadamard matrix is a natural sequence, which has the disadvantages of poor robustness, more signal acquisition times, long reconstruction time, and artifacts in the reconstructed image. There are also some methods based on sorting the rows of the Hadamard matrix, such as the Walsh sorting method and the Cake-Cutting (CC) method. These methods convert the rows of the Hadamard matrix into a block matrix to find the number of blocks in the small block matrix with rearranged rows, that is, the number of connected areas of the blocks, and then sort them according to a certain rule based on the number of connected domains. These methods are very time-consuming, especially as the number of rows and columns of the matrix increases, the time spent on calculating the number of connected domains of the block matrix is quite long. Summary of the invention
[0005] In view of the shortcomings of existing single-pixel imaging technology, the present invention proposes a single-pixel imaging device and method that can effectively reduce noise and sampling times and improve the quality of reconstructed images. The method includes a method for generating a measurement matrix and a light intensity measurement method.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] A virtual dual-light path Hadamard row-sorting compressed sensing single-pixel imaging device, according to whether the light source directly transmits the target to be imaged or the light source illuminates the target to be imaged and then reflects to the lens;
[0008] The imaging device includes a solid laser, a beam expander, a double convex lens, a transparent baffle of a target to be imaged, a smooth non-transparent baffle of a target to be imaged, a digital micromirror device (DMD), a focusing lens, an EOT photomultiplier detector, a data sampling card device and a signal processing device. After the laser is powered on, the laser emitted is expanded by the beam expander and then irradiated to the transparent baffle or the smooth non-transparent baffle of the target to be imaged. Then, the light beam carrying the information of the target to be imaged passes through the double convex lens, and the light beam converges to the modulation area in the digital micromirror device (DMD). The modulated light is reflected on the focusing lens and converged on the photosensitive surface of the EOT photomultiplier detector. The photomultiplier detector converts the optical signal into an electrical signal. The photodetector and the input port of the data sampling card are connected to transmit the electrical signal through a coaxial cable conductor. The data sampling card obtains the digital voltage value of the electrical signal through A / D conversion. The data sampling card is connected to the signal processing device through a USB data conductor to transmit the measurement data.
[0009] Furthermore, the selected solid-state laser is a 532nm solid-state laser, which has the characteristics of air stability and small light source fluctuation, so it can reduce the background noise that affects the imaging results;
[0010] The focal length f of the biconvex lens is 12.5 cm. When the object distance is set between one focal length and two focal lengths, an inverted and enlarged real image can be formed at the other side of the lens where the image distance is greater than two focal lengths.
[0011] The beam expander can expand the diameter of the light beam emitted by the solid laser light source so that the incident light beam can completely cover the image of the target to be imaged, and the light beam carrying the target to be imaged is projected onto the surface of the DMD digital micromirror device through a double convex lens through transmission or reflection;
[0012] The digital micromirror device DMD is used as a spatial light modulator, which can be controlled by FPGA and is easy to program and regulate. This can improve the efficiency of single-pixel imaging. Through the deflection of the digital micromirror, the incident light can be flexibly modulated and reflected to the focusing lens, and optical measurement at the hardware level can be achieved. By changing the elements loaded into the matrix in the DMD, the deflection direction of the DMD digital micromirror can be controlled, and the deflection direction of the DMD micromirror can be deflected in the designed direction to realize virtual dual light paths;
[0013] The EOT photomultiplier detector can achieve good conversion gain for light in the 532nm band;
[0014] The data acquisition card adopts the USB-6366 sampling card of NI company, which can synchronously realize the acquisition of multi-channel signals and has high sampling accuracy, which can reach 16-bit accuracy;
[0015] The signal processing device uses a portable notebook computer, which can facilitate the reconstruction of the target object image.
[0016] A virtual dual-light path Hadamard row-ordering compressed sensing single-pixel imaging method includes a method for generating a measurement matrix and a detection method for calculating and measuring light intensity.
[0017] The method for generating a measurement matrix aims to sort the rows of a natural sequence Hadamard matrix, improve the performance of the Hadamard measurement matrix, and overcome the artifact effect of the natural sequence Hadamard matrix on the reconstructed image. The image reconstruction algorithm adopts a convex optimization image reconstruction algorithm GPSR method, namely a gradient projection sparse reconstruction algorithm.
[0018] The single pixel imaging method comprises the following steps:
[0019] Step S1: First, according to the single-pixel imaging system proposed by the present invention, the positions of the components of the imaging device and the distances between them are determined, the size of the imaging target image is determined, and the size of the measurement matrix is determined according to the size of the target image; assuming that the target image to be imaged by single-pixel imaging is I n×n , that is, the pixel resolution of the target image to be imaged for single-pixel imaging is n×n, and the image pixel matrix is represented as a column vector form x 1×N , where N = n × n, determines the sampling rate α of single-pixel imaging, so the number of measured values is determined to be M = α·N, so the size of the measurement matrix is determined. Let the measurement matrix Φ M×N , the matrix size is M×N;
[0020] Step S2: The size of the measurement matrix determined by step S1 is M×N, that is, the number of rows and columns of the measurement matrix is given, where M<<N. In order to make the rows and columns in the measurement matrix unrelated, a matrix O of size N×N with all elements being zero is first generated. N×N , then the matrix O N×N Similar to a box, each line generated according to the requirements is replaced with O in turn. N×N From the obtained matrix O N×N Select rows 1 to M from to form the measurement matrix Φ M×N; Since the elements in the Hadamard matrix are only -1 and 1, any two rows or columns in the Hadamard matrix are orthogonal, but the image reconstructed by the natural sequence Hadamard matrix shows artifact effects and poor anti-noise robustness, so it is necessary to reorder the rows in the Hadamard matrix to form a new row sequence Hadamard matrix; the method of generating the newly ordered Hadamard matrix here is to use the method of analogy with a full binary tree to sequentially generate N small square matrices H of size n×n i(i=1,2,…,N) , the elements in the small square matrix are composed of 1 and -1, just like the elements in the Hadamard matrix. i(i=1,2,…,N) It becomes a row vector, which corresponds to a row in the Hadamard matrix of size N×N natural sequence, and the order of elements is the same. Here we directly use the method of full binary tree to generate N small square matrices H i(i=1,2,…,N) Numbering, number set to p i(i=1,2,…,N) =i, that is, p i(i=1,2,…,N) As the newly generated small square matrix H i(i=1,2,…,N) The number can also be considered as a small square matrix H i(i=1,2,…,N) Index value. Number N decimal numbers p i(i= 1 , 2,…,N ) According to the generated small square matrix H i(i=1,2,…,N) The corresponding positions in the two-dimensional matrix formed by the full binary tree are placed in sequence to form an element numbered p i(i=1,2,…,N) The numerical matrix P of the matrix P is n×n in size. Here, in order to generate the required Hadamard basis of the measurement matrix and improve the PSNR and SSIM of the reconstructed image quality indicators, in order to obtain the row vectors of the newly sorted Hadamard matrix, it is necessary to sort the elements in the matrix P in a zigzag manner, that is, to arrange the matrix P from the first element in the upper left corner to the last element in the lower right corner in a zigzag manner, and the sequence of elements is obtained according to the order of arrangement. The sorted elements form a column vector ρ, with a total of N elements, which are generated by the class full binary tree method. The index value of the small square matrix is also the number of the small square matrix; the generated N small square matrices are rearranged into a large newly sorted Hadamard matrix, that is, after the N small square matrices are converted into a row vector, each row vector is arranged in sequence according to the order of the index value in the generated column vector ρ, thus forming a new row-sorted Hadamard matrix of size N×N, and the size of the measurement matrix determined according to the size of the target image to be imaged is M×N (M<<N), so the 1st to Mth rows should be selected from the N rows, which constitutes the measurement matrix Φ that can be loaded into the DMD M×N ;
[0021] Step S3: The measurement matrix Φ generated by step S2 M×N, this matrix is used as the sampling matrix in single pixel imaging, the sampling rate α = M / N, and the small square matrix H corresponding to the M-row matrix selected in step S2 i(i=1,2,…,M) The elements in are composed of +1 and -1. Because the design idea of virtual dual optical path is adopted, and the matrix loaded into DMD, +1 can drive the small micromirror to deflect 12° in the forward direction, and the element -1 drives the small micromirror to deflect 12° in the reverse direction. Therefore, in order to make the generated measurement matrix able to be used in the proposed single-pixel imaging system, it is necessary to generate the small square matrix H i(i=1,2,…,M) The new small square matrix obtained by changing the element -1 to 0 is That is, -1 is not loaded into the DMD to control the deflection of the micromirror, so that only the micromirror corresponding to element 1 is deflected 12° forward. The light parallel to the principal optical axis of the lens is converged to the photosensitive surface of the photodetector through the focusing lens. The data acquisition card is controlled by the LabVIEW program to sample the voltage value u of the reflected light after the detector is converted; it is only necessary to obtain the voltage value u corresponding to the light intensity of the forward deflection of the micromirror. 正 , and then let the micromirror fully deflect 12° in the forward direction, which is equivalent to letting the DMD act as a reflector. The total voltage value u detected by the photodetector is 总 This voltage measurement value is used as the reference voltage value. Therefore, the voltage value u corresponding to the light intensity measured by the reverse deflection detector driven by the element-1 is obtained by calculation. 反 =u 总 -u 正 , there is no need to use a detector to detect the reverse deflected light intensity, and the voltage value corresponding to element -1 can be obtained, which is equivalent to the detection light path of one light intensity in the dual-path detection, and can be regarded as a virtual detection signal, forming a virtual dual-path light intensity detection method; the total measurement value u here 总 As a reference value, the incident light irradiates the target to be imaged, and the light carrying the target information hits the DMD and is fully forward deflected. The reflected light passes through the focusing lens and converges the light onto the photosensitive surface of the detector. The data acquisition card obtains the voltage measurement value corresponding to the total light intensity. First, load a measurement matrix of size n×n with all elements of +1 into the DMD, so that the digital micromirror in the DMD is fully forward deflected, and the reflected light carrying the image of the target to be imaged converges onto the photosensitive surface of the photodetector to obtain a voltage value of u0, and then load the matrix in sequence When the incident light with target information is modulated by DMD, the reflected light converges to the photosensitive surface of the photodetector and the voltage value is measured. , then H i(i=1,2,…,M) The voltage corresponding to the reverse reflected light intensity of the micromirror driven in the middle-1 can be obtained by calculating and measuring the reference , combined with the above method, the measured value can be calculated , where ε iis the system noise of the ith measurement. In summary, the one-dimensional measurement value vector obtained is y 1×M ={y1,y2,…,y M};
[0022] Step S4: Reconstruct the target image using the obtained measurement value vector. The one-dimensional measurement value vector y obtained in step S3 is 1×M ={y1,y2,…,y M}; Select the gradient projection sparse reconstruction algorithm, which can solve the unconstrained convex optimization minimum problem, and the single pixel imaging method is transformed into this problem to solve it. The formula is as follows
[0023]
[0024] Where y represents the obtained measurement value vector, A is the sensor matrix, τ is a non-negative real number, which can impose certain constraints on the target value, s is the required target vector, which is the sparse signal after sparse representation, and y is the one-dimensional measurement value vector y obtained in step S3 1×M ={y1,y2,…,y M}, since the target image signal to be reconstructed is not sparse itself, it needs to be sparsely represented. The sparse matrix used is the discrete cosine matrix Ψ, then the target signal can be expressed as x=Ψ·s, the measurement matrix Φ obtained by step S2, then the sensor matrix A=Φ·Ψ, then the reconstruction algorithm can be used to find the target vector s, and then the formula x=Ψ·s can be used to calculate the reconstructed target image signal.
[0025] The beneficial effects of the present invention are mainly manifested in that: the method for generating the measurement matrix is to sort the rows of the Hadamard matrix in a zigzag shape, and the Hadamard matrix generated by the method is used in a single-pixel imaging system to obtain a better reconstructed image, and the overlapping artifacts of the natural sequence Hadamard matrix reconstructed image can be eliminated. A virtual dual-light path light intensity detection method is proposed. This method uses the design idea of a single light path and the characteristics of the measurement matrix itself, and proposes to obtain a total measurement voltage reference value by fully forward deflecting the micromirror in the DMD, and then sets the element -1 in the Hadamard matrix to be loaded to 0, and obtains the voltage value corresponding to the light intensity obtained by driving the micromirror deflection by element +1, and the element -1 can directly use the reference value to subtract the element +1 driving the micromirror deflection to obtain the voltage value corresponding to the light intensity, and the obtained voltage value is equivalent to the voltage value directly measured when -1 drives the DMD micromirror to reversely deflect, that is, the effect of dual-path detection is achieved, which can significantly reduce the number of experimental measurements, and can also reduce the introduction of system noise, and can obtain a reconstruction result with clear image contours even at a lower sampling rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1An example of a zigzag sort of a Hadamard matrix to generate a new row order.
[0027] Figure 2 This is a flow chart of the single-pixel imaging method proposed in the present invention.
[0028] Figure 3 A diagram of a single-pixel imaging system setup for direct transmission of the target image to be imaged.
[0029] Figure 4 A diagram of a single-pixel imaging system in which the target image to be imaged is reflected.
[0030] Figure 5 Trend diagram of PSNR and SSIM of images reconstructed with five different row-ordered Hadamard matrices as a function of sampling rate.
[0031] Figure 6 The Lena reconstruction image results of the proposed Hadamard row sorting method (Proposed) and the Hadamard matrix of the natural sequence (Natural). DETAILED DESCRIPTION
[0032] The present invention will be further explained below in conjunction with the accompanying drawings, and the specific method steps of this aspect will be described in more detail. It can be seen from the specific implementation methods that the changes in the methods, operation sequences, structures or functions made by engineers and technicians in this field to the specific implementation methods of the present invention are all included in the scope of protection of the present invention.
[0033] Reference Figure 3 and Figure 4 , a virtual dual-light path Hadamard row sorting compressed sensing single-pixel imaging device, according to whether the light source directly transmits the target to be imaged or the light source illuminates the target to be imaged and then reflects to the lens;
[0034] The imaging device includes a solid laser 1, a beam expander 2, a double convex lens 3, a transparent baffle of a target to be imaged, a smooth non-transparent baffle of a target to be imaged, a digital micromirror device DMD5, a focusing lens 6, an EOT photomultiplier detector 7, a data sampling card device 8 and a signal processing device 9; after the laser is powered on, the laser emitted is expanded by the beam expander and then irradiated to the transparent baffle or the smooth non-transparent baffle 4 of the target to be imaged, and then the light beam carrying the information of the target to be imaged passes through the double convex lens, and the light beam converges to the modulation area in the digital micromirror device DMD, and the modulated light is reflected on the focusing lens and converged on the photosensitive surface of the EOT photomultiplier detector, and the photomultiplier detector converts the optical signal into an electrical signal, and the photodetector and the input port of the data sampling card are connected to transmit the electrical signal through a coaxial cable conductor, and the data sampling card obtains the digital voltage value of the electrical signal through A / D conversion, and the data sampling card is connected to the signal processing device through a USB data conductor to transmit the measurement data.
[0035] Furthermore, the selected solid-state laser is a 532nm solid-state laser, which has the characteristics of air stability and small light source fluctuation, so it can reduce the background noise that affects the imaging results;
[0036] The focal length f of the biconvex lens is 12.5 cm. When the object distance is set between one focal length and two focal lengths, an inverted and enlarged real image can be formed at the other side of the lens where the image distance is greater than two focal lengths.
[0037] The beam expander can expand the diameter of the light beam emitted by the solid laser light source so that the incident light beam can completely cover the image of the target to be imaged, and the light beam carrying the target to be imaged is projected onto the surface of the DMD digital micromirror device through a double convex lens through transmission or reflection;
[0038] The digital micromirror device DMD is used as a spatial light modulator, which can be controlled by FPGA and is easy to program and regulate. This can improve the efficiency of single-pixel imaging. Through the deflection of the digital micromirror, the incident light can be flexibly modulated and reflected to the focusing lens, and optical measurement at the hardware level can be achieved. By changing the elements loaded into the matrix in the DMD, the deflection direction of the DMD digital micromirror can be controlled, and the deflection direction of the DMD micromirror can be deflected in the designed direction to realize virtual dual light paths;
[0039] The EOT photomultiplier detector can achieve good conversion gain for light in the 532nm band;
[0040] The data acquisition card adopts the USB-6366 sampling card of NI company, which can synchronously realize the acquisition of multi-channel signals and has high sampling accuracy, which can reach 16-bit accuracy;
[0041] The signal processing device uses a portable notebook computer, which can facilitate the reconstruction of the target object image.
[0042] Reference Figure 1 to Figure 6 , a virtual dual-light path Hadamard row-sorting compressed sensing single-pixel imaging method, a flow chart of generating a zigzag row-sorting Hadamard matrix, it can be seen that the specific process of the Hadamard matrix after the optimized sorting generated by selecting n=4 here is described in detail below.
[0043] The process of generating a measurement matrix for single-pixel imaging proposed in the present invention comprises the following specific steps:
[0044] Step 101: According to the size of the imaging target image being n×n, the size of the optimized sorted Hadamard matrix to be constructed is determined to be N×N (N=n×n), and the optimized sorted Hadamard matrix is constructed using a quasi-full binary tree method. Since the elements in the Hadamard matrix are only -1 and +1, the full binary tree method can be used to generate row vectors and column vectors in the constructed Hadamard matrix. According to the size of the generated measurement matrix, the depth of the full binary tree used can be determined to be dim=log2(n)+1;
[0045] Step 102: Determine the depth of the full binary tree dim=log2(n)+1 from step 101, set the initial seed vector s=[1], and use the nodes of the binary tree to generate the subspace column vector seed h col (i), (i=1,2,3,…,2 (dim-1) ) and the subspace row vector seed h row (j),(j=1,2,3,…,2 (dim-1) ),
[0046] Step 103: The column vector seed and row vector seed obtained in step 102 are multiplied to generate a two-dimensional matrix, that is, the generated column vector seed h col (i) with row vector seed h row (j) Perform inner product operation to obtain a block matrix H i(i=1,2,…,N) , the matrix size is n×n, then H i(i=1,2,…,N) =h col (i) h row (j), then for the obtained small square matrix H i(i=1,2,…,N) Numbered in sequence, number p i(i=1,2,…,N) =i, then the decimal value sequence number p is obtained i(i=1,2,…,N) As the generated two-dimensional matrix H i(i=1,2,…,N) The index value is also the number value;
[0047] Step 104: Based on the series of index values obtained in step 103, the index values of the small square matrix are placed at the positions of the original small square matrix according to the positions of the small square matrix generated by the quasi-full binary tree method, thus obtaining the index value p i(i=1,2,…,N) A two-dimensional numerical matrix P is created, and then the elements in P are sorted in a zigzag pattern, starting from the first element in the upper left corner of the matrix and continuing in a zigzag pattern to the last element in the lower right corner of the matrix, to sort the elements in the two-dimensional numerical matrix P. The N elements after sorting constitute a i The column vector ρ of
[0048] Step 105: Generate an all-zero matrix O of size N×N N×N , using the column vector ρ generated in step 104, we can know the position of the index value pi in the column vector ρ, and convert the small square matrix H corresponding to the index value pi into i(i=1,2,…,N) Convert to row vector h i(i=1,2,…,N) , then according to the row vector h i(i=1,2,…,N) The index value p i In the position of column vector ρ, the row vector h i(i=1,2,…,N) Replace with all zero matrix O N×N The corresponding rows of the matrix are replaced until all the row vectors in the matrix are replaced, forming a new matrix O. N×N , this matrix is the Hadamard matrix after optimization sorting. According to the sampling rate α, the number of sampling values M = α·N is determined, and O N×N Select rows 1 to M to form a matrix Φ of size M×N M×N , then this matrix is the required measurement matrix.
[0049] According to the above steps 101 to 105, the generated measurement matrix Φ can be obtained. M×N .
[0050] Figure 3 The figure shows a single-pixel imaging system device diagram of a virtual dual-light path in which a light source directly transmits a target to be imaged. The figure lists the devices or modules used in the system, including an incident module, a reflection module, a spatial light modulation module, and a light intensity detection and acquisition module.
[0051] Figure 4 The figure shows a single pixel imaging system device diagram of a virtual dual light path from a light source to a target to be imaged after reflection, including modules and Figure 3 The modules in are almost the same, only the light is reflected after passing through the target to be imaged.
[0052] Figure 3 and Figure 4The modules and components used in the single-pixel imaging system shown in FIG. 1 can be specifically described as follows: device 1 is a solid-state laser, device 2 is a beam expander, and Figure 3 In the system shown, device 3 is a transparent baffle of the object to be imaged. Figure 4 In the system shown, device 3 is a smooth non-transparent baffle of the target to be imaged, device 4 is a double convex lens, device 5 is a spatial light modulator DMD, device 6 is a focusing lens, device 7 is a photomultiplier detector, device 8 is a data sampling card, and device 9 is a data collection and processing device.
[0053] The single-pixel imaging system of virtual dual-path detection proposed in the present invention can be divided into two imaging systems according to whether the light source passes through the image of the target to be imaged through transmission or reflection. One is that the light emitted by the light source directly transmits the target to be imaged and carries the information of the imaging target through subsequent processing processes; the other is that the light emitted by the light source completely illuminates the entire target to be imaged, and then the light is reflected and carries the target information into subsequent processing processes.
[0054] Specifically, the laser emits a laser beam, which is expanded by a beam expander to increase the diameter of the illumination beam and allow the incident light to completely cover the target to be imaged. The light emitted by the light source directly transmits the target to be imaged, and the information of the target to be imaged is directly imaged in the modulation area of the DMD through the lens. Figure 3 As shown, the focal length of the double convex lens 4 of the present invention is 12.5 cm. According to the imaging principle of convex lenses, when the object distance is between one focal length and two focal lengths, an inverted and enlarged real image is formed at the position where the image distance on the opposite side of the lens is greater than two focal lengths. Figure 3 The object distance of the double convex lens of the system shown is 23.6 cm, the image distance is measured to be 26.5 cm, the distance from the beam expander 2 to the transparent baffle of the imaged target is 20.0 cm, the distance from the spatial light modulator 5 to the focusing lens 6 is 16.5 cm, and the focal length of the focusing lens 6 is 10.5 cm. Therefore, the photosensitive surface of the photodetector is placed at the focus, and the light projected onto the surface of the digital micromirror is modulated by the DMD modulation area and converted into an electrical signal through the detected photoelectric conversion. Figure 4 The corresponding system is that the light source irradiates the smooth opaque baffle of the target to be imaged, and then the reflected light carrying the information of the target to be imaged passes through the double convex lens to form a real image in the modulation area of the DMD. Figure 3 The position and distance in are corresponding.
[0055] For the selection of the modulation area of the DMD, the central area of the DMD is selected as the modulation area. The size of the imaging target is 128×128 pixels. In order to facilitate modulation and make the incident light better deflected by the micromirror of the DMD to the photosensitive surface of the detector for detection, the small micromirrors are spliced. The 4×4 small micromirrors are spliced as a modulation pattern of one pixel, and the spliced small micromirrors are set to the same deflection state. After the splicing of the micromirrors, the central part of the DMD is formed. The 129th to 640th rows and the 257th to 768th columns of the DMD are used, and the other micromirrors are set to a non-deflected state, forming a modulation area of 128×128 pixels in the central part of the DMD. The modulation measurement matrix Φ to be loaded in sequence 3277×16384 The -1 in each row of the measurement matrix is set to 0 and then loaded into the DMD to control the deflection of the small micromirror in the DMD, as shown in step S3, which will not be repeated here.
[0056] The specific process of the compressed sensing single-pixel imaging method based on virtual dual light paths proposed in this embodiment is as follows: Figure 2 The flowchart of the single pixel imaging method is shown in FIG. 1 , and the specific steps are as follows:
[0057] Step S1: First build Figure 3 and Figure 4 The virtual dual-light path single-pixel imaging system shown in FIG. 1 determines the positions of the components of the imaging device, determines the specifications of the imaging target image, and determines the size of the measurement matrix according to the size of the target image. Here, the target image detected by the single pixel is I n×n , that is, the pixel resolution of the target image of single-pixel imaging is n×n, and the image pixel value matrix is represented as a column vector form as x 1×N , where N = n × n, determines the sampling rate α of single-pixel imaging, and thus determines the number of measured values to be M = α·N, so the size of the measurement matrix is determined, that is, the measurement matrix Φ M×N , the matrix size is M×N. In the present invention, n=128, the sampling rate α can be selected as 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, and α=0.2 is taken as an example below. N=16384, M=3277, so the size of the measurement matrix is 3277×16384;
[0058] Step S2: According to steps 101 to 105, when n=128, the depth of the full binary tree is dim=log2(n)+1=8, and the required measurement matrix Φ is obtained. 3277×16384 , the elements in this matrix are only 1 and -1, and the generated measurement matrix Φ 3277×16384 It is to meet the requirements and be able to be used for the acquisition of the target image to be imaged for single-pixel imaging and the subsequent reconstruction of the image signal;
[0059] Step S3: The measurement matrix Φ generated by step S2 3277×16384 , this matrix is used as the sampling matrix in single pixel imaging, and the sampling rate α = 0.2. The small square matrix H corresponding to the M row matrix selected in step S2 i(i=1,2,…,3277) The elements in are composed of +1 and -1, because the present invention adopts the design idea of virtual dual light path, and in the matrix loaded into DMD, +1 can drive the small micromirror to deflect 12° in the forward direction, and the element -1 drives the small micromirror to deflect 12° in the reverse direction. In order to make the generated measurement matrix able to be used in the proposed single-pixel imaging system, it is necessary to generate the small square matrix H i(i=1,2,…,3277) The new small square matrix obtained by changing the element -1 to 0 is That is, the micromirror corresponding to -1 is not allowed to deflect, and only the micromirror corresponding to element 1 is deflected 12° in the positive direction. The light parallel to the main optical axis of the lens is converged to the photosensitive surface of the photodetector through the focusing lens. The data acquisition card is controlled by the LabVIEW program to obtain the voltage value u of the reflected light after the detector conversion. The virtual dual-light path detection method proposed by the present invention firstly only needs to obtain the voltage value u corresponding to the light intensity of the element +1 in the measurement matrix driving the micromirror to deflect positively. 正 Then let the micromirror fully deflect 12° in the forward direction, and the data acquisition card obtains the total light intensity reflected by the photodetector and converts it into the total voltage value u 总 , this voltage measurement value u 总 As a reference voltage value, the voltage value u corresponding to the light intensity measured by the detector when the micromirror is driven in the reverse direction can be obtained by calculation. 反 =u 总 -u 正 , there is no need to use a detector to detect the light intensity of the DMD reverse deflection, which is equivalent to placing a virtual detector in the direction of the DMD micromirror reverse deflection to detect the light intensity. In fact, no detector is placed, that is, a virtual dual-light path detection method. The total voltage measurement value u 总 As a reference value, the light carrying the information of the target to be imaged hits the fully forward deflected DMD and is forward reflected. The reflected light is focused on the photosensitive surface of the photodetector through the focusing lens. The data acquisition card obtains the total voltage measurement value obtained by photoelectric conversion of the total light intensity. First, load a measurement matrix of size 128×128 with all elements of +1 into the DMD, so that the digital micromirror in the DMD modulation area is fully forward deflected, and the reflected light carrying the image information of the target to be imaged is focused on the photosensitive surface of the photodetector through the focusing lens. After photoelectric conversion, the voltage value is u0, and the matrix is loaded in sequence. The incident light carrying the image information of the target to be imaged is modulated by the DMD and then the reflected light converges on the photosensitive surface of the photodetector. The voltage value is Then H i(i=1,2,…,3277)The voltage measurement value corresponding to the light intensity reflected by the micromirror driven by the element-1 can be obtained by reference calculation measurement. Combining the above methods, the total measurement value can be calculated where ε i is the system noise of the ith measurement. In summary, the obtained measurement value vector is y 1×3277 ={y1,y2,…,y 3277}.
[0060] Step S4: After obtaining the measurement value vector, the target image to be imaged is reconstructed using the gradient projection sparse reconstruction algorithm. The one-dimensional measurement value vector y obtained in step S3 1×3277 ={y1,y2,…,y 3277 The reconstruction algorithm selected by the present invention is the gradient projection sparse reconstruction algorithm, which can solve the unconstrained convex optimization minimum problem, and the single-pixel imaging method of the present application can be converted into this problem to solve. The formula is as follows
[0061]
[0062] Where y represents the obtained measurement value, A is the sensor matrix, τ is a non-negative real number, which can impose certain constraints on the target value, and s is the required target vector, which is a sparse signal after sparse representation. In the present invention, y is the one-dimensional measurement value vector y obtained in step S3 1×3277 ={y1,y2,…,y 3277}, since the target image signal to be reconstructed is not sparse, it needs to be sparsely represented. The sparse matrix used in the present invention is the discrete cosine matrix Ψ 16384×16384 , then the target signal can be expressed as x = Ψ·s, and the measurement matrix Φ obtained in step S2 3277×16384 , then the sensor matrix A = Φ·Ψ, and the target vector s can be obtained by using the reconstruction algorithm, and then the reconstructed image signal can be calculated using the formula x = Ψ·s.
[0063] according to Figure 5 The curves of PSNR and SSIM versus sampling rate shown are obtained by sampling and reconstructing a Lena image with a resolution of 512×512 using the sorting method proposed in the present invention and four different Hadamard matrices, namely Walsh, Cake-Cutting, Random, and Natural, as measurement matrices after row sorting. The image reconstruction algorithm is a gradient projection sparse reconstruction algorithm. The solid line corresponds to the PSNR of the reconstruction result, and the dotted line corresponds to the SSIM of the reconstruction result. It can be seen that the method proposed in the present invention is superior to the other four sorting methods.
[0064] The simulation verifies the effectiveness and feasibility of the proposed method. Figure 6The reconstruction result diagram shown in the figure shows the effect of the reconstruction of the imaging target. Figure 6 (a) shows the result of sampling and reconstructing the Lena graph using the proposed Hadamard matrix sorting method. Figure 6 (b) shows the sampling and reconstruction results of the Lena graph using the natural sequence Hadamard matrix. It can be seen that the natural sequence Hadamard matrix has serious artifact effects, and the proposed Hadamard matrix sorting method can overcome this shortcoming. The sampling rates are 0.1, 0.2, 0.3, 0.4, 0.5, and 0.6, respectively, and the peak signal-to-noise ratio (PSNR) / structural similarity (SSIM) corresponding to the reconstruction results are 23.6925 / 0.6689, 26.3545 / 0.7889, 27.6053 / 0.8275, 29.0943 / 0.8639, 30.7479 / 0.9052, and 32.2307 / 0.9342, respectively.
[0065] In the above-mentioned specific embodiment of the present invention, it can be seen that the method steps proposed by the present invention include hardware and software parts. Some steps in the embodiments are detailed and concise, some steps are described in detail, and some steps are described concisely, but these can all find corresponding detailed explanations in the embodiments. The method of the present invention contains instructions such as "step S1" and "step 101". These steps can be independent or performed in sequence in a certain order. Multiple steps can be regarded as a collection and summary of an example method. Engineers and technicians in this field should note that some steps and some example methods in the present invention can be expanded and extended to achieve the described results or specific functions, but such implementation should not exceed the scope of protection of the present invention.
[0066] The present invention proposes single-pixel imaging in the field of computational imaging, which is not limited to the single-pixel imaging method within the visible light range, but is also applicable to the single-pixel imaging system structure constructed using devices of the corresponding band in the invisible light band.
[0067] The flowchart of the present invention can be regarded as a representation of the steps of the method, or as an execution order of a software program, a description of the program algorithm, which can be a summary of the main contents of the algorithm, or a sequential analysis of the algorithm. The flowchart part of the present invention can be regarded as some code fragments of the program or a part of the module, which is not specifically shown in the specific embodiment part of this application, but there are some implementation functions beyond the method of the embodiment, or some corresponding results can be obtained by following the order or reverse order of the flowchart of the present invention or skipping the steps therein, which should be understandable to engineers and technicians in this field.
[0068] The method steps in the flowchart of the present invention described above, the representation of the method steps can be considered as program codes or related control instructions, these program codes or instructions are stored in a computer-readable medium in a byte manner, and the system, device, etc. in the present invention are controlled by being stored in the computer-readable medium, and the computer-readable medium includes but is not limited to these structures, including random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM), data connection line / interface, etc. Through the above analysis and description, it can be seen that the specific method embodiment part is a further explanation of the present invention, rather than a limitation thereof. Those skilled in the art should be able to see that, although the method has been explained above, the steps and methods of the embodiment can still be replaced and modified, and some adjustments can be made to the performance, so that different or similar effects from the present invention can be obtained, especially the steps and schemes are equivalently modified or replaced, and there will be overlaps with the previous method steps. These changes enable the effects of the present invention to be further verified and realized. Therefore, those skilled in the art should be able to understand that these modifications or replacements, without departing from the technical ideas or technical routes of the present invention, should be within the scope of protection of the claims of the present invention.
Claims
1. A virtual dual-path Hadamard row sorting compressed sensing single-pixel imaging method, the single-pixel imaging device includes a solid laser, a beam expander, a double convex lens, a transparent baffle of the target to be imaged, a smooth non-transparent baffle of the target to be imaged, a digital micromirror device DMD, a focusing lens, an EOT photomultiplier detector, a data sampling card device and a signal processing device; the laser emitted by the laser after connecting to the power supply is expanded by the beam expander and then irradiated to the transparent baffle or the smooth non-transparent baffle of the target to be imaged, and then the light beam carrying the information of the target to be imaged passes through the double convex lens, and the light beam converges to the modulation area in the digital micromirror device DMD, and the modulated light is reflected on the focusing lens and converged on the photosensitive surface of the EOT photomultiplier detector, the photomultiplier detector converts the optical signal into an electrical signal, the photodetector and the input port of the data sampling card are connected to transmit the electrical signal through a coaxial cable conductor, the data sampling card obtains the digital voltage value of the electrical signal through A / D conversion, and the data sampling card is connected to the signal processing device through a USB data conductor to transmit the measurement data, characterized in that The imaging method includes a method for generating a measurement matrix and a detection method for calculating the measurement light intensity. The method for generating the measurement matrix is intended to sort the rows of the natural sequence Hadamard matrix, improve the performance of the Hadamard measurement matrix, and overcome the artifact effect of the natural sequence Hadamard matrix on the reconstructed image. The image reconstruction algorithm adopts a convex optimization image reconstruction algorithm GPSR method, that is, a gradient projection sparse reconstruction algorithm; The single pixel imaging method comprises the following steps: Step S1: First, according to the single-pixel imaging device, determine the positions of the components of the imaging device and the distances between them, determine the size of the imaging target image, and determine the size of the measurement matrix according to the size of the target image; suppose the target image to be imaged by the single-pixel imaging is I n×n , that is, the pixel resolution of the target image to be imaged for single-pixel imaging is n×n, and the image pixel matrix is represented as a column vector form x 1×N , where N = n × n, determines the sampling rate α of single-pixel imaging, so the number of measured values is determined to be M = α·N, so the size of the measurement matrix is determined. Let the measurement matrix Φ M×N , the matrix size is M×N; Step S2: The size of the measurement matrix determined by step S1 is M×N, that is, the number of rows and columns of the measurement matrix is given, where M<<N. In order to make the rows and columns in the measurement matrix unrelated, a matrix O of size N×N with all elements being zero is first generated. N×N , then the matrix O N×N Similar to a box, each line generated according to the requirements is replaced with O in turn. N×N In the matrix O N×N Select rows 1 to M from to form the measurement matrix Φ M×N ; Since the elements in the Hadamard matrix are only -1 and 1, any two rows or columns in the Hadamard matrix are orthogonal, but the image reconstructed by the natural sequence Hadamard matrix shows artifact effects and poor anti-noise robustness, so it is necessary to reorder the rows in the Hadamard matrix to form a new row sequence Hadamard matrix; the method of generating the newly ordered Hadamard matrix here is to use the method of analogy with a full binary tree to sequentially generate N small square matrices H of size n×n i(i=1,2,…,N) The elements in the small square matrix are composed of 1 and -1, just like the elements in the Hadamard matrix. i(i=1,2,...,N) It becomes a row vector, which corresponds to a row in the Hadamard matrix of the size N×N natural sequence. The order of elements is the same. Here we directly use the method of full binary tree to generate N small square matrices H i(i=1,2,…,N) Numbering, number set to p i(i=1,2,…,N) =i, that is, p i(i=1,2,…,N ) as the newly generated small square matrix H i(i=1,2,…,N) The number can also be considered as a small square matrix H i(i=1,2,…,N) The index value of N decimal numbers is p i(i=1,2,…,N) According to the generated small square matrix H i(i=1,2,…,N) The corresponding positions in the two-dimensional matrix formed by the full binary tree are placed in sequence to form an element numbered p i(i=1,2,…,N) The numerical matrix P of the matrix P is n×n in size. Here, in order to generate the Hadamard basis of the required measurement matrix and improve the PSNR and SSIM of the reconstructed image quality indicators, in order to obtain the row vectors of the newly sorted Hadamard matrix, it is necessary to sort the elements in the matrix P in a zigzag manner, that is, to arrange the matrix P in a zigzag manner from the first element in the upper left corner to the last element in the lower right corner. According to the order of arrangement, the sequence of elements is obtained, and the sorted elements form a column vector ρ, with a total of N elements, which are generated by the class full binary tree method. The index value of the small square matrix is also the number of the small square matrix; the generated N small square matrices are rearranged into a large newly sorted Hadamard matrix, that is, after the N small square matrices are converted into a row vector, each row vector is arranged in sequence according to the order of the index value in the generated column vector ρ, thus forming a new row-sorted Hadamard matrix of size N×N, and the size of the measurement matrix determined according to the size of the target image to be imaged is M×N (M<<N), so the 1st to Mth rows should be selected from the N rows, which constitutes the measurement matrix Φ that can be loaded into the DMD M×N ; Step S3: The measurement matrix Φ generated by step S2 M×N , this matrix is used as the sampling matrix in single pixel imaging, the sampling rate α = M / N, and the small square matrix H corresponding to the M-row matrix selected in step S2 i(i=1,2,…,M) The elements in are composed of +1 and -1. Because the design idea of virtual dual optical path is adopted, and the matrix loaded into DMD, +1 can drive the small micromirror to deflect 12° in the forward direction, and the element -1 drives the small micromirror to deflect 12° in the reverse direction. Therefore, in order to make the generated measurement matrix able to be used in the proposed single-pixel imaging system, it is necessary to generate the small square matrix H i(i=1,2,…,M) The new small square matrix obtained by changing the element -1 to 0 is That is, -1 is not loaded into the DMD to control the deflection of the micromirror, so that only the micromirror corresponding to element 1 is deflected 12° forward. The light parallel to the principal optical axis of the lens is converged to the photosensitive surface of the photodetector through the focusing lens. The data sampling card is controlled by the LabVIEW program to sample the voltage value u of the reflected light after the detector conversion; it is only necessary to obtain the voltage value u corresponding to the light intensity of the forward deflection of the micromirror. 正 , and then let the micromirror fully deflect 12° in the forward direction, which is equivalent to letting the DMD act as a reflector. The total voltage value u detected by the photodetector is 总 This voltage measurement value is used as the reference voltage value. Therefore, the voltage value u corresponding to the light intensity measured by the reverse deflection detector driven by the element-1 is obtained by calculation. 反 =u 总 -u 正 , there is no need to use a detector to detect the reverse deflected light intensity, and the voltage value corresponding to element -1 can be obtained, which is equivalent to the detection light path of one light intensity in the dual-path detection, and can be regarded as a virtual detection signal, forming a virtual dual-path light intensity detection method; the total measurement value u here 总 As a reference value, the incident light irradiates the target to be imaged, and the light carrying the target information hits the DMD and is fully forward deflected. The reflected light passes through the focusing lens and converges the light onto the photosensitive surface of the detector. The data sampling card obtains the voltage measurement value corresponding to the total light intensity. First, load a measurement matrix of size n×n with all elements of +1 into the DMD, so that the digital micromirror in the DMD is fully forward deflected, and the reflected light carrying the image of the target to be imaged converges onto the photosensitive surface of the photodetector to obtain a voltage value of u0, and then load the matrix in sequence When the incident light with target information is modulated by DMD, the reflected light converges to the photosensitive surface of the photodetector and the voltage value is measured. Then H i(i=1,2,…,M) The voltage corresponding to the reverse reflected light intensity of the micromirror driven in the middle-1 can be obtained by calculating and measuring the reference Combining the above methods, the measured value can be calculated where ε i is the system noise of the ith measurement. In summary, the one-dimensional measurement value vector obtained is y 1×M ={y1,y2,…,y M }; Step S4: Reconstruct the target image using the obtained measurement value vector. The one-dimensional measurement value vector y obtained in step S3 is 1×M ={y1,y2,…,y M }; Select the gradient projection sparse reconstruction algorithm, which can solve the unconstrained convex optimization minimum problem, and the single pixel imaging method is transformed into this problem to solve it. The formula is as follows Where y represents the obtained measurement value vector, A is the sensor matrix, τ is a non-negative real number, which can impose certain constraints on the target value, s is the required target vector, which is the sparse signal after sparse representation, and y is the one-dimensional measurement value vector y obtained in step S3 1×M ={y1,y2,…,y M }, since the target image signal to be reconstructed is not sparse itself, it needs to be sparsely represented. The sparse matrix used is the discrete cosine matrix Ψ, then the target signal can be expressed as x=Ψ·s, the measurement matrix Φ obtained by step S2, then the sensor matrix A=Φ·Ψ, then the reconstruction algorithm can be used to find the target vector s, and then the formula x=Ψ·s can be used to calculate the reconstructed target image signal.
