Ecology LettersBioinformaticsPeer-reviewed journal article
Flexible color segmentation of biological images with the R package recolorize
Hannah I. WelleriD, Steven M. Van BelleghemiD, Anna E. HilleriD, Nathan P. LordiD
Abstract
Color is an important source of biological information in fields ranging from disease ecology to sexual selection. Despite its importance, most metrics for color are restricted to point measurements. Methods for moving beyond point measurements rely on color maps, where every pixel in an image is assigned to one of a set of discrete color classes (color segmentation). Manual methods for color segmentation are slow and subjective, while existing automated methods often fail due to biological variation in pattern, technical variation in images, and poor scalability for batch clustering. As a result, color segmentation is the common bottleneck step for a majority of existing downstream analyses. Here we present recolorize, an R package for color segmentation that succeeds in many cases where existing methods fail. Recolorize has three major components: (1) an effective two-part clustering algorithm where color distributions are binned and combined according to perceived similarity in a frequency-independent manner; (2) a toolkit for minor manual adjustments to automatic output where needed; and (3) flexible export options. This paper illustrates how to use recolorize and compares it to existing methods, including examples where we segment formerly intractable images, and demonstrates the downstream use of methods that rely on color maps.
- Citations
- 39
- FWCI
- 5.55
- Field percentile
- top 2%
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
- SegColR: Deep Learning for Automated Segmentation and Color Extraction
James D. Boyko·bioRxiv·Jul 28, 2024
- Patternize: An R Package For Quantifying Color Pattern Variation
Steven M. Van Belleghem, Riccardo Papa, … Brian A. Counterman·Methods in Ecology and EvolutionPeer-reviewed·Jul 11, 2017
- Batch-Mask: An automated Mask R-CNN workflow to isolate non-standard biological specimens for color pattern analysis
J. D. Curlis, T. J. Renney, … T. Y. Moore·bioRxiv·Nov 12, 2021
- imageseg: an R package for deep learning-based image segmentation
J. Niedballa, J. Axtner, … A. Wilting·bioRxiv·Dec 16, 2021
- charisma: An R package to perform reproducible color characterization of digital images for biological studies
Shawn Tyler Schwartz, Whitney L. E. Tsai, … Michael E. Alfaro·Methods in Ecology and EvolutionPeer-reviewed·Apr 27, 2026
- AlGrow: a graphical interface for easy, fast and accurate area and growth analysis of heterogeneously colored targets.
Marcus McHale, Ronan Sulpice A·PLANT PHYSIOLOGYPeer-reviewed·Nov 5, 2024