File Exchange

image thumbnail

ReadCompressedJpegS​EQ

version 1.4.1 (3.57 KB) by Paul Siefert
Read compressed or uncompressed monochrome NorPix image sequence in MATLAB. This script can read all frames or a set reading window.

15 Downloads

Updated 06 Nov 2019

View License

Read compressed or uncompressed monochrome NorPix image sequence in MATLAB.
This script can read all frames or a set reading window.
Reading window for compressed sequences requires a separate .idx file
named as the source file (eg. test.seq.idx).

INPUTS
fileName: String 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 frames 2 to 13:
ImageCellArray = ReadJpegSEQ('C:\test.seq',[2 13])

Read all frames:
ImageCellArray = ReadJpegSEQ('C:\test.seq',[0 0])

Show header information:
[ImageCellArray, headerInfo] = ReadJpegSEQ('C:\test.seq',[0 0])

Last modified 06.11.2019 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 (Daniel Wang) 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)

Please report any bugs and improvement suggestions

Cite As

Paul Siefert (2020). ReadCompressedJpegSEQ (https://www.mathworks.com/matlabcentral/fileexchange/68341-readcompressedjpegseq), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Updates

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.

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux