VPI - Vision Programming Interface

0.1.0 Release

HarrisCornersDetector

Data Structures

struct  VPIHarrisKeypointDetectorParams
 Structure that defines the parameters for vpiSubmitHarrisKeypointDetector. More...
 

Functions

VPIStatus vpiCreateHarrisKeypointDetector (VPIStream stream, uint32_t inputWidth, uint32_t inputHeight, VPIPayload *payload)
 Creates a Harris Keypoint Detector payload. More...
 
VPIStatus vpiSubmitHarrisKeypointDetector (VPIPayload payload, VPIImage input, VPIArray outFeatures, VPIArray outScores, const VPIHarrisKeypointDetectorParams *params)
 Submits Harris Keypoint Detector operation to the stream associated with the payload. More...
 

Detailed Description

Detect harris keypoints

Function Documentation

◆ vpiCreateHarrisKeypointDetector()

VPIStatus vpiCreateHarrisKeypointDetector ( VPIStream  stream,
uint32_t  inputWidth,
uint32_t  inputHeight,
VPIPayload payload 
)

#include <vpi/algo/HarrisKeypointDetector.h>

Creates a Harris Keypoint Detector payload.

This function allocates all temporary memory needed by the algorithm.

Parameters
stream[in] VPI stream to be used.
inputWidth,inputHeight[in] Dimensions of the input image that will be used with this payload.
payload[out] Pointer to a payload handle that will point to the created payload.
Returns
VPI_SUCCESS if payload was created successfully, some other VPIStatus value in case of error.

◆ vpiSubmitHarrisKeypointDetector()

VPIStatus vpiSubmitHarrisKeypointDetector ( VPIPayload  payload,
VPIImage  input,
VPIArray  outFeatures,
VPIArray  outScores,
const VPIHarrisKeypointDetectorParams params 
)

#include <vpi/algo/HarrisKeypointDetector.h>

Submits Harris Keypoint Detector operation to the stream associated with the payload.

Parameters
payload[in] Payload to be submitted.
input[in] Input image from where the Harris keypoints will be extracted.
outFeatures[out] Array that will receive the detected keypoints. It must have type VPI_ARRAY_TYPE_KLT_TRACKED_BOUNDING_BOX.
outScores[out] Array that will receive the detected keypoints. It must have type VPI_ARRAY_TYPE_HOMOGRAPHY_TRANSFORM_2D.
params[in] Pointer to a VPIHarrisKeypointDetectorParams with parameters for this algorithm invocation. These parameters can vary in every call and will be copied internally, no need to keep the object around.
Returns
VPI_SUCCESS if algorithm was submitted was created successfully, some other VPIStatus value in case of error. Even if VPI_SUCCESS is returned, the actual algorithm execution might still fail, even due to invalid parameters. The actual error will only be returned by some synchronization call or another algorithm submission.