Resolved return _SimpleITK.ImageFileReader_Execute(self)

已解决return _SimpleITK.ImageFileReader_Execute(self)
RuntimeError: Exception throm in SimplelTk ImageFileReader_Execute:D:la1sitk\CodeI0srcsitkImageReaderBase.cxx:105:
sitk::ERROR: Unable to determine ImagelD reader for "D:zuj\fx05(IOSUDA-master datasetsretinal_data trainA\N-81-L.png’









Error report



A friend in the fan group encountered a problem and came to private message me, wanting to use SimpleITK, but an error occurred (at that time, his heart was cold for a moment, he came to me for help, and then successfully helped him solve it, and record it by the way I hope it can help more friends who encounter this bug and cannot solve it), the error code is as follows:


insert image description here

The screenshot of the content of the error message is as follows :


insert image description here

The content of the error message is as follows :

return _SimpleITK.ImageFileReader_Execute(self)
RuntimeError: Exception throm in SimplelTk ImageFileReader_Execute:D:la1sitk\CodeI0srcsitkImageReaderBase.cxx:105:
sitk::ERROR: Unable to determine ImagelD reader for "D:zuj\fx05(IOSUDA-master datasetsretinal_data trainA\N-81-L.png'



error translation



The translation of the error message content is as follows :

return _SimpleITK.image_file Reader_Execute(self)

Runtime Error: SimplelTk ImageFileReader_Execute:D:la1sitk\CodeI0srcsitkImageReaderBase.cx:105:An exception occurred

sitk::error: Could not determine ImagelD reader for 'D:zuj\fx05(IOSUDA ​​master dataset retina_data trainA\N-81-L.png'





Error reason



Reason for error :

This error message is that SimpleITK has an exception when reading the picture. The reason may be that the picture format is not supported or the file path is incorrect.



Solution



1. Confirm that the image path is correct, check whether the file name is misspelled or the file exists.

2. To confirm whether the image format is supported by SimpleITK, you can check the supported image formats in the SimpleITK official documentation.

3. Try to use other libraries to read pictures, such as PIL, OpenCV, etc., to see if they can be read successfully.

4. If none of the above methods can solve the problem, you can try to reinstall SimpleITK or update to the latest version.

The above is the solution to the cause of this error. Welcome to leave a message in the comment area to discuss whether it can be solved.If it is useful, please like and collect the article. Thank you for your support. The blogger has the motivation to keep recording the problems encountered.!!!

Thousands of full-stack VIP Q&A group to contact bloggers to help solve errors

Due to the limited time and energy of bloggers, there are too many private messages every day, and there is no way for every fan to reply in time, so reply to VIP fans first, and you can enter the thousand-person full stack by subscribing to the time-limited 9.9 paid column "100 Days Mastering Python from Getting Started to Employment" VIP answering group, get priority answering opportunities (code guidance, remote service), free prostitution 80G learning materials spree, column subscription address: https://blog.csdn.net/yuan2019035055/category_11466020.html

  • Advantages :The author gives priority to answering opportunities (code guidance, remote service), and many bigwigs in the group can hold together to keep warm (big factory internal promotion opportunities). This column is a complete set of teaching specially prepared for students with zero foundation and those who need advanced improvement , From 0 to 100, continue to advance and deepen, and there will be practical projects in the follow-up, so you can easily deal with interviews!

  • Column benefits :Resume guidance, internal referral for recruitment, weekly delivery of physical books, 80G full-stack learning videos, 300 IT e-books: Python, Java, front-end, big data, database, algorithm, crawler, data analysis, machine learning, interview question bank, etc.

  • Note : If you want to get a timely reply, communicate and learn with the big guys, after subscribing to the column, private message the blogger to enter the VIP Q&A group with thousands of peopleinsert image description here
    insert image description here

Free information acquisition, more fan benefits, follow the official account below to obtain

insert image description here

Guess you like

Origin blog.csdn.net/yuan2019035055/article/details/129902181