Returns various image statistics of the input image. More...
Functions | |
VPIStatus | vpiSubmitImageStats (VPIStream stream, uint64_t backend, VPIImage input, VPIArray statistics, VPIImage mask, uint32_t flags) |
Returns various image statistics of the input image. More... | |
Returns various image statistics of the input image.
VPIStatus vpiSubmitImageStats | ( | VPIStream | stream, |
uint64_t | backend, | ||
VPIImage | input, | ||
VPIArray | statistics, | ||
VPIImage | mask, | ||
uint32_t | flags | ||
) |
#include </opt/nvidia/vpi2/include/vpi/algo/ImageStats.h>
Returns various image statistics of the input image.
[in] | stream | A stream handle where the operation will be queued into. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[in] | backend | Backend that will execute the algorithm.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[in] | input | Input image.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[out] | statistics | Output array.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[in] | mask | Image statistics kernel binary image mask. It defines the pixels that will be used for the image statistics calculation. The pixel under a non-zero mask element will be used in image statistics calculation. Use NULL for all elements in statistics calculation, i.e. all mask pixels considered to be non-zero.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[in] | flags | Statistics calculation flags. Flags determine which image statistics will be calculated.
|
VPI_ERROR_INVALID_ARGUMENT | stream is NULL. |
VPI_ERROR_INVALID_ARGUMENT | input or statistics are NULL. |
VPI_ERROR_INVALID_ARGUMENT | input and mask image dimensions do not match. |
VPI_ERROR_INVALID_ARGUMENT | flags not supported. |
VPI_ERROR_INVALID_ARGUMENT | backend is invalid or unknown. |
VPI_ERROR_INVALID_IMAGE_FORMAT | input and mask formats aren't supported |
VPI_ERROR_NOT_IMPLEMENTED | Image Stats algorithm is not supported by given backend. |
VPI_ERROR_INVALID_OPERATION | Backend hardware not available. |
VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream , input or statistics . |
VPI_SUCCESS | Operation executed successfully. |