Function nvcvImageBatchVarShapeGetMaxSize

Function Documentation

NVCVStatus nvcvImageBatchVarShapeGetMaxSize(NVCVImageBatchHandle handle, int32_t *maxWidth, int32_t *maxHeight)

Get the maximum size of the images in the batch.

The maximum size of the image batch is defined as the maximum width and height of all images in it. If the batch is empty, its maximum size is (0,0).

Parameters:
  • handle[in] Image batch to be queried.

    • Must not be NULL.

  • maxWidth, maxHeight[out] Where the maximum width and height will be stored. If NULL, corresponding value won’t be returned.

    • Both cannot be NULL

Return values:
  • NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside its valid range.

  • NVCV_SUCCESS – Operation executed successfully.