Extracts the Color Names features of the input image.
More...
Extracts the Color Names features of the input image.
◆ vpiCreateExtractColorNameFeatures()
#include <vpi/experimental/ColorNames.h>
Creates the payload for the Color Names algorithm.
- Parameters
-
[in] | backends | VPI backends that are eligible to execute the algorithm.
|
[in] | outFormat | Format of the output images. 16-bit types will return more precise values, in exchange of some minor performance hit. 8-bit types will be less precise, but typically lead to faster execution time. *
|
[out] | payload | Pointer to a handle that will receive the created payload. |
- Return values
-
◆ vpiSubmitExtractColorNameFeatures()
#include <vpi/experimental/ColorNames.h>
Submits the Color Names algorithm to the stream.
- Parameters
-
[in] | stream | The stream where the operation will be queued in.
- Must not be NULL.
- Stream must have enabled the backends that will execute the algorithm.
|
[in] | backend | Backend that will execute the algorithm. Must be the backend specified during payload creation or 0 as a shorthand to use this backend. |
[in] | payload | Payload to be submitted along the other parameters. |
[in] | input | Input image.
- Must not be NULL.
- Image must have enabled the backends that will execute the algorithm.
- Supported formats:
|
[out] | output | Pointer to an array of VPIImage where the features will be written to. Returned features have numOutputs dimensions, each dimension will be written to each image in sequence.
- Must not be NULL.
- The images must have the same format as specified during payload creation.
- All images must have same format.
- CPU and CUDA: All images must have same dimensions as input image.
- PVA: Dimensions of all images must be input's width/4 and height/4.
- All Image must have enabled the backends that will execute the algorithm.
|
[in] | numOutputs | Number of images in output array. It specifies the number of dimensions each feature has.
|
- Return values
-