Histogram
R2026bFrequency distribution of pixel values in video stream
Libraries:
Vision HDL Toolbox /
Statistics
Description
The Histogram block computes the frequency distribution of pixel values in a video stream. You can configure the number and size of the bins. The block provides a read interface for accessing each bin. The block keeps a running histogram until you reset the bin values.
Examples
Ports
This block uses a streaming pixel interface with a bus for frame control signals. 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 a scalar pixel value and a bus that contains five control signals. The control signals indicate the validity of each pixel and its location in the frame. To convert a frame (pixel matrix) into a pixel stream and control signals, use the Frame To Pixels block. For a full description of the interface, see Streaming Pixel Interface.
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"visionhdlstatistics/Histogram"
Example: add_block("visionhdlstatistics/Histogram","myModel/myBlock",MakeNameUnique="on")
Algorithms
Extended Capabilities
Version History
Introduced in R2015aSee Also
Blocks
- 2-D Histogram (Computer Vision Toolbox) | Frame To Pixels
Objects
Functions
imhist(Image Processing Toolbox)


