public class AndroidNativeImageLoader extends NativeImageLoader
BaseImageLoader.MultiPageModeALLOWED_FORMATS, converterBASE_DIR, centerCropIfNeeded, channels, height, imageTransform, log, multiPageMode, rng, width| Modifier | Constructor and Description |
|---|---|
|
AndroidNativeImageLoader() |
|
AndroidNativeImageLoader(int height,
int width) |
|
AndroidNativeImageLoader(int height,
int width,
int channels) |
|
AndroidNativeImageLoader(int height,
int width,
int channels,
boolean centerCropIfNeeded) |
|
AndroidNativeImageLoader(int height,
int width,
int channels,
ImageTransform imageTransform) |
protected |
AndroidNativeImageLoader(NativeImageLoader other) |
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
asBitmap(INDArray array)
Returns
asBitmap(array, Frame.DEPTH_UBYTE). |
android.graphics.Bitmap |
asBitmap(INDArray array,
int dataType)
Converts an INDArray to a Bitmap.
|
INDArray |
asMatrix(android.graphics.Bitmap image) |
INDArray |
asMatrix(Object image)
|
INDArray |
asRowVector(android.graphics.Bitmap image) |
INDArray |
asRowVector(Object image)
Returns
asMatrix(image).ravel(). |
asFrame, asFrame, asImageMatrix, asImageMatrix, asMat, asMat, asMatrix, asMatrix, asMatrix, asMatrix, asMatrix, asMatrixView, asMatrixView, asMatrixView, asRowVector, asRowVector, asRowVector, asRowVector, asWritable, centerCropIfNeeded, fillNDArray, getAllowedFormats, scalingIfNeed, scalingIfNeed, transformImagedownloadAndUntarpublic AndroidNativeImageLoader()
public AndroidNativeImageLoader(int height,
int width)
public AndroidNativeImageLoader(int height,
int width,
int channels)
public AndroidNativeImageLoader(int height,
int width,
int channels,
boolean centerCropIfNeeded)
public AndroidNativeImageLoader(int height,
int width,
int channels,
ImageTransform imageTransform)
protected AndroidNativeImageLoader(NativeImageLoader other)
public INDArray asRowVector(android.graphics.Bitmap image) throws IOException
IOExceptionpublic INDArray asMatrix(android.graphics.Bitmap image) throws IOException
IOExceptionpublic INDArray asRowVector(Object image) throws IOException
NativeImageLoaderasMatrix(image).ravel().asRowVector in class NativeImageLoaderIOExceptionNativeImageLoader.asMatrix(Object)public INDArray asMatrix(Object image) throws IOException
NativeImageLoaderasMatrix(android.graphics.Bitmap) or
Java2DNativeImageLoader.asMatrix(java.awt.image.BufferedImage).asMatrix in class NativeImageLoaderimage - as a Bitmap or BufferedImageIOExceptionpublic android.graphics.Bitmap asBitmap(INDArray array)
asBitmap(array, Frame.DEPTH_UBYTE).public android.graphics.Bitmap asBitmap(INDArray array, int dataType)
array - to convertdataType - from JavaCV (DEPTH_FLOAT, DEPTH_UBYTE, etc), or -1 to use same type as the INDArrayCopyright © 2018. All rights reserved.