Commit bed477ce authored by Marina Bertolino's avatar Marina Bertolino

Merge branch 'vector_classifier' into develop

parents bc9106ae 4500f2a7
......@@ -144,3 +144,8 @@ otb_create_application(
NAME MultiImageSamplingRate
SOURCES otbMultiImageSamplingRate.cxx
LINK_LIBRARIES ${${otb-module}_LIBRARIES})
otb_create_application(
NAME VectorClassifier
SOURCES otbVectorClassifier.cxx
LINK_LIBRARIES ${${otb-module}_LIBRARIES})
......@@ -814,6 +814,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment