[ITK] [ITK-users] sitk::ERROR Unable to determine ImageIO Reader

Bradley Lowekamp blowekamp at mail.nih.gov
Wed May 20 10:01:34 EDT 2015


Hello,

This error message may need to be improved [1]. I think your file name does not exist.

Try assigning your filename string to a variable. This will enable inspection of the variable's value and checking os.path.isfile() to determine if it exists. You may want to look into using Python raw strings for windows paths [2]. I think that if you pass a filename to SimpleITK with forward slashes it should still work too. 

Also SimpleITK 0.9.0 is now out :)

HTH,
Brad

[1] https://issues.itk.org/jira/browse/SIMPLEITK-638
[2] https://docs.python.org/2/tutorial/introduction.html#strings

Also your filename string contains python escaped sequences. Using the Windows contentions of backslashes for filenames is very problematic.




On May 19, 2015, at 8:44 PM, Lefkowitz, Matthew E <mel88 at pitt.edu> wrote:

>> 
> I recently upgraded my SimpleITK version up to the newest version, version .9.0rc1. Since the upgrade, I have not been able to load .tiff images into simpleITK and I cannot figure out why. It is worth noting that it is not a memory issue as I have used test images in the .tiff format and I still obtained the same errors. Furthermore, I am running SimpleITK in 64 bit python as I needed the extra memory in past projects I worked on. In order to test finally whether the issue originates from the code or from SimpleITK errors, I ran a set of old code (which I know worked) and it gave me the same error. I attached a screenshot of the error below. As you can (or cannot) see, I receive the error: sitk::ERROR: Unable to determine ImageIO reader for “C:\MIIA\Kim_Lab\Liver\test.tiff”.
> 
> 
> <Image753.png>
> I would greatly appreciate any help. If any more information is needed from me in order to resolve the problem, please let me know.
> 
> Sincerely,
> Matt Lefkowitz
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150520/34fa2504/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list