|
VPI - Vision Programming Interface
0.4.4 Release
|
Go to the documentation of this file.
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)
89 #define vpiCreateExtractHOGFeatures VPI_APINAME(vpiCreateExtractHOGFeatures, 004)
90 #define vpiCreateExtractHOGFeaturesBatch VPI_APINAME(vpiCreateExtractHOGFeaturesBatch, 004)
91 #define vpiSubmitExtractHOGFeatures VPI_APINAME(vpiSubmitExtractHOGFeatures, 004)
108 uint32_t cellSize, uint32_t numOrientations,
VPIPayload *payload,
109 uint32_t *outNumFeatures);
127 uint32_t maxBatchHeight, uint32_t imgWidth, uint32_t imgHeight,
128 uint32_t features, uint32_t cellSize, uint32_t numOrientations,
129 VPIPayload *payload, uint32_t *outNumFeatures);
148 VPIImage *outFeatures, uint32_t numFeatures);
156 #endif // NV_VPI_ALGORITHMS_HOG_H
VPIBackend
VPI Backend types.
struct VPIStreamImpl * VPIStream
A handle to a stream.
VPIStatus vpiSubmitExtractHOGFeatures(VPIStream stream, VPIPayload payload, VPIImage input, VPIImage *outFeatures, uint32_t numFeatures)
Submit the HOG algorithm to the stream associated with the payload.
VPIStatus vpiCreateExtractHOGFeaturesBatch(VPIBackend backend, uint32_t maxBatchWidth, uint32_t maxBatchHeight, uint32_t imgWidth, uint32_t imgHeight, uint32_t features, uint32_t cellSize, uint32_t numOrientations, VPIPayload *payload, uint32_t *outNumFeatures)
Create a payload for the batch version of HOG algorithm.
struct VPIImageImpl * VPIImage
A handle to an image.
struct VPIPayloadImpl * VPIPayload
A handle to an algorithm payload.
VPIStatus vpiCreateExtractHOGFeatures(VPIBackend backend, uint32_t width, uint32_t height, uint32_t features, uint32_t cellSize, uint32_t numOrientations, VPIPayload *payload, uint32_t *outNumFeatures)
Create a payload for the non-batch version of HOG algorithm.