Detect Harris keypoints in an image, usually used in keypoint tracking. More...
Data Structures | |
| struct | VPIHarrisCornerDetectorParams | 
| Structure that defines the parameters for vpiSubmitHarrisCornerDetector.  More... | |
Functions | |
| VPIStatus | vpiInitHarrisCornerDetectorParams (VPIHarrisCornerDetectorParams *params) | 
| Initializes VPIHarrisCornerDetectorParams with default values.  More... | |
| VPIStatus | vpiCreateHarrisCornerDetector (uint64_t backends, int32_t inputWidth, int32_t inputHeight, VPIPayload *payload) | 
| Creates a Harris Corner Detector payload.  More... | |
| VPIStatus | vpiSubmitHarrisCornerDetector (VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage input, VPIArray outFeatures, VPIArray outScores, const VPIHarrisCornerDetectorParams *params) | 
| Submits a Harris Corner Detector operation to the stream.  More... | |
Detect Harris keypoints in an image, usually used in keypoint tracking.
Refer to Harris Corner Detector for more details and usage examples.
| struct VPIHarrisCornerDetectorParams | 
Structure that defines the parameters for vpiSubmitHarrisCornerDetector.
Definition at line 81 of file HarrisCorners.h.
 Collaboration diagram for VPIHarrisCornerDetectorParams:| VPIStatus vpiInitHarrisCornerDetectorParams | ( | VPIHarrisCornerDetectorParams * | params | ) | 
#include <vpi/algo/HarrisCorners.h>
Initializes VPIHarrisCornerDetectorParams with default values.
Default values are:
| VPI_ERROR_INVALID_ARGUMENT | params is NULL.  | 
| VPI_SUCCESS | Operation executed successfully. | 
| VPIStatus vpiCreateHarrisCornerDetector | ( | uint64_t | backends, | 
| int32_t | inputWidth, | ||
| int32_t | inputHeight, | ||
| VPIPayload * | payload | ||
| ) | 
#include <vpi/algo/HarrisCorners.h>
Creates a Harris Corner Detector payload.
This function allocates all temporary memory needed by the algorithm.
| [in] | backends | VPI backends that are eligible to execute the algorithm.
  | 
| [in] | inputWidth,inputHeight | Dimensions of the input image that will be used with this payload.
  | 
| [out] | payload | Pointer to the payload variable that receives the created handle. | 
| VPI_ERROR_INVALID_ARGUMENT | payload is NULL.  | 
| VPI_ERROR_INVALID_ARGUMENT | inputWidth or inputHeight outside valid range.  | 
| VPI_ERROR_INVALID_ARGUMENT | backends refers to an invalid backend.  | 
| VPI_ERROR_INVALID_OPERATION | Backend hardware not available. | 
| VPI_ERROR_NOT_IMPLEMENTED | Harris Corner Detector algorithm is not supported by given backend. | 
| VPI_ERROR_INVALID_CONTEXT | Current context is destroyed. | 
| VPI_ERROR_OUT_OF_MEMORY | Cannot allocate required resources. | 
| VPI_ERROR_INVALID_OPERATION | Backend isn't enabled in current context. | 
| VPI_SUCCESS | Operation executed successfully. | 
| VPIStatus vpiSubmitHarrisCornerDetector | ( | VPIStream | stream, | 
| uint64_t | backend, | ||
| VPIPayload | payload, | ||
| VPIImage | input, | ||
| VPIArray | outFeatures, | ||
| VPIArray | outScores, | ||
| const VPIHarrisCornerDetectorParams * | params | ||
| ) | 
#include <vpi/algo/HarrisCorners.h>
Submits a Harris Corner Detector operation to the stream.
| [in] | stream | The stream where the operation will be queued in.
  | 
| [in] | backend | Backend that will execute the algorithm.
  | 
| [in] | payload | Payload to be submitted along the other parameters. | 
| [in] | input | Input image from where the Harris corners will be extracted.
  | 
| [out] | outFeatures | Array that will receive the detected corners. Array size is updated with the number of corners found.
  | 
| [out] | outScores | Array that will receive the corners' scores. Array size matches outFeatures array' size.
  | 
| [in] | params | Pointer to a VPIHarrisCornerDetectorParams 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. | 
| VPI_ERROR_INVALID_ARGUMENT | stream is NULL.  | 
| VPI_ERROR_INVALID_ARGUMENT | input, outFeatures or outScores are NULL.  | 
| VPI_ERROR_INVALID_ARGUMENT | payload is not created by vpiCreateHarrisCornerDetector.  | 
| VPI_ERROR_INVALID_ARGUMENT | Strength threshold in params outside valid range.  | 
| VPI_ERROR_INVALID_ARGUMENT | Output arrays must have same capacity. | 
| VPI_ERROR_INVALID_ARGUMENT | Unsupported outFeatures or outScores type.  | 
| VPI_ERROR_INVALID_ARGUMENT | Invalid input dimensions.  | 
| VPI_ERROR_INVALID_PAYLOAD_TYPE | payload is invalid.  | 
| VPI_ERROR_INVALID_IMAGE_FORMAT | Unsupported input format. | 
| VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream, outFeatures or outScores.  | 
| VPI_SUCCESS | Operation executed successfully. |