|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.util.downsample.RGBDownsample
public class RGBDownsample
Downsample an image keeping the RGB colors.
| Constructor Summary | |
|---|---|
RGBDownsample()
|
|
| Method Summary | |
|---|---|
double[] |
downSample(Image image,
int height,
int width)
Called to downsample the image and store it in the down sample component. |
void |
downSampleRegion(int x,
int y)
Called to downsample a region of the image. |
void |
findBounds()
This method is called to automatically crop the image so that whitespace is removed. |
int |
getCurrentBlue()
|
int |
getCurrentGreen()
|
int |
getCurrentRed()
|
int |
getDownSampleBottom()
|
int |
getDownSampleLeft()
|
int |
getDownSampleRight()
|
int |
getDownSampleTop()
|
int |
getImageHeight()
|
int |
getImageWidth()
|
int[] |
getPixelMap()
|
double |
getRatioX()
|
double |
getRatioY()
|
void |
processImage(Image image)
Process the image and prepare it to be downsampled. |
void |
setCurrentBlue(int currentBlue)
Set the current blue average. |
void |
setCurrentGreen(int currentGreen)
Set the current green average. |
void |
setCurrentRed(int currentRed)
Set the current red average. |
void |
setPixelMap(int[] pixelMap)
Set the pixel map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RGBDownsample()
| Method Detail |
|---|
public double[] downSample(Image image,
int height,
int width)
downSample in interface Downsampleimage - The image to downsample.height - The height to downsample to.width - THe width to downsample to.
public void downSampleRegion(int x,
int y)
x - The x coordinate of the resulting downsample.y - The y coordinate of the resulting downsample.public void findBounds()
findBounds in interface Downsamplepublic int getCurrentBlue()
public int getCurrentGreen()
public int getCurrentRed()
public int getDownSampleBottom()
getDownSampleBottom in interface Downsamplepublic int getDownSampleLeft()
getDownSampleLeft in interface Downsamplepublic int getDownSampleRight()
getDownSampleRight in interface Downsamplepublic int getDownSampleTop()
getDownSampleTop 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(Image image)
processImage in interface Downsampleimage - The image to downsample.public void setCurrentBlue(int currentBlue)
currentBlue - The current blue average.public void setCurrentGreen(int currentGreen)
currentGreen - The current green average.public void setCurrentRed(int currentRed)
currentRed - The current red average.public void setPixelMap(int[] pixelMap)
pixelMap - The pixel map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||