Class ImageDataCudaArray
Defined in File ImageData.hpp
Inheritance Relationships
Base Type
public nvcv::ImageData
(Class ImageData)
Class Documentation
-
class ImageDataCudaArray : public nvcv::ImageData
Represents image data stored in a CUDA array format.
This class extends the ImageData class, providing additional methods and attributes specific to the CUDA array format.
Public Types
-
using Buffer = NVCVImageBufferCudaArray
Public Functions
-
inline explicit ImageDataCudaArray(ImageFormat format, const Buffer &buffer)
Constructor that initializes the image data from an ImageFormat and a CUDA array buffer.
- Parameters:
format – The image format.
buffer – The CUDA array buffer.
-
inline explicit ImageDataCudaArray(const NVCVImageData &data)
Constructor that initializes the image data from an existing NVCVImageData.
- Parameters:
data – The NVCVImageData to use for initialization.
-
inline int numPlanes() const
Get the number of planes in the image.
- Returns:
The number of planes.
-
inline cudaArray_t plane(int p) const
Get a specific plane of the image.
- Parameters:
p – The index of the plane.
- Returns:
The CUDA array corresponding to the specified plane.
Public Static Functions
-
static inline constexpr bool IsCompatibleKind(NVCVImageBufferType kind)
Check if a given image buffer type is compatible with the CUDA array format.
- Parameters:
kind – The image buffer type.
- Returns:
true if the type is NVCV_IMAGE_BUFFER_CUDA_ARRAY, false otherwise.
-
using Buffer = NVCVImageBufferCudaArray