Class ImageDataStrided
Defined in File ImageData.hpp
Inheritance Relationships
Base Type
public nvcv::ImageData
(Class ImageData)
Derived Types
public nvcv::ImageDataStridedCuda
(Class ImageDataStridedCuda)public nvcv::ImageDataStridedHost
(Class ImageDataStridedHost)
Class Documentation
-
class ImageDataStrided : public nvcv::ImageData
Represents strided image data.
This class extends the ImageData class, providing additional methods and attributes specific to the strided image format.
Subclassed by nvcv::ImageDataStridedCuda, nvcv::ImageDataStridedHost
Public Types
-
using Buffer = ImageBufferStrided
Public Functions
-
inline explicit ImageDataStrided(const NVCVImageData &data)
Constructor that initializes the strided image data from an existing NVCVImageData.
- Parameters:
data – The NVCVImageData to use for initialization.
-
inline Size2D size() const
Get the size of the image.
- Returns:
The size of the image in the form of a Size2D object.
-
inline int numPlanes() const
Get the number of planes in the image.
- Returns:
The number of planes.
-
inline const ImagePlaneStrided &plane(int p) const
Get a specific plane of the image in a strided format.
- Parameters:
p – The index of the plane.
- Returns:
The ImagePlaneStrided 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 strided format.
- Parameters:
kind – The image buffer type.
- Returns:
true if the type is either NVCV_IMAGE_BUFFER_STRIDED_CUDA or NVCV_IMAGE_BUFFER_STRIDED_HOST, false otherwise.
Protected Functions
-
ImageDataStrided() = default
-
using Buffer = ImageBufferStrided