ScanImage: Flexible software for operating laser scanning microscopes

Thomas A. Pologruto, Bernardo L. Sabatini, Karel SvobodaBioMedical 2003

Abstract

ScanImage is an open-source, MATLAB-based software package designed to operate custom-built laser scanning microscopes (LSMs). By leveraging standard data acquisition hardware and shifting signal processing tasks to the host computer's CPU, ScanImage provides a flexible, transparent, and cost-effective alternative to rigid commercial "black box" systems.

Introduction

Laser scanning microscopy (LSM) is a cornerstone of biological imaging, yet researchers often encounter significant limitations with commercial systems. These systems are typically closed-source and rely on proprietary, expensive hardware, making it difficult to implement custom scanning patterns, specialized triggers, or novel data acquisition routines. Building a custom microscope from scratch is equally daunting due to the complexity of synchronizing high-speed laser mirror control with nanosecond-scale data acquisition. ScanImage addresses this "software barrier" by providing a flexible framework that runs on standard PCs and generic data acquisition (DAQ) boards.

Methods

The core innovation of ScanImage is its software-centric architecture. Traditionally, LSMs required dedicated Digital Signal Processors (DSPs) or analog integrators to handle the massive stream of data from photomultiplier tubes (PMTs). ScanImage instead places this burden entirely on the host computer's CPU.

The system utilizes standard multifunction boards, such as the National Instruments PCI 6110, to generate analog waveforms for scanning mirrors and to digitize incoming signals. To form pixels, the software sums the digitized PMT voltage over specific "pixel times." A "striping algorithm" is employed to maintain a high-speed display refresh by processing and displaying small segments of the image as they are acquired, rather than waiting for a full frame to complete.

The wiring diagram (A) shows how a standard PC and DAQ board control all microscope components, while the performance chart (B) benchmarks real-time capabilities across different resolutions.

Key Insights and Ideas

A central finding of this work is that standard desktop CPUs are sufficiently powerful to replace specialized DSP hardware for real-time microscope control and signal processing. The researchers introduced the metric of Apparent Quantum Efficiency ($\hat{\eta}$) to quantify how well their digital sampling approach recovers the original signal compared to an ideal analog integrator. They found that with a high enough sampling rate (e.g., 1.25 MHz), the software approach is nearly as efficient as specialized hardware.

Schematic of the image construction algorithm, showing how raw PMT voltage traces are integrated over time to form individual pixels.

Results

Performance evaluation on an 800 MHz Pentium III PC demonstrated that ScanImage can successfully acquire and display three channels simultaneously in real-time at standard resolutions (e.g., 256x256 pixels). The system achieved near-ideal signal recovery ($\hat{\eta} \approx 1$) under typical biological imaging conditions. Furthermore, "pixel bleedthrough"—the leakage of signal between adjacent pixels—was measured at approximately 10% for fast 3 µs pixels, decreasing significantly as pixel time increases, ensuring high spatial resolution.

Discussion and Limitations

While ScanImage offers significant flexibility, it was initially limited by the hardware bottlenecks of its era, specifically computer bus speeds and DAQ sampling rates. However, the software architecture is designed to scale naturally with improvements in CPU power and bus bandwidth. By making the code open-source and modular, ScanImage serves as a community-driven platform for the rapid implementation of new imaging modalities, such as custom regions of interest or automated 3D stacks.

Summary updated

BibTeX
@inproceedings{pologruto2003scanimage,
  author = {Thomas A. Pologruto and Bernardo L. Sabatini and Karel Svoboda},
  title = {{ScanImage: Flexible software for operating laser scanning microscopes}},
  booktitle = {BioMedical},
  year = {2003},
  doi = {10.1186/1475-925x-2-13},
}
Figure