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, setLabels
public 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.IOException
public void initialize(org.datavec.api.split.InputSplit split)
initialize
in interface org.datavec.api.records.reader.RecordReader
initialize
in class org.datavec.image.recordreader.BaseImageRecordReader
split
- this parameter is ignored.public java.util.List<org.datavec.api.writable.Writable> next()
next
in interface org.datavec.api.records.reader.RecordReader
next
in class org.datavec.image.recordreader.BaseImageRecordReader
public void reset()
reset
in interface org.datavec.api.records.reader.RecordReader
reset
in class org.datavec.image.recordreader.BaseImageRecordReader
public 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.RecordReader
record
in class org.datavec.image.recordreader.BaseImageRecordReader
uri
- the URIdataInputStream
- the data input streamjava.io.IOException