public class GeneralizedImageOps extends 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,
Class<T> typeDst)
Converts an image from one type to another type.
|
static <T extends ImageInterleaved> |
createInterleaved(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(Class<T> type,
int width,
int height) |
static <T extends ImageSingleBand> |
createSingleBand(ImageDataType type,
int width,
int height) |
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(Class<T> type) |
static boolean |
isFloatingPoint(Class<?> imgType) |
static void |
set(ImageSingleBand img,
int x,
int y,
double value) |
public static <T extends ImageSingleBand> T convert(ImageSingleBand<?> src, T dst, 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(Class<?> imgType)
public static double get(ImageSingleBand img, int x, int y)
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(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(Class<T> type, int width, int height, int numBands)
public static void set(ImageSingleBand img, int x, int y, double value)
public static <T extends ImageSingleBand> int getNumBits(Class<T> type)
Copyright © 2013. All Rights Reserved.