SimpleITK tutorial not able to read images.

I am following the simpleITK tutorial and these two lines of code throw this error.

image_viewer = sitk.ImageViewer()
image_viewer.Execute(sitk.ReadImage(fetch_data(“SimpleITK.jpg”)))

Exception thrown in SimpleITK ImageFileReader_Execute: D:\a\1\sitk\Code\IO\src\sitkImageReaderBase.cxx:102:
sitk::ERROR: Unable to open “C:\Users\paral\OneDrive\Υπολογιστής\diplomatikh\TUTORIAL\data\SimpleITK.jpg” for reading.

Both the image and fiji are where they are supposed to be.

It looks like you have non-ascii characters in your path. I think SimpleITK doesn’t handle that well.

1 Like