matlab code for automated images slideshow?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
romasha
am 1 Feb. 2014
Kommentiert: Shivaputra Narke
am 2 Feb. 2014
hi all, i want images sledeshow in my gui but make sure that images slides must be change automatically..kindly help
0 Kommentare
Akzeptierte Antwort
Shivaputra Narke
am 1 Feb. 2014
Hope this helps... imgNameList=char('camerman.tif','Image.jpg','image2.jpg'); pause on; for i=1:length(imgNameList) a=imread(imgNameList(i,:)); imshow(a); drawnow; pause(1); end
%%% the above code runs only once %% better you use timer .
0 Kommentare
Weitere Antworten (2)
Shivaputra Narke
am 1 Feb. 2014
% if you want to use with timer %% create a timer %%% create a new file with following code and name it as main .
global indx indx=1; showTimer=timer('timerFcn',@slideshow); set(a,'ExecutionMode','fixedRate'); set(a,'Period',2) %% 2 sec delay start(a)
%%% create a function function slideshow(varargin) global indx imgNameList= char('img1.tif','img2.tif','img3.tif'); indx=indx+1; if indx> length(imgNameList) indx=1; end imshow(a); drawnow;
%%% Now run main file
5 Kommentare
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!