CMakeLists.txt 17.5 KB
Newer Older
1
 
Thomas Feuvrier's avatar
Thomas Feuvrier committed
2
IF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )
3
4
5
6
7
8

SET(BASELINE ${OTB_DATA_ROOT}/Baseline/OTB/Images)
SET(BASELINE_FILES ${OTB_DATA_ROOT}/Baseline/OTB/Files)
SET(INPUTDATA ${OTB_DATA_ROOT}/Input)
SET(TEMP ${OTBTesting_BINARY_DIR}/Temporary)

9
# Tolerance for pixel difference
10
11
SET(TOL 0.0)

12
13
#EPSILON loose tolerance for multiplatform support.
SET(EPSILON 0.0000000001)
14

15
16
17
SET(DISPARITYMAP_TESTS1 ${CXX_TEST_PATH}/otbDisparityMapTests1)
SET(DISPARITYMAP_TESTS2 ${CXX_TEST_PATH}/otbDisparityMapTests2)
SET(DISPARITYMAP_TESTS3 ${CXX_TEST_PATH}/otbDisparityMapTests3)
18

19
20
21
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbDisparityMapTests1 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
22
23
# -------            otb::DisparityMapEstimationMethod   ----------

24
ADD_TEST(dmTuDisparityMapEstimationMethodNew ${DISPARITYMAP_TESTS1} 
25
26
	 otbDisparityMapEstimationMethodNew)

27
ADD_TEST(dmTvDisparityMapEstimationMethod ${DISPARITYMAP_TESTS1} 
28
29
30
31
32
33
34
35
36
37
38
   --compare-ascii ${TOL}
 		   ${BASELINE_FILES}/dmDisparityMapEstimationOutput1.txt
 		   ${TEMP}/dmDisparityMapEstimationOutput1.txt
	 otbDisparityMapEstimationMethod
	           ${INPUTDATA}/fixed.png
	           ${INPUTDATA}/moving.png
	           ${INPUTDATA}/pointSet.png
	           ${TEMP}/dmDisparityMapEstimationOutput1.txt
		   20 20
)

39
40
# -------            otb::PointSetToDeformationFieldGenerator   ----------

41
ADD_TEST(dmTuPointSetToDeformationFieldGeneratorNew ${DISPARITYMAP_TESTS1} 
42
43
	 otbPointSetToDeformationFieldGeneratorNew)

44
45
# -------            otb::NearestPointDeformationFieldGenerator   ----------

46
ADD_TEST(dmTuNearestPointDeformationFieldGeneratorNew ${DISPARITYMAP_TESTS1} 
47
48
	 otbNearestPointDeformationFieldGeneratorNew)

49
ADD_TEST(dmTvNearestPointDeformationFieldGenerator ${DISPARITYMAP_TESTS1} 
50
              --compare-image ${EPSILON}
51
52
53
54
55
		${BASELINE}/dmTvNearestPointDeformationField.hdr
		${TEMP}/dmTvNearestPointDeformationField.hdr	
	 otbNearestPointDeformationFieldGenerator
	 ${TEMP}/dmTvNearestPointDeformationField.hdr
)
56

57
58
59
60
61
# -------            otb::NCCRegistrationFilter   ----------

ADD_TEST(dmTuNCCRegistrationFilterNew ${DISPARITYMAP_TESTS1} 
	 otbNCCRegistrationFilterNew)

62
63
64
65
66
67
# -------            otb::MIRegistrationFilter   ----------

ADD_TEST(dmTuMIRegistrationFilterNew ${DISPARITYMAP_TESTS1} 
	 otbMIRegistrationFilterNew)

       
68
69
# -------  otb::NNearestPointsLinearInterpolateDeformationFieldGenerator   ----------

70
ADD_TEST(dmTuNNearestPointsLinearInterpolateDeformationFieldGeneratorNew ${DISPARITYMAP_TESTS1} 
71
72
	 otbNNearestPointsLinearInterpolateDeformationFieldGeneratorNew)

73
ADD_TEST(dmTvNNearestPointsLinearInterpolateDeformationFieldGenerator ${DISPARITYMAP_TESTS1} 
74
              --compare-image ${EPSILON}
75
76
77
78
79
80
81
82
83
		${BASELINE}/dmTvNNearestPointsLinearInterpolateDeformationField.hdr
		${TEMP}/dmTvNNearestPointsLinearInterpolateDeformationField.hdr	
	 otbNNearestPointsLinearInterpolateDeformationFieldGenerator
	 ${TEMP}/dmTvNNearestPointsLinearInterpolateDeformationField.hdr
)


