public abstract class BaseImageLoader extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseImageLoader.MultiPageMode |
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ALLOWED_FORMATS |
static File |
BASE_DIR |
protected boolean |
centerCropIfNeeded |
protected long |
channels |
protected long |
height |
protected ImageTransform |
imageTransform |
protected static org.slf4j.Logger |
log |
protected BaseImageLoader.MultiPageMode |
multiPageMode |
protected Random |
rng |
protected long |
width |
| Constructor and Description |
|---|
BaseImageLoader() |
| Modifier and Type | Method and Description |
|---|---|
abstract Image |
asImageMatrix(File f) |
abstract Image |
asImageMatrix(InputStream inputStream) |
abstract INDArray |
asMatrix(File f) |
abstract INDArray |
asMatrix(InputStream inputStream) |
abstract INDArray |
asRowVector(File f) |
abstract 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 long height
protected long width
protected long channels
protected boolean centerCropIfNeeded
protected ImageTransform imageTransform
protected BaseImageLoader.MultiPageMode multiPageMode
public String[] getAllowedFormats()
public abstract INDArray asRowVector(File f) throws IOException
IOExceptionpublic abstract INDArray asRowVector(InputStream inputStream) throws IOException
IOExceptionpublic abstract INDArray asMatrix(File f) throws IOException
IOExceptionpublic abstract INDArray asMatrix(InputStream inputStream) throws IOException
IOExceptionpublic abstract Image asImageMatrix(File f) throws IOException
IOExceptionpublic abstract Image asImageMatrix(InputStream inputStream) throws IOException
IOExceptionCopyright © 2019. All rights reserved.