GMMImage: 'GMM' clustering of image imported as a RasterStack.

View source: R/GMMImage.R

GMMImageR 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".


patternize documentation built on Aug. 22, 2023, 5:07 p.m.