Quantitative color profiling of digital images with earth mover’s distance using the R package colordistance

Biological color may be adaptive or incidental, seasonal or permanent, species- or population-specific, or modified for breeding, defense or camouflage. Although color is a hugely informative aspect of biology, quantitative color comparisons are notoriously difficult. Color comparison is limited by...

Full description

Bibliographic Details
Main Authors: Hannah I. Weller, Mark W. Westneat
Format: Article
Language:English
Published: PeerJ Inc. 2019-02-01
Series:PeerJ
Subjects:
Online Access:https://peerj.com/articles/6398.pdf
id doaj-927c3f75317741aea3f9b3f712a0d998
record_format Article
spelling doaj-927c3f75317741aea3f9b3f712a0d9982020-11-25T00:02:10ZengPeerJ Inc.PeerJ2167-83592019-02-017e639810.7717/peerj.6398Quantitative color profiling of digital images with earth mover’s distance using the R package colordistanceHannah I. Weller0Mark W. Westneat1Department of Organismal Biology and Anatomy, University of Chicago, Chicago, IL, USADepartment of Ecology and Evolutionary Biology, Brown University, Providence, RI, USABiological color may be adaptive or incidental, seasonal or permanent, species- or population-specific, or modified for breeding, defense or camouflage. Although color is a hugely informative aspect of biology, quantitative color comparisons are notoriously difficult. Color comparison is limited by categorization methods, with available tools requiring either subjective classifications, or expensive equipment, software, and expertise. We present an R package for processing images of organisms (or other objects) in order to quantify color profiles, gather color trait data, and compare color palettes on the basis of color similarity and amount. The package treats image pixels as 3D coordinates in a “color space,” producing a multidimensional color histogram for each image. Pairwise distances between histograms are computed using earth mover’s distance, a technique borrowed from computer vision, that compares histograms using transportation costs. Users choose a color space, parameters for generating color histograms, and a pairwise comparison method to produce a color distance matrix for a set of images. The package is intended as a more rigorous alternative to subjective, manual digital image analyses, not as a replacement for more advanced techniques that rely on detailed spectrophotometry methods unavailable to many users. Here, we outline the basic functions of colordistance, provide guidelines for the available color spaces and quantification methods, and compare this toolkit with other available methods. The tools presented for quantitative color analysis may be applied to a broad range of questions in biology and other disciplines.https://peerj.com/articles/6398.pdfR packagesColorImage processingPhylogeneticsCamouflageEarth mover’s distance
collection DOAJ
language English
format Article
sources DOAJ
author Hannah I. Weller
Mark W. Westneat
spellingShingle Hannah I. Weller
Mark W. Westneat
Quantitative color profiling of digital images with earth mover’s distance using the R package colordistance
PeerJ
R packages
Color
Image processing
Phylogenetics
Camouflage
Earth mover’s distance
author_facet Hannah I. Weller
Mark W. Westneat
author_sort Hannah I. Weller
title Quantitative color profiling of digital images with earth mover’s distance using the R package colordistance
title_short Quantitative color profiling of digital images with earth mover’s distance using the R package colordistance
title_full Quantitative color profiling of digital images with earth mover’s distance using the R package colordistance
title_fullStr Quantitative color profiling of digital images with earth mover’s distance using the R package colordistance
title_full_unstemmed Quantitative color profiling of digital images with earth mover’s distance using the R package colordistance
title_sort quantitative color profiling of digital images with earth mover’s distance using the r package colordistance
publisher PeerJ Inc.
series PeerJ
issn 2167-8359
publishDate 2019-02-01
description Biological color may be adaptive or incidental, seasonal or permanent, species- or population-specific, or modified for breeding, defense or camouflage. Although color is a hugely informative aspect of biology, quantitative color comparisons are notoriously difficult. Color comparison is limited by categorization methods, with available tools requiring either subjective classifications, or expensive equipment, software, and expertise. We present an R package for processing images of organisms (or other objects) in order to quantify color profiles, gather color trait data, and compare color palettes on the basis of color similarity and amount. The package treats image pixels as 3D coordinates in a “color space,” producing a multidimensional color histogram for each image. Pairwise distances between histograms are computed using earth mover’s distance, a technique borrowed from computer vision, that compares histograms using transportation costs. Users choose a color space, parameters for generating color histograms, and a pairwise comparison method to produce a color distance matrix for a set of images. The package is intended as a more rigorous alternative to subjective, manual digital image analyses, not as a replacement for more advanced techniques that rely on detailed spectrophotometry methods unavailable to many users. Here, we outline the basic functions of colordistance, provide guidelines for the available color spaces and quantification methods, and compare this toolkit with other available methods. The tools presented for quantitative color analysis may be applied to a broad range of questions in biology and other disciplines.
topic R packages
Color
Image processing
Phylogenetics
Camouflage
Earth mover’s distance
url https://peerj.com/articles/6398.pdf
work_keys_str_mv AT hannahiweller quantitativecolorprofilingofdigitalimageswithearthmoversdistanceusingtherpackagecolordistance
AT markwwestneat quantitativecolorprofilingofdigitalimageswithearthmoversdistanceusingtherpackagecolordistance
_version_ 1725439002263158784