mmcount.m
If you want to read in the last frame of a .asf file using mmread(), you can read in the entire file, but this can be very slow or cause Matlab to run out of memory.
You can read in only the last frame using mmread(), but to do this, you need to know the number of frames in the file.
mmcount() counts the number of frames in the file, after which mmread() can be used to read in the final frame. The time taken to count the frames and read in the final frame is much less than the time taken to read in the entire file with mmread().
mmcount() makes use of mmread() itself to do the counting.
Citation pour cette source
Kevin Bartlett (2026). mmcount.m (https://fr.mathworks.com/matlabcentral/fileexchange/33885-mmcount-m), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- FPGA, ASIC, and SoC Development > Vision HDL Toolbox > Video Formats and Interfaces >
- Image Processing and Computer Vision > Vision HDL Toolbox > Video Formats and Interfaces >
Tags
Remerciements
Inspiré par : mmread
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.1.0.0 | Changed algorithm for locating final frame. At suggestion of Micah Richert, author of the mmread program, now use the estimated number of frames returned by mmread as an initial guess. |
||
| 1.0.0.0 |
