public class GeneralizedImageOps
extends java.lang.Object
Operations that return information about the specific image. Useful when writing highly abstracted code which is independent of the input image.
| Constructor and Description |
|---|
GeneralizedImageOps() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ImageGray> |
convert(ImageGray<?> src,
T dst,
java.lang.Class<T> typeDst)
Converts an image from one type to another type.
|
static <T extends ImageBase> |
createImage(java.lang.Class<T> type,
int width,
int height,
int numBands) |
static <T extends ImageInterleaved> |
createInterleaved(java.lang.Class<T> type,
int width,
int height,
int numBands) |
static <T extends ImageInterleaved> |
createInterleaved(ImageDataType type,
int width,
int height,
int numBands) |
static <T extends ImageGray> |
createSingleBand(java.lang.Class<T> type,
int width,
int height) |
static <T extends ImageGray> |
createSingleBand(ImageDataType type,
int width,
int height) |
static double |
get(ImageBase img,
int x,
int y,
int band) |
static double |
get(ImageGray img,
int x,
int y) |
static double |
get(ImageInterleaved img,
int x,
int y,
int band) |
static <T extends ImageGray> |
getNumBits(java.lang.Class<T> type) |
static boolean |
isFloatingPoint(java.lang.Class<?> imgType) |
static void |
set(ImageGray img,
int x,
int y,
double value) |
static void |
setB(ImageBase img,
int x,
int y,
int band,
double value) |
static void |
setM(ImageBase img,
int x,
int y,
double... value) |
public static <T extends ImageGray> T convert(ImageGray<?> src, T dst, java.lang.Class<T> typeDst)
src - Input image. Not modified.dst - Converted output image. If null a new one will be declared. Modified.typeDst - The type of output image.public static boolean isFloatingPoint(java.lang.Class<?> imgType)
public static double get(ImageGray img, int x, int y)
public static double get(ImageBase img, int x, int y, int band)
public static double get(ImageInterleaved img, int x, int y, int band)
public static <T extends ImageGray> T createSingleBand(ImageDataType type, int width, int height)
public static <T extends ImageBase> T createImage(java.lang.Class<T> type, int width, int height, int numBands)
public static <T extends ImageGray> T createSingleBand(java.lang.Class<T> type, int width, int height)
public static <T extends ImageInterleaved> T createInterleaved(ImageDataType type, int width, int height, int numBands)
public static <T extends ImageInterleaved> T createInterleaved(java.lang.Class<T> type, int width, int height, int numBands)
public static void set(ImageGray img, int x, int y, double value)
public static void setM(ImageBase img, int x, int y, double... value)
public static void setB(ImageBase img, int x, int y, int band, double value)
public static <T extends ImageGray> int getNumBits(java.lang.Class<T> type)