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

Constructor Index

 o ImageDataConverter()

Method Index

 o createRasterImage(byte[], int, int, byte[])
create the raster image br specified image data
 o createRasterImage(byte[], int, int, byte[], int)
create the raster image br specified image data
 o defineDataObject(int, int)
 o getColorModelOfRainbow()
 o getData(byte[], int, int)
 o getData(Object, int, int)
 o getDataRange(byte[], int)
 o getDataRange(byte[], int, int)
 o getDataRange(Object, int)
 o getDataRange(Object, int, int)
 o getPaletteOfRainbow()
Return the RAINBOW palette rgb rgb rgb rgb rgb ....
 o makeImageData(byte[], double, double, int, int, int, byte[])
 o makeImageData(byte[], double, double, int, int, int, int, byte[])
convert scientific data to image data
 o makeImageData(byte[], int, int, int, byte[])
 o makeImageData(byte[], int, int, int, int, byte[])
convert scientific data to image data
 o makeImageData(Object, double, double, int, int, int, byte[])
 o makeImageData(Object, double, double, int, int, int, int, byte[])
convert scientific data to image data
 o makeImageData(Object, int, int, int, byte[])
 o makeImageData(Object, int, int, int, int, byte[])
convert scientific data to image data

Constructors

 o ImageDataConverter
 public ImageDataConverter()

Methods

 o 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
 o 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
 o 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
 o 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
 o makeImageData
 public static boolean makeImageData(byte data[],
                                     int nt,
                                     int w,
                                     int h,
                                     byte out[])
 o makeImageData
 public static boolean makeImageData(Object data,
                                     int nt,
                                     int w,
                                     int h,
                                     byte out[])
 o makeImageData
 public static boolean makeImageData(byte data[],
                                     double min,
                                     double max,
                                     int nt,
                                     int w,
                                     int h,
                                     byte out[])
 o makeImageData
 public static boolean makeImageData(Object data,
                                     double min,
                                     double max,
                                     int nt,
                                     int w,
                                     int h,
                                     byte out[])
 o 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
 o 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
 o getDataRange
 public static double[] getDataRange(byte data[],
                                     int nt,
                                     int size)
 o getDataRange
 public static double[] getDataRange(byte data[],
                                     int nt)
 o getDataRange
 public static double[] getDataRange(Object data,
                                     int nt,
                                     int size)
 o getDataRange
 public static double[] getDataRange(Object data,
                                     int nt)
 o getPaletteOfRainbow
 public static byte[] getPaletteOfRainbow()
Return the RAINBOW palette rgb rgb rgb rgb rgb ....

 o getColorModelOfRainbow
 public static ColorModel getColorModelOfRainbow()
 o defineDataObject
 public static Object defineDataObject(int nt,
                                       int dataSize)
 o getData
 public static float getData(Object data,
                             int nt,
                             int pos)
 o getData
 public static float getData(byte data[],
                             int nt,
                             int pos) throws HDFException

All Packages  Class Hierarchy  This Package  Previous  Next  Index