Image
Image wrapper that combines tensor data with image-specific metadata.
This class provides a type-safe representation of image data for use in data processing pipelines. It wraps an underlying tensor and tracks layout and color space information.
Example:
val image = Image.fromTensor(tensor, ImageLayout.CHW, ColorSpace.RGB)
println("Size: ${image.width} x ${image.height}")
println("Channels: ${image.channels}")Content copied to clipboard
Parameters
T
The DType of the underlying tensor
V
The value type of tensor elements