I want to read all these images into my workspace. Path of all the images are in this csv file. i imported it into a table. how to read these images now. please do help.
조회 수: 2 (최근 30일)
이전 댓글 표시
채택된 답변
KSSV
2018년 6월 12일
YOu need not to import images into a file.....you could simply do:
images = dir('*.png') ;
N = length(images) ;
for i = 1:N
thisimage = images(i).name ;
I = imread(thisimage) ;
imshow(I) ;
end
If you want to pick it from csv:
[num,txt,raw] = xlsread('FileName.csv') ;
N = size(txt,1) ;
for i = 1:N
I = imread(txt{i}) ;
imshow(I) ;
end
참고 항목
카테고리
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!