Strange problem with "imread" function
显示 更早的评论
Hello,
I am getting a strange issue while trying to use imread function to read an image. It works perfectly fine for case 1 (see 1.png which I have attached). But when I try to do the same with case 2(see 2.png which I have attached) it gives me error. What can be cause and the solution? I have also tried num2str() but it does not solve the issue.
Thanking you in advance.
1 个评论
Jan
2018-7-28
Please post code and error as text, not as screen shots.
采纳的回答
更多回答(1 个)
Image Analyst
2018-7-28
0 个投票
Do not use image as the name of your image. It's the name of a built-in function. Also, do not use I - it looks too much like 1 (one) or l (lower case L).
类别
在 帮助中心 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!