Skip to content

Commit

Permalink
ENH: Support any scalar type (not just real) as input pixel type
Browse files Browse the repository at this point in the history
Allows the user to pass input images to ElastixRegistrationMethod and
TransformixFilter whose pixel types differs from the internal pixel type.

The elastix/transfomix library will now convert those images automatically,
using `itk::CastImageFilter`:

  pull request SuperElastix/elastix#882
  commit SuperElastix/elastix@58e0a7b
  "ENH: Convert the input images to the user-specified internal pixel type"
  • Loading branch information
N-Dekker committed May 10, 2023
1 parent f258935 commit 66d49da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wrapping/itkElastixRegistrationMethod.wrap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
itk_wrap_class("itk::ElastixRegistrationMethod" POINTER)
itk_wrap_image_filter("${WRAP_ITK_REAL}" 2)
itk_wrap_image_filter("${WRAP_ITK_SCALAR}" 2)
itk_end_wrap_class()

2 changes: 1 addition & 1 deletion wrapping/itkTransformixFilter.wrap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
itk_wrap_class("itk::TransformixFilter" POINTER)
itk_wrap_image_filter("${WRAP_ITK_REAL}" 1)
itk_wrap_image_filter("${WRAP_ITK_SCALAR}" 1)
itk_end_wrap_class()

0 comments on commit 66d49da

Please sign in to comment.