I am quite new to ITK and trying to make a very simple application using ITK / python!
I am doing something like this.
filename = "./output_filename.hdr" image_io = itk.ImageIOBase image_io.SetFileName(filename)
I mean, I know the function itself explains a whole lot but it gives me an error saying
TypeError: Wrong number or type of arguments for overloaded function 'itkImageIOBase_SetFileName'. Possible C/C++ prototypes are: itkImageIOBase::SetFileName(char const *) itkImageIOBase::SetFileName(std::string const &)
I understand the
str in python and that converts to
std::string when it reroutes to cxx code.
Is there any way I can declare the filename using that function? Do I really have to use c++ instead? (Simple ITK was not that satisfying for me …)