public class MediaLibAccessor extends Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
bandOffsets
The offsets of each band in the src image
|
static int |
BINARY
Flag indicating data are binary.
|
static int |
BINARY_MASK
The bits of a FormatTag associated with binary data.
|
static int |
COPIED
Flag indicating data is a copy of the raster's data.
|
static int |
COPY_MASK
The bits of a FormatTag associated with how dataArrays are obtained.
|
static int |
DATATYPE_MASK
The bits of a FormatTag associated with pixel datatype.
|
protected int |
formatTag
Tag indicating the data type of the data and whether its copied
|
static int |
NONBINARY
Flag indicating data are not binary.
|
protected int |
numBands
The number of bands per pixel in the data array.
|
protected Raster |
raster
The raster that is the source of pixel data.
|
protected Rectangle |
rect
The rectangle of the raster that MediaLibAccessor addresses.
|
static int |
TAG_BYTE_COPIED
FormatTag indicating data in byte arrays and uncopied.
|
static int |
TAG_BYTE_UNCOPIED
FormatTag indicating data in byte arrays and uncopied.
|
static int |
TAG_DOUBLE_COPIED
FormatTag indicating data in double arrays and copied.
|
static int |
TAG_DOUBLE_UNCOPIED
FormatTag indicating data in double arrays and uncopied.
|
static int |
TAG_FLOAT_COPIED
FormatTag indicating data in float arrays and copied.
|
static int |
TAG_FLOAT_UNCOPIED
FormatTag indicating data in float arrays and uncopied.
|
static int |
TAG_INT_COPIED
FormatTag indicating data in short arrays and copied.
|
static int |
TAG_INT_UNCOPIED
FormatTag indicating data in integer arrays and uncopied.
|
static int |
TAG_SHORT_COPIED
FormatTag indicating data in short arrays and copied.
|
static int |
TAG_SHORT_UNCOPIED
FormatTag indicating data in short arrays and uncopied.
|
static int |
TAG_USHORT_COPIED
FormatTag indicating data in unsigned short arrays and copied.
|
static int |
TAG_USHORT_UNCOPIED
FormatTag indicating data in unsigned short arrays and uncopied.
|
static int |
UNCOPIED
Flag indicating data is raster's data.
|
Constructor and Description |
---|
MediaLibAccessor() |
Modifier and Type | Method and Description |
---|---|
static int |
findCompatibleTag(Raster src)
Returns the most efficient FormatTag that is compatible with
the destination raster and all source rasters.
|
int[] |
getBandOffsets()
Returns the bandOffsets.
|
int |
getDataType()
Returns the data type of the RasterAccessor object.
|
double[] |
getDoubleParameters(int band,
double[] params)
Returns parameters in the appropriate order if MediaLibAccessor
has reordered the bands or is attempting to make a
BandSequential image look like multiple PixelSequentialImages
|
int[][] |
getIntArrayParameters(int band,
int[][] params)
Returns parameters in the appropriate order if MediaLibAccessor
has reordered the bands or is attempting to make a
BandSequential image look like multiple PixelSequentialImages
|
int[] |
getIntParameters(int band,
int[] params)
Returns parameters in the appropriate order if MediaLibAccessor
has reordered the bands or is attempting to make a
BandSequential image look like multiple PixelSequentialImages
|
boolean |
isBinary()
Returns
true if the MediaLibAccessor
represents binary data. |
boolean |
isDataCopy()
Returns true if the MediaLibAccessors's data is copied from it's
raster.
|
static boolean |
isPixelSequential(SampleModel sm)
Determines if the SampleModel stores data in a way that can
be represented by a mediaLibImage without copying
|
public static final int COPY_MASK
public static final int UNCOPIED
public static final int COPIED
public static final int DATATYPE_MASK
public static final int BINARY_MASK
public static final int NONBINARY
public static final int BINARY
public static final int TAG_BYTE_UNCOPIED
public static final int TAG_USHORT_UNCOPIED
public static final int TAG_SHORT_UNCOPIED
public static final int TAG_INT_UNCOPIED
public static final int TAG_FLOAT_UNCOPIED
public static final int TAG_DOUBLE_UNCOPIED
public static final int TAG_BYTE_COPIED
public static final int TAG_USHORT_COPIED
public static final int TAG_SHORT_COPIED
public static final int TAG_INT_COPIED
public static final int TAG_FLOAT_COPIED
public static final int TAG_DOUBLE_COPIED
protected int numBands
protected int[] bandOffsets
protected int formatTag
public MediaLibAccessor()
public static int findCompatibleTag(Raster src)
srcs
- the source Raster
; may be null
.dst
- the destination Raster
.public static boolean isPixelSequential(SampleModel sm)
public boolean isBinary()
true
if the MediaLibAccessor
represents binary data.public int getDataType()
public boolean isDataCopy()
public int[] getBandOffsets()
public int[] getIntParameters(int band, int[] params)
public int[][] getIntArrayParameters(int band, int[][] params)
public double[] getDoubleParameters(int band, double[] params)
Copyright © 2014. All rights reserved.