File: itkGradientRecursiveGaussianImageFilter.wrap

package info (click to toggle)
insighttoolkit4 4.13.3withdata-dfsg2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 491,256 kB
  • sloc: cpp: 557,600; ansic: 180,546; fortran: 34,788; python: 16,572; sh: 2,187; lisp: 2,070; tcl: 993; java: 362; perl: 200; makefile: 133; csh: 81; pascal: 69; xml: 19; ruby: 10
file content (35 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download | duplicates (5)
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
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()