File: CMakeLists.txt

package info (click to toggle)
insighttoolkit5 5.4.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 704,384 kB
  • sloc: cpp: 783,592; ansic: 628,724; xml: 44,704; fortran: 34,250; python: 22,874; sh: 4,078; pascal: 2,636; lisp: 2,158; makefile: 464; yacc: 328; asm: 205; perl: 203; lex: 146; tcl: 132; javascript: 98; csh: 81
file content (94 lines) | stat: -rw-r--r-- 2,818 bytes parent folder | download
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
if(ITK_WRAP_PYTHON)
  set(test_input_dir ${itk-module_SOURCE_DIR}/test/Input)

  itk_python_add_test(
    NAME
    PythonLazyLoadingImage
    COMMAND
    LazyLoadingImageTest.py)

  list(
    FIND
    ITK_WRAP_IMAGE_DIMS
    2
    wrap_2_index)
  if(ITK_WRAP_float AND wrap_2_index GREATER -1)
    # TODO: reenable the geodesic test once we get why the result is not the
    # same than with c++
    # keep just one to be sure it run, but don't compare the images

    itk_python_add_test(
      NAME
      PythonGeodesicActiveContourLeftVentricleTest
      #     --compare GeodesicActiveContourLeftVentricleTest.png
      #             DATA{${WrapITK_SOURCE_DIR}/images/GeodesicActiveContourLeftVentricleTest.png}
      COMMAND
      GeodesicActiveContourImageFilterTest.py
      DATA{${test_input_dir}/BrainProtonDensitySlice.png}
      ${ITK_TEST_OUTPUT_DIR}/GeodesicActiveContourLeftVentricleTest.png
      81
      114
      5.0
      1.0
      -0.5
      3.0
      2.0)

    itk_python_add_test(
      NAME
      PythonThresholdSegmentationLevelSetVentricleTest
      TEST_DRIVER_ARGS
      --compare
      ${ITK_TEST_OUTPUT_DIR}/PythonThresholdSegmentationLevelSetVentricleTest.png
      DATA{Baseline/PythonThresholdSegmentationLevelSetVentricleTest.png}
      COMMAND
      ThresholdSegmentationLevelSetImageFilterTest.py
      DATA{${test_input_dir}/BrainProtonDensitySlice.png}
      ${ITK_TEST_OUTPUT_DIR}/PythonThresholdSegmentationLevelSetVentricleTest.png
      81
      112
      5
      210
      250)

    itk_python_add_test(
      NAME
      PythonThresholdSegmentationLevelSetWhiteMatterTest
      TEST_DRIVER_ARGS
      --compare
      ${ITK_TEST_OUTPUT_DIR}/ThresholdSegmentationLevelSetWhiteMatterTest.png
      DATA{Baseline/PythonThresholdSegmentationLevelSetWhiteMatterTest.png}
      COMMAND
      ThresholdSegmentationLevelSetImageFilterTest.py
      DATA{${test_input_dir}/BrainProtonDensitySlice.png}
      ${ITK_TEST_OUTPUT_DIR}/ThresholdSegmentationLevelSetWhiteMatterTest.png
      60
      116
      5
      150
      180)

    itk_python_add_test(
      NAME
      PythonThresholdSegmentationLevelSetGrayMatterTest
      TEST_DRIVER_ARGS
      --compare
      ${ITK_TEST_OUTPUT_DIR}/PythonThresholdSegmentationLevelSetGrayMatterTest.png
      DATA{Baseline/PythonThresholdSegmentationLevelSetGrayMatterTest.png}
      COMMAND
      ThresholdSegmentationLevelSetImageFilterTest.py
      DATA{${WrapITK_SOURCE_DIR}/images/BrainProtonDensitySlice.png}
      ${ITK_TEST_OUTPUT_DIR}/PythonThresholdSegmentationLevelSetGrayMatterTest.png
      107
      69
      5
      180
      210)

    itk_python_expression_add_test(
      NAME
      itkBinaryMaskToNarrowBandPointSetFilterPythonTest
      EXPRESSION
      "filt = itk.BinaryMaskToNarrowBandPointSetFilter.New()")
  endif()
endif()