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 void |
convert(ImageSingleBand<?> src,
ImageSingleBand<?> dst)
Converts an image from one type to another type.
|
static <T extends ImageSingleBand> |
convert(ImageSingleBand<?> src,
T dst,
java.lang.Class<T> typeDst)
Converts an image from one type to another type.
|
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 ImageSingleBand> |
createSingleBand(java.lang.Class<T> type,
int width,
int height) |
static <T extends ImageSingleBand> |
createSingleBand(ImageDataType type,
int width,
int height) |
static double |
get(ImageBase img,
int x,
int y,
int band) |
static double |
get(ImageInterleaved img,
int x,
int y,
int band) |
static double |
get(ImageSingleBand img,
int x,
int y) |
static <T extends ImageSingleBand> |
getNumBits(java.lang.Class<T> type) |
static boolean |
isFloatingPoint(java.lang.Class<?> imgType) |
static void |
set(ImageSingleBand img,
int x,
int y,
double value) |
static void |
setM(ImageBase img,
int x,
int y,
double... value) |
public static <T extends ImageSingleBand> T convert(ImageSingleBand<?> 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 void convert(ImageSingleBand<?> src, ImageSingleBand<?> dst)
src - Input image. Not modified.dst - Converted output image. Modified.public static boolean isFloatingPoint(java.lang.Class<?> imgType)
public static double get(ImageSingleBand 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 ImageSingleBand> T createSingleBand(ImageDataType type, int width, int height)
public static <T extends ImageSingleBand> 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(ImageSingleBand img, int x, int y, double value)
public static void setM(ImageBase img, int x, int y, double... value)
public static <T extends ImageSingleBand> int getNumBits(java.lang.Class<T> type)