diff --git a/.github/workflows/build-test-package.yml b/.github/workflows/build-test-package.yml index 010ef05..38fa929 100644 --- a/.github/workflows/build-test-package.yml +++ b/.github/workflows/build-test-package.yml @@ -4,12 +4,12 @@ on: [push,pull_request] jobs: cxx-build-workflow: - uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-cxx.yml@b223658f3ab10680ab2ec3286d070b9601ea6ef1 + uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-cxx.yml@v5.4.0 with: cmake-options: "Module_Montage_BUILD_EXAMPLES:BOOL=ON" python-build-workflow: - uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-package-python.yml@b223658f3ab10680ab2ec3286d070b9601ea6ef1 + uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-package-python.yml@v5.4.0 with: test-notebooks: true secrets: diff --git a/wrapping/itkTileMergeImageFilter.wrap b/wrapping/itkTileMergeImageFilter.wrap index 3c0d378..e408cb6 100644 --- a/wrapping/itkTileMergeImageFilter.wrap +++ b/wrapping/itkTileMergeImageFilter.wrap @@ -1,13 +1,22 @@ +itk_wrap_include("itkLinearInterpolateImageFunction.h") +itk_wrap_include("itkNearestNeighborInterpolateImageFunction.h") itk_wrap_class("itk::TileMergeImageFilter" POINTER) - foreach(d ${ITK_WRAP_IMAGE_DIMS}) - foreach(t ${WRAP_ITK_SCALAR}) - itk_wrap_template("${ITKM_I${t}${d}}" "${ITKT_I${t}${d}}, double") - endforeach() - foreach(t ${WRAP_ITK_RGB}) - itk_wrap_template("${ITKM_I${t}${d}}" "${ITKT_I${t}${d}}, itk::RGBPixel") - endforeach() - foreach(t ${WRAP_ITK_RGBA}) - itk_wrap_template("${ITKM_I${t}${d}}" "${ITKT_I${t}${d}}, itk::RGBAPixel") + foreach(iif LinearInterpolateImageFunction NearestNeighborInterpolateImageFunction) + if (${iif} STREQUAL "LinearInterpolateImageFunction") + set(abbr "L") # abbreviation to use in Python wrapping type name + else() + set(abbr "NN") + endif() + foreach(d ${ITK_WRAP_IMAGE_DIMS}) + foreach(t ${WRAP_ITK_SCALAR}) + itk_wrap_template("${ITKM_I${t}${d}}${abbr}" "${ITKT_I${t}${d}}, double, itk::${iif}<${ITKT_I${t}${d}}>") + endforeach() + foreach(t ${WRAP_ITK_RGB}) + itk_wrap_template("${ITKM_I${t}${d}}${abbr}" "${ITKT_I${t}${d}}, itk::RGBPixel, itk::${iif}<${ITKT_I${t}${d}}>") + endforeach() + foreach(t ${WRAP_ITK_RGBA}) + itk_wrap_template("${ITKM_I${t}${d}}${abbr}" "${ITKT_I${t}${d}}, itk::RGBAPixel, itk::${iif}<${ITKT_I${t}${d}}>") + endforeach() endforeach() endforeach() itk_end_wrap_class() diff --git a/wrapping/itkTileMontage.wrap b/wrapping/itkTileMontage.wrap index bc67b14..e0c8f32 100644 --- a/wrapping/itkTileMontage.wrap +++ b/wrapping/itkTileMontage.wrap @@ -2,6 +2,7 @@ itk_wrap_class("itk::TileMontage" POINTER) foreach(d ${ITK_WRAP_IMAGE_DIMS}) foreach(t ${WRAP_ITK_SCALAR}) itk_wrap_template("${ITKM_I${t}${d}}${ITKM_F}" "${ITKT_I${t}${d}},${ITKT_F}") + itk_wrap_template("${ITKM_I${t}${d}}${ITKM_D}" "${ITKT_I${t}${d}},${ITKT_D}") endforeach() endforeach() itk_end_wrap_class()