<div>Hello, everybody! I have compile itk 3.20 with python wrap. When I tried the examples in the Quick_Start which ITK provide(The link is below), I found that there are errors in itkImageFileWriter.py on PNG and TIFF files. The error message is below.</div>
<div> </div>
<div>Traceback (most recent call last):<br> File "<pyshell#19>", line 1, in <module><br> itk.write(binaryImage, pathToImages+"\binary.png")<br> File "D:\Program Files\InsightToolkit\lib\InsightToolkit\WrapITK\Python\itkExtras\__init__.py", line 251, in write<br>
writer.Update()<br> File "D:\Program Files\InsightToolkit\lib\InsightToolkit\WrapITK\lib\itkImageFileWriter.py", line 2857, in Update<br> def Update(*args): return _itkImageFileWriter.itkImageFileWriterIUC2_Pointer_Update(*args)<br>
RuntimeError: ..\..\..\ITK-3.20\InsightToolkit-3.20.0\Code\IO\itkPNGImageIO.cxx:452:<br>Problem while opening the file. </div>
<div> </div>
<div>I could write png file with itkImageFileWriter function using C and I compiled the itk with python followed the instruction which are provided in link below! Can anybody tell me why the error appear. Are there some key options omited when I compiled the ITK.</div>
<div> </div>
<div>Compile instruction : <a href="http://farsight-toolkit.org/wiki/FARSIGHT_Tutorials/Building_Software">http://farsight-toolkit.org/wiki/FARSIGHT_Tutorials/Building_Software</a></div>
<div>Quick_Start : <a href="http://farsight-toolkit.org/wiki/FARSIGHT_Tutorials/Quick_Start">http://farsight-toolkit.org/wiki/FARSIGHT_Tutorials/Quick_Start</a></div>