public class AndroidNativeImageLoader extends NativeImageLoader
ALLOWED_FORMATS, converterBASE_DIR, centerCropIfNeeded, channels, height, imageTransform, log, 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 |
|---|---|
org.nd4j.linalg.api.ndarray.INDArray |
asMatrix(android.graphics.Bitmap image) |
org.nd4j.linalg.api.ndarray.INDArray |
asMatrix(Object image)
|
org.nd4j.linalg.api.ndarray.INDArray |
asRowVector(android.graphics.Bitmap image) |
org.nd4j.linalg.api.ndarray.INDArray |
asRowVector(Object image)
Returns
asMatrix(image).ravel(). |
asMatrix, asMatrix, asMatrix, asMatrix, asMatrixView, asMatrixView, asMatrixView, 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 org.nd4j.linalg.api.ndarray.INDArray asRowVector(android.graphics.Bitmap image)
throws IOException
IOExceptionpublic org.nd4j.linalg.api.ndarray.INDArray asMatrix(android.graphics.Bitmap image)
throws IOException
IOExceptionpublic org.nd4j.linalg.api.ndarray.INDArray asRowVector(Object image) throws IOException
NativeImageLoaderasMatrix(image).ravel().asRowVector in class NativeImageLoaderIOExceptionNativeImageLoader.asMatrix(Object)public org.nd4j.linalg.api.ndarray.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 BufferedImageIOExceptionCopyright © 2017. All rights reserved.