Closed mgcyung closed 3 years ago
Hi @mgcyung, thanks a lot for the complete issue report.
This is related to the lack of python wrapping for std::vector<ImageTypePointer>
, see #67.
The workaround is easy, instead of using analysisWavelets[index]
use forwardWavelet.GetOutput(index)
, which gives you a wrapped type.
Closing for now, feel free to open more issues with doubts/questions.
PS: An image of size 900, 900, 900
might be slow to analyze, I would recommend something like 128, 128, 128
for testing.
Thanks for the solution and suggestion.
I try to port the examples/runRieszWaveletAnalysis.cpp from C++ to python. And part of the code is as foloows
There is a type mismatching in
In python2.7 the error message is
And in python3.6 the error message is
It seems “itkImageToImageFilterICF3VICF3::SetInput” needs an argument of type “itkImageCF3 const ”, but the “analysisWavelets[i]” is a “Swig Object of type 'itkImageCF3_Pointer '”. Is there a convertion from a “Swig Object of type 'itkImageCF3_Pointer '” to a “itkImageCF3 const ”, or other ways?