Function nvcvImageBatchVarShapeGetUniqueFormat

Function Documentation

NVCVStatus nvcvImageBatchVarShapeGetUniqueFormat(NVCVImageBatchHandle handle, NVCVImageFormat *format)

Get the unique format of the image batch.

The unique format of an image batch is defined as being the format of all images in it, if all images have the same format, or NVCV_IMAGE_FORMAT_NONE otherwise. If the batch is empty, its format is NVCV_IMAGE_FORMAT_NONE.

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

    • Must not be NULL.

  • format[out] Where the unique format will be written to. If batch isn’t empty and all images have the same format, it’ll return this format. Or else it returns NVCV_IMAGE_FORMAT_NONE

    • Must not be NULL.

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

  • NVCV_SUCCESS – Operation executed successfully.