Find in an image the minimum and maximum value locations. More...
Functions | |
VPIStatus | vpiCreateMinMaxLoc (uint32_t backends, int32_t imageWidth, int32_t imageHeight, VPIImageFormat imageFormat, VPIPayload *payload) |
Creates payload for vpiSubmitMinMaxLoc. More... | |
VPIStatus | vpiSubmitMinMaxLoc (VPIStream stream, uint32_t backend, VPIPayload payload, VPIImage input, VPIArray minCoords, VPIArray maxCoords) |
Finds minimum and maximum value locations in an image. More... | |
Find in an image the minimum and maximum value locations.
The function vpiCreateMinMaxLoc is used to create the payload for the algorithm. The function vpiSubmitMinMaxLoc is used to find minimum and maximum locations in an image.
VPIStatus vpiCreateMinMaxLoc | ( | uint32_t | backends, |
int32_t | imageWidth, | ||
int32_t | imageHeight, | ||
VPIImageFormat | imageFormat, | ||
VPIPayload * | payload | ||
) |
#include <vpi/algo/MinMaxLoc.h>
Creates payload for vpiSubmitMinMaxLoc.
[in] | backends | VPI backends that are eligible to execute the algorithm. |
[in] | imageWidth,imageHeight | Input image dimensions. |
[in] | imageFormat | Input image format. |
[out] | payload | Pointer to memory where the created payload handle will be written to. |
VPIStatus vpiSubmitMinMaxLoc | ( | VPIStream | stream, |
uint32_t | backend, | ||
VPIPayload | payload, | ||
VPIImage | input, | ||
VPIArray | minCoords, | ||
VPIArray | maxCoords | ||
) |
#include <vpi/algo/MinMaxLoc.h>
Finds minimum and maximum value locations in an image.
[in] | stream | The stream handle where the operation will be queued in. |
[in] | backend | Backend that will execute the algorithm. |
[in] | payload | Payload as created by vpiCreateMinMaxLoc. |
[in] | input | Input image where minimum and/or maximum are to be found.
|
[out] | minCoords | Output array that stores pixel coordinates with minimum value. If not needed, pass NULL. Number of coordinates returned is limited by array capacity.
|
[out] | maxCoords | Output array that stores pixel coordinates with maximum value. If not needed, pass NULL. Number of coordinates returned is limited by array capacity.
|