I am trying to use OpenVX Histogram (as per Spec 1.1) and little puzzled in the usage part. My understanding is like this (Please correct me):
vx_size numBins = 10;
vx_uint32 offset = 10;
vx_uint32 range = 256;
// Create Object
vx_distribution vx_dist = vxCreateDistribution (Context, numBins, offset,
range);
// Create Node
vx_status status = vxHistogramNode (context, img, vx_dist);
Spec says that vxHistogramNode()
takes vx_distribution as [out]
, does that means vxHistogramNode()
creates object internally? If the answer is 'Yes' than how would i pass numBins, Offset and range of my choice?
Also. how can i access the output of histogram result?