combineClusters: 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.