Commit a3add895 authored by Julien Michel's avatar Julien Michel

TEST: Adding tests for new writing modes in segmentation application

parent 1d5e8708
......@@ -61,12 +61,11 @@ OTB_TEST_APPLICATION(NAME apTvSeHooverCompareSegmentationTest
SET(cc_parameters "-filter.cc.expr distance<25")
SET(edison_parameters "-filter.edison.spatialr 5 -filter.edison.ranger 50 -filter.edison.minsize 10")
SET(meanshift_parameters "-filter.meanshift.spatialr 5 -filter.meanshift.ranger 50 -filter.meanshift.minsize 10")
SET(vector_parameters "-mode.vector.tilesize 500 -mode.vector.minsize 50 -mode.vector.simplify 0.1")
SET(vector_parameters "-mode.vector.tilesize 500 -mode.vector.minsize 50 -mode.vector.simplify 0.1 -mode.vector.outmode ovw")
# validation option
SET(meanshift_option "--without-threads")
# Output type dependning on mode
SET(raster_output_format ".tif")
SET(raster_output_option " uint16")
......@@ -100,11 +99,76 @@ OTB_TEST_APPLICATION(NAME apTvSeSegmentation${filter}${mode}
-mode.${lmode}.out ${TEMP}/${OUTFILE}${${lmode}_output_option}
${${lmode}_parameters}
VALID ${${lfilter}_option}
${${lmode}_comparison}
${${lmode}_comparison}
${${lmode}_ref_path}/${OUTFILE}
${TEMP}/${OUTFILE}
)
ENDFOREACH(filter)
ENDFOREACH(mode)
SET(filter "CC")
SET(mode "Vector")
# Add a test for ULOVW
SET(vector_parameters "-mode.vector.tilesize 500 -mode.vector.minsize 50 -mode.vector.simplify 0.1 -mode.vector.outmode ulovw")
SET(OUTFILE apTvSeSegmentation${filter}${mode}${${lmode}_output_format})
OTB_TEST_APPLICATION(NAME apTvSeSegmentation${filter}${mode}_ULOVW
APP Segmentation
OPTIONS -in ${EXAMPLEDATA}/qb_RoadExtract2.tif
-filter ${lfilter}
${${lfilter}_parameters}
-mode ${lmode}
-mode.${lmode}.out ${TEMP}/${OUTFILE}${${lmode}_output_option}
${${lmode}_parameters}
VALID ${${lfilter}_option}
${${lmode}_comparison}
${${lmode}_ref_path}/${OUTFILE}
${TEMP}/${OUTFILE}
)
SET_TESTS_PROPERTIES(apTvSeSegmentation${filter}${mode}_ULOVW PROPERTIES DEPENDS apTvSeSegmentation${filter}${mode})
# Add a test for ULU
SET(vector_parameters "-mode.vector.tilesize 500 -mode.vector.minsize 50 -mode.vector.simplify 0.1 -mode.vector.outmode ulu")
SET(OUTFILE apTvSeSegmentation${filter}${mode}${${lmode}_output_format})
OTB_TEST_APPLICATION(NAME apTvSeSegmentation${filter}${mode}_ULU
APP Segmentation
OPTIONS -in ${EXAMPLEDATA}/qb_RoadExtract2.tif
-filter ${lfilter}
${${lfilter}_parameters}
-mode ${lmode}
-mode.${lmode}.out ${TEMP}/${OUTFILE}${${lmode}_output_option}
${${lmode}_parameters}
VALID ${${lfilter}_option}
${${lmode}_comparison}
${${lmode}_ref_path}/${OUTFILE}
${TEMP}/${OUTFILE}
)
SET_TESTS_PROPERTIES(apTvSeSegmentation${filter}${mode}_ULU PROPERTIES DEPENDS apTvSeSegmentation${filter}${mode})
# Add a test for ULCO
SET(vector_parameters "-mode.vector.tilesize 500 -mode.vector.minsize 50 -mode.vector.simplify 0.1 -mode.vector.outmode ulco")
SET(OUTFILE apTvSeSegmentation${filter}${mode}${${lmode}_output_format})
OTB_TEST_APPLICATION(NAME apTvSeSegmentation${filter}${mode}_ULCO
APP Segmentation
OPTIONS -in ${EXAMPLEDATA}/qb_RoadExtract2.tif
-filter ${lfilter}
${${lfilter}_parameters}
-mode ${lmode}
-mode.${lmode}.out ${TEMP}/${OUTFILE}${${lmode}_output_option}
${${lmode}_parameters}
VALID ${${lfilter}_option}
${${lmode}_comparison}
${${lmode}_ref_path}/${OUTFILE}
${TEMP}/${OUTFILE}
)
SET_TESTS_PROPERTIES(apTvSeSegmentation${filter}${mode}_ULCO PROPERTIES DEPENDS apTvSeSegmentation${filter}${mode} WILL_FAIL TRUE)
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