# -------  otb::BSplinesInterpolateDeformationFieldGenerator   ----------

84
ADD_TEST(dmTuBSplinesInterpolateDeformationFieldGeneratorNew ${DISPARITYMAP_TESTS1} 
85
86
	 otbNNearestPointsLinearInterpolateDeformationFieldGeneratorNew)

87
ADD_TEST(dmTvBSplinesInterpolateDeformationFieldGenerator ${DISPARITYMAP_TESTS1} 
88
              --compare-image ${EPSILON}
89
90
91
92
93
94
		${BASELINE}/dmTvBSplinesInterpolateDeformationField.hdr
		${TEMP}/dmTvBSplinesInterpolateDeformationField.hdr	
	 otbBSplinesInterpolateDeformationFieldGenerator
	 ${TEMP}/dmTvBSplinesInterpolateDeformationField.hdr
)

95

96
# -------            otb::PointSetWithTransformToDeformationFieldGenerator   ----------
97

98
ADD_TEST(dmTuPointSetWithTransformToDeformationFieldGeneratorNew ${DISPARITYMAP_TESTS1} 
99
100
101
	 otbPointSetWithTransformToDeformationFieldGeneratorNew)


102
103
104
105
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbDisparityMapTests2 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

106
# -------            otb::NearestTransformDeformationFieldGenerator   ----------
107

108
ADD_TEST(dmTuNearestTransformDeformationFieldGeneratorNew ${DISPARITYMAP_TESTS2} 
109
110
	 otbNearestTransformDeformationFieldGeneratorNew)

111
ADD_TEST(dmTvNearestTransformDeformationFieldGenerator ${DISPARITYMAP_TESTS2} 
112
              --compare-image ${EPSILON}
113
114
115
116
117
118
		${BASELINE}/dmTvNearestTransformDeformationField.hdr
		${TEMP}/dmTvNearestTransformDeformationField.hdr	
	 otbNearestTransformDeformationFieldGenerator
	 ${TEMP}/dmTvNearestTransformDeformationField.hdr
)

119
120
121

# -------  otb::NNearestTransformsLinearInterpolateDeformationFieldGenerator   ----------

122
ADD_TEST(dmTuNNearestTransformsLinearInterpolateDeformationFieldGeneratorNew ${DISPARITYMAP_TESTS2} 
123
124
	 otbNNearestTransformsLinearInterpolateDeformationFieldGeneratorNew)

125
ADD_TEST(dmTvNNearestTransformsLinearInterpolateDeformationFieldGenerator ${DISPARITYMAP_TESTS2} 
126
              --compare-image ${EPSILON}
127
128
129
130
131
132
		${BASELINE}/dmTvNNearestTransformsLinearInterpolateDeformationField.hdr
		${TEMP}/dmTvNNearestTransformsLinearInterpolateDeformationField.hdr	
	 otbNNearestTransformsLinearInterpolateDeformationFieldGenerator
	 ${TEMP}/dmTvNNearestTransformsLinearInterpolateDeformationField.hdr
)

133
134
# -------  otb::BSplinesInterpolateTransformDeformationFieldGenerator ----------

135
ADD_TEST(dmTuBSplinesInterpolateTransformDeformationFieldGeneratorNew ${DISPARITYMAP_TESTS2} 
136
137
	 otbBSplinesInterpolateTransformDeformationFieldGeneratorNew)

138
ADD_TEST(dmTvBSplinesInterpolateTransformDeformationFieldGenerator ${DISPARITYMAP_TESTS2} 
139
140
141
142
143
144
145
              --compare-image ${EPSILON}
		${BASELINE}/dmTvBSplinesInterpolateTransformDeformationFieldGenerator.hdr
		${TEMP}/dmTvBSplinesInterpolateTransformDeformationFieldGenerator.hdr	
	 otbBSplinesInterpolateTransformDeformationFieldGenerator
	 ${TEMP}/dmTvBSplinesInterpolateTransformDeformationFieldGenerator.hdr
)

146
147
# -------  Additional tests for deformation fields estimation   ----------

148
149
ADD_TEST(dmTvTranslationDeformationFieldEstimation1 ${DISPARITYMAP_TESTS2} 
              --compare-n-images ${EPSILON} 6
150
151
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_bs_df.hdr  
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_bs_df.hdr 
152
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_bs_oi.tif
153
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_bs_oi.tif
154
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_np_df.hdr
155
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_np_df.hdr
156
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_np_oi.tif
157
158
159
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_np_oi.tif
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_nnp_df.hdr  
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_nnp_df.hdr 
160
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_nnp_oi.tif
161
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_nnp_oi.tif
162
163
164
165
166
167
168
169
170
	 otbTranslationDeformationFieldEstimation
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub.tif
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub_warped_translation.tif
	 ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput
	  15 10 10 250 0.95 4 50
)

ADD_TEST(dmTvTranslationDeformationFieldEstimation2 ${DISPARITYMAP_TESTS2} 
              --compare-n-images ${EPSILON} 6
171
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_nt_df.hdr
172
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_nt_df.hdr
173
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_nt_oi.tif
174
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_nt_oi.tif
175
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_nnt_df.hdr
176
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_nnt_df.hdr
177
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_nnt_oi.tif
178
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_nnt_oi.tif
179
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_bst_df.hdr
180
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_bst_df.hdr
181
	      ${BASELINE}/dmTvTranslationDeformationFieldEstimationOutput_bst_oi.tif
182
	      ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput_bst_oi.tif
183
184
185
186
187
188
189
	 otbTranslationDeformationFieldEstimation
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub.tif
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub_warped_translation.tif
	 ${TEMP}/dmTvTranslationDeformationFieldEstimationOutput
	  15 10 10 250 0.95 4 50
)

190
ADD_TEST(dmTvEuler2DDeformationFieldEstimation ${DISPARITYMAP_TESTS2} 
191
              --compare-n-images ${EPSILON} 12
192
193
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_bs_df.hdr  
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_bs_df.hdr 
194
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_bs_oi.tif
195
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_bs_oi.tif
196
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_np_df.hdr
197
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_np_df.hdr
198
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_np_oi.tif
199
200
201
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_np_oi.tif
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_nnp_df.hdr  
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_nnp_df.hdr 
202
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_nnp_oi.tif
203
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_nnp_oi.tif
204
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_nt_df.hdr
205
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_nt_df.hdr
206
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_nt_oi.tif
207
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_nt_oi.tif
208
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_nnt_df.hdr
209
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_nnt_df.hdr
210
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_nnt_oi.tif
211
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_nnt_oi.tif
212
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_bst_df.hdr
213
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_bst_df.hdr
214
	      ${BASELINE}/dmTvEuler2DDeformationFieldEstimationOutput_bst_oi.tif
215
	      ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput_bst_oi.tif
216
217
218
219
220
221
	 otbEuler2DDeformationFieldEstimation
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub.tif
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub_warped_euler2D.tif
	 ${TEMP}/dmTvEuler2DDeformationFieldEstimationOutput
	 15 10 0.01 250 0.95 4 50 128 128
)
222

223
224
ADD_TEST(dmTvCenteredRigidDeformationFieldEstimation1 ${DISPARITYMAP_TESTS2} 
              --compare-n-images ${EPSILON} 6
225
226
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_bs_df.hdr  
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_bs_df.hdr 
227
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_bs_oi.tif
228
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_bs_oi.tif
229
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_np_df.hdr
230
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_np_df.hdr
231
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_np_oi.tif
232
233
234
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_np_oi.tif
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_nnp_df.hdr  
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_nnp_df.hdr 
235
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_nnp_oi.tif
236
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_nnp_oi.tif
237
238
239
240
241
242
243
244
245
	 otbCenteredRigidDeformationFieldEstimation
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub.tif
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub_warped_centered_rigid.tif
	 ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput
	 15 5 0.01 250 0.95 4 50 127 65 
)

ADD_TEST(dmTvCenteredRigidDeformationFieldEstimation2 ${DISPARITYMAP_TESTS2} 
              --compare-n-images ${EPSILON} 6
246
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_nt_df.hdr
247
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_nt_df.hdr
248
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_nt_oi.tif
249
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_nt_oi.tif
250
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_nnt_df.hdr
251
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_nnt_df.hdr
252
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_nnt_oi.tif
253
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_nnt_oi.tif
254
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_bst_df.hdr
255
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_bst_df.hdr
256
	      ${BASELINE}/dmTvCenteredRigidDeformationFieldEstimationOutput_bst_oi.tif
257
	      ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput_bst_oi.tif
258
259
260
261
	 otbCenteredRigidDeformationFieldEstimation
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub.tif
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub_warped_centered_rigid.tif
	 ${TEMP}/dmTvCenteredRigidDeformationFieldEstimationOutput
Julien Michel's avatar
Julien Michel committed
262
	 15 5 0.01 250 0.95 4 50 127 65 
263
264
)

265
266
ADD_TEST(dmTvSinusoidDeformationFieldEstimation1 ${DISPARITYMAP_TESTS2} 
              --compare-n-images ${EPSILON} 6	      
267
268
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_bs_df.hdr  
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_bs_df.hdr 
269
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_bs_oi.tif
270
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_bs_oi.tif
271
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_np_df.hdr
272
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_np_df.hdr
273
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_np_oi.tif
274
275
276
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_np_oi.tif
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_nnp_df.hdr  
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_nnp_df.hdr 
277
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_nnp_oi.tif
278
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_nnp_oi.tif
279
280
281
282
283
284
285
286
287
	 otbTranslationDeformationFieldEstimation
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub.tif
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub_warped_sinus.tif
	 ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput
	  15 10 10 250 0.95 4 25
)

ADD_TEST(dmTvSinusoidDeformationFieldEstimation2 ${DISPARITYMAP_TESTS2} 
              --compare-n-images ${EPSILON} 6
288
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_nt_df.hdr
289
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_nt_df.hdr
290
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_nt_oi.tif
291
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_nt_oi.tif
292
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_nnt_df.hdr
293
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_nnt_df.hdr
294
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_nnt_oi.tif
295
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_nnt_oi.tif
296
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_bst_df.hdr
297
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_bst_df.hdr
298
	      ${BASELINE}/dmTvSinusoidDeformationFieldEstimationOutput_bst_oi.tif
299
	      ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput_bst_oi.tif
300
301
302
303
304
305
	 otbTranslationDeformationFieldEstimation
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub.tif
	 ${INPUTDATA}/ROI_IKO_PAN_LesHalles_sub_warped_sinus.tif
	 ${TEMP}/dmTvSinusoidDeformationFieldEstimationOutput
	  15 10 10 250 0.95 4 25
)
306
307
308
309
310
311

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ otbDisparityMapTests3 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 


312
# -------       Fichiers sources CXX -----------------------------------
313
SET(BasicDisparityMap_SRCS1
314
315
otbDisparityMapEstimationMethodNew.cxx
otbDisparityMapEstimationMethod.cxx
316
otbNCCRegistrationFilterNew.cxx
317
otbMIRegistrationFilterNew.cxx
318
otbPointSetToDeformationFieldGeneratorNew.cxx
319
320
otbNearestPointDeformationFieldGeneratorNew.cxx
otbNearestPointDeformationFieldGenerator.cxx
321
322
323
324
otbNNearestPointsLinearInterpolateDeformationFieldGeneratorNew.cxx
otbNNearestPointsLinearInterpolateDeformationFieldGenerator.cxx
otbBSplinesInterpolateDeformationFieldGeneratorNew.cxx
otbBSplinesInterpolateDeformationFieldGenerator.cxx
325
otbPointSetWithTransformToDeformationFieldGeneratorNew.cxx
326
327
)
SET(BasicDisparityMap_SRCS2
328
329
otbNearestTransformDeformationFieldGeneratorNew.cxx
otbNearestTransformDeformationFieldGenerator.cxx
330
331
otbNNearestTransformsLinearInterpolateDeformationFieldGeneratorNew.cxx
otbNNearestTransformsLinearInterpolateDeformationFieldGenerator.cxx
332
333
334
otbTranslationDeformationFieldEstimation.cxx
otbEuler2DDeformationFieldEstimation.cxx
otbCenteredRigidDeformationFieldEstimation.cxx
335
336
otbBSplinesInterpolateTransformDeformationFieldGeneratorNew.cxx
otbBSplinesInterpolateTransformDeformationFieldGenerator.cxx
337
)
338
339
SET(BasicDisparityMap_SRCS3
)
340
341
342

INCLUDE_DIRECTORIES("${OTBTesting_BINARY_DIR}")

343
ADD_EXECUTABLE(otbDisparityMapTests1 otbDisparityMapTests1.cxx ${BasicDisparityMap_SRCS1})
344
TARGET_LINK_LIBRARIES(otbDisparityMapTests1 OTBIO OTBDisparityMap)
345
ADD_EXECUTABLE(otbDisparityMapTests2 otbDisparityMapTests2.cxx ${BasicDisparityMap_SRCS2})
346
TARGET_LINK_LIBRARIES(otbDisparityMapTests2 OTBIO OTBDisparityMap)
347
ADD_EXECUTABLE(otbDisparityMapTests3 otbDisparityMapTests3.cxx ${BasicDisparityMap_SRCS3})
348
TARGET_LINK_LIBRARIES(otbDisparityMapTests3 OTBIO OTBDisparityMap)
349

Thomas Feuvrier's avatar
Thomas Feuvrier committed
350
ENDIF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )