how can i use imdisp to display images from the folder?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have code which saves matched images into a folder... how can retrieve images from the folder and display multiple or all images of folder using "imdisp" ...
[MATLAB 7]
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 6월 29일
편집: Walter Roberson
2017년 6월 29일
Be careful if your images are named something img_9.bmp img_10.bmp and so on instead of img_09.bmp img_10.bmp (with fixed number of digits). If you use variable number of digits you will probably want to use https://www.mathworks.com/examples/matlab/community/19425-natsortfiles-examples
댓글 수: 4
Guillaume
2017년 7월 3일
Don't use strcat use fullfile instead.
Don't use length use numel instead.
Your error is because you haven't specified the full path of the file in your imread call.
thisimage = imread(fullfile(dir_in, thisfile));
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!