public abstract class InterleavedInteger<T extends InterleavedInteger> extends ImageInterleaved<T>
numBands| Constructor and Description |
|---|
InterleavedInteger() |
InterleavedInteger(int width,
int height,
int numBands)
Creates a new image with an arbitrary number of bands/colors.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
get_unsafe(int x,
int y,
int[] storage) |
int[] |
get(int x,
int y,
int[] 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.
|
abstract void |
set_unsafe(int x,
int y,
int... value) |
void |
set(int x,
int y,
int... value)
Sets the pixel's value for all the bands using an array.
|
abstract void |
setBand(int x,
int y,
int band,
int value)
Returns the value of the specified band in the specified pixel.
|
_getData, _setData, getDataType, getIndex, getIndex, getNumBands, getPrimitiveDataType, reshape, setNumBands, setTo, subimage_createNew, clone, createSameShape, getHeight, getImageType, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimagepublic InterleavedInteger(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 InterleavedInteger()
public int[] get(int x,
int y,
int[] 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 abstract void get_unsafe(int x,
int y,
int[] storage)
public void set(int x,
int y,
int... value)
x - pixel coordinate.y - pixel coordinate.value - The pixel's new value for each band.public abstract void set_unsafe(int x,
int y,
int... value)
public abstract int getBand(int x,
int y,
int band)
x - pixel coordinate.y - pixel coordinate.band - which color band in the pixelpublic abstract void setBand(int x,
int y,
int band,
int value)
x - pixel coordinate.y - pixel coordinate.band - which color band in the pixelvalue - The new value of the element.