Skip to content

Commit

Permalink
BUG: Condition FFT wrappings on complex types
Browse files Browse the repository at this point in the history
  • Loading branch information
tbirdso committed Jan 6, 2022
1 parent ecd025e commit 0cea2d0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
12 changes: 8 additions & 4 deletions Modules/Filtering/FFT/wrapping/itkForward1DFFTImageFilter.wrap
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
itk_wrap_include("itkImage.h")
itk_wrap_class("itk::Forward1DFFTImageFilter" POINTER)
foreach(d ${ITK_WRAP_IMAGE_DIMS})
foreach(t ${WRAP_ITK_REAL})
itk_wrap_template("I${ITKM_${t}}${d}" "itk::Image<${ITKT_${t}}, ${d}>")
endforeach()
if(d GREATER 0 AND d LESS 5)
if(ITK_WRAP_complex_float AND ITK_WRAP_float)
itk_wrap_template("${ITKM_IF${d}}" "${ITKT_IF${d}}")
endif()
if(ITK_WRAP_complex_double AND ITK_WRAP_double)
itk_wrap_template("${ITKM_ID${d}}" "${ITKT_ID${d}}")
endif()
endif()
endforeach()
itk_end_wrap_class()
11 changes: 8 additions & 3 deletions Modules/Filtering/FFT/wrapping/itkInverse1DFFTImageFilter.wrap
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
itk_wrap_include("itkImage.h")
itk_wrap_class("itk::Inverse1DFFTImageFilter" POINTER)
foreach(d ${ITK_WRAP_IMAGE_DIMS})
foreach(t ${WRAP_ITK_COMPLEX_REAL})
itk_wrap_template("I${ITKM_${t}}${d}" "itk::Image<${ITKT_${t}}, ${d}>")
endforeach()
if(d GREATER 0 AND d LESS 5)
if(ITK_WRAP_complex_float AND ITK_WRAP_float)
itk_wrap_template("${ITKM_ICF${d}}" "${ITKT_ICF${d}}")
endif()
if(ITK_WRAP_complex_double AND ITK_WRAP_double)
itk_wrap_template("${ITKM_ICD${d}}" "${ITKT_ICD${d}}")
endif()
endif()
endforeach()
itk_end_wrap_class()
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
itk_wrap_include("itkImage.h")
itk_wrap_class("itk::VnlForward1DFFTImageFilter" POINTER)
foreach(d ${ITK_WRAP_IMAGE_DIMS})
foreach(t ${WRAP_ITK_REAL})
itk_wrap_template("I${ITKM_${t}}${d}" "itk::Image<${ITKT_${t}}, ${d}>")
endforeach()
if(d GREATER 0 AND d LESS 5)
if(ITK_WRAP_complex_float AND ITK_WRAP_float)
itk_wrap_template("${ITKM_IF${d}}" "${ITKT_IF${d}}")
endif()
if(ITK_WRAP_complex_double AND ITK_WRAP_double)
itk_wrap_template("${ITKM_ID${d}}" "${ITKT_ID${d}}")
endif()
endif()
endforeach()
itk_end_wrap_class()

0 comments on commit 0cea2d0

Please sign in to comment.