visionhdl.PixelsToFrame
Convert pixel stream to frame-based video
Description
The visionhdl.PixelsToFrame
System object™ converts a color or grayscale pixel stream and control structures into
frame-based video. The control structure indicates the validity of each pixel and its
location in the frame. The pixel stream format can include padding pixels around the
active frame. You can configure the frame and padding dimensions by selecting a common
video format or by specifying custom dimensions. For details about the pixel stream
format, see Streaming Pixel Interface.
Use this object to convert the output of a function targeted for HDL code generation back to frames. The object itself does not support HDL code generation.
If your design converts frames to a pixel stream and later converts the stream back to
frames, specify the same video format for the FrameToPixels
object and the PixelsToFrame
object.
To convert pixel stream to frame-based video:
Create the
visionhdl.PixelsToFrame
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Description
returns a System object that converts a pixel stream to image frames. Set properties using
one or more name-value pairs. Enclose each property name in single quotes. P2F
= visionhdl.PixelsToFrame(Name
,Value
)
Properties
Usage
Description
[
converts a vector of pixel values representing a padded image,
frm
,validOut
] = P2F(pixels
,ctrlIn
)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
.
For details about the pixel stream format, see Streaming Pixel Interface.
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)