public abstract class BaseImageLoader extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ALLOWED_FORMATS |
static File |
BASE_DIR |
protected boolean |
centerCropIfNeeded |
protected int |
channels |
protected int |
height |
protected ImageTransform |
imageTransform |
protected static org.slf4j.Logger |
log |
protected NativeImageLoader.MultiPageMode |
multiPageMode |
protected Random |
rng |
protected int |
width |
| Constructor and Description |
|---|
BaseImageLoader() |
| Modifier and Type | Method and Description |
|---|---|
abstract Image |
asImageMatrix(File f) |
abstract Image |
asImageMatrix(InputStream inputStream) |
abstract org.nd4j.linalg.api.ndarray.INDArray |
asMatrix(File f) |
abstract org.nd4j.linalg.api.ndarray.INDArray |
asMatrix(InputStream inputStream) |
abstract org.nd4j.linalg.api.ndarray.INDArray |
asRowVector(File f) |
abstract org.nd4j.linalg.api.ndarray.INDArray |
asRowVector(InputStream inputStream) |
static void |
downloadAndUntar(Map urlMap,
File fullDir) |
String[] |
getAllowedFormats() |
protected static final org.slf4j.Logger log
public static final File BASE_DIR
public static final String[] ALLOWED_FORMATS
protected Random rng
protected int height
protected int width
protected int channels
protected boolean centerCropIfNeeded
protected ImageTransform imageTransform
protected NativeImageLoader.MultiPageMode multiPageMode
public String[] getAllowedFormats()
public abstract org.nd4j.linalg.api.ndarray.INDArray asRowVector(File f) throws IOException
IOExceptionpublic abstract org.nd4j.linalg.api.ndarray.INDArray asRowVector(InputStream inputStream) throws IOException
IOExceptionpublic abstract org.nd4j.linalg.api.ndarray.INDArray asMatrix(File f) throws IOException
IOExceptionpublic abstract org.nd4j.linalg.api.ndarray.INDArray asMatrix(InputStream inputStream) throws IOException
IOExceptionpublic abstract Image asImageMatrix(File f) throws IOException
IOExceptionpublic abstract Image asImageMatrix(InputStream inputStream) throws IOException
IOExceptionCopyright © 2018. All rights reserved.