diff --git a/Modules/Applications/AppDimensionalityReduction/test/CMakeLists.txt b/Modules/Applications/AppDimensionalityReduction/test/CMakeLists.txt index 57c99b6220bfa3de2b28e1da4f96eea177c2059c..e4037adcb0a388f34ae1ba4cc49a70200bab4d08 100644 --- a/Modules/Applications/AppDimensionalityReduction/test/CMakeLists.txt +++ b/Modules/Applications/AppDimensionalityReduction/test/CMakeLists.txt @@ -39,19 +39,7 @@ otb_test_application(NAME apTvFEDimensionalityReductionPCA ${TEMP}/apTvChDimensionalityReductionPCA.tif) #------------------------------------------------------------------------------- -set(algos ae pca som) - -set(ae_params --algorithm autoencoder --algorithm.autoencoder.nbneuron 8 --algorithm.autoencoder.regularization 0.01 --algorithm.autoencoder.noise 0 --algorithm.autoencoder.rho 0 --algorithm.autoencoder.beta 0) - -set(pca_params --algorithm pca --algorithm.pca.dim 8) +set(algos som) set(som_params -algorithm som @@ -59,6 +47,22 @@ set(som_params -algorithm.som.n 3 3 -algorithm.som.ni 10) +if(OTB_USE_SHARK) + list(APPEND classifierList ae pca) + + set(ae_params + -algorithm autoencoder + -algorithm.autoencoder.nbneuron 8 + -algorithm.autoencoder.regularization 0.01 + -algorithm.autoencoder.noise 0 + -algorithm.autoencoder.rho 0 + -algorithm.autoencoder.beta 0) + + set(pca_params + -algorithm pca + -algorithm.pca.dim 8) +endif() + foreach(algo ${algos}) string(TOUPPER ${algo} ualgo) #------------------ TrainDimensionalityReduction TESTS------------------------