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.

- Chinese Optics Letters
- Vol. 22, Issue 6, 060003 (2024)
Abstract
1. Introduction
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
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.
Sign up for Chinese Optics Letters TOC. Get the latest issue of Chinese Optics Letters delivered right to you!Sign up now
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
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
Figure 2.(a) Construction of 1D Hadamard basis vector set V(k) for k = 2. The corresponding α-index,
It is noted that
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
Figure 2(b) illuminates how to construct the set
For example, the
To achieve sub-sampling in spectral SPI, we aim to find an optimized pattern sequence within the 2D Hadamard pattern set
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
Figure 4.(a) Original FWHT applied to a vector of length 8[
1: |
2: |
3: |
4: |
5: |
6: |
7: |
8: |
9: |
10: |
11: |
12: |
13: |
14: |
15: |
16: |
17: |
18: |
|
Table 1. HFWHT
3. Simulation Results
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
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
1: |
2: |
3: |
4: |
5: |
6: |
7: |
8: |
9: |
10: |
11: |
12: |
13: |
14: |
15: |
16: |
17: |
18: |
|
Table 1. HFWHT
MSSIM | ||||
---|---|---|---|---|
Method | 32 × 32 | 64 × 64 | 128 × 128 | 256 × 256 |
DGI[ | 0.6966 | 0.8751 | 0.9832 | 0.7189 |
FDRI[ | 0.8001 | 0.8230 | 0.9786 | – |
TVAL3[ | 0.7939 | 0.8202 | 0.9801 | 0.9734 |
Table 2. Comparison of the MSSIM for DGI, FDRI, TVAL3, and HFWHT
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
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
References
[10] A. Aung, B. P. Ng. Natural-ordered complex Hadamard transform. Signal Process., 90, 874(2010).
[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).

Set citation alerts for the article
Please enter your email address