System object: visionhdl.FrameToPixels
Package: visionhdl
Convert image frame to pixel stream
[pixels,ctrlOut] = step(F2P,frm)
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System
object™, you can
call the object with arguments, as if it were a function. For example, y
= step(obj,x)
and y = obj(x)
perform
equivalent operations.
[pixels,ctrlOut] = step(F2P,frm)
converts the input image matrix,
frm
, to a vector of pixel values, pixels
,
and an associated vector of control structures, ctrlOut
. The
control structure indicates the validity of each pixel and its location in the frame.
The output pixels include padding around the active image, specified by the
VideoFormat
property.
See Streaming Pixel Interface for details of the pixel stream format.
The System
object performs an initialization the first time
you call the step
method. This initialization locks
nontunable properties and input specifications, such as dimensions,
complexity, and data type of the input data. If you change a nontunable
property or an input specification, the object issues an error. To
change nontunable properties or inputs, first call the release
method
to unlock the object.