VPI - Vision Programming Interface

3.0 Release

Image Statistics

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...
 

Detailed Description

Returns various image statistics of the input image.

Function Documentation

◆ vpiSubmitImageStats()

VPIStatus vpiSubmitImageStats ( VPIStream  stream,
uint64_t  backend,
VPIImage  input,
VPIArray  statistics,
VPIImage  mask,
uint32_t  flags 
)

#include </opt/nvidia/vpi3/include/vpi/algo/ImageStats.h>

Returns various image statistics of the input image.

Parameters
[in]streamA stream handle where the operation will be queued into.
[in]backendBackend that will execute the algorithm.
[in]inputInput image.
[out]statisticsOutput array.
[in]maskImage 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]flagsStatistics calculation flags. Flags determine which image statistics will be calculated.
Return values
VPI_ERROR_INVALID_ARGUMENTstream is NULL.
VPI_ERROR_INVALID_ARGUMENTinput or statistics are NULL.
VPI_ERROR_INVALID_ARGUMENTinput and mask image dimensions do not match.
VPI_ERROR_INVALID_ARGUMENTflags not supported.
VPI_ERROR_INVALID_ARGUMENTbackend is invalid or unknown.
VPI_ERROR_INVALID_IMAGE_FORMATinput and mask formats aren't supported
VPI_ERROR_NOT_IMPLEMENTEDImage Stats algorithm is not supported by given backend.
VPI_ERROR_INVALID_OPERATIONBackend hardware not available.
VPI_ERROR_INVALID_OPERATIONThe needed backends aren't enabled in stream, input or statistics.
VPI_SUCCESSOperation executed successfully.