Class TensorDataAccessStridedImagePlanar

Inheritance Relationships

Base Type

Class Documentation

class TensorDataAccessStridedImagePlanar : public nvcv::detail::TensorDataAccessStridedImagePlanarImpl<TensorShapeInfoImagePlanar>

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

This class extends TensorDataAccessStridedImage and offers specific utilities for accessing the data in planar image tensors using a strided memory layout.

Public Static Functions

static inline bool IsCompatible(const TensorData &data)

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

Parameters:

data – The tensor data to check.

Returns:

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

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

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

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 TensorDataAccessStridedImagePlanar(const TensorDataStrided &data)