define output directory and subdirectory and create it if necessary

define_output_subdir(Output_Dir, ImPath, TypePCA, Sub)

Arguments

Output_Dir

character. output directory

ImPath

character. image path

TypePCA

character. Type of PCA (PCA, SPCA, NLPCA...)

Sub

character. subdirectory

Value

path of the output directory