| java.lang.Object org.deegree.processing.raster.converter.RawData2Image
RawData2Image | public class RawData2Image (Code) | | Offeres methods to wrap raw number data into a BufferedImage
version: $Revision: 9346 $ author: Andreas Poth author: last edited by: $Author: apoth $ version: $Revision: 9346 $, $Date: 2007-12-27 08:39:07 -0800 (Thu, 27 Dec 2007) $ |
rawData2Image | public static BufferedImage rawData2Image(byte[][] data)(Code) | | result will be a BufferedImage with a GRAY colorspace andDataBuffer.TYPE_BYTE Parameters: data - data to wrap |
rawData2Image | public static BufferedImage rawData2Image(short[][] data)(Code) | | result will be a BufferedImage with a GRAY colorspace andDataBuffer.TYPE_USHORT Parameters: data - data to wrap |
rawData2Image | public static BufferedImage rawData2Image(int[][] data)(Code) | | result will be a BufferedImage with a GRAY colorspace andDataBuffer.TYPE_INT Parameters: data - data to wrap |
rawData2Image | public static BufferedImage rawData2Image(float[][] data, boolean use32Bits)(Code) | | Float data requires 4 Byte (32Bit) per data cell. It is common to reduce data depth by
multiplying float values with 10 and map the rounded result to an unsigned short value
(16Bit). This behavior can be controlled by the second parameter passed to this method. If
set to true a image with 32Bit data depth and INT Databuffer will be created.
Otherwise a 16Bit Image with an USHORT Databuffer will be created.
A default scale of 10 and no offset will be used
result will be a BufferedImage with a GRAY colorspace. Parameters: data - data to wrap Parameters: use32Bits - |
rawData2Image | public static BufferedImage rawData2Image(float[][] data, boolean use32Bits, float scale, float offset)(Code) | | Float data requires 4 Byte (32Bit) per data cell. It is common to reduce data depth by
multiplying float values with 10 and map the rounded result to an unsigned short value
(16Bit). This behavior can be controlled by the second parameter passed to this method. If
set to true a image with 32Bit data depth and INT Databuffer will be created.
Otherwise a 16Bit Image with an USHORT Databuffer will be created.
Parameters: data - Parameters: use32Bits - Parameters: scale - Parameters: offset - result will be a BufferedImage with a GRAY colorspace. |
rawData2Image | public static BufferedImage rawData2Image(float[][] data, boolean use32Bits, ColorModel colorModel, SampleModel sampleModel)(Code) | | Special version of the method which creates a new BufferedImage according to the models
given.
result will be a BufferedImage with the given color model Parameters: data - data to wrap Parameters: use32Bits - Parameters: colorModel - Parameters: sampleModel - |
|
|