Skip to content
Snippets Groups Projects
Commit ee2dcbad authored by Marina Bertolino's avatar Marina Bertolino
Browse files

TEST: add application test for VectorClassifier

parent 7d83f586
No related branches found
No related tags found
No related merge requests found
...@@ -783,6 +783,21 @@ otb_test_application(NAME apTvClassificationMapRegularization ...@@ -783,6 +783,21 @@ otb_test_application(NAME apTvClassificationMapRegularization
#----------- OGRLayerClassifier TESTS ---------------- #----------- 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 ---------------- #----------- ComputeImagesStatistics TESTS ----------------
otb_test_application(NAME apTvClComputeImagesStatisticsQB1 otb_test_application(NAME apTvClComputeImagesStatisticsQB1
APP ComputeImagesStatistics APP ComputeImagesStatistics
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment