org.encog.util.downsample
Interface Downsample
-
- All Known Implementing Classes:
- RGBDownsample, SimpleIntensityDownsample
public interface DownsampleUtility to downsample an image.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description double[]downSample(java.awt.Image image, int height, int width)Downsample the image to the specified height and width.voidfindBounds()Find the bounds around the image to exclude whitespace.intgetDownSampleBottom()intgetDownSampleLeft()intgetDownSampleRight()intgetDownSampleTop()intgetImageHeight()intgetImageWidth()int[]getPixelMap()doublegetRatioX()doublegetRatioY()voidprocessImage(java.awt.Image image)Process the specified image.
-
-
-
Method Detail
-
downSample
double[] downSample(java.awt.Image image, int height, int width)Downsample the image to the specified height and width.- Parameters:
image- The image to downsample.height- The height to downsample to.width- The width to downsample to.- Returns:
- The downsampled image.
-
findBounds
void findBounds()
Find the bounds around the image to exclude whitespace.
-
getDownSampleBottom
int getDownSampleBottom()
- Returns:
- Get the bottom boundary of the image.
-
getDownSampleLeft
int getDownSampleLeft()
- Returns:
- The left boundary of the image.
-
getDownSampleRight
int getDownSampleRight()
- Returns:
- Get the right boundary of the image.
-
getDownSampleTop
int getDownSampleTop()
- Returns:
- Get the top boundary of the image.
-
getImageHeight
int getImageHeight()
- Returns:
- The height of the image.
-
getImageWidth
int getImageWidth()
- Returns:
- The width of the image.
-
getPixelMap
int[] getPixelMap()
- Returns:
- The image pixel map.
-
getRatioX
double getRatioX()
- Returns:
- The x-ratio of the downsample.
-
getRatioY
double getRatioY()
- Returns:
- The y-ratio of the downsample.
-
processImage
void processImage(java.awt.Image image)
Process the specified image.- Parameters:
image- The image to process.
-
-
DMelt 3.0 © DataMelt by jWork.ORG