Next Article in Journal
Neutron Imaging at LANSCE—From Cold to Ultrafast
Previous Article in Journal
Benchmarking of Document Image Analysis Tasks for Palm Leaf Manuscripts from Southeast Asia
Article Menu
Issue 2 (February) cover image

Export Article

Journal of Imaging 2018, 4(2), 44; doi:10.3390/jimaging4020044

Short Note
HF_IDS_Cam: Fast Video Capture with ImageJ for Real-Time Analysis
CNRS ERL 7368, Signalisation et Transports Ioniques Membranaires, Equipe Physiologie des Cellules Cardiaques et Vasculaires, Université François-Rabelais, 37200 Tours, France
Author to whom correspondence should be addressed.
Received: 18 December 2017 / Accepted: 21 February 2018 / Published: 23 February 2018


Fast online video analysis is currently a key issue for dynamic studies in biology; however, very few tools are available for these concerns. Here we present an ImageJ plug-in: HF_IDS_Cam, which allows for video capture at very high speeds using IDS (Imaging Development Systems GmbH) cameras and image analysis software ImageJ. The software has been optimized for real time video analysis with ImageJ native function and other plug-ins and scripts. The plug-in was written in Java and requires ImageJ 1.47v or higher. HF_IDS_Cam offers a wide range of applications for exploration of dynamic phenomena in biology, from in vitro/ex vivo studies, such as fast fluorescent calcium imaging and voltage optical mapping in cardiac myocytes and neurons, to in-vivo behavioral studies.
video acquisition; online video analysis; ImageJ plug-in

1. Introduction

The evolution of video cameras, especially the transition from analog to digital, allowed for a large increase in acquisition frame rates. In a decade, the latter increased from 50–60 frames per second (fps) to above 1000 fps at high resolution. The field of biology has greatly benefited from this development, and the use of such fast cameras is now essential. However, recording speed remains a key issue in studying fast dynamic phenomena. The most concerned research fields certainly are cardiology and neurology, both using fluorescence microscopy to follow the spread of action potentials and fast variations of ionic concentrations in tissues. The kinetic of such phenomena is about tens of milliseconds, but experiments often require several minutes of video recording. Thus, a common problem is the storage of these heavy videos files. An alternative to storage and offline processing is the real-time analysis of the video flow. The well-known image analysis software ImageJ [1] is very effective in this use.
Micromanager software [2], based on ImageJ libraries made video acquisition from a wide range of digital video cameras possible. However, its efficiency is limited for high-speed video acquisitions (e.g., recording speed indication are not always reliable and subsampling modes are not managed, which limits camera speed performances). Therefore, in order to combine fast video recording, analytical power, and ease of use, we developed HF_IDS_Cam, an ImageJ/µManager plugin for video capture from cost-effective and high-performance IDS (Imaging Development Systems) video cameras. HF_IDS_Cam, written in Java, allows for video acquisition at high spatial and tonal resolutions, from low to very high frame rates (above 1000 fps), thus allowing for a very wide range of biological applications and studies (neurodegenerative diseases, cardiac arrhythmias, animal or cell tracking, plants growth, etc.). Moreover, it has been designed to communicate through a serial port to synchronize the camera with other devices (electric stimulators, fast switch perfusion systems, lasers, etc.)

2. Materials and Methods

The plug-in for ImageJ was designed to use the drivers from IDS. The Software-Development-Kit (SDK) of the camera only supports C++. However, plug-ins for ImageJ must be developed in Java, so JNA-4.2.1 libraries were used for the communication between the plug-in and the SDK. With Java, code can be developed so that it is independent of the platform and directly compatible with 32 bit and 64 bit operating systems. The general workflow of the HF_IDS_Cam is presented in Figure 1.

3. Results

3.1. Image Acquisition Features and Outputs

