phcerdan
(Pablo Hernandez-Cerdan)
December 17, 2018, 3:26am
1
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)
template<typename T = double, unsigned int VImageDimension = 3>
class RieszRotationMatrix:
public itk::VariableSizeMatrix< T >
{
public:
/** Standard type alias */
using Self = RieszRotationMatrix;
using Superclass = itk::VariableSizeMatrix< T >;
/** Component value type */
using ValueType = typename Superclass::ValueType;
using InternalMatrixType = typename Superclass::InternalMatrixType;
using SpatialRotationMatrixType = itk::Matrix< T, VImageDimension, VImageDimension >;
/** Matrix by std::vector<TImage> multiplication.
* To perform the rotation with the output of
* \ref RieszFrequencyFilterBankGenerator.
*/
template <typename TImage>
std::vector< typename TImage::Pointer > MultiplyWithVectorOfImages(const std::vector< typename TImage::Pointer > & vect) const;
fbudin
(Francois Budin)
December 17, 2018, 2:05pm
2
Interesting case, but sorry I have never had to deal with that
1 Like
@phcerdan I wonder if moving the operation into its own class, e.g. itk::RotateRieszFrequencyFilterBank
, would facilitate wrapping?
1 Like