immovieFolder.m

IMMOVIEFOLDER records a movie from a group of image files in a specified folder, and plays it.
196 Downloads
Updated 25 Mar 2013

View License

IMMOVIEFOLDER records a movie from a group of image files in a specified folder and plays it. Image files must have the same size.
[A,B]=immovieFolder(inFolder) the default, reads files with the extension (*.jpg) from the folder with name (inFolder), without any image resize, and plays the movie with 30 frames per second (fps).
The output A is an M-by-N-by-P-by-K array, where K is the number of images in the specified folder. The image size is assumed to be [M,N,P].
B is movie in a form of multiframe indexed image (a structure).

immovieFolder(inFolder,s) reads files with the extension (*.jpg) from the folder with name (inFolder), with resizing parameter = s (s < 1). Use this when you get (Out of memory) error, and try s values 0.5 or less.

immovieFolder(inFolder,s,'fileType') reads files with the extension (fileType) from the folder with name (inFolder), and using a resizing parameter = s.
immovieFolder(inFolder,s,'fileType',fps) reads files with the extension (fileType) from the folder with name (inFolder),using a resizing parameter = s, and plays the movie with a rate fps per a second.

This function calls folderFiles.m function.

Cite As

Ahmed A. Selman (2024). immovieFolder.m (https://www.mathworks.com/matlabcentral/fileexchange/40917-immoviefolder-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Movie in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0