» Articles » PMID: 28782629

NoRMCorre: An Online Algorithm for Piecewise Rigid Motion Correction of Calcium Imaging Data

Overview
Specialty Neurology
Date 2017 Aug 8
PMID 28782629
Citations 385
Authors
Affiliations
Soon will be listed here.
Abstract

Background: Motion correction is a challenging pre-processing problem that arises early in the analysis pipeline of calcium imaging data sequences. The motion artifacts in two-photon microscopy recordings can be non-rigid, arising from the finite time of raster scanning and non-uniform deformations of the brain medium.

New Method: We introduce an algorithm for fast Non-Rigid Motion Correction (NoRMCorre) based on template matching. NoRMCorre operates by splitting the field of view (FOV) into overlapping spatial patches along all directions. The patches are registered at a sub-pixel resolution for rigid translation against a regularly updated template. The estimated alignments are subsequently up-sampled to create a smooth motion field for each frame that can efficiently approximate non-rigid artifacts in a piecewise-rigid manner.

Existing Methods: Existing approaches either do not scale well in terms of computational performance or are targeted to non-rigid artifacts arising just from the finite speed of raster scanning, and thus cannot correct for non-rigid motion observable in datasets from a large FOV.

Results: NoRMCorre can be run in an online mode resulting in comparable to or even faster than real time motion registration of streaming data. We evaluate its performance with simple yet intuitive metrics and compare against other non-rigid registration methods on simulated data and in vivo two-photon calcium imaging datasets. Open source Matlab and Python code is also made available.

Conclusions: The proposed method and accompanying code can be useful for solving large scale image registration problems in calcium imaging, especially in the presence of non-rigid deformations.

Citing Articles

DREDge: robust motion correction for high-density extracellular recordings across species.

Windolf C, Yu H, Paulk A, Meszena D, Munoz W, Boussard J Nat Methods. 2025; .

PMID: 40050699 DOI: 10.1038/s41592-025-02614-5.


Cortical representations of affective pain shape empathic fear in male mice.

Choi J, Lee Y, So D, Kim J, Choi S, Kim S Nat Commun. 2025; 16(1):1937.

PMID: 39994222 PMC: 11850870. DOI: 10.1038/s41467-025-57230-w.


Transparent, flexible graphene-ITO-based neural microelectrodes for simultaneous electrophysiology recording and calcium imaging of intracortical neural activity in freely moving mice.

Yuan M, Li F, Xue F, Wang Y, Li B, Tang R Microsyst Nanoeng. 2025; 11(1):32.

PMID: 39994180 PMC: 11850855. DOI: 10.1038/s41378-025-00873-y.


Circuit-Based Understanding of Fine Spatial Scale Clustering of Orientation Tuning in Mouse Visual Cortex.

Yu P, Yang Y, Gozel O, Oldenburg I, Dipoppa M, Rossi L bioRxiv. 2025; .

PMID: 39990306 PMC: 11844487. DOI: 10.1101/2025.02.11.637768.


A Sensitive Soma-localized Red Fluorescent Calcium Indicator for Multi-Modality Imaging of Neuronal Populations In Vivo.

Zhou S, Zhu Q, Eom M, Fang S, Subach O, Ran C bioRxiv. 2025; .

PMID: 39975286 PMC: 11838422. DOI: 10.1101/2025.01.31.635851.