LiteRtImage
Represents an image that can be preprocessed before being fed into a LiteRT model.
This class provides common image operations such as resizing and converting pixel data into a normalized FloatArray.
Platform-specific implementations are provided for each supported target.
Functions
Returns a center-cropped copy of this image.
Returns a flipped copy of this image.
Returns a resized copy of this image.
Returns a rotated copy of this image.
Converts the image into a boolean array.
Converts the image into a normalized float array.
Converts the image to grayscale.
Converts the image into a signed 8-bit integer array (ByteArray).
Converts the image into an integer array.
Converts the image into a long array.
Converts the image to RGB format (discarding alpha if present).
Directly writes the image pixel data to a float TFBuffer with normalization.
Directly writes the image pixel data to a signed 8-bit integer io.github.kmplitert.core.TFBuffer.