public abstract class ImageInt16<T extends ImageInt16> extends ImageInteger<T>
Base class for images with 16-bit pixels.
| Modifier and Type | Field and Description |
|---|---|
short[] |
data |
| Modifier | Constructor and Description |
|---|---|
protected |
ImageInt16() |
protected |
ImageInt16(int width,
int height) |
| 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[] |
getData() |
ImageDataType |
getDataType()
Returns image type information
|
void |
set(int x,
int y,
int value)
Sets the value of the specified pixel.
|
void |
setData(short[] data) |
void |
unsafe_set(int x,
int y,
int value)
Sets the value of the specified pixel.
|
get, print, printBinary, printNotZero, unsafe_getreshape, setTo, subimage_createNew, clone, createSameShape, getHeight, getImageType, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimageprotected ImageInt16(int width,
int height)
protected ImageInt16()
public void set(int x,
int y,
int value)
set in class ImageInteger<T extends ImageInt16>x - pixel coordinate.y - pixel coordinate.value - The pixel's new value.public void unsafe_set(int x,
int y,
int value)
unsafe_set in class ImageInteger<T extends ImageInt16>x - pixel coordinate.y - pixel coordinate.value - The pixel's new value.protected java.lang.Object _getData()
ImageSingleBand_getData in class ImageSingleBand<T extends ImageInt16>protected void _setData(java.lang.Object data)
ImageSingleBand_setData in class ImageSingleBand<T extends ImageInt16>data - data arraypublic ImageDataType getDataType()
ImageSingleBandgetDataType in class ImageInteger<T extends ImageInt16>public short[] getData()
public void setData(short[] data)