Class ImageBatchData

Inheritance Relationships

Derived Type

Class Documentation

class ImageBatchData

Represents the underlying data of an image batch.

This class provides an interface to access and manipulate the data associated with a batch of images. It also allows casting the data to a derived type.

Subclassed by nvcv::ImageBatchVarShapeData

Public Functions

template<typename Derived>
Optional<Derived> cast() const

Cast the image batch data to a specific derived type.

Template Parameters:

Derived – The target derived type.

Returns:

An Optional containing the casted data if successful, otherwise NullOpt.

ImageBatchData() = default
inline ImageBatchData(const NVCVImageBatchData &data)

Construct from an existing NVCVImageBatchData.

Parameters:

data – The NVCVImageBatchData to use for initialization.

inline const NVCVImageBatchData &cdata() const &

Access the underlying constant NVCVImageBatchData.

Returns:

A reference to the underlying NVCVImageBatchData.

inline NVCVImageBatchData cdata() &&

Move the underlying NVCVImageBatchData.

Returns:

The moved NVCVImageBatchData.

inline int32_t numImages() const

Get the number of images in the batch.

Returns:

The number of images.

Public Static Functions

static inline constexpr bool IsCompatibleKind(NVCVImageBatchBufferType type)

Check if a specific buffer type is compatible with this class.

Parameters:

type – The buffer type to check.

Returns:

True if the type is not NVCV_IMAGE_BATCH_BUFFER_NONE, false otherwise.

Protected Functions

inline NVCVImageBatchData &data() &