public abstract class GrayI16<T extends GrayI16> extends GrayI<T>
Base class for images with 16-bit pixels.
| Modifier and Type | Field and Description |
|---|---|
short[] |
data |
| Modifier | Constructor and Description |
|---|---|
protected |
GrayI16() |
protected |
GrayI16(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_get_createNew, clone, createSameShape, getHeight, getImageType, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimagepublic void set(int x,
int y,
int value)
public void unsafe_set(int x,
int y,
int value)
unsafe_set in class GrayI<T extends GrayI16>x - pixel coordinate.y - pixel coordinate.value - The pixel's new value.protected java.lang.Object _getData()
ImageGrayprotected void _setData(java.lang.Object data)
ImageGraypublic ImageDataType getDataType()
ImageGraygetDataType in class GrayI<T extends GrayI16>public short[] getData()
public void setData(short[] data)