ZenReg: A modular Python platform for fast and memory-efficient N-dimensional microscopy image registration
Musacchio, F.; Fuhrmann, M.
Show abstract
Motion artifacts are almost unavoidable in functional time-lapse and structural volumetric multiphoton microscopy. They arise from respiration, heartbeat, locomotion, awake behavior, instrument heating, mechanical vibration, and slow drift, while the recorded signal is often photon-limited, blurred by scattering, and biologically time varying. Consequently, motion correction is frequently an essential prerequisite for quantitative bioimage analysis rather than a merely cosmetic preprocessing operation. Edge- and landmark-centric registration strategies are often poorly matched to these data because useful structures may be sparse, diffuse, out-of-focus, or changing in fluorescence intensity. We present ZenReg, an open-source Python platform that formulates common 2D+t, 3D, and 3D+t microscopy registration tasks as a modular family of geometry-preserving alignment problems. ZenReg combines Fourier phase correlation, intensity-based StackReg-style alignment, NoRMCorre-style piecewise translation fields, projection-based rotation estimates, dense SimpleITK-based six-degree-of-freedom volume registration, and sparse point-based rigid-volume registration within one canonical microscopy stack model. The platform uses OMIO to normalize heterogeneous microscope files and to preserve metadata, while optional disk-backed Zarr arrays support chunked, memory-efficient processing of image stacks that exceed available memory or reside on remote storage. ZenReg writes registered images together with shift tables, correlation metrics, summary plots, and machine-readable settings. In synthetic benchmarks with known ground truth, ZenReg recovered global 2D and 3D translations with subpixel accuracy across moderate noise and drift regimes, while high-noise and large-drift tests separated the backend behavior: FFT-based methods failed abruptly once image information or shared support became insufficient, StackReg degraded more gradually under severe noise, and piecewise NoRMCorre improved spatially varying local-motion correction where a single global transform was inadequate. Parallel execution reduced runtime for large time series, and ZenReg provided practical full-volume rigid correction for dense and puncta-rich 3D+t stacks. By coupling a modular, extensible backend architecture to transparent sidecar outputs, ZenReg makes motion correction easier to extend, inspect, share, reproduce, and reuse as part of scientific image analysis.
Matching journals
The top 1 journal accounts for 50% of the predicted probability mass.
Similar papers in this journal
- VesiclePy: A Machine Learning Vesicle Analysis Toolbox for Volume Electron Microscopy 96%
- Synthetic data enables human-grade microtubule analysis with foundation models for segmentation 94%
- DeepMIB: User-friendly and open-source software for training of deep learning network for biological image segmentation 94%
Similar papers in this journal
Similar papers in this journal
- SMART: An open source extension of WholeBrain for iDISCO+ LSFM intact mouse brain registration and segmentation 92%
- Bell Jar: A Semi-Automated Registration and Cell Counting Tool for Mouse Neurohistology Analysis 92%
- An automated approach to improve the speed and accuracy of pericyte and microglia quantification in whole mouse brain sections 91%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.