org.encog.platformspecific.j2se.data.image
public class ImageMLDataSet extends BasicMLDataSet
BasicMLDataSet.BasicMLIterator| Modifier and Type | Field and Description |
|---|---|
static String |
MUST_USE_IMAGE
Error message to inform the caller that only ImageNeuralData objects can
be used with this collection.
|
| Constructor and Description |
|---|
ImageMLDataSet(Downsample theDownsampler,
boolean theFindBounds,
double theHi,
double theLo)
Construct this class with the specified downsampler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
downsample(int theHeight,
int theWidth)
Downsample all images and generate training data.
|
int |
getHeight() |
int |
getWidth() |
add, add, add, clone, close, get, getData, getIdealSize, getInputSize, getRecord, getRecordCount, isSupervised, iterator, openAdditional, setData, size, toListpublic static final String MUST_USE_IMAGE
public ImageMLDataSet(Downsample theDownsampler, boolean theFindBounds, double theHi, double theLo)
theDownsampler - The downsampler to use.theFindBounds - Should the bounds be found and clipped.theHi - The high value to normalize to.theLo - The low value to normalize to.public final void downsample(int theHeight,
int theWidth)
theHeight - The height to downsample to.theWidth - the width to downsample to.public final int getHeight()
public final int getWidth()
Copyright © 2014. All Rights Reserved.