maps spectral species based on PCA file computed previously

map_spectral_species(
  Input_Image_File,
  Output_Dir,
  SpectralSpace_Output,
  Input_Mask_File = FALSE,
  nbclusters = 50,
  nbCPU = 1,
  MaxRAM = 0.25,
  Kmeans_Only = FALSE,
  SelectedPCs = FALSE,
  SpectralFilter = NULL,
  Kmeans_info_path = NULL,
  Kmeans_info = NULL,
  algorithm = "Hartigan-Wong",
  progressbar = FALSE
)

Arguments

Input_Image_File

character. Path of the image to be processed

Output_Dir

character. Path for output directory

SpectralSpace_Output

list. list of variables produced from function perform_PCA

Input_Mask_File

character. Path of the mask corresponding to the image

nbclusters

numeric. number of clusters defined in k-Means

nbCPU

numeric. Number of CPUs to use in parallel.

MaxRAM

numeric. MaxRAM maximum size of chunk in GB to limit RAM allocation when reading image file.

Kmeans_Only

boolean. set to TRUE if computation of kmeans without production of spectral species map

SelectedPCs

numeric. Define PCs to be selected. Set to FALSE if you want to use the "Selected_Components.txt" file

SpectralFilter

list. information about spectral band location

Kmeans_info_path

character. path to a Kmeans_info Rdata file computed from previous process

Kmeans_info

list. Kmeans_info list computed from previous process (central wavelength), bands to keep...

algorithm

character. algorithm used in the kmeans clustering

progressbar

boolean. should progress bar be displayed (set to TRUE only if no conflict of parallel process)

Value

Kmeans_info