Single-pixel imaging (SPI) captures two-dimensional images utilizing a sequence of modulation patterns and measurements recorded by a single-pixel detector. However, the sequential measurement of a scene is time-consuming, especially for high-spatial-resolution imaging. Furthermore, for spectral SPI, the enormous data storage and processing time requirements substantially diminish imaging efficiency. To reduce the required number of patterns, we propose a strategy by optimizing a Hadamard pattern sequence via Morton frequency domain scanning to enhance the quality of a reconstructed spectral cube at low sampling rates. Additionally, we expedite spectral cube reconstruction, eliminating the necessity for a large Hadamard matrix. We demonstrate the effectiveness of our approach through both simulation and experiment, achieving sub-Nyquist sampling of a three-dimensional spectral cube with a spatial resolution of 256 × 256 pixels and 181 spectral bands and a reduction in reconstruction time by four orders of magnitude. Consequently, our method offers an efficient solution for compressed spectral imaging.
【AIGC One Sentence Reading】:Our proposed method enhances spectral single-pixel imaging efficiency by optimizing Hadamard patterns with Morton frequency scanning, achieving faster reconstruction and reduced sampling rates without sacrificing image quality.
【AIGC Short Abstract】:This study presents an optimized approach for spectral single-pixel imaging, utilizing Morton frequency-domain scanning to enhance reconstruction quality and efficiency. By reducing the required number of patterns and expediting the reconstruction process, our method achieves sub-Nyquist sampling of high-resolution spectral cubes, significantly improving imaging efficiency. Both simulation and experimental results demonstrate the effectiveness of this innovative technique for compressed spectral imaging.
Note: This section is automatically generated by AI . The website and platform operators shall not be liable for any commercial or legal consequences arising from your use of AI generated content on this website. Please be aware of this.
Single-pixel imaging (SPI) is an emerging imaging technique employing a single-pixel detector, devoid of spatial resolution[1]. SPI modulates the image of a scene using spatially resolved patterns to obtain a set of total light intensities, the correlation of which with the patterns yields the reconstructed images. The appeal of SPI lies in the efficiency of single-pixel detectors and post-processing algorithms, leading to its successful application in fields such as terahertz imaging[2], fluorescence imaging[3], and 3D imaging[4]. Spectral imaging, another application of SPI, involves using a spectrometer as the single-pixel detector. Different from the conventional spectral imaging methods, spectral SPI acquires a 3D spectral cube using a set of patterns to modulate the image of an object, and then records the data by a single-pixel detector[5]. This approach enables imaging with both high spectral and high spatial resolution. Despite its advantages, traditional spectral SPI requires long sequential measurements to acquire all the data, leading to long sampling time and extensive reconstruction period, particularly for high-spatial-resolution imaging.
The imaging efficiency of SPI can be enhanced through the incorporation of Hadamard basis reordering strategies and compressed sensing theory within sub-Nyquist SPI. By reordering a Hadamard pattern sequence, these strategies aim to reduce the required number of patterns, thereby shortening the SPI sampling time. However, the time consumption of applying compressed sensing algorithms for multiband image reconstruction at medium to high spatial resolution is excessively long, failing to meet the requirements for real-time imaging. To our knowledge, up to now, spectral SPI with spatial resolutions exceeding has not yet been achieved. Optimization strategies such as “Cakecutting,”[6] “TV,”[7] and “Zigzag,”[8] which are simulated and experimented within the literature, typically restrict the spatial resolution to or lower. The overall sampling effectiveness of these strategies for higher resolutions and for multiband images remains unknown.
In response to these challenges, we propose an optimized Hadamard basis strategy. Initially, we arrange the Hadamard patterns in a 2D distribution based on a Gray code sequence. To avoid the cumbersome process inherent in traditional optimization strategies, we employ an index matrix to identify each pattern. Subsequently, we adopt a Morton scanning strategy to traverse the index matrix, directly generating the Hadamard pattern sequence. The unique characteristic of the Morton scanning curve allows spectral SPI to sample at a lower rate, significantly reducing the sampling time. For the task of multiband spectral reconstruction, we modify the traditional single-band fast Walsh-Hadamard transform (FWHT) to suit the multiband reconstruction tasks of spectral SPI and the forward measurement model based on Morton scanning. Ultimately, this results in an efficient reconstruction of high-resolution, multiband images in spectral SPI. The effectiveness of our proposed strategy is validated through simulations and experimental results, showing significant reduction in sampling and reconstruction time and demonstrating a promising solution for rapid and efficient spectral imaging.
2. Theory and Methods
As illustrated in Fig. 1, the spectral SPI system illuminates the scene with a sequence of modulating patterns while concurrently recording the total light intensity with a spectrometer. The spectral SPI measurement model is mathematically represented as where embodies the raw measurements obtained from the spectrometer. Here, denotes the number of patterns projected on DMD, while denotes the quantity of spectral channels. In this equation, represents the imaging spectral cube in a 2D form, signifies the measurement matrix, and indicates the total number of pixels of the image. The sampling ratio (SR) is thus defined as . The conventional full sampling strategy utilizes the same number of patterns as the total number of pixels in an image. However, projecting all the required patterns can become prohibitively time-consuming if a high spatial resolution is desired. Therefore, a sub-sampling strategy () becomes a viable option for high-resolution spectral SPI.
Figure 1.Scheme of spectral single-pixel imaging. The target image is modulated by the time-varying patterns uploaded on the DMD. The spectrometer collects the spectral measurements corresponding to each pattern, which are then processed to recover the spectral cube.
Initially, we focus on the sampling process, which has the most significant impact on imaging efficiency. We utilize the widely used Hadamard matrix as our sampling matrix. Instead of constructing a Hadamard matrix, we analyze Hadamard basis vectors based on a Gray code sequence[9]. First, let be the set of 1D Hadamard basis vectors of -th order. can be constructed in a recursive way based on . Specifically, each vector generates two basis vectors in , which can be expressed as where denotes the concatenation of and . The initialization begins at . The iterated construction of in Eq. (2) can also be illustrated using a binary tree. Figure 2(a) shows an example of the construction of set . Each node at level represents a basis vector in . All the nodes at depth compose the set . Since can be 1 or , each in generates two unique in . It is observed from Fig. 2 that the branches of the tree are labeled with the values to create the child basis vector so that the value of the child node can be generated by concatenating the father node and the multiplication of and father node, as described in Eq. (2). Therefore, , called -index of , uniquely determines a basis vector in .
Figure 2.(a) Construction of 1D Hadamard basis vector set V(k) for k = 2. The corresponding α-index, bi (Gray code), and index of each vi in the set are shown below. (b) Construction of 2D Hadamard set P for k = 2. The bij of each Hadamard pattern pij is shown below each 2D pattern, and the number in parentheses denotes the natural order index Iij in the index matrix I.
It is noted that is an ordered set arranged according to the increasing order of the Gray code sequence, as shown in Fig. 2(b). Typically, Gray codes are represented by sequences of zeros and ones. Instead of using an -index to identify each pattern, a sequence is employed. To streamline the construction of the sequence , a direct method is used to determine the value of at the -th position in the set . This is achieved using the formulawhere denotes the binary XOR operation, and signifies the logical right shift operation. For instance, as shown in Fig. 2(a), to calculate the corresponding to at the third position in , one would apply the formula to compute the , resulting in .
We extend our consideration to two-dimensional Hadamard basis vectors. For the sake of brevity, all superscripts on variables are omitted in our discussion, with the understanding that the set and vectors considered are all under the -th order. Let denote the 2D Hadamard basis set of -th order. For any two elements and in , their outer product is an element of . is composed of all possible outer products of pairs of elements from the set. The construction process of can be expressed as
Figure 2(b) illuminates how to construct the set when . For example, can be obtained by when and . Similar to the definition of , the set of can be ordered in a 2D form as a matrix . Each element corresponds to a Hadamard pattern. Employing to represent the 2D Hadamard basis can be quite cumbersome. Here, we concatenate the Gray code sequence of and , to identify the at frequency coordinate . The -length binary can be interpreted as a binary number of length , which can be further converted into a decimal number, representing the location index of the pattern within a 1D natural order Hadamard pattern sequence[10]. Therefore we construct an index matrix to record location index of each of . can be computed as
For example, the of the pattern in position (2,1) is and 3 is the row number of in the natural order Hadamard matrix. The equation exists. When , . In Fig. 2(b), and are shown below each . This identification is crucial as we rearrange the detector sequence according to the natural order, enabling the use of a fast transform to accelerate the reconstruction of spectral data.
To achieve sub-sampling in spectral SPI, we aim to find an optimized pattern sequence within the 2D Hadamard pattern set . We utilize the Morton scanning path[11] to traverse to obtain the set of location indices for optimized patterns. In Fig. 3, the Morton scanning path to traverse the Hadamard frequency domain is illustrated. Instead of traversing the 2D distributed Hadamard basis pattern set , we traverse to construct an ordered set . For example, when . It is crucial to efficiently access and manipulate only the most significant frequency components. Morton scanning, by preserving spatial locality, allows for more efficient access to these critical components. Since the important frequency components (like low-frequency components in many images) are often spatially localized, Morton order ensures that these components are stored contiguously in SPI.
Figure 3.(a) Morton scanning path to traverse P(2). (b) Morton scanning path to traverse index matrix .
For SPI reconstruction under multi-band conditions, we employ a modified fast Walsh-Hadamard transform, termed HFWHT, to enhance the efficiency of spectral cube reconstruction. The details of HFWHT are shown in Fig. 4 and Algorithm 1. We initiate our process by applying zero-padding to the sub-sampling spectral data matrix , adjusting its size from to . is transformed to a measurement matrix in natural order according to . Subsequently, we perform addition and subtraction operations between the vectors in similar to the process of FWHT. This step effectively processes each row’s vectors, containing information across various spectral bands simultaneously. Such an approach facilitates parallel computing in practical programming, significantly reducing the need for writing loops for spectral channels.
Figure 4.(a) Original FWHT applied to a vector of length 8[12]. (b) HFWHT applied to the spectral data matrix YM to obtain X. Green lines indicate the elements involved in addition, while red lines indicate those involved in subtraction.
To evaluate the performance of the proposed strategy, we conducted numerical simulations using the CAVE spectral dataset[13]. The dataset consists of 32 spectral images of indoor scenes, with a spectral cube resolution of . The spectral channel ranges from 400 nm to 710 nm. We assessed the reconstruction quality of the spectral cube using two metrics: mean root mean squared error (MRMSE) and mean structural similarity index measure (MSSIM). These metrics were calculated as the mean values of the root mean squared error (RMSE) and the structural similarity index measure (SSIM)[14] of each spectral channel.
First, we compared the proposed strategy with the “Zigzag” scanning path and two unoptimized orderings, “Natural” and “Random,” as well as two optimized orderings, “Cakecutting”[7] and “Data”[15]. While the original work predominantly performed the analysis at a resolution of 128, our simulations were conducted at a resolution of 256. To ensure the generalizability and broader applicability, simulations were carried out on 32 distinct cubes from the dataset. MRMSE and MSSIM are calculated for each reconstructed cube. We conducted such comparative simulations at intervals of 2% in the range from 1% to 50% sampling rates. Graphical representations of both MRMSE and MSSIM metrics are plotted to illustrate these comparisons in Fig. 5. Additionally, the standard deviation across multiple cubes was also depicted in the form of error bars in Fig. 5.
Figure 5.(a), (b) Plots of MRMSE and MSSIM values with 10% vertical error bars for all 31 spectral cubes from the CAVE dataset. Compared strategies include “Morton,” “Natural,” “Random,” “Cakecutting,” “Data,” and “Zigzag.”
As observed in Fig. 5, Morton strategy consistently achieved the most optimal reconstruction results across various sampling rates in the simulations. “Zigzag” and “Cakecutting” emerged as relatively superior sampling strategies. Specifically, at a 25% sampling rate, “Zigzag” attained comparatively better reconstruction performance, while “Cakecutting” showed its relative strength at the same sampling rate. The performance of the “Data” was inferior, which may be attributed to the lack of strong similarity between the CAVE dataset and trained images. The unoptimized “Natural” and “Random” exhibited markedly poorer outcomes. Figure 6 presents a selection of the simulated reconstruction images from the aforementioned simulations, along with the corresponding MSSIM and MRMSE values. The figure displays pseudo-color images for three distinct cubes, reconstructed using four different sampling strategies at sampling rates of 2%, 10%, and 20%. The comparisons yield consistent conclusions. The Morton strategy obtains the best results, while “Zigzag” and “Data” achieve comparable outcomes, and “Natural” produces the least favorable results.
Figure 6.Comparison of (a) “Zigzag,” (b) “Morton,” (c) “Data,” and (d) “Natural” sampling strategies. Reconstructed pseudo-color images of three spectral cubes at sampling rates of 2%, 10%, and 20% are shown. For each restored image, the MSSIM and MRMSE values are given.
Next, we conduct the simulation of spectral cube reconstruction for a “balloons” cube under resolutions of , , , and . The sampling strategy consistently utilized is the Morton strategy. The computation time and MSSIM for different reconstruction strategies are shown in Tables 1 and 2. Reconstruction algorithms compared in this study encompass differential ghost imaging (DGI)[16], Fourier domain regularization inversion (FDRI)[17], and TVAL3[18]. It is observed that the reconstruction times for DGI, FDRI, and TV surge significantly as the spatial resolution increases. The simulations are conducted under full sampling. It is necessary to reconstruct each of the 32 spectral bands separately and then sum up the reconstruction times. On the other hand, HFWHT, as a parallel reconstruction method, directly computes the complete cube. From Tables 1 and 2, we can conclude that HFWHT significantly outperforms DGI, FDRI, and TVAL3 in reconstruction time across various spatial resolutions. Meanwhile, the reconstruction performance of HFWHT is not inferior to traditional compressed sensing algorithms.
Table 2. Comparison of the MSSIM for DGI, FDRI, TVAL3, and HFWHT
MSSIM
Method
32 × 32
64 × 64
128 × 128
256 × 256
DGI[16]
0.6966
0.8751
0.9832
0.7189
FDRI[17]
0.8001
0.8230
0.9786
–
TVAL3[18]
0.7939
0.8202
0.9801
0.9734
HFWHT
0.9494
0.9727
0.9689
0.9489
4. Experimental Results
In this section, we validate the proposed strategy through experiment. The experimental setup, as illustrated in Fig. 7, includes a supercontinuum laser source (LEUKOS ROCK 400, 400–2400 nm), a collimating lens, a collection lens, a spectrometer (Ocean Optics FLAME-S-UV-VIS, 350–1000 nm), and a DMD (ViALUX, 9501). After collimation, the laser light illuminates the Rubik cube, and the light field is imaged through a double Gaussian structure TV lens of diameter 16 mm and focal length 50 mm, and is then modulated by the DMD. The total light is focused by the collection lens and recorded by the spectrometer. The spectral resolution of the spectral imaging system, contingent on the spectrometer’s slit width, is 2 nm in the range of 420–780 nm. The integration time of the spectrometer is set to 10 ms, considering the synchronization requirements of the spectrometer and DMD. Prior to the experiment, we utilized the proposed strategy to generate 4096 patterns with a resolution of , reordered by the Morton scanning strategy, requiring a sampling time of 40.9 s. We obtained 181 spectral bands in the range of 420–780 nm. After processing the original spectrometer data, we obtained the measurement matrix . Subsequently, we employ HFWHT and TVAL3 to reconstruct the target under a sampling rate of 5%. The retrieved spectral cube of 181 channels, spanning the range of 420 nm to 780 nm, is amalgamated into pseudo-color images as shown in Fig. 8(b) utilizing a color-matching method[19]. The TVAL3 algorithm took 21 min, whereas HFWHT required only 0.41 s.
Figure 7.Experimental setup of the spectral single-pixel imaging system.
Figure 8.(a) Fused reconstructed pseudo-color images of specific spectral channel. (b) Fused RGB color image under sampling rate of 1%, 2%, 3%, 4%, and 5%. The cube reconstructed using TVAL3 is represented in the first row. The cube reconstructed using HFWHT is shown in the second row.
From the results displayed in Fig. 8, it is clearly evident that even at a 1% sampling rate, most of the original object’s image details can be reconstructed across all spectral bands. The low sampling rate undoubtedly leads to a significant increase in imaging efficiency. The primary reason for this is the suitability of our proposed Morton strategy for spectral SPI imaging scenarios at low sampling rates, as was prominently demonstrated in the simulations of the previous section. Next, we compare the effects of spectral reconstruction. The comparisons presented in Fig. 8 indicate that while the TVAL3 method achieves enhanced detail and reduced noise, HFWHT produces results that are not significantly inferior to TVAL3. This performance can be primarily attributed to the use of the Morton scanning strategy, whose properties are well-matched with the HFWHT reconstruction method. This advantage in reconstruction time becomes even more apparent with the increase in spectral bands and spatial resolution.
5. Conclusion
In conclusion, we propose a pipeline for efficient spectral SPI. To reduce sampling time, a strategy based on Morton scanning is incorporated within a 2D index matrix to produce a set of optimized Hadamard patterns at high spatial resolution. To facilitate efficiency in handling a substantial data volume, we leverage HFWHT to achieve spectral cube reconstruction, circumventing the need for handling extensive matrices. We demonstrate a spectral single-pixel imaging measurement system capable of capturing a spectral cube. When contrasted with traditional spectral single-pixel imaging methodologies, our imaging system demonstrates significantly lower sampling and reconstruction times. The sampling period is 40.9 s, while the reconstruction process is accomplished in 0.1 s. This reconstruction time represents an improvement of four orders of magnitude over conventional reconstruction methods. The sampling speed is predominantly constrained by the collection system, but can be increased through optimization of the data recording unit of the spectrometer. Furthermore, our strategy is applicable to other SPI modalities, 3D SPI for depth mapping, time-resolved SPI for fluorescence lifetime imaging, and so forth.
[19] M. Magnusson, J. Sigurdsson, S. E. Armansson et al. Creating RGB images from hyperspectral images using a color matching function. IGARSS 2020-2020 IEEE International Geoscience and Remote Sensing Symposium, 2045(2020).