Array of an image

13 Ansichten (letzte 30 Tage)
Vaishnavi
Vaishnavi am 20 Mai 2021
Kommentiert: KSSV am 21 Mai 2021
Hi, I want to create a list of an images so that i can acces that array in my next button of app to display next image.
How to create list of images?

Antworten (1)

KSSV
KSSV am 20 Mai 2021
img = dir('*.jpeg') ; % give your extension here
N = length(img) ; % number of jpeg images in the folder
for i = 1:N
this_img = img(i).name ;
I = imread(this_img) ;
imshow(I)
end
  2 Kommentare
Vaishnavi
Vaishnavi am 21 Mai 2021
Bearbeitet: Vaishnavi am 21 Mai 2021
Thanks for reply.
Can you please explain line 4th and 5th?
.name means should i give name of my images?
KSSV
KSSV am 21 Mai 2021
5th line is to read the image using imread, 6th line displays the image.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by