Single Pixel Imaging and Compressive Sensing: A Practical Tutorial
Dennis Scheidt
TL;DR
This paper addresses image reconstruction in Single Pixel Imaging (SPI) using a bucket detector by encoding the illumination with measurement bases and applying compressive sensing (CS) and deep learning (DL) to reduce data and enable faster imaging. It presents both deterministic CS (Basis Pursuit via SPGL1) and DL (a linear network) reconstruction pipelines, detailing the experimental setup with DMD/SLM devices and the measurement models $y = \boldsymbol{\uPhi} x$ and $\Theta = \boldsymbol{\uPhi} \Psi$. The authors compare the influence of basis choice (canonical, Hadamard, Walsh, cake-cutting, random Gaussian) and reconstruction algorithms on reconstruction quality (RMSE, PSNR, SSIM), showing Hadamard–Walsh often optimizes performance for deterministic CS, while random Gaussian measurements paired with a linear network can outperform others at low compression. They emphasize reproducibility through Python notebooks and demonstrate results on CIFAR-10 data and a 32×32 image, highlighting practical guidance for choosing bases and algorithms in SPI applications. The work advances practical SPI by offering concrete guidance on measurement bases, reconstruction methods, and training strategies for real-time or in vivo imaging across wavelengths where conventional sensors are limited.
Abstract
Single Pixel Imaging is an emerging imaging technique that employs a bucket detector (photodiode) to sample a spatially modulated light field, rather than measuring the spatial distribution with an array of detectors. This approach provides a low-cost alternative for imaging at unconventional wavelengths and enables improved signal collection in noisy measurement environments. Furthermore, it allows the application of compressive sensing to reduce the amount of acquired data and measurement time, facilitating live or in vivo imaging applications. This tutorial presents the experimental implementation of measurement bases and compressive sensing reconstruction methods, including both deterministic algorithms and deep learning approaches. Accompanying Python notebooks guide readers through the reproduction of the presented results and support the application of the methods to their own work.
