public class GConvertImage extends Object
Generalized functions for converting between different image types. Numerical values do not change or are closely approximated in these functions. If an output image is not specified then a new instance is declared and returned.
| Constructor and Description |
|---|
GConvertImage() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ImageSingleBand> |
average(MultiSpectral<T> input,
T output)
Converts a
MultiSpectral into a ImageSingleBand by computing the average value of each pixel
across all the bands. |
static void |
convert(ImageSingleBand input,
ImageSingleBand output)
Converts one type of
ImageSingleBand into a different type by typecasting each pixel. |
public static void convert(ImageSingleBand input, ImageSingleBand output)
Converts one type of ImageSingleBand into a different type by typecasting each pixel.
input - Input image which is being converted. Not modified.output - (Optional) The output image. If null a new image is created. Modified.public static <T extends ImageSingleBand> T average(MultiSpectral<T> input, T output)
MultiSpectral into a ImageSingleBand by computing the average value of each pixel
across all the bands.input - Input MultiSpectral image that is being converted. Not modified.output - (Optional) The single band output image. If null a new image is created. Modified.Copyright © 2013. All Rights Reserved.