#include <imageUtils.h>
Image data container.
Wraps image tensor loaded with stbi. Expected shape: [height, width, channels]. Channels is typically 3 for RGB images.
Public Functions
-
ImageData() = default
Default constructor (creates uninitialized ImageData)
-
ImageData(rt::Tensor &&data)
Construct image data.
- Parameters:
data – Image tensor
-
unsigned char *data() const
Get raw image data pointer.
- Returns:
Pointer to image data
Public Members
-
std::shared_ptr<rt::Tensor> buffer
Image data buffer.
-
int64_t width
Image width.
-
int64_t height
Image height.
-
int64_t channels
Number of channels (e.g., 3 for RGB)