Align two streams of pixel data
The visionhdl.PixelStreamAligner
System
object™ synchronizes two pixel streams by delaying one stream to match the timing
of a reference stream. Many Vision HDL
Toolbox™ algorithms delay the pixel stream, and the amount of delay can change as
you adjust algorithm parameters. You can use this object to align streams for
overlaying, comparing, or combining two streams such as in a Gaussian blur operation.
Use the delayed stream as the refPixel
and refCtrl
arguments. Use the earlier stream as the pixelIn
and
ctrlIn
arguments.
This waveform diagram shows the input streams, pixelIn
and
refPixelIn
, and their associated control signals. The reference
input frame starts later than the pixelIn
frame. The output signals
show that the object delays pixelIn
to match the reference stream,
and that both output streams share control signals. There is a short latency between the
input refCtrl
and the output refCtrl
. In this
simulation, to accommodate the delay of four lines between the input streams, the
MaxNumberofLines
must be set to at least 4.
For details on the pixel control bus and the dimensions of a video frame, see Streaming Pixel Interface.
returns
a System
object, align
= visionhdl.PixelStreamAligneralign
, that synchronizes a pixel stream with a
reference pixel stream.
step | Align two streams of pixel data |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |