Extract colors using GMM clustering (for pre-aligned images).
patGMM(
sampleList,
k = 3,
resampleFactor = NULL,
maskOutline = NULL,
plot = FALSE,
focal = FALSE,
sigma = 3,
maskToNA = NULL,
kmeansOnAll = FALSE
)
List of summed raster for each k-means cluster objects.
List of RasterStack objects.
Integere for defining number of clusters (default = 3).
Integer for downsampling used by redRes
.
When outline is specified, everything outside of the outline will be masked for the color extraction (default = NULL).
Whether to plot transformed color patterns while processing (default = FALSE).
Whether to perform Gaussian blurring (default = FALSE).
Size of sigma for Gaussian blurring (default = 3).
Replace the color value used for masking (i.e. 0 or 255) with NA.
Whether to perform the kmeans clusters on the combined set of pixels of all images first (default = FALSE).