All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.hdf.jhv.ImageDataConverter
java.lang.Object
|
+----ncsa.hdf.jhv.ImageDataConverter
- public class ImageDataConverter
- extends Object
Convert scientific data into image data.
- Version:
- 1.00 9/12/97
-
ImageDataConverter()
-
-
createRasterImage(byte[], int, int, byte[])
- create the raster image br specified image data
-
createRasterImage(byte[], int, int, byte[], int)
- create the raster image br specified image data
-
defineDataObject(int, int)
-
-
getColorModelOfRainbow()
-
-
getData(byte[], int, int)
-
-
getData(Object, int, int)
-
-
getDataRange(byte[], int)
-
-
getDataRange(byte[], int, int)
-
-
getDataRange(Object, int)
-
-
getDataRange(Object, int, int)
-
-
getPaletteOfRainbow()
- Return the RAINBOW palette
rgb rgb rgb rgb rgb ....
-
makeImageData(byte[], double, double, int, int, int, byte[])
-
-
makeImageData(byte[], double, double, int, int, int, int, byte[])
-
convert scientific data to image data
-
makeImageData(byte[], int, int, int, byte[])
-
-
makeImageData(byte[], int, int, int, int, byte[])
-
convert scientific data to image data
-
makeImageData(Object, double, double, int, int, int, byte[])
-
-
makeImageData(Object, double, double, int, int, int, int, byte[])
-
convert scientific data to image data
-
makeImageData(Object, int, int, int, byte[])
-
-
makeImageData(Object, int, int, int, int, byte[])
-
convert scientific data to image data
ImageDataConverter
public ImageDataConverter()
makeImageData
public static boolean makeImageData(byte data[],
double minVal,
double maxVal,
int nt,
int w,
int h,
int pos,
byte out[])
- convert scientific data to image data
- Parameters:
- data - the scientific data
- datatype - the data type of the scientific data
- range - the specified dataset range[min, max]
- w - the width of the converted image
- h - the height of the image
- pos - the first converted scientific data position
- output - the converted image data
- Returns:
- TRUE if successed, or false
makeImageData
public static boolean makeImageData(Object data,
double minVal,
double maxVal,
int nt,
int w,
int h,
int pos,
byte out[])
- convert scientific data to image data
- Parameters:
- data - the scientific data
- datatype - the data type of the scientific data
- range - the specified dataset range[min, max]
- w - the width of the converted image
- h - the height of the image
- pos - the first converted scientific data position
- output - the converted image data
- Returns:
- TRUE if successed, or false
makeImageData
public static boolean makeImageData(byte data[],
int nt,
int w,
int h,
int pos,
byte out[])
- convert scientific data to image data
- Parameters:
- data - the scientific data
- datatype - the data type of the scientific data
- w - the width of the converted image
- h - the height of the image
- pos - the first converted scientific data position
- output - the converted image data
- Returns:
- TRUE if successed, or false
makeImageData
public static boolean makeImageData(Object data,
int nt,
int w,
int h,
int pos,
byte out[])
- convert scientific data to image data
- Parameters:
- data - the scientific data
- datatype - the data type of the scientific data
- w - the width of the converted image
- h - the height of the image
- pos - the first converted scientific data position
- output - the converted image data
- Returns:
- TRUE if successed, or false
makeImageData
public static boolean makeImageData(byte data[],
int nt,
int w,
int h,
byte out[])
makeImageData
public static boolean makeImageData(Object data,
int nt,
int w,
int h,
byte out[])
makeImageData
public static boolean makeImageData(byte data[],
double min,
double max,
int nt,
int w,
int h,
byte out[])
makeImageData
public static boolean makeImageData(Object data,
double min,
double max,
int nt,
int w,
int h,
byte out[])
createRasterImage
public Image createRasterImage(byte imgData[],
int w,
int h,
byte imgPal[],
int index)
- create the raster image br specified image data
- Parameters:
- imgData - the image data(pixel value)
- w - the width of the image
- h - the height of the image
- imgPalette - the palette of the image
- index - the plane number of the image
- Returns:
- the image , otherwise null
createRasterImage
public Image createRasterImage(byte imgData[],
int w,
int h,
byte imgPal[])
- create the raster image br specified image data
- Parameters:
- imgData - the image data(pixel value)
- w - the width of the image
- h - the height of the image
- imgPalette - the palette of the image
- Returns:
- the image , otherwise null
getDataRange
public static double[] getDataRange(byte data[],
int nt,
int size)
getDataRange
public static double[] getDataRange(byte data[],
int nt)
getDataRange
public static double[] getDataRange(Object data,
int nt,
int size)
getDataRange
public static double[] getDataRange(Object data,
int nt)
getPaletteOfRainbow
public static byte[] getPaletteOfRainbow()
- Return the RAINBOW palette
rgb rgb rgb rgb rgb ....
getColorModelOfRainbow
public static ColorModel getColorModelOfRainbow()
defineDataObject
public static Object defineDataObject(int nt,
int dataSize)
getData
public static float getData(Object data,
int nt,
int pos)
getData
public static float getData(byte data[],
int nt,
int pos) throws HDFException
All Packages Class Hierarchy This Package Previous Next Index