it.geosolutions.jaiext.lookup
Class LookupTableInt

java.lang.Object
  extended by it.geosolutions.jaiext.lookup.LookupTable
      extended by it.geosolutions.jaiext.lookup.LookupTableInt
All Implemented Interfaces:
Serializable

public class LookupTableInt
extends LookupTable

This class is an extension of the abstract class LookupTable handling Integer data types

See Also:
Serialized Form

Field Summary
 
Fields inherited from class it.geosolutions.jaiext.lookup.LookupTable
data, destinationNoDataByte, destinationNoDataDouble, destinationNoDataFloat, destinationNoDataInt, destinationNoDataShort, hasNoData, hasROI, noData, roiBounds, roiIter, srcROIImage, tableOffsets, useROIAccessor
 
Constructor Summary
LookupTableInt(byte[] data)
           
LookupTableInt(byte[][] data)
           
LookupTableInt(byte[][] data, int offset)
           
LookupTableInt(byte[][] data, int[] offsets)
           
LookupTableInt(byte[] data, int offset)
           
LookupTableInt(double[] data)
           
LookupTableInt(double[][] data)
           
LookupTableInt(double[][] data, int offset)
           
LookupTableInt(double[][] data, int[] offsets)
           
LookupTableInt(double[] data, int offset)
           
LookupTableInt(float[] data)
           
LookupTableInt(float[][] data)
           
LookupTableInt(float[][] data, int offset)
           
LookupTableInt(float[][] data, int[] offsets)
           
LookupTableInt(float[] data, int offset)
           
LookupTableInt(int[] data)
           
LookupTableInt(int[][] data)
           
LookupTableInt(int[][] data, int offset)
           
LookupTableInt(int[][] data, int[] offsets)
           
LookupTableInt(int[] data, int offset)
           
LookupTableInt(short[][] data, boolean isUShort)
           
LookupTableInt(short[][] data, int[] offsets, boolean isUShort)
           
LookupTableInt(short[][] data, int offset, boolean isUShort)
           
LookupTableInt(short[] data, boolean isUShort)
           
LookupTableInt(short[] data, int offset, boolean isUShort)
           
 
Method Summary
protected  void lookup(Raster source, WritableRaster dst, Rectangle rect, Raster roi)
          Performs table lookup on a source Integer Raster, writing the result into a supplied WritableRaster.
 
Methods inherited from class it.geosolutions.jaiext.lookup.LookupTable
getByteData, getByteData, getData, getDataType, getDestNumBands, getDestSampleModel, getDestSampleModel, getDoubleData, getDoubleData, getFloatData, getFloatData, getIntData, getIntData, getNumBands, getNumEntries, getOffset, getOffset, getOffsets, getShortData, getShortData, initOffsets, initOffsets, isIntegralDataType, isIntegralDataType, lookup, lookupDouble, lookupFloat, setDestinationNoData, setNoDataRange, setROIparams, unsetNoData, unsetROI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupTableInt

public LookupTableInt(byte[] data)

LookupTableInt

public LookupTableInt(byte[] data,
                      int offset)

LookupTableInt

public LookupTableInt(byte[][] data)

LookupTableInt

public LookupTableInt(byte[][] data,
                      int offset)

LookupTableInt

public LookupTableInt(byte[][] data,
                      int[] offsets)

LookupTableInt

public LookupTableInt(short[] data,
                      boolean isUShort)

LookupTableInt

public LookupTableInt(short[] data,
                      int offset,
                      boolean isUShort)

LookupTableInt

public LookupTableInt(short[][] data,
                      boolean isUShort)

LookupTableInt

public LookupTableInt(short[][] data,
                      int offset,
                      boolean isUShort)

LookupTableInt

public LookupTableInt(short[][] data,
                      int[] offsets,
                      boolean isUShort)

LookupTableInt

public LookupTableInt(int[] data)

LookupTableInt

public LookupTableInt(int[] data,
                      int offset)

LookupTableInt

public LookupTableInt(int[][] data)

LookupTableInt

public LookupTableInt(int[][] data,
                      int offset)

LookupTableInt

public LookupTableInt(int[][] data,
                      int[] offsets)

LookupTableInt

public LookupTableInt(float[] data)

LookupTableInt

public LookupTableInt(float[] data,
                      int offset)

LookupTableInt

public LookupTableInt(float[][] data)

LookupTableInt

public LookupTableInt(float[][] data,
                      int offset)

LookupTableInt

public LookupTableInt(float[][] data,
                      int[] offsets)

LookupTableInt

public LookupTableInt(double[] data)

LookupTableInt

public LookupTableInt(double[] data,
                      int offset)

LookupTableInt

public LookupTableInt(double[][] data)

LookupTableInt

public LookupTableInt(double[][] data,
                      int offset)

LookupTableInt

public LookupTableInt(double[][] data,
                      int[] offsets)
Method Detail

lookup

protected void lookup(Raster source,
                      WritableRaster dst,
                      Rectangle rect,
                      Raster roi)
Performs table lookup on a source Integer Raster, writing the result into a supplied WritableRaster. The destination must have a data type and SampleModel appropriate to the results of the lookup operation. The table lookup operation is performed within a specified rectangle. If ROI or no Data are present then they are taken into account.

The dst argument may be null, in which case a new WritableRaster is created using the appropriate SampleModel.

The rectangle of interest may be null, in which case the operation will be performed on the intersection of the source and destination bounding rectangles.

Specified by:
lookup in class LookupTable
Parameters:
source - A Raster containing the source pixel data.
dst - The WritableRaster to be computed, or null. If supplied, its data type and number of bands must be suitable for the source and lookup table.
rect - The rectangle within the tile to be computed. If rect is null, the intersection of the source and destination bounds will be used. Otherwise, it will be clipped to the intersection of the source and destination bounds.


Copyright © 2006–2014 GeoSolutions. All rights reserved.