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 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191197/image.jpeg)
2 commentaires
Jan
le 12 Juin 2018
As soon as you post the existing code, it is a little but easier to post a solution. This will be clearer than "i imported it into a table".
Réponse acceptée
KSSV
le 12 Juin 2018
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
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!