Compute kmeans from random subset of pixels extracted from an image and a list of values for k

explore_kmeans(
  input_rast,
  input_mask = NULL,
  SelectBands = NULL,
  nbClust_list = 50,
  nbIter = 20,
  maxPixel_kmeans = 1e+05,
  algorithm = "Hartigan-Wong",
  nbCPU = 1,
  progressbar = F
)

Arguments

input_rast

character. Path and name of the image to be processed.

input_mask

character. Path and name of the mask corresponding to the image

SelectBands

numeric. bands selected from input_rast

nbClust_list

numeric. number of clusters used in kmeans

nbIter

numeric. nb of iterations averaged to compute diversity indices

maxPixel_kmeans

numeric. max number of pixels to extract for kmeans

algorithm

character. algorithm used in the kmeans clustering

nbCPU

numeric. Number of CPUs available

progressbar

boolean. set true for progress bar during clustering

Value

Kmeans_info