CMakeLists.txt 1.45 KB
Newer Older
1
2
3
4
5
6
7
PROJECT(DisparityMapExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")

ADD_EXECUTABLE(SimpleDisparityMapEstimationExample SimpleDisparityMapEstimationExample.cxx )
TARGET_LINK_LIBRARIES(SimpleDisparityMapEstimationExample OTBFeatureExtraction OTBCommon OTBIO ITKCommon
ITKIO)

8
IF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )
9
10
11
12
13
14
15
16
17
18
19
20
21

SET(BASELINE ${OTB_DATA_ROOT}/Baseline/Examples/DisparityMap)

SET(INPUTDATA ${OTB_SOURCE_DIR}/Examples/Data)
SET(TEMP ${OTB_BINARY_DIR}/Testing/Temporary)

SET(EXE_TESTS ${CXX_TEST_PATH}/otbDisparityMapExamplesTests)

SET(TOL 0.0)

# ------- SimpleDisparityMapEstimationExampleTest ----------


22
ADD_TEST(SimpleDisparityMapEstimationExampleTest ${EXE_TESTS}
23
24
25
 --compare-n-images ${TOL} 2
 ${BASELINE}/deformationFieldOutput.png
 ${TEMP}/deformationFieldOutput.png
26
 ${BASELINE}/resampledMovingOutput.png
27
 ${TEMP}/resampledMovingOutput.png
28
 SimpleDisparityMapEstimationExampleTest
29
30
 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_pos_spacing.tif
 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_warped_pos_spacing.tif
31
 ${TEMP}/deformationFieldOutput.png
32
 ${TEMP}/resampledMovingOutput.png
Julien Michel's avatar
Julien Michel committed
33
 100 10 15 10 10 250 0.9
34
35
36
37
38
39
)


ADD_EXECUTABLE(otbDisparityMapExamplesTests otbDisparityMapExamplesTests.cxx)
TARGET_LINK_LIBRARIES(otbDisparityMapExamplesTests gdal ITKIO ITKAlgorithms ITKStatistics ITKCommon OTBBasicFilters OTBCommon OTBDisparityMap OTBIO OTBSpatialReasoning OTBChangeDetection OTBFeatureExtraction  OTBLearning  OTBMultiScale)

40
ENDIF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )