VPI - 视觉编程接口

3.2 版本

TemplateMatching.h
转到此文件的文档。
1 /*
2  * 版权所有 2022 NVIDIA Corporation。保留所有权利。
3  *
4  * 致许可方:
5  *
6  * 此源代码和/或文档(“许可交付物”)是
7  * 受美国和
8  * 国际版权法保护的 NVIDIA 知识产权。
9  *
10  * 此处包含的这些许可交付物是专有的且
11  * 对 NVIDIA 保密,并根据以下条款和
12  * NVIDIA 与被许可方之间(“许可协议”)或以电子方式达成的某种形式的 NVIDIA 软件许可协议的条件提供。
13  * between NVIDIA and Licensee ("License Agreement") or electronically
14  * 被许可方接受。 尽管许可协议中有任何相反的条款或条件
15  * ,未经 NVIDIA 明确书面同意,不得复制或向任何第三方披露
16  * of the Licensed Deliverables to any third party without the express
17  * 许可交付物。
18  *
19  * 尽管许可协议中有任何相反的条款或条件
20  * ,NVIDIA 对这些许可交付物针对任何特定用途的适用性不做任何陈述。
21  * SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
22  * 这些许可交付物按“原样”提供,不附带任何明示或暗示的担保。
23  * NVIDIA 否认与这些许可交付物相关的所有保证,
24  * 包括对适销性、
25  * 非侵权和特定用途适用性的所有默示保证。
26  * 尽管许可协议中有任何相反的条款或条件
27  * ,在任何情况下,NVIDIA 均不对任何
28  * 特殊的、间接的、偶然的或后果性的损害,或任何
29  * 因使用、数据或利润损失而导致的任何损害,
30  * 无论是在合同诉讼、过失或其他侵权行为中
31  * ,均不承担任何责任,即使是因使用或执行
32  * 这些许可交付物而引起或与之相关的。
33  *
34  * 美国政府最终用户。 这些许可交付物是
35  * “商业项目”,该术语在 48 C.F.R. 2.101(10 月
36  * 1995 年)中的定义,包括“商业计算机软件”和“商业
37  * 计算机软件文档”,这些术语在 48 C.F.R. 12.212(1995 年 9 月)中使用,并且仅作为商业最终项目提供给美国政府。
38  * C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
39  * only as a commercial end item. Consistent with 48 C.F.R.12.212 and
40  * 根据 48 C.F.R. 12.212 和 48 C.F.R. 227.7202-1 至 227.7202-4(1995 年 6 月),所有美国政府最终用户仅获得本文规定的权利而获得许可交付物。
41  * U.S. Government End Users acquire the Licensed Deliverables with
42  * only those rights set forth herein.
43  *
44  * 在个人和商业软件中使用许可交付物时,必须在用户文档和代码的内部注释中包含上述免责声明和美国政府最终用户声明。
45  * software must include, in the user documentation and internal
46  * comments to the code, the above Disclaimer and U.S. Government End
47  * Users Notice.
48  */
49 
56 #ifndef NV_VPI_ALGORITHMS_TEMPLATE_MATCHING_H
57 #define NV_VPI_ALGORITHMS_TEMPLATE_MATCHING_H
58 
68 #include "../Export.h"
69 #include "../Status.h"
70 #include "../Types.h"
71 
72 #include <stdint.h>
73 
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77 
109 VPI_PUBLIC VPIStatus vpiCreateTemplateMatching(uint64_t backends, int32_t imageWidth, int32_t imageHeight,
110  VPIPayload *payload);
111 
145 VPI_PUBLIC VPIStatus vpiTemplateMatchingSetSourceImage(VPIStream stream, uint64_t backend, VPIPayload payload,
146  VPIImage srcImage);
147 
189 VPI_PUBLIC VPIStatus vpiTemplateMatchingSetTemplateImage(VPIStream stream, uint64_t backend, VPIPayload payload,
190  VPIImage templImage, VPIImage mask);
191 
195 typedef enum
196 {
200 
234 VPI_PUBLIC VPIStatus vpiSubmitTemplateMatching(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage output,
236 
237 #ifdef __cplusplus
238 }
239 #endif
240 
243 #endif /* NV_VPI_ALGORITHMS_TEMPLATE_MATCHING_H */
struct VPIImageImpl * VPIImage
图像的句柄。
定义: Types.h:256
struct VPIPayloadImpl * VPIPayload
算法负载的句柄。
定义: Types.h:268
VPIStatus
状态代码。
定义: Status.h:81
struct VPIStreamImpl * VPIStream
流的句柄。
定义: Types.h:250
VPIStatus vpiCreateTemplateMatching(uint64_t backends, int32_t imageWidth, int32_t imageHeight, VPIPayload *payload)
为 vpiSubmitTemplateMatching 创建负载。
VPIStatus vpiTemplateMatchingSetSourceImage(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage srcImage)
设置源图像。
VPIStatus vpiTemplateMatchingSetTemplateImage(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage templImage, VPIImage mask)
设置模板图像。
VPIStatus vpiSubmitTemplateMatching(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage output, VPITemplateMatchingMethod method)
使用提供的模板运行模板匹配算法。
VPITemplateMatchingMethod
定义计算模板匹配分数的方法。
@ VPI_TEMPLATE_MATCHING_NCC
归一化互相关。