|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.downsample.SimpleIntensityDownsample
public class SimpleIntensityDownsample
Downsample an image using a simple intensity scale. Color information is discarded.
| Constructor Summary | |
|---|---|
SimpleIntensityDownsample(java.awt.Image image)
Construct the downsample utility for the specified image. |
|
| Method Summary | |
|---|---|
double[] |
downSample(int height,
int width)
Called to downsample the image and store it in the down sample component. |
void |
findBounds()
This method is called to automatically crop the image so that whitespace is removed. |
int |
getDownSampleBottom()
|
int |
getDownSampleLeft()
|
int |
getDownSampleRight()
|
int |
getDownSampleTop()
|
java.awt.Image |
getImage()
|
int |
getImageHeight()
|
int |
getImageWidth()
|
int[] |
getPixelMap()
|
double |
getRatioX()
|
double |
getRatioY()
|
void |
processImage(java.awt.Image image)
Process the image and prepare it to be downsampled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleIntensityDownsample(java.awt.Image image)
image - The image to downsample.| Method Detail |
|---|
public double[] downSample(int height,
int width)
downSample in interface Downsampleheight - The height to downsample to.width - THe width to downsample to.
public void findBounds()
findBounds in interface Downsamplepublic int getDownSampleBottom()
getDownSampleBottom in interface Downsamplepublic int getDownSampleLeft()
getDownSampleLeft in interface Downsamplepublic int getDownSampleRight()
getDownSampleRight in interface Downsamplepublic int getDownSampleTop()
getDownSampleTop in interface Downsamplepublic java.awt.Image getImage()
getImage in interface Downsamplepublic int getImageHeight()
getImageHeight in interface Downsamplepublic int getImageWidth()
getImageWidth in interface Downsamplepublic int[] getPixelMap()
getPixelMap in interface Downsamplepublic double getRatioX()
getRatioX in interface Downsamplepublic double getRatioY()
getRatioY in interface Downsamplepublic void processImage(java.awt.Image image)
processImage in interface Downsampleimage - The image to downsample.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||