Filter löschen
Filter löschen

How can i convert images into video

1 Ansicht (letzte 30 Tage)
vijay chander
vijay chander am 2 Mär. 2014
Beantwortet: Image Analyst am 2 Mär. 2014
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

Akzeptierte Antwort

Dishant Arora
Dishant Arora am 2 Mär. 2014
Use pause with in your loop.
doc pause

Weitere Antworten (1)

Image Analyst
Image Analyst am 2 Mär. 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