Obtains the distribution of color components of each pixel in an image. This API is asynchronous.
The Ascend 310 AI Processor does not support this API in the current version.
The Ascend 910 AI Processor does not support this API in the current version.
aclError acldvppVpcCalcHistAsync(acldvppChannelDesc *channelDesc,
acldvppPicDesc *srcPicDesc,
acldvppHist *hist,
void *reserve,
aclrtStream stream)
Parameter |
Input/Output |
Description |
|---|---|---|
channelDesc |
Input |
Pointer to channel description. Must be the same as the channelDesc argument passed to the acldvppCreateChannel call. |
srcPicDesc |
Input |
Pointer to the input image description.
|
hist |
Input/Output |
Pointer to histogram description. Call acldvppCreateHist to create a histogram description in advance. Calling this API returns the pixel value distribution (0–255) of each color component of each image. |
reserve |
Input |
Pointer to the histogram configuration. This parameter is reserved and can be set to NULL currently. |
stream |
Input |
Stream. |
0 on successful task delivery; else, failure.