org.encog.util.downsample
Class SimpleIntensityDownsample
java.lang.Object
org.encog.util.downsample.SimpleIntensityDownsample
- All Implemented Interfaces:
- Downsample
public class SimpleIntensityDownsample
- extends java.lang.Object
- implements Downsample
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleIntensityDownsample
public SimpleIntensityDownsample(java.awt.Image image)
processImage
public void processImage(java.awt.Image image)
- Specified by:
processImage in interface Downsample
downSample
public double[] downSample(int height,
int width)
- Called to downsample the image and store it in the down sample component.
- Specified by:
downSample in interface Downsample
findBounds
public void findBounds()
- This method is called to automatically crop the image so that whitespace
is removed.
- Specified by:
findBounds in interface Downsample
- Parameters:
w - The width of the image.h - The height of the image
getImage
public java.awt.Image getImage()
- Specified by:
getImage in interface Downsample
- Returns:
- the image
getPixelMap
public int[] getPixelMap()
- Specified by:
getPixelMap in interface Downsample
- Returns:
- the pixelMap
getRatioX
public double getRatioX()
- Specified by:
getRatioX in interface Downsample
- Returns:
- the ratioX
getRatioY
public double getRatioY()
- Specified by:
getRatioY in interface Downsample
- Returns:
- the ratioY
getImageHeight
public int getImageHeight()
- Specified by:
getImageHeight in interface Downsample
- Returns:
- the imageHeight
getImageWidth
public int getImageWidth()
- Specified by:
getImageWidth in interface Downsample
- Returns:
- the imageWidth
getDownSampleLeft
public int getDownSampleLeft()
- Specified by:
getDownSampleLeft in interface Downsample
- Returns:
- the downSampleLeft
getDownSampleRight
public int getDownSampleRight()
- Specified by:
getDownSampleRight in interface Downsample
- Returns:
- the downSampleRight
getDownSampleTop
public int getDownSampleTop()
- Specified by:
getDownSampleTop in interface Downsample
- Returns:
- the downSampleTop
getDownSampleBottom
public int getDownSampleBottom()
- Specified by:
getDownSampleBottom in interface Downsample
- Returns:
- the downSampleBottom