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