public class ImageUtils
extends java.lang.Object
Constructor and Description |
---|
ImageUtils() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
clone(java.awt.image.BufferedImage image)
Clone an image for independent manipulation.
|
static java.awt.image.BufferedImage |
convertBufferedImage(java.awt.image.BufferedImage src,
int type)
Convert a BufferedImage from it's current type to a new, specified type by creating a new
BufferedImage and drawing the source image onto it.
|
static Mat |
emulateCameraCapture(Camera camera,
java.io.File file)
Emulate an image captured by the given camera, but read it from a file.
|
static Location |
getUnitsPerPixel(java.io.File imageFile)
Get the Units per Pixel for the given imageFile.
|
public static java.awt.image.BufferedImage convertBufferedImage(java.awt.image.BufferedImage src, int type)
src
- type
- public static java.awt.image.BufferedImage clone(java.awt.image.BufferedImage image)
image
- public static Location getUnitsPerPixel(java.io.File imageFile)
imageFile
- public static Mat emulateCameraCapture(Camera camera, java.io.File file)
camera
- file
-