VPI - Vision Programming Interface

0.3.7 Release

Color Names Features Extractor

Functions

VPIStatus vpiCreateExtractColorNameFeatures (VPIStream stream, VPIImageType outType, VPIPayload *payload)
 Creates the payload for the Color Names algorithm. More...
 
VPIStatus vpiSubmitExtractColorNameFeatures (VPIPayload payload, VPIImage input, VPIImage *output, int numOutputs)
 Submits the Color Names algorithm to the stream associated with the payload. More...
 

Detailed Description

Extracts the Color Names features of the input image.

Function Documentation

◆ vpiCreateExtractColorNameFeatures()

VPIStatus vpiCreateExtractColorNameFeatures ( VPIStream  stream,
VPIImageType  outType,
VPIPayload payload 
)

#include <vpi/experimental/ColorNames.h>

Creates the payload for the Color Names algorithm.

Parameters
stream[in] Stream where the algorithm will run.
outType[in] Type of the output images. It must be one of:

16-bit types will return more precise values, in exchange of some minor performance hit. 8-bit types will be less precise, but typically leads to faster execution time.

Parameters
payload[out] Pointer to a handle that will receive the created payload.
Returns
VPI_SUCCESS if payload creation succeeded, or any other VPIStatus value in case of error.

◆ vpiSubmitExtractColorNameFeatures()

VPIStatus vpiSubmitExtractColorNameFeatures ( VPIPayload  payload,
VPIImage  input,
VPIImage output,
int  numOutputs 
)

#include <vpi/experimental/ColorNames.h>

Submits the Color Names algorithm to the stream associated with the payload.

Parameters
payload[in] Payload to be submitted
input[in] Input image. The following image types are accepted:
output[out] Pointer to an array of VPIImage where the features will be written to. The images must have the same type as set during payload creation.
numOutputs[in] Number of images in output array. It must be equal to 10.
Returns
VPI_SUCCESS if payload creation succeeded, or any other VPIStatus value in case of error.