From 66d49dacffbc8802af18ef9e1311c8bd2c01e06f Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Mon, 8 May 2023 17:04:51 +0200 Subject: [PATCH] ENH: Support any scalar type (not just real) as input pixel type 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 https://github.com/SuperElastix/elastix/pull/882 commit https://github.com/SuperElastix/elastix/commit/58e0a7bdd76f69a8615cb4a8856038c0892ea530 "ENH: Convert the input images to the user-specified internal pixel type" --- wrapping/itkElastixRegistrationMethod.wrap | 2 +- wrapping/itkTransformixFilter.wrap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wrapping/itkElastixRegistrationMethod.wrap b/wrapping/itkElastixRegistrationMethod.wrap index 16ade0ce..322fbf7d 100644 --- a/wrapping/itkElastixRegistrationMethod.wrap +++ b/wrapping/itkElastixRegistrationMethod.wrap @@ -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() diff --git a/wrapping/itkTransformixFilter.wrap b/wrapping/itkTransformixFilter.wrap index cb63e809..9c8bc12e 100644 --- a/wrapping/itkTransformixFilter.wrap +++ b/wrapping/itkTransformixFilter.wrap @@ -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()