Contenido principal

Video Formats and Interfaces

R2026b
Convert between frame-based video and pixel streams

Hardware video processing algorithms operate on serial data. For information on the serial protocol used in Vision HDL Toolbox™, see Streaming Pixel Interface.

You can simulate hardware-friendly streaming-pixel designs alongside frame-based designs. For instance, use frame-based algorithms, such as those designed using Computer Vision Toolbox™ or Image Processing Toolbox™, to verify a hardware-optimized design. Use the Frame To Pixels and Pixels To Frame blocks to convert video between frame-based and streaming-pixel formats.

Blocks

Frame To Pixels blockFrame To PixelsConvert frame-based video to pixel stream
Pixels To Frame blockPixels To FrameConvert pixel stream to frame-based video
Pixel Control Bus Creator blockPixel Control Bus CreatorCreate control signal bus for use with Vision HDL Toolbox blocks
Pixel Control Bus Selector blockPixel Control Bus SelectorSelect signals from control signal bus used by Vision HDL Toolbox blocks
From pixelcontrol blockFrom pixelcontrolConvert pixelcontrol bus to AXI-Stream control signals (Since R2026b)
To pixelcontrol blockTo pixelcontrolConvert AXI4-Stream control signals to pixelcontrol bus (Since R2026b)
Measure Timing blockMeasure TimingMeasure timing of pixel control bus input
HV Counter blockHV CounterCount active dimensions of pixel stream
Pixel Stream Aligner blockPixel Stream AlignerAlign two streams of pixel data
Pixel Stream FIFO blockPixel Stream FIFOBuffer input stream to create image lines that have contiguous valid pixels
ROI Selector blockROI SelectorSelect a region of interest (ROI) from pixel stream
Image Resizer blockImage ResizerChange dimensions of image in pixel stream (Since R2023a)

Objects

expand all

visionhdl.FrameToPixelsConvert frame-based video to pixel stream
visionhdl.PixelsToFrameConvert pixel stream to frame-based video
visionhdl.MeasureTimingMeasure timing of pixel control structure input
visionhdl.HVCounterCounts active pixel dimensions of streaming video
visionhdl.PixelStreamAlignerAlign two streams of pixel data
visionhdl.ROISelectorSelect region of interest (ROI) from pixel stream
visionhdl.ImageResizerChange dimensions of image in a pixel stream (Since R2023a)

Functions

expand all

pixelcontrolsignalsExtract signals from pixel-streaming control signal structure
pixelcontrolstructCreate pixel-streaming control signal structure
pixelcontrolbusCreate pixel-streaming control bus instance
getparamfromfrm2pixGet frame format parameters

Topics

Pixel-Stream Modeling

Frame-Based Modeling

In Simulink

In MATLAB

Featured Examples