Related Experiment Video
Updated: Jul 9, 2026

Automated Analysis of Dynamic Ca2+ Signals in Image Sequences
Published on: June 16, 2014
A simple MATLAB toolbox for analyzing calcium imaging data in vitro and in vivo
Niraj S Desai1, Chongbo Zhong1, Ronald Kim2
1Circuits, Synapses, and Molecular Signaling Section, National Institute of Neurological Disorders and Stroke, National Institutes of Health, Bethesda, MD 90892, USA.
Background:
Fluorescence imaging of calcium dynamics in neuronal populations is powerful because it offers a way of relating the activity of individual cells to the broader population of nearby cells. The method's growth across neuroscience has particularly been driven by the introduction of sophisticated mathematical techniques related to motion correction, image registration, cell detection, spike estimation, and population characterization. However, for many researchers, making good use of these techniques has been difficult because they have been devised by different workers and impose differing - and sometimes stringent - technical requirements on those who seek to use them.
New Method:
We have built a simple toolbox of analysis routines that encompass the complete workflow for analyzing calcium imaging data. The workflow begins with preprocessing of data, includes motion correction and longitudinal image registration, detects active cells using constrained non-negative matrix factorization, and offers multiple options for estimating spike times and characterizing population activity. The routines can be navigated through a simple graphical user interface. Although written in MATLAB, a standalone version for researchers who do not have access to MATLAB is included.
Results:
We have used the toolbox on two very different preparations: spontaneously active brain slices and microendoscopic imaging from deep structures in awake behaving mice. In both cases, the toolbox offered a seamless flow from raw data all the way through to prepared graphs.
Conclusion:
The field of calcium imaging has benefited from the development of numerous innovative mathematical techniques. Here we offer a simple toolbox that allows ordinary researchers to fully exploit these techniques.
Related Concept Videos
Performing a Simple Data Analysis using MS-Excel Function
SUM: This function calculates the total sum of a range of values. It's the foundation for aggregating data, essential for determining overall trends and totals in datasets.
AVERAGE: It computes the mean value of a given set of numbers, providing a quick insight into the central...
Introduction to MATLAB

