diff --git a/wrapping/CMakeLists.txt b/wrapping/CMakeLists.txt index bbea9ec..9ea3628 100644 --- a/wrapping/CMakeLists.txt +++ b/wrapping/CMakeLists.txt @@ -8,17 +8,17 @@ endif() itk_wrap_module(Ultrasound) set(WRAPPER_SUBMODULE_ORDER + itkSpecialCoordinatesImage itkCurvilinearArraySpecialCoordinatesImage - itkImageUltrasound # Extra itk::Image wrappings for SupportWindow filters itkCurvilinearArraySpecialCoordinatesImageFilters - itkPhasedArray3DSpecialCoordinatesImage # CASCI needs to come before itkAttenuationImageFilter itkBlockMatchingMetricImageFilter itkBlockMatchingNormalizedCrossCorrelationMetricImageFilter itkBlockMatchingNormalizedCrossCorrelationFFTMetricImageFilter itkBlockMatchingNormalizedCrossCorrelationNeighborhoodIteratorMetricImageFilter + itkImageUltrasound # must come before Spectra1DSupportWindow itkSpectra1DSupportWindowImageFilter - itkSpectra1DSupportWindowToMaskImageFilter + itkSpectra1DSupportWindowToMaskImageFilter # must come after CASCI itkFrequencyDomain1DFilterFunction itkFrequencyDomain1DImageFilter itkRegionFromReferenceImageFilter diff --git a/wrapping/itkCurvilinearArraySpecialCoordinatesImage.wrap b/wrapping/itkCurvilinearArraySpecialCoordinatesImage.wrap index 31feee1..e3c1752 100644 --- a/wrapping/itkCurvilinearArraySpecialCoordinatesImage.wrap +++ b/wrapping/itkCurvilinearArraySpecialCoordinatesImage.wrap @@ -1,19 +1,5 @@ -itk_wrap_include("list") itk_wrap_include("complex") -# Wrap underlying class hierarchy -itk_wrap_class("itk::SpecialCoordinatesImage" POINTER) - foreach(d ${ITK_WRAP_IMAGE_DIMS}) - foreach(t ${WRAP_ITK_SCALAR}) - itk_wrap_template("${ITKM_${t}}${d}" "${ITKT_${t}}, ${d}") - endforeach() - foreach(t3 ${WRAP_ITK_COMPLEX_REAL}) - itk_wrap_template("${ITKM_${t3}}${d}" "${ITKT_${t3}}, ${d}") - endforeach() - endforeach() -itk_end_wrap_class() - - # Explicitly override template method wrappings so that implicit # scalar type is always `double` for greatest precision. # Adds wrapping overrides to `itkCurvilinearArraySpecialCoordinatesImage_ext.i` configured with diff --git a/wrapping/itkCurvilinearArraySpecialCoordinatesImageFilters.wrap b/wrapping/itkCurvilinearArraySpecialCoordinatesImageFilters.wrap index e32b332..730a07c 100644 --- a/wrapping/itkCurvilinearArraySpecialCoordinatesImageFilters.wrap +++ b/wrapping/itkCurvilinearArraySpecialCoordinatesImageFilters.wrap @@ -51,7 +51,7 @@ itk_wrap_class("itk::ImageToImageFilter" POINTER) endforeach() itk_end_wrap_class() -itk_wrap_class("itk::ImageFileReader" POINTER_WITH_SUPERCLASS) +itk_wrap_class("itk::ImageFileReader" POINTER) foreach(d ${ITK_WRAP_IMAGE_DIMS}) foreach(t ${WRAP_ITK_SCALAR}) itk_wrap_template("CASCI${ITKM_${t}}${d}" @@ -93,16 +93,6 @@ itk_wrap_class("itk::RescaleIntensityImageFilter" POINTER_WITH_2_SUPERCLASSES) endforeach() itk_end_wrap_class() -itk_wrap_include("itkSpectra1DSupportWindowToMaskImageFilter.h") -itk_wrap_class("itk::Spectra1DSupportWindowToMaskImageFilter" POINTER_WITH_2_SUPERCLASSES) - foreach(d ${ITK_WRAP_IMAGE_DIMS}) - foreach(t ${WRAP_ITK_INT}) - itk_wrap_template("IlistitkIndex${d}${d}CASCI${ITKM_${t}}${d}" - "itk::Image< std::list< itk::Index< ${d} > >, ${d} >, itk::CurvilinearArraySpecialCoordinatesImage< ${ITKT_${t}}, ${d} >") - endforeach() - endforeach() -itk_end_wrap_class() - # The rest is needed for ResampleImageFilter and interpolator functions set(resample_filter_dimensions 2 3) set(resample_filter_pixel_types "F") diff --git a/wrapping/itkImageUltrasound.wrap b/wrapping/itkImageUltrasound.wrap index 8ff4877..9f3fe76 100644 --- a/wrapping/itkImageUltrasound.wrap +++ b/wrapping/itkImageUltrasound.wrap @@ -4,6 +4,7 @@ itk_wrap_include("list") itk_wrap_include("itkIndex.h") + set(TEMPLATE_LIST_INDEX "") foreach(d ${ITK_WRAP_IMAGE_DIMS}) set(TEMPLATE_LIST_INDEX "${TEMPLATE_LIST_INDEX} diff --git a/wrapping/itkSpecialCoordinatesImage.wrap b/wrapping/itkSpecialCoordinatesImage.wrap new file mode 100644 index 0000000..962e469 --- /dev/null +++ b/wrapping/itkSpecialCoordinatesImage.wrap @@ -0,0 +1,13 @@ +itk_wrap_include("complex") + +# Wrap underlying class hierarchy +itk_wrap_class("itk::SpecialCoordinatesImage" POINTER) + foreach(d ${ITK_WRAP_IMAGE_DIMS}) + foreach(t ${WRAP_ITK_SCALAR}) + itk_wrap_template("${ITKM_${t}}${d}" "${ITKT_${t}}, ${d}") + endforeach() + foreach(t3 ${WRAP_ITK_COMPLEX_REAL}) + itk_wrap_template("${ITKM_${t3}}${d}" "${ITKT_${t3}}, ${d}") + endforeach() + endforeach() +itk_end_wrap_class() diff --git a/wrapping/itkSpectra1DSupportWindowToMaskImageFilter.wrap b/wrapping/itkSpectra1DSupportWindowToMaskImageFilter.wrap index 4bb0269..781009c 100644 --- a/wrapping/itkSpectra1DSupportWindowToMaskImageFilter.wrap +++ b/wrapping/itkSpectra1DSupportWindowToMaskImageFilter.wrap @@ -1,6 +1,7 @@ itk_wrap_include("list") itk_wrap_include("itkIndex.h") itk_wrap_include("itkImage.h") +itk_wrap_include("itkCurvilinearArraySpecialCoordinatesImage.h") itk_wrap_class("itk::Spectra1DSupportWindowToMaskImageFilter" POINTER_WITH_2_SUPERCLASSES) foreach(d ${ITK_WRAP_IMAGE_DIMS}) @@ -8,4 +9,11 @@ itk_wrap_class("itk::Spectra1DSupportWindowToMaskImageFilter" POINTER_WITH_2_SUP itk_wrap_template("IlistitkIndex${d}${d}${ITKM_I${t}${d}}" "itk::Image< std::list< itk::Index< ${d} > >, ${d} >, ${ITKT_I${t}${d}}") endforeach(t) endforeach(d) + + foreach(d ${ITK_WRAP_IMAGE_DIMS}) + foreach(t ${WRAP_ITK_INT}) + itk_wrap_template("IlistitkIndex${d}${d}CASCI${ITKM_${t}}${d}" + "itk::Image< std::list< itk::Index< ${d} > >, ${d} >, itk::CurvilinearArraySpecialCoordinatesImage< ${ITKT_${t}}, ${d} >") + endforeach() + endforeach() itk_end_wrap_class()