From c3f7d80c0057beb7525bc629d921b28b44c2f8e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Fri, 2 Feb 2024 16:42:56 -0500 Subject: [PATCH] ENH: Wrap the class with float transforms We need ITK 5.4, at least below version or newer: https://github.com/InsightSoftwareConsortium/ITK/commit/71c5c83e100a92321783b81d62564365f9557785 For proper Python packages, we will need 5.4RC3 or later. --- CMakeLists.txt | 2 +- wrapping/itkANTsRegistration.wrap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee4e273..8fb8ea9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ set(ANTsWasm_INCLUDE_DIRS ) if(NOT ITK_SOURCE_DIR) - find_package(ITK REQUIRED) + find_package(ITK 5.4 REQUIRED) # we need at least 71c5c83 from 2024-02-02 for debug mode list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR}) include(ITKModuleExternal) else() diff --git a/wrapping/itkANTsRegistration.wrap b/wrapping/itkANTsRegistration.wrap index 8005967..c31f7b2 100644 --- a/wrapping/itkANTsRegistration.wrap +++ b/wrapping/itkANTsRegistration.wrap @@ -2,7 +2,7 @@ itk_wrap_class("itk::ANTsRegistration" POINTER) foreach(d ${ITK_WRAP_IMAGE_DIMS}) foreach(t ${WRAP_ITK_SCALAR}) itk_wrap_template("D${ITKM_I${ITKM_${t}}${d}}" "${ITKT_I${ITKM_${t}}${d}}, ${ITKT_I${ITKM_${t}}${d}}, double") - # itk_wrap_template("F${ITKM_I${ITKM_${t}}${d}}" "${ITKT_I${ITKM_${t}}${d}}, ${ITKT_I${ITKM_${t}}${d}}, float") # requires ITK 5.4RC3+ + itk_wrap_template("F${ITKM_I${ITKM_${t}}${d}}" "${ITKT_I${ITKM_${t}}${d}}, ${ITKT_I${ITKM_${t}}${d}}, float") endforeach() endforeach() itk_end_wrap_class()