Commit fb2660d8 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

TEST: add non regression test for StereoReconstruction example

parent 565b4787
......@@ -44,6 +44,17 @@ ADD_TEST(dmTeSimpleDisparityMapEstimationExampleTest ${EXE_TESTS}
100 10 15 10 10 250 0.9
)
ADD_TEST(dmTeStereoReconstructionExampleTest ${EXE_TESTS}
--compare-image ${TOL}
${BASELINE}/elevationOutput.tif
${TEMP}/elevationOutput.tif
StereoReconstructionExampleTest
${INPUTDATA}/sensor_stereo_left.tif
${INPUTDATA}/sensor_stereo_right.tif
${TEMP}/elevationOutput.tif
140
)
INCLUDE_DIRECTORIES(${OTB_SOURCE_DIR}/Testing/Code)
ADD_EXECUTABLE(otbDisparityMapExamplesTests otbDisparityMapExamplesTests.cxx)
TARGET_LINK_LIBRARIES(otbDisparityMapExamplesTests ITKAlgorithms ITKStatistics OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction OTBLearning OTBMultiScale OTBTesting)
......
......@@ -24,8 +24,13 @@
void RegisterTests()
{
REGISTER_TEST(SimpleDisparityMapEstimationExampleTest);
REGISTER_TEST(StereoReconstructionExampleTest);
}
#undef main
#define main SimpleDisparityMapEstimationExampleTest
#include "SimpleDisparityMapEstimationExample.cxx"
#undef main
#define main StereoReconstructionExampleTest
#include "StereoReconstructionExample.cxx"
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