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:

8.22 score 37 stars 2 packages 75 scripts 561 downloads 2 mentions 23 exports 89 dependencies

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

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-winNOTENov 20 2024
R-4.5-linuxNOTENov 20 2024
R-4.4-winNOTENov 20 2024
R-4.4-macNOTENov 20 2024
R-4.3-winOKNov 20 2024
R-4.3-macOKNov 20 2024

Exports:combineClusterscombineListconvertColorSpaceexportTreeextractClustersgetColorDistanceMatrixgetHistListgetImageHistgetImagePathsgetKMeanColorsgetKMeansListgetLabHistgetLabHistListheatmapColorDistanceimageClusterPipelineloadImageplotClustersplotClustersMultiplotHistplotImageplotPixelsremoveBackgroundscatter3dclusters

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

CIELab Analyses

Rendered fromlab-analyses.Rmdusingknitr::rmarkdownon Nov 20 2024.

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

Color Distance Metrics

Rendered fromcolor-metrics.Rmdusingknitr::rmarkdownon Nov 20 2024.

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

Color Spaces

Rendered fromcolor-spaces.Rmdusingknitr::rmarkdownon Nov 20 2024.

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

Introduction

Rendered fromcolordistance-introduction.Rmdusingknitr::rmarkdownon Nov 20 2024.

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

Pixel Binning Methods

Rendered frombinning-methods.Rmdusingknitr::rmarkdownon Nov 20 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