public abstract class ImageInt8<T extends ImageInt8> extends ImageInteger<T>
Base class for images with 8-bit pixels.
| Modifier and Type | Field and Description |
|---|---|
byte[] |
data |
| Constructor and Description |
|---|
ImageInt8() |
ImageInt8(int width,
int height)
Creates a new gray scale (single band/color) image.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
_getData()
Returns the data array the image is stored in.
|
protected void |
_setData(Object data)
Sets the image's internal data array.
|
ImageDataType |
getTypeInfo()
Returns image type information
|
void |
set(int x,
int y,
int value)
Sets the value of the specified pixel.
|
void |
unsafe_set(int x,
int y,
int value)
Set function which does not perform bounds checking.
|
get, print, printBinary, printNotZero, unsafe_getreshape, setTo, subimage_createNew, clone, getHeight, getIndex, getStartIndex, getStride, getWidth, indexToPixel, isInBounds, isSubimage, setHeight, setStartIndex, setStride, setWidthpublic ImageInt8(int width,
int height)
width - number of columns in the image.height - number of rows in the image.public ImageInt8()
public void set(int x,
int y,
int value)
set in class ImageInteger<T extends ImageInt8>x - pixel coordinate.y - pixel coordinate.value - The pixel's new value.public void unsafe_set(int x,
int y,
int value)
ImageIntegerunsafe_set in class ImageInteger<T extends ImageInt8>x - pixel coordinate.y - pixel coordinate.value - The pixel's new value.protected Object _getData()
ImageSingleBand_getData in class ImageSingleBand<T extends ImageInt8>protected void _setData(Object data)
ImageSingleBand_setData in class ImageSingleBand<T extends ImageInt8>data - data arraypublic ImageDataType getTypeInfo()
ImageSingleBandgetTypeInfo in class ImageInteger<T extends ImageInt8>Copyright © 2013. All Rights Reserved.