The OpenVX Specification  a73e458

Detailed Description

Generates a distribution from an image.

This kernel counts the number of occurrences of each pixel value within the window size of a pre-calculated number of bins. A pixel with intensity 'I' will result in incrementing histogram bin 'i' where [R00066]

\[ i = (I - offset)*numBins/range for I >= offset \]

and

\[ I < offset + range. \]

Pixels with intensities that don't meet these conditions will have no effect on the histogram [R00067]. Here offset, range and numBins are values of histogram attributes (see VX_DISTRIBUTION_OFFSET, VX_DISTRIBUTION_RANGE, VX_DISTRIBUTION_BINS).

Functions

vx_node VX_API_CALL vxHistogramNode (vx_graph graph, vx_image input, vx_distribution distribution)
 [Graph] Creates a Histogram node. More...
 

Function Documentation

◆ vxHistogramNode()

vx_node VX_API_CALL vxHistogramNode ( vx_graph  graph,
vx_image  input,
vx_distribution  distribution 
)

[Graph] Creates a Histogram node.

Parameters
[in]graphThe reference to the graph [R00194].
[in]inputThe input image in VX_DF_IMAGE_U8 [R00195].
[out]distributionThe output distribution [R00196].
Returns
vx_node [R00197].
Return values
vx_nodeA node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus