Show Images with Filenames in Cell Array

2 vues (au cours des 30 derniers jours)
Nathan
Nathan le 24 Juil 2019
Réponse apportée : Rik le 24 Juil 2019
I have a 1x40 cell array 'q' which contains 40 filenames (of images), each in its own cell.
I would like to use 'imshow' to sequentially display all of the images with the filenames stored in 'q'.
So far I have tried the code shown below, but it doesn't work. Any help would be much appreciated!
imshow(q{1,1:40})

Réponses (1)

Rik
Rik le 24 Juil 2019
You will have to program that sequential behavior yourself.
for n=1:numel(q)
IM=imread(q{n});
imshow(IM)
drawnow,pause(0.5)
end

Catégories

En savoir plus sur Read, Write, and Modify Image 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!

Translated by