public class LookupTable extends LookupTableJAI implements Serializable
Modifier and Type | Field and Description |
---|---|
protected byte |
destinationNoDataByte
Destination no data for Byte images
|
protected double |
destinationNoDataDouble
Destination no data for Double images
|
protected float |
destinationNoDataFloat
Destination no data for Float images
|
protected int |
destinationNoDataInt
Destination no data for Integer images
|
protected short |
destinationNoDataShort
Destination no data for Short/Ushort images
|
protected boolean |
hasNoData
Boolean indicating if the image contains No Data values
|
protected boolean |
hasROI
Boolean indicating if the image contains a ROI
|
protected Range |
noData
Range object containing no data values
|
protected Rectangle |
roiBounds
Rectangle containing roi bounds
|
protected PlanarImage |
srcROIImage
ROI image
|
protected boolean |
useROIAccessor
Boolean indicating if Roi RasterAccessor must be used
|
Modifier | Constructor and Description |
---|---|
protected |
LookupTable(byte[] data)
Constructs a single-banded byte lookup table.
|
|
LookupTable(byte[][] data)
Constructs a multi-banded byte lookup table.
|
|
LookupTable(byte[][] data,
int offset)
Constructs a multi-banded byte lookup table where all bands have the same index offset.
|
protected |
LookupTable(byte[][] data,
int[] offsets)
Constructs a multi-banded byte lookup table where each band has a different index offset.
|
protected |
LookupTable(byte[] data,
int offset)
Constructs a single-banded byte lookup table with an index offset.
|
protected |
LookupTable(double[] data)
Constructs a single-banded double lookup table.
|
protected |
LookupTable(double[][] data)
Constructs a multi-banded double lookup table.
|
protected |
LookupTable(double[][] data,
int offset)
Constructs a multi-banded double lookup table where all bands have the same index offset.
|
protected |
LookupTable(double[][] data,
int[] offsets)
Constructs a multi-banded double lookup table where each band has a different index offset.
|
protected |
LookupTable(double[] data,
int offset)
Constructs a single-banded double lookup table with an index offset.
|
protected |
LookupTable(float[] data)
Constructs a single-banded float lookup table.
|
protected |
LookupTable(float[][] data)
Constructs a multi-banded float lookup table.
|
protected |
LookupTable(float[][] data,
int offset)
Constructs a multi-banded float lookup table where all bands have the same index offset.
|
protected |
LookupTable(float[][] data,
int[] offsets)
Constructs a multi-banded float lookup table where each band has a different index offset.
|
protected |
LookupTable(float[] data,
int offset)
Constructs a single-banded float lookup table with an index offset.
|
protected |
LookupTable(int[] data)
Constructs a single-banded int lookup table.
|
protected |
LookupTable(int[][] data)
Constructs a multi-banded int lookup table.
|
protected |
LookupTable(int[][] data,
int offset)
Constructs a multi-banded int lookup table where all bands have the same index offset.
|
protected |
LookupTable(int[][] data,
int[] offsets)
Constructs a multi-banded int lookup table where each band has a different index offset.
|
protected |
LookupTable(int[] data,
int offset)
Constructs a single-banded int lookup table with an index offset.
|
protected |
LookupTable(short[][] data,
boolean isUShort)
Constructs a multi-banded short or unsigned short lookup table.
|
protected |
LookupTable(short[][] data,
int[] offsets,
boolean isUShort)
Constructs a multi-banded short or unsigned short lookup table where each band has a different index offset.
|
protected |
LookupTable(short[][] data,
int offset,
boolean isUShort)
Constructs a multi-banded short or unsigned short lookup table where all bands have the same index offset.
|
protected |
LookupTable(short[] data,
boolean isUShort)
Constructs a single-banded short or unsigned short lookup table.
|
protected |
LookupTable(short[] data,
int offset,
boolean isUShort)
Constructs a single-banded short or unsigned short lookup table with an index offset.
|
Modifier and Type | Method and Description |
---|---|
protected void |
lookup(Raster source,
WritableRaster dst,
Rectangle rect,
Raster roi)
Abstract method for calculating the destination tile from the source tile and an eventual ROI raster
|
void |
setDestinationNoData(double destinationNoData)
This method sets destination no data used for No Data or ROI calculation
|
void |
setNoDataRange(Range noData)
No Data flag is set to true and no data range is taken
|
void |
setROIparams(Rectangle roiBounds,
PlanarImage srcROIImage,
boolean useROIAccessor)
ROI flag is set to true and the ROI fields are all filled
|
void |
unsetNoData()
No Data flag is set to false and no data range is set to null
|
void |
unsetROI()
ROI flag is set to flag and the ROI fields are all left empty
|
findNearestEntry, getByteData, getByteData, getData, getDataType, getDestNumBands, getDestSampleModel, getDestSampleModel, getDoubleData, getDoubleData, getFloatData, getFloatData, getIntData, getIntData, getNumBands, getNumEntries, getOffset, getOffset, getOffsets, getShortData, getShortData, isIntegralDataType, isIntegralDataType, lookup, lookup, lookup, lookupDouble, lookupFloat
protected byte destinationNoDataByte
protected short destinationNoDataShort
protected int destinationNoDataInt
protected float destinationNoDataFloat
protected double destinationNoDataDouble
protected Range noData
protected Rectangle roiBounds
protected boolean useROIAccessor
protected PlanarImage srcROIImage
protected boolean hasNoData
protected boolean hasROI
protected LookupTable(byte[] data)
data
- The single-banded byte data.IllegalArgumentException
- if data is null.protected LookupTable(byte[] data, int offset)
data
- The single-banded byte data.offset
- The offset.IllegalArgumentException
- if data is null.public LookupTable(byte[][] data)
data
- The multi-banded byte data in [band][index] format.IllegalArgumentException
- if data is null.public LookupTable(byte[][] data, int offset)
data
- The multi-banded byte data in [band][index] format.offset
- The common offset for all bands.IllegalArgumentException
- if data is null.protected LookupTable(byte[][] data, int[] offsets)
data
- The multi-banded byte data in [band][index] format.offsets
- The offsets for the bands.IllegalArgumentException
- if data is null.protected LookupTable(short[] data, boolean isUShort)
data
- The single-banded short data.isUShort
- True if data type is DataBuffer.TYPE_USHORT; false if data type is DataBuffer.TYPE_SHORT.IllegalArgumentException
- if data is null.protected LookupTable(short[] data, int offset, boolean isUShort)
data
- The single-banded short data.offset
- The offset.isUShort
- True if data type is DataBuffer.TYPE_USHORT; false if data type is DataBuffer.TYPE_SHORT.IllegalArgumentException
- if data is null.protected LookupTable(short[][] data, boolean isUShort)
data
- The multi-banded short data in [band][index] format.isUShort
- True if data type is DataBuffer.TYPE_USHORT; false if data type is DataBuffer.TYPE_SHORT.IllegalArgumentException
- if data is null.protected LookupTable(short[][] data, int offset, boolean isUShort)
data
- The multi-banded short data in [band][index] format.offset
- The common offset for all bands.isUShort
- True if data type is DataBuffer.TYPE_USHORT; false if data type is DataBuffer.TYPE_SHORT.IllegalArgumentException
- if data is null.protected LookupTable(short[][] data, int[] offsets, boolean isUShort)
data
- The multi-banded short data in [band][index] format.offsets
- The offsets for the bands.isUShort
- True if data type is DataBuffer.TYPE_USHORT; false if data type is DataBuffer.TYPE_SHORT.IllegalArgumentException
- if data is null.protected LookupTable(int[] data)
data
- The single-banded int data.IllegalArgumentException
- if data is null.protected LookupTable(int[] data, int offset)
data
- The single-banded int data.offset
- The offset.IllegalArgumentException
- if data is null.protected LookupTable(int[][] data)
data
- The multi-banded int data in [band][index] format.IllegalArgumentException
- if data is null.protected LookupTable(int[][] data, int offset)
data
- The multi-banded int data in [band][index] format.offset
- The common offset for all bands.IllegalArgumentException
- if data is null.protected LookupTable(int[][] data, int[] offsets)
data
- The multi-banded int data in [band][index] format.offsets
- The offsets for the bands.IllegalArgumentException
- if data is null.protected LookupTable(float[] data)
data
- The single-banded float data.IllegalArgumentException
- if data is null.protected LookupTable(float[] data, int offset)
data
- The single-banded float data.offset
- The offset.IllegalArgumentException
- if data is null.protected LookupTable(float[][] data)
data
- The multi-banded float data in [band][index] format.IllegalArgumentException
- if data is null.protected LookupTable(float[][] data, int offset)
data
- The multi-banded float data in [band][index] format.offset
- The common offset for all bands.IllegalArgumentException
- if data is null.protected LookupTable(float[][] data, int[] offsets)
data
- The multi-banded float data in [band][index] format.offsets
- The offsets for the bands.IllegalArgumentException
- if data is null.protected LookupTable(double[] data)
data
- The single-banded double data.IllegalArgumentException
- if data is null.protected LookupTable(double[] data, int offset)
data
- The single-banded double data.offset
- The offset.IllegalArgumentException
- if data is null.protected LookupTable(double[][] data)
data
- The multi-banded double data in [band][index] format.IllegalArgumentException
- if data is null.protected LookupTable(double[][] data, int offset)
data
- The multi-banded double data in [band][index] format.offset
- The common offset for all bands.IllegalArgumentException
- if data is null.protected LookupTable(double[][] data, int[] offsets)
data
- The multi-banded double data in [band][index] format.offsets
- The offsets for the bands.IllegalArgumentException
- if data is null.public void setDestinationNoData(double destinationNoData)
public void setNoDataRange(Range noData)
public void unsetNoData()
public void setROIparams(Rectangle roiBounds, PlanarImage srcROIImage, boolean useROIAccessor)
public void unsetROI()
protected void lookup(Raster source, WritableRaster dst, Rectangle rect, Raster roi)
Copyright © 2006–2018 GeoSolutions. All rights reserved.