HOG#
Functions#
- NVCVStatus pvaHOGCreate(NVCVOperatorHandle *handle, NVCVImageRequirements *imageRequirements, NVCVTensorRequirements *tensorRequirements)
Constructs and an instance of the HOG operator.
- NVCVStatus pvaHOGSubmit(NVCVOperatorHandle handle, cupvaStream_t stream, NVCVImageHandle const in, NVCVTensorHandle const out)
Submits the HOG operator to a cuPVA stream.
- NVCVStatus pvaHOGSubmit(NVCVOperatorHandle handle, cudaStream_t stream, NVCVImageHandle const in, NVCVTensorHandle const out)
Submits the HOG operator to a CUDA stream.
Functions#
- NVCVStatus pvaHOGCreate(
- NVCVOperatorHandle *handle,
- NVCVImageRequirements *imageRequirements,
- NVCVTensorRequirements *tensorRequirements,
Constructs and an instance of the HOG operator.
Limitations:
Input image:
Image format
Allowed
RGB8p
Yes
Image size constraints:
576x576 is the only supported image size.
Output tensor: Data Layout: [CHW]
Tensor size constraints:
18x144x144 is the only supported tensor size.
- Parameters:
handle – [out] Where the operator instance handle will be written to.
Must not be NULL.
imageRequirements – [in] Pointer to the NVCVImageRequirements structure which contains input image width, height and format information.
tensorRequirements – [in] Pointer to the NVCVTensorRequirements structure which contains output tensor rank, shape, layout and data type information.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Handle is null.
NVCV_ERROR_OUT_OF_MEMORY – Not enough memory to create the operator.
NVCV_SUCCESS – Operation executed successfully.
- NVCVStatus pvaHOGSubmit(
- NVCVOperatorHandle handle,
- cupvaStream_t stream,
- NVCVImageHandle const in,
- NVCVTensorHandle const out,
Submits the HOG operator to a cuPVA stream.
- Parameters:
handle – [in] Handle to the operator.
Must not be NULL.
stream – [in] Handle to a valid cuPVA stream.
in – [in] Input image handle.
out – [out] Output tensor handle.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside valid range.
NVCV_ERROR_INTERNAL – Internal error in the operator, invalid types passed in.
NVCV_SUCCESS – Operation executed successfully.
- NVCVStatus pvaHOGSubmit(
- NVCVOperatorHandle handle,
- cudaStream_t stream,
- NVCVImageHandle const in,
- NVCVTensorHandle const out,
Submits the HOG operator to a CUDA stream.
Note
CUDA stream support requirements:
PVA SDK 2.7.0 or later
Jetpack 7 or later
DriveOS 7 or later
x86 Emulator is not supported
- Parameters:
handle – [in] Handle to the operator.
stream – [in] Handle to a valid CUDA stream.
in – [in] Input image handle.
out – [out] Output tensor handle.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside valid range.
NVCV_ERROR_INTERNAL – Internal error in the operator, invalid types passed in.
NVCV_SUCCESS – Operation executed successfully.