ImageInput class

Image handed to vlm and segmentation.

Constructors

ImageInput.bytes(Uint8List data, {String mediaType = 'image/png'})
Wrap encoded image bytes (PNG, JPEG, WebP, …).
factory
ImageInput.file(String path)
Reference an encoded image file on disk.
factory
ImageInput.rawRgb(Uint8List data, int width, int height)
Wrap tightly packed 8-bit RGB pixels.
factory

Properties

bytes Uint8List
Encoded or raw pixel bytes. Empty when path carries the image.
final
hashCode int
The hash code for this object.
no setterinherited
height int
Pixel height. Non-zero only for ImageInput.rawRgb.
final
isRawRgb bool
True when bytes holds packed RGB8 pixels rather than an encoded file.
final
mediaType String
MIME type of bytes when it holds a compressed container (PNG/JPEG/ WebP). Unused for path or raw-RGB inputs.
final
path String?
Filesystem path, when the image was supplied by reference.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Pixel width. Non-zero only for ImageInput.rawRgb.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSegmentationImage() SegmentationImage
Build the generated segmentation image for this input.
toString() String
A string representation of this object.
inherited
toVlmImage() VLMImage
Build the generated VLM image for this input.

Operators

operator ==(Object other) bool
The equality operator.
inherited