ReadJpegSEQ
Version 2.1 (4,12 ko) par
Paul Siefert
Read compressed or uncompressed NorPix image sequences in MATLAB. This script can read all frames or a set reading window.
Read compressed or uncompressed NorPix image sequence in MATLAB.
This script can read all frames or a set reading window.
Index file will be used if available and named as the source file
(eg. test.seq.idx). Otherwise the script will skip through a compressed
sequence from the beginning (may take some time).
INPUTS
fileName: Char containing the full path to the sequence
frames: 1x2 double array of beginning and end frame
OUTPUTS
ImageCellArray: Cell array with images and timestamps of all allocated
frames.
headerInfo: Struct with header information (ImageWidth,
ImageHeight, ImageBitDepth, ImageBitDepthReal,
ImageSizeBytes, ImageFormat, AllocatedFrames,
Compression, HeaderVersion, HeaderSize, Description,
TrueImageSize, FrameRate).
EXAMPLES
Read all frames:
I = ReadJpegSEQ('C:\test.seq')
Read frames 2 to 13:
I = ReadJpegSEQ('C:\test.seq',[2 13])
Include sequence header information:
[I, headerInfo] = ReadJpegSEQ('C:\test.seq',[1 1])
Last modified 05.11.2021 by Paul Siefert, PhD
Goethe-University Frankfurt
siefert@bio.uni-frankfurt.de
Based on the work of Brett Shoelson (Norpix2MATLAB_MarksMod.m)
Thanks to NorPix support for providing sequence information.
This code was tested with Norpix SEQ
8-bit monochrome 75% lossy jpeg compression (24.07.2018)
8-bit monochrome uncompressed (03.06.2019)
8-bit(24) BGR 75% lossy jpeg compressed (04.10.2021)
Code for RGB included but not tested!
Please report any bugs and improvement suggestions!
Citation pour cette source
Paul Siefert (2024). ReadJpegSEQ (https://www.mathworks.com/matlabcentral/fileexchange/68341-readjpegseq), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Créé avec
R2021a
Compatible avec toutes les versions
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 >
En savoir plus sur Video Formats and Interfaces dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!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 | |
---|---|---|---|
2.1 | Bugfix for uncompressed color images, added RGB support (not tested) |
||
2.0 | Added compatibility with BGR image format and reading window without .idx file. |
||
1.4.1 | BugFix for reading uncompressed sequences |
||
1.4.0 | Added headerInfo output |
||
1.3.0 | Fixed subSeq bug, thanks to Dr. Aaron Corcoran. |
||
1.2.0 | The script can now read a set reading window. |
||
1.1.0 | New version is able to read both, compressed and uncompressed sequences. |
||
1.0.0 |