Commit 94b16c65 authored by Rashad Kanavath's avatar Rashad Kanavath

TEST: check opencv before running apTvClTrainVectorClassifier with rf classifier

parent aac8c62d
......@@ -882,14 +882,16 @@ otb_test_application(NAME apTvClSampleExtraction
${TEMP}/apTvClSampleExtractionOut.sqlite)
#----------- TrainVectorClassifier TESTS ----------------
otb_test_application(NAME apTvClTrainVectorClassifier
APP TrainVectorClassifier
OPTIONS -io.vd ${INPUTDATA}/Classification/apTvClSampleExtractionOut.sqlite
-feat value_0 value_1 value_2 value_3
-cfield class
-classifier rf
-io.confmatout ${TEMP}/apTvClTrainVectorClassifierConfMat.txt
-io.out ${TEMP}/apTvClTrainVectorClassifierModel.rf
VALID --compare-ascii ${NOTOL}
${OTBAPP_BASELINE_FILES}/apTvClTrainVectorClassifierModel.rf
${TEMP}/apTvClTrainVectorClassifierModel.rf)
if(OTB_USE_OPENCV)
otb_test_application(NAME apTvClTrainVectorClassifier
APP TrainVectorClassifier
OPTIONS -io.vd ${INPUTDATA}/Classification/apTvClSampleExtractionOut.sqlite
-feat value_0 value_1 value_2 value_3
-cfield class
-classifier rf
-io.confmatout ${TEMP}/apTvClTrainVectorClassifierConfMat.txt
-io.out ${TEMP}/apTvClTrainVectorClassifierModel.rf
VALID --compare-ascii ${NOTOL}
${OTBAPP_BASELINE_FILES}/apTvClTrainVectorClassifierModel.rf
${TEMP}/apTvClTrainVectorClassifierModel.rf)
endif()
\ No newline at end of file
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