---
title: Single-Pixel Coherent Diffraction Imaging
url: https://www.emergentmind.com/topics/single-pixel-coherent-diffraction-imaging-spi-cdi
type: topic
---

# Single-Pixel Coherent Diffraction Imaging

Single-pixel coherent diffraction imaging (SPI-CDI) is an imaging modality that enables full-field complex (amplitude and phase) object reconstruction using only a single-pixel detector in the far field, facilitated by sequential structured illumination. It circumvents the need for high-dynamic-range two-dimensional detector arrays intrinsic to conventional coherent diffraction imaging (CDI) by measuring only the DC (zero spatial frequency) component of modulated far-field diffraction patterns under binary mask illumination, and subsequently reconstructing the entire complex field via computational phase retrieval algorithms [2003.14237]. The technique operates across a wide spectral range—encompassing visible, infrared (IR), terahertz (THz), and potentially X-ray regimes—thereby broadening the application space of complex-field imaging.

## 1. Principles and Forward Model

In SPI-CDI, the object $O(x, y) \in \mathbb{C}$ is illuminated by a sequence of $M$ known binary modulation patterns $P_k(x, y)$, where each mask is typically a Bernoulli random array of 0s and 1s. For transmission-mode implementations under the Fraunhofer approximation, the modulated field after the object, $\psi_k(x, y) = P_k(x, y) O(x, y)$, propagates to the far field where a single-pixel detector records only the central (DC) intensity per mask. The $k$-th measurement is
\[
I_k = |F[P_k \odot O](0, 0)|^2 = \left| \sum_{i=1}^N \sum_{j=1}^N P_{k,ij} O_{ij} \right|^2 = |\langle P_k, O \rangle|^2,
\]
where $F[\cdot](0, 0)$ denotes the value of the 2D Fourier transform at the zero spatial frequency, $\odot$ stands for entry-wise multiplication, and $\langle\cdot, \cdot\rangle$ is the inner product over the $N \times N$ sampled object and mask arrays [2003.14237]. This reduces a high-dimensional diffraction measurement acquisition to a set of DC-only, single-pixel measurements across multiple patterns.

## 2. Binary Mask Design and Dynamic Range Considerations

SPI-CDI employs binary patterns, commonly generated by a digital micromirror device (DMD), to achieve statistical diversity and phase retrieval capability. Pattern sizes of $N = 64$ or $128$ (i.e., $64 \times 64$ or $128 \times 128$) and a sampling ratio $m = M/N^2 \approx 4$ are typical; for instance, $N=128$ gives $M=65536$ patterns per image [2003.14237]. In contrast to standard CDI, which requires the acquisition of full 2D diffraction patterns spanning $7$ to $11$ orders of magnitude in intensity (center-to-edge), SPI-CDI collects only DC components whose intensity spans are reduced to $\sim 10^2$, thus decreasing sensor dynamic range requirements by $5$–$9$ orders of magnitude. This attribute enables extension into wavelength regimes (e.g., IR, THz) where array detectors with high dynamic range are either unavailable or prohibitively expensive.

## 3. Phase Retrieval and Reconstruction Algorithm

