Skip to content

Commit

Permalink
ENH: Wrap the class with float transforms
Browse files Browse the repository at this point in the history
We need ITK 5.4, at least below version or newer:
InsightSoftwareConsortium/ITK@71c5c83

For proper Python packages, we will need 5.4RC3 or later.
  • Loading branch information
dzenanz authored and thewtex committed May 2, 2024
1 parent 3312f9c commit c3f7d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion wrapping/itkANTsRegistration.wrap
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit c3f7d80

Please sign in to comment.