필터 지우기
필터 지우기

I wanted to diaplay all images in a folder one by one on the same axes using Matlab GUI. My below code is displaying only first image in the folder? kndly give the solution

조회 수: 1 (최근 30일)
handles.output = hObject;
filelist=dir(fullfile('E:\desktop\MATLAB\img-seg\CNN\ias1\*.jpg'));
handles.filelist = filelist;
handles.frameindex = 1;
% Update handles structure
guidata(hObject, handles);
axes(handles.axes1);
filelist = handles.filelist;
frameindex = handles.frameindex;
myfolder='E:\desktop\MATLAB\img-seg\CNN\ias1';
currentframefile = filelist(frameindex).name;
handles.frameindex = frameindex+1;
ff=fullfile(myfolder,currentframefile);
I=imread(ff);
imshow(I);
guidata(hObject, handles);

채택된 답변

Image Analyst
Image Analyst 2021년 5월 21일
Isn't this a duplicate of your other question where I referred you to the FAQ?
  댓글 수: 3
Image Analyst
Image Analyst 2021년 5월 28일
Before the end of the loop, after the drawnow, call pause(0.5) where the number is the number of seconds you want it to wait.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by