colordistance: Distance Metrics for Image Color Similarity

Loads and displays images, selectively masks specified background colors, bins pixels by color using either data-dependent or automatically generated color bins, quantitatively measures color similarity among images using one of several distance metrics for comparing pixel color clusters, and clusters images by object color similarity. Uses CIELAB, RGB, or HSV color spaces. Originally written for use with organism coloration (reef fish color diversity, butterfly mimicry, etc), but easily applicable for any image set.

Version: 1.1.2
Depends: R (≥ 3.4.0)
Imports: jpeg, png, stats, clue, ape, mgcv, emdist, scatterplot3d, plotly, gplots, abind, magrittr, scales, qpdf, spatstat.geom
Suggests: knitr, rmarkdown, testthat
Published: 2021-03-20
DOI: 10.32614/CRAN.package.colordistance
Author: Hannah Weller [aut, cre]
Maintainer: Hannah Weller <hannahiweller at>
License: GPL-3
NeedsCompilation: no
Materials: README NEWS
CRAN checks: colordistance results


Reference manual: colordistance.pdf
Vignettes: Pixel Binning Methods
Color Distance Metrics
Color Spaces
CIELab Analyses


Package source: colordistance_1.1.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): colordistance_1.1.2.tgz, r-oldrel (arm64): colordistance_1.1.2.tgz, r-release (x86_64): colordistance_1.1.2.tgz, r-oldrel (x86_64): colordistance_1.1.2.tgz
Old sources: colordistance archive

Reverse dependencies:

Reverse imports: countcolors, PUPMCR


Please use the canonical form to link to this page.