Skip to content

Commit

Permalink
ENH: Add support for 2D images in the python wrapped RegisterImages
Browse files Browse the repository at this point in the history
Add 2D to wrapping and fixed specificiation of BSpline transform to
correctly support 2D images.
  • Loading branch information
aylward committed Dec 10, 2021
1 parent cee053a commit f1de8ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Registration/itkBSplineImageToImageRegistrationMethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ class BSplineImageToImageRegistrationMethod
itkStaticConstMacro( ImageDimension, unsigned int, TImage::ImageDimension );

// Overrides the superclass' TransformType typedef
typedef BSplineTransform<double, itkGetStaticConstMacro( ImageDimension ),
itkGetStaticConstMacro( ImageDimension )>
typedef BSplineTransform<double, itkGetStaticConstMacro( ImageDimension ), 3>
BSplineTransformType;

typedef typename BSplineTransformType::Pointer BSplineTransformPointer;
Expand Down
2 changes: 1 addition & 1 deletion wrapping/tubeRegisterImages.wrap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ itk_wrap_include( itkImage.h )

itk_wrap_named_class("tube::RegisterImages" tubeRegisterImages POINTER)
foreach(t ${WRAP_ITK_SCALAR})
foreach(d 3)
foreach(d 2 3)
itk_wrap_template("${ITKM_${t}}${d}" "itk::Image<${ITKT_${t}},${d}>")
endforeach()
endforeach()
Expand Down

0 comments on commit f1de8ee

Please sign in to comment.