Royal Society Open ScienceBioinformaticsPeer-reviewed journal article
Multithreaded two-pass connected components labelling and particle analysis in ImageJ
Abstract
Sequential region labelling, also known as connected components labelling, is a standard image segmentation problem that joins contiguous foreground pixels into blobs. Despite its long development history and widespread use across diverse domains such as bone biology, materials science, and geology, connected components labelling can still form a bottleneck in image processing pipelines. Here, I describe a multithreaded implementation of classical two-pass sequential region labelling and introduce an efficient collision resolution step, bucket fountain. Code was validated on test images and against commercial software (Avizo). It was performance tested on images from 2 MB (161 particles) to 6.5 GB (437,508 particles) to determine whether theoretical linear scaling (O(n)) had been achieved, and on 1 - 40 CPU threads to measure speed improvements due to multithreading. The new implementation achieves linear scaling (b = 0.905 - 1.052, time {propto} pixelsb; R2 = 0.985 - 0.996), which improves with increasing thread number up to 8-10 threads, suggesting that it is memory bandwidth limited. This new implementation of sequential region labelling reduces the time required from hours to a few tens of seconds for images of several GB, and is limited only by hardware scale. It is available open source and free of charge in BoneJ.
- Citations
- 31
- FWCI
- 1.98
- Field percentile
- top 13%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Labkit: Labeling and Segmentation Toolkit for Big Image Data
Matthias Arzt, J.R. Deschamps, … Florian Jug·Frontiers in Computer SciencePeer-reviewed·Feb 10, 2022
- Scalable image processing techniques for quantitative analysis of volumetric biological images from light-sheet microscopy
J. Swaney, L. Kamentsky, … K. Chung·bioRxiv·Mar 16, 2019
- BigDataProcessor2: A free and open-source Fiji plugin for inspection and processing of TB sized image data
Christian Tischer, Ashis Ravindran, … Nils Norlin·BioinformaticsPeer-reviewed·Feb 13, 2021
- Normalized level set model for segmentation of low-contrast objects in 2- and 3- dimensional images
M. M. J. Baig, Y. L. Wang, … A. Stepanyants·bioRxiv·Jan 12, 2024
- Joint Registration of Multiple Point Clouds for Fast Particle Fusion in Localization Microscopy
Wenxiu Wang, Hamidreza Heydarian, … Bernd Rieger·BioinformaticsPeer-reviewed·May 9, 2022
- Robust and unbiased estimation of the background distribution for automated quantitative imaging
M. Silberberg, H. E. Grecco·bioRxiv·Nov 9, 2021