public final class ImageReader extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<BufferedImage> |
getSlidingWindowPatches(BufferedImage source,
int windowWidth,
int windowHeight,
int verticalStride,
int horizontalStride)
Calculates subimage windows with the sliding window algorithm.
|
static de.jungblut.math.DoubleVector |
readImageAsGreyScale(BufferedImage img)
Returns the given image as a vector, where each dimension is mapped to a
given pixel in the image.
|
static de.jungblut.math.DoubleVector[] |
readImageAsLUV(BufferedImage img)
Returns the given image as a list of points in space, where each point is
encoded by its LUV value.
|
static de.jungblut.math.DoubleVector[] |
readImageAsRGB(BufferedImage img)
Returns the given image as a list of points in space, where each point is
encoded by its RGB values.
|
public static List<BufferedImage> getSlidingWindowPatches(BufferedImage source, int windowWidth, int windowHeight, int verticalStride, int horizontalStride)
source - the source image to chunk.windowWidth - the window width.windowHeight - the window height.verticalStride - the vertical stride between image offsets.horizontalStride - the horizontal stride between image offsets.public static de.jungblut.math.DoubleVector readImageAsGreyScale(BufferedImage img)
img - a buffered image.public static de.jungblut.math.DoubleVector[] readImageAsRGB(BufferedImage img)
img - a buffered image.public static de.jungblut.math.DoubleVector[] readImageAsLUV(BufferedImage img)
img - a buffered image.Copyright © 2016. All rights reserved.