HV Counter
Count active dimensions of pixel stream
Libraries:
Vision HDL Toolbox /
Utilities
Description
The HV Counter block analyzes a video stream and returns the current count of lines per frame and pixels per line. The block also delays control signals of the pixel stream to correspond with the count result. Use this block for algorithms that use the location of a pixel within a frame or region of interest.
This waveform shows the pixel-stream control signals and resulting counter outputs for the first two lines of a video frame that has 10 pixels per line. The HV Counter block has a latency of two cycles to return the current counter values.
Examples
Ports
This block uses a bus for frame control signals associated with each pixel of a pixel stream. This interface enables the block to operate independently of image size and format. All Vision HDL Toolbox™ blocks use the same streaming interface. The block accepts and returns a bus containing five control signals. The control signals indicate the validity of each pixel and its location in the frame. For a full description of the interface, see Streaming Pixel Interface.
Input
Output
Parameters
Algorithms
Extended Capabilities
Version History
Introduced in R2019a