org.encog.platformspecific.j2se.data.image
public class ImageMLData extends BasicMLData
Constructor and Description |
---|
ImageMLData(Image theImage)
Construct an object based on an image.
|
Modifier and Type | Method and Description |
---|---|
void |
downsample(Downsample downsampler,
boolean findBounds,
int height,
int width,
double hi,
double lo)
Downsample, and copy, the image contents into the data of this object.
|
Image |
getImage() |
void |
setImage(Image theImage) |
public ImageMLData(Image theImage)
theImage
- The image to use.public final void downsample(Downsample downsampler, boolean findBounds, int height, int width, double hi, double lo)
downsampler
- The downsampler object to use.findBounds
- Should the bounds be located and cropped.height
- The height to downsample to.width
- The width to downsample to.hi
- The high value to normalize to.lo
- The low value to normalize to.public final Image getImage()
public final void setImage(Image theImage)
theImage
- the image to setCopyright © 2014. All Rights Reserved.