public class EasyImageRecordReader
extends org.datavec.image.recordreader.BaseImageRecordReader
| Constructor and Description |
|---|
EasyImageRecordReader(int width,
int height,
int channels,
java.util.ArrayList<java.io.File> filenames,
java.util.ArrayList<java.lang.String> classes,
int seed)
Constructor for the record reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.datavec.api.split.InputSplit split)
Initializes the iterators.
|
java.util.List<org.datavec.api.writable.Writable> |
next()
Gets the next element
|
java.util.List<org.datavec.api.writable.Writable> |
record(java.net.URI uri,
java.io.DataInputStream dataInputStream)
A method that still needs to be implemented.
|
void |
reset()
Resets the record reader.
|
close, getConf, getCurrentFile, getLabel, getLabels, hasNext, initialize, initialize, initialize, loadFromMetaData, loadFromMetaData, nextRecord, numLabels, setConf, setCurrentFile, setLabelspublic EasyImageRecordReader(int width,
int height,
int channels,
java.util.ArrayList<java.io.File> filenames,
java.util.ArrayList<java.lang.String> classes,
int seed)
throws java.io.IOException
width - The desired image width.height - The desired image height.channels - The desired number of channels.filenames - The list of file names.classes - The list of class values.seed - the seed for the random number generator.java.io.IOExceptionpublic void initialize(org.datavec.api.split.InputSplit split)
initialize in interface org.datavec.api.records.reader.RecordReaderinitialize in class org.datavec.image.recordreader.BaseImageRecordReadersplit - this parameter is ignored.public java.util.List<org.datavec.api.writable.Writable> next()
next in interface org.datavec.api.records.reader.RecordReadernext in class org.datavec.image.recordreader.BaseImageRecordReaderpublic void reset()
reset in interface org.datavec.api.records.reader.RecordReaderreset in class org.datavec.image.recordreader.BaseImageRecordReaderpublic java.util.List<org.datavec.api.writable.Writable> record(java.net.URI uri,
java.io.DataInputStream dataInputStream)
throws java.io.IOException
record in interface org.datavec.api.records.reader.RecordReaderrecord in class org.datavec.image.recordreader.BaseImageRecordReaderuri - the URIdataInputStream - the data input streamjava.io.IOException