Function cvcudaHQResizeTensorGetWorkspaceRequirements
Defined in File OpHQResize.h
Function Documentation
-
NVCVStatus cvcudaHQResizeTensorGetWorkspaceRequirements(NVCVOperatorHandle handle, int batchSize, const HQResizeTensorShapeI inputShape, const HQResizeTensorShapeI outputShape, const NVCVInterpolationType minInterpolation, const NVCVInterpolationType magInterpolation, bool antialias, const HQResizeRoiF *roi, NVCVWorkspaceRequirements *reqOut)
Calculates the workspace requirements for Tensor input/ouput.
- Parameters:
handle – [in] Where the image instance handle will be written to.
Must not be NULL.
batchSize – [in] The number of samples in the tensor (the size of N extent).
inputShape – [in] The HW or DHW extents of the input tensor, the number of resized extents, and the number of channels. Supported number of resizes extents are 2 and 3. For ndim = 2, a tensor of layout (N)HW(C) is expected to be processed, for ndim = 3, a tensor of layout (N)DHW(C) is expected to be processed.
outputShape – [in] The HW or DHW extents of the output tensor and the number of channels. The number of extents and channels must be the same as in inputShape.
minInterpolation – [in] The type of interpolation to be used when downsampling an extent (i.e. when output extent is smaller than the corresponding input extent).
magInterpolation – [in] The type of interpolation to be used when upsampling an extent (i.e. when output extent is bigger than the corresponding input extent).
antialias – [in] Whether to use antialiasing when downsampling.
roi – [in] Optional region of interest for the input, in (D)HW layout.
reqOut – [out] The pointer for workspace requirements struct that will be filled by the call.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Handle is null or one of the arguments is out of range.
NVCV_SUCCESS – Operation executed successfully.