public abstract class InterleavedI8 extends ImageInterleaved<InterleavedI8>
ImageInterleaved for data of type byte.
| Modifier and Type | Field and Description |
|---|---|
byte[] |
data |
numBands| Constructor and Description |
|---|
InterleavedI8() |
InterleavedI8(int width,
int height,
int numBands)
Creates a new image with an arbitrary number of bands/colors.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
_getData()
Returns the data array the image is stored in.
|
protected void |
_setData(Object data)
Sets the image's internal data array.
|
byte[] |
get(int x,
int y,
byte[] storage)
Returns the pixel's value for all the bands as an array.
|
abstract int |
getBand(int x,
int y,
int band)
Returns the value of the specified band in the specified pixel.
|
protected Class |
getDataType() |
ImageDataType |
getTypeInfo()
Returns image type information
|
void |
set(int x,
int y,
byte... value)
Sets the pixel's value for all the bands using an array.
|
void |
setBand(int x,
int y,
int band,
byte value)
Returns the value of the specified band in the specified pixel.
|
getIndex, getIndex, getNumBands, reshape, setNumBands, setTo, subimage_createNew, clone, getHeight, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidthpublic InterleavedI8(int width,
int height,
int numBands)
width - number of columns in the image.height - number of rows in the image.numBands - number of bands/colors in the image.public InterleavedI8()
public ImageDataType getTypeInfo()
ImageInterleavedgetTypeInfo in class ImageInterleaved<InterleavedI8>public byte[] get(int x,
int y,
byte[] storage)
x - pixel coordinate.y - pixel coordinate.storage - If not null then the pixel's value is written here. If null a new array is created.public void set(int x,
int y,
byte... value)
x - pixel coordinate.y - pixel coordinate.value - The pixel's new value for each band.public abstract int getBand(int x,
int y,
int band)
x - pixel coordinate.y - pixel coordinate.band - which color band in the pixelpublic void setBand(int x,
int y,
int band,
byte value)
x - pixel coordinate.y - pixel coordinate.band - which color band in the pixelvalue - The new value of the element.protected Object _getData()
ImageInterleaved_getData in class ImageInterleaved<InterleavedI8>protected Class getDataType()
getDataType in class ImageInterleaved<InterleavedI8>protected void _setData(Object data)
ImageInterleaved_setData in class ImageInterleaved<InterleavedI8>data - data arrayCopyright © 2013. All Rights Reserved.