InsightSoftwareConsortium / ITKIsotropicWavelets

External Module for ITK, implementing Isotropic Wavelets and Riesz Filter for multiscale phase analysis.
Apache License 2.0
13 stars 11 forks source link

ENH: Python, wrap structure tensor #102

Closed phcerdan closed 5 years ago

phcerdan commented 5 years ago

It wraps the needed ImageToImageFilter and ImageSource

phcerdan commented 5 years ago

It is working, but getting the following error when using python with non-related classes:

WaveletType = itk.SimoncelliIsotropicWavelet.F3PD3
ForwardWaveletType = itk.WaveletFrequencyForward.ICF3ICF3SimoncelliF3PD3
levels = 4
highPassSubBands = 1
forwardWavelet = ForwardWaveletType.New(Input=freqImage)
forwardWavelet.SetLevels(levels)
forwardWavelet.SetHighPassSubBands(highPassSubBands)
forwardWavelet.Update()
numberOfOutputs = forwardWavelet.GetNumberOfOutputs()
print("numberOfOutputs: ", numberOfOutputs)
Warning: Unknown parameter 'itk::Image<itk::VariableSizeMatrix< float >, 2 >' in template 'itk::ImageSource'
Warning: Unknown parameter 'itk::Image<itk::VariableSizeMatrix< float >, 3 >' in template 'itk::ImageSource'
Warning: Unknown parameter 'itk::Image<itk::VariableSizeMatrix< float >, 2 >' in template 'itk::ImageToImageFilter'
Warning: Unknown parameter 'itk::Image<itk::VariableSizeMatrix< float >, 3 >' in template 'itk::ImageToImageFilter'
Warning: Unknown parameter 'itk::Image<itk::VariableSizeMatrix< float >, 2 >' in template 'itk::StructureTensor'
Warning: Unknown parameter 'itk::Image<itk::VariableSizeMatrix< float >, 3 >' in template 'itk::StructureTensor'

Is it related with when this class is wrapped? Should be add it to the wrap in itkImageToImageFilter and ImageSource? @thewtex The wrapping works though.

thewtex commented 5 years ago

Is it related with when this class is wrapped?

Yes, those dependent types to be wrapped.

Should be add it to the wrap in itkImageToImageFilter and ImageSource?

We can add the wrapping for those to this module with VariableSizeMatrix until they are used elsewhere.