# Python wrapping of a member function template

**URL:** https://discourse.itk.org/t/python-wrapping-of-a-member-function-template/1482
**Category:** Engineering
**Tags:** wrapping
**Created:** [December 17, 2018, 3:26am UTC](https://discourse.itk.org/t/python-wrapping-of-a-member-function-template/1482 "2018-12-17T03:26:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![phcerdan](https://discourse.itk.org/user_avatar/discourse.itk.org/phcerdan/32/286_2.png) [@phcerdan](https://discourse.itk.org/u/phcerdan)
#### Post date: [December 17, 2018, 3:26am UTC](https://discourse.itk.org/t/python-wrapping-of-a-member-function-template/1482/1 "2018-12-17T03:26:57Z")

</div>

What is the way to wrap a member function template?  
Is there any macro for it? If not, anybody has experience with swig for doing it --even manually? Pinging @fbudin

An example of a template function I would like to wrap (MultiplyWithVectorOfImages)

> <https://github.com/InsightSoftwareConsortium/ITKIsotropicWavelets/blob/53aba7e7e44fa3acd5d456e7239035163c823ea8/include/itkRieszRotationMatrix.h#L46-L65>

---

<div class="post-metadata">

### Author: ![fbudin](https://discourse.itk.org/user_avatar/discourse.itk.org/fbudin/32/14_2.png) [@fbudin](https://discourse.itk.org/u/fbudin)
#### Post date: [December 17, 2018, 2:05pm UTC](https://discourse.itk.org/t/python-wrapping-of-a-member-function-template/1482/2 "2018-12-17T14:05:48Z")

</div>

Interesting case, but sorry I have never had to deal with that ☹

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [December 17, 2018, 7:04pm UTC](https://discourse.itk.org/t/python-wrapping-of-a-member-function-template/1482/3 "2018-12-17T19:04:05Z")

</div>

@phcerdan I wonder if moving the operation into its own class, e.g. `itk::RotateRieszFrequencyFilterBank`, would facilitate wrapping?
