From ee2dcbadd1e1e6d23d618fd8e733601f3281f511 Mon Sep 17 00:00:00 2001 From: Marina Bertolino <marina.bertolino@c-s.fr> Date: Tue, 11 Apr 2017 16:13:29 +0200 Subject: [PATCH] TEST: add application test for VectorClassifier --- .../AppClassification/test/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Modules/Applications/AppClassification/test/CMakeLists.txt b/Modules/Applications/AppClassification/test/CMakeLists.txt index aaa2f9cfe1..f1fa65a634 100644 --- a/Modules/Applications/AppClassification/test/CMakeLists.txt +++ b/Modules/Applications/AppClassification/test/CMakeLists.txt @@ -783,6 +783,21 @@ otb_test_application(NAME apTvClassificationMapRegularization #----------- OGRLayerClassifier TESTS ---------------- +#----------- VectorClassifier TESTS ---------------- +if(OTB_USE_OPENCV) + otb_test_application(NAME apTvClSVMVectorClassifier + APP VectorClassifier + OPTIONS -in ${INPUTDATA}/Classification/apTvClLabeledVector.shp + -instat ${OTBAPP_BASELINE_FILES}/apTvClComputeOGRLayersFeaturesStatistics.xml + -model ${OTBAPP_BASELINE_FILES}/apTvClModel.svm + -out ${TEMP}/apTvClSVMLabeledVector.shp + -feat meanB0 meanB1 meanB2 meanB3 varB0 varB1 varB2 varB3 + -cfield class + VALID --compare-ogr 0.0 + ${OTBAPP_BASELINE_FILES}/apTvClSVMLabeledVector.shp + ${TEMP}/apTvClSVMLabeledVector.shp) +endif() + #----------- ComputeImagesStatistics TESTS ---------------- otb_test_application(NAME apTvClComputeImagesStatisticsQB1 APP ComputeImagesStatistics -- GitLab