colorDistance: Sum of Euclidean distances between color clusters

Description Usage Arguments Value Examples

View source: R/04_comparison_metrics.R

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

1
colorDistance(T1, T2)

Arguments

T1

Dataframe (especially a dataframe as returned by extractClusters() or getImageHist(), but first three columns must be coordinates).

T2

Another dataframe like T1.

Value

Sum of Euclidean distances between each pair of points (rows) in the provided dataframes.

Examples

1
2
3
4
5
## 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)

colordistance documentation built on March 21, 2021, 1:06 a.m.