Array of an image

조회 수: 13 (최근 30일)
Vaishnavi
Vaishnavi 2021년 5월 20일
댓글: KSSV 2021년 5월 21일
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?
KSSV
KSSV 2021년 5월 21일
5th line is to read the image using imread, 6th line displays the image.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by