|
||||||||||
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 Downsample
image
- 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 Downsample
public int getCurrentBlue()
public int getCurrentGreen()
public int getCurrentRed()
public int getDownSampleBottom()
getDownSampleBottom
in interface Downsample
public int getDownSampleLeft()
getDownSampleLeft
in interface Downsample
public int getDownSampleRight()
getDownSampleRight
in interface Downsample
public int getDownSampleTop()
getDownSampleTop
in interface Downsample
public int getImageHeight()
getImageHeight
in interface Downsample
public int getImageWidth()
getImageWidth
in interface Downsample
public int[] getPixelMap()
getPixelMap
in interface Downsample
public double getRatioX()
getRatioX
in interface Downsample
public double getRatioY()
getRatioY
in interface Downsample
public void processImage(Image image)
processImage
in interface Downsample
image
- 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 |