public abstract class GrayI8<T extends GrayI8> extends GrayI<T>
Base class for images with 8-bit pixels.
| Modifier and Type | Field and Description |
|---|---|
byte[] |
data |
| Constructor and Description |
|---|
GrayI8() |
GrayI8(int width,
int height)
Creates a new gray scale (single band/color) image.
|
| 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.
|
byte[] |
getData() |
ImageDataType |
getDataType()
Returns image type information
|
void |
set(int x,
int y,
int value)
Sets the value of the specified pixel.
|
void |
setData(byte[] data) |
void |
unsafe_set(int x,
int y,
int value)
Set function which does not perform bounds checking.
|
get, print, printBinary, printNotZero, unsafe_get_createNew, clone, createSameShape, getHeight, getImageType, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidth, subimagepublic GrayI8(int width,
int height)
width - number of columns in the image.height - number of rows in the image.public GrayI8()
public void set(int x,
int y,
int value)
public void unsafe_set(int x,
int y,
int value)
GrayIunsafe_set in class GrayI<T extends GrayI8>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 GrayI8>public byte[] getData()
public void setData(byte[] data)