MediaImageExtractor

public class MediaImageExtractor

Utility for extracting Image from MlImage.

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

Public Methods

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

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

public static Image extract (MlImage image)

Extracts a Image from an MlImage. Currently it only works for MlImage that built from MediaMlImageBuilder.

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

Parameters
image the image to extract Image from.
Returns
Throws
IllegalArgumentException if the extraction failed.