From e0b751d6ad0af3bbc452a7dc48a6375d1277b849 Mon Sep 17 00:00:00 2001 From: Tom Birdsong Date: Thu, 10 Jun 2021 12:29:06 -0400 Subject: [PATCH] ENH: Wrap TransformToStrainFilter --- wrapping/itkTransformToStrainFilter.wrap | 13 +++++++++++++ wrapping/test/CMakeLists.txt | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 wrapping/itkTransformToStrainFilter.wrap create mode 100644 wrapping/test/CMakeLists.txt diff --git a/wrapping/itkTransformToStrainFilter.wrap b/wrapping/itkTransformToStrainFilter.wrap new file mode 100644 index 0000000..69c27f8 --- /dev/null +++ b/wrapping/itkTransformToStrainFilter.wrap @@ -0,0 +1,13 @@ +UNIQUE(types "D;${WRAP_ITK_REAL}") + +itk_wrap_include("itkTransform.h") +itk_wrap_class("itk::TransformToStrainFilter" POINTER) + foreach(d1 ${ITK_WRAP_IMAGE_DIMS}) + foreach(d2 ${ITK_WRAP_IMAGE_DIMS}) + foreach(t ${types}) + itk_wrap_template("T${ITKM_${t}}${d1}${d2}${ITKM_${t}}${ITKM_${t}}" + "itk::Transform<${ITKT_${t}},${d1},${d2}>, ${ITKT_${t}}, ${ITKT_${t}}") + endforeach() + endforeach() + endforeach() +itk_end_wrap_class() diff --git a/wrapping/test/CMakeLists.txt b/wrapping/test/CMakeLists.txt new file mode 100644 index 0000000..964c397 --- /dev/null +++ b/wrapping/test/CMakeLists.txt @@ -0,0 +1,4 @@ +itk_python_expression_add_test(NAME itkStrainImageFilterTestPython + EXPRESSION "instance = itk.StrainImageFilter[itk.Image[itk.Vector[itk.D,2],2],itk.D,itk.D].New()") +itk_python_expression_add_test(NAME itkTransformToStrainFilterTestPython + EXPRESSION "instance = itk.TransformToStrainFilter[itk.Transform[itk.D,3,3]].New()")