FUNCTION REFERENCE
VideoReader.readFrame
Read the next sequential video frame from a VideoReader object.
Read the next sequential video frame from a VideoReader object.
Syntax
frame = readFrame(v)Syntax
frame = v.readFrame()Syntax
frame = v.readFrame('native')Returns top-down H-by-W-by-3 uint8 RGB, or H-by-W uint8 for grayscale, and advances v.CurrentTime. Indexed frames expand to RGB unless 'native' is requested. Native grayscale and indexed output is a struct with uint8 cdata and colormap (empty for grayscale).
Differences from MATLAB: See readFrame for supported containers and CurrentTime.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.