File: itkSLICImageFilter.wrap

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 (38 lines) | stat: -rw-r--r-- 1,530 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
itk_wrap_class("itk::SLICImageFilter" POINTER_WITH_SUPERCLASS)
set(to_types "${ITKM_IT}")
if(ITK_WRAP_unsigned_short)
  list(APPEND to_types "US")
endif()

itk_wrap_image_filter_combinations("${WRAP_ITK_SCALAR}" "${to_types}" 2+)

set(from_types "${WRAP_ITK_SCALAR}")

foreach(d ${ITK_WRAP_IMAGE_DIMS})
  foreach(f ${from_types})
    foreach(t ${to_types})
      if(ITKM_VI${f}${d} AND ITKT_VI${f}${d})
        # VectorImage as input
        itk_wrap_template("${ITKM_VI${f}${d}}${ITKM_I${t}${d}}" "${ITKT_VI${f}${d}},${ITKT_I${t}${d}}")
      endif()
      if(ITKM_I${ITKM_RGB${f}}${d} AND ITKT_I${ITKM_RGB${f}}${d})
        # Image of RGBPixel as input
        itk_wrap_template("${ITKM_I${ITKM_RGB${f}}${d}}${ITKM_I${t}${d}}"
                          "${ITKT_I${ITKM_RGB${f}}${d}},${ITKT_I${t}${d}}")
      endif()
      foreach(c ${ITK_WRAP_VECTOR_COMPONENTS})
        if(ITKM_I${ITKM_V${f}${c}}${d} AND ITKT_I${ITKM_V${f}${c}}${d})
          # Image of Vector as input
          itk_wrap_template("${ITKM_I${ITKM_V${f}${c}}${d}}${ITKM_I${t}${d}}"
                            "${ITKT_I${ITKM_V${f}${c}}${d}},${ITKT_I${t}${d}}")
        endif()
        if(ITKM_I${ITKM_CV${f}${c}}${d} AND ITKT_I${ITKM_CV${f}${c}}${d})
          # Image of CovariantVector as input
          itk_wrap_template("${ITKM_I${ITKM_CV${f}${c}}${d}}${ITKM_I${t}${d}}"
                            "${ITKT_I${ITKM_CV${f}${c}}${d}},${ITKT_I${t}${d}}")
        endif()
      endforeach()
    endforeach()
  endforeach()
endforeach()
itk_end_wrap_class()