Video Formats and Interfaces

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 PixelsConvert frame-based video to pixel stream
Pixels To FrameConvert pixel stream to frame-based video
Pixel Control Bus CreatorCreate control signal bus for use with Vision HDL Toolbox blocks
Pixel Control Bus SelectorSelect signals from control signal bus used by Vision HDL Toolbox blocks
Measure TimingMeasure timing of pixel control bus input
HV CounterCount active dimensions of pixel stream
Pixel Stream AlignerAlign two streams of pixel data
ROI SelectorSelect a region of interest (ROI) from pixel stream
Pixel Stream FIFOBuffer input stream to create image lines that have contiguous valid pixels

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

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

Streaming Video

Streaming Pixel Interface

Pixel stream control signal protocol used by Vision HDL Toolbox blocks and objects.

Configure Blanking Intervals

How to diagnose and fix problems related to the number of inactive pixels between lines and frames.

In Simulink

Configure the Simulink Environment for HDL Video Processing

Set up a Simulink® model for HDL image and video processing.

Integrate Vision HDL Blocks Into Camera Link System

This example shows how to design a Vision HDL Toolbox algorithm for integration into an existing system that uses the Camera Link® signal protocol.

Pixel Control Bus

Data type details of the pixelcontrol bus.

In MATLAB

Pixel Control Structure

Data type details of the pixel control structure.

Convert Camera Control Signals to pixelcontrol Format

This example shows how to convert Camera Link® signals to the pixelcontrol structure, invert the pixels with a Vision HDL Toolbox object, and convert the control signals back to the Camera Link format.

Featured Examples