Array of an image

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?

回答(1 个)

KSSV
KSSV 2021-5-20
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 个评论

Vaishnavi
Vaishnavi 2021-5-21
编辑:Vaishnavi 2021-5-21
Thanks for reply.
Can you please explain line 4th and 5th?
.name means should i give name of my images?
5th line is to read the image using imread, 6th line displays the image.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Images 的更多信息

提问:

2021-5-20

评论:

2021-5-21

Community Treasure Hunt

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

Start Hunting!

Translated by