colorDistance {colordistance} | R Documentation |
Sum of Euclidean distances between color clusters
Description
Calculates the Euclidean distance between each pair of points in two dataframes as returned by extractClusters or getImageHist and returns the sum of the distances.
Usage
colorDistance(T1, T2)
Arguments
T1 |
Dataframe (especially a dataframe as returned by
|
T2 |
Another dataframe like T1. |
Value
Sum of Euclidean distances between each pair of points (rows) in the provided dataframes.
Examples
## Not run: cluster.list <- colordistance::getHistList(system.file("extdata",
"Heliconius/Heliconius_B", package="colordistance"), lower=rep(0.8, 3),
upper=rep(1, 3))
colordistance:::colorDistance(cluster.list[[1]], cluster.list[[2]])
## End(Not run)
[Package colordistance version 1.1.2 Index]