System object: visionhdl.PixelsToFrame
Package: visionhdl
Convert pixel stream to image frame
[frm,validOut] = step(P2F,pixels,ctrlIn)
Note
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.
[frm,validOut] = step(P2F,pixels,ctrlIn)
converts a vector of pixel
values representing a padded image, pixels
, and an associated
vector of control structures, ctrlIn
, to an image matrix,
frm
. The control structure indicates the validity of each pixel
and its location in the frame. The output image, frm
is valid if
validOut
is true
.
See Streaming Pixel Interface for details of the pixel stream format.
Note
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.