Play movies, videos, or image sequences
Use the implay
function to open the Video Viewer app, which plays MATLAB® movies, videos, or image sequences (also called image stacks). Using Video
Viewer you can select the movie or image sequence that you want to play, jump to a
specific frame in the sequence, change the frame rate of the display, or perform other
viewing activities. You can open multiple Video Viewers to view different movies
simultaneously.
The figure shows the Video Viewer app containing an image sequence.
implay
opens the Video Viewer app. To select the movie or
image sequence that you want to play, use the Video Viewer File
menu.
implay(
opens the Video Viewer
app, displaying the content of the file specified by filename
)filename
.
The file can be an Audio Video Interleaved (AVI) file. The Video Viewer reads one
frame at a time, conserving memory during playback. The Video Viewer does not play
audio tracks.
implay(
opens the Video Viewer app,
displaying the first frame in the multiframe image specified by
I
)I
.
implay(___,
specifies the
frame rate at which you want to view the movie or image sequence.fps
)
Animate a sequence of images.
load cellsequence
implay(cellsequence,10);
Visually explore a stack of MRI images.
load mristack
implay(mristack);
Play an AVI file.
implay('rhinos.avi');
You can also open the Video Viewer app through the Apps tab. Navigate to the Image Processing and Computer Vision group and click Video Viewer.
immovie
| montage
| movie
| VideoWriter
| Volume Viewer