SPI-CDI reconstructs $O$ by minimizing
\[
\mathcal{L}(O) = \sum_{k=1}^M \left| |\langle P_k, O \rangle|^2 - I_k \right|^2,
\]
a nonconvex intensity-matching loss across all measurements. Efficient solution is achieved via a complex-field alternating projection algorithm, a variant of Gerchberg–Saxton phase retrieval, as follows [2003.14237]:
  1. Compute $Y_k = P_k \odot O$;
  2. Fourier transform: $\hat{Y}_k = F\{Y_k\}$;
  3. Set $\hat{Y}_k'(0, 0) = \sqrt{I_k} e^{j \arg \hat{Y}_k(0, 0)}$ and leave other frequencies unchanged;
  4. Inverse transform: $Y_k' = F^{-1}\{\hat{Y}_k'\}$;
  5. Update $O \leftarrow O + \alpha \frac{P_k^* \odot (Y_k' - Y_k)}{\max_{i,j}|P_k(i,j)|^2}$, with step size $\alpha \simeq 0.5$.

No object support or nonnegativity constraint is imposed; the sequence of binary patterns fully lifts the phase ambiguity. Typically, 200–400 passes through all $M$ patterns suffice for convergence.

## 4. Experimental Implementation and Quantitative Performance

A typical SPI-CDI setup includes a collimated laser source (e.g., 488 nm or 980 nm), a DMD to modulate the incident field with binary masks, the object under test, and a single-pixel detector (avalanche photodiode preceded by a $5$ $\mu$m pinhole) for DC-only detection in the far field (object-to-detector distances of $1$–$5$ m are used) [2003.14237]. Representative samples include calibrated etched glass phase targets and biological specimens. Phase calibration is achieved by acquiring a reference measurement with a plane glass in place of the sample and subtracting the resulting phase map.

Quantitative metrics achieved include:
- Phase standard deviation $\lesssim 0.05$ rad; phase depth resolution after unwrapping $\lesssim 10$ nm.
- Lateral resolution set by the pattern and optics (e.g., $0.39$ $\mu$m pixel size for red-blood-cell imaging).
- Robustness to noise: $>25$ dB PSNR at measurement SNR as low as $20$ dB.
- Acquisition times: $\sim 0.7$ s for $N=64$, $\sim 3$ s for $N=128$ at $22$ kHz pattern rates.
- Computational costs: $O(MN^2 \log N^2)$, with total runtime in the tens of seconds on commodity GPUs.

## 5. Extension: Homodyne and Single-Pixel Digital "Ghost" Holography

Traditional SPI-CDI measures intensity-only DC projections, requiring iterative phase-retrieval. By contrast, single-pixel digital “ghost” holography (DGH) integrates homodyne detection via a Mach–Zehnder interferometer and phase-shifting to access the cross-term $E_{\mathrm{ref}}^* E_{\mathrm{obj},i}$ per pattern directly [1305.7069]. Here, the complex field between a reference and the object-modulated arm is encoded through phase-shifted measurements and recovered by correlating the measured homodyne signals $\Delta B_i$ with computed intensity patterns. The cross-correlation
\[
G(r_2) = \langle \Delta B_i \cdot \Delta I_i(r_2) \rangle_i
\]
is proportional to the Fourier transform of $t(r)$, the object’s complex transmission. In this scheme, iterative phase retrieval is obviated; the Fourier amplitude and phase are recovered directly, increasing SNR and potentially reducing acquisition and computational overhead [1305.7069].

## 6. Advantages, Limitations, and Future Prospects

### Advantages:
- Eliminates the need for high-dynamic-range or large-format 2D array detectors; robust operation across visible, NIR, THz, and X-ray regimes [2003.14237].
- No mechanical scanning or explicit object support required.
- Quantitative complex-field recovery (amplitude and phase), enabling downstream digital refocusing, DIC, and three-dimensional profiling.
- Homodyne (DGH) variants provide nanometric depth sensitivity, three-dimensional focusing by digital propagation, and SNR scaling linearly with pattern number [1305.7069].

### Limitations:
- Acquisition time increases with $M = 4N^2$, necessitating high-speed spatial modulators for practical imaging rates.
- Computational effort can be significant for large $N$ or high pattern counts.
- Spatial resolution limited by mask size and optical setup (e.g., speckle size in DGH).
- Requires phase stability (in interferometric adaptations), and pattern diversity for robust phase retrieval.
- No support or nonnegativity constraints required; however, compressive acquisition and postprocessing can further reduce $M$ [2003.14237].

### Prospective Developments:
- Multi-pixel detector arrays (e.g., SPAD arrays) could sample multiple spatial-frequency components per shot, reducing total pattern count linearly [2003.14237].
- Compressive sensing and prior-based algorithms (e.g., sparsity, total-variation regularization) for improved efficiency and noise resilience.
- Adaptations to reflection-mode and passive-illumination for surface metrology, remote sensing, and 3D holographic refocusing [2003.14237].

## 7. Applications

SPI-CDI has been demonstrated and prospectively targeted for:
- Quantitative phase imaging in life sciences (cell morphology, tissue histology, digital DIC).
- Thin-film and nanostructure depth metrology.
- Non-destructive testing and concealed-object detection in the THz regime.
- High-precision surface profiling in semiconductor and photonics manufacturing [2003.14237].

A plausible implication is that integration of DGH-based homodyne measurement strategies within SPI-CDI could further expand its reach to wavelengths or experimental geometries where array detection is impractical and phase stability is achievable [1305.7069].

Source: https://www.emergentmind.com/topics/single-pixel-coherent-diffraction-imaging-spi-cdi