ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

BitmapExtractor

public final class BitmapExtractor

Utility for extracting Bitmap from MlImage.

Currently it only supports MlImage with MlImage.STORAGE_TYPE_BITMAP, otherwise IllegalArgumentException will be thrown.

Public Methods

static Bitmap
extract(MlImage image)
Extracts a Bitmap from an MlImage.

Inherited Methods

Public Methods

public static Bitmap extract (MlImage image)

Extracts a Bitmap from an MlImage.

Notice: Properties of the image like rotation will not take effects.

Parameters
image the image to extract Bitmap from.
Returns
Throws
IllegalArgumentException when the extraction requires unsupported format or data type conversions.