R/Lib_PerformPCA.R
perform_PCA.Rd
Performs PCA for all images and create PCA file with either all or a selection of PCs
perform_PCA(
Input_Image_File,
Input_Mask_File,
Output_Dir,
Continuum_Removal = TRUE,
TypePCA = "SPCA",
NbPCs_To_Keep = 30,
FilterPCA = FALSE,
Excluded_WL = FALSE,
nb_partitions = 20,
nbCPU = 1,
MaxRAM = 0.25
)
character. Path of the image to be processed
character. Path of the mask corresponding to the image
character. Path for output directory
boolean. Set to TRUE if continuum removal should be applied
character. Type of PCA: choose either "PCA" or "SPCA"
numeric. number of components to ke saved in the PCA file. default = 30 if set to FALSE (or nb PC if <30)
boolean. Set to TRUE if 2nd filtering based on PCA is required
numeric. Water Vapor Absorption domains (in nanometers, min and max WL). Can also be used to exclude spectific domains. dims = N x 2 (N = number of domains to be eliminated)
numeric. Number of repetitions to estimate diversity from the raster (averaging repetitions).
numeric. Number fo CPUs in use.
numeric. Maximum size of chunk in GB to limit RAM allocation when reading image file.
list of paths corresponding to resulting PCA files