Skip to content

Commit

Permalink
BUG: Simplify itk.BlockMatchingImageFilter feature points PointSet ma…
Browse files Browse the repository at this point in the history
…ngling

Simplify the Python wrapping name mangling to remove the
DefaultStaticMeshTraits, standard with itk 5 mesh wrapping.
  • Loading branch information
thewtex committed Jun 10, 2020
1 parent 6eb2bb0 commit 2e2b333
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions Modules/Core/Common/wrapping/itkPointSet.wrap
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ itk_wrap_class("itk::PointSet" POINTER)
"${ITKT_UI},${d},itk::DefaultStaticMeshTraits<${ITKT_UI},${d},${d},${ITKT_F},${ITKT_F},${ITKT_UI} >")
endforeach()
foreach(d ${ITK_WRAP_IMAGE_DIMS})
# Also wrap the point set type needed for the kernel transforms,
# which may be a bug in ITK but they're needed currently.
itk_wrap_template("M${ITKM_D}${d}${d}STM${ITKM_D}${d}${d}${d}${d}${ITKM_F}${ITKM_F}M${ITKM_D}${d}${d}"
"itk::Matrix <${ITKT_D},${d},${d}>,${d},itk::DefaultStaticMeshTraits< itk::Matrix <${ITKT_D},${d},${d}>,${d},${d},${ITKT_F},${ITKT_F},itk::Matrix <${ITKT_D},${d},${d}> >")
itk_wrap_template("M${ITKM_D}${d}${d}" "itk::Matrix <${ITKT_D},${d},${d}>,${d}")
endforeach()
itk_end_wrap_class()
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ if(has_d_3)
itk_end_wrap_class()

itk_wrap_class("itk::PointSet" POINTER)
itk_wrap_template("VF33DTVF333FFVF3"
"itk::Vector< float, 3 >, 3, itk::DefaultStaticMeshTraits< itk::Vector< float, 3 >, 3, 3, float, float, itk::Vector< float, 3 > >")
itk_wrap_template("D3DTD33FFD"
"double, 3, itk::DefaultStaticMeshTraits< double, 3, 3, float, float, double >")
itk_wrap_template("VF33" "itk::Vector< float, 3 >, 3")
itk_wrap_template("D3" "double, 3")
itk_end_wrap_class()

endif()

0 comments on commit 2e2b333

Please sign in to comment.