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!