Function cvcudaHQResizeTensorBatchGetWorkspaceRequirements

Function Documentation

NVCVStatus cvcudaHQResizeTensorBatchGetWorkspaceRequirements(NVCVOperatorHandle handle, int batchSize, const HQResizeTensorShapesI inputShapes, const HQResizeTensorShapesI outputShapes, const NVCVInterpolationType minInterpolation, const NVCVInterpolationType magInterpolation, bool antialias, const HQResizeRoisF roi, NVCVWorkspaceRequirements *reqOut)

Calculates the workspace requirements for TensorBatch/ImageBatchVarShape 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 batch/image batch.

  • inputShapes[in] The list of shapes (HW or DHW extents) in the input batch, the number of channels, and the number of extents to be resampled (2 or 3). The number of channels can be specified once for the whole batch or each sample separately.

  • outputShapes[in] The list of shapes (HW or DHW extents) in the output batch, the number of channels, and the number of extents to be resampled (2 or 3). The number of channels must match the number of channels in the input.

  • 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. The roi can be described as a list for each sample or contain a single element to be used for all the samples in the batch.

  • 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.