Azzera filtri
Azzera filtri

How can i convert images into video

1 visualizzazione (ultimi 30 giorni)
hi im vijay
im using a for loop to display the images(say 10), but the problem the images displaying are very fast i.e, i cant able to control the appearing of images since im getting to see only the last image how can i display images slowly one by one
Thank you

Risposta accettata

Dishant Arora
Dishant Arora il 2 Mar 2014
Use pause with in your loop.
doc pause

Più risposte (1)

Image Analyst
Image Analyst il 2 Mar 2014
Use drawnow after each call to imshow() or image(). The reason that you're only seeing the last one is that you're in such an intensive loop it doesn't really get time to show them all. You can put a drawnow after each call to imshow() to force it to update the screen so that you'll see every image. If they're still going to fast, put a pause(0.2) after each call to imshow(). Adjust the pausing time as desired.

Community Treasure Hunt

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

Start Hunting!

Translated by