Class ImageData
Defined in File ImageData.hpp
Inheritance Relationships
Derived Types
public nvcv::ImageDataCudaArray
(Class ImageDataCudaArray)public nvcv::ImageDataStrided
(Class ImageDataStrided)
Class Documentation
-
class ImageData
Represents image data encapsulated in a convenient interface.
This class provides methods to access and manipulate image data. It abstracts the underlying image data representation and provides an interface for higher-level operations.
Subclassed by nvcv::ImageDataCudaArray, nvcv::ImageDataStrided
Public Functions
-
ImageData() = default
-
inline ImageData(const NVCVImageData &data)
Construct from an existing NVCVImageData.
- Parameters:
data – The NVCVImageData to use for initialization.
-
inline ImageFormat format() const
Get the image format.
- Returns:
The format of the image as ImageFormat.
-
inline NVCVImageData &cdata()
Get a mutable reference to the underlying NVCVImageData.
This method provides direct access to the internal data representation, allowing for more specific operations.
- Returns:
A reference to the NVCVImageData.
-
inline const NVCVImageData &cdata() const
-
template<typename Derived>
inline Optional<Derived> cast() const Casts the image data to a derived type.
This template method allows the caller to attempt casting the image data to a more specific type. If the cast is successful, an Optional containing the casted type is returned. Otherwise, an empty Optional is returned.
-
ImageData() = default