Description Usage Arguments Note Examples
View source: R/03_cluster_averaging.R
Combine a list of cluster features as returned by getHistList
according to the specified method.
1 | combineList(hist_list, method = "mean")
|
hist_list |
A list of cluster dataframes as returned by
|
method |
Method for combining color histograms. Default is
|
While the function can also accept clusters generated using kmeans
(getKMeansList
followed by extractClusters
),
this is not recommended, as kmeans does not provide explicit analogous
pairs of clusters, and clusters are combined by row number (all row 1
clusters are treated as analogous, etc). Color histograms are appropriate
because the bins are defined the same way for each image.
1 2 3 | hist_list <- getHistList(system.file("extdata", "Heliconius/Heliconius_A",
package="colordistance"), lower=rep(0.8, 3), upper=rep(1, 3))
median_clusters <- combineList(hist_list, method="median")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.