Package: colordistance 1.1.2

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.

Authors:Hannah Weller [aut, cre]

colordistance_1.1.2.tar.gz
colordistance_1.1.2.zip(r-4.5)colordistance_1.1.2.zip(r-4.4)colordistance_1.1.2.zip(r-4.3)
colordistance_1.1.2.tgz(r-4.4-any)colordistance_1.1.2.tgz(r-4.3-any)
colordistance_1.1.2.tar.gz(r-4.5-noble)colordistance_1.1.2.tar.gz(r-4.4-noble)
colordistance_1.1.2.tgz(r-4.4-emscripten)colordistance_1.1.2.tgz(r-4.3-emscripten)
colordistance.pdf |colordistance.html
colordistance/json (API)
NEWS

# Install 'colordistance' in R:
install.packages('colordistance', repos = c('https://hiweller.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/hiweller/colordistance/issues

On CRAN:

23 exports 37 stars 3.10 score 89 dependencies 2 dependents 2 mentions 73 scripts 472 downloads

Last updated 8 months agofrom:e602b243c5. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 22 2024
R-4.5-winNOTEAug 22 2024
R-4.5-linuxNOTEAug 22 2024
R-4.4-winNOTEAug 22 2024
R-4.4-macNOTEAug 22 2024
R-4.3-winOKAug 22 2024
R-4.3-macOKAug 22 2024

Exports:combineClusterscombineListconvertColorSpaceexportTreeextractClustersgetColorDistanceMatrixgetHistListgetImageHistgetImagePathsgetKMeanColorsgetKMeansListgetLabHistgetLabHistListheatmapColorDistanceimageClusterPipelineloadImageplotClustersplotClustersMultiplotHistplotImageplotPixelsremoveBackgroundscatter3dclusters

Dependencies:abindapeaskpassbase64encbitopsbslibcachemcaToolscliclueclustercolorspacecpp11crosstalkcurldata.tabledeldirdigestdplyremdistevaluatefansifarverfastmapfontawesomefsgenericsggplot2gluegplotsgtablegtoolshighrhtmltoolshtmlwidgetshttrisobandjpegjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelazyevallifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmeopensslpillarpkgconfigplotlypngpolyclippromisespurrrR6rappdirsRColorBrewerRcpprlangrmarkdownsassscalesscatterplot3dspatstat.dataspatstat.geomspatstat.univarspatstat.utilsstringistringrsystibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunyaml

CIELab Analyses

Rendered fromlab-analyses.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2018-06-25
Started: 2018-06-25

Color Distance Metrics

Rendered fromcolor-metrics.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2020-11-13
Started: 2017-05-16

Color Spaces

Rendered fromcolor-spaces.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2020-11-13
Started: 2018-06-25

Introduction

Rendered fromcolordistance-introduction.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2020-10-26
Started: 2017-05-17

Pixel Binning Methods

Rendered frombinning-methods.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2020-10-26
Started: 2017-05-16

Readme and manuals

Help Manual

Help pageTopics
Chi-square distance between vectorschisqDistance
Sum of Euclidean distances between color clusterscolorDistance
Average 3D color histograms by subdirectorycombineClusters
Combine a list of cluster features into a single cluster setcombineList
Convert between color spacesconvertColorSpace
Earth mover's distance between two sets of color clustersEMDistance
Export a distance matrix as a tree objectexportTree
Extract cluster values and sizes from kmeans fit objectsextractClusters
Distance matrix for a list of color cluster setsgetColorDistanceMatrix
Vector of hex colors for histogram bin colorationgetHistColors
Generate a list of cluster sets for multiple imagesgetHistList
Generate a 3D histogram based on color distribution in an imagegetImageHist
Fetch paths to all valid images in a given directorygetImagePaths
Fit pixels to clusters using KMeans clusteringgetKMeanColors
Get KMeans clusters for every image in a setgetKMeansList
Generate a 3D histogram based on CIE Lab color coordinates in an imagegetLabHist
Generate a list of cluster sets in CIE Lab color spacegetLabHistList
Plot a heatmap of a distance matrixheatmapColorDistance
Generate and plot a color distance matrix from a set of imagesimageClusterPipeline
Import image and generate filtered 2D pixel array(s)loadImage
Normalize pixel RGB ratiosnormalizeRGB
Order color clusters to minimize overall color distance between pairsorderClusters
Pause and wait for user inputpause
Plot clusters in 3D color spaceplotClusters
Plot several different cluster sets togetherplotClustersMulti
Color histogram of binned imageplotHist
Display an image in a plot windowplotImage
Plot pixels in color spaceplotPixels
Remove background pixels in imageremoveBackground
Plot 3D clusters in a 2D plotscatter3dclusters
Distance between color clusters with user-specified color/size weightsweightedPairsDistance