R/init_kmeans.R
init_kmeans.Rd
Compute kmeans from random subset of pixels extracted from an image
init_kmeans(
input_rast,
output_dir,
input_mask = NULL,
SelectBands = NULL,
nbclusters = 50,
nbIter = 20,
Kmeans_info_save = NULL,
Kmeans_info_read = NULL,
maxPixel_kmeans = 1e+05,
algorithm = "Hartigan-Wong",
nbCPU = 1,
verbose = T,
progressbar = T
)
character. Path and name of the image to be processed.
character. Path for output directory
character. Path and name of the mask corresponding to the image
numeric. bands selected from input_rast
numeric. number of clusters used in kmeans
numeric. nb of iterations averaged to compute diversity indices
character. path where to save Kmeans_info
character. path where to read Kmeans_info
numeric. max number of pixels to extract for kmeans
character. algorithm used in the kmeans clustering
numeric. Number of CPUs available
boolean. set true for messages
boolean. set true for progress bar during clustering
Kmeans_info