Histogram

The Histogram shows the frequency of occurrence of the brightnesses in the image - from the shadows (left) to the highlights (right).

    Histogram

Library

ComputerVision/Images/Analysis

Description

The Histogram block displays a graphical representation of the distribution of pixel values in an image. It calculates the frequency (y-axis) of pixel values (x-axis) in an image by sorting them into the specified number of bins.

1D: Splits the image into three channels and calculates the histogram for each channel. It formats the input as an image.

2D: It requires HSV input. It calculates histogram for the H channel. The histogram can be used as input for the Back Projection block.

Parameters

Histogram_0

NameLabelDescriptionData TypeValid Values

dim

Dimension (Image/Hist)

1 - 1D image

2 - 2D image

Scalar

1
2

numBins

Number of Bins

Number of frequency sections

Scalar

externalActivation

External activation

This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

src

explicit

input

1

image/hist

explicit

output

1

Port 3

activation

input

externalActivation