GMMImage {patternize}R Documentation

GMM clustering of image imported as a RasterStack.

Description

GMM clustering of image imported as a RasterStack.

Usage

GMMImage(image, k = 5, maskToNA = NULL, kmeansOnAll = FALSE)

Arguments

image

Image imported as a RasterStack for clustering.

k

Integer for number of k clusters (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 including the clustered RasterSatck returned as an array and object of class "GMM".


[Package patternize version 0.0.5 Index]