Class TensorDataAccessStridedImage

Inheritance Relationships

Base Type

Class Documentation

class TensorDataAccessStridedImage : public nvcv::detail::TensorDataAccessStridedImageImpl<TensorShapeInfoImage>

Provides access to image tensor data with a strided memory layout.

This class extends TensorDataAccessStrided and provides specialized utilities for accessing image tensor data.

Public Static Functions

static inline bool IsCompatible(const TensorData &data)

Checks if the provided tensor data is compatible with an image tensor layout.

Parameters:

data – The tensor data to check.

Returns:

true if the data is compatible with an image tensor layout, false otherwise.

static inline Optional<TensorDataAccessStridedImage> Create(const TensorData &data)

Creates an instance of this class for the provided tensor data if it is compatible.

Parameters:

data – The tensor data to use for creation.

Returns:

An instance of this class if the data is compatible, NullOpt otherwise.

Protected Functions

inline TensorDataAccessStridedImage(const TensorDataStrided &data)