- MATLAB 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| imgs | ||
| SPIFFI_code | ||
| LICENSE | ||
| README.md | ||
SPIFFI
Spatial Polarization-Induced Fluorescence Fluctuation Imaging
Single-shot super-resolution and multidimensional fluorescence microscopy
SPIFFI is a MATLAB implementation of Spatial Polarization-Induced Fluorescence Fluctuation Imaging, a computational super-resolution technique that exploits spatial fluorescence fluctuations induced by a polarization detection to achieve super-resolution from a single snapshot. SPIFFI also enables simultaneous extraction of fluorophore orientation (in-plane angle and degree of linear polarization).
This repository accompanies the manuscript:
"SPIFFI enables single-shot super-resolution and multidimensional imaging"
Wei Guo, Lely Feletti, Aleksandra Radenovic.
Laboratory of Nanoscale Biology (LBEN), École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland. Nature Methods (2026). DOI: 10.1038/s41592-026-03196-6
Overview
Conventional fluorescence fluctuation methods require many frames to accumulate temporal intensity fluctuations. SPIFFI instead uses a linear polarization filtering strategy in the emission optical path — which simultaneously captures four polarization channels (0°, 45°, 90°, 135°) in a single exposure, and inherently yields a narrower effective PSF in each channel. These polarization-induced spatial fluctuations serve as the input to autocorrelation analysis, delivering super-resolution from a single snapshot.
Key capabilities:
- Single-shot super-resolution — one raw polarization image → 1.7–2× resolution improvement over widefield
- Two-stage super-resolution — combine spatial (SPIFFI) and temporal (SOFI) fluctuations for higher resolution gains
- Orientation imaging — simultaneous retrieval of fluorophore dipole angle and degree of linear polarization (DoLP)
- Drift correction — built-in sub-pixel drift estimation and correction for time-lapse datasets
Resolving Molecules Within the Diffraction Limit by Polarization
In these examples, two molecules are separated by 150 nm (within the diffraction limit) and carry in-plane azimuthal angles of 90° and 0°, respectively.
Fixed dipoles — polarization detection resolves two molecules separated within the diffraction limit
![]() |
![]() |
Strongly wobbling dipoles — polarization detection remains effective even under severe (±60°) wobbling
![]() |
![]() |
Three Reconstruction Modes
| Mode | Script | Input | Output |
|---|---|---|---|
| Single-shot | SPIFFI_main_singleshot.m |
1 frame × 4 polarization channels | Super-resolved image |
| Two-stage | SPIFFI_main_twostage.m |
N frames × 4 channels | SPIFFI per frame → SOFI → ultra-SR image |
| Orientation | SPIFFI_main_orientation.m |
1 frame × 4 channels | dipole angle map + DoLP map |
System Requirements
- MATLAB R2020b or later
- Image Processing Toolbox (required)
- Signal Processing Toolbox (required)
- Parallel Computing Toolbox (optional — recommended for two-stage mode
parforloop) - Operating system: Windows 10/11 (tested)
Quick Start
1. Clone or download
% In MATLAB, navigate to the SPIFFI folder, then:
addpath(genpath('./SPIFFIutils'))
2. Run a demo
Single-shot super-resolution (microtubules):
run SPIFFI_main_singleshot.m
Two-stage super-resolution (80 nm DNA nanorulers):
run SPIFFI_main_twostage.m
Orientation imaging (GUVs):
run SPIFFI_main_orientation.m
Each script loads the bundled demo data from SPIFFIdata/ and displays a comparison figure.
Demo Results
Single-shot: microtubules
Two-stage: 80 nm DNA nanorulers (SMLM vs SPIFFI + SOFI)
Orientation: GUVs — dipole angle and DoLP
Citation
If SPIFFI contributed to your work, please cite:
@article{guo2026spiffi,
title = {SPIFFI enables single-shot super-resolution and multidimensional imaging},
author = {Wei Guo, Lely Feletti, Aleksandra Radenovic},
journal = {Nature Methods},
year = {2026},
doi = {10.1038/s41592-026-03196-6}
}
License
SPIFFI is released under the GNU General Public License v3.0. See LICENSE.txt for details.
Contact
For questions, bug reports, or suggestions, please open a GitHub issue or contact:
Wei Guo — EPFL
wei.guo@epfl.ch



