patGMM {patternize}R Documentation

Extract colors using GMM clustering (for pre-aligned images).

Description

Extract colors using GMM clustering (for pre-aligned images).

Usage

patGMM(
  sampleList,
  k = 3,
  resampleFactor = NULL,
  maskOutline = NULL,
  plot = FALSE,
  focal = FALSE,
  sigma = 3,
  maskToNA = NULL,
  kmeansOnAll = FALSE
)

Arguments

sampleList

List of RasterStack objects.

k

Integere for defining number of clusters (default = 3).

resampleFactor

Integer for downsampling used by redRes.

maskOutline

When outline is specified, everything outside of the outline will be masked for the color extraction (default = NULL).

plot

Whether to plot transformed color patterns while processing (default = FALSE).

focal

Whether to perform Gaussian blurring (default = FALSE).

sigma

Size of sigma for Gaussian blurring (default = 3).

maskToNA

Replace the color value used for masking (i.e. 0 or 255) with NA.

kmeansOnAll

Whether to perform the kmeans clusters on the combined set of pixels of all images first (default = FALSE).

Value

List of summed raster for each k-means cluster objects.


[Package patternize version 0.0.5 Index]