Compute kmeans from random subset of pixels extracted from an image

init_kmeans_samples(
  rast_sample,
  output_dir,
  SelectBands = NULL,
  nbclusters = 50,
  nbIter = 20,
  Kmeans_info_save = NULL,
  algorithm = "Hartigan-Wong",
  nbCPU = 1,
  verbose = T,
  progressbar = T
)

Arguments

rast_sample

data frame containing samples to use

output_dir

character. Path for output directory

SelectBands

numeric. bands selected from input_rast

nbclusters

numeric. number of clusters used in kmeans

nbIter

numeric. nb of iterations averaged to compute diversity indices

Kmeans_info_save

character. path where to save Kmeans_info

algorithm

character. algorithm used in the kmeans clustering

nbCPU

numeric. Number of CPUs available

verbose

boolean. set true for messages

progressbar

boolean. set true for progress bar during clustering

Value

Kmeans_info