56 #ifndef NV_VPI_ALGORITHMS_TEMPLATE_MATCHING_H
57 #define NV_VPI_ALGORITHMS_TEMPLATE_MATCHING_H
68 #include "../Export.h"
69 #include "../Status.h"
struct VPIImageImpl * VPIImage
A handle to an image.
struct VPIPayloadImpl * VPIPayload
A handle to an algorithm payload.
struct VPIStreamImpl * VPIStream
A handle to a stream.
VPIStatus vpiCreateTemplateMatching(uint64_t backends, int32_t imageWidth, int32_t imageHeight, VPIPayload *payload)
Creates payload for vpiSubmitTemplateMatching.
VPIStatus vpiTemplateMatchingSetSourceImage(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage srcImage)
Set the source image.
VPIStatus vpiTemplateMatchingSetTemplateImage(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage templImage, VPIImage mask)
Set the template image.
VPIStatus vpiSubmitTemplateMatching(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage output, VPITemplateMatchingMethod method)
Runs the template matching algorithm with provided template.
VPITemplateMatchingMethod
Define method to calculate the template matching score.
@ VPI_TEMPLATE_MATCHING_NCC
Normalized cross correlation.