The video flow from the camera is directly displayed in ImageJ. As shown in Figure 1, the camera must be selected at program start. At the same time, a log window supplies pieces of information about the camera and its initialization. A dialog box opens, allowing the user to define pixel size and select pixel depth—up to 16 bit—to record fluorescence signals. The user can also use binning and subsampling modes if the camera is compatible. Binning modes allow the user to decrease spatial resolution to increase the maximum acquisition frame rate and the signal amplitude. The subsampling mode can be used to decrease the spatial resolution of the image to reduce its size. Through this dialog box, serial ports can be activated to capture synchronization, and analog signals can be input from other devices (see online information to capture trigger signal at The video flow is then displayed in a traditional ImageJ window. The control panel allows for modification of several parameters of video capture, including signal gain, frame rate, pixel clock, exposure time, brightness, AOI size, and position. Selection of an AOI allows for the limitation of the video reading area so that the frame rate can be increased and the amount of data recorded can be decreased. Size and position adjustment of the AOI are possible during video capture. More detailed explanations of each control are provided in the user guide available online at

3.2. Real-Time Video Analysis

During video acquisition, all ImageJ native functions can be used to make manual analysis (e.g., pixel value calibration, thresholding, contrast and brightness adjustments, lookup tables, and pseudo colors, real-time computing of histogram, line profiles, and image calculation). Moreover, the video capture by the HF_IDS_Cam is fully multi-threaded, taking advantage of multicore CPUs, which is useful for the simultaneous analysis of the video by scripts or another ImageJ plug-ins. For instance, the presented method has been successfully used to record contraction of stimulated cardiac myocytes at a sampling rate of 900 Hz with the IDS UI-1220 video camera [3]. HF_IDS_Cam has been developed in order to facilitate the synchronization of scripts or macros with each incoming image of the video flow. For that, when a new image is sent by the camera, a value is modified in the IJPrefs file of ImageJ. The expected analysis can thus be performed only one time for each frame, avoiding CPU overload. The approximate CPU (Intel Xeon E3-1241) consumption for a video (1936 × 136 pixel) acquisition at 1000 Hz is 20%, thus leaving 80% of resources for real-time analysis. A more detailed explanation and tips for writing macros and easily synchronizing them with video acquisition are provided online in the user guide.

3.3. Synchronizations

The interfacing with serial ports also allows for the easy interaction of analysis with input synchronization and analog signal from other devices (Figure 2). When a synchronization signal arrives on the serial port, the pending image is tagged and one or several actions can be executed by macro. For example, as shown in Figure 2, on each synchronization signal, the mean fluorescence of the rectangular selection is recorded for one second and plotted versus time. The code used to generate the results of Figure 2 is available in a Github repository (

4. Limitations and Conclusions

Herein, the described software simplifies simple video analysis with ImageJ native functions and more elaborated analysis with macros, scripts, and plug-ins. Even though this HF_IDS_Cam works under MacOS, the drivers for IDS cameras have been developed only for Windows and Linux, which restricts its use to these two operating systems. However, it is useful for all researchers working with video flows or images, and for teachers and students learning video signal processing and analysis, as it provides a cost-effective solution.

Supplementary Materials

Supplementary material is available online at, Video S1: Example of online video analysis of fast calcium oscillations in a cardiac myocyte electrically stimulated; Offline_analysis_macro_example.ijm; Online_analysis_macro_example.ijm; user_guide_HF_IDS_Cam.pdf.


This work was founded by the University Francois-Rabelais of Tours. We thank Imaging Development Systems (IDS France) for providing us the UI−3060CP camera.

Author Contributions

C.P. and F.G. conceived and designed the experiments; F.G. performed the experiments; C.P. wrote the paper; P.B. and V.M. edited and revised the manuscript.

Conflicts of Interest

The authors declare no conflict of interest.


  1. Schneider, C.A.; Rasband, W.S.; Eliceiri, K.W. NIH Image to ImageJ: 25 years of image analysis. Nat. Methods 2012, 9, 671–675. [Google Scholar] [CrossRef] [PubMed]
  2. Edelstein, A.D.; Tsuchida, M.A.; Amodaj, N.; Pinkard, H.; Vale, R.D.; Stuurman, N. Advanced methods of microscope control using μManager software. J. Biol. Methods 2014, 1, e10. [Google Scholar] [CrossRef] [PubMed]
  3. Pasqualin, C.; Gannier, F.; Yu, A.; Malécot, C.O.; Bredeloux, P.; Maupoil, V. SarcOptiM for ImageJ: high-frequency online sarcomere length computing on stimulated cardiomyocytes. Am. J. Physiol.-Cell Physiol. 2016, 311, C277–C283. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Flow diagram of HF_IDS_Cam plug-in.
Figure 1. Flow diagram of HF_IDS_Cam plug-in.
Jimaging 04 00044 g001
Figure 2. Example of online video analysis of fast calcium oscillations in a cardiac myocyte electrically stimulated. This type of analysis enables, for example, real-time measurement of the calcium transient features (e.g., amplitude, duration, rise, and decay time), so the effects of drugs can be directly observed and recorded without having to wait for the end of the experiment. It also avoids having to record the video signal for the entire duration of the experiment.
Figure 2. Example of online video analysis of fast calcium oscillations in a cardiac myocyte electrically stimulated. This type of analysis enables, for example, real-time measurement of the calcium transient features (e.g., amplitude, duration, rise, and decay time), so the effects of drugs can be directly observed and recorded without having to wait for the end of the experiment. It also avoids having to record the video signal for the entire duration of the experiment.
Jimaging 04 00044 g002

© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (
J. Imaging EISSN 2313-433X Published by MDPI AG, Basel, Switzerland RSS E-Mail Table of Contents Alert
Back to Top