File: itkGradientRecursiveGaussianImageFilter.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,261 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::GradientRecursiveGaussianImageFilter" POINTER)

# Input can be a scalar image or a vector image
# The output is a covector image, with:
# number of components = 2 * number of components of the input

foreach(image_dim ${ITK_WRAP_IMAGE_DIMS})

  # Input type: scalar image
  foreach(t ${WRAP_ITK_SCALAR})
    foreach(cv ${WRAP_ITK_COV_VECTOR_REAL})
      itk_wrap_template("${ITKM_I${t}${image_dim}}${ITKM_I${cv}2${image_dim}}"
                        "${ITKT_I${t}${image_dim}},${ITKT_I${cv}2${image_dim}}")
    endforeach()
  endforeach()

  # Input type: vectorial image
  foreach(input_vector_dim ${ITK_WRAP_VECTOR_COMPONENTS})
    math(EXPR output_vector_dim ${input_vector_dim}*2)
    list(
      FIND
      ITK_WRAP_VECTOR_COMPONENTS
      "${output_vector_dim}"
      index)
    if(index GREATER -1)
      foreach(t ${WRAP_ITK_VECTOR_REAL})
        foreach(cv ${WRAP_ITK_COV_VECTOR_REAL})
          itk_wrap_template(
            "${ITKM_I${t}${input_vector_dim}${image_dim}}${ITKM_I${cv}${output_vector_dim}${image_dim}}"
            "${ITKT_I${t}${input_vector_dim}${image_dim}},${ITKT_I${cv}${output_vector_dim}${image_dim}}")
        endforeach()
      endforeach()
    endif()
  endforeach()

endforeach()

itk_end_wrap_class()