Commit 9f511ae9 authored by Jonathan Guinet's avatar Jonathan Guinet

TEST: add tests for StereoFramework application. JIRA #OTB-375

parent 8fc66a42
SET(EPSILON_10 0.0000000001)
SET(BASELINE_EXAMPLE ${OTB_DATA_ROOT}/Baseline/Examples/DisparityMap)
SET(DEM_DATA ${OTB_DATA_ROOT}/Input/DEM/srtm_directory)
#--- StereoSensorModelToElevationMap ---#
OTB_TEST_APPLICATION(NAME apTvDmStereoSensorModelToElevationMapTest
......@@ -142,3 +143,60 @@ OTB_TEST_APPLICATION(NAME apTvDmDisparityMapToElevationMap
${BASELINE_EXAMPLE}/elevationOutput.tif
${TEMP}/apTvDmDisparityMapToElevationMapTest.tif
)
# StereoFramework
IF(OTB_DATA_USE_LARGEINPUT)
OTB_TEST_APPLICATION(NAME apTvDmStereoFramework
APP StereoFramework
OPTIONS -input.il ${LARGEINPUT}/PLEIADES/tristereo_Haiti_Pan/phr_haiti_xt1.tif
${LARGEINPUT}/PLEIADES/tristereo_Haiti_Pan/phr_haiti_xt2.tif
${LARGEINPUT}/PLEIADES/tristereo_Haiti_Pan/phr_haiti_xt3.tif
-input.co "0 1,0 2"
-elev.dem ${DEM_DATA}
-elev.geoid ${OTB_DATA_ROOT}/Input/DEM/egm96.grd
-stereorect.invgridssrate 15
-mask.variancet 100
-bm.maxhoffset 15
-bm.minhoffset -15
-bm.radius 2
-bm.metric ssdmean
-postproc.med 1
-postproc.bij 1
-output.res 1.
-output.out ${TEMP}/StereoFrameworkHaiti.tif
# VALID --compare-image ${EPSILON_10}
# ${BASELINE_EXAMPLE}/elevationOutput.tif
# ${TEMP}/apTvDmDisparityMapToElevationMapTest.tif
)
OTB_TEST_APPLICATION(NAME apTvDmStereoFramework2
APP StereoFramework
OPTIONS -input.il ${LARGEINPUT}/PLEIADES/tristereo_Haiti_Pan/master_pan.tif
${LARGEINPUT}/PLEIADES/tristereo_Haiti_Pan/slave_pan_1.tif
${LARGEINPUT}/PLEIADES/tristereo_Haiti_Pan/slave_pan_2.tif
-input.co "0 1,0 2"
-elev.dem ${DEM_DATA}
-elev.geoid ${OTB_DATA_ROOT}/Input/DEM/egm96.grd
-stereorect.invgridssrate 15
-mask.variancet 100
-bm.maxhoffset 15
-bm.minhoffset -15
-bm.radius 2
-bm.metric ssdmean
-postproc.med 1
-postproc.bij 1
-output.res 1.
-output.out ${TEMP}/StereoFrameworkHaiti2.tif
# VALID --compare-image ${EPSILON_10}
# ${BASELINE_EXAMPLE}/elevationOutput.tif
# ${TEMP}/apTvDmDisparityMapToElevationMapTest.tif
)
ENDIF(OTB_DATA_USE_LARGEINPUT)
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