Skip to content

Commit

Permalink
ENH: Wrap TransformToStrainFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
tbirdso authored and dzenanz committed Sep 2, 2021
1 parent ac8b58a commit e0b751d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wrapping/itkTransformToStrainFilter.wrap
Original file line number Diff line number Diff line change
@@ -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()
4 changes: 4 additions & 0 deletions wrapping/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()")

0 comments on commit e0b751d

Please sign in to comment.