Code and data for: Dynamic Coherent Diffractive Imaging Using Only a Support Constraint in the Complex Plane
Authors/Creators
Description
This repository contains the MATLAB implementation and data accompanying the paper:
Y. Tian, T. Tsuchiya, Y.-C. K. Chen-Wiegart, H. D. Espinosa, Y. Kunai, and G. Barbastathis, "Dynamic Coherent Diffractive Imaging Using Only a Support Constraint in the Complex Plane," 2026. DOI: [to be added upon publication]
Overview
We reconstruct the time-varying phase of a transparent dynamic sample from a movie of near-field diffraction intensities, using only a bounded circular-sector support constraint on the inter-frame field update factor in the complex plane. No spatial regularizer, motion model, or training data is required.
The included demo reproduces the results from a reaction–diffusion SLM experiment (Fig. 4 of the paper), in which a Gray–Scott reaction–diffusion phase pattern with spatially expanding extent is reconstructed from its diffraction movie.
Requirements
- MATLAB R2021a or later
Quick start
Download the folder, and then in the folder "code", run: A_EXP_reactionCameraman_sequential.m
This script loads the diffraction movie from `data/`, runs Stage 1 (probe reconstruction) followed by Stage 2 (forward and backward inter-frame passes), and saves the reconstructed phase trajectory and figures to `figures/EXP-reactionCameraman-sequential/`.
Repository structure
```
dynamic-CDI/
├── code/
│ ├── A_EXP_reactionCameraman_sequential.m — main script (reproduces Fig. 4)
│ └── auxiliary_functions/ — projection operators and utilities
├── data/
│ └── experiment-reactionCameraman-smallPhase.mat — diffraction movie and ground truth
└── figures/
└── EXP-reactionCameraman-sequential/ — output directory (generated by script)
```
Data format
The `.mat` file contains the following variables:
| Variable | Description |
|---|---|
| `I_xyt` | Measured diffraction intensity movie, size N × N × J |
License
MIT License. See `LICENSE` for details.