| Image Processing Toolbox™ | ![]() |
implay
implay(filename)
implay(I)
implay(..., FPS)
implay opens a Movie Player for showing MATLAB movies, videos, or image sequences (also called image stacks). Use the implay File menu to select the movie or image sequence that you want to play. Use implay toolbar buttons or menu options to play the movie, jump to a specific frame in the sequence, change the frame rate of the display, or perform other exploration activities. You can open multiple implay movie players to view different movies simultaneously.
The following figure shows the Movie Player containing an image sequence.

implay(filename) opens the implay movie player, displaying the content of the file specified by filename. The file can be an Audio Video Interleaved (AVI) file. implay reads one frame at a time, conserving memory during playback. implay does not play audio tracks.
implay(I) opens the implay movie player, displaying the first frame in the multiframe image array specified by I. I can be a MATLAB movie structure, or a sequence of binary, grayscale, or truecolor images. A binary or grayscale image sequence can be an M-by-N-by-1-by-K array or an M-by-N-by-K array. A truecolor image sequence must be an M-by-N-by-3-by-K array.
implay(..., FPS) specifies the rate at which you want to view the movie or image sequence. The frame rate is specified as frames-per-second. If omitted, implay uses the frame rate specified in the file or the default value 20.
I can be numeric but uint8 is preferred. The actual data type used to display pixels may differ from the source data type.
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');
![]() | impixelregionpanel | impoint | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |