56 #ifndef NV_VPI_ALGORITHMS_HOG_H
57 #define NV_VPI_ALGORITHMS_HOG_H
59 #include "../Export.h"
60 #include "../Status.h"
80 #define VPI_HOG_CONTRAST_SENSITIVE 0x01
81 #define VPI_HOG_CONTRAST_INSENSITIVE 0x02
82 #define VPI_HOG_TEXTURE 0x04
85 #define VPI_HOG_ALL_FEATURES (VPI_HOG_CONTRAST_SENSITIVE | VPI_HOG_CONTRAST_INSENSITIVE | VPI_HOG_TEXTURE)
124 int32_t cellSize, int32_t numOrientations, int32_t *outNumFeatures,
173 int32_t imgWidth, int32_t imgHeight, int32_t features,
174 int32_t cellSize, int32_t numOrientations,
175 int32_t *outNumFeatures,
VPIPayload *payload);
219 VPIImage *outFeatures, int32_t numFeatures);
VPIStatus vpiSubmitExtractHOGFeatures(VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage input, VPIImage *outFeatures, int32_t numFeatures)
将 HOG 操作提交到流。
VPIStatus vpiCreateExtractHOGFeaturesBatch(uint64_t backends, int32_t maxBatchWidth, int32_t maxBatchHeight, int32_t imgWidth, int32_t imgHeight, int32_t features, int32_t cellSize, int32_t numOrientations, int32_t *outNumFeatures, VPIPayload *payload)
为 HOG 算法的批处理版本创建有效负载。
VPIStatus vpiCreateExtractHOGFeatures(uint64_t backends, int32_t width, int32_t height, int32_t features, int32_t cellSize, int32_t numOrientations, int32_t *outNumFeatures, VPIPayload *payload)
为 HOG 算法的非批处理版本创建有效负载。
struct VPIImageImpl * VPIImage
图像的句柄。
struct VPIPayloadImpl * VPIPayload
算法有效负载的句柄。
struct VPIStreamImpl * VPIStream
流的句柄。