Utility for extracting ByteBuffer from
MlImage.
Currently it only supports MlImage with
MlImage.STORAGE_TYPE_BYTEBUFFER,
otherwise IllegalArgumentException
will be thrown.
| static ByteBuffer |
Extracts a ByteBuffer from
an MlImage.
The returned ByteBuffer is a
read-only view, with the first available ImageProperties
whose storage type is MlImage.STORAGE_TYPE_BYTEBUFFER.
ByteBuffer.| IllegalArgumentException | when the image doesn't contain a ByteBuffer
storage. |
|---|