Skip to content
Snippets Groups Projects
Commit 797ed52b authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

TEST: update stereo recontruction parameters tests

Parameers are coherent with the example available in the software guide. The same baseline is used for non-regression.
parent fb2660d8
Branches
Tags
No related merge requests found
SET(EPSILON_10 0.0000000001) SET(EPSILON_10 0.0000000001)
SET(BASELINE_EXAMPLE ${OTB_DATA_ROOT}/Baseline/Examples/DisparityMap)
#--- StereoSensorModelToElevationMap ---# #--- StereoSensorModelToElevationMap ---#
OTB_TEST_APPLICATION(NAME apTvDmStereoSensorModelToElevationMapTest OTB_TEST_APPLICATION(NAME apTvDmStereoSensorModelToElevationMapTest
...@@ -60,6 +60,7 @@ OTB_TEST_APPLICATION(NAME apTvDmFineRegistrationTest ...@@ -60,6 +60,7 @@ OTB_TEST_APPLICATION(NAME apTvDmFineRegistrationTest
${TEMP}/apTvDmFineRegistrationTest.tif ${TEMP}/apTvDmFineRegistrationTest.tif
) )
#stereo reconstruction of images pair
#--- StereoRectificationGridGenerator ---# #--- StereoRectificationGridGenerator ---#
OTB_TEST_APPLICATION(NAME apTvDmStereoRectificationGridGeneratorTest OTB_TEST_APPLICATION(NAME apTvDmStereoRectificationGridGeneratorTest
APP StereoRectificationGridGenerator APP StereoRectificationGridGenerator
...@@ -67,14 +68,9 @@ OTB_TEST_APPLICATION(NAME apTvDmStereoRectificationGridGeneratorTest ...@@ -67,14 +68,9 @@ OTB_TEST_APPLICATION(NAME apTvDmStereoRectificationGridGeneratorTest
-io.inright ${INPUTDATA}/sensor_stereo_right.tif -io.inright ${INPUTDATA}/sensor_stereo_right.tif
-io.outleft ${TEMP}/apTvDmStereoRectificationGridGeneratorLeftTest.tif -io.outleft ${TEMP}/apTvDmStereoRectificationGridGeneratorLeftTest.tif
-io.outright ${TEMP}/apTvDmStereoRectificationGridGeneratorRightTest.tif -io.outright ${TEMP}/apTvDmStereoRectificationGridGeneratorRightTest.tif
-epi.elevation.avg.value 300 -epi.elevation.avg.value 140
-epi.scale 0.5 -epi.scale 1.0
-epi.step 5 -epi.step 4
VALID --compare-n-images ${EPSILON_7} 2
${BASELINE}/feTvStereorectificationDeformationFieldSourceOutput1.tif
${TEMP}/apTvDmStereoRectificationGridGeneratorLeftTest.tif
${BASELINE}/feTvStereorectificationDeformationFieldSourceOutput2.tif
${TEMP}/apTvDmStereoRectificationGridGeneratorRightTest.tif
) )
#--- GridBasedImageResampling ---# #--- GridBasedImageResampling ---#
...@@ -105,12 +101,11 @@ OTB_TEST_APPLICATION(NAME apTvDmBlockMatchingTest ...@@ -105,12 +101,11 @@ OTB_TEST_APPLICATION(NAME apTvDmBlockMatchingTest
OPTIONS -io.inleft ${TEMP}/apTvDmGridBasedImageResamplingLeftTest.tif OPTIONS -io.inleft ${TEMP}/apTvDmGridBasedImageResamplingLeftTest.tif
-io.inright ${TEMP}/apTvDmGridBasedImageResamplingRightTest.tif -io.inright ${TEMP}/apTvDmGridBasedImageResamplingRightTest.tif
-io.out ${TEMP}/apTvDmBlockMatchingTest.tif -io.out ${TEMP}/apTvDmBlockMatchingTest.tif
-bm.minhd 25 -bm.minhd -24
-bm.maxhd 45 -bm.maxhd 0
-bm.minvd 1 -bm.minvd 0
-bm.maxvd 2 -bm.maxvd 0
-mask.nodata 0 -mask.nodata 0
-io.outmetric 1
-bm.metric ncc -bm.metric ncc
-bm.subpixel dichotomy -bm.subpixel dichotomy
-bm.medianfilter.radius 2 -bm.medianfilter.radius 2
...@@ -128,8 +123,12 @@ OTB_TEST_APPLICATION(NAME apTvDmDisparityMapToElevationMap ...@@ -128,8 +123,12 @@ OTB_TEST_APPLICATION(NAME apTvDmDisparityMapToElevationMap
-io.lgrid ${TEMP}/apTvDmStereoRectificationGridGeneratorLeftTest.tif -io.lgrid ${TEMP}/apTvDmStereoRectificationGridGeneratorLeftTest.tif
-io.rgrid ${TEMP}/apTvDmStereoRectificationGridGeneratorRightTest.tif -io.rgrid ${TEMP}/apTvDmStereoRectificationGridGeneratorRightTest.tif
-io.out ${TEMP}/apTvDmDisparityMapToElevationMapTest.tif -io.out ${TEMP}/apTvDmDisparityMapToElevationMapTest.tif
-hmin 150 -hmin 130
-hmax 400 -hmax 220
-elev.average.value 300 -elev.average.value 140
-step 2.5
VALID --compare-image ${EPSILON_10}
${BASELINE_EXAMPLE}/elevationOutput.tif
${TEMP}/elevationOutput.tif
) )
SET_TESTS_PROPERTIES(apTvDmDisparityMapToElevationMap PROPERTIES DEPENDS apTvDmBlockMatchingTest) SET_TESTS_PROPERTIES(apTvDmDisparityMapToElevationMap PROPERTIES DEPENDS apTvDmBlockMatchingTest)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment