forked from InsightSoftwareConsortium/ITK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
514 lines (436 loc) · 19.6 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
#
# Examples on the use of segmentation algorithms
#
PROJECT(ImageSegmentation)
INCLUDE_REGULAR_EXPRESSION("^.*$")
ADD_EXECUTABLE(ConfidenceConnected ConfidenceConnected.cxx )
TARGET_LINK_LIBRARIES(ConfidenceConnected ITKNumerics ITKIO)
ADD_EXECUTABLE(NeighborhoodConnectedImageFilter NeighborhoodConnectedImageFilter.cxx )
TARGET_LINK_LIBRARIES(NeighborhoodConnectedImageFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(IsolatedConnectedImageFilter IsolatedConnectedImageFilter.cxx )
TARGET_LINK_LIBRARIES(IsolatedConnectedImageFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(ConnectedThresholdImageFilter ConnectedThresholdImageFilter.cxx )
TARGET_LINK_LIBRARIES(ConnectedThresholdImageFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(FastMarchingImageFilter FastMarchingImageFilter.cxx )
TARGET_LINK_LIBRARIES(FastMarchingImageFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(GeodesicActiveContourShapePriorLevelSetImageFilter
GeodesicActiveContourShapePriorLevelSetImageFilter.cxx )
TARGET_LINK_LIBRARIES(GeodesicActiveContourShapePriorLevelSetImageFilter
ITKNumerics ITKIO ITKStatistics)
ADD_EXECUTABLE(DeformableModel2 DeformableModel2.cxx )
TARGET_LINK_LIBRARIES(DeformableModel2 ITKAlgorithms ITKNumerics ITKIO)
ADD_EXECUTABLE(GibbsPriorImageFilter1 GibbsPriorImageFilter1.cxx )
TARGET_LINK_LIBRARIES(GibbsPriorImageFilter1 ITKAlgorithms ITKNumerics ITKIO)
ADD_EXECUTABLE(HoughTransform2DCirclesImageFilter HoughTransform2DCirclesImageFilter.cxx )
TARGET_LINK_LIBRARIES(HoughTransform2DCirclesImageFilter ITKBasicFilters ITKIO)
ADD_EXECUTABLE(HoughTransform2DLinesImageFilter HoughTransform2DLinesImageFilter.cxx )
TARGET_LINK_LIBRARIES(HoughTransform2DLinesImageFilter ITKBasicFilters ITKIO)
ADD_EXECUTABLE(VectorConfidenceConnected VectorConfidenceConnected.cxx )
TARGET_LINK_LIBRARIES(VectorConfidenceConnected ITKNumerics ITKIO)
ADD_EXECUTABLE(RelabelComponentImageFilter RelabelComponentImageFilter.cxx )
TARGET_LINK_LIBRARIES(RelabelComponentImageFilter ITKNumerics ITKIO)
SET(SEGMENTATION_EXAMPLES ${CXX_TEST_PATH}/SegmentationExamples)
SET(SEGMENTATION_EXAMPLES2 ${CXX_TEST_PATH}/SegmentationExamples2)
SET(SEGMENTATION_EXAMPLES3 ${CXX_TEST_PATH}/SegmentationExamples3)
SET(SEGMENTATION_EXAMPLES4 ${CXX_TEST_PATH}/SegmentationExamples4)
SET(SEGMENTATION_EXAMPLES5 ${CXX_TEST_PATH}/SegmentationExamples5)
SET(SEGMENTATION_EXAMPLES6 ${CXX_TEST_PATH}/SegmentationExamples6)
SET(SEGMENTATION_EXAMPLES7 ${CXX_TEST_PATH}/SegmentationExamples7)
SET(SEGMENTATION_EXAMPLES8 ${CXX_TEST_PATH}/SegmentationExamples8)
SET(SEGMENTATION_EXAMPLES9 ${CXX_TEST_PATH}/SegmentationExamples9)
SET(BASELINE ${ITK_DATA_ROOT}/Baseline/Segmentation)
SET(TEMP ${ITK_BINARY_DIR}/Testing/Temporary)
IF( NOT ITK_DISABLE_CXX_TESTING )
ADD_TEST(ConfidenceConnectedWhiteTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/ConfidenceConnectedWhiteTest.png
${TEMP}/ConfidenceConnectedWhiteTest.png
ConfidenceConnectedTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ConfidenceConnectedWhiteTest.png
60 116
)
ADD_TEST(ConfidenceConnectedVentricleTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/ConfidenceConnectedVentricleTest.png
${TEMP}/ConfidenceConnectedVentricleTest.png
ConfidenceConnectedTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ConfidenceConnectedVentricleTest.png
81 112
)
ADD_TEST(ConfidenceConnectedGrayTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/ConfidenceConnectedGrayTest.png
${TEMP}/ConfidenceConnectedGrayTest.png
ConfidenceConnectedTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ConfidenceConnectedGrayTest.png
107 69
)
ADD_TEST(ConnectedThresholdWhiteTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/ConnectedThresholdWhiteTest.png
${TEMP}/ConnectedThresholdWhiteTest.png
ConnectedThresholdImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ConnectedThresholdWhiteTest.png
60 116 150 180
)
ADD_TEST(ConnectedThresholdVentricleTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/ConnectedThresholdVentricleTest.png
${TEMP}/ConnectedThresholdVentricleTest.png
ConnectedThresholdImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ConnectedThresholdVentricleTest.png
81 112 210 250
)
ADD_TEST(ConnectedThresholdGrayTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/ConnectedThresholdGrayTest.png
${TEMP}/ConnectedThresholdGrayTest.png
ConnectedThresholdImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ConnectedThresholdGrayTest.png
107 69 180 210
)
ADD_TEST(FastMarchingLeftVentricleTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/FastMarchingLeftVentricleTest.png
${TEMP}/FastMarchingLeftVentricleTest.png
FastMarchingImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/FastMarchingLeftVentricleTest.png
81 114 1.0 -0.5 3.0 100 100
)
ADD_TEST(FastMarchingRightVentricleTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/FastMarchingRightVentricleTest.png
${TEMP}/FastMarchingRightVentricleTest.png
FastMarchingImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/FastMarchingRightVentricleTest.png
99 114 1.0 -0.5 3.0 100 100
)
ADD_TEST(FastMarchingWhiteMatterTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/FastMarchingWhiteMatterTest.png
${TEMP}/FastMarchingWhiteMatterTest.png
FastMarchingImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/FastMarchingWhiteMatterTest.png
56 92 1.0 -0.3 2.0 200 100
)
ADD_TEST(FastMarchingGrayMatterTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/FastMarchingGrayMatterTest.png
${TEMP}/FastMarchingGrayMatterTest.png
FastMarchingImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/FastMarchingGrayMatterTest.png
40 90 .5 -0.3 2.0 200 100
)
ADD_TEST(GeodesicActiveContourLeftVentricleTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/GeodesicActiveContourLeftVentricleTest.png
${TEMP}/GeodesicActiveContourLeftVentricleTest.png
GeodesicActiveContourImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/GeodesicActiveContourLeftVentricleTest.png
81 114 5.0 1.0 -0.5 3.0 2.0
)
ADD_TEST(GeodesicActiveContourRightVentricleTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/GeodesicActiveContourRightVentricleTest.png
${TEMP}/GeodesicActiveContourRightVentricleTest.png
GeodesicActiveContourImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/GeodesicActiveContourRightVentricleTest.png
99 114 5.0 1.0 -0.5 3.0 2.0
)
ADD_TEST(GeodesicActiveContourWhiteMatterTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/GeodesicActiveContourWhiteMatterTest.png
${TEMP}/GeodesicActiveContourWhiteMatterTest.png
GeodesicActiveContourImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/GeodesicActiveContourWhiteMatterTest.png
56 92 5.0 1.0 -0.3 2.0 10.0
)
ADD_TEST(GeodesicActiveContourGrayMatterTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/GeodesicActiveContourGrayMatterTest.png
${TEMP}/GeodesicActiveContourGrayMatterTest.png
GeodesicActiveContourImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/GeodesicActiveContourGrayMatterTest.png
40 90 5.0 .5 -0.3 2.0 10.0
)
ADD_TEST(ShapeDetectionLevelSetLeftVentricleTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/ShapeDetectionLevelSetLeftVentricleTest.png
${TEMP}/ShapeDetectionLevelSetLeftVentricleTest.png
ShapeDetectionLevelSetFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ShapeDetectionLevelSetLeftVentricleTest.png
81 114 5.0 1.0 -0.5 3.0 0.05 1.0
)
ADD_TEST(ShapeDetectionLevelSetRightVentricleTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/ShapeDetectionLevelSetRightVentricleTest.png
${TEMP}/ShapeDetectionLevelSetRightVentricleTest.png
ShapeDetectionLevelSetFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ShapeDetectionLevelSetRightVentricleTest.png
99 114 5.0 1.0 -0.5 3.0 0.05 1.0
)
ADD_TEST(ShapeDetectionLevelSetWhiteMatterTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/ShapeDetectionLevelSetWhiteMatterTest.png
${TEMP}/ShapeDetectionLevelSetWhiteMatterTest.png
ShapeDetectionLevelSetFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ShapeDetectionLevelSetWhiteMatterTest.png
56 92 5.0 1.0 -0.3 2.0 0.05 1.0
)
ADD_TEST(ShapeDetectionLevelSetGrayMatterTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/ShapeDetectionLevelSetGrayMatterTest.png
${TEMP}/ShapeDetectionLevelSetGrayMatterTest.png
ShapeDetectionLevelSetFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ShapeDetectionLevelSetGrayMatterTest.png
40 90 5.0 1.0 -0.3 2.0 0.05 1.0
)
ADD_TEST(ThresholdSegmentationLevelSetVentricleTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/ThresholdSegmentationLevelSetVentricleTest.png
${TEMP}/ThresholdSegmentationLevelSetVentricleTest.png
ThresholdSegmentationLevelSetImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ThresholdSegmentationLevelSetVentricleTest.png
81 112 5 210 250
)
ADD_TEST(ThresholdSegmentationLevelSetWhiteMatterTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/ThresholdSegmentationLevelSetWhiteMatterTest.png
${TEMP}/ThresholdSegmentationLevelSetWhiteMatterTest.png
ThresholdSegmentationLevelSetImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ThresholdSegmentationLevelSetWhiteMatterTest.png
60 116 5 150 180
)
ADD_TEST(ThresholdSegmentationLevelSetGrayMatterTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/ThresholdSegmentationLevelSetGrayMatterTest.png
${TEMP}/ThresholdSegmentationLevelSetGrayMatterTest.png
ThresholdSegmentationLevelSetImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/ThresholdSegmentationLevelSetGrayMatterTest.png
107 69 5 180 210
)
ADD_TEST(CellularSegmentation1Test ${SEGMENTATION_EXAMPLES9}
CellularSegmentation1Test
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
100 115 200 255 3000
)
ADD_TEST(VectorConfidenceConnectedTest1 ${SEGMENTATION_EXAMPLES8}
--compare ${BASELINE}/VectorConfidenceConnected1.png
${TEMP}/VectorConfidenceConnected1.png
VectorConfidenceConnectedTest
${ITK_SOURCE_DIR}/Examples/Data/VisibleWomanEyeSlice.png
${TEMP}/VectorConfidenceConnected1.png
70 120 7 1
)
ADD_TEST(VectorConfidenceConnectedTest2 ${SEGMENTATION_EXAMPLES8}
--compare ${BASELINE}/VectorConfidenceConnected2.png
${TEMP}/VectorConfidenceConnected2.png
VectorConfidenceConnectedTest
${ITK_SOURCE_DIR}/Examples/Data/VisibleWomanEyeSlice.png
${TEMP}/VectorConfidenceConnected2.png
23 93 7 1
)
ADD_TEST(VectorConfidenceConnectedTest3 ${SEGMENTATION_EXAMPLES8}
--compare ${BASELINE}/VectorConfidenceConnected3.png
${TEMP}/VectorConfidenceConnected3.png
VectorConfidenceConnectedTest
${ITK_SOURCE_DIR}/Examples/Data/VisibleWomanEyeSlice.png
${TEMP}/VectorConfidenceConnected3.png
66 66 3 1
)
ADD_EXECUTABLE(CannySegmentationLevelSetImageFilter CannySegmentationLevelSetImageFilter.cxx )
TARGET_LINK_LIBRARIES(CannySegmentationLevelSetImageFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(GeodesicActiveContourImageFilter GeodesicActiveContourImageFilter.cxx )
TARGET_LINK_LIBRARIES(GeodesicActiveContourImageFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(ShapeDetectionLevelSetFilter ShapeDetectionLevelSetFilter.cxx )
TARGET_LINK_LIBRARIES(ShapeDetectionLevelSetFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(SegmentationExamples2 SegmentationExamples2.cxx )
TARGET_LINK_LIBRARIES(SegmentationExamples2
ITKAlgorithms
ITKIO
ITKBasicFilters
ITKCommon
ITKStatistics
)
ADD_EXECUTABLE(SegmentationExamples3 SegmentationExamples3.cxx )
TARGET_LINK_LIBRARIES(SegmentationExamples3
ITKAlgorithms
ITKIO
ITKBasicFilters
ITKCommon
ITKStatistics
)
ADD_EXECUTABLE(CurvesLevelSetImageFilter CurvesLevelSetImageFilter.cxx )
TARGET_LINK_LIBRARIES(CurvesLevelSetImageFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(WatershedSegmentation1 WatershedSegmentation1.cxx )
TARGET_LINK_LIBRARIES(WatershedSegmentation1 ITKAlgorithms ITKNumerics ITKIO)
ADD_TEST(CannySegmentationLevelSetImageFilterTest ${SEGMENTATION_EXAMPLES}
--compare ${BASELINE}/CannySegmentationLevelSetImageFilterTest.png
${TEMP}/CannySegmentationLevelSetImageFilterTest.png
CannySegmentationLevelSetImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${BASELINE}/ThresholdSegmentationLevelSetVentricle.png
${TEMP}/CannySegmentationLevelSetImageFilterTest.png
7 0.1 -10.0 127.5 10000
)
ADD_TEST(GeodesicActiveContourShapePriorCallosumTest ${SEGMENTATION_EXAMPLES3}
--compare ${BASELINE}/GeodesicActiveContourShapePriorCallosumTest.png
${TEMP}/GeodesicActiveContourShapePriorCallosumTest.png
GeodesicActiveContourShapePriorLevelSetImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainMidSagittalSlice.png
${TEMP}/GeodesicActiveContourShapePriorCallosumTest.png
120 85 60 102 88 83 6 1.0 0.5 0.02
${ITK_SOURCE_DIR}/Examples/Data/CorpusCallosumMeanShape.mha 3
${ITK_SOURCE_DIR}/Examples/Data/CorpusCallosumMode%d.mha 10 0
)
ADD_TEST(NeighborhoodConnectedWhiteTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/NeighborhoodConnectedWhiteTest.png
${TEMP}/NeighborhoodConnectedWhiteTest.png
NeighborhoodConnectedImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/NeighborhoodConnectedWhiteTest.png
60 116 150 180
)
ADD_TEST(NeighborhoodConnectedVentricleTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/NeighborhoodConnectedVentricleTest.png
${TEMP}/NeighborhoodConnectedVentricleTest.png
NeighborhoodConnectedImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/NeighborhoodConnectedVentricleTest.png
81 112 210 250
)
ADD_TEST(NeighborhoodConnectedGrayTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/NeighborhoodConnectedGrayTest.png
${TEMP}/NeighborhoodConnectedGrayTest.png
NeighborhoodConnectedImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/NeighborhoodConnectedGrayTest.png
107 69 180 210
)
ADD_TEST(IsolatedConnectedTest ${SEGMENTATION_EXAMPLES2}
--compare ${BASELINE}/IsolatedConnectedTest.png
${TEMP}/IsolatedConnectedTest.png
IsolatedConnectedImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/IsolatedConnectedTest.png
61 140 150 63 43
)
ADD_EXECUTABLE(SegmentationExamples SegmentationExamples.cxx )
TARGET_LINK_LIBRARIES(SegmentationExamples
ITKAlgorithms
ITKIO
ITKBasicFilters
ITKCommon)
ADD_EXECUTABLE(SegmentationExamples5 SegmentationExamples5.cxx )
TARGET_LINK_LIBRARIES(SegmentationExamples5
ITKAlgorithms
ITKIO
ITKBasicFilters
ITKCommon
ITKStatistics
)
ADD_TEST(RelabelComponentImageFilterTest ${SEGMENTATION_EXAMPLES5}
--compare ${BASELINE}/RelabelComponentImageFilter.png
${TEMP}/RelabelComponentImageFilter.png
RelabelComponentImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/WatershedSegmentation.png
${TEMP}/RelabelComponentImageFilter.png
)
ADD_TEST(WatershedSegmentation1Test1 ${SEGMENTATION_EXAMPLES5}
--compare ${BASELINE}/WatershedSegmentation1Test1.png
${TEMP}/WatershedSegmentation1Test1.png
WatershedSegmentation1Test
${ITK_SOURCE_DIR}/Examples/Data/VisibleWomanEyeSlice.png
${TEMP}/WatershedSegmentation1Test1.png
2.0 10 0.0 0.05 1
)
ADD_TEST(WatershedSegmentation1Test2 ${SEGMENTATION_EXAMPLES5}
--compare ${BASELINE}/WatershedSegmentation1Test2.png
${TEMP}/WatershedSegmentation1Test2.png
WatershedSegmentation1Test
${ITK_SOURCE_DIR}/Examples/Data/VisibleWomanEyeSlice.png
${TEMP}/WatershedSegmentation1Test2.png
2.0 10 0.001 0.15 0
)
ADD_EXECUTABLE(SegmentationExamples8 SegmentationExamples8.cxx )
TARGET_LINK_LIBRARIES(SegmentationExamples8
ITKAlgorithms
ITKIO
ITKBasicFilters
ITKCommon
ITKStatistics
)
ADD_EXECUTABLE(SegmentationExamples9 SegmentationExamples9.cxx )
TARGET_LINK_LIBRARIES(SegmentationExamples9
ITKAlgorithms
ITKIO
ITKBasicFilters
ITKCommon
ITKStatistics
)
ADD_EXECUTABLE(CellularSegmentation1 CellularSegmentation1.cxx )
TARGET_LINK_LIBRARIES(CellularSegmentation1 ITKAlgorithms ITKCommon ITKNumerics ITKIO)
ADD_EXECUTABLE(DeformableModel1 DeformableModel1.cxx )
TARGET_LINK_LIBRARIES(DeformableModel1 ITKAlgorithms ITKNumerics ITKIO)
ADD_EXECUTABLE(LaplacianSegmentationLevelSetImageFilter LaplacianSegmentationLevelSetImageFilter.cxx )
TARGET_LINK_LIBRARIES(LaplacianSegmentationLevelSetImageFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(ThresholdSegmentationLevelSetImageFilter ThresholdSegmentationLevelSetImageFilter.cxx )
TARGET_LINK_LIBRARIES(ThresholdSegmentationLevelSetImageFilter ITKNumerics ITKIO)
ADD_EXECUTABLE(SegmentationExamples4 SegmentationExamples4.cxx )
TARGET_LINK_LIBRARIES(SegmentationExamples4
ITKAlgorithms
ITKIO
ITKBasicFilters
ITKCommon
ITKStatistics
)
ADD_TEST(CurvesLevelSetImageFilterTest ${SEGMENTATION_EXAMPLES4}
--compare ${BASELINE}/CurvesLevelSetImageFilterTest.png
${TEMP}/CurvesLevelSetImageFilterTest.png
CurvesLevelSetImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${TEMP}/CurvesLevelSetImageFilterTest.png
81 114 5.0 1.0 -0.5 3.0 2.0
)
ADD_EXECUTABLE(SegmentationExamples6 SegmentationExamples6.cxx )
TARGET_LINK_LIBRARIES(SegmentationExamples6
ITKAlgorithms
ITKIO
ITKBasicFilters
ITKCommon
ITKStatistics
)
ADD_TEST(HoughTransformTwo2DLinesTest ${SEGMENTATION_EXAMPLES6}
--compare ${BASELINE}/HoughTransformTwoLinesTest.png
${TEMP}/HoughTransformTwoLinesTest.png
HoughTransform2DLinesImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/HoughTransformTwoLines.png
${TEMP}/HoughTransformTwoLinesTest.png
2 5 10
)
ADD_TEST(HoughTransformTwo2DCirclesTest ${SEGMENTATION_EXAMPLES6}
--compare ${BASELINE}/HoughTransformTwoCirclesTest.png
${TEMP}/HoughTransformTwoCirclesTest.png
HoughTransform2DCirclesImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/HoughTransformTwoCircles.png
${TEMP}/HoughTransformTwoCirclesTest.png
2 6 20 3.14 10 5 1.5
)
ADD_EXECUTABLE(SegmentationExamples7 SegmentationExamples7.cxx )
TARGET_LINK_LIBRARIES(SegmentationExamples7
ITKAlgorithms
ITKIO
ITKBasicFilters
ITKCommon
ITKStatistics
)
ADD_TEST(LaplacianSegmentationLevelSetImageFilterTest ${SEGMENTATION_EXAMPLES7}
--compare ${BASELINE}/LaplacianSegmentationLevelSetImageFilter.png
${TEMP}/LaplacianSegmentationLevelSetImageFilter.png
LaplacianSegmentationLevelSetImageFilterTest
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySlice.png
${BASELINE}/ThresholdSegmentationLevelSetVentricle.png
${TEMP}/LaplacianSegmentationLevelSetImageFilter.png
10 2.0 1 127.5 15
)
ENDIF( NOT ITK_DISABLE_CXX_TESTING )