immovieFolder.m
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 (2025). immovieFolder.m (https://www.mathworks.com/matlabcentral/fileexchange/40917-immoviefolder-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Animation > Movie >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |