getBlock: Grab frame block from video stream

Description Usage Arguments Value

Description

getBlock grabs the next k frames as a block, meaning as a single CImg image with depth k. Note that like getFrame *this function has side effects*, so that calling it twice generally results in two different return values.

Usage

1
getBlock(str, nFrames)

Arguments

str

an input stream

nFrames

how many frames to grab

Value

a cimg object of depth nFrames or less (if there are fewer than nFrames frames remaining in the stream)


dahtah/imagerstreams documentation built on May 14, 2019, 3:27 p.m.