Extracts the Color Names features of the input image. More...
Functions | |
VPIStatus | vpiCreateExtractColorNameFeatures (VPIBackend backend, VPIImageFormat outType, VPIPayload *payload) |
Creates the payload for the Color Names algorithm. More... | |
VPIStatus | vpiSubmitExtractColorNameFeatures (VPIStream stream, VPIPayload payload, VPIImage input, VPIImage *output, int numOutputs) |
Submits the Color Names algorithm to the stream associated with the payload. More... | |
Extracts the Color Names features of the input image.
VPIStatus vpiCreateExtractColorNameFeatures | ( | VPIBackend | backend, |
VPIImageFormat | outType, | ||
VPIPayload * | payload | ||
) |
#include <vpi/experimental/ColorNames.h>
Creates the payload for the Color Names algorithm.
[in] | backend | VPI backend where the algorithm will be executed. |
[in] | outType | 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.
[out] | payload | Pointer to a handle that will receive the created payload. |
VPIStatus vpiSubmitExtractColorNameFeatures | ( | VPIStream | stream, |
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.
[in] | stream | The stream where the operation will be queued in. |
[in] | payload | Payload to be submitted along the other parameters. |
[in] | input | Input image. The following image types are accepted: |
[out] | output | 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. |
[in] | numOutputs | Number of images in output array. It must be equal to 10. |