CMakeLists.txt 3.03 KB
Newer Older
1
2
3

#--- HyperspectralUnmixing ---#

4
5
OTB_TEST_APPLICATION(NAME  apTvHyHyperspectralUnmixing_UCLS
                     APP  HyperspectralUnmixing
6
7
8
9
                     OPTIONS -in ${INPUTDATA}/Hyperspectral/synthetic/hsi_cube.tif
                			 -ie ${INPUTDATA}/Hyperspectral/synthetic/endmembers.tif
                 			 -out ${TEMP}/apTvHyHyperspectralUnmixing_UCLS.tif double
                 			 -ua ucls 
10
11
12
13
14
15
                     VALID   --compare-image ${EPSILON_9}
                              ${BASELINE}/apTvHyHyperspectralUnmixing_UCLS.tif
                  			  ${TEMP}/apTvHyHyperspectralUnmixing_UCLS.tif)

OTB_TEST_APPLICATION(NAME  apTvHyHyperspectralUnmixing_NCLS
                     APP  HyperspectralUnmixing
16
17
18
19
                     OPTIONS -in ${INPUTDATA}/Hyperspectral/synthetic/hsi_cube.tif
                			 -ie ${INPUTDATA}/Hyperspectral/synthetic/endmembers.tif
                 			 -out ${TEMP}/apTvHyHyperspectralUnmixing_NCLS.tif double
                 			 -ua ncls 
20
21
22
                     VALID   --compare-image ${EPSILON_9}
                              ${BASELINE}/apTvHyHyperspectralUnmixing_NCLS.tif
                  			  ${TEMP}/apTvHyHyperspectralUnmixing_NCLS.tif)
23
24
25
26
27

# Too long !                
#add_test(NAME apTvHyHyperspectralUnmixing_ISRA
#         COMMAND otbTestDriver
#                 --compare-image ${EPSILON_9}
Julien Malik's avatar
Julien Malik committed
28
#                   ${BASELINE}/apTvHyHyperspectralUnmixing_ISRA.tif
29
30
31
#                   ${TEMP}/apTvHyHyperspectralUnmixing_ISRA.tif
#                 Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
#                 HyperspectralUnmixing
32
#                 $<TARGET_FILE_DIR:otbapp_HyperspectralUnmixing>
33
34
35
36
#                 -in ${INPUTDATA}/Hyperspectral/synthetic/hsi_cube.tif
#                 -ie ${INPUTDATA}/Hyperspectral/synthetic/endmembers.tif
#                 -out ${TEMP}/apTvHyHyperspectralUnmixing_ISRA.tif double
#                 -ua isra )
37
38
39
                
OTB_TEST_APPLICATION(NAME  apTvHyHyperspectralUnmixing_FCLS
                     APP  HyperspectralUnmixing
40
41
42
43
                     OPTIONS -in ${INPUTDATA}/Hyperspectral/synthetic/hsi_cube.tif
                			 -ie ${INPUTDATA}/Hyperspectral/synthetic/endmembers.tif
                 			 -out ${TEMP}/apTvHyHyperspectralUnmixing_FCLS.tif double
                 			 -ua fcls 
44
45
46
                     VALID   --compare-image ${EPSILON_9}
                              ${BASELINE}/apTvHyHyperspectralUnmixing_FCLS.tif
                  			  ${TEMP}/apTvHyHyperspectralUnmixing_FCLS.tif)
47

48
#--- VertexComponentAnalysis ---#
Cyrille Valladeau's avatar
Cyrille Valladeau committed
49
OTB_TEST_APPLICATION(NAME  apTvHyVertexComponentAnalysis
50
                     APP  VertexComponentAnalysis
51
52
53
                     OPTIONS -in ${OTB_DATA_ROOT}/Input/Hyperspectral/synthetic/hsi_cube.tif
                             -ne 5
                 	     -outendm ${TEMP}/apTvHyVertexComponentAnalysis.tif double
54
55
56
57
                             VALID   --compare-image ${EPSILON_9}
                                     ${BASELINE}/apTvHyVertexComponentAnalysis.tif
                  	             ${TEMP}/apTvHyVertexComponentAnalysis.tif
)
58

59