|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.util.ImageUtils
public class ImageUtils
A utility class providing a set of static functions frequently used when working with images.
All functions have been implemented with extreme caution in order to provide a maximum performance.
| Constructor Summary | |
|---|---|
ImageUtils()
|
|
| Method Summary | |
|---|---|
static BufferedImage |
convertImage(RenderedImage image,
int imageType)
Converts the given rendered image into an image of the given {#link java.awt.image.BufferedImage} type. |
static ColorModel |
create8BitGreyscaleColorModel()
|
static Object |
createDataBufferArray(int dataBufferType,
int size)
|
static BufferedImage |
createGreyscaleColorModelImage(int width,
int height,
byte[] data)
|
static BufferedImage |
createIndexedImage(int width,
int height,
byte[] data,
IndexColorModel cm)
|
static RenderedImage |
createRenderedImage(int width,
int height,
ProductData data)
|
static SampleModel |
createSingleBandedSampleModel(int dataBufferType,
int width,
int height)
|
static String |
getColorSpaceName(int spaceType)
Gets a textual representation of the supplied color space type |
static double[] |
getDataTypeMinMax(int dataType,
double[] minmax)
Returns an array containing the minimum and maximum value of the native data type used to store pixel values in the given image. |
static String |
getDataTypeName(int dataType)
Gets a textual representation of the supplied raster data type |
static Object |
getPrimitiveArray(DataBuffer dataBuffer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageUtils()
| Method Detail |
|---|
public static BufferedImage convertImage(RenderedImage image,
int imageType)
image - the source imageimageType - the {#link java.awt.image.BufferedImage} type
public static double[] getDataTypeMinMax(int dataType,
double[] minmax)
dataType - a data type as defined in DataBufferDataBufferpublic static String getDataTypeName(int dataType)
dataType - a data type as defined in DataBuffer
DataBufferpublic static String getColorSpaceName(int spaceType)
spaceType - a dcolor space type as defined in ColorSpace
ColorSpace
public static BufferedImage createGreyscaleColorModelImage(int width,
int height,
byte[] data)
public static BufferedImage createIndexedImage(int width,
int height,
byte[] data,
IndexColorModel cm)
public static ColorModel create8BitGreyscaleColorModel()
public static Object getPrimitiveArray(DataBuffer dataBuffer)
public static Object createDataBufferArray(int dataBufferType,
int size)
public static SampleModel createSingleBandedSampleModel(int dataBufferType,
int width,
int height)
public static RenderedImage createRenderedImage(int width,
int height,
ProductData data)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||