How to display an image from output value?
1 次查看(过去 30 天)
显示 更早的评论
Hi, I have A=37 after some process and I need to display '37.jpg' which is present in my database.I gave imshow('A.jpg').But it says A.jpg does not exist.I can't give imshow(37.jpg)Because I need to do the same process for 1000 times so 'A' value gets changed every time. How do I display the image
0 个评论
采纳的回答
Friedrich
2013-3-4
Hi,
try num2str:
A = 37
imshow([num2str(A),'.jpg'])
2 个评论
Image Analyst
2013-3-4
That situation is well, covered with several code examples, by the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!