combineClusters {colordistance}R Documentation

Average 3D color histograms by subdirectory

Description

Calculates color histograms for images in immediate subdirectories of a folder, and averages histograms for images in the same subdirectory.

Usage

combineClusters(folder, method = "mean", ...)

Arguments

folder

Path to the folder containing subdirectories of images. Must be a character vector.

method

Method for combining color histograms. Default is "mean", but other generic functions ("median", "sum", etc) will work. String is evaluated using "eval" so any appropriate R function is accepted.

...

Additional arguments passed to getHistList, including number of bins, HSV flag, etc.

Examples

combined_clusters <- colordistance::combineClusters(system.file("extdata",
"Heliconius", package="colordistance"), method="median", bins=2,
lower=rep(0.8, 3), upper=rep(1, 3))

[Package colordistance version 1.1.2 Index]