CMakeLists.txt 1.4 KB
Newer Older
Jordi Inglada's avatar
Jordi Inglada committed
1
2
3
4
PROJECT(PatentedExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")


Jordi Inglada's avatar
Jordi Inglada committed
5
6
ADD_EXECUTABLE(FuzzyConnectednessImageFilter FuzzyConnectednessImageFilter.cxx )
TARGET_LINK_LIBRARIES(FuzzyConnectednessImageFilter OTBIO OTBCommon ITKNumerics ITKIO)
Jordi Inglada's avatar
Jordi Inglada committed
7

Jordi Inglada's avatar
Jordi Inglada committed
8
9
#ADD_EXECUTABLE(HybridSegmentationFuzzyVoronoi HybridSegmentationFuzzyVoronoi.cxx )
#TARGET_LINK_LIBRARIES(HybridSegmentationFuzzyVoronoi OTBIO OTBCommon ITKNumerics ITKIO)
Jordi Inglada's avatar
Jordi Inglada committed
10
11


Julien Michel's avatar
Julien Michel committed
12

13
IF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )
Julien Michel's avatar
Julien Michel committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

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

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

SET(EXE_TESTS ${CXX_TEST_PATH}/otbPatentedExamplesTests)

SET(TOL 0.0)


# ------- HybridSegmentationFuzzyVoronoiTest----------

ADD_TEST(HybridSegmentationFuzzyVoronoiTest ${EXE_TESTS}
	--compare-n-images ${TOL} 1
	${BASELINE}/HybridSegmentationFuzzyVoronoiOutput.png
	${TEMP}/HybridSegmentationFuzzyVoronoiOutput.png
	HybridSegmentationFuzzyVoronoiTest
	${INPUTDATA}/QB_Suburb.png
	${TEMP}/HybridSegmentationFuzzyVoronoiOutput.png
    111 38 75 20 0.5 3.0
)


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

41
ENDIF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )